shalu-dashboard-ui.js 3.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050113051113052113053113054113055113056113057113058113059113060113061113062113063113064113065113066113067113068113069113070113071113072113073113074113075113076113077113078113079113080113081113082113083113084113085113086113087113088113089113090113091113092113093113094113095113096113097113098113099113100113101113102113103113104113105113106113107113108113109113110113111113112113113113114113115113116113117113118113119113120113121113122113123113124113125113126113127113128113129113130113131113132113133113134113135113136113137113138113139113140113141113142113143113144113145113146113147113148113149113150113151113152113153113154113155113156113157113158113159113160113161113162113163113164113165113166113167113168113169113170113171113172113173113174113175113176113177113178113179113180113181113182113183113184113185113186113187113188113189113190113191113192113193113194113195113196113197113198113199113200113201113202113203113204113205113206113207113208113209113210113211113212113213113214113215113216113217113218113219113220113221113222113223113224113225113226113227113228113229113230113231113232113233113234113235113236113237113238113239113240113241113242113243113244113245113246113247113248113249113250113251113252113253113254113255113256113257113258113259113260113261113262113263113264113265113266113267113268113269113270113271113272113273113274113275113276113277113278113279113280113281113282113283113284113285113286113287113288113289113290113291113292113293113294113295113296113297113298113299113300113301113302113303113304113305113306113307113308113309113310113311113312113313113314113315113316113317113318113319113320113321113322113323113324113325113326113327113328113329113330113331113332113333113334113335113336113337113338113339113340113341113342113343113344113345113346113347113348113349113350113351113352113353113354113355113356113357113358113359113360113361113362113363113364113365113366113367113368113369113370113371113372113373113374113375113376113377113378113379113380113381113382113383113384113385113386113387113388113389113390113391113392113393113394113395113396113397113398113399113400113401113402113403113404113405113406113407113408113409113410113411113412113413113414113415113416113417113418113419113420113421113422113423113424113425113426113427113428113429113430113431113432113433113434113435113436113437113438113439113440113441113442113443113444113445113446113447113448113449113450113451113452113453113454113455113456113457113458113459113460113461113462113463113464113465113466113467113468113469113470113471113472113473113474113475113476113477113478113479113480113481113482113483113484113485113486113487113488113489113490113491113492113493113494113495113496113497113498113499113500113501113502113503113504113505113506113507113508113509113510113511113512113513113514113515113516113517113518113519113520113521113522113523113524113525113526113527113528113529113530113531113532113533113534113535113536113537113538113539113540113541113542113543113544113545113546113547113548113549113550113551113552113553113554113555113556113557113558113559113560113561113562113563113564113565113566113567113568113569113570113571113572113573113574113575113576113577113578113579113580113581113582113583113584113585113586113587113588113589113590113591113592113593113594113595113596113597113598113599113600113601113602113603113604113605113606113607113608113609113610113611113612113613113614113615113616113617113618113619113620113621113622113623113624113625113626113627113628113629113630113631113632113633113634113635113636113637113638113639113640113641113642113643113644113645113646113647113648113649113650113651113652113653113654113655113656113657113658113659113660113661113662113663113664113665113666113667113668113669113670113671113672113673113674113675113676113677113678113679113680113681113682113683113684113685113686113687113688113689113690113691113692113693113694113695113696113697113698113699113700113701113702113703113704113705113706113707113708113709113710113711113712113713113714113715113716113717113718113719113720113721113722113723113724113725113726113727113728113729113730113731113732113733113734113735113736113737113738113739113740113741113742113743113744113745113746113747113748113749113750113751113752113753113754113755113756113757113758113759113760113761113762113763113764113765113766113767113768113769113770113771113772113773113774113775113776113777113778113779113780113781113782113783113784113785113786113787113788113789113790113791113792113793113794113795113796113797113798113799113800113801113802113803113804113805113806113807113808113809113810113811113812113813113814113815113816113817113818113819113820113821113822113823113824113825113826113827113828113829113830113831113832113833113834113835113836113837113838113839113840113841113842113843113844113845113846113847113848113849113850113851113852113853113854113855113856113857113858113859113860113861113862113863113864113865113866113867113868113869113870113871113872113873113874113875113876113877113878113879113880113881113882113883113884113885113886113887113888113889113890113891113892113893113894113895113896113897113898113899113900113901113902113903113904113905113906113907113908113909113910113911113912113913113914113915113916113917113918113919113920113921113922113923113924113925113926113927113928113929113930113931113932113933113934113935113936113937113938113939113940113941113942113943113944113945113946113947113948113949113950113951113952113953113954113955113956113957113958113959113960113961113962113963113964113965113966113967113968113969113970113971113972113973113974113975113976113977113978113979113980113981113982113983113984113985113986113987113988113989113990113991113992113993113994113995113996113997113998113999114000114001114002114003114004114005114006114007114008114009114010114011114012114013114014114015114016114017114018114019114020114021114022114023114024114025114026114027114028114029114030114031114032114033114034114035114036114037114038114039114040114041114042114043114044114045114046114047114048114049114050114051114052114053114054114055114056114057114058114059114060114061114062114063114064114065114066114067114068114069114070114071114072114073114074114075114076114077114078114079114080114081114082114083114084114085114086114087114088114089114090114091114092114093114094114095114096114097114098114099114100114101114102114103114104114105114106114107114108114109114110114111114112114113114114114115114116114117114118114119114120114121114122114123114124114125114126114127114128114129114130114131114132114133114134114135114136114137114138114139114140114141114142114143114144114145114146114147114148114149114150114151114152114153114154114155114156114157114158114159114160114161114162114163114164114165114166114167114168114169114170114171114172114173114174114175114176114177114178114179114180114181114182114183114184114185114186114187114188114189114190114191114192114193114194114195114196114197114198114199114200114201114202114203114204114205114206114207114208114209114210114211114212114213114214114215114216114217114218114219114220114221114222114223114224114225114226114227114228114229114230114231114232114233114234114235114236114237114238114239114240114241114242114243114244114245114246114247114248114249114250114251114252114253114254114255114256114257114258114259114260114261114262114263114264114265114266114267114268114269114270114271114272114273114274114275114276114277114278114279114280114281114282114283114284114285114286114287114288114289114290114291114292114293114294114295114296114297114298114299114300114301114302114303114304114305114306114307114308114309114310114311114312114313114314114315114316114317114318114319114320114321114322114323114324114325114326114327114328114329114330114331114332114333114334114335114336114337114338114339114340114341114342114343114344114345114346114347114348114349114350114351114352114353114354114355114356114357114358114359114360114361114362114363114364114365114366114367114368114369114370114371114372114373114374114375114376114377114378114379114380114381114382114383114384114385114386114387114388114389114390114391114392114393114394114395114396114397114398114399114400114401114402114403114404114405114406114407114408114409114410114411114412114413114414114415114416114417114418114419114420114421114422114423114424114425114426114427114428114429114430114431114432114433114434114435114436114437114438114439114440114441114442114443114444114445114446114447114448114449114450114451114452114453114454114455114456114457114458114459114460114461114462114463114464114465114466114467114468114469114470114471114472114473114474114475114476114477114478114479114480114481114482114483114484114485114486114487114488114489114490114491114492114493114494114495114496114497114498114499114500114501114502114503114504114505114506114507114508114509114510114511114512114513114514114515114516114517114518114519114520114521114522114523114524114525114526114527114528114529114530114531114532114533114534114535114536114537114538114539114540114541114542114543114544114545114546114547114548114549114550114551114552114553114554114555114556114557114558114559114560114561114562114563114564114565114566114567114568114569114570114571114572114573114574114575114576114577114578114579114580114581114582114583114584114585114586114587114588114589114590114591114592114593114594114595114596114597114598114599114600114601114602114603114604114605114606114607114608114609114610114611114612114613114614114615114616114617114618114619114620114621114622114623114624114625114626114627114628114629114630114631114632114633114634114635114636114637114638114639114640114641114642114643114644114645114646114647114648114649114650114651114652114653114654114655114656114657114658114659114660114661114662114663114664114665114666114667114668114669114670114671114672114673114674114675114676114677114678114679114680114681114682114683114684114685114686114687114688114689114690114691114692114693114694114695114696114697114698114699114700114701114702114703114704114705114706114707114708114709114710114711114712114713114714114715114716114717114718114719114720114721114722114723114724114725114726114727114728114729114730114731114732114733114734114735114736114737114738114739114740114741114742114743114744114745114746114747114748114749114750114751114752114753114754114755114756114757114758114759114760114761114762114763114764114765114766114767114768114769114770114771114772114773114774114775114776114777114778114779114780114781114782114783114784114785114786114787114788114789114790114791114792114793114794114795114796114797114798114799114800114801114802114803114804114805114806114807114808114809114810114811114812114813114814114815114816114817114818114819114820114821114822114823114824114825114826114827114828114829114830114831114832114833114834114835114836114837114838114839114840114841114842114843114844114845114846114847114848114849114850114851114852114853114854114855114856114857114858114859114860114861114862114863114864114865114866114867114868114869114870114871114872114873114874114875114876114877114878114879114880114881114882114883114884114885114886114887114888114889114890114891114892114893114894114895114896114897114898114899114900114901114902114903114904114905114906114907114908114909114910114911114912114913114914114915114916114917114918114919114920114921114922114923114924114925114926114927114928114929114930114931114932114933114934114935114936114937114938114939114940114941114942114943114944114945114946114947114948114949114950114951114952114953114954114955114956114957114958114959114960114961114962114963114964114965114966114967114968114969114970114971114972114973114974114975114976114977114978114979114980114981114982114983114984114985114986114987114988114989114990114991114992114993114994114995114996114997114998114999115000115001115002115003115004115005115006115007115008115009115010115011115012115013115014115015115016115017115018115019115020115021115022115023115024115025115026115027115028115029115030115031115032115033115034115035115036115037115038115039115040115041115042115043115044115045115046115047115048115049115050115051115052115053115054115055115056115057115058115059115060115061115062115063115064115065115066115067115068115069115070115071115072115073115074115075115076115077115078115079115080115081115082115083115084115085115086115087115088115089115090115091115092115093115094115095115096115097115098115099115100115101115102115103115104115105115106115107115108115109115110115111115112115113115114115115115116115117115118115119115120115121115122115123115124115125115126115127115128115129115130115131115132115133115134115135115136115137115138115139115140115141115142115143115144115145115146115147115148115149115150115151115152115153115154115155115156115157115158115159115160115161115162115163115164115165115166115167115168115169115170115171115172115173115174115175115176115177115178115179115180115181115182115183115184115185115186115187115188115189115190115191115192115193115194115195115196115197115198115199115200115201115202115203115204115205115206115207115208115209115210115211115212115213115214115215115216115217115218115219115220115221115222115223115224115225115226115227115228115229115230115231115232115233115234115235115236115237115238115239115240115241115242115243115244115245115246115247115248115249115250115251115252115253115254115255115256115257115258115259115260115261115262115263115264115265115266115267115268115269115270115271115272115273115274115275115276115277115278115279115280115281115282115283115284115285115286115287115288115289115290115291115292115293115294115295115296115297115298115299115300115301115302115303115304115305115306115307115308115309115310115311115312115313115314115315115316115317115318115319115320115321115322115323115324115325115326115327115328115329115330115331115332115333115334115335115336115337115338115339115340115341115342115343115344115345115346115347115348115349115350115351115352115353115354115355115356115357115358115359115360115361115362115363115364115365115366115367115368115369115370115371115372115373115374115375115376115377115378115379115380115381115382115383115384115385115386115387115388115389115390115391115392115393115394115395115396115397115398115399115400115401115402115403115404115405115406115407115408115409115410115411115412115413115414115415115416115417115418115419115420115421115422115423115424115425115426115427115428115429115430115431115432115433115434115435115436115437115438115439115440115441115442115443115444115445115446115447115448115449115450115451115452115453115454115455115456115457115458115459115460115461115462115463115464115465115466115467115468115469115470115471115472115473115474115475115476115477115478115479115480115481115482115483115484115485115486115487115488115489115490115491115492115493115494115495115496115497115498115499115500115501115502115503115504115505115506115507115508115509115510115511115512115513115514115515115516115517115518115519115520115521115522115523115524115525115526115527115528115529115530115531115532115533115534115535115536115537115538115539115540115541115542115543115544115545115546115547115548115549115550115551115552115553115554115555115556115557115558115559115560115561115562115563115564115565115566115567115568115569115570115571115572115573115574115575115576115577115578115579115580115581115582115583115584115585115586115587115588115589115590115591115592115593115594115595115596115597115598115599115600115601115602115603115604115605115606115607115608115609115610115611115612115613115614115615115616115617115618115619115620115621115622115623115624115625115626115627115628115629115630115631115632115633115634115635115636115637115638115639115640115641115642115643115644115645115646115647115648115649115650115651115652115653115654115655115656115657115658115659115660115661115662115663115664115665115666115667115668115669115670115671115672115673115674115675115676115677115678115679115680115681115682115683115684115685115686115687115688115689115690115691115692115693115694115695115696115697115698115699115700115701115702115703115704115705115706115707115708115709115710115711115712115713115714115715115716115717115718115719115720115721115722115723115724115725115726115727115728115729115730115731115732115733115734115735115736115737115738115739115740115741115742115743115744115745115746115747115748115749115750115751115752115753115754115755115756115757115758115759115760115761115762115763115764115765115766115767115768115769115770115771115772115773115774115775115776115777115778115779115780115781115782115783115784115785115786115787115788115789115790115791115792115793115794115795115796115797115798115799115800115801115802115803115804115805115806115807115808115809115810115811115812115813115814115815115816115817115818115819115820115821115822115823115824115825115826115827115828115829115830115831115832115833115834115835115836115837115838115839115840115841115842115843115844115845115846115847115848115849115850115851115852115853115854115855115856115857115858115859115860115861115862115863115864115865115866115867115868115869115870115871115872115873115874115875115876115877115878115879115880115881115882115883115884115885115886115887115888115889115890115891115892115893115894115895115896115897115898115899115900115901115902115903115904115905115906115907115908115909115910115911115912115913115914115915115916115917115918115919115920115921115922115923115924115925115926115927115928115929115930115931115932115933115934115935115936115937115938115939115940115941115942115943115944115945115946115947115948115949115950115951115952115953115954115955115956115957115958115959115960115961115962115963115964115965115966115967115968115969115970115971115972115973115974115975115976115977115978115979115980115981115982115983115984115985115986115987115988115989115990115991115992115993115994115995115996115997115998115999116000116001116002116003116004116005116006116007116008116009116010116011116012116013116014116015116016116017116018116019116020116021116022116023116024116025116026116027116028116029116030116031116032116033116034116035116036116037116038116039116040116041116042116043116044116045116046116047116048116049116050116051116052116053116054116055116056116057116058116059116060116061116062116063116064116065116066116067116068116069116070116071116072116073116074116075116076116077116078116079116080116081116082116083116084116085116086116087116088116089116090116091116092116093116094116095116096116097116098116099116100116101116102116103116104116105116106116107116108116109116110116111116112116113116114116115116116116117116118116119116120116121116122116123116124116125116126116127116128116129116130116131116132116133116134116135116136116137116138116139116140116141116142116143116144116145116146116147116148116149116150116151116152116153116154116155116156116157116158116159116160116161116162116163116164116165116166116167116168116169116170116171116172116173116174116175116176116177116178116179116180116181116182116183116184116185116186116187116188116189116190116191116192116193116194116195116196116197116198116199116200116201116202116203116204116205116206116207116208116209116210116211116212116213116214116215116216116217116218116219116220116221116222116223116224116225116226116227116228116229116230116231116232116233116234116235116236116237116238116239116240116241116242116243116244116245116246116247116248116249116250116251116252116253116254116255116256116257116258116259116260116261116262116263116264116265116266116267116268116269116270116271116272116273116274116275116276116277116278116279116280116281116282116283116284116285116286116287116288116289116290116291116292116293116294116295116296116297116298116299116300116301116302116303116304116305116306116307116308116309116310116311116312116313116314116315116316116317116318116319116320116321116322116323116324116325116326116327116328116329116330116331116332116333116334116335116336116337116338116339116340116341116342116343116344116345116346116347116348116349116350116351116352116353116354116355116356116357116358116359116360116361116362116363116364116365116366116367116368116369116370116371116372116373116374116375116376116377116378116379116380116381116382116383116384116385116386116387116388116389116390116391116392116393116394116395116396116397116398116399116400116401116402116403116404116405116406116407116408116409116410116411116412116413116414116415116416116417116418116419116420116421116422116423116424116425116426116427116428116429116430116431116432116433116434116435116436116437116438116439116440116441116442116443116444116445116446116447116448116449116450116451116452116453116454116455116456116457116458116459116460116461116462116463116464116465116466116467116468116469116470116471116472116473116474116475116476116477116478116479116480116481116482116483116484116485116486116487116488116489116490116491116492116493116494116495116496116497116498116499116500116501116502116503116504116505116506116507116508116509116510116511116512116513116514116515116516116517116518116519116520116521116522116523116524116525116526116527116528116529116530116531116532116533116534116535116536116537116538116539116540116541116542116543116544116545116546116547116548116549116550116551116552116553116554116555116556116557116558116559116560116561116562116563116564116565116566116567116568116569116570116571116572116573116574116575116576116577116578116579116580116581116582116583116584116585116586116587116588116589116590116591116592116593116594116595116596116597116598116599116600116601116602116603116604116605116606116607116608116609116610116611116612116613116614116615116616116617116618116619116620116621116622116623116624116625116626116627116628116629116630116631116632116633116634116635116636116637116638116639116640116641116642116643116644116645116646116647116648116649116650116651116652116653116654116655116656116657116658116659116660116661116662116663116664116665116666116667116668116669116670116671116672116673116674116675116676116677116678116679116680116681116682116683116684116685116686116687116688116689116690116691116692116693116694116695116696116697116698116699116700116701116702116703116704116705116706116707116708116709116710116711116712116713116714116715116716116717116718116719116720116721116722116723116724116725116726116727116728116729116730116731116732116733116734116735116736116737116738116739116740
  1. import { getCurrentScope as Tee, onScopeDispose as im, unref as z, getCurrentInstance as In, onMounted as _t, nextTick as Bt, ref as ee, readonly as Pee, watch as me, defineComponent as ae, openBlock as be, createElementBlock as Ue, createElementVNode as tt, warn as oxe, computed as V, watchEffect as Vt, onBeforeUnmount as Qt, inject as et, isRef as Vs, shallowRef as ve, onBeforeMount as $ee, provide as Et, mergeProps as Xn, renderSlot as ln, toRef as Lr, onUnmounted as qu, useAttrs as sxe, useSlots as D_, createCommentVNode as Ot, Fragment as Wt, normalizeClass as Ge, createBlock as Je, withCtx as ke, resolveDynamicComponent as As, withModifiers as ai, createVNode as D, toDisplayString as xi, normalizeStyle as dr, withDirectives as Sr, cloneVNode as ku, Text as KT, Comment as Aee, Teleport as R_, Transition as mo, vShow as ho, onDeactivated as lxe, reactive as zn, toRaw as es, vModelCheckbox as Bw, createTextVNode as On, toRefs as k_, vModelRadio as Eee, toHandlers as uxe, renderList as hh, withKeys as gF, h as ff, createSlots as cxe, resolveComponent as br, onUpdated as rp, isVNode as df, triggerRef as fxe, resolveDirective as dxe, render as Ih, onBeforeUpdate as Mee, TransitionGroup as X4, onActivated as hxe, createApp as pxe, pushScopeId as JT, popScopeId as e2 } from "vue";
  2. var kr = /* @__PURE__ */ ((t) => (t[t.STATIC = 0] = "STATIC", t[t.API = 1] = "API", t[t.BASIC_PATH = 2] = "BASIC_PATH", t[t.VIEW_CODE = 3] = "VIEW_CODE", t))(kr || {});
  3. const mu = (t, e, { checkForDefaultPrevented: n = !0 } = {}) => (i) => {
  4. const a = t == null ? void 0 : t(i);
  5. if (n === !1 || !a)
  6. return e == null ? void 0 : e(i);
  7. };
  8. var mF;
  9. const Fr = typeof window < "u", vxe = (t) => typeof t == "string", Iee = () => {
  10. }, gxe = Fr && ((mF = window == null ? void 0 : window.navigator) == null ? void 0 : mF.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
  11. function Y4(t) {
  12. return typeof t == "function" ? t() : z(t);
  13. }
  14. function mxe(t) {
  15. return t;
  16. }
  17. function t2(t) {
  18. return Tee() ? (im(t), !0) : !1;
  19. }
  20. function yxe(t, e = !0) {
  21. In() ? _t(t) : e ? t() : Bt(t);
  22. }
  23. function yF(t, e, n = {}) {
  24. const {
  25. immediate: r = !0
  26. } = n, i = ee(!1);
  27. let a = null;
  28. function o() {
  29. a && (clearTimeout(a), a = null);
  30. }
  31. function s() {
  32. i.value = !1, o();
  33. }
  34. function l(...u) {
  35. o(), i.value = !0, a = setTimeout(() => {
  36. i.value = !1, a = null, t(...u);
  37. }, Y4(e));
  38. }
  39. return r && (i.value = !0, Fr && l()), t2(s), {
  40. isPending: Pee(i),
  41. start: l,
  42. stop: s
  43. };
  44. }
  45. function zc(t) {
  46. var e;
  47. const n = Y4(t);
  48. return (e = n == null ? void 0 : n.$el) != null ? e : n;
  49. }
  50. const q4 = Fr ? window : void 0;
  51. function Iy(...t) {
  52. let e, n, r, i;
  53. if (vxe(t[0]) || Array.isArray(t[0]) ? ([n, r, i] = t, e = q4) : [e, n, r, i] = t, !e)
  54. return Iee;
  55. Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
  56. const a = [], o = () => {
  57. a.forEach((c) => c()), a.length = 0;
  58. }, s = (c, f, d, h) => (c.addEventListener(f, d, h), () => c.removeEventListener(f, d, h)), l = me(() => [zc(e), Y4(i)], ([c, f]) => {
  59. o(), c && a.push(...n.flatMap((d) => r.map((h) => s(c, d, h, f))));
  60. }, { immediate: !0, flush: "post" }), u = () => {
  61. l(), o();
  62. };
  63. return t2(u), u;
  64. }
  65. let bF = !1;
  66. function bxe(t, e, n = {}) {
  67. const { window: r = q4, ignore: i = [], capture: a = !0, detectIframe: o = !1 } = n;
  68. if (!r)
  69. return;
  70. gxe && !bF && (bF = !0, Array.from(r.document.body.children).forEach((d) => d.addEventListener("click", Iee)));
  71. let s = !0;
  72. const l = (d) => i.some((h) => {
  73. if (typeof h == "string")
  74. return Array.from(r.document.querySelectorAll(h)).some((p) => p === d.target || d.composedPath().includes(p));
  75. {
  76. const p = zc(h);
  77. return p && (d.target === p || d.composedPath().includes(p));
  78. }
  79. }), c = [
  80. Iy(r, "click", (d) => {
  81. const h = zc(t);
  82. if (!(!h || h === d.target || d.composedPath().includes(h))) {
  83. if (d.detail === 0 && (s = !l(d)), !s) {
  84. s = !0;
  85. return;
  86. }
  87. e(d);
  88. }
  89. }, { passive: !0, capture: a }),
  90. Iy(r, "pointerdown", (d) => {
  91. const h = zc(t);
  92. h && (s = !d.composedPath().includes(h) && !l(d));
  93. }, { passive: !0 }),
  94. o && Iy(r, "blur", (d) => {
  95. var h;
  96. const p = zc(t);
  97. ((h = r.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(p != null && p.contains(r.document.activeElement)) && e(d);
  98. })
  99. ].filter(Boolean);
  100. return () => c.forEach((d) => d());
  101. }
  102. function _xe(t, e = !1) {
  103. const n = ee(), r = () => n.value = !!t();
  104. return r(), yxe(r, e), n;
  105. }
  106. const _F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, OF = "__vueuse_ssr_handlers__";
  107. _F[OF] = _F[OF] || {};
  108. var SF = Object.getOwnPropertySymbols, Oxe = Object.prototype.hasOwnProperty, Sxe = Object.prototype.propertyIsEnumerable, xxe = (t, e) => {
  109. var n = {};
  110. for (var r in t)
  111. Oxe.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  112. if (t != null && SF)
  113. for (var r of SF(t))
  114. e.indexOf(r) < 0 && Sxe.call(t, r) && (n[r] = t[r]);
  115. return n;
  116. };
  117. function wxe(t, e, n = {}) {
  118. const r = n, { window: i = q4 } = r, a = xxe(r, ["window"]);
  119. let o;
  120. const s = _xe(() => i && "ResizeObserver" in i), l = () => {
  121. o && (o.disconnect(), o = void 0);
  122. }, u = me(() => zc(t), (f) => {
  123. l(), s.value && i && f && (o = new ResizeObserver(e), o.observe(f, a));
  124. }, { immediate: !0, flush: "post" }), c = () => {
  125. l(), u();
  126. };
  127. return t2(c), {
  128. isSupported: s,
  129. stop: c
  130. };
  131. }
  132. var xF;
  133. (function(t) {
  134. t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
  135. })(xF || (xF = {}));
  136. var Cxe = Object.defineProperty, wF = Object.getOwnPropertySymbols, Txe = Object.prototype.hasOwnProperty, Pxe = Object.prototype.propertyIsEnumerable, CF = (t, e, n) => e in t ? Cxe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $xe = (t, e) => {
  137. for (var n in e || (e = {}))
  138. Txe.call(e, n) && CF(t, n, e[n]);
  139. if (wF)
  140. for (var n of wF(e))
  141. Pxe.call(e, n) && CF(t, n, e[n]);
  142. return t;
  143. };
  144. const Axe = {
  145. easeInSine: [0.12, 0, 0.39, 0],
  146. easeOutSine: [0.61, 1, 0.88, 1],
  147. easeInOutSine: [0.37, 0, 0.63, 1],
  148. easeInQuad: [0.11, 0, 0.5, 0],
  149. easeOutQuad: [0.5, 1, 0.89, 1],
  150. easeInOutQuad: [0.45, 0, 0.55, 1],
  151. easeInCubic: [0.32, 0, 0.67, 0],
  152. easeOutCubic: [0.33, 1, 0.68, 1],
  153. easeInOutCubic: [0.65, 0, 0.35, 1],
  154. easeInQuart: [0.5, 0, 0.75, 0],
  155. easeOutQuart: [0.25, 1, 0.5, 1],
  156. easeInOutQuart: [0.76, 0, 0.24, 1],
  157. easeInQuint: [0.64, 0, 0.78, 0],
  158. easeOutQuint: [0.22, 1, 0.36, 1],
  159. easeInOutQuint: [0.83, 0, 0.17, 1],
  160. easeInExpo: [0.7, 0, 0.84, 0],
  161. easeOutExpo: [0.16, 1, 0.3, 1],
  162. easeInOutExpo: [0.87, 0, 0.13, 1],
  163. easeInCirc: [0.55, 0, 1, 0.45],
  164. easeOutCirc: [0, 0.55, 0.45, 1],
  165. easeInOutCirc: [0.85, 0, 0.15, 1],
  166. easeInBack: [0.36, 0, 0.66, -0.56],
  167. easeOutBack: [0.34, 1.56, 0.64, 1],
  168. easeInOutBack: [0.68, -0.6, 0.32, 1.6]
  169. };
  170. $xe({
  171. linear: mxe
  172. }, Axe);
  173. const Exe = () => Fr && /firefox/i.test(window.navigator.userAgent), K4 = (t) => {
  174. let e, n;
  175. return t.type === "touchend" ? (n = t.changedTouches[0].clientY, e = t.changedTouches[0].clientX) : t.type.startsWith("touch") ? (n = t.touches[0].clientY, e = t.touches[0].clientX) : (n = t.clientY, e = t.clientX), {
  176. clientX: e,
  177. clientY: n
  178. };
  179. };
  180. /**
  181. * @vue/shared v3.4.31
  182. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  183. * @license MIT
  184. **/
  185. process.env.NODE_ENV !== "production" && Object.freeze({});
  186. process.env.NODE_ENV !== "production" && Object.freeze([]);
  187. const Kc = () => {
  188. }, Mxe = Object.prototype.hasOwnProperty, Dh = (t, e) => Mxe.call(t, e), dg = Array.isArray, Jd = (t) => typeof t == "function", ia = (t) => typeof t == "string", Rh = (t) => t !== null && typeof t == "object", Ixe = (t) => {
  189. const e = /* @__PURE__ */ Object.create(null);
  190. return (n) => e[n] || (e[n] = t(n));
  191. }, Dxe = /-(\w)/g, Rxe = Ixe((t) => t.replace(Dxe, (e, n) => n ? n.toUpperCase() : ""));
  192. var Dee = typeof global == "object" && global && global.Object === Object && global, kxe = typeof self == "object" && self && self.Object === Object && self, Ys = Dee || kxe || Function("return this")(), ts = Ys.Symbol, Ree = Object.prototype, Lxe = Ree.hasOwnProperty, Nxe = Ree.toString, p0 = ts ? ts.toStringTag : void 0;
  193. function Bxe(t) {
  194. var e = Lxe.call(t, p0), n = t[p0];
  195. try {
  196. t[p0] = void 0;
  197. var r = !0;
  198. } catch {
  199. }
  200. var i = Nxe.call(t);
  201. return r && (e ? t[p0] = n : delete t[p0]), i;
  202. }
  203. var zxe = Object.prototype, Vxe = zxe.toString;
  204. function Fxe(t) {
  205. return Vxe.call(t);
  206. }
  207. var Wxe = "[object Null]", Qxe = "[object Undefined]", TF = ts ? ts.toStringTag : void 0;
  208. function Ef(t) {
  209. return t == null ? t === void 0 ? Qxe : Wxe : TF && TF in Object(t) ? Bxe(t) : Fxe(t);
  210. }
  211. function Fs(t) {
  212. return t != null && typeof t == "object";
  213. }
  214. var Hxe = "[object Symbol]";
  215. function n2(t) {
  216. return typeof t == "symbol" || Fs(t) && Ef(t) == Hxe;
  217. }
  218. function r2(t, e) {
  219. for (var n = -1, r = t == null ? 0 : t.length, i = Array(r); ++n < r; )
  220. i[n] = e(t[n], n, t);
  221. return i;
  222. }
  223. var za = Array.isArray, Gxe = 1 / 0, PF = ts ? ts.prototype : void 0, $F = PF ? PF.toString : void 0;
  224. function kee(t) {
  225. if (typeof t == "string")
  226. return t;
  227. if (za(t))
  228. return r2(t, kee) + "";
  229. if (n2(t))
  230. return $F ? $F.call(t) : "";
  231. var e = t + "";
  232. return e == "0" && 1 / t == -Gxe ? "-0" : e;
  233. }
  234. var jxe = /\s/;
  235. function Zxe(t) {
  236. for (var e = t.length; e-- && jxe.test(t.charAt(e)); )
  237. ;
  238. return e;
  239. }
  240. var Uxe = /^\s+/;
  241. function Xxe(t) {
  242. return t && t.slice(0, Zxe(t) + 1).replace(Uxe, "");
  243. }
  244. function Ti(t) {
  245. var e = typeof t;
  246. return t != null && (e == "object" || e == "function");
  247. }
  248. var AF = NaN, Yxe = /^[-+]0x[0-9a-f]+$/i, qxe = /^0b[01]+$/i, Kxe = /^0o[0-7]+$/i, Jxe = parseInt;
  249. function WD(t) {
  250. if (typeof t == "number")
  251. return t;
  252. if (n2(t))
  253. return AF;
  254. if (Ti(t)) {
  255. var e = typeof t.valueOf == "function" ? t.valueOf() : t;
  256. t = Ti(e) ? e + "" : e;
  257. }
  258. if (typeof t != "string")
  259. return t === 0 ? t : +t;
  260. t = Xxe(t);
  261. var n = qxe.test(t);
  262. return n || Kxe.test(t) ? Jxe(t.slice(2), n ? 2 : 8) : Yxe.test(t) ? AF : +t;
  263. }
  264. var EF = 1 / 0, ewe = 17976931348623157e292;
  265. function twe(t) {
  266. if (!t)
  267. return t === 0 ? t : 0;
  268. if (t = WD(t), t === EF || t === -EF) {
  269. var e = t < 0 ? -1 : 1;
  270. return e * ewe;
  271. }
  272. return t === t ? t : 0;
  273. }
  274. function nwe(t) {
  275. var e = twe(t), n = e % 1;
  276. return e === e ? n ? e - n : e : 0;
  277. }
  278. function J4(t) {
  279. return t;
  280. }
  281. var rwe = "[object AsyncFunction]", iwe = "[object Function]", awe = "[object GeneratorFunction]", owe = "[object Proxy]";
  282. function eN(t) {
  283. if (!Ti(t))
  284. return !1;
  285. var e = Ef(t);
  286. return e == iwe || e == awe || e == rwe || e == owe;
  287. }
  288. var RA = Ys["__core-js_shared__"], MF = function() {
  289. var t = /[^.]+$/.exec(RA && RA.keys && RA.keys.IE_PROTO || "");
  290. return t ? "Symbol(src)_1." + t : "";
  291. }();
  292. function swe(t) {
  293. return !!MF && MF in t;
  294. }
  295. var lwe = Function.prototype, uwe = lwe.toString;
  296. function ip(t) {
  297. if (t != null) {
  298. try {
  299. return uwe.call(t);
  300. } catch {
  301. }
  302. try {
  303. return t + "";
  304. } catch {
  305. }
  306. }
  307. return "";
  308. }
  309. var cwe = /[\\^$.*+?()[\]{}|]/g, fwe = /^\[object .+?Constructor\]$/, dwe = Function.prototype, hwe = Object.prototype, pwe = dwe.toString, vwe = hwe.hasOwnProperty, gwe = RegExp(
  310. "^" + pwe.call(vwe).replace(cwe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  311. );
  312. function mwe(t) {
  313. if (!Ti(t) || swe(t))
  314. return !1;
  315. var e = eN(t) ? gwe : fwe;
  316. return e.test(ip(t));
  317. }
  318. function ywe(t, e) {
  319. return t == null ? void 0 : t[e];
  320. }
  321. function ap(t, e) {
  322. var n = ywe(t, e);
  323. return mwe(n) ? n : void 0;
  324. }
  325. var QD = ap(Ys, "WeakMap"), IF = Object.create, bwe = /* @__PURE__ */ function() {
  326. function t() {
  327. }
  328. return function(e) {
  329. if (!Ti(e))
  330. return {};
  331. if (IF)
  332. return IF(e);
  333. t.prototype = e;
  334. var n = new t();
  335. return t.prototype = void 0, n;
  336. };
  337. }();
  338. function Lee(t, e, n) {
  339. switch (n.length) {
  340. case 0:
  341. return t.call(e);
  342. case 1:
  343. return t.call(e, n[0]);
  344. case 2:
  345. return t.call(e, n[0], n[1]);
  346. case 3:
  347. return t.call(e, n[0], n[1], n[2]);
  348. }
  349. return t.apply(e, n);
  350. }
  351. function _we() {
  352. }
  353. function Nee(t, e) {
  354. var n = -1, r = t.length;
  355. for (e || (e = Array(r)); ++n < r; )
  356. e[n] = t[n];
  357. return e;
  358. }
  359. var Owe = 800, Swe = 16, xwe = Date.now;
  360. function wwe(t) {
  361. var e = 0, n = 0;
  362. return function() {
  363. var r = xwe(), i = Swe - (r - n);
  364. if (n = r, i > 0) {
  365. if (++e >= Owe)
  366. return arguments[0];
  367. } else
  368. e = 0;
  369. return t.apply(void 0, arguments);
  370. };
  371. }
  372. function Cwe(t) {
  373. return function() {
  374. return t;
  375. };
  376. }
  377. var zw = function() {
  378. try {
  379. var t = ap(Object, "defineProperty");
  380. return t({}, "", {}), t;
  381. } catch {
  382. }
  383. }(), Twe = zw ? function(t, e) {
  384. return zw(t, "toString", {
  385. configurable: !0,
  386. enumerable: !1,
  387. value: Cwe(e),
  388. writable: !0
  389. });
  390. } : J4, Bee = wwe(Twe);
  391. function Pwe(t, e) {
  392. for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
  393. ;
  394. return t;
  395. }
  396. function zee(t, e, n, r) {
  397. for (var i = t.length, a = n + -1; ++a < i; )
  398. if (e(t[a], a, t))
  399. return a;
  400. return -1;
  401. }
  402. function $we(t) {
  403. return t !== t;
  404. }
  405. function Awe(t, e, n) {
  406. for (var r = n - 1, i = t.length; ++r < i; )
  407. if (t[r] === e)
  408. return r;
  409. return -1;
  410. }
  411. function Ewe(t, e, n) {
  412. return e === e ? Awe(t, e, n) : zee(t, $we, n);
  413. }
  414. function Vee(t, e) {
  415. var n = t == null ? 0 : t.length;
  416. return !!n && Ewe(t, e, 0) > -1;
  417. }
  418. var Mwe = 9007199254740991, Iwe = /^(?:0|[1-9]\d*)$/;
  419. function i2(t, e) {
  420. var n = typeof t;
  421. return e = e ?? Mwe, !!e && (n == "number" || n != "symbol" && Iwe.test(t)) && t > -1 && t % 1 == 0 && t < e;
  422. }
  423. function tN(t, e, n) {
  424. e == "__proto__" && zw ? zw(t, e, {
  425. configurable: !0,
  426. enumerable: !0,
  427. value: n,
  428. writable: !0
  429. }) : t[e] = n;
  430. }
  431. function L_(t, e) {
  432. return t === e || t !== t && e !== e;
  433. }
  434. var Dwe = Object.prototype, Rwe = Dwe.hasOwnProperty;
  435. function nN(t, e, n) {
  436. var r = t[e];
  437. (!(Rwe.call(t, e) && L_(r, n)) || n === void 0 && !(e in t)) && tN(t, e, n);
  438. }
  439. function am(t, e, n, r) {
  440. var i = !n;
  441. n || (n = {});
  442. for (var a = -1, o = e.length; ++a < o; ) {
  443. var s = e[a], l = void 0;
  444. l === void 0 && (l = t[s]), i ? tN(n, s, l) : nN(n, s, l);
  445. }
  446. return n;
  447. }
  448. var DF = Math.max;
  449. function Fee(t, e, n) {
  450. return e = DF(e === void 0 ? t.length - 1 : e, 0), function() {
  451. for (var r = arguments, i = -1, a = DF(r.length - e, 0), o = Array(a); ++i < a; )
  452. o[i] = r[e + i];
  453. i = -1;
  454. for (var s = Array(e + 1); ++i < e; )
  455. s[i] = r[i];
  456. return s[e] = n(o), Lee(t, this, s);
  457. };
  458. }
  459. function rN(t, e) {
  460. return Bee(Fee(t, e, J4), t + "");
  461. }
  462. var kwe = 9007199254740991;
  463. function iN(t) {
  464. return typeof t == "number" && t > -1 && t % 1 == 0 && t <= kwe;
  465. }
  466. function om(t) {
  467. return t != null && iN(t.length) && !eN(t);
  468. }
  469. function Lwe(t, e, n) {
  470. if (!Ti(n))
  471. return !1;
  472. var r = typeof e;
  473. return (r == "number" ? om(n) && i2(e, n.length) : r == "string" && e in n) ? L_(n[e], t) : !1;
  474. }
  475. function Nwe(t) {
  476. return rN(function(e, n) {
  477. var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
  478. for (a = t.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && Lwe(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), e = Object(e); ++r < i; ) {
  479. var s = n[r];
  480. s && t(e, s, r, a);
  481. }
  482. return e;
  483. });
  484. }
  485. var Bwe = Object.prototype;
  486. function a2(t) {
  487. var e = t && t.constructor, n = typeof e == "function" && e.prototype || Bwe;
  488. return t === n;
  489. }
  490. function zwe(t, e) {
  491. for (var n = -1, r = Array(t); ++n < t; )
  492. r[n] = e(n);
  493. return r;
  494. }
  495. var Vwe = "[object Arguments]";
  496. function RF(t) {
  497. return Fs(t) && Ef(t) == Vwe;
  498. }
  499. var Wee = Object.prototype, Fwe = Wee.hasOwnProperty, Wwe = Wee.propertyIsEnumerable, hg = RF(/* @__PURE__ */ function() {
  500. return arguments;
  501. }()) ? RF : function(t) {
  502. return Fs(t) && Fwe.call(t, "callee") && !Wwe.call(t, "callee");
  503. };
  504. function Qwe() {
  505. return !1;
  506. }
  507. var Qee = typeof exports == "object" && exports && !exports.nodeType && exports, kF = Qee && typeof module == "object" && module && !module.nodeType && module, Hwe = kF && kF.exports === Qee, LF = Hwe ? Ys.Buffer : void 0, Gwe = LF ? LF.isBuffer : void 0, pg = Gwe || Qwe, jwe = "[object Arguments]", Zwe = "[object Array]", Uwe = "[object Boolean]", Xwe = "[object Date]", Ywe = "[object Error]", qwe = "[object Function]", Kwe = "[object Map]", Jwe = "[object Number]", eCe = "[object Object]", tCe = "[object RegExp]", nCe = "[object Set]", rCe = "[object String]", iCe = "[object WeakMap]", aCe = "[object ArrayBuffer]", oCe = "[object DataView]", sCe = "[object Float32Array]", lCe = "[object Float64Array]", uCe = "[object Int8Array]", cCe = "[object Int16Array]", fCe = "[object Int32Array]", dCe = "[object Uint8Array]", hCe = "[object Uint8ClampedArray]", pCe = "[object Uint16Array]", vCe = "[object Uint32Array]", Kn = {};
  508. Kn[sCe] = Kn[lCe] = Kn[uCe] = Kn[cCe] = Kn[fCe] = Kn[dCe] = Kn[hCe] = Kn[pCe] = Kn[vCe] = !0;
  509. Kn[jwe] = Kn[Zwe] = Kn[aCe] = Kn[Uwe] = Kn[oCe] = Kn[Xwe] = Kn[Ywe] = Kn[qwe] = Kn[Kwe] = Kn[Jwe] = Kn[eCe] = Kn[tCe] = Kn[nCe] = Kn[rCe] = Kn[iCe] = !1;
  510. function gCe(t) {
  511. return Fs(t) && iN(t.length) && !!Kn[Ef(t)];
  512. }
  513. function o2(t) {
  514. return function(e) {
  515. return t(e);
  516. };
  517. }
  518. var Hee = typeof exports == "object" && exports && !exports.nodeType && exports, Dy = Hee && typeof module == "object" && module && !module.nodeType && module, mCe = Dy && Dy.exports === Hee, kA = mCe && Dee.process, vg = function() {
  519. try {
  520. var t = Dy && Dy.require && Dy.require("util").types;
  521. return t || kA && kA.binding && kA.binding("util");
  522. } catch {
  523. }
  524. }(), NF = vg && vg.isTypedArray, s2 = NF ? o2(NF) : gCe, yCe = Object.prototype, bCe = yCe.hasOwnProperty;
  525. function Gee(t, e) {
  526. var n = za(t), r = !n && hg(t), i = !n && !r && pg(t), a = !n && !r && !i && s2(t), o = n || r || i || a, s = o ? zwe(t.length, String) : [], l = s.length;
  527. for (var u in t)
  528. (e || bCe.call(t, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
  529. (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  530. i && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  531. a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
  532. i2(u, l))) && s.push(u);
  533. return s;
  534. }
  535. function jee(t, e) {
  536. return function(n) {
  537. return t(e(n));
  538. };
  539. }
  540. var _Ce = jee(Object.keys, Object), OCe = Object.prototype, SCe = OCe.hasOwnProperty;
  541. function Zee(t) {
  542. if (!a2(t))
  543. return _Ce(t);
  544. var e = [];
  545. for (var n in Object(t))
  546. SCe.call(t, n) && n != "constructor" && e.push(n);
  547. return e;
  548. }
  549. function N_(t) {
  550. return om(t) ? Gee(t) : Zee(t);
  551. }
  552. function xCe(t) {
  553. var e = [];
  554. if (t != null)
  555. for (var n in Object(t))
  556. e.push(n);
  557. return e;
  558. }
  559. var wCe = Object.prototype, CCe = wCe.hasOwnProperty;
  560. function TCe(t) {
  561. if (!Ti(t))
  562. return xCe(t);
  563. var e = a2(t), n = [];
  564. for (var r in t)
  565. r == "constructor" && (e || !CCe.call(t, r)) || n.push(r);
  566. return n;
  567. }
  568. function B_(t) {
  569. return om(t) ? Gee(t, !0) : TCe(t);
  570. }
  571. var PCe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, $Ce = /^\w*$/;
  572. function aN(t, e) {
  573. if (za(t))
  574. return !1;
  575. var n = typeof t;
  576. return n == "number" || n == "symbol" || n == "boolean" || t == null || n2(t) ? !0 : $Ce.test(t) || !PCe.test(t) || e != null && t in Object(e);
  577. }
  578. var bb = ap(Object, "create");
  579. function ACe() {
  580. this.__data__ = bb ? bb(null) : {}, this.size = 0;
  581. }
  582. function ECe(t) {
  583. var e = this.has(t) && delete this.__data__[t];
  584. return this.size -= e ? 1 : 0, e;
  585. }
  586. var MCe = "__lodash_hash_undefined__", ICe = Object.prototype, DCe = ICe.hasOwnProperty;
  587. function RCe(t) {
  588. var e = this.__data__;
  589. if (bb) {
  590. var n = e[t];
  591. return n === MCe ? void 0 : n;
  592. }
  593. return DCe.call(e, t) ? e[t] : void 0;
  594. }
  595. var kCe = Object.prototype, LCe = kCe.hasOwnProperty;
  596. function NCe(t) {
  597. var e = this.__data__;
  598. return bb ? e[t] !== void 0 : LCe.call(e, t);
  599. }
  600. var BCe = "__lodash_hash_undefined__";
  601. function zCe(t, e) {
  602. var n = this.__data__;
  603. return this.size += this.has(t) ? 0 : 1, n[t] = bb && e === void 0 ? BCe : e, this;
  604. }
  605. function kh(t) {
  606. var e = -1, n = t == null ? 0 : t.length;
  607. for (this.clear(); ++e < n; ) {
  608. var r = t[e];
  609. this.set(r[0], r[1]);
  610. }
  611. }
  612. kh.prototype.clear = ACe;
  613. kh.prototype.delete = ECe;
  614. kh.prototype.get = RCe;
  615. kh.prototype.has = NCe;
  616. kh.prototype.set = zCe;
  617. function VCe() {
  618. this.__data__ = [], this.size = 0;
  619. }
  620. function l2(t, e) {
  621. for (var n = t.length; n--; )
  622. if (L_(t[n][0], e))
  623. return n;
  624. return -1;
  625. }
  626. var FCe = Array.prototype, WCe = FCe.splice;
  627. function QCe(t) {
  628. var e = this.__data__, n = l2(e, t);
  629. if (n < 0)
  630. return !1;
  631. var r = e.length - 1;
  632. return n == r ? e.pop() : WCe.call(e, n, 1), --this.size, !0;
  633. }
  634. function HCe(t) {
  635. var e = this.__data__, n = l2(e, t);
  636. return n < 0 ? void 0 : e[n][1];
  637. }
  638. function GCe(t) {
  639. return l2(this.__data__, t) > -1;
  640. }
  641. function jCe(t, e) {
  642. var n = this.__data__, r = l2(n, t);
  643. return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
  644. }
  645. function Ku(t) {
  646. var e = -1, n = t == null ? 0 : t.length;
  647. for (this.clear(); ++e < n; ) {
  648. var r = t[e];
  649. this.set(r[0], r[1]);
  650. }
  651. }
  652. Ku.prototype.clear = VCe;
  653. Ku.prototype.delete = QCe;
  654. Ku.prototype.get = HCe;
  655. Ku.prototype.has = GCe;
  656. Ku.prototype.set = jCe;
  657. var _b = ap(Ys, "Map");
  658. function ZCe() {
  659. this.size = 0, this.__data__ = {
  660. hash: new kh(),
  661. map: new (_b || Ku)(),
  662. string: new kh()
  663. };
  664. }
  665. function UCe(t) {
  666. var e = typeof t;
  667. return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
  668. }
  669. function u2(t, e) {
  670. var n = t.__data__;
  671. return UCe(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
  672. }
  673. function XCe(t) {
  674. var e = u2(this, t).delete(t);
  675. return this.size -= e ? 1 : 0, e;
  676. }
  677. function YCe(t) {
  678. return u2(this, t).get(t);
  679. }
  680. function qCe(t) {
  681. return u2(this, t).has(t);
  682. }
  683. function KCe(t, e) {
  684. var n = u2(this, t), r = n.size;
  685. return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
  686. }
  687. function Ju(t) {
  688. var e = -1, n = t == null ? 0 : t.length;
  689. for (this.clear(); ++e < n; ) {
  690. var r = t[e];
  691. this.set(r[0], r[1]);
  692. }
  693. }
  694. Ju.prototype.clear = ZCe;
  695. Ju.prototype.delete = XCe;
  696. Ju.prototype.get = YCe;
  697. Ju.prototype.has = qCe;
  698. Ju.prototype.set = KCe;
  699. var JCe = "Expected a function";
  700. function oN(t, e) {
  701. if (typeof t != "function" || e != null && typeof e != "function")
  702. throw new TypeError(JCe);
  703. var n = function() {
  704. var r = arguments, i = e ? e.apply(this, r) : r[0], a = n.cache;
  705. if (a.has(i))
  706. return a.get(i);
  707. var o = t.apply(this, r);
  708. return n.cache = a.set(i, o) || a, o;
  709. };
  710. return n.cache = new (oN.Cache || Ju)(), n;
  711. }
  712. oN.Cache = Ju;
  713. var eTe = 500;
  714. function tTe(t) {
  715. var e = oN(t, function(r) {
  716. return n.size === eTe && n.clear(), r;
  717. }), n = e.cache;
  718. return e;
  719. }
  720. var nTe = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, rTe = /\\(\\)?/g, iTe = tTe(function(t) {
  721. var e = [];
  722. return t.charCodeAt(0) === 46 && e.push(""), t.replace(nTe, function(n, r, i, a) {
  723. e.push(i ? a.replace(rTe, "$1") : r || n);
  724. }), e;
  725. });
  726. function aTe(t) {
  727. return t == null ? "" : kee(t);
  728. }
  729. function sm(t, e) {
  730. return za(t) ? t : aN(t, e) ? [t] : iTe(aTe(t));
  731. }
  732. var oTe = 1 / 0;
  733. function lm(t) {
  734. if (typeof t == "string" || n2(t))
  735. return t;
  736. var e = t + "";
  737. return e == "0" && 1 / t == -oTe ? "-0" : e;
  738. }
  739. function c2(t, e) {
  740. e = sm(e, t);
  741. for (var n = 0, r = e.length; t != null && n < r; )
  742. t = t[lm(e[n++])];
  743. return n && n == r ? t : void 0;
  744. }
  745. function vn(t, e, n) {
  746. var r = t == null ? void 0 : c2(t, e);
  747. return r === void 0 ? n : r;
  748. }
  749. function sN(t, e) {
  750. for (var n = -1, r = e.length, i = t.length; ++n < r; )
  751. t[i + n] = e[n];
  752. return t;
  753. }
  754. var BF = ts ? ts.isConcatSpreadable : void 0;
  755. function sTe(t) {
  756. return za(t) || hg(t) || !!(BF && t && t[BF]);
  757. }
  758. function lTe(t, e, n, r, i) {
  759. var a = -1, o = t.length;
  760. for (n || (n = sTe), i || (i = []); ++a < o; ) {
  761. var s = t[a];
  762. n(s) ? sN(i, s) : i[i.length] = s;
  763. }
  764. return i;
  765. }
  766. function uTe(t) {
  767. var e = t == null ? 0 : t.length;
  768. return e ? lTe(t) : [];
  769. }
  770. function Uee(t) {
  771. return Bee(Fee(t, void 0, uTe), t + "");
  772. }
  773. var lN = jee(Object.getPrototypeOf, Object), cTe = "[object Object]", fTe = Function.prototype, dTe = Object.prototype, Xee = fTe.toString, hTe = dTe.hasOwnProperty, pTe = Xee.call(Object);
  774. function uN(t) {
  775. if (!Fs(t) || Ef(t) != cTe)
  776. return !1;
  777. var e = lN(t);
  778. if (e === null)
  779. return !0;
  780. var n = hTe.call(e, "constructor") && e.constructor;
  781. return typeof n == "function" && n instanceof n && Xee.call(n) == pTe;
  782. }
  783. function vTe(t, e, n) {
  784. var r = -1, i = t.length;
  785. e < 0 && (e = -e > i ? 0 : i + e), n = n > i ? i : n, n < 0 && (n += i), i = e > n ? 0 : n - e >>> 0, e >>>= 0;
  786. for (var a = Array(i); ++r < i; )
  787. a[r] = t[r + e];
  788. return a;
  789. }
  790. function gTe() {
  791. this.__data__ = new Ku(), this.size = 0;
  792. }
  793. function mTe(t) {
  794. var e = this.__data__, n = e.delete(t);
  795. return this.size = e.size, n;
  796. }
  797. function yTe(t) {
  798. return this.__data__.get(t);
  799. }
  800. function bTe(t) {
  801. return this.__data__.has(t);
  802. }
  803. var _Te = 200;
  804. function OTe(t, e) {
  805. var n = this.__data__;
  806. if (n instanceof Ku) {
  807. var r = n.__data__;
  808. if (!_b || r.length < _Te - 1)
  809. return r.push([t, e]), this.size = ++n.size, this;
  810. n = this.__data__ = new Ju(r);
  811. }
  812. return n.set(t, e), this.size = n.size, this;
  813. }
  814. function Rs(t) {
  815. var e = this.__data__ = new Ku(t);
  816. this.size = e.size;
  817. }
  818. Rs.prototype.clear = gTe;
  819. Rs.prototype.delete = mTe;
  820. Rs.prototype.get = yTe;
  821. Rs.prototype.has = bTe;
  822. Rs.prototype.set = OTe;
  823. function STe(t, e) {
  824. return t && am(e, N_(e), t);
  825. }
  826. function xTe(t, e) {
  827. return t && am(e, B_(e), t);
  828. }
  829. var Yee = typeof exports == "object" && exports && !exports.nodeType && exports, zF = Yee && typeof module == "object" && module && !module.nodeType && module, wTe = zF && zF.exports === Yee, VF = wTe ? Ys.Buffer : void 0, FF = VF ? VF.allocUnsafe : void 0;
  830. function qee(t, e) {
  831. if (e)
  832. return t.slice();
  833. var n = t.length, r = FF ? FF(n) : new t.constructor(n);
  834. return t.copy(r), r;
  835. }
  836. function CTe(t, e) {
  837. for (var n = -1, r = t == null ? 0 : t.length, i = 0, a = []; ++n < r; ) {
  838. var o = t[n];
  839. e(o, n, t) && (a[i++] = o);
  840. }
  841. return a;
  842. }
  843. function Kee() {
  844. return [];
  845. }
  846. var TTe = Object.prototype, PTe = TTe.propertyIsEnumerable, WF = Object.getOwnPropertySymbols, cN = WF ? function(t) {
  847. return t == null ? [] : (t = Object(t), CTe(WF(t), function(e) {
  848. return PTe.call(t, e);
  849. }));
  850. } : Kee;
  851. function $Te(t, e) {
  852. return am(t, cN(t), e);
  853. }
  854. var ATe = Object.getOwnPropertySymbols, Jee = ATe ? function(t) {
  855. for (var e = []; t; )
  856. sN(e, cN(t)), t = lN(t);
  857. return e;
  858. } : Kee;
  859. function ETe(t, e) {
  860. return am(t, Jee(t), e);
  861. }
  862. function ete(t, e, n) {
  863. var r = e(t);
  864. return za(t) ? r : sN(r, n(t));
  865. }
  866. function HD(t) {
  867. return ete(t, N_, cN);
  868. }
  869. function tte(t) {
  870. return ete(t, B_, Jee);
  871. }
  872. var GD = ap(Ys, "DataView"), jD = ap(Ys, "Promise"), zv = ap(Ys, "Set"), QF = "[object Map]", MTe = "[object Object]", HF = "[object Promise]", GF = "[object Set]", jF = "[object WeakMap]", ZF = "[object DataView]", ITe = ip(GD), DTe = ip(_b), RTe = ip(jD), kTe = ip(zv), LTe = ip(QD), Wo = Ef;
  873. (GD && Wo(new GD(new ArrayBuffer(1))) != ZF || _b && Wo(new _b()) != QF || jD && Wo(jD.resolve()) != HF || zv && Wo(new zv()) != GF || QD && Wo(new QD()) != jF) && (Wo = function(t) {
  874. var e = Ef(t), n = e == MTe ? t.constructor : void 0, r = n ? ip(n) : "";
  875. if (r)
  876. switch (r) {
  877. case ITe:
  878. return ZF;
  879. case DTe:
  880. return QF;
  881. case RTe:
  882. return HF;
  883. case kTe:
  884. return GF;
  885. case LTe:
  886. return jF;
  887. }
  888. return e;
  889. });
  890. var NTe = Object.prototype, BTe = NTe.hasOwnProperty;
  891. function zTe(t) {
  892. var e = t.length, n = new t.constructor(e);
  893. return e && typeof t[0] == "string" && BTe.call(t, "index") && (n.index = t.index, n.input = t.input), n;
  894. }
  895. var Vw = Ys.Uint8Array;
  896. function fN(t) {
  897. var e = new t.constructor(t.byteLength);
  898. return new Vw(e).set(new Vw(t)), e;
  899. }
  900. function VTe(t, e) {
  901. var n = e ? fN(t.buffer) : t.buffer;
  902. return new t.constructor(n, t.byteOffset, t.byteLength);
  903. }
  904. var FTe = /\w*$/;
  905. function WTe(t) {
  906. var e = new t.constructor(t.source, FTe.exec(t));
  907. return e.lastIndex = t.lastIndex, e;
  908. }
  909. var UF = ts ? ts.prototype : void 0, XF = UF ? UF.valueOf : void 0;
  910. function QTe(t) {
  911. return XF ? Object(XF.call(t)) : {};
  912. }
  913. function nte(t, e) {
  914. var n = e ? fN(t.buffer) : t.buffer;
  915. return new t.constructor(n, t.byteOffset, t.length);
  916. }
  917. var HTe = "[object Boolean]", GTe = "[object Date]", jTe = "[object Map]", ZTe = "[object Number]", UTe = "[object RegExp]", XTe = "[object Set]", YTe = "[object String]", qTe = "[object Symbol]", KTe = "[object ArrayBuffer]", JTe = "[object DataView]", e2e = "[object Float32Array]", t2e = "[object Float64Array]", n2e = "[object Int8Array]", r2e = "[object Int16Array]", i2e = "[object Int32Array]", a2e = "[object Uint8Array]", o2e = "[object Uint8ClampedArray]", s2e = "[object Uint16Array]", l2e = "[object Uint32Array]";
  918. function u2e(t, e, n) {
  919. var r = t.constructor;
  920. switch (e) {
  921. case KTe:
  922. return fN(t);
  923. case HTe:
  924. case GTe:
  925. return new r(+t);
  926. case JTe:
  927. return VTe(t, n);
  928. case e2e:
  929. case t2e:
  930. case n2e:
  931. case r2e:
  932. case i2e:
  933. case a2e:
  934. case o2e:
  935. case s2e:
  936. case l2e:
  937. return nte(t, n);
  938. case jTe:
  939. return new r();
  940. case ZTe:
  941. case YTe:
  942. return new r(t);
  943. case UTe:
  944. return WTe(t);
  945. case XTe:
  946. return new r();
  947. case qTe:
  948. return QTe(t);
  949. }
  950. }
  951. function rte(t) {
  952. return typeof t.constructor == "function" && !a2(t) ? bwe(lN(t)) : {};
  953. }
  954. var c2e = "[object Map]";
  955. function f2e(t) {
  956. return Fs(t) && Wo(t) == c2e;
  957. }
  958. var YF = vg && vg.isMap, d2e = YF ? o2(YF) : f2e, h2e = "[object Set]";
  959. function p2e(t) {
  960. return Fs(t) && Wo(t) == h2e;
  961. }
  962. var qF = vg && vg.isSet, v2e = qF ? o2(qF) : p2e, g2e = 1, m2e = 2, y2e = 4, ite = "[object Arguments]", b2e = "[object Array]", _2e = "[object Boolean]", O2e = "[object Date]", S2e = "[object Error]", ate = "[object Function]", x2e = "[object GeneratorFunction]", w2e = "[object Map]", C2e = "[object Number]", ote = "[object Object]", T2e = "[object RegExp]", P2e = "[object Set]", $2e = "[object String]", A2e = "[object Symbol]", E2e = "[object WeakMap]", M2e = "[object ArrayBuffer]", I2e = "[object DataView]", D2e = "[object Float32Array]", R2e = "[object Float64Array]", k2e = "[object Int8Array]", L2e = "[object Int16Array]", N2e = "[object Int32Array]", B2e = "[object Uint8Array]", z2e = "[object Uint8ClampedArray]", V2e = "[object Uint16Array]", F2e = "[object Uint32Array]", Zn = {};
  963. Zn[ite] = Zn[b2e] = Zn[M2e] = Zn[I2e] = Zn[_2e] = Zn[O2e] = Zn[D2e] = Zn[R2e] = Zn[k2e] = Zn[L2e] = Zn[N2e] = Zn[w2e] = Zn[C2e] = Zn[ote] = Zn[T2e] = Zn[P2e] = Zn[$2e] = Zn[A2e] = Zn[B2e] = Zn[z2e] = Zn[V2e] = Zn[F2e] = !0;
  964. Zn[S2e] = Zn[ate] = Zn[E2e] = !1;
  965. function Ry(t, e, n, r, i, a) {
  966. var o, s = e & g2e, l = e & m2e, u = e & y2e;
  967. if (n && (o = i ? n(t, r, i, a) : n(t)), o !== void 0)
  968. return o;
  969. if (!Ti(t))
  970. return t;
  971. var c = za(t);
  972. if (c) {
  973. if (o = zTe(t), !s)
  974. return Nee(t, o);
  975. } else {
  976. var f = Wo(t), d = f == ate || f == x2e;
  977. if (pg(t))
  978. return qee(t, s);
  979. if (f == ote || f == ite || d && !i) {
  980. if (o = l || d ? {} : rte(t), !s)
  981. return l ? ETe(t, xTe(o, t)) : $Te(t, STe(o, t));
  982. } else {
  983. if (!Zn[f])
  984. return i ? t : {};
  985. o = u2e(t, f, s);
  986. }
  987. }
  988. a || (a = new Rs());
  989. var h = a.get(t);
  990. if (h)
  991. return h;
  992. a.set(t, o), v2e(t) ? t.forEach(function(g) {
  993. o.add(Ry(g, e, n, g, t, a));
  994. }) : d2e(t) && t.forEach(function(g, m) {
  995. o.set(m, Ry(g, e, n, m, t, a));
  996. });
  997. var p = u ? l ? tte : HD : l ? B_ : N_, v = c ? void 0 : p(t);
  998. return Pwe(v || t, function(g, m) {
  999. v && (m = g, g = t[m]), nN(o, m, Ry(g, e, n, m, t, a));
  1000. }), o;
  1001. }
  1002. var W2e = 1, Q2e = 4;
  1003. function ph(t) {
  1004. return Ry(t, W2e | Q2e);
  1005. }
  1006. var H2e = "__lodash_hash_undefined__";
  1007. function G2e(t) {
  1008. return this.__data__.set(t, H2e), this;
  1009. }
  1010. function j2e(t) {
  1011. return this.__data__.has(t);
  1012. }
  1013. function gg(t) {
  1014. var e = -1, n = t == null ? 0 : t.length;
  1015. for (this.__data__ = new Ju(); ++e < n; )
  1016. this.add(t[e]);
  1017. }
  1018. gg.prototype.add = gg.prototype.push = G2e;
  1019. gg.prototype.has = j2e;
  1020. function Z2e(t, e) {
  1021. for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
  1022. if (e(t[n], n, t))
  1023. return !0;
  1024. return !1;
  1025. }
  1026. function Fw(t, e) {
  1027. return t.has(e);
  1028. }
  1029. var U2e = 1, X2e = 2;
  1030. function ste(t, e, n, r, i, a) {
  1031. var o = n & U2e, s = t.length, l = e.length;
  1032. if (s != l && !(o && l > s))
  1033. return !1;
  1034. var u = a.get(t), c = a.get(e);
  1035. if (u && c)
  1036. return u == e && c == t;
  1037. var f = -1, d = !0, h = n & X2e ? new gg() : void 0;
  1038. for (a.set(t, e), a.set(e, t); ++f < s; ) {
  1039. var p = t[f], v = e[f];
  1040. if (r)
  1041. var g = o ? r(v, p, f, e, t, a) : r(p, v, f, t, e, a);
  1042. if (g !== void 0) {
  1043. if (g)
  1044. continue;
  1045. d = !1;
  1046. break;
  1047. }
  1048. if (h) {
  1049. if (!Z2e(e, function(m, y) {
  1050. if (!Fw(h, y) && (p === m || i(p, m, n, r, a)))
  1051. return h.push(y);
  1052. })) {
  1053. d = !1;
  1054. break;
  1055. }
  1056. } else if (!(p === v || i(p, v, n, r, a))) {
  1057. d = !1;
  1058. break;
  1059. }
  1060. }
  1061. return a.delete(t), a.delete(e), d;
  1062. }
  1063. function Y2e(t) {
  1064. var e = -1, n = Array(t.size);
  1065. return t.forEach(function(r, i) {
  1066. n[++e] = [i, r];
  1067. }), n;
  1068. }
  1069. function dN(t) {
  1070. var e = -1, n = Array(t.size);
  1071. return t.forEach(function(r) {
  1072. n[++e] = r;
  1073. }), n;
  1074. }
  1075. var q2e = 1, K2e = 2, J2e = "[object Boolean]", ePe = "[object Date]", tPe = "[object Error]", nPe = "[object Map]", rPe = "[object Number]", iPe = "[object RegExp]", aPe = "[object Set]", oPe = "[object String]", sPe = "[object Symbol]", lPe = "[object ArrayBuffer]", uPe = "[object DataView]", KF = ts ? ts.prototype : void 0, LA = KF ? KF.valueOf : void 0;
  1076. function cPe(t, e, n, r, i, a, o) {
  1077. switch (n) {
  1078. case uPe:
  1079. if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
  1080. return !1;
  1081. t = t.buffer, e = e.buffer;
  1082. case lPe:
  1083. return !(t.byteLength != e.byteLength || !a(new Vw(t), new Vw(e)));
  1084. case J2e:
  1085. case ePe:
  1086. case rPe:
  1087. return L_(+t, +e);
  1088. case tPe:
  1089. return t.name == e.name && t.message == e.message;
  1090. case iPe:
  1091. case oPe:
  1092. return t == e + "";
  1093. case nPe:
  1094. var s = Y2e;
  1095. case aPe:
  1096. var l = r & q2e;
  1097. if (s || (s = dN), t.size != e.size && !l)
  1098. return !1;
  1099. var u = o.get(t);
  1100. if (u)
  1101. return u == e;
  1102. r |= K2e, o.set(t, e);
  1103. var c = ste(s(t), s(e), r, i, a, o);
  1104. return o.delete(t), c;
  1105. case sPe:
  1106. if (LA)
  1107. return LA.call(t) == LA.call(e);
  1108. }
  1109. return !1;
  1110. }
  1111. var fPe = 1, dPe = Object.prototype, hPe = dPe.hasOwnProperty;
  1112. function pPe(t, e, n, r, i, a) {
  1113. var o = n & fPe, s = HD(t), l = s.length, u = HD(e), c = u.length;
  1114. if (l != c && !o)
  1115. return !1;
  1116. for (var f = l; f--; ) {
  1117. var d = s[f];
  1118. if (!(o ? d in e : hPe.call(e, d)))
  1119. return !1;
  1120. }
  1121. var h = a.get(t), p = a.get(e);
  1122. if (h && p)
  1123. return h == e && p == t;
  1124. var v = !0;
  1125. a.set(t, e), a.set(e, t);
  1126. for (var g = o; ++f < l; ) {
  1127. d = s[f];
  1128. var m = t[d], y = e[d];
  1129. if (r)
  1130. var _ = o ? r(y, m, d, e, t, a) : r(m, y, d, t, e, a);
  1131. if (!(_ === void 0 ? m === y || i(m, y, n, r, a) : _)) {
  1132. v = !1;
  1133. break;
  1134. }
  1135. g || (g = d == "constructor");
  1136. }
  1137. if (v && !g) {
  1138. var O = t.constructor, S = e.constructor;
  1139. O != S && "constructor" in t && "constructor" in e && !(typeof O == "function" && O instanceof O && typeof S == "function" && S instanceof S) && (v = !1);
  1140. }
  1141. return a.delete(t), a.delete(e), v;
  1142. }
  1143. var vPe = 1, JF = "[object Arguments]", eW = "[object Array]", IO = "[object Object]", gPe = Object.prototype, tW = gPe.hasOwnProperty;
  1144. function mPe(t, e, n, r, i, a) {
  1145. var o = za(t), s = za(e), l = o ? eW : Wo(t), u = s ? eW : Wo(e);
  1146. l = l == JF ? IO : l, u = u == JF ? IO : u;
  1147. var c = l == IO, f = u == IO, d = l == u;
  1148. if (d && pg(t)) {
  1149. if (!pg(e))
  1150. return !1;
  1151. o = !0, c = !1;
  1152. }
  1153. if (d && !c)
  1154. return a || (a = new Rs()), o || s2(t) ? ste(t, e, n, r, i, a) : cPe(t, e, l, n, r, i, a);
  1155. if (!(n & vPe)) {
  1156. var h = c && tW.call(t, "__wrapped__"), p = f && tW.call(e, "__wrapped__");
  1157. if (h || p) {
  1158. var v = h ? t.value() : t, g = p ? e.value() : e;
  1159. return a || (a = new Rs()), i(v, g, n, r, a);
  1160. }
  1161. }
  1162. return d ? (a || (a = new Rs()), pPe(t, e, n, r, i, a)) : !1;
  1163. }
  1164. function f2(t, e, n, r, i) {
  1165. return t === e ? !0 : t == null || e == null || !Fs(t) && !Fs(e) ? t !== t && e !== e : mPe(t, e, n, r, f2, i);
  1166. }
  1167. var yPe = 1, bPe = 2;
  1168. function _Pe(t, e, n, r) {
  1169. var i = n.length, a = i;
  1170. if (t == null)
  1171. return !a;
  1172. for (t = Object(t); i--; ) {
  1173. var o = n[i];
  1174. if (o[2] ? o[1] !== t[o[0]] : !(o[0] in t))
  1175. return !1;
  1176. }
  1177. for (; ++i < a; ) {
  1178. o = n[i];
  1179. var s = o[0], l = t[s], u = o[1];
  1180. if (o[2]) {
  1181. if (l === void 0 && !(s in t))
  1182. return !1;
  1183. } else {
  1184. var c = new Rs(), f;
  1185. if (!(f === void 0 ? f2(u, l, yPe | bPe, r, c) : f))
  1186. return !1;
  1187. }
  1188. }
  1189. return !0;
  1190. }
  1191. function lte(t) {
  1192. return t === t && !Ti(t);
  1193. }
  1194. function OPe(t) {
  1195. for (var e = N_(t), n = e.length; n--; ) {
  1196. var r = e[n], i = t[r];
  1197. e[n] = [r, i, lte(i)];
  1198. }
  1199. return e;
  1200. }
  1201. function ute(t, e) {
  1202. return function(n) {
  1203. return n == null ? !1 : n[t] === e && (e !== void 0 || t in Object(n));
  1204. };
  1205. }
  1206. function SPe(t) {
  1207. var e = OPe(t);
  1208. return e.length == 1 && e[0][2] ? ute(e[0][0], e[0][1]) : function(n) {
  1209. return n === t || _Pe(n, t, e);
  1210. };
  1211. }
  1212. function xPe(t, e) {
  1213. return t != null && e in Object(t);
  1214. }
  1215. function wPe(t, e, n) {
  1216. e = sm(e, t);
  1217. for (var r = -1, i = e.length, a = !1; ++r < i; ) {
  1218. var o = lm(e[r]);
  1219. if (!(a = t != null && n(t, o)))
  1220. break;
  1221. t = t[o];
  1222. }
  1223. return a || ++r != i ? a : (i = t == null ? 0 : t.length, !!i && iN(i) && i2(o, i) && (za(t) || hg(t)));
  1224. }
  1225. function cte(t, e) {
  1226. return t != null && wPe(t, e, xPe);
  1227. }
  1228. var CPe = 1, TPe = 2;
  1229. function PPe(t, e) {
  1230. return aN(t) && lte(e) ? ute(lm(t), e) : function(n) {
  1231. var r = vn(n, t);
  1232. return r === void 0 && r === e ? cte(n, t) : f2(e, r, CPe | TPe);
  1233. };
  1234. }
  1235. function $Pe(t) {
  1236. return function(e) {
  1237. return e == null ? void 0 : e[t];
  1238. };
  1239. }
  1240. function APe(t) {
  1241. return function(e) {
  1242. return c2(e, t);
  1243. };
  1244. }
  1245. function EPe(t) {
  1246. return aN(t) ? $Pe(lm(t)) : APe(t);
  1247. }
  1248. function fte(t) {
  1249. return typeof t == "function" ? t : t == null ? J4 : typeof t == "object" ? za(t) ? PPe(t[0], t[1]) : SPe(t) : EPe(t);
  1250. }
  1251. function MPe(t) {
  1252. return function(e, n, r) {
  1253. for (var i = -1, a = Object(e), o = r(e), s = o.length; s--; ) {
  1254. var l = o[++i];
  1255. if (n(a[l], l, a) === !1)
  1256. break;
  1257. }
  1258. return e;
  1259. };
  1260. }
  1261. var IPe = MPe(), NA = function() {
  1262. return Ys.Date.now();
  1263. }, DPe = "Expected a function", RPe = Math.max, kPe = Math.min;
  1264. function hN(t, e, n) {
  1265. var r, i, a, o, s, l, u = 0, c = !1, f = !1, d = !0;
  1266. if (typeof t != "function")
  1267. throw new TypeError(DPe);
  1268. e = WD(e) || 0, Ti(n) && (c = !!n.leading, f = "maxWait" in n, a = f ? RPe(WD(n.maxWait) || 0, e) : a, d = "trailing" in n ? !!n.trailing : d);
  1269. function h(x) {
  1270. var C = r, P = i;
  1271. return r = i = void 0, u = x, o = t.apply(P, C), o;
  1272. }
  1273. function p(x) {
  1274. return u = x, s = setTimeout(m, e), c ? h(x) : o;
  1275. }
  1276. function v(x) {
  1277. var C = x - l, P = x - u, $ = e - C;
  1278. return f ? kPe($, a - P) : $;
  1279. }
  1280. function g(x) {
  1281. var C = x - l, P = x - u;
  1282. return l === void 0 || C >= e || C < 0 || f && P >= a;
  1283. }
  1284. function m() {
  1285. var x = NA();
  1286. if (g(x))
  1287. return y(x);
  1288. s = setTimeout(m, v(x));
  1289. }
  1290. function y(x) {
  1291. return s = void 0, d && r ? h(x) : (r = i = void 0, o);
  1292. }
  1293. function _() {
  1294. s !== void 0 && clearTimeout(s), u = 0, r = l = i = s = void 0;
  1295. }
  1296. function O() {
  1297. return s === void 0 ? o : y(NA());
  1298. }
  1299. function S() {
  1300. var x = NA(), C = g(x);
  1301. if (r = arguments, i = this, l = x, C) {
  1302. if (s === void 0)
  1303. return p(l);
  1304. if (f)
  1305. return clearTimeout(s), s = setTimeout(m, e), h(l);
  1306. }
  1307. return s === void 0 && (s = setTimeout(m, e)), o;
  1308. }
  1309. return S.cancel = _, S.flush = O, S;
  1310. }
  1311. function ZD(t, e, n) {
  1312. (n !== void 0 && !L_(t[e], n) || n === void 0 && !(e in t)) && tN(t, e, n);
  1313. }
  1314. function dte(t) {
  1315. return Fs(t) && om(t);
  1316. }
  1317. function UD(t, e) {
  1318. if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
  1319. return t[e];
  1320. }
  1321. function LPe(t) {
  1322. return am(t, B_(t));
  1323. }
  1324. function NPe(t, e, n, r, i, a, o) {
  1325. var s = UD(t, n), l = UD(e, n), u = o.get(l);
  1326. if (u) {
  1327. ZD(t, n, u);
  1328. return;
  1329. }
  1330. var c = a ? a(s, l, n + "", t, e, o) : void 0, f = c === void 0;
  1331. if (f) {
  1332. var d = za(l), h = !d && pg(l), p = !d && !h && s2(l);
  1333. c = l, d || h || p ? za(s) ? c = s : dte(s) ? c = Nee(s) : h ? (f = !1, c = qee(l, !0)) : p ? (f = !1, c = nte(l, !0)) : c = [] : uN(l) || hg(l) ? (c = s, hg(s) ? c = LPe(s) : (!Ti(s) || eN(s)) && (c = rte(l))) : f = !1;
  1334. }
  1335. f && (o.set(l, c), i(c, l, r, a, o), o.delete(l)), ZD(t, n, c);
  1336. }
  1337. function pN(t, e, n, r, i) {
  1338. t !== e && IPe(e, function(a, o) {
  1339. if (i || (i = new Rs()), Ti(a))
  1340. NPe(t, e, o, n, pN, r, i);
  1341. else {
  1342. var s = r ? r(UD(t, o), a, o + "", t, e, i) : void 0;
  1343. s === void 0 && (s = a), ZD(t, o, s);
  1344. }
  1345. }, B_);
  1346. }
  1347. function hte(t, e, n, r, i, a) {
  1348. return Ti(t) && Ti(e) && (a.set(e, t), pN(t, e, void 0, hte, a), a.delete(e)), t;
  1349. }
  1350. var BPe = Nwe(function(t, e, n, r) {
  1351. pN(t, e, n, r);
  1352. }), pte = rN(function(t) {
  1353. return t.push(void 0, hte), Lee(BPe, void 0, t);
  1354. });
  1355. function zPe(t) {
  1356. var e = t == null ? 0 : t.length;
  1357. return e ? t[e - 1] : void 0;
  1358. }
  1359. function VPe(t) {
  1360. return function(e, n, r) {
  1361. var i = Object(e);
  1362. if (!om(e)) {
  1363. var a = fte(n);
  1364. e = N_(e), n = function(s) {
  1365. return a(i[s], s, i);
  1366. };
  1367. }
  1368. var o = t(e, n, r);
  1369. return o > -1 ? i[a ? e[o] : o] : void 0;
  1370. };
  1371. }
  1372. var FPe = Math.max;
  1373. function WPe(t, e, n) {
  1374. var r = t == null ? 0 : t.length;
  1375. if (!r)
  1376. return -1;
  1377. var i = n == null ? 0 : nwe(n);
  1378. return i < 0 && (i = FPe(r + i, 0)), zee(t, fte(e), i);
  1379. }
  1380. var QPe = VPe(WPe);
  1381. function Ww(t) {
  1382. for (var e = -1, n = t == null ? 0 : t.length, r = {}; ++e < n; ) {
  1383. var i = t[e];
  1384. r[i[0]] = i[1];
  1385. }
  1386. return r;
  1387. }
  1388. var HPe = Math.min;
  1389. function GPe(t, e, n) {
  1390. for (var r = Vee, i = t[0].length, a = t.length, o = a, s = Array(a), l = 1 / 0, u = []; o--; ) {
  1391. var c = t[o];
  1392. o && e && (c = r2(c, o2(e))), l = HPe(c.length, l), s[o] = i >= 120 && c.length >= 120 ? new gg(o && c) : void 0;
  1393. }
  1394. c = t[0];
  1395. var f = -1, d = s[0];
  1396. e:
  1397. for (; ++f < i && u.length < l; ) {
  1398. var h = c[f], p = h;
  1399. if (h = h !== 0 ? h : 0, !(d ? Fw(d, p) : r(u, p))) {
  1400. for (o = a; --o; ) {
  1401. var v = s[o];
  1402. if (!(v ? Fw(v, p) : r(t[o], p)))
  1403. continue e;
  1404. }
  1405. d && d.push(p), u.push(h);
  1406. }
  1407. }
  1408. return u;
  1409. }
  1410. function jPe(t) {
  1411. return dte(t) ? t : [];
  1412. }
  1413. var ZPe = rN(function(t) {
  1414. var e = r2(t, jPe);
  1415. return e.length && e[0] === t[0] ? GPe(e) : [];
  1416. });
  1417. function UPe(t, e) {
  1418. return e.length < 2 ? t : c2(t, vTe(e, 0, -1));
  1419. }
  1420. var XPe = "[object Map]", YPe = "[object Set]", qPe = Object.prototype, KPe = qPe.hasOwnProperty;
  1421. function vte(t) {
  1422. if (t == null)
  1423. return !0;
  1424. if (om(t) && (za(t) || typeof t == "string" || typeof t.splice == "function" || pg(t) || s2(t) || hg(t)))
  1425. return !t.length;
  1426. var e = Wo(t);
  1427. if (e == XPe || e == YPe)
  1428. return !t.size;
  1429. if (a2(t))
  1430. return !Zee(t).length;
  1431. for (var n in t)
  1432. if (KPe.call(t, n))
  1433. return !1;
  1434. return !0;
  1435. }
  1436. function z_(t, e) {
  1437. return f2(t, e);
  1438. }
  1439. var JPe = "[object Number]";
  1440. function e$e(t) {
  1441. return typeof t == "number" || Fs(t) && Ef(t) == JPe;
  1442. }
  1443. function Jc(t) {
  1444. return t == null;
  1445. }
  1446. function gte(t) {
  1447. return t === void 0;
  1448. }
  1449. function t$e(t, e) {
  1450. return e = sm(e, t), t = UPe(t, e), t == null || delete t[lm(zPe(e))];
  1451. }
  1452. function n$e(t) {
  1453. return uN(t) ? void 0 : t;
  1454. }
  1455. var r$e = 1, i$e = 2, a$e = 4, mte = Uee(function(t, e) {
  1456. var n = {};
  1457. if (t == null)
  1458. return n;
  1459. var r = !1;
  1460. e = r2(e, function(a) {
  1461. return a = sm(a, t), r || (r = a.length > 1), a;
  1462. }), am(t, tte(t), n), r && (n = Ry(n, r$e | i$e | a$e, n$e));
  1463. for (var i = e.length; i--; )
  1464. t$e(n, e[i]);
  1465. return n;
  1466. });
  1467. function yte(t, e, n, r) {
  1468. if (!Ti(t))
  1469. return t;
  1470. e = sm(e, t);
  1471. for (var i = -1, a = e.length, o = a - 1, s = t; s != null && ++i < a; ) {
  1472. var l = lm(e[i]), u = n;
  1473. if (l === "__proto__" || l === "constructor" || l === "prototype")
  1474. return t;
  1475. if (i != o) {
  1476. var c = s[l];
  1477. u = void 0, u === void 0 && (u = Ti(c) ? c : i2(e[i + 1]) ? [] : {});
  1478. }
  1479. nN(s, l, u), s = s[l];
  1480. }
  1481. return t;
  1482. }
  1483. function o$e(t, e, n) {
  1484. for (var r = -1, i = e.length, a = {}; ++r < i; ) {
  1485. var o = e[r], s = c2(t, o);
  1486. n(s, o) && yte(a, sm(o, t), s);
  1487. }
  1488. return a;
  1489. }
  1490. function s$e(t, e) {
  1491. return o$e(t, e, function(n, r) {
  1492. return cte(t, r);
  1493. });
  1494. }
  1495. var mg = Uee(function(t, e) {
  1496. return t == null ? {} : s$e(t, e);
  1497. });
  1498. function vN(t, e, n) {
  1499. return t == null ? t : yte(t, e, n);
  1500. }
  1501. var l$e = "Expected a function";
  1502. function u$e(t, e, n) {
  1503. var r = !0, i = !0;
  1504. if (typeof t != "function")
  1505. throw new TypeError(l$e);
  1506. return Ti(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), hN(t, e, {
  1507. leading: r,
  1508. maxWait: e,
  1509. trailing: i
  1510. });
  1511. }
  1512. var c$e = 1 / 0, f$e = zv && 1 / dN(new zv([, -0]))[1] == c$e ? function(t) {
  1513. return new zv(t);
  1514. } : _we, d$e = 200;
  1515. function h$e(t, e, n) {
  1516. var r = -1, i = Vee, a = t.length, o = !0, s = [], l = s;
  1517. if (a >= d$e) {
  1518. var u = f$e(t);
  1519. if (u)
  1520. return dN(u);
  1521. o = !1, i = Fw, l = new gg();
  1522. } else
  1523. l = s;
  1524. e:
  1525. for (; ++r < a; ) {
  1526. var c = t[r], f = c;
  1527. if (c = c !== 0 ? c : 0, o && f === f) {
  1528. for (var d = l.length; d--; )
  1529. if (l[d] === f)
  1530. continue e;
  1531. s.push(c);
  1532. } else i(l, f, n) || (l !== s && l.push(f), s.push(c));
  1533. }
  1534. return s;
  1535. }
  1536. function BA(t) {
  1537. return t && t.length ? h$e(t) : [];
  1538. }
  1539. const Qw = (t) => t === void 0, hf = (t) => typeof t == "boolean", Ws = (t) => typeof t == "number", Ob = (t) => typeof Element > "u" ? !1 : t instanceof Element, yg = (t) => Jc(t), p$e = (t) => ia(t) ? !Number.isNaN(Number(t)) : !1;
  1540. class bte extends Error {
  1541. constructor(e) {
  1542. super(e), this.name = "ElementPlusError";
  1543. }
  1544. }
  1545. function v$e(t, e) {
  1546. throw new bte(`[${t}] ${e}`);
  1547. }
  1548. function Fi(t, e) {
  1549. if (process.env.NODE_ENV !== "production") {
  1550. const n = ia(t) ? new bte(`[${t}] ${e}`) : t;
  1551. console.warn(n);
  1552. }
  1553. }
  1554. const g$e = "utils/dom/style", _te = (t = "") => t.split(" ").filter((e) => !!e.trim()), nW = (t, e) => {
  1555. if (!t || !e)
  1556. return !1;
  1557. if (e.includes(" "))
  1558. throw new Error("className should not contain space.");
  1559. return t.classList.contains(e);
  1560. }, Ote = (t, e) => {
  1561. !t || !e.trim() || t.classList.add(..._te(e));
  1562. }, Lx = (t, e) => {
  1563. !t || !e.trim() || t.classList.remove(..._te(e));
  1564. }, m$e = (t, e) => {
  1565. var n;
  1566. if (!Fr || !t || !e)
  1567. return "";
  1568. let r = Rxe(e);
  1569. r === "float" && (r = "cssFloat");
  1570. try {
  1571. const i = t.style[r];
  1572. if (i)
  1573. return i;
  1574. const a = (n = document.defaultView) == null ? void 0 : n.getComputedStyle(t, "");
  1575. return a ? a[r] : "";
  1576. } catch {
  1577. return t.style[r];
  1578. }
  1579. };
  1580. function bg(t, e = "px") {
  1581. if (!t)
  1582. return "";
  1583. if (Ws(t) || p$e(t))
  1584. return `${t}${e}`;
  1585. if (ia(t))
  1586. return t;
  1587. Fi(g$e, "binding value must be a string or number");
  1588. }
  1589. let DO;
  1590. const y$e = (t) => {
  1591. var e;
  1592. if (!Fr)
  1593. return 0;
  1594. if (DO !== void 0)
  1595. return DO;
  1596. const n = document.createElement("div");
  1597. n.className = `${t}-scrollbar__wrap`, n.style.visibility = "hidden", n.style.width = "100px", n.style.position = "absolute", n.style.top = "-9999px", document.body.appendChild(n);
  1598. const r = n.offsetWidth;
  1599. n.style.overflow = "scroll";
  1600. const i = document.createElement("div");
  1601. i.style.width = "100%", n.appendChild(i);
  1602. const a = i.offsetWidth;
  1603. return (e = n.parentNode) == null || e.removeChild(n), DO = r - a, DO;
  1604. };
  1605. /*! Element Plus Icons Vue v2.3.1 */
  1606. var b$e = /* @__PURE__ */ ae({
  1607. name: "ArrowDown",
  1608. __name: "arrow-down",
  1609. setup(t) {
  1610. return (e, n) => (be(), Ue("svg", {
  1611. xmlns: "http://www.w3.org/2000/svg",
  1612. viewBox: "0 0 1024 1024"
  1613. }, [
  1614. tt("path", {
  1615. fill: "currentColor",
  1616. d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
  1617. })
  1618. ]));
  1619. }
  1620. }), _$e = b$e, O$e = /* @__PURE__ */ ae({
  1621. name: "CaretRight",
  1622. __name: "caret-right",
  1623. setup(t) {
  1624. return (e, n) => (be(), Ue("svg", {
  1625. xmlns: "http://www.w3.org/2000/svg",
  1626. viewBox: "0 0 1024 1024"
  1627. }, [
  1628. tt("path", {
  1629. fill: "currentColor",
  1630. d: "M384 192v640l384-320.064z"
  1631. })
  1632. ]));
  1633. }
  1634. }), S$e = O$e, x$e = /* @__PURE__ */ ae({
  1635. name: "CircleCheck",
  1636. __name: "circle-check",
  1637. setup(t) {
  1638. return (e, n) => (be(), Ue("svg", {
  1639. xmlns: "http://www.w3.org/2000/svg",
  1640. viewBox: "0 0 1024 1024"
  1641. }, [
  1642. tt("path", {
  1643. fill: "currentColor",
  1644. d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
  1645. }),
  1646. tt("path", {
  1647. fill: "currentColor",
  1648. d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
  1649. })
  1650. ]));
  1651. }
  1652. }), w$e = x$e, C$e = /* @__PURE__ */ ae({
  1653. name: "CircleClose",
  1654. __name: "circle-close",
  1655. setup(t) {
  1656. return (e, n) => (be(), Ue("svg", {
  1657. xmlns: "http://www.w3.org/2000/svg",
  1658. viewBox: "0 0 1024 1024"
  1659. }, [
  1660. tt("path", {
  1661. fill: "currentColor",
  1662. d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
  1663. }),
  1664. tt("path", {
  1665. fill: "currentColor",
  1666. d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
  1667. })
  1668. ]));
  1669. }
  1670. }), Ste = C$e, T$e = /* @__PURE__ */ ae({
  1671. name: "Close",
  1672. __name: "close",
  1673. setup(t) {
  1674. return (e, n) => (be(), Ue("svg", {
  1675. xmlns: "http://www.w3.org/2000/svg",
  1676. viewBox: "0 0 1024 1024"
  1677. }, [
  1678. tt("path", {
  1679. fill: "currentColor",
  1680. d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
  1681. })
  1682. ]));
  1683. }
  1684. }), xte = T$e, P$e = /* @__PURE__ */ ae({
  1685. name: "Hide",
  1686. __name: "hide",
  1687. setup(t) {
  1688. return (e, n) => (be(), Ue("svg", {
  1689. xmlns: "http://www.w3.org/2000/svg",
  1690. viewBox: "0 0 1024 1024"
  1691. }, [
  1692. tt("path", {
  1693. fill: "currentColor",
  1694. d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
  1695. }),
  1696. tt("path", {
  1697. fill: "currentColor",
  1698. d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
  1699. })
  1700. ]));
  1701. }
  1702. }), $$e = P$e, A$e = /* @__PURE__ */ ae({
  1703. name: "Loading",
  1704. __name: "loading",
  1705. setup(t) {
  1706. return (e, n) => (be(), Ue("svg", {
  1707. xmlns: "http://www.w3.org/2000/svg",
  1708. viewBox: "0 0 1024 1024"
  1709. }, [
  1710. tt("path", {
  1711. fill: "currentColor",
  1712. d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
  1713. })
  1714. ]));
  1715. }
  1716. }), gN = A$e, E$e = /* @__PURE__ */ ae({
  1717. name: "View",
  1718. __name: "view",
  1719. setup(t) {
  1720. return (e, n) => (be(), Ue("svg", {
  1721. xmlns: "http://www.w3.org/2000/svg",
  1722. viewBox: "0 0 1024 1024"
  1723. }, [
  1724. tt("path", {
  1725. fill: "currentColor",
  1726. d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
  1727. })
  1728. ]));
  1729. }
  1730. }), M$e = E$e;
  1731. const wte = "__epPropKey", mn = (t) => t, I$e = (t) => Rh(t) && !!t[wte], d2 = (t, e) => {
  1732. if (!Rh(t) || I$e(t))
  1733. return t;
  1734. const { values: n, required: r, default: i, type: a, validator: o } = t, l = {
  1735. type: a,
  1736. required: !!r,
  1737. validator: n || o ? (u) => {
  1738. let c = !1, f = [];
  1739. if (n && (f = Array.from(n), Dh(t, "default") && f.push(i), c || (c = f.includes(u))), o && (c || (c = o(u))), !c && f.length > 0) {
  1740. const d = [...new Set(f)].map((h) => JSON.stringify(h)).join(", ");
  1741. oxe(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`);
  1742. }
  1743. return c;
  1744. } : void 0,
  1745. [wte]: !0
  1746. };
  1747. return Dh(t, "default") && (l.default = i), l;
  1748. }, hr = (t) => Ww(Object.entries(t).map(([e, n]) => [
  1749. e,
  1750. d2(n, e)
  1751. ])), _g = mn([
  1752. String,
  1753. Object,
  1754. Function
  1755. ]), D$e = {
  1756. Close: xte
  1757. }, R$e = {
  1758. validating: gN,
  1759. success: w$e,
  1760. error: Ste
  1761. }, ec = (t, e) => {
  1762. if (t.install = (n) => {
  1763. for (const r of [t, ...Object.values(e ?? {})])
  1764. n.component(r.name, r);
  1765. }, e)
  1766. for (const [n, r] of Object.entries(e))
  1767. t[n] = r;
  1768. return t;
  1769. }, V_ = (t) => (t.install = Kc, t), k$e = (...t) => (e) => {
  1770. t.forEach((n) => {
  1771. Jd(n) ? n(e) : n.value = e;
  1772. });
  1773. }, wa = {
  1774. tab: "Tab",
  1775. enter: "Enter",
  1776. space: "Space",
  1777. left: "ArrowLeft",
  1778. up: "ArrowUp",
  1779. right: "ArrowRight",
  1780. down: "ArrowDown",
  1781. esc: "Escape",
  1782. delete: "Delete",
  1783. backspace: "Backspace",
  1784. numpadEnter: "NumpadEnter",
  1785. pageUp: "PageUp",
  1786. pageDown: "PageDown",
  1787. home: "Home",
  1788. end: "End"
  1789. }, ca = "update:modelValue", Cte = "change", L$e = ["", "default", "small", "large"];
  1790. var Nx = /* @__PURE__ */ ((t) => (t[t.TEXT = 1] = "TEXT", t[t.CLASS = 2] = "CLASS", t[t.STYLE = 4] = "STYLE", t[t.PROPS = 8] = "PROPS", t[t.FULL_PROPS = 16] = "FULL_PROPS", t[t.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", t[t.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", t[t.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", t[t.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", t[t.NEED_PATCH = 512] = "NEED_PATCH", t[t.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", t[t.HOISTED = -1] = "HOISTED", t[t.BAIL = -2] = "BAIL", t))(Nx || {});
  1791. const N$e = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), B$e = (t) => t, z$e = ["class", "style"], V$e = /^on[A-Z]/, F$e = (t = {}) => {
  1792. const { excludeListeners: e = !1, excludeKeys: n } = t, r = V(() => ((n == null ? void 0 : n.value) || []).concat(z$e)), i = In();
  1793. return i ? V(() => {
  1794. var a;
  1795. return Ww(Object.entries((a = i.proxy) == null ? void 0 : a.$attrs).filter(([o]) => !r.value.includes(o) && !(e && V$e.test(o))));
  1796. }) : (Fi("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), V(() => ({})));
  1797. }, Es = ({ from: t, replacement: e, scope: n, version: r, ref: i, type: a = "API" }, o) => {
  1798. me(() => z(o), (s) => {
  1799. s && Fi(n, `[${a}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
  1800. For more detail, please visit: ${i}
  1801. `);
  1802. }, {
  1803. immediate: !0
  1804. });
  1805. }, W$e = (t, e, n, r) => {
  1806. let i = {
  1807. offsetX: 0,
  1808. offsetY: 0
  1809. };
  1810. const a = (l) => {
  1811. const u = l.clientX, c = l.clientY, { offsetX: f, offsetY: d } = i, h = t.value.getBoundingClientRect(), p = h.left, v = h.top, g = h.width, m = h.height, y = document.documentElement.clientWidth, _ = document.documentElement.clientHeight, O = -p + f, S = -v + d, x = y - p - g + f, C = _ - v - m + d, P = (T) => {
  1812. let E = f + T.clientX - u, M = d + T.clientY - c;
  1813. r != null && r.value || (E = Math.min(Math.max(E, O), x), M = Math.min(Math.max(M, S), C)), i = {
  1814. offsetX: E,
  1815. offsetY: M
  1816. }, t.value && (t.value.style.transform = `translate(${bg(E)}, ${bg(M)})`);
  1817. }, $ = () => {
  1818. document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", $);
  1819. };
  1820. document.addEventListener("mousemove", P), document.addEventListener("mouseup", $);
  1821. }, o = () => {
  1822. e.value && t.value && e.value.addEventListener("mousedown", a);
  1823. }, s = () => {
  1824. e.value && t.value && e.value.removeEventListener("mousedown", a);
  1825. };
  1826. _t(() => {
  1827. Vt(() => {
  1828. n.value ? o() : s();
  1829. });
  1830. }), Qt(() => {
  1831. s();
  1832. });
  1833. };
  1834. var Q$e = {
  1835. name: "en",
  1836. el: {
  1837. breadcrumb: {
  1838. label: "Breadcrumb"
  1839. },
  1840. colorpicker: {
  1841. confirm: "OK",
  1842. clear: "Clear",
  1843. defaultLabel: "color picker",
  1844. description: "current color is {color}. press enter to select a new color."
  1845. },
  1846. datepicker: {
  1847. now: "Now",
  1848. today: "Today",
  1849. cancel: "Cancel",
  1850. clear: "Clear",
  1851. confirm: "OK",
  1852. dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
  1853. monthTablePrompt: "Use the arrow keys and enter to select the month",
  1854. yearTablePrompt: "Use the arrow keys and enter to select the year",
  1855. selectedDate: "Selected date",
  1856. selectDate: "Select date",
  1857. selectTime: "Select time",
  1858. startDate: "Start Date",
  1859. startTime: "Start Time",
  1860. endDate: "End Date",
  1861. endTime: "End Time",
  1862. prevYear: "Previous Year",
  1863. nextYear: "Next Year",
  1864. prevMonth: "Previous Month",
  1865. nextMonth: "Next Month",
  1866. year: "",
  1867. month1: "January",
  1868. month2: "February",
  1869. month3: "March",
  1870. month4: "April",
  1871. month5: "May",
  1872. month6: "June",
  1873. month7: "July",
  1874. month8: "August",
  1875. month9: "September",
  1876. month10: "October",
  1877. month11: "November",
  1878. month12: "December",
  1879. week: "week",
  1880. weeks: {
  1881. sun: "Sun",
  1882. mon: "Mon",
  1883. tue: "Tue",
  1884. wed: "Wed",
  1885. thu: "Thu",
  1886. fri: "Fri",
  1887. sat: "Sat"
  1888. },
  1889. weeksFull: {
  1890. sun: "Sunday",
  1891. mon: "Monday",
  1892. tue: "Tuesday",
  1893. wed: "Wednesday",
  1894. thu: "Thursday",
  1895. fri: "Friday",
  1896. sat: "Saturday"
  1897. },
  1898. months: {
  1899. jan: "Jan",
  1900. feb: "Feb",
  1901. mar: "Mar",
  1902. apr: "Apr",
  1903. may: "May",
  1904. jun: "Jun",
  1905. jul: "Jul",
  1906. aug: "Aug",
  1907. sep: "Sep",
  1908. oct: "Oct",
  1909. nov: "Nov",
  1910. dec: "Dec"
  1911. }
  1912. },
  1913. inputNumber: {
  1914. decrease: "decrease number",
  1915. increase: "increase number"
  1916. },
  1917. select: {
  1918. loading: "Loading",
  1919. noMatch: "No matching data",
  1920. noData: "No data",
  1921. placeholder: "Select"
  1922. },
  1923. dropdown: {
  1924. toggleDropdown: "Toggle Dropdown"
  1925. },
  1926. cascader: {
  1927. noMatch: "No matching data",
  1928. loading: "Loading",
  1929. placeholder: "Select",
  1930. noData: "No data"
  1931. },
  1932. pagination: {
  1933. goto: "Go to",
  1934. pagesize: "/page",
  1935. total: "Total {total}",
  1936. pageClassifier: "",
  1937. page: "Page",
  1938. prev: "Go to previous page",
  1939. next: "Go to next page",
  1940. currentPage: "page {pager}",
  1941. prevPages: "Previous {pager} pages",
  1942. nextPages: "Next {pager} pages",
  1943. deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
  1944. },
  1945. dialog: {
  1946. close: "Close this dialog"
  1947. },
  1948. drawer: {
  1949. close: "Close this dialog"
  1950. },
  1951. messagebox: {
  1952. title: "Message",
  1953. confirm: "OK",
  1954. cancel: "Cancel",
  1955. error: "Illegal input",
  1956. close: "Close this dialog"
  1957. },
  1958. upload: {
  1959. deleteTip: "press delete to remove",
  1960. delete: "Delete",
  1961. preview: "Preview",
  1962. continue: "Continue"
  1963. },
  1964. slider: {
  1965. defaultLabel: "slider between {min} and {max}",
  1966. defaultRangeStartLabel: "pick start value",
  1967. defaultRangeEndLabel: "pick end value"
  1968. },
  1969. table: {
  1970. emptyText: "No Data",
  1971. confirmFilter: "Confirm",
  1972. resetFilter: "Reset",
  1973. clearFilter: "All",
  1974. sumText: "Sum"
  1975. },
  1976. tour: {
  1977. next: "Next",
  1978. previous: "Previous",
  1979. finish: "Finish"
  1980. },
  1981. tree: {
  1982. emptyText: "No Data"
  1983. },
  1984. transfer: {
  1985. noMatch: "No matching data",
  1986. noData: "No data",
  1987. titles: ["List 1", "List 2"],
  1988. filterPlaceholder: "Enter keyword",
  1989. noCheckedFormat: "{total} items",
  1990. hasCheckedFormat: "{checked}/{total} checked"
  1991. },
  1992. image: {
  1993. error: "FAILED"
  1994. },
  1995. pageHeader: {
  1996. title: "Back"
  1997. },
  1998. popconfirm: {
  1999. confirmButtonText: "Yes",
  2000. cancelButtonText: "No"
  2001. },
  2002. carousel: {
  2003. leftArrow: "Carousel arrow left",
  2004. rightArrow: "Carousel arrow right",
  2005. indicator: "Carousel switch to index {index}"
  2006. }
  2007. }
  2008. };
  2009. const H$e = (t) => (e, n) => G$e(e, n, z(t)), G$e = (t, e, n) => vn(n, t, t).replace(/\{(\w+)\}/g, (r, i) => {
  2010. var a;
  2011. return `${(a = e == null ? void 0 : e[i]) != null ? a : `{${i}}`}`;
  2012. }), j$e = (t) => {
  2013. const e = V(() => z(t).name), n = Vs(t) ? t : ee(t);
  2014. return {
  2015. lang: e,
  2016. locale: n,
  2017. t: H$e(t)
  2018. };
  2019. }, Z$e = Symbol("localeContextKey"), mN = (t) => {
  2020. const e = et(Z$e, ee());
  2021. return j$e(V(() => e.value || Q$e));
  2022. }, Bx = "el", U$e = "is-", nd = (t, e, n, r, i) => {
  2023. let a = `${t}-${e}`;
  2024. return n && (a += `-${n}`), r && (a += `__${r}`), i && (a += `--${i}`), a;
  2025. }, X$e = Symbol("namespaceContextKey"), yN = (t) => {
  2026. const e = In() ? et(X$e, ee(Bx)) : ee(Bx);
  2027. return V(() => z(e) || Bx);
  2028. }, $n = (t, e) => {
  2029. const n = yN();
  2030. return {
  2031. namespace: n,
  2032. b: (v = "") => nd(n.value, t, v, "", ""),
  2033. e: (v) => v ? nd(n.value, t, "", v, "") : "",
  2034. m: (v) => v ? nd(n.value, t, "", "", v) : "",
  2035. be: (v, g) => v && g ? nd(n.value, t, v, g, "") : "",
  2036. em: (v, g) => v && g ? nd(n.value, t, "", v, g) : "",
  2037. bm: (v, g) => v && g ? nd(n.value, t, v, "", g) : "",
  2038. bem: (v, g, m) => v && g && m ? nd(n.value, t, v, g, m) : "",
  2039. is: (v, ...g) => {
  2040. const m = g.length >= 1 ? g[0] : !0;
  2041. return v && m ? `${U$e}${v}` : "";
  2042. },
  2043. cssVar: (v) => {
  2044. const g = {};
  2045. for (const m in v)
  2046. v[m] && (g[`--${n.value}-${m}`] = v[m]);
  2047. return g;
  2048. },
  2049. cssVarName: (v) => `--${n.value}-${v}`,
  2050. cssVarBlock: (v) => {
  2051. const g = {};
  2052. for (const m in v)
  2053. v[m] && (g[`--${n.value}-${t}-${m}`] = v[m]);
  2054. return g;
  2055. },
  2056. cssVarBlockName: (v) => `--${n.value}-${t}-${v}`
  2057. };
  2058. }, Y$e = (t, e = {}) => {
  2059. Vs(t) || v$e("[useLockscreen]", "You need to pass a ref param to this function");
  2060. const n = e.ns || $n("popup"), r = V(() => n.bm("parent", "hidden"));
  2061. if (!Fr || nW(document.body, r.value))
  2062. return;
  2063. let i = 0, a = !1, o = "0";
  2064. const s = () => {
  2065. setTimeout(() => {
  2066. Lx(document == null ? void 0 : document.body, r.value), a && document && (document.body.style.width = o);
  2067. }, 200);
  2068. };
  2069. me(t, (l) => {
  2070. if (!l) {
  2071. s();
  2072. return;
  2073. }
  2074. a = !nW(document.body, r.value), a && (o = document.body.style.width), i = y$e(n.namespace.value);
  2075. const u = document.documentElement.clientHeight < document.body.scrollHeight, c = m$e(document.body, "overflowY");
  2076. i > 0 && (u || c === "scroll") && a && (document.body.style.width = `calc(100% - ${i}px)`), Ote(document.body, r.value);
  2077. }), im(() => s());
  2078. }, q$e = d2({
  2079. type: mn(Boolean),
  2080. default: null
  2081. }), K$e = d2({
  2082. type: mn(Function)
  2083. }), Tte = (t) => {
  2084. const e = `update:${t}`, n = `onUpdate:${t}`, r = [e], i = {
  2085. [t]: q$e,
  2086. [n]: K$e
  2087. };
  2088. return {
  2089. useModelToggle: ({
  2090. indicator: o,
  2091. toggleReason: s,
  2092. shouldHideWhenRouteChanges: l,
  2093. shouldProceed: u,
  2094. onShow: c,
  2095. onHide: f
  2096. }) => {
  2097. const d = In(), { emit: h } = d, p = d.props, v = V(() => Jd(p[n])), g = V(() => p[t] === null), m = (C) => {
  2098. o.value !== !0 && (o.value = !0, s && (s.value = C), Jd(c) && c(C));
  2099. }, y = (C) => {
  2100. o.value !== !1 && (o.value = !1, s && (s.value = C), Jd(f) && f(C));
  2101. }, _ = (C) => {
  2102. if (p.disabled === !0 || Jd(u) && !u())
  2103. return;
  2104. const P = v.value && Fr;
  2105. P && h(e, !0), (g.value || !P) && m(C);
  2106. }, O = (C) => {
  2107. if (p.disabled === !0 || !Fr)
  2108. return;
  2109. const P = v.value && Fr;
  2110. P && h(e, !1), (g.value || !P) && y(C);
  2111. }, S = (C) => {
  2112. hf(C) && (p.disabled && C ? v.value && h(e, !1) : o.value !== C && (C ? m() : y()));
  2113. }, x = () => {
  2114. o.value ? O() : _();
  2115. };
  2116. return me(() => p[t], S), l && d.appContext.config.globalProperties.$route !== void 0 && me(() => ({
  2117. ...d.proxy.$route
  2118. }), () => {
  2119. l.value && o.value && O();
  2120. }), _t(() => {
  2121. S(p[t]);
  2122. }), {
  2123. hide: O,
  2124. show: _,
  2125. toggle: x,
  2126. hasUpdateHandler: v
  2127. };
  2128. },
  2129. useModelToggleProps: i,
  2130. useModelToggleEmits: r
  2131. };
  2132. };
  2133. Tte("modelValue");
  2134. const Pte = (t) => {
  2135. const e = In();
  2136. return V(() => {
  2137. var n, r;
  2138. return (r = (n = e == null ? void 0 : e.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[t];
  2139. });
  2140. };
  2141. var Ra = "top", ns = "bottom", rs = "right", ka = "left", bN = "auto", F_ = [Ra, ns, rs, ka], Og = "start", Sb = "end", J$e = "clippingParents", $te = "viewport", v0 = "popper", eAe = "reference", rW = F_.reduce(function(t, e) {
  2142. return t.concat([e + "-" + Og, e + "-" + Sb]);
  2143. }, []), _N = [].concat(F_, [bN]).reduce(function(t, e) {
  2144. return t.concat([e, e + "-" + Og, e + "-" + Sb]);
  2145. }, []), tAe = "beforeRead", nAe = "read", rAe = "afterRead", iAe = "beforeMain", aAe = "main", oAe = "afterMain", sAe = "beforeWrite", lAe = "write", uAe = "afterWrite", cAe = [tAe, nAe, rAe, iAe, aAe, oAe, sAe, lAe, uAe];
  2146. function zl(t) {
  2147. return t ? (t.nodeName || "").toLowerCase() : null;
  2148. }
  2149. function qs(t) {
  2150. if (t == null) return window;
  2151. if (t.toString() !== "[object Window]") {
  2152. var e = t.ownerDocument;
  2153. return e && e.defaultView || window;
  2154. }
  2155. return t;
  2156. }
  2157. function Sg(t) {
  2158. var e = qs(t).Element;
  2159. return t instanceof e || t instanceof Element;
  2160. }
  2161. function Xo(t) {
  2162. var e = qs(t).HTMLElement;
  2163. return t instanceof e || t instanceof HTMLElement;
  2164. }
  2165. function ON(t) {
  2166. if (typeof ShadowRoot > "u") return !1;
  2167. var e = qs(t).ShadowRoot;
  2168. return t instanceof e || t instanceof ShadowRoot;
  2169. }
  2170. function fAe(t) {
  2171. var e = t.state;
  2172. Object.keys(e.elements).forEach(function(n) {
  2173. var r = e.styles[n] || {}, i = e.attributes[n] || {}, a = e.elements[n];
  2174. !Xo(a) || !zl(a) || (Object.assign(a.style, r), Object.keys(i).forEach(function(o) {
  2175. var s = i[o];
  2176. s === !1 ? a.removeAttribute(o) : a.setAttribute(o, s === !0 ? "" : s);
  2177. }));
  2178. });
  2179. }
  2180. function dAe(t) {
  2181. var e = t.state, n = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
  2182. return Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow), function() {
  2183. Object.keys(e.elements).forEach(function(r) {
  2184. var i = e.elements[r], a = e.attributes[r] || {}, o = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), s = o.reduce(function(l, u) {
  2185. return l[u] = "", l;
  2186. }, {});
  2187. !Xo(i) || !zl(i) || (Object.assign(i.style, s), Object.keys(a).forEach(function(l) {
  2188. i.removeAttribute(l);
  2189. }));
  2190. });
  2191. };
  2192. }
  2193. var Ate = { name: "applyStyles", enabled: !0, phase: "write", fn: fAe, effect: dAe, requires: ["computeStyles"] };
  2194. function Rl(t) {
  2195. return t.split("-")[0];
  2196. }
  2197. var vh = Math.max, Hw = Math.min, xg = Math.round;
  2198. function wg(t, e) {
  2199. e === void 0 && (e = !1);
  2200. var n = t.getBoundingClientRect(), r = 1, i = 1;
  2201. if (Xo(t) && e) {
  2202. var a = t.offsetHeight, o = t.offsetWidth;
  2203. o > 0 && (r = xg(n.width) / o || 1), a > 0 && (i = xg(n.height) / a || 1);
  2204. }
  2205. return { width: n.width / r, height: n.height / i, top: n.top / i, right: n.right / r, bottom: n.bottom / i, left: n.left / r, x: n.left / r, y: n.top / i };
  2206. }
  2207. function SN(t) {
  2208. var e = wg(t), n = t.offsetWidth, r = t.offsetHeight;
  2209. return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), { x: t.offsetLeft, y: t.offsetTop, width: n, height: r };
  2210. }
  2211. function Ete(t, e) {
  2212. var n = e.getRootNode && e.getRootNode();
  2213. if (t.contains(e)) return !0;
  2214. if (n && ON(n)) {
  2215. var r = e;
  2216. do {
  2217. if (r && t.isSameNode(r)) return !0;
  2218. r = r.parentNode || r.host;
  2219. } while (r);
  2220. }
  2221. return !1;
  2222. }
  2223. function Lu(t) {
  2224. return qs(t).getComputedStyle(t);
  2225. }
  2226. function hAe(t) {
  2227. return ["table", "td", "th"].indexOf(zl(t)) >= 0;
  2228. }
  2229. function Mf(t) {
  2230. return ((Sg(t) ? t.ownerDocument : t.document) || window.document).documentElement;
  2231. }
  2232. function h2(t) {
  2233. return zl(t) === "html" ? t : t.assignedSlot || t.parentNode || (ON(t) ? t.host : null) || Mf(t);
  2234. }
  2235. function iW(t) {
  2236. return !Xo(t) || Lu(t).position === "fixed" ? null : t.offsetParent;
  2237. }
  2238. function pAe(t) {
  2239. var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
  2240. if (n && Xo(t)) {
  2241. var r = Lu(t);
  2242. if (r.position === "fixed") return null;
  2243. }
  2244. var i = h2(t);
  2245. for (ON(i) && (i = i.host); Xo(i) && ["html", "body"].indexOf(zl(i)) < 0; ) {
  2246. var a = Lu(i);
  2247. if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none") return i;
  2248. i = i.parentNode;
  2249. }
  2250. return null;
  2251. }
  2252. function W_(t) {
  2253. for (var e = qs(t), n = iW(t); n && hAe(n) && Lu(n).position === "static"; ) n = iW(n);
  2254. return n && (zl(n) === "html" || zl(n) === "body" && Lu(n).position === "static") ? e : n || pAe(t) || e;
  2255. }
  2256. function xN(t) {
  2257. return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
  2258. }
  2259. function ky(t, e, n) {
  2260. return vh(t, Hw(e, n));
  2261. }
  2262. function vAe(t, e, n) {
  2263. var r = ky(t, e, n);
  2264. return r > n ? n : r;
  2265. }
  2266. function Mte() {
  2267. return { top: 0, right: 0, bottom: 0, left: 0 };
  2268. }
  2269. function Ite(t) {
  2270. return Object.assign({}, Mte(), t);
  2271. }
  2272. function Dte(t, e) {
  2273. return e.reduce(function(n, r) {
  2274. return n[r] = t, n;
  2275. }, {});
  2276. }
  2277. var gAe = function(t, e) {
  2278. return t = typeof t == "function" ? t(Object.assign({}, e.rects, { placement: e.placement })) : t, Ite(typeof t != "number" ? t : Dte(t, F_));
  2279. };
  2280. function mAe(t) {
  2281. var e, n = t.state, r = t.name, i = t.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = Rl(n.placement), l = xN(s), u = [ka, rs].indexOf(s) >= 0, c = u ? "height" : "width";
  2282. if (!(!a || !o)) {
  2283. var f = gAe(i.padding, n), d = SN(a), h = l === "y" ? Ra : ka, p = l === "y" ? ns : rs, v = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], g = o[l] - n.rects.reference[l], m = W_(a), y = m ? l === "y" ? m.clientHeight || 0 : m.clientWidth || 0 : 0, _ = v / 2 - g / 2, O = f[h], S = y - d[c] - f[p], x = y / 2 - d[c] / 2 + _, C = ky(O, x, S), P = l;
  2284. n.modifiersData[r] = (e = {}, e[P] = C, e.centerOffset = C - x, e);
  2285. }
  2286. }
  2287. function yAe(t) {
  2288. var e = t.state, n = t.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r;
  2289. i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || !Ete(e.elements.popper, i) || (e.elements.arrow = i));
  2290. }
  2291. var bAe = { name: "arrow", enabled: !0, phase: "main", fn: mAe, effect: yAe, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
  2292. function Cg(t) {
  2293. return t.split("-")[1];
  2294. }
  2295. var _Ae = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
  2296. function OAe(t) {
  2297. var e = t.x, n = t.y, r = window, i = r.devicePixelRatio || 1;
  2298. return { x: xg(e * i) / i || 0, y: xg(n * i) / i || 0 };
  2299. }
  2300. function aW(t) {
  2301. var e, n = t.popper, r = t.popperRect, i = t.placement, a = t.variation, o = t.offsets, s = t.position, l = t.gpuAcceleration, u = t.adaptive, c = t.roundOffsets, f = t.isFixed, d = o.x, h = d === void 0 ? 0 : d, p = o.y, v = p === void 0 ? 0 : p, g = typeof c == "function" ? c({ x: h, y: v }) : { x: h, y: v };
  2302. h = g.x, v = g.y;
  2303. var m = o.hasOwnProperty("x"), y = o.hasOwnProperty("y"), _ = ka, O = Ra, S = window;
  2304. if (u) {
  2305. var x = W_(n), C = "clientHeight", P = "clientWidth";
  2306. if (x === qs(n) && (x = Mf(n), Lu(x).position !== "static" && s === "absolute" && (C = "scrollHeight", P = "scrollWidth")), x = x, i === Ra || (i === ka || i === rs) && a === Sb) {
  2307. O = ns;
  2308. var $ = f && x === S && S.visualViewport ? S.visualViewport.height : x[C];
  2309. v -= $ - r.height, v *= l ? 1 : -1;
  2310. }
  2311. if (i === ka || (i === Ra || i === ns) && a === Sb) {
  2312. _ = rs;
  2313. var T = f && x === S && S.visualViewport ? S.visualViewport.width : x[P];
  2314. h -= T - r.width, h *= l ? 1 : -1;
  2315. }
  2316. }
  2317. var E = Object.assign({ position: s }, u && _Ae), M = c === !0 ? OAe({ x: h, y: v }) : { x: h, y: v };
  2318. if (h = M.x, v = M.y, l) {
  2319. var R;
  2320. return Object.assign({}, E, (R = {}, R[O] = y ? "0" : "", R[_] = m ? "0" : "", R.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", R));
  2321. }
  2322. return Object.assign({}, E, (e = {}, e[O] = y ? v + "px" : "", e[_] = m ? h + "px" : "", e.transform = "", e));
  2323. }
  2324. function SAe(t) {
  2325. var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, l = s === void 0 ? !0 : s, u = { placement: Rl(e.placement), variation: Cg(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: i, isFixed: e.options.strategy === "fixed" };
  2326. e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, aW(Object.assign({}, u, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: o, roundOffsets: l })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, aW(Object.assign({}, u, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: l })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement });
  2327. }
  2328. var Rte = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: SAe, data: {} }, RO = { passive: !0 };
  2329. function xAe(t) {
  2330. var e = t.state, n = t.instance, r = t.options, i = r.scroll, a = i === void 0 ? !0 : i, o = r.resize, s = o === void 0 ? !0 : o, l = qs(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
  2331. return a && u.forEach(function(c) {
  2332. c.addEventListener("scroll", n.update, RO);
  2333. }), s && l.addEventListener("resize", n.update, RO), function() {
  2334. a && u.forEach(function(c) {
  2335. c.removeEventListener("scroll", n.update, RO);
  2336. }), s && l.removeEventListener("resize", n.update, RO);
  2337. };
  2338. }
  2339. var kte = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
  2340. }, effect: xAe, data: {} }, wAe = { left: "right", right: "left", bottom: "top", top: "bottom" };
  2341. function zx(t) {
  2342. return t.replace(/left|right|bottom|top/g, function(e) {
  2343. return wAe[e];
  2344. });
  2345. }
  2346. var CAe = { start: "end", end: "start" };
  2347. function oW(t) {
  2348. return t.replace(/start|end/g, function(e) {
  2349. return CAe[e];
  2350. });
  2351. }
  2352. function wN(t) {
  2353. var e = qs(t), n = e.pageXOffset, r = e.pageYOffset;
  2354. return { scrollLeft: n, scrollTop: r };
  2355. }
  2356. function CN(t) {
  2357. return wg(Mf(t)).left + wN(t).scrollLeft;
  2358. }
  2359. function TAe(t) {
  2360. var e = qs(t), n = Mf(t), r = e.visualViewport, i = n.clientWidth, a = n.clientHeight, o = 0, s = 0;
  2361. return r && (i = r.width, a = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (o = r.offsetLeft, s = r.offsetTop)), { width: i, height: a, x: o + CN(t), y: s };
  2362. }
  2363. function PAe(t) {
  2364. var e, n = Mf(t), r = wN(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = vh(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = vh(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + CN(t), l = -r.scrollTop;
  2365. return Lu(i || n).direction === "rtl" && (s += vh(n.clientWidth, i ? i.clientWidth : 0) - a), { width: a, height: o, x: s, y: l };
  2366. }
  2367. function TN(t) {
  2368. var e = Lu(t), n = e.overflow, r = e.overflowX, i = e.overflowY;
  2369. return /auto|scroll|overlay|hidden/.test(n + i + r);
  2370. }
  2371. function Lte(t) {
  2372. return ["html", "body", "#document"].indexOf(zl(t)) >= 0 ? t.ownerDocument.body : Xo(t) && TN(t) ? t : Lte(h2(t));
  2373. }
  2374. function Ly(t, e) {
  2375. var n;
  2376. e === void 0 && (e = []);
  2377. var r = Lte(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), a = qs(r), o = i ? [a].concat(a.visualViewport || [], TN(r) ? r : []) : r, s = e.concat(o);
  2378. return i ? s : s.concat(Ly(h2(o)));
  2379. }
  2380. function XD(t) {
  2381. return Object.assign({}, t, { left: t.x, top: t.y, right: t.x + t.width, bottom: t.y + t.height });
  2382. }
  2383. function $Ae(t) {
  2384. var e = wg(t);
  2385. return e.top = e.top + t.clientTop, e.left = e.left + t.clientLeft, e.bottom = e.top + t.clientHeight, e.right = e.left + t.clientWidth, e.width = t.clientWidth, e.height = t.clientHeight, e.x = e.left, e.y = e.top, e;
  2386. }
  2387. function sW(t, e) {
  2388. return e === $te ? XD(TAe(t)) : Sg(e) ? $Ae(e) : XD(PAe(Mf(t)));
  2389. }
  2390. function AAe(t) {
  2391. var e = Ly(h2(t)), n = ["absolute", "fixed"].indexOf(Lu(t).position) >= 0, r = n && Xo(t) ? W_(t) : t;
  2392. return Sg(r) ? e.filter(function(i) {
  2393. return Sg(i) && Ete(i, r) && zl(i) !== "body";
  2394. }) : [];
  2395. }
  2396. function EAe(t, e, n) {
  2397. var r = e === "clippingParents" ? AAe(t) : [].concat(e), i = [].concat(r, [n]), a = i[0], o = i.reduce(function(s, l) {
  2398. var u = sW(t, l);
  2399. return s.top = vh(u.top, s.top), s.right = Hw(u.right, s.right), s.bottom = Hw(u.bottom, s.bottom), s.left = vh(u.left, s.left), s;
  2400. }, sW(t, a));
  2401. return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
  2402. }
  2403. function Nte(t) {
  2404. var e = t.reference, n = t.element, r = t.placement, i = r ? Rl(r) : null, a = r ? Cg(r) : null, o = e.x + e.width / 2 - n.width / 2, s = e.y + e.height / 2 - n.height / 2, l;
  2405. switch (i) {
  2406. case Ra:
  2407. l = { x: o, y: e.y - n.height };
  2408. break;
  2409. case ns:
  2410. l = { x: o, y: e.y + e.height };
  2411. break;
  2412. case rs:
  2413. l = { x: e.x + e.width, y: s };
  2414. break;
  2415. case ka:
  2416. l = { x: e.x - n.width, y: s };
  2417. break;
  2418. default:
  2419. l = { x: e.x, y: e.y };
  2420. }
  2421. var u = i ? xN(i) : null;
  2422. if (u != null) {
  2423. var c = u === "y" ? "height" : "width";
  2424. switch (a) {
  2425. case Og:
  2426. l[u] = l[u] - (e[c] / 2 - n[c] / 2);
  2427. break;
  2428. case Sb:
  2429. l[u] = l[u] + (e[c] / 2 - n[c] / 2);
  2430. break;
  2431. }
  2432. }
  2433. return l;
  2434. }
  2435. function xb(t, e) {
  2436. e === void 0 && (e = {});
  2437. var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.boundary, o = a === void 0 ? J$e : a, s = n.rootBoundary, l = s === void 0 ? $te : s, u = n.elementContext, c = u === void 0 ? v0 : u, f = n.altBoundary, d = f === void 0 ? !1 : f, h = n.padding, p = h === void 0 ? 0 : h, v = Ite(typeof p != "number" ? p : Dte(p, F_)), g = c === v0 ? eAe : v0, m = t.rects.popper, y = t.elements[d ? g : c], _ = EAe(Sg(y) ? y : y.contextElement || Mf(t.elements.popper), o, l), O = wg(t.elements.reference), S = Nte({ reference: O, element: m, strategy: "absolute", placement: i }), x = XD(Object.assign({}, m, S)), C = c === v0 ? x : O, P = { top: _.top - C.top + v.top, bottom: C.bottom - _.bottom + v.bottom, left: _.left - C.left + v.left, right: C.right - _.right + v.right }, $ = t.modifiersData.offset;
  2438. if (c === v0 && $) {
  2439. var T = $[i];
  2440. Object.keys(P).forEach(function(E) {
  2441. var M = [rs, ns].indexOf(E) >= 0 ? 1 : -1, R = [Ra, ns].indexOf(E) >= 0 ? "y" : "x";
  2442. P[E] += T[R] * M;
  2443. });
  2444. }
  2445. return P;
  2446. }
  2447. function MAe(t, e) {
  2448. e === void 0 && (e = {});
  2449. var n = e, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? _N : l, c = Cg(r), f = c ? s ? rW : rW.filter(function(p) {
  2450. return Cg(p) === c;
  2451. }) : F_, d = f.filter(function(p) {
  2452. return u.indexOf(p) >= 0;
  2453. });
  2454. d.length === 0 && (d = f);
  2455. var h = d.reduce(function(p, v) {
  2456. return p[v] = xb(t, { placement: v, boundary: i, rootBoundary: a, padding: o })[Rl(v)], p;
  2457. }, {});
  2458. return Object.keys(h).sort(function(p, v) {
  2459. return h[p] - h[v];
  2460. });
  2461. }
  2462. function IAe(t) {
  2463. if (Rl(t) === bN) return [];
  2464. var e = zx(t);
  2465. return [oW(t), e, oW(e)];
  2466. }
  2467. function DAe(t) {
  2468. var e = t.state, n = t.options, r = t.name;
  2469. if (!e.modifiersData[r]._skip) {
  2470. for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, l = n.fallbackPlacements, u = n.padding, c = n.boundary, f = n.rootBoundary, d = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, g = e.options.placement, m = Rl(g), y = m === g, _ = l || (y || !p ? [zx(g)] : IAe(g)), O = [g].concat(_).reduce(function(fe, ue) {
  2471. return fe.concat(Rl(ue) === bN ? MAe(e, { placement: ue, boundary: c, rootBoundary: f, padding: u, flipVariations: p, allowedAutoPlacements: v }) : ue);
  2472. }, []), S = e.rects.reference, x = e.rects.popper, C = /* @__PURE__ */ new Map(), P = !0, $ = O[0], T = 0; T < O.length; T++) {
  2473. var E = O[T], M = Rl(E), R = Cg(E) === Og, N = [Ra, ns].indexOf(M) >= 0, I = N ? "width" : "height", B = xb(e, { placement: E, boundary: c, rootBoundary: f, altBoundary: d, padding: u }), Q = N ? R ? rs : ka : R ? ns : Ra;
  2474. S[I] > x[I] && (Q = zx(Q));
  2475. var W = zx(Q), H = [];
  2476. if (a && H.push(B[M] <= 0), s && H.push(B[Q] <= 0, B[W] <= 0), H.every(function(fe) {
  2477. return fe;
  2478. })) {
  2479. $ = E, P = !1;
  2480. break;
  2481. }
  2482. C.set(E, H);
  2483. }
  2484. if (P) for (var U = p ? 3 : 1, j = function(fe) {
  2485. var ue = O.find(function(ye) {
  2486. var se = C.get(ye);
  2487. if (se) return se.slice(0, fe).every(function(he) {
  2488. return he;
  2489. });
  2490. });
  2491. if (ue) return $ = ue, "break";
  2492. }, Y = U; Y > 0; Y--) {
  2493. var ne = j(Y);
  2494. if (ne === "break") break;
  2495. }
  2496. e.placement !== $ && (e.modifiersData[r]._skip = !0, e.placement = $, e.reset = !0);
  2497. }
  2498. }
  2499. var RAe = { name: "flip", enabled: !0, phase: "main", fn: DAe, requiresIfExists: ["offset"], data: { _skip: !1 } };
  2500. function lW(t, e, n) {
  2501. return n === void 0 && (n = { x: 0, y: 0 }), { top: t.top - e.height - n.y, right: t.right - e.width + n.x, bottom: t.bottom - e.height + n.y, left: t.left - e.width - n.x };
  2502. }
  2503. function uW(t) {
  2504. return [Ra, rs, ns, ka].some(function(e) {
  2505. return t[e] >= 0;
  2506. });
  2507. }
  2508. function kAe(t) {
  2509. var e = t.state, n = t.name, r = e.rects.reference, i = e.rects.popper, a = e.modifiersData.preventOverflow, o = xb(e, { elementContext: "reference" }), s = xb(e, { altBoundary: !0 }), l = lW(o, r), u = lW(s, i, a), c = uW(l), f = uW(u);
  2510. e.modifiersData[n] = { referenceClippingOffsets: l, popperEscapeOffsets: u, isReferenceHidden: c, hasPopperEscaped: f }, e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-reference-hidden": c, "data-popper-escaped": f });
  2511. }
  2512. var LAe = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: kAe };
  2513. function NAe(t, e, n) {
  2514. var r = Rl(t), i = [ka, Ra].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, e, { placement: t })) : n, o = a[0], s = a[1];
  2515. return o = o || 0, s = (s || 0) * i, [ka, rs].indexOf(r) >= 0 ? { x: s, y: o } : { x: o, y: s };
  2516. }
  2517. function BAe(t) {
  2518. var e = t.state, n = t.options, r = t.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = _N.reduce(function(c, f) {
  2519. return c[f] = NAe(f, e.rects, a), c;
  2520. }, {}), s = o[e.placement], l = s.x, u = s.y;
  2521. e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += u), e.modifiersData[r] = o;
  2522. }
  2523. var zAe = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: BAe };
  2524. function VAe(t) {
  2525. var e = t.state, n = t.name;
  2526. e.modifiersData[n] = Nte({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement });
  2527. }
  2528. var Bte = { name: "popperOffsets", enabled: !0, phase: "read", fn: VAe, data: {} };
  2529. function FAe(t) {
  2530. return t === "x" ? "y" : "x";
  2531. }
  2532. function WAe(t) {
  2533. var e = t.state, n = t.options, r = t.name, i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !1 : o, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, f = n.padding, d = n.tether, h = d === void 0 ? !0 : d, p = n.tetherOffset, v = p === void 0 ? 0 : p, g = xb(e, { boundary: l, rootBoundary: u, padding: f, altBoundary: c }), m = Rl(e.placement), y = Cg(e.placement), _ = !y, O = xN(m), S = FAe(O), x = e.modifiersData.popperOffsets, C = e.rects.reference, P = e.rects.popper, $ = typeof v == "function" ? v(Object.assign({}, e.rects, { placement: e.placement })) : v, T = typeof $ == "number" ? { mainAxis: $, altAxis: $ } : Object.assign({ mainAxis: 0, altAxis: 0 }, $), E = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, M = { x: 0, y: 0 };
  2534. if (x) {
  2535. if (a) {
  2536. var R, N = O === "y" ? Ra : ka, I = O === "y" ? ns : rs, B = O === "y" ? "height" : "width", Q = x[O], W = Q + g[N], H = Q - g[I], U = h ? -P[B] / 2 : 0, j = y === Og ? C[B] : P[B], Y = y === Og ? -P[B] : -C[B], ne = e.elements.arrow, fe = h && ne ? SN(ne) : { width: 0, height: 0 }, ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Mte(), ye = ue[N], se = ue[I], he = ky(0, C[B], fe[B]), re = _ ? C[B] / 2 - U - he - ye - T.mainAxis : j - he - ye - T.mainAxis, q = _ ? -C[B] / 2 + U + he + se + T.mainAxis : Y + he + se + T.mainAxis, K = e.elements.arrow && W_(e.elements.arrow), de = K ? O === "y" ? K.clientTop || 0 : K.clientLeft || 0 : 0, xe = (R = E == null ? void 0 : E[O]) != null ? R : 0, we = Q + re - xe - de, He = Q + q - xe, je = ky(h ? Hw(W, we) : W, Q, h ? vh(H, He) : H);
  2537. x[O] = je, M[O] = je - Q;
  2538. }
  2539. if (s) {
  2540. var Be, Le = O === "x" ? Ra : ka, Pe = O === "x" ? ns : rs, Fe = x[S], Ye = S === "y" ? "height" : "width", xt = Fe + g[Le], It = Fe - g[Pe], an = [Ra, ka].indexOf(m) !== -1, Ae = (Be = E == null ? void 0 : E[S]) != null ? Be : 0, gt = an ? xt : Fe - C[Ye] - P[Ye] - Ae + T.altAxis, Xt = an ? Fe + C[Ye] + P[Ye] - Ae - T.altAxis : It, Bn = h && an ? vAe(gt, Fe, Xt) : ky(h ? gt : xt, Fe, h ? Xt : It);
  2541. x[S] = Bn, M[S] = Bn - Fe;
  2542. }
  2543. e.modifiersData[r] = M;
  2544. }
  2545. }
  2546. var QAe = { name: "preventOverflow", enabled: !0, phase: "main", fn: WAe, requiresIfExists: ["offset"] };
  2547. function HAe(t) {
  2548. return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop };
  2549. }
  2550. function GAe(t) {
  2551. return t === qs(t) || !Xo(t) ? wN(t) : HAe(t);
  2552. }
  2553. function jAe(t) {
  2554. var e = t.getBoundingClientRect(), n = xg(e.width) / t.offsetWidth || 1, r = xg(e.height) / t.offsetHeight || 1;
  2555. return n !== 1 || r !== 1;
  2556. }
  2557. function ZAe(t, e, n) {
  2558. n === void 0 && (n = !1);
  2559. var r = Xo(e), i = Xo(e) && jAe(e), a = Mf(e), o = wg(t, i), s = { scrollLeft: 0, scrollTop: 0 }, l = { x: 0, y: 0 };
  2560. return (r || !r && !n) && ((zl(e) !== "body" || TN(a)) && (s = GAe(e)), Xo(e) ? (l = wg(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : a && (l.x = CN(a))), { x: o.left + s.scrollLeft - l.x, y: o.top + s.scrollTop - l.y, width: o.width, height: o.height };
  2561. }
  2562. function UAe(t) {
  2563. var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
  2564. t.forEach(function(a) {
  2565. e.set(a.name, a);
  2566. });
  2567. function i(a) {
  2568. n.add(a.name);
  2569. var o = [].concat(a.requires || [], a.requiresIfExists || []);
  2570. o.forEach(function(s) {
  2571. if (!n.has(s)) {
  2572. var l = e.get(s);
  2573. l && i(l);
  2574. }
  2575. }), r.push(a);
  2576. }
  2577. return t.forEach(function(a) {
  2578. n.has(a.name) || i(a);
  2579. }), r;
  2580. }
  2581. function XAe(t) {
  2582. var e = UAe(t);
  2583. return cAe.reduce(function(n, r) {
  2584. return n.concat(e.filter(function(i) {
  2585. return i.phase === r;
  2586. }));
  2587. }, []);
  2588. }
  2589. function YAe(t) {
  2590. var e;
  2591. return function() {
  2592. return e || (e = new Promise(function(n) {
  2593. Promise.resolve().then(function() {
  2594. e = void 0, n(t());
  2595. });
  2596. })), e;
  2597. };
  2598. }
  2599. function qAe(t) {
  2600. var e = t.reduce(function(n, r) {
  2601. var i = n[r.name];
  2602. return n[r.name] = i ? Object.assign({}, i, r, { options: Object.assign({}, i.options, r.options), data: Object.assign({}, i.data, r.data) }) : r, n;
  2603. }, {});
  2604. return Object.keys(e).map(function(n) {
  2605. return e[n];
  2606. });
  2607. }
  2608. var cW = { placement: "bottom", modifiers: [], strategy: "absolute" };
  2609. function fW() {
  2610. for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
  2611. return !e.some(function(r) {
  2612. return !(r && typeof r.getBoundingClientRect == "function");
  2613. });
  2614. }
  2615. function PN(t) {
  2616. t === void 0 && (t = {});
  2617. var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, i = e.defaultOptions, a = i === void 0 ? cW : i;
  2618. return function(o, s, l) {
  2619. l === void 0 && (l = a);
  2620. var u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, cW, a), modifiersData: {}, elements: { reference: o, popper: s }, attributes: {}, styles: {} }, c = [], f = !1, d = { state: u, setOptions: function(v) {
  2621. var g = typeof v == "function" ? v(u.options) : v;
  2622. p(), u.options = Object.assign({}, a, u.options, g), u.scrollParents = { reference: Sg(o) ? Ly(o) : o.contextElement ? Ly(o.contextElement) : [], popper: Ly(s) };
  2623. var m = XAe(qAe([].concat(r, u.options.modifiers)));
  2624. return u.orderedModifiers = m.filter(function(y) {
  2625. return y.enabled;
  2626. }), h(), d.update();
  2627. }, forceUpdate: function() {
  2628. if (!f) {
  2629. var v = u.elements, g = v.reference, m = v.popper;
  2630. if (fW(g, m)) {
  2631. u.rects = { reference: ZAe(g, W_(m), u.options.strategy === "fixed"), popper: SN(m) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
  2632. return u.modifiersData[P.name] = Object.assign({}, P.data);
  2633. });
  2634. for (var y = 0; y < u.orderedModifiers.length; y++) {
  2635. if (u.reset === !0) {
  2636. u.reset = !1, y = -1;
  2637. continue;
  2638. }
  2639. var _ = u.orderedModifiers[y], O = _.fn, S = _.options, x = S === void 0 ? {} : S, C = _.name;
  2640. typeof O == "function" && (u = O({ state: u, options: x, name: C, instance: d }) || u);
  2641. }
  2642. }
  2643. }
  2644. }, update: YAe(function() {
  2645. return new Promise(function(v) {
  2646. d.forceUpdate(), v(u);
  2647. });
  2648. }), destroy: function() {
  2649. p(), f = !0;
  2650. } };
  2651. if (!fW(o, s)) return d;
  2652. d.setOptions(l).then(function(v) {
  2653. !f && l.onFirstUpdate && l.onFirstUpdate(v);
  2654. });
  2655. function h() {
  2656. u.orderedModifiers.forEach(function(v) {
  2657. var g = v.name, m = v.options, y = m === void 0 ? {} : m, _ = v.effect;
  2658. if (typeof _ == "function") {
  2659. var O = _({ state: u, name: g, instance: d, options: y }), S = function() {
  2660. };
  2661. c.push(O || S);
  2662. }
  2663. });
  2664. }
  2665. function p() {
  2666. c.forEach(function(v) {
  2667. return v();
  2668. }), c = [];
  2669. }
  2670. return d;
  2671. };
  2672. }
  2673. PN();
  2674. var KAe = [kte, Bte, Rte, Ate];
  2675. PN({ defaultModifiers: KAe });
  2676. var JAe = [kte, Bte, Rte, Ate, zAe, RAe, QAe, bAe, LAe], eEe = PN({ defaultModifiers: JAe });
  2677. const tEe = (t, e, n = {}) => {
  2678. const r = {
  2679. name: "updateState",
  2680. enabled: !0,
  2681. phase: "write",
  2682. fn: ({ state: l }) => {
  2683. const u = nEe(l);
  2684. Object.assign(o.value, u);
  2685. },
  2686. requires: ["computeStyles"]
  2687. }, i = V(() => {
  2688. const { onFirstUpdate: l, placement: u, strategy: c, modifiers: f } = z(n);
  2689. return {
  2690. onFirstUpdate: l,
  2691. placement: u || "bottom",
  2692. strategy: c || "absolute",
  2693. modifiers: [
  2694. ...f || [],
  2695. r,
  2696. { name: "applyStyles", enabled: !1 }
  2697. ]
  2698. };
  2699. }), a = ve(), o = ee({
  2700. styles: {
  2701. popper: {
  2702. position: z(i).strategy,
  2703. left: "0",
  2704. top: "0"
  2705. },
  2706. arrow: {
  2707. position: "absolute"
  2708. }
  2709. },
  2710. attributes: {}
  2711. }), s = () => {
  2712. a.value && (a.value.destroy(), a.value = void 0);
  2713. };
  2714. return me(i, (l) => {
  2715. const u = z(a);
  2716. u && u.setOptions(l);
  2717. }, {
  2718. deep: !0
  2719. }), me([t, e], ([l, u]) => {
  2720. s(), !(!l || !u) && (a.value = eEe(l, u, z(i)));
  2721. }), Qt(() => {
  2722. s();
  2723. }), {
  2724. state: V(() => {
  2725. var l;
  2726. return { ...((l = z(a)) == null ? void 0 : l.state) || {} };
  2727. }),
  2728. styles: V(() => z(o).styles),
  2729. attributes: V(() => z(o).attributes),
  2730. update: () => {
  2731. var l;
  2732. return (l = z(a)) == null ? void 0 : l.update();
  2733. },
  2734. forceUpdate: () => {
  2735. var l;
  2736. return (l = z(a)) == null ? void 0 : l.forceUpdate();
  2737. },
  2738. instanceRef: V(() => z(a))
  2739. };
  2740. };
  2741. function nEe(t) {
  2742. const e = Object.keys(t.elements), n = Ww(e.map((i) => [i, t.styles[i] || {}])), r = Ww(e.map((i) => [i, t.attributes[i]]));
  2743. return {
  2744. styles: n,
  2745. attributes: r
  2746. };
  2747. }
  2748. const zte = (t) => {
  2749. if (!t)
  2750. return { onClick: Kc, onMousedown: Kc, onMouseup: Kc };
  2751. let e = !1, n = !1;
  2752. return { onClick: (o) => {
  2753. e && n && t(o), e = n = !1;
  2754. }, onMousedown: (o) => {
  2755. e = o.target === o.currentTarget;
  2756. }, onMouseup: (o) => {
  2757. n = o.target === o.currentTarget;
  2758. } };
  2759. };
  2760. function dW() {
  2761. let t;
  2762. const e = (r, i) => {
  2763. n(), t = window.setTimeout(r, i);
  2764. }, n = () => window.clearTimeout(t);
  2765. return t2(() => n()), {
  2766. registerTimeout: e,
  2767. cancelTimeout: n
  2768. };
  2769. }
  2770. const YD = {
  2771. prefix: Math.floor(Math.random() * 1e4),
  2772. current: 0
  2773. }, rEe = Symbol("elIdInjection"), Vte = () => In() ? et(rEe, YD) : YD, wb = (t) => {
  2774. const e = Vte();
  2775. !Fr && e === YD && Fi("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
  2776. usage: app.provide(ID_INJECTION_KEY, {
  2777. prefix: number,
  2778. current: number,
  2779. })`);
  2780. const n = yN();
  2781. return V(() => z(t) || `${n.value}-id-${e.prefix}-${e.current++}`);
  2782. };
  2783. let mv = [];
  2784. const hW = (t) => {
  2785. const e = t;
  2786. e.key === wa.esc && mv.forEach((n) => n(e));
  2787. }, iEe = (t) => {
  2788. _t(() => {
  2789. mv.length === 0 && document.addEventListener("keydown", hW), Fr && mv.push(t);
  2790. }), Qt(() => {
  2791. mv = mv.filter((e) => e !== t), mv.length === 0 && Fr && document.removeEventListener("keydown", hW);
  2792. });
  2793. };
  2794. let pW;
  2795. const Fte = () => {
  2796. const t = yN(), e = Vte(), n = V(() => `${t.value}-popper-container-${e.prefix}`), r = V(() => `#${n.value}`);
  2797. return {
  2798. id: n,
  2799. selector: r
  2800. };
  2801. }, aEe = (t) => {
  2802. const e = document.createElement("div");
  2803. return e.id = t, document.body.appendChild(e), e;
  2804. }, oEe = () => {
  2805. const { id: t, selector: e } = Fte();
  2806. return $ee(() => {
  2807. Fr && (process.env.NODE_ENV === "test" || !pW && !document.body.querySelector(e.value)) && (pW = aEe(t.value));
  2808. }), {
  2809. id: t,
  2810. selector: e
  2811. };
  2812. }, sEe = hr({
  2813. showAfter: {
  2814. type: Number,
  2815. default: 0
  2816. },
  2817. hideAfter: {
  2818. type: Number,
  2819. default: 200
  2820. },
  2821. autoClose: {
  2822. type: Number,
  2823. default: 0
  2824. }
  2825. }), lEe = ({
  2826. showAfter: t,
  2827. hideAfter: e,
  2828. autoClose: n,
  2829. open: r,
  2830. close: i
  2831. }) => {
  2832. const { registerTimeout: a } = dW(), {
  2833. registerTimeout: o,
  2834. cancelTimeout: s
  2835. } = dW();
  2836. return {
  2837. onOpen: (c) => {
  2838. a(() => {
  2839. r(c);
  2840. const f = z(n);
  2841. Ws(f) && f > 0 && o(() => {
  2842. i(c);
  2843. }, f);
  2844. }, z(t));
  2845. },
  2846. onClose: (c) => {
  2847. s(), a(() => {
  2848. i(c);
  2849. }, z(e));
  2850. }
  2851. };
  2852. }, Wte = Symbol("elForwardRef"), uEe = (t) => {
  2853. Et(Wte, {
  2854. setForwardRef: (n) => {
  2855. t.value = n;
  2856. }
  2857. });
  2858. }, cEe = (t) => ({
  2859. mounted(e) {
  2860. t(e);
  2861. },
  2862. updated(e) {
  2863. t(e);
  2864. },
  2865. unmounted() {
  2866. t(null);
  2867. }
  2868. }), vW = {
  2869. current: 0
  2870. }, gW = ee(0), fEe = 2e3, mW = Symbol("elZIndexContextKey"), dEe = Symbol("zIndexContextKey"), Qte = (t) => {
  2871. const e = In() ? et(mW, vW) : vW, n = In() ? et(dEe, void 0) : void 0, r = V(() => {
  2872. const o = z(n);
  2873. return Ws(o) ? o : fEe;
  2874. }), i = V(() => r.value + gW.value), a = () => (e.current++, gW.value = e.current, i.value);
  2875. return !Fr && !et(mW) && Fi("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
  2876. usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
  2877. initialZIndex: r,
  2878. currentZIndex: i,
  2879. nextZIndex: a
  2880. };
  2881. };
  2882. function hEe(t) {
  2883. const e = ee();
  2884. function n() {
  2885. if (t.value == null)
  2886. return;
  2887. const { selectionStart: i, selectionEnd: a, value: o } = t.value;
  2888. if (i == null || a == null)
  2889. return;
  2890. const s = o.slice(0, Math.max(0, i)), l = o.slice(Math.max(0, a));
  2891. e.value = {
  2892. selectionStart: i,
  2893. selectionEnd: a,
  2894. value: o,
  2895. beforeTxt: s,
  2896. afterTxt: l
  2897. };
  2898. }
  2899. function r() {
  2900. if (t.value == null || e.value == null)
  2901. return;
  2902. const { value: i } = t.value, { beforeTxt: a, afterTxt: o, selectionStart: s } = e.value;
  2903. if (a == null || o == null || s == null)
  2904. return;
  2905. let l = i.length;
  2906. if (i.endsWith(o))
  2907. l = i.length - o.length;
  2908. else if (i.startsWith(a))
  2909. l = a.length;
  2910. else {
  2911. const u = a[s - 1], c = i.indexOf(u, s - 1);
  2912. c !== -1 && (l = c + 1);
  2913. }
  2914. t.value.setSelectionRange(l, l);
  2915. }
  2916. return [n, r];
  2917. }
  2918. const op = d2({
  2919. type: String,
  2920. values: L$e,
  2921. required: !1
  2922. }), pEe = Symbol("size"), vEe = () => {
  2923. const t = et(pEe, {});
  2924. return V(() => z(t.size) || "");
  2925. };
  2926. function Hte(t, { afterFocus: e, beforeBlur: n, afterBlur: r } = {}) {
  2927. const i = In(), { emit: a } = i, o = ve(), s = ee(!1), l = (f) => {
  2928. s.value || (s.value = !0, a("focus", f), e == null || e());
  2929. }, u = (f) => {
  2930. var d;
  2931. Jd(n) && n(f) || f.relatedTarget && ((d = o.value) != null && d.contains(f.relatedTarget)) || (s.value = !1, a("blur", f), r == null || r());
  2932. }, c = () => {
  2933. var f;
  2934. (f = t.value) == null || f.focus();
  2935. };
  2936. return me(o, (f) => {
  2937. f && f.setAttribute("tabindex", "-1");
  2938. }), Iy(o, "click", c), {
  2939. wrapperRef: o,
  2940. isFocused: s,
  2941. handleFocus: l,
  2942. handleBlur: u
  2943. };
  2944. }
  2945. const gEe = hr({
  2946. ariaLabel: String,
  2947. ariaOrientation: {
  2948. type: String,
  2949. values: ["horizontal", "vertical", "undefined"]
  2950. },
  2951. ariaControls: String
  2952. }), sp = (t) => mg(gEe, t), mEe = Symbol(), yW = ee();
  2953. function Gte(t, e = void 0) {
  2954. const n = In() ? et(mEe, yW) : yW;
  2955. return t ? V(() => {
  2956. var r, i;
  2957. return (i = (r = n.value) == null ? void 0 : r[t]) != null ? i : e;
  2958. }) : n;
  2959. }
  2960. var Nn = (t, e) => {
  2961. const n = t.__vccOpts || t;
  2962. for (const [r, i] of e)
  2963. n[r] = i;
  2964. return n;
  2965. };
  2966. const yEe = hr({
  2967. size: {
  2968. type: mn([Number, String])
  2969. },
  2970. color: {
  2971. type: String
  2972. }
  2973. }), bEe = ae({
  2974. name: "ElIcon",
  2975. inheritAttrs: !1
  2976. }), _Ee = /* @__PURE__ */ ae({
  2977. ...bEe,
  2978. props: yEe,
  2979. setup(t) {
  2980. const e = t, n = $n("icon"), r = V(() => {
  2981. const { size: i, color: a } = e;
  2982. return !i && !a ? {} : {
  2983. fontSize: Qw(i) ? void 0 : bg(i),
  2984. "--color": a
  2985. };
  2986. });
  2987. return (i, a) => (be(), Ue("i", Xn({
  2988. class: z(n).b(),
  2989. style: z(r)
  2990. }, i.$attrs), [
  2991. ln(i.$slots, "default")
  2992. ], 16));
  2993. }
  2994. });
  2995. var OEe = /* @__PURE__ */ Nn(_Ee, [["__file", "icon.vue"]]);
  2996. const $s = ec(OEe), $N = Symbol("formContextKey"), Cb = Symbol("formItemContextKey"), Tg = (t, e = {}) => {
  2997. const n = ee(void 0), r = e.prop ? n : Pte("size"), i = e.global ? n : vEe(), a = e.form ? { size: void 0 } : et($N, void 0), o = e.formItem ? { size: void 0 } : et(Cb, void 0);
  2998. return V(() => r.value || z(t) || (o == null ? void 0 : o.size) || (a == null ? void 0 : a.size) || i.value || "");
  2999. }, um = (t) => {
  3000. const e = Pte("disabled"), n = et($N, void 0);
  3001. return V(() => e.value || z(t) || (n == null ? void 0 : n.disabled) || !1);
  3002. }, lp = () => {
  3003. const t = et($N, void 0), e = et(Cb, void 0);
  3004. return {
  3005. form: t,
  3006. formItem: e
  3007. };
  3008. }, Q_ = (t, {
  3009. formItemContext: e,
  3010. disableIdGeneration: n,
  3011. disableIdManagement: r
  3012. }) => {
  3013. n || (n = ee(!1)), r || (r = ee(!1));
  3014. const i = ee();
  3015. let a;
  3016. const o = V(() => {
  3017. var s;
  3018. return !!(!(t.label || t.ariaLabel) && e && e.inputIds && ((s = e.inputIds) == null ? void 0 : s.length) <= 1);
  3019. });
  3020. return _t(() => {
  3021. a = me([Lr(t, "id"), n], ([s, l]) => {
  3022. const u = s ?? (l ? void 0 : wb().value);
  3023. u !== i.value && (e != null && e.removeInputId && (i.value && e.removeInputId(i.value), !(r != null && r.value) && !l && u && e.addInputId(u)), i.value = u);
  3024. }, { immediate: !0 });
  3025. }), qu(() => {
  3026. a && a(), e != null && e.removeInputId && i.value && e.removeInputId(i.value);
  3027. }), {
  3028. isLabeledByFormItem: o,
  3029. inputId: i
  3030. };
  3031. };
  3032. function eh() {
  3033. return eh = Object.assign ? Object.assign.bind() : function(t) {
  3034. for (var e = 1; e < arguments.length; e++) {
  3035. var n = arguments[e];
  3036. for (var r in n)
  3037. Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
  3038. }
  3039. return t;
  3040. }, eh.apply(this, arguments);
  3041. }
  3042. function SEe(t, e) {
  3043. t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Tb(t, e);
  3044. }
  3045. function qD(t) {
  3046. return qD = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
  3047. return n.__proto__ || Object.getPrototypeOf(n);
  3048. }, qD(t);
  3049. }
  3050. function Tb(t, e) {
  3051. return Tb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
  3052. return r.__proto__ = i, r;
  3053. }, Tb(t, e);
  3054. }
  3055. function xEe() {
  3056. if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
  3057. if (typeof Proxy == "function") return !0;
  3058. try {
  3059. return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
  3060. })), !0;
  3061. } catch {
  3062. return !1;
  3063. }
  3064. }
  3065. function Vx(t, e, n) {
  3066. return xEe() ? Vx = Reflect.construct.bind() : Vx = function(i, a, o) {
  3067. var s = [null];
  3068. s.push.apply(s, a);
  3069. var l = Function.bind.apply(i, s), u = new l();
  3070. return o && Tb(u, o.prototype), u;
  3071. }, Vx.apply(null, arguments);
  3072. }
  3073. function wEe(t) {
  3074. return Function.toString.call(t).indexOf("[native code]") !== -1;
  3075. }
  3076. function KD(t) {
  3077. var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
  3078. return KD = function(r) {
  3079. if (r === null || !wEe(r)) return r;
  3080. if (typeof r != "function")
  3081. throw new TypeError("Super expression must either be null or a function");
  3082. if (typeof e < "u") {
  3083. if (e.has(r)) return e.get(r);
  3084. e.set(r, i);
  3085. }
  3086. function i() {
  3087. return Vx(r, arguments, qD(this).constructor);
  3088. }
  3089. return i.prototype = Object.create(r.prototype, {
  3090. constructor: {
  3091. value: i,
  3092. enumerable: !1,
  3093. writable: !0,
  3094. configurable: !0
  3095. }
  3096. }), Tb(i, r);
  3097. }, KD(t);
  3098. }
  3099. var CEe = /%[sdj%]/g, jte = function() {
  3100. };
  3101. typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (jte = function(e, n) {
  3102. typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(r) {
  3103. return typeof r == "string";
  3104. }) && console.warn(e, n);
  3105. });
  3106. function JD(t) {
  3107. if (!t || !t.length) return null;
  3108. var e = {};
  3109. return t.forEach(function(n) {
  3110. var r = n.field;
  3111. e[r] = e[r] || [], e[r].push(n);
  3112. }), e;
  3113. }
  3114. function io(t) {
  3115. for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
  3116. n[r - 1] = arguments[r];
  3117. var i = 0, a = n.length;
  3118. if (typeof t == "function")
  3119. return t.apply(null, n);
  3120. if (typeof t == "string") {
  3121. var o = t.replace(CEe, function(s) {
  3122. if (s === "%%")
  3123. return "%";
  3124. if (i >= a)
  3125. return s;
  3126. switch (s) {
  3127. case "%s":
  3128. return String(n[i++]);
  3129. case "%d":
  3130. return Number(n[i++]);
  3131. case "%j":
  3132. try {
  3133. return JSON.stringify(n[i++]);
  3134. } catch {
  3135. return "[Circular]";
  3136. }
  3137. break;
  3138. default:
  3139. return s;
  3140. }
  3141. });
  3142. return o;
  3143. }
  3144. return t;
  3145. }
  3146. function TEe(t) {
  3147. return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern";
  3148. }
  3149. function Jr(t, e) {
  3150. return !!(t == null || e === "array" && Array.isArray(t) && !t.length || TEe(e) && typeof t == "string" && !t);
  3151. }
  3152. function PEe(t, e, n) {
  3153. var r = [], i = 0, a = t.length;
  3154. function o(s) {
  3155. r.push.apply(r, s || []), i++, i === a && n(r);
  3156. }
  3157. t.forEach(function(s) {
  3158. e(s, o);
  3159. });
  3160. }
  3161. function bW(t, e, n) {
  3162. var r = 0, i = t.length;
  3163. function a(o) {
  3164. if (o && o.length) {
  3165. n(o);
  3166. return;
  3167. }
  3168. var s = r;
  3169. r = r + 1, s < i ? e(t[s], a) : n([]);
  3170. }
  3171. a([]);
  3172. }
  3173. function $Ee(t) {
  3174. var e = [];
  3175. return Object.keys(t).forEach(function(n) {
  3176. e.push.apply(e, t[n] || []);
  3177. }), e;
  3178. }
  3179. var _W = /* @__PURE__ */ function(t) {
  3180. SEe(e, t);
  3181. function e(n, r) {
  3182. var i;
  3183. return i = t.call(this, "Async Validation Error") || this, i.errors = n, i.fields = r, i;
  3184. }
  3185. return e;
  3186. }(/* @__PURE__ */ KD(Error));
  3187. function AEe(t, e, n, r, i) {
  3188. if (e.first) {
  3189. var a = new Promise(function(d, h) {
  3190. var p = function(m) {
  3191. return r(m), m.length ? h(new _W(m, JD(m))) : d(i);
  3192. }, v = $Ee(t);
  3193. bW(v, n, p);
  3194. });
  3195. return a.catch(function(d) {
  3196. return d;
  3197. }), a;
  3198. }
  3199. var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], s = Object.keys(t), l = s.length, u = 0, c = [], f = new Promise(function(d, h) {
  3200. var p = function(g) {
  3201. if (c.push.apply(c, g), u++, u === l)
  3202. return r(c), c.length ? h(new _W(c, JD(c))) : d(i);
  3203. };
  3204. s.length || (r(c), d(i)), s.forEach(function(v) {
  3205. var g = t[v];
  3206. o.indexOf(v) !== -1 ? bW(g, n, p) : PEe(g, n, p);
  3207. });
  3208. });
  3209. return f.catch(function(d) {
  3210. return d;
  3211. }), f;
  3212. }
  3213. function EEe(t) {
  3214. return !!(t && t.message !== void 0);
  3215. }
  3216. function MEe(t, e) {
  3217. for (var n = t, r = 0; r < e.length; r++) {
  3218. if (n == null)
  3219. return n;
  3220. n = n[e[r]];
  3221. }
  3222. return n;
  3223. }
  3224. function OW(t, e) {
  3225. return function(n) {
  3226. var r;
  3227. return t.fullFields ? r = MEe(e, t.fullFields) : r = e[n.field || t.fullField], EEe(n) ? (n.field = n.field || t.fullField, n.fieldValue = r, n) : {
  3228. message: typeof n == "function" ? n() : n,
  3229. fieldValue: r,
  3230. field: n.field || t.fullField
  3231. };
  3232. };
  3233. }
  3234. function SW(t, e) {
  3235. if (e) {
  3236. for (var n in e)
  3237. if (e.hasOwnProperty(n)) {
  3238. var r = e[n];
  3239. typeof r == "object" && typeof t[n] == "object" ? t[n] = eh({}, t[n], r) : t[n] = r;
  3240. }
  3241. }
  3242. return t;
  3243. }
  3244. var Zte = function(e, n, r, i, a, o) {
  3245. e.required && (!r.hasOwnProperty(e.field) || Jr(n, o || e.type)) && i.push(io(a.messages.required, e.fullField));
  3246. }, IEe = function(e, n, r, i, a) {
  3247. (/^\s+$/.test(n) || n === "") && i.push(io(a.messages.whitespace, e.fullField));
  3248. }, kO, DEe = function() {
  3249. if (kO)
  3250. return kO;
  3251. var t = "[a-fA-F\\d:]", e = function(O) {
  3252. return O && O.includeBoundaries ? "(?:(?<=\\s|^)(?=" + t + ")|(?<=" + t + ")(?=\\s|$))" : "";
  3253. }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", i = (`
  3254. (?:
  3255. (?:` + r + ":){7}(?:" + r + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  3256. (?:` + r + ":){6}(?:" + n + "|:" + r + `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  3257. (?:` + r + ":){5}(?::" + n + "|(?::" + r + `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  3258. (?:` + r + ":){4}(?:(?::" + r + "){0,1}:" + n + "|(?::" + r + `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  3259. (?:` + r + ":){3}(?:(?::" + r + "){0,2}:" + n + "|(?::" + r + `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  3260. (?:` + r + ":){2}(?:(?::" + r + "){0,3}:" + n + "|(?::" + r + `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  3261. (?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + n + "|(?::" + r + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  3262. (?::(?:(?::` + r + "){0,5}:" + n + "|(?::" + r + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  3263. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  3264. `).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), a = new RegExp("(?:^" + n + "$)|(?:^" + i + "$)"), o = new RegExp("^" + n + "$"), s = new RegExp("^" + i + "$"), l = function(O) {
  3265. return O && O.exact ? a : new RegExp("(?:" + e(O) + n + e(O) + ")|(?:" + e(O) + i + e(O) + ")", "g");
  3266. };
  3267. l.v4 = function(_) {
  3268. return _ && _.exact ? o : new RegExp("" + e(_) + n + e(_), "g");
  3269. }, l.v6 = function(_) {
  3270. return _ && _.exact ? s : new RegExp("" + e(_) + i + e(_), "g");
  3271. };
  3272. var u = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", f = l.v4().source, d = l.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", p = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", v = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", m = '(?:[/?#][^\\s"]*)?', y = "(?:" + u + "|www\\.)" + c + "(?:localhost|" + f + "|" + d + "|" + h + p + v + ")" + g + m;
  3273. return kO = new RegExp("(?:^" + y + "$)", "i"), kO;
  3274. }, xW = {
  3275. // http://emailregex.com/
  3276. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
  3277. // url: new RegExp(
  3278. // '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
  3279. // 'i',
  3280. // ),
  3281. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  3282. }, uy = {
  3283. integer: function(e) {
  3284. return uy.number(e) && parseInt(e, 10) === e;
  3285. },
  3286. float: function(e) {
  3287. return uy.number(e) && !uy.integer(e);
  3288. },
  3289. array: function(e) {
  3290. return Array.isArray(e);
  3291. },
  3292. regexp: function(e) {
  3293. if (e instanceof RegExp)
  3294. return !0;
  3295. try {
  3296. return !!new RegExp(e);
  3297. } catch {
  3298. return !1;
  3299. }
  3300. },
  3301. date: function(e) {
  3302. return typeof e.getTime == "function" && typeof e.getMonth == "function" && typeof e.getYear == "function" && !isNaN(e.getTime());
  3303. },
  3304. number: function(e) {
  3305. return isNaN(e) ? !1 : typeof e == "number";
  3306. },
  3307. object: function(e) {
  3308. return typeof e == "object" && !uy.array(e);
  3309. },
  3310. method: function(e) {
  3311. return typeof e == "function";
  3312. },
  3313. email: function(e) {
  3314. return typeof e == "string" && e.length <= 320 && !!e.match(xW.email);
  3315. },
  3316. url: function(e) {
  3317. return typeof e == "string" && e.length <= 2048 && !!e.match(DEe());
  3318. },
  3319. hex: function(e) {
  3320. return typeof e == "string" && !!e.match(xW.hex);
  3321. }
  3322. }, REe = function(e, n, r, i, a) {
  3323. if (e.required && n === void 0) {
  3324. Zte(e, n, r, i, a);
  3325. return;
  3326. }
  3327. var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = e.type;
  3328. o.indexOf(s) > -1 ? uy[s](n) || i.push(io(a.messages.types[s], e.fullField, e.type)) : s && typeof n !== e.type && i.push(io(a.messages.types[s], e.fullField, e.type));
  3329. }, kEe = function(e, n, r, i, a) {
  3330. var o = typeof e.len == "number", s = typeof e.min == "number", l = typeof e.max == "number", u = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, f = null, d = typeof n == "number", h = typeof n == "string", p = Array.isArray(n);
  3331. if (d ? f = "number" : h ? f = "string" : p && (f = "array"), !f)
  3332. return !1;
  3333. p && (c = n.length), h && (c = n.replace(u, "_").length), o ? c !== e.len && i.push(io(a.messages[f].len, e.fullField, e.len)) : s && !l && c < e.min ? i.push(io(a.messages[f].min, e.fullField, e.min)) : l && !s && c > e.max ? i.push(io(a.messages[f].max, e.fullField, e.max)) : s && l && (c < e.min || c > e.max) && i.push(io(a.messages[f].range, e.fullField, e.min, e.max));
  3334. }, zp = "enum", LEe = function(e, n, r, i, a) {
  3335. e[zp] = Array.isArray(e[zp]) ? e[zp] : [], e[zp].indexOf(n) === -1 && i.push(io(a.messages[zp], e.fullField, e[zp].join(", ")));
  3336. }, NEe = function(e, n, r, i, a) {
  3337. if (e.pattern) {
  3338. if (e.pattern instanceof RegExp)
  3339. e.pattern.lastIndex = 0, e.pattern.test(n) || i.push(io(a.messages.pattern.mismatch, e.fullField, n, e.pattern));
  3340. else if (typeof e.pattern == "string") {
  3341. var o = new RegExp(e.pattern);
  3342. o.test(n) || i.push(io(a.messages.pattern.mismatch, e.fullField, n, e.pattern));
  3343. }
  3344. }
  3345. }, dn = {
  3346. required: Zte,
  3347. whitespace: IEe,
  3348. type: REe,
  3349. range: kEe,
  3350. enum: LEe,
  3351. pattern: NEe
  3352. }, BEe = function(e, n, r, i, a) {
  3353. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3354. if (s) {
  3355. if (Jr(n, "string") && !e.required)
  3356. return r();
  3357. dn.required(e, n, i, o, a, "string"), Jr(n, "string") || (dn.type(e, n, i, o, a), dn.range(e, n, i, o, a), dn.pattern(e, n, i, o, a), e.whitespace === !0 && dn.whitespace(e, n, i, o, a));
  3358. }
  3359. r(o);
  3360. }, zEe = function(e, n, r, i, a) {
  3361. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3362. if (s) {
  3363. if (Jr(n) && !e.required)
  3364. return r();
  3365. dn.required(e, n, i, o, a), n !== void 0 && dn.type(e, n, i, o, a);
  3366. }
  3367. r(o);
  3368. }, VEe = function(e, n, r, i, a) {
  3369. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3370. if (s) {
  3371. if (n === "" && (n = void 0), Jr(n) && !e.required)
  3372. return r();
  3373. dn.required(e, n, i, o, a), n !== void 0 && (dn.type(e, n, i, o, a), dn.range(e, n, i, o, a));
  3374. }
  3375. r(o);
  3376. }, FEe = function(e, n, r, i, a) {
  3377. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3378. if (s) {
  3379. if (Jr(n) && !e.required)
  3380. return r();
  3381. dn.required(e, n, i, o, a), n !== void 0 && dn.type(e, n, i, o, a);
  3382. }
  3383. r(o);
  3384. }, WEe = function(e, n, r, i, a) {
  3385. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3386. if (s) {
  3387. if (Jr(n) && !e.required)
  3388. return r();
  3389. dn.required(e, n, i, o, a), Jr(n) || dn.type(e, n, i, o, a);
  3390. }
  3391. r(o);
  3392. }, QEe = function(e, n, r, i, a) {
  3393. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3394. if (s) {
  3395. if (Jr(n) && !e.required)
  3396. return r();
  3397. dn.required(e, n, i, o, a), n !== void 0 && (dn.type(e, n, i, o, a), dn.range(e, n, i, o, a));
  3398. }
  3399. r(o);
  3400. }, HEe = function(e, n, r, i, a) {
  3401. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3402. if (s) {
  3403. if (Jr(n) && !e.required)
  3404. return r();
  3405. dn.required(e, n, i, o, a), n !== void 0 && (dn.type(e, n, i, o, a), dn.range(e, n, i, o, a));
  3406. }
  3407. r(o);
  3408. }, GEe = function(e, n, r, i, a) {
  3409. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3410. if (s) {
  3411. if (n == null && !e.required)
  3412. return r();
  3413. dn.required(e, n, i, o, a, "array"), n != null && (dn.type(e, n, i, o, a), dn.range(e, n, i, o, a));
  3414. }
  3415. r(o);
  3416. }, jEe = function(e, n, r, i, a) {
  3417. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3418. if (s) {
  3419. if (Jr(n) && !e.required)
  3420. return r();
  3421. dn.required(e, n, i, o, a), n !== void 0 && dn.type(e, n, i, o, a);
  3422. }
  3423. r(o);
  3424. }, ZEe = "enum", UEe = function(e, n, r, i, a) {
  3425. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3426. if (s) {
  3427. if (Jr(n) && !e.required)
  3428. return r();
  3429. dn.required(e, n, i, o, a), n !== void 0 && dn[ZEe](e, n, i, o, a);
  3430. }
  3431. r(o);
  3432. }, XEe = function(e, n, r, i, a) {
  3433. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3434. if (s) {
  3435. if (Jr(n, "string") && !e.required)
  3436. return r();
  3437. dn.required(e, n, i, o, a), Jr(n, "string") || dn.pattern(e, n, i, o, a);
  3438. }
  3439. r(o);
  3440. }, YEe = function(e, n, r, i, a) {
  3441. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3442. if (s) {
  3443. if (Jr(n, "date") && !e.required)
  3444. return r();
  3445. if (dn.required(e, n, i, o, a), !Jr(n, "date")) {
  3446. var l;
  3447. n instanceof Date ? l = n : l = new Date(n), dn.type(e, l, i, o, a), l && dn.range(e, l.getTime(), i, o, a);
  3448. }
  3449. }
  3450. r(o);
  3451. }, qEe = function(e, n, r, i, a) {
  3452. var o = [], s = Array.isArray(n) ? "array" : typeof n;
  3453. dn.required(e, n, i, o, a, s), r(o);
  3454. }, zA = function(e, n, r, i, a) {
  3455. var o = e.type, s = [], l = e.required || !e.required && i.hasOwnProperty(e.field);
  3456. if (l) {
  3457. if (Jr(n, o) && !e.required)
  3458. return r();
  3459. dn.required(e, n, i, s, a, o), Jr(n, o) || dn.type(e, n, i, s, a);
  3460. }
  3461. r(s);
  3462. }, KEe = function(e, n, r, i, a) {
  3463. var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
  3464. if (s) {
  3465. if (Jr(n) && !e.required)
  3466. return r();
  3467. dn.required(e, n, i, o, a);
  3468. }
  3469. r(o);
  3470. }, Ny = {
  3471. string: BEe,
  3472. method: zEe,
  3473. number: VEe,
  3474. boolean: FEe,
  3475. regexp: WEe,
  3476. integer: QEe,
  3477. float: HEe,
  3478. array: GEe,
  3479. object: jEe,
  3480. enum: UEe,
  3481. pattern: XEe,
  3482. date: YEe,
  3483. url: zA,
  3484. hex: zA,
  3485. email: zA,
  3486. required: qEe,
  3487. any: KEe
  3488. };
  3489. function eR() {
  3490. return {
  3491. default: "Validation error on field %s",
  3492. required: "%s is required",
  3493. enum: "%s must be one of %s",
  3494. whitespace: "%s cannot be empty",
  3495. date: {
  3496. format: "%s date %s is invalid for format %s",
  3497. parse: "%s date could not be parsed, %s is invalid ",
  3498. invalid: "%s date %s is invalid"
  3499. },
  3500. types: {
  3501. string: "%s is not a %s",
  3502. method: "%s is not a %s (function)",
  3503. array: "%s is not an %s",
  3504. object: "%s is not an %s",
  3505. number: "%s is not a %s",
  3506. date: "%s is not a %s",
  3507. boolean: "%s is not a %s",
  3508. integer: "%s is not an %s",
  3509. float: "%s is not a %s",
  3510. regexp: "%s is not a valid %s",
  3511. email: "%s is not a valid %s",
  3512. url: "%s is not a valid %s",
  3513. hex: "%s is not a valid %s"
  3514. },
  3515. string: {
  3516. len: "%s must be exactly %s characters",
  3517. min: "%s must be at least %s characters",
  3518. max: "%s cannot be longer than %s characters",
  3519. range: "%s must be between %s and %s characters"
  3520. },
  3521. number: {
  3522. len: "%s must equal %s",
  3523. min: "%s cannot be less than %s",
  3524. max: "%s cannot be greater than %s",
  3525. range: "%s must be between %s and %s"
  3526. },
  3527. array: {
  3528. len: "%s must be exactly %s in length",
  3529. min: "%s cannot be less than %s in length",
  3530. max: "%s cannot be greater than %s in length",
  3531. range: "%s must be between %s and %s in length"
  3532. },
  3533. pattern: {
  3534. mismatch: "%s value %s does not match pattern %s"
  3535. },
  3536. clone: function() {
  3537. var e = JSON.parse(JSON.stringify(this));
  3538. return e.clone = this.clone, e;
  3539. }
  3540. };
  3541. }
  3542. var tR = eR(), H_ = /* @__PURE__ */ function() {
  3543. function t(n) {
  3544. this.rules = null, this._messages = tR, this.define(n);
  3545. }
  3546. var e = t.prototype;
  3547. return e.define = function(r) {
  3548. var i = this;
  3549. if (!r)
  3550. throw new Error("Cannot configure a schema with no rules");
  3551. if (typeof r != "object" || Array.isArray(r))
  3552. throw new Error("Rules must be an object");
  3553. this.rules = {}, Object.keys(r).forEach(function(a) {
  3554. var o = r[a];
  3555. i.rules[a] = Array.isArray(o) ? o : [o];
  3556. });
  3557. }, e.messages = function(r) {
  3558. return r && (this._messages = SW(eR(), r)), this._messages;
  3559. }, e.validate = function(r, i, a) {
  3560. var o = this;
  3561. i === void 0 && (i = {}), a === void 0 && (a = function() {
  3562. });
  3563. var s = r, l = i, u = a;
  3564. if (typeof l == "function" && (u = l, l = {}), !this.rules || Object.keys(this.rules).length === 0)
  3565. return u && u(null, s), Promise.resolve(s);
  3566. function c(v) {
  3567. var g = [], m = {};
  3568. function y(O) {
  3569. if (Array.isArray(O)) {
  3570. var S;
  3571. g = (S = g).concat.apply(S, O);
  3572. } else
  3573. g.push(O);
  3574. }
  3575. for (var _ = 0; _ < v.length; _++)
  3576. y(v[_]);
  3577. g.length ? (m = JD(g), u(g, m)) : u(null, s);
  3578. }
  3579. if (l.messages) {
  3580. var f = this.messages();
  3581. f === tR && (f = eR()), SW(f, l.messages), l.messages = f;
  3582. } else
  3583. l.messages = this.messages();
  3584. var d = {}, h = l.keys || Object.keys(this.rules);
  3585. h.forEach(function(v) {
  3586. var g = o.rules[v], m = s[v];
  3587. g.forEach(function(y) {
  3588. var _ = y;
  3589. typeof _.transform == "function" && (s === r && (s = eh({}, s)), m = s[v] = _.transform(m)), typeof _ == "function" ? _ = {
  3590. validator: _
  3591. } : _ = eh({}, _), _.validator = o.getValidationMethod(_), _.validator && (_.field = v, _.fullField = _.fullField || v, _.type = o.getType(_), d[v] = d[v] || [], d[v].push({
  3592. rule: _,
  3593. value: m,
  3594. source: s,
  3595. field: v
  3596. }));
  3597. });
  3598. });
  3599. var p = {};
  3600. return AEe(d, l, function(v, g) {
  3601. var m = v.rule, y = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
  3602. y = y && (m.required || !m.required && v.value), m.field = v.field;
  3603. function _(x, C) {
  3604. return eh({}, C, {
  3605. fullField: m.fullField + "." + x,
  3606. fullFields: m.fullFields ? [].concat(m.fullFields, [x]) : [x]
  3607. });
  3608. }
  3609. function O(x) {
  3610. x === void 0 && (x = []);
  3611. var C = Array.isArray(x) ? x : [x];
  3612. !l.suppressWarning && C.length && t.warning("async-validator:", C), C.length && m.message !== void 0 && (C = [].concat(m.message));
  3613. var P = C.map(OW(m, s));
  3614. if (l.first && P.length)
  3615. return p[m.field] = 1, g(P);
  3616. if (!y)
  3617. g(P);
  3618. else {
  3619. if (m.required && !v.value)
  3620. return m.message !== void 0 ? P = [].concat(m.message).map(OW(m, s)) : l.error && (P = [l.error(m, io(l.messages.required, m.field))]), g(P);
  3621. var $ = {};
  3622. m.defaultField && Object.keys(v.value).map(function(M) {
  3623. $[M] = m.defaultField;
  3624. }), $ = eh({}, $, v.rule.fields);
  3625. var T = {};
  3626. Object.keys($).forEach(function(M) {
  3627. var R = $[M], N = Array.isArray(R) ? R : [R];
  3628. T[M] = N.map(_.bind(null, M));
  3629. });
  3630. var E = new t(T);
  3631. E.messages(l.messages), v.rule.options && (v.rule.options.messages = l.messages, v.rule.options.error = l.error), E.validate(v.value, v.rule.options || l, function(M) {
  3632. var R = [];
  3633. P && P.length && R.push.apply(R, P), M && M.length && R.push.apply(R, M), g(R.length ? R : null);
  3634. });
  3635. }
  3636. }
  3637. var S;
  3638. if (m.asyncValidator)
  3639. S = m.asyncValidator(m, v.value, O, v.source, l);
  3640. else if (m.validator) {
  3641. try {
  3642. S = m.validator(m, v.value, O, v.source, l);
  3643. } catch (x) {
  3644. console.error == null || console.error(x), l.suppressValidatorError || setTimeout(function() {
  3645. throw x;
  3646. }, 0), O(x.message);
  3647. }
  3648. S === !0 ? O() : S === !1 ? O(typeof m.message == "function" ? m.message(m.fullField || m.field) : m.message || (m.fullField || m.field) + " fails") : S instanceof Array ? O(S) : S instanceof Error && O(S.message);
  3649. }
  3650. S && S.then && S.then(function() {
  3651. return O();
  3652. }, function(x) {
  3653. return O(x);
  3654. });
  3655. }, function(v) {
  3656. c(v);
  3657. }, s);
  3658. }, e.getType = function(r) {
  3659. if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !Ny.hasOwnProperty(r.type))
  3660. throw new Error(io("Unknown rule type %s", r.type));
  3661. return r.type || "string";
  3662. }, e.getValidationMethod = function(r) {
  3663. if (typeof r.validator == "function")
  3664. return r.validator;
  3665. var i = Object.keys(r), a = i.indexOf("message");
  3666. return a !== -1 && i.splice(a, 1), i.length === 1 && i[0] === "required" ? Ny.required : Ny[this.getType(r)] || void 0;
  3667. }, t;
  3668. }();
  3669. H_.register = function(e, n) {
  3670. if (typeof n != "function")
  3671. throw new Error("Cannot register a validator by type, validator is not a function");
  3672. Ny[e] = n;
  3673. };
  3674. H_.warning = jte;
  3675. H_.messages = tR;
  3676. H_.validators = Ny;
  3677. let Os;
  3678. const JEe = `
  3679. height:0 !important;
  3680. visibility:hidden !important;
  3681. ${Exe() ? "" : "overflow:hidden !important;"}
  3682. position:absolute !important;
  3683. z-index:-1000 !important;
  3684. top:0 !important;
  3685. right:0 !important;
  3686. `, eMe = [
  3687. "letter-spacing",
  3688. "line-height",
  3689. "padding-top",
  3690. "padding-bottom",
  3691. "font-family",
  3692. "font-weight",
  3693. "font-size",
  3694. "text-rendering",
  3695. "text-transform",
  3696. "width",
  3697. "text-indent",
  3698. "padding-left",
  3699. "padding-right",
  3700. "border-width",
  3701. "box-sizing"
  3702. ];
  3703. function tMe(t) {
  3704. const e = window.getComputedStyle(t), n = e.getPropertyValue("box-sizing"), r = Number.parseFloat(e.getPropertyValue("padding-bottom")) + Number.parseFloat(e.getPropertyValue("padding-top")), i = Number.parseFloat(e.getPropertyValue("border-bottom-width")) + Number.parseFloat(e.getPropertyValue("border-top-width"));
  3705. return { contextStyle: eMe.map((o) => `${o}:${e.getPropertyValue(o)}`).join(";"), paddingSize: r, borderSize: i, boxSizing: n };
  3706. }
  3707. function wW(t, e = 1, n) {
  3708. var r;
  3709. Os || (Os = document.createElement("textarea"), document.body.appendChild(Os));
  3710. const { paddingSize: i, borderSize: a, boxSizing: o, contextStyle: s } = tMe(t);
  3711. Os.setAttribute("style", `${s};${JEe}`), Os.value = t.value || t.placeholder || "";
  3712. let l = Os.scrollHeight;
  3713. const u = {};
  3714. o === "border-box" ? l = l + a : o === "content-box" && (l = l - i), Os.value = "";
  3715. const c = Os.scrollHeight - i;
  3716. if (Ws(e)) {
  3717. let f = c * e;
  3718. o === "border-box" && (f = f + i + a), l = Math.max(f, l), u.minHeight = `${f}px`;
  3719. }
  3720. if (Ws(n)) {
  3721. let f = c * n;
  3722. o === "border-box" && (f = f + i + a), l = Math.min(f, l);
  3723. }
  3724. return u.height = `${l}px`, (r = Os.parentNode) == null || r.removeChild(Os), Os = void 0, u;
  3725. }
  3726. const nMe = hr({
  3727. id: {
  3728. type: String,
  3729. default: void 0
  3730. },
  3731. size: op,
  3732. disabled: Boolean,
  3733. modelValue: {
  3734. type: mn([
  3735. String,
  3736. Number,
  3737. Object
  3738. ]),
  3739. default: ""
  3740. },
  3741. maxlength: {
  3742. type: [String, Number]
  3743. },
  3744. minlength: {
  3745. type: [String, Number]
  3746. },
  3747. type: {
  3748. type: String,
  3749. default: "text"
  3750. },
  3751. resize: {
  3752. type: String,
  3753. values: ["none", "both", "horizontal", "vertical"]
  3754. },
  3755. autosize: {
  3756. type: mn([Boolean, Object]),
  3757. default: !1
  3758. },
  3759. autocomplete: {
  3760. type: String,
  3761. default: "off"
  3762. },
  3763. formatter: {
  3764. type: Function
  3765. },
  3766. parser: {
  3767. type: Function
  3768. },
  3769. placeholder: {
  3770. type: String
  3771. },
  3772. form: {
  3773. type: String
  3774. },
  3775. readonly: {
  3776. type: Boolean,
  3777. default: !1
  3778. },
  3779. clearable: {
  3780. type: Boolean,
  3781. default: !1
  3782. },
  3783. showPassword: {
  3784. type: Boolean,
  3785. default: !1
  3786. },
  3787. showWordLimit: {
  3788. type: Boolean,
  3789. default: !1
  3790. },
  3791. suffixIcon: {
  3792. type: _g
  3793. },
  3794. prefixIcon: {
  3795. type: _g
  3796. },
  3797. containerRole: {
  3798. type: String,
  3799. default: void 0
  3800. },
  3801. label: {
  3802. type: String,
  3803. default: void 0
  3804. },
  3805. tabindex: {
  3806. type: [String, Number],
  3807. default: 0
  3808. },
  3809. validateEvent: {
  3810. type: Boolean,
  3811. default: !0
  3812. },
  3813. inputStyle: {
  3814. type: mn([Object, Array, String]),
  3815. default: () => B$e({})
  3816. },
  3817. autofocus: {
  3818. type: Boolean,
  3819. default: !1
  3820. },
  3821. ...sp(["ariaLabel"])
  3822. }), rMe = {
  3823. [ca]: (t) => ia(t),
  3824. input: (t) => ia(t),
  3825. change: (t) => ia(t),
  3826. focus: (t) => t instanceof FocusEvent,
  3827. blur: (t) => t instanceof FocusEvent,
  3828. clear: () => !0,
  3829. mouseleave: (t) => t instanceof MouseEvent,
  3830. mouseenter: (t) => t instanceof MouseEvent,
  3831. keydown: (t) => t instanceof Event,
  3832. compositionstart: (t) => t instanceof CompositionEvent,
  3833. compositionupdate: (t) => t instanceof CompositionEvent,
  3834. compositionend: (t) => t instanceof CompositionEvent
  3835. }, iMe = ["role"], aMe = ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus"], oMe = ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus"], sMe = ae({
  3836. name: "ElInput",
  3837. inheritAttrs: !1
  3838. }), lMe = /* @__PURE__ */ ae({
  3839. ...sMe,
  3840. props: nMe,
  3841. emits: rMe,
  3842. setup(t, { expose: e, emit: n }) {
  3843. const r = t, i = sxe(), a = D_(), o = V(() => {
  3844. const Ae = {};
  3845. return r.containerRole === "combobox" && (Ae["aria-haspopup"] = i["aria-haspopup"], Ae["aria-owns"] = i["aria-owns"], Ae["aria-expanded"] = i["aria-expanded"]), Ae;
  3846. }), s = V(() => [
  3847. r.type === "textarea" ? g.b() : v.b(),
  3848. v.m(h.value),
  3849. v.is("disabled", p.value),
  3850. v.is("exceed", fe.value),
  3851. {
  3852. [v.b("group")]: a.prepend || a.append,
  3853. [v.m("prefix")]: a.prefix || r.prefixIcon,
  3854. [v.m("suffix")]: a.suffix || r.suffixIcon || r.clearable || r.showPassword,
  3855. [v.bm("suffix", "password-clear")]: U.value && j.value,
  3856. [v.b("hidden")]: r.type === "hidden"
  3857. },
  3858. i.class
  3859. ]), l = V(() => [
  3860. v.e("wrapper"),
  3861. v.is("focus", T.value)
  3862. ]), u = F$e({
  3863. excludeKeys: V(() => Object.keys(o.value))
  3864. }), { form: c, formItem: f } = lp(), { inputId: d } = Q_(r, {
  3865. formItemContext: f
  3866. }), h = Tg(), p = um(), v = $n("input"), g = $n("textarea"), m = ve(), y = ve(), _ = ee(!1), O = ee(!1), S = ee(!1), x = ee(), C = ve(r.inputStyle), P = V(() => m.value || y.value), { wrapperRef: $, isFocused: T, handleFocus: E, handleBlur: M } = Hte(P, {
  3867. afterBlur() {
  3868. var Ae;
  3869. r.validateEvent && ((Ae = f == null ? void 0 : f.validate) == null || Ae.call(f, "blur").catch((gt) => Fi(gt)));
  3870. }
  3871. }), R = V(() => {
  3872. var Ae;
  3873. return (Ae = c == null ? void 0 : c.statusIcon) != null ? Ae : !1;
  3874. }), N = V(() => (f == null ? void 0 : f.validateState) || ""), I = V(() => N.value && R$e[N.value]), B = V(() => S.value ? M$e : $$e), Q = V(() => [
  3875. i.style
  3876. ]), W = V(() => [
  3877. r.inputStyle,
  3878. C.value,
  3879. { resize: r.resize }
  3880. ]), H = V(() => Jc(r.modelValue) ? "" : String(r.modelValue)), U = V(() => r.clearable && !p.value && !r.readonly && !!H.value && (T.value || _.value)), j = V(() => r.showPassword && !p.value && !r.readonly && !!H.value && (!!H.value || T.value)), Y = V(() => r.showWordLimit && !!r.maxlength && (r.type === "text" || r.type === "textarea") && !p.value && !r.readonly && !r.showPassword), ne = V(() => H.value.length), fe = V(() => !!Y.value && ne.value > Number(r.maxlength)), ue = V(() => !!a.suffix || !!r.suffixIcon || U.value || r.showPassword || Y.value || !!N.value && R.value), [ye, se] = hEe(m);
  3881. wxe(y, (Ae) => {
  3882. if (q(), !Y.value || r.resize !== "both")
  3883. return;
  3884. const gt = Ae[0], { width: Xt } = gt.contentRect;
  3885. x.value = {
  3886. right: `calc(100% - ${Xt + 15 + 6}px)`
  3887. };
  3888. });
  3889. const he = () => {
  3890. const { type: Ae, autosize: gt } = r;
  3891. if (!(!Fr || Ae !== "textarea" || !y.value))
  3892. if (gt) {
  3893. const Xt = Rh(gt) ? gt.minRows : void 0, Bn = Rh(gt) ? gt.maxRows : void 0, Dn = wW(y.value, Xt, Bn);
  3894. C.value = {
  3895. overflowY: "hidden",
  3896. ...Dn
  3897. }, Bt(() => {
  3898. y.value.offsetHeight, C.value = Dn;
  3899. });
  3900. } else
  3901. C.value = {
  3902. minHeight: wW(y.value).minHeight
  3903. };
  3904. }, q = ((Ae) => {
  3905. let gt = !1;
  3906. return () => {
  3907. var Xt;
  3908. if (gt || !r.autosize)
  3909. return;
  3910. ((Xt = y.value) == null ? void 0 : Xt.offsetParent) === null || (Ae(), gt = !0);
  3911. };
  3912. })(he), K = () => {
  3913. const Ae = P.value, gt = r.formatter ? r.formatter(H.value) : H.value;
  3914. !Ae || Ae.value === gt || (Ae.value = gt);
  3915. }, de = async (Ae) => {
  3916. ye();
  3917. let { value: gt } = Ae.target;
  3918. if (r.formatter && (gt = r.parser ? r.parser(gt) : gt), !O.value) {
  3919. if (gt === H.value) {
  3920. K();
  3921. return;
  3922. }
  3923. n(ca, gt), n("input", gt), await Bt(), K(), se();
  3924. }
  3925. }, xe = (Ae) => {
  3926. n("change", Ae.target.value);
  3927. }, we = (Ae) => {
  3928. n("compositionstart", Ae), O.value = !0;
  3929. }, He = (Ae) => {
  3930. var gt;
  3931. n("compositionupdate", Ae);
  3932. const Xt = (gt = Ae.target) == null ? void 0 : gt.value, Bn = Xt[Xt.length - 1] || "";
  3933. O.value = !N$e(Bn);
  3934. }, je = (Ae) => {
  3935. n("compositionend", Ae), O.value && (O.value = !1, de(Ae));
  3936. }, Be = () => {
  3937. S.value = !S.value, Le();
  3938. }, Le = async () => {
  3939. var Ae;
  3940. await Bt(), (Ae = P.value) == null || Ae.focus();
  3941. }, Pe = () => {
  3942. var Ae;
  3943. return (Ae = P.value) == null ? void 0 : Ae.blur();
  3944. }, Fe = (Ae) => {
  3945. _.value = !1, n("mouseleave", Ae);
  3946. }, Ye = (Ae) => {
  3947. _.value = !0, n("mouseenter", Ae);
  3948. }, xt = (Ae) => {
  3949. n("keydown", Ae);
  3950. }, It = () => {
  3951. var Ae;
  3952. (Ae = P.value) == null || Ae.select();
  3953. }, an = () => {
  3954. n(ca, ""), n("change", ""), n("clear"), n("input", "");
  3955. };
  3956. return me(() => r.modelValue, () => {
  3957. var Ae;
  3958. Bt(() => he()), r.validateEvent && ((Ae = f == null ? void 0 : f.validate) == null || Ae.call(f, "change").catch((gt) => Fi(gt)));
  3959. }), me(H, () => K()), me(() => r.type, async () => {
  3960. await Bt(), K(), he();
  3961. }), _t(() => {
  3962. !r.formatter && r.parser && Fi("ElInput", "If you set the parser, you also need to set the formatter."), K(), Bt(he);
  3963. }), Es({
  3964. from: "label",
  3965. replacement: "aria-label",
  3966. version: "2.8.0",
  3967. scope: "el-input",
  3968. ref: "https://element-plus.org/en-US/component/input.html"
  3969. }, V(() => !!r.label)), e({
  3970. input: m,
  3971. textarea: y,
  3972. ref: P,
  3973. textareaStyle: W,
  3974. autosize: Lr(r, "autosize"),
  3975. focus: Le,
  3976. blur: Pe,
  3977. select: It,
  3978. clear: an,
  3979. resizeTextarea: he
  3980. }), (Ae, gt) => (be(), Ue("div", Xn(z(o), {
  3981. class: [
  3982. z(s),
  3983. {
  3984. [z(v).bm("group", "append")]: Ae.$slots.append,
  3985. [z(v).bm("group", "prepend")]: Ae.$slots.prepend
  3986. }
  3987. ],
  3988. style: z(Q),
  3989. role: Ae.containerRole,
  3990. onMouseenter: Ye,
  3991. onMouseleave: Fe
  3992. }), [
  3993. Ot(" input "),
  3994. Ae.type !== "textarea" ? (be(), Ue(Wt, { key: 0 }, [
  3995. Ot(" prepend slot "),
  3996. Ae.$slots.prepend ? (be(), Ue("div", {
  3997. key: 0,
  3998. class: Ge(z(v).be("group", "prepend"))
  3999. }, [
  4000. ln(Ae.$slots, "prepend")
  4001. ], 2)) : Ot("v-if", !0),
  4002. tt("div", {
  4003. ref_key: "wrapperRef",
  4004. ref: $,
  4005. class: Ge(z(l))
  4006. }, [
  4007. Ot(" prefix slot "),
  4008. Ae.$slots.prefix || Ae.prefixIcon ? (be(), Ue("span", {
  4009. key: 0,
  4010. class: Ge(z(v).e("prefix"))
  4011. }, [
  4012. tt("span", {
  4013. class: Ge(z(v).e("prefix-inner"))
  4014. }, [
  4015. ln(Ae.$slots, "prefix"),
  4016. Ae.prefixIcon ? (be(), Je(z($s), {
  4017. key: 0,
  4018. class: Ge(z(v).e("icon"))
  4019. }, {
  4020. default: ke(() => [
  4021. (be(), Je(As(Ae.prefixIcon)))
  4022. ]),
  4023. _: 1
  4024. }, 8, ["class"])) : Ot("v-if", !0)
  4025. ], 2)
  4026. ], 2)) : Ot("v-if", !0),
  4027. tt("input", Xn({
  4028. id: z(d),
  4029. ref_key: "input",
  4030. ref: m,
  4031. class: z(v).e("inner")
  4032. }, z(u), {
  4033. minlength: Ae.minlength,
  4034. maxlength: Ae.maxlength,
  4035. type: Ae.showPassword ? S.value ? "text" : "password" : Ae.type,
  4036. disabled: z(p),
  4037. readonly: Ae.readonly,
  4038. autocomplete: Ae.autocomplete,
  4039. tabindex: Ae.tabindex,
  4040. "aria-label": Ae.label || Ae.ariaLabel,
  4041. placeholder: Ae.placeholder,
  4042. style: Ae.inputStyle,
  4043. form: Ae.form,
  4044. autofocus: Ae.autofocus,
  4045. onCompositionstart: we,
  4046. onCompositionupdate: He,
  4047. onCompositionend: je,
  4048. onInput: de,
  4049. onFocus: gt[0] || (gt[0] = (...Xt) => z(E) && z(E)(...Xt)),
  4050. onBlur: gt[1] || (gt[1] = (...Xt) => z(M) && z(M)(...Xt)),
  4051. onChange: xe,
  4052. onKeydown: xt
  4053. }), null, 16, aMe),
  4054. Ot(" suffix slot "),
  4055. z(ue) ? (be(), Ue("span", {
  4056. key: 1,
  4057. class: Ge(z(v).e("suffix"))
  4058. }, [
  4059. tt("span", {
  4060. class: Ge(z(v).e("suffix-inner"))
  4061. }, [
  4062. !z(U) || !z(j) || !z(Y) ? (be(), Ue(Wt, { key: 0 }, [
  4063. ln(Ae.$slots, "suffix"),
  4064. Ae.suffixIcon ? (be(), Je(z($s), {
  4065. key: 0,
  4066. class: Ge(z(v).e("icon"))
  4067. }, {
  4068. default: ke(() => [
  4069. (be(), Je(As(Ae.suffixIcon)))
  4070. ]),
  4071. _: 1
  4072. }, 8, ["class"])) : Ot("v-if", !0)
  4073. ], 64)) : Ot("v-if", !0),
  4074. z(U) ? (be(), Je(z($s), {
  4075. key: 1,
  4076. class: Ge([z(v).e("icon"), z(v).e("clear")]),
  4077. onMousedown: ai(z(Kc), ["prevent"]),
  4078. onClick: an
  4079. }, {
  4080. default: ke(() => [
  4081. D(z(Ste))
  4082. ]),
  4083. _: 1
  4084. }, 8, ["class", "onMousedown"])) : Ot("v-if", !0),
  4085. z(j) ? (be(), Je(z($s), {
  4086. key: 2,
  4087. class: Ge([z(v).e("icon"), z(v).e("password")]),
  4088. onClick: Be
  4089. }, {
  4090. default: ke(() => [
  4091. (be(), Je(As(z(B))))
  4092. ]),
  4093. _: 1
  4094. }, 8, ["class"])) : Ot("v-if", !0),
  4095. z(Y) ? (be(), Ue("span", {
  4096. key: 3,
  4097. class: Ge(z(v).e("count"))
  4098. }, [
  4099. tt("span", {
  4100. class: Ge(z(v).e("count-inner"))
  4101. }, xi(z(ne)) + " / " + xi(Ae.maxlength), 3)
  4102. ], 2)) : Ot("v-if", !0),
  4103. z(N) && z(I) && z(R) ? (be(), Je(z($s), {
  4104. key: 4,
  4105. class: Ge([
  4106. z(v).e("icon"),
  4107. z(v).e("validateIcon"),
  4108. z(v).is("loading", z(N) === "validating")
  4109. ])
  4110. }, {
  4111. default: ke(() => [
  4112. (be(), Je(As(z(I))))
  4113. ]),
  4114. _: 1
  4115. }, 8, ["class"])) : Ot("v-if", !0)
  4116. ], 2)
  4117. ], 2)) : Ot("v-if", !0)
  4118. ], 2),
  4119. Ot(" append slot "),
  4120. Ae.$slots.append ? (be(), Ue("div", {
  4121. key: 1,
  4122. class: Ge(z(v).be("group", "append"))
  4123. }, [
  4124. ln(Ae.$slots, "append")
  4125. ], 2)) : Ot("v-if", !0)
  4126. ], 64)) : (be(), Ue(Wt, { key: 1 }, [
  4127. Ot(" textarea "),
  4128. tt("textarea", Xn({
  4129. id: z(d),
  4130. ref_key: "textarea",
  4131. ref: y,
  4132. class: [z(g).e("inner"), z(v).is("focus", z(T))]
  4133. }, z(u), {
  4134. minlength: Ae.minlength,
  4135. maxlength: Ae.maxlength,
  4136. tabindex: Ae.tabindex,
  4137. disabled: z(p),
  4138. readonly: Ae.readonly,
  4139. autocomplete: Ae.autocomplete,
  4140. style: z(W),
  4141. "aria-label": Ae.label || Ae.ariaLabel,
  4142. placeholder: Ae.placeholder,
  4143. form: Ae.form,
  4144. autofocus: Ae.autofocus,
  4145. onCompositionstart: we,
  4146. onCompositionupdate: He,
  4147. onCompositionend: je,
  4148. onInput: de,
  4149. onFocus: gt[2] || (gt[2] = (...Xt) => z(E) && z(E)(...Xt)),
  4150. onBlur: gt[3] || (gt[3] = (...Xt) => z(M) && z(M)(...Xt)),
  4151. onChange: xe,
  4152. onKeydown: xt
  4153. }), null, 16, oMe),
  4154. z(Y) ? (be(), Ue("span", {
  4155. key: 0,
  4156. style: dr(x.value),
  4157. class: Ge(z(v).e("count"))
  4158. }, xi(z(ne)) + " / " + xi(Ae.maxlength), 7)) : Ot("v-if", !0)
  4159. ], 64))
  4160. ], 16, iMe));
  4161. }
  4162. });
  4163. var uMe = /* @__PURE__ */ Nn(lMe, [["__file", "input.vue"]]);
  4164. const p2 = ec(uMe), AN = Symbol("popper"), Ute = Symbol("popperContent"), cMe = [
  4165. "dialog",
  4166. "grid",
  4167. "group",
  4168. "listbox",
  4169. "menu",
  4170. "navigation",
  4171. "tooltip",
  4172. "tree"
  4173. ], Xte = hr({
  4174. role: {
  4175. type: String,
  4176. values: cMe,
  4177. default: "tooltip"
  4178. }
  4179. }), fMe = ae({
  4180. name: "ElPopper",
  4181. inheritAttrs: !1
  4182. }), dMe = /* @__PURE__ */ ae({
  4183. ...fMe,
  4184. props: Xte,
  4185. setup(t, { expose: e }) {
  4186. const n = t, r = ee(), i = ee(), a = ee(), o = ee(), s = V(() => n.role), l = {
  4187. triggerRef: r,
  4188. popperInstanceRef: i,
  4189. contentRef: a,
  4190. referenceRef: o,
  4191. role: s
  4192. };
  4193. return e(l), Et(AN, l), (u, c) => ln(u.$slots, "default");
  4194. }
  4195. });
  4196. var hMe = /* @__PURE__ */ Nn(dMe, [["__file", "popper.vue"]]);
  4197. const Yte = hr({
  4198. arrowOffset: {
  4199. type: Number,
  4200. default: 5
  4201. }
  4202. }), pMe = ae({
  4203. name: "ElPopperArrow",
  4204. inheritAttrs: !1
  4205. }), vMe = /* @__PURE__ */ ae({
  4206. ...pMe,
  4207. props: Yte,
  4208. setup(t, { expose: e }) {
  4209. const n = t, r = $n("popper"), { arrowOffset: i, arrowRef: a, arrowStyle: o } = et(Ute, void 0);
  4210. return me(() => n.arrowOffset, (s) => {
  4211. i.value = s;
  4212. }), Qt(() => {
  4213. a.value = void 0;
  4214. }), e({
  4215. arrowRef: a
  4216. }), (s, l) => (be(), Ue("span", {
  4217. ref_key: "arrowRef",
  4218. ref: a,
  4219. class: Ge(z(r).e("arrow")),
  4220. style: dr(z(o)),
  4221. "data-popper-arrow": ""
  4222. }, null, 6));
  4223. }
  4224. });
  4225. var gMe = /* @__PURE__ */ Nn(vMe, [["__file", "arrow.vue"]]);
  4226. const VA = "ElOnlyChild", mMe = ae({
  4227. name: VA,
  4228. setup(t, {
  4229. slots: e,
  4230. attrs: n
  4231. }) {
  4232. var r;
  4233. const i = et(Wte), a = cEe((r = i == null ? void 0 : i.setForwardRef) != null ? r : Kc);
  4234. return () => {
  4235. var o;
  4236. const s = (o = e.default) == null ? void 0 : o.call(e, n);
  4237. if (!s)
  4238. return null;
  4239. if (s.length > 1)
  4240. return Fi(VA, "requires exact only one valid child."), null;
  4241. const l = qte(s);
  4242. return l ? Sr(ku(l, n), [[a]]) : (Fi(VA, "no valid child node found"), null);
  4243. };
  4244. }
  4245. });
  4246. function qte(t) {
  4247. if (!t)
  4248. return null;
  4249. const e = t;
  4250. for (const n of e) {
  4251. if (Rh(n))
  4252. switch (n.type) {
  4253. case Aee:
  4254. continue;
  4255. case KT:
  4256. case "svg":
  4257. return CW(n);
  4258. case Wt:
  4259. return qte(n.children);
  4260. default:
  4261. return n;
  4262. }
  4263. return CW(n);
  4264. }
  4265. return null;
  4266. }
  4267. function CW(t) {
  4268. const e = $n("only-child");
  4269. return D("span", {
  4270. class: e.e("content")
  4271. }, [t]);
  4272. }
  4273. const Kte = hr({
  4274. virtualRef: {
  4275. type: mn(Object)
  4276. },
  4277. virtualTriggering: Boolean,
  4278. onMouseenter: {
  4279. type: mn(Function)
  4280. },
  4281. onMouseleave: {
  4282. type: mn(Function)
  4283. },
  4284. onClick: {
  4285. type: mn(Function)
  4286. },
  4287. onKeydown: {
  4288. type: mn(Function)
  4289. },
  4290. onFocus: {
  4291. type: mn(Function)
  4292. },
  4293. onBlur: {
  4294. type: mn(Function)
  4295. },
  4296. onContextmenu: {
  4297. type: mn(Function)
  4298. },
  4299. id: String,
  4300. open: Boolean
  4301. }), yMe = ae({
  4302. name: "ElPopperTrigger",
  4303. inheritAttrs: !1
  4304. }), bMe = /* @__PURE__ */ ae({
  4305. ...yMe,
  4306. props: Kte,
  4307. setup(t, { expose: e }) {
  4308. const n = t, { role: r, triggerRef: i } = et(AN, void 0);
  4309. uEe(i);
  4310. const a = V(() => s.value ? n.id : void 0), o = V(() => {
  4311. if (r && r.value === "tooltip")
  4312. return n.open && n.id ? n.id : void 0;
  4313. }), s = V(() => {
  4314. if (r && r.value !== "tooltip")
  4315. return r.value;
  4316. }), l = V(() => s.value ? `${n.open}` : void 0);
  4317. let u;
  4318. return _t(() => {
  4319. me(() => n.virtualRef, (c) => {
  4320. c && (i.value = zc(c));
  4321. }, {
  4322. immediate: !0
  4323. }), me(i, (c, f) => {
  4324. u == null || u(), u = void 0, Ob(c) && ([
  4325. "onMouseenter",
  4326. "onMouseleave",
  4327. "onClick",
  4328. "onKeydown",
  4329. "onFocus",
  4330. "onBlur",
  4331. "onContextmenu"
  4332. ].forEach((d) => {
  4333. var h;
  4334. const p = n[d];
  4335. p && (c.addEventListener(d.slice(2).toLowerCase(), p), (h = f == null ? void 0 : f.removeEventListener) == null || h.call(f, d.slice(2).toLowerCase(), p));
  4336. }), u = me([a, o, s, l], (d) => {
  4337. [
  4338. "aria-controls",
  4339. "aria-describedby",
  4340. "aria-haspopup",
  4341. "aria-expanded"
  4342. ].forEach((h, p) => {
  4343. Jc(d[p]) ? c.removeAttribute(h) : c.setAttribute(h, d[p]);
  4344. });
  4345. }, { immediate: !0 })), Ob(f) && [
  4346. "aria-controls",
  4347. "aria-describedby",
  4348. "aria-haspopup",
  4349. "aria-expanded"
  4350. ].forEach((d) => f.removeAttribute(d));
  4351. }, {
  4352. immediate: !0
  4353. });
  4354. }), Qt(() => {
  4355. u == null || u(), u = void 0;
  4356. }), e({
  4357. triggerRef: i
  4358. }), (c, f) => c.virtualTriggering ? Ot("v-if", !0) : (be(), Je(z(mMe), Xn({ key: 0 }, c.$attrs, {
  4359. "aria-controls": z(a),
  4360. "aria-describedby": z(o),
  4361. "aria-expanded": z(l),
  4362. "aria-haspopup": z(s)
  4363. }), {
  4364. default: ke(() => [
  4365. ln(c.$slots, "default")
  4366. ]),
  4367. _: 3
  4368. }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
  4369. }
  4370. });
  4371. var _Me = /* @__PURE__ */ Nn(bMe, [["__file", "trigger.vue"]]);
  4372. const FA = "focus-trap.focus-after-trapped", WA = "focus-trap.focus-after-released", OMe = "focus-trap.focusout-prevented", TW = {
  4373. cancelable: !0,
  4374. bubbles: !1
  4375. }, SMe = {
  4376. cancelable: !0,
  4377. bubbles: !1
  4378. }, PW = "focusAfterTrapped", $W = "focusAfterReleased", Jte = Symbol("elFocusTrap"), EN = ee(), v2 = ee(0), MN = ee(0);
  4379. let LO = 0;
  4380. const ene = (t) => {
  4381. const e = [], n = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
  4382. acceptNode: (r) => {
  4383. const i = r.tagName === "INPUT" && r.type === "hidden";
  4384. return r.disabled || r.hidden || i ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 || r === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
  4385. }
  4386. });
  4387. for (; n.nextNode(); )
  4388. e.push(n.currentNode);
  4389. return e;
  4390. }, AW = (t, e) => {
  4391. for (const n of t)
  4392. if (!xMe(n, e))
  4393. return n;
  4394. }, xMe = (t, e) => {
  4395. if (process.env.NODE_ENV === "test")
  4396. return !1;
  4397. if (getComputedStyle(t).visibility === "hidden")
  4398. return !0;
  4399. for (; t; ) {
  4400. if (e && t === e)
  4401. return !1;
  4402. if (getComputedStyle(t).display === "none")
  4403. return !0;
  4404. t = t.parentElement;
  4405. }
  4406. return !1;
  4407. }, wMe = (t) => {
  4408. const e = ene(t), n = AW(e, t), r = AW(e.reverse(), t);
  4409. return [n, r];
  4410. }, CMe = (t) => t instanceof HTMLInputElement && "select" in t, Pc = (t, e) => {
  4411. if (t && t.focus) {
  4412. const n = document.activeElement;
  4413. t.focus({ preventScroll: !0 }), MN.value = window.performance.now(), t !== n && CMe(t) && e && t.select();
  4414. }
  4415. };
  4416. function EW(t, e) {
  4417. const n = [...t], r = t.indexOf(e);
  4418. return r !== -1 && n.splice(r, 1), n;
  4419. }
  4420. const TMe = () => {
  4421. let t = [];
  4422. return {
  4423. push: (r) => {
  4424. const i = t[0];
  4425. i && r !== i && i.pause(), t = EW(t, r), t.unshift(r);
  4426. },
  4427. remove: (r) => {
  4428. var i, a;
  4429. t = EW(t, r), (a = (i = t[0]) == null ? void 0 : i.resume) == null || a.call(i);
  4430. }
  4431. };
  4432. }, PMe = (t, e = !1) => {
  4433. const n = document.activeElement;
  4434. for (const r of t)
  4435. if (Pc(r, e), document.activeElement !== n)
  4436. return;
  4437. }, MW = TMe(), $Me = () => v2.value > MN.value, NO = () => {
  4438. EN.value = "pointer", v2.value = window.performance.now();
  4439. }, IW = () => {
  4440. EN.value = "keyboard", v2.value = window.performance.now();
  4441. }, AMe = () => (_t(() => {
  4442. LO === 0 && (document.addEventListener("mousedown", NO), document.addEventListener("touchstart", NO), document.addEventListener("keydown", IW)), LO++;
  4443. }), Qt(() => {
  4444. LO--, LO <= 0 && (document.removeEventListener("mousedown", NO), document.removeEventListener("touchstart", NO), document.removeEventListener("keydown", IW));
  4445. }), {
  4446. focusReason: EN,
  4447. lastUserFocusTimestamp: v2,
  4448. lastAutomatedFocusTimestamp: MN
  4449. }), BO = (t) => new CustomEvent(OMe, {
  4450. ...SMe,
  4451. detail: t
  4452. }), EMe = ae({
  4453. name: "ElFocusTrap",
  4454. inheritAttrs: !1,
  4455. props: {
  4456. loop: Boolean,
  4457. trapped: Boolean,
  4458. focusTrapEl: Object,
  4459. focusStartEl: {
  4460. type: [Object, String],
  4461. default: "first"
  4462. }
  4463. },
  4464. emits: [
  4465. PW,
  4466. $W,
  4467. "focusin",
  4468. "focusout",
  4469. "focusout-prevented",
  4470. "release-requested"
  4471. ],
  4472. setup(t, { emit: e }) {
  4473. const n = ee();
  4474. let r, i;
  4475. const { focusReason: a } = AMe();
  4476. iEe((p) => {
  4477. t.trapped && !o.paused && e("release-requested", p);
  4478. });
  4479. const o = {
  4480. paused: !1,
  4481. pause() {
  4482. this.paused = !0;
  4483. },
  4484. resume() {
  4485. this.paused = !1;
  4486. }
  4487. }, s = (p) => {
  4488. if (!t.loop && !t.trapped || o.paused)
  4489. return;
  4490. const { key: v, altKey: g, ctrlKey: m, metaKey: y, currentTarget: _, shiftKey: O } = p, { loop: S } = t, x = v === wa.tab && !g && !m && !y, C = document.activeElement;
  4491. if (x && C) {
  4492. const P = _, [$, T] = wMe(P);
  4493. if ($ && T) {
  4494. if (!O && C === T) {
  4495. const M = BO({
  4496. focusReason: a.value
  4497. });
  4498. e("focusout-prevented", M), M.defaultPrevented || (p.preventDefault(), S && Pc($, !0));
  4499. } else if (O && [$, P].includes(C)) {
  4500. const M = BO({
  4501. focusReason: a.value
  4502. });
  4503. e("focusout-prevented", M), M.defaultPrevented || (p.preventDefault(), S && Pc(T, !0));
  4504. }
  4505. } else if (C === P) {
  4506. const M = BO({
  4507. focusReason: a.value
  4508. });
  4509. e("focusout-prevented", M), M.defaultPrevented || p.preventDefault();
  4510. }
  4511. }
  4512. };
  4513. Et(Jte, {
  4514. focusTrapRef: n,
  4515. onKeydown: s
  4516. }), me(() => t.focusTrapEl, (p) => {
  4517. p && (n.value = p);
  4518. }, { immediate: !0 }), me([n], ([p], [v]) => {
  4519. p && (p.addEventListener("keydown", s), p.addEventListener("focusin", c), p.addEventListener("focusout", f)), v && (v.removeEventListener("keydown", s), v.removeEventListener("focusin", c), v.removeEventListener("focusout", f));
  4520. });
  4521. const l = (p) => {
  4522. e(PW, p);
  4523. }, u = (p) => e($W, p), c = (p) => {
  4524. const v = z(n);
  4525. if (!v)
  4526. return;
  4527. const g = p.target, m = p.relatedTarget, y = g && v.contains(g);
  4528. t.trapped || m && v.contains(m) || (r = m), y && e("focusin", p), !o.paused && t.trapped && (y ? i = g : Pc(i, !0));
  4529. }, f = (p) => {
  4530. const v = z(n);
  4531. if (!(o.paused || !v))
  4532. if (t.trapped) {
  4533. const g = p.relatedTarget;
  4534. !Jc(g) && !v.contains(g) && setTimeout(() => {
  4535. if (!o.paused && t.trapped) {
  4536. const m = BO({
  4537. focusReason: a.value
  4538. });
  4539. e("focusout-prevented", m), m.defaultPrevented || Pc(i, !0);
  4540. }
  4541. }, 0);
  4542. } else {
  4543. const g = p.target;
  4544. g && v.contains(g) || e("focusout", p);
  4545. }
  4546. };
  4547. async function d() {
  4548. await Bt();
  4549. const p = z(n);
  4550. if (p) {
  4551. MW.push(o);
  4552. const v = p.contains(document.activeElement) ? r : document.activeElement;
  4553. if (r = v, !p.contains(v)) {
  4554. const m = new Event(FA, TW);
  4555. p.addEventListener(FA, l), p.dispatchEvent(m), m.defaultPrevented || Bt(() => {
  4556. let y = t.focusStartEl;
  4557. ia(y) || (Pc(y), document.activeElement !== y && (y = "first")), y === "first" && PMe(ene(p), !0), (document.activeElement === v || y === "container") && Pc(p);
  4558. });
  4559. }
  4560. }
  4561. }
  4562. function h() {
  4563. const p = z(n);
  4564. if (p) {
  4565. p.removeEventListener(FA, l);
  4566. const v = new CustomEvent(WA, {
  4567. ...TW,
  4568. detail: {
  4569. focusReason: a.value
  4570. }
  4571. });
  4572. p.addEventListener(WA, u), p.dispatchEvent(v), !v.defaultPrevented && (a.value == "keyboard" || !$Me() || p.contains(document.activeElement)) && Pc(r ?? document.body), p.removeEventListener(WA, u), MW.remove(o);
  4573. }
  4574. }
  4575. return _t(() => {
  4576. t.trapped && d(), me(() => t.trapped, (p) => {
  4577. p ? d() : h();
  4578. });
  4579. }), Qt(() => {
  4580. t.trapped && h();
  4581. }), {
  4582. onKeydown: s
  4583. };
  4584. }
  4585. });
  4586. function MMe(t, e, n, r, i, a) {
  4587. return ln(t.$slots, "default", { handleKeydown: t.onKeydown });
  4588. }
  4589. var tne = /* @__PURE__ */ Nn(EMe, [["render", MMe], ["__file", "focus-trap.vue"]]);
  4590. const IMe = ["fixed", "absolute"], DMe = hr({
  4591. boundariesPadding: {
  4592. type: Number,
  4593. default: 0
  4594. },
  4595. fallbackPlacements: {
  4596. type: mn(Array),
  4597. default: void 0
  4598. },
  4599. gpuAcceleration: {
  4600. type: Boolean,
  4601. default: !0
  4602. },
  4603. offset: {
  4604. type: Number,
  4605. default: 12
  4606. },
  4607. placement: {
  4608. type: String,
  4609. values: _N,
  4610. default: "bottom"
  4611. },
  4612. popperOptions: {
  4613. type: mn(Object),
  4614. default: () => ({})
  4615. },
  4616. strategy: {
  4617. type: String,
  4618. values: IMe,
  4619. default: "absolute"
  4620. }
  4621. }), nne = hr({
  4622. ...DMe,
  4623. id: String,
  4624. style: {
  4625. type: mn([String, Array, Object])
  4626. },
  4627. className: {
  4628. type: mn([String, Array, Object])
  4629. },
  4630. effect: {
  4631. type: String,
  4632. default: "dark"
  4633. },
  4634. visible: Boolean,
  4635. enterable: {
  4636. type: Boolean,
  4637. default: !0
  4638. },
  4639. pure: Boolean,
  4640. focusOnShow: {
  4641. type: Boolean,
  4642. default: !1
  4643. },
  4644. trapping: {
  4645. type: Boolean,
  4646. default: !1
  4647. },
  4648. popperClass: {
  4649. type: mn([String, Array, Object])
  4650. },
  4651. popperStyle: {
  4652. type: mn([String, Array, Object])
  4653. },
  4654. referenceEl: {
  4655. type: mn(Object)
  4656. },
  4657. triggerTargetEl: {
  4658. type: mn(Object)
  4659. },
  4660. stopPopperMouseEvent: {
  4661. type: Boolean,
  4662. default: !0
  4663. },
  4664. virtualTriggering: Boolean,
  4665. zIndex: Number,
  4666. ...sp(["ariaLabel"])
  4667. }), RMe = {
  4668. mouseenter: (t) => t instanceof MouseEvent,
  4669. mouseleave: (t) => t instanceof MouseEvent,
  4670. focus: () => !0,
  4671. blur: () => !0,
  4672. close: () => !0
  4673. }, kMe = (t, e = []) => {
  4674. const { placement: n, strategy: r, popperOptions: i } = t, a = {
  4675. placement: n,
  4676. strategy: r,
  4677. ...i,
  4678. modifiers: [...NMe(t), ...e]
  4679. };
  4680. return BMe(a, i == null ? void 0 : i.modifiers), a;
  4681. }, LMe = (t) => {
  4682. if (Fr)
  4683. return zc(t);
  4684. };
  4685. function NMe(t) {
  4686. const { offset: e, gpuAcceleration: n, fallbackPlacements: r } = t;
  4687. return [
  4688. {
  4689. name: "offset",
  4690. options: {
  4691. offset: [0, e ?? 12]
  4692. }
  4693. },
  4694. {
  4695. name: "preventOverflow",
  4696. options: {
  4697. padding: {
  4698. top: 2,
  4699. bottom: 2,
  4700. left: 5,
  4701. right: 5
  4702. }
  4703. }
  4704. },
  4705. {
  4706. name: "flip",
  4707. options: {
  4708. padding: 5,
  4709. fallbackPlacements: r
  4710. }
  4711. },
  4712. {
  4713. name: "computeStyles",
  4714. options: {
  4715. gpuAcceleration: n
  4716. }
  4717. }
  4718. ];
  4719. }
  4720. function BMe(t, e) {
  4721. e && (t.modifiers = [...t.modifiers, ...e ?? []]);
  4722. }
  4723. const zMe = 0, VMe = (t) => {
  4724. const { popperInstanceRef: e, contentRef: n, triggerRef: r, role: i } = et(AN, void 0), a = ee(), o = ee(), s = V(() => ({
  4725. name: "eventListeners",
  4726. enabled: !!t.visible
  4727. })), l = V(() => {
  4728. var m;
  4729. const y = z(a), _ = (m = z(o)) != null ? m : zMe;
  4730. return {
  4731. name: "arrow",
  4732. enabled: !gte(y),
  4733. options: {
  4734. element: y,
  4735. padding: _
  4736. }
  4737. };
  4738. }), u = V(() => ({
  4739. onFirstUpdate: () => {
  4740. p();
  4741. },
  4742. ...kMe(t, [
  4743. z(l),
  4744. z(s)
  4745. ])
  4746. })), c = V(() => LMe(t.referenceEl) || z(r)), { attributes: f, state: d, styles: h, update: p, forceUpdate: v, instanceRef: g } = tEe(c, n, u);
  4747. return me(g, (m) => e.value = m), _t(() => {
  4748. me(() => {
  4749. var m;
  4750. return (m = z(c)) == null ? void 0 : m.getBoundingClientRect();
  4751. }, () => {
  4752. p();
  4753. });
  4754. }), {
  4755. attributes: f,
  4756. arrowRef: a,
  4757. contentRef: n,
  4758. instanceRef: g,
  4759. state: d,
  4760. styles: h,
  4761. role: i,
  4762. forceUpdate: v,
  4763. update: p
  4764. };
  4765. }, FMe = (t, {
  4766. attributes: e,
  4767. styles: n,
  4768. role: r
  4769. }) => {
  4770. const { nextZIndex: i } = Qte(), a = $n("popper"), o = V(() => z(e).popper), s = ee(Ws(t.zIndex) ? t.zIndex : i()), l = V(() => [
  4771. a.b(),
  4772. a.is("pure", t.pure),
  4773. a.is(t.effect),
  4774. t.popperClass
  4775. ]), u = V(() => [
  4776. { zIndex: z(s) },
  4777. z(n).popper,
  4778. t.popperStyle || {}
  4779. ]), c = V(() => r.value === "dialog" ? "false" : void 0), f = V(() => z(n).arrow || {});
  4780. return {
  4781. ariaModal: c,
  4782. arrowStyle: f,
  4783. contentAttrs: o,
  4784. contentClass: l,
  4785. contentStyle: u,
  4786. contentZIndex: s,
  4787. updateZIndex: () => {
  4788. s.value = Ws(t.zIndex) ? t.zIndex : i();
  4789. }
  4790. };
  4791. }, WMe = (t, e) => {
  4792. const n = ee(!1), r = ee();
  4793. return {
  4794. focusStartRef: r,
  4795. trapped: n,
  4796. onFocusAfterReleased: (u) => {
  4797. var c;
  4798. ((c = u.detail) == null ? void 0 : c.focusReason) !== "pointer" && (r.value = "first", e("blur"));
  4799. },
  4800. onFocusAfterTrapped: () => {
  4801. e("focus");
  4802. },
  4803. onFocusInTrap: (u) => {
  4804. t.visible && !n.value && (u.target && (r.value = u.target), n.value = !0);
  4805. },
  4806. onFocusoutPrevented: (u) => {
  4807. t.trapping || (u.detail.focusReason === "pointer" && u.preventDefault(), n.value = !1);
  4808. },
  4809. onReleaseRequested: () => {
  4810. n.value = !1, e("close");
  4811. }
  4812. };
  4813. }, QMe = ae({
  4814. name: "ElPopperContent"
  4815. }), HMe = /* @__PURE__ */ ae({
  4816. ...QMe,
  4817. props: nne,
  4818. emits: RMe,
  4819. setup(t, { expose: e, emit: n }) {
  4820. const r = t, {
  4821. focusStartRef: i,
  4822. trapped: a,
  4823. onFocusAfterReleased: o,
  4824. onFocusAfterTrapped: s,
  4825. onFocusInTrap: l,
  4826. onFocusoutPrevented: u,
  4827. onReleaseRequested: c
  4828. } = WMe(r, n), { attributes: f, arrowRef: d, contentRef: h, styles: p, instanceRef: v, role: g, update: m } = VMe(r), {
  4829. ariaModal: y,
  4830. arrowStyle: _,
  4831. contentAttrs: O,
  4832. contentClass: S,
  4833. contentStyle: x,
  4834. updateZIndex: C
  4835. } = FMe(r, {
  4836. styles: p,
  4837. attributes: f,
  4838. role: g
  4839. }), P = et(Cb, void 0), $ = ee();
  4840. Et(Ute, {
  4841. arrowStyle: _,
  4842. arrowRef: d,
  4843. arrowOffset: $
  4844. }), P && Et(Cb, {
  4845. ...P,
  4846. addInputId: Kc,
  4847. removeInputId: Kc
  4848. });
  4849. let T;
  4850. const E = (R = !0) => {
  4851. m(), R && C();
  4852. }, M = () => {
  4853. E(!1), r.visible && r.focusOnShow ? a.value = !0 : r.visible === !1 && (a.value = !1);
  4854. };
  4855. return _t(() => {
  4856. me(() => r.triggerTargetEl, (R, N) => {
  4857. T == null || T(), T = void 0;
  4858. const I = z(R || h.value), B = z(N || h.value);
  4859. Ob(I) && (T = me([g, () => r.ariaLabel, y, () => r.id], (Q) => {
  4860. ["role", "aria-label", "aria-modal", "id"].forEach((W, H) => {
  4861. Jc(Q[H]) ? I.removeAttribute(W) : I.setAttribute(W, Q[H]);
  4862. });
  4863. }, { immediate: !0 })), B !== I && Ob(B) && ["role", "aria-label", "aria-modal", "id"].forEach((Q) => {
  4864. B.removeAttribute(Q);
  4865. });
  4866. }, { immediate: !0 }), me(() => r.visible, M, { immediate: !0 });
  4867. }), Qt(() => {
  4868. T == null || T(), T = void 0;
  4869. }), e({
  4870. popperContentRef: h,
  4871. popperInstanceRef: v,
  4872. updatePopper: E,
  4873. contentStyle: x
  4874. }), (R, N) => (be(), Ue("div", Xn({
  4875. ref_key: "contentRef",
  4876. ref: h
  4877. }, z(O), {
  4878. style: z(x),
  4879. class: z(S),
  4880. tabindex: "-1",
  4881. onMouseenter: N[0] || (N[0] = (I) => R.$emit("mouseenter", I)),
  4882. onMouseleave: N[1] || (N[1] = (I) => R.$emit("mouseleave", I))
  4883. }), [
  4884. D(z(tne), {
  4885. trapped: z(a),
  4886. "trap-on-focus-in": !0,
  4887. "focus-trap-el": z(h),
  4888. "focus-start-el": z(i),
  4889. onFocusAfterTrapped: z(s),
  4890. onFocusAfterReleased: z(o),
  4891. onFocusin: z(l),
  4892. onFocusoutPrevented: z(u),
  4893. onReleaseRequested: z(c)
  4894. }, {
  4895. default: ke(() => [
  4896. ln(R.$slots, "default")
  4897. ]),
  4898. _: 3
  4899. }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
  4900. ], 16));
  4901. }
  4902. });
  4903. var GMe = /* @__PURE__ */ Nn(HMe, [["__file", "content.vue"]]);
  4904. const jMe = ec(hMe), IN = Symbol("elTooltip"), DN = hr({
  4905. ...sEe,
  4906. ...nne,
  4907. appendTo: {
  4908. type: mn([String, Object])
  4909. },
  4910. content: {
  4911. type: String,
  4912. default: ""
  4913. },
  4914. rawContent: {
  4915. type: Boolean,
  4916. default: !1
  4917. },
  4918. persistent: Boolean,
  4919. visible: {
  4920. type: mn(Boolean),
  4921. default: null
  4922. },
  4923. transition: String,
  4924. teleported: {
  4925. type: Boolean,
  4926. default: !0
  4927. },
  4928. disabled: Boolean,
  4929. ...sp(["ariaLabel"])
  4930. }), rne = hr({
  4931. ...Kte,
  4932. disabled: Boolean,
  4933. trigger: {
  4934. type: mn([String, Array]),
  4935. default: "hover"
  4936. },
  4937. triggerKeys: {
  4938. type: mn(Array),
  4939. default: () => [wa.enter, wa.space]
  4940. }
  4941. }), {
  4942. useModelToggleProps: ZMe,
  4943. useModelToggleEmits: UMe,
  4944. useModelToggle: XMe
  4945. } = Tte("visible"), YMe = hr({
  4946. ...Xte,
  4947. ...ZMe,
  4948. ...DN,
  4949. ...rne,
  4950. ...Yte,
  4951. showArrow: {
  4952. type: Boolean,
  4953. default: !0
  4954. }
  4955. }), qMe = [
  4956. ...UMe,
  4957. "before-show",
  4958. "before-hide",
  4959. "show",
  4960. "hide",
  4961. "open",
  4962. "close"
  4963. ], KMe = (t, e) => dg(t) ? t.includes(e) : t === e, Vp = (t, e, n) => (r) => {
  4964. KMe(z(t), e) && n(r);
  4965. }, JMe = ae({
  4966. name: "ElTooltipTrigger"
  4967. }), eIe = /* @__PURE__ */ ae({
  4968. ...JMe,
  4969. props: rne,
  4970. setup(t, { expose: e }) {
  4971. const n = t, r = $n("tooltip"), { controlled: i, id: a, open: o, onOpen: s, onClose: l, onToggle: u } = et(IN, void 0), c = ee(null), f = () => {
  4972. if (z(i) || n.disabled)
  4973. return !0;
  4974. }, d = Lr(n, "trigger"), h = mu(f, Vp(d, "hover", s)), p = mu(f, Vp(d, "hover", l)), v = mu(f, Vp(d, "click", (O) => {
  4975. O.button === 0 && u(O);
  4976. })), g = mu(f, Vp(d, "focus", s)), m = mu(f, Vp(d, "focus", l)), y = mu(f, Vp(d, "contextmenu", (O) => {
  4977. O.preventDefault(), u(O);
  4978. })), _ = mu(f, (O) => {
  4979. const { code: S } = O;
  4980. n.triggerKeys.includes(S) && (O.preventDefault(), u(O));
  4981. });
  4982. return e({
  4983. triggerRef: c
  4984. }), (O, S) => (be(), Je(z(_Me), {
  4985. id: z(a),
  4986. "virtual-ref": O.virtualRef,
  4987. open: z(o),
  4988. "virtual-triggering": O.virtualTriggering,
  4989. class: Ge(z(r).e("trigger")),
  4990. onBlur: z(m),
  4991. onClick: z(v),
  4992. onContextmenu: z(y),
  4993. onFocus: z(g),
  4994. onMouseenter: z(h),
  4995. onMouseleave: z(p),
  4996. onKeydown: z(_)
  4997. }, {
  4998. default: ke(() => [
  4999. ln(O.$slots, "default")
  5000. ]),
  5001. _: 3
  5002. }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
  5003. }
  5004. });
  5005. var tIe = /* @__PURE__ */ Nn(eIe, [["__file", "trigger.vue"]]);
  5006. const nIe = ae({
  5007. name: "ElTooltipContent",
  5008. inheritAttrs: !1
  5009. }), rIe = /* @__PURE__ */ ae({
  5010. ...nIe,
  5011. props: DN,
  5012. setup(t, { expose: e }) {
  5013. const n = t, { selector: r } = Fte(), i = $n("tooltip"), a = ee(null), o = ee(!1), {
  5014. controlled: s,
  5015. id: l,
  5016. open: u,
  5017. trigger: c,
  5018. onClose: f,
  5019. onOpen: d,
  5020. onShow: h,
  5021. onHide: p,
  5022. onBeforeShow: v,
  5023. onBeforeHide: g
  5024. } = et(IN, void 0), m = V(() => n.transition || `${i.namespace.value}-fade-in-linear`), y = V(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
  5025. Qt(() => {
  5026. o.value = !0;
  5027. });
  5028. const _ = V(() => z(y) ? !0 : z(u)), O = V(() => n.disabled ? !1 : z(u)), S = V(() => n.appendTo || r.value), x = V(() => {
  5029. var Q;
  5030. return (Q = n.style) != null ? Q : {};
  5031. }), C = V(() => !z(u)), P = () => {
  5032. p();
  5033. }, $ = () => {
  5034. if (z(s))
  5035. return !0;
  5036. }, T = mu($, () => {
  5037. n.enterable && z(c) === "hover" && d();
  5038. }), E = mu($, () => {
  5039. z(c) === "hover" && f();
  5040. }), M = () => {
  5041. var Q, W;
  5042. (W = (Q = a.value) == null ? void 0 : Q.updatePopper) == null || W.call(Q), v == null || v();
  5043. }, R = () => {
  5044. g == null || g();
  5045. }, N = () => {
  5046. h(), B = bxe(V(() => {
  5047. var Q;
  5048. return (Q = a.value) == null ? void 0 : Q.popperContentRef;
  5049. }), () => {
  5050. if (z(s))
  5051. return;
  5052. z(c) !== "hover" && f();
  5053. });
  5054. }, I = () => {
  5055. n.virtualTriggering || f();
  5056. };
  5057. let B;
  5058. return me(() => z(u), (Q) => {
  5059. Q || B == null || B();
  5060. }, {
  5061. flush: "post"
  5062. }), me(() => n.content, () => {
  5063. var Q, W;
  5064. (W = (Q = a.value) == null ? void 0 : Q.updatePopper) == null || W.call(Q);
  5065. }), e({
  5066. contentRef: a
  5067. }), (Q, W) => (be(), Je(R_, {
  5068. disabled: !Q.teleported,
  5069. to: z(S)
  5070. }, [
  5071. D(mo, {
  5072. name: z(m),
  5073. onAfterLeave: P,
  5074. onBeforeEnter: M,
  5075. onAfterEnter: N,
  5076. onBeforeLeave: R
  5077. }, {
  5078. default: ke(() => [
  5079. z(_) ? Sr((be(), Je(z(GMe), Xn({
  5080. key: 0,
  5081. id: z(l),
  5082. ref_key: "contentRef",
  5083. ref: a
  5084. }, Q.$attrs, {
  5085. "aria-label": Q.ariaLabel,
  5086. "aria-hidden": z(C),
  5087. "boundaries-padding": Q.boundariesPadding,
  5088. "fallback-placements": Q.fallbackPlacements,
  5089. "gpu-acceleration": Q.gpuAcceleration,
  5090. offset: Q.offset,
  5091. placement: Q.placement,
  5092. "popper-options": Q.popperOptions,
  5093. strategy: Q.strategy,
  5094. effect: Q.effect,
  5095. enterable: Q.enterable,
  5096. pure: Q.pure,
  5097. "popper-class": Q.popperClass,
  5098. "popper-style": [Q.popperStyle, z(x)],
  5099. "reference-el": Q.referenceEl,
  5100. "trigger-target-el": Q.triggerTargetEl,
  5101. visible: z(O),
  5102. "z-index": Q.zIndex,
  5103. onMouseenter: z(T),
  5104. onMouseleave: z(E),
  5105. onBlur: I,
  5106. onClose: z(f)
  5107. }), {
  5108. default: ke(() => [
  5109. o.value ? Ot("v-if", !0) : ln(Q.$slots, "default", { key: 0 })
  5110. ]),
  5111. _: 3
  5112. }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
  5113. [ho, z(O)]
  5114. ]) : Ot("v-if", !0)
  5115. ]),
  5116. _: 3
  5117. }, 8, ["name"])
  5118. ], 8, ["disabled", "to"]));
  5119. }
  5120. });
  5121. var iIe = /* @__PURE__ */ Nn(rIe, [["__file", "content.vue"]]);
  5122. const aIe = ["innerHTML"], oIe = { key: 1 }, sIe = ae({
  5123. name: "ElTooltip"
  5124. }), lIe = /* @__PURE__ */ ae({
  5125. ...sIe,
  5126. props: YMe,
  5127. emits: qMe,
  5128. setup(t, { expose: e, emit: n }) {
  5129. const r = t;
  5130. oEe();
  5131. const i = wb(), a = ee(), o = ee(), s = () => {
  5132. var m;
  5133. const y = z(a);
  5134. y && ((m = y.popperInstanceRef) == null || m.update());
  5135. }, l = ee(!1), u = ee(), { show: c, hide: f, hasUpdateHandler: d } = XMe({
  5136. indicator: l,
  5137. toggleReason: u
  5138. }), { onOpen: h, onClose: p } = lEe({
  5139. showAfter: Lr(r, "showAfter"),
  5140. hideAfter: Lr(r, "hideAfter"),
  5141. autoClose: Lr(r, "autoClose"),
  5142. open: c,
  5143. close: f
  5144. }), v = V(() => hf(r.visible) && !d.value);
  5145. Et(IN, {
  5146. controlled: v,
  5147. id: i,
  5148. open: Pee(l),
  5149. trigger: Lr(r, "trigger"),
  5150. onOpen: (m) => {
  5151. h(m);
  5152. },
  5153. onClose: (m) => {
  5154. p(m);
  5155. },
  5156. onToggle: (m) => {
  5157. z(l) ? p(m) : h(m);
  5158. },
  5159. onShow: () => {
  5160. n("show", u.value);
  5161. },
  5162. onHide: () => {
  5163. n("hide", u.value);
  5164. },
  5165. onBeforeShow: () => {
  5166. n("before-show", u.value);
  5167. },
  5168. onBeforeHide: () => {
  5169. n("before-hide", u.value);
  5170. },
  5171. updatePopper: s
  5172. }), me(() => r.disabled, (m) => {
  5173. m && l.value && (l.value = !1);
  5174. });
  5175. const g = (m) => {
  5176. var y, _;
  5177. const O = (_ = (y = o.value) == null ? void 0 : y.contentRef) == null ? void 0 : _.popperContentRef, S = (m == null ? void 0 : m.relatedTarget) || document.activeElement;
  5178. return O && O.contains(S);
  5179. };
  5180. return lxe(() => l.value && f()), e({
  5181. popperRef: a,
  5182. contentRef: o,
  5183. isFocusInsideContent: g,
  5184. updatePopper: s,
  5185. onOpen: h,
  5186. onClose: p,
  5187. hide: f
  5188. }), (m, y) => (be(), Je(z(jMe), {
  5189. ref_key: "popperRef",
  5190. ref: a,
  5191. role: m.role
  5192. }, {
  5193. default: ke(() => [
  5194. D(tIe, {
  5195. disabled: m.disabled,
  5196. trigger: m.trigger,
  5197. "trigger-keys": m.triggerKeys,
  5198. "virtual-ref": m.virtualRef,
  5199. "virtual-triggering": m.virtualTriggering
  5200. }, {
  5201. default: ke(() => [
  5202. m.$slots.default ? ln(m.$slots, "default", { key: 0 }) : Ot("v-if", !0)
  5203. ]),
  5204. _: 3
  5205. }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
  5206. D(iIe, {
  5207. ref_key: "contentRef",
  5208. ref: o,
  5209. "aria-label": m.ariaLabel,
  5210. "boundaries-padding": m.boundariesPadding,
  5211. content: m.content,
  5212. disabled: m.disabled,
  5213. effect: m.effect,
  5214. enterable: m.enterable,
  5215. "fallback-placements": m.fallbackPlacements,
  5216. "hide-after": m.hideAfter,
  5217. "gpu-acceleration": m.gpuAcceleration,
  5218. offset: m.offset,
  5219. persistent: m.persistent,
  5220. "popper-class": m.popperClass,
  5221. "popper-style": m.popperStyle,
  5222. placement: m.placement,
  5223. "popper-options": m.popperOptions,
  5224. pure: m.pure,
  5225. "raw-content": m.rawContent,
  5226. "reference-el": m.referenceEl,
  5227. "trigger-target-el": m.triggerTargetEl,
  5228. "show-after": m.showAfter,
  5229. strategy: m.strategy,
  5230. teleported: m.teleported,
  5231. transition: m.transition,
  5232. "virtual-triggering": m.virtualTriggering,
  5233. "z-index": m.zIndex,
  5234. "append-to": m.appendTo
  5235. }, {
  5236. default: ke(() => [
  5237. ln(m.$slots, "content", {}, () => [
  5238. m.rawContent ? (be(), Ue("span", {
  5239. key: 0,
  5240. innerHTML: m.content
  5241. }, null, 8, aIe)) : (be(), Ue("span", oIe, xi(m.content), 1))
  5242. ]),
  5243. m.showArrow ? (be(), Je(z(gMe), {
  5244. key: 0,
  5245. "arrow-offset": m.arrowOffset
  5246. }, null, 8, ["arrow-offset"])) : Ot("v-if", !0)
  5247. ]),
  5248. _: 3
  5249. }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
  5250. ]),
  5251. _: 3
  5252. }, 8, ["role"]));
  5253. }
  5254. });
  5255. var uIe = /* @__PURE__ */ Nn(lIe, [["__file", "tooltip.vue"]]);
  5256. const cIe = ec(uIe), ine = Symbol("buttonGroupContextKey"), fIe = (t, e) => {
  5257. Es({
  5258. from: "type.text",
  5259. replacement: "link",
  5260. version: "3.0.0",
  5261. scope: "props",
  5262. ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
  5263. }, V(() => t.type === "text"));
  5264. const n = et(ine, void 0), r = Gte("button"), { form: i } = lp(), a = Tg(V(() => n == null ? void 0 : n.size)), o = um(), s = ee(), l = D_(), u = V(() => t.type || (n == null ? void 0 : n.type) || ""), c = V(() => {
  5265. var p, v, g;
  5266. return (g = (v = t.autoInsertSpace) != null ? v : (p = r.value) == null ? void 0 : p.autoInsertSpace) != null ? g : !1;
  5267. }), f = V(() => t.tag === "button" ? {
  5268. ariaDisabled: o.value || t.loading,
  5269. disabled: o.value || t.loading,
  5270. autofocus: t.autofocus,
  5271. type: t.nativeType
  5272. } : {}), d = V(() => {
  5273. var p;
  5274. const v = (p = l.default) == null ? void 0 : p.call(l);
  5275. if (c.value && (v == null ? void 0 : v.length) === 1) {
  5276. const g = v[0];
  5277. if ((g == null ? void 0 : g.type) === KT) {
  5278. const m = g.children;
  5279. return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(m.trim());
  5280. }
  5281. }
  5282. return !1;
  5283. });
  5284. return {
  5285. _disabled: o,
  5286. _size: a,
  5287. _type: u,
  5288. _ref: s,
  5289. _props: f,
  5290. shouldAddSpace: d,
  5291. handleClick: (p) => {
  5292. t.nativeType === "reset" && (i == null || i.resetFields()), e("click", p);
  5293. }
  5294. };
  5295. }, dIe = [
  5296. "default",
  5297. "primary",
  5298. "success",
  5299. "warning",
  5300. "info",
  5301. "danger",
  5302. "text",
  5303. ""
  5304. ], hIe = ["button", "submit", "reset"], nR = hr({
  5305. size: op,
  5306. disabled: Boolean,
  5307. type: {
  5308. type: String,
  5309. values: dIe,
  5310. default: ""
  5311. },
  5312. icon: {
  5313. type: _g
  5314. },
  5315. nativeType: {
  5316. type: String,
  5317. values: hIe,
  5318. default: "button"
  5319. },
  5320. loading: Boolean,
  5321. loadingIcon: {
  5322. type: _g,
  5323. default: () => gN
  5324. },
  5325. plain: Boolean,
  5326. text: Boolean,
  5327. link: Boolean,
  5328. bg: Boolean,
  5329. autofocus: Boolean,
  5330. round: Boolean,
  5331. circle: Boolean,
  5332. color: String,
  5333. dark: Boolean,
  5334. autoInsertSpace: {
  5335. type: Boolean,
  5336. default: void 0
  5337. },
  5338. tag: {
  5339. type: mn([String, Object]),
  5340. default: "button"
  5341. }
  5342. }), pIe = {
  5343. click: (t) => t instanceof MouseEvent
  5344. };
  5345. function Ci(t, e) {
  5346. vIe(t) && (t = "100%");
  5347. var n = gIe(t);
  5348. return t = e === 360 ? t : Math.min(e, Math.max(0, parseFloat(t))), n && (t = parseInt(String(t * e), 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : (e === 360 ? t = (t < 0 ? t % e + e : t % e) / parseFloat(String(e)) : t = t % e / parseFloat(String(e)), t);
  5349. }
  5350. function zO(t) {
  5351. return Math.min(1, Math.max(0, t));
  5352. }
  5353. function vIe(t) {
  5354. return typeof t == "string" && t.indexOf(".") !== -1 && parseFloat(t) === 1;
  5355. }
  5356. function gIe(t) {
  5357. return typeof t == "string" && t.indexOf("%") !== -1;
  5358. }
  5359. function ane(t) {
  5360. return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
  5361. }
  5362. function VO(t) {
  5363. return t <= 1 ? "".concat(Number(t) * 100, "%") : t;
  5364. }
  5365. function th(t) {
  5366. return t.length === 1 ? "0" + t : String(t);
  5367. }
  5368. function mIe(t, e, n) {
  5369. return {
  5370. r: Ci(t, 255) * 255,
  5371. g: Ci(e, 255) * 255,
  5372. b: Ci(n, 255) * 255
  5373. };
  5374. }
  5375. function DW(t, e, n) {
  5376. t = Ci(t, 255), e = Ci(e, 255), n = Ci(n, 255);
  5377. var r = Math.max(t, e, n), i = Math.min(t, e, n), a = 0, o = 0, s = (r + i) / 2;
  5378. if (r === i)
  5379. o = 0, a = 0;
  5380. else {
  5381. var l = r - i;
  5382. switch (o = s > 0.5 ? l / (2 - r - i) : l / (r + i), r) {
  5383. case t:
  5384. a = (e - n) / l + (e < n ? 6 : 0);
  5385. break;
  5386. case e:
  5387. a = (n - t) / l + 2;
  5388. break;
  5389. case n:
  5390. a = (t - e) / l + 4;
  5391. break;
  5392. }
  5393. a /= 6;
  5394. }
  5395. return { h: a, s: o, l: s };
  5396. }
  5397. function QA(t, e, n) {
  5398. return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * (6 * n) : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
  5399. }
  5400. function yIe(t, e, n) {
  5401. var r, i, a;
  5402. if (t = Ci(t, 360), e = Ci(e, 100), n = Ci(n, 100), e === 0)
  5403. i = n, a = n, r = n;
  5404. else {
  5405. var o = n < 0.5 ? n * (1 + e) : n + e - n * e, s = 2 * n - o;
  5406. r = QA(s, o, t + 1 / 3), i = QA(s, o, t), a = QA(s, o, t - 1 / 3);
  5407. }
  5408. return { r: r * 255, g: i * 255, b: a * 255 };
  5409. }
  5410. function rR(t, e, n) {
  5411. t = Ci(t, 255), e = Ci(e, 255), n = Ci(n, 255);
  5412. var r = Math.max(t, e, n), i = Math.min(t, e, n), a = 0, o = r, s = r - i, l = r === 0 ? 0 : s / r;
  5413. if (r === i)
  5414. a = 0;
  5415. else {
  5416. switch (r) {
  5417. case t:
  5418. a = (e - n) / s + (e < n ? 6 : 0);
  5419. break;
  5420. case e:
  5421. a = (n - t) / s + 2;
  5422. break;
  5423. case n:
  5424. a = (t - e) / s + 4;
  5425. break;
  5426. }
  5427. a /= 6;
  5428. }
  5429. return { h: a, s: l, v: o };
  5430. }
  5431. function bIe(t, e, n) {
  5432. t = Ci(t, 360) * 6, e = Ci(e, 100), n = Ci(n, 100);
  5433. var r = Math.floor(t), i = t - r, a = n * (1 - e), o = n * (1 - i * e), s = n * (1 - (1 - i) * e), l = r % 6, u = [n, o, a, a, s, n][l], c = [s, n, n, o, a, a][l], f = [a, a, s, n, n, o][l];
  5434. return { r: u * 255, g: c * 255, b: f * 255 };
  5435. }
  5436. function iR(t, e, n, r) {
  5437. var i = [
  5438. th(Math.round(t).toString(16)),
  5439. th(Math.round(e).toString(16)),
  5440. th(Math.round(n).toString(16))
  5441. ];
  5442. return r && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("");
  5443. }
  5444. function _Ie(t, e, n, r, i) {
  5445. var a = [
  5446. th(Math.round(t).toString(16)),
  5447. th(Math.round(e).toString(16)),
  5448. th(Math.round(n).toString(16)),
  5449. th(OIe(r))
  5450. ];
  5451. return i && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
  5452. }
  5453. function OIe(t) {
  5454. return Math.round(parseFloat(t) * 255).toString(16);
  5455. }
  5456. function RW(t) {
  5457. return Ka(t) / 255;
  5458. }
  5459. function Ka(t) {
  5460. return parseInt(t, 16);
  5461. }
  5462. function SIe(t) {
  5463. return {
  5464. r: t >> 16,
  5465. g: (t & 65280) >> 8,
  5466. b: t & 255
  5467. };
  5468. }
  5469. var aR = {
  5470. aliceblue: "#f0f8ff",
  5471. antiquewhite: "#faebd7",
  5472. aqua: "#00ffff",
  5473. aquamarine: "#7fffd4",
  5474. azure: "#f0ffff",
  5475. beige: "#f5f5dc",
  5476. bisque: "#ffe4c4",
  5477. black: "#000000",
  5478. blanchedalmond: "#ffebcd",
  5479. blue: "#0000ff",
  5480. blueviolet: "#8a2be2",
  5481. brown: "#a52a2a",
  5482. burlywood: "#deb887",
  5483. cadetblue: "#5f9ea0",
  5484. chartreuse: "#7fff00",
  5485. chocolate: "#d2691e",
  5486. coral: "#ff7f50",
  5487. cornflowerblue: "#6495ed",
  5488. cornsilk: "#fff8dc",
  5489. crimson: "#dc143c",
  5490. cyan: "#00ffff",
  5491. darkblue: "#00008b",
  5492. darkcyan: "#008b8b",
  5493. darkgoldenrod: "#b8860b",
  5494. darkgray: "#a9a9a9",
  5495. darkgreen: "#006400",
  5496. darkgrey: "#a9a9a9",
  5497. darkkhaki: "#bdb76b",
  5498. darkmagenta: "#8b008b",
  5499. darkolivegreen: "#556b2f",
  5500. darkorange: "#ff8c00",
  5501. darkorchid: "#9932cc",
  5502. darkred: "#8b0000",
  5503. darksalmon: "#e9967a",
  5504. darkseagreen: "#8fbc8f",
  5505. darkslateblue: "#483d8b",
  5506. darkslategray: "#2f4f4f",
  5507. darkslategrey: "#2f4f4f",
  5508. darkturquoise: "#00ced1",
  5509. darkviolet: "#9400d3",
  5510. deeppink: "#ff1493",
  5511. deepskyblue: "#00bfff",
  5512. dimgray: "#696969",
  5513. dimgrey: "#696969",
  5514. dodgerblue: "#1e90ff",
  5515. firebrick: "#b22222",
  5516. floralwhite: "#fffaf0",
  5517. forestgreen: "#228b22",
  5518. fuchsia: "#ff00ff",
  5519. gainsboro: "#dcdcdc",
  5520. ghostwhite: "#f8f8ff",
  5521. goldenrod: "#daa520",
  5522. gold: "#ffd700",
  5523. gray: "#808080",
  5524. green: "#008000",
  5525. greenyellow: "#adff2f",
  5526. grey: "#808080",
  5527. honeydew: "#f0fff0",
  5528. hotpink: "#ff69b4",
  5529. indianred: "#cd5c5c",
  5530. indigo: "#4b0082",
  5531. ivory: "#fffff0",
  5532. khaki: "#f0e68c",
  5533. lavenderblush: "#fff0f5",
  5534. lavender: "#e6e6fa",
  5535. lawngreen: "#7cfc00",
  5536. lemonchiffon: "#fffacd",
  5537. lightblue: "#add8e6",
  5538. lightcoral: "#f08080",
  5539. lightcyan: "#e0ffff",
  5540. lightgoldenrodyellow: "#fafad2",
  5541. lightgray: "#d3d3d3",
  5542. lightgreen: "#90ee90",
  5543. lightgrey: "#d3d3d3",
  5544. lightpink: "#ffb6c1",
  5545. lightsalmon: "#ffa07a",
  5546. lightseagreen: "#20b2aa",
  5547. lightskyblue: "#87cefa",
  5548. lightslategray: "#778899",
  5549. lightslategrey: "#778899",
  5550. lightsteelblue: "#b0c4de",
  5551. lightyellow: "#ffffe0",
  5552. lime: "#00ff00",
  5553. limegreen: "#32cd32",
  5554. linen: "#faf0e6",
  5555. magenta: "#ff00ff",
  5556. maroon: "#800000",
  5557. mediumaquamarine: "#66cdaa",
  5558. mediumblue: "#0000cd",
  5559. mediumorchid: "#ba55d3",
  5560. mediumpurple: "#9370db",
  5561. mediumseagreen: "#3cb371",
  5562. mediumslateblue: "#7b68ee",
  5563. mediumspringgreen: "#00fa9a",
  5564. mediumturquoise: "#48d1cc",
  5565. mediumvioletred: "#c71585",
  5566. midnightblue: "#191970",
  5567. mintcream: "#f5fffa",
  5568. mistyrose: "#ffe4e1",
  5569. moccasin: "#ffe4b5",
  5570. navajowhite: "#ffdead",
  5571. navy: "#000080",
  5572. oldlace: "#fdf5e6",
  5573. olive: "#808000",
  5574. olivedrab: "#6b8e23",
  5575. orange: "#ffa500",
  5576. orangered: "#ff4500",
  5577. orchid: "#da70d6",
  5578. palegoldenrod: "#eee8aa",
  5579. palegreen: "#98fb98",
  5580. paleturquoise: "#afeeee",
  5581. palevioletred: "#db7093",
  5582. papayawhip: "#ffefd5",
  5583. peachpuff: "#ffdab9",
  5584. peru: "#cd853f",
  5585. pink: "#ffc0cb",
  5586. plum: "#dda0dd",
  5587. powderblue: "#b0e0e6",
  5588. purple: "#800080",
  5589. rebeccapurple: "#663399",
  5590. red: "#ff0000",
  5591. rosybrown: "#bc8f8f",
  5592. royalblue: "#4169e1",
  5593. saddlebrown: "#8b4513",
  5594. salmon: "#fa8072",
  5595. sandybrown: "#f4a460",
  5596. seagreen: "#2e8b57",
  5597. seashell: "#fff5ee",
  5598. sienna: "#a0522d",
  5599. silver: "#c0c0c0",
  5600. skyblue: "#87ceeb",
  5601. slateblue: "#6a5acd",
  5602. slategray: "#708090",
  5603. slategrey: "#708090",
  5604. snow: "#fffafa",
  5605. springgreen: "#00ff7f",
  5606. steelblue: "#4682b4",
  5607. tan: "#d2b48c",
  5608. teal: "#008080",
  5609. thistle: "#d8bfd8",
  5610. tomato: "#ff6347",
  5611. turquoise: "#40e0d0",
  5612. violet: "#ee82ee",
  5613. wheat: "#f5deb3",
  5614. white: "#ffffff",
  5615. whitesmoke: "#f5f5f5",
  5616. yellow: "#ffff00",
  5617. yellowgreen: "#9acd32"
  5618. };
  5619. function yv(t) {
  5620. var e = { r: 0, g: 0, b: 0 }, n = 1, r = null, i = null, a = null, o = !1, s = !1;
  5621. return typeof t == "string" && (t = CIe(t)), typeof t == "object" && (du(t.r) && du(t.g) && du(t.b) ? (e = mIe(t.r, t.g, t.b), o = !0, s = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : du(t.h) && du(t.s) && du(t.v) ? (r = VO(t.s), i = VO(t.v), e = bIe(t.h, r, i), o = !0, s = "hsv") : du(t.h) && du(t.s) && du(t.l) && (r = VO(t.s), a = VO(t.l), e = yIe(t.h, r, a), o = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(t, "a") && (n = t.a)), n = ane(n), {
  5622. ok: o,
  5623. format: t.format || s,
  5624. r: Math.min(255, Math.max(e.r, 0)),
  5625. g: Math.min(255, Math.max(e.g, 0)),
  5626. b: Math.min(255, Math.max(e.b, 0)),
  5627. a: n
  5628. };
  5629. }
  5630. var xIe = "[-\\+]?\\d+%?", wIe = "[-\\+]?\\d*\\.\\d+%?", Vc = "(?:".concat(wIe, ")|(?:").concat(xIe, ")"), HA = "[\\s|\\(]+(".concat(Vc, ")[,|\\s]+(").concat(Vc, ")[,|\\s]+(").concat(Vc, ")\\s*\\)?"), GA = "[\\s|\\(]+(".concat(Vc, ")[,|\\s]+(").concat(Vc, ")[,|\\s]+(").concat(Vc, ")[,|\\s]+(").concat(Vc, ")\\s*\\)?"), xs = {
  5631. CSS_UNIT: new RegExp(Vc),
  5632. rgb: new RegExp("rgb" + HA),
  5633. rgba: new RegExp("rgba" + GA),
  5634. hsl: new RegExp("hsl" + HA),
  5635. hsla: new RegExp("hsla" + GA),
  5636. hsv: new RegExp("hsv" + HA),
  5637. hsva: new RegExp("hsva" + GA),
  5638. hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  5639. hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  5640. hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  5641. hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
  5642. };
  5643. function CIe(t) {
  5644. if (t = t.trim().toLowerCase(), t.length === 0)
  5645. return !1;
  5646. var e = !1;
  5647. if (aR[t])
  5648. t = aR[t], e = !0;
  5649. else if (t === "transparent")
  5650. return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  5651. var n = xs.rgb.exec(t);
  5652. return n ? { r: n[1], g: n[2], b: n[3] } : (n = xs.rgba.exec(t), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = xs.hsl.exec(t), n ? { h: n[1], s: n[2], l: n[3] } : (n = xs.hsla.exec(t), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = xs.hsv.exec(t), n ? { h: n[1], s: n[2], v: n[3] } : (n = xs.hsva.exec(t), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = xs.hex8.exec(t), n ? {
  5653. r: Ka(n[1]),
  5654. g: Ka(n[2]),
  5655. b: Ka(n[3]),
  5656. a: RW(n[4]),
  5657. format: e ? "name" : "hex8"
  5658. } : (n = xs.hex6.exec(t), n ? {
  5659. r: Ka(n[1]),
  5660. g: Ka(n[2]),
  5661. b: Ka(n[3]),
  5662. format: e ? "name" : "hex"
  5663. } : (n = xs.hex4.exec(t), n ? {
  5664. r: Ka(n[1] + n[1]),
  5665. g: Ka(n[2] + n[2]),
  5666. b: Ka(n[3] + n[3]),
  5667. a: RW(n[4] + n[4]),
  5668. format: e ? "name" : "hex8"
  5669. } : (n = xs.hex3.exec(t), n ? {
  5670. r: Ka(n[1] + n[1]),
  5671. g: Ka(n[2] + n[2]),
  5672. b: Ka(n[3] + n[3]),
  5673. format: e ? "name" : "hex"
  5674. } : !1)))))))));
  5675. }
  5676. function du(t) {
  5677. return !!xs.CSS_UNIT.exec(String(t));
  5678. }
  5679. var Hn = (
  5680. /** @class */
  5681. function() {
  5682. function t(e, n) {
  5683. e === void 0 && (e = ""), n === void 0 && (n = {});
  5684. var r;
  5685. if (e instanceof t)
  5686. return e;
  5687. typeof e == "number" && (e = SIe(e)), this.originalInput = e;
  5688. var i = yv(e);
  5689. this.originalInput = e, this.r = i.r, this.g = i.g, this.b = i.b, this.a = i.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : i.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = i.ok;
  5690. }
  5691. return t.prototype.isDark = function() {
  5692. return this.getBrightness() < 128;
  5693. }, t.prototype.isLight = function() {
  5694. return !this.isDark();
  5695. }, t.prototype.getBrightness = function() {
  5696. var e = this.toRgb();
  5697. return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
  5698. }, t.prototype.getLuminance = function() {
  5699. var e = this.toRgb(), n, r, i, a = e.r / 255, o = e.g / 255, s = e.b / 255;
  5700. return a <= 0.03928 ? n = a / 12.92 : n = Math.pow((a + 0.055) / 1.055, 2.4), o <= 0.03928 ? r = o / 12.92 : r = Math.pow((o + 0.055) / 1.055, 2.4), s <= 0.03928 ? i = s / 12.92 : i = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * i;
  5701. }, t.prototype.getAlpha = function() {
  5702. return this.a;
  5703. }, t.prototype.setAlpha = function(e) {
  5704. return this.a = ane(e), this.roundA = Math.round(100 * this.a) / 100, this;
  5705. }, t.prototype.isMonochrome = function() {
  5706. var e = this.toHsl().s;
  5707. return e === 0;
  5708. }, t.prototype.toHsv = function() {
  5709. var e = rR(this.r, this.g, this.b);
  5710. return { h: e.h * 360, s: e.s, v: e.v, a: this.a };
  5711. }, t.prototype.toHsvString = function() {
  5712. var e = rR(this.r, this.g, this.b), n = Math.round(e.h * 360), r = Math.round(e.s * 100), i = Math.round(e.v * 100);
  5713. return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(i, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(i, "%, ").concat(this.roundA, ")");
  5714. }, t.prototype.toHsl = function() {
  5715. var e = DW(this.r, this.g, this.b);
  5716. return { h: e.h * 360, s: e.s, l: e.l, a: this.a };
  5717. }, t.prototype.toHslString = function() {
  5718. var e = DW(this.r, this.g, this.b), n = Math.round(e.h * 360), r = Math.round(e.s * 100), i = Math.round(e.l * 100);
  5719. return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(i, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(i, "%, ").concat(this.roundA, ")");
  5720. }, t.prototype.toHex = function(e) {
  5721. return e === void 0 && (e = !1), iR(this.r, this.g, this.b, e);
  5722. }, t.prototype.toHexString = function(e) {
  5723. return e === void 0 && (e = !1), "#" + this.toHex(e);
  5724. }, t.prototype.toHex8 = function(e) {
  5725. return e === void 0 && (e = !1), _Ie(this.r, this.g, this.b, this.a, e);
  5726. }, t.prototype.toHex8String = function(e) {
  5727. return e === void 0 && (e = !1), "#" + this.toHex8(e);
  5728. }, t.prototype.toHexShortString = function(e) {
  5729. return e === void 0 && (e = !1), this.a === 1 ? this.toHexString(e) : this.toHex8String(e);
  5730. }, t.prototype.toRgb = function() {
  5731. return {
  5732. r: Math.round(this.r),
  5733. g: Math.round(this.g),
  5734. b: Math.round(this.b),
  5735. a: this.a
  5736. };
  5737. }, t.prototype.toRgbString = function() {
  5738. var e = Math.round(this.r), n = Math.round(this.g), r = Math.round(this.b);
  5739. return this.a === 1 ? "rgb(".concat(e, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(e, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
  5740. }, t.prototype.toPercentageRgb = function() {
  5741. var e = function(n) {
  5742. return "".concat(Math.round(Ci(n, 255) * 100), "%");
  5743. };
  5744. return {
  5745. r: e(this.r),
  5746. g: e(this.g),
  5747. b: e(this.b),
  5748. a: this.a
  5749. };
  5750. }, t.prototype.toPercentageRgbString = function() {
  5751. var e = function(n) {
  5752. return Math.round(Ci(n, 255) * 100);
  5753. };
  5754. return this.a === 1 ? "rgb(".concat(e(this.r), "%, ").concat(e(this.g), "%, ").concat(e(this.b), "%)") : "rgba(".concat(e(this.r), "%, ").concat(e(this.g), "%, ").concat(e(this.b), "%, ").concat(this.roundA, ")");
  5755. }, t.prototype.toName = function() {
  5756. if (this.a === 0)
  5757. return "transparent";
  5758. if (this.a < 1)
  5759. return !1;
  5760. for (var e = "#" + iR(this.r, this.g, this.b, !1), n = 0, r = Object.entries(aR); n < r.length; n++) {
  5761. var i = r[n], a = i[0], o = i[1];
  5762. if (e === o)
  5763. return a;
  5764. }
  5765. return !1;
  5766. }, t.prototype.toString = function(e) {
  5767. var n = !!e;
  5768. e = e ?? this.format;
  5769. var r = !1, i = this.a < 1 && this.a >= 0, a = !n && i && (e.startsWith("hex") || e === "name");
  5770. return a ? e === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (r = this.toRgbString()), e === "prgb" && (r = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (r = this.toHexString()), e === "hex3" && (r = this.toHexString(!0)), e === "hex4" && (r = this.toHex8String(!0)), e === "hex8" && (r = this.toHex8String()), e === "name" && (r = this.toName()), e === "hsl" && (r = this.toHslString()), e === "hsv" && (r = this.toHsvString()), r || this.toHexString());
  5771. }, t.prototype.toNumber = function() {
  5772. return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
  5773. }, t.prototype.clone = function() {
  5774. return new t(this.toString());
  5775. }, t.prototype.lighten = function(e) {
  5776. e === void 0 && (e = 10);
  5777. var n = this.toHsl();
  5778. return n.l += e / 100, n.l = zO(n.l), new t(n);
  5779. }, t.prototype.brighten = function(e) {
  5780. e === void 0 && (e = 10);
  5781. var n = this.toRgb();
  5782. return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(e / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(e / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(e / 100)))), new t(n);
  5783. }, t.prototype.darken = function(e) {
  5784. e === void 0 && (e = 10);
  5785. var n = this.toHsl();
  5786. return n.l -= e / 100, n.l = zO(n.l), new t(n);
  5787. }, t.prototype.tint = function(e) {
  5788. return e === void 0 && (e = 10), this.mix("white", e);
  5789. }, t.prototype.shade = function(e) {
  5790. return e === void 0 && (e = 10), this.mix("black", e);
  5791. }, t.prototype.desaturate = function(e) {
  5792. e === void 0 && (e = 10);
  5793. var n = this.toHsl();
  5794. return n.s -= e / 100, n.s = zO(n.s), new t(n);
  5795. }, t.prototype.saturate = function(e) {
  5796. e === void 0 && (e = 10);
  5797. var n = this.toHsl();
  5798. return n.s += e / 100, n.s = zO(n.s), new t(n);
  5799. }, t.prototype.greyscale = function() {
  5800. return this.desaturate(100);
  5801. }, t.prototype.spin = function(e) {
  5802. var n = this.toHsl(), r = (n.h + e) % 360;
  5803. return n.h = r < 0 ? 360 + r : r, new t(n);
  5804. }, t.prototype.mix = function(e, n) {
  5805. n === void 0 && (n = 50);
  5806. var r = this.toRgb(), i = new t(e).toRgb(), a = n / 100, o = {
  5807. r: (i.r - r.r) * a + r.r,
  5808. g: (i.g - r.g) * a + r.g,
  5809. b: (i.b - r.b) * a + r.b,
  5810. a: (i.a - r.a) * a + r.a
  5811. };
  5812. return new t(o);
  5813. }, t.prototype.analogous = function(e, n) {
  5814. e === void 0 && (e = 6), n === void 0 && (n = 30);
  5815. var r = this.toHsl(), i = 360 / n, a = [this];
  5816. for (r.h = (r.h - (i * e >> 1) + 720) % 360; --e; )
  5817. r.h = (r.h + i) % 360, a.push(new t(r));
  5818. return a;
  5819. }, t.prototype.complement = function() {
  5820. var e = this.toHsl();
  5821. return e.h = (e.h + 180) % 360, new t(e);
  5822. }, t.prototype.monochromatic = function(e) {
  5823. e === void 0 && (e = 6);
  5824. for (var n = this.toHsv(), r = n.h, i = n.s, a = n.v, o = [], s = 1 / e; e--; )
  5825. o.push(new t({ h: r, s: i, v: a })), a = (a + s) % 1;
  5826. return o;
  5827. }, t.prototype.splitcomplement = function() {
  5828. var e = this.toHsl(), n = e.h;
  5829. return [
  5830. this,
  5831. new t({ h: (n + 72) % 360, s: e.s, l: e.l }),
  5832. new t({ h: (n + 216) % 360, s: e.s, l: e.l })
  5833. ];
  5834. }, t.prototype.onBackground = function(e) {
  5835. var n = this.toRgb(), r = new t(e).toRgb(), i = n.a + r.a * (1 - n.a);
  5836. return new t({
  5837. r: (n.r * n.a + r.r * r.a * (1 - n.a)) / i,
  5838. g: (n.g * n.a + r.g * r.a * (1 - n.a)) / i,
  5839. b: (n.b * n.a + r.b * r.a * (1 - n.a)) / i,
  5840. a: i
  5841. });
  5842. }, t.prototype.triad = function() {
  5843. return this.polyad(3);
  5844. }, t.prototype.tetrad = function() {
  5845. return this.polyad(4);
  5846. }, t.prototype.polyad = function(e) {
  5847. for (var n = this.toHsl(), r = n.h, i = [this], a = 360 / e, o = 1; o < e; o++)
  5848. i.push(new t({ h: (r + o * a) % 360, s: n.s, l: n.l }));
  5849. return i;
  5850. }, t.prototype.equals = function(e) {
  5851. return this.toRgbString() === new t(e).toRgbString();
  5852. }, t;
  5853. }()
  5854. );
  5855. function mc(t, e = 20) {
  5856. return t.mix("#141414", e).toString();
  5857. }
  5858. function TIe(t) {
  5859. const e = um(), n = $n("button");
  5860. return V(() => {
  5861. let r = {}, i = t.color;
  5862. if (i) {
  5863. const a = i.match(/var\((.*?)\)/);
  5864. a && (i = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
  5865. const o = new Hn(i), s = t.dark ? o.tint(20).toString() : mc(o, 20);
  5866. if (t.plain)
  5867. r = n.cssVarBlock({
  5868. "bg-color": t.dark ? mc(o, 90) : o.tint(90).toString(),
  5869. "text-color": i,
  5870. "border-color": t.dark ? mc(o, 50) : o.tint(50).toString(),
  5871. "hover-text-color": `var(${n.cssVarName("color-white")})`,
  5872. "hover-bg-color": i,
  5873. "hover-border-color": i,
  5874. "active-bg-color": s,
  5875. "active-text-color": `var(${n.cssVarName("color-white")})`,
  5876. "active-border-color": s
  5877. }), e.value && (r[n.cssVarBlockName("disabled-bg-color")] = t.dark ? mc(o, 90) : o.tint(90).toString(), r[n.cssVarBlockName("disabled-text-color")] = t.dark ? mc(o, 50) : o.tint(50).toString(), r[n.cssVarBlockName("disabled-border-color")] = t.dark ? mc(o, 80) : o.tint(80).toString());
  5878. else {
  5879. const l = t.dark ? mc(o, 30) : o.tint(30).toString(), u = o.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`;
  5880. if (r = n.cssVarBlock({
  5881. "bg-color": i,
  5882. "text-color": u,
  5883. "border-color": i,
  5884. "hover-bg-color": l,
  5885. "hover-text-color": u,
  5886. "hover-border-color": l,
  5887. "active-bg-color": s,
  5888. "active-border-color": s
  5889. }), e.value) {
  5890. const c = t.dark ? mc(o, 50) : o.tint(50).toString();
  5891. r[n.cssVarBlockName("disabled-bg-color")] = c, r[n.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, r[n.cssVarBlockName("disabled-border-color")] = c;
  5892. }
  5893. }
  5894. }
  5895. return r;
  5896. });
  5897. }
  5898. const PIe = ae({
  5899. name: "ElButton"
  5900. }), $Ie = /* @__PURE__ */ ae({
  5901. ...PIe,
  5902. props: nR,
  5903. emits: pIe,
  5904. setup(t, { expose: e, emit: n }) {
  5905. const r = t, i = TIe(r), a = $n("button"), { _ref: o, _size: s, _type: l, _disabled: u, _props: c, shouldAddSpace: f, handleClick: d } = fIe(r, n), h = V(() => [
  5906. a.b(),
  5907. a.m(l.value),
  5908. a.m(s.value),
  5909. a.is("disabled", u.value),
  5910. a.is("loading", r.loading),
  5911. a.is("plain", r.plain),
  5912. a.is("round", r.round),
  5913. a.is("circle", r.circle),
  5914. a.is("text", r.text),
  5915. a.is("link", r.link),
  5916. a.is("has-bg", r.bg)
  5917. ]);
  5918. return e({
  5919. ref: o,
  5920. size: s,
  5921. type: l,
  5922. disabled: u,
  5923. shouldAddSpace: f
  5924. }), (p, v) => (be(), Je(As(p.tag), Xn({
  5925. ref_key: "_ref",
  5926. ref: o
  5927. }, z(c), {
  5928. class: z(h),
  5929. style: z(i),
  5930. onClick: z(d)
  5931. }), {
  5932. default: ke(() => [
  5933. p.loading ? (be(), Ue(Wt, { key: 0 }, [
  5934. p.$slots.loading ? ln(p.$slots, "loading", { key: 0 }) : (be(), Je(z($s), {
  5935. key: 1,
  5936. class: Ge(z(a).is("loading"))
  5937. }, {
  5938. default: ke(() => [
  5939. (be(), Je(As(p.loadingIcon)))
  5940. ]),
  5941. _: 1
  5942. }, 8, ["class"]))
  5943. ], 64)) : p.icon || p.$slots.icon ? (be(), Je(z($s), { key: 1 }, {
  5944. default: ke(() => [
  5945. p.icon ? (be(), Je(As(p.icon), { key: 0 })) : ln(p.$slots, "icon", { key: 1 })
  5946. ]),
  5947. _: 3
  5948. })) : Ot("v-if", !0),
  5949. p.$slots.default ? (be(), Ue("span", {
  5950. key: 2,
  5951. class: Ge({ [z(a).em("text", "expand")]: z(f) })
  5952. }, [
  5953. ln(p.$slots, "default")
  5954. ], 2)) : Ot("v-if", !0)
  5955. ]),
  5956. _: 3
  5957. }, 16, ["class", "style", "onClick"]));
  5958. }
  5959. });
  5960. var AIe = /* @__PURE__ */ Nn($Ie, [["__file", "button.vue"]]);
  5961. const EIe = {
  5962. size: nR.size,
  5963. type: nR.type
  5964. }, MIe = ae({
  5965. name: "ElButtonGroup"
  5966. }), IIe = /* @__PURE__ */ ae({
  5967. ...MIe,
  5968. props: EIe,
  5969. setup(t) {
  5970. const e = t;
  5971. Et(ine, zn({
  5972. size: Lr(e, "size"),
  5973. type: Lr(e, "type")
  5974. }));
  5975. const n = $n("button");
  5976. return (r, i) => (be(), Ue("div", {
  5977. class: Ge(`${z(n).b("group")}`)
  5978. }, [
  5979. ln(r.$slots, "default")
  5980. ], 2));
  5981. }
  5982. });
  5983. var one = /* @__PURE__ */ Nn(IIe, [["__file", "button-group.vue"]]);
  5984. const oR = ec(AIe, {
  5985. ButtonGroup: one
  5986. });
  5987. V_(one);
  5988. var Su = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
  5989. function g2(t) {
  5990. return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
  5991. }
  5992. const $c = /* @__PURE__ */ new Map();
  5993. let kW;
  5994. Fr && (document.addEventListener("mousedown", (t) => kW = t), document.addEventListener("mouseup", (t) => {
  5995. for (const e of $c.values())
  5996. for (const { documentHandler: n } of e)
  5997. n(t, kW);
  5998. }));
  5999. function LW(t, e) {
  6000. let n = [];
  6001. return Array.isArray(e.arg) ? n = e.arg : Ob(e.arg) && n.push(e.arg), function(r, i) {
  6002. const a = e.instance.popperRef, o = r.target, s = i == null ? void 0 : i.target, l = !e || !e.instance, u = !o || !s, c = t.contains(o) || t.contains(s), f = t === o, d = n.length && n.some((p) => p == null ? void 0 : p.contains(o)) || n.length && n.includes(s), h = a && (a.contains(o) || a.contains(s));
  6003. l || u || c || f || d || h || e.value(r, i);
  6004. };
  6005. }
  6006. const DIe = {
  6007. beforeMount(t, e) {
  6008. $c.has(t) || $c.set(t, []), $c.get(t).push({
  6009. documentHandler: LW(t, e),
  6010. bindingFn: e.value
  6011. });
  6012. },
  6013. updated(t, e) {
  6014. $c.has(t) || $c.set(t, []);
  6015. const n = $c.get(t), r = n.findIndex((a) => a.bindingFn === e.oldValue), i = {
  6016. documentHandler: LW(t, e),
  6017. bindingFn: e.value
  6018. };
  6019. r >= 0 ? n.splice(r, 1, i) : n.push(i);
  6020. },
  6021. unmounted(t) {
  6022. $c.delete(t);
  6023. }
  6024. }, sne = {
  6025. modelValue: {
  6026. type: [Number, String, Boolean],
  6027. default: void 0
  6028. },
  6029. label: {
  6030. type: [String, Boolean, Number, Object],
  6031. default: void 0
  6032. },
  6033. value: {
  6034. type: [String, Boolean, Number, Object],
  6035. default: void 0
  6036. },
  6037. indeterminate: Boolean,
  6038. disabled: Boolean,
  6039. checked: Boolean,
  6040. name: {
  6041. type: String,
  6042. default: void 0
  6043. },
  6044. trueValue: {
  6045. type: [String, Number],
  6046. default: void 0
  6047. },
  6048. falseValue: {
  6049. type: [String, Number],
  6050. default: void 0
  6051. },
  6052. trueLabel: {
  6053. type: [String, Number],
  6054. default: void 0
  6055. },
  6056. falseLabel: {
  6057. type: [String, Number],
  6058. default: void 0
  6059. },
  6060. id: {
  6061. type: String,
  6062. default: void 0
  6063. },
  6064. controls: {
  6065. type: String,
  6066. default: void 0
  6067. },
  6068. border: Boolean,
  6069. size: op,
  6070. tabindex: [String, Number],
  6071. validateEvent: {
  6072. type: Boolean,
  6073. default: !0
  6074. },
  6075. ...sp(["ariaControls"])
  6076. }, lne = {
  6077. [ca]: (t) => ia(t) || Ws(t) || hf(t),
  6078. change: (t) => ia(t) || Ws(t) || hf(t)
  6079. }, cm = Symbol("checkboxGroupContextKey"), RIe = ({
  6080. model: t,
  6081. isChecked: e
  6082. }) => {
  6083. const n = et(cm, void 0), r = V(() => {
  6084. var a, o;
  6085. const s = (a = n == null ? void 0 : n.max) == null ? void 0 : a.value, l = (o = n == null ? void 0 : n.min) == null ? void 0 : o.value;
  6086. return !Qw(s) && t.value.length >= s && !e.value || !Qw(l) && t.value.length <= l && e.value;
  6087. });
  6088. return {
  6089. isDisabled: um(V(() => (n == null ? void 0 : n.disabled.value) || r.value)),
  6090. isLimitDisabled: r
  6091. };
  6092. }, kIe = (t, {
  6093. model: e,
  6094. isLimitExceeded: n,
  6095. hasOwnLabel: r,
  6096. isDisabled: i,
  6097. isLabeledByFormItem: a
  6098. }) => {
  6099. const o = et(cm, void 0), { formItem: s } = lp(), { emit: l } = In();
  6100. function u(p) {
  6101. var v, g, m, y;
  6102. return [!0, t.trueValue, t.trueLabel].includes(p) ? (g = (v = t.trueValue) != null ? v : t.trueLabel) != null ? g : !0 : (y = (m = t.falseValue) != null ? m : t.falseLabel) != null ? y : !1;
  6103. }
  6104. function c(p, v) {
  6105. l("change", u(p), v);
  6106. }
  6107. function f(p) {
  6108. if (n.value)
  6109. return;
  6110. const v = p.target;
  6111. l("change", u(v.checked), p);
  6112. }
  6113. async function d(p) {
  6114. n.value || !r.value && !i.value && a.value && (p.composedPath().some((m) => m.tagName === "LABEL") || (e.value = u([!1, t.falseValue, t.falseLabel].includes(e.value)), await Bt(), c(e.value, p)));
  6115. }
  6116. const h = V(() => (o == null ? void 0 : o.validateEvent) || t.validateEvent);
  6117. return me(() => t.modelValue, () => {
  6118. h.value && (s == null || s.validate("change").catch((p) => Fi(p)));
  6119. }), {
  6120. handleChange: f,
  6121. onClickRoot: d
  6122. };
  6123. }, LIe = (t) => {
  6124. const e = ee(!1), { emit: n } = In(), r = et(cm, void 0), i = V(() => Qw(r) === !1), a = ee(!1), o = V({
  6125. get() {
  6126. var s, l;
  6127. return i.value ? (s = r == null ? void 0 : r.modelValue) == null ? void 0 : s.value : (l = t.modelValue) != null ? l : e.value;
  6128. },
  6129. set(s) {
  6130. var l, u;
  6131. i.value && dg(s) ? (a.value = ((l = r == null ? void 0 : r.max) == null ? void 0 : l.value) !== void 0 && s.length > (r == null ? void 0 : r.max.value) && s.length > o.value.length, a.value === !1 && ((u = r == null ? void 0 : r.changeEvent) == null || u.call(r, s))) : (n(ca, s), e.value = s);
  6132. }
  6133. });
  6134. return {
  6135. model: o,
  6136. isGroup: i,
  6137. isLimitExceeded: a
  6138. };
  6139. }, NIe = (t, e, { model: n }) => {
  6140. const r = et(cm, void 0), i = ee(!1), a = V(() => yg(t.value) ? t.label : t.value), o = V(() => {
  6141. const c = n.value;
  6142. return hf(c) ? c : dg(c) ? Rh(a.value) ? c.map(es).some((f) => z_(f, a.value)) : c.map(es).includes(a.value) : c != null ? c === t.trueValue || c === t.trueLabel : !!c;
  6143. }), s = Tg(V(() => {
  6144. var c;
  6145. return (c = r == null ? void 0 : r.size) == null ? void 0 : c.value;
  6146. }), {
  6147. prop: !0
  6148. }), l = Tg(V(() => {
  6149. var c;
  6150. return (c = r == null ? void 0 : r.size) == null ? void 0 : c.value;
  6151. })), u = V(() => !!e.default || !yg(a.value));
  6152. return {
  6153. checkboxButtonSize: s,
  6154. isChecked: o,
  6155. isFocused: i,
  6156. checkboxSize: l,
  6157. hasOwnLabel: u,
  6158. actualValue: a
  6159. };
  6160. }, une = (t, e) => {
  6161. const { formItem: n } = lp(), { model: r, isGroup: i, isLimitExceeded: a } = LIe(t), {
  6162. isFocused: o,
  6163. isChecked: s,
  6164. checkboxButtonSize: l,
  6165. checkboxSize: u,
  6166. hasOwnLabel: c,
  6167. actualValue: f
  6168. } = NIe(t, e, { model: r }), { isDisabled: d } = RIe({ model: r, isChecked: s }), { inputId: h, isLabeledByFormItem: p } = Q_(t, {
  6169. formItemContext: n,
  6170. disableIdGeneration: c,
  6171. disableIdManagement: i
  6172. }), { handleChange: v, onClickRoot: g } = kIe(t, {
  6173. model: r,
  6174. isLimitExceeded: a,
  6175. hasOwnLabel: c,
  6176. isDisabled: d,
  6177. isLabeledByFormItem: p
  6178. });
  6179. return (() => {
  6180. function y() {
  6181. var _, O;
  6182. dg(r.value) && !r.value.includes(f.value) ? r.value.push(f.value) : r.value = (O = (_ = t.trueValue) != null ? _ : t.trueLabel) != null ? O : !0;
  6183. }
  6184. t.checked && y();
  6185. })(), Es({
  6186. from: "controls",
  6187. replacement: "aria-controls",
  6188. version: "2.8.0",
  6189. scope: "el-checkbox",
  6190. ref: "https://element-plus.org/en-US/component/checkbox.html"
  6191. }, V(() => !!t.controls)), Es({
  6192. from: "label act as value",
  6193. replacement: "value",
  6194. version: "3.0.0",
  6195. scope: "el-checkbox",
  6196. ref: "https://element-plus.org/en-US/component/checkbox.html"
  6197. }, V(() => i.value && yg(t.value))), Es({
  6198. from: "true-label",
  6199. replacement: "true-value",
  6200. version: "3.0.0",
  6201. scope: "el-checkbox",
  6202. ref: "https://element-plus.org/en-US/component/checkbox.html"
  6203. }, V(() => !!t.trueLabel)), Es({
  6204. from: "false-label",
  6205. replacement: "false-value",
  6206. version: "3.0.0",
  6207. scope: "el-checkbox",
  6208. ref: "https://element-plus.org/en-US/component/checkbox.html"
  6209. }, V(() => !!t.falseLabel)), {
  6210. inputId: h,
  6211. isLabeledByFormItem: p,
  6212. isChecked: s,
  6213. isDisabled: d,
  6214. isFocused: o,
  6215. checkboxButtonSize: l,
  6216. checkboxSize: u,
  6217. hasOwnLabel: c,
  6218. model: r,
  6219. actualValue: f,
  6220. handleChange: v,
  6221. onClickRoot: g
  6222. };
  6223. }, BIe = ["id", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value"], zIe = ["id", "indeterminate", "disabled", "value", "name", "tabindex"], VIe = ae({
  6224. name: "ElCheckbox"
  6225. }), FIe = /* @__PURE__ */ ae({
  6226. ...VIe,
  6227. props: sne,
  6228. emits: lne,
  6229. setup(t) {
  6230. const e = t, n = D_(), {
  6231. inputId: r,
  6232. isLabeledByFormItem: i,
  6233. isChecked: a,
  6234. isDisabled: o,
  6235. isFocused: s,
  6236. checkboxSize: l,
  6237. hasOwnLabel: u,
  6238. model: c,
  6239. actualValue: f,
  6240. handleChange: d,
  6241. onClickRoot: h
  6242. } = une(e, n), p = $n("checkbox"), v = V(() => [
  6243. p.b(),
  6244. p.m(l.value),
  6245. p.is("disabled", o.value),
  6246. p.is("bordered", e.border),
  6247. p.is("checked", a.value)
  6248. ]), g = V(() => [
  6249. p.e("input"),
  6250. p.is("disabled", o.value),
  6251. p.is("checked", a.value),
  6252. p.is("indeterminate", e.indeterminate),
  6253. p.is("focus", s.value)
  6254. ]);
  6255. return (m, y) => (be(), Je(As(!z(u) && z(i) ? "span" : "label"), {
  6256. class: Ge(z(v)),
  6257. "aria-controls": m.indeterminate ? m.controls || m.ariaControls : null,
  6258. onClick: z(h)
  6259. }, {
  6260. default: ke(() => {
  6261. var _, O;
  6262. return [
  6263. tt("span", {
  6264. class: Ge(z(g))
  6265. }, [
  6266. m.trueValue || m.falseValue || m.trueLabel || m.falseLabel ? Sr((be(), Ue("input", {
  6267. key: 0,
  6268. id: z(r),
  6269. "onUpdate:modelValue": y[0] || (y[0] = (S) => Vs(c) ? c.value = S : null),
  6270. class: Ge(z(p).e("original")),
  6271. type: "checkbox",
  6272. indeterminate: m.indeterminate,
  6273. name: m.name,
  6274. tabindex: m.tabindex,
  6275. disabled: z(o),
  6276. "true-value": (_ = m.trueValue) != null ? _ : m.trueLabel,
  6277. "false-value": (O = m.falseValue) != null ? O : m.falseLabel,
  6278. onChange: y[1] || (y[1] = (...S) => z(d) && z(d)(...S)),
  6279. onFocus: y[2] || (y[2] = (S) => s.value = !0),
  6280. onBlur: y[3] || (y[3] = (S) => s.value = !1),
  6281. onClick: y[4] || (y[4] = ai(() => {
  6282. }, ["stop"]))
  6283. }, null, 42, BIe)), [
  6284. [Bw, z(c)]
  6285. ]) : Sr((be(), Ue("input", {
  6286. key: 1,
  6287. id: z(r),
  6288. "onUpdate:modelValue": y[5] || (y[5] = (S) => Vs(c) ? c.value = S : null),
  6289. class: Ge(z(p).e("original")),
  6290. type: "checkbox",
  6291. indeterminate: m.indeterminate,
  6292. disabled: z(o),
  6293. value: z(f),
  6294. name: m.name,
  6295. tabindex: m.tabindex,
  6296. onChange: y[6] || (y[6] = (...S) => z(d) && z(d)(...S)),
  6297. onFocus: y[7] || (y[7] = (S) => s.value = !0),
  6298. onBlur: y[8] || (y[8] = (S) => s.value = !1),
  6299. onClick: y[9] || (y[9] = ai(() => {
  6300. }, ["stop"]))
  6301. }, null, 42, zIe)), [
  6302. [Bw, z(c)]
  6303. ]),
  6304. tt("span", {
  6305. class: Ge(z(p).e("inner"))
  6306. }, null, 2)
  6307. ], 2),
  6308. z(u) ? (be(), Ue("span", {
  6309. key: 0,
  6310. class: Ge(z(p).e("label"))
  6311. }, [
  6312. ln(m.$slots, "default"),
  6313. m.$slots.default ? Ot("v-if", !0) : (be(), Ue(Wt, { key: 0 }, [
  6314. On(xi(m.label), 1)
  6315. ], 64))
  6316. ], 2)) : Ot("v-if", !0)
  6317. ];
  6318. }),
  6319. _: 3
  6320. }, 8, ["class", "aria-controls", "onClick"]));
  6321. }
  6322. });
  6323. var WIe = /* @__PURE__ */ Nn(FIe, [["__file", "checkbox.vue"]]);
  6324. const QIe = ["name", "tabindex", "disabled", "true-value", "false-value"], HIe = ["name", "tabindex", "disabled", "value"], GIe = ae({
  6325. name: "ElCheckboxButton"
  6326. }), jIe = /* @__PURE__ */ ae({
  6327. ...GIe,
  6328. props: sne,
  6329. emits: lne,
  6330. setup(t) {
  6331. const e = t, n = D_(), {
  6332. isFocused: r,
  6333. isChecked: i,
  6334. isDisabled: a,
  6335. checkboxButtonSize: o,
  6336. model: s,
  6337. actualValue: l,
  6338. handleChange: u
  6339. } = une(e, n), c = et(cm, void 0), f = $n("checkbox"), d = V(() => {
  6340. var p, v, g, m;
  6341. const y = (v = (p = c == null ? void 0 : c.fill) == null ? void 0 : p.value) != null ? v : "";
  6342. return {
  6343. backgroundColor: y,
  6344. borderColor: y,
  6345. color: (m = (g = c == null ? void 0 : c.textColor) == null ? void 0 : g.value) != null ? m : "",
  6346. boxShadow: y ? `-1px 0 0 0 ${y}` : void 0
  6347. };
  6348. }), h = V(() => [
  6349. f.b("button"),
  6350. f.bm("button", o.value),
  6351. f.is("disabled", a.value),
  6352. f.is("checked", i.value),
  6353. f.is("focus", r.value)
  6354. ]);
  6355. return (p, v) => {
  6356. var g, m;
  6357. return be(), Ue("label", {
  6358. class: Ge(z(h))
  6359. }, [
  6360. p.trueValue || p.falseValue || p.trueLabel || p.falseLabel ? Sr((be(), Ue("input", {
  6361. key: 0,
  6362. "onUpdate:modelValue": v[0] || (v[0] = (y) => Vs(s) ? s.value = y : null),
  6363. class: Ge(z(f).be("button", "original")),
  6364. type: "checkbox",
  6365. name: p.name,
  6366. tabindex: p.tabindex,
  6367. disabled: z(a),
  6368. "true-value": (g = p.trueValue) != null ? g : p.trueLabel,
  6369. "false-value": (m = p.falseValue) != null ? m : p.falseLabel,
  6370. onChange: v[1] || (v[1] = (...y) => z(u) && z(u)(...y)),
  6371. onFocus: v[2] || (v[2] = (y) => r.value = !0),
  6372. onBlur: v[3] || (v[3] = (y) => r.value = !1),
  6373. onClick: v[4] || (v[4] = ai(() => {
  6374. }, ["stop"]))
  6375. }, null, 42, QIe)), [
  6376. [Bw, z(s)]
  6377. ]) : Sr((be(), Ue("input", {
  6378. key: 1,
  6379. "onUpdate:modelValue": v[5] || (v[5] = (y) => Vs(s) ? s.value = y : null),
  6380. class: Ge(z(f).be("button", "original")),
  6381. type: "checkbox",
  6382. name: p.name,
  6383. tabindex: p.tabindex,
  6384. disabled: z(a),
  6385. value: z(l),
  6386. onChange: v[6] || (v[6] = (...y) => z(u) && z(u)(...y)),
  6387. onFocus: v[7] || (v[7] = (y) => r.value = !0),
  6388. onBlur: v[8] || (v[8] = (y) => r.value = !1),
  6389. onClick: v[9] || (v[9] = ai(() => {
  6390. }, ["stop"]))
  6391. }, null, 42, HIe)), [
  6392. [Bw, z(s)]
  6393. ]),
  6394. p.$slots.default || p.label ? (be(), Ue("span", {
  6395. key: 2,
  6396. class: Ge(z(f).be("button", "inner")),
  6397. style: dr(z(i) ? z(d) : void 0)
  6398. }, [
  6399. ln(p.$slots, "default", {}, () => [
  6400. On(xi(p.label), 1)
  6401. ])
  6402. ], 6)) : Ot("v-if", !0)
  6403. ], 2);
  6404. };
  6405. }
  6406. });
  6407. var cne = /* @__PURE__ */ Nn(jIe, [["__file", "checkbox-button.vue"]]);
  6408. const ZIe = hr({
  6409. modelValue: {
  6410. type: mn(Array),
  6411. default: () => []
  6412. },
  6413. disabled: Boolean,
  6414. min: Number,
  6415. max: Number,
  6416. size: op,
  6417. label: String,
  6418. fill: String,
  6419. textColor: String,
  6420. tag: {
  6421. type: String,
  6422. default: "div"
  6423. },
  6424. validateEvent: {
  6425. type: Boolean,
  6426. default: !0
  6427. },
  6428. ...sp(["ariaLabel"])
  6429. }), UIe = {
  6430. [ca]: (t) => dg(t),
  6431. change: (t) => dg(t)
  6432. }, XIe = ae({
  6433. name: "ElCheckboxGroup"
  6434. }), YIe = /* @__PURE__ */ ae({
  6435. ...XIe,
  6436. props: ZIe,
  6437. emits: UIe,
  6438. setup(t, { emit: e }) {
  6439. const n = t, r = $n("checkbox"), { formItem: i } = lp(), { inputId: a, isLabeledByFormItem: o } = Q_(n, {
  6440. formItemContext: i
  6441. }), s = async (u) => {
  6442. e(ca, u), await Bt(), e("change", u);
  6443. }, l = V({
  6444. get() {
  6445. return n.modelValue;
  6446. },
  6447. set(u) {
  6448. s(u);
  6449. }
  6450. });
  6451. return Et(cm, {
  6452. ...mg(k_(n), [
  6453. "size",
  6454. "min",
  6455. "max",
  6456. "disabled",
  6457. "validateEvent",
  6458. "fill",
  6459. "textColor"
  6460. ]),
  6461. modelValue: l,
  6462. changeEvent: s
  6463. }), Es({
  6464. from: "label",
  6465. replacement: "aria-label",
  6466. version: "2.8.0",
  6467. scope: "el-checkbox-group",
  6468. ref: "https://element-plus.org/en-US/component/checkbox.html"
  6469. }, V(() => !!n.label)), me(() => n.modelValue, () => {
  6470. n.validateEvent && (i == null || i.validate("change").catch((u) => Fi(u)));
  6471. }), (u, c) => {
  6472. var f;
  6473. return be(), Je(As(u.tag), {
  6474. id: z(a),
  6475. class: Ge(z(r).b("group")),
  6476. role: "group",
  6477. "aria-label": z(o) ? void 0 : u.label || u.ariaLabel || "checkbox-group",
  6478. "aria-labelledby": z(o) ? (f = z(i)) == null ? void 0 : f.labelId : void 0
  6479. }, {
  6480. default: ke(() => [
  6481. ln(u.$slots, "default")
  6482. ]),
  6483. _: 3
  6484. }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
  6485. };
  6486. }
  6487. });
  6488. var fne = /* @__PURE__ */ Nn(YIe, [["__file", "checkbox-group.vue"]]);
  6489. const qIe = ec(WIe, {
  6490. CheckboxButton: cne,
  6491. CheckboxGroup: fne
  6492. });
  6493. V_(cne);
  6494. V_(fne);
  6495. const dne = hr({
  6496. modelValue: {
  6497. type: [String, Number, Boolean],
  6498. default: void 0
  6499. },
  6500. size: op,
  6501. disabled: Boolean,
  6502. label: {
  6503. type: [String, Number, Boolean],
  6504. default: void 0
  6505. },
  6506. value: {
  6507. type: [String, Number, Boolean],
  6508. default: void 0
  6509. },
  6510. name: {
  6511. type: String,
  6512. default: void 0
  6513. }
  6514. }), KIe = hr({
  6515. ...dne,
  6516. border: Boolean
  6517. }), hne = {
  6518. [ca]: (t) => ia(t) || Ws(t) || hf(t),
  6519. [Cte]: (t) => ia(t) || Ws(t) || hf(t)
  6520. }, pne = Symbol("radioGroupKey"), vne = (t, e) => {
  6521. const n = ee(), r = et(pne, void 0), i = V(() => !!r), a = V(() => yg(t.value) ? t.label : t.value), o = V({
  6522. get() {
  6523. return i.value ? r.modelValue : t.modelValue;
  6524. },
  6525. set(f) {
  6526. i.value ? r.changeEvent(f) : e && e(ca, f), n.value.checked = t.modelValue === a.value;
  6527. }
  6528. }), s = Tg(V(() => r == null ? void 0 : r.size)), l = um(V(() => r == null ? void 0 : r.disabled)), u = ee(!1), c = V(() => l.value || i.value && o.value !== a.value ? -1 : 0);
  6529. return Es({
  6530. from: "label act as value",
  6531. replacement: "value",
  6532. version: "3.0.0",
  6533. scope: "el-radio",
  6534. ref: "https://element-plus.org/en-US/component/radio.html"
  6535. }, V(() => i.value && yg(t.value))), {
  6536. radioRef: n,
  6537. isGroup: i,
  6538. radioGroup: r,
  6539. focus: u,
  6540. size: s,
  6541. disabled: l,
  6542. tabIndex: c,
  6543. modelValue: o,
  6544. actualValue: a
  6545. };
  6546. }, JIe = ["value", "name", "disabled"], eDe = ae({
  6547. name: "ElRadio"
  6548. }), tDe = /* @__PURE__ */ ae({
  6549. ...eDe,
  6550. props: KIe,
  6551. emits: hne,
  6552. setup(t, { emit: e }) {
  6553. const n = t, r = $n("radio"), { radioRef: i, radioGroup: a, focus: o, size: s, disabled: l, modelValue: u, actualValue: c } = vne(n, e);
  6554. function f() {
  6555. Bt(() => e("change", u.value));
  6556. }
  6557. return (d, h) => {
  6558. var p;
  6559. return be(), Ue("label", {
  6560. class: Ge([
  6561. z(r).b(),
  6562. z(r).is("disabled", z(l)),
  6563. z(r).is("focus", z(o)),
  6564. z(r).is("bordered", d.border),
  6565. z(r).is("checked", z(u) === z(c)),
  6566. z(r).m(z(s))
  6567. ])
  6568. }, [
  6569. tt("span", {
  6570. class: Ge([
  6571. z(r).e("input"),
  6572. z(r).is("disabled", z(l)),
  6573. z(r).is("checked", z(u) === z(c))
  6574. ])
  6575. }, [
  6576. Sr(tt("input", {
  6577. ref_key: "radioRef",
  6578. ref: i,
  6579. "onUpdate:modelValue": h[0] || (h[0] = (v) => Vs(u) ? u.value = v : null),
  6580. class: Ge(z(r).e("original")),
  6581. value: z(c),
  6582. name: d.name || ((p = z(a)) == null ? void 0 : p.name),
  6583. disabled: z(l),
  6584. type: "radio",
  6585. onFocus: h[1] || (h[1] = (v) => o.value = !0),
  6586. onBlur: h[2] || (h[2] = (v) => o.value = !1),
  6587. onChange: f,
  6588. onClick: h[3] || (h[3] = ai(() => {
  6589. }, ["stop"]))
  6590. }, null, 42, JIe), [
  6591. [Eee, z(u)]
  6592. ]),
  6593. tt("span", {
  6594. class: Ge(z(r).e("inner"))
  6595. }, null, 2)
  6596. ], 2),
  6597. tt("span", {
  6598. class: Ge(z(r).e("label")),
  6599. onKeydown: h[4] || (h[4] = ai(() => {
  6600. }, ["stop"]))
  6601. }, [
  6602. ln(d.$slots, "default", {}, () => [
  6603. On(xi(d.label), 1)
  6604. ])
  6605. ], 34)
  6606. ], 2);
  6607. };
  6608. }
  6609. });
  6610. var nDe = /* @__PURE__ */ Nn(tDe, [["__file", "radio.vue"]]);
  6611. const rDe = hr({
  6612. ...dne
  6613. }), iDe = ["value", "name", "disabled"], aDe = ae({
  6614. name: "ElRadioButton"
  6615. }), oDe = /* @__PURE__ */ ae({
  6616. ...aDe,
  6617. props: rDe,
  6618. setup(t) {
  6619. const e = t, n = $n("radio"), { radioRef: r, focus: i, size: a, disabled: o, modelValue: s, radioGroup: l, actualValue: u } = vne(e), c = V(() => ({
  6620. backgroundColor: (l == null ? void 0 : l.fill) || "",
  6621. borderColor: (l == null ? void 0 : l.fill) || "",
  6622. boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
  6623. color: (l == null ? void 0 : l.textColor) || ""
  6624. }));
  6625. return (f, d) => {
  6626. var h;
  6627. return be(), Ue("label", {
  6628. class: Ge([
  6629. z(n).b("button"),
  6630. z(n).is("active", z(s) === z(u)),
  6631. z(n).is("disabled", z(o)),
  6632. z(n).is("focus", z(i)),
  6633. z(n).bm("button", z(a))
  6634. ])
  6635. }, [
  6636. Sr(tt("input", {
  6637. ref_key: "radioRef",
  6638. ref: r,
  6639. "onUpdate:modelValue": d[0] || (d[0] = (p) => Vs(s) ? s.value = p : null),
  6640. class: Ge(z(n).be("button", "original-radio")),
  6641. value: z(u),
  6642. type: "radio",
  6643. name: f.name || ((h = z(l)) == null ? void 0 : h.name),
  6644. disabled: z(o),
  6645. onFocus: d[1] || (d[1] = (p) => i.value = !0),
  6646. onBlur: d[2] || (d[2] = (p) => i.value = !1),
  6647. onClick: d[3] || (d[3] = ai(() => {
  6648. }, ["stop"]))
  6649. }, null, 42, iDe), [
  6650. [Eee, z(s)]
  6651. ]),
  6652. tt("span", {
  6653. class: Ge(z(n).be("button", "inner")),
  6654. style: dr(z(s) === z(u) ? z(c) : {}),
  6655. onKeydown: d[4] || (d[4] = ai(() => {
  6656. }, ["stop"]))
  6657. }, [
  6658. ln(f.$slots, "default", {}, () => [
  6659. On(xi(f.label), 1)
  6660. ])
  6661. ], 38)
  6662. ], 2);
  6663. };
  6664. }
  6665. });
  6666. var gne = /* @__PURE__ */ Nn(oDe, [["__file", "radio-button.vue"]]);
  6667. const sDe = hr({
  6668. id: {
  6669. type: String,
  6670. default: void 0
  6671. },
  6672. size: op,
  6673. disabled: Boolean,
  6674. modelValue: {
  6675. type: [String, Number, Boolean],
  6676. default: void 0
  6677. },
  6678. fill: {
  6679. type: String,
  6680. default: ""
  6681. },
  6682. label: {
  6683. type: String,
  6684. default: void 0
  6685. },
  6686. textColor: {
  6687. type: String,
  6688. default: ""
  6689. },
  6690. name: {
  6691. type: String,
  6692. default: void 0
  6693. },
  6694. validateEvent: {
  6695. type: Boolean,
  6696. default: !0
  6697. },
  6698. ...sp(["ariaLabel"])
  6699. }), lDe = hne, uDe = ["id", "aria-label", "aria-labelledby"], cDe = ae({
  6700. name: "ElRadioGroup"
  6701. }), fDe = /* @__PURE__ */ ae({
  6702. ...cDe,
  6703. props: sDe,
  6704. emits: lDe,
  6705. setup(t, { emit: e }) {
  6706. const n = t, r = $n("radio"), i = wb(), a = ee(), { formItem: o } = lp(), { inputId: s, isLabeledByFormItem: l } = Q_(n, {
  6707. formItemContext: o
  6708. }), u = (f) => {
  6709. e(ca, f), Bt(() => e("change", f));
  6710. };
  6711. _t(() => {
  6712. const f = a.value.querySelectorAll("[type=radio]"), d = f[0];
  6713. !Array.from(f).some((h) => h.checked) && d && (d.tabIndex = 0);
  6714. });
  6715. const c = V(() => n.name || i.value);
  6716. return Et(pne, zn({
  6717. ...k_(n),
  6718. changeEvent: u,
  6719. name: c
  6720. })), me(() => n.modelValue, () => {
  6721. n.validateEvent && (o == null || o.validate("change").catch((f) => Fi(f)));
  6722. }), Es({
  6723. from: "label",
  6724. replacement: "aria-label",
  6725. version: "2.8.0",
  6726. scope: "el-radio-group",
  6727. ref: "https://element-plus.org/en-US/component/radio.html"
  6728. }, V(() => !!n.label)), (f, d) => (be(), Ue("div", {
  6729. id: z(s),
  6730. ref_key: "radioGroupRef",
  6731. ref: a,
  6732. class: Ge(z(r).b("group")),
  6733. role: "radiogroup",
  6734. "aria-label": z(l) ? void 0 : f.label || f.ariaLabel || "radio-group",
  6735. "aria-labelledby": z(l) ? z(o).labelId : void 0
  6736. }, [
  6737. ln(f.$slots, "default")
  6738. ], 10, uDe));
  6739. }
  6740. });
  6741. var mne = /* @__PURE__ */ Nn(fDe, [["__file", "radio-group.vue"]]);
  6742. ec(nDe, {
  6743. RadioButton: gne,
  6744. RadioGroup: mne
  6745. });
  6746. const yne = V_(mne), By = V_(gne), dDe = ae({
  6747. name: "ElCollapseTransition"
  6748. }), hDe = /* @__PURE__ */ ae({
  6749. ...dDe,
  6750. setup(t) {
  6751. const e = $n("collapse-transition"), n = (i) => {
  6752. i.style.maxHeight = "", i.style.overflow = i.dataset.oldOverflow, i.style.paddingTop = i.dataset.oldPaddingTop, i.style.paddingBottom = i.dataset.oldPaddingBottom;
  6753. }, r = {
  6754. beforeEnter(i) {
  6755. i.dataset || (i.dataset = {}), i.dataset.oldPaddingTop = i.style.paddingTop, i.dataset.oldPaddingBottom = i.style.paddingBottom, i.style.height && (i.dataset.elExistsHeight = i.style.height), i.style.maxHeight = 0, i.style.paddingTop = 0, i.style.paddingBottom = 0;
  6756. },
  6757. enter(i) {
  6758. requestAnimationFrame(() => {
  6759. i.dataset.oldOverflow = i.style.overflow, i.dataset.elExistsHeight ? i.style.maxHeight = i.dataset.elExistsHeight : i.scrollHeight !== 0 ? i.style.maxHeight = `${i.scrollHeight}px` : i.style.maxHeight = 0, i.style.paddingTop = i.dataset.oldPaddingTop, i.style.paddingBottom = i.dataset.oldPaddingBottom, i.style.overflow = "hidden";
  6760. });
  6761. },
  6762. afterEnter(i) {
  6763. i.style.maxHeight = "", i.style.overflow = i.dataset.oldOverflow;
  6764. },
  6765. enterCancelled(i) {
  6766. n(i);
  6767. },
  6768. beforeLeave(i) {
  6769. i.dataset || (i.dataset = {}), i.dataset.oldPaddingTop = i.style.paddingTop, i.dataset.oldPaddingBottom = i.style.paddingBottom, i.dataset.oldOverflow = i.style.overflow, i.style.maxHeight = `${i.scrollHeight}px`, i.style.overflow = "hidden";
  6770. },
  6771. leave(i) {
  6772. i.scrollHeight !== 0 && (i.style.maxHeight = 0, i.style.paddingTop = 0, i.style.paddingBottom = 0);
  6773. },
  6774. afterLeave(i) {
  6775. n(i);
  6776. },
  6777. leaveCancelled(i) {
  6778. n(i);
  6779. }
  6780. };
  6781. return (i, a) => (be(), Je(mo, Xn({
  6782. name: z(e).b()
  6783. }, uxe(r)), {
  6784. default: ke(() => [
  6785. ln(i.$slots, "default")
  6786. ]),
  6787. _: 3
  6788. }, 16, ["name"]));
  6789. }
  6790. });
  6791. var Fx = /* @__PURE__ */ Nn(hDe, [["__file", "collapse-transition.vue"]]);
  6792. Fx.install = (t) => {
  6793. t.component(Fx.name, Fx);
  6794. };
  6795. const pDe = Fx, vDe = hr({
  6796. color: {
  6797. type: mn(Object),
  6798. required: !0
  6799. },
  6800. vertical: {
  6801. type: Boolean,
  6802. default: !1
  6803. }
  6804. });
  6805. let jA = !1;
  6806. function Pb(t, e) {
  6807. if (!Fr)
  6808. return;
  6809. const n = function(a) {
  6810. var o;
  6811. (o = e.drag) == null || o.call(e, a);
  6812. }, r = function(a) {
  6813. var o;
  6814. document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", r), document.removeEventListener("touchmove", n), document.removeEventListener("touchend", r), document.onselectstart = null, document.ondragstart = null, jA = !1, (o = e.end) == null || o.call(e, a);
  6815. }, i = function(a) {
  6816. var o;
  6817. jA || (a.preventDefault(), document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", n), document.addEventListener("mouseup", r), document.addEventListener("touchmove", n), document.addEventListener("touchend", r), jA = !0, (o = e.start) == null || o.call(e, a));
  6818. };
  6819. t.addEventListener("mousedown", i), t.addEventListener("touchstart", i);
  6820. }
  6821. const gDe = (t) => {
  6822. const e = In(), n = ve(), r = ve();
  6823. function i(o) {
  6824. o.target !== n.value && a(o);
  6825. }
  6826. function a(o) {
  6827. if (!r.value || !n.value)
  6828. return;
  6829. const l = e.vnode.el.getBoundingClientRect(), { clientX: u, clientY: c } = K4(o);
  6830. if (t.vertical) {
  6831. let f = c - l.top;
  6832. f = Math.max(n.value.offsetHeight / 2, f), f = Math.min(f, l.height - n.value.offsetHeight / 2), t.color.set("alpha", Math.round((f - n.value.offsetHeight / 2) / (l.height - n.value.offsetHeight) * 100));
  6833. } else {
  6834. let f = u - l.left;
  6835. f = Math.max(n.value.offsetWidth / 2, f), f = Math.min(f, l.width - n.value.offsetWidth / 2), t.color.set("alpha", Math.round((f - n.value.offsetWidth / 2) / (l.width - n.value.offsetWidth) * 100));
  6836. }
  6837. }
  6838. return {
  6839. thumb: n,
  6840. bar: r,
  6841. handleDrag: a,
  6842. handleClick: i
  6843. };
  6844. }, mDe = (t, {
  6845. bar: e,
  6846. thumb: n,
  6847. handleDrag: r
  6848. }) => {
  6849. const i = In(), a = $n("color-alpha-slider"), o = ee(0), s = ee(0), l = ee();
  6850. function u() {
  6851. if (!n.value || t.vertical)
  6852. return 0;
  6853. const y = i.vnode.el, _ = t.color.get("alpha");
  6854. return y ? Math.round(_ * (y.offsetWidth - n.value.offsetWidth / 2) / 100) : 0;
  6855. }
  6856. function c() {
  6857. if (!n.value)
  6858. return 0;
  6859. const y = i.vnode.el;
  6860. if (!t.vertical)
  6861. return 0;
  6862. const _ = t.color.get("alpha");
  6863. return y ? Math.round(_ * (y.offsetHeight - n.value.offsetHeight / 2) / 100) : 0;
  6864. }
  6865. function f() {
  6866. if (t.color && t.color.value) {
  6867. const { r: y, g: _, b: O } = t.color.toRgb();
  6868. return `linear-gradient(to right, rgba(${y}, ${_}, ${O}, 0) 0%, rgba(${y}, ${_}, ${O}, 1) 100%)`;
  6869. }
  6870. return "";
  6871. }
  6872. function d() {
  6873. o.value = u(), s.value = c(), l.value = f();
  6874. }
  6875. _t(() => {
  6876. if (!e.value || !n.value)
  6877. return;
  6878. const y = {
  6879. drag: (_) => {
  6880. r(_);
  6881. },
  6882. end: (_) => {
  6883. r(_);
  6884. }
  6885. };
  6886. Pb(e.value, y), Pb(n.value, y), d();
  6887. }), me(() => t.color.get("alpha"), () => d()), me(() => t.color.value, () => d());
  6888. const h = V(() => [a.b(), a.is("vertical", t.vertical)]), p = V(() => a.e("bar")), v = V(() => a.e("thumb")), g = V(() => ({ background: l.value })), m = V(() => ({
  6889. left: bg(o.value),
  6890. top: bg(s.value)
  6891. }));
  6892. return { rootKls: h, barKls: p, barStyle: g, thumbKls: v, thumbStyle: m, update: d };
  6893. }, yDe = "ElColorAlphaSlider", bDe = ae({
  6894. name: yDe
  6895. }), _De = /* @__PURE__ */ ae({
  6896. ...bDe,
  6897. props: vDe,
  6898. setup(t, { expose: e }) {
  6899. const n = t, { bar: r, thumb: i, handleDrag: a, handleClick: o } = gDe(n), { rootKls: s, barKls: l, barStyle: u, thumbKls: c, thumbStyle: f, update: d } = mDe(n, {
  6900. bar: r,
  6901. thumb: i,
  6902. handleDrag: a
  6903. });
  6904. return e({
  6905. update: d,
  6906. bar: r,
  6907. thumb: i
  6908. }), (h, p) => (be(), Ue("div", {
  6909. class: Ge(z(s))
  6910. }, [
  6911. tt("div", {
  6912. ref_key: "bar",
  6913. ref: r,
  6914. class: Ge(z(l)),
  6915. style: dr(z(u)),
  6916. onClick: p[0] || (p[0] = (...v) => z(o) && z(o)(...v))
  6917. }, null, 6),
  6918. tt("div", {
  6919. ref_key: "thumb",
  6920. ref: i,
  6921. class: Ge(z(c)),
  6922. style: dr(z(f))
  6923. }, null, 6)
  6924. ], 2));
  6925. }
  6926. });
  6927. var ODe = /* @__PURE__ */ Nn(_De, [["__file", "alpha-slider.vue"]]);
  6928. const SDe = ae({
  6929. name: "ElColorHueSlider",
  6930. props: {
  6931. color: {
  6932. type: Object,
  6933. required: !0
  6934. },
  6935. vertical: Boolean
  6936. },
  6937. setup(t) {
  6938. const e = $n("color-hue-slider"), n = In(), r = ee(), i = ee(), a = ee(0), o = ee(0), s = V(() => t.color.get("hue"));
  6939. me(() => s.value, () => {
  6940. d();
  6941. });
  6942. function l(h) {
  6943. h.target !== r.value && u(h);
  6944. }
  6945. function u(h) {
  6946. if (!i.value || !r.value)
  6947. return;
  6948. const v = n.vnode.el.getBoundingClientRect(), { clientX: g, clientY: m } = K4(h);
  6949. let y;
  6950. if (t.vertical) {
  6951. let _ = m - v.top;
  6952. _ = Math.min(_, v.height - r.value.offsetHeight / 2), _ = Math.max(r.value.offsetHeight / 2, _), y = Math.round((_ - r.value.offsetHeight / 2) / (v.height - r.value.offsetHeight) * 360);
  6953. } else {
  6954. let _ = g - v.left;
  6955. _ = Math.min(_, v.width - r.value.offsetWidth / 2), _ = Math.max(r.value.offsetWidth / 2, _), y = Math.round((_ - r.value.offsetWidth / 2) / (v.width - r.value.offsetWidth) * 360);
  6956. }
  6957. t.color.set("hue", y);
  6958. }
  6959. function c() {
  6960. if (!r.value)
  6961. return 0;
  6962. const h = n.vnode.el;
  6963. if (t.vertical)
  6964. return 0;
  6965. const p = t.color.get("hue");
  6966. return h ? Math.round(p * (h.offsetWidth - r.value.offsetWidth / 2) / 360) : 0;
  6967. }
  6968. function f() {
  6969. if (!r.value)
  6970. return 0;
  6971. const h = n.vnode.el;
  6972. if (!t.vertical)
  6973. return 0;
  6974. const p = t.color.get("hue");
  6975. return h ? Math.round(p * (h.offsetHeight - r.value.offsetHeight / 2) / 360) : 0;
  6976. }
  6977. function d() {
  6978. a.value = c(), o.value = f();
  6979. }
  6980. return _t(() => {
  6981. if (!i.value || !r.value)
  6982. return;
  6983. const h = {
  6984. drag: (p) => {
  6985. u(p);
  6986. },
  6987. end: (p) => {
  6988. u(p);
  6989. }
  6990. };
  6991. Pb(i.value, h), Pb(r.value, h), d();
  6992. }), {
  6993. bar: i,
  6994. thumb: r,
  6995. thumbLeft: a,
  6996. thumbTop: o,
  6997. hueValue: s,
  6998. handleClick: l,
  6999. update: d,
  7000. ns: e
  7001. };
  7002. }
  7003. });
  7004. function xDe(t, e, n, r, i, a) {
  7005. return be(), Ue("div", {
  7006. class: Ge([t.ns.b(), t.ns.is("vertical", t.vertical)])
  7007. }, [
  7008. tt("div", {
  7009. ref: "bar",
  7010. class: Ge(t.ns.e("bar")),
  7011. onClick: e[0] || (e[0] = (...o) => t.handleClick && t.handleClick(...o))
  7012. }, null, 2),
  7013. tt("div", {
  7014. ref: "thumb",
  7015. class: Ge(t.ns.e("thumb")),
  7016. style: dr({
  7017. left: t.thumbLeft + "px",
  7018. top: t.thumbTop + "px"
  7019. })
  7020. }, null, 6)
  7021. ], 2);
  7022. }
  7023. var wDe = /* @__PURE__ */ Nn(SDe, [["render", xDe], ["__file", "hue-slider.vue"]]);
  7024. const CDe = hr({
  7025. modelValue: String,
  7026. id: String,
  7027. showAlpha: Boolean,
  7028. colorFormat: String,
  7029. disabled: Boolean,
  7030. size: op,
  7031. popperClass: {
  7032. type: String,
  7033. default: ""
  7034. },
  7035. label: {
  7036. type: String,
  7037. default: void 0
  7038. },
  7039. tabindex: {
  7040. type: [String, Number],
  7041. default: 0
  7042. },
  7043. teleported: DN.teleported,
  7044. predefine: {
  7045. type: mn(Array)
  7046. },
  7047. validateEvent: {
  7048. type: Boolean,
  7049. default: !0
  7050. },
  7051. ...sp(["ariaLabel"])
  7052. }), TDe = {
  7053. [ca]: (t) => ia(t) || Jc(t),
  7054. [Cte]: (t) => ia(t) || Jc(t),
  7055. activeChange: (t) => ia(t) || Jc(t),
  7056. focus: (t) => t instanceof FocusEvent,
  7057. blur: (t) => t instanceof FocusEvent
  7058. }, bne = Symbol("colorPickerContextKey"), NW = function(t, e, n) {
  7059. return [
  7060. t,
  7061. e * n / ((t = (2 - e) * n) < 1 ? t : 2 - t) || 0,
  7062. t / 2
  7063. ];
  7064. }, PDe = function(t) {
  7065. return typeof t == "string" && t.includes(".") && Number.parseFloat(t) === 1;
  7066. }, $De = function(t) {
  7067. return typeof t == "string" && t.includes("%");
  7068. }, Vv = function(t, e) {
  7069. PDe(t) && (t = "100%");
  7070. const n = $De(t);
  7071. return t = Math.min(e, Math.max(0, Number.parseFloat(`${t}`))), n && (t = Number.parseInt(`${t * e}`, 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : t % e / Number.parseFloat(e);
  7072. }, BW = {
  7073. 10: "A",
  7074. 11: "B",
  7075. 12: "C",
  7076. 13: "D",
  7077. 14: "E",
  7078. 15: "F"
  7079. }, Wx = (t) => {
  7080. t = Math.min(Math.round(t), 255);
  7081. const e = Math.floor(t / 16), n = t % 16;
  7082. return `${BW[e] || e}${BW[n] || n}`;
  7083. }, zW = function({ r: t, g: e, b: n }) {
  7084. return Number.isNaN(+t) || Number.isNaN(+e) || Number.isNaN(+n) ? "" : `#${Wx(t)}${Wx(e)}${Wx(n)}`;
  7085. }, ZA = {
  7086. A: 10,
  7087. B: 11,
  7088. C: 12,
  7089. D: 13,
  7090. E: 14,
  7091. F: 15
  7092. }, rd = function(t) {
  7093. return t.length === 2 ? (ZA[t[0].toUpperCase()] || +t[0]) * 16 + (ZA[t[1].toUpperCase()] || +t[1]) : ZA[t[1].toUpperCase()] || +t[1];
  7094. }, ADe = function(t, e, n) {
  7095. e = e / 100, n = n / 100;
  7096. let r = e;
  7097. const i = Math.max(n, 0.01);
  7098. n *= 2, e *= n <= 1 ? n : 2 - n, r *= i <= 1 ? i : 2 - i;
  7099. const a = (n + e) / 2, o = n === 0 ? 2 * r / (i + r) : 2 * e / (n + e);
  7100. return {
  7101. h: t,
  7102. s: o * 100,
  7103. v: a * 100
  7104. };
  7105. }, VW = (t, e, n) => {
  7106. t = Vv(t, 255), e = Vv(e, 255), n = Vv(n, 255);
  7107. const r = Math.max(t, e, n), i = Math.min(t, e, n);
  7108. let a;
  7109. const o = r, s = r - i, l = r === 0 ? 0 : s / r;
  7110. if (r === i)
  7111. a = 0;
  7112. else {
  7113. switch (r) {
  7114. case t: {
  7115. a = (e - n) / s + (e < n ? 6 : 0);
  7116. break;
  7117. }
  7118. case e: {
  7119. a = (n - t) / s + 2;
  7120. break;
  7121. }
  7122. case n: {
  7123. a = (t - e) / s + 4;
  7124. break;
  7125. }
  7126. }
  7127. a /= 6;
  7128. }
  7129. return { h: a * 360, s: l * 100, v: o * 100 };
  7130. }, g0 = function(t, e, n) {
  7131. t = Vv(t, 360) * 6, e = Vv(e, 100), n = Vv(n, 100);
  7132. const r = Math.floor(t), i = t - r, a = n * (1 - e), o = n * (1 - i * e), s = n * (1 - (1 - i) * e), l = r % 6, u = [n, o, a, a, s, n][l], c = [s, n, n, o, a, a][l], f = [a, a, s, n, n, o][l];
  7133. return {
  7134. r: Math.round(u * 255),
  7135. g: Math.round(c * 255),
  7136. b: Math.round(f * 255)
  7137. };
  7138. };
  7139. class zy {
  7140. constructor(e = {}) {
  7141. this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100, this.enableAlpha = !1, this.format = "hex", this.value = "";
  7142. for (const n in e)
  7143. Dh(e, n) && (this[n] = e[n]);
  7144. e.value ? this.fromString(e.value) : this.doOnChange();
  7145. }
  7146. set(e, n) {
  7147. if (arguments.length === 1 && typeof e == "object") {
  7148. for (const r in e)
  7149. Dh(e, r) && this.set(r, e[r]);
  7150. return;
  7151. }
  7152. this[`_${e}`] = n, this.doOnChange();
  7153. }
  7154. get(e) {
  7155. return e === "alpha" ? Math.floor(this[`_${e}`]) : this[`_${e}`];
  7156. }
  7157. toRgb() {
  7158. return g0(this._hue, this._saturation, this._value);
  7159. }
  7160. fromString(e) {
  7161. if (!e) {
  7162. this._hue = 0, this._saturation = 100, this._value = 100, this.doOnChange();
  7163. return;
  7164. }
  7165. const n = (r, i, a) => {
  7166. this._hue = Math.max(0, Math.min(360, r)), this._saturation = Math.max(0, Math.min(100, i)), this._value = Math.max(0, Math.min(100, a)), this.doOnChange();
  7167. };
  7168. if (e.includes("hsl")) {
  7169. const r = e.replace(/hsla|hsl|\(|\)/gm, "").split(/\s|,/g).filter((i) => i !== "").map((i, a) => a > 2 ? Number.parseFloat(i) : Number.parseInt(i, 10));
  7170. if (r.length === 4 ? this._alpha = Number.parseFloat(r[3]) * 100 : r.length === 3 && (this._alpha = 100), r.length >= 3) {
  7171. const { h: i, s: a, v: o } = ADe(r[0], r[1], r[2]);
  7172. n(i, a, o);
  7173. }
  7174. } else if (e.includes("hsv")) {
  7175. const r = e.replace(/hsva|hsv|\(|\)/gm, "").split(/\s|,/g).filter((i) => i !== "").map((i, a) => a > 2 ? Number.parseFloat(i) : Number.parseInt(i, 10));
  7176. r.length === 4 ? this._alpha = Number.parseFloat(r[3]) * 100 : r.length === 3 && (this._alpha = 100), r.length >= 3 && n(r[0], r[1], r[2]);
  7177. } else if (e.includes("rgb")) {
  7178. const r = e.replace(/rgba|rgb|\(|\)/gm, "").split(/\s|,/g).filter((i) => i !== "").map((i, a) => a > 2 ? Number.parseFloat(i) : Number.parseInt(i, 10));
  7179. if (r.length === 4 ? this._alpha = Number.parseFloat(r[3]) * 100 : r.length === 3 && (this._alpha = 100), r.length >= 3) {
  7180. const { h: i, s: a, v: o } = VW(r[0], r[1], r[2]);
  7181. n(i, a, o);
  7182. }
  7183. } else if (e.includes("#")) {
  7184. const r = e.replace("#", "").trim();
  7185. if (!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))
  7186. return;
  7187. let i, a, o;
  7188. r.length === 3 ? (i = rd(r[0] + r[0]), a = rd(r[1] + r[1]), o = rd(r[2] + r[2])) : (r.length === 6 || r.length === 8) && (i = rd(r.slice(0, 2)), a = rd(r.slice(2, 4)), o = rd(r.slice(4, 6))), r.length === 8 ? this._alpha = rd(r.slice(6)) / 255 * 100 : (r.length === 3 || r.length === 6) && (this._alpha = 100);
  7189. const { h: s, s: l, v: u } = VW(i, a, o);
  7190. n(s, l, u);
  7191. }
  7192. }
  7193. compare(e) {
  7194. return Math.abs(e._hue - this._hue) < 2 && Math.abs(e._saturation - this._saturation) < 1 && Math.abs(e._value - this._value) < 1 && Math.abs(e._alpha - this._alpha) < 1;
  7195. }
  7196. doOnChange() {
  7197. const { _hue: e, _saturation: n, _value: r, _alpha: i, format: a } = this;
  7198. if (this.enableAlpha)
  7199. switch (a) {
  7200. case "hsl": {
  7201. const o = NW(e, n / 100, r / 100);
  7202. this.value = `hsla(${e}, ${Math.round(o[1] * 100)}%, ${Math.round(o[2] * 100)}%, ${this.get("alpha") / 100})`;
  7203. break;
  7204. }
  7205. case "hsv": {
  7206. this.value = `hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha") / 100})`;
  7207. break;
  7208. }
  7209. case "hex": {
  7210. this.value = `${zW(g0(e, n, r))}${Wx(i * 255 / 100)}`;
  7211. break;
  7212. }
  7213. default: {
  7214. const { r: o, g: s, b: l } = g0(e, n, r);
  7215. this.value = `rgba(${o}, ${s}, ${l}, ${this.get("alpha") / 100})`;
  7216. }
  7217. }
  7218. else
  7219. switch (a) {
  7220. case "hsl": {
  7221. const o = NW(e, n / 100, r / 100);
  7222. this.value = `hsl(${e}, ${Math.round(o[1] * 100)}%, ${Math.round(o[2] * 100)}%)`;
  7223. break;
  7224. }
  7225. case "hsv": {
  7226. this.value = `hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;
  7227. break;
  7228. }
  7229. case "rgb": {
  7230. const { r: o, g: s, b: l } = g0(e, n, r);
  7231. this.value = `rgb(${o}, ${s}, ${l})`;
  7232. break;
  7233. }
  7234. default:
  7235. this.value = zW(g0(e, n, r));
  7236. }
  7237. }
  7238. }
  7239. const EDe = ae({
  7240. props: {
  7241. colors: {
  7242. type: Array,
  7243. required: !0
  7244. },
  7245. color: {
  7246. type: Object,
  7247. required: !0
  7248. },
  7249. enableAlpha: {
  7250. type: Boolean,
  7251. required: !0
  7252. }
  7253. },
  7254. setup(t) {
  7255. const e = $n("color-predefine"), { currentColor: n } = et(bne), r = ee(a(t.colors, t.color));
  7256. me(() => n.value, (o) => {
  7257. const s = new zy();
  7258. s.fromString(o), r.value.forEach((l) => {
  7259. l.selected = s.compare(l);
  7260. });
  7261. }), Vt(() => {
  7262. r.value = a(t.colors, t.color);
  7263. });
  7264. function i(o) {
  7265. t.color.fromString(t.colors[o]);
  7266. }
  7267. function a(o, s) {
  7268. return o.map((l) => {
  7269. const u = new zy();
  7270. return u.enableAlpha = t.enableAlpha, u.format = "rgba", u.fromString(l), u.selected = u.value === s.value, u;
  7271. });
  7272. }
  7273. return {
  7274. rgbaColors: r,
  7275. handleSelect: i,
  7276. ns: e
  7277. };
  7278. }
  7279. }), MDe = ["onClick"];
  7280. function IDe(t, e, n, r, i, a) {
  7281. return be(), Ue("div", {
  7282. class: Ge(t.ns.b())
  7283. }, [
  7284. tt("div", {
  7285. class: Ge(t.ns.e("colors"))
  7286. }, [
  7287. (be(!0), Ue(Wt, null, hh(t.rgbaColors, (o, s) => (be(), Ue("div", {
  7288. key: t.colors[s],
  7289. class: Ge([
  7290. t.ns.e("color-selector"),
  7291. t.ns.is("alpha", o._alpha < 100),
  7292. { selected: o.selected }
  7293. ]),
  7294. onClick: (l) => t.handleSelect(s)
  7295. }, [
  7296. tt("div", {
  7297. style: dr({ backgroundColor: o.value })
  7298. }, null, 4)
  7299. ], 10, MDe))), 128))
  7300. ], 2)
  7301. ], 2);
  7302. }
  7303. var DDe = /* @__PURE__ */ Nn(EDe, [["render", IDe], ["__file", "predefine.vue"]]);
  7304. const RDe = ae({
  7305. name: "ElSlPanel",
  7306. props: {
  7307. color: {
  7308. type: Object,
  7309. required: !0
  7310. }
  7311. },
  7312. setup(t) {
  7313. const e = $n("color-svpanel"), n = In(), r = ee(0), i = ee(0), a = ee("hsl(0, 100%, 50%)"), o = V(() => {
  7314. const u = t.color.get("hue"), c = t.color.get("value");
  7315. return { hue: u, value: c };
  7316. });
  7317. function s() {
  7318. const u = t.color.get("saturation"), c = t.color.get("value"), f = n.vnode.el, { clientWidth: d, clientHeight: h } = f;
  7319. i.value = u * d / 100, r.value = (100 - c) * h / 100, a.value = `hsl(${t.color.get("hue")}, 100%, 50%)`;
  7320. }
  7321. function l(u) {
  7322. const f = n.vnode.el.getBoundingClientRect(), { clientX: d, clientY: h } = K4(u);
  7323. let p = d - f.left, v = h - f.top;
  7324. p = Math.max(0, p), p = Math.min(p, f.width), v = Math.max(0, v), v = Math.min(v, f.height), i.value = p, r.value = v, t.color.set({
  7325. saturation: p / f.width * 100,
  7326. value: 100 - v / f.height * 100
  7327. });
  7328. }
  7329. return me(() => o.value, () => {
  7330. s();
  7331. }), _t(() => {
  7332. Pb(n.vnode.el, {
  7333. drag: (u) => {
  7334. l(u);
  7335. },
  7336. end: (u) => {
  7337. l(u);
  7338. }
  7339. }), s();
  7340. }), {
  7341. cursorTop: r,
  7342. cursorLeft: i,
  7343. background: a,
  7344. colorValue: o,
  7345. handleDrag: l,
  7346. update: s,
  7347. ns: e
  7348. };
  7349. }
  7350. }), kDe = /* @__PURE__ */ tt("div", null, null, -1), LDe = [
  7351. kDe
  7352. ];
  7353. function NDe(t, e, n, r, i, a) {
  7354. return be(), Ue("div", {
  7355. class: Ge(t.ns.b()),
  7356. style: dr({
  7357. backgroundColor: t.background
  7358. })
  7359. }, [
  7360. tt("div", {
  7361. class: Ge(t.ns.e("white"))
  7362. }, null, 2),
  7363. tt("div", {
  7364. class: Ge(t.ns.e("black"))
  7365. }, null, 2),
  7366. tt("div", {
  7367. class: Ge(t.ns.e("cursor")),
  7368. style: dr({
  7369. top: t.cursorTop + "px",
  7370. left: t.cursorLeft + "px"
  7371. })
  7372. }, LDe, 6)
  7373. ], 6);
  7374. }
  7375. var BDe = /* @__PURE__ */ Nn(RDe, [["render", NDe], ["__file", "sv-panel.vue"]]);
  7376. const zDe = ["onKeydown"], VDe = ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex"], FDe = ae({
  7377. name: "ElColorPicker"
  7378. }), WDe = /* @__PURE__ */ ae({
  7379. ...FDe,
  7380. props: CDe,
  7381. emits: TDe,
  7382. setup(t, { expose: e, emit: n }) {
  7383. const r = t, { t: i } = mN(), a = $n("color"), { formItem: o } = lp(), s = Tg(), l = um(), { inputId: u, isLabeledByFormItem: c } = Q_(r, {
  7384. formItemContext: o
  7385. }), f = ee(), d = ee(), h = ee(), p = ee(), v = ee(), g = ee(), {
  7386. isFocused: m,
  7387. handleFocus: y,
  7388. handleBlur: _
  7389. } = Hte(v, {
  7390. beforeBlur(q) {
  7391. var K;
  7392. return (K = p.value) == null ? void 0 : K.isFocusInsideContent(q);
  7393. },
  7394. afterBlur() {
  7395. B(!1), U();
  7396. }
  7397. }), O = (q) => {
  7398. if (l.value)
  7399. return re();
  7400. y(q);
  7401. };
  7402. let S = !0;
  7403. const x = zn(new zy({
  7404. enableAlpha: r.showAlpha,
  7405. format: r.colorFormat || "",
  7406. value: r.modelValue
  7407. })), C = ee(!1), P = ee(!1), $ = ee(""), T = V(() => !r.modelValue && !P.value ? "transparent" : I(x, r.showAlpha)), E = V(() => !r.modelValue && !P.value ? "" : x.value), M = V(() => c.value ? void 0 : r.label || r.ariaLabel || i("el.colorpicker.defaultLabel"));
  7408. Es({
  7409. from: "label",
  7410. replacement: "aria-label",
  7411. version: "2.8.0",
  7412. scope: "el-color-picker",
  7413. ref: "https://element-plus.org/en-US/component/color-picker.html"
  7414. }, V(() => !!r.label));
  7415. const R = V(() => c.value ? o == null ? void 0 : o.labelId : void 0), N = V(() => [
  7416. a.b("picker"),
  7417. a.is("disabled", l.value),
  7418. a.bm("picker", s.value),
  7419. a.is("focused", m.value)
  7420. ]);
  7421. function I(q, K) {
  7422. if (!(q instanceof zy))
  7423. throw new TypeError("color should be instance of _color Class");
  7424. const { r: de, g: xe, b: we } = q.toRgb();
  7425. return K ? `rgba(${de}, ${xe}, ${we}, ${q.get("alpha") / 100})` : `rgb(${de}, ${xe}, ${we})`;
  7426. }
  7427. function B(q) {
  7428. C.value = q;
  7429. }
  7430. const Q = hN(B, 100, { leading: !0 });
  7431. function W() {
  7432. l.value || B(!0);
  7433. }
  7434. function H() {
  7435. Q(!1), U();
  7436. }
  7437. function U() {
  7438. Bt(() => {
  7439. r.modelValue ? x.fromString(r.modelValue) : (x.value = "", Bt(() => {
  7440. P.value = !1;
  7441. }));
  7442. });
  7443. }
  7444. function j() {
  7445. l.value || Q(!C.value);
  7446. }
  7447. function Y() {
  7448. x.fromString($.value);
  7449. }
  7450. function ne() {
  7451. const q = x.value;
  7452. n(ca, q), n("change", q), r.validateEvent && (o == null || o.validate("change").catch((K) => Fi(K))), Q(!1), Bt(() => {
  7453. const K = new zy({
  7454. enableAlpha: r.showAlpha,
  7455. format: r.colorFormat || "",
  7456. value: r.modelValue
  7457. });
  7458. x.compare(K) || U();
  7459. });
  7460. }
  7461. function fe() {
  7462. Q(!1), n(ca, null), n("change", null), r.modelValue !== null && r.validateEvent && (o == null || o.validate("change").catch((q) => Fi(q))), U();
  7463. }
  7464. function ue(q) {
  7465. if (C.value && (H(), m.value)) {
  7466. const K = new FocusEvent("focus", q);
  7467. _(K);
  7468. }
  7469. }
  7470. function ye(q) {
  7471. q.preventDefault(), q.stopPropagation(), B(!1), U();
  7472. }
  7473. function se(q) {
  7474. switch (q.code) {
  7475. case wa.enter:
  7476. case wa.space:
  7477. q.preventDefault(), q.stopPropagation(), W(), g.value.focus();
  7478. break;
  7479. case wa.esc:
  7480. ye(q);
  7481. break;
  7482. }
  7483. }
  7484. function he() {
  7485. v.value.focus();
  7486. }
  7487. function re() {
  7488. v.value.blur();
  7489. }
  7490. return _t(() => {
  7491. r.modelValue && ($.value = E.value);
  7492. }), me(() => r.modelValue, (q) => {
  7493. q ? q && q !== x.value && (S = !1, x.fromString(q)) : P.value = !1;
  7494. }), me(() => E.value, (q) => {
  7495. $.value = q, S && n("activeChange", q), S = !0;
  7496. }), me(() => x.value, () => {
  7497. !r.modelValue && !P.value && (P.value = !0);
  7498. }), me(() => C.value, () => {
  7499. Bt(() => {
  7500. var q, K, de;
  7501. (q = f.value) == null || q.update(), (K = d.value) == null || K.update(), (de = h.value) == null || de.update();
  7502. });
  7503. }), Et(bne, {
  7504. currentColor: E
  7505. }), e({
  7506. color: x,
  7507. show: W,
  7508. hide: H,
  7509. focus: he,
  7510. blur: re
  7511. }), (q, K) => (be(), Je(z(cIe), {
  7512. ref_key: "popper",
  7513. ref: p,
  7514. visible: C.value,
  7515. "show-arrow": !1,
  7516. "fallback-placements": ["bottom", "top", "right", "left"],
  7517. offset: 0,
  7518. "gpu-acceleration": !1,
  7519. "popper-class": [z(a).be("picker", "panel"), z(a).b("dropdown"), q.popperClass],
  7520. "stop-popper-mouse-event": !1,
  7521. effect: "light",
  7522. trigger: "click",
  7523. teleported: q.teleported,
  7524. transition: `${z(a).namespace.value}-zoom-in-top`,
  7525. persistent: "",
  7526. onHide: K[2] || (K[2] = (de) => B(!1))
  7527. }, {
  7528. content: ke(() => [
  7529. Sr((be(), Ue("div", {
  7530. onKeydown: gF(ye, ["esc"])
  7531. }, [
  7532. tt("div", {
  7533. class: Ge(z(a).be("dropdown", "main-wrapper"))
  7534. }, [
  7535. D(wDe, {
  7536. ref_key: "hue",
  7537. ref: f,
  7538. class: "hue-slider",
  7539. color: z(x),
  7540. vertical: ""
  7541. }, null, 8, ["color"]),
  7542. D(BDe, {
  7543. ref_key: "sv",
  7544. ref: d,
  7545. color: z(x)
  7546. }, null, 8, ["color"])
  7547. ], 2),
  7548. q.showAlpha ? (be(), Je(ODe, {
  7549. key: 0,
  7550. ref_key: "alpha",
  7551. ref: h,
  7552. color: z(x)
  7553. }, null, 8, ["color"])) : Ot("v-if", !0),
  7554. q.predefine ? (be(), Je(DDe, {
  7555. key: 1,
  7556. ref: "predefine",
  7557. "enable-alpha": q.showAlpha,
  7558. color: z(x),
  7559. colors: q.predefine
  7560. }, null, 8, ["enable-alpha", "color", "colors"])) : Ot("v-if", !0),
  7561. tt("div", {
  7562. class: Ge(z(a).be("dropdown", "btns"))
  7563. }, [
  7564. tt("span", {
  7565. class: Ge(z(a).be("dropdown", "value"))
  7566. }, [
  7567. D(z(p2), {
  7568. ref_key: "inputRef",
  7569. ref: g,
  7570. modelValue: $.value,
  7571. "onUpdate:modelValue": K[0] || (K[0] = (de) => $.value = de),
  7572. "validate-event": !1,
  7573. size: "small",
  7574. onKeyup: gF(Y, ["enter"]),
  7575. onBlur: Y
  7576. }, null, 8, ["modelValue", "onKeyup"])
  7577. ], 2),
  7578. D(z(oR), {
  7579. class: Ge(z(a).be("dropdown", "link-btn")),
  7580. text: "",
  7581. size: "small",
  7582. onClick: fe
  7583. }, {
  7584. default: ke(() => [
  7585. On(xi(z(i)("el.colorpicker.clear")), 1)
  7586. ]),
  7587. _: 1
  7588. }, 8, ["class"]),
  7589. D(z(oR), {
  7590. plain: "",
  7591. size: "small",
  7592. class: Ge(z(a).be("dropdown", "btn")),
  7593. onClick: ne
  7594. }, {
  7595. default: ke(() => [
  7596. On(xi(z(i)("el.colorpicker.confirm")), 1)
  7597. ]),
  7598. _: 1
  7599. }, 8, ["class"])
  7600. ], 2)
  7601. ], 40, zDe)), [
  7602. [z(DIe), ue]
  7603. ])
  7604. ]),
  7605. default: ke(() => [
  7606. tt("div", Xn({
  7607. id: z(u),
  7608. ref_key: "triggerRef",
  7609. ref: v
  7610. }, q.$attrs, {
  7611. class: z(N),
  7612. role: "button",
  7613. "aria-label": z(M),
  7614. "aria-labelledby": z(R),
  7615. "aria-description": z(i)("el.colorpicker.description", { color: q.modelValue || "" }),
  7616. "aria-disabled": z(l),
  7617. tabindex: z(l) ? -1 : q.tabindex,
  7618. onKeydown: se,
  7619. onFocus: O,
  7620. onBlur: K[1] || (K[1] = (...de) => z(_) && z(_)(...de))
  7621. }), [
  7622. z(l) ? (be(), Ue("div", {
  7623. key: 0,
  7624. class: Ge(z(a).be("picker", "mask"))
  7625. }, null, 2)) : Ot("v-if", !0),
  7626. tt("div", {
  7627. class: Ge(z(a).be("picker", "trigger")),
  7628. onClick: j
  7629. }, [
  7630. tt("span", {
  7631. class: Ge([z(a).be("picker", "color"), z(a).is("alpha", q.showAlpha)])
  7632. }, [
  7633. tt("span", {
  7634. class: Ge(z(a).be("picker", "color-inner")),
  7635. style: dr({
  7636. backgroundColor: z(T)
  7637. })
  7638. }, [
  7639. Sr(D(z($s), {
  7640. class: Ge([z(a).be("picker", "icon"), z(a).is("icon-arrow-down")])
  7641. }, {
  7642. default: ke(() => [
  7643. D(z(_$e))
  7644. ]),
  7645. _: 1
  7646. }, 8, ["class"]), [
  7647. [ho, q.modelValue || P.value]
  7648. ]),
  7649. Sr(D(z($s), {
  7650. class: Ge([z(a).be("picker", "empty"), z(a).is("icon-close")])
  7651. }, {
  7652. default: ke(() => [
  7653. D(z(xte))
  7654. ]),
  7655. _: 1
  7656. }, 8, ["class"]), [
  7657. [ho, !q.modelValue && !P.value]
  7658. ])
  7659. ], 6)
  7660. ], 2)
  7661. ], 2)
  7662. ], 16, VDe)
  7663. ]),
  7664. _: 1
  7665. }, 8, ["visible", "popper-class", "teleported", "transition"]));
  7666. }
  7667. });
  7668. var QDe = /* @__PURE__ */ Nn(WDe, [["__file", "color-picker.vue"]]);
  7669. const Fv = ec(QDe), HDe = hr({
  7670. mask: {
  7671. type: Boolean,
  7672. default: !0
  7673. },
  7674. customMaskEvent: {
  7675. type: Boolean,
  7676. default: !1
  7677. },
  7678. overlayClass: {
  7679. type: mn([
  7680. String,
  7681. Array,
  7682. Object
  7683. ])
  7684. },
  7685. zIndex: {
  7686. type: mn([String, Number])
  7687. }
  7688. }), GDe = {
  7689. click: (t) => t instanceof MouseEvent
  7690. }, jDe = "overlay";
  7691. var ZDe = ae({
  7692. name: "ElOverlay",
  7693. props: HDe,
  7694. emits: GDe,
  7695. setup(t, { slots: e, emit: n }) {
  7696. const r = $n(jDe), i = (l) => {
  7697. n("click", l);
  7698. }, { onClick: a, onMousedown: o, onMouseup: s } = zte(t.customMaskEvent ? void 0 : i);
  7699. return () => t.mask ? D("div", {
  7700. class: [r.b(), t.overlayClass],
  7701. style: {
  7702. zIndex: t.zIndex
  7703. },
  7704. onClick: a,
  7705. onMousedown: o,
  7706. onMouseup: s
  7707. }, [ln(e, "default")], Nx.STYLE | Nx.CLASS | Nx.PROPS, ["onClick", "onMouseup", "onMousedown"]) : ff("div", {
  7708. class: t.overlayClass,
  7709. style: {
  7710. zIndex: t.zIndex,
  7711. position: "fixed",
  7712. top: "0px",
  7713. right: "0px",
  7714. bottom: "0px",
  7715. left: "0px"
  7716. }
  7717. }, [ln(e, "default")]);
  7718. }
  7719. });
  7720. const UDe = ZDe, _ne = Symbol("dialogInjectionKey"), One = hr({
  7721. center: Boolean,
  7722. alignCenter: Boolean,
  7723. closeIcon: {
  7724. type: _g
  7725. },
  7726. draggable: Boolean,
  7727. overflow: Boolean,
  7728. fullscreen: Boolean,
  7729. showClose: {
  7730. type: Boolean,
  7731. default: !0
  7732. },
  7733. title: {
  7734. type: String,
  7735. default: ""
  7736. },
  7737. ariaLevel: {
  7738. type: String,
  7739. default: "2"
  7740. }
  7741. }), XDe = {
  7742. close: () => !0
  7743. }, YDe = ["aria-level"], qDe = ["aria-label"], KDe = ["id"], JDe = ae({ name: "ElDialogContent" }), eRe = /* @__PURE__ */ ae({
  7744. ...JDe,
  7745. props: One,
  7746. emits: XDe,
  7747. setup(t) {
  7748. const e = t, { t: n } = mN(), { Close: r } = D$e, { dialogRef: i, headerRef: a, bodyId: o, ns: s, style: l } = et(_ne), { focusTrapRef: u } = et(Jte), c = V(() => [
  7749. s.b(),
  7750. s.is("fullscreen", e.fullscreen),
  7751. s.is("draggable", e.draggable),
  7752. s.is("align-center", e.alignCenter),
  7753. { [s.m("center")]: e.center }
  7754. ]), f = k$e(u, i), d = V(() => e.draggable), h = V(() => e.overflow);
  7755. return W$e(i, a, d, h), (p, v) => (be(), Ue("div", {
  7756. ref: z(f),
  7757. class: Ge(z(c)),
  7758. style: dr(z(l)),
  7759. tabindex: "-1"
  7760. }, [
  7761. tt("header", {
  7762. ref_key: "headerRef",
  7763. ref: a,
  7764. class: Ge([z(s).e("header"), { "show-close": p.showClose }])
  7765. }, [
  7766. ln(p.$slots, "header", {}, () => [
  7767. tt("span", {
  7768. role: "heading",
  7769. "aria-level": p.ariaLevel,
  7770. class: Ge(z(s).e("title"))
  7771. }, xi(p.title), 11, YDe)
  7772. ]),
  7773. p.showClose ? (be(), Ue("button", {
  7774. key: 0,
  7775. "aria-label": z(n)("el.dialog.close"),
  7776. class: Ge(z(s).e("headerbtn")),
  7777. type: "button",
  7778. onClick: v[0] || (v[0] = (g) => p.$emit("close"))
  7779. }, [
  7780. D(z($s), {
  7781. class: Ge(z(s).e("close"))
  7782. }, {
  7783. default: ke(() => [
  7784. (be(), Je(As(p.closeIcon || z(r))))
  7785. ]),
  7786. _: 1
  7787. }, 8, ["class"])
  7788. ], 10, qDe)) : Ot("v-if", !0)
  7789. ], 2),
  7790. tt("div", {
  7791. id: z(o),
  7792. class: Ge(z(s).e("body"))
  7793. }, [
  7794. ln(p.$slots, "default")
  7795. ], 10, KDe),
  7796. p.$slots.footer ? (be(), Ue("footer", {
  7797. key: 0,
  7798. class: Ge(z(s).e("footer"))
  7799. }, [
  7800. ln(p.$slots, "footer")
  7801. ], 2)) : Ot("v-if", !0)
  7802. ], 6));
  7803. }
  7804. });
  7805. var tRe = /* @__PURE__ */ Nn(eRe, [["__file", "dialog-content.vue"]]);
  7806. const nRe = hr({
  7807. ...One,
  7808. appendToBody: Boolean,
  7809. appendTo: {
  7810. type: mn(String),
  7811. default: "body"
  7812. },
  7813. beforeClose: {
  7814. type: mn(Function)
  7815. },
  7816. destroyOnClose: Boolean,
  7817. closeOnClickModal: {
  7818. type: Boolean,
  7819. default: !0
  7820. },
  7821. closeOnPressEscape: {
  7822. type: Boolean,
  7823. default: !0
  7824. },
  7825. lockScroll: {
  7826. type: Boolean,
  7827. default: !0
  7828. },
  7829. modal: {
  7830. type: Boolean,
  7831. default: !0
  7832. },
  7833. openDelay: {
  7834. type: Number,
  7835. default: 0
  7836. },
  7837. closeDelay: {
  7838. type: Number,
  7839. default: 0
  7840. },
  7841. top: {
  7842. type: String
  7843. },
  7844. modelValue: Boolean,
  7845. modalClass: String,
  7846. width: {
  7847. type: [String, Number]
  7848. },
  7849. zIndex: {
  7850. type: Number
  7851. },
  7852. trapFocus: {
  7853. type: Boolean,
  7854. default: !1
  7855. },
  7856. headerAriaLevel: {
  7857. type: String,
  7858. default: "2"
  7859. }
  7860. }), rRe = {
  7861. open: () => !0,
  7862. opened: () => !0,
  7863. close: () => !0,
  7864. closed: () => !0,
  7865. [ca]: (t) => hf(t),
  7866. openAutoFocus: () => !0,
  7867. closeAutoFocus: () => !0
  7868. }, iRe = (t, e) => {
  7869. var n;
  7870. const i = In().emit, { nextZIndex: a } = Qte();
  7871. let o = "";
  7872. const s = wb(), l = wb(), u = ee(!1), c = ee(!1), f = ee(!1), d = ee((n = t.zIndex) != null ? n : a());
  7873. let h, p;
  7874. const v = Gte("namespace", Bx), g = V(() => {
  7875. const I = {}, B = `--${v.value}-dialog`;
  7876. return t.fullscreen || (t.top && (I[`${B}-margin-top`] = t.top), t.width && (I[`${B}-width`] = bg(t.width))), I;
  7877. }), m = V(() => t.alignCenter ? { display: "flex" } : {});
  7878. function y() {
  7879. i("opened");
  7880. }
  7881. function _() {
  7882. i("closed"), i(ca, !1), t.destroyOnClose && (f.value = !1);
  7883. }
  7884. function O() {
  7885. i("close");
  7886. }
  7887. function S() {
  7888. p == null || p(), h == null || h(), t.openDelay && t.openDelay > 0 ? { stop: h } = yF(() => $(), t.openDelay) : $();
  7889. }
  7890. function x() {
  7891. h == null || h(), p == null || p(), t.closeDelay && t.closeDelay > 0 ? { stop: p } = yF(() => T(), t.closeDelay) : T();
  7892. }
  7893. function C() {
  7894. function I(B) {
  7895. B || (c.value = !0, u.value = !1);
  7896. }
  7897. t.beforeClose ? t.beforeClose(I) : x();
  7898. }
  7899. function P() {
  7900. t.closeOnClickModal && C();
  7901. }
  7902. function $() {
  7903. Fr && (u.value = !0);
  7904. }
  7905. function T() {
  7906. u.value = !1;
  7907. }
  7908. function E() {
  7909. i("openAutoFocus");
  7910. }
  7911. function M() {
  7912. i("closeAutoFocus");
  7913. }
  7914. function R(I) {
  7915. var B;
  7916. ((B = I.detail) == null ? void 0 : B.focusReason) === "pointer" && I.preventDefault();
  7917. }
  7918. t.lockScroll && Y$e(u);
  7919. function N() {
  7920. t.closeOnPressEscape && C();
  7921. }
  7922. return me(() => t.modelValue, (I) => {
  7923. I ? (c.value = !1, S(), f.value = !0, d.value = gte(t.zIndex) ? a() : d.value++, Bt(() => {
  7924. i("open"), e.value && (e.value.scrollTop = 0);
  7925. })) : u.value && x();
  7926. }), me(() => t.fullscreen, (I) => {
  7927. e.value && (I ? (o = e.value.style.transform, e.value.style.transform = "") : e.value.style.transform = o);
  7928. }), _t(() => {
  7929. t.modelValue && (u.value = !0, f.value = !0, S());
  7930. }), {
  7931. afterEnter: y,
  7932. afterLeave: _,
  7933. beforeLeave: O,
  7934. handleClose: C,
  7935. onModalClick: P,
  7936. close: x,
  7937. doClose: T,
  7938. onOpenAutoFocus: E,
  7939. onCloseAutoFocus: M,
  7940. onCloseRequested: N,
  7941. onFocusoutPrevented: R,
  7942. titleId: s,
  7943. bodyId: l,
  7944. closed: c,
  7945. style: g,
  7946. overlayDialogStyle: m,
  7947. rendered: f,
  7948. visible: u,
  7949. zIndex: d
  7950. };
  7951. }, aRe = ["aria-label", "aria-labelledby", "aria-describedby"], oRe = ae({
  7952. name: "ElDialog",
  7953. inheritAttrs: !1
  7954. }), sRe = /* @__PURE__ */ ae({
  7955. ...oRe,
  7956. props: nRe,
  7957. emits: rRe,
  7958. setup(t, { expose: e }) {
  7959. const n = t, r = D_();
  7960. Es({
  7961. scope: "el-dialog",
  7962. from: "the title slot",
  7963. replacement: "the header slot",
  7964. version: "3.0.0",
  7965. ref: "https://element-plus.org/en-US/component/dialog.html#slots"
  7966. }, V(() => !!r.title));
  7967. const i = $n("dialog"), a = ee(), o = ee(), s = ee(), {
  7968. visible: l,
  7969. titleId: u,
  7970. bodyId: c,
  7971. style: f,
  7972. overlayDialogStyle: d,
  7973. rendered: h,
  7974. zIndex: p,
  7975. afterEnter: v,
  7976. afterLeave: g,
  7977. beforeLeave: m,
  7978. handleClose: y,
  7979. onModalClick: _,
  7980. onOpenAutoFocus: O,
  7981. onCloseAutoFocus: S,
  7982. onCloseRequested: x,
  7983. onFocusoutPrevented: C
  7984. } = iRe(n, a);
  7985. Et(_ne, {
  7986. dialogRef: a,
  7987. headerRef: o,
  7988. bodyId: c,
  7989. ns: i,
  7990. rendered: h,
  7991. style: f
  7992. });
  7993. const P = zte(_), $ = V(() => n.draggable && !n.fullscreen);
  7994. return e({
  7995. visible: l,
  7996. dialogContentRef: s
  7997. }), (T, E) => (be(), Je(R_, {
  7998. to: T.appendTo,
  7999. disabled: T.appendTo !== "body" ? !1 : !T.appendToBody
  8000. }, [
  8001. D(mo, {
  8002. name: "dialog-fade",
  8003. onAfterEnter: z(v),
  8004. onAfterLeave: z(g),
  8005. onBeforeLeave: z(m),
  8006. persisted: ""
  8007. }, {
  8008. default: ke(() => [
  8009. Sr(D(z(UDe), {
  8010. "custom-mask-event": "",
  8011. mask: T.modal,
  8012. "overlay-class": T.modalClass,
  8013. "z-index": z(p)
  8014. }, {
  8015. default: ke(() => [
  8016. tt("div", {
  8017. role: "dialog",
  8018. "aria-modal": "true",
  8019. "aria-label": T.title || void 0,
  8020. "aria-labelledby": T.title ? void 0 : z(u),
  8021. "aria-describedby": z(c),
  8022. class: Ge(`${z(i).namespace.value}-overlay-dialog`),
  8023. style: dr(z(d)),
  8024. onClick: E[0] || (E[0] = (...M) => z(P).onClick && z(P).onClick(...M)),
  8025. onMousedown: E[1] || (E[1] = (...M) => z(P).onMousedown && z(P).onMousedown(...M)),
  8026. onMouseup: E[2] || (E[2] = (...M) => z(P).onMouseup && z(P).onMouseup(...M))
  8027. }, [
  8028. D(z(tne), {
  8029. loop: "",
  8030. trapped: z(l),
  8031. "focus-start-el": "container",
  8032. onFocusAfterTrapped: z(O),
  8033. onFocusAfterReleased: z(S),
  8034. onFocusoutPrevented: z(C),
  8035. onReleaseRequested: z(x)
  8036. }, {
  8037. default: ke(() => [
  8038. z(h) ? (be(), Je(tRe, Xn({
  8039. key: 0,
  8040. ref_key: "dialogContentRef",
  8041. ref: s
  8042. }, T.$attrs, {
  8043. center: T.center,
  8044. "align-center": T.alignCenter,
  8045. "close-icon": T.closeIcon,
  8046. draggable: z($),
  8047. overflow: T.overflow,
  8048. fullscreen: T.fullscreen,
  8049. "show-close": T.showClose,
  8050. title: T.title,
  8051. "aria-level": T.headerAriaLevel,
  8052. onClose: z(y)
  8053. }), cxe({
  8054. header: ke(() => [
  8055. T.$slots.title ? ln(T.$slots, "title", { key: 1 }) : ln(T.$slots, "header", {
  8056. key: 0,
  8057. close: z(y),
  8058. titleId: z(u),
  8059. titleClass: z(i).e("title")
  8060. })
  8061. ]),
  8062. default: ke(() => [
  8063. ln(T.$slots, "default")
  8064. ]),
  8065. _: 2
  8066. }, [
  8067. T.$slots.footer ? {
  8068. name: "footer",
  8069. fn: ke(() => [
  8070. ln(T.$slots, "footer")
  8071. ])
  8072. } : void 0
  8073. ]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "show-close", "title", "aria-level", "onClose"])) : Ot("v-if", !0)
  8074. ]),
  8075. _: 3
  8076. }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
  8077. ], 46, aRe)
  8078. ]),
  8079. _: 3
  8080. }, 8, ["mask", "overlay-class", "z-index"]), [
  8081. [ho, z(l)]
  8082. ])
  8083. ]),
  8084. _: 3
  8085. }, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"])
  8086. ], 8, ["to", "disabled"]));
  8087. }
  8088. });
  8089. var lRe = /* @__PURE__ */ Nn(sRe, [["__file", "dialog.vue"]]);
  8090. const uRe = ec(lRe), cRe = Symbol("ElSelect"), Wv = "$treeNodeId", FW = function(t, e) {
  8091. !e || e[Wv] || Object.defineProperty(e, Wv, {
  8092. value: t.id,
  8093. enumerable: !1,
  8094. configurable: !1,
  8095. writable: !1
  8096. });
  8097. }, RN = function(t, e) {
  8098. return t ? e[t] : e[Wv];
  8099. }, sR = (t, e, n) => {
  8100. const r = t.value.currentNode;
  8101. n();
  8102. const i = t.value.currentNode;
  8103. r !== i && e("current-change", i ? i.data : null, i);
  8104. }, lR = (t) => {
  8105. let e = !0, n = !0, r = !0;
  8106. for (let i = 0, a = t.length; i < a; i++) {
  8107. const o = t[i];
  8108. (o.checked !== !0 || o.indeterminate) && (e = !1, o.disabled || (r = !1)), (o.checked !== !1 || o.indeterminate) && (n = !1);
  8109. }
  8110. return { all: e, none: n, allWithoutDisable: r, half: !e && !n };
  8111. }, cy = function(t) {
  8112. if (t.childNodes.length === 0 || t.loading)
  8113. return;
  8114. const { all: e, none: n, half: r } = lR(t.childNodes);
  8115. e ? (t.checked = !0, t.indeterminate = !1) : r ? (t.checked = !1, t.indeterminate = !0) : n && (t.checked = !1, t.indeterminate = !1);
  8116. const i = t.parent;
  8117. !i || i.level === 0 || t.store.checkStrictly || cy(i);
  8118. }, FO = function(t, e) {
  8119. const n = t.store.props, r = t.data || {}, i = n[e];
  8120. if (typeof i == "function")
  8121. return i(r, t);
  8122. if (typeof i == "string")
  8123. return r[i];
  8124. if (typeof i > "u") {
  8125. const a = r[e];
  8126. return a === void 0 ? "" : a;
  8127. }
  8128. };
  8129. let fRe = 0;
  8130. class gh {
  8131. constructor(e) {
  8132. this.id = fRe++, this.text = null, this.checked = !1, this.indeterminate = !1, this.data = null, this.expanded = !1, this.parent = null, this.visible = !0, this.isCurrent = !1, this.canFocus = !1;
  8133. for (const n in e)
  8134. Dh(e, n) && (this[n] = e[n]);
  8135. this.level = 0, this.loaded = !1, this.childNodes = [], this.loading = !1, this.parent && (this.level = this.parent.level + 1);
  8136. }
  8137. initialize() {
  8138. const e = this.store;
  8139. if (!e)
  8140. throw new Error("[Node]store is required!");
  8141. e.registerNode(this);
  8142. const n = e.props;
  8143. if (n && typeof n.isLeaf < "u") {
  8144. const a = FO(this, "isLeaf");
  8145. typeof a == "boolean" && (this.isLeafByUser = a);
  8146. }
  8147. if (e.lazy !== !0 && this.data ? (this.setData(this.data), e.defaultExpandAll && (this.expanded = !0, this.canFocus = !0)) : this.level > 0 && e.lazy && e.defaultExpandAll && this.expand(), Array.isArray(this.data) || FW(this, this.data), !this.data)
  8148. return;
  8149. const r = e.defaultExpandedKeys, i = e.key;
  8150. i && r && r.includes(this.key) && this.expand(null, e.autoExpandParent), i && e.currentNodeKey !== void 0 && this.key === e.currentNodeKey && (e.currentNode = this, e.currentNode.isCurrent = !0), e.lazy && e._initDefaultCheckedNode(this), this.updateLeafState(), this.parent && (this.level === 1 || this.parent.expanded === !0) && (this.canFocus = !0);
  8151. }
  8152. setData(e) {
  8153. Array.isArray(e) || FW(this, e), this.data = e, this.childNodes = [];
  8154. let n;
  8155. this.level === 0 && Array.isArray(this.data) ? n = this.data : n = FO(this, "children") || [];
  8156. for (let r = 0, i = n.length; r < i; r++)
  8157. this.insertChild({ data: n[r] });
  8158. }
  8159. get label() {
  8160. return FO(this, "label");
  8161. }
  8162. get key() {
  8163. const e = this.store.key;
  8164. return this.data ? this.data[e] : null;
  8165. }
  8166. get disabled() {
  8167. return FO(this, "disabled");
  8168. }
  8169. get nextSibling() {
  8170. const e = this.parent;
  8171. if (e) {
  8172. const n = e.childNodes.indexOf(this);
  8173. if (n > -1)
  8174. return e.childNodes[n + 1];
  8175. }
  8176. return null;
  8177. }
  8178. get previousSibling() {
  8179. const e = this.parent;
  8180. if (e) {
  8181. const n = e.childNodes.indexOf(this);
  8182. if (n > -1)
  8183. return n > 0 ? e.childNodes[n - 1] : null;
  8184. }
  8185. return null;
  8186. }
  8187. contains(e, n = !0) {
  8188. return (this.childNodes || []).some((r) => r === e || n && r.contains(e));
  8189. }
  8190. remove() {
  8191. const e = this.parent;
  8192. e && e.removeChild(this);
  8193. }
  8194. insertChild(e, n, r) {
  8195. if (!e)
  8196. throw new Error("InsertChild error: child is required.");
  8197. if (!(e instanceof gh)) {
  8198. if (!r) {
  8199. const i = this.getChildren(!0);
  8200. i.includes(e.data) || (typeof n > "u" || n < 0 ? i.push(e.data) : i.splice(n, 0, e.data));
  8201. }
  8202. Object.assign(e, {
  8203. parent: this,
  8204. store: this.store
  8205. }), e = zn(new gh(e)), e instanceof gh && e.initialize();
  8206. }
  8207. e.level = this.level + 1, typeof n > "u" || n < 0 ? this.childNodes.push(e) : this.childNodes.splice(n, 0, e), this.updateLeafState();
  8208. }
  8209. insertBefore(e, n) {
  8210. let r;
  8211. n && (r = this.childNodes.indexOf(n)), this.insertChild(e, r);
  8212. }
  8213. insertAfter(e, n) {
  8214. let r;
  8215. n && (r = this.childNodes.indexOf(n), r !== -1 && (r += 1)), this.insertChild(e, r);
  8216. }
  8217. removeChild(e) {
  8218. const n = this.getChildren() || [], r = n.indexOf(e.data);
  8219. r > -1 && n.splice(r, 1);
  8220. const i = this.childNodes.indexOf(e);
  8221. i > -1 && (this.store && this.store.deregisterNode(e), e.parent = null, this.childNodes.splice(i, 1)), this.updateLeafState();
  8222. }
  8223. removeChildByData(e) {
  8224. let n = null;
  8225. for (let r = 0; r < this.childNodes.length; r++)
  8226. if (this.childNodes[r].data === e) {
  8227. n = this.childNodes[r];
  8228. break;
  8229. }
  8230. n && this.removeChild(n);
  8231. }
  8232. expand(e, n) {
  8233. const r = () => {
  8234. if (n) {
  8235. let i = this.parent;
  8236. for (; i.level > 0; )
  8237. i.expanded = !0, i = i.parent;
  8238. }
  8239. this.expanded = !0, e && e(), this.childNodes.forEach((i) => {
  8240. i.canFocus = !0;
  8241. });
  8242. };
  8243. this.shouldLoadData() ? this.loadData((i) => {
  8244. Array.isArray(i) && (this.checked ? this.setChecked(!0, !0) : this.store.checkStrictly || cy(this), r());
  8245. }) : r();
  8246. }
  8247. doCreateChildren(e, n = {}) {
  8248. e.forEach((r) => {
  8249. this.insertChild(Object.assign({ data: r }, n), void 0, !0);
  8250. });
  8251. }
  8252. collapse() {
  8253. this.expanded = !1, this.childNodes.forEach((e) => {
  8254. e.canFocus = !1;
  8255. });
  8256. }
  8257. shouldLoadData() {
  8258. return this.store.lazy === !0 && this.store.load && !this.loaded;
  8259. }
  8260. updateLeafState() {
  8261. if (this.store.lazy === !0 && this.loaded !== !0 && typeof this.isLeafByUser < "u") {
  8262. this.isLeaf = this.isLeafByUser;
  8263. return;
  8264. }
  8265. const e = this.childNodes;
  8266. if (!this.store.lazy || this.store.lazy === !0 && this.loaded === !0) {
  8267. this.isLeaf = !e || e.length === 0;
  8268. return;
  8269. }
  8270. this.isLeaf = !1;
  8271. }
  8272. setChecked(e, n, r, i) {
  8273. if (this.indeterminate = e === "half", this.checked = e === !0, this.store.checkStrictly)
  8274. return;
  8275. if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
  8276. const { all: o, allWithoutDisable: s } = lR(this.childNodes);
  8277. !this.isLeaf && !o && s && (this.checked = !1, e = !1);
  8278. const l = () => {
  8279. if (n) {
  8280. const u = this.childNodes;
  8281. for (let d = 0, h = u.length; d < h; d++) {
  8282. const p = u[d];
  8283. i = i || e !== !1;
  8284. const v = p.disabled ? p.checked : i;
  8285. p.setChecked(v, n, !0, i);
  8286. }
  8287. const { half: c, all: f } = lR(u);
  8288. f || (this.checked = f, this.indeterminate = c);
  8289. }
  8290. };
  8291. if (this.shouldLoadData()) {
  8292. this.loadData(() => {
  8293. l(), cy(this);
  8294. }, {
  8295. checked: e !== !1
  8296. });
  8297. return;
  8298. } else
  8299. l();
  8300. }
  8301. const a = this.parent;
  8302. !a || a.level === 0 || r || cy(a);
  8303. }
  8304. getChildren(e = !1) {
  8305. if (this.level === 0)
  8306. return this.data;
  8307. const n = this.data;
  8308. if (!n)
  8309. return null;
  8310. const r = this.store.props;
  8311. let i = "children";
  8312. return r && (i = r.children || "children"), n[i] === void 0 && (n[i] = null), e && !n[i] && (n[i] = []), n[i];
  8313. }
  8314. updateChildren() {
  8315. const e = this.getChildren() || [], n = this.childNodes.map((a) => a.data), r = {}, i = [];
  8316. e.forEach((a, o) => {
  8317. const s = a[Wv];
  8318. !!s && n.findIndex((u) => u[Wv] === s) >= 0 ? r[s] = { index: o, data: a } : i.push({ index: o, data: a });
  8319. }), this.store.lazy || n.forEach((a) => {
  8320. r[a[Wv]] || this.removeChildByData(a);
  8321. }), i.forEach(({ index: a, data: o }) => {
  8322. this.insertChild({ data: o }, a);
  8323. }), this.updateLeafState();
  8324. }
  8325. loadData(e, n = {}) {
  8326. if (this.store.lazy === !0 && this.store.load && !this.loaded && (!this.loading || Object.keys(n).length)) {
  8327. this.loading = !0;
  8328. const r = (a) => {
  8329. this.childNodes = [], this.doCreateChildren(a, n), this.loaded = !0, this.loading = !1, this.updateLeafState(), e && e.call(this, a);
  8330. }, i = () => {
  8331. this.loading = !1;
  8332. };
  8333. this.store.load(this, r, i);
  8334. } else
  8335. e && e.call(this);
  8336. }
  8337. eachNode(e) {
  8338. const n = [this];
  8339. for (; n.length; ) {
  8340. const r = n.shift();
  8341. n.unshift(...r.childNodes), e(r);
  8342. }
  8343. }
  8344. reInitChecked() {
  8345. this.store.checkStrictly || cy(this);
  8346. }
  8347. }
  8348. class dRe {
  8349. constructor(e) {
  8350. this.currentNode = null, this.currentNodeKey = null;
  8351. for (const n in e)
  8352. Dh(e, n) && (this[n] = e[n]);
  8353. this.nodesMap = {};
  8354. }
  8355. initialize() {
  8356. if (this.root = new gh({
  8357. data: this.data,
  8358. store: this
  8359. }), this.root.initialize(), this.lazy && this.load) {
  8360. const e = this.load;
  8361. e(this.root, (n) => {
  8362. this.root.doCreateChildren(n), this._initDefaultCheckedNodes();
  8363. });
  8364. } else
  8365. this._initDefaultCheckedNodes();
  8366. }
  8367. filter(e) {
  8368. const n = this.filterNodeMethod, r = this.lazy, i = function(a) {
  8369. const o = a.root ? a.root.childNodes : a.childNodes;
  8370. if (o.forEach((s) => {
  8371. s.visible = n.call(s, e, s.data, s), i(s);
  8372. }), !a.visible && o.length) {
  8373. let s = !0;
  8374. s = !o.some((l) => l.visible), a.root ? a.root.visible = s === !1 : a.visible = s === !1;
  8375. }
  8376. e && a.visible && !a.isLeaf && (!r || a.loaded) && a.expand();
  8377. };
  8378. i(this);
  8379. }
  8380. setData(e) {
  8381. e !== this.root.data ? (this.root.setData(e), this._initDefaultCheckedNodes()) : this.root.updateChildren();
  8382. }
  8383. getNode(e) {
  8384. if (e instanceof gh)
  8385. return e;
  8386. const n = Rh(e) ? RN(this.key, e) : e;
  8387. return this.nodesMap[n] || null;
  8388. }
  8389. insertBefore(e, n) {
  8390. const r = this.getNode(n);
  8391. r.parent.insertBefore({ data: e }, r);
  8392. }
  8393. insertAfter(e, n) {
  8394. const r = this.getNode(n);
  8395. r.parent.insertAfter({ data: e }, r);
  8396. }
  8397. remove(e) {
  8398. const n = this.getNode(e);
  8399. n && n.parent && (n === this.currentNode && (this.currentNode = null), n.parent.removeChild(n));
  8400. }
  8401. append(e, n) {
  8402. const r = yg(n) ? this.root : this.getNode(n);
  8403. r && r.insertChild({ data: e });
  8404. }
  8405. _initDefaultCheckedNodes() {
  8406. const e = this.defaultCheckedKeys || [], n = this.nodesMap;
  8407. e.forEach((r) => {
  8408. const i = n[r];
  8409. i && i.setChecked(!0, !this.checkStrictly);
  8410. });
  8411. }
  8412. _initDefaultCheckedNode(e) {
  8413. (this.defaultCheckedKeys || []).includes(e.key) && e.setChecked(!0, !this.checkStrictly);
  8414. }
  8415. setDefaultCheckedKey(e) {
  8416. e !== this.defaultCheckedKeys && (this.defaultCheckedKeys = e, this._initDefaultCheckedNodes());
  8417. }
  8418. registerNode(e) {
  8419. const n = this.key;
  8420. !e || !e.data || (n ? e.key !== void 0 && (this.nodesMap[e.key] = e) : this.nodesMap[e.id] = e);
  8421. }
  8422. deregisterNode(e) {
  8423. !this.key || !e || !e.data || (e.childNodes.forEach((r) => {
  8424. this.deregisterNode(r);
  8425. }), delete this.nodesMap[e.key]);
  8426. }
  8427. getCheckedNodes(e = !1, n = !1) {
  8428. const r = [], i = function(a) {
  8429. (a.root ? a.root.childNodes : a.childNodes).forEach((s) => {
  8430. (s.checked || n && s.indeterminate) && (!e || e && s.isLeaf) && r.push(s.data), i(s);
  8431. });
  8432. };
  8433. return i(this), r;
  8434. }
  8435. getCheckedKeys(e = !1) {
  8436. return this.getCheckedNodes(e).map((n) => (n || {})[this.key]);
  8437. }
  8438. getHalfCheckedNodes() {
  8439. const e = [], n = function(r) {
  8440. (r.root ? r.root.childNodes : r.childNodes).forEach((a) => {
  8441. a.indeterminate && e.push(a.data), n(a);
  8442. });
  8443. };
  8444. return n(this), e;
  8445. }
  8446. getHalfCheckedKeys() {
  8447. return this.getHalfCheckedNodes().map((e) => (e || {})[this.key]);
  8448. }
  8449. _getAllNodes() {
  8450. const e = [], n = this.nodesMap;
  8451. for (const r in n)
  8452. Dh(n, r) && e.push(n[r]);
  8453. return e;
  8454. }
  8455. updateChildren(e, n) {
  8456. const r = this.nodesMap[e];
  8457. if (!r)
  8458. return;
  8459. const i = r.childNodes;
  8460. for (let a = i.length - 1; a >= 0; a--) {
  8461. const o = i[a];
  8462. this.remove(o.data);
  8463. }
  8464. for (let a = 0, o = n.length; a < o; a++) {
  8465. const s = n[a];
  8466. this.append(s, r.data);
  8467. }
  8468. }
  8469. _setCheckedKeys(e, n = !1, r) {
  8470. const i = this._getAllNodes().sort((l, u) => l.level - u.level), a = /* @__PURE__ */ Object.create(null), o = Object.keys(r);
  8471. i.forEach((l) => l.setChecked(!1, !1));
  8472. const s = (l) => {
  8473. l.childNodes.forEach((u) => {
  8474. var c;
  8475. a[u.data[e]] = !0, (c = u.childNodes) != null && c.length && s(u);
  8476. });
  8477. };
  8478. for (let l = 0, u = i.length; l < u; l++) {
  8479. const c = i[l], f = c.data[e].toString();
  8480. if (!o.includes(f)) {
  8481. c.checked && !a[f] && c.setChecked(!1, !1);
  8482. continue;
  8483. }
  8484. if (c.childNodes.length && s(c), c.isLeaf || this.checkStrictly) {
  8485. c.setChecked(!0, !1);
  8486. continue;
  8487. }
  8488. if (c.setChecked(!0, !0), n) {
  8489. c.setChecked(!1, !1);
  8490. const h = function(p) {
  8491. p.childNodes.forEach((g) => {
  8492. g.isLeaf || g.setChecked(!1, !1), h(g);
  8493. });
  8494. };
  8495. h(c);
  8496. }
  8497. }
  8498. }
  8499. setCheckedNodes(e, n = !1) {
  8500. const r = this.key, i = {};
  8501. e.forEach((a) => {
  8502. i[(a || {})[r]] = !0;
  8503. }), this._setCheckedKeys(r, n, i);
  8504. }
  8505. setCheckedKeys(e, n = !1) {
  8506. this.defaultCheckedKeys = e;
  8507. const r = this.key, i = {};
  8508. e.forEach((a) => {
  8509. i[a] = !0;
  8510. }), this._setCheckedKeys(r, n, i);
  8511. }
  8512. setDefaultExpandedKeys(e) {
  8513. e = e || [], this.defaultExpandedKeys = e, e.forEach((n) => {
  8514. const r = this.getNode(n);
  8515. r && r.expand(null, this.autoExpandParent);
  8516. });
  8517. }
  8518. setChecked(e, n, r) {
  8519. const i = this.getNode(e);
  8520. i && i.setChecked(!!n, r);
  8521. }
  8522. getCurrentNode() {
  8523. return this.currentNode;
  8524. }
  8525. setCurrentNode(e) {
  8526. const n = this.currentNode;
  8527. n && (n.isCurrent = !1), this.currentNode = e, this.currentNode.isCurrent = !0;
  8528. }
  8529. setUserCurrentNode(e, n = !0) {
  8530. const r = e[this.key], i = this.nodesMap[r];
  8531. this.setCurrentNode(i), n && this.currentNode.level > 1 && this.currentNode.parent.expand(null, !0);
  8532. }
  8533. setCurrentNodeKey(e, n = !0) {
  8534. if (e == null) {
  8535. this.currentNode && (this.currentNode.isCurrent = !1), this.currentNode = null;
  8536. return;
  8537. }
  8538. const r = this.getNode(e);
  8539. r && (this.setCurrentNode(r), n && this.currentNode.level > 1 && this.currentNode.parent.expand(null, !0));
  8540. }
  8541. }
  8542. const hRe = ae({
  8543. name: "ElTreeNodeContent",
  8544. props: {
  8545. node: {
  8546. type: Object,
  8547. required: !0
  8548. },
  8549. renderContent: Function
  8550. },
  8551. setup(t) {
  8552. const e = $n("tree"), n = et("NodeInstance"), r = et("RootTree");
  8553. return () => {
  8554. const i = t.node, { data: a, store: o } = i;
  8555. return t.renderContent ? t.renderContent(ff, { _self: n, node: i, data: a, store: o }) : ln(r.ctx.slots, "default", { node: i, data: a }, () => [
  8556. ff("span", { class: e.be("node", "label") }, [i.label])
  8557. ]);
  8558. };
  8559. }
  8560. });
  8561. var pRe = /* @__PURE__ */ Nn(hRe, [["__file", "tree-node-content.vue"]]);
  8562. function Sne(t) {
  8563. const e = et("TreeNodeMap", null), n = {
  8564. treeNodeExpand: (r) => {
  8565. t.node !== r && t.node.collapse();
  8566. },
  8567. children: []
  8568. };
  8569. return e && e.children.push(n), Et("TreeNodeMap", n), {
  8570. broadcastExpanded: (r) => {
  8571. if (t.accordion)
  8572. for (const i of n.children)
  8573. i.treeNodeExpand(r);
  8574. }
  8575. };
  8576. }
  8577. const xne = Symbol("dragEvents");
  8578. function vRe({ props: t, ctx: e, el$: n, dropIndicator$: r, store: i }) {
  8579. const a = $n("tree"), o = ee({
  8580. showDropIndicator: !1,
  8581. draggingNode: null,
  8582. dropNode: null,
  8583. allowDrop: !0,
  8584. dropType: null
  8585. });
  8586. return Et(xne, {
  8587. treeNodeDragStart: ({ event: c, treeNode: f }) => {
  8588. if (typeof t.allowDrag == "function" && !t.allowDrag(f.node))
  8589. return c.preventDefault(), !1;
  8590. c.dataTransfer.effectAllowed = "move";
  8591. try {
  8592. c.dataTransfer.setData("text/plain", "");
  8593. } catch {
  8594. }
  8595. o.value.draggingNode = f, e.emit("node-drag-start", f.node, c);
  8596. },
  8597. treeNodeDragOver: ({ event: c, treeNode: f }) => {
  8598. const d = f, h = o.value.dropNode;
  8599. h && h.node.id !== d.node.id && Lx(h.$el, a.is("drop-inner"));
  8600. const p = o.value.draggingNode;
  8601. if (!p || !d)
  8602. return;
  8603. let v = !0, g = !0, m = !0, y = !0;
  8604. typeof t.allowDrop == "function" && (v = t.allowDrop(p.node, d.node, "prev"), y = g = t.allowDrop(p.node, d.node, "inner"), m = t.allowDrop(p.node, d.node, "next")), c.dataTransfer.dropEffect = g || v || m ? "move" : "none", (v || g || m) && (h == null ? void 0 : h.node.id) !== d.node.id && (h && e.emit("node-drag-leave", p.node, h.node, c), e.emit("node-drag-enter", p.node, d.node, c)), v || g || m ? o.value.dropNode = d : o.value.dropNode = null, d.node.nextSibling === p.node && (m = !1), d.node.previousSibling === p.node && (v = !1), d.node.contains(p.node, !1) && (g = !1), (p.node === d.node || p.node.contains(d.node)) && (v = !1, g = !1, m = !1);
  8605. const _ = d.$el.querySelector(`.${a.be("node", "content")}`).getBoundingClientRect(), O = n.value.getBoundingClientRect();
  8606. let S;
  8607. const x = v ? g ? 0.25 : m ? 0.45 : 1 : -1, C = m ? g ? 0.75 : v ? 0.55 : 0 : 1;
  8608. let P = -9999;
  8609. const $ = c.clientY - _.top;
  8610. $ < _.height * x ? S = "before" : $ > _.height * C ? S = "after" : g ? S = "inner" : S = "none";
  8611. const T = d.$el.querySelector(`.${a.be("node", "expand-icon")}`).getBoundingClientRect(), E = r.value;
  8612. S === "before" ? P = T.top - O.top : S === "after" && (P = T.bottom - O.top), E.style.top = `${P}px`, E.style.left = `${T.right - O.left}px`, S === "inner" ? Ote(d.$el, a.is("drop-inner")) : Lx(d.$el, a.is("drop-inner")), o.value.showDropIndicator = S === "before" || S === "after", o.value.allowDrop = o.value.showDropIndicator || y, o.value.dropType = S, e.emit("node-drag-over", p.node, d.node, c);
  8613. },
  8614. treeNodeDragEnd: (c) => {
  8615. const { draggingNode: f, dropType: d, dropNode: h } = o.value;
  8616. if (c.preventDefault(), c.dataTransfer.dropEffect = "move", f && h) {
  8617. const p = { data: f.node.data };
  8618. d !== "none" && f.node.remove(), d === "before" ? h.node.parent.insertBefore(p, h.node) : d === "after" ? h.node.parent.insertAfter(p, h.node) : d === "inner" && h.node.insertChild(p), d !== "none" && (i.value.registerNode(p), i.value.key && f.node.eachNode((v) => {
  8619. var g;
  8620. (g = i.value.nodesMap[v.data[i.value.key]]) == null || g.setChecked(v.checked, !i.value.checkStrictly);
  8621. })), Lx(h.$el, a.is("drop-inner")), e.emit("node-drag-end", f.node, h.node, d, c), d !== "none" && e.emit("node-drop", f.node, h.node, d, c);
  8622. }
  8623. f && !h && e.emit("node-drag-end", f.node, null, d, c), o.value.showDropIndicator = !1, o.value.draggingNode = null, o.value.dropNode = null, o.value.allowDrop = !0;
  8624. }
  8625. }), {
  8626. dragState: o
  8627. };
  8628. }
  8629. const gRe = ae({
  8630. name: "ElTreeNode",
  8631. components: {
  8632. ElCollapseTransition: pDe,
  8633. ElCheckbox: qIe,
  8634. NodeContent: pRe,
  8635. ElIcon: $s,
  8636. Loading: gN
  8637. },
  8638. props: {
  8639. node: {
  8640. type: gh,
  8641. default: () => ({})
  8642. },
  8643. props: {
  8644. type: Object,
  8645. default: () => ({})
  8646. },
  8647. accordion: Boolean,
  8648. renderContent: Function,
  8649. renderAfterExpand: Boolean,
  8650. showCheckbox: {
  8651. type: Boolean,
  8652. default: !1
  8653. }
  8654. },
  8655. emits: ["node-expand"],
  8656. setup(t, e) {
  8657. const n = $n("tree"), { broadcastExpanded: r } = Sne(t), i = et("RootTree"), a = ee(!1), o = ee(!1), s = ee(null), l = ee(null), u = ee(null), c = et(xne), f = In();
  8658. Et("NodeInstance", f), i || Fi("Tree", "Can not find node's tree."), t.node.expanded && (a.value = !0, o.value = !0);
  8659. const d = i.props.props.children || "children";
  8660. me(() => {
  8661. const $ = t.node.data[d];
  8662. return $ && [...$];
  8663. }, () => {
  8664. t.node.updateChildren();
  8665. }), me(() => t.node.indeterminate, ($) => {
  8666. v(t.node.checked, $);
  8667. }), me(() => t.node.checked, ($) => {
  8668. v($, t.node.indeterminate);
  8669. }), me(() => t.node.childNodes.length, () => t.node.reInitChecked()), me(() => t.node.expanded, ($) => {
  8670. Bt(() => a.value = $), $ && (o.value = !0);
  8671. });
  8672. const h = ($) => RN(i.props.nodeKey, $.data), p = ($) => {
  8673. const T = t.props.class;
  8674. if (!T)
  8675. return {};
  8676. let E;
  8677. if (Jd(T)) {
  8678. const { data: M } = $;
  8679. E = T(M, $);
  8680. } else
  8681. E = T;
  8682. return ia(E) ? { [E]: !0 } : E;
  8683. }, v = ($, T) => {
  8684. (s.value !== $ || l.value !== T) && i.ctx.emit("check-change", t.node.data, $, T), s.value = $, l.value = T;
  8685. }, g = ($) => {
  8686. sR(i.store, i.ctx.emit, () => i.store.value.setCurrentNode(t.node)), i.currentNode.value = t.node, i.props.expandOnClickNode && y(), i.props.checkOnClickNode && !t.node.disabled && _(null, {
  8687. target: { checked: !t.node.checked }
  8688. }), i.ctx.emit("node-click", t.node.data, t.node, f, $);
  8689. }, m = ($) => {
  8690. i.instance.vnode.props.onNodeContextmenu && ($.stopPropagation(), $.preventDefault()), i.ctx.emit("node-contextmenu", $, t.node.data, t.node, f);
  8691. }, y = () => {
  8692. t.node.isLeaf || (a.value ? (i.ctx.emit("node-collapse", t.node.data, t.node, f), t.node.collapse()) : (t.node.expand(), e.emit("node-expand", t.node.data, t.node, f)));
  8693. }, _ = ($, T) => {
  8694. t.node.setChecked(T.target.checked, !i.props.checkStrictly), Bt(() => {
  8695. const E = i.store.value;
  8696. i.ctx.emit("check", t.node.data, {
  8697. checkedNodes: E.getCheckedNodes(),
  8698. checkedKeys: E.getCheckedKeys(),
  8699. halfCheckedNodes: E.getHalfCheckedNodes(),
  8700. halfCheckedKeys: E.getHalfCheckedKeys()
  8701. });
  8702. });
  8703. };
  8704. return {
  8705. ns: n,
  8706. node$: u,
  8707. tree: i,
  8708. expanded: a,
  8709. childNodeRendered: o,
  8710. oldChecked: s,
  8711. oldIndeterminate: l,
  8712. getNodeKey: h,
  8713. getNodeClass: p,
  8714. handleSelectChange: v,
  8715. handleClick: g,
  8716. handleContextMenu: m,
  8717. handleExpandIconClick: y,
  8718. handleCheckChange: _,
  8719. handleChildNodeExpand: ($, T, E) => {
  8720. r(T), i.ctx.emit("node-expand", $, T, E);
  8721. },
  8722. handleDragStart: ($) => {
  8723. i.props.draggable && c.treeNodeDragStart({ event: $, treeNode: t });
  8724. },
  8725. handleDragOver: ($) => {
  8726. $.preventDefault(), i.props.draggable && c.treeNodeDragOver({
  8727. event: $,
  8728. treeNode: { $el: u.value, node: t.node }
  8729. });
  8730. },
  8731. handleDrop: ($) => {
  8732. $.preventDefault();
  8733. },
  8734. handleDragEnd: ($) => {
  8735. i.props.draggable && c.treeNodeDragEnd($);
  8736. },
  8737. CaretRight: S$e
  8738. };
  8739. }
  8740. }), mRe = ["aria-expanded", "aria-disabled", "aria-checked", "draggable", "data-key"], yRe = ["aria-expanded"];
  8741. function bRe(t, e, n, r, i, a) {
  8742. const o = br("el-icon"), s = br("el-checkbox"), l = br("loading"), u = br("node-content"), c = br("el-tree-node"), f = br("el-collapse-transition");
  8743. return Sr((be(), Ue("div", {
  8744. ref: "node$",
  8745. class: Ge([
  8746. t.ns.b("node"),
  8747. t.ns.is("expanded", t.expanded),
  8748. t.ns.is("current", t.node.isCurrent),
  8749. t.ns.is("hidden", !t.node.visible),
  8750. t.ns.is("focusable", !t.node.disabled),
  8751. t.ns.is("checked", !t.node.disabled && t.node.checked),
  8752. t.getNodeClass(t.node)
  8753. ]),
  8754. role: "treeitem",
  8755. tabindex: "-1",
  8756. "aria-expanded": t.expanded,
  8757. "aria-disabled": t.node.disabled,
  8758. "aria-checked": t.node.checked,
  8759. draggable: t.tree.props.draggable,
  8760. "data-key": t.getNodeKey(t.node),
  8761. onClick: e[1] || (e[1] = ai((...d) => t.handleClick && t.handleClick(...d), ["stop"])),
  8762. onContextmenu: e[2] || (e[2] = (...d) => t.handleContextMenu && t.handleContextMenu(...d)),
  8763. onDragstart: e[3] || (e[3] = ai((...d) => t.handleDragStart && t.handleDragStart(...d), ["stop"])),
  8764. onDragover: e[4] || (e[4] = ai((...d) => t.handleDragOver && t.handleDragOver(...d), ["stop"])),
  8765. onDragend: e[5] || (e[5] = ai((...d) => t.handleDragEnd && t.handleDragEnd(...d), ["stop"])),
  8766. onDrop: e[6] || (e[6] = ai((...d) => t.handleDrop && t.handleDrop(...d), ["stop"]))
  8767. }, [
  8768. tt("div", {
  8769. class: Ge(t.ns.be("node", "content")),
  8770. style: dr({ paddingLeft: (t.node.level - 1) * t.tree.props.indent + "px" })
  8771. }, [
  8772. t.tree.props.icon || t.CaretRight ? (be(), Je(o, {
  8773. key: 0,
  8774. class: Ge([
  8775. t.ns.be("node", "expand-icon"),
  8776. t.ns.is("leaf", t.node.isLeaf),
  8777. {
  8778. expanded: !t.node.isLeaf && t.expanded
  8779. }
  8780. ]),
  8781. onClick: ai(t.handleExpandIconClick, ["stop"])
  8782. }, {
  8783. default: ke(() => [
  8784. (be(), Je(As(t.tree.props.icon || t.CaretRight)))
  8785. ]),
  8786. _: 1
  8787. }, 8, ["class", "onClick"])) : Ot("v-if", !0),
  8788. t.showCheckbox ? (be(), Je(s, {
  8789. key: 1,
  8790. "model-value": t.node.checked,
  8791. indeterminate: t.node.indeterminate,
  8792. disabled: !!t.node.disabled,
  8793. onClick: e[0] || (e[0] = ai(() => {
  8794. }, ["stop"])),
  8795. onChange: t.handleCheckChange
  8796. }, null, 8, ["model-value", "indeterminate", "disabled", "onChange"])) : Ot("v-if", !0),
  8797. t.node.loading ? (be(), Je(o, {
  8798. key: 2,
  8799. class: Ge([t.ns.be("node", "loading-icon"), t.ns.is("loading")])
  8800. }, {
  8801. default: ke(() => [
  8802. D(l)
  8803. ]),
  8804. _: 1
  8805. }, 8, ["class"])) : Ot("v-if", !0),
  8806. D(u, {
  8807. node: t.node,
  8808. "render-content": t.renderContent
  8809. }, null, 8, ["node", "render-content"])
  8810. ], 6),
  8811. D(f, null, {
  8812. default: ke(() => [
  8813. !t.renderAfterExpand || t.childNodeRendered ? Sr((be(), Ue("div", {
  8814. key: 0,
  8815. class: Ge(t.ns.be("node", "children")),
  8816. role: "group",
  8817. "aria-expanded": t.expanded
  8818. }, [
  8819. (be(!0), Ue(Wt, null, hh(t.node.childNodes, (d) => (be(), Je(c, {
  8820. key: t.getNodeKey(d),
  8821. "render-content": t.renderContent,
  8822. "render-after-expand": t.renderAfterExpand,
  8823. "show-checkbox": t.showCheckbox,
  8824. node: d,
  8825. accordion: t.accordion,
  8826. props: t.props,
  8827. onNodeExpand: t.handleChildNodeExpand
  8828. }, null, 8, ["render-content", "render-after-expand", "show-checkbox", "node", "accordion", "props", "onNodeExpand"]))), 128))
  8829. ], 10, yRe)), [
  8830. [ho, t.expanded]
  8831. ]) : Ot("v-if", !0)
  8832. ]),
  8833. _: 1
  8834. })
  8835. ], 42, mRe)), [
  8836. [ho, t.node.visible]
  8837. ]);
  8838. }
  8839. var _Re = /* @__PURE__ */ Nn(gRe, [["render", bRe], ["__file", "tree-node.vue"]]);
  8840. function ORe({ el$: t }, e) {
  8841. const n = $n("tree"), r = ve([]), i = ve([]);
  8842. _t(() => {
  8843. o();
  8844. }), rp(() => {
  8845. r.value = Array.from(t.value.querySelectorAll("[role=treeitem]")), i.value = Array.from(t.value.querySelectorAll("input[type=checkbox]"));
  8846. }), me(i, (s) => {
  8847. s.forEach((l) => {
  8848. l.setAttribute("tabindex", "-1");
  8849. });
  8850. }), Iy(t, "keydown", (s) => {
  8851. const l = s.target;
  8852. if (!l.className.includes(n.b("node")))
  8853. return;
  8854. const u = s.code;
  8855. r.value = Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));
  8856. const c = r.value.indexOf(l);
  8857. let f;
  8858. if ([wa.up, wa.down].includes(u)) {
  8859. if (s.preventDefault(), u === wa.up) {
  8860. f = c === -1 ? 0 : c !== 0 ? c - 1 : r.value.length - 1;
  8861. const h = f;
  8862. for (; !e.value.getNode(r.value[f].dataset.key).canFocus; ) {
  8863. if (f--, f === h) {
  8864. f = -1;
  8865. break;
  8866. }
  8867. f < 0 && (f = r.value.length - 1);
  8868. }
  8869. } else {
  8870. f = c === -1 ? 0 : c < r.value.length - 1 ? c + 1 : 0;
  8871. const h = f;
  8872. for (; !e.value.getNode(r.value[f].dataset.key).canFocus; ) {
  8873. if (f++, f === h) {
  8874. f = -1;
  8875. break;
  8876. }
  8877. f >= r.value.length && (f = 0);
  8878. }
  8879. }
  8880. f !== -1 && r.value[f].focus();
  8881. }
  8882. [wa.left, wa.right].includes(u) && (s.preventDefault(), l.click());
  8883. const d = l.querySelector('[type="checkbox"]');
  8884. [wa.enter, wa.space].includes(u) && d && (s.preventDefault(), d.click());
  8885. });
  8886. const o = () => {
  8887. var s;
  8888. r.value = Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)), i.value = Array.from(t.value.querySelectorAll("input[type=checkbox]"));
  8889. const l = t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);
  8890. if (l.length) {
  8891. l[0].setAttribute("tabindex", "0");
  8892. return;
  8893. }
  8894. (s = r.value[0]) == null || s.setAttribute("tabindex", "0");
  8895. };
  8896. }
  8897. const SRe = ae({
  8898. name: "ElTree",
  8899. components: { ElTreeNode: _Re },
  8900. props: {
  8901. data: {
  8902. type: Array,
  8903. default: () => []
  8904. },
  8905. emptyText: {
  8906. type: String
  8907. },
  8908. renderAfterExpand: {
  8909. type: Boolean,
  8910. default: !0
  8911. },
  8912. nodeKey: String,
  8913. checkStrictly: Boolean,
  8914. defaultExpandAll: Boolean,
  8915. expandOnClickNode: {
  8916. type: Boolean,
  8917. default: !0
  8918. },
  8919. checkOnClickNode: Boolean,
  8920. checkDescendants: {
  8921. type: Boolean,
  8922. default: !1
  8923. },
  8924. autoExpandParent: {
  8925. type: Boolean,
  8926. default: !0
  8927. },
  8928. defaultCheckedKeys: Array,
  8929. defaultExpandedKeys: Array,
  8930. currentNodeKey: [String, Number],
  8931. renderContent: Function,
  8932. showCheckbox: {
  8933. type: Boolean,
  8934. default: !1
  8935. },
  8936. draggable: {
  8937. type: Boolean,
  8938. default: !1
  8939. },
  8940. allowDrag: Function,
  8941. allowDrop: Function,
  8942. props: {
  8943. type: Object,
  8944. default: () => ({
  8945. children: "children",
  8946. label: "label",
  8947. disabled: "disabled"
  8948. })
  8949. },
  8950. lazy: {
  8951. type: Boolean,
  8952. default: !1
  8953. },
  8954. highlightCurrent: Boolean,
  8955. load: Function,
  8956. filterNodeMethod: Function,
  8957. accordion: Boolean,
  8958. indent: {
  8959. type: Number,
  8960. default: 18
  8961. },
  8962. icon: {
  8963. type: _g
  8964. }
  8965. },
  8966. emits: [
  8967. "check-change",
  8968. "current-change",
  8969. "node-click",
  8970. "node-contextmenu",
  8971. "node-collapse",
  8972. "node-expand",
  8973. "check",
  8974. "node-drag-start",
  8975. "node-drag-end",
  8976. "node-drop",
  8977. "node-drag-leave",
  8978. "node-drag-enter",
  8979. "node-drag-over"
  8980. ],
  8981. setup(t, e) {
  8982. const { t: n } = mN(), r = $n("tree"), i = et(cRe, null), a = ee(new dRe({
  8983. key: t.nodeKey,
  8984. data: t.data,
  8985. lazy: t.lazy,
  8986. props: t.props,
  8987. load: t.load,
  8988. currentNodeKey: t.currentNodeKey,
  8989. checkStrictly: t.checkStrictly,
  8990. checkDescendants: t.checkDescendants,
  8991. defaultCheckedKeys: t.defaultCheckedKeys,
  8992. defaultExpandedKeys: t.defaultExpandedKeys,
  8993. autoExpandParent: t.autoExpandParent,
  8994. defaultExpandAll: t.defaultExpandAll,
  8995. filterNodeMethod: t.filterNodeMethod
  8996. }));
  8997. a.value.initialize();
  8998. const o = ee(a.value.root), s = ee(null), l = ee(null), u = ee(null), { broadcastExpanded: c } = Sne(t), { dragState: f } = vRe({
  8999. props: t,
  9000. ctx: e,
  9001. el$: l,
  9002. dropIndicator$: u,
  9003. store: a
  9004. });
  9005. ORe({ el$: l }, a);
  9006. const d = V(() => {
  9007. const { childNodes: W } = o.value, H = i ? i.hasFilteredOptions !== 0 : !1;
  9008. return (!W || W.length === 0 || W.every(({ visible: U }) => !U)) && !H;
  9009. });
  9010. me(() => t.currentNodeKey, (W) => {
  9011. a.value.setCurrentNodeKey(W);
  9012. }), me(() => t.defaultCheckedKeys, (W) => {
  9013. a.value.setDefaultCheckedKey(W);
  9014. }), me(() => t.defaultExpandedKeys, (W) => {
  9015. a.value.setDefaultExpandedKeys(W);
  9016. }), me(() => t.data, (W) => {
  9017. a.value.setData(W);
  9018. }, { deep: !0 }), me(() => t.checkStrictly, (W) => {
  9019. a.value.checkStrictly = W;
  9020. });
  9021. const h = (W) => {
  9022. if (!t.filterNodeMethod)
  9023. throw new Error("[Tree] filterNodeMethod is required when filter");
  9024. a.value.filter(W);
  9025. }, p = (W) => RN(t.nodeKey, W.data), v = (W) => {
  9026. if (!t.nodeKey)
  9027. throw new Error("[Tree] nodeKey is required in getNodePath");
  9028. const H = a.value.getNode(W);
  9029. if (!H)
  9030. return [];
  9031. const U = [H.data];
  9032. let j = H.parent;
  9033. for (; j && j !== o.value; )
  9034. U.push(j.data), j = j.parent;
  9035. return U.reverse();
  9036. }, g = (W, H) => a.value.getCheckedNodes(W, H), m = (W) => a.value.getCheckedKeys(W), y = () => {
  9037. const W = a.value.getCurrentNode();
  9038. return W ? W.data : null;
  9039. }, _ = () => {
  9040. if (!t.nodeKey)
  9041. throw new Error("[Tree] nodeKey is required in getCurrentKey");
  9042. const W = y();
  9043. return W ? W[t.nodeKey] : null;
  9044. }, O = (W, H) => {
  9045. if (!t.nodeKey)
  9046. throw new Error("[Tree] nodeKey is required in setCheckedNodes");
  9047. a.value.setCheckedNodes(W, H);
  9048. }, S = (W, H) => {
  9049. if (!t.nodeKey)
  9050. throw new Error("[Tree] nodeKey is required in setCheckedKeys");
  9051. a.value.setCheckedKeys(W, H);
  9052. }, x = (W, H, U) => {
  9053. a.value.setChecked(W, H, U);
  9054. }, C = () => a.value.getHalfCheckedNodes(), P = () => a.value.getHalfCheckedKeys(), $ = (W, H = !0) => {
  9055. if (!t.nodeKey)
  9056. throw new Error("[Tree] nodeKey is required in setCurrentNode");
  9057. sR(a, e.emit, () => a.value.setUserCurrentNode(W, H));
  9058. }, T = (W, H = !0) => {
  9059. if (!t.nodeKey)
  9060. throw new Error("[Tree] nodeKey is required in setCurrentKey");
  9061. sR(a, e.emit, () => a.value.setCurrentNodeKey(W, H));
  9062. }, E = (W) => a.value.getNode(W), M = (W) => {
  9063. a.value.remove(W);
  9064. }, R = (W, H) => {
  9065. a.value.append(W, H);
  9066. }, N = (W, H) => {
  9067. a.value.insertBefore(W, H);
  9068. }, I = (W, H) => {
  9069. a.value.insertAfter(W, H);
  9070. }, B = (W, H, U) => {
  9071. c(H), e.emit("node-expand", W, H, U);
  9072. }, Q = (W, H) => {
  9073. if (!t.nodeKey)
  9074. throw new Error("[Tree] nodeKey is required in updateKeyChild");
  9075. a.value.updateChildren(W, H);
  9076. };
  9077. return Et("RootTree", {
  9078. ctx: e,
  9079. props: t,
  9080. store: a,
  9081. root: o,
  9082. currentNode: s,
  9083. instance: In()
  9084. }), Et(Cb, void 0), {
  9085. ns: r,
  9086. store: a,
  9087. root: o,
  9088. currentNode: s,
  9089. dragState: f,
  9090. el$: l,
  9091. dropIndicator$: u,
  9092. isEmpty: d,
  9093. filter: h,
  9094. getNodeKey: p,
  9095. getNodePath: v,
  9096. getCheckedNodes: g,
  9097. getCheckedKeys: m,
  9098. getCurrentNode: y,
  9099. getCurrentKey: _,
  9100. setCheckedNodes: O,
  9101. setCheckedKeys: S,
  9102. setChecked: x,
  9103. getHalfCheckedNodes: C,
  9104. getHalfCheckedKeys: P,
  9105. setCurrentNode: $,
  9106. setCurrentKey: T,
  9107. t: n,
  9108. getNode: E,
  9109. remove: M,
  9110. append: R,
  9111. insertBefore: N,
  9112. insertAfter: I,
  9113. handleNodeExpand: B,
  9114. updateKeyChildren: Q
  9115. };
  9116. }
  9117. });
  9118. function xRe(t, e, n, r, i, a) {
  9119. const o = br("el-tree-node");
  9120. return be(), Ue("div", {
  9121. ref: "el$",
  9122. class: Ge([
  9123. t.ns.b(),
  9124. t.ns.is("dragging", !!t.dragState.draggingNode),
  9125. t.ns.is("drop-not-allow", !t.dragState.allowDrop),
  9126. t.ns.is("drop-inner", t.dragState.dropType === "inner"),
  9127. { [t.ns.m("highlight-current")]: t.highlightCurrent }
  9128. ]),
  9129. role: "tree"
  9130. }, [
  9131. (be(!0), Ue(Wt, null, hh(t.root.childNodes, (s) => (be(), Je(o, {
  9132. key: t.getNodeKey(s),
  9133. node: s,
  9134. props: t.props,
  9135. accordion: t.accordion,
  9136. "render-after-expand": t.renderAfterExpand,
  9137. "show-checkbox": t.showCheckbox,
  9138. "render-content": t.renderContent,
  9139. onNodeExpand: t.handleNodeExpand
  9140. }, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]))), 128)),
  9141. t.isEmpty ? (be(), Ue("div", {
  9142. key: 0,
  9143. class: Ge(t.ns.e("empty-block"))
  9144. }, [
  9145. ln(t.$slots, "empty", {}, () => {
  9146. var s;
  9147. return [
  9148. tt("span", {
  9149. class: Ge(t.ns.e("empty-text"))
  9150. }, xi((s = t.emptyText) != null ? s : t.t("el.tree.emptyText")), 3)
  9151. ];
  9152. })
  9153. ], 2)) : Ot("v-if", !0),
  9154. Sr(tt("div", {
  9155. ref: "dropIndicator$",
  9156. class: Ge(t.ns.e("drop-indicator"))
  9157. }, null, 2), [
  9158. [ho, t.dragState.showDropIndicator]
  9159. ])
  9160. ], 2);
  9161. }
  9162. var Qx = /* @__PURE__ */ Nn(SRe, [["render", xRe], ["__file", "tree.vue"]]);
  9163. Qx.install = (t) => {
  9164. t.component(Qx.name, Qx);
  9165. };
  9166. const wRe = Qx, WW = wRe;
  9167. function $b(t) {
  9168. "@babel/helpers - typeof";
  9169. return $b = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
  9170. return typeof e;
  9171. } : function(e) {
  9172. return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  9173. }, $b(t);
  9174. }
  9175. function CRe(t, e) {
  9176. if ($b(t) != "object" || !t) return t;
  9177. var n = t[Symbol.toPrimitive];
  9178. if (n !== void 0) {
  9179. var r = n.call(t, e || "default");
  9180. if ($b(r) != "object") return r;
  9181. throw new TypeError("@@toPrimitive must return a primitive value.");
  9182. }
  9183. return (e === "string" ? String : Number)(t);
  9184. }
  9185. function TRe(t) {
  9186. var e = CRe(t, "string");
  9187. return $b(e) == "symbol" ? e : e + "";
  9188. }
  9189. function PRe(t, e, n) {
  9190. return (e = TRe(e)) in t ? Object.defineProperty(t, e, {
  9191. value: n,
  9192. enumerable: !0,
  9193. configurable: !0,
  9194. writable: !0
  9195. }) : t[e] = n, t;
  9196. }
  9197. function QW(t, e) {
  9198. var n = Object.keys(t);
  9199. if (Object.getOwnPropertySymbols) {
  9200. var r = Object.getOwnPropertySymbols(t);
  9201. e && (r = r.filter(function(i) {
  9202. return Object.getOwnPropertyDescriptor(t, i).enumerable;
  9203. })), n.push.apply(n, r);
  9204. }
  9205. return n;
  9206. }
  9207. function te(t) {
  9208. for (var e = 1; e < arguments.length; e++) {
  9209. var n = arguments[e] != null ? arguments[e] : {};
  9210. e % 2 ? QW(Object(n), !0).forEach(function(r) {
  9211. PRe(t, r, n[r]);
  9212. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : QW(Object(n)).forEach(function(r) {
  9213. Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
  9214. });
  9215. }
  9216. return t;
  9217. }
  9218. function k() {
  9219. return k = Object.assign ? Object.assign.bind() : function(t) {
  9220. for (var e = 1; e < arguments.length; e++) {
  9221. var n = arguments[e];
  9222. for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
  9223. }
  9224. return t;
  9225. }, k.apply(null, arguments);
  9226. }
  9227. const $Re = (t) => typeof t == "function", ARe = Array.isArray, ERe = (t) => typeof t == "string", MRe = (t) => t !== null && typeof t == "object", IRe = /^on[^a-z]/, DRe = (t) => IRe.test(t), wne = (t) => {
  9228. const e = /* @__PURE__ */ Object.create(null);
  9229. return (n) => e[n] || (e[n] = t(n));
  9230. }, RRe = /-(\w)/g, kN = wne((t) => t.replace(RRe, (e, n) => n ? n.toUpperCase() : "")), kRe = /\B([A-Z])/g, LRe = wne((t) => t.replace(kRe, "-$1").toLowerCase()), NRe = Object.prototype.hasOwnProperty, HW = (t, e) => NRe.call(t, e);
  9231. function BRe(t, e, n, r) {
  9232. const i = t[n];
  9233. if (i != null) {
  9234. const a = HW(i, "default");
  9235. if (a && r === void 0) {
  9236. const o = i.default;
  9237. r = i.type !== Function && $Re(o) ? o() : o;
  9238. }
  9239. i.type === Boolean && (!HW(e, n) && !a ? r = !1 : r === "" && (r = !0));
  9240. }
  9241. return r;
  9242. }
  9243. function zRe(t) {
  9244. return Object.keys(t).reduce((e, n) => ((n.startsWith("data-") || n.startsWith("aria-")) && (e[n] = t[n]), e), {});
  9245. }
  9246. function m0(t) {
  9247. return typeof t == "number" ? `${t}px` : t;
  9248. }
  9249. function $v(t) {
  9250. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
  9251. return typeof t == "function" ? t(e) : t ?? n;
  9252. }
  9253. function VRe(t) {
  9254. let e;
  9255. const n = new Promise((i) => {
  9256. e = t(() => {
  9257. i(!0);
  9258. });
  9259. }), r = () => {
  9260. e == null || e();
  9261. };
  9262. return r.then = (i, a) => n.then(i, a), r.promise = n, r;
  9263. }
  9264. function Re() {
  9265. const t = [];
  9266. for (let e = 0; e < arguments.length; e++) {
  9267. const n = e < 0 || arguments.length <= e ? void 0 : arguments[e];
  9268. if (n) {
  9269. if (ERe(n))
  9270. t.push(n);
  9271. else if (ARe(n))
  9272. for (let r = 0; r < n.length; r++) {
  9273. const i = Re(n[r]);
  9274. i && t.push(i);
  9275. }
  9276. else if (MRe(n))
  9277. for (const r in n)
  9278. n[r] && t.push(r);
  9279. }
  9280. }
  9281. return t.join(" ");
  9282. }
  9283. var Cne = function() {
  9284. if (typeof Map < "u")
  9285. return Map;
  9286. function t(e, n) {
  9287. var r = -1;
  9288. return e.some(function(i, a) {
  9289. return i[0] === n ? (r = a, !0) : !1;
  9290. }), r;
  9291. }
  9292. return (
  9293. /** @class */
  9294. function() {
  9295. function e() {
  9296. this.__entries__ = [];
  9297. }
  9298. return Object.defineProperty(e.prototype, "size", {
  9299. /**
  9300. * @returns {boolean}
  9301. */
  9302. get: function() {
  9303. return this.__entries__.length;
  9304. },
  9305. enumerable: !0,
  9306. configurable: !0
  9307. }), e.prototype.get = function(n) {
  9308. var r = t(this.__entries__, n), i = this.__entries__[r];
  9309. return i && i[1];
  9310. }, e.prototype.set = function(n, r) {
  9311. var i = t(this.__entries__, n);
  9312. ~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
  9313. }, e.prototype.delete = function(n) {
  9314. var r = this.__entries__, i = t(r, n);
  9315. ~i && r.splice(i, 1);
  9316. }, e.prototype.has = function(n) {
  9317. return !!~t(this.__entries__, n);
  9318. }, e.prototype.clear = function() {
  9319. this.__entries__.splice(0);
  9320. }, e.prototype.forEach = function(n, r) {
  9321. r === void 0 && (r = null);
  9322. for (var i = 0, a = this.__entries__; i < a.length; i++) {
  9323. var o = a[i];
  9324. n.call(r, o[1], o[0]);
  9325. }
  9326. }, e;
  9327. }()
  9328. );
  9329. }(), uR = typeof window < "u" && typeof document < "u" && window.document === document, Gw = function() {
  9330. return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
  9331. }(), FRe = function() {
  9332. return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Gw) : function(t) {
  9333. return setTimeout(function() {
  9334. return t(Date.now());
  9335. }, 1e3 / 60);
  9336. };
  9337. }(), WRe = 2;
  9338. function QRe(t, e) {
  9339. var n = !1, r = !1, i = 0;
  9340. function a() {
  9341. n && (n = !1, t()), r && s();
  9342. }
  9343. function o() {
  9344. FRe(a);
  9345. }
  9346. function s() {
  9347. var l = Date.now();
  9348. if (n) {
  9349. if (l - i < WRe)
  9350. return;
  9351. r = !0;
  9352. } else
  9353. n = !0, r = !1, setTimeout(o, e);
  9354. i = l;
  9355. }
  9356. return s;
  9357. }
  9358. var HRe = 20, GRe = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], jRe = typeof MutationObserver < "u", ZRe = (
  9359. /** @class */
  9360. function() {
  9361. function t() {
  9362. this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = QRe(this.refresh.bind(this), HRe);
  9363. }
  9364. return t.prototype.addObserver = function(e) {
  9365. ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
  9366. }, t.prototype.removeObserver = function(e) {
  9367. var n = this.observers_, r = n.indexOf(e);
  9368. ~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
  9369. }, t.prototype.refresh = function() {
  9370. var e = this.updateObservers_();
  9371. e && this.refresh();
  9372. }, t.prototype.updateObservers_ = function() {
  9373. var e = this.observers_.filter(function(n) {
  9374. return n.gatherActive(), n.hasActive();
  9375. });
  9376. return e.forEach(function(n) {
  9377. return n.broadcastActive();
  9378. }), e.length > 0;
  9379. }, t.prototype.connect_ = function() {
  9380. !uR || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), jRe ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
  9381. attributes: !0,
  9382. childList: !0,
  9383. characterData: !0,
  9384. subtree: !0
  9385. })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
  9386. }, t.prototype.disconnect_ = function() {
  9387. !uR || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
  9388. }, t.prototype.onTransitionEnd_ = function(e) {
  9389. var n = e.propertyName, r = n === void 0 ? "" : n, i = GRe.some(function(a) {
  9390. return !!~r.indexOf(a);
  9391. });
  9392. i && this.refresh();
  9393. }, t.getInstance = function() {
  9394. return this.instance_ || (this.instance_ = new t()), this.instance_;
  9395. }, t.instance_ = null, t;
  9396. }()
  9397. ), Tne = function(t, e) {
  9398. for (var n = 0, r = Object.keys(e); n < r.length; n++) {
  9399. var i = r[n];
  9400. Object.defineProperty(t, i, {
  9401. value: e[i],
  9402. enumerable: !1,
  9403. writable: !1,
  9404. configurable: !0
  9405. });
  9406. }
  9407. return t;
  9408. }, Pg = function(t) {
  9409. var e = t && t.ownerDocument && t.ownerDocument.defaultView;
  9410. return e || Gw;
  9411. }, Pne = m2(0, 0, 0, 0);
  9412. function jw(t) {
  9413. return parseFloat(t) || 0;
  9414. }
  9415. function GW(t) {
  9416. for (var e = [], n = 1; n < arguments.length; n++)
  9417. e[n - 1] = arguments[n];
  9418. return e.reduce(function(r, i) {
  9419. var a = t["border-" + i + "-width"];
  9420. return r + jw(a);
  9421. }, 0);
  9422. }
  9423. function URe(t) {
  9424. for (var e = ["top", "right", "bottom", "left"], n = {}, r = 0, i = e; r < i.length; r++) {
  9425. var a = i[r], o = t["padding-" + a];
  9426. n[a] = jw(o);
  9427. }
  9428. return n;
  9429. }
  9430. function XRe(t) {
  9431. var e = t.getBBox();
  9432. return m2(0, 0, e.width, e.height);
  9433. }
  9434. function YRe(t) {
  9435. var e = t.clientWidth, n = t.clientHeight;
  9436. if (!e && !n)
  9437. return Pne;
  9438. var r = Pg(t).getComputedStyle(t), i = URe(r), a = i.left + i.right, o = i.top + i.bottom, s = jw(r.width), l = jw(r.height);
  9439. if (r.boxSizing === "border-box" && (Math.round(s + a) !== e && (s -= GW(r, "left", "right") + a), Math.round(l + o) !== n && (l -= GW(r, "top", "bottom") + o)), !KRe(t)) {
  9440. var u = Math.round(s + a) - e, c = Math.round(l + o) - n;
  9441. Math.abs(u) !== 1 && (s -= u), Math.abs(c) !== 1 && (l -= c);
  9442. }
  9443. return m2(i.left, i.top, s, l);
  9444. }
  9445. var qRe = /* @__PURE__ */ function() {
  9446. return typeof SVGGraphicsElement < "u" ? function(t) {
  9447. return t instanceof Pg(t).SVGGraphicsElement;
  9448. } : function(t) {
  9449. return t instanceof Pg(t).SVGElement && typeof t.getBBox == "function";
  9450. };
  9451. }();
  9452. function KRe(t) {
  9453. return t === Pg(t).document.documentElement;
  9454. }
  9455. function JRe(t) {
  9456. return uR ? qRe(t) ? XRe(t) : YRe(t) : Pne;
  9457. }
  9458. function eke(t) {
  9459. var e = t.x, n = t.y, r = t.width, i = t.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, o = Object.create(a.prototype);
  9460. return Tne(o, {
  9461. x: e,
  9462. y: n,
  9463. width: r,
  9464. height: i,
  9465. top: n,
  9466. right: e + r,
  9467. bottom: i + n,
  9468. left: e
  9469. }), o;
  9470. }
  9471. function m2(t, e, n, r) {
  9472. return { x: t, y: e, width: n, height: r };
  9473. }
  9474. var tke = (
  9475. /** @class */
  9476. function() {
  9477. function t(e) {
  9478. this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = m2(0, 0, 0, 0), this.target = e;
  9479. }
  9480. return t.prototype.isActive = function() {
  9481. var e = JRe(this.target);
  9482. return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
  9483. }, t.prototype.broadcastRect = function() {
  9484. var e = this.contentRect_;
  9485. return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
  9486. }, t;
  9487. }()
  9488. ), nke = (
  9489. /** @class */
  9490. /* @__PURE__ */ function() {
  9491. function t(e, n) {
  9492. var r = eke(n);
  9493. Tne(this, { target: e, contentRect: r });
  9494. }
  9495. return t;
  9496. }()
  9497. ), rke = (
  9498. /** @class */
  9499. function() {
  9500. function t(e, n, r) {
  9501. if (this.activeObservations_ = [], this.observations_ = new Cne(), typeof e != "function")
  9502. throw new TypeError("The callback provided as parameter 1 is not a function.");
  9503. this.callback_ = e, this.controller_ = n, this.callbackCtx_ = r;
  9504. }
  9505. return t.prototype.observe = function(e) {
  9506. if (!arguments.length)
  9507. throw new TypeError("1 argument required, but only 0 present.");
  9508. if (!(typeof Element > "u" || !(Element instanceof Object))) {
  9509. if (!(e instanceof Pg(e).Element))
  9510. throw new TypeError('parameter 1 is not of type "Element".');
  9511. var n = this.observations_;
  9512. n.has(e) || (n.set(e, new tke(e)), this.controller_.addObserver(this), this.controller_.refresh());
  9513. }
  9514. }, t.prototype.unobserve = function(e) {
  9515. if (!arguments.length)
  9516. throw new TypeError("1 argument required, but only 0 present.");
  9517. if (!(typeof Element > "u" || !(Element instanceof Object))) {
  9518. if (!(e instanceof Pg(e).Element))
  9519. throw new TypeError('parameter 1 is not of type "Element".');
  9520. var n = this.observations_;
  9521. n.has(e) && (n.delete(e), n.size || this.controller_.removeObserver(this));
  9522. }
  9523. }, t.prototype.disconnect = function() {
  9524. this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
  9525. }, t.prototype.gatherActive = function() {
  9526. var e = this;
  9527. this.clearActive(), this.observations_.forEach(function(n) {
  9528. n.isActive() && e.activeObservations_.push(n);
  9529. });
  9530. }, t.prototype.broadcastActive = function() {
  9531. if (this.hasActive()) {
  9532. var e = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
  9533. return new nke(r.target, r.broadcastRect());
  9534. });
  9535. this.callback_.call(e, n, e), this.clearActive();
  9536. }
  9537. }, t.prototype.clearActive = function() {
  9538. this.activeObservations_.splice(0);
  9539. }, t.prototype.hasActive = function() {
  9540. return this.activeObservations_.length > 0;
  9541. }, t;
  9542. }()
  9543. ), $ne = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Cne(), Ane = (
  9544. /** @class */
  9545. /* @__PURE__ */ function() {
  9546. function t(e) {
  9547. if (!(this instanceof t))
  9548. throw new TypeError("Cannot call a class as a function.");
  9549. if (!arguments.length)
  9550. throw new TypeError("1 argument required, but only 0 present.");
  9551. var n = ZRe.getInstance(), r = new rke(e, n, this);
  9552. $ne.set(this, r);
  9553. }
  9554. return t;
  9555. }()
  9556. );
  9557. [
  9558. "observe",
  9559. "unobserve",
  9560. "disconnect"
  9561. ].forEach(function(t) {
  9562. Ane.prototype[t] = function() {
  9563. var e;
  9564. return (e = $ne.get(this))[t].apply(e, arguments);
  9565. };
  9566. });
  9567. var Ene = function() {
  9568. return typeof Gw.ResizeObserver < "u" ? Gw.ResizeObserver : Ane;
  9569. }();
  9570. const cR = (t) => t != null && t !== "", li = (t, e) => {
  9571. const n = k({}, t);
  9572. return Object.keys(e).forEach((r) => {
  9573. const i = n[r];
  9574. if (i)
  9575. i.type || i.default ? i.default = e[r] : i.def ? i.def(e[r]) : n[r] = {
  9576. type: i,
  9577. default: e[r]
  9578. };
  9579. else
  9580. throw new Error(`not have ${r} prop`);
  9581. }), n;
  9582. }, ike = (t) => {
  9583. const e = Object.keys(t), n = {}, r = {}, i = {};
  9584. for (let a = 0, o = e.length; a < o; a++) {
  9585. const s = e[a];
  9586. DRe(s) ? (n[s[2].toLowerCase() + s.slice(3)] = t[s], r[s] = t[s]) : i[s] = t[s];
  9587. }
  9588. return {
  9589. onEvents: r,
  9590. events: n,
  9591. extraAttrs: i
  9592. };
  9593. }, ake = function() {
  9594. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  9595. const n = {}, r = /;(?![^(]*\))/g, i = /:(.+)/;
  9596. return typeof t == "object" ? t : (t.split(r).forEach(function(a) {
  9597. if (a) {
  9598. const o = a.split(i);
  9599. if (o.length > 1) {
  9600. const s = e ? kN(o[0].trim()) : o[0].trim();
  9601. n[s] = o[1].trim();
  9602. }
  9603. }
  9604. }), n);
  9605. }, Zw = (t, e) => t[e] !== void 0, Mne = Symbol("skipFlatten"), qr = function() {
  9606. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
  9607. const n = Array.isArray(t) ? t : [t], r = [];
  9608. return n.forEach((i) => {
  9609. Array.isArray(i) ? r.push(...qr(i, e)) : i && i.type === Wt ? i.key === Mne ? r.push(i) : r.push(...qr(i.children, e)) : i && df(i) ? e && !LN(i) ? r.push(i) : e || r.push(i) : cR(i) && r.push(i);
  9610. }), r;
  9611. }, Ine = function(t) {
  9612. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  9613. if (df(t))
  9614. return t.type === Wt ? e === "default" ? qr(t.children) : [] : t.children && t.children[e] ? qr(t.children[e](n)) : [];
  9615. {
  9616. const r = t.$slots[e] && t.$slots[e](n);
  9617. return qr(r);
  9618. }
  9619. }, xu = (t) => {
  9620. var e;
  9621. let n = ((e = t == null ? void 0 : t.vnode) === null || e === void 0 ? void 0 : e.el) || t && (t.$el || t);
  9622. for (; n && !n.tagName; )
  9623. n = n.nextSibling;
  9624. return n;
  9625. }, oke = (t) => {
  9626. const e = {};
  9627. if (t.$ && t.$.vnode) {
  9628. const n = t.$.vnode.props || {};
  9629. Object.keys(t.$props).forEach((r) => {
  9630. const i = t.$props[r], a = LRe(r);
  9631. (i !== void 0 || a in n) && (e[r] = i);
  9632. });
  9633. } else if (df(t) && typeof t.type == "object") {
  9634. const n = t.props || {}, r = {};
  9635. Object.keys(n).forEach((a) => {
  9636. r[kN(a)] = n[a];
  9637. });
  9638. const i = t.type.props || {};
  9639. Object.keys(i).forEach((a) => {
  9640. const o = BRe(i, r, a, r[a]);
  9641. (o !== void 0 || a in r) && (e[a] = o);
  9642. });
  9643. }
  9644. return e;
  9645. }, ske = function(t) {
  9646. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, i;
  9647. if (t.$) {
  9648. const a = t[e];
  9649. if (a !== void 0)
  9650. return typeof a == "function" && r ? a(n) : a;
  9651. i = t.$slots[e], i = r && i ? i(n) : i;
  9652. } else if (df(t)) {
  9653. const a = t.props && t.props[e];
  9654. if (a !== void 0 && t.props !== null)
  9655. return typeof a == "function" && r ? a(n) : a;
  9656. t.type === Wt ? i = t.children : t.children && t.children[e] && (i = t.children[e], i = r && i ? i(n) : i);
  9657. }
  9658. return Array.isArray(i) && (i = qr(i), i = i.length === 1 ? i[0] : i, i = i.length === 0 ? void 0 : i), i;
  9659. };
  9660. function jW() {
  9661. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = {};
  9662. return t.$ ? n = k(k({}, n), t.$attrs) : n = k(k({}, n), t.props), ike(n)[e ? "onEvents" : "events"];
  9663. }
  9664. function lke(t, e) {
  9665. let r = ((df(t) ? t.props : t.$attrs) || {}).style || {};
  9666. return typeof r == "string" && (r = ake(r, e)), r;
  9667. }
  9668. function uke(t) {
  9669. return t.length === 1 && t[0].type === Wt;
  9670. }
  9671. function LN(t) {
  9672. return t && (t.type === Aee || t.type === Wt && t.children.length === 0 || t.type === KT && t.children.trim() === "");
  9673. }
  9674. function Zl() {
  9675. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  9676. const e = [];
  9677. return t.forEach((n) => {
  9678. Array.isArray(n) ? e.push(...n) : (n == null ? void 0 : n.type) === Wt ? e.push(...Zl(n.children)) : e.push(n);
  9679. }), e.filter((n) => !LN(n));
  9680. }
  9681. function po(t) {
  9682. return Array.isArray(t) && t.length === 1 && (t = t[0]), t && t.__v_isVNode && typeof t.type != "symbol";
  9683. }
  9684. function y2(t, e) {
  9685. let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
  9686. var r, i;
  9687. return (r = e[n]) !== null && r !== void 0 ? r : (i = t[n]) === null || i === void 0 ? void 0 : i.call(t);
  9688. }
  9689. const $g = ae({
  9690. compatConfig: {
  9691. MODE: 3
  9692. },
  9693. name: "ResizeObserver",
  9694. props: {
  9695. disabled: Boolean,
  9696. onResize: Function
  9697. },
  9698. emits: ["resize"],
  9699. setup(t, e) {
  9700. let {
  9701. slots: n
  9702. } = e;
  9703. const r = zn({
  9704. width: 0,
  9705. height: 0,
  9706. offsetHeight: 0,
  9707. offsetWidth: 0
  9708. });
  9709. let i = null, a = null;
  9710. const o = () => {
  9711. a && (a.disconnect(), a = null);
  9712. }, s = (c) => {
  9713. const {
  9714. onResize: f
  9715. } = t, d = c[0].target, {
  9716. width: h,
  9717. height: p
  9718. } = d.getBoundingClientRect(), {
  9719. offsetWidth: v,
  9720. offsetHeight: g
  9721. } = d, m = Math.floor(h), y = Math.floor(p);
  9722. if (r.width !== m || r.height !== y || r.offsetWidth !== v || r.offsetHeight !== g) {
  9723. const _ = {
  9724. width: m,
  9725. height: y,
  9726. offsetWidth: v,
  9727. offsetHeight: g
  9728. };
  9729. k(r, _), f && Promise.resolve().then(() => {
  9730. f(k(k({}, _), {
  9731. offsetWidth: v,
  9732. offsetHeight: g
  9733. }), d);
  9734. });
  9735. }
  9736. }, l = In(), u = () => {
  9737. const {
  9738. disabled: c
  9739. } = t;
  9740. if (c) {
  9741. o();
  9742. return;
  9743. }
  9744. const f = xu(l);
  9745. f !== i && (o(), i = f), !a && f && (a = new Ene(s), a.observe(f));
  9746. };
  9747. return _t(() => {
  9748. u();
  9749. }), rp(() => {
  9750. u();
  9751. }), qu(() => {
  9752. o();
  9753. }), me(() => t.disabled, () => {
  9754. u();
  9755. }, {
  9756. flush: "post"
  9757. }), () => {
  9758. var c;
  9759. return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0];
  9760. };
  9761. }
  9762. });
  9763. let Dne = (t) => setTimeout(t, 16), Rne = (t) => clearTimeout(t);
  9764. typeof window < "u" && "requestAnimationFrame" in window && (Dne = (t) => window.requestAnimationFrame(t), Rne = (t) => window.cancelAnimationFrame(t));
  9765. let ZW = 0;
  9766. const NN = /* @__PURE__ */ new Map();
  9767. function kne(t) {
  9768. NN.delete(t);
  9769. }
  9770. function en(t) {
  9771. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
  9772. ZW += 1;
  9773. const n = ZW;
  9774. function r(i) {
  9775. if (i === 0)
  9776. kne(n), t();
  9777. else {
  9778. const a = Dne(() => {
  9779. r(i - 1);
  9780. });
  9781. NN.set(n, a);
  9782. }
  9783. }
  9784. return r(e), n;
  9785. }
  9786. en.cancel = (t) => {
  9787. const e = NN.get(t);
  9788. return kne(e), Rne(e);
  9789. };
  9790. const pf = function() {
  9791. for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
  9792. e[n] = arguments[n];
  9793. return e;
  9794. }, fm = (t) => {
  9795. const e = t;
  9796. return e.install = function(n) {
  9797. n.component(e.displayName || e.name, t);
  9798. }, t;
  9799. };
  9800. function Uw() {
  9801. return {
  9802. type: [Function, Array]
  9803. };
  9804. }
  9805. function sn(t) {
  9806. return {
  9807. type: Object,
  9808. default: t
  9809. };
  9810. }
  9811. function Tt(t) {
  9812. return {
  9813. type: Boolean,
  9814. default: t
  9815. };
  9816. }
  9817. function Ct(t) {
  9818. return {
  9819. type: Function,
  9820. default: t
  9821. };
  9822. }
  9823. function Fo(t, e) {
  9824. return {
  9825. validator: () => !0,
  9826. default: t
  9827. };
  9828. }
  9829. function Lh(t) {
  9830. return {
  9831. type: Array,
  9832. default: t
  9833. };
  9834. }
  9835. function rr(t) {
  9836. return {
  9837. type: String,
  9838. default: t
  9839. };
  9840. }
  9841. function or(t, e) {
  9842. return t ? {
  9843. type: t,
  9844. default: e
  9845. } : Fo(e);
  9846. }
  9847. let mi = !1;
  9848. try {
  9849. const t = Object.defineProperty({}, "passive", {
  9850. get() {
  9851. mi = !0;
  9852. }
  9853. });
  9854. window.addEventListener("testPassive", null, t), window.removeEventListener("testPassive", null, t);
  9855. } catch {
  9856. }
  9857. function yi(t, e, n, r) {
  9858. if (t && t.addEventListener) {
  9859. let i = r;
  9860. i === void 0 && mi && (e === "touchstart" || e === "touchmove" || e === "wheel") && (i = {
  9861. passive: !1
  9862. }), t.addEventListener(e, n, i);
  9863. }
  9864. return {
  9865. remove: () => {
  9866. t && t.removeEventListener && t.removeEventListener(e, n);
  9867. }
  9868. };
  9869. }
  9870. const BN = "anticon", Lne = Symbol("GlobalFormContextKey"), cke = (t) => {
  9871. Et(Lne, t);
  9872. }, fke = () => et(Lne, {
  9873. validateMessages: V(() => {
  9874. })
  9875. }), dke = () => ({
  9876. iconPrefixCls: String,
  9877. getTargetContainer: {
  9878. type: Function
  9879. },
  9880. getPopupContainer: {
  9881. type: Function
  9882. },
  9883. prefixCls: String,
  9884. getPrefixCls: {
  9885. type: Function
  9886. },
  9887. renderEmpty: {
  9888. type: Function
  9889. },
  9890. transformCellText: {
  9891. type: Function
  9892. },
  9893. csp: sn(),
  9894. input: sn(),
  9895. autoInsertSpaceInButton: {
  9896. type: Boolean,
  9897. default: void 0
  9898. },
  9899. locale: sn(),
  9900. pageHeader: sn(),
  9901. componentSize: {
  9902. type: String
  9903. },
  9904. componentDisabled: {
  9905. type: Boolean,
  9906. default: void 0
  9907. },
  9908. direction: {
  9909. type: String,
  9910. default: "ltr"
  9911. },
  9912. space: sn(),
  9913. virtual: {
  9914. type: Boolean,
  9915. default: void 0
  9916. },
  9917. dropdownMatchSelectWidth: {
  9918. type: [Number, Boolean],
  9919. default: !0
  9920. },
  9921. form: sn(),
  9922. pagination: sn(),
  9923. theme: sn(),
  9924. select: sn(),
  9925. wave: sn()
  9926. }), zN = Symbol("configProvider"), Nne = {
  9927. getPrefixCls: (t, e) => e || (t ? `ant-${t}` : "ant"),
  9928. iconPrefixCls: V(() => BN),
  9929. getPopupContainer: V(() => () => document.body),
  9930. direction: V(() => "ltr")
  9931. }, b2 = () => et(zN, Nne), hke = (t) => Et(zN, t), Bne = Symbol("DisabledContextKey"), Vl = () => et(Bne, ee(void 0)), zne = (t) => {
  9932. const e = Vl();
  9933. return Et(Bne, V(() => {
  9934. var n;
  9935. return (n = t.value) !== null && n !== void 0 ? n : e.value;
  9936. })), t;
  9937. }, pke = {
  9938. // Options.jsx
  9939. items_per_page: "/ page",
  9940. jump_to: "Go to",
  9941. jump_to_confirm: "confirm",
  9942. page: "",
  9943. // Pagination.jsx
  9944. prev_page: "Previous Page",
  9945. next_page: "Next Page",
  9946. prev_5: "Previous 5 Pages",
  9947. next_5: "Next 5 Pages",
  9948. prev_3: "Previous 3 Pages",
  9949. next_3: "Next 3 Pages"
  9950. }, vke = {
  9951. locale: "en_US",
  9952. today: "Today",
  9953. now: "Now",
  9954. backToToday: "Back to today",
  9955. ok: "Ok",
  9956. clear: "Clear",
  9957. month: "Month",
  9958. year: "Year",
  9959. timeSelect: "select time",
  9960. dateSelect: "select date",
  9961. weekSelect: "Choose a week",
  9962. monthSelect: "Choose a month",
  9963. yearSelect: "Choose a year",
  9964. decadeSelect: "Choose a decade",
  9965. yearFormat: "YYYY",
  9966. dateFormat: "M/D/YYYY",
  9967. dayFormat: "D",
  9968. dateTimeFormat: "M/D/YYYY HH:mm:ss",
  9969. monthBeforeYear: !0,
  9970. previousMonth: "Previous month (PageUp)",
  9971. nextMonth: "Next month (PageDown)",
  9972. previousYear: "Last year (Control + left)",
  9973. nextYear: "Next year (Control + right)",
  9974. previousDecade: "Last decade",
  9975. nextDecade: "Next decade",
  9976. previousCentury: "Last century",
  9977. nextCentury: "Next century"
  9978. }, Vne = {
  9979. placeholder: "Select time",
  9980. rangePlaceholder: ["Start time", "End time"]
  9981. }, UW = {
  9982. lang: k({
  9983. placeholder: "Select date",
  9984. yearPlaceholder: "Select year",
  9985. quarterPlaceholder: "Select quarter",
  9986. monthPlaceholder: "Select month",
  9987. weekPlaceholder: "Select week",
  9988. rangePlaceholder: ["Start date", "End date"],
  9989. rangeYearPlaceholder: ["Start year", "End year"],
  9990. rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
  9991. rangeMonthPlaceholder: ["Start month", "End month"],
  9992. rangeWeekPlaceholder: ["Start week", "End week"]
  9993. }, vke),
  9994. timePickerLocale: k({}, Vne)
  9995. }, Za = "${label} is not a valid ${type}", Nu = {
  9996. locale: "en",
  9997. Pagination: pke,
  9998. DatePicker: UW,
  9999. TimePicker: Vne,
  10000. Calendar: UW,
  10001. global: {
  10002. placeholder: "Please select"
  10003. },
  10004. Table: {
  10005. filterTitle: "Filter menu",
  10006. filterConfirm: "OK",
  10007. filterReset: "Reset",
  10008. filterEmptyText: "No filters",
  10009. filterCheckall: "Select all items",
  10010. filterSearchPlaceholder: "Search in filters",
  10011. emptyText: "No data",
  10012. selectAll: "Select current page",
  10013. selectInvert: "Invert current page",
  10014. selectNone: "Clear all data",
  10015. selectionAll: "Select all data",
  10016. sortTitle: "Sort",
  10017. expand: "Expand row",
  10018. collapse: "Collapse row",
  10019. triggerDesc: "Click to sort descending",
  10020. triggerAsc: "Click to sort ascending",
  10021. cancelSort: "Click to cancel sorting"
  10022. },
  10023. Tour: {
  10024. Next: "Next",
  10025. Previous: "Previous",
  10026. Finish: "Finish"
  10027. },
  10028. Modal: {
  10029. okText: "OK",
  10030. cancelText: "Cancel",
  10031. justOkText: "OK"
  10032. },
  10033. Popconfirm: {
  10034. okText: "OK",
  10035. cancelText: "Cancel"
  10036. },
  10037. Transfer: {
  10038. titles: ["", ""],
  10039. searchPlaceholder: "Search here",
  10040. itemUnit: "item",
  10041. itemsUnit: "items",
  10042. remove: "Remove",
  10043. selectCurrent: "Select current page",
  10044. removeCurrent: "Remove current page",
  10045. selectAll: "Select all data",
  10046. removeAll: "Remove all data",
  10047. selectInvert: "Invert current page"
  10048. },
  10049. Upload: {
  10050. uploading: "Uploading...",
  10051. removeFile: "Remove file",
  10052. uploadError: "Upload error",
  10053. previewFile: "Preview file",
  10054. downloadFile: "Download file"
  10055. },
  10056. Empty: {
  10057. description: "No data"
  10058. },
  10059. Icon: {
  10060. icon: "icon"
  10061. },
  10062. Text: {
  10063. edit: "Edit",
  10064. copy: "Copy",
  10065. copied: "Copied",
  10066. expand: "Expand"
  10067. },
  10068. PageHeader: {
  10069. back: "Back"
  10070. },
  10071. Form: {
  10072. optional: "(optional)",
  10073. defaultValidateMessages: {
  10074. default: "Field validation error for ${label}",
  10075. required: "Please enter ${label}",
  10076. enum: "${label} must be one of [${enum}]",
  10077. whitespace: "${label} cannot be a blank character",
  10078. date: {
  10079. format: "${label} date format is invalid",
  10080. parse: "${label} cannot be converted to a date",
  10081. invalid: "${label} is an invalid date"
  10082. },
  10083. types: {
  10084. string: Za,
  10085. method: Za,
  10086. array: Za,
  10087. object: Za,
  10088. number: Za,
  10089. date: Za,
  10090. boolean: Za,
  10091. integer: Za,
  10092. float: Za,
  10093. regexp: Za,
  10094. email: Za,
  10095. url: Za,
  10096. hex: Za
  10097. },
  10098. string: {
  10099. len: "${label} must be ${len} characters",
  10100. min: "${label} must be at least ${min} characters",
  10101. max: "${label} must be up to ${max} characters",
  10102. range: "${label} must be between ${min}-${max} characters"
  10103. },
  10104. number: {
  10105. len: "${label} must be equal to ${len}",
  10106. min: "${label} must be minimum ${min}",
  10107. max: "${label} must be maximum ${max}",
  10108. range: "${label} must be between ${min}-${max}"
  10109. },
  10110. array: {
  10111. len: "Must be ${len} ${label}",
  10112. min: "At least ${min} ${label}",
  10113. max: "At most ${max} ${label}",
  10114. range: "The amount of ${label} must be between ${min}-${max}"
  10115. },
  10116. pattern: {
  10117. mismatch: "${label} does not match the pattern ${pattern}"
  10118. }
  10119. }
  10120. },
  10121. Image: {
  10122. preview: "Preview"
  10123. },
  10124. QRCode: {
  10125. expired: "QR code expired",
  10126. refresh: "Refresh",
  10127. scanned: "Scanned"
  10128. }
  10129. }, Fne = ae({
  10130. compatConfig: {
  10131. MODE: 3
  10132. },
  10133. name: "LocaleReceiver",
  10134. props: {
  10135. componentName: String,
  10136. defaultLocale: {
  10137. type: [Object, Function]
  10138. },
  10139. children: {
  10140. type: Function
  10141. }
  10142. },
  10143. setup(t, e) {
  10144. let {
  10145. slots: n
  10146. } = e;
  10147. const r = et("localeData", {}), i = V(() => {
  10148. const {
  10149. componentName: o = "global",
  10150. defaultLocale: s
  10151. } = t, l = s || Nu[o || "global"], {
  10152. antLocale: u
  10153. } = r, c = o && u ? u[o] : {};
  10154. return k(k({}, typeof l == "function" ? l() : l), c || {});
  10155. }), a = V(() => {
  10156. const {
  10157. antLocale: o
  10158. } = r, s = o && o.locale;
  10159. return o && o.exist && !s ? Nu.locale : s;
  10160. });
  10161. return () => {
  10162. const o = t.children || n.default, {
  10163. antLocale: s
  10164. } = r;
  10165. return o == null ? void 0 : o(i.value, a.value, s);
  10166. };
  10167. }
  10168. });
  10169. function _2(t, e, n) {
  10170. const r = et("localeData", {});
  10171. return [V(() => {
  10172. const {
  10173. antLocale: a
  10174. } = r, o = z(e) || Nu[t || "global"], s = t && a ? a[t] : {};
  10175. return k(k(k({}, typeof o == "function" ? o() : o), s || {}), z(n) || {});
  10176. })];
  10177. }
  10178. function VN(t) {
  10179. for (var e = 0, n, r = 0, i = t.length; i >= 4; ++r, i -= 4)
  10180. n = t.charCodeAt(r) & 255 | (t.charCodeAt(++r) & 255) << 8 | (t.charCodeAt(++r) & 255) << 16 | (t.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
  10181. (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
  10182. n >>> 24, e = /* Math.imul(k, m): */
  10183. (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
  10184. (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
  10185. switch (i) {
  10186. case 3:
  10187. e ^= (t.charCodeAt(r + 2) & 255) << 16;
  10188. case 2:
  10189. e ^= (t.charCodeAt(r + 1) & 255) << 8;
  10190. case 1:
  10191. e ^= t.charCodeAt(r) & 255, e = /* Math.imul(h, m): */
  10192. (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
  10193. }
  10194. return e ^= e >>> 13, e = /* Math.imul(h, m): */
  10195. (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
  10196. }
  10197. const XW = "%";
  10198. class gke {
  10199. constructor(e) {
  10200. this.cache = /* @__PURE__ */ new Map(), this.instanceId = e;
  10201. }
  10202. get(e) {
  10203. return this.cache.get(Array.isArray(e) ? e.join(XW) : e) || null;
  10204. }
  10205. update(e, n) {
  10206. const r = Array.isArray(e) ? e.join(XW) : e, i = this.cache.get(r), a = n(i);
  10207. a === null ? this.cache.delete(r) : this.cache.set(r, a);
  10208. }
  10209. }
  10210. const Wne = "data-token-hash", mh = "data-css-hash", mke = "data-cache-path", Av = "__cssinjs_instance__";
  10211. function Ab() {
  10212. const t = Math.random().toString(12).slice(2);
  10213. if (typeof document < "u" && document.head && document.body) {
  10214. const e = document.body.querySelectorAll(`style[${mh}]`) || [], {
  10215. firstChild: n
  10216. } = document.head;
  10217. Array.from(e).forEach((i) => {
  10218. i[Av] = i[Av] || t, i[Av] === t && document.head.insertBefore(i, n);
  10219. });
  10220. const r = {};
  10221. Array.from(document.querySelectorAll(`style[${mh}]`)).forEach((i) => {
  10222. var a;
  10223. const o = i.getAttribute(mh);
  10224. r[o] ? i[Av] === t && ((a = i.parentNode) === null || a === void 0 || a.removeChild(i)) : r[o] = !0;
  10225. });
  10226. }
  10227. return new gke(t);
  10228. }
  10229. const Qne = Symbol("StyleContextKey"), yke = () => {
  10230. var t, e, n;
  10231. const r = In();
  10232. let i;
  10233. if (r && r.appContext) {
  10234. const a = (n = (e = (t = r.appContext) === null || t === void 0 ? void 0 : t.config) === null || e === void 0 ? void 0 : e.globalProperties) === null || n === void 0 ? void 0 : n.__ANTDV_CSSINJS_CACHE__;
  10235. a ? i = a : (i = Ab(), r.appContext.config.globalProperties && (r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = i));
  10236. } else
  10237. i = Ab();
  10238. return i;
  10239. }, Hne = {
  10240. cache: Ab(),
  10241. defaultCache: !0,
  10242. hashPriority: "low"
  10243. }, O2 = () => {
  10244. const t = yke();
  10245. return et(Qne, ve(k(k({}, Hne), {
  10246. cache: t
  10247. })));
  10248. }, bke = (t) => {
  10249. const e = O2(), n = ve(k(k({}, Hne), {
  10250. cache: Ab()
  10251. }));
  10252. return me([() => z(t), e], () => {
  10253. const r = k({}, e.value), i = z(t);
  10254. Object.keys(i).forEach((o) => {
  10255. const s = i[o];
  10256. i[o] !== void 0 && (r[o] = s);
  10257. });
  10258. const {
  10259. cache: a
  10260. } = i;
  10261. r.cache = r.cache || Ab(), r.defaultCache = !a && e.value.defaultCache, n.value = r;
  10262. }, {
  10263. immediate: !0
  10264. }), Et(Qne, n), n;
  10265. }, _ke = () => ({
  10266. autoClear: Tt(),
  10267. /** @private Test only. Not work in production. */
  10268. mock: rr(),
  10269. /**
  10270. * Only set when you need ssr to extract style on you own.
  10271. * If not provided, it will auto create <style /> on the end of Provider in server side.
  10272. */
  10273. cache: sn(),
  10274. /** Tell children that this context is default generated context */
  10275. defaultCache: Tt(),
  10276. /** Use `:where` selector to reduce hashId css selector priority */
  10277. hashPriority: rr(),
  10278. /** Tell cssinjs where to inject style in */
  10279. container: or(),
  10280. /** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
  10281. ssrInline: Tt(),
  10282. /** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
  10283. transformers: Lh(),
  10284. /**
  10285. * Linters to lint css before inject in document.
  10286. * Styles will be linted after transforming.
  10287. * Please note that `linters` do not support dynamic update.
  10288. */
  10289. linters: Lh()
  10290. });
  10291. fm(ae({
  10292. name: "AStyleProvider",
  10293. inheritAttrs: !1,
  10294. props: _ke(),
  10295. setup(t, e) {
  10296. let {
  10297. slots: n
  10298. } = e;
  10299. return bke(t), () => {
  10300. var r;
  10301. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  10302. };
  10303. }
  10304. }));
  10305. function Oke() {
  10306. return !1;
  10307. }
  10308. let fR = !1;
  10309. function Ske() {
  10310. return fR;
  10311. }
  10312. const xke = process.env.NODE_ENV === "production" ? Oke : Ske;
  10313. if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
  10314. const t = window;
  10315. if (typeof t.webpackHotUpdate == "function") {
  10316. const e = t.webpackHotUpdate;
  10317. t.webpackHotUpdate = function() {
  10318. return fR = !0, setTimeout(() => {
  10319. fR = !1;
  10320. }, 0), e(...arguments);
  10321. };
  10322. }
  10323. }
  10324. function Gne(t, e, n, r) {
  10325. const i = O2(), a = ve(""), o = ve();
  10326. Vt(() => {
  10327. a.value = [t, ...e.value].join("%");
  10328. });
  10329. const s = xke(), l = (u) => {
  10330. i.value.cache.update(u, (c) => {
  10331. const [f = 0, d] = c || [];
  10332. return f - 1 === 0 ? (r == null || r(d, !1), null) : [f - 1, d];
  10333. });
  10334. };
  10335. return me(a, (u, c) => {
  10336. c && l(c), i.value.cache.update(u, (f) => {
  10337. const [d = 0, h] = f || [];
  10338. let p = h;
  10339. process.env.NODE_ENV !== "production" && h && s && (r == null || r(p, s), p = null);
  10340. const v = p || n();
  10341. return [d + 1, v];
  10342. }), o.value = i.value.cache.get(a.value)[1];
  10343. }, {
  10344. immediate: !0
  10345. }), Qt(() => {
  10346. l(a.value);
  10347. }), o;
  10348. }
  10349. function is() {
  10350. return !!(typeof window < "u" && window.document && window.document.createElement);
  10351. }
  10352. function kc(t, e) {
  10353. return t && t.contains ? t.contains(e) : !1;
  10354. }
  10355. const YW = "data-vc-order", wke = "vc-util-key", dR = /* @__PURE__ */ new Map();
  10356. function jne() {
  10357. let {
  10358. mark: t
  10359. } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  10360. return t ? t.startsWith("data-") ? t : `data-${t}` : wke;
  10361. }
  10362. function S2(t) {
  10363. return t.attachTo ? t.attachTo : document.querySelector("head") || document.body;
  10364. }
  10365. function Cke(t) {
  10366. return t === "queue" ? "prependQueue" : t ? "prepend" : "append";
  10367. }
  10368. function Zne(t) {
  10369. return Array.from((dR.get(t) || t).children).filter((e) => e.tagName === "STYLE");
  10370. }
  10371. function Une(t) {
  10372. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  10373. if (!is())
  10374. return null;
  10375. const {
  10376. csp: n,
  10377. prepend: r
  10378. } = e, i = document.createElement("style");
  10379. i.setAttribute(YW, Cke(r)), n != null && n.nonce && (i.nonce = n == null ? void 0 : n.nonce), i.innerHTML = t;
  10380. const a = S2(e), {
  10381. firstChild: o
  10382. } = a;
  10383. if (r) {
  10384. if (r === "queue") {
  10385. const s = Zne(a).filter((l) => ["prepend", "prependQueue"].includes(l.getAttribute(YW)));
  10386. if (s.length)
  10387. return a.insertBefore(i, s[s.length - 1].nextSibling), i;
  10388. }
  10389. a.insertBefore(i, o);
  10390. } else
  10391. a.appendChild(i);
  10392. return i;
  10393. }
  10394. function Xne(t) {
  10395. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  10396. const n = S2(e);
  10397. return Zne(n).find((r) => r.getAttribute(jne(e)) === t);
  10398. }
  10399. function Xw(t) {
  10400. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  10401. const n = Xne(t, e);
  10402. n && S2(e).removeChild(n);
  10403. }
  10404. function Tke(t, e) {
  10405. const n = dR.get(t);
  10406. if (!n || !kc(document, n)) {
  10407. const r = Une("", e), {
  10408. parentNode: i
  10409. } = r;
  10410. dR.set(t, i), t.removeChild(r);
  10411. }
  10412. }
  10413. function Eb(t, e) {
  10414. let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  10415. var r, i, a;
  10416. const o = S2(n);
  10417. Tke(o, n);
  10418. const s = Xne(e, n);
  10419. if (s)
  10420. return !((r = n.csp) === null || r === void 0) && r.nonce && s.nonce !== ((i = n.csp) === null || i === void 0 ? void 0 : i.nonce) && (s.nonce = (a = n.csp) === null || a === void 0 ? void 0 : a.nonce), s.innerHTML !== t && (s.innerHTML = t), s;
  10421. const l = Une(t, n);
  10422. return l.setAttribute(jne(n), e), l;
  10423. }
  10424. function Pke(t, e) {
  10425. if (t.length !== e.length)
  10426. return !1;
  10427. for (let n = 0; n < t.length; n++)
  10428. if (t[n] !== e[n])
  10429. return !1;
  10430. return !0;
  10431. }
  10432. class Ag {
  10433. constructor() {
  10434. this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
  10435. }
  10436. size() {
  10437. return this.keys.length;
  10438. }
  10439. internalGet(e) {
  10440. let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = {
  10441. map: this.cache
  10442. };
  10443. return e.forEach((i) => {
  10444. var a;
  10445. r ? r = (a = r == null ? void 0 : r.map) === null || a === void 0 ? void 0 : a.get(i) : r = void 0;
  10446. }), r != null && r.value && n && (r.value[1] = this.cacheCallTimes++), r == null ? void 0 : r.value;
  10447. }
  10448. get(e) {
  10449. var n;
  10450. return (n = this.internalGet(e, !0)) === null || n === void 0 ? void 0 : n[0];
  10451. }
  10452. has(e) {
  10453. return !!this.internalGet(e);
  10454. }
  10455. set(e, n) {
  10456. if (!this.has(e)) {
  10457. if (this.size() + 1 > Ag.MAX_CACHE_SIZE + Ag.MAX_CACHE_OFFSET) {
  10458. const [i] = this.keys.reduce((a, o) => {
  10459. const [, s] = a;
  10460. return this.internalGet(o)[1] < s ? [o, this.internalGet(o)[1]] : a;
  10461. }, [this.keys[0], this.cacheCallTimes]);
  10462. this.delete(i);
  10463. }
  10464. this.keys.push(e);
  10465. }
  10466. let r = this.cache;
  10467. e.forEach((i, a) => {
  10468. if (a === e.length - 1)
  10469. r.set(i, {
  10470. value: [n, this.cacheCallTimes++]
  10471. });
  10472. else {
  10473. const o = r.get(i);
  10474. o ? o.map || (o.map = /* @__PURE__ */ new Map()) : r.set(i, {
  10475. map: /* @__PURE__ */ new Map()
  10476. }), r = r.get(i).map;
  10477. }
  10478. });
  10479. }
  10480. deleteByPath(e, n) {
  10481. var r;
  10482. const i = e.get(n[0]);
  10483. if (n.length === 1)
  10484. return i.map ? e.set(n[0], {
  10485. map: i.map
  10486. }) : e.delete(n[0]), (r = i.value) === null || r === void 0 ? void 0 : r[0];
  10487. const a = this.deleteByPath(i.map, n.slice(1));
  10488. return (!i.map || i.map.size === 0) && !i.value && e.delete(n[0]), a;
  10489. }
  10490. delete(e) {
  10491. if (this.has(e))
  10492. return this.keys = this.keys.filter((n) => !Pke(n, e)), this.deleteByPath(this.cache, e);
  10493. }
  10494. }
  10495. Ag.MAX_CACHE_SIZE = 20;
  10496. Ag.MAX_CACHE_OFFSET = 5;
  10497. let hR = {};
  10498. function Nh(t, e) {
  10499. process.env.NODE_ENV !== "production" && !t && console !== void 0 && console.error(`Warning: ${e}`);
  10500. }
  10501. function $ke(t, e) {
  10502. process.env.NODE_ENV !== "production" && !t && console !== void 0 && console.warn(`Note: ${e}`);
  10503. }
  10504. function Ake() {
  10505. hR = {};
  10506. }
  10507. function Yne(t, e, n) {
  10508. !e && !hR[n] && (t(!1, n), hR[n] = !0);
  10509. }
  10510. function Lo(t, e) {
  10511. Yne(Nh, t, e);
  10512. }
  10513. function qW(t, e) {
  10514. Yne($ke, t, e);
  10515. }
  10516. function Eke() {
  10517. }
  10518. let aa = Eke;
  10519. process.env.NODE_ENV !== "production" && (aa = (t, e, n) => {
  10520. Lo(t, `[ant-design-vue: ${e}] ${n}`), process.env.NODE_ENV === "test" && Ake();
  10521. });
  10522. let KW = 0;
  10523. class qne {
  10524. constructor(e) {
  10525. this.derivatives = Array.isArray(e) ? e : [e], this.id = KW, e.length === 0 && aa(e.length > 0, "[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."), KW += 1;
  10526. }
  10527. getDerivativeToken(e) {
  10528. return this.derivatives.reduce((n, r) => r(e, n), void 0);
  10529. }
  10530. }
  10531. const UA = new Ag();
  10532. function Kne(t) {
  10533. const e = Array.isArray(t) ? t : [t];
  10534. return UA.has(e) || UA.set(e, new qne(e)), UA.get(e);
  10535. }
  10536. const JW = /* @__PURE__ */ new WeakMap();
  10537. function Yw(t) {
  10538. let e = JW.get(t) || "";
  10539. return e || (Object.keys(t).forEach((n) => {
  10540. const r = t[n];
  10541. e += n, r instanceof qne ? e += r.id : r && typeof r == "object" ? e += Yw(r) : e += r;
  10542. }), JW.set(t, e)), e;
  10543. }
  10544. function Mke(t, e) {
  10545. return VN(`${e}_${Yw(t)}`);
  10546. }
  10547. const Vy = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), Jne = "_bAmBoO_";
  10548. function Ike(t, e, n) {
  10549. var r, i;
  10550. if (is()) {
  10551. Eb(t, Vy);
  10552. const a = document.createElement("div");
  10553. a.style.position = "fixed", a.style.left = "0", a.style.top = "0", e == null || e(a), document.body.appendChild(a), process.env.NODE_ENV !== "production" && (a.innerHTML = "Test", a.style.zIndex = "9999999");
  10554. const o = n ? n(a) : (r = getComputedStyle(a).content) === null || r === void 0 ? void 0 : r.includes(Jne);
  10555. return (i = a.parentNode) === null || i === void 0 || i.removeChild(a), Xw(Vy), o;
  10556. }
  10557. return !1;
  10558. }
  10559. let XA;
  10560. function Dke() {
  10561. return XA === void 0 && (XA = Ike(`@layer ${Vy} { .${Vy} { content: "${Jne}"!important; } }`, (t) => {
  10562. t.className = Vy;
  10563. })), XA;
  10564. }
  10565. const e7 = {}, Rke = process.env.NODE_ENV === "production", kke = process.env.NODE_ENV === "prerender", Lke = !Rke && !kke ? "css-dev-only-do-not-override" : "css", Wd = /* @__PURE__ */ new Map();
  10566. function Nke(t) {
  10567. Wd.set(t, (Wd.get(t) || 0) + 1);
  10568. }
  10569. function Bke(t, e) {
  10570. typeof document < "u" && document.querySelectorAll(`style[${Wne}="${t}"]`).forEach((r) => {
  10571. var i;
  10572. r[Av] === e && ((i = r.parentNode) === null || i === void 0 || i.removeChild(r));
  10573. });
  10574. }
  10575. const zke = 0;
  10576. function Vke(t, e) {
  10577. Wd.set(t, (Wd.get(t) || 0) - 1);
  10578. const n = Array.from(Wd.keys()), r = n.filter((i) => (Wd.get(i) || 0) <= 0);
  10579. n.length - r.length > zke && r.forEach((i) => {
  10580. Bke(i, e), Wd.delete(i);
  10581. });
  10582. }
  10583. const Fke = (t, e, n, r) => {
  10584. const i = n.getDerivativeToken(t);
  10585. let a = k(k({}, i), e);
  10586. return r && (a = r(a)), a;
  10587. };
  10588. function Wke(t, e) {
  10589. let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ee({});
  10590. const r = O2(), i = V(() => k({}, ...e.value)), a = V(() => Yw(i.value)), o = V(() => Yw(n.value.override || e7));
  10591. return Gne("token", V(() => [n.value.salt || "", t.value.id, a.value, o.value]), () => {
  10592. const {
  10593. salt: l = "",
  10594. override: u = e7,
  10595. formatToken: c,
  10596. getComputedToken: f
  10597. } = n.value, d = f ? f(i.value, u, t.value) : Fke(i.value, u, t.value, c), h = Mke(d, l);
  10598. d._tokenKey = h, Nke(h);
  10599. const p = `${Lke}-${VN(h)}`;
  10600. return d._hashId = p, [d, p];
  10601. }, (l) => {
  10602. var u;
  10603. Vke(l[0]._tokenKey, (u = r.value) === null || u === void 0 ? void 0 : u.cache.instanceId);
  10604. });
  10605. }
  10606. var Qke = {
  10607. animationIterationCount: 1,
  10608. aspectRatio: 1,
  10609. borderImageOutset: 1,
  10610. borderImageSlice: 1,
  10611. borderImageWidth: 1,
  10612. boxFlex: 1,
  10613. boxFlexGroup: 1,
  10614. boxOrdinalGroup: 1,
  10615. columnCount: 1,
  10616. columns: 1,
  10617. flex: 1,
  10618. flexGrow: 1,
  10619. flexPositive: 1,
  10620. flexShrink: 1,
  10621. flexNegative: 1,
  10622. flexOrder: 1,
  10623. gridRow: 1,
  10624. gridRowEnd: 1,
  10625. gridRowSpan: 1,
  10626. gridRowStart: 1,
  10627. gridColumn: 1,
  10628. gridColumnEnd: 1,
  10629. gridColumnSpan: 1,
  10630. gridColumnStart: 1,
  10631. msGridRow: 1,
  10632. msGridRowSpan: 1,
  10633. msGridColumn: 1,
  10634. msGridColumnSpan: 1,
  10635. fontWeight: 1,
  10636. lineHeight: 1,
  10637. opacity: 1,
  10638. order: 1,
  10639. orphans: 1,
  10640. tabSize: 1,
  10641. widows: 1,
  10642. zIndex: 1,
  10643. zoom: 1,
  10644. WebkitLineClamp: 1,
  10645. // SVG-related properties
  10646. fillOpacity: 1,
  10647. floodOpacity: 1,
  10648. stopOpacity: 1,
  10649. strokeDasharray: 1,
  10650. strokeDashoffset: 1,
  10651. strokeMiterlimit: 1,
  10652. strokeOpacity: 1,
  10653. strokeWidth: 1
  10654. }, ere = "comm", tre = "rule", nre = "decl", Hke = "@import", Gke = "@keyframes", jke = "@layer", rre = Math.abs, FN = String.fromCharCode;
  10655. function ire(t) {
  10656. return t.trim();
  10657. }
  10658. function Hx(t, e, n) {
  10659. return t.replace(e, n);
  10660. }
  10661. function Zke(t, e, n) {
  10662. return t.indexOf(e, n);
  10663. }
  10664. function Mb(t, e) {
  10665. return t.charCodeAt(e) | 0;
  10666. }
  10667. function Ib(t, e, n) {
  10668. return t.slice(e, n);
  10669. }
  10670. function _u(t) {
  10671. return t.length;
  10672. }
  10673. function Uke(t) {
  10674. return t.length;
  10675. }
  10676. function WO(t, e) {
  10677. return e.push(t), t;
  10678. }
  10679. var x2 = 1, Eg = 1, are = 0, as = 0, Nr = 0, dm = "";
  10680. function WN(t, e, n, r, i, a, o, s) {
  10681. return { value: t, root: e, parent: n, type: r, props: i, children: a, line: x2, column: Eg, length: o, return: "", siblings: s };
  10682. }
  10683. function Xke() {
  10684. return Nr;
  10685. }
  10686. function Yke() {
  10687. return Nr = as > 0 ? Mb(dm, --as) : 0, Eg--, Nr === 10 && (Eg = 1, x2--), Nr;
  10688. }
  10689. function ks() {
  10690. return Nr = as < are ? Mb(dm, as++) : 0, Eg++, Nr === 10 && (Eg = 1, x2++), Nr;
  10691. }
  10692. function yh() {
  10693. return Mb(dm, as);
  10694. }
  10695. function Gx() {
  10696. return as;
  10697. }
  10698. function w2(t, e) {
  10699. return Ib(dm, t, e);
  10700. }
  10701. function pR(t) {
  10702. switch (t) {
  10703. case 0:
  10704. case 9:
  10705. case 10:
  10706. case 13:
  10707. case 32:
  10708. return 5;
  10709. case 33:
  10710. case 43:
  10711. case 44:
  10712. case 47:
  10713. case 62:
  10714. case 64:
  10715. case 126:
  10716. case 59:
  10717. case 123:
  10718. case 125:
  10719. return 4;
  10720. case 58:
  10721. return 3;
  10722. case 34:
  10723. case 39:
  10724. case 40:
  10725. case 91:
  10726. return 2;
  10727. case 41:
  10728. case 93:
  10729. return 1;
  10730. }
  10731. return 0;
  10732. }
  10733. function qke(t) {
  10734. return x2 = Eg = 1, are = _u(dm = t), as = 0, [];
  10735. }
  10736. function Kke(t) {
  10737. return dm = "", t;
  10738. }
  10739. function YA(t) {
  10740. return ire(w2(as - 1, vR(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
  10741. }
  10742. function Jke(t) {
  10743. for (; (Nr = yh()) && Nr < 33; )
  10744. ks();
  10745. return pR(t) > 2 || pR(Nr) > 3 ? "" : " ";
  10746. }
  10747. function eLe(t, e) {
  10748. for (; --e && ks() && !(Nr < 48 || Nr > 102 || Nr > 57 && Nr < 65 || Nr > 70 && Nr < 97); )
  10749. ;
  10750. return w2(t, Gx() + (e < 6 && yh() == 32 && ks() == 32));
  10751. }
  10752. function vR(t) {
  10753. for (; ks(); )
  10754. switch (Nr) {
  10755. case t:
  10756. return as;
  10757. case 34:
  10758. case 39:
  10759. t !== 34 && t !== 39 && vR(Nr);
  10760. break;
  10761. case 40:
  10762. t === 41 && vR(t);
  10763. break;
  10764. case 92:
  10765. ks();
  10766. break;
  10767. }
  10768. return as;
  10769. }
  10770. function tLe(t, e) {
  10771. for (; ks() && t + Nr !== 57; )
  10772. if (t + Nr === 84 && yh() === 47)
  10773. break;
  10774. return "/*" + w2(e, as - 1) + "*" + FN(t === 47 ? t : ks());
  10775. }
  10776. function nLe(t) {
  10777. for (; !pR(yh()); )
  10778. ks();
  10779. return w2(t, as);
  10780. }
  10781. function rLe(t) {
  10782. return Kke(jx("", null, null, null, [""], t = qke(t), 0, [0], t));
  10783. }
  10784. function jx(t, e, n, r, i, a, o, s, l) {
  10785. for (var u = 0, c = 0, f = o, d = 0, h = 0, p = 0, v = 1, g = 1, m = 1, y = 0, _ = "", O = i, S = a, x = r, C = _; g; )
  10786. switch (p = y, y = ks()) {
  10787. case 40:
  10788. if (p != 108 && Mb(C, f - 1) == 58) {
  10789. Zke(C += Hx(YA(y), "&", "&\f"), "&\f", rre(u ? s[u - 1] : 0)) != -1 && (m = -1);
  10790. break;
  10791. }
  10792. case 34:
  10793. case 39:
  10794. case 91:
  10795. C += YA(y);
  10796. break;
  10797. case 9:
  10798. case 10:
  10799. case 13:
  10800. case 32:
  10801. C += Jke(p);
  10802. break;
  10803. case 92:
  10804. C += eLe(Gx() - 1, 7);
  10805. continue;
  10806. case 47:
  10807. switch (yh()) {
  10808. case 42:
  10809. case 47:
  10810. WO(iLe(tLe(ks(), Gx()), e, n, l), l);
  10811. break;
  10812. default:
  10813. C += "/";
  10814. }
  10815. break;
  10816. case 123 * v:
  10817. s[u++] = _u(C) * m;
  10818. case 125 * v:
  10819. case 59:
  10820. case 0:
  10821. switch (y) {
  10822. case 0:
  10823. case 125:
  10824. g = 0;
  10825. case 59 + c:
  10826. m == -1 && (C = Hx(C, /\f/g, "")), h > 0 && _u(C) - f && WO(h > 32 ? n7(C + ";", r, n, f - 1, l) : n7(Hx(C, " ", "") + ";", r, n, f - 2, l), l);
  10827. break;
  10828. case 59:
  10829. C += ";";
  10830. default:
  10831. if (WO(x = t7(C, e, n, u, c, i, s, _, O = [], S = [], f, a), a), y === 123)
  10832. if (c === 0)
  10833. jx(C, e, x, x, O, a, f, s, S);
  10834. else
  10835. switch (d === 99 && Mb(C, 3) === 110 ? 100 : d) {
  10836. case 100:
  10837. case 108:
  10838. case 109:
  10839. case 115:
  10840. jx(t, x, x, r && WO(t7(t, x, x, 0, 0, i, s, _, i, O = [], f, S), S), i, S, f, s, r ? O : S);
  10841. break;
  10842. default:
  10843. jx(C, x, x, x, [""], S, 0, s, S);
  10844. }
  10845. }
  10846. u = c = h = 0, v = m = 1, _ = C = "", f = o;
  10847. break;
  10848. case 58:
  10849. f = 1 + _u(C), h = p;
  10850. default:
  10851. if (v < 1) {
  10852. if (y == 123)
  10853. --v;
  10854. else if (y == 125 && v++ == 0 && Yke() == 125)
  10855. continue;
  10856. }
  10857. switch (C += FN(y), y * v) {
  10858. case 38:
  10859. m = c > 0 ? 1 : (C += "\f", -1);
  10860. break;
  10861. case 44:
  10862. s[u++] = (_u(C) - 1) * m, m = 1;
  10863. break;
  10864. case 64:
  10865. yh() === 45 && (C += YA(ks())), d = yh(), c = f = _u(_ = C += nLe(Gx())), y++;
  10866. break;
  10867. case 45:
  10868. p === 45 && _u(C) == 2 && (v = 0);
  10869. }
  10870. }
  10871. return a;
  10872. }
  10873. function t7(t, e, n, r, i, a, o, s, l, u, c, f) {
  10874. for (var d = i - 1, h = i === 0 ? a : [""], p = Uke(h), v = 0, g = 0, m = 0; v < r; ++v)
  10875. for (var y = 0, _ = Ib(t, d + 1, d = rre(g = o[v])), O = t; y < p; ++y)
  10876. (O = ire(g > 0 ? h[y] + " " + _ : Hx(_, /&\f/g, h[y]))) && (l[m++] = O);
  10877. return WN(t, e, n, i === 0 ? tre : s, l, u, c, f);
  10878. }
  10879. function iLe(t, e, n, r) {
  10880. return WN(t, e, n, ere, FN(Xke()), Ib(t, 2, -2), 0, r);
  10881. }
  10882. function n7(t, e, n, r, i) {
  10883. return WN(t, e, n, nre, Ib(t, 0, r), Ib(t, r + 1, -1), r, i);
  10884. }
  10885. function gR(t, e) {
  10886. for (var n = "", r = 0; r < t.length; r++)
  10887. n += e(t[r], r, t, e) || "";
  10888. return n;
  10889. }
  10890. function aLe(t, e, n, r) {
  10891. switch (t.type) {
  10892. case jke:
  10893. if (t.children.length) break;
  10894. case Hke:
  10895. case nre:
  10896. return t.return = t.return || t.value;
  10897. case ere:
  10898. return "";
  10899. case Gke:
  10900. return t.return = t.value + "{" + gR(t.children, r) + "}";
  10901. case tre:
  10902. if (!_u(t.value = t.props.join(","))) return "";
  10903. }
  10904. return _u(n = gR(t.children, r)) ? t.return = t.value + "{" + n + "}" : "";
  10905. }
  10906. function ore(t, e) {
  10907. const {
  10908. path: n,
  10909. parentSelectors: r
  10910. } = e;
  10911. Lo(!1, `[Ant Design Vue CSS-in-JS] ${n ? `Error in '${n}': ` : ""}${t}${r.length ? ` Selector info: ${r.join(" -> ")}` : ""}`);
  10912. }
  10913. const oLe = (t, e, n) => {
  10914. if (t === "content") {
  10915. const r = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
  10916. (typeof e != "string" || ["normal", "none", "initial", "inherit", "unset"].indexOf(e) === -1 && !r.test(e) && (e.charAt(0) !== e.charAt(e.length - 1) || e.charAt(0) !== '"' && e.charAt(0) !== "'")) && ore(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`, n);
  10917. }
  10918. }, sLe = (t, e, n) => {
  10919. t === "animation" && n.hashId && e !== "none" && ore(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`, n);
  10920. }, r7 = "data-ant-cssinjs-cache-path", lLe = "_FILE_STYLE__";
  10921. let bh, sre = !0;
  10922. function uLe() {
  10923. var t;
  10924. if (!bh && (bh = {}, is())) {
  10925. const e = document.createElement("div");
  10926. e.className = r7, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
  10927. let n = getComputedStyle(e).content || "";
  10928. n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((i) => {
  10929. const [a, o] = i.split(":");
  10930. bh[a] = o;
  10931. });
  10932. const r = document.querySelector(`style[${r7}]`);
  10933. r && (sre = !1, (t = r.parentNode) === null || t === void 0 || t.removeChild(r)), document.body.removeChild(e);
  10934. }
  10935. }
  10936. function cLe(t) {
  10937. return uLe(), !!bh[t];
  10938. }
  10939. function fLe(t) {
  10940. const e = bh[t];
  10941. let n = null;
  10942. if (e && is())
  10943. if (sre)
  10944. n = lLe;
  10945. else {
  10946. const r = document.querySelector(`style[${mh}="${bh[t]}"]`);
  10947. r ? n = r.innerHTML : delete bh[t];
  10948. }
  10949. return [n, e];
  10950. }
  10951. const i7 = is(), lre = "_skip_check_", ure = "_multi_value_";
  10952. function a7(t) {
  10953. return gR(rLe(t), aLe).replace(/\{%%%\:[^;];}/g, ";");
  10954. }
  10955. function dLe(t) {
  10956. return typeof t == "object" && t && (lre in t || ure in t);
  10957. }
  10958. function hLe(t, e, n) {
  10959. if (!e)
  10960. return t;
  10961. const r = `.${e}`, i = n === "low" ? `:where(${r})` : r;
  10962. return t.split(",").map((o) => {
  10963. var s;
  10964. const l = o.trim().split(/\s+/);
  10965. let u = l[0] || "";
  10966. const c = ((s = u.match(/^\w+/)) === null || s === void 0 ? void 0 : s[0]) || "";
  10967. return u = `${c}${i}${u.slice(c.length)}`, [u, ...l.slice(1)].join(" ");
  10968. }).join(",");
  10969. }
  10970. const mR = /* @__PURE__ */ new Set();
  10971. process.env.NODE_ENV;
  10972. const yR = function(t) {
  10973. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
  10974. root: n,
  10975. injectHash: r,
  10976. parentSelectors: i
  10977. } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
  10978. root: !0,
  10979. parentSelectors: []
  10980. };
  10981. const {
  10982. hashId: a,
  10983. layer: o,
  10984. path: s,
  10985. hashPriority: l,
  10986. transformers: u = [],
  10987. linters: c = []
  10988. } = e;
  10989. let f = "", d = {};
  10990. function h(g) {
  10991. const m = g.getName(a);
  10992. if (!d[m]) {
  10993. const [y] = yR(g.style, e, {
  10994. root: !1,
  10995. parentSelectors: i
  10996. });
  10997. d[m] = `@keyframes ${g.getName(a)}${y}`;
  10998. }
  10999. }
  11000. function p(g) {
  11001. let m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
  11002. return g.forEach((y) => {
  11003. Array.isArray(y) ? p(y, m) : y && m.push(y);
  11004. }), m;
  11005. }
  11006. if (p(Array.isArray(t) ? t : [t]).forEach((g) => {
  11007. const m = typeof g == "string" && !n ? {} : g;
  11008. if (typeof m == "string")
  11009. f += `${m}
  11010. `;
  11011. else if (m._keyframe)
  11012. h(m);
  11013. else {
  11014. const y = u.reduce((_, O) => {
  11015. var S;
  11016. return ((S = O == null ? void 0 : O.visit) === null || S === void 0 ? void 0 : S.call(O, _)) || _;
  11017. }, m);
  11018. Object.keys(y).forEach((_) => {
  11019. var O;
  11020. const S = y[_];
  11021. if (typeof S == "object" && S && (_ !== "animationName" || !S._keyframe) && !dLe(S)) {
  11022. let x = !1, C = _.trim(), P = !1;
  11023. (n || r) && a ? C.startsWith("@") ? x = !0 : C = hLe(_, a, l) : n && !a && (C === "&" || C === "") && (C = "", P = !0);
  11024. const [$, T] = yR(S, e, {
  11025. root: P,
  11026. injectHash: x,
  11027. parentSelectors: [...i, C]
  11028. });
  11029. d = k(k({}, d), T), f += `${C}${$}`;
  11030. } else {
  11031. let x = function(P, $) {
  11032. process.env.NODE_ENV !== "production" && (typeof S != "object" || !(S != null && S[lre])) && [oLe, sLe, ...c].forEach((M) => M(P, $, {
  11033. path: s,
  11034. hashId: a,
  11035. parentSelectors: i
  11036. }));
  11037. const T = P.replace(/[A-Z]/g, (M) => `-${M.toLowerCase()}`);
  11038. let E = $;
  11039. !Qke[P] && typeof E == "number" && E !== 0 && (E = `${E}px`), P === "animationName" && ($ != null && $._keyframe) && (h($), E = $.getName(a)), f += `${T}:${E};`;
  11040. };
  11041. const C = (O = S == null ? void 0 : S.value) !== null && O !== void 0 ? O : S;
  11042. typeof S == "object" && (S != null && S[ure]) && Array.isArray(C) ? C.forEach((P) => {
  11043. x(_, P);
  11044. }) : x(_, C);
  11045. }
  11046. });
  11047. }
  11048. }), !n)
  11049. f = `{${f}}`;
  11050. else if (o && Dke()) {
  11051. const g = o.split(",");
  11052. f = `@layer ${g[g.length - 1].trim()} {${f}}`, g.length > 1 && (f = `@layer ${o}{%%%:%}${f}`);
  11053. }
  11054. return [f, d];
  11055. };
  11056. function pLe(t, e) {
  11057. return VN(`${t.join("%")}${e}`);
  11058. }
  11059. function bR(t, e) {
  11060. const n = O2(), r = V(() => t.value.token._tokenKey), i = V(() => [r.value, ...t.value.path]);
  11061. let a = i7;
  11062. return process.env.NODE_ENV !== "production" && n.value.mock !== void 0 && (a = n.value.mock === "client"), Gne(
  11063. "style",
  11064. i,
  11065. // Create cache if needed
  11066. () => {
  11067. const {
  11068. path: o,
  11069. hashId: s,
  11070. layer: l,
  11071. nonce: u,
  11072. clientOnly: c,
  11073. order: f = 0
  11074. } = t.value, d = i.value.join("|");
  11075. if (cLe(d)) {
  11076. const [C, P] = fLe(d);
  11077. if (C)
  11078. return [C, r.value, P, {}, c, f];
  11079. }
  11080. const h = e(), {
  11081. hashPriority: p,
  11082. container: v,
  11083. transformers: g,
  11084. linters: m,
  11085. cache: y
  11086. } = n.value, [_, O] = yR(h, {
  11087. hashId: s,
  11088. hashPriority: p,
  11089. layer: l,
  11090. path: o.join("-"),
  11091. transformers: g,
  11092. linters: m
  11093. }), S = a7(_), x = pLe(i.value, S);
  11094. if (a) {
  11095. const C = {
  11096. mark: mh,
  11097. prepend: "queue",
  11098. attachTo: v,
  11099. priority: f
  11100. }, P = typeof u == "function" ? u() : u;
  11101. P && (C.csp = {
  11102. nonce: P
  11103. });
  11104. const $ = Eb(S, x, C);
  11105. $[Av] = y.instanceId, $.setAttribute(Wne, r.value), process.env.NODE_ENV !== "production" && $.setAttribute(mke, i.value.join("|")), Object.keys(O).forEach((T) => {
  11106. mR.has(T) || (mR.add(T), Eb(a7(O[T]), `_effect-${T}`, {
  11107. mark: mh,
  11108. prepend: "queue",
  11109. attachTo: v
  11110. }));
  11111. });
  11112. }
  11113. return [S, r.value, x, O, c, f];
  11114. },
  11115. // Remove cache if no need
  11116. (o, s) => {
  11117. let [, , l] = o;
  11118. (s || n.value.autoClear) && i7 && Xw(l, {
  11119. mark: mh
  11120. });
  11121. }
  11122. ), (o) => o;
  11123. }
  11124. class qt {
  11125. constructor(e, n) {
  11126. this._keyframe = !0, this.name = e, this.style = n;
  11127. }
  11128. getName() {
  11129. let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
  11130. return e ? `${e}-${this.name}` : this.name;
  11131. }
  11132. }
  11133. const vLe = "4.2.3", qw = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
  11134. var QO = 2, o7 = 0.16, gLe = 0.05, mLe = 0.05, yLe = 0.15, cre = 5, fre = 4, bLe = [{
  11135. index: 7,
  11136. opacity: 0.15
  11137. }, {
  11138. index: 6,
  11139. opacity: 0.25
  11140. }, {
  11141. index: 5,
  11142. opacity: 0.3
  11143. }, {
  11144. index: 5,
  11145. opacity: 0.45
  11146. }, {
  11147. index: 5,
  11148. opacity: 0.65
  11149. }, {
  11150. index: 5,
  11151. opacity: 0.85
  11152. }, {
  11153. index: 4,
  11154. opacity: 0.9
  11155. }, {
  11156. index: 3,
  11157. opacity: 0.95
  11158. }, {
  11159. index: 2,
  11160. opacity: 0.97
  11161. }, {
  11162. index: 1,
  11163. opacity: 0.98
  11164. }];
  11165. function s7(t) {
  11166. var e = t.r, n = t.g, r = t.b, i = rR(e, n, r);
  11167. return {
  11168. h: i.h * 360,
  11169. s: i.s,
  11170. v: i.v
  11171. };
  11172. }
  11173. function HO(t) {
  11174. var e = t.r, n = t.g, r = t.b;
  11175. return "#".concat(iR(e, n, r, !1));
  11176. }
  11177. function _Le(t, e, n) {
  11178. var r = n / 100, i = {
  11179. r: (e.r - t.r) * r + t.r,
  11180. g: (e.g - t.g) * r + t.g,
  11181. b: (e.b - t.b) * r + t.b
  11182. };
  11183. return i;
  11184. }
  11185. function l7(t, e, n) {
  11186. var r;
  11187. return Math.round(t.h) >= 60 && Math.round(t.h) <= 240 ? r = n ? Math.round(t.h) - QO * e : Math.round(t.h) + QO * e : r = n ? Math.round(t.h) + QO * e : Math.round(t.h) - QO * e, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
  11188. }
  11189. function u7(t, e, n) {
  11190. if (t.h === 0 && t.s === 0)
  11191. return t.s;
  11192. var r;
  11193. return n ? r = t.s - o7 * e : e === fre ? r = t.s + o7 : r = t.s + gLe * e, r > 1 && (r = 1), n && e === cre && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
  11194. }
  11195. function c7(t, e, n) {
  11196. var r;
  11197. return n ? r = t.v + mLe * e : r = t.v - yLe * e, r > 1 && (r = 1), Number(r.toFixed(2));
  11198. }
  11199. function Bh(t) {
  11200. for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = yv(t), i = cre; i > 0; i -= 1) {
  11201. var a = s7(r), o = HO(yv({
  11202. h: l7(a, i, !0),
  11203. s: u7(a, i, !0),
  11204. v: c7(a, i, !0)
  11205. }));
  11206. n.push(o);
  11207. }
  11208. n.push(HO(r));
  11209. for (var s = 1; s <= fre; s += 1) {
  11210. var l = s7(r), u = HO(yv({
  11211. h: l7(l, s),
  11212. s: u7(l, s),
  11213. v: c7(l, s)
  11214. }));
  11215. n.push(u);
  11216. }
  11217. return e.theme === "dark" ? bLe.map(function(c) {
  11218. var f = c.index, d = c.opacity, h = HO(_Le(yv(e.backgroundColor || "#141414"), yv(n[f]), d * 100));
  11219. return h;
  11220. }) : n;
  11221. }
  11222. var qA = {
  11223. red: "#F5222D",
  11224. volcano: "#FA541C",
  11225. orange: "#FA8C16",
  11226. gold: "#FAAD14",
  11227. yellow: "#FADB14",
  11228. lime: "#A0D911",
  11229. green: "#52C41A",
  11230. cyan: "#13C2C2",
  11231. blue: "#1890FF",
  11232. geekblue: "#2F54EB",
  11233. purple: "#722ED1",
  11234. magenta: "#EB2F96",
  11235. grey: "#666666"
  11236. }, Zx = {}, KA = {};
  11237. Object.keys(qA).forEach(function(t) {
  11238. Zx[t] = Bh(qA[t]), Zx[t].primary = Zx[t][5], KA[t] = Bh(qA[t], {
  11239. theme: "dark",
  11240. backgroundColor: "#141414"
  11241. }), KA[t].primary = KA[t][5];
  11242. });
  11243. var OLe = Zx.blue;
  11244. const SLe = (t) => {
  11245. const {
  11246. controlHeight: e
  11247. } = t;
  11248. return {
  11249. controlHeightSM: e * 0.75,
  11250. controlHeightXS: e * 0.5,
  11251. controlHeightLG: e * 1.25
  11252. };
  11253. };
  11254. function xLe(t) {
  11255. const {
  11256. sizeUnit: e,
  11257. sizeStep: n
  11258. } = t;
  11259. return {
  11260. sizeXXL: e * (n + 8),
  11261. sizeXL: e * (n + 4),
  11262. sizeLG: e * (n + 2),
  11263. sizeMD: e * (n + 1),
  11264. sizeMS: e * n,
  11265. size: e * n,
  11266. sizeSM: e * (n - 1),
  11267. sizeXS: e * (n - 2),
  11268. sizeXXS: e * (n - 3)
  11269. // 4
  11270. };
  11271. }
  11272. const dre = {
  11273. blue: "#1677ff",
  11274. purple: "#722ED1",
  11275. cyan: "#13C2C2",
  11276. green: "#52C41A",
  11277. magenta: "#EB2F96",
  11278. pink: "#eb2f96",
  11279. red: "#F5222D",
  11280. orange: "#FA8C16",
  11281. yellow: "#FADB14",
  11282. volcano: "#FA541C",
  11283. geekblue: "#2F54EB",
  11284. gold: "#FAAD14",
  11285. lime: "#A0D911"
  11286. }, C2 = k(k({}, dre), {
  11287. // Color
  11288. colorPrimary: "#1677ff",
  11289. colorSuccess: "#52c41a",
  11290. colorWarning: "#faad14",
  11291. colorError: "#ff4d4f",
  11292. colorInfo: "#1677ff",
  11293. colorTextBase: "",
  11294. colorBgBase: "",
  11295. // Font
  11296. fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  11297. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  11298. 'Noto Color Emoji'`,
  11299. fontSize: 14,
  11300. // Line
  11301. lineWidth: 1,
  11302. lineType: "solid",
  11303. // Motion
  11304. motionUnit: 0.1,
  11305. motionBase: 0,
  11306. motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
  11307. motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
  11308. motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
  11309. motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
  11310. motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
  11311. motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
  11312. motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
  11313. motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
  11314. // Radius
  11315. borderRadius: 6,
  11316. // Size
  11317. sizeUnit: 4,
  11318. sizeStep: 4,
  11319. sizePopupArrow: 16,
  11320. // Control Base
  11321. controlHeight: 32,
  11322. // zIndex
  11323. zIndexBase: 0,
  11324. zIndexPopupBase: 1e3,
  11325. // Image
  11326. opacityImage: 1,
  11327. // Wireframe
  11328. wireframe: !1
  11329. });
  11330. function wLe(t, e) {
  11331. let {
  11332. generateColorPalettes: n,
  11333. generateNeutralColorPalettes: r
  11334. } = e;
  11335. const {
  11336. colorSuccess: i,
  11337. colorWarning: a,
  11338. colorError: o,
  11339. colorInfo: s,
  11340. colorPrimary: l,
  11341. colorBgBase: u,
  11342. colorTextBase: c
  11343. } = t, f = n(l), d = n(i), h = n(a), p = n(o), v = n(s), g = r(u, c);
  11344. return k(k({}, g), {
  11345. colorPrimaryBg: f[1],
  11346. colorPrimaryBgHover: f[2],
  11347. colorPrimaryBorder: f[3],
  11348. colorPrimaryBorderHover: f[4],
  11349. colorPrimaryHover: f[5],
  11350. colorPrimary: f[6],
  11351. colorPrimaryActive: f[7],
  11352. colorPrimaryTextHover: f[8],
  11353. colorPrimaryText: f[9],
  11354. colorPrimaryTextActive: f[10],
  11355. colorSuccessBg: d[1],
  11356. colorSuccessBgHover: d[2],
  11357. colorSuccessBorder: d[3],
  11358. colorSuccessBorderHover: d[4],
  11359. colorSuccessHover: d[4],
  11360. colorSuccess: d[6],
  11361. colorSuccessActive: d[7],
  11362. colorSuccessTextHover: d[8],
  11363. colorSuccessText: d[9],
  11364. colorSuccessTextActive: d[10],
  11365. colorErrorBg: p[1],
  11366. colorErrorBgHover: p[2],
  11367. colorErrorBorder: p[3],
  11368. colorErrorBorderHover: p[4],
  11369. colorErrorHover: p[5],
  11370. colorError: p[6],
  11371. colorErrorActive: p[7],
  11372. colorErrorTextHover: p[8],
  11373. colorErrorText: p[9],
  11374. colorErrorTextActive: p[10],
  11375. colorWarningBg: h[1],
  11376. colorWarningBgHover: h[2],
  11377. colorWarningBorder: h[3],
  11378. colorWarningBorderHover: h[4],
  11379. colorWarningHover: h[4],
  11380. colorWarning: h[6],
  11381. colorWarningActive: h[7],
  11382. colorWarningTextHover: h[8],
  11383. colorWarningText: h[9],
  11384. colorWarningTextActive: h[10],
  11385. colorInfoBg: v[1],
  11386. colorInfoBgHover: v[2],
  11387. colorInfoBorder: v[3],
  11388. colorInfoBorderHover: v[4],
  11389. colorInfoHover: v[4],
  11390. colorInfo: v[6],
  11391. colorInfoActive: v[7],
  11392. colorInfoTextHover: v[8],
  11393. colorInfoText: v[9],
  11394. colorInfoTextActive: v[10],
  11395. colorBgMask: new Hn("#000").setAlpha(0.45).toRgbString(),
  11396. colorWhite: "#fff"
  11397. });
  11398. }
  11399. const CLe = (t) => {
  11400. let e = t, n = t, r = t, i = t;
  11401. return t < 6 && t >= 5 ? e = t + 1 : t < 16 && t >= 6 ? e = t + 2 : t >= 16 && (e = 16), t < 7 && t >= 5 ? n = 4 : t < 8 && t >= 7 ? n = 5 : t < 14 && t >= 8 ? n = 6 : t < 16 && t >= 14 ? n = 7 : t >= 16 && (n = 8), t < 6 && t >= 2 ? r = 1 : t >= 6 && (r = 2), t > 4 && t < 8 ? i = 4 : t >= 8 && (i = 6), {
  11402. borderRadius: t > 16 ? 16 : t,
  11403. borderRadiusXS: r,
  11404. borderRadiusSM: n,
  11405. borderRadiusLG: e,
  11406. borderRadiusOuter: i
  11407. };
  11408. };
  11409. function TLe(t) {
  11410. const {
  11411. motionUnit: e,
  11412. motionBase: n,
  11413. borderRadius: r,
  11414. lineWidth: i
  11415. } = t;
  11416. return k({
  11417. // motion
  11418. motionDurationFast: `${(n + e).toFixed(1)}s`,
  11419. motionDurationMid: `${(n + e * 2).toFixed(1)}s`,
  11420. motionDurationSlow: `${(n + e * 3).toFixed(1)}s`,
  11421. // line
  11422. lineWidthBold: i + 1
  11423. }, CLe(r));
  11424. }
  11425. const hu = (t, e) => new Hn(t).setAlpha(e).toRgbString(), y0 = (t, e) => new Hn(t).darken(e).toHexString(), PLe = (t) => {
  11426. const e = Bh(t);
  11427. return {
  11428. 1: e[0],
  11429. 2: e[1],
  11430. 3: e[2],
  11431. 4: e[3],
  11432. 5: e[4],
  11433. 6: e[5],
  11434. 7: e[6],
  11435. 8: e[4],
  11436. 9: e[5],
  11437. 10: e[6]
  11438. // 8: colors[7],
  11439. // 9: colors[8],
  11440. // 10: colors[9],
  11441. };
  11442. }, $Le = (t, e) => {
  11443. const n = t || "#fff", r = e || "#000";
  11444. return {
  11445. colorBgBase: n,
  11446. colorTextBase: r,
  11447. colorText: hu(r, 0.88),
  11448. colorTextSecondary: hu(r, 0.65),
  11449. colorTextTertiary: hu(r, 0.45),
  11450. colorTextQuaternary: hu(r, 0.25),
  11451. colorFill: hu(r, 0.15),
  11452. colorFillSecondary: hu(r, 0.06),
  11453. colorFillTertiary: hu(r, 0.04),
  11454. colorFillQuaternary: hu(r, 0.02),
  11455. colorBgLayout: y0(n, 4),
  11456. colorBgContainer: y0(n, 0),
  11457. colorBgElevated: y0(n, 0),
  11458. colorBgSpotlight: hu(r, 0.85),
  11459. colorBorder: y0(n, 15),
  11460. colorBorderSecondary: y0(n, 6)
  11461. };
  11462. };
  11463. function ALe(t) {
  11464. const e = new Array(10).fill(null).map((n, r) => {
  11465. const i = r - 1, a = t * Math.pow(2.71828, i / 5), o = r > 1 ? Math.floor(a) : Math.ceil(a);
  11466. return Math.floor(o / 2) * 2;
  11467. });
  11468. return e[1] = t, e.map((n) => {
  11469. const r = n + 8;
  11470. return {
  11471. size: n,
  11472. lineHeight: r / n
  11473. };
  11474. });
  11475. }
  11476. const ELe = (t) => {
  11477. const e = ALe(t), n = e.map((i) => i.size), r = e.map((i) => i.lineHeight);
  11478. return {
  11479. fontSizeSM: n[0],
  11480. fontSize: n[1],
  11481. fontSizeLG: n[2],
  11482. fontSizeXL: n[3],
  11483. fontSizeHeading1: n[6],
  11484. fontSizeHeading2: n[5],
  11485. fontSizeHeading3: n[4],
  11486. fontSizeHeading4: n[3],
  11487. fontSizeHeading5: n[2],
  11488. lineHeight: r[1],
  11489. lineHeightLG: r[2],
  11490. lineHeightSM: r[0],
  11491. lineHeightHeading1: r[6],
  11492. lineHeightHeading2: r[5],
  11493. lineHeightHeading3: r[4],
  11494. lineHeightHeading4: r[3],
  11495. lineHeightHeading5: r[2]
  11496. };
  11497. };
  11498. function MLe(t) {
  11499. const e = Object.keys(dre).map((n) => {
  11500. const r = Bh(t[n]);
  11501. return new Array(10).fill(1).reduce((i, a, o) => (i[`${n}-${o + 1}`] = r[o], i), {});
  11502. }).reduce((n, r) => (n = k(k({}, n), r), n), {});
  11503. return k(k(k(k(k(k(k({}, t), e), wLe(t, {
  11504. generateColorPalettes: PLe,
  11505. generateNeutralColorPalettes: $Le
  11506. })), ELe(t.fontSize)), xLe(t)), SLe(t)), TLe(t));
  11507. }
  11508. function JA(t) {
  11509. return t >= 0 && t <= 255;
  11510. }
  11511. function GO(t, e) {
  11512. const {
  11513. r: n,
  11514. g: r,
  11515. b: i,
  11516. a
  11517. } = new Hn(t).toRgb();
  11518. if (a < 1)
  11519. return t;
  11520. const {
  11521. r: o,
  11522. g: s,
  11523. b: l
  11524. } = new Hn(e).toRgb();
  11525. for (let u = 0.01; u <= 1; u += 0.01) {
  11526. const c = Math.round((n - o * (1 - u)) / u), f = Math.round((r - s * (1 - u)) / u), d = Math.round((i - l * (1 - u)) / u);
  11527. if (JA(c) && JA(f) && JA(d))
  11528. return new Hn({
  11529. r: c,
  11530. g: f,
  11531. b: d,
  11532. a: Math.round(u * 100) / 100
  11533. }).toRgbString();
  11534. }
  11535. return new Hn({
  11536. r: n,
  11537. g: r,
  11538. b: i,
  11539. a: 1
  11540. }).toRgbString();
  11541. }
  11542. var ILe = function(t, e) {
  11543. var n = {};
  11544. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  11545. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  11546. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  11547. return n;
  11548. };
  11549. function DLe(t) {
  11550. const {
  11551. override: e
  11552. } = t, n = ILe(t, ["override"]), r = k({}, e);
  11553. Object.keys(C2).forEach((h) => {
  11554. delete r[h];
  11555. });
  11556. const i = k(k({}, n), r), a = 480, o = 576, s = 768, l = 992, u = 1200, c = 1600, f = 2e3;
  11557. return k(k(k({}, i), {
  11558. colorLink: i.colorInfoText,
  11559. colorLinkHover: i.colorInfoHover,
  11560. colorLinkActive: i.colorInfoActive,
  11561. // ============== Background ============== //
  11562. colorFillContent: i.colorFillSecondary,
  11563. colorFillContentHover: i.colorFill,
  11564. colorFillAlter: i.colorFillQuaternary,
  11565. colorBgContainerDisabled: i.colorFillTertiary,
  11566. // ============== Split ============== //
  11567. colorBorderBg: i.colorBgContainer,
  11568. colorSplit: GO(i.colorBorderSecondary, i.colorBgContainer),
  11569. // ============== Text ============== //
  11570. colorTextPlaceholder: i.colorTextQuaternary,
  11571. colorTextDisabled: i.colorTextQuaternary,
  11572. colorTextHeading: i.colorText,
  11573. colorTextLabel: i.colorTextSecondary,
  11574. colorTextDescription: i.colorTextTertiary,
  11575. colorTextLightSolid: i.colorWhite,
  11576. colorHighlight: i.colorError,
  11577. colorBgTextHover: i.colorFillSecondary,
  11578. colorBgTextActive: i.colorFill,
  11579. colorIcon: i.colorTextTertiary,
  11580. colorIconHover: i.colorText,
  11581. colorErrorOutline: GO(i.colorErrorBg, i.colorBgContainer),
  11582. colorWarningOutline: GO(i.colorWarningBg, i.colorBgContainer),
  11583. // Font
  11584. fontSizeIcon: i.fontSizeSM,
  11585. // Control
  11586. lineWidth: i.lineWidth,
  11587. controlOutlineWidth: i.lineWidth * 2,
  11588. // Checkbox size and expand icon size
  11589. controlInteractiveSize: i.controlHeight / 2,
  11590. controlItemBgHover: i.colorFillTertiary,
  11591. controlItemBgActive: i.colorPrimaryBg,
  11592. controlItemBgActiveHover: i.colorPrimaryBgHover,
  11593. controlItemBgActiveDisabled: i.colorFill,
  11594. controlTmpOutline: i.colorFillQuaternary,
  11595. controlOutline: GO(i.colorPrimaryBg, i.colorBgContainer),
  11596. lineType: i.lineType,
  11597. borderRadius: i.borderRadius,
  11598. borderRadiusXS: i.borderRadiusXS,
  11599. borderRadiusSM: i.borderRadiusSM,
  11600. borderRadiusLG: i.borderRadiusLG,
  11601. fontWeightStrong: 600,
  11602. opacityLoading: 0.65,
  11603. linkDecoration: "none",
  11604. linkHoverDecoration: "none",
  11605. linkFocusDecoration: "none",
  11606. controlPaddingHorizontal: 12,
  11607. controlPaddingHorizontalSM: 8,
  11608. paddingXXS: i.sizeXXS,
  11609. paddingXS: i.sizeXS,
  11610. paddingSM: i.sizeSM,
  11611. padding: i.size,
  11612. paddingMD: i.sizeMD,
  11613. paddingLG: i.sizeLG,
  11614. paddingXL: i.sizeXL,
  11615. paddingContentHorizontalLG: i.sizeLG,
  11616. paddingContentVerticalLG: i.sizeMS,
  11617. paddingContentHorizontal: i.sizeMS,
  11618. paddingContentVertical: i.sizeSM,
  11619. paddingContentHorizontalSM: i.size,
  11620. paddingContentVerticalSM: i.sizeXS,
  11621. marginXXS: i.sizeXXS,
  11622. marginXS: i.sizeXS,
  11623. marginSM: i.sizeSM,
  11624. margin: i.size,
  11625. marginMD: i.sizeMD,
  11626. marginLG: i.sizeLG,
  11627. marginXL: i.sizeXL,
  11628. marginXXL: i.sizeXXL,
  11629. boxShadow: `
  11630. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  11631. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  11632. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  11633. `,
  11634. boxShadowSecondary: `
  11635. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  11636. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  11637. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  11638. `,
  11639. boxShadowTertiary: `
  11640. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  11641. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  11642. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  11643. `,
  11644. screenXS: a,
  11645. screenXSMin: a,
  11646. screenXSMax: o - 1,
  11647. screenSM: o,
  11648. screenSMMin: o,
  11649. screenSMMax: s - 1,
  11650. screenMD: s,
  11651. screenMDMin: s,
  11652. screenMDMax: l - 1,
  11653. screenLG: l,
  11654. screenLGMin: l,
  11655. screenLGMax: u - 1,
  11656. screenXL: u,
  11657. screenXLMin: u,
  11658. screenXLMax: c - 1,
  11659. screenXXL: c,
  11660. screenXXLMin: c,
  11661. screenXXLMax: f - 1,
  11662. screenXXXL: f,
  11663. screenXXXLMin: f,
  11664. // FIXME: component box-shadow, should be removed
  11665. boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
  11666. boxShadowCard: `
  11667. 0 1px 2px -2px ${new Hn("rgba(0, 0, 0, 0.16)").toRgbString()},
  11668. 0 3px 6px 0 ${new Hn("rgba(0, 0, 0, 0.12)").toRgbString()},
  11669. 0 5px 12px 4px ${new Hn("rgba(0, 0, 0, 0.09)").toRgbString()}
  11670. `,
  11671. boxShadowDrawerRight: `
  11672. -6px 0 16px 0 rgba(0, 0, 0, 0.08),
  11673. -3px 0 6px -4px rgba(0, 0, 0, 0.12),
  11674. -9px 0 28px 8px rgba(0, 0, 0, 0.05)
  11675. `,
  11676. boxShadowDrawerLeft: `
  11677. 6px 0 16px 0 rgba(0, 0, 0, 0.08),
  11678. 3px 0 6px -4px rgba(0, 0, 0, 0.12),
  11679. 9px 0 28px 8px rgba(0, 0, 0, 0.05)
  11680. `,
  11681. boxShadowDrawerUp: `
  11682. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  11683. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  11684. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  11685. `,
  11686. boxShadowDrawerDown: `
  11687. 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
  11688. 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
  11689. 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
  11690. `,
  11691. boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
  11692. boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
  11693. boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
  11694. boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
  11695. }), r);
  11696. }
  11697. const RLe = (t, e, n, r, i) => {
  11698. const a = t / 2, o = 0, s = a, l = n * 1 / Math.sqrt(2), u = a - n * (1 - 1 / Math.sqrt(2)), c = a - e * (1 / Math.sqrt(2)), f = n * (Math.sqrt(2) - 1) + e * (1 / Math.sqrt(2)), d = 2 * a - c, h = f, p = 2 * a - l, v = u, g = 2 * a - o, m = s, y = a * Math.sqrt(2) + n * (Math.sqrt(2) - 2), _ = n * (Math.sqrt(2) - 1);
  11699. return {
  11700. pointerEvents: "none",
  11701. width: t,
  11702. height: t,
  11703. overflow: "hidden",
  11704. "&::after": {
  11705. content: '""',
  11706. position: "absolute",
  11707. width: y,
  11708. height: y,
  11709. bottom: 0,
  11710. insetInline: 0,
  11711. margin: "auto",
  11712. borderRadius: {
  11713. _skip_check_: !0,
  11714. value: `0 0 ${e}px 0`
  11715. },
  11716. transform: "translateY(50%) rotate(-135deg)",
  11717. boxShadow: i,
  11718. zIndex: 0,
  11719. background: "transparent"
  11720. },
  11721. "&::before": {
  11722. position: "absolute",
  11723. bottom: 0,
  11724. insetInlineStart: 0,
  11725. width: t,
  11726. height: t / 2,
  11727. background: r,
  11728. clipPath: {
  11729. _multi_value_: !0,
  11730. value: [`polygon(${_}px 100%, 50% ${_}px, ${2 * a - _}px 100%, ${_}px 100%)`, `path('M ${o} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${f} A ${e} ${e} 0 0 1 ${d} ${h} L ${p} ${v} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]
  11731. },
  11732. content: '""'
  11733. }
  11734. };
  11735. };
  11736. function kLe(t, e) {
  11737. return qw.reduce((n, r) => {
  11738. const i = t[`${r}-1`], a = t[`${r}-3`], o = t[`${r}-6`], s = t[`${r}-7`];
  11739. return k(k({}, n), e(r, {
  11740. lightColor: i,
  11741. lightBorderColor: a,
  11742. darkColor: o,
  11743. textColor: s
  11744. }));
  11745. }, {});
  11746. }
  11747. const Mg = {
  11748. overflow: "hidden",
  11749. whiteSpace: "nowrap",
  11750. textOverflow: "ellipsis"
  11751. }, Gn = (t) => ({
  11752. boxSizing: "border-box",
  11753. margin: 0,
  11754. padding: 0,
  11755. color: t.colorText,
  11756. fontSize: t.fontSize,
  11757. // font-variant: @font-variant-base;
  11758. lineHeight: t.lineHeight,
  11759. listStyle: "none",
  11760. // font-feature-settings: @font-feature-settings-base;
  11761. fontFamily: t.fontFamily
  11762. }), hm = () => ({
  11763. display: "inline-flex",
  11764. alignItems: "center",
  11765. color: "inherit",
  11766. fontStyle: "normal",
  11767. lineHeight: 0,
  11768. textAlign: "center",
  11769. textTransform: "none",
  11770. // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
  11771. verticalAlign: "-0.125em",
  11772. textRendering: "optimizeLegibility",
  11773. "-webkit-font-smoothing": "antialiased",
  11774. "-moz-osx-font-smoothing": "grayscale",
  11775. "> *": {
  11776. lineHeight: 1
  11777. },
  11778. svg: {
  11779. display: "inline-block"
  11780. }
  11781. }), Kw = () => ({
  11782. // https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229
  11783. "&::before": {
  11784. display: "table",
  11785. content: '""'
  11786. },
  11787. "&::after": {
  11788. // https://github.com/ant-design/ant-design/issues/21864
  11789. display: "table",
  11790. clear: "both",
  11791. content: '""'
  11792. }
  11793. }), LLe = (t) => ({
  11794. a: {
  11795. color: t.colorLink,
  11796. textDecoration: t.linkDecoration,
  11797. backgroundColor: "transparent",
  11798. outline: "none",
  11799. cursor: "pointer",
  11800. transition: `color ${t.motionDurationSlow}`,
  11801. "-webkit-text-decoration-skip": "objects",
  11802. "&:hover": {
  11803. color: t.colorLinkHover
  11804. },
  11805. "&:active": {
  11806. color: t.colorLinkActive
  11807. },
  11808. "&:active,\n &:hover": {
  11809. textDecoration: t.linkHoverDecoration,
  11810. outline: 0
  11811. },
  11812. // https://github.com/ant-design/ant-design/issues/22503
  11813. "&:focus": {
  11814. textDecoration: t.linkFocusDecoration,
  11815. outline: 0
  11816. },
  11817. "&[disabled]": {
  11818. color: t.colorTextDisabled,
  11819. cursor: "not-allowed"
  11820. }
  11821. }
  11822. }), NLe = (t, e) => {
  11823. const {
  11824. fontFamily: n,
  11825. fontSize: r
  11826. } = t, i = `[class^="${e}"], [class*=" ${e}"]`;
  11827. return {
  11828. [i]: {
  11829. fontFamily: n,
  11830. fontSize: r,
  11831. boxSizing: "border-box",
  11832. "&::before, &::after": {
  11833. boxSizing: "border-box"
  11834. },
  11835. [i]: {
  11836. boxSizing: "border-box",
  11837. "&::before, &::after": {
  11838. boxSizing: "border-box"
  11839. }
  11840. }
  11841. }
  11842. };
  11843. }, G_ = (t) => ({
  11844. outline: `${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,
  11845. outlineOffset: 1,
  11846. transition: "outline-offset 0s, outline 0s"
  11847. }), T2 = (t) => ({
  11848. "&:focus-visible": k({}, G_(t))
  11849. });
  11850. function pr(t, e, n) {
  11851. return (r) => {
  11852. const i = V(() => r == null ? void 0 : r.value), [a, o, s] = pm(), {
  11853. getPrefixCls: l,
  11854. iconPrefixCls: u
  11855. } = b2(), c = V(() => l()), f = V(() => ({
  11856. theme: a.value,
  11857. token: o.value,
  11858. hashId: s.value,
  11859. path: ["Shared", c.value]
  11860. }));
  11861. bR(f, () => [{
  11862. // Link
  11863. "&": LLe(o.value)
  11864. }]);
  11865. const d = V(() => ({
  11866. theme: a.value,
  11867. token: o.value,
  11868. hashId: s.value,
  11869. path: [t, i.value, u.value]
  11870. }));
  11871. return [bR(d, () => {
  11872. const {
  11873. token: h,
  11874. flush: p
  11875. } = zLe(o.value), v = typeof n == "function" ? n(h) : n, g = k(k({}, v), o.value[t]), m = `.${i.value}`, y = bn(h, {
  11876. componentCls: m,
  11877. prefixCls: i.value,
  11878. iconCls: `.${u.value}`,
  11879. antCls: `.${c.value}`
  11880. }, g), _ = e(y, {
  11881. hashId: s.value,
  11882. prefixCls: i.value,
  11883. rootPrefixCls: c.value,
  11884. iconPrefixCls: u.value,
  11885. overrideComponentToken: o.value[t]
  11886. });
  11887. return p(t, g), [NLe(o.value, i.value), _];
  11888. }), s];
  11889. };
  11890. }
  11891. const hre = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u";
  11892. let _R = !0;
  11893. function bn() {
  11894. for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
  11895. e[n] = arguments[n];
  11896. if (!hre)
  11897. return k({}, ...e);
  11898. _R = !1;
  11899. const r = {};
  11900. return e.forEach((i) => {
  11901. Object.keys(i).forEach((o) => {
  11902. Object.defineProperty(r, o, {
  11903. configurable: !0,
  11904. enumerable: !0,
  11905. get: () => i[o]
  11906. });
  11907. });
  11908. }), _R = !0, r;
  11909. }
  11910. function BLe() {
  11911. }
  11912. function zLe(t) {
  11913. let e, n = t, r = BLe;
  11914. return hre && (e = /* @__PURE__ */ new Set(), n = new Proxy(t, {
  11915. get(i, a) {
  11916. return _R && e.add(a), i[a];
  11917. }
  11918. }), r = (i, a) => {
  11919. Array.from(e);
  11920. }), {
  11921. token: n,
  11922. keys: e,
  11923. flush: r
  11924. };
  11925. }
  11926. const VLe = Kne(MLe), pre = {
  11927. token: C2,
  11928. hashed: !0
  11929. }, vre = Symbol("DesignTokenContext"), OR = ve(), FLe = (t) => {
  11930. Et(vre, t), me(t, () => {
  11931. OR.value = z(t), fxe(OR);
  11932. }, {
  11933. immediate: !0,
  11934. deep: !0
  11935. });
  11936. }, WLe = ae({
  11937. props: {
  11938. value: sn()
  11939. },
  11940. setup(t, e) {
  11941. let {
  11942. slots: n
  11943. } = e;
  11944. return FLe(V(() => t.value)), () => {
  11945. var r;
  11946. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  11947. };
  11948. }
  11949. });
  11950. function pm() {
  11951. const t = et(vre, V(() => OR.value || pre)), e = V(() => `${vLe}-${t.value.hashed || ""}`), n = V(() => t.value.theme || VLe), r = Wke(n, V(() => [C2, t.value.token]), V(() => ({
  11952. salt: e.value,
  11953. override: k({
  11954. override: t.value.token
  11955. }, t.value.components),
  11956. formatToken: DLe
  11957. })));
  11958. return [n, V(() => r.value[0]), V(() => t.value.hashed ? r.value[1] : "")];
  11959. }
  11960. const gre = ae({
  11961. compatConfig: {
  11962. MODE: 3
  11963. },
  11964. setup() {
  11965. const [, t] = pm(), e = V(() => new Hn(t.value.colorBgBase).toHsl().l < 0.5 ? {
  11966. opacity: 0.65
  11967. } : {});
  11968. return () => D("svg", {
  11969. style: e.value,
  11970. width: "184",
  11971. height: "152",
  11972. viewBox: "0 0 184 152",
  11973. xmlns: "http://www.w3.org/2000/svg"
  11974. }, [D("g", {
  11975. fill: "none",
  11976. "fill-rule": "evenodd"
  11977. }, [D("g", {
  11978. transform: "translate(24 31.67)"
  11979. }, [D("ellipse", {
  11980. "fill-opacity": ".8",
  11981. fill: "#F5F5F7",
  11982. cx: "67.797",
  11983. cy: "106.89",
  11984. rx: "67.797",
  11985. ry: "12.668"
  11986. }, null), D("path", {
  11987. d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
  11988. fill: "#AEB8C2"
  11989. }, null), D("path", {
  11990. d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
  11991. fill: "url(#linearGradient-1)",
  11992. transform: "translate(13.56)"
  11993. }, null), D("path", {
  11994. d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
  11995. fill: "#F5F5F7"
  11996. }, null), D("path", {
  11997. d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
  11998. fill: "#DCE0E6"
  11999. }, null)]), D("path", {
  12000. d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
  12001. fill: "#DCE0E6"
  12002. }, null), D("g", {
  12003. transform: "translate(149.65 15.383)",
  12004. fill: "#FFF"
  12005. }, [D("ellipse", {
  12006. cx: "20.654",
  12007. cy: "3.167",
  12008. rx: "2.849",
  12009. ry: "2.815"
  12010. }, null), D("path", {
  12011. d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
  12012. }, null)])])]);
  12013. }
  12014. });
  12015. gre.PRESENTED_IMAGE_DEFAULT = !0;
  12016. const mre = ae({
  12017. compatConfig: {
  12018. MODE: 3
  12019. },
  12020. setup() {
  12021. const [, t] = pm(), e = V(() => {
  12022. const {
  12023. colorFill: n,
  12024. colorFillTertiary: r,
  12025. colorFillQuaternary: i,
  12026. colorBgContainer: a
  12027. } = t.value;
  12028. return {
  12029. borderColor: new Hn(n).onBackground(a).toHexString(),
  12030. shadowColor: new Hn(r).onBackground(a).toHexString(),
  12031. contentColor: new Hn(i).onBackground(a).toHexString()
  12032. };
  12033. });
  12034. return () => D("svg", {
  12035. width: "64",
  12036. height: "41",
  12037. viewBox: "0 0 64 41",
  12038. xmlns: "http://www.w3.org/2000/svg"
  12039. }, [D("g", {
  12040. transform: "translate(0 1)",
  12041. fill: "none",
  12042. "fill-rule": "evenodd"
  12043. }, [D("ellipse", {
  12044. fill: e.value.shadowColor,
  12045. cx: "32",
  12046. cy: "33",
  12047. rx: "32",
  12048. ry: "7"
  12049. }, null), D("g", {
  12050. "fill-rule": "nonzero",
  12051. stroke: e.value.borderColor
  12052. }, [D("path", {
  12053. d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
  12054. }, null), D("path", {
  12055. d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
  12056. fill: e.value.contentColor
  12057. }, null)])])]);
  12058. }
  12059. });
  12060. mre.PRESENTED_IMAGE_SIMPLE = !0;
  12061. const QLe = (t) => {
  12062. const {
  12063. componentCls: e,
  12064. margin: n,
  12065. marginXS: r,
  12066. marginXL: i,
  12067. fontSize: a,
  12068. lineHeight: o
  12069. } = t;
  12070. return {
  12071. [e]: {
  12072. marginInline: r,
  12073. fontSize: a,
  12074. lineHeight: o,
  12075. textAlign: "center",
  12076. // 原来 &-image 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
  12077. [`${e}-image`]: {
  12078. height: t.emptyImgHeight,
  12079. marginBottom: r,
  12080. opacity: t.opacityImage,
  12081. img: {
  12082. height: "100%"
  12083. },
  12084. svg: {
  12085. height: "100%",
  12086. margin: "auto"
  12087. }
  12088. },
  12089. // 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
  12090. [`${e}-footer`]: {
  12091. marginTop: n
  12092. },
  12093. "&-normal": {
  12094. marginBlock: i,
  12095. color: t.colorTextDisabled,
  12096. [`${e}-image`]: {
  12097. height: t.emptyImgHeightMD
  12098. }
  12099. },
  12100. "&-small": {
  12101. marginBlock: r,
  12102. color: t.colorTextDisabled,
  12103. [`${e}-image`]: {
  12104. height: t.emptyImgHeightSM
  12105. }
  12106. }
  12107. }
  12108. };
  12109. }, HLe = pr("Empty", (t) => {
  12110. const {
  12111. componentCls: e,
  12112. controlHeightLG: n
  12113. } = t, r = bn(t, {
  12114. emptyImgCls: `${e}-img`,
  12115. emptyImgHeight: n * 2.5,
  12116. emptyImgHeightMD: n,
  12117. emptyImgHeightSM: n * 0.875
  12118. });
  12119. return [QLe(r)];
  12120. });
  12121. var GLe = function(t, e) {
  12122. var n = {};
  12123. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  12124. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  12125. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  12126. return n;
  12127. };
  12128. const yre = D(gre, null, null), bre = D(mre, null, null), jLe = () => ({
  12129. prefixCls: String,
  12130. imageStyle: sn(),
  12131. image: Fo(),
  12132. description: Fo()
  12133. }), QN = ae({
  12134. name: "AEmpty",
  12135. compatConfig: {
  12136. MODE: 3
  12137. },
  12138. inheritAttrs: !1,
  12139. props: jLe(),
  12140. setup(t, e) {
  12141. let {
  12142. slots: n = {},
  12143. attrs: r
  12144. } = e;
  12145. const {
  12146. direction: i,
  12147. prefixCls: a
  12148. } = hn("empty", t), [o, s] = HLe(a);
  12149. return () => {
  12150. var l, u;
  12151. const c = a.value, f = k(k({}, t), r), {
  12152. image: d = ((l = n.image) === null || l === void 0 ? void 0 : l.call(n)) || yre,
  12153. description: h = ((u = n.description) === null || u === void 0 ? void 0 : u.call(n)) || void 0,
  12154. imageStyle: p,
  12155. class: v = ""
  12156. } = f, g = GLe(f, ["image", "description", "imageStyle", "class"]);
  12157. return o(D(Fne, {
  12158. componentName: "Empty",
  12159. children: (m) => {
  12160. const y = typeof h < "u" ? h : m.description, _ = typeof y == "string" ? y : "empty";
  12161. let O = null;
  12162. return typeof d == "string" ? O = D("img", {
  12163. alt: _,
  12164. src: d
  12165. }, null) : O = d, D("div", te({
  12166. class: Re(c, v, s.value, {
  12167. [`${c}-normal`]: d === bre,
  12168. [`${c}-rtl`]: i.value === "rtl"
  12169. })
  12170. }, g), [D("div", {
  12171. class: `${c}-image`,
  12172. style: p
  12173. }, [O]), y && D("p", {
  12174. class: `${c}-description`
  12175. }, [y]), n.default && D("div", {
  12176. class: `${c}-footer`
  12177. }, [Zl(n.default())])]);
  12178. }
  12179. }, null));
  12180. };
  12181. }
  12182. });
  12183. QN.PRESENTED_IMAGE_DEFAULT = yre;
  12184. QN.PRESENTED_IMAGE_SIMPLE = bre;
  12185. const b0 = fm(QN), HN = (t) => {
  12186. const {
  12187. prefixCls: e
  12188. } = hn("empty", t);
  12189. return ((r) => {
  12190. switch (r) {
  12191. case "Table":
  12192. case "List":
  12193. return D(b0, {
  12194. image: b0.PRESENTED_IMAGE_SIMPLE
  12195. }, null);
  12196. case "Select":
  12197. case "TreeSelect":
  12198. case "Cascader":
  12199. case "Transfer":
  12200. case "Mentions":
  12201. return D(b0, {
  12202. image: b0.PRESENTED_IMAGE_SIMPLE,
  12203. class: `${e.value}-small`
  12204. }, null);
  12205. default:
  12206. return D(b0, null, null);
  12207. }
  12208. })(t.componentName);
  12209. };
  12210. function ZLe(t) {
  12211. return D(HN, {
  12212. componentName: t
  12213. }, null);
  12214. }
  12215. const _re = Symbol("SizeContextKey"), Ore = () => et(_re, ee(void 0)), Sre = (t) => {
  12216. const e = Ore();
  12217. return Et(_re, V(() => t.value || e.value)), t;
  12218. }, hn = (t, e) => {
  12219. const n = Ore(), r = Vl(), i = et(zN, k(k({}, Nne), {
  12220. renderEmpty: (C) => ff(HN, {
  12221. componentName: C
  12222. })
  12223. })), a = V(() => i.getPrefixCls(t, e.prefixCls)), o = V(() => {
  12224. var C, P;
  12225. return (C = e.direction) !== null && C !== void 0 ? C : (P = i.direction) === null || P === void 0 ? void 0 : P.value;
  12226. }), s = V(() => {
  12227. var C;
  12228. return (C = e.iconPrefixCls) !== null && C !== void 0 ? C : i.iconPrefixCls.value;
  12229. }), l = V(() => i.getPrefixCls()), u = V(() => {
  12230. var C;
  12231. return (C = i.autoInsertSpaceInButton) === null || C === void 0 ? void 0 : C.value;
  12232. }), c = i.renderEmpty, f = i.space, d = i.pageHeader, h = i.form, p = V(() => {
  12233. var C, P;
  12234. return (C = e.getTargetContainer) !== null && C !== void 0 ? C : (P = i.getTargetContainer) === null || P === void 0 ? void 0 : P.value;
  12235. }), v = V(() => {
  12236. var C, P, $;
  12237. return (P = (C = e.getContainer) !== null && C !== void 0 ? C : e.getPopupContainer) !== null && P !== void 0 ? P : ($ = i.getPopupContainer) === null || $ === void 0 ? void 0 : $.value;
  12238. }), g = V(() => {
  12239. var C, P;
  12240. return (C = e.dropdownMatchSelectWidth) !== null && C !== void 0 ? C : (P = i.dropdownMatchSelectWidth) === null || P === void 0 ? void 0 : P.value;
  12241. }), m = V(() => {
  12242. var C;
  12243. return (e.virtual === void 0 ? ((C = i.virtual) === null || C === void 0 ? void 0 : C.value) !== !1 : e.virtual !== !1) && g.value !== !1;
  12244. }), y = V(() => e.size || n.value), _ = V(() => {
  12245. var C, P, $;
  12246. return (C = e.autocomplete) !== null && C !== void 0 ? C : ($ = (P = i.input) === null || P === void 0 ? void 0 : P.value) === null || $ === void 0 ? void 0 : $.autocomplete;
  12247. }), O = V(() => {
  12248. var C;
  12249. return (C = e.disabled) !== null && C !== void 0 ? C : r.value;
  12250. }), S = V(() => {
  12251. var C;
  12252. return (C = e.csp) !== null && C !== void 0 ? C : i.csp;
  12253. }), x = V(() => {
  12254. var C, P;
  12255. return (C = e.wave) !== null && C !== void 0 ? C : (P = i.wave) === null || P === void 0 ? void 0 : P.value;
  12256. });
  12257. return {
  12258. configProvider: i,
  12259. prefixCls: a,
  12260. direction: o,
  12261. size: y,
  12262. getTargetContainer: p,
  12263. getPopupContainer: v,
  12264. space: f,
  12265. pageHeader: d,
  12266. form: h,
  12267. autoInsertSpaceInButton: u,
  12268. renderEmpty: c,
  12269. virtual: m,
  12270. dropdownMatchSelectWidth: g,
  12271. rootPrefixCls: l,
  12272. getPrefixCls: i.getPrefixCls,
  12273. autocomplete: _,
  12274. csp: S,
  12275. iconPrefixCls: s,
  12276. disabled: O,
  12277. select: i.select,
  12278. wave: x
  12279. };
  12280. };
  12281. function si(t, e) {
  12282. const n = k({}, t);
  12283. for (let r = 0; r < e.length; r += 1) {
  12284. const i = e[r];
  12285. delete n[i];
  12286. }
  12287. return n;
  12288. }
  12289. function f7(t) {
  12290. return typeof t == "object" && t != null && t.nodeType === 1;
  12291. }
  12292. function d7(t, e) {
  12293. return (!e || t !== "hidden") && t !== "visible" && t !== "clip";
  12294. }
  12295. function eE(t, e) {
  12296. if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
  12297. var n = getComputedStyle(t, null);
  12298. return d7(n.overflowY, e) || d7(n.overflowX, e) || function(r) {
  12299. var i = function(a) {
  12300. if (!a.ownerDocument || !a.ownerDocument.defaultView) return null;
  12301. try {
  12302. return a.ownerDocument.defaultView.frameElement;
  12303. } catch {
  12304. return null;
  12305. }
  12306. }(r);
  12307. return !!i && (i.clientHeight < r.scrollHeight || i.clientWidth < r.scrollWidth);
  12308. }(t);
  12309. }
  12310. return !1;
  12311. }
  12312. function jO(t, e, n, r, i, a, o, s) {
  12313. return a < t && o > e || a > t && o < e ? 0 : a <= t && s <= n || o >= e && s >= n ? a - t - r : o > e && s < n || a < t && s > n ? o - e + i : 0;
  12314. }
  12315. var h7 = function(t, e) {
  12316. var n = window, r = e.scrollMode, i = e.block, a = e.inline, o = e.boundary, s = e.skipOverflowHiddenElements, l = typeof o == "function" ? o : function(we) {
  12317. return we !== o;
  12318. };
  12319. if (!f7(t)) throw new TypeError("Invalid target");
  12320. for (var u, c, f = document.scrollingElement || document.documentElement, d = [], h = t; f7(h) && l(h); ) {
  12321. if ((h = (c = (u = h).parentElement) == null ? u.getRootNode().host || null : c) === f) {
  12322. d.push(h);
  12323. break;
  12324. }
  12325. h != null && h === document.body && eE(h) && !eE(document.documentElement) || h != null && eE(h, s) && d.push(h);
  12326. }
  12327. for (var p = n.visualViewport ? n.visualViewport.width : innerWidth, v = n.visualViewport ? n.visualViewport.height : innerHeight, g = window.scrollX || pageXOffset, m = window.scrollY || pageYOffset, y = t.getBoundingClientRect(), _ = y.height, O = y.width, S = y.top, x = y.right, C = y.bottom, P = y.left, $ = i === "start" || i === "nearest" ? S : i === "end" ? C : S + _ / 2, T = a === "center" ? P + O / 2 : a === "end" ? x : P, E = [], M = 0; M < d.length; M++) {
  12328. var R = d[M], N = R.getBoundingClientRect(), I = N.height, B = N.width, Q = N.top, W = N.right, H = N.bottom, U = N.left;
  12329. if (r === "if-needed" && S >= 0 && P >= 0 && C <= v && x <= p && S >= Q && C <= H && P >= U && x <= W) return E;
  12330. var j = getComputedStyle(R), Y = parseInt(j.borderLeftWidth, 10), ne = parseInt(j.borderTopWidth, 10), fe = parseInt(j.borderRightWidth, 10), ue = parseInt(j.borderBottomWidth, 10), ye = 0, se = 0, he = "offsetWidth" in R ? R.offsetWidth - R.clientWidth - Y - fe : 0, re = "offsetHeight" in R ? R.offsetHeight - R.clientHeight - ne - ue : 0, q = "offsetWidth" in R ? R.offsetWidth === 0 ? 0 : B / R.offsetWidth : 0, K = "offsetHeight" in R ? R.offsetHeight === 0 ? 0 : I / R.offsetHeight : 0;
  12331. if (f === R) ye = i === "start" ? $ : i === "end" ? $ - v : i === "nearest" ? jO(m, m + v, v, ne, ue, m + $, m + $ + _, _) : $ - v / 2, se = a === "start" ? T : a === "center" ? T - p / 2 : a === "end" ? T - p : jO(g, g + p, p, Y, fe, g + T, g + T + O, O), ye = Math.max(0, ye + m), se = Math.max(0, se + g);
  12332. else {
  12333. ye = i === "start" ? $ - Q - ne : i === "end" ? $ - H + ue + re : i === "nearest" ? jO(Q, H, I, ne, ue + re, $, $ + _, _) : $ - (Q + I / 2) + re / 2, se = a === "start" ? T - U - Y : a === "center" ? T - (U + B / 2) + he / 2 : a === "end" ? T - W + fe + he : jO(U, W, B, Y, fe + he, T, T + O, O);
  12334. var de = R.scrollLeft, xe = R.scrollTop;
  12335. $ += xe - (ye = Math.max(0, Math.min(xe + ye / K, R.scrollHeight - I / K + re))), T += de - (se = Math.max(0, Math.min(de + se / q, R.scrollWidth - B / q + he)));
  12336. }
  12337. E.push({ el: R, top: ye, left: se });
  12338. }
  12339. return E;
  12340. };
  12341. function xre(t) {
  12342. return t === Object(t) && Object.keys(t).length !== 0;
  12343. }
  12344. function ULe(t, e) {
  12345. e === void 0 && (e = "auto");
  12346. var n = "scrollBehavior" in document.body.style;
  12347. t.forEach(function(r) {
  12348. var i = r.el, a = r.top, o = r.left;
  12349. i.scroll && n ? i.scroll({
  12350. top: a,
  12351. left: o,
  12352. behavior: e
  12353. }) : (i.scrollTop = a, i.scrollLeft = o);
  12354. });
  12355. }
  12356. function XLe(t) {
  12357. return t === !1 ? {
  12358. block: "end",
  12359. inline: "nearest"
  12360. } : xre(t) ? t : {
  12361. block: "start",
  12362. inline: "nearest"
  12363. };
  12364. }
  12365. function YLe(t, e) {
  12366. var n = t.isConnected || t.ownerDocument.documentElement.contains(t);
  12367. if (xre(e) && typeof e.behavior == "function")
  12368. return e.behavior(n ? h7(t, e) : []);
  12369. if (n) {
  12370. var r = XLe(e);
  12371. return ULe(h7(t, r), r.behavior);
  12372. }
  12373. }
  12374. function qLe(t, e) {
  12375. for (var n = 0; n < e.length; n++) {
  12376. var r = e[n];
  12377. r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
  12378. }
  12379. }
  12380. function wre(t, e, n) {
  12381. return n && qLe(t, n), t;
  12382. }
  12383. function Ux() {
  12384. return (Ux = Object.assign || function(t) {
  12385. for (var e = 1; e < arguments.length; e++) {
  12386. var n = arguments[e];
  12387. for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
  12388. }
  12389. return t;
  12390. }).apply(this, arguments);
  12391. }
  12392. function Cre(t, e) {
  12393. t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
  12394. }
  12395. function Tre(t, e) {
  12396. if (t == null) return {};
  12397. var n, r, i = {}, a = Object.keys(t);
  12398. for (r = 0; r < a.length; r++) e.indexOf(n = a[r]) >= 0 || (i[n] = t[n]);
  12399. return i;
  12400. }
  12401. function p7(t) {
  12402. return ((e = t) != null && typeof e == "object" && Array.isArray(e) === !1) == 1 && Object.prototype.toString.call(t) === "[object Object]";
  12403. var e;
  12404. }
  12405. var Pre = Object.prototype, $re = Pre.toString, KLe = Pre.hasOwnProperty, Are = /^\s*function (\w+)/;
  12406. function v7(t) {
  12407. var e, n = (e = t == null ? void 0 : t.type) !== null && e !== void 0 ? e : t;
  12408. if (n) {
  12409. var r = n.toString().match(Are);
  12410. return r ? r[1] : "";
  12411. }
  12412. return "";
  12413. }
  12414. var zh = function(t) {
  12415. var e, n;
  12416. return p7(t) !== !1 && typeof (e = t.constructor) == "function" && p7(n = e.prototype) !== !1 && n.hasOwnProperty("isPrototypeOf") !== !1;
  12417. }, Ere = function(t) {
  12418. return t;
  12419. }, Bi = Ere;
  12420. if (process.env.NODE_ENV !== "production") {
  12421. var JLe = typeof console < "u";
  12422. Bi = JLe ? function(t) {
  12423. console.warn("[VueTypes warn]: " + t);
  12424. } : Ere;
  12425. }
  12426. var Db = function(t, e) {
  12427. return KLe.call(t, e);
  12428. }, e4e = Number.isInteger || function(t) {
  12429. return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
  12430. }, Ig = Array.isArray || function(t) {
  12431. return $re.call(t) === "[object Array]";
  12432. }, Dg = function(t) {
  12433. return $re.call(t) === "[object Function]";
  12434. }, Jw = function(t) {
  12435. return zh(t) && Db(t, "_vueTypes_name");
  12436. }, Mre = function(t) {
  12437. return zh(t) && (Db(t, "type") || ["_vueTypes_name", "validator", "default", "required"].some(function(e) {
  12438. return Db(t, e);
  12439. }));
  12440. };
  12441. function GN(t, e) {
  12442. return Object.defineProperty(t.bind(e), "__original", { value: t });
  12443. }
  12444. function up(t, e, n) {
  12445. var r;
  12446. n === void 0 && (n = !1);
  12447. var i = !0, a = "";
  12448. r = zh(t) ? t : { type: t };
  12449. var o = Jw(r) ? r._vueTypes_name + " - " : "";
  12450. if (Mre(r) && r.type !== null) {
  12451. if (r.type === void 0 || r.type === !0 || !r.required && e === void 0) return i;
  12452. Ig(r.type) ? (i = r.type.some(function(f) {
  12453. return up(f, e, !0) === !0;
  12454. }), a = r.type.map(function(f) {
  12455. return v7(f);
  12456. }).join(" or ")) : i = (a = v7(r)) === "Array" ? Ig(e) : a === "Object" ? zh(e) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? function(f) {
  12457. if (f == null) return "";
  12458. var d = f.constructor.toString().match(Are);
  12459. return d ? d[1] : "";
  12460. }(e) === a : e instanceof r.type;
  12461. }
  12462. if (!i) {
  12463. var s = o + 'value "' + e + '" should be of type "' + a + '"';
  12464. return n === !1 ? (Bi(s), !1) : s;
  12465. }
  12466. if (Db(r, "validator") && Dg(r.validator)) {
  12467. var l = Bi, u = [];
  12468. if (Bi = function(f) {
  12469. u.push(f);
  12470. }, i = r.validator(e), Bi = l, !i) {
  12471. var c = (u.length > 1 ? "* " : "") + u.join(`
  12472. * `);
  12473. return u.length = 0, n === !1 ? (Bi(c), i) : c;
  12474. }
  12475. }
  12476. return i;
  12477. }
  12478. function vo(t, e) {
  12479. var n = Object.defineProperties(e, { _vueTypes_name: { value: t, writable: !0 }, isRequired: { get: function() {
  12480. return this.required = !0, this;
  12481. } }, def: { value: function(i) {
  12482. return i !== void 0 || this.default ? Dg(i) || up(this, i, !0) === !0 ? (this.default = Ig(i) ? function() {
  12483. return [].concat(i);
  12484. } : zh(i) ? function() {
  12485. return Object.assign({}, i);
  12486. } : i, this) : (Bi(this._vueTypes_name + ' - invalid default value: "' + i + '"'), this) : this;
  12487. } } }), r = n.validator;
  12488. return Dg(r) && (n.validator = GN(r, n)), n;
  12489. }
  12490. function Fl(t, e) {
  12491. var n = vo(t, e);
  12492. return Object.defineProperty(n, "validate", { value: function(r) {
  12493. return Dg(this.validator) && Bi(this._vueTypes_name + ` - calling .validate() will overwrite the current custom validator function. Validator info:
  12494. ` + JSON.stringify(this)), this.validator = GN(r, this), this;
  12495. } });
  12496. }
  12497. function g7(t, e, n) {
  12498. var r, i, a = (r = e, i = {}, Object.getOwnPropertyNames(r).forEach(function(f) {
  12499. i[f] = Object.getOwnPropertyDescriptor(r, f);
  12500. }), Object.defineProperties({}, i));
  12501. if (a._vueTypes_name = t, !zh(n)) return a;
  12502. var o, s, l = n.validator, u = Tre(n, ["validator"]);
  12503. if (Dg(l)) {
  12504. var c = a.validator;
  12505. c && (c = (s = (o = c).__original) !== null && s !== void 0 ? s : o), a.validator = GN(c ? function(f) {
  12506. return c.call(this, f) && l.call(this, f);
  12507. } : l, a);
  12508. }
  12509. return Object.assign(a, u);
  12510. }
  12511. function P2(t) {
  12512. return t.replace(/^(?!\s*$)/gm, " ");
  12513. }
  12514. var t4e = function() {
  12515. return Fl("any", {});
  12516. }, n4e = function() {
  12517. return Fl("function", { type: Function });
  12518. }, r4e = function() {
  12519. return Fl("boolean", { type: Boolean });
  12520. }, i4e = function() {
  12521. return Fl("string", { type: String });
  12522. }, a4e = function() {
  12523. return Fl("number", { type: Number });
  12524. }, o4e = function() {
  12525. return Fl("array", { type: Array });
  12526. }, s4e = function() {
  12527. return Fl("object", { type: Object });
  12528. }, l4e = function() {
  12529. return vo("integer", { type: Number, validator: function(t) {
  12530. return e4e(t);
  12531. } });
  12532. }, u4e = function() {
  12533. return vo("symbol", { validator: function(t) {
  12534. return typeof t == "symbol";
  12535. } });
  12536. };
  12537. function c4e(t, e) {
  12538. if (e === void 0 && (e = "custom validation failed"), typeof t != "function") throw new TypeError("[VueTypes error]: You must provide a function as argument");
  12539. return vo(t.name || "<<anonymous function>>", { validator: function(n) {
  12540. var r = t(n);
  12541. return r || Bi(this._vueTypes_name + " - " + e), r;
  12542. } });
  12543. }
  12544. function f4e(t) {
  12545. if (!Ig(t)) throw new TypeError("[VueTypes error]: You must provide an array as argument.");
  12546. var e = 'oneOf - value should be one of "' + t.join('", "') + '".', n = t.reduce(function(r, i) {
  12547. if (i != null) {
  12548. var a = i.constructor;
  12549. r.indexOf(a) === -1 && r.push(a);
  12550. }
  12551. return r;
  12552. }, []);
  12553. return vo("oneOf", { type: n.length > 0 ? n : void 0, validator: function(r) {
  12554. var i = t.indexOf(r) !== -1;
  12555. return i || Bi(e), i;
  12556. } });
  12557. }
  12558. function d4e(t) {
  12559. if (!Ig(t)) throw new TypeError("[VueTypes error]: You must provide an array as argument");
  12560. for (var e = !1, n = [], r = 0; r < t.length; r += 1) {
  12561. var i = t[r];
  12562. if (Mre(i)) {
  12563. if (Jw(i) && i._vueTypes_name === "oneOf") {
  12564. n = n.concat(i.type);
  12565. continue;
  12566. }
  12567. if (Dg(i.validator) && (e = !0), i.type !== !0 && i.type) {
  12568. n = n.concat(i.type);
  12569. continue;
  12570. }
  12571. }
  12572. n.push(i);
  12573. }
  12574. return n = n.filter(function(a, o) {
  12575. return n.indexOf(a) === o;
  12576. }), vo("oneOfType", e ? { type: n, validator: function(a) {
  12577. var o = [], s = t.some(function(l) {
  12578. var u = up(Jw(l) && l._vueTypes_name === "oneOf" ? l.type || null : l, a, !0);
  12579. return typeof u == "string" && o.push(u), u === !0;
  12580. });
  12581. return s || Bi("oneOfType - provided value does not match any of the " + o.length + ` passed-in validators:
  12582. ` + P2(o.join(`
  12583. `))), s;
  12584. } } : { type: n });
  12585. }
  12586. function h4e(t) {
  12587. return vo("arrayOf", { type: Array, validator: function(e) {
  12588. var n, r = e.every(function(i) {
  12589. return (n = up(t, i, !0)) === !0;
  12590. });
  12591. return r || Bi(`arrayOf - value validation error:
  12592. ` + P2(n)), r;
  12593. } });
  12594. }
  12595. function p4e(t) {
  12596. return vo("instanceOf", { type: t });
  12597. }
  12598. function v4e(t) {
  12599. return vo("objectOf", { type: Object, validator: function(e) {
  12600. var n, r = Object.keys(e).every(function(i) {
  12601. return (n = up(t, e[i], !0)) === !0;
  12602. });
  12603. return r || Bi(`objectOf - value validation error:
  12604. ` + P2(n)), r;
  12605. } });
  12606. }
  12607. function g4e(t) {
  12608. var e = Object.keys(t), n = e.filter(function(i) {
  12609. var a;
  12610. return !!(!((a = t[i]) === null || a === void 0) && a.required);
  12611. }), r = vo("shape", { type: Object, validator: function(i) {
  12612. var a = this;
  12613. if (!zh(i)) return !1;
  12614. var o = Object.keys(i);
  12615. if (n.length > 0 && n.some(function(l) {
  12616. return o.indexOf(l) === -1;
  12617. })) {
  12618. var s = n.filter(function(l) {
  12619. return o.indexOf(l) === -1;
  12620. });
  12621. return Bi(s.length === 1 ? 'shape - required property "' + s[0] + '" is not defined.' : 'shape - required properties "' + s.join('", "') + '" are not defined.'), !1;
  12622. }
  12623. return o.every(function(l) {
  12624. if (e.indexOf(l) === -1) return a._vueTypes_isLoose === !0 || (Bi('shape - shape definition does not include a "' + l + '" property. Allowed keys: "' + e.join('", "') + '".'), !1);
  12625. var u = up(t[l], i[l], !0);
  12626. return typeof u == "string" && Bi('shape - "' + l + `" property validation error:
  12627. ` + P2(u)), u === !0;
  12628. });
  12629. } });
  12630. return Object.defineProperty(r, "_vueTypes_isLoose", { writable: !0, value: !1 }), Object.defineProperty(r, "loose", { get: function() {
  12631. return this._vueTypes_isLoose = !0, this;
  12632. } }), r;
  12633. }
  12634. var vl = function() {
  12635. function t() {
  12636. }
  12637. return t.extend = function(e) {
  12638. var n = this;
  12639. if (Ig(e)) return e.forEach(function(f) {
  12640. return n.extend(f);
  12641. }), this;
  12642. var r = e.name, i = e.validate, a = i !== void 0 && i, o = e.getter, s = o !== void 0 && o, l = Tre(e, ["name", "validate", "getter"]);
  12643. if (Db(this, r)) throw new TypeError('[VueTypes error]: Type "' + r + '" already defined');
  12644. var u, c = l.type;
  12645. return Jw(c) ? (delete l.type, Object.defineProperty(this, r, s ? { get: function() {
  12646. return g7(r, c, l);
  12647. } } : { value: function() {
  12648. var f, d = g7(r, c, l);
  12649. return d.validator && (d.validator = (f = d.validator).bind.apply(f, [d].concat([].slice.call(arguments)))), d;
  12650. } })) : (u = s ? { get: function() {
  12651. var f = Object.assign({}, l);
  12652. return a ? Fl(r, f) : vo(r, f);
  12653. }, enumerable: !0 } : { value: function() {
  12654. var f, d, h = Object.assign({}, l);
  12655. return f = a ? Fl(r, h) : vo(r, h), h.validator && (f.validator = (d = h.validator).bind.apply(d, [f].concat([].slice.call(arguments)))), f;
  12656. }, enumerable: !0 }, Object.defineProperty(this, r, u));
  12657. }, wre(t, null, [{ key: "any", get: function() {
  12658. return t4e();
  12659. } }, { key: "func", get: function() {
  12660. return n4e().def(this.defaults.func);
  12661. } }, { key: "bool", get: function() {
  12662. return r4e().def(this.defaults.bool);
  12663. } }, { key: "string", get: function() {
  12664. return i4e().def(this.defaults.string);
  12665. } }, { key: "number", get: function() {
  12666. return a4e().def(this.defaults.number);
  12667. } }, { key: "array", get: function() {
  12668. return o4e().def(this.defaults.array);
  12669. } }, { key: "object", get: function() {
  12670. return s4e().def(this.defaults.object);
  12671. } }, { key: "integer", get: function() {
  12672. return l4e().def(this.defaults.integer);
  12673. } }, { key: "symbol", get: function() {
  12674. return u4e();
  12675. } }]), t;
  12676. }();
  12677. function Ire(t) {
  12678. var e;
  12679. return t === void 0 && (t = { func: function() {
  12680. }, bool: !0, string: "", number: 0, array: function() {
  12681. return [];
  12682. }, object: function() {
  12683. return {};
  12684. }, integer: 0 }), (e = function(n) {
  12685. function r() {
  12686. return n.apply(this, arguments) || this;
  12687. }
  12688. return Cre(r, n), wre(r, null, [{ key: "sensibleDefaults", get: function() {
  12689. return Ux({}, this.defaults);
  12690. }, set: function(i) {
  12691. this.defaults = i !== !1 ? Ux({}, i !== !0 ? i : t) : {};
  12692. } }]), r;
  12693. }(vl)).defaults = Ux({}, t), e;
  12694. }
  12695. vl.defaults = {}, vl.custom = c4e, vl.oneOf = f4e, vl.instanceOf = p4e, vl.oneOfType = d4e, vl.arrayOf = h4e, vl.objectOf = v4e, vl.shape = g4e, vl.utils = { validate: function(t, e) {
  12696. return up(e, t, !0) === !0;
  12697. }, toType: function(t, e, n) {
  12698. return n === void 0 && (n = !1), n ? Fl(t, e) : vo(t, e);
  12699. } };
  12700. (function(t) {
  12701. function e() {
  12702. return t.apply(this, arguments) || this;
  12703. }
  12704. return Cre(e, t), e;
  12705. })(Ire());
  12706. const oe = Ire({
  12707. func: void 0,
  12708. bool: void 0,
  12709. string: void 0,
  12710. number: void 0,
  12711. array: void 0,
  12712. object: void 0,
  12713. integer: void 0
  12714. });
  12715. oe.extend([{
  12716. name: "looseBool",
  12717. getter: !0,
  12718. type: Boolean,
  12719. default: void 0
  12720. }, {
  12721. name: "style",
  12722. getter: !0,
  12723. type: [String, Object],
  12724. default: void 0
  12725. }, {
  12726. name: "VueNode",
  12727. getter: !0,
  12728. type: null
  12729. }]);
  12730. function m4e(t) {
  12731. return t.default = void 0, t;
  12732. }
  12733. const lo = (t, e, n) => {
  12734. Lo(t, `[ant-design-vue: ${e}] ${n}`);
  12735. };
  12736. function m7(t, e) {
  12737. const {
  12738. key: n
  12739. } = t;
  12740. let r;
  12741. return "value" in t && ({
  12742. value: r
  12743. } = t), n ?? (r !== void 0 ? r : `rc-index-key-${e}`);
  12744. }
  12745. function Dre(t, e) {
  12746. const {
  12747. label: n,
  12748. value: r,
  12749. options: i
  12750. } = t || {};
  12751. return {
  12752. label: n || (e ? "children" : "label"),
  12753. value: r || "value",
  12754. options: i || "options"
  12755. };
  12756. }
  12757. function y4e(t) {
  12758. let {
  12759. fieldNames: e,
  12760. childrenAsData: n
  12761. } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  12762. const r = [], {
  12763. label: i,
  12764. value: a,
  12765. options: o
  12766. } = Dre(e, !1);
  12767. function s(l, u) {
  12768. l.forEach((c) => {
  12769. const f = c[i];
  12770. if (u || !(o in c)) {
  12771. const d = c[a];
  12772. r.push({
  12773. key: m7(c, r.length),
  12774. groupOption: u,
  12775. data: c,
  12776. label: f,
  12777. value: d
  12778. });
  12779. } else {
  12780. let d = f;
  12781. d === void 0 && n && (d = c.label), r.push({
  12782. key: m7(c, r.length),
  12783. group: !0,
  12784. data: c,
  12785. label: d
  12786. }), s(c[o], !0);
  12787. }
  12788. });
  12789. }
  12790. return s(t, !1), r;
  12791. }
  12792. function SR(t) {
  12793. const e = k({}, t);
  12794. return "props" in e || Object.defineProperty(e, "props", {
  12795. get() {
  12796. return Nh(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), e;
  12797. }
  12798. }), e;
  12799. }
  12800. function b4e(t, e) {
  12801. if (!e || !e.length)
  12802. return null;
  12803. let n = !1;
  12804. function r(a, o) {
  12805. let [s, ...l] = o;
  12806. if (!s)
  12807. return [a];
  12808. const u = a.split(s);
  12809. return n = n || u.length > 1, u.reduce((c, f) => [...c, ...r(f, l)], []).filter((c) => c);
  12810. }
  12811. const i = r(t, e);
  12812. return n ? i : null;
  12813. }
  12814. function _4e() {
  12815. return "";
  12816. }
  12817. function O4e(t) {
  12818. return t ? t.ownerDocument : window.document;
  12819. }
  12820. function Rre() {
  12821. }
  12822. const S4e = () => ({
  12823. action: oe.oneOfType([oe.string, oe.arrayOf(oe.string)]).def([]),
  12824. showAction: oe.any.def([]),
  12825. hideAction: oe.any.def([]),
  12826. getPopupClassNameFromAlign: oe.any.def(_4e),
  12827. onPopupVisibleChange: Function,
  12828. afterPopupVisibleChange: oe.func.def(Rre),
  12829. popup: oe.any,
  12830. arrow: oe.bool.def(!0),
  12831. popupStyle: {
  12832. type: Object,
  12833. default: void 0
  12834. },
  12835. prefixCls: oe.string.def("rc-trigger-popup"),
  12836. popupClassName: oe.string.def(""),
  12837. popupPlacement: String,
  12838. builtinPlacements: oe.object,
  12839. popupTransitionName: String,
  12840. popupAnimation: oe.any,
  12841. mouseEnterDelay: oe.number.def(0),
  12842. mouseLeaveDelay: oe.number.def(0.1),
  12843. zIndex: Number,
  12844. focusDelay: oe.number.def(0),
  12845. blurDelay: oe.number.def(0.15),
  12846. getPopupContainer: Function,
  12847. getDocument: oe.func.def(O4e),
  12848. forceRender: {
  12849. type: Boolean,
  12850. default: void 0
  12851. },
  12852. destroyPopupOnHide: {
  12853. type: Boolean,
  12854. default: !1
  12855. },
  12856. mask: {
  12857. type: Boolean,
  12858. default: !1
  12859. },
  12860. maskClosable: {
  12861. type: Boolean,
  12862. default: !0
  12863. },
  12864. // onPopupAlign: PropTypes.func.def(noop),
  12865. popupAlign: oe.object.def(() => ({})),
  12866. popupVisible: {
  12867. type: Boolean,
  12868. default: void 0
  12869. },
  12870. defaultPopupVisible: {
  12871. type: Boolean,
  12872. default: !1
  12873. },
  12874. maskTransitionName: String,
  12875. maskAnimation: String,
  12876. stretch: String,
  12877. alignPoint: {
  12878. type: Boolean,
  12879. default: void 0
  12880. },
  12881. autoDestroy: {
  12882. type: Boolean,
  12883. default: !1
  12884. },
  12885. mobile: Object,
  12886. getTriggerDOMNode: Function
  12887. }), jN = {
  12888. visible: Boolean,
  12889. prefixCls: String,
  12890. zIndex: Number,
  12891. destroyPopupOnHide: Boolean,
  12892. forceRender: Boolean,
  12893. arrow: {
  12894. type: Boolean,
  12895. default: !0
  12896. },
  12897. // Legacy Motion
  12898. animation: [String, Object],
  12899. transitionName: String,
  12900. // Measure
  12901. stretch: {
  12902. type: String
  12903. },
  12904. // Align
  12905. align: {
  12906. type: Object
  12907. },
  12908. point: {
  12909. type: Object
  12910. },
  12911. getRootDomNode: {
  12912. type: Function
  12913. },
  12914. getClassNameFromAlign: {
  12915. type: Function
  12916. },
  12917. onAlign: {
  12918. type: Function
  12919. },
  12920. onMouseenter: {
  12921. type: Function
  12922. },
  12923. onMouseleave: {
  12924. type: Function
  12925. },
  12926. onMousedown: {
  12927. type: Function
  12928. },
  12929. onTouchstart: {
  12930. type: Function
  12931. }
  12932. }, x4e = k(k({}, jN), {
  12933. mobile: {
  12934. type: Object
  12935. }
  12936. }), w4e = k(k({}, jN), {
  12937. mask: Boolean,
  12938. mobile: {
  12939. type: Object
  12940. },
  12941. maskAnimation: String,
  12942. maskTransitionName: String
  12943. });
  12944. function ZN(t) {
  12945. let {
  12946. prefixCls: e,
  12947. animation: n,
  12948. transitionName: r
  12949. } = t;
  12950. return n ? {
  12951. name: `${e}-${n}`
  12952. } : r ? {
  12953. name: r
  12954. } : {};
  12955. }
  12956. function kre(t) {
  12957. const {
  12958. prefixCls: e,
  12959. visible: n,
  12960. zIndex: r,
  12961. mask: i,
  12962. maskAnimation: a,
  12963. maskTransitionName: o
  12964. } = t;
  12965. if (!i)
  12966. return null;
  12967. let s = {};
  12968. return (o || a) && (s = ZN({
  12969. prefixCls: e,
  12970. transitionName: o,
  12971. animation: a
  12972. })), D(mo, te({
  12973. appear: !0
  12974. }, s), {
  12975. default: () => [Sr(D("div", {
  12976. style: {
  12977. zIndex: r
  12978. },
  12979. class: `${e}-mask`
  12980. }, null), [[dxe("if"), n]])]
  12981. });
  12982. }
  12983. kre.displayName = "Mask";
  12984. const C4e = ae({
  12985. compatConfig: {
  12986. MODE: 3
  12987. },
  12988. name: "MobilePopupInner",
  12989. inheritAttrs: !1,
  12990. props: x4e,
  12991. emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
  12992. setup(t, e) {
  12993. let {
  12994. expose: n,
  12995. slots: r
  12996. } = e;
  12997. const i = ee();
  12998. return n({
  12999. forceAlign: () => {
  13000. },
  13001. getElement: () => i.value
  13002. }), () => {
  13003. var a;
  13004. const {
  13005. zIndex: o,
  13006. visible: s,
  13007. prefixCls: l,
  13008. mobile: {
  13009. popupClassName: u,
  13010. popupStyle: c,
  13011. popupMotion: f = {},
  13012. popupRender: d
  13013. } = {}
  13014. } = t, h = k({
  13015. zIndex: o
  13016. }, c);
  13017. let p = qr((a = r.default) === null || a === void 0 ? void 0 : a.call(r));
  13018. p.length > 1 && (p = D("div", {
  13019. class: `${l}-content`
  13020. }, [p])), d && (p = d(p));
  13021. const v = Re(l, u);
  13022. return D(mo, te({
  13023. ref: i
  13024. }, f), {
  13025. default: () => [s ? D("div", {
  13026. class: v,
  13027. style: h
  13028. }, [p]) : null]
  13029. });
  13030. };
  13031. }
  13032. });
  13033. var T4e = function(t, e, n, r) {
  13034. function i(a) {
  13035. return a instanceof n ? a : new n(function(o) {
  13036. o(a);
  13037. });
  13038. }
  13039. return new (n || (n = Promise))(function(a, o) {
  13040. function s(c) {
  13041. try {
  13042. u(r.next(c));
  13043. } catch (f) {
  13044. o(f);
  13045. }
  13046. }
  13047. function l(c) {
  13048. try {
  13049. u(r.throw(c));
  13050. } catch (f) {
  13051. o(f);
  13052. }
  13053. }
  13054. function u(c) {
  13055. c.done ? a(c.value) : i(c.value).then(s, l);
  13056. }
  13057. u((r = r.apply(t, e || [])).next());
  13058. });
  13059. };
  13060. const y7 = ["measure", "align", null, "motion"], P4e = (t, e) => {
  13061. const n = ve(null), r = ve(), i = ve(!1);
  13062. function a(l) {
  13063. i.value || (n.value = l);
  13064. }
  13065. function o() {
  13066. en.cancel(r.value);
  13067. }
  13068. function s(l) {
  13069. o(), r.value = en(() => {
  13070. let u = n.value;
  13071. switch (n.value) {
  13072. case "align":
  13073. u = "motion";
  13074. break;
  13075. case "motion":
  13076. u = "stable";
  13077. break;
  13078. }
  13079. a(u), l == null || l();
  13080. });
  13081. }
  13082. return me(t, () => {
  13083. a("measure");
  13084. }, {
  13085. immediate: !0,
  13086. flush: "post"
  13087. }), _t(() => {
  13088. me(n, () => {
  13089. switch (n.value) {
  13090. case "measure":
  13091. e();
  13092. break;
  13093. }
  13094. n.value && (r.value = en(() => T4e(void 0, void 0, void 0, function* () {
  13095. const l = y7.indexOf(n.value), u = y7[l + 1];
  13096. u && l !== -1 && a(u);
  13097. })));
  13098. }, {
  13099. immediate: !0,
  13100. flush: "post"
  13101. });
  13102. }), Qt(() => {
  13103. i.value = !0, o();
  13104. }), [n, s];
  13105. }, $4e = (t) => {
  13106. const e = ve({
  13107. width: 0,
  13108. height: 0
  13109. });
  13110. function n(i) {
  13111. e.value = {
  13112. width: i.offsetWidth,
  13113. height: i.offsetHeight
  13114. };
  13115. }
  13116. return [V(() => {
  13117. const i = {};
  13118. if (t.value) {
  13119. const {
  13120. width: a,
  13121. height: o
  13122. } = e.value;
  13123. t.value.indexOf("height") !== -1 && o ? i.height = `${o}px` : t.value.indexOf("minHeight") !== -1 && o && (i.minHeight = `${o}px`), t.value.indexOf("width") !== -1 && a ? i.width = `${a}px` : t.value.indexOf("minWidth") !== -1 && a && (i.minWidth = `${a}px`);
  13124. }
  13125. return i;
  13126. }), n];
  13127. };
  13128. function b7(t, e) {
  13129. var n = Object.keys(t);
  13130. if (Object.getOwnPropertySymbols) {
  13131. var r = Object.getOwnPropertySymbols(t);
  13132. e && (r = r.filter(function(i) {
  13133. return Object.getOwnPropertyDescriptor(t, i).enumerable;
  13134. })), n.push.apply(n, r);
  13135. }
  13136. return n;
  13137. }
  13138. function _7(t) {
  13139. for (var e = 1; e < arguments.length; e++) {
  13140. var n = arguments[e] != null ? arguments[e] : {};
  13141. e % 2 ? b7(Object(n), !0).forEach(function(r) {
  13142. A4e(t, r, n[r]);
  13143. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : b7(Object(n)).forEach(function(r) {
  13144. Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
  13145. });
  13146. }
  13147. return t;
  13148. }
  13149. function xR(t) {
  13150. "@babel/helpers - typeof";
  13151. return xR = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
  13152. return typeof e;
  13153. } : function(e) {
  13154. return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  13155. }, xR(t);
  13156. }
  13157. function A4e(t, e, n) {
  13158. return e in t ? Object.defineProperty(t, e, {
  13159. value: n,
  13160. enumerable: !0,
  13161. configurable: !0,
  13162. writable: !0
  13163. }) : t[e] = n, t;
  13164. }
  13165. var _0, E4e = {
  13166. Webkit: "-webkit-",
  13167. Moz: "-moz-",
  13168. // IE did it wrong again ...
  13169. ms: "-ms-",
  13170. O: "-o-"
  13171. };
  13172. function eC() {
  13173. if (_0 !== void 0)
  13174. return _0;
  13175. _0 = "";
  13176. var t = document.createElement("p").style, e = "Transform";
  13177. for (var n in E4e)
  13178. n + e in t && (_0 = n);
  13179. return _0;
  13180. }
  13181. function Lre() {
  13182. return eC() ? "".concat(eC(), "TransitionProperty") : "transitionProperty";
  13183. }
  13184. function $2() {
  13185. return eC() ? "".concat(eC(), "Transform") : "transform";
  13186. }
  13187. function O7(t, e) {
  13188. var n = Lre();
  13189. n && (t.style[n] = e, n !== "transitionProperty" && (t.style.transitionProperty = e));
  13190. }
  13191. function tE(t, e) {
  13192. var n = $2();
  13193. n && (t.style[n] = e, n !== "transform" && (t.style.transform = e));
  13194. }
  13195. function M4e(t) {
  13196. return t.style.transitionProperty || t.style[Lre()];
  13197. }
  13198. function I4e(t) {
  13199. var e = window.getComputedStyle(t, null), n = e.getPropertyValue("transform") || e.getPropertyValue($2());
  13200. if (n && n !== "none") {
  13201. var r = n.replace(/[^0-9\-.,]/g, "").split(",");
  13202. return {
  13203. x: parseFloat(r[12] || r[4], 0),
  13204. y: parseFloat(r[13] || r[5], 0)
  13205. };
  13206. }
  13207. return {
  13208. x: 0,
  13209. y: 0
  13210. };
  13211. }
  13212. var D4e = /matrix\((.*)\)/, R4e = /matrix3d\((.*)\)/;
  13213. function k4e(t, e) {
  13214. var n = window.getComputedStyle(t, null), r = n.getPropertyValue("transform") || n.getPropertyValue($2());
  13215. if (r && r !== "none") {
  13216. var i, a = r.match(D4e);
  13217. if (a)
  13218. a = a[1], i = a.split(",").map(function(s) {
  13219. return parseFloat(s, 10);
  13220. }), i[4] = e.x, i[5] = e.y, tE(t, "matrix(".concat(i.join(","), ")"));
  13221. else {
  13222. var o = r.match(R4e)[1];
  13223. i = o.split(",").map(function(s) {
  13224. return parseFloat(s, 10);
  13225. }), i[12] = e.x, i[13] = e.y, tE(t, "matrix3d(".concat(i.join(","), ")"));
  13226. }
  13227. } else
  13228. tE(t, "translateX(".concat(e.x, "px) translateY(").concat(e.y, "px) translateZ(0)"));
  13229. }
  13230. var L4e = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, j_;
  13231. function S7(t) {
  13232. var e = t.style.display;
  13233. t.style.display = "none", t.offsetHeight, t.style.display = e;
  13234. }
  13235. function Qv(t, e, n) {
  13236. var r = n;
  13237. if (xR(e) === "object") {
  13238. for (var i in e)
  13239. e.hasOwnProperty(i) && Qv(t, i, e[i]);
  13240. return;
  13241. }
  13242. if (typeof r < "u") {
  13243. typeof r == "number" && (r = "".concat(r, "px")), t.style[e] = r;
  13244. return;
  13245. }
  13246. return j_(t, e);
  13247. }
  13248. function N4e(t) {
  13249. var e, n, r, i = t.ownerDocument, a = i.body, o = i && i.documentElement;
  13250. return e = t.getBoundingClientRect(), n = Math.floor(e.left), r = Math.floor(e.top), n -= o.clientLeft || a.clientLeft || 0, r -= o.clientTop || a.clientTop || 0, {
  13251. left: n,
  13252. top: r
  13253. };
  13254. }
  13255. function Nre(t, e) {
  13256. var n = t["page".concat(e ? "Y" : "X", "Offset")], r = "scroll".concat(e ? "Top" : "Left");
  13257. if (typeof n != "number") {
  13258. var i = t.document;
  13259. n = i.documentElement[r], typeof n != "number" && (n = i.body[r]);
  13260. }
  13261. return n;
  13262. }
  13263. function Bre(t) {
  13264. return Nre(t);
  13265. }
  13266. function zre(t) {
  13267. return Nre(t, !0);
  13268. }
  13269. function Rb(t) {
  13270. var e = N4e(t), n = t.ownerDocument, r = n.defaultView || n.parentWindow;
  13271. return e.left += Bre(r), e.top += zre(r), e;
  13272. }
  13273. function UN(t) {
  13274. return t != null && t == t.window;
  13275. }
  13276. function Vre(t) {
  13277. return UN(t) ? t.document : t.nodeType === 9 ? t : t.ownerDocument;
  13278. }
  13279. function B4e(t, e, n) {
  13280. var r = n, i = "", a = Vre(t);
  13281. return r = r || a.defaultView.getComputedStyle(t, null), r && (i = r.getPropertyValue(e) || r[e]), i;
  13282. }
  13283. var z4e = new RegExp("^(".concat(L4e, ")(?!px)[a-z%]+$"), "i"), V4e = /^(top|right|bottom|left)$/, nE = "currentStyle", rE = "runtimeStyle", id = "left", F4e = "px";
  13284. function W4e(t, e) {
  13285. var n = t[nE] && t[nE][e];
  13286. if (z4e.test(n) && !V4e.test(e)) {
  13287. var r = t.style, i = r[id], a = t[rE][id];
  13288. t[rE][id] = t[nE][id], r[id] = e === "fontSize" ? "1em" : n || 0, n = r.pixelLeft + F4e, r[id] = i, t[rE][id] = a;
  13289. }
  13290. return n === "" ? "auto" : n;
  13291. }
  13292. typeof window < "u" && (j_ = window.getComputedStyle ? B4e : W4e);
  13293. function ZO(t, e) {
  13294. return t === "left" ? e.useCssRight ? "right" : t : e.useCssBottom ? "bottom" : t;
  13295. }
  13296. function x7(t) {
  13297. if (t === "left")
  13298. return "right";
  13299. if (t === "right")
  13300. return "left";
  13301. if (t === "top")
  13302. return "bottom";
  13303. if (t === "bottom")
  13304. return "top";
  13305. }
  13306. function w7(t, e, n) {
  13307. Qv(t, "position") === "static" && (t.style.position = "relative");
  13308. var r = -999, i = -999, a = ZO("left", n), o = ZO("top", n), s = x7(a), l = x7(o);
  13309. a !== "left" && (r = 999), o !== "top" && (i = 999);
  13310. var u = "", c = Rb(t);
  13311. ("left" in e || "top" in e) && (u = M4e(t) || "", O7(t, "none")), "left" in e && (t.style[s] = "", t.style[a] = "".concat(r, "px")), "top" in e && (t.style[l] = "", t.style[o] = "".concat(i, "px")), S7(t);
  13312. var f = Rb(t), d = {};
  13313. for (var h in e)
  13314. if (e.hasOwnProperty(h)) {
  13315. var p = ZO(h, n), v = h === "left" ? r : i, g = c[h] - f[h];
  13316. p === h ? d[p] = v + g : d[p] = v - g;
  13317. }
  13318. Qv(t, d), S7(t), ("left" in e || "top" in e) && O7(t, u);
  13319. var m = {};
  13320. for (var y in e)
  13321. if (e.hasOwnProperty(y)) {
  13322. var _ = ZO(y, n), O = e[y] - c[y];
  13323. y === _ ? m[_] = d[_] + O : m[_] = d[_] - O;
  13324. }
  13325. Qv(t, m);
  13326. }
  13327. function Q4e(t, e) {
  13328. var n = Rb(t), r = I4e(t), i = {
  13329. x: r.x,
  13330. y: r.y
  13331. };
  13332. "left" in e && (i.x = r.x + e.left - n.left), "top" in e && (i.y = r.y + e.top - n.top), k4e(t, i);
  13333. }
  13334. function H4e(t, e, n) {
  13335. if (n.ignoreShake) {
  13336. var r = Rb(t), i = r.left.toFixed(0), a = r.top.toFixed(0), o = e.left.toFixed(0), s = e.top.toFixed(0);
  13337. if (i === o && a === s)
  13338. return;
  13339. }
  13340. n.useCssRight || n.useCssBottom ? w7(t, e, n) : n.useCssTransform && $2() in document.body.style ? Q4e(t, e) : w7(t, e, n);
  13341. }
  13342. function XN(t, e) {
  13343. for (var n = 0; n < t.length; n++)
  13344. e(t[n]);
  13345. }
  13346. function Fre(t) {
  13347. return j_(t, "boxSizing") === "border-box";
  13348. }
  13349. var G4e = ["margin", "border", "padding"], wR = -1, j4e = 2, CR = 1, Z4e = 0;
  13350. function U4e(t, e, n) {
  13351. var r = {}, i = t.style, a;
  13352. for (a in e)
  13353. e.hasOwnProperty(a) && (r[a] = i[a], i[a] = e[a]);
  13354. n.call(t);
  13355. for (a in e)
  13356. e.hasOwnProperty(a) && (i[a] = r[a]);
  13357. }
  13358. function fy(t, e, n) {
  13359. var r = 0, i, a, o;
  13360. for (a = 0; a < e.length; a++)
  13361. if (i = e[a], i)
  13362. for (o = 0; o < n.length; o++) {
  13363. var s = void 0;
  13364. i === "border" ? s = "".concat(i).concat(n[o], "Width") : s = i + n[o], r += parseFloat(j_(t, s)) || 0;
  13365. }
  13366. return r;
  13367. }
  13368. var Pl = {
  13369. getParent: function(e) {
  13370. var n = e;
  13371. do
  13372. n.nodeType === 11 && n.host ? n = n.host : n = n.parentNode;
  13373. while (n && n.nodeType !== 1 && n.nodeType !== 9);
  13374. return n;
  13375. }
  13376. };
  13377. XN(["Width", "Height"], function(t) {
  13378. Pl["doc".concat(t)] = function(e) {
  13379. var n = e.document;
  13380. return Math.max(
  13381. // firefox chrome documentElement.scrollHeight< body.scrollHeight
  13382. // ie standard mode : documentElement.scrollHeight> body.scrollHeight
  13383. n.documentElement["scroll".concat(t)],
  13384. // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
  13385. n.body["scroll".concat(t)],
  13386. Pl["viewport".concat(t)](n)
  13387. );
  13388. }, Pl["viewport".concat(t)] = function(e) {
  13389. var n = "client".concat(t), r = e.document, i = r.body, a = r.documentElement, o = a[n];
  13390. return r.compatMode === "CSS1Compat" && o || i && i[n] || o;
  13391. };
  13392. });
  13393. function C7(t, e, n) {
  13394. var r = n;
  13395. if (UN(t))
  13396. return e === "width" ? Pl.viewportWidth(t) : Pl.viewportHeight(t);
  13397. if (t.nodeType === 9)
  13398. return e === "width" ? Pl.docWidth(t) : Pl.docHeight(t);
  13399. var i = e === "width" ? ["Left", "Right"] : ["Top", "Bottom"], a = Math.floor(e === "width" ? t.getBoundingClientRect().width : t.getBoundingClientRect().height), o = Fre(t), s = 0;
  13400. (a == null || a <= 0) && (a = void 0, s = j_(t, e), (s == null || Number(s) < 0) && (s = t.style[e] || 0), s = Math.floor(parseFloat(s)) || 0), r === void 0 && (r = o ? CR : wR);
  13401. var l = a !== void 0 || o, u = a || s;
  13402. return r === wR ? l ? u - fy(t, ["border", "padding"], i) : s : l ? r === CR ? u : u + (r === j4e ? -fy(t, ["border"], i) : fy(t, ["margin"], i)) : s + fy(t, G4e.slice(r), i);
  13403. }
  13404. var X4e = {
  13405. position: "absolute",
  13406. visibility: "hidden",
  13407. display: "block"
  13408. };
  13409. function T7() {
  13410. for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
  13411. e[n] = arguments[n];
  13412. var r, i = e[0];
  13413. return i.offsetWidth !== 0 ? r = C7.apply(void 0, e) : U4e(i, X4e, function() {
  13414. r = C7.apply(void 0, e);
  13415. }), r;
  13416. }
  13417. XN(["width", "height"], function(t) {
  13418. var e = t.charAt(0).toUpperCase() + t.slice(1);
  13419. Pl["outer".concat(e)] = function(r, i) {
  13420. return r && T7(r, t, i ? Z4e : CR);
  13421. };
  13422. var n = t === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
  13423. Pl[t] = function(r, i) {
  13424. var a = i;
  13425. if (a !== void 0) {
  13426. if (r) {
  13427. var o = Fre(r);
  13428. return o && (a += fy(r, ["padding", "border"], n)), Qv(r, t, a);
  13429. }
  13430. return;
  13431. }
  13432. return r && T7(r, t, wR);
  13433. };
  13434. });
  13435. function Wre(t, e) {
  13436. for (var n in e)
  13437. e.hasOwnProperty(n) && (t[n] = e[n]);
  13438. return t;
  13439. }
  13440. var Nt = {
  13441. getWindow: function(e) {
  13442. if (e && e.document && e.setTimeout)
  13443. return e;
  13444. var n = e.ownerDocument || e;
  13445. return n.defaultView || n.parentWindow;
  13446. },
  13447. getDocument: Vre,
  13448. offset: function(e, n, r) {
  13449. if (typeof n < "u")
  13450. H4e(e, n, r || {});
  13451. else
  13452. return Rb(e);
  13453. },
  13454. isWindow: UN,
  13455. each: XN,
  13456. css: Qv,
  13457. clone: function(e) {
  13458. var n, r = {};
  13459. for (n in e)
  13460. e.hasOwnProperty(n) && (r[n] = e[n]);
  13461. var i = e.overflow;
  13462. if (i)
  13463. for (n in e)
  13464. e.hasOwnProperty(n) && (r.overflow[n] = e.overflow[n]);
  13465. return r;
  13466. },
  13467. mix: Wre,
  13468. getWindowScrollLeft: function(e) {
  13469. return Bre(e);
  13470. },
  13471. getWindowScrollTop: function(e) {
  13472. return zre(e);
  13473. },
  13474. merge: function() {
  13475. for (var e = {}, n = 0; n < arguments.length; n++)
  13476. Nt.mix(e, n < 0 || arguments.length <= n ? void 0 : arguments[n]);
  13477. return e;
  13478. },
  13479. viewportWidth: 0,
  13480. viewportHeight: 0
  13481. };
  13482. Wre(Nt, Pl);
  13483. var iE = Nt.getParent;
  13484. function TR(t) {
  13485. if (Nt.isWindow(t) || t.nodeType === 9)
  13486. return null;
  13487. var e = Nt.getDocument(t), n = e.body, r, i = Nt.css(t, "position"), a = i === "fixed" || i === "absolute";
  13488. if (!a)
  13489. return t.nodeName.toLowerCase() === "html" ? null : iE(t);
  13490. for (r = iE(t); r && r !== n && r.nodeType !== 9; r = iE(r))
  13491. if (i = Nt.css(r, "position"), i !== "static")
  13492. return r;
  13493. return null;
  13494. }
  13495. var P7 = Nt.getParent;
  13496. function Y4e(t) {
  13497. if (Nt.isWindow(t) || t.nodeType === 9)
  13498. return !1;
  13499. var e = Nt.getDocument(t), n = e.body, r = null;
  13500. for (
  13501. r = P7(t);
  13502. // 修复元素位于 document.documentElement 下导致崩溃问题
  13503. r && r !== n && r !== e;
  13504. r = P7(r)
  13505. ) {
  13506. var i = Nt.css(r, "position");
  13507. if (i === "fixed")
  13508. return !0;
  13509. }
  13510. return !1;
  13511. }
  13512. function YN(t, e) {
  13513. for (var n = {
  13514. left: 0,
  13515. right: 1 / 0,
  13516. top: 0,
  13517. bottom: 1 / 0
  13518. }, r = TR(t), i = Nt.getDocument(t), a = i.defaultView || i.parentWindow, o = i.body, s = i.documentElement; r; ) {
  13519. if ((navigator.userAgent.indexOf("MSIE") === -1 || r.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
  13520. // viewport. In some browsers, el.offsetParent may be
  13521. // document.documentElement, so check for that too.
  13522. r !== o && r !== s && Nt.css(r, "overflow") !== "visible") {
  13523. var l = Nt.offset(r);
  13524. l.left += r.clientLeft, l.top += r.clientTop, n.top = Math.max(n.top, l.top), n.right = Math.min(
  13525. n.right,
  13526. // consider area without scrollBar
  13527. l.left + r.clientWidth
  13528. ), n.bottom = Math.min(n.bottom, l.top + r.clientHeight), n.left = Math.max(n.left, l.left);
  13529. } else if (r === o || r === s)
  13530. break;
  13531. r = TR(r);
  13532. }
  13533. var u = null;
  13534. if (!Nt.isWindow(t) && t.nodeType !== 9) {
  13535. u = t.style.position;
  13536. var c = Nt.css(t, "position");
  13537. c === "absolute" && (t.style.position = "fixed");
  13538. }
  13539. var f = Nt.getWindowScrollLeft(a), d = Nt.getWindowScrollTop(a), h = Nt.viewportWidth(a), p = Nt.viewportHeight(a), v = s.scrollWidth, g = s.scrollHeight, m = window.getComputedStyle(o);
  13540. if (m.overflowX === "hidden" && (v = a.innerWidth), m.overflowY === "hidden" && (g = a.innerHeight), t.style && (t.style.position = u), e || Y4e(t))
  13541. n.left = Math.max(n.left, f), n.top = Math.max(n.top, d), n.right = Math.min(n.right, f + h), n.bottom = Math.min(n.bottom, d + p);
  13542. else {
  13543. var y = Math.max(v, f + h);
  13544. n.right = Math.min(n.right, y);
  13545. var _ = Math.max(g, d + p);
  13546. n.bottom = Math.min(n.bottom, _);
  13547. }
  13548. return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left ? n : null;
  13549. }
  13550. function q4e(t, e, n, r) {
  13551. var i = Nt.clone(t), a = {
  13552. width: e.width,
  13553. height: e.height
  13554. };
  13555. return r.adjustX && i.left < n.left && (i.left = n.left), r.resizeWidth && i.left >= n.left && i.left + a.width > n.right && (a.width -= i.left + a.width - n.right), r.adjustX && i.left + a.width > n.right && (i.left = Math.max(n.right - a.width, n.left)), r.adjustY && i.top < n.top && (i.top = n.top), r.resizeHeight && i.top >= n.top && i.top + a.height > n.bottom && (a.height -= i.top + a.height - n.bottom), r.adjustY && i.top + a.height > n.bottom && (i.top = Math.max(n.bottom - a.height, n.top)), Nt.mix(i, a);
  13556. }
  13557. function qN(t) {
  13558. var e, n, r;
  13559. if (!Nt.isWindow(t) && t.nodeType !== 9)
  13560. e = Nt.offset(t), n = Nt.outerWidth(t), r = Nt.outerHeight(t);
  13561. else {
  13562. var i = Nt.getWindow(t);
  13563. e = {
  13564. left: Nt.getWindowScrollLeft(i),
  13565. top: Nt.getWindowScrollTop(i)
  13566. }, n = Nt.viewportWidth(i), r = Nt.viewportHeight(i);
  13567. }
  13568. return e.width = n, e.height = r, e;
  13569. }
  13570. function $7(t, e) {
  13571. var n = e.charAt(0), r = e.charAt(1), i = t.width, a = t.height, o = t.left, s = t.top;
  13572. return n === "c" ? s += a / 2 : n === "b" && (s += a), r === "c" ? o += i / 2 : r === "r" && (o += i), {
  13573. left: o,
  13574. top: s
  13575. };
  13576. }
  13577. function UO(t, e, n, r, i) {
  13578. var a = $7(e, n[1]), o = $7(t, n[0]), s = [o.left - a.left, o.top - a.top];
  13579. return {
  13580. left: Math.round(t.left - s[0] + r[0] - i[0]),
  13581. top: Math.round(t.top - s[1] + r[1] - i[1])
  13582. };
  13583. }
  13584. function A7(t, e, n) {
  13585. return t.left < n.left || t.left + e.width > n.right;
  13586. }
  13587. function E7(t, e, n) {
  13588. return t.top < n.top || t.top + e.height > n.bottom;
  13589. }
  13590. function K4e(t, e, n) {
  13591. return t.left > n.right || t.left + e.width < n.left;
  13592. }
  13593. function J4e(t, e, n) {
  13594. return t.top > n.bottom || t.top + e.height < n.top;
  13595. }
  13596. function XO(t, e, n) {
  13597. var r = [];
  13598. return Nt.each(t, function(i) {
  13599. r.push(i.replace(e, function(a) {
  13600. return n[a];
  13601. }));
  13602. }), r;
  13603. }
  13604. function YO(t, e) {
  13605. return t[e] = -t[e], t;
  13606. }
  13607. function M7(t, e) {
  13608. var n;
  13609. return /%$/.test(t) ? n = parseInt(t.substring(0, t.length - 1), 10) / 100 * e : n = parseInt(t, 10), n || 0;
  13610. }
  13611. function I7(t, e) {
  13612. t[0] = M7(t[0], e.width), t[1] = M7(t[1], e.height);
  13613. }
  13614. function Qre(t, e, n, r) {
  13615. var i = n.points, a = n.offset || [0, 0], o = n.targetOffset || [0, 0], s = n.overflow, l = n.source || t;
  13616. a = [].concat(a), o = [].concat(o), s = s || {};
  13617. var u = {}, c = 0, f = !!(s && s.alwaysByViewport), d = YN(l, f), h = qN(l);
  13618. I7(a, h), I7(o, e);
  13619. var p = UO(h, e, i, a, o), v = Nt.merge(h, p);
  13620. if (d && (s.adjustX || s.adjustY) && r) {
  13621. if (s.adjustX && A7(p, h, d)) {
  13622. var g = XO(i, /[lr]/gi, {
  13623. l: "r",
  13624. r: "l"
  13625. }), m = YO(a, 0), y = YO(o, 0), _ = UO(h, e, g, m, y);
  13626. K4e(_, h, d) || (c = 1, i = g, a = m, o = y);
  13627. }
  13628. if (s.adjustY && E7(p, h, d)) {
  13629. var O = XO(i, /[tb]/gi, {
  13630. t: "b",
  13631. b: "t"
  13632. }), S = YO(a, 1), x = YO(o, 1), C = UO(h, e, O, S, x);
  13633. J4e(C, h, d) || (c = 1, i = O, a = S, o = x);
  13634. }
  13635. c && (p = UO(h, e, i, a, o), Nt.mix(v, p));
  13636. var P = A7(p, h, d), $ = E7(p, h, d);
  13637. if (P || $) {
  13638. var T = i;
  13639. P && (T = XO(i, /[lr]/gi, {
  13640. l: "r",
  13641. r: "l"
  13642. })), $ && (T = XO(i, /[tb]/gi, {
  13643. t: "b",
  13644. b: "t"
  13645. })), i = T, a = n.offset || [0, 0], o = n.targetOffset || [0, 0];
  13646. }
  13647. u.adjustX = s.adjustX && P, u.adjustY = s.adjustY && $, (u.adjustX || u.adjustY) && (v = q4e(p, h, d, u));
  13648. }
  13649. return v.width !== h.width && Nt.css(l, "width", Nt.width(l) + v.width - h.width), v.height !== h.height && Nt.css(l, "height", Nt.height(l) + v.height - h.height), Nt.offset(l, {
  13650. left: v.left,
  13651. top: v.top
  13652. }, {
  13653. useCssRight: n.useCssRight,
  13654. useCssBottom: n.useCssBottom,
  13655. useCssTransform: n.useCssTransform,
  13656. ignoreShake: n.ignoreShake
  13657. }), {
  13658. points: i,
  13659. offset: a,
  13660. targetOffset: o,
  13661. overflow: u
  13662. };
  13663. }
  13664. function eNe(t, e) {
  13665. var n = YN(t, e), r = qN(t);
  13666. return !n || r.left + r.width <= n.left || r.top + r.height <= n.top || r.left >= n.right || r.top >= n.bottom;
  13667. }
  13668. function KN(t, e, n) {
  13669. var r = n.target || e, i = qN(r), a = !eNe(r, n.overflow && n.overflow.alwaysByViewport);
  13670. return Qre(t, i, n, a);
  13671. }
  13672. KN.__getOffsetParent = TR;
  13673. KN.__getVisibleRectForElement = YN;
  13674. function tNe(t, e, n) {
  13675. var r, i, a = Nt.getDocument(t), o = a.defaultView || a.parentWindow, s = Nt.getWindowScrollLeft(o), l = Nt.getWindowScrollTop(o), u = Nt.viewportWidth(o), c = Nt.viewportHeight(o);
  13676. "pageX" in e ? r = e.pageX : r = s + e.clientX, "pageY" in e ? i = e.pageY : i = l + e.clientY;
  13677. var f = {
  13678. left: r,
  13679. top: i,
  13680. width: 0,
  13681. height: 0
  13682. }, d = r >= 0 && r <= s + u && i >= 0 && i <= l + c, h = [n.points[0], "cc"];
  13683. return Qre(t, f, _7(_7({}, n), {}, {
  13684. points: h
  13685. }), d);
  13686. }
  13687. function xr(t) {
  13688. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, i = t;
  13689. if (Array.isArray(t) && (i = Zl(t)[0]), !i)
  13690. return null;
  13691. const a = ku(i, e, r);
  13692. return a.props = n ? k(k({}, a.props), e) : a.props, aa(typeof a.props.class != "object", "class must be string"), a;
  13693. }
  13694. function nNe(t, e, n) {
  13695. Ih(ku(t, k({}, e)), n);
  13696. }
  13697. const Hre = (t) => {
  13698. if (!t)
  13699. return !1;
  13700. if (t.offsetParent)
  13701. return !0;
  13702. if (t.getBBox) {
  13703. const e = t.getBBox();
  13704. if (e.width || e.height)
  13705. return !0;
  13706. }
  13707. if (t.getBoundingClientRect) {
  13708. const e = t.getBoundingClientRect();
  13709. if (e.width || e.height)
  13710. return !0;
  13711. }
  13712. return !1;
  13713. };
  13714. function rNe(t, e) {
  13715. return t === e ? !0 : !t || !e ? !1 : "pageX" in e && "pageY" in e ? t.pageX === e.pageX && t.pageY === e.pageY : "clientX" in e && "clientY" in e ? t.clientX === e.clientX && t.clientY === e.clientY : !1;
  13716. }
  13717. function iNe(t, e) {
  13718. t !== document.activeElement && kc(e, t) && typeof t.focus == "function" && t.focus();
  13719. }
  13720. function D7(t, e) {
  13721. let n = null, r = null;
  13722. function i(o) {
  13723. let [{
  13724. target: s
  13725. }] = o;
  13726. if (!document.documentElement.contains(s)) return;
  13727. const {
  13728. width: l,
  13729. height: u
  13730. } = s.getBoundingClientRect(), c = Math.floor(l), f = Math.floor(u);
  13731. (n !== c || r !== f) && Promise.resolve().then(() => {
  13732. e({
  13733. width: c,
  13734. height: f
  13735. });
  13736. }), n = c, r = f;
  13737. }
  13738. const a = new Ene(i);
  13739. return t && a.observe(t), () => {
  13740. a.disconnect();
  13741. };
  13742. }
  13743. const aNe = (t, e) => {
  13744. let n = !1, r = null;
  13745. function i() {
  13746. clearTimeout(r);
  13747. }
  13748. function a(o) {
  13749. if (!n || o === !0) {
  13750. if (t() === !1)
  13751. return;
  13752. n = !0, i(), r = setTimeout(() => {
  13753. n = !1;
  13754. }, e.value);
  13755. } else
  13756. i(), r = setTimeout(() => {
  13757. n = !1, a();
  13758. }, e.value);
  13759. }
  13760. return [a, () => {
  13761. n = !1, i();
  13762. }];
  13763. }, oNe = {
  13764. align: Object,
  13765. target: [Object, Function],
  13766. onAlign: Function,
  13767. monitorBufferTime: Number,
  13768. monitorWindowResize: Boolean,
  13769. disabled: Boolean
  13770. };
  13771. function R7(t) {
  13772. return typeof t != "function" ? null : t();
  13773. }
  13774. function k7(t) {
  13775. return typeof t != "object" || !t ? null : t;
  13776. }
  13777. const sNe = ae({
  13778. compatConfig: {
  13779. MODE: 3
  13780. },
  13781. name: "Align",
  13782. props: oNe,
  13783. emits: ["align"],
  13784. setup(t, e) {
  13785. let {
  13786. expose: n,
  13787. slots: r
  13788. } = e;
  13789. const i = ee({}), a = ee(), [o, s] = aNe(() => {
  13790. const {
  13791. disabled: d,
  13792. target: h,
  13793. align: p,
  13794. onAlign: v
  13795. } = t;
  13796. if (!d && h && a.value) {
  13797. const g = a.value;
  13798. let m;
  13799. const y = R7(h), _ = k7(h);
  13800. i.value.element = y, i.value.point = _, i.value.align = p;
  13801. const {
  13802. activeElement: O
  13803. } = document;
  13804. return y && Hre(y) ? m = KN(g, y, p) : _ && (m = tNe(g, _, p)), iNe(O, g), v && m && v(g, m), !0;
  13805. }
  13806. return !1;
  13807. }, V(() => t.monitorBufferTime)), l = ee({
  13808. cancel: () => {
  13809. }
  13810. }), u = ee({
  13811. cancel: () => {
  13812. }
  13813. }), c = () => {
  13814. const d = t.target, h = R7(d), p = k7(d);
  13815. a.value !== u.value.element && (u.value.cancel(), u.value.element = a.value, u.value.cancel = D7(a.value, o)), (i.value.element !== h || !rNe(i.value.point, p) || !z_(i.value.align, t.align)) && (o(), l.value.element !== h && (l.value.cancel(), l.value.element = h, l.value.cancel = D7(h, o)));
  13816. };
  13817. _t(() => {
  13818. Bt(() => {
  13819. c();
  13820. });
  13821. }), rp(() => {
  13822. Bt(() => {
  13823. c();
  13824. });
  13825. }), me(() => t.disabled, (d) => {
  13826. d ? s() : o();
  13827. }, {
  13828. immediate: !0,
  13829. flush: "post"
  13830. });
  13831. const f = ee(null);
  13832. return me(() => t.monitorWindowResize, (d) => {
  13833. d ? f.value || (f.value = yi(window, "resize", o)) : f.value && (f.value.remove(), f.value = null);
  13834. }, {
  13835. flush: "post"
  13836. }), qu(() => {
  13837. l.value.cancel(), u.value.cancel(), f.value && f.value.remove(), s();
  13838. }), n({
  13839. forceAlign: () => o(!0)
  13840. }), () => {
  13841. const d = r == null ? void 0 : r.default();
  13842. return d ? xr(d[0], {
  13843. ref: a
  13844. }, !0, !0) : null;
  13845. };
  13846. }
  13847. });
  13848. pf("bottomLeft", "bottomRight", "topLeft", "topRight");
  13849. const lNe = (t) => t !== void 0 && (t === "topLeft" || t === "topRight") ? "slide-down" : "slide-up", Z_ = function(t) {
  13850. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  13851. return k(t ? {
  13852. name: t,
  13853. appear: !0,
  13854. // type: 'animation',
  13855. // appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
  13856. // appearActiveClass: `antdv-base-transtion`,
  13857. // appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
  13858. enterFromClass: `${t}-enter ${t}-enter-prepare ${t}-enter-start`,
  13859. enterActiveClass: `${t}-enter ${t}-enter-prepare`,
  13860. enterToClass: `${t}-enter ${t}-enter-active`,
  13861. leaveFromClass: ` ${t}-leave`,
  13862. leaveActiveClass: `${t}-leave ${t}-leave-active`,
  13863. leaveToClass: `${t}-leave ${t}-leave-active`
  13864. } : {
  13865. css: !1
  13866. }, e);
  13867. }, JN = function(t) {
  13868. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  13869. return k(t ? {
  13870. name: t,
  13871. appear: !0,
  13872. // appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
  13873. appearActiveClass: `${t}`,
  13874. appearToClass: `${t}-appear ${t}-appear-active`,
  13875. enterFromClass: `${t}-appear ${t}-enter ${t}-appear-prepare ${t}-enter-prepare`,
  13876. enterActiveClass: `${t}`,
  13877. enterToClass: `${t}-enter ${t}-appear ${t}-appear-active ${t}-enter-active`,
  13878. leaveActiveClass: `${t} ${t}-leave`,
  13879. leaveToClass: `${t}-leave-active`
  13880. } : {
  13881. css: !1
  13882. }, e);
  13883. }, Wl = (t, e, n) => n !== void 0 ? n : `${t}-${e}`, uNe = ae({
  13884. compatConfig: {
  13885. MODE: 3
  13886. },
  13887. name: "PopupInner",
  13888. inheritAttrs: !1,
  13889. props: jN,
  13890. emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
  13891. setup(t, e) {
  13892. let {
  13893. expose: n,
  13894. attrs: r,
  13895. slots: i
  13896. } = e;
  13897. const a = ve(), o = ve(), s = ve(), [l, u] = $4e(Lr(t, "stretch")), c = () => {
  13898. t.stretch && u(t.getRootDomNode());
  13899. }, f = ve(!1);
  13900. let d;
  13901. me(() => t.visible, (x) => {
  13902. clearTimeout(d), x ? d = setTimeout(() => {
  13903. f.value = t.visible;
  13904. }) : f.value = !1;
  13905. }, {
  13906. immediate: !0
  13907. });
  13908. const [h, p] = P4e(f, c), v = ve(), g = () => t.point ? t.point : t.getRootDomNode, m = () => {
  13909. var x;
  13910. (x = a.value) === null || x === void 0 || x.forceAlign();
  13911. }, y = (x, C) => {
  13912. var P;
  13913. const $ = t.getClassNameFromAlign(C), T = s.value;
  13914. s.value !== $ && (s.value = $), h.value === "align" && (T !== $ ? Promise.resolve().then(() => {
  13915. m();
  13916. }) : p(() => {
  13917. var E;
  13918. (E = v.value) === null || E === void 0 || E.call(v);
  13919. }), (P = t.onAlign) === null || P === void 0 || P.call(t, x, C));
  13920. }, _ = V(() => {
  13921. const x = typeof t.animation == "object" ? t.animation : ZN(t);
  13922. return ["onAfterEnter", "onAfterLeave"].forEach((C) => {
  13923. const P = x[C];
  13924. x[C] = ($) => {
  13925. p(), h.value = "stable", P == null || P($);
  13926. };
  13927. }), x;
  13928. }), O = () => new Promise((x) => {
  13929. v.value = x;
  13930. });
  13931. me([_, h], () => {
  13932. !_.value && h.value === "motion" && p();
  13933. }, {
  13934. immediate: !0
  13935. }), n({
  13936. forceAlign: m,
  13937. getElement: () => o.value.$el || o.value
  13938. });
  13939. const S = V(() => {
  13940. var x;
  13941. return !(!((x = t.align) === null || x === void 0) && x.points && (h.value === "align" || h.value === "stable"));
  13942. });
  13943. return () => {
  13944. var x;
  13945. const {
  13946. zIndex: C,
  13947. align: P,
  13948. prefixCls: $,
  13949. destroyPopupOnHide: T,
  13950. onMouseenter: E,
  13951. onMouseleave: M,
  13952. onTouchstart: R = () => {
  13953. },
  13954. onMousedown: N
  13955. } = t, I = h.value, B = [k(k({}, l.value), {
  13956. zIndex: C,
  13957. opacity: I === "motion" || I === "stable" || !f.value ? null : 0,
  13958. // pointerEvents: statusValue === 'stable' ? null : 'none',
  13959. pointerEvents: !f.value && I !== "stable" ? "none" : null
  13960. }), r.style];
  13961. let Q = qr((x = i.default) === null || x === void 0 ? void 0 : x.call(i, {
  13962. visible: t.visible
  13963. }));
  13964. Q.length > 1 && (Q = D("div", {
  13965. class: `${$}-content`
  13966. }, [Q]));
  13967. const W = Re($, r.class, s.value, !t.arrow && `${$}-arrow-hidden`), U = f.value || !t.visible ? Z_(_.value.name, _.value) : {};
  13968. return D(mo, te(te({
  13969. ref: o
  13970. }, U), {}, {
  13971. onBeforeEnter: O
  13972. }), {
  13973. default: () => !T || t.visible ? Sr(D(sNe, {
  13974. target: g(),
  13975. key: "popup",
  13976. ref: a,
  13977. monitorWindowResize: !0,
  13978. disabled: S.value,
  13979. align: P,
  13980. onAlign: y
  13981. }, {
  13982. default: () => D("div", {
  13983. class: W,
  13984. onMouseenter: E,
  13985. onMouseleave: M,
  13986. onMousedown: ai(N, ["capture"]),
  13987. [mi ? "onTouchstartPassive" : "onTouchstart"]: ai(R, ["capture"]),
  13988. style: B
  13989. }, [Q])
  13990. }), [[ho, f.value]]) : null
  13991. });
  13992. };
  13993. }
  13994. }), cNe = ae({
  13995. compatConfig: {
  13996. MODE: 3
  13997. },
  13998. name: "Popup",
  13999. inheritAttrs: !1,
  14000. props: w4e,
  14001. setup(t, e) {
  14002. let {
  14003. attrs: n,
  14004. slots: r,
  14005. expose: i
  14006. } = e;
  14007. const a = ve(!1), o = ve(!1), s = ve(), l = ve();
  14008. return me([() => t.visible, () => t.mobile], () => {
  14009. a.value = t.visible, t.visible && t.mobile && (o.value = !0);
  14010. }, {
  14011. immediate: !0,
  14012. flush: "post"
  14013. }), i({
  14014. forceAlign: () => {
  14015. var u;
  14016. (u = s.value) === null || u === void 0 || u.forceAlign();
  14017. },
  14018. getElement: () => {
  14019. var u;
  14020. return (u = s.value) === null || u === void 0 ? void 0 : u.getElement();
  14021. }
  14022. }), () => {
  14023. const u = k(k(k({}, t), n), {
  14024. visible: a.value
  14025. }), c = o.value ? D(C4e, te(te({}, u), {}, {
  14026. mobile: t.mobile,
  14027. ref: s
  14028. }), {
  14029. default: r.default
  14030. }) : D(uNe, te(te({}, u), {}, {
  14031. ref: s
  14032. }), {
  14033. default: r.default
  14034. });
  14035. return D("div", {
  14036. ref: l
  14037. }, [D(kre, u, null), c]);
  14038. };
  14039. }
  14040. });
  14041. function fNe(t, e, n) {
  14042. return n ? t[0] === e[0] : t[0] === e[0] && t[1] === e[1];
  14043. }
  14044. function L7(t, e, n) {
  14045. const r = t[e] || {};
  14046. return k(k({}, r), n);
  14047. }
  14048. function dNe(t, e, n, r) {
  14049. const {
  14050. points: i
  14051. } = n, a = Object.keys(t);
  14052. for (let o = 0; o < a.length; o += 1) {
  14053. const s = a[o];
  14054. if (fNe(t[s].points, i, r))
  14055. return `${e}-placement-${s}`;
  14056. }
  14057. return "";
  14058. }
  14059. const A2 = {
  14060. methods: {
  14061. setState() {
  14062. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0, n = typeof t == "function" ? t(this.$data, this.$props) : t;
  14063. if (this.getDerivedStateFromProps) {
  14064. const r = this.getDerivedStateFromProps(oke(this), k(k({}, this.$data), n));
  14065. if (r === null)
  14066. return;
  14067. n = k(k({}, n), r || {});
  14068. }
  14069. k(this.$data, n), this._.isMounted && this.$forceUpdate(), Bt(() => {
  14070. e && e();
  14071. });
  14072. },
  14073. __emit() {
  14074. const t = [].slice.call(arguments, 0);
  14075. let e = t[0];
  14076. e = `on${e[0].toUpperCase()}${e.substring(1)}`;
  14077. const n = this.$props[e] || this.$attrs[e];
  14078. if (t.length && n)
  14079. if (Array.isArray(n))
  14080. for (let r = 0, i = n.length; r < i; r++)
  14081. n[r](...t.slice(1));
  14082. else
  14083. n(...t.slice(1));
  14084. }
  14085. }
  14086. }, Gre = Symbol("PortalContextKey"), e8 = function(t) {
  14087. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
  14088. inTriggerContext: !0
  14089. };
  14090. Et(Gre, {
  14091. inTriggerContext: e.inTriggerContext,
  14092. shouldRender: V(() => {
  14093. const {
  14094. sPopupVisible: n,
  14095. popupRef: r,
  14096. forceRender: i,
  14097. autoDestroy: a
  14098. } = t || {};
  14099. let o = !1;
  14100. return (n || r || i) && (o = !0), !n && a && (o = !1), o;
  14101. })
  14102. });
  14103. }, hNe = () => {
  14104. e8({}, {
  14105. inTriggerContext: !1
  14106. });
  14107. const t = et(Gre, {
  14108. shouldRender: V(() => !1),
  14109. inTriggerContext: !1
  14110. });
  14111. return {
  14112. shouldRender: V(() => t.shouldRender.value || t.inTriggerContext === !1)
  14113. };
  14114. }, jre = ae({
  14115. compatConfig: {
  14116. MODE: 3
  14117. },
  14118. name: "Portal",
  14119. inheritAttrs: !1,
  14120. props: {
  14121. getContainer: oe.func.isRequired,
  14122. didUpdate: Function
  14123. },
  14124. setup(t, e) {
  14125. let {
  14126. slots: n
  14127. } = e, r = !0, i;
  14128. const {
  14129. shouldRender: a
  14130. } = hNe();
  14131. function o() {
  14132. a.value && (i = t.getContainer());
  14133. }
  14134. $ee(() => {
  14135. r = !1, o();
  14136. }), _t(() => {
  14137. i || o();
  14138. });
  14139. const s = me(a, () => {
  14140. a.value && !i && (i = t.getContainer()), i && s();
  14141. });
  14142. return rp(() => {
  14143. Bt(() => {
  14144. var l;
  14145. a.value && ((l = t.didUpdate) === null || l === void 0 || l.call(t, t));
  14146. });
  14147. }), () => {
  14148. var l;
  14149. return a.value ? r ? (l = n.default) === null || l === void 0 ? void 0 : l.call(n) : i ? D(R_, {
  14150. to: i
  14151. }, n) : null : null;
  14152. };
  14153. }
  14154. });
  14155. let aE;
  14156. function pNe(t) {
  14157. if (typeof document > "u")
  14158. return 0;
  14159. if (aE === void 0) {
  14160. const e = document.createElement("div");
  14161. e.style.width = "100%", e.style.height = "200px";
  14162. const n = document.createElement("div"), r = n.style;
  14163. r.position = "absolute", r.top = "0", r.left = "0", r.pointerEvents = "none", r.visibility = "hidden", r.width = "200px", r.height = "150px", r.overflow = "hidden", n.appendChild(e), document.body.appendChild(n);
  14164. const i = e.offsetWidth;
  14165. n.style.overflow = "scroll";
  14166. let a = e.offsetWidth;
  14167. i === a && (a = n.clientWidth), document.body.removeChild(n), aE = i - a;
  14168. }
  14169. return aE;
  14170. }
  14171. const vNe = `vc-util-locker-${Date.now()}`;
  14172. let N7 = 0;
  14173. function gNe() {
  14174. return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
  14175. }
  14176. function mNe(t) {
  14177. const e = V(() => !!t && !!t.value);
  14178. N7 += 1;
  14179. const n = `${vNe}_${N7}`;
  14180. Vt((r) => {
  14181. if (is()) {
  14182. if (e.value) {
  14183. const i = pNe(), a = gNe();
  14184. Eb(`
  14185. html body {
  14186. overflow-y: hidden;
  14187. ${a ? `width: calc(100% - ${i}px);` : ""}
  14188. }`, n);
  14189. } else
  14190. Xw(n);
  14191. r(() => {
  14192. Xw(n);
  14193. });
  14194. }
  14195. }, {
  14196. flush: "post"
  14197. });
  14198. }
  14199. let ad = 0;
  14200. const Xx = is(), B7 = (t) => {
  14201. if (!Xx)
  14202. return null;
  14203. if (t) {
  14204. if (typeof t == "string")
  14205. return document.querySelectorAll(t)[0];
  14206. if (typeof t == "function")
  14207. return t();
  14208. if (typeof t == "object" && t instanceof window.HTMLElement)
  14209. return t;
  14210. }
  14211. return document.body;
  14212. }, Zre = ae({
  14213. compatConfig: {
  14214. MODE: 3
  14215. },
  14216. name: "PortalWrapper",
  14217. inheritAttrs: !1,
  14218. props: {
  14219. wrapperClassName: String,
  14220. forceRender: {
  14221. type: Boolean,
  14222. default: void 0
  14223. },
  14224. getContainer: oe.any,
  14225. visible: {
  14226. type: Boolean,
  14227. default: void 0
  14228. },
  14229. autoLock: Tt(),
  14230. didUpdate: Function
  14231. },
  14232. setup(t, e) {
  14233. let {
  14234. slots: n
  14235. } = e;
  14236. const r = ve(), i = ve(), a = ve(), o = ve(1), s = is() && document.createElement("div"), l = () => {
  14237. var h, p;
  14238. r.value === s && ((p = (h = r.value) === null || h === void 0 ? void 0 : h.parentNode) === null || p === void 0 || p.removeChild(r.value)), r.value = null;
  14239. };
  14240. let u = null;
  14241. const c = function() {
  14242. return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) || r.value && !r.value.parentNode ? (u = B7(t.getContainer), u ? (u.appendChild(r.value), !0) : !1) : !0;
  14243. }, f = () => Xx ? (r.value || (r.value = s, c(!0)), d(), r.value) : null, d = () => {
  14244. const {
  14245. wrapperClassName: h
  14246. } = t;
  14247. r.value && h && h !== r.value.className && (r.value.className = h);
  14248. };
  14249. return rp(() => {
  14250. d(), c();
  14251. }), mNe(V(() => t.autoLock && t.visible && is() && (r.value === document.body || r.value === s))), _t(() => {
  14252. let h = !1;
  14253. me([() => t.visible, () => t.getContainer], (p, v) => {
  14254. let [g, m] = p, [y, _] = v;
  14255. Xx && (u = B7(t.getContainer), u === document.body && (g && !y ? ad += 1 : h && (ad -= 1))), h && (typeof m == "function" && typeof _ == "function" ? m.toString() !== _.toString() : m !== _) && l(), h = !0;
  14256. }, {
  14257. immediate: !0,
  14258. flush: "post"
  14259. }), Bt(() => {
  14260. c() || (a.value = en(() => {
  14261. o.value += 1;
  14262. }));
  14263. });
  14264. }), Qt(() => {
  14265. const {
  14266. visible: h
  14267. } = t;
  14268. Xx && u === document.body && (ad = h && ad ? ad - 1 : ad), l(), en.cancel(a.value);
  14269. }), () => {
  14270. const {
  14271. forceRender: h,
  14272. visible: p
  14273. } = t;
  14274. let v = null;
  14275. const g = {
  14276. getOpenCount: () => ad,
  14277. getContainer: f
  14278. };
  14279. return o.value && (h || p || i.value) && (v = D(jre, {
  14280. getContainer: f,
  14281. ref: i,
  14282. didUpdate: t.didUpdate
  14283. }, {
  14284. default: () => {
  14285. var m;
  14286. return (m = n.default) === null || m === void 0 ? void 0 : m.call(n, g);
  14287. }
  14288. })), v;
  14289. };
  14290. }
  14291. }), yNe = ["onClick", "onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onFocus", "onBlur", "onContextmenu"], E2 = ae({
  14292. compatConfig: {
  14293. MODE: 3
  14294. },
  14295. name: "Trigger",
  14296. mixins: [A2],
  14297. inheritAttrs: !1,
  14298. props: S4e(),
  14299. setup(t) {
  14300. const e = V(() => {
  14301. const {
  14302. popupPlacement: i,
  14303. popupAlign: a,
  14304. builtinPlacements: o
  14305. } = t;
  14306. return i && o ? L7(o, i, a) : a;
  14307. }), n = ve(null), r = (i) => {
  14308. n.value = i;
  14309. };
  14310. return {
  14311. vcTriggerContext: et("vcTriggerContext", {}),
  14312. popupRef: n,
  14313. setPopupRef: r,
  14314. triggerRef: ve(null),
  14315. align: e,
  14316. focusTime: null,
  14317. clickOutsideHandler: null,
  14318. contextmenuOutsideHandler1: null,
  14319. contextmenuOutsideHandler2: null,
  14320. touchOutsideHandler: null,
  14321. attachId: null,
  14322. delayTimer: null,
  14323. hasPopupMouseDown: !1,
  14324. preClickTime: null,
  14325. preTouchTime: null,
  14326. mouseDownTimeout: null,
  14327. childOriginEvents: {}
  14328. };
  14329. },
  14330. data() {
  14331. const t = this.$props;
  14332. let e;
  14333. return this.popupVisible !== void 0 ? e = !!t.popupVisible : e = !!t.defaultPopupVisible, yNe.forEach((n) => {
  14334. this[`fire${n}`] = (r) => {
  14335. this.fireEvents(n, r);
  14336. };
  14337. }), {
  14338. prevPopupVisible: e,
  14339. sPopupVisible: e,
  14340. point: null
  14341. };
  14342. },
  14343. watch: {
  14344. popupVisible(t) {
  14345. t !== void 0 && (this.prevPopupVisible = this.sPopupVisible, this.sPopupVisible = t);
  14346. }
  14347. },
  14348. created() {
  14349. Et("vcTriggerContext", {
  14350. onPopupMouseDown: this.onPopupMouseDown,
  14351. onPopupMouseenter: this.onPopupMouseenter,
  14352. onPopupMouseleave: this.onPopupMouseleave
  14353. }), e8(this);
  14354. },
  14355. deactivated() {
  14356. this.setPopupVisible(!1);
  14357. },
  14358. mounted() {
  14359. this.$nextTick(() => {
  14360. this.updatedCal();
  14361. });
  14362. },
  14363. updated() {
  14364. this.$nextTick(() => {
  14365. this.updatedCal();
  14366. });
  14367. },
  14368. beforeUnmount() {
  14369. this.clearDelayTimer(), this.clearOutsideHandler(), clearTimeout(this.mouseDownTimeout), en.cancel(this.attachId);
  14370. },
  14371. methods: {
  14372. updatedCal() {
  14373. const t = this.$props;
  14374. if (this.$data.sPopupVisible) {
  14375. let n;
  14376. !this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow()) && (n = t.getDocument(this.getRootDomNode()), this.clickOutsideHandler = yi(n, "mousedown", this.onDocumentClick)), this.touchOutsideHandler || (n = n || t.getDocument(this.getRootDomNode()), this.touchOutsideHandler = yi(n, "touchstart", this.onDocumentClick, mi ? {
  14377. passive: !1
  14378. } : !1)), !this.contextmenuOutsideHandler1 && this.isContextmenuToShow() && (n = n || t.getDocument(this.getRootDomNode()), this.contextmenuOutsideHandler1 = yi(n, "scroll", this.onContextmenuClose)), !this.contextmenuOutsideHandler2 && this.isContextmenuToShow() && (this.contextmenuOutsideHandler2 = yi(window, "blur", this.onContextmenuClose));
  14379. } else
  14380. this.clearOutsideHandler();
  14381. },
  14382. onMouseenter(t) {
  14383. const {
  14384. mouseEnterDelay: e
  14385. } = this.$props;
  14386. this.fireEvents("onMouseenter", t), this.delaySetPopupVisible(!0, e, e ? null : t);
  14387. },
  14388. onMouseMove(t) {
  14389. this.fireEvents("onMousemove", t), this.setPoint(t);
  14390. },
  14391. onMouseleave(t) {
  14392. this.fireEvents("onMouseleave", t), this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay);
  14393. },
  14394. onPopupMouseenter() {
  14395. const {
  14396. vcTriggerContext: t = {}
  14397. } = this;
  14398. t.onPopupMouseenter && t.onPopupMouseenter(), this.clearDelayTimer();
  14399. },
  14400. onPopupMouseleave(t) {
  14401. var e;
  14402. if (t && t.relatedTarget && !t.relatedTarget.setTimeout && kc((e = this.popupRef) === null || e === void 0 ? void 0 : e.getElement(), t.relatedTarget))
  14403. return;
  14404. this.isMouseLeaveToHide() && this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay);
  14405. const {
  14406. vcTriggerContext: n = {}
  14407. } = this;
  14408. n.onPopupMouseleave && n.onPopupMouseleave(t);
  14409. },
  14410. onFocus(t) {
  14411. this.fireEvents("onFocus", t), this.clearDelayTimer(), this.isFocusToShow() && (this.focusTime = Date.now(), this.delaySetPopupVisible(!0, this.$props.focusDelay));
  14412. },
  14413. onMousedown(t) {
  14414. this.fireEvents("onMousedown", t), this.preClickTime = Date.now();
  14415. },
  14416. onTouchstart(t) {
  14417. this.fireEvents("onTouchstart", t), this.preTouchTime = Date.now();
  14418. },
  14419. onBlur(t) {
  14420. kc(t.target, t.relatedTarget || document.activeElement) || (this.fireEvents("onBlur", t), this.clearDelayTimer(), this.isBlurToHide() && this.delaySetPopupVisible(!1, this.$props.blurDelay));
  14421. },
  14422. onContextmenu(t) {
  14423. t.preventDefault(), this.fireEvents("onContextmenu", t), this.setPopupVisible(!0, t);
  14424. },
  14425. onContextmenuClose() {
  14426. this.isContextmenuToShow() && this.close();
  14427. },
  14428. onClick(t) {
  14429. if (this.fireEvents("onClick", t), this.focusTime) {
  14430. let n;
  14431. if (this.preClickTime && this.preTouchTime ? n = Math.min(this.preClickTime, this.preTouchTime) : this.preClickTime ? n = this.preClickTime : this.preTouchTime && (n = this.preTouchTime), Math.abs(n - this.focusTime) < 20)
  14432. return;
  14433. this.focusTime = 0;
  14434. }
  14435. this.preClickTime = 0, this.preTouchTime = 0, this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && t && t.preventDefault && t.preventDefault(), t && t.domEvent && t.domEvent.preventDefault();
  14436. const e = !this.$data.sPopupVisible;
  14437. (this.isClickToHide() && !e || e && this.isClickToShow()) && this.setPopupVisible(!this.$data.sPopupVisible, t);
  14438. },
  14439. onPopupMouseDown() {
  14440. const {
  14441. vcTriggerContext: t = {}
  14442. } = this;
  14443. this.hasPopupMouseDown = !0, clearTimeout(this.mouseDownTimeout), this.mouseDownTimeout = setTimeout(() => {
  14444. this.hasPopupMouseDown = !1;
  14445. }, 0), t.onPopupMouseDown && t.onPopupMouseDown(...arguments);
  14446. },
  14447. onDocumentClick(t) {
  14448. if (this.$props.mask && !this.$props.maskClosable)
  14449. return;
  14450. const e = t.target, n = this.getRootDomNode(), r = this.getPopupDomNode();
  14451. // mousedown on the target should also close popup when action is contextMenu.
  14452. // https://github.com/ant-design/ant-design/issues/29853
  14453. (!kc(n, e) || this.isContextMenuOnly()) && !kc(r, e) && !this.hasPopupMouseDown && this.delaySetPopupVisible(!1, 0.1);
  14454. },
  14455. getPopupDomNode() {
  14456. var t;
  14457. return ((t = this.popupRef) === null || t === void 0 ? void 0 : t.getElement()) || null;
  14458. },
  14459. getRootDomNode() {
  14460. var t, e, n, r;
  14461. const {
  14462. getTriggerDOMNode: i
  14463. } = this.$props;
  14464. if (i) {
  14465. const a = ((e = (t = this.triggerRef) === null || t === void 0 ? void 0 : t.$el) === null || e === void 0 ? void 0 : e.nodeName) === "#comment" ? null : xu(this.triggerRef);
  14466. return xu(i(a));
  14467. }
  14468. try {
  14469. const a = ((r = (n = this.triggerRef) === null || n === void 0 ? void 0 : n.$el) === null || r === void 0 ? void 0 : r.nodeName) === "#comment" ? null : xu(this.triggerRef);
  14470. if (a)
  14471. return a;
  14472. } catch {
  14473. }
  14474. return xu(this);
  14475. },
  14476. handleGetPopupClassFromAlign(t) {
  14477. const e = [], n = this.$props, {
  14478. popupPlacement: r,
  14479. builtinPlacements: i,
  14480. prefixCls: a,
  14481. alignPoint: o,
  14482. getPopupClassNameFromAlign: s
  14483. } = n;
  14484. return r && i && e.push(dNe(i, a, t, o)), s && e.push(s(t)), e.join(" ");
  14485. },
  14486. getPopupAlign() {
  14487. const t = this.$props, {
  14488. popupPlacement: e,
  14489. popupAlign: n,
  14490. builtinPlacements: r
  14491. } = t;
  14492. return e && r ? L7(r, e, n) : n;
  14493. },
  14494. getComponent() {
  14495. const t = {};
  14496. this.isMouseEnterToShow() && (t.onMouseenter = this.onPopupMouseenter), this.isMouseLeaveToHide() && (t.onMouseleave = this.onPopupMouseleave), t.onMousedown = this.onPopupMouseDown, t[mi ? "onTouchstartPassive" : "onTouchstart"] = this.onPopupMouseDown;
  14497. const {
  14498. handleGetPopupClassFromAlign: e,
  14499. getRootDomNode: n,
  14500. $attrs: r
  14501. } = this, {
  14502. prefixCls: i,
  14503. destroyPopupOnHide: a,
  14504. popupClassName: o,
  14505. popupAnimation: s,
  14506. popupTransitionName: l,
  14507. popupStyle: u,
  14508. mask: c,
  14509. maskAnimation: f,
  14510. maskTransitionName: d,
  14511. zIndex: h,
  14512. stretch: p,
  14513. alignPoint: v,
  14514. mobile: g,
  14515. arrow: m,
  14516. forceRender: y
  14517. } = this.$props, {
  14518. sPopupVisible: _,
  14519. point: O
  14520. } = this.$data, S = k(k({
  14521. prefixCls: i,
  14522. arrow: m,
  14523. destroyPopupOnHide: a,
  14524. visible: _,
  14525. point: v ? O : null,
  14526. align: this.align,
  14527. animation: s,
  14528. getClassNameFromAlign: e,
  14529. stretch: p,
  14530. getRootDomNode: n,
  14531. mask: c,
  14532. zIndex: h,
  14533. transitionName: l,
  14534. maskAnimation: f,
  14535. maskTransitionName: d,
  14536. class: o,
  14537. style: u,
  14538. onAlign: r.onPopupAlign || Rre
  14539. }, t), {
  14540. ref: this.setPopupRef,
  14541. mobile: g,
  14542. forceRender: y
  14543. });
  14544. return D(cNe, S, {
  14545. default: this.$slots.popup || (() => ske(this, "popup"))
  14546. });
  14547. },
  14548. attachParent(t) {
  14549. en.cancel(this.attachId);
  14550. const {
  14551. getPopupContainer: e,
  14552. getDocument: n
  14553. } = this.$props, r = this.getRootDomNode();
  14554. let i;
  14555. e ? (r || e.length === 0) && (i = e(r)) : i = n(this.getRootDomNode()).body, i ? i.appendChild(t) : this.attachId = en(() => {
  14556. this.attachParent(t);
  14557. });
  14558. },
  14559. getContainer() {
  14560. const {
  14561. $props: t
  14562. } = this, {
  14563. getDocument: e
  14564. } = t, n = e(this.getRootDomNode()).createElement("div");
  14565. return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", this.attachParent(n), n;
  14566. },
  14567. setPopupVisible(t, e) {
  14568. const {
  14569. alignPoint: n,
  14570. sPopupVisible: r,
  14571. onPopupVisibleChange: i
  14572. } = this;
  14573. this.clearDelayTimer(), r !== t && (Zw(this, "popupVisible") || this.setState({
  14574. sPopupVisible: t,
  14575. prevPopupVisible: r
  14576. }), i && i(t)), n && e && t && this.setPoint(e);
  14577. },
  14578. setPoint(t) {
  14579. const {
  14580. alignPoint: e
  14581. } = this.$props;
  14582. !e || !t || this.setState({
  14583. point: {
  14584. pageX: t.pageX,
  14585. pageY: t.pageY
  14586. }
  14587. });
  14588. },
  14589. handlePortalUpdate() {
  14590. this.prevPopupVisible !== this.sPopupVisible && this.afterPopupVisibleChange(this.sPopupVisible);
  14591. },
  14592. delaySetPopupVisible(t, e, n) {
  14593. const r = e * 1e3;
  14594. if (this.clearDelayTimer(), r) {
  14595. const i = n ? {
  14596. pageX: n.pageX,
  14597. pageY: n.pageY
  14598. } : null;
  14599. this.delayTimer = setTimeout(() => {
  14600. this.setPopupVisible(t, i), this.clearDelayTimer();
  14601. }, r);
  14602. } else
  14603. this.setPopupVisible(t, n);
  14604. },
  14605. clearDelayTimer() {
  14606. this.delayTimer && (clearTimeout(this.delayTimer), this.delayTimer = null);
  14607. },
  14608. clearOutsideHandler() {
  14609. this.clickOutsideHandler && (this.clickOutsideHandler.remove(), this.clickOutsideHandler = null), this.contextmenuOutsideHandler1 && (this.contextmenuOutsideHandler1.remove(), this.contextmenuOutsideHandler1 = null), this.contextmenuOutsideHandler2 && (this.contextmenuOutsideHandler2.remove(), this.contextmenuOutsideHandler2 = null), this.touchOutsideHandler && (this.touchOutsideHandler.remove(), this.touchOutsideHandler = null);
  14610. },
  14611. createTwoChains(t) {
  14612. let e = () => {
  14613. };
  14614. const n = jW(this);
  14615. return this.childOriginEvents[t] && n[t] ? this[`fire${t}`] : (e = this.childOriginEvents[t] || n[t] || e, e);
  14616. },
  14617. isClickToShow() {
  14618. const {
  14619. action: t,
  14620. showAction: e
  14621. } = this.$props;
  14622. return t.indexOf("click") !== -1 || e.indexOf("click") !== -1;
  14623. },
  14624. isContextMenuOnly() {
  14625. const {
  14626. action: t
  14627. } = this.$props;
  14628. return t === "contextmenu" || t.length === 1 && t[0] === "contextmenu";
  14629. },
  14630. isContextmenuToShow() {
  14631. const {
  14632. action: t,
  14633. showAction: e
  14634. } = this.$props;
  14635. return t.indexOf("contextmenu") !== -1 || e.indexOf("contextmenu") !== -1;
  14636. },
  14637. isClickToHide() {
  14638. const {
  14639. action: t,
  14640. hideAction: e
  14641. } = this.$props;
  14642. return t.indexOf("click") !== -1 || e.indexOf("click") !== -1;
  14643. },
  14644. isMouseEnterToShow() {
  14645. const {
  14646. action: t,
  14647. showAction: e
  14648. } = this.$props;
  14649. return t.indexOf("hover") !== -1 || e.indexOf("mouseenter") !== -1;
  14650. },
  14651. isMouseLeaveToHide() {
  14652. const {
  14653. action: t,
  14654. hideAction: e
  14655. } = this.$props;
  14656. return t.indexOf("hover") !== -1 || e.indexOf("mouseleave") !== -1;
  14657. },
  14658. isFocusToShow() {
  14659. const {
  14660. action: t,
  14661. showAction: e
  14662. } = this.$props;
  14663. return t.indexOf("focus") !== -1 || e.indexOf("focus") !== -1;
  14664. },
  14665. isBlurToHide() {
  14666. const {
  14667. action: t,
  14668. hideAction: e
  14669. } = this.$props;
  14670. return t.indexOf("focus") !== -1 || e.indexOf("blur") !== -1;
  14671. },
  14672. forcePopupAlign() {
  14673. var t;
  14674. this.$data.sPopupVisible && ((t = this.popupRef) === null || t === void 0 || t.forceAlign());
  14675. },
  14676. fireEvents(t, e) {
  14677. this.childOriginEvents[t] && this.childOriginEvents[t](e);
  14678. const n = this.$props[t] || this.$attrs[t];
  14679. n && n(e);
  14680. },
  14681. close() {
  14682. this.setPopupVisible(!1);
  14683. }
  14684. },
  14685. render() {
  14686. const {
  14687. $attrs: t
  14688. } = this, e = Zl(Ine(this)), {
  14689. alignPoint: n,
  14690. getPopupContainer: r
  14691. } = this.$props, i = e[0];
  14692. this.childOriginEvents = jW(i);
  14693. const a = {
  14694. key: "trigger"
  14695. };
  14696. this.isContextmenuToShow() ? a.onContextmenu = this.onContextmenu : a.onContextmenu = this.createTwoChains("onContextmenu"), this.isClickToHide() || this.isClickToShow() ? (a.onClick = this.onClick, a.onMousedown = this.onMousedown, a[mi ? "onTouchstartPassive" : "onTouchstart"] = this.onTouchstart) : (a.onClick = this.createTwoChains("onClick"), a.onMousedown = this.createTwoChains("onMousedown"), a[mi ? "onTouchstartPassive" : "onTouchstart"] = this.createTwoChains("onTouchstart")), this.isMouseEnterToShow() ? (a.onMouseenter = this.onMouseenter, n && (a.onMousemove = this.onMouseMove)) : a.onMouseenter = this.createTwoChains("onMouseenter"), this.isMouseLeaveToHide() ? a.onMouseleave = this.onMouseleave : a.onMouseleave = this.createTwoChains("onMouseleave"), this.isFocusToShow() || this.isBlurToHide() ? (a.onFocus = this.onFocus, a.onBlur = this.onBlur) : (a.onFocus = this.createTwoChains("onFocus"), a.onBlur = (u) => {
  14697. u && (!u.relatedTarget || !kc(u.target, u.relatedTarget)) && this.createTwoChains("onBlur")(u);
  14698. });
  14699. const o = Re(i && i.props && i.props.class, t.class);
  14700. o && (a.class = o);
  14701. const s = xr(i, k(k({}, a), {
  14702. ref: "triggerRef"
  14703. }), !0, !0), l = D(Zre, {
  14704. key: "portal",
  14705. getContainer: r && (() => r(this.getRootDomNode())),
  14706. didUpdate: this.handlePortalUpdate,
  14707. visible: this.$data.sPopupVisible
  14708. }, {
  14709. default: this.getComponent
  14710. });
  14711. return D(Wt, null, [s, l]);
  14712. }
  14713. });
  14714. var bNe = function(t, e) {
  14715. var n = {};
  14716. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  14717. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  14718. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  14719. return n;
  14720. };
  14721. const _Ne = (t) => {
  14722. const e = t === !0 ? 0 : 1;
  14723. return {
  14724. bottomLeft: {
  14725. points: ["tl", "bl"],
  14726. offset: [0, 4],
  14727. overflow: {
  14728. adjustX: e,
  14729. adjustY: 1
  14730. }
  14731. },
  14732. bottomRight: {
  14733. points: ["tr", "br"],
  14734. offset: [0, 4],
  14735. overflow: {
  14736. adjustX: e,
  14737. adjustY: 1
  14738. }
  14739. },
  14740. topLeft: {
  14741. points: ["bl", "tl"],
  14742. offset: [0, -4],
  14743. overflow: {
  14744. adjustX: e,
  14745. adjustY: 1
  14746. }
  14747. },
  14748. topRight: {
  14749. points: ["br", "tr"],
  14750. offset: [0, -4],
  14751. overflow: {
  14752. adjustX: e,
  14753. adjustY: 1
  14754. }
  14755. }
  14756. };
  14757. }, ONe = ae({
  14758. name: "SelectTrigger",
  14759. inheritAttrs: !1,
  14760. props: {
  14761. dropdownAlign: Object,
  14762. visible: {
  14763. type: Boolean,
  14764. default: void 0
  14765. },
  14766. disabled: {
  14767. type: Boolean,
  14768. default: void 0
  14769. },
  14770. dropdownClassName: String,
  14771. dropdownStyle: oe.object,
  14772. placement: String,
  14773. empty: {
  14774. type: Boolean,
  14775. default: void 0
  14776. },
  14777. prefixCls: String,
  14778. popupClassName: String,
  14779. animation: String,
  14780. transitionName: String,
  14781. getPopupContainer: Function,
  14782. dropdownRender: Function,
  14783. containerWidth: Number,
  14784. dropdownMatchSelectWidth: oe.oneOfType([Number, Boolean]).def(!0),
  14785. popupElement: oe.any,
  14786. direction: String,
  14787. getTriggerDOMNode: Function,
  14788. onPopupVisibleChange: Function,
  14789. onPopupMouseEnter: Function,
  14790. onPopupFocusin: Function,
  14791. onPopupFocusout: Function
  14792. },
  14793. setup(t, e) {
  14794. let {
  14795. slots: n,
  14796. attrs: r,
  14797. expose: i
  14798. } = e;
  14799. const a = V(() => {
  14800. const {
  14801. dropdownMatchSelectWidth: s
  14802. } = t;
  14803. return _Ne(s);
  14804. }), o = ee();
  14805. return i({
  14806. getPopupElement: () => o.value
  14807. }), () => {
  14808. const s = k(k({}, t), r), {
  14809. empty: l = !1
  14810. } = s, u = bNe(s, ["empty"]), {
  14811. visible: c,
  14812. dropdownAlign: f,
  14813. prefixCls: d,
  14814. popupElement: h,
  14815. dropdownClassName: p,
  14816. dropdownStyle: v,
  14817. direction: g = "ltr",
  14818. placement: m,
  14819. dropdownMatchSelectWidth: y,
  14820. containerWidth: _,
  14821. dropdownRender: O,
  14822. animation: S,
  14823. transitionName: x,
  14824. getPopupContainer: C,
  14825. getTriggerDOMNode: P,
  14826. onPopupVisibleChange: $,
  14827. onPopupMouseEnter: T,
  14828. onPopupFocusin: E,
  14829. onPopupFocusout: M
  14830. } = u, R = `${d}-dropdown`;
  14831. let N = h;
  14832. O && (N = O({
  14833. menuNode: h,
  14834. props: t
  14835. }));
  14836. const I = S ? `${R}-${S}` : x, B = k({
  14837. minWidth: `${_}px`
  14838. }, v);
  14839. return typeof y == "number" ? B.width = `${y}px` : y && (B.width = `${_}px`), D(E2, te(te({}, t), {}, {
  14840. showAction: $ ? ["click"] : [],
  14841. hideAction: $ ? ["click"] : [],
  14842. popupPlacement: m || (g === "rtl" ? "bottomRight" : "bottomLeft"),
  14843. builtinPlacements: a.value,
  14844. prefixCls: R,
  14845. popupTransitionName: I,
  14846. popupAlign: f,
  14847. popupVisible: c,
  14848. getPopupContainer: C,
  14849. popupClassName: Re(p, {
  14850. [`${R}-empty`]: l
  14851. }),
  14852. popupStyle: B,
  14853. getTriggerDOMNode: P,
  14854. onPopupVisibleChange: $
  14855. }), {
  14856. default: n.default,
  14857. popup: () => D("div", {
  14858. ref: o,
  14859. onMouseenter: T,
  14860. onFocusin: E,
  14861. onFocusout: M
  14862. }, [N])
  14863. });
  14864. };
  14865. }
  14866. }), Me = {
  14867. /**
  14868. * MAC_ENTER
  14869. */
  14870. MAC_ENTER: 3,
  14871. /**
  14872. * BACKSPACE
  14873. */
  14874. BACKSPACE: 8,
  14875. /**
  14876. * TAB
  14877. */
  14878. TAB: 9,
  14879. /**
  14880. * NUMLOCK on FF/Safari Mac
  14881. */
  14882. NUM_CENTER: 12,
  14883. /**
  14884. * ENTER
  14885. */
  14886. ENTER: 13,
  14887. /**
  14888. * SHIFT
  14889. */
  14890. SHIFT: 16,
  14891. /**
  14892. * CTRL
  14893. */
  14894. CTRL: 17,
  14895. /**
  14896. * ALT
  14897. */
  14898. ALT: 18,
  14899. /**
  14900. * PAUSE
  14901. */
  14902. PAUSE: 19,
  14903. /**
  14904. * CAPS_LOCK
  14905. */
  14906. CAPS_LOCK: 20,
  14907. /**
  14908. * ESC
  14909. */
  14910. ESC: 27,
  14911. /**
  14912. * SPACE
  14913. */
  14914. SPACE: 32,
  14915. /**
  14916. * PAGE_UP
  14917. */
  14918. PAGE_UP: 33,
  14919. /**
  14920. * PAGE_DOWN
  14921. */
  14922. PAGE_DOWN: 34,
  14923. /**
  14924. * END
  14925. */
  14926. END: 35,
  14927. /**
  14928. * HOME
  14929. */
  14930. HOME: 36,
  14931. /**
  14932. * LEFT
  14933. */
  14934. LEFT: 37,
  14935. /**
  14936. * UP
  14937. */
  14938. UP: 38,
  14939. /**
  14940. * RIGHT
  14941. */
  14942. RIGHT: 39,
  14943. /**
  14944. * DOWN
  14945. */
  14946. DOWN: 40,
  14947. /**
  14948. * PRINT_SCREEN
  14949. */
  14950. PRINT_SCREEN: 44,
  14951. /**
  14952. * INSERT
  14953. */
  14954. INSERT: 45,
  14955. /**
  14956. * DELETE
  14957. */
  14958. DELETE: 46,
  14959. /**
  14960. * ZERO
  14961. */
  14962. ZERO: 48,
  14963. /**
  14964. * ONE
  14965. */
  14966. ONE: 49,
  14967. /**
  14968. * TWO
  14969. */
  14970. TWO: 50,
  14971. /**
  14972. * THREE
  14973. */
  14974. THREE: 51,
  14975. /**
  14976. * FOUR
  14977. */
  14978. FOUR: 52,
  14979. /**
  14980. * FIVE
  14981. */
  14982. FIVE: 53,
  14983. /**
  14984. * SIX
  14985. */
  14986. SIX: 54,
  14987. /**
  14988. * SEVEN
  14989. */
  14990. SEVEN: 55,
  14991. /**
  14992. * EIGHT
  14993. */
  14994. EIGHT: 56,
  14995. /**
  14996. * NINE
  14997. */
  14998. NINE: 57,
  14999. /**
  15000. * QUESTION_MARK
  15001. */
  15002. QUESTION_MARK: 63,
  15003. /**
  15004. * A
  15005. */
  15006. A: 65,
  15007. /**
  15008. * B
  15009. */
  15010. B: 66,
  15011. /**
  15012. * C
  15013. */
  15014. C: 67,
  15015. /**
  15016. * D
  15017. */
  15018. D: 68,
  15019. /**
  15020. * E
  15021. */
  15022. E: 69,
  15023. /**
  15024. * F
  15025. */
  15026. F: 70,
  15027. /**
  15028. * G
  15029. */
  15030. G: 71,
  15031. /**
  15032. * H
  15033. */
  15034. H: 72,
  15035. /**
  15036. * I
  15037. */
  15038. I: 73,
  15039. /**
  15040. * J
  15041. */
  15042. J: 74,
  15043. /**
  15044. * K
  15045. */
  15046. K: 75,
  15047. /**
  15048. * L
  15049. */
  15050. L: 76,
  15051. /**
  15052. * M
  15053. */
  15054. M: 77,
  15055. /**
  15056. * N
  15057. */
  15058. N: 78,
  15059. /**
  15060. * O
  15061. */
  15062. O: 79,
  15063. /**
  15064. * P
  15065. */
  15066. P: 80,
  15067. /**
  15068. * Q
  15069. */
  15070. Q: 81,
  15071. /**
  15072. * R
  15073. */
  15074. R: 82,
  15075. /**
  15076. * S
  15077. */
  15078. S: 83,
  15079. /**
  15080. * T
  15081. */
  15082. T: 84,
  15083. /**
  15084. * U
  15085. */
  15086. U: 85,
  15087. /**
  15088. * V
  15089. */
  15090. V: 86,
  15091. /**
  15092. * W
  15093. */
  15094. W: 87,
  15095. /**
  15096. * X
  15097. */
  15098. X: 88,
  15099. /**
  15100. * Y
  15101. */
  15102. Y: 89,
  15103. /**
  15104. * Z
  15105. */
  15106. Z: 90,
  15107. /**
  15108. * META
  15109. */
  15110. META: 91,
  15111. /**
  15112. * WIN_KEY_RIGHT
  15113. */
  15114. WIN_KEY_RIGHT: 92,
  15115. /**
  15116. * CONTEXT_MENU
  15117. */
  15118. CONTEXT_MENU: 93,
  15119. /**
  15120. * NUM_ZERO
  15121. */
  15122. NUM_ZERO: 96,
  15123. /**
  15124. * NUM_ONE
  15125. */
  15126. NUM_ONE: 97,
  15127. /**
  15128. * NUM_TWO
  15129. */
  15130. NUM_TWO: 98,
  15131. /**
  15132. * NUM_THREE
  15133. */
  15134. NUM_THREE: 99,
  15135. /**
  15136. * NUM_FOUR
  15137. */
  15138. NUM_FOUR: 100,
  15139. /**
  15140. * NUM_FIVE
  15141. */
  15142. NUM_FIVE: 101,
  15143. /**
  15144. * NUM_SIX
  15145. */
  15146. NUM_SIX: 102,
  15147. /**
  15148. * NUM_SEVEN
  15149. */
  15150. NUM_SEVEN: 103,
  15151. /**
  15152. * NUM_EIGHT
  15153. */
  15154. NUM_EIGHT: 104,
  15155. /**
  15156. * NUM_NINE
  15157. */
  15158. NUM_NINE: 105,
  15159. /**
  15160. * NUM_MULTIPLY
  15161. */
  15162. NUM_MULTIPLY: 106,
  15163. /**
  15164. * NUM_PLUS
  15165. */
  15166. NUM_PLUS: 107,
  15167. /**
  15168. * NUM_MINUS
  15169. */
  15170. NUM_MINUS: 109,
  15171. /**
  15172. * NUM_PERIOD
  15173. */
  15174. NUM_PERIOD: 110,
  15175. /**
  15176. * NUM_DIVISION
  15177. */
  15178. NUM_DIVISION: 111,
  15179. /**
  15180. * F1
  15181. */
  15182. F1: 112,
  15183. /**
  15184. * F2
  15185. */
  15186. F2: 113,
  15187. /**
  15188. * F3
  15189. */
  15190. F3: 114,
  15191. /**
  15192. * F4
  15193. */
  15194. F4: 115,
  15195. /**
  15196. * F5
  15197. */
  15198. F5: 116,
  15199. /**
  15200. * F6
  15201. */
  15202. F6: 117,
  15203. /**
  15204. * F7
  15205. */
  15206. F7: 118,
  15207. /**
  15208. * F8
  15209. */
  15210. F8: 119,
  15211. /**
  15212. * F9
  15213. */
  15214. F9: 120,
  15215. /**
  15216. * F10
  15217. */
  15218. F10: 121,
  15219. /**
  15220. * F11
  15221. */
  15222. F11: 122,
  15223. /**
  15224. * F12
  15225. */
  15226. F12: 123,
  15227. /**
  15228. * NUMLOCK
  15229. */
  15230. NUMLOCK: 144,
  15231. /**
  15232. * SEMICOLON
  15233. */
  15234. SEMICOLON: 186,
  15235. /**
  15236. * DASH
  15237. */
  15238. DASH: 189,
  15239. /**
  15240. * EQUALS
  15241. */
  15242. EQUALS: 187,
  15243. /**
  15244. * COMMA
  15245. */
  15246. COMMA: 188,
  15247. /**
  15248. * PERIOD
  15249. */
  15250. PERIOD: 190,
  15251. /**
  15252. * SLASH
  15253. */
  15254. SLASH: 191,
  15255. /**
  15256. * APOSTROPHE
  15257. */
  15258. APOSTROPHE: 192,
  15259. /**
  15260. * SINGLE_QUOTE
  15261. */
  15262. SINGLE_QUOTE: 222,
  15263. /**
  15264. * OPEN_SQUARE_BRACKET
  15265. */
  15266. OPEN_SQUARE_BRACKET: 219,
  15267. /**
  15268. * BACKSLASH
  15269. */
  15270. BACKSLASH: 220,
  15271. /**
  15272. * CLOSE_SQUARE_BRACKET
  15273. */
  15274. CLOSE_SQUARE_BRACKET: 221,
  15275. /**
  15276. * WIN_KEY
  15277. */
  15278. WIN_KEY: 224,
  15279. /**
  15280. * MAC_FF_META
  15281. */
  15282. MAC_FF_META: 224,
  15283. /**
  15284. * WIN_IME
  15285. */
  15286. WIN_IME: 229,
  15287. // ======================== Function ========================
  15288. /**
  15289. * whether text and modified key is entered at the same time.
  15290. */
  15291. isTextModifyingKeyEvent: function(e) {
  15292. const {
  15293. keyCode: n
  15294. } = e;
  15295. if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text
  15296. n >= Me.F1 && n <= Me.F12)
  15297. return !1;
  15298. switch (n) {
  15299. case Me.ALT:
  15300. case Me.CAPS_LOCK:
  15301. case Me.CONTEXT_MENU:
  15302. case Me.CTRL:
  15303. case Me.DOWN:
  15304. case Me.END:
  15305. case Me.ESC:
  15306. case Me.HOME:
  15307. case Me.INSERT:
  15308. case Me.LEFT:
  15309. case Me.MAC_FF_META:
  15310. case Me.META:
  15311. case Me.NUMLOCK:
  15312. case Me.NUM_CENTER:
  15313. case Me.PAGE_DOWN:
  15314. case Me.PAGE_UP:
  15315. case Me.PAUSE:
  15316. case Me.PRINT_SCREEN:
  15317. case Me.RIGHT:
  15318. case Me.SHIFT:
  15319. case Me.UP:
  15320. case Me.WIN_KEY:
  15321. case Me.WIN_KEY_RIGHT:
  15322. return !1;
  15323. default:
  15324. return !0;
  15325. }
  15326. },
  15327. /**
  15328. * whether character is entered.
  15329. */
  15330. isCharacterKey: function(e) {
  15331. if (e >= Me.ZERO && e <= Me.NINE || e >= Me.NUM_ZERO && e <= Me.NUM_MULTIPLY || e >= Me.A && e <= Me.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && e === 0)
  15332. return !0;
  15333. switch (e) {
  15334. case Me.SPACE:
  15335. case Me.QUESTION_MARK:
  15336. case Me.NUM_PLUS:
  15337. case Me.NUM_MINUS:
  15338. case Me.NUM_PERIOD:
  15339. case Me.NUM_DIVISION:
  15340. case Me.SEMICOLON:
  15341. case Me.DASH:
  15342. case Me.EQUALS:
  15343. case Me.COMMA:
  15344. case Me.PERIOD:
  15345. case Me.SLASH:
  15346. case Me.APOSTROPHE:
  15347. case Me.SINGLE_QUOTE:
  15348. case Me.OPEN_SQUARE_BRACKET:
  15349. case Me.BACKSLASH:
  15350. case Me.CLOSE_SQUARE_BRACKET:
  15351. return !0;
  15352. default:
  15353. return !1;
  15354. }
  15355. }
  15356. }, Vh = (t, e) => {
  15357. let {
  15358. slots: n
  15359. } = e;
  15360. var r;
  15361. const {
  15362. class: i,
  15363. customizeIcon: a,
  15364. customizeIconProps: o,
  15365. onMousedown: s,
  15366. onClick: l
  15367. } = t;
  15368. let u;
  15369. return typeof a == "function" ? u = a(o) : u = df(a) ? ku(a) : a, D("span", {
  15370. class: i,
  15371. onMousedown: (c) => {
  15372. c.preventDefault(), s && s(c);
  15373. },
  15374. style: {
  15375. userSelect: "none",
  15376. WebkitUserSelect: "none"
  15377. },
  15378. unselectable: "on",
  15379. onClick: l,
  15380. "aria-hidden": !0
  15381. }, [u !== void 0 ? u : D("span", {
  15382. class: i.split(/\s+/).map((c) => `${c}-icon`)
  15383. }, [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)])]);
  15384. };
  15385. Vh.inheritAttrs = !1;
  15386. Vh.displayName = "TransBtn";
  15387. Vh.props = {
  15388. class: String,
  15389. customizeIcon: oe.any,
  15390. customizeIconProps: oe.any,
  15391. onMousedown: Function,
  15392. onClick: Function
  15393. };
  15394. var SNe = function(t, e) {
  15395. var n = {};
  15396. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  15397. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  15398. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  15399. return n;
  15400. };
  15401. const xNe = ae({
  15402. compatConfig: {
  15403. MODE: 3
  15404. },
  15405. // inheritAttrs: false,
  15406. props: {
  15407. disabled: oe.looseBool,
  15408. type: oe.string,
  15409. value: oe.any,
  15410. tag: {
  15411. type: String,
  15412. default: "input"
  15413. },
  15414. size: oe.string,
  15415. onChange: Function,
  15416. onInput: Function,
  15417. onBlur: Function,
  15418. onFocus: Function,
  15419. onKeydown: Function,
  15420. onCompositionstart: Function,
  15421. onCompositionend: Function,
  15422. onKeyup: Function,
  15423. onPaste: Function,
  15424. onMousedown: Function
  15425. },
  15426. emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
  15427. setup(t, e) {
  15428. let {
  15429. expose: n
  15430. } = e;
  15431. const r = ve(null);
  15432. return n({
  15433. focus: () => {
  15434. r.value && r.value.focus();
  15435. },
  15436. blur: () => {
  15437. r.value && r.value.blur();
  15438. },
  15439. input: r,
  15440. setSelectionRange: (l, u, c) => {
  15441. var f;
  15442. (f = r.value) === null || f === void 0 || f.setSelectionRange(l, u, c);
  15443. },
  15444. select: () => {
  15445. var l;
  15446. (l = r.value) === null || l === void 0 || l.select();
  15447. },
  15448. getSelectionStart: () => {
  15449. var l;
  15450. return (l = r.value) === null || l === void 0 ? void 0 : l.selectionStart;
  15451. },
  15452. getSelectionEnd: () => {
  15453. var l;
  15454. return (l = r.value) === null || l === void 0 ? void 0 : l.selectionEnd;
  15455. },
  15456. getScrollTop: () => {
  15457. var l;
  15458. return (l = r.value) === null || l === void 0 ? void 0 : l.scrollTop;
  15459. }
  15460. }), () => {
  15461. const {
  15462. tag: l,
  15463. value: u
  15464. } = t, c = SNe(t, ["tag", "value"]);
  15465. return D(l, te(te({}, c), {}, {
  15466. ref: r,
  15467. value: u
  15468. }), null);
  15469. };
  15470. }
  15471. });
  15472. function wNe() {
  15473. const t = document.documentElement.clientWidth, e = window.innerHeight || document.documentElement.clientHeight;
  15474. return {
  15475. width: t,
  15476. height: e
  15477. };
  15478. }
  15479. function Ure(t) {
  15480. const e = t.getBoundingClientRect(), n = document.documentElement;
  15481. return {
  15482. left: e.left + (window.scrollX || n.scrollLeft) - (n.clientLeft || document.body.clientLeft || 0),
  15483. top: e.top + (window.scrollY || n.scrollTop) - (n.clientTop || document.body.clientTop || 0)
  15484. };
  15485. }
  15486. function CNe(t) {
  15487. return Object.keys(t).reduce((e, n) => {
  15488. const r = t[n];
  15489. return typeof r > "u" || r === null || (e += `${n}: ${t[n]};`), e;
  15490. }, "");
  15491. }
  15492. var TNe = function(t, e) {
  15493. var n = {};
  15494. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  15495. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  15496. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  15497. return n;
  15498. };
  15499. const t8 = ae({
  15500. compatConfig: {
  15501. MODE: 3
  15502. },
  15503. inheritAttrs: !1,
  15504. props: {
  15505. disabled: oe.looseBool,
  15506. type: oe.string,
  15507. value: oe.any,
  15508. lazy: oe.bool.def(!0),
  15509. tag: {
  15510. type: String,
  15511. default: "input"
  15512. },
  15513. size: oe.string,
  15514. style: oe.oneOfType([String, Object]),
  15515. class: oe.string
  15516. },
  15517. emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
  15518. setup(t, e) {
  15519. let {
  15520. emit: n,
  15521. attrs: r,
  15522. expose: i
  15523. } = e;
  15524. const a = ve(null), o = ee(), s = ee(!1);
  15525. me([() => t.value, s], () => {
  15526. s.value || (o.value = t.value);
  15527. }, {
  15528. immediate: !0
  15529. });
  15530. const l = (C) => {
  15531. n("change", C);
  15532. }, u = (C) => {
  15533. s.value = !0, C.target.composing = !0, n("compositionstart", C);
  15534. }, c = (C) => {
  15535. s.value = !1, C.target.composing = !1, n("compositionend", C);
  15536. const P = document.createEvent("HTMLEvents");
  15537. P.initEvent("input", !0, !0), C.target.dispatchEvent(P), l(C);
  15538. }, f = (C) => {
  15539. if (s.value && t.lazy) {
  15540. o.value = C.target.value;
  15541. return;
  15542. }
  15543. n("input", C);
  15544. }, d = (C) => {
  15545. n("blur", C);
  15546. }, h = (C) => {
  15547. n("focus", C);
  15548. }, p = () => {
  15549. a.value && a.value.focus();
  15550. }, v = () => {
  15551. a.value && a.value.blur();
  15552. }, g = (C) => {
  15553. n("keydown", C);
  15554. }, m = (C) => {
  15555. n("keyup", C);
  15556. }, y = (C, P, $) => {
  15557. var T;
  15558. (T = a.value) === null || T === void 0 || T.setSelectionRange(C, P, $);
  15559. }, _ = () => {
  15560. var C;
  15561. (C = a.value) === null || C === void 0 || C.select();
  15562. };
  15563. i({
  15564. focus: p,
  15565. blur: v,
  15566. input: V(() => {
  15567. var C;
  15568. return (C = a.value) === null || C === void 0 ? void 0 : C.input;
  15569. }),
  15570. setSelectionRange: y,
  15571. select: _,
  15572. getSelectionStart: () => {
  15573. var C;
  15574. return (C = a.value) === null || C === void 0 ? void 0 : C.getSelectionStart();
  15575. },
  15576. getSelectionEnd: () => {
  15577. var C;
  15578. return (C = a.value) === null || C === void 0 ? void 0 : C.getSelectionEnd();
  15579. },
  15580. getScrollTop: () => {
  15581. var C;
  15582. return (C = a.value) === null || C === void 0 ? void 0 : C.getScrollTop();
  15583. }
  15584. });
  15585. const O = (C) => {
  15586. n("mousedown", C);
  15587. }, S = (C) => {
  15588. n("paste", C);
  15589. }, x = V(() => t.style && typeof t.style != "string" ? CNe(t.style) : t.style);
  15590. return () => {
  15591. const C = TNe(t, ["style", "lazy"]);
  15592. return D(xNe, te(te(te({}, C), r), {}, {
  15593. style: x.value,
  15594. onInput: f,
  15595. onChange: l,
  15596. onBlur: d,
  15597. onFocus: h,
  15598. ref: a,
  15599. value: o.value,
  15600. onCompositionstart: u,
  15601. onCompositionend: c,
  15602. onKeyup: m,
  15603. onKeydown: g,
  15604. onPaste: S,
  15605. onMousedown: O
  15606. }), null);
  15607. };
  15608. }
  15609. }), PNe = {
  15610. inputRef: oe.any,
  15611. prefixCls: String,
  15612. id: String,
  15613. inputElement: oe.VueNode,
  15614. disabled: {
  15615. type: Boolean,
  15616. default: void 0
  15617. },
  15618. autofocus: {
  15619. type: Boolean,
  15620. default: void 0
  15621. },
  15622. autocomplete: String,
  15623. editable: {
  15624. type: Boolean,
  15625. default: void 0
  15626. },
  15627. activeDescendantId: String,
  15628. value: String,
  15629. open: {
  15630. type: Boolean,
  15631. default: void 0
  15632. },
  15633. tabindex: oe.oneOfType([oe.number, oe.string]),
  15634. /** Pass accessibility props to input */
  15635. attrs: oe.object,
  15636. onKeydown: {
  15637. type: Function
  15638. },
  15639. onMousedown: {
  15640. type: Function
  15641. },
  15642. onChange: {
  15643. type: Function
  15644. },
  15645. onPaste: {
  15646. type: Function
  15647. },
  15648. onCompositionstart: {
  15649. type: Function
  15650. },
  15651. onCompositionend: {
  15652. type: Function
  15653. },
  15654. onFocus: {
  15655. type: Function
  15656. },
  15657. onBlur: {
  15658. type: Function
  15659. }
  15660. }, Xre = ae({
  15661. compatConfig: {
  15662. MODE: 3
  15663. },
  15664. name: "SelectInput",
  15665. inheritAttrs: !1,
  15666. props: PNe,
  15667. setup(t) {
  15668. let e = null;
  15669. const n = et("VCSelectContainerEvent");
  15670. return () => {
  15671. var r;
  15672. const {
  15673. prefixCls: i,
  15674. id: a,
  15675. inputElement: o,
  15676. disabled: s,
  15677. tabindex: l,
  15678. autofocus: u,
  15679. autocomplete: c,
  15680. editable: f,
  15681. activeDescendantId: d,
  15682. value: h,
  15683. onKeydown: p,
  15684. onMousedown: v,
  15685. onChange: g,
  15686. onPaste: m,
  15687. onCompositionstart: y,
  15688. onCompositionend: _,
  15689. onFocus: O,
  15690. onBlur: S,
  15691. open: x,
  15692. inputRef: C,
  15693. attrs: P
  15694. } = t;
  15695. let $ = o || D(t8, null, null);
  15696. const T = $.props || {}, {
  15697. onKeydown: E,
  15698. onInput: M,
  15699. onFocus: R,
  15700. onBlur: N,
  15701. onMousedown: I,
  15702. onCompositionstart: B,
  15703. onCompositionend: Q,
  15704. style: W
  15705. } = T;
  15706. return $ = xr($, k(k(k(k(k({
  15707. type: "search"
  15708. }, T), {
  15709. id: a,
  15710. ref: C,
  15711. disabled: s,
  15712. tabindex: l,
  15713. lazy: !1,
  15714. autocomplete: c || "off",
  15715. autofocus: u,
  15716. class: Re(`${i}-selection-search-input`, (r = $ == null ? void 0 : $.props) === null || r === void 0 ? void 0 : r.class),
  15717. role: "combobox",
  15718. "aria-expanded": x,
  15719. "aria-haspopup": "listbox",
  15720. "aria-owns": `${a}_list`,
  15721. "aria-autocomplete": "list",
  15722. "aria-controls": `${a}_list`,
  15723. "aria-activedescendant": d
  15724. }), P), {
  15725. value: f ? h : "",
  15726. readonly: !f,
  15727. unselectable: f ? null : "on",
  15728. style: k(k({}, W), {
  15729. opacity: f ? null : 0
  15730. }),
  15731. onKeydown: (H) => {
  15732. p(H), E && E(H);
  15733. },
  15734. onMousedown: (H) => {
  15735. v(H), I && I(H);
  15736. },
  15737. onInput: (H) => {
  15738. g(H), M && M(H);
  15739. },
  15740. onCompositionstart(H) {
  15741. y(H), B && B(H);
  15742. },
  15743. onCompositionend(H) {
  15744. _(H), Q && Q(H);
  15745. },
  15746. onPaste: m,
  15747. onFocus: function() {
  15748. clearTimeout(e), R && R(arguments.length <= 0 ? void 0 : arguments[0]), O && O(arguments.length <= 0 ? void 0 : arguments[0]), n == null || n.focus(arguments.length <= 0 ? void 0 : arguments[0]);
  15749. },
  15750. onBlur: function() {
  15751. for (var H = arguments.length, U = new Array(H), j = 0; j < H; j++)
  15752. U[j] = arguments[j];
  15753. e = setTimeout(() => {
  15754. N && N(U[0]), S && S(U[0]), n == null || n.blur(U[0]);
  15755. }, 100);
  15756. }
  15757. }), $.type === "textarea" ? {} : {
  15758. type: "search"
  15759. }), !0, !0), $;
  15760. };
  15761. }
  15762. }), $Ne = `accept acceptcharset accesskey action allowfullscreen allowtransparency
  15763. alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
  15764. charset checked classid classname colspan cols content contenteditable contextmenu
  15765. controls coords crossorigin data datetime default defer dir disabled download draggable
  15766. enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
  15767. headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
  15768. is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
  15769. mediagroup method min minlength multiple muted name novalidate nonce open
  15770. optimum pattern placeholder poster preload radiogroup readonly rel required
  15771. reversed role rowspan rows sandbox scope scoped scrolling seamless selected
  15772. shape size sizes span spellcheck src srcdoc srclang srcset start step style
  15773. summary tabindex target title type usemap value width wmode wrap`, ANe = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
  15774. onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
  15775. onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
  15776. onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
  15777. onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
  15778. onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
  15779. onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`, z7 = `${$Ne} ${ANe}`.split(/[\s\n]+/), ENe = "aria-", MNe = "data-";
  15780. function V7(t, e) {
  15781. return t.indexOf(e) === 0;
  15782. }
  15783. function M2(t) {
  15784. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n;
  15785. e === !1 ? n = {
  15786. aria: !0,
  15787. data: !0,
  15788. attr: !0
  15789. } : e === !0 ? n = {
  15790. aria: !0
  15791. } : n = k({}, e);
  15792. const r = {};
  15793. return Object.keys(t).forEach((i) => {
  15794. // Aria
  15795. (n.aria && (i === "role" || V7(i, ENe)) || // Data
  15796. n.data && V7(i, MNe) || // Attr
  15797. n.attr && (z7.includes(i) || z7.includes(i.toLowerCase()))) && (r[i] = t[i]);
  15798. }), r;
  15799. }
  15800. const Yre = Symbol("OverflowContextProviderKey"), PR = ae({
  15801. compatConfig: {
  15802. MODE: 3
  15803. },
  15804. name: "OverflowContextProvider",
  15805. inheritAttrs: !1,
  15806. props: {
  15807. value: {
  15808. type: Object
  15809. }
  15810. },
  15811. setup(t, e) {
  15812. let {
  15813. slots: n
  15814. } = e;
  15815. return Et(Yre, V(() => t.value)), () => {
  15816. var r;
  15817. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  15818. };
  15819. }
  15820. }), INe = () => et(Yre, V(() => null));
  15821. var DNe = function(t, e) {
  15822. var n = {};
  15823. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  15824. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  15825. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  15826. return n;
  15827. };
  15828. const Fp = void 0, Yx = ae({
  15829. compatConfig: {
  15830. MODE: 3
  15831. },
  15832. name: "Item",
  15833. props: {
  15834. prefixCls: String,
  15835. item: oe.any,
  15836. renderItem: Function,
  15837. responsive: Boolean,
  15838. itemKey: {
  15839. type: [String, Number]
  15840. },
  15841. registerSize: Function,
  15842. display: Boolean,
  15843. order: Number,
  15844. component: oe.any,
  15845. invalidate: Boolean
  15846. },
  15847. setup(t, e) {
  15848. let {
  15849. slots: n,
  15850. expose: r
  15851. } = e;
  15852. const i = V(() => t.responsive && !t.display), a = ee();
  15853. r({
  15854. itemNodeRef: a
  15855. });
  15856. function o(s) {
  15857. t.registerSize(t.itemKey, s);
  15858. }
  15859. return qu(() => {
  15860. o(null);
  15861. }), () => {
  15862. var s;
  15863. const {
  15864. prefixCls: l,
  15865. invalidate: u,
  15866. item: c,
  15867. renderItem: f,
  15868. responsive: d,
  15869. registerSize: h,
  15870. itemKey: p,
  15871. display: v,
  15872. order: g,
  15873. component: m = "div"
  15874. } = t, y = DNe(t, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]), _ = (s = n.default) === null || s === void 0 ? void 0 : s.call(n), O = f && c !== Fp ? f(c) : _;
  15875. let S;
  15876. u || (S = {
  15877. opacity: i.value ? 0 : 1,
  15878. height: i.value ? 0 : Fp,
  15879. overflowY: i.value ? "hidden" : Fp,
  15880. order: d ? g : Fp,
  15881. pointerEvents: i.value ? "none" : Fp,
  15882. position: i.value ? "absolute" : Fp
  15883. });
  15884. const x = {};
  15885. return i.value && (x["aria-hidden"] = !0), D($g, {
  15886. disabled: !d,
  15887. onResize: (C) => {
  15888. let {
  15889. offsetWidth: P
  15890. } = C;
  15891. o(P);
  15892. }
  15893. }, {
  15894. default: () => D(m, te(te(te({
  15895. class: Re(!u && l),
  15896. style: S
  15897. }, x), y), {}, {
  15898. ref: a
  15899. }), {
  15900. default: () => [O]
  15901. })
  15902. });
  15903. };
  15904. }
  15905. });
  15906. var oE = function(t, e) {
  15907. var n = {};
  15908. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  15909. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  15910. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  15911. return n;
  15912. };
  15913. const RNe = ae({
  15914. compatConfig: {
  15915. MODE: 3
  15916. },
  15917. name: "RawItem",
  15918. inheritAttrs: !1,
  15919. props: {
  15920. component: oe.any,
  15921. title: oe.any,
  15922. id: String,
  15923. onMouseenter: {
  15924. type: Function
  15925. },
  15926. onMouseleave: {
  15927. type: Function
  15928. },
  15929. onClick: {
  15930. type: Function
  15931. },
  15932. onKeydown: {
  15933. type: Function
  15934. },
  15935. onFocus: {
  15936. type: Function
  15937. },
  15938. role: String,
  15939. tabindex: Number
  15940. },
  15941. setup(t, e) {
  15942. let {
  15943. slots: n,
  15944. attrs: r
  15945. } = e;
  15946. const i = INe();
  15947. return () => {
  15948. var a;
  15949. if (!i.value) {
  15950. const {
  15951. component: f = "div"
  15952. } = t, d = oE(t, ["component"]);
  15953. return D(f, te(te({}, d), r), {
  15954. default: () => [(a = n.default) === null || a === void 0 ? void 0 : a.call(n)]
  15955. });
  15956. }
  15957. const o = i.value, {
  15958. className: s
  15959. } = o, l = oE(o, ["className"]), {
  15960. class: u
  15961. } = r, c = oE(r, ["class"]);
  15962. return D(PR, {
  15963. value: null
  15964. }, {
  15965. default: () => [D(Yx, te(te(te({
  15966. class: Re(s, u)
  15967. }, l), c), t), n)]
  15968. });
  15969. };
  15970. }
  15971. });
  15972. var kNe = function(t, e) {
  15973. var n = {};
  15974. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  15975. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  15976. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  15977. return n;
  15978. };
  15979. const qre = "responsive", Kre = "invalidate";
  15980. function LNe(t) {
  15981. return `+ ${t.length} ...`;
  15982. }
  15983. const NNe = () => ({
  15984. id: String,
  15985. prefixCls: String,
  15986. data: Array,
  15987. itemKey: [String, Number, Function],
  15988. /** Used for `responsive`. It will limit render node to avoid perf issue */
  15989. itemWidth: {
  15990. type: Number,
  15991. default: 10
  15992. },
  15993. renderItem: Function,
  15994. /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
  15995. renderRawItem: Function,
  15996. maxCount: [Number, String],
  15997. renderRest: Function,
  15998. /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
  15999. renderRawRest: Function,
  16000. suffix: oe.any,
  16001. component: String,
  16002. itemComponent: oe.any,
  16003. /** @private This API may be refactor since not well design */
  16004. onVisibleChange: Function,
  16005. /** When set to `full`, ssr will render full items by default and remove at client side */
  16006. ssr: String,
  16007. onMousedown: Function
  16008. }), Au = ae({
  16009. name: "Overflow",
  16010. inheritAttrs: !1,
  16011. props: NNe(),
  16012. emits: ["visibleChange"],
  16013. setup(t, e) {
  16014. let {
  16015. attrs: n,
  16016. emit: r,
  16017. slots: i
  16018. } = e;
  16019. const a = V(() => t.ssr === "full"), o = ve(null), s = V(() => o.value || 0), l = ve(/* @__PURE__ */ new Map()), u = ve(0), c = ve(0), f = ve(0), d = ve(null), h = ve(null), p = V(() => h.value === null && a.value ? Number.MAX_SAFE_INTEGER : h.value || 0), v = ve(!1), g = V(() => `${t.prefixCls}-item`), m = V(() => Math.max(u.value, c.value)), y = V(() => !!(t.data.length && t.maxCount === qre)), _ = V(() => t.maxCount === Kre), O = V(() => y.value || typeof t.maxCount == "number" && t.data.length > t.maxCount), S = V(() => {
  16020. let I = t.data;
  16021. return y.value ? o.value === null && a.value ? I = t.data : I = t.data.slice(0, Math.min(t.data.length, s.value / t.itemWidth)) : typeof t.maxCount == "number" && (I = t.data.slice(0, t.maxCount)), I;
  16022. }), x = V(() => y.value ? t.data.slice(p.value + 1) : t.data.slice(S.value.length)), C = (I, B) => {
  16023. var Q;
  16024. return typeof t.itemKey == "function" ? t.itemKey(I) : (Q = t.itemKey && (I == null ? void 0 : I[t.itemKey])) !== null && Q !== void 0 ? Q : B;
  16025. }, P = V(() => t.renderItem || ((I) => I)), $ = (I, B) => {
  16026. h.value = I, B || (v.value = I < t.data.length - 1, r("visibleChange", I));
  16027. }, T = (I, B) => {
  16028. o.value = B.clientWidth;
  16029. }, E = (I, B) => {
  16030. const Q = new Map(l.value);
  16031. B === null ? Q.delete(I) : Q.set(I, B), l.value = Q;
  16032. }, M = (I, B) => {
  16033. u.value = c.value, c.value = B;
  16034. }, R = (I, B) => {
  16035. f.value = B;
  16036. }, N = (I) => l.value.get(C(S.value[I], I));
  16037. return me([s, l, c, f, () => t.itemKey, S], () => {
  16038. if (s.value && m.value && S.value) {
  16039. let I = f.value;
  16040. const B = S.value.length, Q = B - 1;
  16041. if (!B) {
  16042. $(0), d.value = null;
  16043. return;
  16044. }
  16045. for (let W = 0; W < B; W += 1) {
  16046. const H = N(W);
  16047. if (H === void 0) {
  16048. $(W - 1, !0);
  16049. break;
  16050. }
  16051. if (I += H, // Only one means `totalWidth` is the final width
  16052. Q === 0 && I <= s.value || // Last two width will be the final width
  16053. W === Q - 1 && I + N(Q) <= s.value) {
  16054. $(Q), d.value = null;
  16055. break;
  16056. } else if (I + m.value > s.value) {
  16057. $(W - 1), d.value = I - H - f.value + c.value;
  16058. break;
  16059. }
  16060. }
  16061. t.suffix && N(0) + f.value > s.value && (d.value = null);
  16062. }
  16063. }), () => {
  16064. const I = v.value && !!x.value.length, {
  16065. itemComponent: B,
  16066. renderRawItem: Q,
  16067. renderRawRest: W,
  16068. renderRest: H,
  16069. prefixCls: U = "rc-overflow",
  16070. suffix: j,
  16071. component: Y = "div",
  16072. id: ne,
  16073. onMousedown: fe
  16074. } = t, {
  16075. class: ue,
  16076. style: ye
  16077. } = n, se = kNe(n, ["class", "style"]);
  16078. let he = {};
  16079. d.value !== null && y.value && (he = {
  16080. position: "absolute",
  16081. left: `${d.value}px`,
  16082. top: 0
  16083. });
  16084. const re = {
  16085. prefixCls: g.value,
  16086. responsive: y.value,
  16087. component: B,
  16088. invalidate: _.value
  16089. }, q = Q ? (we, He) => {
  16090. const je = C(we, He);
  16091. return D(PR, {
  16092. key: je,
  16093. value: k(k({}, re), {
  16094. order: He,
  16095. item: we,
  16096. itemKey: je,
  16097. registerSize: E,
  16098. display: He <= p.value
  16099. })
  16100. }, {
  16101. default: () => [Q(we, He)]
  16102. });
  16103. } : (we, He) => {
  16104. const je = C(we, He);
  16105. return D(Yx, te(te({}, re), {}, {
  16106. order: He,
  16107. key: je,
  16108. item: we,
  16109. renderItem: P.value,
  16110. itemKey: je,
  16111. registerSize: E,
  16112. display: He <= p.value
  16113. }), null);
  16114. };
  16115. let K = () => null;
  16116. const de = {
  16117. order: I ? p.value : Number.MAX_SAFE_INTEGER,
  16118. className: `${g.value} ${g.value}-rest`,
  16119. registerSize: M,
  16120. display: I
  16121. };
  16122. if (W)
  16123. W && (K = () => D(PR, {
  16124. value: k(k({}, re), de)
  16125. }, {
  16126. default: () => [W(x.value)]
  16127. }));
  16128. else {
  16129. const we = H || LNe;
  16130. K = () => D(Yx, te(te({}, re), de), {
  16131. default: () => typeof we == "function" ? we(x.value) : we
  16132. });
  16133. }
  16134. const xe = () => {
  16135. var we;
  16136. return D(Y, te({
  16137. id: ne,
  16138. class: Re(!_.value && U, ue),
  16139. style: ye,
  16140. onMousedown: fe
  16141. }, se), {
  16142. default: () => [S.value.map(q), O.value ? K() : null, j && D(Yx, te(te({}, re), {}, {
  16143. order: p.value,
  16144. class: `${g.value}-suffix`,
  16145. registerSize: R,
  16146. display: !0,
  16147. style: he
  16148. }), {
  16149. default: () => j
  16150. }), (we = i.default) === null || we === void 0 ? void 0 : we.call(i)]
  16151. });
  16152. };
  16153. return D($g, {
  16154. disabled: !y.value,
  16155. onResize: T
  16156. }, {
  16157. default: xe
  16158. });
  16159. };
  16160. }
  16161. });
  16162. Au.Item = RNe;
  16163. Au.RESPONSIVE = qre;
  16164. Au.INVALIDATE = Kre;
  16165. const BNe = Symbol("TreeSelectLegacyContextPropsKey");
  16166. function n8() {
  16167. return et(BNe, {});
  16168. }
  16169. const zNe = {
  16170. id: String,
  16171. prefixCls: String,
  16172. values: oe.array,
  16173. open: {
  16174. type: Boolean,
  16175. default: void 0
  16176. },
  16177. searchValue: String,
  16178. inputRef: oe.any,
  16179. placeholder: oe.any,
  16180. disabled: {
  16181. type: Boolean,
  16182. default: void 0
  16183. },
  16184. mode: String,
  16185. showSearch: {
  16186. type: Boolean,
  16187. default: void 0
  16188. },
  16189. autofocus: {
  16190. type: Boolean,
  16191. default: void 0
  16192. },
  16193. autocomplete: String,
  16194. activeDescendantId: String,
  16195. tabindex: oe.oneOfType([oe.number, oe.string]),
  16196. compositionStatus: Boolean,
  16197. removeIcon: oe.any,
  16198. choiceTransitionName: String,
  16199. maxTagCount: oe.oneOfType([oe.number, oe.string]),
  16200. maxTagTextLength: Number,
  16201. maxTagPlaceholder: oe.any.def(() => (t) => `+ ${t.length} ...`),
  16202. tagRender: Function,
  16203. onToggleOpen: {
  16204. type: Function
  16205. },
  16206. onRemove: Function,
  16207. onInputChange: Function,
  16208. onInputPaste: Function,
  16209. onInputKeyDown: Function,
  16210. onInputMouseDown: Function,
  16211. onInputCompositionStart: Function,
  16212. onInputCompositionEnd: Function
  16213. }, F7 = (t) => {
  16214. t.preventDefault(), t.stopPropagation();
  16215. }, VNe = ae({
  16216. name: "MultipleSelectSelector",
  16217. inheritAttrs: !1,
  16218. props: zNe,
  16219. setup(t) {
  16220. const e = ve(), n = ve(0), r = ve(!1), i = n8(), a = V(() => `${t.prefixCls}-selection`), o = V(() => t.open || t.mode === "tags" ? t.searchValue : ""), s = V(() => t.mode === "tags" || t.showSearch && (t.open || r.value)), l = ee("");
  16221. Vt(() => {
  16222. l.value = o.value;
  16223. }), _t(() => {
  16224. me(l, () => {
  16225. n.value = e.value.scrollWidth;
  16226. }, {
  16227. flush: "post",
  16228. immediate: !0
  16229. });
  16230. });
  16231. function u(p, v, g, m, y) {
  16232. return D("span", {
  16233. class: Re(`${a.value}-item`, {
  16234. [`${a.value}-item-disabled`]: g
  16235. }),
  16236. title: typeof p == "string" || typeof p == "number" ? p.toString() : void 0
  16237. }, [D("span", {
  16238. class: `${a.value}-item-content`
  16239. }, [v]), m && D(Vh, {
  16240. class: `${a.value}-item-remove`,
  16241. onMousedown: F7,
  16242. onClick: y,
  16243. customizeIcon: t.removeIcon
  16244. }, {
  16245. default: () => [On("×")]
  16246. })]);
  16247. }
  16248. function c(p, v, g, m, y, _) {
  16249. var O;
  16250. const S = (C) => {
  16251. F7(C), t.onToggleOpen(!open);
  16252. };
  16253. let x = _;
  16254. return i.keyEntities && (x = ((O = i.keyEntities[p]) === null || O === void 0 ? void 0 : O.node) || {}), D("span", {
  16255. key: p,
  16256. onMousedown: S
  16257. }, [t.tagRender({
  16258. label: v,
  16259. value: p,
  16260. disabled: g,
  16261. closable: m,
  16262. onClose: y,
  16263. option: x
  16264. })]);
  16265. }
  16266. function f(p) {
  16267. const {
  16268. disabled: v,
  16269. label: g,
  16270. value: m,
  16271. option: y
  16272. } = p, _ = !t.disabled && !v;
  16273. let O = g;
  16274. if (typeof t.maxTagTextLength == "number" && (typeof g == "string" || typeof g == "number")) {
  16275. const x = String(O);
  16276. x.length > t.maxTagTextLength && (O = `${x.slice(0, t.maxTagTextLength)}...`);
  16277. }
  16278. const S = (x) => {
  16279. var C;
  16280. x && x.stopPropagation(), (C = t.onRemove) === null || C === void 0 || C.call(t, p);
  16281. };
  16282. return typeof t.tagRender == "function" ? c(m, O, v, _, S, y) : u(g, O, v, _, S);
  16283. }
  16284. function d(p) {
  16285. const {
  16286. maxTagPlaceholder: v = (m) => `+ ${m.length} ...`
  16287. } = t, g = typeof v == "function" ? v(p) : v;
  16288. return u(g, g, !1);
  16289. }
  16290. const h = (p) => {
  16291. const v = p.target.composing;
  16292. l.value = p.target.value, v || t.onInputChange(p);
  16293. };
  16294. return () => {
  16295. const {
  16296. id: p,
  16297. prefixCls: v,
  16298. values: g,
  16299. open: m,
  16300. inputRef: y,
  16301. placeholder: _,
  16302. disabled: O,
  16303. autofocus: S,
  16304. autocomplete: x,
  16305. activeDescendantId: C,
  16306. tabindex: P,
  16307. compositionStatus: $,
  16308. onInputPaste: T,
  16309. onInputKeyDown: E,
  16310. onInputMouseDown: M,
  16311. onInputCompositionStart: R,
  16312. onInputCompositionEnd: N
  16313. } = t, I = D("div", {
  16314. class: `${a.value}-search`,
  16315. style: {
  16316. width: n.value + "px"
  16317. },
  16318. key: "input"
  16319. }, [D(Xre, {
  16320. inputRef: y,
  16321. open: m,
  16322. prefixCls: v,
  16323. id: p,
  16324. inputElement: null,
  16325. disabled: O,
  16326. autofocus: S,
  16327. autocomplete: x,
  16328. editable: s.value,
  16329. activeDescendantId: C,
  16330. value: l.value,
  16331. onKeydown: E,
  16332. onMousedown: M,
  16333. onChange: h,
  16334. onPaste: T,
  16335. onCompositionstart: R,
  16336. onCompositionend: N,
  16337. tabindex: P,
  16338. attrs: M2(t, !0),
  16339. onFocus: () => r.value = !0,
  16340. onBlur: () => r.value = !1
  16341. }, null), D("span", {
  16342. ref: e,
  16343. class: `${a.value}-search-mirror`,
  16344. "aria-hidden": !0
  16345. }, [l.value, On(" ")])]), B = D(Au, {
  16346. prefixCls: `${a.value}-overflow`,
  16347. data: g,
  16348. renderItem: f,
  16349. renderRest: d,
  16350. suffix: I,
  16351. itemKey: "key",
  16352. maxCount: t.maxTagCount,
  16353. key: "overflow"
  16354. }, null);
  16355. return D(Wt, null, [B, !g.length && !o.value && !$ && D("span", {
  16356. class: `${a.value}-placeholder`
  16357. }, [_])]);
  16358. };
  16359. }
  16360. }), FNe = {
  16361. inputElement: oe.any,
  16362. id: String,
  16363. prefixCls: String,
  16364. values: oe.array,
  16365. open: {
  16366. type: Boolean,
  16367. default: void 0
  16368. },
  16369. searchValue: String,
  16370. inputRef: oe.any,
  16371. placeholder: oe.any,
  16372. compositionStatus: {
  16373. type: Boolean,
  16374. default: void 0
  16375. },
  16376. disabled: {
  16377. type: Boolean,
  16378. default: void 0
  16379. },
  16380. mode: String,
  16381. showSearch: {
  16382. type: Boolean,
  16383. default: void 0
  16384. },
  16385. autofocus: {
  16386. type: Boolean,
  16387. default: void 0
  16388. },
  16389. autocomplete: String,
  16390. activeDescendantId: String,
  16391. tabindex: oe.oneOfType([oe.number, oe.string]),
  16392. activeValue: String,
  16393. backfill: {
  16394. type: Boolean,
  16395. default: void 0
  16396. },
  16397. optionLabelRender: Function,
  16398. onInputChange: Function,
  16399. onInputPaste: Function,
  16400. onInputKeyDown: Function,
  16401. onInputMouseDown: Function,
  16402. onInputCompositionStart: Function,
  16403. onInputCompositionEnd: Function
  16404. }, r8 = ae({
  16405. name: "SingleSelector",
  16406. setup(t) {
  16407. const e = ve(!1), n = V(() => t.mode === "combobox"), r = V(() => n.value || t.showSearch), i = V(() => {
  16408. let c = t.searchValue || "";
  16409. return n.value && t.activeValue && !e.value && (c = t.activeValue), c;
  16410. }), a = n8();
  16411. me([n, () => t.activeValue], () => {
  16412. n.value && (e.value = !1);
  16413. }, {
  16414. immediate: !0
  16415. });
  16416. const o = V(() => t.mode !== "combobox" && !t.open && !t.showSearch ? !1 : !!i.value || t.compositionStatus), s = V(() => {
  16417. const c = t.values[0];
  16418. return c && (typeof c.label == "string" || typeof c.label == "number") ? c.label.toString() : void 0;
  16419. }), l = () => {
  16420. if (t.values[0])
  16421. return null;
  16422. const c = o.value ? {
  16423. visibility: "hidden"
  16424. } : void 0;
  16425. return D("span", {
  16426. class: `${t.prefixCls}-selection-placeholder`,
  16427. style: c
  16428. }, [t.placeholder]);
  16429. }, u = (c) => {
  16430. c.target.composing || (e.value = !0, t.onInputChange(c));
  16431. };
  16432. return () => {
  16433. var c, f, d, h;
  16434. const {
  16435. inputElement: p,
  16436. prefixCls: v,
  16437. id: g,
  16438. values: m,
  16439. inputRef: y,
  16440. disabled: _,
  16441. autofocus: O,
  16442. autocomplete: S,
  16443. activeDescendantId: x,
  16444. open: C,
  16445. tabindex: P,
  16446. optionLabelRender: $,
  16447. onInputKeyDown: T,
  16448. onInputMouseDown: E,
  16449. onInputPaste: M,
  16450. onInputCompositionStart: R,
  16451. onInputCompositionEnd: N
  16452. } = t, I = m[0];
  16453. let B = null;
  16454. if (I && a.customSlots) {
  16455. const Q = (c = I.key) !== null && c !== void 0 ? c : I.value, W = ((f = a.keyEntities[Q]) === null || f === void 0 ? void 0 : f.node) || {};
  16456. B = a.customSlots[(d = W.slots) === null || d === void 0 ? void 0 : d.title] || a.customSlots.title || I.label, typeof B == "function" && (B = B(W));
  16457. } else
  16458. B = $ && I ? $(I.option) : I == null ? void 0 : I.label;
  16459. return D(Wt, null, [D("span", {
  16460. class: `${v}-selection-search`
  16461. }, [D(Xre, {
  16462. inputRef: y,
  16463. prefixCls: v,
  16464. id: g,
  16465. open: C,
  16466. inputElement: p,
  16467. disabled: _,
  16468. autofocus: O,
  16469. autocomplete: S,
  16470. editable: r.value,
  16471. activeDescendantId: x,
  16472. value: i.value,
  16473. onKeydown: T,
  16474. onMousedown: E,
  16475. onChange: u,
  16476. onPaste: M,
  16477. onCompositionstart: R,
  16478. onCompositionend: N,
  16479. tabindex: P,
  16480. attrs: M2(t, !0)
  16481. }, null)]), !n.value && I && !o.value && D("span", {
  16482. class: `${v}-selection-item`,
  16483. title: s.value
  16484. }, [D(Wt, {
  16485. key: (h = I.key) !== null && h !== void 0 ? h : I.value
  16486. }, [B])]), l()]);
  16487. };
  16488. }
  16489. });
  16490. r8.props = FNe;
  16491. r8.inheritAttrs = !1;
  16492. function WNe(t) {
  16493. return ![
  16494. // System function button
  16495. Me.ESC,
  16496. Me.SHIFT,
  16497. Me.BACKSPACE,
  16498. Me.TAB,
  16499. Me.WIN_KEY,
  16500. Me.ALT,
  16501. Me.META,
  16502. Me.WIN_KEY_RIGHT,
  16503. Me.CTRL,
  16504. Me.SEMICOLON,
  16505. Me.EQUALS,
  16506. Me.CAPS_LOCK,
  16507. Me.CONTEXT_MENU,
  16508. // F1-F12
  16509. Me.F1,
  16510. Me.F2,
  16511. Me.F3,
  16512. Me.F4,
  16513. Me.F5,
  16514. Me.F6,
  16515. Me.F7,
  16516. Me.F8,
  16517. Me.F9,
  16518. Me.F10,
  16519. Me.F11,
  16520. Me.F12
  16521. ].includes(t);
  16522. }
  16523. function Jre() {
  16524. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, e = null, n;
  16525. Qt(() => {
  16526. clearTimeout(n);
  16527. });
  16528. function r(i) {
  16529. (i || e === null) && (e = i), clearTimeout(n), n = setTimeout(() => {
  16530. e = null;
  16531. }, t);
  16532. }
  16533. return [() => e, r];
  16534. }
  16535. function kb() {
  16536. const t = (e) => {
  16537. t.current = e;
  16538. };
  16539. return t;
  16540. }
  16541. const QNe = ae({
  16542. name: "Selector",
  16543. inheritAttrs: !1,
  16544. props: {
  16545. id: String,
  16546. prefixCls: String,
  16547. showSearch: {
  16548. type: Boolean,
  16549. default: void 0
  16550. },
  16551. open: {
  16552. type: Boolean,
  16553. default: void 0
  16554. },
  16555. /** Display in the Selector value, it's not same as `value` prop */
  16556. values: oe.array,
  16557. multiple: {
  16558. type: Boolean,
  16559. default: void 0
  16560. },
  16561. mode: String,
  16562. searchValue: String,
  16563. activeValue: String,
  16564. inputElement: oe.any,
  16565. autofocus: {
  16566. type: Boolean,
  16567. default: void 0
  16568. },
  16569. activeDescendantId: String,
  16570. tabindex: oe.oneOfType([oe.number, oe.string]),
  16571. disabled: {
  16572. type: Boolean,
  16573. default: void 0
  16574. },
  16575. placeholder: oe.any,
  16576. removeIcon: oe.any,
  16577. // Tags
  16578. maxTagCount: oe.oneOfType([oe.number, oe.string]),
  16579. maxTagTextLength: Number,
  16580. maxTagPlaceholder: oe.any,
  16581. tagRender: Function,
  16582. optionLabelRender: Function,
  16583. /** Check if `tokenSeparators` contains `\n` or `\r\n` */
  16584. tokenWithEnter: {
  16585. type: Boolean,
  16586. default: void 0
  16587. },
  16588. // Motion
  16589. choiceTransitionName: String,
  16590. onToggleOpen: {
  16591. type: Function
  16592. },
  16593. /** `onSearch` returns go next step boolean to check if need do toggle open */
  16594. onSearch: Function,
  16595. onSearchSubmit: Function,
  16596. onRemove: Function,
  16597. onInputKeyDown: {
  16598. type: Function
  16599. },
  16600. /**
  16601. * @private get real dom for trigger align.
  16602. * This may be removed after React provides replacement of `findDOMNode`
  16603. */
  16604. domRef: Function
  16605. },
  16606. setup(t, e) {
  16607. let {
  16608. expose: n
  16609. } = e;
  16610. const r = kb(), i = ee(!1), [a, o] = Jre(0), s = (m) => {
  16611. const {
  16612. which: y
  16613. } = m;
  16614. (y === Me.UP || y === Me.DOWN) && m.preventDefault(), t.onInputKeyDown && t.onInputKeyDown(m), y === Me.ENTER && t.mode === "tags" && !i.value && !t.open && t.onSearchSubmit(m.target.value), WNe(y) && t.onToggleOpen(!0);
  16615. }, l = () => {
  16616. o(!0);
  16617. };
  16618. let u = null;
  16619. const c = (m) => {
  16620. t.onSearch(m, !0, i.value) !== !1 && t.onToggleOpen(!0);
  16621. }, f = () => {
  16622. i.value = !0;
  16623. }, d = (m) => {
  16624. i.value = !1, t.mode !== "combobox" && c(m.target.value);
  16625. }, h = (m) => {
  16626. let {
  16627. target: {
  16628. value: y
  16629. }
  16630. } = m;
  16631. if (t.tokenWithEnter && u && /[\r\n]/.test(u)) {
  16632. const _ = u.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
  16633. y = y.replace(_, u);
  16634. }
  16635. u = null, c(y);
  16636. }, p = (m) => {
  16637. const {
  16638. clipboardData: y
  16639. } = m;
  16640. u = y.getData("text");
  16641. }, v = (m) => {
  16642. let {
  16643. target: y
  16644. } = m;
  16645. y !== r.current && (document.body.style.msTouchAction !== void 0 ? setTimeout(() => {
  16646. r.current.focus();
  16647. }) : r.current.focus());
  16648. }, g = (m) => {
  16649. const y = a();
  16650. m.target !== r.current && !y && m.preventDefault(), (t.mode !== "combobox" && (!t.showSearch || !y) || !t.open) && (t.open && t.onSearch("", !0, !1), t.onToggleOpen());
  16651. };
  16652. return n({
  16653. focus: () => {
  16654. r.current.focus();
  16655. },
  16656. blur: () => {
  16657. r.current.blur();
  16658. }
  16659. }), () => {
  16660. const {
  16661. prefixCls: m,
  16662. domRef: y,
  16663. mode: _
  16664. } = t, O = {
  16665. inputRef: r,
  16666. onInputKeyDown: s,
  16667. onInputMouseDown: l,
  16668. onInputChange: h,
  16669. onInputPaste: p,
  16670. compositionStatus: i.value,
  16671. onInputCompositionStart: f,
  16672. onInputCompositionEnd: d
  16673. }, S = _ === "multiple" || _ === "tags" ? D(VNe, te(te({}, t), O), null) : D(r8, te(te({}, t), O), null);
  16674. return D("div", {
  16675. ref: y,
  16676. class: `${m}-selector`,
  16677. onClick: v,
  16678. onMousedown: g
  16679. }, [S]);
  16680. };
  16681. }
  16682. });
  16683. function HNe(t, e, n) {
  16684. function r(i) {
  16685. var a, o, s;
  16686. let l = i.target;
  16687. l.shadowRoot && i.composed && (l = i.composedPath()[0] || l);
  16688. const u = [(a = t[0]) === null || a === void 0 ? void 0 : a.value, (s = (o = t[1]) === null || o === void 0 ? void 0 : o.value) === null || s === void 0 ? void 0 : s.getPopupElement()];
  16689. e.value && u.every((c) => c && !c.contains(l) && c !== l) && n(!1);
  16690. }
  16691. _t(() => {
  16692. window.addEventListener("mousedown", r);
  16693. }), Qt(() => {
  16694. window.removeEventListener("mousedown", r);
  16695. });
  16696. }
  16697. function GNe() {
  16698. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
  16699. const e = ve(!1);
  16700. let n;
  16701. const r = () => {
  16702. clearTimeout(n);
  16703. };
  16704. return _t(() => {
  16705. r();
  16706. }), [e, (a, o) => {
  16707. r(), n = setTimeout(() => {
  16708. e.value = a, o && o();
  16709. }, t);
  16710. }, r];
  16711. }
  16712. const eie = Symbol("BaseSelectContextKey");
  16713. function jNe(t) {
  16714. return Et(eie, t);
  16715. }
  16716. function ZNe() {
  16717. return et(eie, {});
  16718. }
  16719. const i8 = () => {
  16720. if (typeof navigator > "u" || typeof window > "u")
  16721. return !1;
  16722. const t = navigator.userAgent || navigator.vendor || window.opera;
  16723. return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t == null ? void 0 : t.substring(0, 4));
  16724. };
  16725. function tie(t) {
  16726. if (!Vs(t)) return zn(t);
  16727. const e = new Proxy({}, {
  16728. get(n, r, i) {
  16729. return Reflect.get(t.value, r, i);
  16730. },
  16731. set(n, r, i) {
  16732. return t.value[r] = i, !0;
  16733. },
  16734. deleteProperty(n, r) {
  16735. return Reflect.deleteProperty(t.value, r);
  16736. },
  16737. has(n, r) {
  16738. return Reflect.has(t.value, r);
  16739. },
  16740. ownKeys() {
  16741. return Object.keys(t.value);
  16742. },
  16743. getOwnPropertyDescriptor() {
  16744. return {
  16745. enumerable: !0,
  16746. configurable: !0
  16747. };
  16748. }
  16749. });
  16750. return zn(e);
  16751. }
  16752. var UNe = function(t, e) {
  16753. var n = {};
  16754. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  16755. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  16756. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  16757. return n;
  16758. };
  16759. const XNe = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabindex", "OptionList", "notFoundContent"], YNe = () => ({
  16760. prefixCls: String,
  16761. id: String,
  16762. omitDomProps: Array,
  16763. // >>> Value
  16764. displayValues: Array,
  16765. onDisplayValuesChange: Function,
  16766. // >>> Active
  16767. /** Current dropdown list active item string value */
  16768. activeValue: String,
  16769. /** Link search input with target element */
  16770. activeDescendantId: String,
  16771. onActiveValueChange: Function,
  16772. // >>> Search
  16773. searchValue: String,
  16774. /** Trigger onSearch, return false to prevent trigger open event */
  16775. onSearch: Function,
  16776. /** Trigger when search text match the `tokenSeparators`. Will provide split content */
  16777. onSearchSplit: Function,
  16778. maxLength: Number,
  16779. OptionList: oe.any,
  16780. /** Tell if provided `options` is empty */
  16781. emptyOptions: Boolean
  16782. }), nie = () => ({
  16783. showSearch: {
  16784. type: Boolean,
  16785. default: void 0
  16786. },
  16787. tagRender: {
  16788. type: Function
  16789. },
  16790. optionLabelRender: {
  16791. type: Function
  16792. },
  16793. direction: {
  16794. type: String
  16795. },
  16796. // MISC
  16797. tabindex: Number,
  16798. autofocus: Boolean,
  16799. notFoundContent: oe.any,
  16800. placeholder: oe.any,
  16801. onClear: Function,
  16802. choiceTransitionName: String,
  16803. // >>> Mode
  16804. mode: String,
  16805. // >>> Status
  16806. disabled: {
  16807. type: Boolean,
  16808. default: void 0
  16809. },
  16810. loading: {
  16811. type: Boolean,
  16812. default: void 0
  16813. },
  16814. // >>> Open
  16815. open: {
  16816. type: Boolean,
  16817. default: void 0
  16818. },
  16819. defaultOpen: {
  16820. type: Boolean,
  16821. default: void 0
  16822. },
  16823. onDropdownVisibleChange: {
  16824. type: Function
  16825. },
  16826. // >>> Customize Input
  16827. /** @private Internal usage. Do not use in your production. */
  16828. getInputElement: {
  16829. type: Function
  16830. },
  16831. /** @private Internal usage. Do not use in your production. */
  16832. getRawInputElement: {
  16833. type: Function
  16834. },
  16835. // >>> Selector
  16836. maxTagTextLength: Number,
  16837. maxTagCount: {
  16838. type: [String, Number]
  16839. },
  16840. maxTagPlaceholder: oe.any,
  16841. // >>> Search
  16842. tokenSeparators: {
  16843. type: Array
  16844. },
  16845. // >>> Icons
  16846. allowClear: {
  16847. type: Boolean,
  16848. default: void 0
  16849. },
  16850. showArrow: {
  16851. type: Boolean,
  16852. default: void 0
  16853. },
  16854. inputIcon: oe.any,
  16855. /** Clear all icon */
  16856. clearIcon: oe.any,
  16857. /** Selector remove icon */
  16858. removeIcon: oe.any,
  16859. // >>> Dropdown
  16860. animation: String,
  16861. transitionName: String,
  16862. dropdownStyle: {
  16863. type: Object
  16864. },
  16865. dropdownClassName: String,
  16866. dropdownMatchSelectWidth: {
  16867. type: [Boolean, Number],
  16868. default: void 0
  16869. },
  16870. dropdownRender: {
  16871. type: Function
  16872. },
  16873. dropdownAlign: Object,
  16874. placement: {
  16875. type: String
  16876. },
  16877. getPopupContainer: {
  16878. type: Function
  16879. },
  16880. // >>> Focus
  16881. showAction: {
  16882. type: Array
  16883. },
  16884. onBlur: {
  16885. type: Function
  16886. },
  16887. onFocus: {
  16888. type: Function
  16889. },
  16890. // >>> Rest Events
  16891. onKeyup: Function,
  16892. onKeydown: Function,
  16893. onMousedown: Function,
  16894. onPopupScroll: Function,
  16895. onInputKeyDown: Function,
  16896. onMouseenter: Function,
  16897. onMouseleave: Function,
  16898. onClick: Function
  16899. }), qNe = () => k(k({}, YNe()), nie());
  16900. function a8(t) {
  16901. return t === "tags" || t === "multiple";
  16902. }
  16903. const KNe = ae({
  16904. compatConfig: {
  16905. MODE: 3
  16906. },
  16907. name: "BaseSelect",
  16908. inheritAttrs: !1,
  16909. props: li(qNe(), {
  16910. showAction: [],
  16911. notFoundContent: "Not Found"
  16912. }),
  16913. setup(t, e) {
  16914. let {
  16915. attrs: n,
  16916. expose: r,
  16917. slots: i
  16918. } = e;
  16919. const a = V(() => a8(t.mode)), o = V(() => t.showSearch !== void 0 ? t.showSearch : a.value || t.mode === "combobox"), s = ve(!1);
  16920. _t(() => {
  16921. s.value = i8();
  16922. });
  16923. const l = n8(), u = ve(null), c = kb(), f = ve(null), d = ve(null), h = ve(null), p = ee(!1), [v, g, m] = GNe();
  16924. r({
  16925. focus: () => {
  16926. var q;
  16927. (q = d.value) === null || q === void 0 || q.focus();
  16928. },
  16929. blur: () => {
  16930. var q;
  16931. (q = d.value) === null || q === void 0 || q.blur();
  16932. },
  16933. scrollTo: (q) => {
  16934. var K;
  16935. return (K = h.value) === null || K === void 0 ? void 0 : K.scrollTo(q);
  16936. }
  16937. });
  16938. const O = V(() => {
  16939. var q;
  16940. if (t.mode !== "combobox")
  16941. return t.searchValue;
  16942. const K = (q = t.displayValues[0]) === null || q === void 0 ? void 0 : q.value;
  16943. return typeof K == "string" || typeof K == "number" ? String(K) : "";
  16944. }), S = t.open !== void 0 ? t.open : t.defaultOpen, x = ve(S), C = ve(S), P = (q) => {
  16945. x.value = t.open !== void 0 ? t.open : q, C.value = x.value;
  16946. };
  16947. me(() => t.open, () => {
  16948. P(t.open);
  16949. });
  16950. const $ = V(() => !t.notFoundContent && t.emptyOptions);
  16951. Vt(() => {
  16952. C.value = x.value, (t.disabled || $.value && C.value && t.mode === "combobox") && (C.value = !1);
  16953. });
  16954. const T = V(() => $.value ? !1 : C.value), E = (q) => {
  16955. const K = q !== void 0 ? q : !C.value;
  16956. C.value !== K && !t.disabled && (P(K), t.onDropdownVisibleChange && t.onDropdownVisibleChange(K));
  16957. }, M = V(() => (t.tokenSeparators || []).some((q) => [`
  16958. `, `\r
  16959. `].includes(q))), R = (q, K, de) => {
  16960. var xe, we;
  16961. let He = !0, je = q;
  16962. (xe = t.onActiveValueChange) === null || xe === void 0 || xe.call(t, null);
  16963. const Be = de ? null : b4e(q, t.tokenSeparators);
  16964. return t.mode !== "combobox" && Be && (je = "", (we = t.onSearchSplit) === null || we === void 0 || we.call(t, Be), E(!1), He = !1), t.onSearch && O.value !== je && t.onSearch(je, {
  16965. source: K ? "typing" : "effect"
  16966. }), He;
  16967. }, N = (q) => {
  16968. var K;
  16969. !q || !q.trim() || (K = t.onSearch) === null || K === void 0 || K.call(t, q, {
  16970. source: "submit"
  16971. });
  16972. };
  16973. me(C, () => {
  16974. !C.value && !a.value && t.mode !== "combobox" && R("", !1, !1);
  16975. }, {
  16976. immediate: !0,
  16977. flush: "post"
  16978. }), me(() => t.disabled, () => {
  16979. x.value && t.disabled && P(!1), t.disabled && !p.value && g(!1);
  16980. }, {
  16981. immediate: !0
  16982. });
  16983. const [I, B] = Jre(), Q = function(q) {
  16984. var K;
  16985. const de = I(), {
  16986. which: xe
  16987. } = q;
  16988. if (xe === Me.ENTER && (t.mode !== "combobox" && q.preventDefault(), C.value || E(!0)), B(!!O.value), xe === Me.BACKSPACE && !de && a.value && !O.value && t.displayValues.length) {
  16989. const Be = [...t.displayValues];
  16990. let Le = null;
  16991. for (let Pe = Be.length - 1; Pe >= 0; Pe -= 1) {
  16992. const Fe = Be[Pe];
  16993. if (!Fe.disabled) {
  16994. Be.splice(Pe, 1), Le = Fe;
  16995. break;
  16996. }
  16997. }
  16998. Le && t.onDisplayValuesChange(Be, {
  16999. type: "remove",
  17000. values: [Le]
  17001. });
  17002. }
  17003. for (var we = arguments.length, He = new Array(we > 1 ? we - 1 : 0), je = 1; je < we; je++)
  17004. He[je - 1] = arguments[je];
  17005. C.value && h.value && h.value.onKeydown(q, ...He), (K = t.onKeydown) === null || K === void 0 || K.call(t, q, ...He);
  17006. }, W = function(q) {
  17007. for (var K = arguments.length, de = new Array(K > 1 ? K - 1 : 0), xe = 1; xe < K; xe++)
  17008. de[xe - 1] = arguments[xe];
  17009. C.value && h.value && h.value.onKeyup(q, ...de), t.onKeyup && t.onKeyup(q, ...de);
  17010. }, H = (q) => {
  17011. const K = t.displayValues.filter((de) => de !== q);
  17012. t.onDisplayValuesChange(K, {
  17013. type: "remove",
  17014. values: [q]
  17015. });
  17016. }, U = ve(!1), j = function() {
  17017. g(!0), t.disabled || (t.onFocus && !U.value && t.onFocus(...arguments), t.showAction && t.showAction.includes("focus") && E(!0)), U.value = !0;
  17018. }, Y = ee(!1), ne = function() {
  17019. if (Y.value || (p.value = !0, g(!1, () => {
  17020. U.value = !1, p.value = !1, E(!1);
  17021. }), t.disabled))
  17022. return;
  17023. const q = O.value;
  17024. q && (t.mode === "tags" ? t.onSearch(q, {
  17025. source: "submit"
  17026. }) : t.mode === "multiple" && t.onSearch("", {
  17027. source: "blur"
  17028. })), t.onBlur && t.onBlur(...arguments);
  17029. }, fe = () => {
  17030. Y.value = !0;
  17031. }, ue = () => {
  17032. Y.value = !1;
  17033. };
  17034. Et("VCSelectContainerEvent", {
  17035. focus: j,
  17036. blur: ne
  17037. });
  17038. const ye = [];
  17039. _t(() => {
  17040. ye.forEach((q) => clearTimeout(q)), ye.splice(0, ye.length);
  17041. }), Qt(() => {
  17042. ye.forEach((q) => clearTimeout(q)), ye.splice(0, ye.length);
  17043. });
  17044. const se = function(q) {
  17045. var K, de;
  17046. const {
  17047. target: xe
  17048. } = q, we = (K = f.value) === null || K === void 0 ? void 0 : K.getPopupElement();
  17049. if (we && we.contains(xe)) {
  17050. const Le = setTimeout(() => {
  17051. var Pe;
  17052. const Fe = ye.indexOf(Le);
  17053. Fe !== -1 && ye.splice(Fe, 1), m(), !s.value && !we.contains(document.activeElement) && ((Pe = d.value) === null || Pe === void 0 || Pe.focus());
  17054. });
  17055. ye.push(Le);
  17056. }
  17057. for (var He = arguments.length, je = new Array(He > 1 ? He - 1 : 0), Be = 1; Be < He; Be++)
  17058. je[Be - 1] = arguments[Be];
  17059. (de = t.onMousedown) === null || de === void 0 || de.call(t, q, ...je);
  17060. }, he = ve(null), re = () => {
  17061. };
  17062. return _t(() => {
  17063. me(T, () => {
  17064. var q;
  17065. if (T.value) {
  17066. const K = Math.ceil((q = u.value) === null || q === void 0 ? void 0 : q.offsetWidth);
  17067. he.value !== K && !Number.isNaN(K) && (he.value = K);
  17068. }
  17069. }, {
  17070. immediate: !0,
  17071. flush: "post"
  17072. });
  17073. }), HNe([u, f], T, E), jNe(tie(k(k({}, k_(t)), {
  17074. open: C,
  17075. triggerOpen: T,
  17076. showSearch: o,
  17077. multiple: a,
  17078. toggleOpen: E
  17079. }))), () => {
  17080. const q = k(k({}, t), n), {
  17081. prefixCls: K,
  17082. id: de,
  17083. open: xe,
  17084. defaultOpen: we,
  17085. mode: He,
  17086. // Search related
  17087. showSearch: je,
  17088. searchValue: Be,
  17089. onSearch: Le,
  17090. // Icons
  17091. allowClear: Pe,
  17092. clearIcon: Fe,
  17093. showArrow: Ye,
  17094. inputIcon: xt,
  17095. // Others
  17096. disabled: It,
  17097. loading: an,
  17098. getInputElement: Ae,
  17099. getPopupContainer: gt,
  17100. placement: Xt,
  17101. // Dropdown
  17102. animation: Bn,
  17103. transitionName: Dn,
  17104. dropdownStyle: Dr,
  17105. dropdownClassName: ji,
  17106. dropdownMatchSelectWidth: tu,
  17107. dropdownRender: nu,
  17108. dropdownAlign: oc,
  17109. showAction: Qf,
  17110. direction: rl,
  17111. // Tags
  17112. tokenSeparators: Hf,
  17113. tagRender: Gf,
  17114. optionLabelRender: Gm,
  17115. // Events
  17116. onPopupScroll: sc,
  17117. onDropdownVisibleChange: jm,
  17118. onFocus: g$,
  17119. onBlur: FB,
  17120. onKeyup: WB,
  17121. onKeydown: QB,
  17122. onMousedown: HB,
  17123. onClear: Sp,
  17124. omitDomProps: Zm,
  17125. getRawInputElement: z1,
  17126. displayValues: xp,
  17127. onDisplayValuesChange: Um,
  17128. emptyOptions: m$,
  17129. activeDescendantId: Xm,
  17130. activeValue: y$,
  17131. OptionList: b$
  17132. } = q, _$ = UNe(q, ["prefixCls", "id", "open", "defaultOpen", "mode", "showSearch", "searchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "disabled", "loading", "getInputElement", "getPopupContainer", "placement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "optionLabelRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyup", "onKeydown", "onMousedown", "onClear", "omitDomProps", "getRawInputElement", "displayValues", "onDisplayValuesChange", "emptyOptions", "activeDescendantId", "activeValue", "OptionList"]), V1 = He === "combobox" && Ae && Ae() || null, jf = typeof z1 == "function" && z1(), Ym = k({}, _$);
  17133. let F1;
  17134. jf && (F1 = (yo) => {
  17135. E(yo);
  17136. }), XNe.forEach((yo) => {
  17137. delete Ym[yo];
  17138. }), Zm == null || Zm.forEach((yo) => {
  17139. delete Ym[yo];
  17140. });
  17141. const W1 = Ye !== void 0 ? Ye : an || !a.value && He !== "combobox";
  17142. let qm;
  17143. W1 && (qm = D(Vh, {
  17144. class: Re(`${K}-arrow`, {
  17145. [`${K}-arrow-loading`]: an
  17146. }),
  17147. customizeIcon: xt,
  17148. customizeIconProps: {
  17149. loading: an,
  17150. searchValue: O.value,
  17151. open: C.value,
  17152. focused: v.value,
  17153. showSearch: o.value
  17154. }
  17155. }, null));
  17156. let Q1;
  17157. const O$ = () => {
  17158. Sp == null || Sp(), Um([], {
  17159. type: "clear",
  17160. values: xp
  17161. }), R("", !1, !1);
  17162. };
  17163. !It && Pe && (xp.length || O.value) && (Q1 = D(Vh, {
  17164. class: `${K}-clear`,
  17165. onMousedown: O$,
  17166. customizeIcon: Fe
  17167. }, {
  17168. default: () => [On("×")]
  17169. }));
  17170. const S$ = D(b$, {
  17171. ref: h
  17172. }, k(k({}, l.customSlots), {
  17173. option: i.option
  17174. })), x$ = Re(K, n.class, {
  17175. [`${K}-focused`]: v.value,
  17176. [`${K}-multiple`]: a.value,
  17177. [`${K}-single`]: !a.value,
  17178. [`${K}-allow-clear`]: Pe,
  17179. [`${K}-show-arrow`]: W1,
  17180. [`${K}-disabled`]: It,
  17181. [`${K}-loading`]: an,
  17182. [`${K}-open`]: C.value,
  17183. [`${K}-customize-input`]: V1,
  17184. [`${K}-show-search`]: o.value
  17185. }), H1 = D(ONe, {
  17186. ref: f,
  17187. disabled: It,
  17188. prefixCls: K,
  17189. visible: T.value,
  17190. popupElement: S$,
  17191. containerWidth: he.value,
  17192. animation: Bn,
  17193. transitionName: Dn,
  17194. dropdownStyle: Dr,
  17195. dropdownClassName: ji,
  17196. direction: rl,
  17197. dropdownMatchSelectWidth: tu,
  17198. dropdownRender: nu,
  17199. dropdownAlign: oc,
  17200. placement: Xt,
  17201. getPopupContainer: gt,
  17202. empty: m$,
  17203. getTriggerDOMNode: () => c.current,
  17204. onPopupVisibleChange: F1,
  17205. onPopupMouseEnter: re,
  17206. onPopupFocusin: fe,
  17207. onPopupFocusout: ue
  17208. }, {
  17209. default: () => jf ? po(jf) && xr(jf, {
  17210. ref: c
  17211. }, !1, !0) : D(QNe, te(te({}, t), {}, {
  17212. domRef: c,
  17213. prefixCls: K,
  17214. inputElement: V1,
  17215. ref: d,
  17216. id: de,
  17217. showSearch: o.value,
  17218. mode: He,
  17219. activeDescendantId: Xm,
  17220. tagRender: Gf,
  17221. optionLabelRender: Gm,
  17222. values: xp,
  17223. open: C.value,
  17224. onToggleOpen: E,
  17225. activeValue: y$,
  17226. searchValue: O.value,
  17227. onSearch: R,
  17228. onSearchSubmit: N,
  17229. onRemove: H,
  17230. tokenWithEnter: M.value
  17231. }), null)
  17232. });
  17233. let Km;
  17234. return jf ? Km = H1 : Km = D("div", te(te({}, Ym), {}, {
  17235. class: x$,
  17236. ref: u,
  17237. onMousedown: se,
  17238. onKeydown: Q,
  17239. onKeyup: W
  17240. }), [v.value && !C.value && D("span", {
  17241. style: {
  17242. width: 0,
  17243. height: 0,
  17244. position: "absolute",
  17245. overflow: "hidden",
  17246. opacity: 0
  17247. },
  17248. "aria-live": "polite"
  17249. }, [`${xp.map((yo) => {
  17250. let {
  17251. label: G1,
  17252. value: wp
  17253. } = yo;
  17254. return ["number", "string"].includes(typeof G1) ? G1 : wp;
  17255. }).join(", ")}`]), H1, qm, Q1]), Km;
  17256. };
  17257. }
  17258. }), I2 = (t, e) => {
  17259. let {
  17260. height: n,
  17261. offset: r,
  17262. prefixCls: i,
  17263. onInnerResize: a
  17264. } = t, {
  17265. slots: o
  17266. } = e;
  17267. var s;
  17268. let l = {}, u = {
  17269. display: "flex",
  17270. flexDirection: "column"
  17271. };
  17272. return r !== void 0 && (l = {
  17273. height: `${n}px`,
  17274. position: "relative",
  17275. overflow: "hidden"
  17276. }, u = k(k({}, u), {
  17277. transform: `translateY(${r}px)`,
  17278. position: "absolute",
  17279. left: 0,
  17280. right: 0,
  17281. top: 0
  17282. })), D("div", {
  17283. style: l
  17284. }, [D($g, {
  17285. onResize: (c) => {
  17286. let {
  17287. offsetHeight: f
  17288. } = c;
  17289. f && a && a();
  17290. }
  17291. }, {
  17292. default: () => [D("div", {
  17293. style: u,
  17294. class: Re({
  17295. [`${i}-holder-inner`]: i
  17296. })
  17297. }, [(s = o.default) === null || s === void 0 ? void 0 : s.call(o)])]
  17298. })]);
  17299. };
  17300. I2.displayName = "Filter";
  17301. I2.inheritAttrs = !1;
  17302. I2.props = {
  17303. prefixCls: String,
  17304. /** Virtual filler height. Should be `count * itemMinHeight` */
  17305. height: Number,
  17306. /** Set offset of visible items. Should be the top of start item position */
  17307. offset: Number,
  17308. onInnerResize: Function
  17309. };
  17310. const rie = (t, e) => {
  17311. let {
  17312. setRef: n
  17313. } = t, {
  17314. slots: r
  17315. } = e;
  17316. var i;
  17317. const a = qr((i = r.default) === null || i === void 0 ? void 0 : i.call(r));
  17318. return a && a.length ? ku(a[0], {
  17319. ref: n
  17320. }) : a;
  17321. };
  17322. rie.props = {
  17323. setRef: {
  17324. type: Function,
  17325. default: () => {
  17326. }
  17327. }
  17328. };
  17329. const JNe = 20;
  17330. function W7(t) {
  17331. return "touches" in t ? t.touches[0].pageY : t.pageY;
  17332. }
  17333. const e8e = ae({
  17334. compatConfig: {
  17335. MODE: 3
  17336. },
  17337. name: "ScrollBar",
  17338. inheritAttrs: !1,
  17339. props: {
  17340. prefixCls: String,
  17341. scrollTop: Number,
  17342. scrollHeight: Number,
  17343. height: Number,
  17344. count: Number,
  17345. onScroll: {
  17346. type: Function
  17347. },
  17348. onStartMove: {
  17349. type: Function
  17350. },
  17351. onStopMove: {
  17352. type: Function
  17353. }
  17354. },
  17355. setup() {
  17356. return {
  17357. moveRaf: null,
  17358. scrollbarRef: kb(),
  17359. thumbRef: kb(),
  17360. visibleTimeout: null,
  17361. state: zn({
  17362. dragging: !1,
  17363. pageY: null,
  17364. startTop: null,
  17365. visible: !1
  17366. })
  17367. };
  17368. },
  17369. watch: {
  17370. scrollTop: {
  17371. handler() {
  17372. this.delayHidden();
  17373. },
  17374. flush: "post"
  17375. }
  17376. },
  17377. mounted() {
  17378. var t, e;
  17379. (t = this.scrollbarRef.current) === null || t === void 0 || t.addEventListener("touchstart", this.onScrollbarTouchStart, mi ? {
  17380. passive: !1
  17381. } : !1), (e = this.thumbRef.current) === null || e === void 0 || e.addEventListener("touchstart", this.onMouseDown, mi ? {
  17382. passive: !1
  17383. } : !1);
  17384. },
  17385. beforeUnmount() {
  17386. this.removeEvents(), clearTimeout(this.visibleTimeout);
  17387. },
  17388. methods: {
  17389. delayHidden() {
  17390. clearTimeout(this.visibleTimeout), this.state.visible = !0, this.visibleTimeout = setTimeout(() => {
  17391. this.state.visible = !1;
  17392. }, 2e3);
  17393. },
  17394. onScrollbarTouchStart(t) {
  17395. t.preventDefault();
  17396. },
  17397. onContainerMouseDown(t) {
  17398. t.stopPropagation(), t.preventDefault();
  17399. },
  17400. // ======================= Clean =======================
  17401. patchEvents() {
  17402. window.addEventListener("mousemove", this.onMouseMove), window.addEventListener("mouseup", this.onMouseUp), this.thumbRef.current.addEventListener("touchmove", this.onMouseMove, mi ? {
  17403. passive: !1
  17404. } : !1), this.thumbRef.current.addEventListener("touchend", this.onMouseUp);
  17405. },
  17406. removeEvents() {
  17407. window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp), this.scrollbarRef.current.removeEventListener("touchstart", this.onScrollbarTouchStart, mi ? {
  17408. passive: !1
  17409. } : !1), this.thumbRef.current && (this.thumbRef.current.removeEventListener("touchstart", this.onMouseDown, mi ? {
  17410. passive: !1
  17411. } : !1), this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, mi ? {
  17412. passive: !1
  17413. } : !1), this.thumbRef.current.removeEventListener("touchend", this.onMouseUp)), en.cancel(this.moveRaf);
  17414. },
  17415. // ======================= Thumb =======================
  17416. onMouseDown(t) {
  17417. const {
  17418. onStartMove: e
  17419. } = this.$props;
  17420. k(this.state, {
  17421. dragging: !0,
  17422. pageY: W7(t),
  17423. startTop: this.getTop()
  17424. }), e(), this.patchEvents(), t.stopPropagation(), t.preventDefault();
  17425. },
  17426. onMouseMove(t) {
  17427. const {
  17428. dragging: e,
  17429. pageY: n,
  17430. startTop: r
  17431. } = this.state, {
  17432. onScroll: i
  17433. } = this.$props;
  17434. if (en.cancel(this.moveRaf), e) {
  17435. const a = W7(t) - n, o = r + a, s = this.getEnableScrollRange(), l = this.getEnableHeightRange(), u = l ? o / l : 0, c = Math.ceil(u * s);
  17436. this.moveRaf = en(() => {
  17437. i(c);
  17438. });
  17439. }
  17440. },
  17441. onMouseUp() {
  17442. const {
  17443. onStopMove: t
  17444. } = this.$props;
  17445. this.state.dragging = !1, t(), this.removeEvents();
  17446. },
  17447. // ===================== Calculate =====================
  17448. getSpinHeight() {
  17449. const {
  17450. height: t,
  17451. scrollHeight: e
  17452. } = this.$props;
  17453. let n = t / e * 100;
  17454. return n = Math.max(n, JNe), n = Math.min(n, t / 2), Math.floor(n);
  17455. },
  17456. getEnableScrollRange() {
  17457. const {
  17458. scrollHeight: t,
  17459. height: e
  17460. } = this.$props;
  17461. return t - e || 0;
  17462. },
  17463. getEnableHeightRange() {
  17464. const {
  17465. height: t
  17466. } = this.$props, e = this.getSpinHeight();
  17467. return t - e || 0;
  17468. },
  17469. getTop() {
  17470. const {
  17471. scrollTop: t
  17472. } = this.$props, e = this.getEnableScrollRange(), n = this.getEnableHeightRange();
  17473. return t === 0 || e === 0 ? 0 : t / e * n;
  17474. },
  17475. // Not show scrollbar when height is large than scrollHeight
  17476. showScroll() {
  17477. const {
  17478. height: t,
  17479. scrollHeight: e
  17480. } = this.$props;
  17481. return e > t;
  17482. }
  17483. },
  17484. render() {
  17485. const {
  17486. dragging: t,
  17487. visible: e
  17488. } = this.state, {
  17489. prefixCls: n
  17490. } = this.$props, r = this.getSpinHeight() + "px", i = this.getTop() + "px", a = this.showScroll(), o = a && e;
  17491. return D("div", {
  17492. ref: this.scrollbarRef,
  17493. class: Re(`${n}-scrollbar`, {
  17494. [`${n}-scrollbar-show`]: a
  17495. }),
  17496. style: {
  17497. width: "8px",
  17498. top: 0,
  17499. bottom: 0,
  17500. right: 0,
  17501. position: "absolute",
  17502. display: o ? void 0 : "none"
  17503. },
  17504. onMousedown: this.onContainerMouseDown,
  17505. onMousemove: this.delayHidden
  17506. }, [D("div", {
  17507. ref: this.thumbRef,
  17508. class: Re(`${n}-scrollbar-thumb`, {
  17509. [`${n}-scrollbar-thumb-moving`]: t
  17510. }),
  17511. style: {
  17512. width: "100%",
  17513. height: r,
  17514. top: i,
  17515. left: 0,
  17516. position: "absolute",
  17517. background: "rgba(0, 0, 0, 0.5)",
  17518. borderRadius: "99px",
  17519. cursor: "pointer",
  17520. userSelect: "none"
  17521. },
  17522. onMousedown: this.onMouseDown
  17523. }, null)]);
  17524. }
  17525. });
  17526. function t8e(t, e, n, r) {
  17527. const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = ee(Symbol("update"));
  17528. me(t, () => {
  17529. o.value = Symbol("update");
  17530. });
  17531. let s;
  17532. function l() {
  17533. en.cancel(s);
  17534. }
  17535. function u() {
  17536. l(), s = en(() => {
  17537. i.forEach((f, d) => {
  17538. if (f && f.offsetParent) {
  17539. const {
  17540. offsetHeight: h
  17541. } = f;
  17542. a.get(d) !== h && (o.value = Symbol("update"), a.set(d, f.offsetHeight));
  17543. }
  17544. });
  17545. });
  17546. }
  17547. function c(f, d) {
  17548. const h = e(f);
  17549. i.get(h), d ? (i.set(h, d.$el || d), u()) : i.delete(h);
  17550. }
  17551. return qu(() => {
  17552. l();
  17553. }), [c, u, a, o];
  17554. }
  17555. function n8e(t, e, n, r, i, a, o, s) {
  17556. let l;
  17557. return (u) => {
  17558. if (u == null) {
  17559. s();
  17560. return;
  17561. }
  17562. en.cancel(l);
  17563. const c = e.value, f = r.itemHeight;
  17564. if (typeof u == "number")
  17565. o(u);
  17566. else if (u && typeof u == "object") {
  17567. let d;
  17568. const {
  17569. align: h
  17570. } = u;
  17571. "index" in u ? {
  17572. index: d
  17573. } = u : d = c.findIndex((g) => i(g) === u.key);
  17574. const {
  17575. offset: p = 0
  17576. } = u, v = (g, m) => {
  17577. if (g < 0 || !t.value) return;
  17578. const y = t.value.clientHeight;
  17579. let _ = !1, O = m;
  17580. if (y) {
  17581. const S = m || h;
  17582. let x = 0, C = 0, P = 0;
  17583. const $ = Math.min(c.length, d);
  17584. for (let M = 0; M <= $; M += 1) {
  17585. const R = i(c[M]);
  17586. C = x;
  17587. const N = n.get(R);
  17588. P = C + (N === void 0 ? f : N), x = P, M === d && N === void 0 && (_ = !0);
  17589. }
  17590. const T = t.value.scrollTop;
  17591. let E = null;
  17592. switch (S) {
  17593. case "top":
  17594. E = C - p;
  17595. break;
  17596. case "bottom":
  17597. E = P - y + p;
  17598. break;
  17599. default: {
  17600. const M = T + y;
  17601. C < T ? O = "top" : P > M && (O = "bottom");
  17602. }
  17603. }
  17604. E !== null && E !== T && o(E);
  17605. }
  17606. l = en(() => {
  17607. _ && a(), v(g - 1, O);
  17608. }, 2);
  17609. };
  17610. v(5);
  17611. }
  17612. };
  17613. }
  17614. const r8e = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent), iie = (t, e) => {
  17615. let n = !1, r = null;
  17616. function i() {
  17617. clearTimeout(r), n = !0, r = setTimeout(() => {
  17618. n = !1;
  17619. }, 50);
  17620. }
  17621. return function(a) {
  17622. let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  17623. const s = (
  17624. // Pass origin wheel when on the top
  17625. a < 0 && t.value || // Pass origin wheel when on the bottom
  17626. a > 0 && e.value
  17627. );
  17628. return o && s ? (clearTimeout(r), n = !1) : (!s || n) && i(), !n && s;
  17629. };
  17630. };
  17631. function i8e(t, e, n, r) {
  17632. let i = 0, a = null, o = null, s = !1;
  17633. const l = iie(e, n);
  17634. function u(f) {
  17635. if (!t.value) return;
  17636. en.cancel(a);
  17637. const {
  17638. deltaY: d
  17639. } = f;
  17640. i += d, o = d, !l(d) && (r8e || f.preventDefault(), a = en(() => {
  17641. r(i * (s ? 10 : 1)), i = 0;
  17642. }));
  17643. }
  17644. function c(f) {
  17645. t.value && (s = f.detail === o);
  17646. }
  17647. return [u, c];
  17648. }
  17649. const a8e = 14 / 15;
  17650. function o8e(t, e, n) {
  17651. let r = !1, i = 0, a = null, o = null;
  17652. const s = () => {
  17653. a && (a.removeEventListener("touchmove", l), a.removeEventListener("touchend", u));
  17654. }, l = (d) => {
  17655. if (r) {
  17656. const h = Math.ceil(d.touches[0].pageY);
  17657. let p = i - h;
  17658. i = h, n(p) && d.preventDefault(), clearInterval(o), o = setInterval(() => {
  17659. p *= a8e, (!n(p, !0) || Math.abs(p) <= 0.1) && clearInterval(o);
  17660. }, 16);
  17661. }
  17662. }, u = () => {
  17663. r = !1, s();
  17664. }, c = (d) => {
  17665. s(), d.touches.length === 1 && !r && (r = !0, i = Math.ceil(d.touches[0].pageY), a = d.target, a.addEventListener("touchmove", l, {
  17666. passive: !1
  17667. }), a.addEventListener("touchend", u));
  17668. }, f = () => {
  17669. };
  17670. _t(() => {
  17671. document.addEventListener("touchmove", f, {
  17672. passive: !1
  17673. }), me(t, (d) => {
  17674. e.value.removeEventListener("touchstart", c), s(), clearInterval(o), d && e.value.addEventListener("touchstart", c, {
  17675. passive: !1
  17676. });
  17677. }, {
  17678. immediate: !0
  17679. });
  17680. }), Qt(() => {
  17681. document.removeEventListener("touchmove", f);
  17682. });
  17683. }
  17684. var s8e = function(t, e) {
  17685. var n = {};
  17686. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  17687. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  17688. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  17689. return n;
  17690. };
  17691. const l8e = [], u8e = {
  17692. overflowY: "auto",
  17693. overflowAnchor: "none"
  17694. };
  17695. function c8e(t, e, n, r, i, a) {
  17696. let {
  17697. getKey: o
  17698. } = a;
  17699. return t.slice(e, n + 1).map((s, l) => {
  17700. const u = e + l, c = i(s, u, {
  17701. // style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
  17702. }), f = o(s);
  17703. return D(rie, {
  17704. key: f,
  17705. setRef: (d) => r(s, d)
  17706. }, {
  17707. default: () => [c]
  17708. });
  17709. });
  17710. }
  17711. const f8e = ae({
  17712. compatConfig: {
  17713. MODE: 3
  17714. },
  17715. name: "List",
  17716. inheritAttrs: !1,
  17717. props: {
  17718. prefixCls: String,
  17719. data: oe.array,
  17720. height: Number,
  17721. itemHeight: Number,
  17722. /** If not match virtual scroll condition, Set List still use height of container. */
  17723. fullHeight: {
  17724. type: Boolean,
  17725. default: void 0
  17726. },
  17727. itemKey: {
  17728. type: [String, Number, Function],
  17729. required: !0
  17730. },
  17731. component: {
  17732. type: [String, Object]
  17733. },
  17734. /** Set `false` will always use real scroll instead of virtual one */
  17735. virtual: {
  17736. type: Boolean,
  17737. default: void 0
  17738. },
  17739. children: Function,
  17740. onScroll: Function,
  17741. onMousedown: Function,
  17742. onMouseenter: Function,
  17743. onVisibleChange: Function
  17744. },
  17745. setup(t, e) {
  17746. let {
  17747. expose: n
  17748. } = e;
  17749. const r = V(() => {
  17750. const {
  17751. height: H,
  17752. itemHeight: U,
  17753. virtual: j
  17754. } = t;
  17755. return !!(j !== !1 && H && U);
  17756. }), i = V(() => {
  17757. const {
  17758. height: H,
  17759. itemHeight: U,
  17760. data: j
  17761. } = t;
  17762. return r.value && j && U * j.length > H;
  17763. }), a = zn({
  17764. scrollTop: 0,
  17765. scrollMoving: !1
  17766. }), o = V(() => t.data || l8e), s = ve([]);
  17767. me(o, () => {
  17768. s.value = es(o.value).slice();
  17769. }, {
  17770. immediate: !0
  17771. });
  17772. const l = ve((H) => {
  17773. });
  17774. me(() => t.itemKey, (H) => {
  17775. typeof H == "function" ? l.value = H : l.value = (U) => U == null ? void 0 : U[H];
  17776. }, {
  17777. immediate: !0
  17778. });
  17779. const u = ve(), c = ve(), f = ve(), d = (H) => l.value(H), h = {
  17780. getKey: d
  17781. };
  17782. function p(H) {
  17783. let U;
  17784. typeof H == "function" ? U = H(a.scrollTop) : U = H;
  17785. const j = x(U);
  17786. u.value && (u.value.scrollTop = j), a.scrollTop = j;
  17787. }
  17788. const [v, g, m, y] = t8e(s, d), _ = zn({
  17789. scrollHeight: void 0,
  17790. start: 0,
  17791. end: 0,
  17792. offset: void 0
  17793. }), O = ve(0);
  17794. _t(() => {
  17795. Bt(() => {
  17796. var H;
  17797. O.value = ((H = c.value) === null || H === void 0 ? void 0 : H.offsetHeight) || 0;
  17798. });
  17799. }), rp(() => {
  17800. Bt(() => {
  17801. var H;
  17802. O.value = ((H = c.value) === null || H === void 0 ? void 0 : H.offsetHeight) || 0;
  17803. });
  17804. }), me([r, s], () => {
  17805. r.value || k(_, {
  17806. scrollHeight: void 0,
  17807. start: 0,
  17808. end: s.value.length - 1,
  17809. offset: void 0
  17810. });
  17811. }, {
  17812. immediate: !0
  17813. }), me([r, s, O, i], () => {
  17814. r.value && !i.value && k(_, {
  17815. scrollHeight: O.value,
  17816. start: 0,
  17817. end: s.value.length - 1,
  17818. offset: void 0
  17819. }), u.value && (a.scrollTop = u.value.scrollTop);
  17820. }, {
  17821. immediate: !0
  17822. }), me([i, r, () => a.scrollTop, s, y, () => t.height, O], () => {
  17823. if (!r.value || !i.value)
  17824. return;
  17825. let H = 0, U, j, Y;
  17826. const ne = s.value.length, fe = s.value, ue = a.scrollTop, {
  17827. itemHeight: ye,
  17828. height: se
  17829. } = t, he = ue + se;
  17830. for (let re = 0; re < ne; re += 1) {
  17831. const q = fe[re], K = d(q);
  17832. let de = m.get(K);
  17833. de === void 0 && (de = ye);
  17834. const xe = H + de;
  17835. U === void 0 && xe >= ue && (U = re, j = H), Y === void 0 && xe > he && (Y = re), H = xe;
  17836. }
  17837. U === void 0 && (U = 0, j = 0, Y = Math.ceil(se / ye)), Y === void 0 && (Y = ne - 1), Y = Math.min(Y + 1, ne), k(_, {
  17838. scrollHeight: H,
  17839. start: U,
  17840. end: Y,
  17841. offset: j
  17842. });
  17843. }, {
  17844. immediate: !0
  17845. });
  17846. const S = V(() => _.scrollHeight - t.height);
  17847. function x(H) {
  17848. let U = H;
  17849. return Number.isNaN(S.value) || (U = Math.min(U, S.value)), U = Math.max(U, 0), U;
  17850. }
  17851. const C = V(() => a.scrollTop <= 0), P = V(() => a.scrollTop >= S.value), $ = iie(C, P);
  17852. function T(H) {
  17853. p(H);
  17854. }
  17855. function E(H) {
  17856. var U;
  17857. const {
  17858. scrollTop: j
  17859. } = H.currentTarget;
  17860. j !== a.scrollTop && p(j), (U = t.onScroll) === null || U === void 0 || U.call(t, H);
  17861. }
  17862. const [M, R] = i8e(r, C, P, (H) => {
  17863. p((U) => U + H);
  17864. });
  17865. o8e(r, u, (H, U) => $(H, U) ? !1 : (M({
  17866. preventDefault() {
  17867. },
  17868. deltaY: H
  17869. }), !0));
  17870. function N(H) {
  17871. r.value && H.preventDefault();
  17872. }
  17873. const I = () => {
  17874. u.value && (u.value.removeEventListener("wheel", M, mi ? {
  17875. passive: !1
  17876. } : !1), u.value.removeEventListener("DOMMouseScroll", R), u.value.removeEventListener("MozMousePixelScroll", N));
  17877. };
  17878. Vt(() => {
  17879. Bt(() => {
  17880. u.value && (I(), u.value.addEventListener("wheel", M, mi ? {
  17881. passive: !1
  17882. } : !1), u.value.addEventListener("DOMMouseScroll", R), u.value.addEventListener("MozMousePixelScroll", N));
  17883. });
  17884. }), Qt(() => {
  17885. I();
  17886. });
  17887. const B = n8e(u, s, m, t, d, g, p, () => {
  17888. var H;
  17889. (H = f.value) === null || H === void 0 || H.delayHidden();
  17890. });
  17891. n({
  17892. scrollTo: B
  17893. });
  17894. const Q = V(() => {
  17895. let H = null;
  17896. return t.height && (H = k({
  17897. [t.fullHeight ? "height" : "maxHeight"]: t.height + "px"
  17898. }, u8e), r.value && (H.overflowY = "hidden", a.scrollMoving && (H.pointerEvents = "none"))), H;
  17899. });
  17900. return me([() => _.start, () => _.end, s], () => {
  17901. if (t.onVisibleChange) {
  17902. const H = s.value.slice(_.start, _.end + 1);
  17903. t.onVisibleChange(H, s.value);
  17904. }
  17905. }, {
  17906. flush: "post"
  17907. }), {
  17908. state: a,
  17909. mergedData: s,
  17910. componentStyle: Q,
  17911. onFallbackScroll: E,
  17912. onScrollBar: T,
  17913. componentRef: u,
  17914. useVirtual: r,
  17915. calRes: _,
  17916. collectHeight: g,
  17917. setInstance: v,
  17918. sharedConfig: h,
  17919. scrollBarRef: f,
  17920. fillerInnerRef: c,
  17921. delayHideScrollBar: () => {
  17922. var H;
  17923. (H = f.value) === null || H === void 0 || H.delayHidden();
  17924. }
  17925. };
  17926. },
  17927. render() {
  17928. const t = k(k({}, this.$props), this.$attrs), {
  17929. prefixCls: e = "rc-virtual-list",
  17930. height: n,
  17931. itemHeight: r,
  17932. // eslint-disable-next-line no-unused-vars
  17933. fullHeight: i,
  17934. data: a,
  17935. itemKey: o,
  17936. virtual: s,
  17937. component: l = "div",
  17938. onScroll: u,
  17939. children: c = this.$slots.default,
  17940. style: f,
  17941. class: d
  17942. } = t, h = s8e(t, ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"]), p = Re(e, d), {
  17943. scrollTop: v
  17944. } = this.state, {
  17945. scrollHeight: g,
  17946. offset: m,
  17947. start: y,
  17948. end: _
  17949. } = this.calRes, {
  17950. componentStyle: O,
  17951. onFallbackScroll: S,
  17952. onScrollBar: x,
  17953. useVirtual: C,
  17954. collectHeight: P,
  17955. sharedConfig: $,
  17956. setInstance: T,
  17957. mergedData: E,
  17958. delayHideScrollBar: M
  17959. } = this;
  17960. return D("div", te({
  17961. style: k(k({}, f), {
  17962. position: "relative"
  17963. }),
  17964. class: p
  17965. }, h), [D(l, {
  17966. class: `${e}-holder`,
  17967. style: O,
  17968. ref: "componentRef",
  17969. onScroll: S,
  17970. onMouseenter: M
  17971. }, {
  17972. default: () => [D(I2, {
  17973. prefixCls: e,
  17974. height: g,
  17975. offset: m,
  17976. onInnerResize: P,
  17977. ref: "fillerInnerRef"
  17978. }, {
  17979. default: () => c8e(E, y, _, T, c, $)
  17980. })]
  17981. }), C && D(e8e, {
  17982. ref: "scrollBarRef",
  17983. prefixCls: e,
  17984. scrollTop: v,
  17985. height: n,
  17986. scrollHeight: g,
  17987. count: E.length,
  17988. onScroll: x,
  17989. onStartMove: () => {
  17990. this.state.scrollMoving = !0;
  17991. },
  17992. onStopMove: () => {
  17993. this.state.scrollMoving = !1;
  17994. }
  17995. }, null)]);
  17996. }
  17997. });
  17998. function d8e(t, e, n) {
  17999. const r = ee(t());
  18000. return me(e, (i, a) => {
  18001. n ? n(i, a) && (r.value = t()) : r.value = t();
  18002. }), r;
  18003. }
  18004. function h8e() {
  18005. return /(mac\sos|macintosh)/i.test(navigator.appVersion);
  18006. }
  18007. const aie = Symbol("SelectContextKey");
  18008. function p8e(t) {
  18009. return Et(aie, t);
  18010. }
  18011. function v8e() {
  18012. return et(aie, {});
  18013. }
  18014. var g8e = function(t, e) {
  18015. var n = {};
  18016. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  18017. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  18018. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  18019. return n;
  18020. };
  18021. function Q7(t) {
  18022. return typeof t == "string" || typeof t == "number";
  18023. }
  18024. const m8e = ae({
  18025. compatConfig: {
  18026. MODE: 3
  18027. },
  18028. name: "OptionList",
  18029. inheritAttrs: !1,
  18030. setup(t, e) {
  18031. let {
  18032. expose: n,
  18033. slots: r
  18034. } = e;
  18035. const i = ZNe(), a = v8e(), o = V(() => `${i.prefixCls}-item`), s = d8e(() => a.flattenOptions, [() => i.open, () => a.flattenOptions], (S) => S[0]), l = kb(), u = (S) => {
  18036. S.preventDefault();
  18037. }, c = (S) => {
  18038. l.current && l.current.scrollTo(typeof S == "number" ? {
  18039. index: S
  18040. } : S);
  18041. }, f = function(S) {
  18042. let x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
  18043. const C = s.value.length;
  18044. for (let P = 0; P < C; P += 1) {
  18045. const $ = (S + P * x + C) % C, {
  18046. group: T,
  18047. data: E
  18048. } = s.value[$];
  18049. if (!T && !E.disabled)
  18050. return $;
  18051. }
  18052. return -1;
  18053. }, d = zn({
  18054. activeIndex: f(0)
  18055. }), h = function(S) {
  18056. let x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  18057. d.activeIndex = S;
  18058. const C = {
  18059. source: x ? "keyboard" : "mouse"
  18060. }, P = s.value[S];
  18061. if (!P) {
  18062. a.onActiveValue(null, -1, C);
  18063. return;
  18064. }
  18065. a.onActiveValue(P.value, S, C);
  18066. };
  18067. me([() => s.value.length, () => i.searchValue], () => {
  18068. h(a.defaultActiveFirstOption !== !1 ? f(0) : -1);
  18069. }, {
  18070. immediate: !0
  18071. });
  18072. const p = (S) => a.rawValues.has(S) && i.mode !== "combobox";
  18073. me([() => i.open, () => i.searchValue], () => {
  18074. if (!i.multiple && i.open && a.rawValues.size === 1) {
  18075. const S = Array.from(a.rawValues)[0], x = es(s.value).findIndex((C) => {
  18076. let {
  18077. data: P
  18078. } = C;
  18079. return P[a.fieldNames.value] === S;
  18080. });
  18081. x !== -1 && (h(x), Bt(() => {
  18082. c(x);
  18083. }));
  18084. }
  18085. i.open && Bt(() => {
  18086. var S;
  18087. (S = l.current) === null || S === void 0 || S.scrollTo(void 0);
  18088. });
  18089. }, {
  18090. immediate: !0,
  18091. flush: "post"
  18092. });
  18093. const v = (S) => {
  18094. S !== void 0 && a.onSelect(S, {
  18095. selected: !a.rawValues.has(S)
  18096. }), i.multiple || i.toggleOpen(!1);
  18097. }, g = (S) => typeof S.label == "function" ? S.label() : S.label;
  18098. function m(S) {
  18099. const x = s.value[S];
  18100. if (!x) return null;
  18101. const C = x.data || {}, {
  18102. value: P
  18103. } = C, {
  18104. group: $
  18105. } = x, T = M2(C, !0), E = g(x);
  18106. return x ? D("div", te(te({
  18107. "aria-label": typeof E == "string" && !$ ? E : null
  18108. }, T), {}, {
  18109. key: S,
  18110. role: $ ? "presentation" : "option",
  18111. id: `${i.id}_list_${S}`,
  18112. "aria-selected": p(P)
  18113. }), [P]) : null;
  18114. }
  18115. return n({
  18116. onKeydown: (S) => {
  18117. const {
  18118. which: x,
  18119. ctrlKey: C
  18120. } = S;
  18121. switch (x) {
  18122. case Me.N:
  18123. case Me.P:
  18124. case Me.UP:
  18125. case Me.DOWN: {
  18126. let P = 0;
  18127. if (x === Me.UP ? P = -1 : x === Me.DOWN ? P = 1 : h8e() && C && (x === Me.N ? P = 1 : x === Me.P && (P = -1)), P !== 0) {
  18128. const $ = f(d.activeIndex + P, P);
  18129. c($), h($, !0);
  18130. }
  18131. break;
  18132. }
  18133. case Me.ENTER: {
  18134. const P = s.value[d.activeIndex];
  18135. P && !P.data.disabled ? v(P.value) : v(void 0), i.open && S.preventDefault();
  18136. break;
  18137. }
  18138. case Me.ESC:
  18139. i.toggleOpen(!1), i.open && S.stopPropagation();
  18140. }
  18141. },
  18142. onKeyup: () => {
  18143. },
  18144. scrollTo: (S) => {
  18145. c(S);
  18146. }
  18147. }), () => {
  18148. const {
  18149. id: S,
  18150. notFoundContent: x,
  18151. onPopupScroll: C
  18152. } = i, {
  18153. menuItemSelectedIcon: P,
  18154. fieldNames: $,
  18155. virtual: T,
  18156. listHeight: E,
  18157. listItemHeight: M
  18158. } = a, R = r.option, {
  18159. activeIndex: N
  18160. } = d, I = Object.keys($).map((B) => $[B]);
  18161. return s.value.length === 0 ? D("div", {
  18162. role: "listbox",
  18163. id: `${S}_list`,
  18164. class: `${o.value}-empty`,
  18165. onMousedown: u
  18166. }, [x]) : D(Wt, null, [D("div", {
  18167. role: "listbox",
  18168. id: `${S}_list`,
  18169. style: {
  18170. height: 0,
  18171. width: 0,
  18172. overflow: "hidden"
  18173. }
  18174. }, [m(N - 1), m(N), m(N + 1)]), D(f8e, {
  18175. itemKey: "key",
  18176. ref: l,
  18177. data: s.value,
  18178. height: E,
  18179. itemHeight: M,
  18180. fullHeight: !1,
  18181. onMousedown: u,
  18182. onScroll: C,
  18183. virtual: T
  18184. }, {
  18185. default: (B, Q) => {
  18186. var W;
  18187. const {
  18188. group: H,
  18189. groupOption: U,
  18190. data: j,
  18191. value: Y
  18192. } = B, {
  18193. key: ne
  18194. } = j, fe = typeof B.label == "function" ? B.label() : B.label;
  18195. if (H) {
  18196. const Fe = (W = j.title) !== null && W !== void 0 ? W : Q7(fe) && fe;
  18197. return D("div", {
  18198. class: Re(o.value, `${o.value}-group`),
  18199. title: Fe
  18200. }, [R ? R(j) : fe !== void 0 ? fe : ne]);
  18201. }
  18202. const {
  18203. disabled: ue,
  18204. title: ye,
  18205. children: se,
  18206. style: he,
  18207. class: re,
  18208. className: q
  18209. } = j, K = g8e(j, ["disabled", "title", "children", "style", "class", "className"]), de = si(K, I), xe = p(Y), we = `${o.value}-option`, He = Re(o.value, we, re, q, {
  18210. [`${we}-grouped`]: U,
  18211. [`${we}-active`]: N === Q && !ue,
  18212. [`${we}-disabled`]: ue,
  18213. [`${we}-selected`]: xe
  18214. }), je = g(B), Be = !P || typeof P == "function" || xe, Le = typeof je == "number" ? je : je || Y;
  18215. let Pe = Q7(Le) ? Le.toString() : void 0;
  18216. return ye !== void 0 && (Pe = ye), D("div", te(te({}, de), {}, {
  18217. "aria-selected": xe,
  18218. class: He,
  18219. title: Pe,
  18220. onMousemove: (Fe) => {
  18221. K.onMousemove && K.onMousemove(Fe), !(N === Q || ue) && h(Q);
  18222. },
  18223. onClick: (Fe) => {
  18224. ue || v(Y), K.onClick && K.onClick(Fe);
  18225. },
  18226. style: he
  18227. }), [D("div", {
  18228. class: `${we}-content`
  18229. }, [R ? R(j) : Le]), po(P) || xe, Be && D(Vh, {
  18230. class: `${o.value}-option-state`,
  18231. customizeIcon: P,
  18232. customizeIconProps: {
  18233. isSelected: xe
  18234. }
  18235. }, {
  18236. default: () => [xe ? "✓" : null]
  18237. })]);
  18238. }
  18239. })]);
  18240. };
  18241. }
  18242. });
  18243. var y8e = function(t, e) {
  18244. var n = {};
  18245. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  18246. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  18247. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  18248. return n;
  18249. };
  18250. function b8e(t) {
  18251. const e = t, {
  18252. key: n,
  18253. children: r
  18254. } = e, i = e.props, {
  18255. value: a,
  18256. disabled: o
  18257. } = i, s = y8e(i, ["value", "disabled"]), l = r == null ? void 0 : r.default;
  18258. return k({
  18259. key: n,
  18260. value: a !== void 0 ? a : n,
  18261. children: l,
  18262. disabled: o || o === ""
  18263. }, s);
  18264. }
  18265. function o8(t) {
  18266. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  18267. return qr(t).map((r, i) => {
  18268. var a;
  18269. if (!po(r) || !r.type)
  18270. return null;
  18271. const {
  18272. type: {
  18273. isSelectOptGroup: o
  18274. },
  18275. key: s,
  18276. children: l,
  18277. props: u
  18278. } = r;
  18279. if (e || !o)
  18280. return b8e(r);
  18281. const c = l && l.default ? l.default() : void 0, f = (u == null ? void 0 : u.label) || ((a = l.label) === null || a === void 0 ? void 0 : a.call(l)) || s;
  18282. return k(k({
  18283. key: `__RC_SELECT_GRP__${s === null ? i : String(s)}__`
  18284. }, u), {
  18285. label: f,
  18286. options: o8(c || [])
  18287. });
  18288. }).filter((r) => r);
  18289. }
  18290. function _8e(t, e, n) {
  18291. const r = ve(), i = ve(), a = ve(), o = ve([]);
  18292. return me([t, e], () => {
  18293. t.value ? o.value = es(t.value).slice() : o.value = o8(e.value);
  18294. }, {
  18295. immediate: !0,
  18296. deep: !0
  18297. }), Vt(() => {
  18298. const s = o.value, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), c = n.value;
  18299. function f(d) {
  18300. let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  18301. for (let p = 0; p < d.length; p += 1) {
  18302. const v = d[p];
  18303. !v[c.options] || h ? (l.set(v[c.value], v), u.set(v[c.label], v)) : f(v[c.options], !0);
  18304. }
  18305. }
  18306. f(s), r.value = s, i.value = l, a.value = u;
  18307. }), {
  18308. options: r,
  18309. valueOptions: i,
  18310. labelOptions: a
  18311. };
  18312. }
  18313. let H7 = 0;
  18314. const O8e = process.env.NODE_ENV !== "test" && is();
  18315. function S8e() {
  18316. let t;
  18317. return O8e ? (t = H7, H7 += 1) : t = "TEST_OR_SSR", t;
  18318. }
  18319. function x8e() {
  18320. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ee("");
  18321. const e = `rc_select_${S8e()}`;
  18322. return t.value || e;
  18323. }
  18324. function s8(t) {
  18325. return Array.isArray(t) ? t : t !== void 0 ? [t] : [];
  18326. }
  18327. const w8e = typeof window < "u" && window.document && window.document.documentElement;
  18328. process.env.NODE_ENV;
  18329. function C8e(t) {
  18330. const {
  18331. mode: e,
  18332. options: n,
  18333. children: r,
  18334. backfill: i,
  18335. allowClear: a,
  18336. placeholder: o,
  18337. getInputElement: s,
  18338. showSearch: l,
  18339. onSearch: u,
  18340. defaultOpen: c,
  18341. autofocus: f,
  18342. labelInValue: d,
  18343. value: h,
  18344. inputValue: p,
  18345. optionLabelProp: v
  18346. } = t, g = a8(e), m = l !== void 0 ? l : g || e === "combobox", y = n || o8(r);
  18347. if (Lo(e !== "tags" || y.every((_) => !_.disabled), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), Lo(e !== "combobox" || !v, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), Lo(e === "combobox" || !i, "`backfill` only works with `combobox` mode."), Lo(e === "combobox" || !s, "`getInputElement` only work with `combobox` mode."), qW(e !== "combobox" || !s || !a || !o, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), u && !m && e !== "combobox" && e !== "tags" && Lo(!1, "`onSearch` should work with `showSearch` instead of use alone."), qW(!c || f, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."), h != null) {
  18348. const _ = s8(h);
  18349. Lo(!d || _.every((O) => typeof O == "object" && ("key" in O || "value" in O)), "`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"), Lo(!g || Array.isArray(h), "`value` should be array when `mode` is `multiple` or `tags`");
  18350. }
  18351. if (r) {
  18352. let _ = null;
  18353. r.some((O) => {
  18354. var S;
  18355. if (!po(O) || !O.type)
  18356. return !1;
  18357. const {
  18358. type: x
  18359. } = O;
  18360. return x.isSelectOption ? !1 : x.isSelectOptGroup ? !(((S = O.children) === null || S === void 0 ? void 0 : S.default()) || []).every(($) => !po($) || !O.type || $.type.isSelectOption ? !0 : (_ = $.type, !1)) : (_ = x, !0);
  18361. }), _ && Lo(!1, `\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${_.displayName || _.name || _}\`.`), Lo(p === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
  18362. }
  18363. }
  18364. function sE(t, e) {
  18365. return s8(t).join("").toUpperCase().includes(e);
  18366. }
  18367. const T8e = (t, e, n, r, i) => V(() => {
  18368. const a = n.value, o = i == null ? void 0 : i.value, s = r == null ? void 0 : r.value;
  18369. if (!a || s === !1)
  18370. return t.value;
  18371. const {
  18372. options: l,
  18373. label: u,
  18374. value: c
  18375. } = e.value, f = [], d = typeof s == "function", h = a.toUpperCase(), p = d ? s : (g, m) => o ? sE(m[o], h) : m[l] ? sE(m[u !== "children" ? u : "label"], h) : sE(m[c], h), v = d ? (g) => SR(g) : (g) => g;
  18376. return t.value.forEach((g) => {
  18377. if (g[l]) {
  18378. if (p(a, v(g)))
  18379. f.push(g);
  18380. else {
  18381. const y = g[l].filter((_) => p(a, v(_)));
  18382. y.length && f.push(k(k({}, g), {
  18383. [l]: y
  18384. }));
  18385. }
  18386. return;
  18387. }
  18388. p(a, v(g)) && f.push(g);
  18389. }), f;
  18390. }), P8e = (t, e) => {
  18391. const n = ve({
  18392. values: /* @__PURE__ */ new Map(),
  18393. options: /* @__PURE__ */ new Map()
  18394. });
  18395. return [V(() => {
  18396. const {
  18397. values: a,
  18398. options: o
  18399. } = n.value, s = t.value.map((c) => {
  18400. var f;
  18401. return c.label === void 0 ? k(k({}, c), {
  18402. label: (f = a.get(c.value)) === null || f === void 0 ? void 0 : f.label
  18403. }) : c;
  18404. }), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
  18405. return s.forEach((c) => {
  18406. l.set(c.value, c), u.set(c.value, e.value.get(c.value) || o.get(c.value));
  18407. }), n.value.values = l, n.value.options = u, s;
  18408. }), (a) => e.value.get(a) || n.value.options.get(a)];
  18409. };
  18410. function Rg(t, e) {
  18411. const {
  18412. defaultValue: n,
  18413. value: r = ee()
  18414. } = e || {};
  18415. let i = typeof t == "function" ? t() : t;
  18416. r.value !== void 0 && (i = z(r)), n !== void 0 && (i = typeof n == "function" ? n() : n);
  18417. const a = ee(i), o = ee(i);
  18418. Vt(() => {
  18419. let l = r.value !== void 0 ? r.value : a.value;
  18420. e.postState && (l = e.postState(l)), o.value = l;
  18421. });
  18422. function s(l) {
  18423. const u = o.value;
  18424. a.value = l, es(o.value) !== l && e.onChange && e.onChange(l, u);
  18425. }
  18426. return me(r, () => {
  18427. a.value = r.value;
  18428. }), [o, s];
  18429. }
  18430. function tr(t) {
  18431. const e = typeof t == "function" ? t() : t, n = ee(e);
  18432. function r(i) {
  18433. n.value = i;
  18434. }
  18435. return [n, r];
  18436. }
  18437. const $8e = ["inputValue"];
  18438. function oie() {
  18439. return k(k({}, nie()), {
  18440. prefixCls: String,
  18441. id: String,
  18442. backfill: {
  18443. type: Boolean,
  18444. default: void 0
  18445. },
  18446. // >>> Field Names
  18447. fieldNames: Object,
  18448. // >>> Search
  18449. /** @deprecated Use `searchValue` instead */
  18450. inputValue: String,
  18451. searchValue: String,
  18452. onSearch: Function,
  18453. autoClearSearchValue: {
  18454. type: Boolean,
  18455. default: void 0
  18456. },
  18457. // >>> Select
  18458. onSelect: Function,
  18459. onDeselect: Function,
  18460. // >>> Options
  18461. /**
  18462. * In Select, `false` means do nothing.
  18463. * In TreeSelect, `false` will highlight match item.
  18464. * It's by design.
  18465. */
  18466. filterOption: {
  18467. type: [Boolean, Function],
  18468. default: void 0
  18469. },
  18470. filterSort: Function,
  18471. optionFilterProp: String,
  18472. optionLabelProp: String,
  18473. options: Array,
  18474. defaultActiveFirstOption: {
  18475. type: Boolean,
  18476. default: void 0
  18477. },
  18478. virtual: {
  18479. type: Boolean,
  18480. default: void 0
  18481. },
  18482. listHeight: Number,
  18483. listItemHeight: Number,
  18484. // >>> Icon
  18485. menuItemSelectedIcon: oe.any,
  18486. mode: String,
  18487. labelInValue: {
  18488. type: Boolean,
  18489. default: void 0
  18490. },
  18491. value: oe.any,
  18492. defaultValue: oe.any,
  18493. onChange: Function,
  18494. children: Array
  18495. });
  18496. }
  18497. function A8e(t) {
  18498. return !t || typeof t != "object";
  18499. }
  18500. const E8e = ae({
  18501. compatConfig: {
  18502. MODE: 3
  18503. },
  18504. name: "VcSelect",
  18505. inheritAttrs: !1,
  18506. props: li(oie(), {
  18507. prefixCls: "vc-select",
  18508. autoClearSearchValue: !0,
  18509. listHeight: 200,
  18510. listItemHeight: 20,
  18511. dropdownMatchSelectWidth: !0
  18512. }),
  18513. setup(t, e) {
  18514. let {
  18515. expose: n,
  18516. attrs: r,
  18517. slots: i
  18518. } = e;
  18519. const a = x8e(Lr(t, "id")), o = V(() => a8(t.mode)), s = V(() => !!(!t.options && t.children)), l = V(() => t.filterOption === void 0 && t.mode === "combobox" ? !1 : t.filterOption), u = V(() => Dre(t.fieldNames, s.value)), [c, f] = Rg("", {
  18520. value: V(() => t.searchValue !== void 0 ? t.searchValue : t.inputValue),
  18521. postState: (re) => re || ""
  18522. }), d = _8e(Lr(t, "options"), Lr(t, "children"), u), {
  18523. valueOptions: h,
  18524. labelOptions: p,
  18525. options: v
  18526. } = d, g = (re) => s8(re).map((K) => {
  18527. var de, xe;
  18528. let we, He, je, Be;
  18529. A8e(K) ? we = K : (je = K.key, He = K.label, we = (de = K.value) !== null && de !== void 0 ? de : je);
  18530. const Le = h.value.get(we);
  18531. return Le && (He === void 0 && (He = Le == null ? void 0 : Le[t.optionLabelProp || u.value.label]), je === void 0 && (je = (xe = Le == null ? void 0 : Le.key) !== null && xe !== void 0 ? xe : we), Be = Le == null ? void 0 : Le.disabled), {
  18532. label: He,
  18533. value: we,
  18534. key: je,
  18535. disabled: Be,
  18536. option: Le
  18537. };
  18538. }), [m, y] = Rg(t.defaultValue, {
  18539. value: Lr(t, "value")
  18540. }), _ = V(() => {
  18541. var re;
  18542. const q = g(m.value);
  18543. return t.mode === "combobox" && !(!((re = q[0]) === null || re === void 0) && re.value) ? [] : q;
  18544. }), [O, S] = P8e(_, h), x = V(() => {
  18545. if (!t.mode && O.value.length === 1) {
  18546. const re = O.value[0];
  18547. if (re.value === null && (re.label === null || re.label === void 0))
  18548. return [];
  18549. }
  18550. return O.value.map((re) => {
  18551. var q;
  18552. return k(k({}, re), {
  18553. label: (q = typeof re.label == "function" ? re.label() : re.label) !== null && q !== void 0 ? q : re.value
  18554. });
  18555. });
  18556. }), C = V(() => new Set(O.value.map((re) => re.value)));
  18557. Vt(() => {
  18558. var re;
  18559. if (t.mode === "combobox") {
  18560. const q = (re = O.value[0]) === null || re === void 0 ? void 0 : re.value;
  18561. q != null && f(String(q));
  18562. }
  18563. }, {
  18564. flush: "post"
  18565. });
  18566. const P = (re, q) => {
  18567. const K = q ?? re;
  18568. return {
  18569. [u.value.value]: re,
  18570. [u.value.label]: K
  18571. };
  18572. }, $ = ve();
  18573. Vt(() => {
  18574. if (t.mode !== "tags") {
  18575. $.value = v.value;
  18576. return;
  18577. }
  18578. const re = v.value.slice(), q = (K) => h.value.has(K);
  18579. [...O.value].sort((K, de) => K.value < de.value ? -1 : 1).forEach((K) => {
  18580. const de = K.value;
  18581. q(de) || re.push(P(de, K.label));
  18582. }), $.value = re;
  18583. });
  18584. const T = T8e($, u, c, l, Lr(t, "optionFilterProp")), E = V(() => t.mode !== "tags" || !c.value || T.value.some((re) => re[t.optionFilterProp || "value"] === c.value) ? T.value : [P(c.value), ...T.value]), M = V(() => t.filterSort ? [...E.value].sort((re, q) => t.filterSort(re, q)) : E.value), R = V(() => y4e(M.value, {
  18585. fieldNames: u.value,
  18586. childrenAsData: s.value
  18587. })), N = (re) => {
  18588. const q = g(re);
  18589. if (y(q), t.onChange && // Trigger event only when value changed
  18590. (q.length !== O.value.length || q.some((K, de) => {
  18591. var xe;
  18592. return ((xe = O.value[de]) === null || xe === void 0 ? void 0 : xe.value) !== (K == null ? void 0 : K.value);
  18593. }))) {
  18594. const K = t.labelInValue ? q.map((xe) => k(k({}, xe), {
  18595. originLabel: xe.label,
  18596. label: typeof xe.label == "function" ? xe.label() : xe.label
  18597. })) : q.map((xe) => xe.value), de = q.map((xe) => SR(S(xe.value)));
  18598. t.onChange(
  18599. // Value
  18600. o.value ? K : K[0],
  18601. // Option
  18602. o.value ? de : de[0]
  18603. );
  18604. }
  18605. }, [I, B] = tr(null), [Q, W] = tr(0), H = V(() => t.defaultActiveFirstOption !== void 0 ? t.defaultActiveFirstOption : t.mode !== "combobox"), U = function(re, q) {
  18606. let {
  18607. source: K = "keyboard"
  18608. } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  18609. W(q), t.backfill && t.mode === "combobox" && re !== null && K === "keyboard" && B(String(re));
  18610. }, j = (re, q) => {
  18611. const K = () => {
  18612. var de;
  18613. const xe = S(re), we = xe == null ? void 0 : xe[u.value.label];
  18614. return [t.labelInValue ? {
  18615. label: typeof we == "function" ? we() : we,
  18616. originLabel: we,
  18617. value: re,
  18618. key: (de = xe == null ? void 0 : xe.key) !== null && de !== void 0 ? de : re
  18619. } : re, SR(xe)];
  18620. };
  18621. if (q && t.onSelect) {
  18622. const [de, xe] = K();
  18623. t.onSelect(de, xe);
  18624. } else if (!q && t.onDeselect) {
  18625. const [de, xe] = K();
  18626. t.onDeselect(de, xe);
  18627. }
  18628. }, Y = (re, q) => {
  18629. let K;
  18630. const de = o.value ? q.selected : !0;
  18631. de ? K = o.value ? [...O.value, re] : [re] : K = O.value.filter((xe) => xe.value !== re), N(K), j(re, de), t.mode === "combobox" ? B("") : (!o.value || t.autoClearSearchValue) && (f(""), B(""));
  18632. }, ne = (re, q) => {
  18633. N(re), (q.type === "remove" || q.type === "clear") && q.values.forEach((K) => {
  18634. j(K.value, !1);
  18635. });
  18636. }, fe = (re, q) => {
  18637. var K;
  18638. if (f(re), B(null), q.source === "submit") {
  18639. const de = (re || "").trim();
  18640. if (de) {
  18641. const xe = Array.from(/* @__PURE__ */ new Set([...C.value, de]));
  18642. N(xe), j(de, !0), f("");
  18643. }
  18644. return;
  18645. }
  18646. q.source !== "blur" && (t.mode === "combobox" && N(re), (K = t.onSearch) === null || K === void 0 || K.call(t, re));
  18647. }, ue = (re) => {
  18648. let q = re;
  18649. t.mode !== "tags" && (q = re.map((de) => {
  18650. const xe = p.value.get(de);
  18651. return xe == null ? void 0 : xe.value;
  18652. }).filter((de) => de !== void 0));
  18653. const K = Array.from(/* @__PURE__ */ new Set([...C.value, ...q]));
  18654. N(K), K.forEach((de) => {
  18655. j(de, !0);
  18656. });
  18657. }, ye = V(() => t.virtual !== !1 && t.dropdownMatchSelectWidth !== !1);
  18658. p8e(tie(k(k({}, d), {
  18659. flattenOptions: R,
  18660. onActiveValue: U,
  18661. defaultActiveFirstOption: H,
  18662. onSelect: Y,
  18663. menuItemSelectedIcon: Lr(t, "menuItemSelectedIcon"),
  18664. rawValues: C,
  18665. fieldNames: u,
  18666. virtual: ye,
  18667. listHeight: Lr(t, "listHeight"),
  18668. listItemHeight: Lr(t, "listItemHeight"),
  18669. childrenAsData: s
  18670. }))), process.env.NODE_ENV !== "production" && Vt(() => {
  18671. C8e(t);
  18672. }, {
  18673. flush: "post"
  18674. });
  18675. const se = ee();
  18676. n({
  18677. focus() {
  18678. var re;
  18679. (re = se.value) === null || re === void 0 || re.focus();
  18680. },
  18681. blur() {
  18682. var re;
  18683. (re = se.value) === null || re === void 0 || re.blur();
  18684. },
  18685. scrollTo(re) {
  18686. var q;
  18687. (q = se.value) === null || q === void 0 || q.scrollTo(re);
  18688. }
  18689. });
  18690. const he = V(() => si(t, [
  18691. "id",
  18692. "mode",
  18693. "prefixCls",
  18694. "backfill",
  18695. "fieldNames",
  18696. // Search
  18697. "inputValue",
  18698. "searchValue",
  18699. "onSearch",
  18700. "autoClearSearchValue",
  18701. // Select
  18702. "onSelect",
  18703. "onDeselect",
  18704. "dropdownMatchSelectWidth",
  18705. // Options
  18706. "filterOption",
  18707. "filterSort",
  18708. "optionFilterProp",
  18709. "optionLabelProp",
  18710. "options",
  18711. "children",
  18712. "defaultActiveFirstOption",
  18713. "menuItemSelectedIcon",
  18714. "virtual",
  18715. "listHeight",
  18716. "listItemHeight",
  18717. // Value
  18718. "value",
  18719. "defaultValue",
  18720. "labelInValue",
  18721. "onChange"
  18722. ]));
  18723. return () => D(KNe, te(te(te({}, he.value), r), {}, {
  18724. id: a,
  18725. prefixCls: t.prefixCls,
  18726. ref: se,
  18727. omitDomProps: $8e,
  18728. mode: t.mode,
  18729. displayValues: x.value,
  18730. onDisplayValuesChange: ne,
  18731. searchValue: c.value,
  18732. onSearch: fe,
  18733. onSearchSplit: ue,
  18734. dropdownMatchSelectWidth: t.dropdownMatchSelectWidth,
  18735. OptionList: m8e,
  18736. emptyOptions: !R.value.length,
  18737. activeValue: I.value,
  18738. activeDescendantId: `${a}_list_${Q.value}`
  18739. }), i);
  18740. }
  18741. }), l8 = () => null;
  18742. l8.isSelectOption = !0;
  18743. l8.displayName = "ASelectOption";
  18744. const u8 = () => null;
  18745. u8.isSelectOptGroup = !0;
  18746. u8.displayName = "ASelectOptGroup";
  18747. var M8e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, I8e = Symbol("iconContext"), sie = function() {
  18748. return et(I8e, {
  18749. prefixCls: ee("anticon"),
  18750. rootClassName: ee(""),
  18751. csp: ee()
  18752. });
  18753. };
  18754. function c8() {
  18755. return !!(typeof window < "u" && window.document && window.document.createElement);
  18756. }
  18757. function D8e(t, e) {
  18758. return t && t.contains ? t.contains(e) : !1;
  18759. }
  18760. var G7 = "data-vc-order", R8e = "vc-icon-key", $R = /* @__PURE__ */ new Map();
  18761. function lie() {
  18762. var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.mark;
  18763. return e ? e.startsWith("data-") ? e : "data-".concat(e) : R8e;
  18764. }
  18765. function f8(t) {
  18766. if (t.attachTo)
  18767. return t.attachTo;
  18768. var e = document.querySelector("head");
  18769. return e || document.body;
  18770. }
  18771. function k8e(t) {
  18772. return t === "queue" ? "prependQueue" : t ? "prepend" : "append";
  18773. }
  18774. function uie(t) {
  18775. return Array.from(($R.get(t) || t).children).filter(function(e) {
  18776. return e.tagName === "STYLE";
  18777. });
  18778. }
  18779. function cie(t) {
  18780. var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  18781. if (!c8())
  18782. return null;
  18783. var n = e.csp, r = e.prepend, i = document.createElement("style");
  18784. i.setAttribute(G7, k8e(r)), n && n.nonce && (i.nonce = n.nonce), i.innerHTML = t;
  18785. var a = f8(e), o = a.firstChild;
  18786. if (r) {
  18787. if (r === "queue") {
  18788. var s = uie(a).filter(function(l) {
  18789. return ["prepend", "prependQueue"].includes(l.getAttribute(G7));
  18790. });
  18791. if (s.length)
  18792. return a.insertBefore(i, s[s.length - 1].nextSibling), i;
  18793. }
  18794. a.insertBefore(i, o);
  18795. } else
  18796. a.appendChild(i);
  18797. return i;
  18798. }
  18799. function L8e(t) {
  18800. var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = f8(e);
  18801. return uie(n).find(function(r) {
  18802. return r.getAttribute(lie(e)) === t;
  18803. });
  18804. }
  18805. function N8e(t, e) {
  18806. var n = $R.get(t);
  18807. if (!n || !D8e(document, n)) {
  18808. var r = cie("", e), i = r.parentNode;
  18809. $R.set(t, i), t.removeChild(r);
  18810. }
  18811. }
  18812. function B8e(t, e) {
  18813. var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = f8(n);
  18814. N8e(r, n);
  18815. var i = L8e(e, n);
  18816. if (i)
  18817. return n.csp && n.csp.nonce && i.nonce !== n.csp.nonce && (i.nonce = n.csp.nonce), i.innerHTML !== t && (i.innerHTML = t), i;
  18818. var a = cie(t, n);
  18819. return a.setAttribute(lie(n), e), a;
  18820. }
  18821. function j7(t) {
  18822. for (var e = 1; e < arguments.length; e++) {
  18823. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  18824. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  18825. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  18826. }))), r.forEach(function(i) {
  18827. z8e(t, i, n[i]);
  18828. });
  18829. }
  18830. return t;
  18831. }
  18832. function z8e(t, e, n) {
  18833. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  18834. }
  18835. function V8e(t, e) {
  18836. process.env.NODE_ENV !== "production" && !t && console !== void 0 && console.error("Warning: ".concat(e));
  18837. }
  18838. function F8e(t, e) {
  18839. V8e(t, "[@ant-design/icons-vue] ".concat(e));
  18840. }
  18841. function Z7(t) {
  18842. return typeof t == "object" && typeof t.name == "string" && typeof t.theme == "string" && (typeof t.icon == "object" || typeof t.icon == "function");
  18843. }
  18844. function AR(t, e, n) {
  18845. return n ? ff(t.tag, j7({
  18846. key: e
  18847. }, n, t.attrs), (t.children || []).map(function(r, i) {
  18848. return AR(r, "".concat(e, "-").concat(t.tag, "-").concat(i));
  18849. })) : ff(t.tag, j7({
  18850. key: e
  18851. }, t.attrs), (t.children || []).map(function(r, i) {
  18852. return AR(r, "".concat(e, "-").concat(t.tag, "-").concat(i));
  18853. }));
  18854. }
  18855. function fie(t) {
  18856. return Bh(t)[0];
  18857. }
  18858. function die(t) {
  18859. return t ? Array.isArray(t) ? t : [t] : [];
  18860. }
  18861. var W8e = `
  18862. .anticon {
  18863. display: inline-block;
  18864. color: inherit;
  18865. font-style: normal;
  18866. line-height: 0;
  18867. text-align: center;
  18868. text-transform: none;
  18869. vertical-align: -0.125em;
  18870. text-rendering: optimizeLegibility;
  18871. -webkit-font-smoothing: antialiased;
  18872. -moz-osx-font-smoothing: grayscale;
  18873. }
  18874. .anticon > * {
  18875. line-height: 1;
  18876. }
  18877. .anticon svg {
  18878. display: inline-block;
  18879. }
  18880. .anticon::before {
  18881. display: none;
  18882. }
  18883. .anticon .anticon-icon {
  18884. display: block;
  18885. }
  18886. .anticon[tabindex] {
  18887. cursor: pointer;
  18888. }
  18889. .anticon-spin::before,
  18890. .anticon-spin {
  18891. display: inline-block;
  18892. -webkit-animation: loadingCircle 1s infinite linear;
  18893. animation: loadingCircle 1s infinite linear;
  18894. }
  18895. @-webkit-keyframes loadingCircle {
  18896. 100% {
  18897. -webkit-transform: rotate(360deg);
  18898. transform: rotate(360deg);
  18899. }
  18900. }
  18901. @keyframes loadingCircle {
  18902. 100% {
  18903. -webkit-transform: rotate(360deg);
  18904. transform: rotate(360deg);
  18905. }
  18906. }
  18907. `;
  18908. function hie(t) {
  18909. return t && t.getRootNode && t.getRootNode();
  18910. }
  18911. function Q8e(t) {
  18912. return c8() ? hie(t) instanceof ShadowRoot : !1;
  18913. }
  18914. function H8e(t) {
  18915. return Q8e(t) ? hie(t) : null;
  18916. }
  18917. var G8e = function() {
  18918. var e = sie(), n = e.prefixCls, r = e.csp, i = In(), a = W8e;
  18919. n && (a = a.replace(/anticon/g, n.value)), Bt(function() {
  18920. if (c8()) {
  18921. var o = i.vnode.el, s = H8e(o);
  18922. B8e(a, "@ant-design-vue-icons", {
  18923. prepend: !0,
  18924. csp: r.value,
  18925. attachTo: s
  18926. });
  18927. }
  18928. });
  18929. }, j8e = ["icon", "primaryColor", "secondaryColor"];
  18930. function Z8e(t, e) {
  18931. if (t == null) return {};
  18932. var n = U8e(t, e), r, i;
  18933. if (Object.getOwnPropertySymbols) {
  18934. var a = Object.getOwnPropertySymbols(t);
  18935. for (i = 0; i < a.length; i++)
  18936. r = a[i], !(e.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
  18937. }
  18938. return n;
  18939. }
  18940. function U8e(t, e) {
  18941. if (t == null) return {};
  18942. var n = {}, r = Object.keys(t), i, a;
  18943. for (a = 0; a < r.length; a++)
  18944. i = r[a], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
  18945. return n;
  18946. }
  18947. function qx(t) {
  18948. for (var e = 1; e < arguments.length; e++) {
  18949. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  18950. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  18951. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  18952. }))), r.forEach(function(i) {
  18953. X8e(t, i, n[i]);
  18954. });
  18955. }
  18956. return t;
  18957. }
  18958. function X8e(t, e, n) {
  18959. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  18960. }
  18961. var Fy = zn({
  18962. primaryColor: "#333",
  18963. secondaryColor: "#E6E6E6",
  18964. calculated: !1
  18965. });
  18966. function Y8e(t) {
  18967. var e = t.primaryColor, n = t.secondaryColor;
  18968. Fy.primaryColor = e, Fy.secondaryColor = n || fie(e), Fy.calculated = !!n;
  18969. }
  18970. function q8e() {
  18971. return qx({}, Fy);
  18972. }
  18973. var If = function(e, n) {
  18974. var r = qx({}, e, n.attrs), i = r.icon, a = r.primaryColor, o = r.secondaryColor, s = Z8e(r, j8e), l = Fy;
  18975. if (a && (l = {
  18976. primaryColor: a,
  18977. secondaryColor: o || fie(a)
  18978. }), F8e(Z7(i), "icon should be icon definiton, but got ".concat(i)), !Z7(i))
  18979. return null;
  18980. var u = i;
  18981. return u && typeof u.icon == "function" && (u = qx({}, u, {
  18982. icon: u.icon(l.primaryColor, l.secondaryColor)
  18983. })), AR(u.icon, "svg-".concat(u.name), qx({}, s, {
  18984. "data-icon": u.name,
  18985. width: "1em",
  18986. height: "1em",
  18987. fill: "currentColor",
  18988. "aria-hidden": "true"
  18989. }));
  18990. };
  18991. If.props = {
  18992. icon: Object,
  18993. primaryColor: String,
  18994. secondaryColor: String,
  18995. focusable: String
  18996. };
  18997. If.inheritAttrs = !1;
  18998. If.displayName = "IconBase";
  18999. If.getTwoToneColors = q8e;
  19000. If.setTwoToneColors = Y8e;
  19001. function K8e(t, e) {
  19002. return n5e(t) || t5e(t, e) || e5e(t, e) || J8e();
  19003. }
  19004. function J8e() {
  19005. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  19006. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  19007. }
  19008. function e5e(t, e) {
  19009. if (t) {
  19010. if (typeof t == "string") return U7(t, e);
  19011. var n = Object.prototype.toString.call(t).slice(8, -1);
  19012. if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
  19013. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return U7(t, e);
  19014. }
  19015. }
  19016. function U7(t, e) {
  19017. (e == null || e > t.length) && (e = t.length);
  19018. for (var n = 0, r = new Array(e); n < e; n++)
  19019. r[n] = t[n];
  19020. return r;
  19021. }
  19022. function t5e(t, e) {
  19023. var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
  19024. if (n != null) {
  19025. var r = [], i = !0, a = !1, o, s;
  19026. try {
  19027. for (n = n.call(t); !(i = (o = n.next()).done) && (r.push(o.value), !(e && r.length === e)); i = !0)
  19028. ;
  19029. } catch (l) {
  19030. a = !0, s = l;
  19031. } finally {
  19032. try {
  19033. !i && n.return != null && n.return();
  19034. } finally {
  19035. if (a) throw s;
  19036. }
  19037. }
  19038. return r;
  19039. }
  19040. }
  19041. function n5e(t) {
  19042. if (Array.isArray(t)) return t;
  19043. }
  19044. function pie(t) {
  19045. var e = die(t), n = K8e(e, 2), r = n[0], i = n[1];
  19046. return If.setTwoToneColors({
  19047. primaryColor: r,
  19048. secondaryColor: i
  19049. });
  19050. }
  19051. function r5e() {
  19052. var t = If.getTwoToneColors();
  19053. return t.calculated ? [t.primaryColor, t.secondaryColor] : t.primaryColor;
  19054. }
  19055. var i5e = ae({
  19056. name: "InsertStyles",
  19057. setup: function() {
  19058. return G8e(), function() {
  19059. return null;
  19060. };
  19061. }
  19062. }), a5e = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
  19063. function o5e(t, e) {
  19064. return c5e(t) || u5e(t, e) || l5e(t, e) || s5e();
  19065. }
  19066. function s5e() {
  19067. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  19068. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  19069. }
  19070. function l5e(t, e) {
  19071. if (t) {
  19072. if (typeof t == "string") return X7(t, e);
  19073. var n = Object.prototype.toString.call(t).slice(8, -1);
  19074. if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
  19075. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return X7(t, e);
  19076. }
  19077. }
  19078. function X7(t, e) {
  19079. (e == null || e > t.length) && (e = t.length);
  19080. for (var n = 0, r = new Array(e); n < e; n++)
  19081. r[n] = t[n];
  19082. return r;
  19083. }
  19084. function u5e(t, e) {
  19085. var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
  19086. if (n != null) {
  19087. var r = [], i = !0, a = !1, o, s;
  19088. try {
  19089. for (n = n.call(t); !(i = (o = n.next()).done) && (r.push(o.value), !(e && r.length === e)); i = !0)
  19090. ;
  19091. } catch (l) {
  19092. a = !0, s = l;
  19093. } finally {
  19094. try {
  19095. !i && n.return != null && n.return();
  19096. } finally {
  19097. if (a) throw s;
  19098. }
  19099. }
  19100. return r;
  19101. }
  19102. }
  19103. function c5e(t) {
  19104. if (Array.isArray(t)) return t;
  19105. }
  19106. function Y7(t) {
  19107. for (var e = 1; e < arguments.length; e++) {
  19108. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19109. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19110. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19111. }))), r.forEach(function(i) {
  19112. dy(t, i, n[i]);
  19113. });
  19114. }
  19115. return t;
  19116. }
  19117. function dy(t, e, n) {
  19118. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19119. }
  19120. function f5e(t, e) {
  19121. if (t == null) return {};
  19122. var n = d5e(t, e), r, i;
  19123. if (Object.getOwnPropertySymbols) {
  19124. var a = Object.getOwnPropertySymbols(t);
  19125. for (i = 0; i < a.length; i++)
  19126. r = a[i], !(e.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
  19127. }
  19128. return n;
  19129. }
  19130. function d5e(t, e) {
  19131. if (t == null) return {};
  19132. var n = {}, r = Object.keys(t), i, a;
  19133. for (a = 0; a < r.length; a++)
  19134. i = r[a], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
  19135. return n;
  19136. }
  19137. pie(OLe.primary);
  19138. var Rt = function(e, n) {
  19139. var r, i = Y7({}, e, n.attrs), a = i.class, o = i.icon, s = i.spin, l = i.rotate, u = i.tabindex, c = i.twoToneColor, f = i.onClick, d = f5e(i, a5e), h = sie(), p = h.prefixCls, v = h.rootClassName, g = (r = {}, dy(r, v.value, !!v.value), dy(r, p.value, !0), dy(r, "".concat(p.value, "-").concat(o.name), !!o.name), dy(r, "".concat(p.value, "-spin"), !!s || o.name === "loading"), r), m = u;
  19140. m === void 0 && f && (m = -1);
  19141. var y = l ? {
  19142. msTransform: "rotate(".concat(l, "deg)"),
  19143. transform: "rotate(".concat(l, "deg)")
  19144. } : void 0, _ = die(c), O = o5e(_, 2), S = O[0], x = O[1];
  19145. return D("span", Y7({
  19146. role: "img",
  19147. "aria-label": o.name
  19148. }, d, {
  19149. onClick: f,
  19150. class: [g, a],
  19151. tabindex: m
  19152. }), [D(If, {
  19153. icon: o,
  19154. primaryColor: S,
  19155. secondaryColor: x,
  19156. style: y
  19157. }, null), D(i5e, null, null)]);
  19158. };
  19159. Rt.props = {
  19160. spin: Boolean,
  19161. rotate: Number,
  19162. icon: Object,
  19163. twoToneColor: [String, Array]
  19164. };
  19165. Rt.displayName = "AntdIcon";
  19166. Rt.inheritAttrs = !1;
  19167. Rt.getTwoToneColor = r5e;
  19168. Rt.setTwoToneColor = pie;
  19169. function q7(t) {
  19170. for (var e = 1; e < arguments.length; e++) {
  19171. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19172. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19173. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19174. }))), r.forEach(function(i) {
  19175. h5e(t, i, n[i]);
  19176. });
  19177. }
  19178. return t;
  19179. }
  19180. function h5e(t, e, n) {
  19181. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19182. }
  19183. var D2 = function(e, n) {
  19184. var r = q7({}, e, n.attrs);
  19185. return D(Rt, q7({}, r, {
  19186. icon: M8e
  19187. }), null);
  19188. };
  19189. D2.displayName = "DownOutlined";
  19190. D2.inheritAttrs = !1;
  19191. var p5e = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
  19192. function K7(t) {
  19193. for (var e = 1; e < arguments.length; e++) {
  19194. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19195. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19196. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19197. }))), r.forEach(function(i) {
  19198. v5e(t, i, n[i]);
  19199. });
  19200. }
  19201. return t;
  19202. }
  19203. function v5e(t, e, n) {
  19204. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19205. }
  19206. var Ql = function(e, n) {
  19207. var r = K7({}, e, n.attrs);
  19208. return D(Rt, K7({}, r, {
  19209. icon: p5e
  19210. }), null);
  19211. };
  19212. Ql.displayName = "LoadingOutlined";
  19213. Ql.inheritAttrs = !1;
  19214. var g5e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" };
  19215. function J7(t) {
  19216. for (var e = 1; e < arguments.length; e++) {
  19217. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19218. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19219. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19220. }))), r.forEach(function(i) {
  19221. m5e(t, i, n[i]);
  19222. });
  19223. }
  19224. return t;
  19225. }
  19226. function m5e(t, e, n) {
  19227. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19228. }
  19229. var d8 = function(e, n) {
  19230. var r = J7({}, e, n.attrs);
  19231. return D(Rt, J7({}, r, {
  19232. icon: g5e
  19233. }), null);
  19234. };
  19235. d8.displayName = "CheckOutlined";
  19236. d8.inheritAttrs = !1;
  19237. var y5e = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" };
  19238. function eQ(t) {
  19239. for (var e = 1; e < arguments.length; e++) {
  19240. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19241. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19242. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19243. }))), r.forEach(function(i) {
  19244. b5e(t, i, n[i]);
  19245. });
  19246. }
  19247. return t;
  19248. }
  19249. function b5e(t, e, n) {
  19250. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19251. }
  19252. var tc = function(e, n) {
  19253. var r = eQ({}, e, n.attrs);
  19254. return D(Rt, eQ({}, r, {
  19255. icon: y5e
  19256. }), null);
  19257. };
  19258. tc.displayName = "CloseOutlined";
  19259. tc.inheritAttrs = !1;
  19260. var _5e = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
  19261. function tQ(t) {
  19262. for (var e = 1; e < arguments.length; e++) {
  19263. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19264. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19265. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19266. }))), r.forEach(function(i) {
  19267. O5e(t, i, n[i]);
  19268. });
  19269. }
  19270. return t;
  19271. }
  19272. function O5e(t, e, n) {
  19273. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19274. }
  19275. var cs = function(e, n) {
  19276. var r = tQ({}, e, n.attrs);
  19277. return D(Rt, tQ({}, r, {
  19278. icon: _5e
  19279. }), null);
  19280. };
  19281. cs.displayName = "CloseCircleFilled";
  19282. cs.inheritAttrs = !1;
  19283. var S5e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" };
  19284. function nQ(t) {
  19285. for (var e = 1; e < arguments.length; e++) {
  19286. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  19287. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  19288. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  19289. }))), r.forEach(function(i) {
  19290. x5e(t, i, n[i]);
  19291. });
  19292. }
  19293. return t;
  19294. }
  19295. function x5e(t, e, n) {
  19296. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  19297. }
  19298. var R2 = function(e, n) {
  19299. var r = nQ({}, e, n.attrs);
  19300. return D(Rt, nQ({}, r, {
  19301. icon: S5e
  19302. }), null);
  19303. };
  19304. R2.displayName = "SearchOutlined";
  19305. R2.inheritAttrs = !1;
  19306. function w5e(t) {
  19307. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  19308. const {
  19309. loading: n,
  19310. multiple: r,
  19311. prefixCls: i,
  19312. hasFeedback: a,
  19313. feedbackIcon: o,
  19314. showArrow: s
  19315. } = t, l = t.suffixIcon || e.suffixIcon && e.suffixIcon(), u = t.clearIcon || e.clearIcon && e.clearIcon(), c = t.menuItemSelectedIcon || e.menuItemSelectedIcon && e.menuItemSelectedIcon(), f = t.removeIcon || e.removeIcon && e.removeIcon(), d = u ?? D(cs, null, null), h = (m) => D(Wt, null, [s !== !1 && m, a && o]);
  19316. let p = null;
  19317. if (l !== void 0)
  19318. p = h(l);
  19319. else if (n)
  19320. p = h(D(Ql, {
  19321. spin: !0
  19322. }, null));
  19323. else {
  19324. const m = `${i}-suffix`;
  19325. p = (y) => {
  19326. let {
  19327. open: _,
  19328. showSearch: O
  19329. } = y;
  19330. return h(_ && O ? D(R2, {
  19331. class: m
  19332. }, null) : D(D2, {
  19333. class: m
  19334. }, null));
  19335. };
  19336. }
  19337. let v = null;
  19338. c !== void 0 ? v = c : r ? v = D(d8, null, null) : v = null;
  19339. let g = null;
  19340. return f !== void 0 ? g = f : g = D(tc, null, null), {
  19341. clearIcon: d,
  19342. suffixIcon: p,
  19343. itemIcon: v,
  19344. removeIcon: g
  19345. };
  19346. }
  19347. function h8(t) {
  19348. const e = Symbol("contextKey");
  19349. return {
  19350. useProvide: (i, a) => {
  19351. const o = zn({});
  19352. return Et(e, o), Vt(() => {
  19353. k(o, i, a || {});
  19354. }), o;
  19355. },
  19356. useInject: () => et(e, t) || {}
  19357. };
  19358. }
  19359. const tC = Symbol("ContextProps"), nC = Symbol("InternalContextProps"), C5e = function(t) {
  19360. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : V(() => !0);
  19361. const n = ee(/* @__PURE__ */ new Map()), r = (o, s) => {
  19362. n.value.set(o, s), n.value = new Map(n.value);
  19363. }, i = (o) => {
  19364. n.value.delete(o), n.value = new Map(n.value);
  19365. }, a = In();
  19366. me([e, n], () => {
  19367. if (process.env.NODE_ENV !== "production" && e.value && n.value.size > 1) {
  19368. lo(!1, "Form.Item", `FormItem can only collect one field item, you haved set ${[...n.value.values()].map((s) => `\`${s.name}\``).join(", ")} ${n.value.size} field items.
  19369. You can set not need to be collected fields into \`a-form-item-rest\``);
  19370. let o = a;
  19371. for (; o.parent; )
  19372. console.warn("at", o.type), o = o.parent;
  19373. }
  19374. }), Et(tC, t), Et(nC, {
  19375. addFormItemField: r,
  19376. removeFormItemField: i
  19377. });
  19378. }, ER = {
  19379. id: V(() => {
  19380. }),
  19381. onFieldBlur: () => {
  19382. },
  19383. onFieldChange: () => {
  19384. },
  19385. clearValidate: () => {
  19386. }
  19387. }, MR = {
  19388. addFormItemField: () => {
  19389. },
  19390. removeFormItemField: () => {
  19391. }
  19392. }, Ul = () => {
  19393. const t = et(nC, MR), e = Symbol("FormItemFieldKey"), n = In();
  19394. return t.addFormItemField(e, n.type), Qt(() => {
  19395. t.removeFormItemField(e);
  19396. }), Et(nC, MR), Et(tC, ER), et(tC, ER);
  19397. }, Lb = ae({
  19398. compatConfig: {
  19399. MODE: 3
  19400. },
  19401. name: "AFormItemRest",
  19402. setup(t, e) {
  19403. let {
  19404. slots: n
  19405. } = e;
  19406. return Et(nC, MR), Et(tC, ER), () => {
  19407. var r;
  19408. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  19409. };
  19410. }
  19411. }), Qs = h8({}), rC = ae({
  19412. name: "NoFormStatus",
  19413. setup(t, e) {
  19414. let {
  19415. slots: n
  19416. } = e;
  19417. return Qs.useProvide({}), () => {
  19418. var r;
  19419. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  19420. };
  19421. }
  19422. });
  19423. function Eu(t, e, n) {
  19424. return Re({
  19425. [`${t}-status-success`]: e === "success",
  19426. [`${t}-status-warning`]: e === "warning",
  19427. [`${t}-status-error`]: e === "error",
  19428. [`${t}-status-validating`]: e === "validating",
  19429. [`${t}-has-feedback`]: n
  19430. });
  19431. }
  19432. const U_ = (t, e) => e || t, T5e = (t) => {
  19433. const {
  19434. componentCls: e
  19435. } = t;
  19436. return {
  19437. [e]: {
  19438. display: "inline-flex",
  19439. "&-block": {
  19440. display: "flex",
  19441. width: "100%"
  19442. },
  19443. "&-vertical": {
  19444. flexDirection: "column"
  19445. }
  19446. }
  19447. };
  19448. }, P5e = (t) => {
  19449. const {
  19450. componentCls: e
  19451. } = t;
  19452. return {
  19453. [e]: {
  19454. display: "inline-flex",
  19455. "&-rtl": {
  19456. direction: "rtl"
  19457. },
  19458. "&-vertical": {
  19459. flexDirection: "column"
  19460. },
  19461. "&-align": {
  19462. flexDirection: "column",
  19463. "&-center": {
  19464. alignItems: "center"
  19465. },
  19466. "&-start": {
  19467. alignItems: "flex-start"
  19468. },
  19469. "&-end": {
  19470. alignItems: "flex-end"
  19471. },
  19472. "&-baseline": {
  19473. alignItems: "baseline"
  19474. }
  19475. },
  19476. [`${e}-item`]: {
  19477. "&:empty": {
  19478. display: "none"
  19479. }
  19480. }
  19481. }
  19482. };
  19483. }, $5e = pr("Space", (t) => [P5e(t), T5e(t)]), A5e = () => ({
  19484. compactSize: String,
  19485. compactDirection: oe.oneOf(pf("horizontal", "vertical")).def("horizontal"),
  19486. isFirstItem: Tt(),
  19487. isLastItem: Tt()
  19488. }), k2 = h8(null), L2 = (t, e) => {
  19489. const n = k2.useInject(), r = V(() => {
  19490. if (!n || vte(n)) return "";
  19491. const {
  19492. compactDirection: i,
  19493. isFirstItem: a,
  19494. isLastItem: o
  19495. } = n, s = i === "vertical" ? "-vertical-" : "-";
  19496. return Re({
  19497. [`${t.value}-compact${s}item`]: !0,
  19498. [`${t.value}-compact${s}first-item`]: a,
  19499. [`${t.value}-compact${s}last-item`]: o,
  19500. [`${t.value}-compact${s}item-rtl`]: e.value === "rtl"
  19501. });
  19502. });
  19503. return {
  19504. compactSize: V(() => n == null ? void 0 : n.compactSize),
  19505. compactDirection: V(() => n == null ? void 0 : n.compactDirection),
  19506. compactItemClassnames: r
  19507. };
  19508. }, iC = ae({
  19509. name: "NoCompactStyle",
  19510. setup(t, e) {
  19511. let {
  19512. slots: n
  19513. } = e;
  19514. return k2.useProvide(null), () => {
  19515. var r;
  19516. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  19517. };
  19518. }
  19519. }), E5e = () => ({
  19520. prefixCls: String,
  19521. size: {
  19522. type: String
  19523. },
  19524. direction: oe.oneOf(pf("horizontal", "vertical")).def("horizontal"),
  19525. align: oe.oneOf(pf("start", "end", "center", "baseline")),
  19526. block: {
  19527. type: Boolean,
  19528. default: void 0
  19529. }
  19530. }), M5e = ae({
  19531. name: "CompactItem",
  19532. props: A5e(),
  19533. setup(t, e) {
  19534. let {
  19535. slots: n
  19536. } = e;
  19537. return k2.useProvide(t), () => {
  19538. var r;
  19539. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  19540. };
  19541. }
  19542. });
  19543. ae({
  19544. name: "ASpaceCompact",
  19545. inheritAttrs: !1,
  19546. props: E5e(),
  19547. setup(t, e) {
  19548. let {
  19549. attrs: n,
  19550. slots: r
  19551. } = e;
  19552. const {
  19553. prefixCls: i,
  19554. direction: a
  19555. } = hn("space-compact", t), o = k2.useInject(), [s, l] = $5e(i), u = V(() => Re(i.value, l.value, {
  19556. [`${i.value}-rtl`]: a.value === "rtl",
  19557. [`${i.value}-block`]: t.block,
  19558. [`${i.value}-vertical`]: t.direction === "vertical"
  19559. }));
  19560. return () => {
  19561. var c;
  19562. const f = qr(((c = r.default) === null || c === void 0 ? void 0 : c.call(r)) || []);
  19563. return f.length === 0 ? null : s(D("div", te(te({}, n), {}, {
  19564. class: [u.value, n.class]
  19565. }), [f.map((d, h) => {
  19566. var p;
  19567. const v = d && d.key || `${i.value}-item-${h}`, g = !o || vte(o);
  19568. return D(M5e, {
  19569. key: v,
  19570. compactSize: (p = t.size) !== null && p !== void 0 ? p : "middle",
  19571. compactDirection: t.direction,
  19572. isFirstItem: h === 0 && (g || (o == null ? void 0 : o.isFirstItem)),
  19573. isLastItem: h === f.length - 1 && (g || (o == null ? void 0 : o.isLastItem))
  19574. }, {
  19575. default: () => [d]
  19576. });
  19577. })]));
  19578. };
  19579. }
  19580. });
  19581. const I5e = (t) => ({
  19582. animationDuration: t,
  19583. animationFillMode: "both"
  19584. }), D5e = (t) => ({
  19585. animationDuration: t,
  19586. animationFillMode: "both"
  19587. }), N2 = function(t, e, n, r) {
  19588. const a = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
  19589. return {
  19590. [`
  19591. ${a}${t}-enter,
  19592. ${a}${t}-appear
  19593. `]: k(k({}, I5e(r)), {
  19594. animationPlayState: "paused"
  19595. }),
  19596. [`${a}${t}-leave`]: k(k({}, D5e(r)), {
  19597. animationPlayState: "paused"
  19598. }),
  19599. [`
  19600. ${a}${t}-enter${t}-enter-active,
  19601. ${a}${t}-appear${t}-appear-active
  19602. `]: {
  19603. animationName: e,
  19604. animationPlayState: "running"
  19605. },
  19606. [`${a}${t}-leave${t}-leave-active`]: {
  19607. animationName: n,
  19608. animationPlayState: "running",
  19609. pointerEvents: "none"
  19610. }
  19611. };
  19612. }, R5e = new qt("antFadeIn", {
  19613. "0%": {
  19614. opacity: 0
  19615. },
  19616. "100%": {
  19617. opacity: 1
  19618. }
  19619. }), k5e = new qt("antFadeOut", {
  19620. "0%": {
  19621. opacity: 1
  19622. },
  19623. "100%": {
  19624. opacity: 0
  19625. }
  19626. }), vie = function(t) {
  19627. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  19628. const {
  19629. antCls: n
  19630. } = t, r = `${n}-fade`, i = e ? "&" : "";
  19631. return [N2(r, R5e, k5e, t.motionDurationMid, e), {
  19632. [`
  19633. ${i}${r}-enter,
  19634. ${i}${r}-appear
  19635. `]: {
  19636. opacity: 0,
  19637. animationTimingFunction: "linear"
  19638. },
  19639. [`${i}${r}-leave`]: {
  19640. animationTimingFunction: "linear"
  19641. }
  19642. }];
  19643. }, L5e = new qt("antMoveDownIn", {
  19644. "0%": {
  19645. transform: "translate3d(0, 100%, 0)",
  19646. transformOrigin: "0 0",
  19647. opacity: 0
  19648. },
  19649. "100%": {
  19650. transform: "translate3d(0, 0, 0)",
  19651. transformOrigin: "0 0",
  19652. opacity: 1
  19653. }
  19654. }), N5e = new qt("antMoveDownOut", {
  19655. "0%": {
  19656. transform: "translate3d(0, 0, 0)",
  19657. transformOrigin: "0 0",
  19658. opacity: 1
  19659. },
  19660. "100%": {
  19661. transform: "translate3d(0, 100%, 0)",
  19662. transformOrigin: "0 0",
  19663. opacity: 0
  19664. }
  19665. }), B5e = new qt("antMoveLeftIn", {
  19666. "0%": {
  19667. transform: "translate3d(-100%, 0, 0)",
  19668. transformOrigin: "0 0",
  19669. opacity: 0
  19670. },
  19671. "100%": {
  19672. transform: "translate3d(0, 0, 0)",
  19673. transformOrigin: "0 0",
  19674. opacity: 1
  19675. }
  19676. }), z5e = new qt("antMoveLeftOut", {
  19677. "0%": {
  19678. transform: "translate3d(0, 0, 0)",
  19679. transformOrigin: "0 0",
  19680. opacity: 1
  19681. },
  19682. "100%": {
  19683. transform: "translate3d(-100%, 0, 0)",
  19684. transformOrigin: "0 0",
  19685. opacity: 0
  19686. }
  19687. }), V5e = new qt("antMoveRightIn", {
  19688. "0%": {
  19689. transform: "translate3d(100%, 0, 0)",
  19690. transformOrigin: "0 0",
  19691. opacity: 0
  19692. },
  19693. "100%": {
  19694. transform: "translate3d(0, 0, 0)",
  19695. transformOrigin: "0 0",
  19696. opacity: 1
  19697. }
  19698. }), F5e = new qt("antMoveRightOut", {
  19699. "0%": {
  19700. transform: "translate3d(0, 0, 0)",
  19701. transformOrigin: "0 0",
  19702. opacity: 1
  19703. },
  19704. "100%": {
  19705. transform: "translate3d(100%, 0, 0)",
  19706. transformOrigin: "0 0",
  19707. opacity: 0
  19708. }
  19709. }), W5e = new qt("antMoveUpIn", {
  19710. "0%": {
  19711. transform: "translate3d(0, -100%, 0)",
  19712. transformOrigin: "0 0",
  19713. opacity: 0
  19714. },
  19715. "100%": {
  19716. transform: "translate3d(0, 0, 0)",
  19717. transformOrigin: "0 0",
  19718. opacity: 1
  19719. }
  19720. }), Q5e = new qt("antMoveUpOut", {
  19721. "0%": {
  19722. transform: "translate3d(0, 0, 0)",
  19723. transformOrigin: "0 0",
  19724. opacity: 1
  19725. },
  19726. "100%": {
  19727. transform: "translate3d(0, -100%, 0)",
  19728. transformOrigin: "0 0",
  19729. opacity: 0
  19730. }
  19731. }), H5e = {
  19732. "move-up": {
  19733. inKeyframes: W5e,
  19734. outKeyframes: Q5e
  19735. },
  19736. "move-down": {
  19737. inKeyframes: L5e,
  19738. outKeyframes: N5e
  19739. },
  19740. "move-left": {
  19741. inKeyframes: B5e,
  19742. outKeyframes: z5e
  19743. },
  19744. "move-right": {
  19745. inKeyframes: V5e,
  19746. outKeyframes: F5e
  19747. }
  19748. }, rQ = (t, e) => {
  19749. const {
  19750. antCls: n
  19751. } = t, r = `${n}-${e}`, {
  19752. inKeyframes: i,
  19753. outKeyframes: a
  19754. } = H5e[e];
  19755. return [N2(r, i, a, t.motionDurationMid), {
  19756. [`
  19757. ${r}-enter,
  19758. ${r}-appear
  19759. `]: {
  19760. opacity: 0,
  19761. animationTimingFunction: t.motionEaseOutCirc
  19762. },
  19763. [`${r}-leave`]: {
  19764. animationTimingFunction: t.motionEaseInOutCirc
  19765. }
  19766. }];
  19767. }, gie = new qt("antSlideUpIn", {
  19768. "0%": {
  19769. transform: "scaleY(0.8)",
  19770. transformOrigin: "0% 0%",
  19771. opacity: 0
  19772. },
  19773. "100%": {
  19774. transform: "scaleY(1)",
  19775. transformOrigin: "0% 0%",
  19776. opacity: 1
  19777. }
  19778. }), mie = new qt("antSlideUpOut", {
  19779. "0%": {
  19780. transform: "scaleY(1)",
  19781. transformOrigin: "0% 0%",
  19782. opacity: 1
  19783. },
  19784. "100%": {
  19785. transform: "scaleY(0.8)",
  19786. transformOrigin: "0% 0%",
  19787. opacity: 0
  19788. }
  19789. }), yie = new qt("antSlideDownIn", {
  19790. "0%": {
  19791. transform: "scaleY(0.8)",
  19792. transformOrigin: "100% 100%",
  19793. opacity: 0
  19794. },
  19795. "100%": {
  19796. transform: "scaleY(1)",
  19797. transformOrigin: "100% 100%",
  19798. opacity: 1
  19799. }
  19800. }), bie = new qt("antSlideDownOut", {
  19801. "0%": {
  19802. transform: "scaleY(1)",
  19803. transformOrigin: "100% 100%",
  19804. opacity: 1
  19805. },
  19806. "100%": {
  19807. transform: "scaleY(0.8)",
  19808. transformOrigin: "100% 100%",
  19809. opacity: 0
  19810. }
  19811. }), G5e = new qt("antSlideLeftIn", {
  19812. "0%": {
  19813. transform: "scaleX(0.8)",
  19814. transformOrigin: "0% 0%",
  19815. opacity: 0
  19816. },
  19817. "100%": {
  19818. transform: "scaleX(1)",
  19819. transformOrigin: "0% 0%",
  19820. opacity: 1
  19821. }
  19822. }), j5e = new qt("antSlideLeftOut", {
  19823. "0%": {
  19824. transform: "scaleX(1)",
  19825. transformOrigin: "0% 0%",
  19826. opacity: 1
  19827. },
  19828. "100%": {
  19829. transform: "scaleX(0.8)",
  19830. transformOrigin: "0% 0%",
  19831. opacity: 0
  19832. }
  19833. }), Z5e = new qt("antSlideRightIn", {
  19834. "0%": {
  19835. transform: "scaleX(0.8)",
  19836. transformOrigin: "100% 0%",
  19837. opacity: 0
  19838. },
  19839. "100%": {
  19840. transform: "scaleX(1)",
  19841. transformOrigin: "100% 0%",
  19842. opacity: 1
  19843. }
  19844. }), U5e = new qt("antSlideRightOut", {
  19845. "0%": {
  19846. transform: "scaleX(1)",
  19847. transformOrigin: "100% 0%",
  19848. opacity: 1
  19849. },
  19850. "100%": {
  19851. transform: "scaleX(0.8)",
  19852. transformOrigin: "100% 0%",
  19853. opacity: 0
  19854. }
  19855. }), X5e = {
  19856. "slide-up": {
  19857. inKeyframes: gie,
  19858. outKeyframes: mie
  19859. },
  19860. "slide-down": {
  19861. inKeyframes: yie,
  19862. outKeyframes: bie
  19863. },
  19864. "slide-left": {
  19865. inKeyframes: G5e,
  19866. outKeyframes: j5e
  19867. },
  19868. "slide-right": {
  19869. inKeyframes: Z5e,
  19870. outKeyframes: U5e
  19871. }
  19872. }, kg = (t, e) => {
  19873. const {
  19874. antCls: n
  19875. } = t, r = `${n}-${e}`, {
  19876. inKeyframes: i,
  19877. outKeyframes: a
  19878. } = X5e[e];
  19879. return [N2(r, i, a, t.motionDurationMid), {
  19880. [`
  19881. ${r}-enter,
  19882. ${r}-appear
  19883. `]: {
  19884. transform: "scale(0)",
  19885. transformOrigin: "0% 0%",
  19886. opacity: 0,
  19887. animationTimingFunction: t.motionEaseOutQuint
  19888. },
  19889. [`${r}-leave`]: {
  19890. animationTimingFunction: t.motionEaseInQuint
  19891. }
  19892. }];
  19893. }, p8 = new qt("antZoomIn", {
  19894. "0%": {
  19895. transform: "scale(0.2)",
  19896. opacity: 0
  19897. },
  19898. "100%": {
  19899. transform: "scale(1)",
  19900. opacity: 1
  19901. }
  19902. }), Y5e = new qt("antZoomOut", {
  19903. "0%": {
  19904. transform: "scale(1)"
  19905. },
  19906. "100%": {
  19907. transform: "scale(0.2)",
  19908. opacity: 0
  19909. }
  19910. }), iQ = new qt("antZoomBigIn", {
  19911. "0%": {
  19912. transform: "scale(0.8)",
  19913. opacity: 0
  19914. },
  19915. "100%": {
  19916. transform: "scale(1)",
  19917. opacity: 1
  19918. }
  19919. }), aQ = new qt("antZoomBigOut", {
  19920. "0%": {
  19921. transform: "scale(1)"
  19922. },
  19923. "100%": {
  19924. transform: "scale(0.8)",
  19925. opacity: 0
  19926. }
  19927. }), q5e = new qt("antZoomUpIn", {
  19928. "0%": {
  19929. transform: "scale(0.8)",
  19930. transformOrigin: "50% 0%",
  19931. opacity: 0
  19932. },
  19933. "100%": {
  19934. transform: "scale(1)",
  19935. transformOrigin: "50% 0%"
  19936. }
  19937. }), K5e = new qt("antZoomUpOut", {
  19938. "0%": {
  19939. transform: "scale(1)",
  19940. transformOrigin: "50% 0%"
  19941. },
  19942. "100%": {
  19943. transform: "scale(0.8)",
  19944. transformOrigin: "50% 0%",
  19945. opacity: 0
  19946. }
  19947. }), J5e = new qt("antZoomLeftIn", {
  19948. "0%": {
  19949. transform: "scale(0.8)",
  19950. transformOrigin: "0% 50%",
  19951. opacity: 0
  19952. },
  19953. "100%": {
  19954. transform: "scale(1)",
  19955. transformOrigin: "0% 50%"
  19956. }
  19957. }), e3e = new qt("antZoomLeftOut", {
  19958. "0%": {
  19959. transform: "scale(1)",
  19960. transformOrigin: "0% 50%"
  19961. },
  19962. "100%": {
  19963. transform: "scale(0.8)",
  19964. transformOrigin: "0% 50%",
  19965. opacity: 0
  19966. }
  19967. }), t3e = new qt("antZoomRightIn", {
  19968. "0%": {
  19969. transform: "scale(0.8)",
  19970. transformOrigin: "100% 50%",
  19971. opacity: 0
  19972. },
  19973. "100%": {
  19974. transform: "scale(1)",
  19975. transformOrigin: "100% 50%"
  19976. }
  19977. }), n3e = new qt("antZoomRightOut", {
  19978. "0%": {
  19979. transform: "scale(1)",
  19980. transformOrigin: "100% 50%"
  19981. },
  19982. "100%": {
  19983. transform: "scale(0.8)",
  19984. transformOrigin: "100% 50%",
  19985. opacity: 0
  19986. }
  19987. }), r3e = new qt("antZoomDownIn", {
  19988. "0%": {
  19989. transform: "scale(0.8)",
  19990. transformOrigin: "50% 100%",
  19991. opacity: 0
  19992. },
  19993. "100%": {
  19994. transform: "scale(1)",
  19995. transformOrigin: "50% 100%"
  19996. }
  19997. }), i3e = new qt("antZoomDownOut", {
  19998. "0%": {
  19999. transform: "scale(1)",
  20000. transformOrigin: "50% 100%"
  20001. },
  20002. "100%": {
  20003. transform: "scale(0.8)",
  20004. transformOrigin: "50% 100%",
  20005. opacity: 0
  20006. }
  20007. }), a3e = {
  20008. zoom: {
  20009. inKeyframes: p8,
  20010. outKeyframes: Y5e
  20011. },
  20012. "zoom-big": {
  20013. inKeyframes: iQ,
  20014. outKeyframes: aQ
  20015. },
  20016. "zoom-big-fast": {
  20017. inKeyframes: iQ,
  20018. outKeyframes: aQ
  20019. },
  20020. "zoom-left": {
  20021. inKeyframes: J5e,
  20022. outKeyframes: e3e
  20023. },
  20024. "zoom-right": {
  20025. inKeyframes: t3e,
  20026. outKeyframes: n3e
  20027. },
  20028. "zoom-up": {
  20029. inKeyframes: q5e,
  20030. outKeyframes: K5e
  20031. },
  20032. "zoom-down": {
  20033. inKeyframes: r3e,
  20034. outKeyframes: i3e
  20035. }
  20036. }, B2 = (t, e) => {
  20037. const {
  20038. antCls: n
  20039. } = t, r = `${n}-${e}`, {
  20040. inKeyframes: i,
  20041. outKeyframes: a
  20042. } = a3e[e];
  20043. return [N2(r, i, a, e === "zoom-big-fast" ? t.motionDurationFast : t.motionDurationMid), {
  20044. [`
  20045. ${r}-enter,
  20046. ${r}-appear
  20047. `]: {
  20048. transform: "scale(0)",
  20049. opacity: 0,
  20050. animationTimingFunction: t.motionEaseOutCirc,
  20051. "&-prepare": {
  20052. transform: "none"
  20053. }
  20054. },
  20055. [`${r}-leave`]: {
  20056. animationTimingFunction: t.motionEaseInOutCirc
  20057. }
  20058. }];
  20059. }, v8 = (t) => ({
  20060. [t.componentCls]: {
  20061. // For common/openAnimation
  20062. [`${t.antCls}-motion-collapse-legacy`]: {
  20063. overflow: "hidden",
  20064. "&-active": {
  20065. transition: `height ${t.motionDurationMid} ${t.motionEaseInOut},
  20066. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`
  20067. }
  20068. },
  20069. [`${t.antCls}-motion-collapse`]: {
  20070. overflow: "hidden",
  20071. transition: `height ${t.motionDurationMid} ${t.motionEaseInOut},
  20072. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`
  20073. }
  20074. }
  20075. }), oQ = (t) => {
  20076. const {
  20077. controlPaddingHorizontal: e
  20078. } = t;
  20079. return {
  20080. position: "relative",
  20081. display: "block",
  20082. minHeight: t.controlHeight,
  20083. padding: `${(t.controlHeight - t.fontSize * t.lineHeight) / 2}px ${e}px`,
  20084. color: t.colorText,
  20085. fontWeight: "normal",
  20086. fontSize: t.fontSize,
  20087. lineHeight: t.lineHeight,
  20088. boxSizing: "border-box"
  20089. };
  20090. }, o3e = (t) => {
  20091. const {
  20092. antCls: e,
  20093. componentCls: n
  20094. } = t, r = `${n}-item`;
  20095. return [
  20096. {
  20097. [`${n}-dropdown`]: k(k({}, Gn(t)), {
  20098. position: "absolute",
  20099. top: -9999,
  20100. zIndex: t.zIndexPopup,
  20101. boxSizing: "border-box",
  20102. padding: t.paddingXXS,
  20103. overflow: "hidden",
  20104. fontSize: t.fontSize,
  20105. // Fix select render lag of long text in chrome
  20106. // https://github.com/ant-design/ant-design/issues/11456
  20107. // https://github.com/ant-design/ant-design/issues/11843
  20108. fontVariant: "initial",
  20109. backgroundColor: t.colorBgElevated,
  20110. borderRadius: t.borderRadiusLG,
  20111. outline: "none",
  20112. boxShadow: t.boxShadowSecondary,
  20113. [`
  20114. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
  20115. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
  20116. `]: {
  20117. animationName: gie
  20118. },
  20119. [`
  20120. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft,
  20121. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft
  20122. `]: {
  20123. animationName: yie
  20124. },
  20125. [`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]: {
  20126. animationName: mie
  20127. },
  20128. [`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]: {
  20129. animationName: bie
  20130. },
  20131. "&-hidden": {
  20132. display: "none"
  20133. },
  20134. "&-empty": {
  20135. color: t.colorTextDisabled
  20136. },
  20137. // ========================= Options =========================
  20138. [`${r}-empty`]: k(k({}, oQ(t)), {
  20139. color: t.colorTextDisabled
  20140. }),
  20141. [`${r}`]: k(k({}, oQ(t)), {
  20142. cursor: "pointer",
  20143. transition: `background ${t.motionDurationSlow} ease`,
  20144. borderRadius: t.borderRadiusSM,
  20145. // =========== Group ============
  20146. "&-group": {
  20147. color: t.colorTextDescription,
  20148. fontSize: t.fontSizeSM,
  20149. cursor: "default"
  20150. },
  20151. // =========== Option ===========
  20152. "&-option": {
  20153. display: "flex",
  20154. "&-content": k({
  20155. flex: "auto"
  20156. }, Mg),
  20157. "&-state": {
  20158. flex: "none"
  20159. },
  20160. [`&-active:not(${r}-option-disabled)`]: {
  20161. backgroundColor: t.controlItemBgHover
  20162. },
  20163. [`&-selected:not(${r}-option-disabled)`]: {
  20164. color: t.colorText,
  20165. fontWeight: t.fontWeightStrong,
  20166. backgroundColor: t.controlItemBgActive,
  20167. [`${r}-option-state`]: {
  20168. color: t.colorPrimary
  20169. }
  20170. },
  20171. "&-disabled": {
  20172. [`&${r}-option-selected`]: {
  20173. backgroundColor: t.colorBgContainerDisabled
  20174. },
  20175. color: t.colorTextDisabled,
  20176. cursor: "not-allowed"
  20177. },
  20178. "&-grouped": {
  20179. paddingInlineStart: t.controlPaddingHorizontal * 2
  20180. }
  20181. }
  20182. }),
  20183. // =========================== RTL ===========================
  20184. "&-rtl": {
  20185. direction: "rtl"
  20186. }
  20187. })
  20188. },
  20189. // Follow code may reuse in other components
  20190. kg(t, "slide-up"),
  20191. kg(t, "slide-down"),
  20192. rQ(t, "move-up"),
  20193. rQ(t, "move-down")
  20194. ];
  20195. }, Wp = 2;
  20196. function _ie(t) {
  20197. let {
  20198. controlHeightSM: e,
  20199. controlHeight: n,
  20200. lineWidth: r
  20201. } = t;
  20202. const i = (n - e) / 2 - r, a = Math.ceil(i / 2);
  20203. return [i, a];
  20204. }
  20205. function lE(t, e) {
  20206. const {
  20207. componentCls: n,
  20208. iconCls: r
  20209. } = t, i = `${n}-selection-overflow`, a = t.controlHeightSM, [o] = _ie(t), s = e ? `${n}-${e}` : "";
  20210. return {
  20211. [`${n}-multiple${s}`]: {
  20212. fontSize: t.fontSize,
  20213. /**
  20214. * Do not merge `height` & `line-height` under style with `selection` & `search`, since chrome
  20215. * may update to redesign with its align logic.
  20216. */
  20217. // =========================== Overflow ===========================
  20218. [i]: {
  20219. position: "relative",
  20220. display: "flex",
  20221. flex: "auto",
  20222. flexWrap: "wrap",
  20223. maxWidth: "100%",
  20224. "&-item": {
  20225. flex: "none",
  20226. alignSelf: "center",
  20227. maxWidth: "100%",
  20228. display: "inline-flex"
  20229. }
  20230. },
  20231. // ========================= Selector =========================
  20232. [`${n}-selector`]: {
  20233. display: "flex",
  20234. flexWrap: "wrap",
  20235. alignItems: "center",
  20236. // Multiple is little different that horizontal is follow the vertical
  20237. padding: `${o - Wp}px ${Wp * 2}px`,
  20238. borderRadius: t.borderRadius,
  20239. [`${n}-show-search&`]: {
  20240. cursor: "text"
  20241. },
  20242. [`${n}-disabled&`]: {
  20243. background: t.colorBgContainerDisabled,
  20244. cursor: "not-allowed"
  20245. },
  20246. "&:after": {
  20247. display: "inline-block",
  20248. width: 0,
  20249. margin: `${Wp}px 0`,
  20250. lineHeight: `${a}px`,
  20251. content: '"\\a0"'
  20252. }
  20253. },
  20254. [`
  20255. &${n}-show-arrow ${n}-selector,
  20256. &${n}-allow-clear ${n}-selector
  20257. `]: {
  20258. paddingInlineEnd: t.fontSizeIcon + t.controlPaddingHorizontal
  20259. },
  20260. // ======================== Selections ========================
  20261. [`${n}-selection-item`]: {
  20262. position: "relative",
  20263. display: "flex",
  20264. flex: "none",
  20265. boxSizing: "border-box",
  20266. maxWidth: "100%",
  20267. height: a,
  20268. marginTop: Wp,
  20269. marginBottom: Wp,
  20270. lineHeight: `${a - t.lineWidth * 2}px`,
  20271. background: t.colorFillSecondary,
  20272. border: `${t.lineWidth}px solid ${t.colorSplit}`,
  20273. borderRadius: t.borderRadiusSM,
  20274. cursor: "default",
  20275. transition: `font-size ${t.motionDurationSlow}, line-height ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,
  20276. userSelect: "none",
  20277. marginInlineEnd: Wp * 2,
  20278. paddingInlineStart: t.paddingXS,
  20279. paddingInlineEnd: t.paddingXS / 2,
  20280. [`${n}-disabled&`]: {
  20281. color: t.colorTextDisabled,
  20282. borderColor: t.colorBorder,
  20283. cursor: "not-allowed"
  20284. },
  20285. // It's ok not to do this, but 24px makes bottom narrow in view should adjust
  20286. "&-content": {
  20287. display: "inline-block",
  20288. marginInlineEnd: t.paddingXS / 2,
  20289. overflow: "hidden",
  20290. whiteSpace: "pre",
  20291. textOverflow: "ellipsis"
  20292. },
  20293. "&-remove": k(k({}, hm()), {
  20294. display: "inline-block",
  20295. color: t.colorIcon,
  20296. fontWeight: "bold",
  20297. fontSize: 10,
  20298. lineHeight: "inherit",
  20299. cursor: "pointer",
  20300. [`> ${r}`]: {
  20301. verticalAlign: "-0.2em"
  20302. },
  20303. "&:hover": {
  20304. color: t.colorIconHover
  20305. }
  20306. })
  20307. },
  20308. // ========================== Input ==========================
  20309. [`${i}-item + ${i}-item`]: {
  20310. [`${n}-selection-search`]: {
  20311. marginInlineStart: 0
  20312. }
  20313. },
  20314. [`${n}-selection-search`]: {
  20315. display: "inline-flex",
  20316. position: "relative",
  20317. maxWidth: "100%",
  20318. marginInlineStart: t.inputPaddingHorizontalBase - o,
  20319. "\n &-input,\n &-mirror\n ": {
  20320. height: a,
  20321. fontFamily: t.fontFamily,
  20322. lineHeight: `${a}px`,
  20323. transition: `all ${t.motionDurationSlow}`
  20324. },
  20325. "&-input": {
  20326. width: "100%",
  20327. minWidth: 4.1
  20328. // fix search cursor missing
  20329. },
  20330. "&-mirror": {
  20331. position: "absolute",
  20332. top: 0,
  20333. insetInlineStart: 0,
  20334. insetInlineEnd: "auto",
  20335. zIndex: 999,
  20336. whiteSpace: "pre",
  20337. visibility: "hidden"
  20338. }
  20339. },
  20340. // ======================= Placeholder =======================
  20341. [`${n}-selection-placeholder `]: {
  20342. position: "absolute",
  20343. top: "50%",
  20344. insetInlineStart: t.inputPaddingHorizontalBase,
  20345. insetInlineEnd: t.inputPaddingHorizontalBase,
  20346. transform: "translateY(-50%)",
  20347. transition: `all ${t.motionDurationSlow}`
  20348. }
  20349. }
  20350. };
  20351. }
  20352. function s3e(t) {
  20353. const {
  20354. componentCls: e
  20355. } = t, n = bn(t, {
  20356. controlHeight: t.controlHeightSM,
  20357. controlHeightSM: t.controlHeightXS,
  20358. borderRadius: t.borderRadiusSM,
  20359. borderRadiusSM: t.borderRadiusXS
  20360. }), [, r] = _ie(t);
  20361. return [
  20362. lE(t),
  20363. // ======================== Small ========================
  20364. // Shared
  20365. lE(n, "sm"),
  20366. // Padding
  20367. {
  20368. [`${e}-multiple${e}-sm`]: {
  20369. [`${e}-selection-placeholder`]: {
  20370. insetInlineStart: t.controlPaddingHorizontalSM - t.lineWidth,
  20371. insetInlineEnd: "auto"
  20372. },
  20373. // https://github.com/ant-design/ant-design/issues/29559
  20374. [`${e}-selection-search`]: {
  20375. marginInlineStart: r
  20376. }
  20377. }
  20378. },
  20379. // ======================== Large ========================
  20380. // Shared
  20381. lE(bn(t, {
  20382. fontSize: t.fontSizeLG,
  20383. controlHeight: t.controlHeightLG,
  20384. controlHeightSM: t.controlHeight,
  20385. borderRadius: t.borderRadiusLG,
  20386. borderRadiusSM: t.borderRadius
  20387. }), "lg")
  20388. ];
  20389. }
  20390. function uE(t, e) {
  20391. const {
  20392. componentCls: n,
  20393. inputPaddingHorizontalBase: r,
  20394. borderRadius: i
  20395. } = t, a = t.controlHeight - t.lineWidth * 2, o = Math.ceil(t.fontSize * 1.25), s = e ? `${n}-${e}` : "";
  20396. return {
  20397. [`${n}-single${s}`]: {
  20398. fontSize: t.fontSize,
  20399. // ========================= Selector =========================
  20400. [`${n}-selector`]: k(k({}, Gn(t)), {
  20401. display: "flex",
  20402. borderRadius: i,
  20403. [`${n}-selection-search`]: {
  20404. position: "absolute",
  20405. top: 0,
  20406. insetInlineStart: r,
  20407. insetInlineEnd: r,
  20408. bottom: 0,
  20409. "&-input": {
  20410. width: "100%"
  20411. }
  20412. },
  20413. [`
  20414. ${n}-selection-item,
  20415. ${n}-selection-placeholder
  20416. `]: {
  20417. padding: 0,
  20418. lineHeight: `${a}px`,
  20419. transition: `all ${t.motionDurationSlow}`,
  20420. // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:
  20421. "@supports (-moz-appearance: meterbar)": {
  20422. lineHeight: `${a}px`
  20423. }
  20424. },
  20425. [`${n}-selection-item`]: {
  20426. position: "relative",
  20427. userSelect: "none"
  20428. },
  20429. [`${n}-selection-placeholder`]: {
  20430. transition: "none",
  20431. pointerEvents: "none"
  20432. },
  20433. // For common baseline align
  20434. [[
  20435. "&:after",
  20436. /* For '' value baseline align */
  20437. `${n}-selection-item:after`,
  20438. /* For undefined value baseline align */
  20439. `${n}-selection-placeholder:after`
  20440. ].join(",")]: {
  20441. display: "inline-block",
  20442. width: 0,
  20443. visibility: "hidden",
  20444. content: '"\\a0"'
  20445. }
  20446. }),
  20447. [`
  20448. &${n}-show-arrow ${n}-selection-item,
  20449. &${n}-show-arrow ${n}-selection-placeholder
  20450. `]: {
  20451. paddingInlineEnd: o
  20452. },
  20453. // Opacity selection if open
  20454. [`&${n}-open ${n}-selection-item`]: {
  20455. color: t.colorTextPlaceholder
  20456. },
  20457. // ========================== Input ==========================
  20458. // We only change the style of non-customize input which is only support by `combobox` mode.
  20459. // Not customize
  20460. [`&:not(${n}-customize-input)`]: {
  20461. [`${n}-selector`]: {
  20462. width: "100%",
  20463. height: t.controlHeight,
  20464. padding: `0 ${r}px`,
  20465. [`${n}-selection-search-input`]: {
  20466. height: a
  20467. },
  20468. "&:after": {
  20469. lineHeight: `${a}px`
  20470. }
  20471. }
  20472. },
  20473. [`&${n}-customize-input`]: {
  20474. [`${n}-selector`]: {
  20475. "&:after": {
  20476. display: "none"
  20477. },
  20478. [`${n}-selection-search`]: {
  20479. position: "static",
  20480. width: "100%"
  20481. },
  20482. [`${n}-selection-placeholder`]: {
  20483. position: "absolute",
  20484. insetInlineStart: 0,
  20485. insetInlineEnd: 0,
  20486. padding: `0 ${r}px`,
  20487. "&:after": {
  20488. display: "none"
  20489. }
  20490. }
  20491. }
  20492. }
  20493. }
  20494. };
  20495. }
  20496. function l3e(t) {
  20497. const {
  20498. componentCls: e
  20499. } = t, n = t.controlPaddingHorizontalSM - t.lineWidth;
  20500. return [
  20501. uE(t),
  20502. // ======================== Small ========================
  20503. // Shared
  20504. uE(bn(t, {
  20505. controlHeight: t.controlHeightSM,
  20506. borderRadius: t.borderRadiusSM
  20507. }), "sm"),
  20508. // padding
  20509. {
  20510. [`${e}-single${e}-sm`]: {
  20511. [`&:not(${e}-customize-input)`]: {
  20512. [`${e}-selection-search`]: {
  20513. insetInlineStart: n,
  20514. insetInlineEnd: n
  20515. },
  20516. [`${e}-selector`]: {
  20517. padding: `0 ${n}px`
  20518. },
  20519. // With arrow should provides `padding-right` to show the arrow
  20520. [`&${e}-show-arrow ${e}-selection-search`]: {
  20521. insetInlineEnd: n + t.fontSize * 1.5
  20522. },
  20523. [`
  20524. &${e}-show-arrow ${e}-selection-item,
  20525. &${e}-show-arrow ${e}-selection-placeholder
  20526. `]: {
  20527. paddingInlineEnd: t.fontSize * 1.5
  20528. }
  20529. }
  20530. }
  20531. },
  20532. // ======================== Large ========================
  20533. // Shared
  20534. uE(bn(t, {
  20535. controlHeight: t.controlHeightLG,
  20536. fontSize: t.fontSizeLG,
  20537. borderRadius: t.borderRadiusLG
  20538. }), "lg")
  20539. ];
  20540. }
  20541. function u3e(t, e, n) {
  20542. const {
  20543. focusElCls: r,
  20544. focus: i,
  20545. borderElCls: a
  20546. } = n, o = a ? "> *" : "", s = ["hover", i ? "focus" : null, "active"].filter(Boolean).map((l) => `&:${l} ${o}`).join(",");
  20547. return {
  20548. [`&-item:not(${e}-last-item)`]: {
  20549. marginInlineEnd: -t.lineWidth
  20550. },
  20551. "&-item": k(k({
  20552. [s]: {
  20553. zIndex: 2
  20554. }
  20555. }, r ? {
  20556. [`&${r}`]: {
  20557. zIndex: 2
  20558. }
  20559. } : {}), {
  20560. [`&[disabled] ${o}`]: {
  20561. zIndex: 0
  20562. }
  20563. })
  20564. };
  20565. }
  20566. function c3e(t, e, n) {
  20567. const {
  20568. borderElCls: r
  20569. } = n, i = r ? `> ${r}` : "";
  20570. return {
  20571. [`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]: {
  20572. borderRadius: 0
  20573. },
  20574. [`&-item:not(${e}-last-item)${e}-first-item`]: {
  20575. [`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]: {
  20576. borderStartEndRadius: 0,
  20577. borderEndEndRadius: 0
  20578. }
  20579. },
  20580. [`&-item:not(${e}-first-item)${e}-last-item`]: {
  20581. [`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]: {
  20582. borderStartStartRadius: 0,
  20583. borderEndStartRadius: 0
  20584. }
  20585. }
  20586. };
  20587. }
  20588. function z2(t) {
  20589. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
  20590. focus: !0
  20591. };
  20592. const {
  20593. componentCls: n
  20594. } = t, r = `${n}-compact`;
  20595. return {
  20596. [r]: k(k({}, u3e(t, r, e)), c3e(n, r, e))
  20597. };
  20598. }
  20599. const f3e = (t) => {
  20600. const {
  20601. componentCls: e
  20602. } = t;
  20603. return {
  20604. position: "relative",
  20605. backgroundColor: t.colorBgContainer,
  20606. border: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,
  20607. transition: `all ${t.motionDurationMid} ${t.motionEaseInOut}`,
  20608. input: {
  20609. cursor: "pointer"
  20610. },
  20611. [`${e}-show-search&`]: {
  20612. cursor: "text",
  20613. input: {
  20614. cursor: "auto",
  20615. color: "inherit"
  20616. }
  20617. },
  20618. [`${e}-disabled&`]: {
  20619. color: t.colorTextDisabled,
  20620. background: t.colorBgContainerDisabled,
  20621. cursor: "not-allowed",
  20622. [`${e}-multiple&`]: {
  20623. background: t.colorBgContainerDisabled
  20624. },
  20625. input: {
  20626. cursor: "not-allowed"
  20627. }
  20628. }
  20629. };
  20630. }, cE = function(t, e) {
  20631. let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
  20632. const {
  20633. componentCls: r,
  20634. borderHoverColor: i,
  20635. outlineColor: a,
  20636. antCls: o
  20637. } = e, s = n ? {
  20638. [`${r}-selector`]: {
  20639. borderColor: i
  20640. }
  20641. } : {};
  20642. return {
  20643. [t]: {
  20644. [`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]: k(k({}, s), {
  20645. [`${r}-focused& ${r}-selector`]: {
  20646. borderColor: i,
  20647. boxShadow: `0 0 0 ${e.controlOutlineWidth}px ${a}`,
  20648. borderInlineEndWidth: `${e.controlLineWidth}px !important`,
  20649. outline: 0
  20650. },
  20651. [`&:hover ${r}-selector`]: {
  20652. borderColor: i,
  20653. borderInlineEndWidth: `${e.controlLineWidth}px !important`
  20654. }
  20655. })
  20656. }
  20657. };
  20658. }, d3e = (t) => {
  20659. const {
  20660. componentCls: e
  20661. } = t;
  20662. return {
  20663. [`${e}-selection-search-input`]: {
  20664. margin: 0,
  20665. padding: 0,
  20666. background: "transparent",
  20667. border: "none",
  20668. outline: "none",
  20669. appearance: "none",
  20670. "&::-webkit-search-cancel-button": {
  20671. display: "none",
  20672. "-webkit-appearance": "none"
  20673. }
  20674. }
  20675. };
  20676. }, h3e = (t) => {
  20677. const {
  20678. componentCls: e,
  20679. inputPaddingHorizontalBase: n,
  20680. iconCls: r
  20681. } = t;
  20682. return {
  20683. [e]: k(k({}, Gn(t)), {
  20684. position: "relative",
  20685. display: "inline-block",
  20686. cursor: "pointer",
  20687. [`&:not(${e}-customize-input) ${e}-selector`]: k(k({}, f3e(t)), d3e(t)),
  20688. // [`&:not(&-disabled):hover ${selectCls}-selector`]: {
  20689. // ...genHoverStyle(token),
  20690. // },
  20691. // ======================== Selection ========================
  20692. [`${e}-selection-item`]: k({
  20693. flex: 1,
  20694. fontWeight: "normal"
  20695. }, Mg),
  20696. // ======================= Placeholder =======================
  20697. [`${e}-selection-placeholder`]: k(k({}, Mg), {
  20698. flex: 1,
  20699. color: t.colorTextPlaceholder,
  20700. pointerEvents: "none"
  20701. }),
  20702. // ========================== Arrow ==========================
  20703. [`${e}-arrow`]: k(k({}, hm()), {
  20704. position: "absolute",
  20705. top: "50%",
  20706. insetInlineStart: "auto",
  20707. insetInlineEnd: n,
  20708. height: t.fontSizeIcon,
  20709. marginTop: -t.fontSizeIcon / 2,
  20710. color: t.colorTextQuaternary,
  20711. fontSize: t.fontSizeIcon,
  20712. lineHeight: 1,
  20713. textAlign: "center",
  20714. pointerEvents: "none",
  20715. display: "flex",
  20716. alignItems: "center",
  20717. [r]: {
  20718. verticalAlign: "top",
  20719. transition: `transform ${t.motionDurationSlow}`,
  20720. "> svg": {
  20721. verticalAlign: "top"
  20722. },
  20723. [`&:not(${e}-suffix)`]: {
  20724. pointerEvents: "auto"
  20725. }
  20726. },
  20727. [`${e}-disabled &`]: {
  20728. cursor: "not-allowed"
  20729. },
  20730. "> *:not(:last-child)": {
  20731. marginInlineEnd: 8
  20732. // FIXME: magic
  20733. }
  20734. }),
  20735. // ========================== Clear ==========================
  20736. [`${e}-clear`]: {
  20737. position: "absolute",
  20738. top: "50%",
  20739. insetInlineStart: "auto",
  20740. insetInlineEnd: n,
  20741. zIndex: 1,
  20742. display: "inline-block",
  20743. width: t.fontSizeIcon,
  20744. height: t.fontSizeIcon,
  20745. marginTop: -t.fontSizeIcon / 2,
  20746. color: t.colorTextQuaternary,
  20747. fontSize: t.fontSizeIcon,
  20748. fontStyle: "normal",
  20749. lineHeight: 1,
  20750. textAlign: "center",
  20751. textTransform: "none",
  20752. background: t.colorBgContainer,
  20753. cursor: "pointer",
  20754. opacity: 0,
  20755. transition: `color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,
  20756. textRendering: "auto",
  20757. "&:before": {
  20758. display: "block"
  20759. },
  20760. "&:hover": {
  20761. color: t.colorTextTertiary
  20762. }
  20763. },
  20764. "&:hover": {
  20765. [`${e}-clear`]: {
  20766. opacity: 1
  20767. }
  20768. }
  20769. }),
  20770. // ========================= Feedback ==========================
  20771. [`${e}-has-feedback`]: {
  20772. [`${e}-clear`]: {
  20773. insetInlineEnd: n + t.fontSize + t.paddingXXS
  20774. }
  20775. }
  20776. };
  20777. }, p3e = (t) => {
  20778. const {
  20779. componentCls: e
  20780. } = t;
  20781. return [
  20782. {
  20783. [e]: {
  20784. // ==================== BorderLess ====================
  20785. [`&-borderless ${e}-selector`]: {
  20786. backgroundColor: "transparent !important",
  20787. borderColor: "transparent !important",
  20788. boxShadow: "none !important"
  20789. },
  20790. // ==================== In Form ====================
  20791. [`&${e}-in-form-item`]: {
  20792. width: "100%"
  20793. }
  20794. }
  20795. },
  20796. // =====================================================
  20797. // == LTR ==
  20798. // =====================================================
  20799. // Base
  20800. h3e(t),
  20801. // Single
  20802. l3e(t),
  20803. // Multiple
  20804. s3e(t),
  20805. // Dropdown
  20806. o3e(t),
  20807. // =====================================================
  20808. // == RTL ==
  20809. // =====================================================
  20810. {
  20811. [`${e}-rtl`]: {
  20812. direction: "rtl"
  20813. }
  20814. },
  20815. // =====================================================
  20816. // == Status ==
  20817. // =====================================================
  20818. cE(e, bn(t, {
  20819. borderHoverColor: t.colorPrimaryHover,
  20820. outlineColor: t.controlOutline
  20821. })),
  20822. cE(`${e}-status-error`, bn(t, {
  20823. borderHoverColor: t.colorErrorHover,
  20824. outlineColor: t.colorErrorOutline
  20825. }), !0),
  20826. cE(`${e}-status-warning`, bn(t, {
  20827. borderHoverColor: t.colorWarningHover,
  20828. outlineColor: t.colorWarningOutline
  20829. }), !0),
  20830. // =====================================================
  20831. // == Space Compact ==
  20832. // =====================================================
  20833. z2(t, {
  20834. borderElCls: `${e}-selector`,
  20835. focusElCls: `${e}-focused`
  20836. })
  20837. ];
  20838. }, v3e = pr("Select", (t, e) => {
  20839. let {
  20840. rootPrefixCls: n
  20841. } = e;
  20842. const r = bn(t, {
  20843. rootPrefixCls: n,
  20844. inputPaddingHorizontalBase: t.paddingSM - 1
  20845. });
  20846. return [p3e(r)];
  20847. }, (t) => ({
  20848. zIndexPopup: t.zIndexPopupBase + 50
  20849. })), g3e = () => k(k({}, si(oie(), ["inputIcon", "mode", "getInputElement", "getRawInputElement", "backfill"])), {
  20850. value: or([Array, Object, String, Number]),
  20851. defaultValue: or([Array, Object, String, Number]),
  20852. notFoundContent: oe.any,
  20853. suffixIcon: oe.any,
  20854. itemIcon: oe.any,
  20855. size: rr(),
  20856. mode: rr(),
  20857. bordered: Tt(!0),
  20858. transitionName: String,
  20859. choiceTransitionName: rr(""),
  20860. popupClassName: String,
  20861. /** @deprecated Please use `popupClassName` instead */
  20862. dropdownClassName: String,
  20863. placement: rr(),
  20864. status: rr(),
  20865. "onUpdate:value": Ct()
  20866. }), sQ = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Ca = ae({
  20867. compatConfig: {
  20868. MODE: 3
  20869. },
  20870. name: "ASelect",
  20871. Option: l8,
  20872. OptGroup: u8,
  20873. inheritAttrs: !1,
  20874. props: li(g3e(), {
  20875. listHeight: 256,
  20876. listItemHeight: 24
  20877. }),
  20878. SECRET_COMBOBOX_MODE_DO_NOT_USE: sQ,
  20879. slots: Object,
  20880. setup(t, e) {
  20881. let {
  20882. attrs: n,
  20883. emit: r,
  20884. slots: i,
  20885. expose: a
  20886. } = e;
  20887. const o = ee(), s = Ul(), l = Qs.useInject(), u = V(() => U_(l.status, t.status)), c = () => {
  20888. var Y;
  20889. (Y = o.value) === null || Y === void 0 || Y.focus();
  20890. }, f = () => {
  20891. var Y;
  20892. (Y = o.value) === null || Y === void 0 || Y.blur();
  20893. }, d = (Y) => {
  20894. var ne;
  20895. (ne = o.value) === null || ne === void 0 || ne.scrollTo(Y);
  20896. }, h = V(() => {
  20897. const {
  20898. mode: Y
  20899. } = t;
  20900. if (Y !== "combobox")
  20901. return Y === sQ ? "combobox" : Y;
  20902. });
  20903. process.env.NODE_ENV !== "production" && lo(!t.dropdownClassName, "Select", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
  20904. const {
  20905. prefixCls: p,
  20906. direction: v,
  20907. configProvider: g,
  20908. renderEmpty: m,
  20909. size: y,
  20910. getPrefixCls: _,
  20911. getPopupContainer: O,
  20912. disabled: S,
  20913. select: x
  20914. } = hn("select", t), {
  20915. compactSize: C,
  20916. compactItemClassnames: P
  20917. } = L2(p, v), $ = V(() => C.value || y.value), T = Vl(), E = V(() => {
  20918. var Y;
  20919. return (Y = S.value) !== null && Y !== void 0 ? Y : T.value;
  20920. }), [M, R] = v3e(p), N = V(() => _()), I = V(() => t.placement !== void 0 ? t.placement : v.value === "rtl" ? "bottomRight" : "bottomLeft"), B = V(() => Wl(N.value, lNe(I.value), t.transitionName)), Q = V(() => Re({
  20921. [`${p.value}-lg`]: $.value === "large",
  20922. [`${p.value}-sm`]: $.value === "small",
  20923. [`${p.value}-rtl`]: v.value === "rtl",
  20924. [`${p.value}-borderless`]: !t.bordered,
  20925. [`${p.value}-in-form-item`]: l.isFormItemInput
  20926. }, Eu(p.value, u.value, l.hasFeedback), P.value, R.value)), W = function() {
  20927. for (var Y = arguments.length, ne = new Array(Y), fe = 0; fe < Y; fe++)
  20928. ne[fe] = arguments[fe];
  20929. r("update:value", ne[0]), r("change", ...ne), s.onFieldChange();
  20930. }, H = (Y) => {
  20931. r("blur", Y), s.onFieldBlur();
  20932. };
  20933. a({
  20934. blur: f,
  20935. focus: c,
  20936. scrollTo: d
  20937. });
  20938. const U = V(() => h.value === "multiple" || h.value === "tags"), j = V(() => t.showArrow !== void 0 ? t.showArrow : t.loading || !(U.value || h.value === "combobox"));
  20939. return () => {
  20940. var Y, ne, fe, ue;
  20941. const {
  20942. notFoundContent: ye,
  20943. listHeight: se = 256,
  20944. listItemHeight: he = 24,
  20945. popupClassName: re,
  20946. dropdownClassName: q,
  20947. virtual: K,
  20948. dropdownMatchSelectWidth: de,
  20949. id: xe = s.id.value,
  20950. placeholder: we = (Y = i.placeholder) === null || Y === void 0 ? void 0 : Y.call(i),
  20951. showArrow: He
  20952. } = t, {
  20953. hasFeedback: je,
  20954. feedbackIcon: Be
  20955. } = l;
  20956. let Le;
  20957. ye !== void 0 ? Le = ye : i.notFoundContent ? Le = i.notFoundContent() : h.value === "combobox" ? Le = null : Le = (m == null ? void 0 : m("Select")) || D(HN, {
  20958. componentName: "Select"
  20959. }, null);
  20960. const {
  20961. suffixIcon: Pe,
  20962. itemIcon: Fe,
  20963. removeIcon: Ye,
  20964. clearIcon: xt
  20965. } = w5e(k(k({}, t), {
  20966. multiple: U.value,
  20967. prefixCls: p.value,
  20968. hasFeedback: je,
  20969. feedbackIcon: Be,
  20970. showArrow: j.value
  20971. }), i), It = si(t, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered", "status"]), an = Re(re || q, {
  20972. [`${p.value}-dropdown-${v.value}`]: v.value === "rtl"
  20973. }, R.value);
  20974. return M(D(E8e, te(te(te({
  20975. ref: o,
  20976. virtual: K,
  20977. dropdownMatchSelectWidth: de
  20978. }, It), n), {}, {
  20979. showSearch: (ne = t.showSearch) !== null && ne !== void 0 ? ne : (fe = x == null ? void 0 : x.value) === null || fe === void 0 ? void 0 : fe.showSearch,
  20980. placeholder: we,
  20981. listHeight: se,
  20982. listItemHeight: he,
  20983. mode: h.value,
  20984. prefixCls: p.value,
  20985. direction: v.value,
  20986. inputIcon: Pe,
  20987. menuItemSelectedIcon: Fe,
  20988. removeIcon: Ye,
  20989. clearIcon: xt,
  20990. notFoundContent: Le,
  20991. class: [Q.value, n.class],
  20992. getPopupContainer: O == null ? void 0 : O.value,
  20993. dropdownClassName: an,
  20994. onChange: W,
  20995. onBlur: H,
  20996. id: xe,
  20997. dropdownRender: It.dropdownRender || i.dropdownRender,
  20998. transitionName: B.value,
  20999. children: (ue = i.default) === null || ue === void 0 ? void 0 : ue.call(i),
  21000. tagRender: t.tagRender || i.tagRender,
  21001. optionLabelRender: i.optionLabel,
  21002. maxTagPlaceholder: t.maxTagPlaceholder || i.maxTagPlaceholder,
  21003. showArrow: je || He,
  21004. disabled: E.value
  21005. }), {
  21006. option: i.option
  21007. }));
  21008. };
  21009. }
  21010. });
  21011. Ca.install = function(t) {
  21012. return t.component(Ca.name, Ca), t.component(Ca.Option.displayName, Ca.Option), t.component(Ca.OptGroup.displayName, Ca.OptGroup), t;
  21013. };
  21014. const Ev = Ca.Option;
  21015. Ca.OptGroup;
  21016. var m3e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "check-circle", theme: "outlined" };
  21017. function lQ(t) {
  21018. for (var e = 1; e < arguments.length; e++) {
  21019. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21020. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21021. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21022. }))), r.forEach(function(i) {
  21023. y3e(t, i, n[i]);
  21024. });
  21025. }
  21026. return t;
  21027. }
  21028. function y3e(t, e, n) {
  21029. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21030. }
  21031. var g8 = function(e, n) {
  21032. var r = lQ({}, e, n.attrs);
  21033. return D(Rt, lQ({}, r, {
  21034. icon: m3e
  21035. }), null);
  21036. };
  21037. g8.displayName = "CheckCircleOutlined";
  21038. g8.inheritAttrs = !1;
  21039. var b3e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
  21040. function uQ(t) {
  21041. for (var e = 1; e < arguments.length; e++) {
  21042. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21043. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21044. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21045. }))), r.forEach(function(i) {
  21046. _3e(t, i, n[i]);
  21047. });
  21048. }
  21049. return t;
  21050. }
  21051. function _3e(t, e, n) {
  21052. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21053. }
  21054. var m8 = function(e, n) {
  21055. var r = uQ({}, e, n.attrs);
  21056. return D(Rt, uQ({}, r, {
  21057. icon: b3e
  21058. }), null);
  21059. };
  21060. m8.displayName = "ExclamationCircleOutlined";
  21061. m8.inheritAttrs = !1;
  21062. var O3e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, name: "info-circle", theme: "outlined" };
  21063. function cQ(t) {
  21064. for (var e = 1; e < arguments.length; e++) {
  21065. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21066. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21067. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21068. }))), r.forEach(function(i) {
  21069. S3e(t, i, n[i]);
  21070. });
  21071. }
  21072. return t;
  21073. }
  21074. function S3e(t, e, n) {
  21075. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21076. }
  21077. var V2 = function(e, n) {
  21078. var r = cQ({}, e, n.attrs);
  21079. return D(Rt, cQ({}, r, {
  21080. icon: O3e
  21081. }), null);
  21082. };
  21083. V2.displayName = "InfoCircleOutlined";
  21084. V2.inheritAttrs = !1;
  21085. var x3e = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, name: "close-circle", theme: "outlined" };
  21086. function fQ(t) {
  21087. for (var e = 1; e < arguments.length; e++) {
  21088. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21089. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21090. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21091. }))), r.forEach(function(i) {
  21092. w3e(t, i, n[i]);
  21093. });
  21094. }
  21095. return t;
  21096. }
  21097. function w3e(t, e, n) {
  21098. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21099. }
  21100. var y8 = function(e, n) {
  21101. var r = fQ({}, e, n.attrs);
  21102. return D(Rt, fQ({}, r, {
  21103. icon: x3e
  21104. }), null);
  21105. };
  21106. y8.displayName = "CloseCircleOutlined";
  21107. y8.inheritAttrs = !1;
  21108. var C3e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" };
  21109. function dQ(t) {
  21110. for (var e = 1; e < arguments.length; e++) {
  21111. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21112. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21113. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21114. }))), r.forEach(function(i) {
  21115. T3e(t, i, n[i]);
  21116. });
  21117. }
  21118. return t;
  21119. }
  21120. function T3e(t, e, n) {
  21121. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21122. }
  21123. var Df = function(e, n) {
  21124. var r = dQ({}, e, n.attrs);
  21125. return D(Rt, dQ({}, r, {
  21126. icon: C3e
  21127. }), null);
  21128. };
  21129. Df.displayName = "CheckCircleFilled";
  21130. Df.inheritAttrs = !1;
  21131. var P3e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" };
  21132. function hQ(t) {
  21133. for (var e = 1; e < arguments.length; e++) {
  21134. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21135. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21136. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21137. }))), r.forEach(function(i) {
  21138. $3e(t, i, n[i]);
  21139. });
  21140. }
  21141. return t;
  21142. }
  21143. function $3e(t, e, n) {
  21144. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21145. }
  21146. var Rf = function(e, n) {
  21147. var r = hQ({}, e, n.attrs);
  21148. return D(Rt, hQ({}, r, {
  21149. icon: P3e
  21150. }), null);
  21151. };
  21152. Rf.displayName = "ExclamationCircleFilled";
  21153. Rf.inheritAttrs = !1;
  21154. var A3e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" };
  21155. function pQ(t) {
  21156. for (var e = 1; e < arguments.length; e++) {
  21157. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  21158. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  21159. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  21160. }))), r.forEach(function(i) {
  21161. E3e(t, i, n[i]);
  21162. });
  21163. }
  21164. return t;
  21165. }
  21166. function E3e(t, e, n) {
  21167. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  21168. }
  21169. var cp = function(e, n) {
  21170. var r = pQ({}, e, n.attrs);
  21171. return D(Rt, pQ({}, r, {
  21172. icon: A3e
  21173. }), null);
  21174. };
  21175. cp.displayName = "InfoCircleFilled";
  21176. cp.inheritAttrs = !1;
  21177. const qO = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], M3e = (t) => ({
  21178. xs: `(max-width: ${t.screenXSMax}px)`,
  21179. sm: `(min-width: ${t.screenSM}px)`,
  21180. md: `(min-width: ${t.screenMD}px)`,
  21181. lg: `(min-width: ${t.screenLG}px)`,
  21182. xl: `(min-width: ${t.screenXL}px)`,
  21183. xxl: `(min-width: ${t.screenXXL}px)`,
  21184. xxxl: `{min-width: ${t.screenXXXL}px}`
  21185. });
  21186. function I3e() {
  21187. const [, t] = pm();
  21188. return V(() => {
  21189. const e = M3e(t.value), n = /* @__PURE__ */ new Map();
  21190. let r = -1, i = {};
  21191. return {
  21192. matchHandlers: {},
  21193. dispatch(a) {
  21194. return i = a, n.forEach((o) => o(i)), n.size >= 1;
  21195. },
  21196. subscribe(a) {
  21197. return n.size || this.register(), r += 1, n.set(r, a), a(i), r;
  21198. },
  21199. unsubscribe(a) {
  21200. n.delete(a), n.size || this.unregister();
  21201. },
  21202. unregister() {
  21203. Object.keys(e).forEach((a) => {
  21204. const o = e[a], s = this.matchHandlers[o];
  21205. s == null || s.mql.removeListener(s == null ? void 0 : s.listener);
  21206. }), n.clear();
  21207. },
  21208. register() {
  21209. Object.keys(e).forEach((a) => {
  21210. const o = e[a], s = (u) => {
  21211. let {
  21212. matches: c
  21213. } = u;
  21214. this.dispatch(k(k({}, i), {
  21215. [a]: c
  21216. }));
  21217. }, l = window.matchMedia(o);
  21218. l.addListener(s), this.matchHandlers[o] = {
  21219. mql: l,
  21220. listener: s
  21221. }, s(l);
  21222. });
  21223. },
  21224. responsiveMap: e
  21225. };
  21226. });
  21227. }
  21228. const Po = {
  21229. adjustX: 1,
  21230. adjustY: 1
  21231. }, $o = [0, 0], Oie = {
  21232. left: {
  21233. points: ["cr", "cl"],
  21234. overflow: Po,
  21235. offset: [-4, 0],
  21236. targetOffset: $o
  21237. },
  21238. right: {
  21239. points: ["cl", "cr"],
  21240. overflow: Po,
  21241. offset: [4, 0],
  21242. targetOffset: $o
  21243. },
  21244. top: {
  21245. points: ["bc", "tc"],
  21246. overflow: Po,
  21247. offset: [0, -4],
  21248. targetOffset: $o
  21249. },
  21250. bottom: {
  21251. points: ["tc", "bc"],
  21252. overflow: Po,
  21253. offset: [0, 4],
  21254. targetOffset: $o
  21255. },
  21256. topLeft: {
  21257. points: ["bl", "tl"],
  21258. overflow: Po,
  21259. offset: [0, -4],
  21260. targetOffset: $o
  21261. },
  21262. leftTop: {
  21263. points: ["tr", "tl"],
  21264. overflow: Po,
  21265. offset: [-4, 0],
  21266. targetOffset: $o
  21267. },
  21268. topRight: {
  21269. points: ["br", "tr"],
  21270. overflow: Po,
  21271. offset: [0, -4],
  21272. targetOffset: $o
  21273. },
  21274. rightTop: {
  21275. points: ["tl", "tr"],
  21276. overflow: Po,
  21277. offset: [4, 0],
  21278. targetOffset: $o
  21279. },
  21280. bottomRight: {
  21281. points: ["tr", "br"],
  21282. overflow: Po,
  21283. offset: [0, 4],
  21284. targetOffset: $o
  21285. },
  21286. rightBottom: {
  21287. points: ["bl", "br"],
  21288. overflow: Po,
  21289. offset: [4, 0],
  21290. targetOffset: $o
  21291. },
  21292. bottomLeft: {
  21293. points: ["tl", "bl"],
  21294. overflow: Po,
  21295. offset: [0, 4],
  21296. targetOffset: $o
  21297. },
  21298. leftBottom: {
  21299. points: ["br", "bl"],
  21300. overflow: Po,
  21301. offset: [-4, 0],
  21302. targetOffset: $o
  21303. }
  21304. }, D3e = {
  21305. prefixCls: String,
  21306. id: String,
  21307. overlayInnerStyle: oe.any
  21308. }, R3e = ae({
  21309. compatConfig: {
  21310. MODE: 3
  21311. },
  21312. name: "TooltipContent",
  21313. props: D3e,
  21314. setup(t, e) {
  21315. let {
  21316. slots: n
  21317. } = e;
  21318. return () => {
  21319. var r;
  21320. return D("div", {
  21321. class: `${t.prefixCls}-inner`,
  21322. id: t.id,
  21323. role: "tooltip",
  21324. style: t.overlayInnerStyle
  21325. }, [(r = n.overlay) === null || r === void 0 ? void 0 : r.call(n)]);
  21326. };
  21327. }
  21328. });
  21329. var k3e = function(t, e) {
  21330. var n = {};
  21331. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  21332. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  21333. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  21334. return n;
  21335. };
  21336. function vQ() {
  21337. }
  21338. const L3e = ae({
  21339. compatConfig: {
  21340. MODE: 3
  21341. },
  21342. name: "Tooltip",
  21343. inheritAttrs: !1,
  21344. props: {
  21345. trigger: oe.any.def(["hover"]),
  21346. defaultVisible: {
  21347. type: Boolean,
  21348. default: void 0
  21349. },
  21350. visible: {
  21351. type: Boolean,
  21352. default: void 0
  21353. },
  21354. placement: oe.string.def("right"),
  21355. transitionName: String,
  21356. animation: oe.any,
  21357. afterVisibleChange: oe.func.def(() => {
  21358. }),
  21359. overlayStyle: {
  21360. type: Object,
  21361. default: void 0
  21362. },
  21363. overlayClassName: String,
  21364. prefixCls: oe.string.def("rc-tooltip"),
  21365. mouseEnterDelay: oe.number.def(0.1),
  21366. mouseLeaveDelay: oe.number.def(0.1),
  21367. getPopupContainer: Function,
  21368. destroyTooltipOnHide: {
  21369. type: Boolean,
  21370. default: !1
  21371. },
  21372. align: oe.object.def(() => ({})),
  21373. arrowContent: oe.any.def(null),
  21374. tipId: String,
  21375. builtinPlacements: oe.object,
  21376. overlayInnerStyle: {
  21377. type: Object,
  21378. default: void 0
  21379. },
  21380. popupVisible: {
  21381. type: Boolean,
  21382. default: void 0
  21383. },
  21384. onVisibleChange: Function,
  21385. onPopupAlign: Function,
  21386. arrow: {
  21387. type: Boolean,
  21388. default: !0
  21389. }
  21390. },
  21391. setup(t, e) {
  21392. let {
  21393. slots: n,
  21394. attrs: r,
  21395. expose: i
  21396. } = e;
  21397. const a = ve(), o = () => {
  21398. const {
  21399. prefixCls: c,
  21400. tipId: f,
  21401. overlayInnerStyle: d
  21402. } = t;
  21403. return [t.arrow ? D("div", {
  21404. class: `${c}-arrow`,
  21405. key: "arrow"
  21406. }, [y2(n, t, "arrowContent")]) : null, D(R3e, {
  21407. key: "content",
  21408. prefixCls: c,
  21409. id: f,
  21410. overlayInnerStyle: d
  21411. }, {
  21412. overlay: n.overlay
  21413. })];
  21414. };
  21415. i({
  21416. getPopupDomNode: () => a.value.getPopupDomNode(),
  21417. triggerDOM: a,
  21418. forcePopupAlign: () => {
  21419. var c;
  21420. return (c = a.value) === null || c === void 0 ? void 0 : c.forcePopupAlign();
  21421. }
  21422. });
  21423. const l = ve(!1), u = ve(!1);
  21424. return Vt(() => {
  21425. const {
  21426. destroyTooltipOnHide: c
  21427. } = t;
  21428. if (typeof c == "boolean")
  21429. l.value = c;
  21430. else if (c && typeof c == "object") {
  21431. const {
  21432. keepParent: f
  21433. } = c;
  21434. l.value = f === !0, u.value = f === !1;
  21435. }
  21436. }), () => {
  21437. const {
  21438. overlayClassName: c,
  21439. trigger: f,
  21440. mouseEnterDelay: d,
  21441. mouseLeaveDelay: h,
  21442. overlayStyle: p,
  21443. prefixCls: v,
  21444. afterVisibleChange: g,
  21445. transitionName: m,
  21446. animation: y,
  21447. placement: _,
  21448. align: O,
  21449. destroyTooltipOnHide: S,
  21450. defaultVisible: x
  21451. } = t, C = k3e(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible"]), P = k({}, C);
  21452. t.visible !== void 0 && (P.popupVisible = t.visible);
  21453. const $ = k(k(k({
  21454. popupClassName: c,
  21455. prefixCls: v,
  21456. action: f,
  21457. builtinPlacements: Oie,
  21458. popupPlacement: _,
  21459. popupAlign: O,
  21460. afterPopupVisibleChange: g,
  21461. popupTransitionName: m,
  21462. popupAnimation: y,
  21463. defaultPopupVisible: x,
  21464. destroyPopupOnHide: l.value,
  21465. autoDestroy: u.value,
  21466. mouseLeaveDelay: h,
  21467. popupStyle: p,
  21468. mouseEnterDelay: d
  21469. }, P), r), {
  21470. onPopupVisibleChange: t.onVisibleChange || vQ,
  21471. onPopupAlign: t.onPopupAlign || vQ,
  21472. ref: a,
  21473. arrow: !!t.arrow,
  21474. popup: o()
  21475. });
  21476. return D(E2, $, {
  21477. default: n.default
  21478. });
  21479. };
  21480. }
  21481. }), N3e = () => ({
  21482. trigger: [String, Array],
  21483. open: {
  21484. type: Boolean,
  21485. default: void 0
  21486. },
  21487. /** @deprecated Please use `open` instead. */
  21488. visible: {
  21489. type: Boolean,
  21490. default: void 0
  21491. },
  21492. placement: String,
  21493. color: String,
  21494. transitionName: String,
  21495. overlayStyle: sn(),
  21496. overlayInnerStyle: sn(),
  21497. overlayClassName: String,
  21498. openClassName: String,
  21499. prefixCls: String,
  21500. mouseEnterDelay: Number,
  21501. mouseLeaveDelay: Number,
  21502. getPopupContainer: Function,
  21503. /**@deprecated Please use `arrow={{ pointAtCenter: true }}` instead. */
  21504. arrowPointAtCenter: {
  21505. type: Boolean,
  21506. default: void 0
  21507. },
  21508. arrow: {
  21509. type: [Boolean, Object],
  21510. default: !0
  21511. },
  21512. autoAdjustOverflow: {
  21513. type: [Boolean, Object],
  21514. default: void 0
  21515. },
  21516. destroyTooltipOnHide: {
  21517. type: Boolean,
  21518. default: void 0
  21519. },
  21520. align: sn(),
  21521. builtinPlacements: sn(),
  21522. children: Array,
  21523. /** @deprecated Please use `onOpenChange` instead. */
  21524. onVisibleChange: Function,
  21525. /** @deprecated Please use `onUpdate:open` instead. */
  21526. "onUpdate:visible": Function,
  21527. onOpenChange: Function,
  21528. "onUpdate:open": Function
  21529. }), B3e = {
  21530. adjustX: 1,
  21531. adjustY: 1
  21532. }, gQ = {
  21533. adjustX: 0,
  21534. adjustY: 0
  21535. }, z3e = [0, 0];
  21536. function mQ(t) {
  21537. return typeof t == "boolean" ? t ? B3e : gQ : k(k({}, gQ), t);
  21538. }
  21539. function V3e(t) {
  21540. const {
  21541. arrowWidth: e = 4,
  21542. horizontalArrowShift: n = 16,
  21543. verticalArrowShift: r = 8,
  21544. autoAdjustOverflow: i,
  21545. arrowPointAtCenter: a
  21546. } = t, o = {
  21547. left: {
  21548. points: ["cr", "cl"],
  21549. offset: [-4, 0]
  21550. },
  21551. right: {
  21552. points: ["cl", "cr"],
  21553. offset: [4, 0]
  21554. },
  21555. top: {
  21556. points: ["bc", "tc"],
  21557. offset: [0, -4]
  21558. },
  21559. bottom: {
  21560. points: ["tc", "bc"],
  21561. offset: [0, 4]
  21562. },
  21563. topLeft: {
  21564. points: ["bl", "tc"],
  21565. offset: [-(n + e), -4]
  21566. },
  21567. leftTop: {
  21568. points: ["tr", "cl"],
  21569. offset: [-4, -(r + e)]
  21570. },
  21571. topRight: {
  21572. points: ["br", "tc"],
  21573. offset: [n + e, -4]
  21574. },
  21575. rightTop: {
  21576. points: ["tl", "cr"],
  21577. offset: [4, -(r + e)]
  21578. },
  21579. bottomRight: {
  21580. points: ["tr", "bc"],
  21581. offset: [n + e, 4]
  21582. },
  21583. rightBottom: {
  21584. points: ["bl", "cr"],
  21585. offset: [4, r + e]
  21586. },
  21587. bottomLeft: {
  21588. points: ["tl", "bc"],
  21589. offset: [-(n + e), 4]
  21590. },
  21591. leftBottom: {
  21592. points: ["br", "cl"],
  21593. offset: [-4, r + e]
  21594. }
  21595. };
  21596. return Object.keys(o).forEach((s) => {
  21597. o[s] = a ? k(k({}, o[s]), {
  21598. overflow: mQ(i),
  21599. targetOffset: z3e
  21600. }) : k(k({}, Oie[s]), {
  21601. overflow: mQ(i)
  21602. }), o[s].ignoreShake = !0;
  21603. }), o;
  21604. }
  21605. function Sie() {
  21606. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  21607. for (let e = 0, n = t.length; e < n; e++)
  21608. if (t[e] !== void 0)
  21609. return t[e];
  21610. }
  21611. const F3e = qw.map((t) => `${t}-inverse`);
  21612. function W3e(t) {
  21613. return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [...F3e, ...qw].includes(t) : qw.includes(t);
  21614. }
  21615. function Q3e(t, e) {
  21616. const n = W3e(e), r = Re({
  21617. [`${t}-${e}`]: e && n
  21618. }), i = {}, a = {};
  21619. return e && !n && (i.background = e, a["--antd-arrow-background-color"] = e), {
  21620. className: r,
  21621. overlayStyle: i,
  21622. arrowStyle: a
  21623. };
  21624. }
  21625. function KO(t) {
  21626. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
  21627. return t.map((n) => `${e}${n}`).join(",");
  21628. }
  21629. const xie = 8;
  21630. function H3e(t) {
  21631. const e = xie, {
  21632. sizePopupArrow: n,
  21633. contentRadius: r,
  21634. borderRadiusOuter: i,
  21635. limitVerticalRadius: a
  21636. } = t, o = n / 2 - Math.ceil(i * (Math.sqrt(2) - 1)), s = (r > 12 ? r + 2 : 12) - o, l = a ? e - o : s;
  21637. return {
  21638. dropdownArrowOffset: s,
  21639. dropdownArrowOffsetVertical: l
  21640. };
  21641. }
  21642. function G3e(t, e) {
  21643. const {
  21644. componentCls: n,
  21645. sizePopupArrow: r,
  21646. marginXXS: i,
  21647. borderRadiusXS: a,
  21648. borderRadiusOuter: o,
  21649. boxShadowPopoverArrow: s
  21650. } = t, {
  21651. colorBg: l,
  21652. showArrowCls: u,
  21653. contentRadius: c = t.borderRadiusLG,
  21654. limitVerticalRadius: f
  21655. } = e, {
  21656. dropdownArrowOffsetVertical: d,
  21657. dropdownArrowOffset: h
  21658. } = H3e({
  21659. sizePopupArrow: r,
  21660. contentRadius: c,
  21661. borderRadiusOuter: o,
  21662. limitVerticalRadius: f
  21663. }), p = r / 2 + i;
  21664. return {
  21665. [n]: {
  21666. // ============================ Basic ============================
  21667. [`${n}-arrow`]: [k(k({
  21668. position: "absolute",
  21669. zIndex: 1,
  21670. display: "block"
  21671. }, RLe(r, a, o, l, s)), {
  21672. "&:before": {
  21673. background: l
  21674. }
  21675. })],
  21676. // ========================== Placement ==========================
  21677. // Here handle the arrow position and rotate stuff
  21678. // >>>>> Top
  21679. [[`&-placement-top ${n}-arrow`, `&-placement-topLeft ${n}-arrow`, `&-placement-topRight ${n}-arrow`].join(",")]: {
  21680. bottom: 0,
  21681. transform: "translateY(100%) rotate(180deg)"
  21682. },
  21683. [`&-placement-top ${n}-arrow`]: {
  21684. left: {
  21685. _skip_check_: !0,
  21686. value: "50%"
  21687. },
  21688. transform: "translateX(-50%) translateY(100%) rotate(180deg)"
  21689. },
  21690. [`&-placement-topLeft ${n}-arrow`]: {
  21691. left: {
  21692. _skip_check_: !0,
  21693. value: h
  21694. }
  21695. },
  21696. [`&-placement-topRight ${n}-arrow`]: {
  21697. right: {
  21698. _skip_check_: !0,
  21699. value: h
  21700. }
  21701. },
  21702. // >>>>> Bottom
  21703. [[`&-placement-bottom ${n}-arrow`, `&-placement-bottomLeft ${n}-arrow`, `&-placement-bottomRight ${n}-arrow`].join(",")]: {
  21704. top: 0,
  21705. transform: "translateY(-100%)"
  21706. },
  21707. [`&-placement-bottom ${n}-arrow`]: {
  21708. left: {
  21709. _skip_check_: !0,
  21710. value: "50%"
  21711. },
  21712. transform: "translateX(-50%) translateY(-100%)"
  21713. },
  21714. [`&-placement-bottomLeft ${n}-arrow`]: {
  21715. left: {
  21716. _skip_check_: !0,
  21717. value: h
  21718. }
  21719. },
  21720. [`&-placement-bottomRight ${n}-arrow`]: {
  21721. right: {
  21722. _skip_check_: !0,
  21723. value: h
  21724. }
  21725. },
  21726. // >>>>> Left
  21727. [[`&-placement-left ${n}-arrow`, `&-placement-leftTop ${n}-arrow`, `&-placement-leftBottom ${n}-arrow`].join(",")]: {
  21728. right: {
  21729. _skip_check_: !0,
  21730. value: 0
  21731. },
  21732. transform: "translateX(100%) rotate(90deg)"
  21733. },
  21734. [`&-placement-left ${n}-arrow`]: {
  21735. top: {
  21736. _skip_check_: !0,
  21737. value: "50%"
  21738. },
  21739. transform: "translateY(-50%) translateX(100%) rotate(90deg)"
  21740. },
  21741. [`&-placement-leftTop ${n}-arrow`]: {
  21742. top: d
  21743. },
  21744. [`&-placement-leftBottom ${n}-arrow`]: {
  21745. bottom: d
  21746. },
  21747. // >>>>> Right
  21748. [[`&-placement-right ${n}-arrow`, `&-placement-rightTop ${n}-arrow`, `&-placement-rightBottom ${n}-arrow`].join(",")]: {
  21749. left: {
  21750. _skip_check_: !0,
  21751. value: 0
  21752. },
  21753. transform: "translateX(-100%) rotate(-90deg)"
  21754. },
  21755. [`&-placement-right ${n}-arrow`]: {
  21756. top: {
  21757. _skip_check_: !0,
  21758. value: "50%"
  21759. },
  21760. transform: "translateY(-50%) translateX(-100%) rotate(-90deg)"
  21761. },
  21762. [`&-placement-rightTop ${n}-arrow`]: {
  21763. top: d
  21764. },
  21765. [`&-placement-rightBottom ${n}-arrow`]: {
  21766. bottom: d
  21767. },
  21768. // =========================== Offset ============================
  21769. // Offset the popover to account for the dropdown arrow
  21770. // >>>>> Top
  21771. [KO(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
  21772. paddingBottom: p
  21773. },
  21774. // >>>>> Bottom
  21775. [KO(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
  21776. paddingTop: p
  21777. },
  21778. // >>>>> Left
  21779. [KO(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
  21780. paddingRight: {
  21781. _skip_check_: !0,
  21782. value: p
  21783. }
  21784. },
  21785. // >>>>> Right
  21786. [KO(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
  21787. paddingLeft: {
  21788. _skip_check_: !0,
  21789. value: p
  21790. }
  21791. }
  21792. }
  21793. };
  21794. }
  21795. const j3e = (t) => {
  21796. const {
  21797. componentCls: e,
  21798. // ant-tooltip
  21799. tooltipMaxWidth: n,
  21800. tooltipColor: r,
  21801. tooltipBg: i,
  21802. tooltipBorderRadius: a,
  21803. zIndexPopup: o,
  21804. controlHeight: s,
  21805. boxShadowSecondary: l,
  21806. paddingSM: u,
  21807. paddingXS: c,
  21808. tooltipRadiusOuter: f
  21809. } = t;
  21810. return [
  21811. {
  21812. [e]: k(k(k(k({}, Gn(t)), {
  21813. position: "absolute",
  21814. zIndex: o,
  21815. display: "block",
  21816. "&": [{
  21817. width: "max-content"
  21818. }, {
  21819. width: "intrinsic"
  21820. }],
  21821. maxWidth: n,
  21822. visibility: "visible",
  21823. "&-hidden": {
  21824. display: "none"
  21825. },
  21826. "--antd-arrow-background-color": i,
  21827. // Wrapper for the tooltip content
  21828. [`${e}-inner`]: {
  21829. minWidth: s,
  21830. minHeight: s,
  21831. padding: `${u / 2}px ${c}px`,
  21832. color: r,
  21833. textAlign: "start",
  21834. textDecoration: "none",
  21835. wordWrap: "break-word",
  21836. backgroundColor: i,
  21837. borderRadius: a,
  21838. boxShadow: l
  21839. },
  21840. // Limit left and right placement radius
  21841. [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
  21842. [`${e}-inner`]: {
  21843. borderRadius: Math.min(a, xie)
  21844. }
  21845. },
  21846. [`${e}-content`]: {
  21847. position: "relative"
  21848. }
  21849. }), kLe(t, (d, h) => {
  21850. let {
  21851. darkColor: p
  21852. } = h;
  21853. return {
  21854. [`&${e}-${d}`]: {
  21855. [`${e}-inner`]: {
  21856. backgroundColor: p
  21857. },
  21858. [`${e}-arrow`]: {
  21859. "--antd-arrow-background-color": p
  21860. }
  21861. }
  21862. };
  21863. })), {
  21864. // RTL
  21865. "&-rtl": {
  21866. direction: "rtl"
  21867. }
  21868. })
  21869. },
  21870. // Arrow Style
  21871. G3e(bn(t, {
  21872. borderRadiusOuter: f
  21873. }), {
  21874. colorBg: "var(--antd-arrow-background-color)",
  21875. showArrowCls: "",
  21876. contentRadius: a,
  21877. limitVerticalRadius: !0
  21878. }),
  21879. // Pure Render
  21880. {
  21881. [`${e}-pure`]: {
  21882. position: "relative",
  21883. maxWidth: "none"
  21884. }
  21885. }
  21886. ];
  21887. }, Z3e = (t, e) => pr("Tooltip", (r) => {
  21888. if ((e == null ? void 0 : e.value) === !1)
  21889. return [];
  21890. const {
  21891. borderRadius: i,
  21892. colorTextLightSolid: a,
  21893. colorBgDefault: o,
  21894. borderRadiusOuter: s
  21895. } = r, l = bn(r, {
  21896. // default variables
  21897. tooltipMaxWidth: 250,
  21898. tooltipColor: a,
  21899. tooltipBorderRadius: i,
  21900. tooltipBg: o,
  21901. tooltipRadiusOuter: s > 4 ? 4 : s
  21902. });
  21903. return [j3e(l), B2(r, "zoom-big-fast")];
  21904. }, (r) => {
  21905. let {
  21906. zIndexPopupBase: i,
  21907. colorBgSpotlight: a
  21908. } = r;
  21909. return {
  21910. zIndexPopup: i + 70,
  21911. colorBgDefault: a
  21912. };
  21913. })(t), U3e = (t, e) => {
  21914. const n = {}, r = k({}, t);
  21915. return e.forEach((i) => {
  21916. t && i in t && (n[i] = t[i], delete r[i]);
  21917. }), {
  21918. picked: n,
  21919. omitted: r
  21920. };
  21921. }, wie = () => k(k({}, N3e()), {
  21922. title: oe.any
  21923. }), X3e = ae({
  21924. compatConfig: {
  21925. MODE: 3
  21926. },
  21927. name: "ATooltip",
  21928. inheritAttrs: !1,
  21929. props: li(wie(), {
  21930. trigger: "hover",
  21931. align: {},
  21932. placement: "top",
  21933. mouseEnterDelay: 0.1,
  21934. mouseLeaveDelay: 0.1,
  21935. arrowPointAtCenter: !1,
  21936. autoAdjustOverflow: !0
  21937. }),
  21938. slots: Object,
  21939. // emits: ['update:visible', 'visibleChange'],
  21940. setup(t, e) {
  21941. let {
  21942. slots: n,
  21943. emit: r,
  21944. attrs: i,
  21945. expose: a
  21946. } = e;
  21947. process.env.NODE_ENV !== "production" && [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((T) => {
  21948. let [E, M] = T;
  21949. aa(t[E] === void 0, "Tooltip", `\`${E}\` is deprecated, please use \`${M}\` instead.`);
  21950. });
  21951. const {
  21952. prefixCls: o,
  21953. getPopupContainer: s,
  21954. direction: l,
  21955. rootPrefixCls: u
  21956. } = hn("tooltip", t), c = V(() => {
  21957. var T;
  21958. return (T = t.open) !== null && T !== void 0 ? T : t.visible;
  21959. }), f = ee(Sie([t.open, t.visible])), d = ee();
  21960. let h;
  21961. me(c, (T) => {
  21962. en.cancel(h), h = en(() => {
  21963. f.value = !!T;
  21964. });
  21965. });
  21966. const p = () => {
  21967. var T;
  21968. const E = (T = t.title) !== null && T !== void 0 ? T : n.title;
  21969. return !E && E !== 0;
  21970. }, v = (T) => {
  21971. const E = p();
  21972. c.value === void 0 && (f.value = E ? !1 : T), E || (r("update:visible", T), r("visibleChange", T), r("update:open", T), r("openChange", T));
  21973. };
  21974. a({
  21975. getPopupDomNode: () => d.value.getPopupDomNode(),
  21976. open: f,
  21977. forcePopupAlign: () => {
  21978. var T;
  21979. return (T = d.value) === null || T === void 0 ? void 0 : T.forcePopupAlign();
  21980. }
  21981. });
  21982. const m = V(() => {
  21983. var T;
  21984. const {
  21985. builtinPlacements: E,
  21986. autoAdjustOverflow: M,
  21987. arrow: R,
  21988. arrowPointAtCenter: N
  21989. } = t;
  21990. let I = N;
  21991. return typeof R == "object" && (I = (T = R.pointAtCenter) !== null && T !== void 0 ? T : N), E || V3e({
  21992. arrowPointAtCenter: I,
  21993. autoAdjustOverflow: M
  21994. });
  21995. }), y = (T) => T || T === "", _ = (T) => {
  21996. const E = T.type;
  21997. if (typeof E == "object" && T.props && ((E.__ANT_BUTTON === !0 || E === "button") && y(T.props.disabled) || E.__ANT_SWITCH === !0 && (y(T.props.disabled) || y(T.props.loading)) || E.__ANT_RADIO === !0 && y(T.props.disabled))) {
  21998. const {
  21999. picked: M,
  22000. omitted: R
  22001. } = U3e(lke(T), ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), N = k(k({
  22002. display: "inline-block"
  22003. }, M), {
  22004. cursor: "not-allowed",
  22005. lineHeight: 1,
  22006. width: T.props && T.props.block ? "100%" : void 0
  22007. }), I = k(k({}, R), {
  22008. pointerEvents: "none"
  22009. }), B = xr(T, {
  22010. style: I
  22011. }, !0);
  22012. return D("span", {
  22013. style: N,
  22014. class: `${o.value}-disabled-compatible-wrapper`
  22015. }, [B]);
  22016. }
  22017. return T;
  22018. }, O = () => {
  22019. var T, E;
  22020. return (T = t.title) !== null && T !== void 0 ? T : (E = n.title) === null || E === void 0 ? void 0 : E.call(n);
  22021. }, S = (T, E) => {
  22022. const M = m.value, R = Object.keys(M).find((N) => {
  22023. var I, B;
  22024. return M[N].points[0] === ((I = E.points) === null || I === void 0 ? void 0 : I[0]) && M[N].points[1] === ((B = E.points) === null || B === void 0 ? void 0 : B[1]);
  22025. });
  22026. if (R) {
  22027. const N = T.getBoundingClientRect(), I = {
  22028. top: "50%",
  22029. left: "50%"
  22030. };
  22031. R.indexOf("top") >= 0 || R.indexOf("Bottom") >= 0 ? I.top = `${N.height - E.offset[1]}px` : (R.indexOf("Top") >= 0 || R.indexOf("bottom") >= 0) && (I.top = `${-E.offset[1]}px`), R.indexOf("left") >= 0 || R.indexOf("Right") >= 0 ? I.left = `${N.width - E.offset[0]}px` : (R.indexOf("right") >= 0 || R.indexOf("Left") >= 0) && (I.left = `${-E.offset[0]}px`), T.style.transformOrigin = `${I.left} ${I.top}`;
  22032. }
  22033. }, x = V(() => Q3e(o.value, t.color)), C = V(() => i["data-popover-inject"]), [P, $] = Z3e(o, V(() => !C.value));
  22034. return () => {
  22035. var T, E;
  22036. const {
  22037. openClassName: M,
  22038. overlayClassName: R,
  22039. overlayStyle: N,
  22040. overlayInnerStyle: I
  22041. } = t;
  22042. let B = (E = Zl((T = n.default) === null || T === void 0 ? void 0 : T.call(n))) !== null && E !== void 0 ? E : null;
  22043. B = B.length === 1 ? B[0] : B;
  22044. let Q = f.value;
  22045. if (c.value === void 0 && p() && (Q = !1), !B)
  22046. return null;
  22047. const W = _(po(B) && !uke(B) ? B : D("span", null, [B])), H = Re({
  22048. [M || `${o.value}-open`]: !0,
  22049. [W.props && W.props.class]: W.props && W.props.class
  22050. }), U = Re(R, {
  22051. [`${o.value}-rtl`]: l.value === "rtl"
  22052. }, x.value.className, $.value), j = k(k({}, x.value.overlayStyle), I), Y = x.value.arrowStyle, ne = k(k(k({}, i), t), {
  22053. prefixCls: o.value,
  22054. arrow: !!t.arrow,
  22055. getPopupContainer: s == null ? void 0 : s.value,
  22056. builtinPlacements: m.value,
  22057. visible: Q,
  22058. ref: d,
  22059. overlayClassName: U,
  22060. overlayStyle: k(k({}, Y), N),
  22061. overlayInnerStyle: j,
  22062. onVisibleChange: v,
  22063. onPopupAlign: S,
  22064. transitionName: Wl(u.value, "zoom-big-fast", t.transitionName)
  22065. });
  22066. return P(D(L3e, ne, {
  22067. default: () => [f.value ? xr(W, {
  22068. class: H
  22069. }) : W],
  22070. arrowContent: () => D("span", {
  22071. class: `${o.value}-arrow-content`
  22072. }, null),
  22073. overlay: O
  22074. }));
  22075. };
  22076. }
  22077. }), F2 = fm(X3e), Qp = {
  22078. adjustX: 1,
  22079. adjustY: 1
  22080. }, Hp = [0, 0], Y3e = {
  22081. topLeft: {
  22082. points: ["bl", "tl"],
  22083. overflow: Qp,
  22084. offset: [0, -4],
  22085. targetOffset: Hp
  22086. },
  22087. topCenter: {
  22088. points: ["bc", "tc"],
  22089. overflow: Qp,
  22090. offset: [0, -4],
  22091. targetOffset: Hp
  22092. },
  22093. topRight: {
  22094. points: ["br", "tr"],
  22095. overflow: Qp,
  22096. offset: [0, -4],
  22097. targetOffset: Hp
  22098. },
  22099. bottomLeft: {
  22100. points: ["tl", "bl"],
  22101. overflow: Qp,
  22102. offset: [0, 4],
  22103. targetOffset: Hp
  22104. },
  22105. bottomCenter: {
  22106. points: ["tc", "bc"],
  22107. overflow: Qp,
  22108. offset: [0, 4],
  22109. targetOffset: Hp
  22110. },
  22111. bottomRight: {
  22112. points: ["tr", "br"],
  22113. overflow: Qp,
  22114. offset: [0, 4],
  22115. targetOffset: Hp
  22116. }
  22117. };
  22118. var q3e = function(t, e) {
  22119. var n = {};
  22120. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  22121. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  22122. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  22123. return n;
  22124. };
  22125. const K3e = ae({
  22126. compatConfig: {
  22127. MODE: 3
  22128. },
  22129. props: {
  22130. minOverlayWidthMatchTrigger: {
  22131. type: Boolean,
  22132. default: void 0
  22133. },
  22134. arrow: {
  22135. type: Boolean,
  22136. default: !1
  22137. },
  22138. prefixCls: oe.string.def("rc-dropdown"),
  22139. transitionName: String,
  22140. overlayClassName: oe.string.def(""),
  22141. openClassName: String,
  22142. animation: oe.any,
  22143. align: oe.object,
  22144. overlayStyle: {
  22145. type: Object,
  22146. default: void 0
  22147. },
  22148. placement: oe.string.def("bottomLeft"),
  22149. overlay: oe.any,
  22150. trigger: oe.oneOfType([oe.string, oe.arrayOf(oe.string)]).def("hover"),
  22151. alignPoint: {
  22152. type: Boolean,
  22153. default: void 0
  22154. },
  22155. showAction: oe.array,
  22156. hideAction: oe.array,
  22157. getPopupContainer: Function,
  22158. visible: {
  22159. type: Boolean,
  22160. default: void 0
  22161. },
  22162. defaultVisible: {
  22163. type: Boolean,
  22164. default: !1
  22165. },
  22166. mouseEnterDelay: oe.number.def(0.15),
  22167. mouseLeaveDelay: oe.number.def(0.1)
  22168. },
  22169. emits: ["visibleChange", "overlayClick"],
  22170. setup(t, e) {
  22171. let {
  22172. slots: n,
  22173. emit: r,
  22174. expose: i
  22175. } = e;
  22176. const a = ee(!!t.visible);
  22177. me(() => t.visible, (h) => {
  22178. h !== void 0 && (a.value = h);
  22179. });
  22180. const o = ee();
  22181. i({
  22182. triggerRef: o
  22183. });
  22184. const s = (h) => {
  22185. t.visible === void 0 && (a.value = !1), r("overlayClick", h);
  22186. }, l = (h) => {
  22187. t.visible === void 0 && (a.value = h), r("visibleChange", h);
  22188. }, u = () => {
  22189. var h;
  22190. const p = (h = n.overlay) === null || h === void 0 ? void 0 : h.call(n), v = {
  22191. prefixCls: `${t.prefixCls}-menu`,
  22192. onClick: s
  22193. };
  22194. return D(Wt, {
  22195. key: Mne
  22196. }, [t.arrow && D("div", {
  22197. class: `${t.prefixCls}-arrow`
  22198. }, null), xr(p, v, !1)]);
  22199. }, c = V(() => {
  22200. const {
  22201. minOverlayWidthMatchTrigger: h = !t.alignPoint
  22202. } = t;
  22203. return h;
  22204. }), f = () => {
  22205. var h;
  22206. const p = (h = n.default) === null || h === void 0 ? void 0 : h.call(n);
  22207. return a.value && p ? xr(p[0], {
  22208. class: t.openClassName || `${t.prefixCls}-open`
  22209. }, !1) : p;
  22210. }, d = V(() => !t.hideAction && t.trigger.indexOf("contextmenu") !== -1 ? ["click"] : t.hideAction);
  22211. return () => {
  22212. const {
  22213. prefixCls: h,
  22214. arrow: p,
  22215. showAction: v,
  22216. overlayStyle: g,
  22217. trigger: m,
  22218. placement: y,
  22219. align: _,
  22220. getPopupContainer: O,
  22221. transitionName: S,
  22222. animation: x,
  22223. overlayClassName: C
  22224. } = t, P = q3e(t, ["prefixCls", "arrow", "showAction", "overlayStyle", "trigger", "placement", "align", "getPopupContainer", "transitionName", "animation", "overlayClassName"]);
  22225. return D(E2, te(te({}, P), {}, {
  22226. prefixCls: h,
  22227. ref: o,
  22228. popupClassName: Re(C, {
  22229. [`${h}-show-arrow`]: p
  22230. }),
  22231. popupStyle: g,
  22232. builtinPlacements: Y3e,
  22233. action: m,
  22234. showAction: v,
  22235. hideAction: d.value || [],
  22236. popupPlacement: y,
  22237. popupAlign: _,
  22238. popupTransitionName: S,
  22239. popupAnimation: x,
  22240. popupVisible: a.value,
  22241. stretch: c.value ? "minWidth" : "",
  22242. onPopupVisibleChange: l,
  22243. getPopupContainer: O
  22244. }), {
  22245. popup: u,
  22246. default: f
  22247. });
  22248. };
  22249. }
  22250. }), J3e = (t) => {
  22251. const {
  22252. componentCls: e,
  22253. colorPrimary: n
  22254. } = t;
  22255. return {
  22256. [e]: {
  22257. position: "absolute",
  22258. background: "transparent",
  22259. pointerEvents: "none",
  22260. boxSizing: "border-box",
  22261. color: `var(--wave-color, ${n})`,
  22262. boxShadow: "0 0 0 0 currentcolor",
  22263. opacity: 0.2,
  22264. // =================== Motion ===================
  22265. "&.wave-motion-appear": {
  22266. transition: [`box-shadow 0.4s ${t.motionEaseOutCirc}`, `opacity 2s ${t.motionEaseOutCirc}`].join(","),
  22267. "&-active": {
  22268. boxShadow: "0 0 0 6px currentcolor",
  22269. opacity: 0
  22270. }
  22271. }
  22272. }
  22273. };
  22274. }, e6e = pr("Wave", (t) => [J3e(t)]);
  22275. function t6e(t) {
  22276. const e = (t || "").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
  22277. return e && e[1] && e[2] && e[3] ? !(e[1] === e[2] && e[2] === e[3]) : !0;
  22278. }
  22279. function fE(t) {
  22280. return t && t !== "#fff" && t !== "#ffffff" && t !== "rgb(255, 255, 255)" && t !== "rgba(255, 255, 255, 1)" && t6e(t) && !/rgba\((?:\d*, ){3}0\)/.test(t) && // any transparent rgba color
  22281. t !== "transparent";
  22282. }
  22283. function n6e(t) {
  22284. const {
  22285. borderTopColor: e,
  22286. borderColor: n,
  22287. backgroundColor: r
  22288. } = getComputedStyle(t);
  22289. return fE(e) ? e : fE(n) ? n : fE(r) ? r : null;
  22290. }
  22291. function dE(t) {
  22292. return Number.isNaN(t) ? 0 : t;
  22293. }
  22294. const r6e = ae({
  22295. props: {
  22296. target: sn(),
  22297. className: String
  22298. },
  22299. setup(t) {
  22300. const e = ve(null), [n, r] = tr(null), [i, a] = tr([]), [o, s] = tr(0), [l, u] = tr(0), [c, f] = tr(0), [d, h] = tr(0), [p, v] = tr(!1);
  22301. function g() {
  22302. const {
  22303. target: C
  22304. } = t, P = getComputedStyle(C);
  22305. r(n6e(C));
  22306. const $ = P.position === "static", {
  22307. borderLeftWidth: T,
  22308. borderTopWidth: E
  22309. } = P;
  22310. s($ ? C.offsetLeft : dE(-parseFloat(T))), u($ ? C.offsetTop : dE(-parseFloat(E))), f(C.offsetWidth), h(C.offsetHeight);
  22311. const {
  22312. borderTopLeftRadius: M,
  22313. borderTopRightRadius: R,
  22314. borderBottomLeftRadius: N,
  22315. borderBottomRightRadius: I
  22316. } = P;
  22317. a([M, R, I, N].map((B) => dE(parseFloat(B))));
  22318. }
  22319. let m, y, _;
  22320. const O = () => {
  22321. clearTimeout(_), en.cancel(y), m == null || m.disconnect();
  22322. }, S = () => {
  22323. var C;
  22324. const P = (C = e.value) === null || C === void 0 ? void 0 : C.parentElement;
  22325. P && (Ih(null, P), P.parentElement && P.parentElement.removeChild(P));
  22326. };
  22327. _t(() => {
  22328. O(), _ = setTimeout(() => {
  22329. S();
  22330. }, 5e3);
  22331. const {
  22332. target: C
  22333. } = t;
  22334. C && (y = en(() => {
  22335. g(), v(!0);
  22336. }), typeof ResizeObserver < "u" && (m = new ResizeObserver(g), m.observe(C)));
  22337. }), Qt(() => {
  22338. O();
  22339. });
  22340. const x = (C) => {
  22341. C.propertyName === "opacity" && S();
  22342. };
  22343. return () => {
  22344. if (!p.value)
  22345. return null;
  22346. const C = {
  22347. left: `${o.value}px`,
  22348. top: `${l.value}px`,
  22349. width: `${c.value}px`,
  22350. height: `${d.value}px`,
  22351. borderRadius: i.value.map((P) => `${P}px`).join(" ")
  22352. };
  22353. return n && (C["--wave-color"] = n.value), D(mo, {
  22354. appear: !0,
  22355. name: "wave-motion",
  22356. appearFromClass: "wave-motion-appear",
  22357. appearActiveClass: "wave-motion-appear",
  22358. appearToClass: "wave-motion-appear wave-motion-appear-active"
  22359. }, {
  22360. default: () => [D("div", {
  22361. ref: e,
  22362. class: t.className,
  22363. style: C,
  22364. onTransitionend: x
  22365. }, null)]
  22366. });
  22367. };
  22368. }
  22369. });
  22370. function i6e(t, e) {
  22371. const n = document.createElement("div");
  22372. n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", t == null || t.insertBefore(n, t == null ? void 0 : t.firstChild), Ih(D(r6e, {
  22373. target: t,
  22374. className: e
  22375. }, null), n);
  22376. }
  22377. function a6e(t, e, n) {
  22378. function r() {
  22379. var i;
  22380. const a = xu(t);
  22381. !((i = n == null ? void 0 : n.value) === null || i === void 0) && i.disabled || !a || i6e(a, e.value);
  22382. }
  22383. return r;
  22384. }
  22385. const o6e = ae({
  22386. compatConfig: {
  22387. MODE: 3
  22388. },
  22389. name: "Wave",
  22390. props: {
  22391. disabled: Boolean
  22392. },
  22393. setup(t, e) {
  22394. let {
  22395. slots: n
  22396. } = e;
  22397. const r = In(), {
  22398. prefixCls: i,
  22399. wave: a
  22400. } = hn("wave", t), [, o] = e6e(i), s = a6e(r, V(() => Re(i.value, o.value)), a);
  22401. let l;
  22402. const u = () => {
  22403. xu(r).removeEventListener("click", l, !0);
  22404. };
  22405. return _t(() => {
  22406. me(() => t.disabled, () => {
  22407. u(), Bt(() => {
  22408. const c = xu(r);
  22409. c == null || c.removeEventListener("click", l, !0), !(!c || c.nodeType !== 1 || t.disabled) && (l = (f) => {
  22410. f.target.tagName === "INPUT" || !Hre(f.target) || // No need wave
  22411. !c.getAttribute || c.getAttribute("disabled") || c.disabled || c.className.includes("disabled") || c.className.includes("-leave") || s();
  22412. }, c.addEventListener("click", l, !0));
  22413. });
  22414. }, {
  22415. immediate: !0,
  22416. flush: "post"
  22417. });
  22418. }), Qt(() => {
  22419. u();
  22420. }), () => {
  22421. var c;
  22422. return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0];
  22423. };
  22424. }
  22425. });
  22426. function Cie(t) {
  22427. return t === "danger" ? {
  22428. danger: !0
  22429. } : {
  22430. type: t
  22431. };
  22432. }
  22433. const s6e = () => ({
  22434. prefixCls: String,
  22435. type: String,
  22436. htmlType: {
  22437. type: String,
  22438. default: "button"
  22439. },
  22440. shape: {
  22441. type: String
  22442. },
  22443. size: {
  22444. type: String
  22445. },
  22446. loading: {
  22447. type: [Boolean, Object],
  22448. default: () => !1
  22449. },
  22450. disabled: {
  22451. type: Boolean,
  22452. default: void 0
  22453. },
  22454. ghost: {
  22455. type: Boolean,
  22456. default: void 0
  22457. },
  22458. block: {
  22459. type: Boolean,
  22460. default: void 0
  22461. },
  22462. danger: {
  22463. type: Boolean,
  22464. default: void 0
  22465. },
  22466. icon: oe.any,
  22467. href: String,
  22468. target: String,
  22469. title: String,
  22470. onClick: Uw(),
  22471. onMousedown: Uw()
  22472. }), yQ = (t) => {
  22473. t && (t.style.width = "0px", t.style.opacity = "0", t.style.transform = "scale(0)");
  22474. }, bQ = (t) => {
  22475. Bt(() => {
  22476. t && (t.style.width = `${t.scrollWidth}px`, t.style.opacity = "1", t.style.transform = "scale(1)");
  22477. });
  22478. }, _Q = (t) => {
  22479. t && t.style && (t.style.width = null, t.style.opacity = null, t.style.transform = null);
  22480. }, l6e = ae({
  22481. compatConfig: {
  22482. MODE: 3
  22483. },
  22484. name: "LoadingIcon",
  22485. props: {
  22486. prefixCls: String,
  22487. loading: [Boolean, Object],
  22488. existIcon: Boolean
  22489. },
  22490. setup(t) {
  22491. return () => {
  22492. const {
  22493. existIcon: e,
  22494. prefixCls: n,
  22495. loading: r
  22496. } = t;
  22497. if (e)
  22498. return D("span", {
  22499. class: `${n}-loading-icon`
  22500. }, [D(Ql, null, null)]);
  22501. const i = !!r;
  22502. return D(mo, {
  22503. name: `${n}-loading-icon-motion`,
  22504. onBeforeEnter: yQ,
  22505. onEnter: bQ,
  22506. onAfterEnter: _Q,
  22507. onBeforeLeave: bQ,
  22508. onLeave: (a) => {
  22509. setTimeout(() => {
  22510. yQ(a);
  22511. });
  22512. },
  22513. onAfterLeave: _Q
  22514. }, {
  22515. default: () => [i ? D("span", {
  22516. class: `${n}-loading-icon`
  22517. }, [D(Ql, null, null)]) : null]
  22518. });
  22519. };
  22520. }
  22521. }), OQ = (t, e) => ({
  22522. // Border
  22523. [`> span, > ${t}`]: {
  22524. "&:not(:last-child)": {
  22525. [`&, & > ${t}`]: {
  22526. "&:not(:disabled)": {
  22527. borderInlineEndColor: e
  22528. }
  22529. }
  22530. },
  22531. "&:not(:first-child)": {
  22532. [`&, & > ${t}`]: {
  22533. "&:not(:disabled)": {
  22534. borderInlineStartColor: e
  22535. }
  22536. }
  22537. }
  22538. }
  22539. }), u6e = (t) => {
  22540. const {
  22541. componentCls: e,
  22542. fontSize: n,
  22543. lineWidth: r,
  22544. colorPrimaryHover: i,
  22545. colorErrorHover: a
  22546. } = t;
  22547. return {
  22548. [`${e}-group`]: [
  22549. {
  22550. position: "relative",
  22551. display: "inline-flex",
  22552. // Border
  22553. [`> span, > ${e}`]: {
  22554. "&:not(:last-child)": {
  22555. [`&, & > ${e}`]: {
  22556. borderStartEndRadius: 0,
  22557. borderEndEndRadius: 0
  22558. }
  22559. },
  22560. "&:not(:first-child)": {
  22561. marginInlineStart: -r,
  22562. [`&, & > ${e}`]: {
  22563. borderStartStartRadius: 0,
  22564. borderEndStartRadius: 0
  22565. }
  22566. }
  22567. },
  22568. [e]: {
  22569. position: "relative",
  22570. zIndex: 1,
  22571. "&:hover,\n &:focus,\n &:active": {
  22572. zIndex: 2
  22573. },
  22574. "&[disabled]": {
  22575. zIndex: 0
  22576. }
  22577. },
  22578. [`${e}-icon-only`]: {
  22579. fontSize: n
  22580. }
  22581. },
  22582. // Border Color
  22583. OQ(`${e}-primary`, i),
  22584. OQ(`${e}-danger`, a)
  22585. ]
  22586. };
  22587. };
  22588. function c6e(t, e) {
  22589. return {
  22590. // border collapse
  22591. [`&-item:not(${e}-last-item)`]: {
  22592. marginBottom: -t.lineWidth
  22593. },
  22594. "&-item": {
  22595. "&:hover,&:focus,&:active": {
  22596. zIndex: 2
  22597. },
  22598. "&[disabled]": {
  22599. zIndex: 0
  22600. }
  22601. }
  22602. };
  22603. }
  22604. function f6e(t, e) {
  22605. return {
  22606. [`&-item:not(${e}-first-item):not(${e}-last-item)`]: {
  22607. borderRadius: 0
  22608. },
  22609. [`&-item${e}-first-item:not(${e}-last-item)`]: {
  22610. [`&, &${t}-sm, &${t}-lg`]: {
  22611. borderEndEndRadius: 0,
  22612. borderEndStartRadius: 0
  22613. }
  22614. },
  22615. [`&-item${e}-last-item:not(${e}-first-item)`]: {
  22616. [`&, &${t}-sm, &${t}-lg`]: {
  22617. borderStartStartRadius: 0,
  22618. borderStartEndRadius: 0
  22619. }
  22620. }
  22621. };
  22622. }
  22623. function d6e(t) {
  22624. const e = `${t.componentCls}-compact-vertical`;
  22625. return {
  22626. [e]: k(k({}, c6e(t, e)), f6e(t.componentCls, e))
  22627. };
  22628. }
  22629. const h6e = (t) => {
  22630. const {
  22631. componentCls: e,
  22632. iconCls: n
  22633. } = t;
  22634. return {
  22635. [e]: {
  22636. outline: "none",
  22637. position: "relative",
  22638. display: "inline-block",
  22639. fontWeight: 400,
  22640. whiteSpace: "nowrap",
  22641. textAlign: "center",
  22642. backgroundImage: "none",
  22643. backgroundColor: "transparent",
  22644. border: `${t.lineWidth}px ${t.lineType} transparent`,
  22645. cursor: "pointer",
  22646. transition: `all ${t.motionDurationMid} ${t.motionEaseInOut}`,
  22647. userSelect: "none",
  22648. touchAction: "manipulation",
  22649. lineHeight: t.lineHeight,
  22650. color: t.colorText,
  22651. "> span": {
  22652. display: "inline-block"
  22653. },
  22654. // Leave a space between icon and text.
  22655. [`> ${n} + span, > span + ${n}`]: {
  22656. marginInlineStart: t.marginXS
  22657. },
  22658. "> a": {
  22659. color: "currentColor"
  22660. },
  22661. "&:not(:disabled)": k({}, T2(t)),
  22662. // make `btn-icon-only` not too narrow
  22663. [`&-icon-only${e}-compact-item`]: {
  22664. flex: "none"
  22665. },
  22666. // Special styles for Primary Button
  22667. [`&-compact-item${e}-primary`]: {
  22668. [`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]: {
  22669. position: "relative",
  22670. "&:before": {
  22671. position: "absolute",
  22672. top: -t.lineWidth,
  22673. insetInlineStart: -t.lineWidth,
  22674. display: "inline-block",
  22675. width: t.lineWidth,
  22676. height: `calc(100% + ${t.lineWidth * 2}px)`,
  22677. backgroundColor: t.colorPrimaryHover,
  22678. content: '""'
  22679. }
  22680. }
  22681. },
  22682. // Special styles for Primary Button
  22683. "&-compact-vertical-item": {
  22684. [`&${e}-primary`]: {
  22685. [`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]: {
  22686. position: "relative",
  22687. "&:before": {
  22688. position: "absolute",
  22689. top: -t.lineWidth,
  22690. insetInlineStart: -t.lineWidth,
  22691. display: "inline-block",
  22692. width: `calc(100% + ${t.lineWidth * 2}px)`,
  22693. height: t.lineWidth,
  22694. backgroundColor: t.colorPrimaryHover,
  22695. content: '""'
  22696. }
  22697. }
  22698. }
  22699. }
  22700. }
  22701. };
  22702. }, Bu = (t, e) => ({
  22703. "&:not(:disabled)": {
  22704. "&:hover": t,
  22705. "&:active": e
  22706. }
  22707. }), p6e = (t) => ({
  22708. minWidth: t.controlHeight,
  22709. paddingInlineStart: 0,
  22710. paddingInlineEnd: 0,
  22711. borderRadius: "50%"
  22712. }), v6e = (t) => ({
  22713. borderRadius: t.controlHeight,
  22714. paddingInlineStart: t.controlHeight / 2,
  22715. paddingInlineEnd: t.controlHeight / 2
  22716. }), IR = (t) => ({
  22717. cursor: "not-allowed",
  22718. borderColor: t.colorBorder,
  22719. color: t.colorTextDisabled,
  22720. backgroundColor: t.colorBgContainerDisabled,
  22721. boxShadow: "none"
  22722. }), aC = (t, e, n, r, i, a, o) => ({
  22723. [`&${t}-background-ghost`]: k(k({
  22724. color: e || void 0,
  22725. backgroundColor: "transparent",
  22726. borderColor: n || void 0,
  22727. boxShadow: "none"
  22728. }, Bu(k({
  22729. backgroundColor: "transparent"
  22730. }, a), k({
  22731. backgroundColor: "transparent"
  22732. }, o))), {
  22733. "&:disabled": {
  22734. cursor: "not-allowed",
  22735. color: r || void 0,
  22736. borderColor: i || void 0
  22737. }
  22738. })
  22739. }), b8 = (t) => ({
  22740. "&:disabled": k({}, IR(t))
  22741. }), Tie = (t) => k({}, b8(t)), oC = (t) => ({
  22742. "&:disabled": {
  22743. cursor: "not-allowed",
  22744. color: t.colorTextDisabled
  22745. }
  22746. }), Pie = (t) => k(k(k(k(k({}, Tie(t)), {
  22747. backgroundColor: t.colorBgContainer,
  22748. borderColor: t.colorBorder,
  22749. boxShadow: `0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`
  22750. }), Bu({
  22751. color: t.colorPrimaryHover,
  22752. borderColor: t.colorPrimaryHover
  22753. }, {
  22754. color: t.colorPrimaryActive,
  22755. borderColor: t.colorPrimaryActive
  22756. })), aC(t.componentCls, t.colorBgContainer, t.colorBgContainer, t.colorTextDisabled, t.colorBorder)), {
  22757. [`&${t.componentCls}-dangerous`]: k(k(k({
  22758. color: t.colorError,
  22759. borderColor: t.colorError
  22760. }, Bu({
  22761. color: t.colorErrorHover,
  22762. borderColor: t.colorErrorBorderHover
  22763. }, {
  22764. color: t.colorErrorActive,
  22765. borderColor: t.colorErrorActive
  22766. })), aC(t.componentCls, t.colorError, t.colorError, t.colorTextDisabled, t.colorBorder)), b8(t))
  22767. }), g6e = (t) => k(k(k(k(k({}, Tie(t)), {
  22768. color: t.colorTextLightSolid,
  22769. backgroundColor: t.colorPrimary,
  22770. boxShadow: `0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`
  22771. }), Bu({
  22772. color: t.colorTextLightSolid,
  22773. backgroundColor: t.colorPrimaryHover
  22774. }, {
  22775. color: t.colorTextLightSolid,
  22776. backgroundColor: t.colorPrimaryActive
  22777. })), aC(t.componentCls, t.colorPrimary, t.colorPrimary, t.colorTextDisabled, t.colorBorder, {
  22778. color: t.colorPrimaryHover,
  22779. borderColor: t.colorPrimaryHover
  22780. }, {
  22781. color: t.colorPrimaryActive,
  22782. borderColor: t.colorPrimaryActive
  22783. })), {
  22784. [`&${t.componentCls}-dangerous`]: k(k(k({
  22785. backgroundColor: t.colorError,
  22786. boxShadow: `0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`
  22787. }, Bu({
  22788. backgroundColor: t.colorErrorHover
  22789. }, {
  22790. backgroundColor: t.colorErrorActive
  22791. })), aC(t.componentCls, t.colorError, t.colorError, t.colorTextDisabled, t.colorBorder, {
  22792. color: t.colorErrorHover,
  22793. borderColor: t.colorErrorHover
  22794. }, {
  22795. color: t.colorErrorActive,
  22796. borderColor: t.colorErrorActive
  22797. })), b8(t))
  22798. }), m6e = (t) => k(k({}, Pie(t)), {
  22799. borderStyle: "dashed"
  22800. }), y6e = (t) => k(k(k({
  22801. color: t.colorLink
  22802. }, Bu({
  22803. color: t.colorLinkHover
  22804. }, {
  22805. color: t.colorLinkActive
  22806. })), oC(t)), {
  22807. [`&${t.componentCls}-dangerous`]: k(k({
  22808. color: t.colorError
  22809. }, Bu({
  22810. color: t.colorErrorHover
  22811. }, {
  22812. color: t.colorErrorActive
  22813. })), oC(t))
  22814. }), b6e = (t) => k(k(k({}, Bu({
  22815. color: t.colorText,
  22816. backgroundColor: t.colorBgTextHover
  22817. }, {
  22818. color: t.colorText,
  22819. backgroundColor: t.colorBgTextActive
  22820. })), oC(t)), {
  22821. [`&${t.componentCls}-dangerous`]: k(k({
  22822. color: t.colorError
  22823. }, oC(t)), Bu({
  22824. color: t.colorErrorHover,
  22825. backgroundColor: t.colorErrorBg
  22826. }, {
  22827. color: t.colorErrorHover,
  22828. backgroundColor: t.colorErrorBg
  22829. }))
  22830. }), _6e = (t) => k(k({}, IR(t)), {
  22831. [`&${t.componentCls}:hover`]: k({}, IR(t))
  22832. }), O6e = (t) => {
  22833. const {
  22834. componentCls: e
  22835. } = t;
  22836. return {
  22837. [`${e}-default`]: Pie(t),
  22838. [`${e}-primary`]: g6e(t),
  22839. [`${e}-dashed`]: m6e(t),
  22840. [`${e}-link`]: y6e(t),
  22841. [`${e}-text`]: b6e(t),
  22842. [`${e}-disabled`]: _6e(t)
  22843. };
  22844. }, _8 = function(t) {
  22845. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
  22846. const {
  22847. componentCls: n,
  22848. iconCls: r,
  22849. controlHeight: i,
  22850. fontSize: a,
  22851. lineHeight: o,
  22852. lineWidth: s,
  22853. borderRadius: l,
  22854. buttonPaddingHorizontal: u
  22855. } = t, c = Math.max(0, (i - a * o) / 2 - s), f = u - s, d = `${n}-icon-only`;
  22856. return [
  22857. // Size
  22858. {
  22859. [`${n}${e}`]: {
  22860. fontSize: a,
  22861. height: i,
  22862. padding: `${c}px ${f}px`,
  22863. borderRadius: l,
  22864. [`&${d}`]: {
  22865. width: i,
  22866. paddingInlineStart: 0,
  22867. paddingInlineEnd: 0,
  22868. [`&${n}-round`]: {
  22869. width: "auto"
  22870. },
  22871. "> span": {
  22872. transform: "scale(1.143)"
  22873. // 14px -> 16px
  22874. }
  22875. },
  22876. // Loading
  22877. [`&${n}-loading`]: {
  22878. opacity: t.opacityLoading,
  22879. cursor: "default"
  22880. },
  22881. [`${n}-loading-icon`]: {
  22882. transition: `width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`
  22883. },
  22884. [`&:not(${d}) ${n}-loading-icon > ${r}`]: {
  22885. marginInlineEnd: t.marginXS
  22886. }
  22887. }
  22888. },
  22889. // Shape - patch prefixCls again to override solid border radius style
  22890. {
  22891. [`${n}${n}-circle${e}`]: p6e(t)
  22892. },
  22893. {
  22894. [`${n}${n}-round${e}`]: v6e(t)
  22895. }
  22896. ];
  22897. }, S6e = (t) => _8(t), x6e = (t) => {
  22898. const e = bn(t, {
  22899. controlHeight: t.controlHeightSM,
  22900. padding: t.paddingXS,
  22901. buttonPaddingHorizontal: 8,
  22902. borderRadius: t.borderRadiusSM
  22903. });
  22904. return _8(e, `${t.componentCls}-sm`);
  22905. }, w6e = (t) => {
  22906. const e = bn(t, {
  22907. controlHeight: t.controlHeightLG,
  22908. fontSize: t.fontSizeLG,
  22909. borderRadius: t.borderRadiusLG
  22910. });
  22911. return _8(e, `${t.componentCls}-lg`);
  22912. }, C6e = (t) => {
  22913. const {
  22914. componentCls: e
  22915. } = t;
  22916. return {
  22917. [e]: {
  22918. [`&${e}-block`]: {
  22919. width: "100%"
  22920. }
  22921. }
  22922. };
  22923. }, T6e = pr("Button", (t) => {
  22924. const {
  22925. controlTmpOutline: e,
  22926. paddingContentHorizontal: n
  22927. } = t, r = bn(t, {
  22928. colorOutlineDefault: e,
  22929. buttonPaddingHorizontal: n
  22930. });
  22931. return [
  22932. // Shared
  22933. h6e(r),
  22934. // Size
  22935. x6e(r),
  22936. S6e(r),
  22937. w6e(r),
  22938. // Block
  22939. C6e(r),
  22940. // Group (type, ghost, danger, disabled, loading)
  22941. O6e(r),
  22942. // Button Group
  22943. u6e(r),
  22944. // Space Compact
  22945. z2(t, {
  22946. focus: !1
  22947. }),
  22948. d6e(t)
  22949. ];
  22950. }), P6e = () => ({
  22951. prefixCls: String,
  22952. size: {
  22953. type: String
  22954. }
  22955. }), $ie = h8(), DR = ae({
  22956. compatConfig: {
  22957. MODE: 3
  22958. },
  22959. name: "AButtonGroup",
  22960. props: P6e(),
  22961. setup(t, e) {
  22962. let {
  22963. slots: n
  22964. } = e;
  22965. const {
  22966. prefixCls: r,
  22967. direction: i
  22968. } = hn("btn-group", t), [, , a] = pm();
  22969. $ie.useProvide(zn({
  22970. size: V(() => t.size)
  22971. }));
  22972. const o = V(() => {
  22973. const {
  22974. size: s
  22975. } = t;
  22976. let l = "";
  22977. switch (s) {
  22978. case "large":
  22979. l = "lg";
  22980. break;
  22981. case "small":
  22982. l = "sm";
  22983. break;
  22984. case "middle":
  22985. case void 0:
  22986. break;
  22987. default:
  22988. lo(!s, "Button.Group", "Invalid prop `size`.");
  22989. }
  22990. return {
  22991. [`${r.value}`]: !0,
  22992. [`${r.value}-${l}`]: l,
  22993. [`${r.value}-rtl`]: i.value === "rtl",
  22994. [a.value]: !0
  22995. };
  22996. });
  22997. return () => {
  22998. var s;
  22999. return D("div", {
  23000. class: o.value
  23001. }, [qr((s = n.default) === null || s === void 0 ? void 0 : s.call(n))]);
  23002. };
  23003. }
  23004. }), SQ = /^[\u4e00-\u9fa5]{2}$/, xQ = SQ.test.bind(SQ);
  23005. function JO(t) {
  23006. return t === "text" || t === "link";
  23007. }
  23008. const Vi = ae({
  23009. compatConfig: {
  23010. MODE: 3
  23011. },
  23012. name: "AButton",
  23013. inheritAttrs: !1,
  23014. __ANT_BUTTON: !0,
  23015. props: li(s6e(), {
  23016. type: "default"
  23017. }),
  23018. slots: Object,
  23019. // emits: ['click', 'mousedown'],
  23020. setup(t, e) {
  23021. let {
  23022. slots: n,
  23023. attrs: r,
  23024. emit: i,
  23025. expose: a
  23026. } = e;
  23027. const {
  23028. prefixCls: o,
  23029. autoInsertSpaceInButton: s,
  23030. direction: l,
  23031. size: u
  23032. } = hn("btn", t), [c, f] = T6e(o), d = $ie.useInject(), h = Vl(), p = V(() => {
  23033. var I;
  23034. return (I = t.disabled) !== null && I !== void 0 ? I : h.value;
  23035. }), v = ve(null), g = ve(void 0);
  23036. let m = !1;
  23037. const y = ve(!1), _ = ve(!1), O = V(() => s.value !== !1), {
  23038. compactSize: S,
  23039. compactItemClassnames: x
  23040. } = L2(o, l), C = V(() => typeof t.loading == "object" && t.loading.delay ? t.loading.delay || !0 : !!t.loading);
  23041. me(C, (I) => {
  23042. clearTimeout(g.value), typeof C.value == "number" ? g.value = setTimeout(() => {
  23043. y.value = I;
  23044. }, C.value) : y.value = I;
  23045. }, {
  23046. immediate: !0
  23047. });
  23048. const P = V(() => {
  23049. const {
  23050. type: I,
  23051. shape: B = "default",
  23052. ghost: Q,
  23053. block: W,
  23054. danger: H
  23055. } = t, U = o.value, j = {
  23056. large: "lg",
  23057. small: "sm",
  23058. middle: void 0
  23059. }, Y = S.value || (d == null ? void 0 : d.size) || u.value, ne = Y && j[Y] || "";
  23060. return [x.value, {
  23061. [f.value]: !0,
  23062. [`${U}`]: !0,
  23063. [`${U}-${B}`]: B !== "default" && B,
  23064. [`${U}-${I}`]: I,
  23065. [`${U}-${ne}`]: ne,
  23066. [`${U}-loading`]: y.value,
  23067. [`${U}-background-ghost`]: Q && !JO(I),
  23068. [`${U}-two-chinese-chars`]: _.value && O.value,
  23069. [`${U}-block`]: W,
  23070. [`${U}-dangerous`]: !!H,
  23071. [`${U}-rtl`]: l.value === "rtl"
  23072. }];
  23073. }), $ = () => {
  23074. const I = v.value;
  23075. if (!I || s.value === !1)
  23076. return;
  23077. const B = I.textContent;
  23078. m && xQ(B) ? _.value || (_.value = !0) : _.value && (_.value = !1);
  23079. }, T = (I) => {
  23080. if (y.value || p.value) {
  23081. I.preventDefault();
  23082. return;
  23083. }
  23084. i("click", I);
  23085. }, E = (I) => {
  23086. i("mousedown", I);
  23087. }, M = (I, B) => {
  23088. const Q = B ? " " : "";
  23089. if (I.type === KT) {
  23090. let W = I.children.trim();
  23091. return xQ(W) && (W = W.split("").join(Q)), D("span", null, [W]);
  23092. }
  23093. return I;
  23094. };
  23095. return Vt(() => {
  23096. lo(!(t.ghost && JO(t.type)), "Button", "`link` or `text` button can't be a `ghost` button.");
  23097. }), _t($), rp($), Qt(() => {
  23098. g.value && clearTimeout(g.value);
  23099. }), a({
  23100. focus: () => {
  23101. var I;
  23102. (I = v.value) === null || I === void 0 || I.focus();
  23103. },
  23104. blur: () => {
  23105. var I;
  23106. (I = v.value) === null || I === void 0 || I.blur();
  23107. }
  23108. }), () => {
  23109. var I, B;
  23110. const {
  23111. icon: Q = (I = n.icon) === null || I === void 0 ? void 0 : I.call(n)
  23112. } = t, W = qr((B = n.default) === null || B === void 0 ? void 0 : B.call(n));
  23113. m = W.length === 1 && !Q && !JO(t.type);
  23114. const {
  23115. type: H,
  23116. htmlType: U,
  23117. href: j,
  23118. title: Y,
  23119. target: ne
  23120. } = t, fe = y.value ? "loading" : Q, ue = k(k({}, r), {
  23121. title: Y,
  23122. disabled: p.value,
  23123. class: [P.value, r.class, {
  23124. [`${o.value}-icon-only`]: W.length === 0 && !!fe
  23125. }],
  23126. onClick: T,
  23127. onMousedown: E
  23128. });
  23129. p.value || delete ue.disabled;
  23130. const ye = Q && !y.value ? Q : D(l6e, {
  23131. existIcon: !!Q,
  23132. prefixCls: o.value,
  23133. loading: !!y.value
  23134. }, null), se = W.map((re) => M(re, m && O.value));
  23135. if (j !== void 0)
  23136. return c(D("a", te(te({}, ue), {}, {
  23137. href: j,
  23138. target: ne,
  23139. ref: v
  23140. }), [ye, se]));
  23141. let he = D("button", te(te({}, ue), {}, {
  23142. ref: v,
  23143. type: U
  23144. }), [ye, se]);
  23145. if (!JO(H)) {
  23146. const re = /* @__PURE__ */ function() {
  23147. return he;
  23148. }();
  23149. he = D(o6e, {
  23150. ref: "wave",
  23151. disabled: !!y.value
  23152. }, {
  23153. default: () => [re]
  23154. });
  23155. }
  23156. return c(he);
  23157. };
  23158. }
  23159. });
  23160. Vi.Group = DR;
  23161. Vi.install = function(t) {
  23162. return t.component(Vi.name, Vi), t.component(DR.name, DR), t;
  23163. };
  23164. var $6e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" };
  23165. function wQ(t) {
  23166. for (var e = 1; e < arguments.length; e++) {
  23167. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  23168. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  23169. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  23170. }))), r.forEach(function(i) {
  23171. A6e(t, i, n[i]);
  23172. });
  23173. }
  23174. return t;
  23175. }
  23176. function A6e(t, e, n) {
  23177. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  23178. }
  23179. var W2 = function(e, n) {
  23180. var r = wQ({}, e, n.attrs);
  23181. return D(Rt, wQ({}, r, {
  23182. icon: $6e
  23183. }), null);
  23184. };
  23185. W2.displayName = "EllipsisOutlined";
  23186. W2.inheritAttrs = !1;
  23187. var E6e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
  23188. function CQ(t) {
  23189. for (var e = 1; e < arguments.length; e++) {
  23190. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  23191. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  23192. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  23193. }))), r.forEach(function(i) {
  23194. M6e(t, i, n[i]);
  23195. });
  23196. }
  23197. return t;
  23198. }
  23199. function M6e(t, e, n) {
  23200. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  23201. }
  23202. var Q2 = function(e, n) {
  23203. var r = CQ({}, e, n.attrs);
  23204. return D(Rt, CQ({}, r, {
  23205. icon: E6e
  23206. }), null);
  23207. };
  23208. Q2.displayName = "RightOutlined";
  23209. Q2.inheritAttrs = !1;
  23210. const Aie = Symbol("OverrideContextKey"), Eie = () => et(Aie, void 0), I6e = (t) => {
  23211. var e, n, r;
  23212. const {
  23213. prefixCls: i,
  23214. mode: a,
  23215. selectable: o,
  23216. validator: s,
  23217. onClick: l,
  23218. expandIcon: u
  23219. } = Eie() || {};
  23220. Et(Aie, {
  23221. prefixCls: V(() => {
  23222. var c, f;
  23223. return (f = (c = t.prefixCls) === null || c === void 0 ? void 0 : c.value) !== null && f !== void 0 ? f : i == null ? void 0 : i.value;
  23224. }),
  23225. mode: V(() => {
  23226. var c, f;
  23227. return (f = (c = t.mode) === null || c === void 0 ? void 0 : c.value) !== null && f !== void 0 ? f : a == null ? void 0 : a.value;
  23228. }),
  23229. selectable: V(() => {
  23230. var c, f;
  23231. return (f = (c = t.selectable) === null || c === void 0 ? void 0 : c.value) !== null && f !== void 0 ? f : o == null ? void 0 : o.value;
  23232. }),
  23233. validator: (e = t.validator) !== null && e !== void 0 ? e : s,
  23234. onClick: (n = t.onClick) !== null && n !== void 0 ? n : l,
  23235. expandIcon: (r = t.expandIcon) !== null && r !== void 0 ? r : u == null ? void 0 : u.value
  23236. });
  23237. };
  23238. function D6e(t, e, n, r) {
  23239. let i;
  23240. if (i !== void 0)
  23241. return !!i;
  23242. if (t === e)
  23243. return !0;
  23244. if (typeof t != "object" || !t || typeof e != "object" || !e)
  23245. return !1;
  23246. const a = Object.keys(t), o = Object.keys(e);
  23247. if (a.length !== o.length)
  23248. return !1;
  23249. const s = Object.prototype.hasOwnProperty.bind(e);
  23250. for (let l = 0; l < a.length; l++) {
  23251. const u = a[l];
  23252. if (!s(u))
  23253. return !1;
  23254. const c = t[u], f = e[u];
  23255. if (i = void 0, i === !1 || i === void 0 && c !== f)
  23256. return !1;
  23257. }
  23258. return !0;
  23259. }
  23260. function O0(t, e) {
  23261. return D6e(es(t), es(e));
  23262. }
  23263. const Mie = Symbol("menuContextKey"), Iie = (t) => {
  23264. Et(Mie, t);
  23265. }, nc = () => et(Mie), Die = Symbol("ForceRenderKey"), R6e = (t) => {
  23266. Et(Die, t);
  23267. }, Rie = () => et(Die, !1), kie = Symbol("menuFirstLevelContextKey"), Lie = (t) => {
  23268. Et(kie, t);
  23269. }, k6e = () => et(kie, !0), sC = ae({
  23270. compatConfig: {
  23271. MODE: 3
  23272. },
  23273. name: "MenuContextProvider",
  23274. inheritAttrs: !1,
  23275. props: {
  23276. mode: {
  23277. type: String,
  23278. default: void 0
  23279. },
  23280. overflowDisabled: {
  23281. type: Boolean,
  23282. default: void 0
  23283. }
  23284. },
  23285. setup(t, e) {
  23286. let {
  23287. slots: n
  23288. } = e;
  23289. const r = nc(), i = k({}, r);
  23290. return t.mode !== void 0 && (i.mode = Lr(t, "mode")), t.overflowDisabled !== void 0 && (i.overflowDisabled = Lr(t, "overflowDisabled")), Iie(i), () => {
  23291. var a;
  23292. return (a = n.default) === null || a === void 0 ? void 0 : a.call(n);
  23293. };
  23294. }
  23295. }), L6e = Iie, N6e = Symbol("siderCollapsed"), eS = "$$__vc-menu-more__key", Nie = Symbol("KeyPathContext"), O8 = () => et(Nie, {
  23296. parentEventKeys: V(() => []),
  23297. parentKeys: V(() => []),
  23298. parentInfo: {}
  23299. }), B6e = (t, e, n) => {
  23300. const {
  23301. parentEventKeys: r,
  23302. parentKeys: i
  23303. } = O8(), a = V(() => [...r.value, t]), o = V(() => [...i.value, e]);
  23304. return Et(Nie, {
  23305. parentEventKeys: a,
  23306. parentKeys: o,
  23307. parentInfo: n
  23308. }), o;
  23309. }, Bie = Symbol("measure"), TQ = ae({
  23310. compatConfig: {
  23311. MODE: 3
  23312. },
  23313. setup(t, e) {
  23314. let {
  23315. slots: n
  23316. } = e;
  23317. return Et(Bie, !0), () => {
  23318. var r;
  23319. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  23320. };
  23321. }
  23322. }), S8 = () => et(Bie, !1), z6e = B6e;
  23323. function zie(t) {
  23324. const {
  23325. mode: e,
  23326. rtl: n,
  23327. inlineIndent: r
  23328. } = nc();
  23329. return V(() => e.value !== "inline" ? null : n.value ? {
  23330. paddingRight: `${t.value * r.value}px`
  23331. } : {
  23332. paddingLeft: `${t.value * r.value}px`
  23333. });
  23334. }
  23335. let V6e = 0;
  23336. const F6e = () => ({
  23337. id: String,
  23338. role: String,
  23339. disabled: Boolean,
  23340. danger: Boolean,
  23341. title: {
  23342. type: [String, Boolean],
  23343. default: void 0
  23344. },
  23345. icon: oe.any,
  23346. onMouseenter: Function,
  23347. onMouseleave: Function,
  23348. onClick: Function,
  23349. onKeydown: Function,
  23350. onFocus: Function,
  23351. // Internal user prop
  23352. originItemValue: sn()
  23353. }), Lg = ae({
  23354. compatConfig: {
  23355. MODE: 3
  23356. },
  23357. name: "AMenuItem",
  23358. inheritAttrs: !1,
  23359. props: F6e(),
  23360. slots: Object,
  23361. setup(t, e) {
  23362. let {
  23363. slots: n,
  23364. emit: r,
  23365. attrs: i
  23366. } = e;
  23367. const a = In(), o = S8(), s = typeof a.vnode.key == "symbol" ? String(a.vnode.key) : a.vnode.key;
  23368. lo(typeof a.vnode.key != "symbol", "MenuItem", `MenuItem \`:key="${String(s)}"\` not support Symbol type`);
  23369. const l = `menu_item_${++V6e}_$$_${s}`, {
  23370. parentEventKeys: u,
  23371. parentKeys: c
  23372. } = O8(), {
  23373. prefixCls: f,
  23374. activeKeys: d,
  23375. disabled: h,
  23376. changeActiveKeys: p,
  23377. rtl: v,
  23378. inlineCollapsed: g,
  23379. siderCollapsed: m,
  23380. onItemClick: y,
  23381. selectedKeys: _,
  23382. registerMenuInfo: O,
  23383. unRegisterMenuInfo: S
  23384. } = nc(), x = k6e(), C = ve(!1), P = V(() => [...c.value, s]);
  23385. O(l, {
  23386. eventKey: l,
  23387. key: s,
  23388. parentEventKeys: u,
  23389. parentKeys: c,
  23390. isLeaf: !0
  23391. }), Qt(() => {
  23392. S(l);
  23393. }), me(d, () => {
  23394. C.value = !!d.value.find((j) => j === s);
  23395. }, {
  23396. immediate: !0
  23397. });
  23398. const T = V(() => h.value || t.disabled), E = V(() => _.value.includes(s)), M = V(() => {
  23399. const j = `${f.value}-item`;
  23400. return {
  23401. [`${j}`]: !0,
  23402. [`${j}-danger`]: t.danger,
  23403. [`${j}-active`]: C.value,
  23404. [`${j}-selected`]: E.value,
  23405. [`${j}-disabled`]: T.value
  23406. };
  23407. }), R = (j) => ({
  23408. key: s,
  23409. eventKey: l,
  23410. keyPath: P.value,
  23411. eventKeyPath: [...u.value, l],
  23412. domEvent: j,
  23413. item: k(k({}, t), i)
  23414. }), N = (j) => {
  23415. if (T.value)
  23416. return;
  23417. const Y = R(j);
  23418. r("click", j), y(Y);
  23419. }, I = (j) => {
  23420. T.value || (p(P.value), r("mouseenter", j));
  23421. }, B = (j) => {
  23422. T.value || (p([]), r("mouseleave", j));
  23423. }, Q = (j) => {
  23424. if (r("keydown", j), j.which === Me.ENTER) {
  23425. const Y = R(j);
  23426. r("click", j), y(Y);
  23427. }
  23428. }, W = (j) => {
  23429. p(P.value), r("focus", j);
  23430. }, H = (j, Y) => {
  23431. const ne = D("span", {
  23432. class: `${f.value}-title-content`
  23433. }, [Y]);
  23434. return (!j || po(Y) && Y.type === "span") && Y && g.value && x && typeof Y == "string" ? D("div", {
  23435. class: `${f.value}-inline-collapsed-noicon`
  23436. }, [Y.charAt(0)]) : ne;
  23437. }, U = zie(V(() => P.value.length));
  23438. return () => {
  23439. var j, Y, ne, fe, ue;
  23440. if (o) return null;
  23441. const ye = (j = t.title) !== null && j !== void 0 ? j : (Y = n.title) === null || Y === void 0 ? void 0 : Y.call(n), se = qr((ne = n.default) === null || ne === void 0 ? void 0 : ne.call(n)), he = se.length;
  23442. let re = ye;
  23443. typeof ye > "u" ? re = x && he ? se : "" : ye === !1 && (re = "");
  23444. const q = {
  23445. title: re
  23446. };
  23447. !m.value && !g.value && (q.title = null, q.open = !1);
  23448. const K = {};
  23449. t.role === "option" && (K["aria-selected"] = E.value);
  23450. const de = (fe = t.icon) !== null && fe !== void 0 ? fe : (ue = n.icon) === null || ue === void 0 ? void 0 : ue.call(n, t);
  23451. return D(F2, te(te({}, q), {}, {
  23452. placement: v.value ? "left" : "right",
  23453. overlayClassName: `${f.value}-inline-collapsed-tooltip`
  23454. }), {
  23455. default: () => [D(Au.Item, te(te(te({
  23456. component: "li"
  23457. }, i), {}, {
  23458. id: t.id,
  23459. style: k(k({}, i.style || {}), U.value),
  23460. class: [M.value, {
  23461. [`${i.class}`]: !!i.class,
  23462. [`${f.value}-item-only-child`]: (de ? he + 1 : he) === 1
  23463. }],
  23464. role: t.role || "menuitem",
  23465. tabindex: t.disabled ? null : -1,
  23466. "data-menu-id": s,
  23467. "aria-disabled": t.disabled
  23468. }, K), {}, {
  23469. onMouseenter: I,
  23470. onMouseleave: B,
  23471. onClick: N,
  23472. onKeydown: Q,
  23473. onFocus: W,
  23474. title: typeof ye == "string" ? ye : void 0
  23475. }), {
  23476. default: () => [xr(typeof de == "function" ? de(t.originItemValue) : de, {
  23477. class: `${f.value}-item-icon`
  23478. }, !1), H(de, se)]
  23479. })]
  23480. });
  23481. };
  23482. }
  23483. }), Fc = {
  23484. adjustX: 1,
  23485. adjustY: 1
  23486. }, W6e = {
  23487. topLeft: {
  23488. points: ["bl", "tl"],
  23489. overflow: Fc,
  23490. offset: [0, -7]
  23491. },
  23492. bottomLeft: {
  23493. points: ["tl", "bl"],
  23494. overflow: Fc,
  23495. offset: [0, 7]
  23496. },
  23497. leftTop: {
  23498. points: ["tr", "tl"],
  23499. overflow: Fc,
  23500. offset: [-4, 0]
  23501. },
  23502. rightTop: {
  23503. points: ["tl", "tr"],
  23504. overflow: Fc,
  23505. offset: [4, 0]
  23506. }
  23507. }, Q6e = {
  23508. topLeft: {
  23509. points: ["bl", "tl"],
  23510. overflow: Fc,
  23511. offset: [0, -7]
  23512. },
  23513. bottomLeft: {
  23514. points: ["tl", "bl"],
  23515. overflow: Fc,
  23516. offset: [0, 7]
  23517. },
  23518. rightTop: {
  23519. points: ["tr", "tl"],
  23520. overflow: Fc,
  23521. offset: [-4, 0]
  23522. },
  23523. leftTop: {
  23524. points: ["tl", "tr"],
  23525. overflow: Fc,
  23526. offset: [4, 0]
  23527. }
  23528. }, H6e = {
  23529. horizontal: "bottomLeft",
  23530. vertical: "rightTop",
  23531. "vertical-left": "rightTop",
  23532. "vertical-right": "leftTop"
  23533. }, PQ = ae({
  23534. compatConfig: {
  23535. MODE: 3
  23536. },
  23537. name: "PopupTrigger",
  23538. inheritAttrs: !1,
  23539. props: {
  23540. prefixCls: String,
  23541. mode: String,
  23542. visible: Boolean,
  23543. // popup: React.ReactNode;
  23544. popupClassName: String,
  23545. popupOffset: Array,
  23546. disabled: Boolean,
  23547. onVisibleChange: Function
  23548. },
  23549. slots: Object,
  23550. emits: ["visibleChange"],
  23551. setup(t, e) {
  23552. let {
  23553. slots: n,
  23554. emit: r
  23555. } = e;
  23556. const i = ve(!1), {
  23557. getPopupContainer: a,
  23558. rtl: o,
  23559. subMenuOpenDelay: s,
  23560. subMenuCloseDelay: l,
  23561. builtinPlacements: u,
  23562. triggerSubMenuAction: c,
  23563. forceSubMenuRender: f,
  23564. motion: d,
  23565. defaultMotions: h,
  23566. rootClassName: p
  23567. } = nc(), v = Rie(), g = V(() => o.value ? k(k({}, Q6e), u.value) : k(k({}, W6e), u.value)), m = V(() => H6e[t.mode]), y = ve();
  23568. me(() => t.visible, (S) => {
  23569. en.cancel(y.value), y.value = en(() => {
  23570. i.value = S;
  23571. });
  23572. }, {
  23573. immediate: !0
  23574. }), Qt(() => {
  23575. en.cancel(y.value);
  23576. });
  23577. const _ = (S) => {
  23578. r("visibleChange", S);
  23579. }, O = V(() => {
  23580. var S, x;
  23581. const C = d.value || ((S = h.value) === null || S === void 0 ? void 0 : S[t.mode]) || ((x = h.value) === null || x === void 0 ? void 0 : x.other), P = typeof C == "function" ? C() : C;
  23582. return P ? Z_(P.name, {
  23583. css: !0
  23584. }) : void 0;
  23585. });
  23586. return () => {
  23587. const {
  23588. prefixCls: S,
  23589. popupClassName: x,
  23590. mode: C,
  23591. popupOffset: P,
  23592. disabled: $
  23593. } = t;
  23594. return D(E2, {
  23595. prefixCls: S,
  23596. popupClassName: Re(`${S}-popup`, {
  23597. [`${S}-rtl`]: o.value
  23598. }, x, p.value),
  23599. stretch: C === "horizontal" ? "minWidth" : null,
  23600. getPopupContainer: a.value,
  23601. builtinPlacements: g.value,
  23602. popupPlacement: m.value,
  23603. popupVisible: i.value,
  23604. popupAlign: P && {
  23605. offset: P
  23606. },
  23607. action: $ ? [] : [c.value],
  23608. mouseEnterDelay: s.value,
  23609. mouseLeaveDelay: l.value,
  23610. onPopupVisibleChange: _,
  23611. forceRender: v || f.value,
  23612. popupAnimation: O.value
  23613. }, {
  23614. popup: n.popup,
  23615. default: n.default
  23616. });
  23617. };
  23618. }
  23619. }), x8 = (t, e) => {
  23620. let {
  23621. slots: n,
  23622. attrs: r
  23623. } = e;
  23624. var i;
  23625. const {
  23626. prefixCls: a,
  23627. mode: o
  23628. } = nc();
  23629. return D("ul", te(te({}, r), {}, {
  23630. class: Re(a.value, `${a.value}-sub`, `${a.value}-${o.value === "inline" ? "inline" : "vertical"}`),
  23631. "data-menu-list": !0
  23632. }), [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)]);
  23633. };
  23634. x8.displayName = "SubMenuList";
  23635. const G6e = ae({
  23636. compatConfig: {
  23637. MODE: 3
  23638. },
  23639. name: "InlineSubMenuList",
  23640. inheritAttrs: !1,
  23641. props: {
  23642. id: String,
  23643. open: Boolean,
  23644. keyPath: Array
  23645. },
  23646. setup(t, e) {
  23647. let {
  23648. slots: n
  23649. } = e;
  23650. const r = V(() => "inline"), {
  23651. motion: i,
  23652. mode: a,
  23653. defaultMotions: o
  23654. } = nc(), s = V(() => a.value === r.value), l = ee(!s.value), u = V(() => s.value ? t.open : !1);
  23655. me(a, () => {
  23656. s.value && (l.value = !1);
  23657. }, {
  23658. flush: "post"
  23659. });
  23660. const c = V(() => {
  23661. var f, d;
  23662. const h = i.value || ((f = o.value) === null || f === void 0 ? void 0 : f[r.value]) || ((d = o.value) === null || d === void 0 ? void 0 : d.other), p = typeof h == "function" ? h() : h;
  23663. return k(k({}, p), {
  23664. appear: t.keyPath.length <= 1
  23665. });
  23666. });
  23667. return () => {
  23668. var f;
  23669. return l.value ? null : D(sC, {
  23670. mode: r.value
  23671. }, {
  23672. default: () => [D(mo, c.value, {
  23673. default: () => [Sr(D(x8, {
  23674. id: t.id
  23675. }, {
  23676. default: () => [(f = n.default) === null || f === void 0 ? void 0 : f.call(n)]
  23677. }), [[ho, u.value]])]
  23678. })]
  23679. });
  23680. };
  23681. }
  23682. });
  23683. let $Q = 0;
  23684. const j6e = () => ({
  23685. icon: oe.any,
  23686. title: oe.any,
  23687. disabled: Boolean,
  23688. level: Number,
  23689. popupClassName: String,
  23690. popupOffset: Array,
  23691. internalPopupClose: Boolean,
  23692. eventKey: String,
  23693. expandIcon: Function,
  23694. theme: String,
  23695. onMouseenter: Function,
  23696. onMouseleave: Function,
  23697. onTitleClick: Function,
  23698. // Internal user prop
  23699. originItemValue: sn()
  23700. }), Ng = ae({
  23701. compatConfig: {
  23702. MODE: 3
  23703. },
  23704. name: "ASubMenu",
  23705. inheritAttrs: !1,
  23706. props: j6e(),
  23707. slots: Object,
  23708. setup(t, e) {
  23709. let {
  23710. slots: n,
  23711. attrs: r,
  23712. emit: i
  23713. } = e;
  23714. var a, o;
  23715. Lie(!1);
  23716. const s = S8(), l = In(), u = typeof l.vnode.key == "symbol" ? String(l.vnode.key) : l.vnode.key;
  23717. lo(typeof l.vnode.key != "symbol", "SubMenu", `SubMenu \`:key="${String(u)}"\` not support Symbol type`);
  23718. const c = cR(u) ? u : `sub_menu_${++$Q}_$$_not_set_key`, f = (a = t.eventKey) !== null && a !== void 0 ? a : cR(u) ? `sub_menu_${++$Q}_$$_${u}` : c, {
  23719. parentEventKeys: d,
  23720. parentInfo: h,
  23721. parentKeys: p
  23722. } = O8(), v = V(() => [...p.value, c]), g = ve([]), m = {
  23723. eventKey: f,
  23724. key: c,
  23725. parentEventKeys: d,
  23726. childrenEventKeys: g,
  23727. parentKeys: p
  23728. };
  23729. (o = h.childrenEventKeys) === null || o === void 0 || o.value.push(f), Qt(() => {
  23730. var Pe;
  23731. h.childrenEventKeys && (h.childrenEventKeys.value = (Pe = h.childrenEventKeys) === null || Pe === void 0 ? void 0 : Pe.value.filter((Fe) => Fe != f));
  23732. }), z6e(f, c, m);
  23733. const {
  23734. prefixCls: y,
  23735. activeKeys: _,
  23736. disabled: O,
  23737. changeActiveKeys: S,
  23738. mode: x,
  23739. inlineCollapsed: C,
  23740. openKeys: P,
  23741. overflowDisabled: $,
  23742. onOpenChange: T,
  23743. registerMenuInfo: E,
  23744. unRegisterMenuInfo: M,
  23745. selectedSubMenuKeys: R,
  23746. expandIcon: N,
  23747. theme: I
  23748. } = nc(), B = u != null, Q = !s && (Rie() || !B);
  23749. R6e(Q), (s && B || !s && !B || Q) && (E(f, m), Qt(() => {
  23750. M(f);
  23751. }));
  23752. const W = V(() => `${y.value}-submenu`), H = V(() => O.value || t.disabled), U = ve(), j = ve(), Y = V(() => P.value.includes(c)), ne = V(() => !$.value && Y.value), fe = V(() => R.value.includes(c)), ue = ve(!1);
  23753. me(_, () => {
  23754. ue.value = !!_.value.find((Pe) => Pe === c);
  23755. }, {
  23756. immediate: !0
  23757. });
  23758. const ye = (Pe) => {
  23759. H.value || (i("titleClick", Pe, c), x.value === "inline" && T(c, !Y.value));
  23760. }, se = (Pe) => {
  23761. H.value || (S(v.value), i("mouseenter", Pe));
  23762. }, he = (Pe) => {
  23763. H.value || (S([]), i("mouseleave", Pe));
  23764. }, re = zie(V(() => v.value.length)), q = (Pe) => {
  23765. x.value !== "inline" && T(c, Pe);
  23766. }, K = () => {
  23767. S(v.value);
  23768. }, de = f && `${f}-popup`, xe = V(() => Re(y.value, `${y.value}-${t.theme || I.value}`, t.popupClassName)), we = (Pe, Fe) => {
  23769. if (!Fe)
  23770. return C.value && !p.value.length && Pe && typeof Pe == "string" ? D("div", {
  23771. class: `${y.value}-inline-collapsed-noicon`
  23772. }, [Pe.charAt(0)]) : D("span", {
  23773. class: `${y.value}-title-content`
  23774. }, [Pe]);
  23775. const Ye = po(Pe) && Pe.type === "span";
  23776. return D(Wt, null, [xr(typeof Fe == "function" ? Fe(t.originItemValue) : Fe, {
  23777. class: `${y.value}-item-icon`
  23778. }, !1), Ye ? Pe : D("span", {
  23779. class: `${y.value}-title-content`
  23780. }, [Pe])]);
  23781. }, He = V(() => x.value !== "inline" && v.value.length > 1 ? "vertical" : x.value), je = V(() => x.value === "horizontal" ? "vertical" : x.value), Be = V(() => He.value === "horizontal" ? "vertical" : He.value), Le = () => {
  23782. var Pe, Fe;
  23783. const Ye = W.value, xt = (Pe = t.icon) !== null && Pe !== void 0 ? Pe : (Fe = n.icon) === null || Fe === void 0 ? void 0 : Fe.call(n, t), It = t.expandIcon || n.expandIcon || N.value, an = we(y2(n, t, "title"), xt);
  23784. return D("div", {
  23785. style: re.value,
  23786. class: `${Ye}-title`,
  23787. tabindex: H.value ? null : -1,
  23788. ref: U,
  23789. title: typeof an == "string" ? an : null,
  23790. "data-menu-id": c,
  23791. "aria-expanded": ne.value,
  23792. "aria-haspopup": !0,
  23793. "aria-controls": de,
  23794. "aria-disabled": H.value,
  23795. onClick: ye,
  23796. onFocus: K
  23797. }, [an, x.value !== "horizontal" && It ? It(k(k({}, t), {
  23798. isOpen: ne.value
  23799. })) : D("i", {
  23800. class: `${Ye}-arrow`
  23801. }, null)]);
  23802. };
  23803. return () => {
  23804. var Pe;
  23805. if (s)
  23806. return B ? (Pe = n.default) === null || Pe === void 0 ? void 0 : Pe.call(n) : null;
  23807. const Fe = W.value;
  23808. let Ye = () => null;
  23809. if (!$.value && x.value !== "inline") {
  23810. const xt = x.value === "horizontal" ? [0, 8] : [10, 0];
  23811. Ye = () => D(PQ, {
  23812. mode: He.value,
  23813. prefixCls: Fe,
  23814. visible: !t.internalPopupClose && ne.value,
  23815. popupClassName: xe.value,
  23816. popupOffset: t.popupOffset || xt,
  23817. disabled: H.value,
  23818. onVisibleChange: q
  23819. }, {
  23820. default: () => [Le()],
  23821. popup: () => D(sC, {
  23822. mode: Be.value
  23823. }, {
  23824. default: () => [D(x8, {
  23825. id: de,
  23826. ref: j
  23827. }, {
  23828. default: n.default
  23829. })]
  23830. })
  23831. });
  23832. } else
  23833. Ye = () => D(PQ, null, {
  23834. default: Le
  23835. });
  23836. return D(sC, {
  23837. mode: je.value
  23838. }, {
  23839. default: () => [D(Au.Item, te(te({
  23840. component: "li"
  23841. }, r), {}, {
  23842. role: "none",
  23843. class: Re(Fe, `${Fe}-${x.value}`, r.class, {
  23844. [`${Fe}-open`]: ne.value,
  23845. [`${Fe}-active`]: ue.value,
  23846. [`${Fe}-selected`]: fe.value,
  23847. [`${Fe}-disabled`]: H.value
  23848. }),
  23849. onMouseenter: se,
  23850. onMouseleave: he,
  23851. "data-submenu-id": c
  23852. }), {
  23853. default: () => D(Wt, null, [Ye(), !$.value && D(G6e, {
  23854. id: de,
  23855. open: ne.value,
  23856. keyPath: v.value
  23857. }, {
  23858. default: n.default
  23859. })])
  23860. })]
  23861. });
  23862. };
  23863. }
  23864. });
  23865. function Vie(t, e) {
  23866. return t.classList ? t.classList.contains(e) : ` ${t.className} `.indexOf(` ${e} `) > -1;
  23867. }
  23868. function AQ(t, e) {
  23869. t.classList ? t.classList.add(e) : Vie(t, e) || (t.className = `${t.className} ${e}`);
  23870. }
  23871. function EQ(t, e) {
  23872. if (t.classList)
  23873. t.classList.remove(e);
  23874. else if (Vie(t, e)) {
  23875. const n = t.className;
  23876. t.className = ` ${n} `.replace(` ${e} `, " ");
  23877. }
  23878. }
  23879. const w8 = function() {
  23880. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
  23881. return {
  23882. name: t,
  23883. appear: e,
  23884. css: !0,
  23885. onBeforeEnter: (n) => {
  23886. n.style.height = "0px", n.style.opacity = "0", AQ(n, t);
  23887. },
  23888. onEnter: (n) => {
  23889. Bt(() => {
  23890. n.style.height = `${n.scrollHeight}px`, n.style.opacity = "1";
  23891. });
  23892. },
  23893. onAfterEnter: (n) => {
  23894. n && (EQ(n, t), n.style.height = null, n.style.opacity = null);
  23895. },
  23896. onBeforeLeave: (n) => {
  23897. AQ(n, t), n.style.height = `${n.offsetHeight}px`, n.style.opacity = null;
  23898. },
  23899. onLeave: (n) => {
  23900. setTimeout(() => {
  23901. n.style.height = "0px", n.style.opacity = "0";
  23902. });
  23903. },
  23904. onAfterLeave: (n) => {
  23905. n && (EQ(n, t), n.style && (n.style.height = null, n.style.opacity = null));
  23906. }
  23907. };
  23908. }, Z6e = () => ({
  23909. title: oe.any,
  23910. // Internal user prop
  23911. originItemValue: sn()
  23912. }), lC = ae({
  23913. compatConfig: {
  23914. MODE: 3
  23915. },
  23916. name: "AMenuItemGroup",
  23917. inheritAttrs: !1,
  23918. props: Z6e(),
  23919. slots: Object,
  23920. setup(t, e) {
  23921. let {
  23922. slots: n,
  23923. attrs: r
  23924. } = e;
  23925. const {
  23926. prefixCls: i
  23927. } = nc(), a = V(() => `${i.value}-item-group`), o = S8();
  23928. return () => {
  23929. var s, l;
  23930. return o ? (s = n.default) === null || s === void 0 ? void 0 : s.call(n) : D("li", te(te({}, r), {}, {
  23931. onClick: (u) => u.stopPropagation(),
  23932. class: a.value
  23933. }), [D("div", {
  23934. title: typeof t.title == "string" ? t.title : void 0,
  23935. class: `${a.value}-title`
  23936. }, [y2(n, t, "title")]), D("ul", {
  23937. class: `${a.value}-list`
  23938. }, [(l = n.default) === null || l === void 0 ? void 0 : l.call(n)])]);
  23939. };
  23940. }
  23941. }), U6e = () => ({
  23942. prefixCls: String,
  23943. dashed: Boolean
  23944. }), uC = ae({
  23945. compatConfig: {
  23946. MODE: 3
  23947. },
  23948. name: "AMenuDivider",
  23949. props: U6e(),
  23950. setup(t) {
  23951. const {
  23952. prefixCls: e
  23953. } = nc(), n = V(() => ({
  23954. [`${e.value}-item-divider`]: !0,
  23955. [`${e.value}-item-divider-dashed`]: !!t.dashed
  23956. }));
  23957. return () => D("li", {
  23958. class: n.value
  23959. }, null);
  23960. }
  23961. });
  23962. var X6e = function(t, e) {
  23963. var n = {};
  23964. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  23965. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  23966. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  23967. return n;
  23968. };
  23969. function RR(t, e, n) {
  23970. return (t || []).map((r, i) => {
  23971. if (r && typeof r == "object") {
  23972. const a = r, {
  23973. label: o,
  23974. children: s,
  23975. key: l,
  23976. type: u
  23977. } = a, c = X6e(a, ["label", "children", "key", "type"]), f = l ?? `tmp-${i}`, d = n ? n.parentKeys.slice() : [], h = [], p = {
  23978. eventKey: f,
  23979. key: f,
  23980. parentEventKeys: ee(d),
  23981. parentKeys: ee(d),
  23982. childrenEventKeys: ee(h),
  23983. isLeaf: !1
  23984. };
  23985. if (s || u === "group") {
  23986. if (u === "group") {
  23987. const g = RR(s, e, n);
  23988. return D(lC, te(te({
  23989. key: f
  23990. }, c), {}, {
  23991. title: o,
  23992. originItemValue: r
  23993. }), {
  23994. default: () => [g]
  23995. });
  23996. }
  23997. e.set(f, p), n && n.childrenEventKeys.push(f);
  23998. const v = RR(s, e, {
  23999. childrenEventKeys: h,
  24000. parentKeys: [].concat(d, f)
  24001. });
  24002. return D(Ng, te(te({
  24003. key: f
  24004. }, c), {}, {
  24005. title: o,
  24006. originItemValue: r
  24007. }), {
  24008. default: () => [v]
  24009. });
  24010. }
  24011. return u === "divider" ? D(uC, te({
  24012. key: f
  24013. }, c), null) : (p.isLeaf = !0, e.set(f, p), D(Lg, te(te({
  24014. key: f
  24015. }, c), {}, {
  24016. originItemValue: r
  24017. }), {
  24018. default: () => [o]
  24019. }));
  24020. }
  24021. return null;
  24022. }).filter((r) => r);
  24023. }
  24024. function Y6e(t) {
  24025. const e = ve([]), n = ve(!1), r = ve(/* @__PURE__ */ new Map());
  24026. return me(() => t.items, () => {
  24027. const i = /* @__PURE__ */ new Map();
  24028. n.value = !1, t.items ? (n.value = !0, e.value = RR(t.items, i)) : e.value = void 0, r.value = i;
  24029. }, {
  24030. immediate: !0,
  24031. deep: !0
  24032. }), {
  24033. itemsNodes: e,
  24034. store: r,
  24035. hasItmes: n
  24036. };
  24037. }
  24038. const q6e = (t) => {
  24039. const {
  24040. componentCls: e,
  24041. motionDurationSlow: n,
  24042. menuHorizontalHeight: r,
  24043. colorSplit: i,
  24044. lineWidth: a,
  24045. lineType: o,
  24046. menuItemPaddingInline: s
  24047. } = t;
  24048. return {
  24049. [`${e}-horizontal`]: {
  24050. lineHeight: `${r}px`,
  24051. border: 0,
  24052. borderBottom: `${a}px ${o} ${i}`,
  24053. boxShadow: "none",
  24054. "&::after": {
  24055. display: "block",
  24056. clear: "both",
  24057. height: 0,
  24058. content: '"\\20"'
  24059. },
  24060. // ======================= Item =======================
  24061. [`${e}-item, ${e}-submenu`]: {
  24062. position: "relative",
  24063. display: "inline-block",
  24064. verticalAlign: "bottom",
  24065. paddingInline: s
  24066. },
  24067. [`> ${e}-item:hover,
  24068. > ${e}-item-active,
  24069. > ${e}-submenu ${e}-submenu-title:hover`]: {
  24070. backgroundColor: "transparent"
  24071. },
  24072. [`${e}-item, ${e}-submenu-title`]: {
  24073. transition: [`border-color ${n}`, `background ${n}`].join(",")
  24074. },
  24075. // ===================== Sub Menu =====================
  24076. [`${e}-submenu-arrow`]: {
  24077. display: "none"
  24078. }
  24079. }
  24080. };
  24081. }, K6e = (t) => {
  24082. let {
  24083. componentCls: e,
  24084. menuArrowOffset: n
  24085. } = t;
  24086. return {
  24087. [`${e}-rtl`]: {
  24088. direction: "rtl"
  24089. },
  24090. [`${e}-submenu-rtl`]: {
  24091. transformOrigin: "100% 0"
  24092. },
  24093. // Vertical Arrow
  24094. [`${e}-rtl${e}-vertical,
  24095. ${e}-submenu-rtl ${e}-vertical`]: {
  24096. [`${e}-submenu-arrow`]: {
  24097. "&::before": {
  24098. transform: `rotate(-45deg) translateY(-${n})`
  24099. },
  24100. "&::after": {
  24101. transform: `rotate(45deg) translateY(${n})`
  24102. }
  24103. }
  24104. }
  24105. };
  24106. }, MQ = (t) => k({}, G_(t)), IQ = (t, e) => {
  24107. const {
  24108. componentCls: n,
  24109. colorItemText: r,
  24110. colorItemTextSelected: i,
  24111. colorGroupTitle: a,
  24112. colorItemBg: o,
  24113. colorSubItemBg: s,
  24114. colorItemBgSelected: l,
  24115. colorActiveBarHeight: u,
  24116. colorActiveBarWidth: c,
  24117. colorActiveBarBorderSize: f,
  24118. motionDurationSlow: d,
  24119. motionEaseInOut: h,
  24120. motionEaseOut: p,
  24121. menuItemPaddingInline: v,
  24122. motionDurationMid: g,
  24123. colorItemTextHover: m,
  24124. lineType: y,
  24125. colorSplit: _,
  24126. // Disabled
  24127. colorItemTextDisabled: O,
  24128. // Danger
  24129. colorDangerItemText: S,
  24130. colorDangerItemTextHover: x,
  24131. colorDangerItemTextSelected: C,
  24132. colorDangerItemBgActive: P,
  24133. colorDangerItemBgSelected: $,
  24134. colorItemBgHover: T,
  24135. menuSubMenuBg: E,
  24136. // Horizontal
  24137. colorItemTextSelectedHorizontal: M,
  24138. colorItemBgSelectedHorizontal: R
  24139. } = t;
  24140. return {
  24141. [`${n}-${e}`]: {
  24142. color: r,
  24143. background: o,
  24144. [`&${n}-root:focus-visible`]: k({}, MQ(t)),
  24145. // ======================== Item ========================
  24146. [`${n}-item-group-title`]: {
  24147. color: a
  24148. },
  24149. [`${n}-submenu-selected`]: {
  24150. [`> ${n}-submenu-title`]: {
  24151. color: i
  24152. }
  24153. },
  24154. // Disabled
  24155. [`${n}-item-disabled, ${n}-submenu-disabled`]: {
  24156. color: `${O} !important`
  24157. },
  24158. // Hover
  24159. [`${n}-item:hover, ${n}-submenu-title:hover`]: {
  24160. [`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
  24161. color: m
  24162. }
  24163. },
  24164. [`&:not(${n}-horizontal)`]: {
  24165. [`${n}-item:not(${n}-item-selected)`]: {
  24166. "&:hover": {
  24167. backgroundColor: T
  24168. },
  24169. "&:active": {
  24170. backgroundColor: l
  24171. }
  24172. },
  24173. [`${n}-submenu-title`]: {
  24174. "&:hover": {
  24175. backgroundColor: T
  24176. },
  24177. "&:active": {
  24178. backgroundColor: l
  24179. }
  24180. }
  24181. },
  24182. // Danger - only Item has
  24183. [`${n}-item-danger`]: {
  24184. color: S,
  24185. [`&${n}-item:hover`]: {
  24186. [`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
  24187. color: x
  24188. }
  24189. },
  24190. [`&${n}-item:active`]: {
  24191. background: P
  24192. }
  24193. },
  24194. [`${n}-item a`]: {
  24195. "&, &:hover": {
  24196. color: "inherit"
  24197. }
  24198. },
  24199. [`${n}-item-selected`]: {
  24200. color: i,
  24201. // Danger
  24202. [`&${n}-item-danger`]: {
  24203. color: C
  24204. },
  24205. "a, a:hover": {
  24206. color: "inherit"
  24207. }
  24208. },
  24209. [`& ${n}-item-selected`]: {
  24210. backgroundColor: l,
  24211. // Danger
  24212. [`&${n}-item-danger`]: {
  24213. backgroundColor: $
  24214. }
  24215. },
  24216. [`${n}-item, ${n}-submenu-title`]: {
  24217. [`&:not(${n}-item-disabled):focus-visible`]: k({}, MQ(t))
  24218. },
  24219. [`&${n}-submenu > ${n}`]: {
  24220. backgroundColor: E
  24221. },
  24222. [`&${n}-popup > ${n}`]: {
  24223. backgroundColor: o
  24224. },
  24225. // ====================== Horizontal ======================
  24226. [`&${n}-horizontal`]: k(k({}, e === "dark" ? {
  24227. borderBottom: 0
  24228. } : {}), {
  24229. [`> ${n}-item, > ${n}-submenu`]: {
  24230. top: f,
  24231. marginTop: -f,
  24232. marginBottom: 0,
  24233. borderRadius: 0,
  24234. "&::after": {
  24235. position: "absolute",
  24236. insetInline: v,
  24237. bottom: 0,
  24238. borderBottom: `${u}px solid transparent`,
  24239. transition: `border-color ${d} ${h}`,
  24240. content: '""'
  24241. },
  24242. "&:hover, &-active, &-open": {
  24243. "&::after": {
  24244. borderBottomWidth: u,
  24245. borderBottomColor: M
  24246. }
  24247. },
  24248. "&-selected": {
  24249. color: M,
  24250. backgroundColor: R,
  24251. "&::after": {
  24252. borderBottomWidth: u,
  24253. borderBottomColor: M
  24254. }
  24255. }
  24256. }
  24257. }),
  24258. // ================== Inline & Vertical ===================
  24259. //
  24260. [`&${n}-root`]: {
  24261. [`&${n}-inline, &${n}-vertical`]: {
  24262. borderInlineEnd: `${f}px ${y} ${_}`
  24263. }
  24264. },
  24265. // ======================== Inline ========================
  24266. [`&${n}-inline`]: {
  24267. // Sub
  24268. [`${n}-sub${n}-inline`]: {
  24269. background: s
  24270. },
  24271. // Item
  24272. [`${n}-item, ${n}-submenu-title`]: f && c ? {
  24273. width: `calc(100% + ${f}px)`
  24274. } : {},
  24275. [`${n}-item`]: {
  24276. position: "relative",
  24277. "&::after": {
  24278. position: "absolute",
  24279. insetBlock: 0,
  24280. insetInlineEnd: 0,
  24281. borderInlineEnd: `${c}px solid ${i}`,
  24282. transform: "scaleY(0.0001)",
  24283. opacity: 0,
  24284. transition: [`transform ${g} ${p}`, `opacity ${g} ${p}`].join(","),
  24285. content: '""'
  24286. },
  24287. // Danger
  24288. [`&${n}-item-danger`]: {
  24289. "&::after": {
  24290. borderInlineEndColor: C
  24291. }
  24292. }
  24293. },
  24294. [`${n}-selected, ${n}-item-selected`]: {
  24295. "&::after": {
  24296. transform: "scaleY(1)",
  24297. opacity: 1,
  24298. transition: [`transform ${g} ${h}`, `opacity ${g} ${h}`].join(",")
  24299. }
  24300. }
  24301. }
  24302. }
  24303. };
  24304. }, DQ = (t) => {
  24305. const {
  24306. componentCls: e,
  24307. menuItemHeight: n,
  24308. itemMarginInline: r,
  24309. padding: i,
  24310. menuArrowSize: a,
  24311. marginXS: o,
  24312. marginXXS: s
  24313. } = t, l = i + a + o;
  24314. return {
  24315. [`${e}-item`]: {
  24316. position: "relative"
  24317. },
  24318. [`${e}-item, ${e}-submenu-title`]: {
  24319. height: n,
  24320. lineHeight: `${n}px`,
  24321. paddingInline: i,
  24322. overflow: "hidden",
  24323. textOverflow: "ellipsis",
  24324. marginInline: r,
  24325. marginBlock: s,
  24326. width: `calc(100% - ${r * 2}px)`
  24327. },
  24328. // disable margin collapsed
  24329. [`${e}-submenu`]: {
  24330. paddingBottom: 0.02
  24331. },
  24332. [`> ${e}-item,
  24333. > ${e}-submenu > ${e}-submenu-title`]: {
  24334. height: n,
  24335. lineHeight: `${n}px`
  24336. },
  24337. [`${e}-item-group-list ${e}-submenu-title,
  24338. ${e}-submenu-title`]: {
  24339. paddingInlineEnd: l
  24340. }
  24341. };
  24342. }, J6e = (t) => {
  24343. const {
  24344. componentCls: e,
  24345. iconCls: n,
  24346. menuItemHeight: r,
  24347. colorTextLightSolid: i,
  24348. dropdownWidth: a,
  24349. controlHeightLG: o,
  24350. motionDurationMid: s,
  24351. motionEaseOut: l,
  24352. paddingXL: u,
  24353. fontSizeSM: c,
  24354. fontSizeLG: f,
  24355. motionDurationSlow: d,
  24356. paddingXS: h,
  24357. boxShadowSecondary: p
  24358. } = t, v = {
  24359. height: r,
  24360. lineHeight: `${r}px`,
  24361. listStylePosition: "inside",
  24362. listStyleType: "disc"
  24363. };
  24364. return [
  24365. {
  24366. [e]: {
  24367. "&-inline, &-vertical": k({
  24368. [`&${e}-root`]: {
  24369. boxShadow: "none"
  24370. }
  24371. }, DQ(t))
  24372. },
  24373. [`${e}-submenu-popup`]: {
  24374. [`${e}-vertical`]: k(k({}, DQ(t)), {
  24375. boxShadow: p
  24376. })
  24377. }
  24378. },
  24379. // Vertical only
  24380. {
  24381. [`${e}-submenu-popup ${e}-vertical${e}-sub`]: {
  24382. minWidth: a,
  24383. maxHeight: `calc(100vh - ${o * 2.5}px)`,
  24384. padding: "0",
  24385. overflow: "hidden",
  24386. borderInlineEnd: 0,
  24387. // https://github.com/ant-design/ant-design/issues/22244
  24388. // https://github.com/ant-design/ant-design/issues/26812
  24389. "&:not([class*='-active'])": {
  24390. overflowX: "hidden",
  24391. overflowY: "auto"
  24392. }
  24393. }
  24394. },
  24395. // Inline Only
  24396. {
  24397. [`${e}-inline`]: {
  24398. width: "100%",
  24399. // Motion enhance for first level
  24400. [`&${e}-root`]: {
  24401. [`${e}-item, ${e}-submenu-title`]: {
  24402. display: "flex",
  24403. alignItems: "center",
  24404. transition: [`border-color ${d}`, `background ${d}`, `padding ${s} ${l}`].join(","),
  24405. [`> ${e}-title-content`]: {
  24406. flex: "auto",
  24407. minWidth: 0,
  24408. overflow: "hidden",
  24409. textOverflow: "ellipsis"
  24410. },
  24411. "> *": {
  24412. flex: "none"
  24413. }
  24414. }
  24415. },
  24416. // >>>>> Sub
  24417. [`${e}-sub${e}-inline`]: {
  24418. padding: 0,
  24419. border: 0,
  24420. borderRadius: 0,
  24421. boxShadow: "none",
  24422. [`& > ${e}-submenu > ${e}-submenu-title`]: v,
  24423. [`& ${e}-item-group-title`]: {
  24424. paddingInlineStart: u
  24425. }
  24426. },
  24427. // >>>>> Item
  24428. [`${e}-item`]: v
  24429. }
  24430. },
  24431. // Inline Collapse Only
  24432. {
  24433. [`${e}-inline-collapsed`]: {
  24434. width: r * 2,
  24435. [`&${e}-root`]: {
  24436. [`${e}-item, ${e}-submenu ${e}-submenu-title`]: {
  24437. [`> ${e}-inline-collapsed-noicon`]: {
  24438. fontSize: f,
  24439. textAlign: "center"
  24440. }
  24441. }
  24442. },
  24443. [`> ${e}-item,
  24444. > ${e}-item-group > ${e}-item-group-list > ${e}-item,
  24445. > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,
  24446. > ${e}-submenu > ${e}-submenu-title`]: {
  24447. insetInlineStart: 0,
  24448. paddingInline: `calc(50% - ${c}px)`,
  24449. textOverflow: "clip",
  24450. [`
  24451. ${e}-submenu-arrow,
  24452. ${e}-submenu-expand-icon
  24453. `]: {
  24454. opacity: 0
  24455. },
  24456. [`${e}-item-icon, ${n}`]: {
  24457. margin: 0,
  24458. fontSize: f,
  24459. lineHeight: `${r}px`,
  24460. "+ span": {
  24461. display: "inline-block",
  24462. opacity: 0
  24463. }
  24464. }
  24465. },
  24466. [`${e}-item-icon, ${n}`]: {
  24467. display: "inline-block"
  24468. },
  24469. "&-tooltip": {
  24470. pointerEvents: "none",
  24471. [`${e}-item-icon, ${n}`]: {
  24472. display: "none"
  24473. },
  24474. "a, a:hover": {
  24475. color: i
  24476. }
  24477. },
  24478. [`${e}-item-group-title`]: k(k({}, Mg), {
  24479. paddingInline: h
  24480. })
  24481. }
  24482. }
  24483. ];
  24484. }, RQ = (t) => {
  24485. const {
  24486. componentCls: e,
  24487. fontSize: n,
  24488. motionDurationSlow: r,
  24489. motionDurationMid: i,
  24490. motionEaseInOut: a,
  24491. motionEaseOut: o,
  24492. iconCls: s,
  24493. controlHeightSM: l
  24494. } = t;
  24495. return {
  24496. // >>>>> Item
  24497. [`${e}-item, ${e}-submenu-title`]: {
  24498. position: "relative",
  24499. display: "block",
  24500. margin: 0,
  24501. whiteSpace: "nowrap",
  24502. cursor: "pointer",
  24503. transition: [`border-color ${r}`, `background ${r}`, `padding ${r} ${a}`].join(","),
  24504. [`${e}-item-icon, ${s}`]: {
  24505. minWidth: n,
  24506. fontSize: n,
  24507. transition: [`font-size ${i} ${o}`, `margin ${r} ${a}`, `color ${r}`].join(","),
  24508. "+ span": {
  24509. marginInlineStart: l - n,
  24510. opacity: 1,
  24511. transition: [`opacity ${r} ${a}`, `margin ${r}`, `color ${r}`].join(",")
  24512. }
  24513. },
  24514. [`${e}-item-icon`]: k({}, hm()),
  24515. [`&${e}-item-only-child`]: {
  24516. [`> ${s}, > ${e}-item-icon`]: {
  24517. marginInlineEnd: 0
  24518. }
  24519. }
  24520. },
  24521. // Disabled state sets text to gray and nukes hover/tab effects
  24522. [`${e}-item-disabled, ${e}-submenu-disabled`]: {
  24523. background: "none !important",
  24524. cursor: "not-allowed",
  24525. "&::after": {
  24526. borderColor: "transparent !important"
  24527. },
  24528. a: {
  24529. color: "inherit !important"
  24530. },
  24531. [`> ${e}-submenu-title`]: {
  24532. color: "inherit !important",
  24533. cursor: "not-allowed"
  24534. }
  24535. }
  24536. };
  24537. }, kQ = (t) => {
  24538. const {
  24539. componentCls: e,
  24540. motionDurationSlow: n,
  24541. motionEaseInOut: r,
  24542. borderRadius: i,
  24543. menuArrowSize: a,
  24544. menuArrowOffset: o
  24545. } = t;
  24546. return {
  24547. [`${e}-submenu`]: {
  24548. "&-expand-icon, &-arrow": {
  24549. position: "absolute",
  24550. top: "50%",
  24551. insetInlineEnd: t.margin,
  24552. width: a,
  24553. color: "currentcolor",
  24554. transform: "translateY(-50%)",
  24555. transition: `transform ${n} ${r}, opacity ${n}`
  24556. },
  24557. "&-arrow": {
  24558. // →
  24559. "&::before, &::after": {
  24560. position: "absolute",
  24561. width: a * 0.6,
  24562. height: a * 0.15,
  24563. backgroundColor: "currentcolor",
  24564. borderRadius: i,
  24565. transition: [`background ${n} ${r}`, `transform ${n} ${r}`, `top ${n} ${r}`, `color ${n} ${r}`].join(","),
  24566. content: '""'
  24567. },
  24568. "&::before": {
  24569. transform: `rotate(45deg) translateY(-${o})`
  24570. },
  24571. "&::after": {
  24572. transform: `rotate(-45deg) translateY(${o})`
  24573. }
  24574. }
  24575. }
  24576. };
  24577. }, eBe = (t) => {
  24578. const {
  24579. antCls: e,
  24580. componentCls: n,
  24581. fontSize: r,
  24582. motionDurationSlow: i,
  24583. motionDurationMid: a,
  24584. motionEaseInOut: o,
  24585. lineHeight: s,
  24586. paddingXS: l,
  24587. padding: u,
  24588. colorSplit: c,
  24589. lineWidth: f,
  24590. zIndexPopup: d,
  24591. borderRadiusLG: h,
  24592. radiusSubMenuItem: p,
  24593. menuArrowSize: v,
  24594. menuArrowOffset: g,
  24595. lineType: m,
  24596. menuPanelMaskInset: y
  24597. } = t;
  24598. return [
  24599. // Misc
  24600. {
  24601. "": {
  24602. [`${n}`]: k(k({}, Kw()), {
  24603. // Hidden
  24604. "&-hidden": {
  24605. display: "none"
  24606. }
  24607. })
  24608. },
  24609. [`${n}-submenu-hidden`]: {
  24610. display: "none"
  24611. }
  24612. },
  24613. {
  24614. [n]: k(k(k(k(k(k(k({}, Gn(t)), Kw()), {
  24615. marginBottom: 0,
  24616. paddingInlineStart: 0,
  24617. // Override default ul/ol
  24618. fontSize: r,
  24619. lineHeight: 0,
  24620. listStyle: "none",
  24621. outline: "none",
  24622. transition: `width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,
  24623. "ul, ol": {
  24624. margin: 0,
  24625. padding: 0,
  24626. listStyle: "none"
  24627. },
  24628. // Overflow ellipsis
  24629. "&-overflow": {
  24630. display: "flex",
  24631. [`${n}-item`]: {
  24632. flex: "none"
  24633. }
  24634. },
  24635. [`${n}-item, ${n}-submenu, ${n}-submenu-title`]: {
  24636. borderRadius: t.radiusItem
  24637. },
  24638. [`${n}-item-group-title`]: {
  24639. padding: `${l}px ${u}px`,
  24640. fontSize: r,
  24641. lineHeight: s,
  24642. transition: `all ${i}`
  24643. },
  24644. [`&-horizontal ${n}-submenu`]: {
  24645. transition: [`border-color ${i} ${o}`, `background ${i} ${o}`].join(",")
  24646. },
  24647. [`${n}-submenu, ${n}-submenu-inline`]: {
  24648. transition: [`border-color ${i} ${o}`, `background ${i} ${o}`, `padding ${a} ${o}`].join(",")
  24649. },
  24650. [`${n}-submenu ${n}-sub`]: {
  24651. cursor: "initial",
  24652. transition: [`background ${i} ${o}`, `padding ${i} ${o}`].join(",")
  24653. },
  24654. [`${n}-title-content`]: {
  24655. transition: `color ${i}`
  24656. },
  24657. [`${n}-item a`]: {
  24658. "&::before": {
  24659. position: "absolute",
  24660. inset: 0,
  24661. backgroundColor: "transparent",
  24662. content: '""'
  24663. }
  24664. },
  24665. // Removed a Badge related style seems it's safe
  24666. // https://github.com/ant-design/ant-design/issues/19809
  24667. // >>>>> Divider
  24668. [`${n}-item-divider`]: {
  24669. overflow: "hidden",
  24670. lineHeight: 0,
  24671. borderColor: c,
  24672. borderStyle: m,
  24673. borderWidth: 0,
  24674. borderTopWidth: f,
  24675. marginBlock: f,
  24676. padding: 0,
  24677. "&-dashed": {
  24678. borderStyle: "dashed"
  24679. }
  24680. }
  24681. }), RQ(t)), {
  24682. [`${n}-item-group`]: {
  24683. [`${n}-item-group-list`]: {
  24684. margin: 0,
  24685. padding: 0,
  24686. [`${n}-item, ${n}-submenu-title`]: {
  24687. paddingInline: `${r * 2}px ${u}px`
  24688. }
  24689. }
  24690. },
  24691. // ======================= Sub Menu =======================
  24692. "&-submenu": {
  24693. "&-popup": {
  24694. position: "absolute",
  24695. zIndex: d,
  24696. background: "transparent",
  24697. borderRadius: h,
  24698. boxShadow: "none",
  24699. transformOrigin: "0 0",
  24700. // https://github.com/ant-design/ant-design/issues/13955
  24701. "&::before": {
  24702. position: "absolute",
  24703. inset: `${y}px 0 0`,
  24704. zIndex: -1,
  24705. width: "100%",
  24706. height: "100%",
  24707. opacity: 0,
  24708. content: '""'
  24709. }
  24710. },
  24711. // https://github.com/ant-design/ant-design/issues/13955
  24712. "&-placement-rightTop::before": {
  24713. top: 0,
  24714. insetInlineStart: y
  24715. },
  24716. [`> ${n}`]: k(k(k({
  24717. borderRadius: h
  24718. }, RQ(t)), kQ(t)), {
  24719. [`${n}-item, ${n}-submenu > ${n}-submenu-title`]: {
  24720. borderRadius: p
  24721. },
  24722. [`${n}-submenu-title::after`]: {
  24723. transition: `transform ${i} ${o}`
  24724. }
  24725. })
  24726. }
  24727. }), kQ(t)), {
  24728. [`&-inline-collapsed ${n}-submenu-arrow,
  24729. &-inline ${n}-submenu-arrow`]: {
  24730. // ↓
  24731. "&::before": {
  24732. transform: `rotate(-45deg) translateX(${g})`
  24733. },
  24734. "&::after": {
  24735. transform: `rotate(45deg) translateX(-${g})`
  24736. }
  24737. },
  24738. [`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]: {
  24739. // ↑
  24740. transform: `translateY(-${v * 0.2}px)`,
  24741. "&::after": {
  24742. transform: `rotate(-45deg) translateX(-${g})`
  24743. },
  24744. "&::before": {
  24745. transform: `rotate(45deg) translateX(${g})`
  24746. }
  24747. }
  24748. })
  24749. },
  24750. // Integration with header element so menu items have the same height
  24751. {
  24752. [`${e}-layout-header`]: {
  24753. [n]: {
  24754. lineHeight: "inherit"
  24755. }
  24756. }
  24757. }
  24758. ];
  24759. }, tBe = (t, e) => pr("Menu", (r, i) => {
  24760. let {
  24761. overrideComponentToken: a
  24762. } = i;
  24763. if ((e == null ? void 0 : e.value) === !1)
  24764. return [];
  24765. const {
  24766. colorBgElevated: o,
  24767. colorPrimary: s,
  24768. colorError: l,
  24769. colorErrorHover: u,
  24770. colorTextLightSolid: c
  24771. } = r, {
  24772. controlHeightLG: f,
  24773. fontSize: d
  24774. } = r, h = d / 7 * 5, p = bn(r, {
  24775. menuItemHeight: f,
  24776. menuItemPaddingInline: r.margin,
  24777. menuArrowSize: h,
  24778. menuHorizontalHeight: f * 1.15,
  24779. menuArrowOffset: `${h * 0.25}px`,
  24780. menuPanelMaskInset: -7,
  24781. menuSubMenuBg: o
  24782. }), v = new Hn(c).setAlpha(0.65).toRgbString(), g = bn(p, {
  24783. colorItemText: v,
  24784. colorItemTextHover: c,
  24785. colorGroupTitle: v,
  24786. colorItemTextSelected: c,
  24787. colorItemBg: "#001529",
  24788. colorSubItemBg: "#000c17",
  24789. colorItemBgActive: "transparent",
  24790. colorItemBgSelected: s,
  24791. colorActiveBarWidth: 0,
  24792. colorActiveBarHeight: 0,
  24793. colorActiveBarBorderSize: 0,
  24794. // Disabled
  24795. colorItemTextDisabled: new Hn(c).setAlpha(0.25).toRgbString(),
  24796. // Danger
  24797. colorDangerItemText: l,
  24798. colorDangerItemTextHover: u,
  24799. colorDangerItemTextSelected: c,
  24800. colorDangerItemBgActive: l,
  24801. colorDangerItemBgSelected: l,
  24802. menuSubMenuBg: "#001529",
  24803. // Horizontal
  24804. colorItemTextSelectedHorizontal: c,
  24805. colorItemBgSelectedHorizontal: s
  24806. }, k({}, a));
  24807. return [
  24808. // Basic
  24809. eBe(p),
  24810. // Horizontal
  24811. q6e(p),
  24812. // Vertical
  24813. J6e(p),
  24814. // Theme
  24815. IQ(p, "light"),
  24816. IQ(g, "dark"),
  24817. // RTL
  24818. K6e(p),
  24819. // Motion
  24820. v8(p),
  24821. kg(p, "slide-up"),
  24822. kg(p, "slide-down"),
  24823. B2(p, "zoom-big")
  24824. ];
  24825. }, (r) => {
  24826. const {
  24827. colorPrimary: i,
  24828. colorError: a,
  24829. colorTextDisabled: o,
  24830. colorErrorBg: s,
  24831. colorText: l,
  24832. colorTextDescription: u,
  24833. colorBgContainer: c,
  24834. colorFillAlter: f,
  24835. colorFillContent: d,
  24836. lineWidth: h,
  24837. lineWidthBold: p,
  24838. controlItemBgActive: v,
  24839. colorBgTextHover: g
  24840. } = r;
  24841. return {
  24842. dropdownWidth: 160,
  24843. zIndexPopup: r.zIndexPopupBase + 50,
  24844. radiusItem: r.borderRadiusLG,
  24845. radiusSubMenuItem: r.borderRadiusSM,
  24846. colorItemText: l,
  24847. colorItemTextHover: l,
  24848. colorItemTextHoverHorizontal: i,
  24849. colorGroupTitle: u,
  24850. colorItemTextSelected: i,
  24851. colorItemTextSelectedHorizontal: i,
  24852. colorItemBg: c,
  24853. colorItemBgHover: g,
  24854. colorItemBgActive: d,
  24855. colorSubItemBg: f,
  24856. colorItemBgSelected: v,
  24857. colorItemBgSelectedHorizontal: "transparent",
  24858. colorActiveBarWidth: 0,
  24859. colorActiveBarHeight: p,
  24860. colorActiveBarBorderSize: h,
  24861. // Disabled
  24862. colorItemTextDisabled: o,
  24863. // Danger
  24864. colorDangerItemText: a,
  24865. colorDangerItemTextHover: a,
  24866. colorDangerItemTextSelected: a,
  24867. colorDangerItemBgActive: s,
  24868. colorDangerItemBgSelected: s,
  24869. itemMarginInline: r.marginXXS
  24870. };
  24871. })(t), nBe = () => ({
  24872. id: String,
  24873. prefixCls: String,
  24874. // donot use items, now only support inner use
  24875. items: Array,
  24876. disabled: Boolean,
  24877. inlineCollapsed: Boolean,
  24878. disabledOverflow: Boolean,
  24879. forceSubMenuRender: Boolean,
  24880. openKeys: Array,
  24881. selectedKeys: Array,
  24882. activeKey: String,
  24883. selectable: {
  24884. type: Boolean,
  24885. default: !0
  24886. },
  24887. multiple: {
  24888. type: Boolean,
  24889. default: !1
  24890. },
  24891. tabindex: {
  24892. type: [Number, String]
  24893. },
  24894. motion: Object,
  24895. role: String,
  24896. theme: {
  24897. type: String,
  24898. default: "light"
  24899. },
  24900. mode: {
  24901. type: String,
  24902. default: "vertical"
  24903. },
  24904. inlineIndent: {
  24905. type: Number,
  24906. default: 24
  24907. },
  24908. subMenuOpenDelay: {
  24909. type: Number,
  24910. default: 0
  24911. },
  24912. subMenuCloseDelay: {
  24913. type: Number,
  24914. default: 0.1
  24915. },
  24916. builtinPlacements: {
  24917. type: Object
  24918. },
  24919. triggerSubMenuAction: {
  24920. type: String,
  24921. default: "hover"
  24922. },
  24923. getPopupContainer: Function,
  24924. expandIcon: Function,
  24925. onOpenChange: Function,
  24926. onSelect: Function,
  24927. onDeselect: Function,
  24928. onClick: [Function, Array],
  24929. onFocus: Function,
  24930. onBlur: Function,
  24931. onMousedown: Function,
  24932. "onUpdate:openKeys": Function,
  24933. "onUpdate:selectedKeys": Function,
  24934. "onUpdate:activeKey": Function
  24935. }), LQ = [], ef = ae({
  24936. compatConfig: {
  24937. MODE: 3
  24938. },
  24939. name: "AMenu",
  24940. inheritAttrs: !1,
  24941. props: nBe(),
  24942. slots: Object,
  24943. setup(t, e) {
  24944. let {
  24945. slots: n,
  24946. emit: r,
  24947. attrs: i
  24948. } = e;
  24949. const {
  24950. direction: a,
  24951. getPrefixCls: o
  24952. } = hn("menu", t), s = Eie(), l = V(() => {
  24953. var se;
  24954. return o("menu", t.prefixCls || ((se = s == null ? void 0 : s.prefixCls) === null || se === void 0 ? void 0 : se.value));
  24955. }), [u, c] = tBe(l, V(() => !s)), f = ve(/* @__PURE__ */ new Map()), d = et(N6e, ee(void 0)), h = V(() => d.value !== void 0 ? d.value : t.inlineCollapsed), {
  24956. itemsNodes: p
  24957. } = Y6e(t), v = ve(!1);
  24958. _t(() => {
  24959. v.value = !0;
  24960. }), Vt(() => {
  24961. lo(!(t.inlineCollapsed === !0 && t.mode !== "inline"), "Menu", "`inlineCollapsed` should only be used when `mode` is inline."), lo(!(d.value !== void 0 && t.inlineCollapsed === !0), "Menu", "`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.");
  24962. });
  24963. const g = ee([]), m = ee([]), y = ee({});
  24964. me(f, () => {
  24965. const se = {};
  24966. for (const he of f.value.values())
  24967. se[he.key] = he;
  24968. y.value = se;
  24969. }, {
  24970. flush: "post"
  24971. }), Vt(() => {
  24972. if (t.activeKey !== void 0) {
  24973. let se = [];
  24974. const he = t.activeKey ? y.value[t.activeKey] : void 0;
  24975. he && t.activeKey !== void 0 ? se = BA([].concat(z(he.parentKeys), t.activeKey)) : se = [], O0(g.value, se) || (g.value = se);
  24976. }
  24977. }), me(() => t.selectedKeys, (se) => {
  24978. se && (m.value = se.slice());
  24979. }, {
  24980. immediate: !0,
  24981. deep: !0
  24982. });
  24983. const _ = ee([]);
  24984. me([y, m], () => {
  24985. let se = [];
  24986. m.value.forEach((he) => {
  24987. const re = y.value[he];
  24988. re && (se = se.concat(z(re.parentKeys)));
  24989. }), se = BA(se), O0(_.value, se) || (_.value = se);
  24990. }, {
  24991. immediate: !0
  24992. });
  24993. const O = (se) => {
  24994. if (t.selectable) {
  24995. const {
  24996. key: he
  24997. } = se, re = m.value.includes(he);
  24998. let q;
  24999. t.multiple ? re ? q = m.value.filter((de) => de !== he) : q = [...m.value, he] : q = [he];
  25000. const K = k(k({}, se), {
  25001. selectedKeys: q
  25002. });
  25003. O0(q, m.value) || (t.selectedKeys === void 0 && (m.value = q), r("update:selectedKeys", q), re && t.multiple ? r("deselect", K) : r("select", K));
  25004. }
  25005. T.value !== "inline" && !t.multiple && S.value.length && R(LQ);
  25006. }, S = ee([]);
  25007. me(() => t.openKeys, function() {
  25008. let se = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : S.value;
  25009. O0(S.value, se) || (S.value = se.slice());
  25010. }, {
  25011. immediate: !0,
  25012. deep: !0
  25013. });
  25014. let x;
  25015. const C = (se) => {
  25016. clearTimeout(x), x = setTimeout(() => {
  25017. t.activeKey === void 0 && (g.value = se), r("update:activeKey", se[se.length - 1]);
  25018. });
  25019. }, P = V(() => !!t.disabled), $ = V(() => a.value === "rtl"), T = ee("vertical"), E = ve(!1);
  25020. Vt(() => {
  25021. var se;
  25022. (t.mode === "inline" || t.mode === "vertical") && h.value ? (T.value = "vertical", E.value = h.value) : (T.value = t.mode, E.value = !1), !((se = s == null ? void 0 : s.mode) === null || se === void 0) && se.value && (T.value = s.mode.value);
  25023. });
  25024. const M = V(() => T.value === "inline"), R = (se) => {
  25025. S.value = se, r("update:openKeys", se), r("openChange", se);
  25026. }, N = ee(S.value), I = ve(!1);
  25027. me(S, () => {
  25028. M.value && (N.value = S.value);
  25029. }, {
  25030. immediate: !0
  25031. }), me(M, () => {
  25032. if (!I.value) {
  25033. I.value = !0;
  25034. return;
  25035. }
  25036. M.value ? S.value = N.value : R(LQ);
  25037. }, {
  25038. immediate: !0
  25039. });
  25040. const B = V(() => ({
  25041. [`${l.value}`]: !0,
  25042. [`${l.value}-root`]: !0,
  25043. [`${l.value}-${T.value}`]: !0,
  25044. [`${l.value}-inline-collapsed`]: E.value,
  25045. [`${l.value}-rtl`]: $.value,
  25046. [`${l.value}-${t.theme}`]: !0
  25047. })), Q = V(() => o()), W = V(() => ({
  25048. horizontal: {
  25049. name: `${Q.value}-slide-up`
  25050. },
  25051. inline: w8(`${Q.value}-motion-collapse`),
  25052. other: {
  25053. name: `${Q.value}-zoom-big`
  25054. }
  25055. }));
  25056. Lie(!0);
  25057. const H = function() {
  25058. let se = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  25059. const he = [], re = f.value;
  25060. return se.forEach((q) => {
  25061. const {
  25062. key: K,
  25063. childrenEventKeys: de
  25064. } = re.get(q);
  25065. he.push(K, ...H(z(de)));
  25066. }), he;
  25067. }, U = (se) => {
  25068. var he;
  25069. r("click", se), O(se), (he = s == null ? void 0 : s.onClick) === null || he === void 0 || he.call(s);
  25070. }, j = (se, he) => {
  25071. var re;
  25072. const q = ((re = y.value[se]) === null || re === void 0 ? void 0 : re.childrenEventKeys) || [];
  25073. let K = S.value.filter((de) => de !== se);
  25074. if (he)
  25075. K.push(se);
  25076. else if (T.value !== "inline") {
  25077. const de = H(z(q));
  25078. K = BA(K.filter((xe) => !de.includes(xe)));
  25079. }
  25080. O0(S, K) || R(K);
  25081. }, Y = (se, he) => {
  25082. f.value.set(se, he), f.value = new Map(f.value);
  25083. }, ne = (se) => {
  25084. f.value.delete(se), f.value = new Map(f.value);
  25085. }, fe = ee(0), ue = V(() => {
  25086. var se;
  25087. return t.expandIcon || n.expandIcon || !((se = s == null ? void 0 : s.expandIcon) === null || se === void 0) && se.value ? (he) => {
  25088. let re = t.expandIcon || n.expandIcon;
  25089. return re = typeof re == "function" ? re(he) : re, xr(re, {
  25090. class: `${l.value}-submenu-expand-icon`
  25091. }, !1);
  25092. } : null;
  25093. });
  25094. L6e({
  25095. prefixCls: l,
  25096. activeKeys: g,
  25097. openKeys: S,
  25098. selectedKeys: m,
  25099. changeActiveKeys: C,
  25100. disabled: P,
  25101. rtl: $,
  25102. mode: T,
  25103. inlineIndent: V(() => t.inlineIndent),
  25104. subMenuCloseDelay: V(() => t.subMenuCloseDelay),
  25105. subMenuOpenDelay: V(() => t.subMenuOpenDelay),
  25106. builtinPlacements: V(() => t.builtinPlacements),
  25107. triggerSubMenuAction: V(() => t.triggerSubMenuAction),
  25108. getPopupContainer: V(() => t.getPopupContainer),
  25109. inlineCollapsed: E,
  25110. theme: V(() => t.theme),
  25111. siderCollapsed: d,
  25112. defaultMotions: V(() => v.value ? W.value : null),
  25113. motion: V(() => v.value ? t.motion : null),
  25114. overflowDisabled: ve(void 0),
  25115. onOpenChange: j,
  25116. onItemClick: U,
  25117. registerMenuInfo: Y,
  25118. unRegisterMenuInfo: ne,
  25119. selectedSubMenuKeys: _,
  25120. expandIcon: ue,
  25121. forceSubMenuRender: V(() => t.forceSubMenuRender),
  25122. rootClassName: c
  25123. });
  25124. const ye = () => {
  25125. var se;
  25126. return p.value || qr((se = n.default) === null || se === void 0 ? void 0 : se.call(n));
  25127. };
  25128. return () => {
  25129. var se;
  25130. const he = ye(), re = fe.value >= he.length - 1 || T.value !== "horizontal" || t.disabledOverflow, q = (de) => T.value !== "horizontal" || t.disabledOverflow ? de : (
  25131. // Need wrap for overflow dropdown that do not response for open
  25132. de.map((xe, we) => (
  25133. // Always wrap provider to avoid sub node re-mount
  25134. D(sC, {
  25135. key: xe.key,
  25136. overflowDisabled: we > fe.value
  25137. }, {
  25138. default: () => xe
  25139. })
  25140. ))
  25141. ), K = ((se = n.overflowedIndicator) === null || se === void 0 ? void 0 : se.call(n)) || D(W2, null, null);
  25142. return u(D(Au, te(te({}, i), {}, {
  25143. onMousedown: t.onMousedown,
  25144. prefixCls: `${l.value}-overflow`,
  25145. component: "ul",
  25146. itemComponent: Lg,
  25147. class: [B.value, i.class, c.value],
  25148. role: "menu",
  25149. id: t.id,
  25150. data: q(he),
  25151. renderRawItem: (de) => de,
  25152. renderRawRest: (de) => {
  25153. const xe = de.length, we = xe ? he.slice(-xe) : null;
  25154. return D(Wt, null, [D(Ng, {
  25155. eventKey: eS,
  25156. key: eS,
  25157. title: K,
  25158. disabled: re,
  25159. internalPopupClose: xe === 0
  25160. }, {
  25161. default: () => we
  25162. }), D(TQ, null, {
  25163. default: () => [D(Ng, {
  25164. eventKey: eS,
  25165. key: eS,
  25166. title: K,
  25167. disabled: re,
  25168. internalPopupClose: xe === 0
  25169. }, {
  25170. default: () => we
  25171. })]
  25172. })]);
  25173. },
  25174. maxCount: T.value !== "horizontal" || t.disabledOverflow ? Au.INVALIDATE : Au.RESPONSIVE,
  25175. ssr: "full",
  25176. "data-menu-list": !0,
  25177. onVisibleChange: (de) => {
  25178. fe.value = de;
  25179. }
  25180. }), {
  25181. default: () => [D(R_, {
  25182. to: "body"
  25183. }, {
  25184. default: () => [D("div", {
  25185. style: {
  25186. display: "none"
  25187. },
  25188. "aria-hidden": !0
  25189. }, [D(TQ, null, {
  25190. default: () => [q(ye())]
  25191. })])]
  25192. })]
  25193. }));
  25194. };
  25195. }
  25196. });
  25197. ef.install = function(t) {
  25198. return t.component(ef.name, ef), t.component(Lg.name, Lg), t.component(Ng.name, Ng), t.component(uC.name, uC), t.component(lC.name, lC), t;
  25199. };
  25200. ef.Item = Lg;
  25201. ef.Divider = uC;
  25202. ef.SubMenu = Ng;
  25203. ef.ItemGroup = lC;
  25204. var rBe = function(t, e) {
  25205. var n = {};
  25206. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  25207. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  25208. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  25209. return n;
  25210. };
  25211. const iBe = {
  25212. prefixCls: String,
  25213. name: String,
  25214. id: String,
  25215. type: String,
  25216. defaultChecked: {
  25217. type: [Boolean, Number],
  25218. default: void 0
  25219. },
  25220. checked: {
  25221. type: [Boolean, Number],
  25222. default: void 0
  25223. },
  25224. disabled: Boolean,
  25225. tabindex: {
  25226. type: [Number, String]
  25227. },
  25228. readonly: Boolean,
  25229. autofocus: Boolean,
  25230. value: oe.any,
  25231. required: Boolean
  25232. }, Fie = ae({
  25233. compatConfig: {
  25234. MODE: 3
  25235. },
  25236. name: "Checkbox",
  25237. inheritAttrs: !1,
  25238. props: li(iBe, {
  25239. prefixCls: "rc-checkbox",
  25240. type: "checkbox",
  25241. defaultChecked: !1
  25242. }),
  25243. emits: ["click", "change"],
  25244. setup(t, e) {
  25245. let {
  25246. attrs: n,
  25247. emit: r,
  25248. expose: i
  25249. } = e;
  25250. const a = ee(t.checked === void 0 ? t.defaultChecked : t.checked), o = ee();
  25251. me(() => t.checked, () => {
  25252. a.value = t.checked;
  25253. }), i({
  25254. focus() {
  25255. var c;
  25256. (c = o.value) === null || c === void 0 || c.focus();
  25257. },
  25258. blur() {
  25259. var c;
  25260. (c = o.value) === null || c === void 0 || c.blur();
  25261. }
  25262. });
  25263. const s = ee(), l = (c) => {
  25264. if (t.disabled)
  25265. return;
  25266. t.checked === void 0 && (a.value = c.target.checked), c.shiftKey = s.value;
  25267. const f = {
  25268. target: k(k({}, t), {
  25269. checked: c.target.checked
  25270. }),
  25271. stopPropagation() {
  25272. c.stopPropagation();
  25273. },
  25274. preventDefault() {
  25275. c.preventDefault();
  25276. },
  25277. nativeEvent: c
  25278. };
  25279. t.checked !== void 0 && (o.value.checked = !!t.checked), r("change", f), s.value = !1;
  25280. }, u = (c) => {
  25281. r("click", c), s.value = c.shiftKey;
  25282. };
  25283. return () => {
  25284. const {
  25285. prefixCls: c,
  25286. name: f,
  25287. id: d,
  25288. type: h,
  25289. disabled: p,
  25290. readonly: v,
  25291. tabindex: g,
  25292. autofocus: m,
  25293. value: y,
  25294. required: _
  25295. } = t, O = rBe(t, ["prefixCls", "name", "id", "type", "disabled", "readonly", "tabindex", "autofocus", "value", "required"]), {
  25296. class: S,
  25297. onFocus: x,
  25298. onBlur: C,
  25299. onKeydown: P,
  25300. onKeypress: $,
  25301. onKeyup: T
  25302. } = n, E = k(k({}, O), n), M = Object.keys(E).reduce((I, B) => ((B.startsWith("data-") || B.startsWith("aria-") || B === "role") && (I[B] = E[B]), I), {}), R = Re(c, S, {
  25303. [`${c}-checked`]: a.value,
  25304. [`${c}-disabled`]: p
  25305. }), N = k(k({
  25306. name: f,
  25307. id: d,
  25308. type: h,
  25309. readonly: v,
  25310. disabled: p,
  25311. tabindex: g,
  25312. class: `${c}-input`,
  25313. checked: !!a.value,
  25314. autofocus: m,
  25315. value: y
  25316. }, M), {
  25317. onChange: l,
  25318. onClick: u,
  25319. onFocus: x,
  25320. onBlur: C,
  25321. onKeydown: P,
  25322. onKeypress: $,
  25323. onKeyup: T,
  25324. required: _
  25325. });
  25326. return D("span", {
  25327. class: R
  25328. }, [D("input", te({
  25329. ref: o
  25330. }, N), null), D("span", {
  25331. class: `${c}-inner`
  25332. }, null)]);
  25333. };
  25334. }
  25335. }), Wie = Symbol("radioGroupContextKey"), aBe = (t) => {
  25336. Et(Wie, t);
  25337. }, oBe = () => et(Wie, void 0), Qie = Symbol("radioOptionTypeContextKey"), sBe = (t) => {
  25338. Et(Qie, t);
  25339. }, lBe = () => et(Qie, void 0), uBe = new qt("antRadioEffect", {
  25340. "0%": {
  25341. transform: "scale(1)",
  25342. opacity: 0.5
  25343. },
  25344. "100%": {
  25345. transform: "scale(1.6)",
  25346. opacity: 0
  25347. }
  25348. }), cBe = (t) => {
  25349. const {
  25350. componentCls: e,
  25351. antCls: n
  25352. } = t, r = `${e}-group`;
  25353. return {
  25354. [r]: k(k({}, Gn(t)), {
  25355. display: "inline-block",
  25356. fontSize: 0,
  25357. // RTL
  25358. [`&${r}-rtl`]: {
  25359. direction: "rtl"
  25360. },
  25361. [`${n}-badge ${n}-badge-count`]: {
  25362. zIndex: 1
  25363. },
  25364. [`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]: {
  25365. borderInlineStart: "none"
  25366. }
  25367. })
  25368. };
  25369. }, fBe = (t) => {
  25370. const {
  25371. componentCls: e,
  25372. radioWrapperMarginRight: n,
  25373. radioCheckedColor: r,
  25374. radioSize: i,
  25375. motionDurationSlow: a,
  25376. motionDurationMid: o,
  25377. motionEaseInOut: s,
  25378. motionEaseInOutCirc: l,
  25379. radioButtonBg: u,
  25380. colorBorder: c,
  25381. lineWidth: f,
  25382. radioDotSize: d,
  25383. colorBgContainerDisabled: h,
  25384. colorTextDisabled: p,
  25385. paddingXS: v,
  25386. radioDotDisabledColor: g,
  25387. lineType: m,
  25388. radioDotDisabledSize: y,
  25389. wireframe: _,
  25390. colorWhite: O
  25391. } = t, S = `${e}-inner`;
  25392. return {
  25393. [`${e}-wrapper`]: k(k({}, Gn(t)), {
  25394. position: "relative",
  25395. display: "inline-flex",
  25396. alignItems: "baseline",
  25397. marginInlineStart: 0,
  25398. marginInlineEnd: n,
  25399. cursor: "pointer",
  25400. // RTL
  25401. [`&${e}-wrapper-rtl`]: {
  25402. direction: "rtl"
  25403. },
  25404. "&-disabled": {
  25405. cursor: "not-allowed",
  25406. color: t.colorTextDisabled
  25407. },
  25408. "&::after": {
  25409. display: "inline-block",
  25410. width: 0,
  25411. overflow: "hidden",
  25412. content: '"\\a0"'
  25413. },
  25414. // hashId 在 wrapper 上,只能铺平
  25415. [`${e}-checked::after`]: {
  25416. position: "absolute",
  25417. insetBlockStart: 0,
  25418. insetInlineStart: 0,
  25419. width: "100%",
  25420. height: "100%",
  25421. border: `${f}px ${m} ${r}`,
  25422. borderRadius: "50%",
  25423. visibility: "hidden",
  25424. animationName: uBe,
  25425. animationDuration: a,
  25426. animationTimingFunction: s,
  25427. animationFillMode: "both",
  25428. content: '""'
  25429. },
  25430. [e]: k(k({}, Gn(t)), {
  25431. position: "relative",
  25432. display: "inline-block",
  25433. outline: "none",
  25434. cursor: "pointer",
  25435. alignSelf: "center"
  25436. }),
  25437. [`${e}-wrapper:hover &,
  25438. &:hover ${S}`]: {
  25439. borderColor: r
  25440. },
  25441. [`${e}-input:focus-visible + ${S}`]: k({}, G_(t)),
  25442. [`${e}:hover::after, ${e}-wrapper:hover &::after`]: {
  25443. visibility: "visible"
  25444. },
  25445. [`${e}-inner`]: {
  25446. "&::after": {
  25447. boxSizing: "border-box",
  25448. position: "absolute",
  25449. insetBlockStart: "50%",
  25450. insetInlineStart: "50%",
  25451. display: "block",
  25452. width: i,
  25453. height: i,
  25454. marginBlockStart: i / -2,
  25455. marginInlineStart: i / -2,
  25456. backgroundColor: _ ? r : O,
  25457. borderBlockStart: 0,
  25458. borderInlineStart: 0,
  25459. borderRadius: i,
  25460. transform: "scale(0)",
  25461. opacity: 0,
  25462. transition: `all ${a} ${l}`,
  25463. content: '""'
  25464. },
  25465. boxSizing: "border-box",
  25466. position: "relative",
  25467. insetBlockStart: 0,
  25468. insetInlineStart: 0,
  25469. display: "block",
  25470. width: i,
  25471. height: i,
  25472. backgroundColor: u,
  25473. borderColor: c,
  25474. borderStyle: "solid",
  25475. borderWidth: f,
  25476. borderRadius: "50%",
  25477. transition: `all ${o}`
  25478. },
  25479. [`${e}-input`]: {
  25480. position: "absolute",
  25481. insetBlockStart: 0,
  25482. insetInlineEnd: 0,
  25483. insetBlockEnd: 0,
  25484. insetInlineStart: 0,
  25485. zIndex: 1,
  25486. cursor: "pointer",
  25487. opacity: 0
  25488. },
  25489. // 选中状态
  25490. [`${e}-checked`]: {
  25491. [S]: {
  25492. borderColor: r,
  25493. backgroundColor: _ ? u : r,
  25494. "&::after": {
  25495. transform: `scale(${d / i})`,
  25496. opacity: 1,
  25497. transition: `all ${a} ${l}`
  25498. }
  25499. }
  25500. },
  25501. [`${e}-disabled`]: {
  25502. cursor: "not-allowed",
  25503. [S]: {
  25504. backgroundColor: h,
  25505. borderColor: c,
  25506. cursor: "not-allowed",
  25507. "&::after": {
  25508. backgroundColor: g
  25509. }
  25510. },
  25511. [`${e}-input`]: {
  25512. cursor: "not-allowed"
  25513. },
  25514. [`${e}-disabled + span`]: {
  25515. color: p,
  25516. cursor: "not-allowed"
  25517. },
  25518. [`&${e}-checked`]: {
  25519. [S]: {
  25520. "&::after": {
  25521. transform: `scale(${y / i})`
  25522. }
  25523. }
  25524. }
  25525. },
  25526. [`span${e} + *`]: {
  25527. paddingInlineStart: v,
  25528. paddingInlineEnd: v
  25529. }
  25530. })
  25531. };
  25532. }, dBe = (t) => {
  25533. const {
  25534. radioButtonColor: e,
  25535. controlHeight: n,
  25536. componentCls: r,
  25537. lineWidth: i,
  25538. lineType: a,
  25539. colorBorder: o,
  25540. motionDurationSlow: s,
  25541. motionDurationMid: l,
  25542. radioButtonPaddingHorizontal: u,
  25543. fontSize: c,
  25544. radioButtonBg: f,
  25545. fontSizeLG: d,
  25546. controlHeightLG: h,
  25547. controlHeightSM: p,
  25548. paddingXS: v,
  25549. borderRadius: g,
  25550. borderRadiusSM: m,
  25551. borderRadiusLG: y,
  25552. radioCheckedColor: _,
  25553. radioButtonCheckedBg: O,
  25554. radioButtonHoverColor: S,
  25555. radioButtonActiveColor: x,
  25556. radioSolidCheckedColor: C,
  25557. colorTextDisabled: P,
  25558. colorBgContainerDisabled: $,
  25559. radioDisabledButtonCheckedColor: T,
  25560. radioDisabledButtonCheckedBg: E
  25561. } = t;
  25562. return {
  25563. [`${r}-button-wrapper`]: {
  25564. position: "relative",
  25565. display: "inline-block",
  25566. height: n,
  25567. margin: 0,
  25568. paddingInline: u,
  25569. paddingBlock: 0,
  25570. color: e,
  25571. fontSize: c,
  25572. lineHeight: `${n - i * 2}px`,
  25573. background: f,
  25574. border: `${i}px ${a} ${o}`,
  25575. // strange align fix for chrome but works
  25576. // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
  25577. borderBlockStartWidth: i + 0.02,
  25578. borderInlineStartWidth: 0,
  25579. borderInlineEndWidth: i,
  25580. cursor: "pointer",
  25581. transition: [`color ${l}`, `background ${l}`, `border-color ${l}`, `box-shadow ${l}`].join(","),
  25582. a: {
  25583. color: e
  25584. },
  25585. [`> ${r}-button`]: {
  25586. position: "absolute",
  25587. insetBlockStart: 0,
  25588. insetInlineStart: 0,
  25589. zIndex: -1,
  25590. width: "100%",
  25591. height: "100%"
  25592. },
  25593. "&:not(:first-child)": {
  25594. "&::before": {
  25595. position: "absolute",
  25596. insetBlockStart: -i,
  25597. insetInlineStart: -i,
  25598. display: "block",
  25599. boxSizing: "content-box",
  25600. width: 1,
  25601. height: "100%",
  25602. paddingBlock: i,
  25603. paddingInline: 0,
  25604. backgroundColor: o,
  25605. transition: `background-color ${s}`,
  25606. content: '""'
  25607. }
  25608. },
  25609. "&:first-child": {
  25610. borderInlineStart: `${i}px ${a} ${o}`,
  25611. borderStartStartRadius: g,
  25612. borderEndStartRadius: g
  25613. },
  25614. "&:last-child": {
  25615. borderStartEndRadius: g,
  25616. borderEndEndRadius: g
  25617. },
  25618. "&:first-child:last-child": {
  25619. borderRadius: g
  25620. },
  25621. [`${r}-group-large &`]: {
  25622. height: h,
  25623. fontSize: d,
  25624. lineHeight: `${h - i * 2}px`,
  25625. "&:first-child": {
  25626. borderStartStartRadius: y,
  25627. borderEndStartRadius: y
  25628. },
  25629. "&:last-child": {
  25630. borderStartEndRadius: y,
  25631. borderEndEndRadius: y
  25632. }
  25633. },
  25634. [`${r}-group-small &`]: {
  25635. height: p,
  25636. paddingInline: v - i,
  25637. paddingBlock: 0,
  25638. lineHeight: `${p - i * 2}px`,
  25639. "&:first-child": {
  25640. borderStartStartRadius: m,
  25641. borderEndStartRadius: m
  25642. },
  25643. "&:last-child": {
  25644. borderStartEndRadius: m,
  25645. borderEndEndRadius: m
  25646. }
  25647. },
  25648. "&:hover": {
  25649. position: "relative",
  25650. color: _
  25651. },
  25652. "&:has(:focus-visible)": k({}, G_(t)),
  25653. [`${r}-inner, input[type='checkbox'], input[type='radio']`]: {
  25654. width: 0,
  25655. height: 0,
  25656. opacity: 0,
  25657. pointerEvents: "none"
  25658. },
  25659. [`&-checked:not(${r}-button-wrapper-disabled)`]: {
  25660. zIndex: 1,
  25661. color: _,
  25662. background: O,
  25663. borderColor: _,
  25664. "&::before": {
  25665. backgroundColor: _
  25666. },
  25667. "&:first-child": {
  25668. borderColor: _
  25669. },
  25670. "&:hover": {
  25671. color: S,
  25672. borderColor: S,
  25673. "&::before": {
  25674. backgroundColor: S
  25675. }
  25676. },
  25677. "&:active": {
  25678. color: x,
  25679. borderColor: x,
  25680. "&::before": {
  25681. backgroundColor: x
  25682. }
  25683. }
  25684. },
  25685. [`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]: {
  25686. color: C,
  25687. background: _,
  25688. borderColor: _,
  25689. "&:hover": {
  25690. color: C,
  25691. background: S,
  25692. borderColor: S
  25693. },
  25694. "&:active": {
  25695. color: C,
  25696. background: x,
  25697. borderColor: x
  25698. }
  25699. },
  25700. "&-disabled": {
  25701. color: P,
  25702. backgroundColor: $,
  25703. borderColor: o,
  25704. cursor: "not-allowed",
  25705. "&:first-child, &:hover": {
  25706. color: P,
  25707. backgroundColor: $,
  25708. borderColor: o
  25709. }
  25710. },
  25711. [`&-disabled${r}-button-wrapper-checked`]: {
  25712. color: T,
  25713. backgroundColor: E,
  25714. borderColor: o,
  25715. boxShadow: "none"
  25716. }
  25717. }
  25718. };
  25719. }, Hie = pr("Radio", (t) => {
  25720. const {
  25721. padding: e,
  25722. lineWidth: n,
  25723. controlItemBgActiveDisabled: r,
  25724. colorTextDisabled: i,
  25725. colorBgContainer: a,
  25726. fontSizeLG: o,
  25727. controlOutline: s,
  25728. colorPrimaryHover: l,
  25729. colorPrimaryActive: u,
  25730. colorText: c,
  25731. colorPrimary: f,
  25732. marginXS: d,
  25733. controlOutlineWidth: h,
  25734. colorTextLightSolid: p,
  25735. wireframe: v
  25736. } = t, g = `0 0 0 ${h}px ${s}`, m = g, y = o, _ = 4, O = y - _ * 2, S = v ? O : y - (_ + n) * 2, x = f, C = c, P = l, $ = u, T = e - n, R = bn(t, {
  25737. radioFocusShadow: g,
  25738. radioButtonFocusShadow: m,
  25739. radioSize: y,
  25740. radioDotSize: S,
  25741. radioDotDisabledSize: O,
  25742. radioCheckedColor: x,
  25743. radioDotDisabledColor: i,
  25744. radioSolidCheckedColor: p,
  25745. radioButtonBg: a,
  25746. radioButtonCheckedBg: a,
  25747. radioButtonColor: C,
  25748. radioButtonHoverColor: P,
  25749. radioButtonActiveColor: $,
  25750. radioButtonPaddingHorizontal: T,
  25751. radioDisabledButtonCheckedBg: r,
  25752. radioDisabledButtonCheckedColor: i,
  25753. radioWrapperMarginRight: d
  25754. });
  25755. return [cBe(R), fBe(R), dBe(R)];
  25756. });
  25757. var hBe = function(t, e) {
  25758. var n = {};
  25759. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  25760. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  25761. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  25762. return n;
  25763. };
  25764. const Gie = () => ({
  25765. prefixCls: String,
  25766. checked: Tt(),
  25767. disabled: Tt(),
  25768. isGroup: Tt(),
  25769. value: oe.any,
  25770. name: String,
  25771. id: String,
  25772. autofocus: Tt(),
  25773. onChange: Ct(),
  25774. onFocus: Ct(),
  25775. onBlur: Ct(),
  25776. onClick: Ct(),
  25777. "onUpdate:checked": Ct(),
  25778. "onUpdate:value": Ct()
  25779. }), Ta = ae({
  25780. compatConfig: {
  25781. MODE: 3
  25782. },
  25783. name: "ARadio",
  25784. inheritAttrs: !1,
  25785. props: Gie(),
  25786. setup(t, e) {
  25787. let {
  25788. emit: n,
  25789. expose: r,
  25790. slots: i,
  25791. attrs: a
  25792. } = e;
  25793. const o = Ul(), s = Qs.useInject(), l = lBe(), u = oBe(), c = Vl(), f = V(() => {
  25794. var P;
  25795. return (P = v.value) !== null && P !== void 0 ? P : c.value;
  25796. }), d = ee(), {
  25797. prefixCls: h,
  25798. direction: p,
  25799. disabled: v
  25800. } = hn("radio", t), g = V(() => (u == null ? void 0 : u.optionType.value) === "button" || l === "button" ? `${h.value}-button` : h.value), m = Vl(), [y, _] = Hie(h);
  25801. r({
  25802. focus: () => {
  25803. d.value.focus();
  25804. },
  25805. blur: () => {
  25806. d.value.blur();
  25807. }
  25808. });
  25809. const x = (P) => {
  25810. const $ = P.target.checked;
  25811. n("update:checked", $), n("update:value", $), n("change", P), o.onFieldChange();
  25812. }, C = (P) => {
  25813. n("change", P), u && u.onChange && u.onChange(P);
  25814. };
  25815. return () => {
  25816. var P;
  25817. const $ = u, {
  25818. prefixCls: T,
  25819. id: E = o.id.value
  25820. } = t, M = hBe(t, ["prefixCls", "id"]), R = k(k({
  25821. prefixCls: g.value,
  25822. id: E
  25823. }, si(M, ["onUpdate:checked", "onUpdate:value"])), {
  25824. disabled: (P = v.value) !== null && P !== void 0 ? P : m.value
  25825. });
  25826. $ ? (R.name = $.name.value, R.onChange = C, R.checked = t.value === $.value.value, R.disabled = f.value || $.disabled.value) : R.onChange = x;
  25827. const N = Re({
  25828. [`${g.value}-wrapper`]: !0,
  25829. [`${g.value}-wrapper-checked`]: R.checked,
  25830. [`${g.value}-wrapper-disabled`]: R.disabled,
  25831. [`${g.value}-wrapper-rtl`]: p.value === "rtl",
  25832. [`${g.value}-wrapper-in-form-item`]: s.isFormItemInput
  25833. }, a.class, _.value);
  25834. return y(D("label", te(te({}, a), {}, {
  25835. class: N
  25836. }), [D(Fie, te(te({}, R), {}, {
  25837. type: "radio",
  25838. ref: d
  25839. }), null), i.default && D("span", null, [i.default()])]));
  25840. };
  25841. }
  25842. }), pBe = () => ({
  25843. prefixCls: String,
  25844. value: oe.any,
  25845. size: rr(),
  25846. options: Lh(),
  25847. disabled: Tt(),
  25848. name: String,
  25849. buttonStyle: rr("outline"),
  25850. id: String,
  25851. optionType: rr("default"),
  25852. onChange: Ct(),
  25853. "onUpdate:value": Ct()
  25854. }), Fh = ae({
  25855. compatConfig: {
  25856. MODE: 3
  25857. },
  25858. name: "ARadioGroup",
  25859. inheritAttrs: !1,
  25860. props: pBe(),
  25861. // emits: ['update:value', 'change'],
  25862. setup(t, e) {
  25863. let {
  25864. slots: n,
  25865. emit: r,
  25866. attrs: i
  25867. } = e;
  25868. const a = Ul(), {
  25869. prefixCls: o,
  25870. direction: s,
  25871. size: l
  25872. } = hn("radio", t), [u, c] = Hie(o), f = ee(t.value), d = ee(!1);
  25873. return me(() => t.value, (p) => {
  25874. f.value = p, d.value = !1;
  25875. }), aBe({
  25876. onChange: (p) => {
  25877. const v = f.value, {
  25878. value: g
  25879. } = p.target;
  25880. "value" in t || (f.value = g), !d.value && g !== v && (d.value = !0, r("update:value", g), r("change", p), a.onFieldChange()), Bt(() => {
  25881. d.value = !1;
  25882. });
  25883. },
  25884. value: f,
  25885. disabled: V(() => t.disabled),
  25886. name: V(() => t.name),
  25887. optionType: V(() => t.optionType)
  25888. }), () => {
  25889. var p;
  25890. const {
  25891. options: v,
  25892. buttonStyle: g,
  25893. id: m = a.id.value
  25894. } = t, y = `${o.value}-group`, _ = Re(y, `${y}-${g}`, {
  25895. [`${y}-${l.value}`]: l.value,
  25896. [`${y}-rtl`]: s.value === "rtl"
  25897. }, i.class, c.value);
  25898. let O = null;
  25899. return v && v.length > 0 ? O = v.map((S) => {
  25900. if (typeof S == "string" || typeof S == "number")
  25901. return D(Ta, {
  25902. key: S,
  25903. prefixCls: o.value,
  25904. disabled: t.disabled,
  25905. value: S,
  25906. checked: f.value === S
  25907. }, {
  25908. default: () => [S]
  25909. });
  25910. const {
  25911. value: x,
  25912. disabled: C,
  25913. label: P
  25914. } = S;
  25915. return D(Ta, {
  25916. key: `radio-group-value-options-${x}`,
  25917. prefixCls: o.value,
  25918. disabled: C || t.disabled,
  25919. value: x,
  25920. checked: f.value === x
  25921. }, {
  25922. default: () => [P]
  25923. });
  25924. }) : O = (p = n.default) === null || p === void 0 ? void 0 : p.call(n), u(D("div", te(te({}, i), {}, {
  25925. class: _,
  25926. id: m
  25927. }), [O]));
  25928. };
  25929. }
  25930. }), _l = ae({
  25931. compatConfig: {
  25932. MODE: 3
  25933. },
  25934. name: "ARadioButton",
  25935. inheritAttrs: !1,
  25936. props: Gie(),
  25937. setup(t, e) {
  25938. let {
  25939. slots: n,
  25940. attrs: r
  25941. } = e;
  25942. const {
  25943. prefixCls: i
  25944. } = hn("radio", t);
  25945. return sBe("button"), () => {
  25946. var a;
  25947. return D(Ta, te(te(te({}, r), t), {}, {
  25948. prefixCls: i.value
  25949. }), {
  25950. default: () => [(a = n.default) === null || a === void 0 ? void 0 : a.call(n)]
  25951. });
  25952. };
  25953. }
  25954. });
  25955. Ta.Group = Fh;
  25956. Ta.Button = _l;
  25957. Ta.install = function(t) {
  25958. return t.component(Ta.name, Ta), t.component(Ta.Group.name, Ta.Group), t.component(Ta.Button.name, Ta.Button), t;
  25959. };
  25960. const jie = (t) => ({
  25961. // Firefox
  25962. "&::-moz-placeholder": {
  25963. opacity: 1
  25964. },
  25965. "&::placeholder": {
  25966. color: t,
  25967. userSelect: "none"
  25968. // https://github.com/ant-design/ant-design/pull/32639
  25969. },
  25970. "&:placeholder-shown": {
  25971. textOverflow: "ellipsis"
  25972. }
  25973. }), X_ = (t) => ({
  25974. borderColor: t.inputBorderHoverColor,
  25975. borderInlineEndWidth: t.lineWidth
  25976. }), cC = (t) => ({
  25977. borderColor: t.inputBorderHoverColor,
  25978. boxShadow: `0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,
  25979. borderInlineEndWidth: t.lineWidth,
  25980. outline: 0
  25981. }), Zie = (t) => ({
  25982. color: t.colorTextDisabled,
  25983. backgroundColor: t.colorBgContainerDisabled,
  25984. borderColor: t.colorBorder,
  25985. boxShadow: "none",
  25986. cursor: "not-allowed",
  25987. opacity: 1,
  25988. "&:hover": k({}, X_(bn(t, {
  25989. inputBorderHoverColor: t.colorBorder
  25990. })))
  25991. }), Uie = (t) => {
  25992. const {
  25993. inputPaddingVerticalLG: e,
  25994. fontSizeLG: n,
  25995. lineHeightLG: r,
  25996. borderRadiusLG: i,
  25997. inputPaddingHorizontalLG: a
  25998. } = t;
  25999. return {
  26000. padding: `${e}px ${a}px`,
  26001. fontSize: n,
  26002. lineHeight: r,
  26003. borderRadius: i
  26004. };
  26005. }, Xie = (t) => ({
  26006. padding: `${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM - 1}px`,
  26007. borderRadius: t.borderRadiusSM
  26008. }), H2 = (t, e) => {
  26009. const {
  26010. componentCls: n,
  26011. colorError: r,
  26012. colorWarning: i,
  26013. colorErrorOutline: a,
  26014. colorWarningOutline: o,
  26015. colorErrorBorderHover: s,
  26016. colorWarningBorderHover: l
  26017. } = t;
  26018. return {
  26019. [`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]: {
  26020. borderColor: r,
  26021. "&:hover": {
  26022. borderColor: s
  26023. },
  26024. "&:focus, &-focused": k({}, cC(bn(t, {
  26025. inputBorderActiveColor: r,
  26026. inputBorderHoverColor: r,
  26027. controlOutline: a
  26028. }))),
  26029. [`${n}-prefix`]: {
  26030. color: r
  26031. }
  26032. },
  26033. [`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]: {
  26034. borderColor: i,
  26035. "&:hover": {
  26036. borderColor: l
  26037. },
  26038. "&:focus, &-focused": k({}, cC(bn(t, {
  26039. inputBorderActiveColor: i,
  26040. inputBorderHoverColor: i,
  26041. controlOutline: o
  26042. }))),
  26043. [`${n}-prefix`]: {
  26044. color: i
  26045. }
  26046. }
  26047. };
  26048. }, G2 = (t) => k(k({
  26049. position: "relative",
  26050. display: "inline-block",
  26051. width: "100%",
  26052. minWidth: 0,
  26053. padding: `${t.inputPaddingVertical}px ${t.inputPaddingHorizontal}px`,
  26054. color: t.colorText,
  26055. fontSize: t.fontSize,
  26056. lineHeight: t.lineHeight,
  26057. backgroundColor: t.colorBgContainer,
  26058. backgroundImage: "none",
  26059. borderWidth: t.lineWidth,
  26060. borderStyle: t.lineType,
  26061. borderColor: t.colorBorder,
  26062. borderRadius: t.borderRadius,
  26063. transition: `all ${t.motionDurationMid}`
  26064. }, jie(t.colorTextPlaceholder)), {
  26065. "&:hover": k({}, X_(t)),
  26066. "&:focus, &-focused": k({}, cC(t)),
  26067. "&-disabled, &[disabled]": k({}, Zie(t)),
  26068. "&-borderless": {
  26069. "&, &:hover, &:focus, &-focused, &-disabled, &[disabled]": {
  26070. backgroundColor: "transparent",
  26071. border: "none",
  26072. boxShadow: "none"
  26073. }
  26074. },
  26075. // Reset height for `textarea`s
  26076. "textarea&": {
  26077. maxWidth: "100%",
  26078. height: "auto",
  26079. minHeight: t.controlHeight,
  26080. lineHeight: t.lineHeight,
  26081. verticalAlign: "bottom",
  26082. transition: `all ${t.motionDurationSlow}, height 0s`,
  26083. resize: "vertical"
  26084. },
  26085. // Size
  26086. "&-lg": k({}, Uie(t)),
  26087. "&-sm": k({}, Xie(t)),
  26088. // RTL
  26089. "&-rtl": {
  26090. direction: "rtl"
  26091. },
  26092. "&-textarea-rtl": {
  26093. direction: "rtl"
  26094. }
  26095. }), Yie = (t) => {
  26096. const {
  26097. componentCls: e,
  26098. antCls: n
  26099. } = t;
  26100. return {
  26101. position: "relative",
  26102. display: "table",
  26103. width: "100%",
  26104. borderCollapse: "separate",
  26105. borderSpacing: 0,
  26106. // Undo padding and float of grid classes
  26107. "&[class*='col-']": {
  26108. paddingInlineEnd: t.paddingXS,
  26109. "&:last-child": {
  26110. paddingInlineEnd: 0
  26111. }
  26112. },
  26113. // Sizing options
  26114. [`&-lg ${e}, &-lg > ${e}-group-addon`]: k({}, Uie(t)),
  26115. [`&-sm ${e}, &-sm > ${e}-group-addon`]: k({}, Xie(t)),
  26116. [`> ${e}`]: {
  26117. display: "table-cell",
  26118. "&:not(:first-child):not(:last-child)": {
  26119. borderRadius: 0
  26120. }
  26121. },
  26122. [`${e}-group`]: {
  26123. "&-addon, &-wrap": {
  26124. display: "table-cell",
  26125. width: 1,
  26126. whiteSpace: "nowrap",
  26127. verticalAlign: "middle",
  26128. "&:not(:first-child):not(:last-child)": {
  26129. borderRadius: 0
  26130. }
  26131. },
  26132. "&-wrap > *": {
  26133. display: "block !important"
  26134. },
  26135. "&-addon": {
  26136. position: "relative",
  26137. padding: `0 ${t.inputPaddingHorizontal}px`,
  26138. color: t.colorText,
  26139. fontWeight: "normal",
  26140. fontSize: t.fontSize,
  26141. textAlign: "center",
  26142. backgroundColor: t.colorFillAlter,
  26143. border: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,
  26144. borderRadius: t.borderRadius,
  26145. transition: `all ${t.motionDurationSlow}`,
  26146. lineHeight: 1,
  26147. // Reset Select's style in addon
  26148. [`${n}-select`]: {
  26149. margin: `-${t.inputPaddingVertical + 1}px -${t.inputPaddingHorizontal}px`,
  26150. [`&${n}-select-single:not(${n}-select-customize-input)`]: {
  26151. [`${n}-select-selector`]: {
  26152. backgroundColor: "inherit",
  26153. border: `${t.lineWidth}px ${t.lineType} transparent`,
  26154. boxShadow: "none"
  26155. }
  26156. },
  26157. "&-open, &-focused": {
  26158. [`${n}-select-selector`]: {
  26159. color: t.colorPrimary
  26160. }
  26161. }
  26162. },
  26163. // https://github.com/ant-design/ant-design/issues/31333
  26164. [`${n}-cascader-picker`]: {
  26165. margin: `-9px -${t.inputPaddingHorizontal}px`,
  26166. backgroundColor: "transparent",
  26167. [`${n}-cascader-input`]: {
  26168. textAlign: "start",
  26169. border: 0,
  26170. boxShadow: "none"
  26171. }
  26172. }
  26173. },
  26174. "&-addon:first-child": {
  26175. borderInlineEnd: 0
  26176. },
  26177. "&-addon:last-child": {
  26178. borderInlineStart: 0
  26179. }
  26180. },
  26181. [`${e}`]: {
  26182. float: "inline-start",
  26183. width: "100%",
  26184. marginBottom: 0,
  26185. textAlign: "inherit",
  26186. "&:focus": {
  26187. zIndex: 1,
  26188. borderInlineEndWidth: 1
  26189. },
  26190. "&:hover": {
  26191. zIndex: 1,
  26192. borderInlineEndWidth: 1,
  26193. [`${e}-search-with-button &`]: {
  26194. zIndex: 0
  26195. }
  26196. }
  26197. },
  26198. // Reset rounded corners
  26199. [`> ${e}:first-child, ${e}-group-addon:first-child`]: {
  26200. borderStartEndRadius: 0,
  26201. borderEndEndRadius: 0,
  26202. // Reset Select's style in addon
  26203. [`${n}-select ${n}-select-selector`]: {
  26204. borderStartEndRadius: 0,
  26205. borderEndEndRadius: 0
  26206. }
  26207. },
  26208. [`> ${e}-affix-wrapper`]: {
  26209. [`&:not(:first-child) ${e}`]: {
  26210. borderStartStartRadius: 0,
  26211. borderEndStartRadius: 0
  26212. },
  26213. [`&:not(:last-child) ${e}`]: {
  26214. borderStartEndRadius: 0,
  26215. borderEndEndRadius: 0
  26216. }
  26217. },
  26218. [`> ${e}:last-child, ${e}-group-addon:last-child`]: {
  26219. borderStartStartRadius: 0,
  26220. borderEndStartRadius: 0,
  26221. // Reset Select's style in addon
  26222. [`${n}-select ${n}-select-selector`]: {
  26223. borderStartStartRadius: 0,
  26224. borderEndStartRadius: 0
  26225. }
  26226. },
  26227. [`${e}-affix-wrapper`]: {
  26228. "&:not(:last-child)": {
  26229. borderStartEndRadius: 0,
  26230. borderEndEndRadius: 0,
  26231. [`${e}-search &`]: {
  26232. borderStartStartRadius: t.borderRadius,
  26233. borderEndStartRadius: t.borderRadius
  26234. }
  26235. },
  26236. [`&:not(:first-child), ${e}-search &:not(:first-child)`]: {
  26237. borderStartStartRadius: 0,
  26238. borderEndStartRadius: 0
  26239. }
  26240. },
  26241. [`&${e}-group-compact`]: k(k({
  26242. display: "block"
  26243. }, Kw()), {
  26244. [`${e}-group-addon, ${e}-group-wrap, > ${e}`]: {
  26245. "&:not(:first-child):not(:last-child)": {
  26246. borderInlineEndWidth: t.lineWidth,
  26247. "&:hover": {
  26248. zIndex: 1
  26249. },
  26250. "&:focus": {
  26251. zIndex: 1
  26252. }
  26253. }
  26254. },
  26255. "& > *": {
  26256. display: "inline-block",
  26257. float: "none",
  26258. verticalAlign: "top",
  26259. borderRadius: 0
  26260. },
  26261. [`& > ${e}-affix-wrapper`]: {
  26262. display: "inline-flex"
  26263. },
  26264. [`& > ${n}-picker-range`]: {
  26265. display: "inline-flex"
  26266. },
  26267. "& > *:not(:last-child)": {
  26268. marginInlineEnd: -t.lineWidth,
  26269. borderInlineEndWidth: t.lineWidth
  26270. },
  26271. // Undo float for .ant-input-group .ant-input
  26272. [`${e}`]: {
  26273. float: "none"
  26274. },
  26275. // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
  26276. [`& > ${n}-select > ${n}-select-selector,
  26277. & > ${n}-select-auto-complete ${e},
  26278. & > ${n}-cascader-picker ${e},
  26279. & > ${e}-group-wrapper ${e}`]: {
  26280. borderInlineEndWidth: t.lineWidth,
  26281. borderRadius: 0,
  26282. "&:hover": {
  26283. zIndex: 1
  26284. },
  26285. "&:focus": {
  26286. zIndex: 1
  26287. }
  26288. },
  26289. [`& > ${n}-select-focused`]: {
  26290. zIndex: 1
  26291. },
  26292. // update z-index for arrow icon
  26293. [`& > ${n}-select > ${n}-select-arrow`]: {
  26294. zIndex: 1
  26295. // https://github.com/ant-design/ant-design/issues/20371
  26296. },
  26297. [`& > *:first-child,
  26298. & > ${n}-select:first-child > ${n}-select-selector,
  26299. & > ${n}-select-auto-complete:first-child ${e},
  26300. & > ${n}-cascader-picker:first-child ${e}`]: {
  26301. borderStartStartRadius: t.borderRadius,
  26302. borderEndStartRadius: t.borderRadius
  26303. },
  26304. [`& > *:last-child,
  26305. & > ${n}-select:last-child > ${n}-select-selector,
  26306. & > ${n}-cascader-picker:last-child ${e},
  26307. & > ${n}-cascader-picker-focused:last-child ${e}`]: {
  26308. borderInlineEndWidth: t.lineWidth,
  26309. borderStartEndRadius: t.borderRadius,
  26310. borderEndEndRadius: t.borderRadius
  26311. },
  26312. // https://github.com/ant-design/ant-design/issues/12493
  26313. [`& > ${n}-select-auto-complete ${e}`]: {
  26314. verticalAlign: "top"
  26315. },
  26316. [`${e}-group-wrapper + ${e}-group-wrapper`]: {
  26317. marginInlineStart: -t.lineWidth,
  26318. [`${e}-affix-wrapper`]: {
  26319. borderRadius: 0
  26320. }
  26321. },
  26322. [`${e}-group-wrapper:not(:last-child)`]: {
  26323. [`&${e}-search > ${e}-group`]: {
  26324. [`& > ${e}-group-addon > ${e}-search-button`]: {
  26325. borderRadius: 0
  26326. },
  26327. [`& > ${e}`]: {
  26328. borderStartStartRadius: t.borderRadius,
  26329. borderStartEndRadius: 0,
  26330. borderEndEndRadius: 0,
  26331. borderEndStartRadius: t.borderRadius
  26332. }
  26333. }
  26334. }
  26335. }),
  26336. [`&&-sm ${n}-btn`]: {
  26337. fontSize: t.fontSizeSM,
  26338. height: t.controlHeightSM,
  26339. lineHeight: "normal"
  26340. },
  26341. [`&&-lg ${n}-btn`]: {
  26342. fontSize: t.fontSizeLG,
  26343. height: t.controlHeightLG,
  26344. lineHeight: "normal"
  26345. },
  26346. // Fix https://github.com/ant-design/ant-design/issues/5754
  26347. [`&&-lg ${n}-select-single ${n}-select-selector`]: {
  26348. height: `${t.controlHeightLG}px`,
  26349. [`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
  26350. // -2 is for the border size & override default
  26351. lineHeight: `${t.controlHeightLG - 2}px`
  26352. },
  26353. [`${n}-select-selection-search-input`]: {
  26354. height: `${t.controlHeightLG}px`
  26355. }
  26356. },
  26357. [`&&-sm ${n}-select-single ${n}-select-selector`]: {
  26358. height: `${t.controlHeightSM}px`,
  26359. [`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
  26360. // -2 is for the border size & override default
  26361. lineHeight: `${t.controlHeightSM - 2}px`
  26362. },
  26363. [`${n}-select-selection-search-input`]: {
  26364. height: `${t.controlHeightSM}px`
  26365. }
  26366. }
  26367. };
  26368. }, vBe = (t) => {
  26369. const {
  26370. componentCls: e,
  26371. controlHeightSM: n,
  26372. lineWidth: r
  26373. } = t, a = (n - r * 2 - 16) / 2;
  26374. return {
  26375. [e]: k(k(k(k({}, Gn(t)), G2(t)), H2(t, e)), {
  26376. '&[type="color"]': {
  26377. height: t.controlHeight,
  26378. [`&${e}-lg`]: {
  26379. height: t.controlHeightLG
  26380. },
  26381. [`&${e}-sm`]: {
  26382. height: n,
  26383. paddingTop: a,
  26384. paddingBottom: a
  26385. }
  26386. }
  26387. })
  26388. };
  26389. }, gBe = (t) => {
  26390. const {
  26391. componentCls: e
  26392. } = t;
  26393. return {
  26394. // ========================= Input =========================
  26395. [`${e}-clear-icon`]: {
  26396. margin: 0,
  26397. color: t.colorTextQuaternary,
  26398. fontSize: t.fontSizeIcon,
  26399. verticalAlign: -1,
  26400. // https://github.com/ant-design/ant-design/pull/18151
  26401. // https://codesandbox.io/s/wizardly-sun-u10br
  26402. cursor: "pointer",
  26403. transition: `color ${t.motionDurationSlow}`,
  26404. "&:hover": {
  26405. color: t.colorTextTertiary
  26406. },
  26407. "&:active": {
  26408. color: t.colorText
  26409. },
  26410. "&-hidden": {
  26411. visibility: "hidden"
  26412. },
  26413. "&-has-suffix": {
  26414. margin: `0 ${t.inputAffixPadding}px`
  26415. }
  26416. },
  26417. // ======================= TextArea ========================
  26418. "&-textarea-with-clear-btn": {
  26419. padding: "0 !important",
  26420. border: "0 !important",
  26421. [`${e}-clear-icon`]: {
  26422. position: "absolute",
  26423. insetBlockStart: t.paddingXS,
  26424. insetInlineEnd: t.paddingXS,
  26425. zIndex: 1
  26426. }
  26427. }
  26428. };
  26429. }, mBe = (t) => {
  26430. const {
  26431. componentCls: e,
  26432. inputAffixPadding: n,
  26433. colorTextDescription: r,
  26434. motionDurationSlow: i,
  26435. colorIcon: a,
  26436. colorIconHover: o,
  26437. iconCls: s
  26438. } = t;
  26439. return {
  26440. [`${e}-affix-wrapper`]: k(k(k(k(k({}, G2(t)), {
  26441. display: "inline-flex",
  26442. [`&:not(${e}-affix-wrapper-disabled):hover`]: k(k({}, X_(t)), {
  26443. zIndex: 1,
  26444. [`${e}-search-with-button &`]: {
  26445. zIndex: 0
  26446. }
  26447. }),
  26448. "&-focused, &:focus": {
  26449. zIndex: 1
  26450. },
  26451. "&-disabled": {
  26452. [`${e}[disabled]`]: {
  26453. background: "transparent"
  26454. }
  26455. },
  26456. [`> input${e}`]: {
  26457. padding: 0,
  26458. fontSize: "inherit",
  26459. border: "none",
  26460. borderRadius: 0,
  26461. outline: "none",
  26462. "&:focus": {
  26463. boxShadow: "none !important"
  26464. }
  26465. },
  26466. "&::before": {
  26467. width: 0,
  26468. visibility: "hidden",
  26469. content: '"\\a0"'
  26470. },
  26471. [`${e}`]: {
  26472. "&-prefix, &-suffix": {
  26473. display: "flex",
  26474. flex: "none",
  26475. alignItems: "center",
  26476. "> *:not(:last-child)": {
  26477. marginInlineEnd: t.paddingXS
  26478. }
  26479. },
  26480. "&-show-count-suffix": {
  26481. color: r
  26482. },
  26483. "&-show-count-has-suffix": {
  26484. marginInlineEnd: t.paddingXXS
  26485. },
  26486. "&-prefix": {
  26487. marginInlineEnd: n
  26488. },
  26489. "&-suffix": {
  26490. marginInlineStart: n
  26491. }
  26492. }
  26493. }), gBe(t)), {
  26494. // password
  26495. [`${s}${e}-password-icon`]: {
  26496. color: a,
  26497. cursor: "pointer",
  26498. transition: `all ${i}`,
  26499. "&:hover": {
  26500. color: o
  26501. }
  26502. }
  26503. }), H2(t, `${e}-affix-wrapper`))
  26504. };
  26505. }, yBe = (t) => {
  26506. const {
  26507. componentCls: e,
  26508. colorError: n,
  26509. colorSuccess: r,
  26510. borderRadiusLG: i,
  26511. borderRadiusSM: a
  26512. } = t;
  26513. return {
  26514. [`${e}-group`]: k(k(k({}, Gn(t)), Yie(t)), {
  26515. "&-rtl": {
  26516. direction: "rtl"
  26517. },
  26518. "&-wrapper": {
  26519. display: "inline-block",
  26520. width: "100%",
  26521. textAlign: "start",
  26522. verticalAlign: "top",
  26523. "&-rtl": {
  26524. direction: "rtl"
  26525. },
  26526. // Size
  26527. "&-lg": {
  26528. [`${e}-group-addon`]: {
  26529. borderRadius: i
  26530. }
  26531. },
  26532. "&-sm": {
  26533. [`${e}-group-addon`]: {
  26534. borderRadius: a
  26535. }
  26536. },
  26537. // Status
  26538. "&-status-error": {
  26539. [`${e}-group-addon`]: {
  26540. color: n,
  26541. borderColor: n
  26542. }
  26543. },
  26544. "&-status-warning": {
  26545. [`${e}-group-addon:last-child`]: {
  26546. color: r,
  26547. borderColor: r
  26548. }
  26549. }
  26550. }
  26551. })
  26552. };
  26553. }, bBe = (t) => {
  26554. const {
  26555. componentCls: e,
  26556. antCls: n
  26557. } = t, r = `${e}-search`;
  26558. return {
  26559. [r]: {
  26560. [`${e}`]: {
  26561. "&:hover, &:focus": {
  26562. borderColor: t.colorPrimaryHover,
  26563. [`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]: {
  26564. borderInlineStartColor: t.colorPrimaryHover
  26565. }
  26566. }
  26567. },
  26568. [`${e}-affix-wrapper`]: {
  26569. borderRadius: 0
  26570. },
  26571. // fix slight height diff in Firefox:
  26572. // https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-certain-category
  26573. [`${e}-lg`]: {
  26574. lineHeight: t.lineHeightLG - 2e-4
  26575. },
  26576. [`> ${e}-group`]: {
  26577. [`> ${e}-group-addon:last-child`]: {
  26578. insetInlineStart: -1,
  26579. padding: 0,
  26580. border: 0,
  26581. [`${r}-button`]: {
  26582. paddingTop: 0,
  26583. paddingBottom: 0,
  26584. borderStartStartRadius: 0,
  26585. borderStartEndRadius: t.borderRadius,
  26586. borderEndEndRadius: t.borderRadius,
  26587. borderEndStartRadius: 0
  26588. },
  26589. [`${r}-button:not(${n}-btn-primary)`]: {
  26590. color: t.colorTextDescription,
  26591. "&:hover": {
  26592. color: t.colorPrimaryHover
  26593. },
  26594. "&:active": {
  26595. color: t.colorPrimaryActive
  26596. },
  26597. [`&${n}-btn-loading::before`]: {
  26598. insetInlineStart: 0,
  26599. insetInlineEnd: 0,
  26600. insetBlockStart: 0,
  26601. insetBlockEnd: 0
  26602. }
  26603. }
  26604. }
  26605. },
  26606. [`${r}-button`]: {
  26607. height: t.controlHeight,
  26608. "&:hover, &:focus": {
  26609. zIndex: 1
  26610. }
  26611. },
  26612. [`&-large ${r}-button`]: {
  26613. height: t.controlHeightLG
  26614. },
  26615. [`&-small ${r}-button`]: {
  26616. height: t.controlHeightSM
  26617. },
  26618. "&-rtl": {
  26619. direction: "rtl"
  26620. },
  26621. // ===================== Compact Item Customized Styles =====================
  26622. [`&${e}-compact-item`]: {
  26623. [`&:not(${e}-compact-last-item)`]: {
  26624. [`${e}-group-addon`]: {
  26625. [`${e}-search-button`]: {
  26626. marginInlineEnd: -t.lineWidth,
  26627. borderRadius: 0
  26628. }
  26629. }
  26630. },
  26631. [`&:not(${e}-compact-first-item)`]: {
  26632. [`${e},${e}-affix-wrapper`]: {
  26633. borderRadius: 0
  26634. }
  26635. },
  26636. [`> ${e}-group-addon ${e}-search-button,
  26637. > ${e},
  26638. ${e}-affix-wrapper`]: {
  26639. "&:hover,&:focus,&:active": {
  26640. zIndex: 2
  26641. }
  26642. },
  26643. [`> ${e}-affix-wrapper-focused`]: {
  26644. zIndex: 2
  26645. }
  26646. }
  26647. }
  26648. };
  26649. };
  26650. function qie(t) {
  26651. return bn(t, {
  26652. inputAffixPadding: t.paddingXXS,
  26653. inputPaddingVertical: Math.max(Math.round((t.controlHeight - t.fontSize * t.lineHeight) / 2 * 10) / 10 - t.lineWidth, 3),
  26654. inputPaddingVerticalLG: Math.ceil((t.controlHeightLG - t.fontSizeLG * t.lineHeightLG) / 2 * 10) / 10 - t.lineWidth,
  26655. inputPaddingVerticalSM: Math.max(Math.round((t.controlHeightSM - t.fontSize * t.lineHeight) / 2 * 10) / 10 - t.lineWidth, 0),
  26656. inputPaddingHorizontal: t.paddingSM - t.lineWidth,
  26657. inputPaddingHorizontalSM: t.paddingXS - t.lineWidth,
  26658. inputPaddingHorizontalLG: t.controlPaddingHorizontal - t.lineWidth,
  26659. inputBorderHoverColor: t.colorPrimaryHover,
  26660. inputBorderActiveColor: t.colorPrimaryHover
  26661. });
  26662. }
  26663. const _Be = (t) => {
  26664. const {
  26665. componentCls: e,
  26666. inputPaddingHorizontal: n,
  26667. paddingLG: r
  26668. } = t, i = `${e}-textarea`;
  26669. return {
  26670. [i]: {
  26671. position: "relative",
  26672. [`${i}-suffix`]: {
  26673. position: "absolute",
  26674. top: 0,
  26675. insetInlineEnd: n,
  26676. bottom: 0,
  26677. zIndex: 1,
  26678. display: "inline-flex",
  26679. alignItems: "center",
  26680. margin: "auto"
  26681. },
  26682. "&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating": {
  26683. [`&${i}-has-feedback`]: {
  26684. [`${e}`]: {
  26685. paddingInlineEnd: r
  26686. }
  26687. }
  26688. },
  26689. "&-show-count": {
  26690. // https://github.com/ant-design/ant-design/issues/33049
  26691. [`> ${e}`]: {
  26692. height: "100%"
  26693. },
  26694. "&::after": {
  26695. color: t.colorTextDescription,
  26696. whiteSpace: "nowrap",
  26697. content: "attr(data-count)",
  26698. pointerEvents: "none",
  26699. float: "right"
  26700. }
  26701. },
  26702. "&-rtl": {
  26703. "&::after": {
  26704. float: "left"
  26705. }
  26706. }
  26707. }
  26708. };
  26709. }, C8 = pr("Input", (t) => {
  26710. const e = qie(t);
  26711. return [
  26712. vBe(e),
  26713. _Be(e),
  26714. mBe(e),
  26715. yBe(e),
  26716. bBe(e),
  26717. // =====================================================
  26718. // == Space Compact ==
  26719. // =====================================================
  26720. z2(e)
  26721. ];
  26722. });
  26723. function OBe(t) {
  26724. const e = ve(), n = ve(!1);
  26725. function r() {
  26726. for (var i = arguments.length, a = new Array(i), o = 0; o < i; o++)
  26727. a[o] = arguments[o];
  26728. n.value || (en.cancel(e.value), e.value = en(() => {
  26729. t(...a);
  26730. }));
  26731. }
  26732. return Qt(() => {
  26733. n.value = !0, en.cancel(e.value);
  26734. }), r;
  26735. }
  26736. function SBe(t) {
  26737. const e = ve([]), n = ve(typeof t == "function" ? t() : t), r = OBe(() => {
  26738. let a = n.value;
  26739. e.value.forEach((o) => {
  26740. a = o(a);
  26741. }), e.value = [], n.value = a;
  26742. });
  26743. function i(a) {
  26744. e.value.push(a), r();
  26745. }
  26746. return [n, i];
  26747. }
  26748. const xBe = ae({
  26749. compatConfig: {
  26750. MODE: 3
  26751. },
  26752. name: "TabNode",
  26753. props: {
  26754. id: {
  26755. type: String
  26756. },
  26757. prefixCls: {
  26758. type: String
  26759. },
  26760. tab: {
  26761. type: Object
  26762. },
  26763. active: {
  26764. type: Boolean
  26765. },
  26766. closable: {
  26767. type: Boolean
  26768. },
  26769. editable: {
  26770. type: Object
  26771. },
  26772. onClick: {
  26773. type: Function
  26774. },
  26775. onResize: {
  26776. type: Function
  26777. },
  26778. renderWrapper: {
  26779. type: Function
  26780. },
  26781. removeAriaLabel: {
  26782. type: String
  26783. },
  26784. // onRemove: { type: Function as PropType<() => void> },
  26785. onFocus: {
  26786. type: Function
  26787. }
  26788. },
  26789. emits: ["click", "resize", "remove", "focus"],
  26790. setup(t, e) {
  26791. let {
  26792. expose: n,
  26793. attrs: r
  26794. } = e;
  26795. const i = ee();
  26796. function a(l) {
  26797. var u;
  26798. !((u = t.tab) === null || u === void 0) && u.disabled || t.onClick(l);
  26799. }
  26800. n({
  26801. domRef: i
  26802. });
  26803. function o(l) {
  26804. var u;
  26805. l.preventDefault(), l.stopPropagation(), t.editable.onEdit("remove", {
  26806. key: (u = t.tab) === null || u === void 0 ? void 0 : u.key,
  26807. event: l
  26808. });
  26809. }
  26810. const s = V(() => {
  26811. var l;
  26812. return t.editable && t.closable !== !1 && !(!((l = t.tab) === null || l === void 0) && l.disabled);
  26813. });
  26814. return () => {
  26815. var l;
  26816. const {
  26817. prefixCls: u,
  26818. id: c,
  26819. active: f,
  26820. tab: {
  26821. key: d,
  26822. tab: h,
  26823. disabled: p,
  26824. closeIcon: v
  26825. },
  26826. renderWrapper: g,
  26827. removeAriaLabel: m,
  26828. editable: y,
  26829. onFocus: _
  26830. } = t, O = `${u}-tab`, S = D("div", {
  26831. key: d,
  26832. ref: i,
  26833. class: Re(O, {
  26834. [`${O}-with-remove`]: s.value,
  26835. [`${O}-active`]: f,
  26836. [`${O}-disabled`]: p
  26837. }),
  26838. style: r.style,
  26839. onClick: a
  26840. }, [D("div", {
  26841. role: "tab",
  26842. "aria-selected": f,
  26843. id: c && `${c}-tab-${d}`,
  26844. class: `${O}-btn`,
  26845. "aria-controls": c && `${c}-panel-${d}`,
  26846. "aria-disabled": p,
  26847. tabindex: p ? null : 0,
  26848. onClick: (x) => {
  26849. x.stopPropagation(), a(x);
  26850. },
  26851. onKeydown: (x) => {
  26852. [Me.SPACE, Me.ENTER].includes(x.which) && (x.preventDefault(), a(x));
  26853. },
  26854. onFocus: _
  26855. }, [typeof h == "function" ? h() : h]), s.value && D("button", {
  26856. type: "button",
  26857. "aria-label": m || "remove",
  26858. tabindex: 0,
  26859. class: `${O}-remove`,
  26860. onClick: (x) => {
  26861. x.stopPropagation(), o(x);
  26862. }
  26863. }, [(v == null ? void 0 : v()) || ((l = y.removeIcon) === null || l === void 0 ? void 0 : l.call(y)) || "×"])]);
  26864. return g ? g(S) : S;
  26865. };
  26866. }
  26867. }), NQ = {
  26868. width: 0,
  26869. height: 0,
  26870. left: 0,
  26871. top: 0
  26872. };
  26873. function wBe(t, e) {
  26874. const n = ee(/* @__PURE__ */ new Map());
  26875. return Vt(() => {
  26876. var r, i;
  26877. const a = /* @__PURE__ */ new Map(), o = t.value, s = e.value.get((r = o[0]) === null || r === void 0 ? void 0 : r.key) || NQ, l = s.left + s.width;
  26878. for (let u = 0; u < o.length; u += 1) {
  26879. const {
  26880. key: c
  26881. } = o[u];
  26882. let f = e.value.get(c);
  26883. f || (f = e.value.get((i = o[u - 1]) === null || i === void 0 ? void 0 : i.key) || NQ);
  26884. const d = a.get(c) || k({}, f);
  26885. d.right = l - d.left - d.width, a.set(c, d);
  26886. }
  26887. n.value = new Map(a);
  26888. }), n;
  26889. }
  26890. const Kie = ae({
  26891. compatConfig: {
  26892. MODE: 3
  26893. },
  26894. name: "AddButton",
  26895. inheritAttrs: !1,
  26896. props: {
  26897. prefixCls: String,
  26898. editable: {
  26899. type: Object
  26900. },
  26901. locale: {
  26902. type: Object,
  26903. default: void 0
  26904. }
  26905. },
  26906. setup(t, e) {
  26907. let {
  26908. expose: n,
  26909. attrs: r
  26910. } = e;
  26911. const i = ee();
  26912. return n({
  26913. domRef: i
  26914. }), () => {
  26915. const {
  26916. prefixCls: a,
  26917. editable: o,
  26918. locale: s
  26919. } = t;
  26920. return !o || o.showAdd === !1 ? null : D("button", {
  26921. ref: i,
  26922. type: "button",
  26923. class: `${a}-nav-add`,
  26924. style: r.style,
  26925. "aria-label": (s == null ? void 0 : s.addAriaLabel) || "Add tab",
  26926. onClick: (l) => {
  26927. o.onEdit("add", {
  26928. event: l
  26929. });
  26930. }
  26931. }, [o.addIcon ? o.addIcon() : "+"]);
  26932. };
  26933. }
  26934. }), CBe = {
  26935. prefixCls: {
  26936. type: String
  26937. },
  26938. id: {
  26939. type: String
  26940. },
  26941. tabs: {
  26942. type: Object
  26943. },
  26944. rtl: {
  26945. type: Boolean
  26946. },
  26947. tabBarGutter: {
  26948. type: Number
  26949. },
  26950. activeKey: {
  26951. type: [String, Number]
  26952. },
  26953. mobile: {
  26954. type: Boolean
  26955. },
  26956. moreIcon: oe.any,
  26957. moreTransitionName: {
  26958. type: String
  26959. },
  26960. editable: {
  26961. type: Object
  26962. },
  26963. locale: {
  26964. type: Object,
  26965. default: void 0
  26966. },
  26967. removeAriaLabel: String,
  26968. onTabClick: {
  26969. type: Function
  26970. },
  26971. popupClassName: String,
  26972. getPopupContainer: Ct()
  26973. }, TBe = ae({
  26974. compatConfig: {
  26975. MODE: 3
  26976. },
  26977. name: "OperationNode",
  26978. inheritAttrs: !1,
  26979. props: CBe,
  26980. emits: ["tabClick"],
  26981. slots: Object,
  26982. setup(t, e) {
  26983. let {
  26984. attrs: n,
  26985. slots: r
  26986. } = e;
  26987. const [i, a] = tr(!1), [o, s] = tr(null), l = (h) => {
  26988. const p = t.tabs.filter((m) => !m.disabled);
  26989. let v = p.findIndex((m) => m.key === o.value) || 0;
  26990. const g = p.length;
  26991. for (let m = 0; m < g; m += 1) {
  26992. v = (v + h + g) % g;
  26993. const y = p[v];
  26994. if (!y.disabled) {
  26995. s(y.key);
  26996. return;
  26997. }
  26998. }
  26999. }, u = (h) => {
  27000. const {
  27001. which: p
  27002. } = h;
  27003. if (!i.value) {
  27004. [Me.DOWN, Me.SPACE, Me.ENTER].includes(p) && (a(!0), h.preventDefault());
  27005. return;
  27006. }
  27007. switch (p) {
  27008. case Me.UP:
  27009. l(-1), h.preventDefault();
  27010. break;
  27011. case Me.DOWN:
  27012. l(1), h.preventDefault();
  27013. break;
  27014. case Me.ESC:
  27015. a(!1);
  27016. break;
  27017. case Me.SPACE:
  27018. case Me.ENTER:
  27019. o.value !== null && t.onTabClick(o.value, h);
  27020. break;
  27021. }
  27022. }, c = V(() => `${t.id}-more-popup`), f = V(() => o.value !== null ? `${c.value}-${o.value}` : null), d = (h, p) => {
  27023. h.preventDefault(), h.stopPropagation(), t.editable.onEdit("remove", {
  27024. key: p,
  27025. event: h
  27026. });
  27027. };
  27028. return _t(() => {
  27029. me(o, () => {
  27030. const h = document.getElementById(f.value);
  27031. h && h.scrollIntoView && h.scrollIntoView(!1);
  27032. }, {
  27033. flush: "post",
  27034. immediate: !0
  27035. });
  27036. }), me(i, () => {
  27037. i.value || s(null);
  27038. }), I6e({}), () => {
  27039. var h;
  27040. const {
  27041. prefixCls: p,
  27042. id: v,
  27043. tabs: g,
  27044. locale: m,
  27045. mobile: y,
  27046. moreIcon: _ = ((h = r.moreIcon) === null || h === void 0 ? void 0 : h.call(r)) || D(W2, null, null),
  27047. moreTransitionName: O,
  27048. editable: S,
  27049. tabBarGutter: x,
  27050. rtl: C,
  27051. onTabClick: P,
  27052. popupClassName: $
  27053. } = t;
  27054. if (!g.length) return null;
  27055. const T = `${p}-dropdown`, E = m == null ? void 0 : m.dropdownAriaLabel, M = {
  27056. [C ? "marginRight" : "marginLeft"]: x
  27057. };
  27058. g.length || (M.visibility = "hidden", M.order = 1);
  27059. const R = Re({
  27060. [`${T}-rtl`]: C,
  27061. [`${$}`]: !0
  27062. }), N = y ? null : D(K3e, {
  27063. prefixCls: T,
  27064. trigger: ["hover"],
  27065. visible: i.value,
  27066. transitionName: O,
  27067. onVisibleChange: a,
  27068. overlayClassName: R,
  27069. mouseEnterDelay: 0.1,
  27070. mouseLeaveDelay: 0.1,
  27071. getPopupContainer: t.getPopupContainer
  27072. }, {
  27073. overlay: () => D(ef, {
  27074. onClick: (I) => {
  27075. let {
  27076. key: B,
  27077. domEvent: Q
  27078. } = I;
  27079. P(B, Q), a(!1);
  27080. },
  27081. id: c.value,
  27082. tabindex: -1,
  27083. role: "listbox",
  27084. "aria-activedescendant": f.value,
  27085. selectedKeys: [o.value],
  27086. "aria-label": E !== void 0 ? E : "expanded dropdown"
  27087. }, {
  27088. default: () => [g.map((I) => {
  27089. var B, Q;
  27090. const W = S && I.closable !== !1 && !I.disabled;
  27091. return D(Lg, {
  27092. key: I.key,
  27093. id: `${c.value}-${I.key}`,
  27094. role: "option",
  27095. "aria-controls": v && `${v}-panel-${I.key}`,
  27096. disabled: I.disabled
  27097. }, {
  27098. default: () => [D("span", null, [typeof I.tab == "function" ? I.tab() : I.tab]), W && D("button", {
  27099. type: "button",
  27100. "aria-label": t.removeAriaLabel || "remove",
  27101. tabindex: 0,
  27102. class: `${T}-menu-item-remove`,
  27103. onClick: (H) => {
  27104. H.stopPropagation(), d(H, I.key);
  27105. }
  27106. }, [((B = I.closeIcon) === null || B === void 0 ? void 0 : B.call(I)) || ((Q = S.removeIcon) === null || Q === void 0 ? void 0 : Q.call(S)) || "×"])]
  27107. });
  27108. })]
  27109. }),
  27110. default: () => D("button", {
  27111. type: "button",
  27112. class: `${p}-nav-more`,
  27113. style: M,
  27114. tabindex: -1,
  27115. "aria-hidden": "true",
  27116. "aria-haspopup": "listbox",
  27117. "aria-controls": c.value,
  27118. id: `${v}-more`,
  27119. "aria-expanded": i.value,
  27120. onKeydown: u
  27121. }, [_])
  27122. });
  27123. return D("div", {
  27124. class: Re(`${p}-nav-operations`, n.class),
  27125. style: n.style
  27126. }, [N, D(Kie, {
  27127. prefixCls: p,
  27128. locale: m,
  27129. editable: S
  27130. }, null)]);
  27131. };
  27132. }
  27133. }), Jie = Symbol("tabsContextKey"), eae = (t) => {
  27134. Et(Jie, t);
  27135. }, tae = () => et(Jie, {
  27136. tabs: ee([]),
  27137. prefixCls: ee()
  27138. });
  27139. ae({
  27140. compatConfig: {
  27141. MODE: 3
  27142. },
  27143. name: "TabsContextProvider",
  27144. inheritAttrs: !1,
  27145. props: {
  27146. tabs: {
  27147. type: Object,
  27148. default: void 0
  27149. },
  27150. prefixCls: {
  27151. type: String,
  27152. default: void 0
  27153. }
  27154. },
  27155. setup(t, e) {
  27156. let {
  27157. slots: n
  27158. } = e;
  27159. return eae(k_(t)), () => {
  27160. var r;
  27161. return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
  27162. };
  27163. }
  27164. });
  27165. const PBe = 0.1, BQ = 0.01, Kx = 20, zQ = Math.pow(0.995, Kx);
  27166. function $Be(t, e) {
  27167. const [n, r] = tr(), [i, a] = tr(0), [o, s] = tr(0), [l, u] = tr(), c = ee();
  27168. function f(S) {
  27169. const {
  27170. screenX: x,
  27171. screenY: C
  27172. } = S.touches[0];
  27173. r({
  27174. x,
  27175. y: C
  27176. }), clearInterval(c.value);
  27177. }
  27178. function d(S) {
  27179. if (!n.value) return;
  27180. S.preventDefault();
  27181. const {
  27182. screenX: x,
  27183. screenY: C
  27184. } = S.touches[0], P = x - n.value.x, $ = C - n.value.y;
  27185. e(P, $), r({
  27186. x,
  27187. y: C
  27188. });
  27189. const T = Date.now();
  27190. s(T - i.value), a(T), u({
  27191. x: P,
  27192. y: $
  27193. });
  27194. }
  27195. function h() {
  27196. if (!n.value) return;
  27197. const S = l.value;
  27198. if (r(null), u(null), S) {
  27199. const x = S.x / o.value, C = S.y / o.value, P = Math.abs(x), $ = Math.abs(C);
  27200. if (Math.max(P, $) < PBe) return;
  27201. let T = x, E = C;
  27202. c.value = setInterval(() => {
  27203. if (Math.abs(T) < BQ && Math.abs(E) < BQ) {
  27204. clearInterval(c.value);
  27205. return;
  27206. }
  27207. T *= zQ, E *= zQ, e(T * Kx, E * Kx);
  27208. }, Kx);
  27209. }
  27210. }
  27211. const p = ee();
  27212. function v(S) {
  27213. const {
  27214. deltaX: x,
  27215. deltaY: C
  27216. } = S;
  27217. let P = 0;
  27218. const $ = Math.abs(x), T = Math.abs(C);
  27219. $ === T ? P = p.value === "x" ? x : C : $ > T ? (P = x, p.value = "x") : (P = C, p.value = "y"), e(-P, -P) && S.preventDefault();
  27220. }
  27221. const g = ee({
  27222. onTouchStart: f,
  27223. onTouchMove: d,
  27224. onTouchEnd: h,
  27225. onWheel: v
  27226. });
  27227. function m(S) {
  27228. g.value.onTouchStart(S);
  27229. }
  27230. function y(S) {
  27231. g.value.onTouchMove(S);
  27232. }
  27233. function _(S) {
  27234. g.value.onTouchEnd(S);
  27235. }
  27236. function O(S) {
  27237. g.value.onWheel(S);
  27238. }
  27239. _t(() => {
  27240. var S, x;
  27241. document.addEventListener("touchmove", y, {
  27242. passive: !1
  27243. }), document.addEventListener("touchend", _, {
  27244. passive: !1
  27245. }), (S = t.value) === null || S === void 0 || S.addEventListener("touchstart", m, {
  27246. passive: !1
  27247. }), (x = t.value) === null || x === void 0 || x.addEventListener("wheel", O, {
  27248. passive: !1
  27249. });
  27250. }), Qt(() => {
  27251. document.removeEventListener("touchmove", y), document.removeEventListener("touchend", _);
  27252. });
  27253. }
  27254. function VQ(t, e) {
  27255. const n = ee(t);
  27256. function r(i) {
  27257. const a = typeof i == "function" ? i(n.value) : i;
  27258. a !== n.value && e(a, n.value), n.value = a;
  27259. }
  27260. return [n, r];
  27261. }
  27262. const ABe = () => {
  27263. const t = ee(/* @__PURE__ */ new Map()), e = (n) => (r) => {
  27264. t.value.set(n, r);
  27265. };
  27266. return Mee(() => {
  27267. t.value = /* @__PURE__ */ new Map();
  27268. }), [e, t];
  27269. }, FQ = {
  27270. width: 0,
  27271. height: 0,
  27272. left: 0,
  27273. top: 0,
  27274. right: 0
  27275. }, EBe = () => ({
  27276. id: {
  27277. type: String
  27278. },
  27279. tabPosition: {
  27280. type: String
  27281. },
  27282. activeKey: {
  27283. type: [String, Number]
  27284. },
  27285. rtl: {
  27286. type: Boolean
  27287. },
  27288. animated: sn(),
  27289. editable: sn(),
  27290. moreIcon: oe.any,
  27291. moreTransitionName: {
  27292. type: String
  27293. },
  27294. mobile: {
  27295. type: Boolean
  27296. },
  27297. tabBarGutter: {
  27298. type: Number
  27299. },
  27300. renderTabBar: {
  27301. type: Function
  27302. },
  27303. locale: sn(),
  27304. popupClassName: String,
  27305. getPopupContainer: Ct(),
  27306. onTabClick: {
  27307. type: Function
  27308. },
  27309. onTabScroll: {
  27310. type: Function
  27311. }
  27312. }), MBe = (t, e) => {
  27313. const {
  27314. offsetWidth: n,
  27315. offsetHeight: r,
  27316. offsetTop: i,
  27317. offsetLeft: a
  27318. } = t, {
  27319. width: o,
  27320. height: s,
  27321. x: l,
  27322. y: u
  27323. } = t.getBoundingClientRect();
  27324. return Math.abs(o - n) < 1 ? [o, s, l - e.x, u - e.y] : [n, r, a, i];
  27325. }, WQ = ae({
  27326. compatConfig: {
  27327. MODE: 3
  27328. },
  27329. name: "TabNavList",
  27330. inheritAttrs: !1,
  27331. props: EBe(),
  27332. slots: Object,
  27333. emits: ["tabClick", "tabScroll"],
  27334. setup(t, e) {
  27335. let {
  27336. attrs: n,
  27337. slots: r
  27338. } = e;
  27339. const {
  27340. tabs: i,
  27341. prefixCls: a
  27342. } = tae(), o = ve(), s = ve(), l = ve(), u = ve(), [c, f] = ABe(), d = V(() => t.tabPosition === "top" || t.tabPosition === "bottom"), [h, p] = VQ(0, (Le, Pe) => {
  27343. d.value && t.onTabScroll && t.onTabScroll({
  27344. direction: Le > Pe ? "left" : "right"
  27345. });
  27346. }), [v, g] = VQ(0, (Le, Pe) => {
  27347. !d.value && t.onTabScroll && t.onTabScroll({
  27348. direction: Le > Pe ? "top" : "bottom"
  27349. });
  27350. }), [m, y] = tr(0), [_, O] = tr(0), [S, x] = tr(null), [C, P] = tr(null), [$, T] = tr(0), [E, M] = tr(0), [R, N] = SBe(/* @__PURE__ */ new Map()), I = wBe(i, R), B = V(() => `${a.value}-nav-operations-hidden`), Q = ve(0), W = ve(0);
  27351. Vt(() => {
  27352. d.value ? t.rtl ? (Q.value = 0, W.value = Math.max(0, m.value - S.value)) : (Q.value = Math.min(0, S.value - m.value), W.value = 0) : (Q.value = Math.min(0, C.value - _.value), W.value = 0);
  27353. });
  27354. const H = (Le) => Le < Q.value ? Q.value : Le > W.value ? W.value : Le, U = ve(), [j, Y] = tr(), ne = () => {
  27355. Y(Date.now());
  27356. }, fe = () => {
  27357. clearTimeout(U.value);
  27358. }, ue = (Le, Pe) => {
  27359. Le((Fe) => H(Fe + Pe));
  27360. };
  27361. $Be(o, (Le, Pe) => {
  27362. if (d.value) {
  27363. if (S.value >= m.value)
  27364. return !1;
  27365. ue(p, Le);
  27366. } else {
  27367. if (C.value >= _.value)
  27368. return !1;
  27369. ue(g, Pe);
  27370. }
  27371. return fe(), ne(), !0;
  27372. }), me(j, () => {
  27373. fe(), j.value && (U.value = setTimeout(() => {
  27374. Y(0);
  27375. }, 100));
  27376. });
  27377. const ye = function() {
  27378. let Le = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : t.activeKey;
  27379. const Pe = I.value.get(Le) || {
  27380. width: 0,
  27381. height: 0,
  27382. left: 0,
  27383. right: 0,
  27384. top: 0
  27385. };
  27386. if (d.value) {
  27387. let Fe = h.value;
  27388. t.rtl ? Pe.right < h.value ? Fe = Pe.right : Pe.right + Pe.width > h.value + S.value && (Fe = Pe.right + Pe.width - S.value) : Pe.left < -h.value ? Fe = -Pe.left : Pe.left + Pe.width > -h.value + S.value && (Fe = -(Pe.left + Pe.width - S.value)), g(0), p(H(Fe));
  27389. } else {
  27390. let Fe = v.value;
  27391. Pe.top < -v.value ? Fe = -Pe.top : Pe.top + Pe.height > -v.value + C.value && (Fe = -(Pe.top + Pe.height - C.value)), p(0), g(H(Fe));
  27392. }
  27393. }, se = ve(0), he = ve(0);
  27394. Vt(() => {
  27395. let Le, Pe, Fe, Ye, xt, It;
  27396. const an = I.value;
  27397. ["top", "bottom"].includes(t.tabPosition) ? (Le = "width", Ye = S.value, xt = m.value, It = $.value, Pe = t.rtl ? "right" : "left", Fe = Math.abs(h.value)) : (Le = "height", Ye = C.value, xt = m.value, It = E.value, Pe = "top", Fe = -v.value);
  27398. let Ae = Ye;
  27399. xt + It > Ye && xt < Ye && (Ae = Ye - It);
  27400. const gt = i.value;
  27401. if (!gt.length)
  27402. return [se.value, he.value] = [0, 0];
  27403. const Xt = gt.length;
  27404. let Bn = Xt;
  27405. for (let Dr = 0; Dr < Xt; Dr += 1) {
  27406. const ji = an.get(gt[Dr].key) || FQ;
  27407. if (ji[Pe] + ji[Le] > Fe + Ae) {
  27408. Bn = Dr - 1;
  27409. break;
  27410. }
  27411. }
  27412. let Dn = 0;
  27413. for (let Dr = Xt - 1; Dr >= 0; Dr -= 1)
  27414. if ((an.get(gt[Dr].key) || FQ)[Pe] < Fe) {
  27415. Dn = Dr + 1;
  27416. break;
  27417. }
  27418. return [se.value, he.value] = [Dn, Bn];
  27419. });
  27420. const re = () => {
  27421. N(() => {
  27422. var Le;
  27423. const Pe = /* @__PURE__ */ new Map(), Fe = (Le = s.value) === null || Le === void 0 ? void 0 : Le.getBoundingClientRect();
  27424. return i.value.forEach((Ye) => {
  27425. let {
  27426. key: xt
  27427. } = Ye;
  27428. const It = f.value.get(xt), an = (It == null ? void 0 : It.$el) || It;
  27429. if (an) {
  27430. const [Ae, gt, Xt, Bn] = MBe(an, Fe);
  27431. Pe.set(xt, {
  27432. width: Ae,
  27433. height: gt,
  27434. left: Xt,
  27435. top: Bn
  27436. });
  27437. }
  27438. }), Pe;
  27439. });
  27440. };
  27441. me(() => i.value.map((Le) => Le.key).join("%%"), () => {
  27442. re();
  27443. }, {
  27444. flush: "post"
  27445. });
  27446. const q = () => {
  27447. var Le, Pe, Fe, Ye, xt;
  27448. const It = ((Le = o.value) === null || Le === void 0 ? void 0 : Le.offsetWidth) || 0, an = ((Pe = o.value) === null || Pe === void 0 ? void 0 : Pe.offsetHeight) || 0, Ae = ((Fe = u.value) === null || Fe === void 0 ? void 0 : Fe.$el) || {}, gt = Ae.offsetWidth || 0, Xt = Ae.offsetHeight || 0;
  27449. x(It), P(an), T(gt), M(Xt);
  27450. const Bn = (((Ye = s.value) === null || Ye === void 0 ? void 0 : Ye.offsetWidth) || 0) - gt, Dn = (((xt = s.value) === null || xt === void 0 ? void 0 : xt.offsetHeight) || 0) - Xt;
  27451. y(Bn), O(Dn), re();
  27452. }, K = V(() => [...i.value.slice(0, se.value), ...i.value.slice(he.value + 1)]), [de, xe] = tr(), we = V(() => I.value.get(t.activeKey)), He = ve(), je = () => {
  27453. en.cancel(He.value);
  27454. };
  27455. me([we, d, () => t.rtl], () => {
  27456. const Le = {};
  27457. we.value && (d.value ? (t.rtl ? Le.right = m0(we.value.right) : Le.left = m0(we.value.left), Le.width = m0(we.value.width)) : (Le.top = m0(we.value.top), Le.height = m0(we.value.height))), je(), He.value = en(() => {
  27458. xe(Le);
  27459. });
  27460. }), me([() => t.activeKey, we, I, d], () => {
  27461. ye();
  27462. }, {
  27463. flush: "post"
  27464. }), me([() => t.rtl, () => t.tabBarGutter, () => t.activeKey, () => i.value], () => {
  27465. q();
  27466. }, {
  27467. flush: "post"
  27468. });
  27469. const Be = (Le) => {
  27470. let {
  27471. position: Pe,
  27472. prefixCls: Fe,
  27473. extra: Ye
  27474. } = Le;
  27475. if (!Ye) return null;
  27476. const xt = Ye == null ? void 0 : Ye({
  27477. position: Pe
  27478. });
  27479. return xt ? D("div", {
  27480. class: `${Fe}-extra-content`
  27481. }, [xt]) : null;
  27482. };
  27483. return Qt(() => {
  27484. fe(), je();
  27485. }), () => {
  27486. const {
  27487. id: Le,
  27488. animated: Pe,
  27489. activeKey: Fe,
  27490. rtl: Ye,
  27491. editable: xt,
  27492. locale: It,
  27493. tabPosition: an,
  27494. tabBarGutter: Ae,
  27495. onTabClick: gt
  27496. } = t, {
  27497. class: Xt,
  27498. style: Bn
  27499. } = n, Dn = a.value, Dr = !!K.value.length, ji = `${Dn}-nav-wrap`;
  27500. let tu, nu, oc, Qf;
  27501. d.value ? Ye ? (nu = h.value > 0, tu = h.value + S.value < m.value) : (tu = h.value < 0, nu = -h.value + S.value < m.value) : (oc = v.value < 0, Qf = -v.value + C.value < _.value);
  27502. const rl = {};
  27503. an === "top" || an === "bottom" ? rl[Ye ? "marginRight" : "marginLeft"] = typeof Ae == "number" ? `${Ae}px` : Ae : rl.marginTop = typeof Ae == "number" ? `${Ae}px` : Ae;
  27504. const Hf = i.value.map((Gf, Gm) => {
  27505. const {
  27506. key: sc
  27507. } = Gf;
  27508. return D(xBe, {
  27509. id: Le,
  27510. prefixCls: Dn,
  27511. key: sc,
  27512. tab: Gf,
  27513. style: Gm === 0 ? void 0 : rl,
  27514. closable: Gf.closable,
  27515. editable: xt,
  27516. active: sc === Fe,
  27517. removeAriaLabel: It == null ? void 0 : It.removeAriaLabel,
  27518. ref: c(sc),
  27519. onClick: (jm) => {
  27520. gt(sc, jm);
  27521. },
  27522. onFocus: () => {
  27523. ye(sc), ne(), o.value && (Ye || (o.value.scrollLeft = 0), o.value.scrollTop = 0);
  27524. }
  27525. }, r);
  27526. });
  27527. return D("div", {
  27528. role: "tablist",
  27529. class: Re(`${Dn}-nav`, Xt),
  27530. style: Bn,
  27531. onKeydown: () => {
  27532. ne();
  27533. }
  27534. }, [D(Be, {
  27535. position: "left",
  27536. prefixCls: Dn,
  27537. extra: r.leftExtra
  27538. }, null), D($g, {
  27539. onResize: q
  27540. }, {
  27541. default: () => [D("div", {
  27542. class: Re(ji, {
  27543. [`${ji}-ping-left`]: tu,
  27544. [`${ji}-ping-right`]: nu,
  27545. [`${ji}-ping-top`]: oc,
  27546. [`${ji}-ping-bottom`]: Qf
  27547. }),
  27548. ref: o
  27549. }, [D($g, {
  27550. onResize: q
  27551. }, {
  27552. default: () => [D("div", {
  27553. ref: s,
  27554. class: `${Dn}-nav-list`,
  27555. style: {
  27556. transform: `translate(${h.value}px, ${v.value}px)`,
  27557. transition: j.value ? "none" : void 0
  27558. }
  27559. }, [Hf, D(Kie, {
  27560. ref: u,
  27561. prefixCls: Dn,
  27562. locale: It,
  27563. editable: xt,
  27564. style: k(k({}, Hf.length === 0 ? void 0 : rl), {
  27565. visibility: Dr ? "hidden" : null
  27566. })
  27567. }, null), D("div", {
  27568. class: Re(`${Dn}-ink-bar`, {
  27569. [`${Dn}-ink-bar-animated`]: Pe.inkBar
  27570. }),
  27571. style: de.value
  27572. }, null)])]
  27573. })])]
  27574. }), D(TBe, te(te({}, t), {}, {
  27575. removeAriaLabel: It == null ? void 0 : It.removeAriaLabel,
  27576. ref: l,
  27577. prefixCls: Dn,
  27578. tabs: K.value,
  27579. class: !Dr && B.value
  27580. }), mg(r, ["moreIcon"])), D(Be, {
  27581. position: "right",
  27582. prefixCls: Dn,
  27583. extra: r.rightExtra
  27584. }, null), D(Be, {
  27585. position: "right",
  27586. prefixCls: Dn,
  27587. extra: r.tabBarExtraContent
  27588. }, null)]);
  27589. };
  27590. }
  27591. }), IBe = ae({
  27592. compatConfig: {
  27593. MODE: 3
  27594. },
  27595. name: "TabPanelList",
  27596. inheritAttrs: !1,
  27597. props: {
  27598. activeKey: {
  27599. type: [String, Number]
  27600. },
  27601. id: {
  27602. type: String
  27603. },
  27604. rtl: {
  27605. type: Boolean
  27606. },
  27607. animated: {
  27608. type: Object,
  27609. default: void 0
  27610. },
  27611. tabPosition: {
  27612. type: String
  27613. },
  27614. destroyInactiveTabPane: {
  27615. type: Boolean
  27616. }
  27617. },
  27618. setup(t) {
  27619. const {
  27620. tabs: e,
  27621. prefixCls: n
  27622. } = tae();
  27623. return () => {
  27624. const {
  27625. id: r,
  27626. activeKey: i,
  27627. animated: a,
  27628. tabPosition: o,
  27629. rtl: s,
  27630. destroyInactiveTabPane: l
  27631. } = t, u = a.tabPane, c = n.value, f = e.value.findIndex((d) => d.key === i);
  27632. return D("div", {
  27633. class: `${c}-content-holder`
  27634. }, [D("div", {
  27635. class: [`${c}-content`, `${c}-content-${o}`, {
  27636. [`${c}-content-animated`]: u
  27637. }],
  27638. style: f && u ? {
  27639. [s ? "marginRight" : "marginLeft"]: `-${f}00%`
  27640. } : null
  27641. }, [e.value.map((d) => xr(d.node, {
  27642. key: d.key,
  27643. prefixCls: c,
  27644. tabKey: d.key,
  27645. id: r,
  27646. animated: u,
  27647. active: d.key === i,
  27648. destroyInactiveTabPane: l
  27649. }))])]);
  27650. };
  27651. }
  27652. });
  27653. var DBe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
  27654. function QQ(t) {
  27655. for (var e = 1; e < arguments.length; e++) {
  27656. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  27657. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  27658. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  27659. }))), r.forEach(function(i) {
  27660. RBe(t, i, n[i]);
  27661. });
  27662. }
  27663. return t;
  27664. }
  27665. function RBe(t, e, n) {
  27666. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  27667. }
  27668. var j2 = function(e, n) {
  27669. var r = QQ({}, e, n.attrs);
  27670. return D(Rt, QQ({}, r, {
  27671. icon: DBe
  27672. }), null);
  27673. };
  27674. j2.displayName = "PlusOutlined";
  27675. j2.inheritAttrs = !1;
  27676. const kBe = (t) => {
  27677. const {
  27678. componentCls: e,
  27679. motionDurationSlow: n
  27680. } = t;
  27681. return [
  27682. {
  27683. [e]: {
  27684. [`${e}-switch`]: {
  27685. "&-appear, &-enter": {
  27686. transition: "none",
  27687. "&-start": {
  27688. opacity: 0
  27689. },
  27690. "&-active": {
  27691. opacity: 1,
  27692. transition: `opacity ${n}`
  27693. }
  27694. },
  27695. "&-leave": {
  27696. position: "absolute",
  27697. transition: "none",
  27698. inset: 0,
  27699. "&-start": {
  27700. opacity: 1
  27701. },
  27702. "&-active": {
  27703. opacity: 0,
  27704. transition: `opacity ${n}`
  27705. }
  27706. }
  27707. }
  27708. }
  27709. },
  27710. // Follow code may reuse in other components
  27711. [kg(t, "slide-up"), kg(t, "slide-down")]
  27712. ];
  27713. }, LBe = (t) => {
  27714. const {
  27715. componentCls: e,
  27716. tabsCardHorizontalPadding: n,
  27717. tabsCardHeadBackground: r,
  27718. tabsCardGutter: i,
  27719. colorSplit: a
  27720. } = t;
  27721. return {
  27722. [`${e}-card`]: {
  27723. [`> ${e}-nav, > div > ${e}-nav`]: {
  27724. [`${e}-tab`]: {
  27725. margin: 0,
  27726. padding: n,
  27727. background: r,
  27728. border: `${t.lineWidth}px ${t.lineType} ${a}`,
  27729. transition: `all ${t.motionDurationSlow} ${t.motionEaseInOut}`
  27730. },
  27731. [`${e}-tab-active`]: {
  27732. color: t.colorPrimary,
  27733. background: t.colorBgContainer
  27734. },
  27735. [`${e}-ink-bar`]: {
  27736. visibility: "hidden"
  27737. }
  27738. },
  27739. // ========================== Top & Bottom ==========================
  27740. [`&${e}-top, &${e}-bottom`]: {
  27741. [`> ${e}-nav, > div > ${e}-nav`]: {
  27742. [`${e}-tab + ${e}-tab`]: {
  27743. marginLeft: {
  27744. _skip_check_: !0,
  27745. value: `${i}px`
  27746. }
  27747. }
  27748. }
  27749. },
  27750. [`&${e}-top`]: {
  27751. [`> ${e}-nav, > div > ${e}-nav`]: {
  27752. [`${e}-tab`]: {
  27753. borderRadius: `${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`
  27754. },
  27755. [`${e}-tab-active`]: {
  27756. borderBottomColor: t.colorBgContainer
  27757. }
  27758. }
  27759. },
  27760. [`&${e}-bottom`]: {
  27761. [`> ${e}-nav, > div > ${e}-nav`]: {
  27762. [`${e}-tab`]: {
  27763. borderRadius: `0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`
  27764. },
  27765. [`${e}-tab-active`]: {
  27766. borderTopColor: t.colorBgContainer
  27767. }
  27768. }
  27769. },
  27770. // ========================== Left & Right ==========================
  27771. [`&${e}-left, &${e}-right`]: {
  27772. [`> ${e}-nav, > div > ${e}-nav`]: {
  27773. [`${e}-tab + ${e}-tab`]: {
  27774. marginTop: `${i}px`
  27775. }
  27776. }
  27777. },
  27778. [`&${e}-left`]: {
  27779. [`> ${e}-nav, > div > ${e}-nav`]: {
  27780. [`${e}-tab`]: {
  27781. borderRadius: {
  27782. _skip_check_: !0,
  27783. value: `${t.borderRadiusLG}px 0 0 ${t.borderRadiusLG}px`
  27784. }
  27785. },
  27786. [`${e}-tab-active`]: {
  27787. borderRightColor: {
  27788. _skip_check_: !0,
  27789. value: t.colorBgContainer
  27790. }
  27791. }
  27792. }
  27793. },
  27794. [`&${e}-right`]: {
  27795. [`> ${e}-nav, > div > ${e}-nav`]: {
  27796. [`${e}-tab`]: {
  27797. borderRadius: {
  27798. _skip_check_: !0,
  27799. value: `0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px 0`
  27800. }
  27801. },
  27802. [`${e}-tab-active`]: {
  27803. borderLeftColor: {
  27804. _skip_check_: !0,
  27805. value: t.colorBgContainer
  27806. }
  27807. }
  27808. }
  27809. }
  27810. }
  27811. };
  27812. }, NBe = (t) => {
  27813. const {
  27814. componentCls: e,
  27815. tabsHoverColor: n,
  27816. dropdownEdgeChildVerticalPadding: r
  27817. } = t;
  27818. return {
  27819. [`${e}-dropdown`]: k(k({}, Gn(t)), {
  27820. position: "absolute",
  27821. top: -9999,
  27822. left: {
  27823. _skip_check_: !0,
  27824. value: -9999
  27825. },
  27826. zIndex: t.zIndexPopup,
  27827. display: "block",
  27828. "&-hidden": {
  27829. display: "none"
  27830. },
  27831. [`${e}-dropdown-menu`]: {
  27832. maxHeight: t.tabsDropdownHeight,
  27833. margin: 0,
  27834. padding: `${r}px 0`,
  27835. overflowX: "hidden",
  27836. overflowY: "auto",
  27837. textAlign: {
  27838. _skip_check_: !0,
  27839. value: "left"
  27840. },
  27841. listStyleType: "none",
  27842. backgroundColor: t.colorBgContainer,
  27843. backgroundClip: "padding-box",
  27844. borderRadius: t.borderRadiusLG,
  27845. outline: "none",
  27846. boxShadow: t.boxShadowSecondary,
  27847. "&-item": k(k({}, Mg), {
  27848. display: "flex",
  27849. alignItems: "center",
  27850. minWidth: t.tabsDropdownWidth,
  27851. margin: 0,
  27852. padding: `${t.paddingXXS}px ${t.paddingSM}px`,
  27853. color: t.colorText,
  27854. fontWeight: "normal",
  27855. fontSize: t.fontSize,
  27856. lineHeight: t.lineHeight,
  27857. cursor: "pointer",
  27858. transition: `all ${t.motionDurationSlow}`,
  27859. "> span": {
  27860. flex: 1,
  27861. whiteSpace: "nowrap"
  27862. },
  27863. "&-remove": {
  27864. flex: "none",
  27865. marginLeft: {
  27866. _skip_check_: !0,
  27867. value: t.marginSM
  27868. },
  27869. color: t.colorTextDescription,
  27870. fontSize: t.fontSizeSM,
  27871. background: "transparent",
  27872. border: 0,
  27873. cursor: "pointer",
  27874. "&:hover": {
  27875. color: n
  27876. }
  27877. },
  27878. "&:hover": {
  27879. background: t.controlItemBgHover
  27880. },
  27881. "&-disabled": {
  27882. "&, &:hover": {
  27883. color: t.colorTextDisabled,
  27884. background: "transparent",
  27885. cursor: "not-allowed"
  27886. }
  27887. }
  27888. })
  27889. }
  27890. })
  27891. };
  27892. }, BBe = (t) => {
  27893. const {
  27894. componentCls: e,
  27895. margin: n,
  27896. colorSplit: r
  27897. } = t;
  27898. return {
  27899. // ========================== Top & Bottom ==========================
  27900. [`${e}-top, ${e}-bottom`]: {
  27901. flexDirection: "column",
  27902. [`> ${e}-nav, > div > ${e}-nav`]: {
  27903. margin: `0 0 ${n}px 0`,
  27904. "&::before": {
  27905. position: "absolute",
  27906. right: {
  27907. _skip_check_: !0,
  27908. value: 0
  27909. },
  27910. left: {
  27911. _skip_check_: !0,
  27912. value: 0
  27913. },
  27914. borderBottom: `${t.lineWidth}px ${t.lineType} ${r}`,
  27915. content: "''"
  27916. },
  27917. [`${e}-ink-bar`]: {
  27918. height: t.lineWidthBold,
  27919. "&-animated": {
  27920. transition: `width ${t.motionDurationSlow}, left ${t.motionDurationSlow},
  27921. right ${t.motionDurationSlow}`
  27922. }
  27923. },
  27924. [`${e}-nav-wrap`]: {
  27925. "&::before, &::after": {
  27926. top: 0,
  27927. bottom: 0,
  27928. width: t.controlHeight
  27929. },
  27930. "&::before": {
  27931. left: {
  27932. _skip_check_: !0,
  27933. value: 0
  27934. },
  27935. boxShadow: t.boxShadowTabsOverflowLeft
  27936. },
  27937. "&::after": {
  27938. right: {
  27939. _skip_check_: !0,
  27940. value: 0
  27941. },
  27942. boxShadow: t.boxShadowTabsOverflowRight
  27943. },
  27944. [`&${e}-nav-wrap-ping-left::before`]: {
  27945. opacity: 1
  27946. },
  27947. [`&${e}-nav-wrap-ping-right::after`]: {
  27948. opacity: 1
  27949. }
  27950. }
  27951. }
  27952. },
  27953. [`${e}-top`]: {
  27954. [`> ${e}-nav,
  27955. > div > ${e}-nav`]: {
  27956. "&::before": {
  27957. bottom: 0
  27958. },
  27959. [`${e}-ink-bar`]: {
  27960. bottom: 0
  27961. }
  27962. }
  27963. },
  27964. [`${e}-bottom`]: {
  27965. [`> ${e}-nav, > div > ${e}-nav`]: {
  27966. order: 1,
  27967. marginTop: `${n}px`,
  27968. marginBottom: 0,
  27969. "&::before": {
  27970. top: 0
  27971. },
  27972. [`${e}-ink-bar`]: {
  27973. top: 0
  27974. }
  27975. },
  27976. [`> ${e}-content-holder, > div > ${e}-content-holder`]: {
  27977. order: 0
  27978. }
  27979. },
  27980. // ========================== Left & Right ==========================
  27981. [`${e}-left, ${e}-right`]: {
  27982. [`> ${e}-nav, > div > ${e}-nav`]: {
  27983. flexDirection: "column",
  27984. minWidth: t.controlHeight * 1.25,
  27985. // >>>>>>>>>>> Tab
  27986. [`${e}-tab`]: {
  27987. padding: `${t.paddingXS}px ${t.paddingLG}px`,
  27988. textAlign: "center"
  27989. },
  27990. [`${e}-tab + ${e}-tab`]: {
  27991. margin: `${t.margin}px 0 0 0`
  27992. },
  27993. // >>>>>>>>>>> Nav
  27994. [`${e}-nav-wrap`]: {
  27995. flexDirection: "column",
  27996. "&::before, &::after": {
  27997. right: {
  27998. _skip_check_: !0,
  27999. value: 0
  28000. },
  28001. left: {
  28002. _skip_check_: !0,
  28003. value: 0
  28004. },
  28005. height: t.controlHeight
  28006. },
  28007. "&::before": {
  28008. top: 0,
  28009. boxShadow: t.boxShadowTabsOverflowTop
  28010. },
  28011. "&::after": {
  28012. bottom: 0,
  28013. boxShadow: t.boxShadowTabsOverflowBottom
  28014. },
  28015. [`&${e}-nav-wrap-ping-top::before`]: {
  28016. opacity: 1
  28017. },
  28018. [`&${e}-nav-wrap-ping-bottom::after`]: {
  28019. opacity: 1
  28020. }
  28021. },
  28022. // >>>>>>>>>>> Ink Bar
  28023. [`${e}-ink-bar`]: {
  28024. width: t.lineWidthBold,
  28025. "&-animated": {
  28026. transition: `height ${t.motionDurationSlow}, top ${t.motionDurationSlow}`
  28027. }
  28028. },
  28029. [`${e}-nav-list, ${e}-nav-operations`]: {
  28030. flex: "1 0 auto",
  28031. flexDirection: "column"
  28032. }
  28033. }
  28034. },
  28035. [`${e}-left`]: {
  28036. [`> ${e}-nav, > div > ${e}-nav`]: {
  28037. [`${e}-ink-bar`]: {
  28038. right: {
  28039. _skip_check_: !0,
  28040. value: 0
  28041. }
  28042. }
  28043. },
  28044. [`> ${e}-content-holder, > div > ${e}-content-holder`]: {
  28045. marginLeft: {
  28046. _skip_check_: !0,
  28047. value: `-${t.lineWidth}px`
  28048. },
  28049. borderLeft: {
  28050. _skip_check_: !0,
  28051. value: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`
  28052. },
  28053. [`> ${e}-content > ${e}-tabpane`]: {
  28054. paddingLeft: {
  28055. _skip_check_: !0,
  28056. value: t.paddingLG
  28057. }
  28058. }
  28059. }
  28060. },
  28061. [`${e}-right`]: {
  28062. [`> ${e}-nav, > div > ${e}-nav`]: {
  28063. order: 1,
  28064. [`${e}-ink-bar`]: {
  28065. left: {
  28066. _skip_check_: !0,
  28067. value: 0
  28068. }
  28069. }
  28070. },
  28071. [`> ${e}-content-holder, > div > ${e}-content-holder`]: {
  28072. order: 0,
  28073. marginRight: {
  28074. _skip_check_: !0,
  28075. value: -t.lineWidth
  28076. },
  28077. borderRight: {
  28078. _skip_check_: !0,
  28079. value: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`
  28080. },
  28081. [`> ${e}-content > ${e}-tabpane`]: {
  28082. paddingRight: {
  28083. _skip_check_: !0,
  28084. value: t.paddingLG
  28085. }
  28086. }
  28087. }
  28088. }
  28089. };
  28090. }, zBe = (t) => {
  28091. const {
  28092. componentCls: e,
  28093. padding: n
  28094. } = t;
  28095. return {
  28096. [e]: {
  28097. "&-small": {
  28098. [`> ${e}-nav`]: {
  28099. [`${e}-tab`]: {
  28100. padding: `${t.paddingXS}px 0`,
  28101. fontSize: t.fontSize
  28102. }
  28103. }
  28104. },
  28105. "&-large": {
  28106. [`> ${e}-nav`]: {
  28107. [`${e}-tab`]: {
  28108. padding: `${n}px 0`,
  28109. fontSize: t.fontSizeLG
  28110. }
  28111. }
  28112. }
  28113. },
  28114. [`${e}-card`]: {
  28115. [`&${e}-small`]: {
  28116. [`> ${e}-nav`]: {
  28117. [`${e}-tab`]: {
  28118. padding: `${t.paddingXXS * 1.5}px ${n}px`
  28119. }
  28120. },
  28121. [`&${e}-bottom`]: {
  28122. [`> ${e}-nav ${e}-tab`]: {
  28123. borderRadius: `0 0 ${t.borderRadius}px ${t.borderRadius}px`
  28124. }
  28125. },
  28126. [`&${e}-top`]: {
  28127. [`> ${e}-nav ${e}-tab`]: {
  28128. borderRadius: `${t.borderRadius}px ${t.borderRadius}px 0 0`
  28129. }
  28130. },
  28131. [`&${e}-right`]: {
  28132. [`> ${e}-nav ${e}-tab`]: {
  28133. borderRadius: {
  28134. _skip_check_: !0,
  28135. value: `0 ${t.borderRadius}px ${t.borderRadius}px 0`
  28136. }
  28137. }
  28138. },
  28139. [`&${e}-left`]: {
  28140. [`> ${e}-nav ${e}-tab`]: {
  28141. borderRadius: {
  28142. _skip_check_: !0,
  28143. value: `${t.borderRadius}px 0 0 ${t.borderRadius}px`
  28144. }
  28145. }
  28146. }
  28147. },
  28148. [`&${e}-large`]: {
  28149. [`> ${e}-nav`]: {
  28150. [`${e}-tab`]: {
  28151. padding: `${t.paddingXS}px ${n}px ${t.paddingXXS * 1.5}px`
  28152. }
  28153. }
  28154. }
  28155. }
  28156. };
  28157. }, VBe = (t) => {
  28158. const {
  28159. componentCls: e,
  28160. tabsActiveColor: n,
  28161. tabsHoverColor: r,
  28162. iconCls: i,
  28163. tabsHorizontalGutter: a
  28164. } = t, o = `${e}-tab`;
  28165. return {
  28166. [o]: {
  28167. position: "relative",
  28168. display: "inline-flex",
  28169. alignItems: "center",
  28170. padding: `${t.paddingSM}px 0`,
  28171. fontSize: `${t.fontSize}px`,
  28172. background: "transparent",
  28173. border: 0,
  28174. outline: "none",
  28175. cursor: "pointer",
  28176. "&-btn, &-remove": k({
  28177. "&:focus:not(:focus-visible), &:active": {
  28178. color: n
  28179. }
  28180. }, T2(t)),
  28181. "&-btn": {
  28182. outline: "none",
  28183. transition: "all 0.3s"
  28184. },
  28185. "&-remove": {
  28186. flex: "none",
  28187. marginRight: {
  28188. _skip_check_: !0,
  28189. value: -t.marginXXS
  28190. },
  28191. marginLeft: {
  28192. _skip_check_: !0,
  28193. value: t.marginXS
  28194. },
  28195. color: t.colorTextDescription,
  28196. fontSize: t.fontSizeSM,
  28197. background: "transparent",
  28198. border: "none",
  28199. outline: "none",
  28200. cursor: "pointer",
  28201. transition: `all ${t.motionDurationSlow}`,
  28202. "&:hover": {
  28203. color: t.colorTextHeading
  28204. }
  28205. },
  28206. "&:hover": {
  28207. color: r
  28208. },
  28209. [`&${o}-active ${o}-btn`]: {
  28210. color: t.colorPrimary,
  28211. textShadow: t.tabsActiveTextShadow
  28212. },
  28213. [`&${o}-disabled`]: {
  28214. color: t.colorTextDisabled,
  28215. cursor: "not-allowed"
  28216. },
  28217. [`&${o}-disabled ${o}-btn, &${o}-disabled ${e}-remove`]: {
  28218. "&:focus, &:active": {
  28219. color: t.colorTextDisabled
  28220. }
  28221. },
  28222. [`& ${o}-remove ${i}`]: {
  28223. margin: 0
  28224. },
  28225. [i]: {
  28226. marginRight: {
  28227. _skip_check_: !0,
  28228. value: t.marginSM
  28229. }
  28230. }
  28231. },
  28232. [`${o} + ${o}`]: {
  28233. margin: {
  28234. _skip_check_: !0,
  28235. value: `0 0 0 ${a}px`
  28236. }
  28237. }
  28238. };
  28239. }, FBe = (t) => {
  28240. const {
  28241. componentCls: e,
  28242. tabsHorizontalGutter: n,
  28243. iconCls: r,
  28244. tabsCardGutter: i
  28245. } = t;
  28246. return {
  28247. [`${e}-rtl`]: {
  28248. direction: "rtl",
  28249. [`${e}-nav`]: {
  28250. [`${e}-tab`]: {
  28251. margin: {
  28252. _skip_check_: !0,
  28253. value: `0 0 0 ${n}px`
  28254. },
  28255. [`${e}-tab:last-of-type`]: {
  28256. marginLeft: {
  28257. _skip_check_: !0,
  28258. value: 0
  28259. }
  28260. },
  28261. [r]: {
  28262. marginRight: {
  28263. _skip_check_: !0,
  28264. value: 0
  28265. },
  28266. marginLeft: {
  28267. _skip_check_: !0,
  28268. value: `${t.marginSM}px`
  28269. }
  28270. },
  28271. [`${e}-tab-remove`]: {
  28272. marginRight: {
  28273. _skip_check_: !0,
  28274. value: `${t.marginXS}px`
  28275. },
  28276. marginLeft: {
  28277. _skip_check_: !0,
  28278. value: `-${t.marginXXS}px`
  28279. },
  28280. [r]: {
  28281. margin: 0
  28282. }
  28283. }
  28284. }
  28285. },
  28286. [`&${e}-left`]: {
  28287. [`> ${e}-nav`]: {
  28288. order: 1
  28289. },
  28290. [`> ${e}-content-holder`]: {
  28291. order: 0
  28292. }
  28293. },
  28294. [`&${e}-right`]: {
  28295. [`> ${e}-nav`]: {
  28296. order: 0
  28297. },
  28298. [`> ${e}-content-holder`]: {
  28299. order: 1
  28300. }
  28301. },
  28302. // ====================== Card ======================
  28303. [`&${e}-card${e}-top, &${e}-card${e}-bottom`]: {
  28304. [`> ${e}-nav, > div > ${e}-nav`]: {
  28305. [`${e}-tab + ${e}-tab`]: {
  28306. marginRight: {
  28307. _skip_check_: !0,
  28308. value: `${i}px`
  28309. },
  28310. marginLeft: {
  28311. _skip_check_: !0,
  28312. value: 0
  28313. }
  28314. }
  28315. }
  28316. }
  28317. },
  28318. [`${e}-dropdown-rtl`]: {
  28319. direction: "rtl"
  28320. },
  28321. [`${e}-menu-item`]: {
  28322. [`${e}-dropdown-rtl`]: {
  28323. textAlign: {
  28324. _skip_check_: !0,
  28325. value: "right"
  28326. }
  28327. }
  28328. }
  28329. };
  28330. }, WBe = (t) => {
  28331. const {
  28332. componentCls: e,
  28333. tabsCardHorizontalPadding: n,
  28334. tabsCardHeight: r,
  28335. tabsCardGutter: i,
  28336. tabsHoverColor: a,
  28337. tabsActiveColor: o,
  28338. colorSplit: s
  28339. } = t;
  28340. return {
  28341. [e]: k(k(k(k({}, Gn(t)), {
  28342. display: "flex",
  28343. // ========================== Navigation ==========================
  28344. [`> ${e}-nav, > div > ${e}-nav`]: {
  28345. position: "relative",
  28346. display: "flex",
  28347. flex: "none",
  28348. alignItems: "center",
  28349. [`${e}-nav-wrap`]: {
  28350. position: "relative",
  28351. display: "flex",
  28352. flex: "auto",
  28353. alignSelf: "stretch",
  28354. overflow: "hidden",
  28355. whiteSpace: "nowrap",
  28356. transform: "translate(0)",
  28357. // >>>>> Ping shadow
  28358. "&::before, &::after": {
  28359. position: "absolute",
  28360. zIndex: 1,
  28361. opacity: 0,
  28362. transition: `opacity ${t.motionDurationSlow}`,
  28363. content: "''",
  28364. pointerEvents: "none"
  28365. }
  28366. },
  28367. [`${e}-nav-list`]: {
  28368. position: "relative",
  28369. display: "flex",
  28370. transition: `opacity ${t.motionDurationSlow}`
  28371. },
  28372. // >>>>>>>> Operations
  28373. [`${e}-nav-operations`]: {
  28374. display: "flex",
  28375. alignSelf: "stretch"
  28376. },
  28377. [`${e}-nav-operations-hidden`]: {
  28378. position: "absolute",
  28379. visibility: "hidden",
  28380. pointerEvents: "none"
  28381. },
  28382. [`${e}-nav-more`]: {
  28383. position: "relative",
  28384. padding: n,
  28385. background: "transparent",
  28386. border: 0,
  28387. "&::after": {
  28388. position: "absolute",
  28389. right: {
  28390. _skip_check_: !0,
  28391. value: 0
  28392. },
  28393. bottom: 0,
  28394. left: {
  28395. _skip_check_: !0,
  28396. value: 0
  28397. },
  28398. height: t.controlHeightLG / 8,
  28399. transform: "translateY(100%)",
  28400. content: "''"
  28401. }
  28402. },
  28403. [`${e}-nav-add`]: k({
  28404. minWidth: `${r}px`,
  28405. marginLeft: {
  28406. _skip_check_: !0,
  28407. value: `${i}px`
  28408. },
  28409. padding: `0 ${t.paddingXS}px`,
  28410. background: "transparent",
  28411. border: `${t.lineWidth}px ${t.lineType} ${s}`,
  28412. borderRadius: `${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,
  28413. outline: "none",
  28414. cursor: "pointer",
  28415. color: t.colorText,
  28416. transition: `all ${t.motionDurationSlow} ${t.motionEaseInOut}`,
  28417. "&:hover": {
  28418. color: a
  28419. },
  28420. "&:active, &:focus:not(:focus-visible)": {
  28421. color: o
  28422. }
  28423. }, T2(t))
  28424. },
  28425. [`${e}-extra-content`]: {
  28426. flex: "none"
  28427. },
  28428. // ============================ InkBar ============================
  28429. [`${e}-ink-bar`]: {
  28430. position: "absolute",
  28431. background: t.colorPrimary,
  28432. pointerEvents: "none"
  28433. }
  28434. }), VBe(t)), {
  28435. // =========================== TabPanes ===========================
  28436. [`${e}-content`]: {
  28437. position: "relative",
  28438. display: "flex",
  28439. width: "100%",
  28440. "&-animated": {
  28441. transition: "margin 0.3s"
  28442. }
  28443. },
  28444. [`${e}-content-holder`]: {
  28445. flex: "auto",
  28446. minWidth: 0,
  28447. minHeight: 0
  28448. },
  28449. [`${e}-tabpane`]: {
  28450. outline: "none",
  28451. flex: "none",
  28452. width: "100%"
  28453. }
  28454. }),
  28455. [`${e}-centered`]: {
  28456. [`> ${e}-nav, > div > ${e}-nav`]: {
  28457. [`${e}-nav-wrap`]: {
  28458. [`&:not([class*='${e}-nav-wrap-ping'])`]: {
  28459. justifyContent: "center"
  28460. }
  28461. }
  28462. }
  28463. }
  28464. };
  28465. }, QBe = pr("Tabs", (t) => {
  28466. const e = t.controlHeightLG, n = bn(t, {
  28467. tabsHoverColor: t.colorPrimaryHover,
  28468. tabsActiveColor: t.colorPrimaryActive,
  28469. tabsCardHorizontalPadding: `${(e - Math.round(t.fontSize * t.lineHeight)) / 2 - t.lineWidth}px ${t.padding}px`,
  28470. tabsCardHeight: e,
  28471. tabsCardGutter: t.marginXXS / 2,
  28472. tabsHorizontalGutter: 32,
  28473. tabsCardHeadBackground: t.colorFillAlter,
  28474. dropdownEdgeChildVerticalPadding: t.paddingXXS,
  28475. tabsActiveTextShadow: "0 0 0.25px currentcolor",
  28476. tabsDropdownHeight: 200,
  28477. tabsDropdownWidth: 120
  28478. });
  28479. return [zBe(n), FBe(n), BBe(n), NBe(n), LBe(n), WBe(n), kBe(n)];
  28480. }, (t) => ({
  28481. zIndexPopup: t.zIndexPopupBase + 50
  28482. }));
  28483. let HQ = 0;
  28484. const nae = () => ({
  28485. prefixCls: {
  28486. type: String
  28487. },
  28488. id: {
  28489. type: String
  28490. },
  28491. popupClassName: String,
  28492. getPopupContainer: Ct(),
  28493. activeKey: {
  28494. type: [String, Number]
  28495. },
  28496. defaultActiveKey: {
  28497. type: [String, Number]
  28498. },
  28499. direction: rr(),
  28500. animated: or([Boolean, Object]),
  28501. renderTabBar: Ct(),
  28502. tabBarGutter: {
  28503. type: Number
  28504. },
  28505. tabBarStyle: sn(),
  28506. tabPosition: rr(),
  28507. destroyInactiveTabPane: Tt(),
  28508. hideAdd: Boolean,
  28509. type: rr(),
  28510. size: rr(),
  28511. centered: Boolean,
  28512. onEdit: Ct(),
  28513. onChange: Ct(),
  28514. onTabClick: Ct(),
  28515. onTabScroll: Ct(),
  28516. "onUpdate:activeKey": Ct(),
  28517. // Accessibility
  28518. locale: sn(),
  28519. onPrevClick: Ct(),
  28520. onNextClick: Ct(),
  28521. tabBarExtraContent: oe.any
  28522. });
  28523. function HBe(t) {
  28524. return t.map((e) => {
  28525. if (po(e)) {
  28526. const n = k({}, e.props || {});
  28527. for (const [d, h] of Object.entries(n))
  28528. delete n[d], n[kN(d)] = h;
  28529. const r = e.children || {}, i = e.key !== void 0 ? e.key : void 0, {
  28530. tab: a = r.tab,
  28531. disabled: o,
  28532. forceRender: s,
  28533. closable: l,
  28534. animated: u,
  28535. active: c,
  28536. destroyInactiveTabPane: f
  28537. } = n;
  28538. return k(k({
  28539. key: i
  28540. }, n), {
  28541. node: e,
  28542. closeIcon: r.closeIcon,
  28543. tab: a,
  28544. disabled: o === "" || o,
  28545. forceRender: s === "" || s,
  28546. closable: l === "" || l,
  28547. animated: u === "" || u,
  28548. active: c === "" || c,
  28549. destroyInactiveTabPane: f === "" || f
  28550. });
  28551. }
  28552. return null;
  28553. }).filter((e) => e);
  28554. }
  28555. const GBe = ae({
  28556. compatConfig: {
  28557. MODE: 3
  28558. },
  28559. name: "InternalTabs",
  28560. inheritAttrs: !1,
  28561. props: k(k({}, li(nae(), {
  28562. tabPosition: "top",
  28563. animated: {
  28564. inkBar: !0,
  28565. tabPane: !1
  28566. }
  28567. })), {
  28568. tabs: Lh()
  28569. }),
  28570. slots: Object,
  28571. // emits: ['tabClick', 'tabScroll', 'change', 'update:activeKey'],
  28572. setup(t, e) {
  28573. let {
  28574. attrs: n,
  28575. slots: r
  28576. } = e;
  28577. lo(t.onPrevClick === void 0 && t.onNextClick === void 0, "Tabs", "`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."), lo(t.tabBarExtraContent === void 0, "Tabs", "`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."), lo(r.tabBarExtraContent === void 0, "Tabs", "`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");
  28578. const {
  28579. prefixCls: i,
  28580. direction: a,
  28581. size: o,
  28582. rootPrefixCls: s,
  28583. getPopupContainer: l
  28584. } = hn("tabs", t), [u, c] = QBe(i), f = V(() => a.value === "rtl"), d = V(() => {
  28585. const {
  28586. animated: C,
  28587. tabPosition: P
  28588. } = t;
  28589. return C === !1 || ["left", "right"].includes(P) ? {
  28590. inkBar: !1,
  28591. tabPane: !1
  28592. } : C === !0 ? {
  28593. inkBar: !0,
  28594. tabPane: !0
  28595. } : k({
  28596. inkBar: !0,
  28597. tabPane: !1
  28598. }, typeof C == "object" ? C : {});
  28599. }), [h, p] = tr(!1);
  28600. _t(() => {
  28601. p(i8());
  28602. });
  28603. const [v, g] = Rg(() => {
  28604. var C;
  28605. return (C = t.tabs[0]) === null || C === void 0 ? void 0 : C.key;
  28606. }, {
  28607. value: V(() => t.activeKey),
  28608. defaultValue: t.defaultActiveKey
  28609. }), [m, y] = tr(() => t.tabs.findIndex((C) => C.key === v.value));
  28610. Vt(() => {
  28611. var C;
  28612. let P = t.tabs.findIndex(($) => $.key === v.value);
  28613. P === -1 && (P = Math.max(0, Math.min(m.value, t.tabs.length - 1)), g((C = t.tabs[P]) === null || C === void 0 ? void 0 : C.key)), y(P);
  28614. });
  28615. const [_, O] = Rg(null, {
  28616. value: V(() => t.id)
  28617. }), S = V(() => h.value && !["left", "right"].includes(t.tabPosition) ? "top" : t.tabPosition);
  28618. _t(() => {
  28619. t.id || (O(`rc-tabs-${process.env.NODE_ENV === "test" ? "test" : HQ}`), HQ += 1);
  28620. });
  28621. const x = (C, P) => {
  28622. var $, T;
  28623. ($ = t.onTabClick) === null || $ === void 0 || $.call(t, C, P);
  28624. const E = C !== v.value;
  28625. g(C), E && ((T = t.onChange) === null || T === void 0 || T.call(t, C));
  28626. };
  28627. return eae({
  28628. tabs: V(() => t.tabs),
  28629. prefixCls: i
  28630. }), () => {
  28631. const {
  28632. id: C,
  28633. type: P,
  28634. tabBarGutter: $,
  28635. tabBarStyle: T,
  28636. locale: E,
  28637. destroyInactiveTabPane: M,
  28638. renderTabBar: R = r.renderTabBar,
  28639. onTabScroll: N,
  28640. hideAdd: I,
  28641. centered: B
  28642. } = t, Q = {
  28643. id: _.value,
  28644. activeKey: v.value,
  28645. animated: d.value,
  28646. tabPosition: S.value,
  28647. rtl: f.value,
  28648. mobile: h.value
  28649. };
  28650. let W;
  28651. P === "editable-card" && (W = {
  28652. onEdit: (Y, ne) => {
  28653. let {
  28654. key: fe,
  28655. event: ue
  28656. } = ne;
  28657. var ye;
  28658. (ye = t.onEdit) === null || ye === void 0 || ye.call(t, Y === "add" ? ue : fe, Y);
  28659. },
  28660. removeIcon: () => D(tc, null, null),
  28661. addIcon: r.addIcon ? r.addIcon : () => D(j2, null, null),
  28662. showAdd: I !== !0
  28663. });
  28664. let H;
  28665. const U = k(k({}, Q), {
  28666. moreTransitionName: `${s.value}-slide-up`,
  28667. editable: W,
  28668. locale: E,
  28669. tabBarGutter: $,
  28670. onTabClick: x,
  28671. onTabScroll: N,
  28672. style: T,
  28673. getPopupContainer: l.value,
  28674. popupClassName: Re(t.popupClassName, c.value)
  28675. });
  28676. R ? H = R(k(k({}, U), {
  28677. DefaultTabBar: WQ
  28678. })) : H = D(WQ, U, mg(r, ["moreIcon", "leftExtra", "rightExtra", "tabBarExtraContent"]));
  28679. const j = i.value;
  28680. return u(D("div", te(te({}, n), {}, {
  28681. id: C,
  28682. class: Re(j, `${j}-${S.value}`, {
  28683. [c.value]: !0,
  28684. [`${j}-${o.value}`]: o.value,
  28685. [`${j}-card`]: ["card", "editable-card"].includes(P),
  28686. [`${j}-editable-card`]: P === "editable-card",
  28687. [`${j}-centered`]: B,
  28688. [`${j}-mobile`]: h.value,
  28689. [`${j}-editable`]: P === "editable-card",
  28690. [`${j}-rtl`]: f.value
  28691. }, n.class)
  28692. }), [H, D(IBe, te(te({
  28693. destroyInactiveTabPane: M
  28694. }, Q), {}, {
  28695. animated: d.value
  28696. }), null)]));
  28697. };
  28698. }
  28699. }), _h = ae({
  28700. compatConfig: {
  28701. MODE: 3
  28702. },
  28703. name: "ATabs",
  28704. inheritAttrs: !1,
  28705. props: li(nae(), {
  28706. tabPosition: "top",
  28707. animated: {
  28708. inkBar: !0,
  28709. tabPane: !1
  28710. }
  28711. }),
  28712. slots: Object,
  28713. // emits: ['tabClick', 'tabScroll', 'change', 'update:activeKey'],
  28714. setup(t, e) {
  28715. let {
  28716. attrs: n,
  28717. slots: r,
  28718. emit: i
  28719. } = e;
  28720. const a = (o) => {
  28721. i("update:activeKey", o), i("change", o);
  28722. };
  28723. return () => {
  28724. var o;
  28725. const s = HBe(qr((o = r.default) === null || o === void 0 ? void 0 : o.call(r)));
  28726. return D(GBe, te(te(te({}, si(t, ["onUpdate:activeKey"])), n), {}, {
  28727. onChange: a,
  28728. tabs: s
  28729. }), r);
  28730. };
  28731. }
  28732. }), jBe = () => ({
  28733. tab: oe.any,
  28734. disabled: {
  28735. type: Boolean
  28736. },
  28737. forceRender: {
  28738. type: Boolean
  28739. },
  28740. closable: {
  28741. type: Boolean
  28742. },
  28743. animated: {
  28744. type: Boolean
  28745. },
  28746. active: {
  28747. type: Boolean
  28748. },
  28749. destroyInactiveTabPane: {
  28750. type: Boolean
  28751. },
  28752. // Pass by TabPaneList
  28753. prefixCls: {
  28754. type: String
  28755. },
  28756. tabKey: {
  28757. type: [String, Number]
  28758. },
  28759. id: {
  28760. type: String
  28761. }
  28762. // closeIcon: PropTypes.any,
  28763. }), zu = ae({
  28764. compatConfig: {
  28765. MODE: 3
  28766. },
  28767. name: "ATabPane",
  28768. inheritAttrs: !1,
  28769. __ANT_TAB_PANE: !0,
  28770. props: jBe(),
  28771. slots: Object,
  28772. setup(t, e) {
  28773. let {
  28774. attrs: n,
  28775. slots: r
  28776. } = e;
  28777. const i = ee(t.forceRender);
  28778. me([() => t.active, () => t.destroyInactiveTabPane], () => {
  28779. t.active ? i.value = !0 : t.destroyInactiveTabPane && (i.value = !1);
  28780. }, {
  28781. immediate: !0
  28782. });
  28783. const a = V(() => t.active ? {} : t.animated ? {
  28784. visibility: "hidden",
  28785. height: 0,
  28786. overflowY: "hidden"
  28787. } : {
  28788. display: "none"
  28789. });
  28790. return () => {
  28791. var o;
  28792. const {
  28793. prefixCls: s,
  28794. forceRender: l,
  28795. id: u,
  28796. active: c,
  28797. tabKey: f
  28798. } = t;
  28799. return D("div", {
  28800. id: u && `${u}-panel-${f}`,
  28801. role: "tabpanel",
  28802. tabindex: c ? 0 : -1,
  28803. "aria-labelledby": u && `${u}-tab-${f}`,
  28804. "aria-hidden": !c,
  28805. style: [a.value, n.style],
  28806. class: [`${s}-tabpane`, c && `${s}-tabpane-active`, n.class]
  28807. }, [(c || i.value || l) && ((o = r.default) === null || o === void 0 ? void 0 : o.call(r))]);
  28808. };
  28809. }
  28810. });
  28811. _h.TabPane = zu;
  28812. _h.install = function(t) {
  28813. return t.component(_h.name, _h), t.component(zu.name, zu), t;
  28814. };
  28815. const ZBe = () => ({
  28816. prefixCls: String,
  28817. activeKey: or([Array, Number, String]),
  28818. defaultActiveKey: or([Array, Number, String]),
  28819. accordion: Tt(),
  28820. destroyInactivePanel: Tt(),
  28821. bordered: Tt(),
  28822. expandIcon: Ct(),
  28823. openAnimation: oe.object,
  28824. expandIconPosition: rr(),
  28825. collapsible: rr(),
  28826. ghost: Tt(),
  28827. onChange: Ct(),
  28828. "onUpdate:activeKey": Ct()
  28829. }), rae = () => ({
  28830. openAnimation: oe.object,
  28831. prefixCls: String,
  28832. header: oe.any,
  28833. headerClass: String,
  28834. showArrow: Tt(),
  28835. isActive: Tt(),
  28836. destroyInactivePanel: Tt(),
  28837. /** @deprecated Use `collapsible="disabled"` instead */
  28838. disabled: Tt(),
  28839. accordion: Tt(),
  28840. forceRender: Tt(),
  28841. expandIcon: Ct(),
  28842. extra: oe.any,
  28843. panelKey: or(),
  28844. collapsible: rr(),
  28845. role: String,
  28846. onItemClick: Ct()
  28847. }), UBe = (t) => {
  28848. const {
  28849. componentCls: e,
  28850. collapseContentBg: n,
  28851. padding: r,
  28852. collapseContentPaddingHorizontal: i,
  28853. collapseHeaderBg: a,
  28854. collapseHeaderPadding: o,
  28855. collapsePanelBorderRadius: s,
  28856. lineWidth: l,
  28857. lineType: u,
  28858. colorBorder: c,
  28859. colorText: f,
  28860. colorTextHeading: d,
  28861. colorTextDisabled: h,
  28862. fontSize: p,
  28863. lineHeight: v,
  28864. marginSM: g,
  28865. paddingSM: m,
  28866. motionDurationSlow: y,
  28867. fontSizeIcon: _
  28868. } = t, O = `${l}px ${u} ${c}`;
  28869. return {
  28870. [e]: k(k({}, Gn(t)), {
  28871. backgroundColor: a,
  28872. border: O,
  28873. borderBottom: 0,
  28874. borderRadius: `${s}px`,
  28875. "&-rtl": {
  28876. direction: "rtl"
  28877. },
  28878. [`& > ${e}-item`]: {
  28879. borderBottom: O,
  28880. "&:last-child": {
  28881. [`
  28882. &,
  28883. & > ${e}-header`]: {
  28884. borderRadius: `0 0 ${s}px ${s}px`
  28885. }
  28886. },
  28887. [`> ${e}-header`]: {
  28888. position: "relative",
  28889. display: "flex",
  28890. flexWrap: "nowrap",
  28891. alignItems: "flex-start",
  28892. padding: o,
  28893. color: d,
  28894. lineHeight: v,
  28895. cursor: "pointer",
  28896. transition: `all ${y}, visibility 0s`,
  28897. [`> ${e}-header-text`]: {
  28898. flex: "auto"
  28899. },
  28900. "&:focus": {
  28901. outline: "none"
  28902. },
  28903. // >>>>> Arrow
  28904. [`${e}-expand-icon`]: {
  28905. height: p * v,
  28906. display: "flex",
  28907. alignItems: "center",
  28908. paddingInlineEnd: g
  28909. },
  28910. [`${e}-arrow`]: k(k({}, hm()), {
  28911. fontSize: _,
  28912. svg: {
  28913. transition: `transform ${y}`
  28914. }
  28915. }),
  28916. // >>>>> Text
  28917. [`${e}-header-text`]: {
  28918. marginInlineEnd: "auto"
  28919. }
  28920. },
  28921. [`${e}-header-collapsible-only`]: {
  28922. cursor: "default",
  28923. [`${e}-header-text`]: {
  28924. flex: "none",
  28925. cursor: "pointer"
  28926. },
  28927. [`${e}-expand-icon`]: {
  28928. cursor: "pointer"
  28929. }
  28930. },
  28931. [`${e}-icon-collapsible-only`]: {
  28932. cursor: "default",
  28933. [`${e}-expand-icon`]: {
  28934. cursor: "pointer"
  28935. }
  28936. },
  28937. [`&${e}-no-arrow`]: {
  28938. [`> ${e}-header`]: {
  28939. paddingInlineStart: m
  28940. }
  28941. }
  28942. },
  28943. [`${e}-content`]: {
  28944. color: f,
  28945. backgroundColor: n,
  28946. borderTop: O,
  28947. [`& > ${e}-content-box`]: {
  28948. padding: `${r}px ${i}px`
  28949. },
  28950. "&-hidden": {
  28951. display: "none"
  28952. }
  28953. },
  28954. [`${e}-item:last-child`]: {
  28955. [`> ${e}-content`]: {
  28956. borderRadius: `0 0 ${s}px ${s}px`
  28957. }
  28958. },
  28959. [`& ${e}-item-disabled > ${e}-header`]: {
  28960. "\n &,\n & > .arrow\n ": {
  28961. color: h,
  28962. cursor: "not-allowed"
  28963. }
  28964. },
  28965. // ========================== Icon Position ==========================
  28966. [`&${e}-icon-position-end`]: {
  28967. [`& > ${e}-item`]: {
  28968. [`> ${e}-header`]: {
  28969. [`${e}-expand-icon`]: {
  28970. order: 1,
  28971. paddingInlineEnd: 0,
  28972. paddingInlineStart: g
  28973. }
  28974. }
  28975. }
  28976. }
  28977. })
  28978. };
  28979. }, XBe = (t) => {
  28980. const {
  28981. componentCls: e
  28982. } = t, n = `> ${e}-item > ${e}-header ${e}-arrow svg`;
  28983. return {
  28984. [`${e}-rtl`]: {
  28985. [n]: {
  28986. transform: "rotate(180deg)"
  28987. }
  28988. }
  28989. };
  28990. }, YBe = (t) => {
  28991. const {
  28992. componentCls: e,
  28993. collapseHeaderBg: n,
  28994. paddingXXS: r,
  28995. colorBorder: i
  28996. } = t;
  28997. return {
  28998. [`${e}-borderless`]: {
  28999. backgroundColor: n,
  29000. border: 0,
  29001. [`> ${e}-item`]: {
  29002. borderBottom: `1px solid ${i}`
  29003. },
  29004. [`
  29005. > ${e}-item:last-child,
  29006. > ${e}-item:last-child ${e}-header
  29007. `]: {
  29008. borderRadius: 0
  29009. },
  29010. [`> ${e}-item:last-child`]: {
  29011. borderBottom: 0
  29012. },
  29013. [`> ${e}-item > ${e}-content`]: {
  29014. backgroundColor: "transparent",
  29015. borderTop: 0
  29016. },
  29017. [`> ${e}-item > ${e}-content > ${e}-content-box`]: {
  29018. paddingTop: r
  29019. }
  29020. }
  29021. };
  29022. }, qBe = (t) => {
  29023. const {
  29024. componentCls: e,
  29025. paddingSM: n
  29026. } = t;
  29027. return {
  29028. [`${e}-ghost`]: {
  29029. backgroundColor: "transparent",
  29030. border: 0,
  29031. [`> ${e}-item`]: {
  29032. borderBottom: 0,
  29033. [`> ${e}-content`]: {
  29034. backgroundColor: "transparent",
  29035. border: 0,
  29036. [`> ${e}-content-box`]: {
  29037. paddingBlock: n
  29038. }
  29039. }
  29040. }
  29041. }
  29042. };
  29043. }, KBe = pr("Collapse", (t) => {
  29044. const e = bn(t, {
  29045. collapseContentBg: t.colorBgContainer,
  29046. collapseHeaderBg: t.colorFillAlter,
  29047. collapseHeaderPadding: `${t.paddingSM}px ${t.padding}px`,
  29048. collapsePanelBorderRadius: t.borderRadiusLG,
  29049. collapseContentPaddingHorizontal: 16
  29050. // Fixed value
  29051. });
  29052. return [UBe(e), YBe(e), qBe(e), XBe(e), v8(e)];
  29053. });
  29054. function GQ(t) {
  29055. let e = t;
  29056. if (!Array.isArray(e)) {
  29057. const n = typeof e;
  29058. e = n === "number" || n === "string" ? [e] : [];
  29059. }
  29060. return e.map((n) => String(n));
  29061. }
  29062. const Wy = ae({
  29063. compatConfig: {
  29064. MODE: 3
  29065. },
  29066. name: "ACollapse",
  29067. inheritAttrs: !1,
  29068. props: li(ZBe(), {
  29069. accordion: !1,
  29070. destroyInactivePanel: !1,
  29071. bordered: !0,
  29072. expandIconPosition: "start"
  29073. }),
  29074. slots: Object,
  29075. setup(t, e) {
  29076. let {
  29077. attrs: n,
  29078. slots: r,
  29079. emit: i
  29080. } = e;
  29081. const a = ee(GQ(Sie([t.activeKey, t.defaultActiveKey])));
  29082. me(() => t.activeKey, () => {
  29083. a.value = GQ(t.activeKey);
  29084. }, {
  29085. deep: !0
  29086. });
  29087. const {
  29088. prefixCls: o,
  29089. direction: s,
  29090. rootPrefixCls: l
  29091. } = hn("collapse", t), [u, c] = KBe(o), f = V(() => {
  29092. const {
  29093. expandIconPosition: m
  29094. } = t;
  29095. return m !== void 0 ? m : s.value === "rtl" ? "end" : "start";
  29096. }), d = (m) => {
  29097. const {
  29098. expandIcon: y = r.expandIcon
  29099. } = t, _ = y ? y(m) : D(Q2, {
  29100. rotate: m.isActive ? 90 : void 0
  29101. }, null);
  29102. return D("div", {
  29103. class: [`${o.value}-expand-icon`, c.value],
  29104. onClick: () => ["header", "icon"].includes(t.collapsible) && p(m.panelKey)
  29105. }, [po(Array.isArray(y) ? _[0] : _) ? xr(_, {
  29106. class: `${o.value}-arrow`
  29107. }, !1) : _]);
  29108. }, h = (m) => {
  29109. t.activeKey === void 0 && (a.value = m);
  29110. const y = t.accordion ? m[0] : m;
  29111. i("update:activeKey", y), i("change", y);
  29112. }, p = (m) => {
  29113. let y = a.value;
  29114. if (t.accordion)
  29115. y = y[0] === m ? [] : [m];
  29116. else {
  29117. y = [...y];
  29118. const _ = y.indexOf(m);
  29119. _ > -1 ? y.splice(_, 1) : y.push(m);
  29120. }
  29121. h(y);
  29122. }, v = (m, y) => {
  29123. var _, O, S;
  29124. if (LN(m)) return;
  29125. const x = a.value, {
  29126. accordion: C,
  29127. destroyInactivePanel: P,
  29128. collapsible: $,
  29129. openAnimation: T
  29130. } = t, E = T || w8(`${l.value}-motion-collapse`), M = String((_ = m.key) !== null && _ !== void 0 ? _ : y), {
  29131. header: R = (S = (O = m.children) === null || O === void 0 ? void 0 : O.header) === null || S === void 0 ? void 0 : S.call(O),
  29132. headerClass: N,
  29133. collapsible: I,
  29134. disabled: B
  29135. } = m.props || {};
  29136. let Q = !1;
  29137. C ? Q = x[0] === M : Q = x.indexOf(M) > -1;
  29138. let W = I ?? $;
  29139. (B || B === "") && (W = "disabled");
  29140. const H = {
  29141. key: M,
  29142. panelKey: M,
  29143. header: R,
  29144. headerClass: N,
  29145. isActive: Q,
  29146. prefixCls: o.value,
  29147. destroyInactivePanel: P,
  29148. openAnimation: E,
  29149. accordion: C,
  29150. onItemClick: W === "disabled" ? null : p,
  29151. expandIcon: d,
  29152. collapsible: W
  29153. };
  29154. return xr(m, H);
  29155. }, g = () => {
  29156. var m;
  29157. return qr((m = r.default) === null || m === void 0 ? void 0 : m.call(r)).map(v);
  29158. };
  29159. return () => {
  29160. const {
  29161. accordion: m,
  29162. bordered: y,
  29163. ghost: _
  29164. } = t, O = Re(o.value, {
  29165. [`${o.value}-borderless`]: !y,
  29166. [`${o.value}-icon-position-${f.value}`]: !0,
  29167. [`${o.value}-rtl`]: s.value === "rtl",
  29168. [`${o.value}-ghost`]: !!_,
  29169. [n.class]: !!n.class
  29170. }, c.value);
  29171. return u(D("div", te(te({
  29172. class: O
  29173. }, zRe(n)), {}, {
  29174. style: n.style,
  29175. role: m ? "tablist" : null
  29176. }), [g()]));
  29177. };
  29178. }
  29179. }), JBe = ae({
  29180. compatConfig: {
  29181. MODE: 3
  29182. },
  29183. name: "PanelContent",
  29184. props: rae(),
  29185. setup(t, e) {
  29186. let {
  29187. slots: n
  29188. } = e;
  29189. const r = ve(!1);
  29190. return Vt(() => {
  29191. (t.isActive || t.forceRender) && (r.value = !0);
  29192. }), () => {
  29193. var i;
  29194. if (!r.value) return null;
  29195. const {
  29196. prefixCls: a,
  29197. isActive: o,
  29198. role: s
  29199. } = t;
  29200. return D("div", {
  29201. class: Re(`${a}-content`, {
  29202. [`${a}-content-active`]: o,
  29203. [`${a}-content-inactive`]: !o
  29204. }),
  29205. role: s
  29206. }, [D("div", {
  29207. class: `${a}-content-box`
  29208. }, [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)])]);
  29209. };
  29210. }
  29211. }), fC = ae({
  29212. compatConfig: {
  29213. MODE: 3
  29214. },
  29215. name: "ACollapsePanel",
  29216. inheritAttrs: !1,
  29217. props: li(rae(), {
  29218. showArrow: !0,
  29219. isActive: !1,
  29220. onItemClick() {
  29221. },
  29222. headerClass: "",
  29223. forceRender: !1
  29224. }),
  29225. slots: Object,
  29226. // emits: ['itemClick'],
  29227. setup(t, e) {
  29228. let {
  29229. slots: n,
  29230. emit: r,
  29231. attrs: i
  29232. } = e;
  29233. lo(t.disabled === void 0, "Collapse.Panel", '`disabled` is deprecated. Please use `collapsible="disabled"` instead.');
  29234. const {
  29235. prefixCls: a
  29236. } = hn("collapse", t), o = () => {
  29237. r("itemClick", t.panelKey);
  29238. }, s = (l) => {
  29239. (l.key === "Enter" || l.keyCode === 13 || l.which === 13) && o();
  29240. };
  29241. return () => {
  29242. var l, u;
  29243. const {
  29244. header: c = (l = n.header) === null || l === void 0 ? void 0 : l.call(n),
  29245. headerClass: f,
  29246. isActive: d,
  29247. showArrow: h,
  29248. destroyInactivePanel: p,
  29249. accordion: v,
  29250. forceRender: g,
  29251. openAnimation: m,
  29252. expandIcon: y = n.expandIcon,
  29253. extra: _ = (u = n.extra) === null || u === void 0 ? void 0 : u.call(n),
  29254. collapsible: O
  29255. } = t, S = O === "disabled", x = a.value, C = Re(`${x}-header`, {
  29256. [f]: f,
  29257. [`${x}-header-collapsible-only`]: O === "header",
  29258. [`${x}-icon-collapsible-only`]: O === "icon"
  29259. }), P = Re({
  29260. [`${x}-item`]: !0,
  29261. [`${x}-item-active`]: d,
  29262. [`${x}-item-disabled`]: S,
  29263. [`${x}-no-arrow`]: !h,
  29264. [`${i.class}`]: !!i.class
  29265. });
  29266. let $ = D("i", {
  29267. class: "arrow"
  29268. }, null);
  29269. h && typeof y == "function" && ($ = y(t));
  29270. const T = Sr(D(JBe, {
  29271. prefixCls: x,
  29272. isActive: d,
  29273. forceRender: g,
  29274. role: v ? "tabpanel" : null
  29275. }, {
  29276. default: n.default
  29277. }), [[ho, d]]), E = k({
  29278. appear: !1,
  29279. css: !1
  29280. }, m);
  29281. return D("div", te(te({}, i), {}, {
  29282. class: P
  29283. }), [D("div", {
  29284. class: C,
  29285. onClick: () => !["header", "icon"].includes(O) && o(),
  29286. role: v ? "tab" : "button",
  29287. tabindex: S ? -1 : 0,
  29288. "aria-expanded": d,
  29289. onKeypress: s
  29290. }, [h && $, D("span", {
  29291. onClick: () => O === "header" && o(),
  29292. class: `${x}-header-text`
  29293. }, [c]), _ && D("div", {
  29294. class: `${x}-extra`
  29295. }, [_])]), D(mo, E, {
  29296. default: () => [!p || d ? T : null]
  29297. })]);
  29298. };
  29299. }
  29300. });
  29301. Wy.Panel = fC;
  29302. Wy.install = function(t) {
  29303. return t.component(Wy.name, Wy), t.component(fC.name, fC), t;
  29304. };
  29305. var eze = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
  29306. function jQ(t) {
  29307. for (var e = 1; e < arguments.length; e++) {
  29308. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  29309. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  29310. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  29311. }))), r.forEach(function(i) {
  29312. tze(t, i, n[i]);
  29313. });
  29314. }
  29315. return t;
  29316. }
  29317. function tze(t, e, n) {
  29318. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  29319. }
  29320. var T8 = function(e, n) {
  29321. var r = jQ({}, e, n.attrs);
  29322. return D(Rt, jQ({}, r, {
  29323. icon: eze
  29324. }), null);
  29325. };
  29326. T8.displayName = "LeftOutlined";
  29327. T8.inheritAttrs = !1;
  29328. const iae = () => is() && window.document.documentElement;
  29329. let tS;
  29330. const nze = () => {
  29331. if (!iae())
  29332. return !1;
  29333. if (tS !== void 0)
  29334. return tS;
  29335. const t = document.createElement("div");
  29336. return t.style.display = "flex", t.style.flexDirection = "column", t.style.rowGap = "1px", t.appendChild(document.createElement("div")), t.appendChild(document.createElement("div")), document.body.appendChild(t), tS = t.scrollHeight === 1, document.body.removeChild(t), tS;
  29337. }, rze = () => {
  29338. const t = ve(!1);
  29339. return _t(() => {
  29340. t.value = nze();
  29341. }), t;
  29342. }, aae = Symbol("rowContextKey"), ize = (t) => {
  29343. Et(aae, t);
  29344. }, aze = () => et(aae, {
  29345. gutter: V(() => {
  29346. }),
  29347. wrap: V(() => {
  29348. }),
  29349. supportFlexGap: V(() => {
  29350. })
  29351. }), oze = (t) => {
  29352. const {
  29353. componentCls: e
  29354. } = t;
  29355. return {
  29356. // Grid system
  29357. [e]: {
  29358. display: "flex",
  29359. flexFlow: "row wrap",
  29360. minWidth: 0,
  29361. "&::before, &::after": {
  29362. display: "flex"
  29363. },
  29364. "&-no-wrap": {
  29365. flexWrap: "nowrap"
  29366. },
  29367. // The origin of the X-axis
  29368. "&-start": {
  29369. justifyContent: "flex-start"
  29370. },
  29371. // The center of the X-axis
  29372. "&-center": {
  29373. justifyContent: "center"
  29374. },
  29375. // The opposite of the X-axis
  29376. "&-end": {
  29377. justifyContent: "flex-end"
  29378. },
  29379. "&-space-between": {
  29380. justifyContent: "space-between"
  29381. },
  29382. "&-space-around ": {
  29383. justifyContent: "space-around"
  29384. },
  29385. "&-space-evenly ": {
  29386. justifyContent: "space-evenly"
  29387. },
  29388. // Align at the top
  29389. "&-top": {
  29390. alignItems: "flex-start"
  29391. },
  29392. // Align at the center
  29393. "&-middle": {
  29394. alignItems: "center"
  29395. },
  29396. "&-bottom": {
  29397. alignItems: "flex-end"
  29398. }
  29399. }
  29400. };
  29401. }, sze = (t) => {
  29402. const {
  29403. componentCls: e
  29404. } = t;
  29405. return {
  29406. // Grid system
  29407. [e]: {
  29408. position: "relative",
  29409. maxWidth: "100%",
  29410. // Prevent columns from collapsing when empty
  29411. minHeight: 1
  29412. }
  29413. };
  29414. }, lze = (t, e) => {
  29415. const {
  29416. componentCls: n,
  29417. gridColumns: r
  29418. } = t, i = {};
  29419. for (let a = r; a >= 0; a--)
  29420. a === 0 ? (i[`${n}${e}-${a}`] = {
  29421. display: "none"
  29422. }, i[`${n}-push-${a}`] = {
  29423. insetInlineStart: "auto"
  29424. }, i[`${n}-pull-${a}`] = {
  29425. insetInlineEnd: "auto"
  29426. }, i[`${n}${e}-push-${a}`] = {
  29427. insetInlineStart: "auto"
  29428. }, i[`${n}${e}-pull-${a}`] = {
  29429. insetInlineEnd: "auto"
  29430. }, i[`${n}${e}-offset-${a}`] = {
  29431. marginInlineEnd: 0
  29432. }, i[`${n}${e}-order-${a}`] = {
  29433. order: 0
  29434. }) : (i[`${n}${e}-${a}`] = {
  29435. display: "block",
  29436. flex: `0 0 ${a / r * 100}%`,
  29437. maxWidth: `${a / r * 100}%`
  29438. }, i[`${n}${e}-push-${a}`] = {
  29439. insetInlineStart: `${a / r * 100}%`
  29440. }, i[`${n}${e}-pull-${a}`] = {
  29441. insetInlineEnd: `${a / r * 100}%`
  29442. }, i[`${n}${e}-offset-${a}`] = {
  29443. marginInlineStart: `${a / r * 100}%`
  29444. }, i[`${n}${e}-order-${a}`] = {
  29445. order: a
  29446. });
  29447. return i;
  29448. }, kR = (t, e) => lze(t, e), uze = (t, e, n) => ({
  29449. [`@media (min-width: ${e}px)`]: k({}, kR(t, n))
  29450. }), cze = pr("Grid", (t) => [oze(t)]), fze = pr("Grid", (t) => {
  29451. const e = bn(t, {
  29452. gridColumns: 24
  29453. // Row is divided into 24 parts in Grid
  29454. }), n = {
  29455. "-sm": e.screenSMMin,
  29456. "-md": e.screenMDMin,
  29457. "-lg": e.screenLGMin,
  29458. "-xl": e.screenXLMin,
  29459. "-xxl": e.screenXXLMin
  29460. };
  29461. return [sze(e), kR(e, ""), kR(e, "-xs"), Object.keys(n).map((r) => uze(e, n[r], r)).reduce((r, i) => k(k({}, r), i), {})];
  29462. }), dze = () => ({
  29463. align: or([String, Object]),
  29464. justify: or([String, Object]),
  29465. prefixCls: String,
  29466. gutter: or([Number, Array, Object], 0),
  29467. wrap: {
  29468. type: Boolean,
  29469. default: void 0
  29470. }
  29471. }), hze = ae({
  29472. compatConfig: {
  29473. MODE: 3
  29474. },
  29475. name: "ARow",
  29476. inheritAttrs: !1,
  29477. props: dze(),
  29478. setup(t, e) {
  29479. let {
  29480. slots: n,
  29481. attrs: r
  29482. } = e;
  29483. const {
  29484. prefixCls: i,
  29485. direction: a
  29486. } = hn("row", t), [o, s] = cze(i);
  29487. let l;
  29488. const u = I3e(), c = ee({
  29489. xs: !0,
  29490. sm: !0,
  29491. md: !0,
  29492. lg: !0,
  29493. xl: !0,
  29494. xxl: !0
  29495. }), f = ee({
  29496. xs: !1,
  29497. sm: !1,
  29498. md: !1,
  29499. lg: !1,
  29500. xl: !1,
  29501. xxl: !1
  29502. }), d = (_) => V(() => {
  29503. if (typeof t[_] == "string")
  29504. return t[_];
  29505. if (typeof t[_] != "object")
  29506. return "";
  29507. for (let O = 0; O < qO.length; O++) {
  29508. const S = qO[O];
  29509. if (!f.value[S]) continue;
  29510. const x = t[_][S];
  29511. if (x !== void 0)
  29512. return x;
  29513. }
  29514. return "";
  29515. }), h = d("align"), p = d("justify"), v = rze();
  29516. _t(() => {
  29517. l = u.value.subscribe((_) => {
  29518. f.value = _;
  29519. const O = t.gutter || 0;
  29520. (!Array.isArray(O) && typeof O == "object" || Array.isArray(O) && (typeof O[0] == "object" || typeof O[1] == "object")) && (c.value = _);
  29521. });
  29522. }), Qt(() => {
  29523. u.value.unsubscribe(l);
  29524. });
  29525. const g = V(() => {
  29526. const _ = [void 0, void 0], {
  29527. gutter: O = 0
  29528. } = t;
  29529. return (Array.isArray(O) ? O : [O, void 0]).forEach((x, C) => {
  29530. if (typeof x == "object")
  29531. for (let P = 0; P < qO.length; P++) {
  29532. const $ = qO[P];
  29533. if (c.value[$] && x[$] !== void 0) {
  29534. _[C] = x[$];
  29535. break;
  29536. }
  29537. }
  29538. else
  29539. _[C] = x;
  29540. }), _;
  29541. });
  29542. ize({
  29543. gutter: g,
  29544. supportFlexGap: v,
  29545. wrap: V(() => t.wrap)
  29546. });
  29547. const m = V(() => Re(i.value, {
  29548. [`${i.value}-no-wrap`]: t.wrap === !1,
  29549. [`${i.value}-${p.value}`]: p.value,
  29550. [`${i.value}-${h.value}`]: h.value,
  29551. [`${i.value}-rtl`]: a.value === "rtl"
  29552. }, r.class, s.value)), y = V(() => {
  29553. const _ = g.value, O = {}, S = _[0] != null && _[0] > 0 ? `${_[0] / -2}px` : void 0, x = _[1] != null && _[1] > 0 ? `${_[1] / -2}px` : void 0;
  29554. return S && (O.marginLeft = S, O.marginRight = S), v.value ? O.rowGap = `${_[1]}px` : x && (O.marginTop = x, O.marginBottom = x), O;
  29555. });
  29556. return () => {
  29557. var _;
  29558. return o(D("div", te(te({}, r), {}, {
  29559. class: m.value,
  29560. style: k(k({}, y.value), r.style)
  29561. }), [(_ = n.default) === null || _ === void 0 ? void 0 : _.call(n)]));
  29562. };
  29563. }
  29564. });
  29565. function tf(t) {
  29566. return t == null ? [] : Array.isArray(t) ? t : [t];
  29567. }
  29568. function oae(t, e) {
  29569. let n = t;
  29570. for (let r = 0; r < e.length; r += 1) {
  29571. if (n == null)
  29572. return;
  29573. n = n[e[r]];
  29574. }
  29575. return n;
  29576. }
  29577. function sae(t, e, n, r) {
  29578. if (!e.length)
  29579. return n;
  29580. const [i, ...a] = e;
  29581. let o;
  29582. return !t && typeof i == "number" ? o = [] : Array.isArray(t) ? o = [...t] : o = k({}, t), r && n === void 0 && a.length === 1 ? delete o[i][a[0]] : o[i] = sae(o[i], a, n, r), o;
  29583. }
  29584. function pze(t, e, n) {
  29585. let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  29586. return e.length && r && n === void 0 && !oae(t, e.slice(0, -1)) ? t : sae(t, e, n, r);
  29587. }
  29588. function LR(t) {
  29589. return tf(t);
  29590. }
  29591. function vze(t, e) {
  29592. return oae(t, e);
  29593. }
  29594. function gze(t, e, n) {
  29595. let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  29596. return pze(t, e, n, r);
  29597. }
  29598. function mze(t, e) {
  29599. return t && t.some((n) => bze(n, e));
  29600. }
  29601. function ZQ(t) {
  29602. return typeof t == "object" && t !== null && Object.getPrototypeOf(t) === Object.prototype;
  29603. }
  29604. function lae(t, e) {
  29605. const n = Array.isArray(t) ? [...t] : k({}, t);
  29606. return e && Object.keys(e).forEach((r) => {
  29607. const i = n[r], a = e[r], o = ZQ(i) && ZQ(a);
  29608. n[r] = o ? lae(i, a || {}) : a;
  29609. }), n;
  29610. }
  29611. function yze(t) {
  29612. for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
  29613. n[r - 1] = arguments[r];
  29614. return n.reduce((i, a) => lae(i, a), t);
  29615. }
  29616. function UQ(t, e) {
  29617. let n = {};
  29618. return e.forEach((r) => {
  29619. const i = vze(t, r);
  29620. n = gze(n, r, i);
  29621. }), n;
  29622. }
  29623. function bze(t, e) {
  29624. return !t || !e || t.length !== e.length ? !1 : t.every((n, r) => e[r] === n);
  29625. }
  29626. const Ua = "'${name}' is not a valid ${type}", Z2 = {
  29627. default: "Validation error on field '${name}'",
  29628. required: "'${name}' is required",
  29629. enum: "'${name}' must be one of [${enum}]",
  29630. whitespace: "'${name}' cannot be empty",
  29631. date: {
  29632. format: "'${name}' is invalid for format date",
  29633. parse: "'${name}' could not be parsed as date",
  29634. invalid: "'${name}' is invalid date"
  29635. },
  29636. types: {
  29637. string: Ua,
  29638. method: Ua,
  29639. array: Ua,
  29640. object: Ua,
  29641. number: Ua,
  29642. date: Ua,
  29643. boolean: Ua,
  29644. integer: Ua,
  29645. float: Ua,
  29646. regexp: Ua,
  29647. email: Ua,
  29648. url: Ua,
  29649. hex: Ua
  29650. },
  29651. string: {
  29652. len: "'${name}' must be exactly ${len} characters",
  29653. min: "'${name}' must be at least ${min} characters",
  29654. max: "'${name}' cannot be longer than ${max} characters",
  29655. range: "'${name}' must be between ${min} and ${max} characters"
  29656. },
  29657. number: {
  29658. len: "'${name}' must equal ${len}",
  29659. min: "'${name}' cannot be less than ${min}",
  29660. max: "'${name}' cannot be greater than ${max}",
  29661. range: "'${name}' must be between ${min} and ${max}"
  29662. },
  29663. array: {
  29664. len: "'${name}' must be exactly ${len} in length",
  29665. min: "'${name}' cannot be less than ${min} in length",
  29666. max: "'${name}' cannot be greater than ${max} in length",
  29667. range: "'${name}' must be between ${min} and ${max} in length"
  29668. },
  29669. pattern: {
  29670. mismatch: "'${name}' does not match pattern ${pattern}"
  29671. }
  29672. };
  29673. var U2 = function(t, e, n, r) {
  29674. function i(a) {
  29675. return a instanceof n ? a : new n(function(o) {
  29676. o(a);
  29677. });
  29678. }
  29679. return new (n || (n = Promise))(function(a, o) {
  29680. function s(c) {
  29681. try {
  29682. u(r.next(c));
  29683. } catch (f) {
  29684. o(f);
  29685. }
  29686. }
  29687. function l(c) {
  29688. try {
  29689. u(r.throw(c));
  29690. } catch (f) {
  29691. o(f);
  29692. }
  29693. }
  29694. function u(c) {
  29695. c.done ? a(c.value) : i(c.value).then(s, l);
  29696. }
  29697. u((r = r.apply(t, e || [])).next());
  29698. });
  29699. };
  29700. const _ze = H_;
  29701. function Oze(t, e) {
  29702. return t.replace(/\$\{\w+\}/g, (n) => {
  29703. const r = n.slice(2, -1);
  29704. return e[r];
  29705. });
  29706. }
  29707. function NR(t, e, n, r, i) {
  29708. return U2(this, void 0, void 0, function* () {
  29709. const a = k({}, n);
  29710. delete a.ruleIndex, delete a.trigger;
  29711. let o = null;
  29712. a && a.type === "array" && a.defaultField && (o = a.defaultField, delete a.defaultField);
  29713. const s = new _ze({
  29714. [t]: [a]
  29715. }), l = yze({}, Z2, r.validateMessages);
  29716. s.messages(l);
  29717. let u = [];
  29718. try {
  29719. yield Promise.resolve(s.validate({
  29720. [t]: e
  29721. }, k({}, r)));
  29722. } catch (d) {
  29723. d.errors ? u = d.errors.map((h, p) => {
  29724. let {
  29725. message: v
  29726. } = h;
  29727. return (
  29728. // Wrap VueNode with `key`
  29729. po(v) ? ku(v, {
  29730. key: `error_${p}`
  29731. }) : v
  29732. );
  29733. }) : (console.error(d), u = [l.default()]);
  29734. }
  29735. if (!u.length && o)
  29736. return (yield Promise.all(e.map((h, p) => NR(`${t}.${p}`, h, o, r, i)))).reduce((h, p) => [...h, ...p], []);
  29737. const c = k(k(k({}, n), {
  29738. name: t,
  29739. enum: (n.enum || []).join(", ")
  29740. }), i);
  29741. return u.map((d) => typeof d == "string" ? Oze(d, c) : d);
  29742. });
  29743. }
  29744. function uae(t, e, n, r, i, a) {
  29745. const o = t.join("."), s = n.map((u, c) => {
  29746. const f = u.validator, d = k(k({}, u), {
  29747. ruleIndex: c
  29748. });
  29749. return f && (d.validator = (h, p, v) => {
  29750. let g = !1;
  29751. const y = f(h, p, function() {
  29752. for (var _ = arguments.length, O = new Array(_), S = 0; S < _; S++)
  29753. O[S] = arguments[S];
  29754. Promise.resolve().then(() => {
  29755. Nh(!g, "Your validator function has already return a promise. `callback` will be ignored."), g || v(...O);
  29756. });
  29757. });
  29758. g = y && typeof y.then == "function" && typeof y.catch == "function", Nh(g, "`callback` is deprecated. Please return a promise instead."), g && y.then(() => {
  29759. v();
  29760. }).catch((_) => {
  29761. v(_ || " ");
  29762. });
  29763. }), d;
  29764. }).sort((u, c) => {
  29765. let {
  29766. warningOnly: f,
  29767. ruleIndex: d
  29768. } = u, {
  29769. warningOnly: h,
  29770. ruleIndex: p
  29771. } = c;
  29772. return !!f == !!h ? d - p : f ? 1 : -1;
  29773. });
  29774. let l;
  29775. if (i === !0)
  29776. l = new Promise((u, c) => U2(this, void 0, void 0, function* () {
  29777. for (let f = 0; f < s.length; f += 1) {
  29778. const d = s[f], h = yield NR(o, e, d, r, a);
  29779. if (h.length) {
  29780. c([{
  29781. errors: h,
  29782. rule: d
  29783. }]);
  29784. return;
  29785. }
  29786. }
  29787. u([]);
  29788. }));
  29789. else {
  29790. const u = s.map((c) => NR(o, e, c, r, a).then((f) => ({
  29791. errors: f,
  29792. rule: c
  29793. })));
  29794. l = (i ? xze(u) : Sze(u)).then((c) => Promise.reject(c));
  29795. }
  29796. return l.catch((u) => u), l;
  29797. }
  29798. function Sze(t) {
  29799. return U2(this, void 0, void 0, function* () {
  29800. return Promise.all(t).then((e) => [].concat(...e));
  29801. });
  29802. }
  29803. function xze(t) {
  29804. return U2(this, void 0, void 0, function* () {
  29805. let e = 0;
  29806. return new Promise((n) => {
  29807. t.forEach((r) => {
  29808. r.then((i) => {
  29809. i.errors.length && n([i]), e += 1, e === t.length && n([]);
  29810. });
  29811. });
  29812. });
  29813. });
  29814. }
  29815. const cae = Symbol("formContextKey"), fae = (t) => {
  29816. Et(cae, t);
  29817. }, P8 = () => et(cae, {
  29818. name: V(() => {
  29819. }),
  29820. labelAlign: V(() => "right"),
  29821. vertical: V(() => !1),
  29822. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  29823. addField: (t, e) => {
  29824. },
  29825. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  29826. removeField: (t) => {
  29827. },
  29828. model: V(() => {
  29829. }),
  29830. rules: V(() => {
  29831. }),
  29832. colon: V(() => {
  29833. }),
  29834. labelWrap: V(() => {
  29835. }),
  29836. labelCol: V(() => {
  29837. }),
  29838. requiredMark: V(() => !1),
  29839. validateTrigger: V(() => {
  29840. }),
  29841. onValidate: () => {
  29842. },
  29843. validateMessages: V(() => Z2)
  29844. }), dae = Symbol("formItemPrefixContextKey"), wze = (t) => {
  29845. Et(dae, t);
  29846. }, Cze = () => et(dae, {
  29847. prefixCls: V(() => "")
  29848. });
  29849. function Tze(t) {
  29850. return typeof t == "number" ? `${t} ${t} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(t) ? `0 0 ${t}` : t;
  29851. }
  29852. const Pze = () => ({
  29853. span: [String, Number],
  29854. order: [String, Number],
  29855. offset: [String, Number],
  29856. push: [String, Number],
  29857. pull: [String, Number],
  29858. xs: {
  29859. type: [String, Number, Object],
  29860. default: void 0
  29861. },
  29862. sm: {
  29863. type: [String, Number, Object],
  29864. default: void 0
  29865. },
  29866. md: {
  29867. type: [String, Number, Object],
  29868. default: void 0
  29869. },
  29870. lg: {
  29871. type: [String, Number, Object],
  29872. default: void 0
  29873. },
  29874. xl: {
  29875. type: [String, Number, Object],
  29876. default: void 0
  29877. },
  29878. xxl: {
  29879. type: [String, Number, Object],
  29880. default: void 0
  29881. },
  29882. prefixCls: String,
  29883. flex: [String, Number]
  29884. }), $ze = ["xs", "sm", "md", "lg", "xl", "xxl"], hae = ae({
  29885. compatConfig: {
  29886. MODE: 3
  29887. },
  29888. name: "ACol",
  29889. inheritAttrs: !1,
  29890. props: Pze(),
  29891. setup(t, e) {
  29892. let {
  29893. slots: n,
  29894. attrs: r
  29895. } = e;
  29896. const {
  29897. gutter: i,
  29898. supportFlexGap: a,
  29899. wrap: o
  29900. } = aze(), {
  29901. prefixCls: s,
  29902. direction: l
  29903. } = hn("col", t), [u, c] = fze(s), f = V(() => {
  29904. const {
  29905. span: h,
  29906. order: p,
  29907. offset: v,
  29908. push: g,
  29909. pull: m
  29910. } = t, y = s.value;
  29911. let _ = {};
  29912. return $ze.forEach((O) => {
  29913. let S = {};
  29914. const x = t[O];
  29915. typeof x == "number" ? S.span = x : typeof x == "object" && (S = x || {}), _ = k(k({}, _), {
  29916. [`${y}-${O}-${S.span}`]: S.span !== void 0,
  29917. [`${y}-${O}-order-${S.order}`]: S.order || S.order === 0,
  29918. [`${y}-${O}-offset-${S.offset}`]: S.offset || S.offset === 0,
  29919. [`${y}-${O}-push-${S.push}`]: S.push || S.push === 0,
  29920. [`${y}-${O}-pull-${S.pull}`]: S.pull || S.pull === 0,
  29921. [`${y}-rtl`]: l.value === "rtl"
  29922. });
  29923. }), Re(y, {
  29924. [`${y}-${h}`]: h !== void 0,
  29925. [`${y}-order-${p}`]: p,
  29926. [`${y}-offset-${v}`]: v,
  29927. [`${y}-push-${g}`]: g,
  29928. [`${y}-pull-${m}`]: m
  29929. }, _, r.class, c.value);
  29930. }), d = V(() => {
  29931. const {
  29932. flex: h
  29933. } = t, p = i.value, v = {};
  29934. if (p && p[0] > 0) {
  29935. const g = `${p[0] / 2}px`;
  29936. v.paddingLeft = g, v.paddingRight = g;
  29937. }
  29938. if (p && p[1] > 0 && !a.value) {
  29939. const g = `${p[1] / 2}px`;
  29940. v.paddingTop = g, v.paddingBottom = g;
  29941. }
  29942. return h && (v.flex = Tze(h), o.value === !1 && !v.minWidth && (v.minWidth = 0)), v;
  29943. });
  29944. return () => {
  29945. var h;
  29946. return u(D("div", te(te({}, r), {}, {
  29947. class: f.value,
  29948. style: [d.value, r.style]
  29949. }), [(h = n.default) === null || h === void 0 ? void 0 : h.call(n)]));
  29950. };
  29951. }
  29952. });
  29953. var Aze = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" };
  29954. function XQ(t) {
  29955. for (var e = 1; e < arguments.length; e++) {
  29956. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  29957. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  29958. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  29959. }))), r.forEach(function(i) {
  29960. Eze(t, i, n[i]);
  29961. });
  29962. }
  29963. return t;
  29964. }
  29965. function Eze(t, e, n) {
  29966. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  29967. }
  29968. var $8 = function(e, n) {
  29969. var r = XQ({}, e, n.attrs);
  29970. return D(Rt, XQ({}, r, {
  29971. icon: Aze
  29972. }), null);
  29973. };
  29974. $8.displayName = "QuestionCircleOutlined";
  29975. $8.inheritAttrs = !1;
  29976. const A8 = (t, e) => {
  29977. let {
  29978. slots: n,
  29979. emit: r,
  29980. attrs: i
  29981. } = e;
  29982. var a, o, s, l, u;
  29983. const {
  29984. prefixCls: c,
  29985. htmlFor: f,
  29986. labelCol: d,
  29987. labelAlign: h,
  29988. colon: p,
  29989. required: v,
  29990. requiredMark: g
  29991. } = k(k({}, t), i), [m] = _2("Form"), y = (a = t.label) !== null && a !== void 0 ? a : (o = n.label) === null || o === void 0 ? void 0 : o.call(n);
  29992. if (!y) return null;
  29993. const {
  29994. vertical: _,
  29995. labelAlign: O,
  29996. labelCol: S,
  29997. labelWrap: x,
  29998. colon: C
  29999. } = P8(), P = d || (S == null ? void 0 : S.value) || {}, $ = h || (O == null ? void 0 : O.value), T = `${c}-item-label`, E = Re(T, $ === "left" && `${T}-left`, P.class, {
  30000. [`${T}-wrap`]: !!x.value
  30001. });
  30002. let M = y;
  30003. const R = p === !0 || (C == null ? void 0 : C.value) !== !1 && p !== !1;
  30004. if (R && !_.value && typeof y == "string" && y.trim() !== "" && (M = y.replace(/[:|:]\s*$/, "")), t.tooltip || n.tooltip) {
  30005. const B = D("span", {
  30006. class: `${c}-item-tooltip`
  30007. }, [D(F2, {
  30008. title: t.tooltip
  30009. }, {
  30010. default: () => [D($8, null, null)]
  30011. })]);
  30012. M = D(Wt, null, [M, n.tooltip ? (s = n.tooltip) === null || s === void 0 ? void 0 : s.call(n, {
  30013. class: `${c}-item-tooltip`
  30014. }) : B]);
  30015. }
  30016. g === "optional" && !v && (M = D(Wt, null, [M, D("span", {
  30017. class: `${c}-item-optional`
  30018. }, [((l = m.value) === null || l === void 0 ? void 0 : l.optional) || ((u = Nu.Form) === null || u === void 0 ? void 0 : u.optional)])]));
  30019. const I = Re({
  30020. [`${c}-item-required`]: v,
  30021. [`${c}-item-required-mark-optional`]: g === "optional",
  30022. [`${c}-item-no-colon`]: !R
  30023. });
  30024. return D(hae, te(te({}, P), {}, {
  30025. class: E
  30026. }), {
  30027. default: () => [D("label", {
  30028. for: f,
  30029. class: I,
  30030. title: typeof y == "string" ? y : "",
  30031. onClick: (B) => r("click", B)
  30032. }, [M])]
  30033. });
  30034. };
  30035. A8.displayName = "FormItemLabel";
  30036. A8.inheritAttrs = !1;
  30037. const Mze = (t) => {
  30038. const {
  30039. componentCls: e
  30040. } = t, n = `${e}-show-help`, r = `${e}-show-help-item`;
  30041. return {
  30042. [n]: {
  30043. // Explain holder
  30044. transition: `opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`,
  30045. "&-appear, &-enter": {
  30046. opacity: 0,
  30047. "&-active": {
  30048. opacity: 1
  30049. }
  30050. },
  30051. "&-leave": {
  30052. opacity: 1,
  30053. "&-active": {
  30054. opacity: 0
  30055. }
  30056. },
  30057. // Explain
  30058. [r]: {
  30059. overflow: "hidden",
  30060. transition: `height ${t.motionDurationSlow} ${t.motionEaseInOut},
  30061. opacity ${t.motionDurationSlow} ${t.motionEaseInOut},
  30062. transform ${t.motionDurationSlow} ${t.motionEaseInOut} !important`,
  30063. [`&${r}-appear, &${r}-enter`]: {
  30064. transform: "translateY(-5px)",
  30065. opacity: 0,
  30066. "&-active": {
  30067. transform: "translateY(0)",
  30068. opacity: 1
  30069. }
  30070. },
  30071. [`&${r}-leave-active`]: {
  30072. transform: "translateY(-5px)"
  30073. }
  30074. }
  30075. }
  30076. };
  30077. }, Ize = (t) => ({
  30078. legend: {
  30079. display: "block",
  30080. width: "100%",
  30081. marginBottom: t.marginLG,
  30082. padding: 0,
  30083. color: t.colorTextDescription,
  30084. fontSize: t.fontSizeLG,
  30085. lineHeight: "inherit",
  30086. border: 0,
  30087. borderBottom: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`
  30088. },
  30089. label: {
  30090. fontSize: t.fontSize
  30091. },
  30092. 'input[type="search"]': {
  30093. boxSizing: "border-box"
  30094. },
  30095. // Position radios and checkboxes better
  30096. 'input[type="radio"], input[type="checkbox"]': {
  30097. lineHeight: "normal"
  30098. },
  30099. 'input[type="file"]': {
  30100. display: "block"
  30101. },
  30102. // Make range inputs behave like textual form controls
  30103. 'input[type="range"]': {
  30104. display: "block",
  30105. width: "100%"
  30106. },
  30107. // Make multiple select elements height not fixed
  30108. "select[multiple], select[size]": {
  30109. height: "auto"
  30110. },
  30111. // Focus for file, radio, and checkbox
  30112. "input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus": {
  30113. outline: 0,
  30114. boxShadow: `0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`
  30115. },
  30116. // Adjust output element
  30117. output: {
  30118. display: "block",
  30119. paddingTop: 15,
  30120. color: t.colorText,
  30121. fontSize: t.fontSize,
  30122. lineHeight: t.lineHeight
  30123. }
  30124. }), YQ = (t, e) => {
  30125. const {
  30126. formItemCls: n
  30127. } = t;
  30128. return {
  30129. [n]: {
  30130. [`${n}-label > label`]: {
  30131. height: e
  30132. },
  30133. [`${n}-control-input`]: {
  30134. minHeight: e
  30135. }
  30136. }
  30137. };
  30138. }, Dze = (t) => {
  30139. const {
  30140. componentCls: e
  30141. } = t;
  30142. return {
  30143. [t.componentCls]: k(k(k({}, Gn(t)), Ize(t)), {
  30144. [`${e}-text`]: {
  30145. display: "inline-block",
  30146. paddingInlineEnd: t.paddingSM
  30147. },
  30148. // ================================================================
  30149. // = Size =
  30150. // ================================================================
  30151. "&-small": k({}, YQ(t, t.controlHeightSM)),
  30152. "&-large": k({}, YQ(t, t.controlHeightLG))
  30153. })
  30154. };
  30155. }, Rze = (t) => {
  30156. const {
  30157. formItemCls: e,
  30158. iconCls: n,
  30159. componentCls: r,
  30160. rootPrefixCls: i
  30161. } = t;
  30162. return {
  30163. [e]: k(k({}, Gn(t)), {
  30164. marginBottom: t.marginLG,
  30165. verticalAlign: "top",
  30166. "&-with-help": {
  30167. transition: "none"
  30168. },
  30169. [`&-hidden,
  30170. &-hidden.${i}-row`]: {
  30171. // https://github.com/ant-design/ant-design/issues/26141
  30172. display: "none"
  30173. },
  30174. "&-has-warning": {
  30175. [`${e}-split`]: {
  30176. color: t.colorError
  30177. }
  30178. },
  30179. "&-has-error": {
  30180. [`${e}-split`]: {
  30181. color: t.colorWarning
  30182. }
  30183. },
  30184. // ==============================================================
  30185. // = Label =
  30186. // ==============================================================
  30187. [`${e}-label`]: {
  30188. display: "inline-block",
  30189. flexGrow: 0,
  30190. overflow: "hidden",
  30191. whiteSpace: "nowrap",
  30192. textAlign: "end",
  30193. verticalAlign: "middle",
  30194. "&-left": {
  30195. textAlign: "start"
  30196. },
  30197. "&-wrap": {
  30198. overflow: "unset",
  30199. lineHeight: `${t.lineHeight} - 0.25em`,
  30200. whiteSpace: "unset"
  30201. },
  30202. "> label": {
  30203. position: "relative",
  30204. display: "inline-flex",
  30205. alignItems: "center",
  30206. maxWidth: "100%",
  30207. height: t.controlHeight,
  30208. color: t.colorTextHeading,
  30209. fontSize: t.fontSize,
  30210. [`> ${n}`]: {
  30211. fontSize: t.fontSize,
  30212. verticalAlign: "top"
  30213. },
  30214. // Required mark
  30215. [`&${e}-required:not(${e}-required-mark-optional)::before`]: {
  30216. display: "inline-block",
  30217. marginInlineEnd: t.marginXXS,
  30218. color: t.colorError,
  30219. fontSize: t.fontSize,
  30220. fontFamily: "SimSun, sans-serif",
  30221. lineHeight: 1,
  30222. content: '"*"',
  30223. [`${r}-hide-required-mark &`]: {
  30224. display: "none"
  30225. }
  30226. },
  30227. // Optional mark
  30228. [`${e}-optional`]: {
  30229. display: "inline-block",
  30230. marginInlineStart: t.marginXXS,
  30231. color: t.colorTextDescription,
  30232. [`${r}-hide-required-mark &`]: {
  30233. display: "none"
  30234. }
  30235. },
  30236. // Optional mark
  30237. [`${e}-tooltip`]: {
  30238. color: t.colorTextDescription,
  30239. cursor: "help",
  30240. writingMode: "horizontal-tb",
  30241. marginInlineStart: t.marginXXS
  30242. },
  30243. "&::after": {
  30244. content: '":"',
  30245. position: "relative",
  30246. marginBlock: 0,
  30247. marginInlineStart: t.marginXXS / 2,
  30248. marginInlineEnd: t.marginXS
  30249. },
  30250. [`&${e}-no-colon::after`]: {
  30251. content: '" "'
  30252. }
  30253. }
  30254. },
  30255. // ==============================================================
  30256. // = Input =
  30257. // ==============================================================
  30258. [`${e}-control`]: {
  30259. display: "flex",
  30260. flexDirection: "column",
  30261. flexGrow: 1,
  30262. [`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]: {
  30263. width: "100%"
  30264. },
  30265. "&-input": {
  30266. position: "relative",
  30267. display: "flex",
  30268. alignItems: "center",
  30269. minHeight: t.controlHeight,
  30270. "&-content": {
  30271. flex: "auto",
  30272. maxWidth: "100%"
  30273. }
  30274. }
  30275. },
  30276. // ==============================================================
  30277. // = Explain =
  30278. // ==============================================================
  30279. [e]: {
  30280. "&-explain, &-extra": {
  30281. clear: "both",
  30282. color: t.colorTextDescription,
  30283. fontSize: t.fontSize,
  30284. lineHeight: t.lineHeight
  30285. },
  30286. "&-explain-connected": {
  30287. width: "100%"
  30288. },
  30289. "&-extra": {
  30290. minHeight: t.controlHeightSM,
  30291. transition: `color ${t.motionDurationMid} ${t.motionEaseOut}`
  30292. // sync input color transition
  30293. },
  30294. "&-explain": {
  30295. "&-error": {
  30296. color: t.colorError
  30297. },
  30298. "&-warning": {
  30299. color: t.colorWarning
  30300. }
  30301. }
  30302. },
  30303. [`&-with-help ${e}-explain`]: {
  30304. height: "auto",
  30305. opacity: 1
  30306. },
  30307. // ==============================================================
  30308. // = Feedback Icon =
  30309. // ==============================================================
  30310. [`${e}-feedback-icon`]: {
  30311. fontSize: t.fontSize,
  30312. textAlign: "center",
  30313. visibility: "visible",
  30314. animationName: p8,
  30315. animationDuration: t.motionDurationMid,
  30316. animationTimingFunction: t.motionEaseOutBack,
  30317. pointerEvents: "none",
  30318. "&-success": {
  30319. color: t.colorSuccess
  30320. },
  30321. "&-error": {
  30322. color: t.colorError
  30323. },
  30324. "&-warning": {
  30325. color: t.colorWarning
  30326. },
  30327. "&-validating": {
  30328. color: t.colorPrimary
  30329. }
  30330. }
  30331. })
  30332. };
  30333. }, kze = (t) => {
  30334. const {
  30335. componentCls: e,
  30336. formItemCls: n,
  30337. rootPrefixCls: r
  30338. } = t;
  30339. return {
  30340. [`${e}-horizontal`]: {
  30341. [`${n}-label`]: {
  30342. flexGrow: 0
  30343. },
  30344. [`${n}-control`]: {
  30345. flex: "1 1 0",
  30346. // https://github.com/ant-design/ant-design/issues/32777
  30347. // https://github.com/ant-design/ant-design/issues/33773
  30348. minWidth: 0
  30349. },
  30350. // https://github.com/ant-design/ant-design/issues/32980
  30351. [`${n}-label.${r}-col-24 + ${n}-control`]: {
  30352. minWidth: "unset"
  30353. }
  30354. }
  30355. };
  30356. }, Lze = (t) => {
  30357. const {
  30358. componentCls: e,
  30359. formItemCls: n
  30360. } = t;
  30361. return {
  30362. [`${e}-inline`]: {
  30363. display: "flex",
  30364. flexWrap: "wrap",
  30365. [n]: {
  30366. flex: "none",
  30367. flexWrap: "nowrap",
  30368. marginInlineEnd: t.margin,
  30369. marginBottom: 0,
  30370. "&-with-help": {
  30371. marginBottom: t.marginLG
  30372. },
  30373. [`> ${n}-label,
  30374. > ${n}-control`]: {
  30375. display: "inline-block",
  30376. verticalAlign: "top"
  30377. },
  30378. [`> ${n}-label`]: {
  30379. flex: "none"
  30380. },
  30381. [`${e}-text`]: {
  30382. display: "inline-block"
  30383. },
  30384. [`${n}-has-feedback`]: {
  30385. display: "inline-block"
  30386. }
  30387. }
  30388. }
  30389. };
  30390. }, bv = (t) => ({
  30391. margin: 0,
  30392. padding: `0 0 ${t.paddingXS}px`,
  30393. whiteSpace: "initial",
  30394. textAlign: "start",
  30395. "> label": {
  30396. margin: 0,
  30397. "&::after": {
  30398. display: "none"
  30399. }
  30400. }
  30401. }), Nze = (t) => {
  30402. const {
  30403. componentCls: e,
  30404. formItemCls: n
  30405. } = t;
  30406. return {
  30407. [`${n} ${n}-label`]: bv(t),
  30408. [e]: {
  30409. [n]: {
  30410. flexWrap: "wrap",
  30411. [`${n}-label,
  30412. ${n}-control`]: {
  30413. flex: "0 0 100%",
  30414. maxWidth: "100%"
  30415. }
  30416. }
  30417. }
  30418. };
  30419. }, Bze = (t) => {
  30420. const {
  30421. componentCls: e,
  30422. formItemCls: n,
  30423. rootPrefixCls: r
  30424. } = t;
  30425. return {
  30426. [`${e}-vertical`]: {
  30427. [n]: {
  30428. "&-row": {
  30429. flexDirection: "column"
  30430. },
  30431. "&-label > label": {
  30432. height: "auto"
  30433. },
  30434. [`${e}-item-control`]: {
  30435. width: "100%"
  30436. }
  30437. }
  30438. },
  30439. [`${e}-vertical ${n}-label,
  30440. .${r}-col-24${n}-label,
  30441. .${r}-col-xl-24${n}-label`]: bv(t),
  30442. [`@media (max-width: ${t.screenXSMax}px)`]: [Nze(t), {
  30443. [e]: {
  30444. [`.${r}-col-xs-24${n}-label`]: bv(t)
  30445. }
  30446. }],
  30447. [`@media (max-width: ${t.screenSMMax}px)`]: {
  30448. [e]: {
  30449. [`.${r}-col-sm-24${n}-label`]: bv(t)
  30450. }
  30451. },
  30452. [`@media (max-width: ${t.screenMDMax}px)`]: {
  30453. [e]: {
  30454. [`.${r}-col-md-24${n}-label`]: bv(t)
  30455. }
  30456. },
  30457. [`@media (max-width: ${t.screenLGMax}px)`]: {
  30458. [e]: {
  30459. [`.${r}-col-lg-24${n}-label`]: bv(t)
  30460. }
  30461. }
  30462. };
  30463. }, E8 = pr("Form", (t, e) => {
  30464. let {
  30465. rootPrefixCls: n
  30466. } = e;
  30467. const r = bn(t, {
  30468. formItemCls: `${t.componentCls}-item`,
  30469. rootPrefixCls: n
  30470. });
  30471. return [Dze(r), Rze(r), Mze(r), kze(r), Lze(r), Bze(r), v8(r), p8];
  30472. }), zze = ae({
  30473. compatConfig: {
  30474. MODE: 3
  30475. },
  30476. name: "ErrorList",
  30477. inheritAttrs: !1,
  30478. props: ["errors", "help", "onErrorVisibleChanged", "helpStatus", "warnings"],
  30479. setup(t, e) {
  30480. let {
  30481. attrs: n
  30482. } = e;
  30483. const {
  30484. prefixCls: r,
  30485. status: i
  30486. } = Cze(), a = V(() => `${r.value}-item-explain`), o = V(() => !!(t.errors && t.errors.length)), s = ee(i.value), [, l] = E8(r);
  30487. return me([o, i], () => {
  30488. o.value && (s.value = i.value);
  30489. }), () => {
  30490. var u, c;
  30491. const f = w8(`${r.value}-show-help-item`), d = JN(`${r.value}-show-help-item`, f);
  30492. return d.role = "alert", d.class = [l.value, a.value, n.class, `${r.value}-show-help`], D(mo, te(te({}, Z_(`${r.value}-show-help`)), {}, {
  30493. onAfterEnter: () => t.onErrorVisibleChanged(!0),
  30494. onAfterLeave: () => t.onErrorVisibleChanged(!1)
  30495. }), {
  30496. default: () => [Sr(D(X4, te(te({}, d), {}, {
  30497. tag: "div"
  30498. }), {
  30499. default: () => [(c = t.errors) === null || c === void 0 ? void 0 : c.map((h, p) => D("div", {
  30500. key: p,
  30501. class: s.value ? `${a.value}-${s.value}` : ""
  30502. }, [h]))]
  30503. }), [[ho, !!(!((u = t.errors) === null || u === void 0) && u.length)]])]
  30504. });
  30505. };
  30506. }
  30507. }), Vze = ae({
  30508. compatConfig: {
  30509. MODE: 3
  30510. },
  30511. slots: Object,
  30512. inheritAttrs: !1,
  30513. props: ["prefixCls", "errors", "hasFeedback", "onDomErrorVisibleChange", "wrapperCol", "help", "extra", "status", "marginBottom", "onErrorVisibleChanged"],
  30514. setup(t, e) {
  30515. let {
  30516. slots: n
  30517. } = e;
  30518. const r = P8(), {
  30519. wrapperCol: i
  30520. } = r, a = k({}, r);
  30521. return delete a.labelCol, delete a.wrapperCol, fae(a), wze({
  30522. prefixCls: V(() => t.prefixCls),
  30523. status: V(() => t.status)
  30524. }), () => {
  30525. var o, s, l;
  30526. const {
  30527. prefixCls: u,
  30528. wrapperCol: c,
  30529. marginBottom: f,
  30530. onErrorVisibleChanged: d,
  30531. help: h = (o = n.help) === null || o === void 0 ? void 0 : o.call(n),
  30532. errors: p = Zl((s = n.errors) === null || s === void 0 ? void 0 : s.call(n)),
  30533. // hasFeedback,
  30534. // status,
  30535. extra: v = (l = n.extra) === null || l === void 0 ? void 0 : l.call(n)
  30536. } = t, g = `${u}-item`, m = c || (i == null ? void 0 : i.value) || {}, y = Re(`${g}-control`, m.class);
  30537. return D(hae, te(te({}, m), {}, {
  30538. class: y
  30539. }), {
  30540. default: () => {
  30541. var _;
  30542. return D(Wt, null, [D("div", {
  30543. class: `${g}-control-input`
  30544. }, [D("div", {
  30545. class: `${g}-control-input-content`
  30546. }, [(_ = n.default) === null || _ === void 0 ? void 0 : _.call(n)])]), f !== null || p.length ? D("div", {
  30547. style: {
  30548. display: "flex",
  30549. flexWrap: "nowrap"
  30550. }
  30551. }, [D(zze, {
  30552. errors: p,
  30553. help: h,
  30554. class: `${g}-explain-connected`,
  30555. onErrorVisibleChanged: d
  30556. }, null), !!f && D("div", {
  30557. style: {
  30558. width: 0,
  30559. height: `${f}px`
  30560. }
  30561. }, null)]) : null, v ? D("div", {
  30562. class: `${g}-extra`
  30563. }, [v]) : null]);
  30564. }
  30565. });
  30566. };
  30567. }
  30568. });
  30569. function Fze(t) {
  30570. const e = ve(t.value.slice());
  30571. let n = null;
  30572. return Vt(() => {
  30573. clearTimeout(n), n = setTimeout(() => {
  30574. e.value = t.value;
  30575. }, t.value.length ? 0 : 10);
  30576. }), e;
  30577. }
  30578. pf("success", "warning", "error", "validating", "");
  30579. const Wze = {
  30580. success: Df,
  30581. warning: Rf,
  30582. error: cs,
  30583. validating: Ql
  30584. };
  30585. function hE(t, e, n) {
  30586. let r = t;
  30587. const i = e;
  30588. let a = 0;
  30589. try {
  30590. for (let o = i.length; a < o - 1 && !(!r && !n); ++a) {
  30591. const s = i[a];
  30592. if (s in r)
  30593. r = r[s];
  30594. else {
  30595. if (n)
  30596. throw Error("please transfer a valid name path to form item!");
  30597. break;
  30598. }
  30599. }
  30600. if (n && !r)
  30601. throw Error("please transfer a valid name path to form item!");
  30602. } catch {
  30603. console.error("please transfer a valid name path to form item!");
  30604. }
  30605. return {
  30606. o: r,
  30607. k: i[a],
  30608. v: r ? r[i[a]] : void 0
  30609. };
  30610. }
  30611. const Qze = () => ({
  30612. htmlFor: String,
  30613. prefixCls: String,
  30614. label: oe.any,
  30615. help: oe.any,
  30616. extra: oe.any,
  30617. labelCol: {
  30618. type: Object
  30619. },
  30620. wrapperCol: {
  30621. type: Object
  30622. },
  30623. hasFeedback: {
  30624. type: Boolean,
  30625. default: !1
  30626. },
  30627. colon: {
  30628. type: Boolean,
  30629. default: void 0
  30630. },
  30631. labelAlign: String,
  30632. prop: {
  30633. type: [String, Number, Array]
  30634. },
  30635. name: {
  30636. type: [String, Number, Array]
  30637. },
  30638. rules: [Array, Object],
  30639. autoLink: {
  30640. type: Boolean,
  30641. default: !0
  30642. },
  30643. required: {
  30644. type: Boolean,
  30645. default: void 0
  30646. },
  30647. validateFirst: {
  30648. type: Boolean,
  30649. default: void 0
  30650. },
  30651. validateStatus: oe.oneOf(pf("", "success", "warning", "error", "validating")),
  30652. validateTrigger: {
  30653. type: [String, Array]
  30654. },
  30655. messageVariables: {
  30656. type: Object
  30657. },
  30658. hidden: Boolean,
  30659. noStyle: Boolean,
  30660. tooltip: String
  30661. });
  30662. let Hze = 0;
  30663. const Gze = "form_item", pae = ae({
  30664. compatConfig: {
  30665. MODE: 3
  30666. },
  30667. name: "AFormItem",
  30668. inheritAttrs: !1,
  30669. __ANT_NEW_FORM_ITEM: !0,
  30670. props: Qze(),
  30671. slots: Object,
  30672. setup(t, e) {
  30673. let {
  30674. slots: n,
  30675. attrs: r,
  30676. expose: i
  30677. } = e;
  30678. Nh(t.prop === void 0, "`prop` is deprecated. Please use `name` instead.");
  30679. const a = `form-item-${++Hze}`, {
  30680. prefixCls: o
  30681. } = hn("form", t), [s, l] = E8(o), u = ve(), c = P8(), f = V(() => t.name || t.prop), d = ve([]), h = ve(!1), p = ve(), v = V(() => {
  30682. const ue = f.value;
  30683. return LR(ue);
  30684. }), g = V(() => {
  30685. if (v.value.length) {
  30686. const ue = c.name.value, ye = v.value.join("_");
  30687. return ue ? `${ue}_${ye}` : `${Gze}_${ye}`;
  30688. } else
  30689. return;
  30690. }), m = () => {
  30691. const ue = c.model.value;
  30692. if (!(!ue || !f.value))
  30693. return hE(ue, v.value, !0).v;
  30694. }, y = V(() => m()), _ = ve(ph(y.value)), O = V(() => {
  30695. let ue = t.validateTrigger !== void 0 ? t.validateTrigger : c.validateTrigger.value;
  30696. return ue = ue === void 0 ? "change" : ue, tf(ue);
  30697. }), S = V(() => {
  30698. let ue = c.rules.value;
  30699. const ye = t.rules, se = t.required !== void 0 ? {
  30700. required: !!t.required,
  30701. trigger: O.value
  30702. } : [], he = hE(ue, v.value);
  30703. ue = ue ? he.o[he.k] || he.v : [];
  30704. const re = [].concat(ye || ue || []);
  30705. return QPe(re, (q) => q.required) ? re : re.concat(se);
  30706. }), x = V(() => {
  30707. const ue = S.value;
  30708. let ye = !1;
  30709. return ue && ue.length && ue.every((se) => se.required ? (ye = !0, !1) : !0), ye || t.required;
  30710. }), C = ve();
  30711. Vt(() => {
  30712. C.value = t.validateStatus;
  30713. });
  30714. const P = V(() => {
  30715. let ue = {};
  30716. return typeof t.label == "string" ? ue.label = t.label : t.name && (ue.label = String(t.name)), t.messageVariables && (ue = k(k({}, ue), t.messageVariables)), ue;
  30717. }), $ = (ue) => {
  30718. if (v.value.length === 0)
  30719. return;
  30720. const {
  30721. validateFirst: ye = !1
  30722. } = t, {
  30723. triggerName: se
  30724. } = ue || {};
  30725. let he = S.value;
  30726. if (se && (he = he.filter((q) => {
  30727. const {
  30728. trigger: K
  30729. } = q;
  30730. return !K && !O.value.length ? !0 : tf(K || O.value).includes(se);
  30731. })), !he.length)
  30732. return Promise.resolve();
  30733. const re = uae(v.value, y.value, he, k({
  30734. validateMessages: c.validateMessages.value
  30735. }, ue), ye, P.value);
  30736. return C.value = "validating", d.value = [], re.catch((q) => q).then(function() {
  30737. let q = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  30738. if (C.value === "validating") {
  30739. const K = q.filter((de) => de && de.errors.length);
  30740. C.value = K.length ? "error" : "success", d.value = K.map((de) => de.errors), c.onValidate(f.value, !d.value.length, d.value.length ? es(d.value[0]) : null);
  30741. }
  30742. }), re;
  30743. }, T = () => {
  30744. $({
  30745. triggerName: "blur"
  30746. });
  30747. }, E = () => {
  30748. if (h.value) {
  30749. h.value = !1;
  30750. return;
  30751. }
  30752. $({
  30753. triggerName: "change"
  30754. });
  30755. }, M = () => {
  30756. C.value = t.validateStatus, h.value = !1, d.value = [];
  30757. }, R = () => {
  30758. var ue;
  30759. C.value = t.validateStatus, h.value = !0, d.value = [];
  30760. const ye = c.model.value || {}, se = y.value, he = hE(ye, v.value, !0);
  30761. Array.isArray(se) ? he.o[he.k] = [].concat((ue = _.value) !== null && ue !== void 0 ? ue : []) : he.o[he.k] = _.value, Bt(() => {
  30762. h.value = !1;
  30763. });
  30764. }, N = V(() => t.htmlFor === void 0 ? g.value : t.htmlFor), I = () => {
  30765. const ue = N.value;
  30766. if (!ue || !p.value)
  30767. return;
  30768. const ye = p.value.$el.querySelector(`[id="${ue}"]`);
  30769. ye && ye.focus && ye.focus();
  30770. };
  30771. i({
  30772. onFieldBlur: T,
  30773. onFieldChange: E,
  30774. clearValidate: M,
  30775. resetField: R
  30776. }), C5e({
  30777. id: g,
  30778. onFieldBlur: () => {
  30779. t.autoLink && T();
  30780. },
  30781. onFieldChange: () => {
  30782. t.autoLink && E();
  30783. },
  30784. clearValidate: M
  30785. }, V(() => !!(t.autoLink && c.model.value && f.value)));
  30786. let B = !1;
  30787. me(f, (ue) => {
  30788. ue ? B || (B = !0, c.addField(a, {
  30789. fieldValue: y,
  30790. fieldId: g,
  30791. fieldName: f,
  30792. resetField: R,
  30793. clearValidate: M,
  30794. namePath: v,
  30795. validateRules: $,
  30796. rules: S
  30797. })) : (B = !1, c.removeField(a));
  30798. }, {
  30799. immediate: !0
  30800. }), Qt(() => {
  30801. c.removeField(a);
  30802. });
  30803. const Q = Fze(d), W = V(() => t.validateStatus !== void 0 ? t.validateStatus : Q.value.length ? "error" : C.value), H = V(() => ({
  30804. [`${o.value}-item`]: !0,
  30805. [l.value]: !0,
  30806. // Status
  30807. [`${o.value}-item-has-feedback`]: W.value && t.hasFeedback,
  30808. [`${o.value}-item-has-success`]: W.value === "success",
  30809. [`${o.value}-item-has-warning`]: W.value === "warning",
  30810. [`${o.value}-item-has-error`]: W.value === "error",
  30811. [`${o.value}-item-is-validating`]: W.value === "validating",
  30812. [`${o.value}-item-hidden`]: t.hidden
  30813. })), U = zn({});
  30814. Qs.useProvide(U), Vt(() => {
  30815. let ue;
  30816. if (t.hasFeedback) {
  30817. const ye = W.value && Wze[W.value];
  30818. ue = ye ? D("span", {
  30819. class: Re(`${o.value}-item-feedback-icon`, `${o.value}-item-feedback-icon-${W.value}`)
  30820. }, [D(ye, null, null)]) : null;
  30821. }
  30822. k(U, {
  30823. status: W.value,
  30824. hasFeedback: t.hasFeedback,
  30825. feedbackIcon: ue,
  30826. isFormItemInput: !0
  30827. });
  30828. });
  30829. const j = ve(null), Y = ve(!1), ne = () => {
  30830. if (u.value) {
  30831. const ue = getComputedStyle(u.value);
  30832. j.value = parseInt(ue.marginBottom, 10);
  30833. }
  30834. };
  30835. _t(() => {
  30836. me(Y, () => {
  30837. Y.value && ne();
  30838. }, {
  30839. flush: "post",
  30840. immediate: !0
  30841. });
  30842. });
  30843. const fe = (ue) => {
  30844. ue || (j.value = null);
  30845. };
  30846. return () => {
  30847. var ue, ye;
  30848. if (t.noStyle) return (ue = n.default) === null || ue === void 0 ? void 0 : ue.call(n);
  30849. const se = (ye = t.help) !== null && ye !== void 0 ? ye : n.help ? Zl(n.help()) : null, he = !!(se != null && Array.isArray(se) && se.length || Q.value.length);
  30850. return Y.value = he, s(D("div", {
  30851. class: [H.value, he ? `${o.value}-item-with-help` : "", r.class],
  30852. ref: u
  30853. }, [D(hze, te(te({}, r), {}, {
  30854. class: `${o.value}-item-row`,
  30855. key: "row"
  30856. }), {
  30857. default: () => {
  30858. var re, q;
  30859. return D(Wt, null, [D(A8, te(te({}, t), {}, {
  30860. htmlFor: N.value,
  30861. required: x.value,
  30862. requiredMark: c.requiredMark.value,
  30863. prefixCls: o.value,
  30864. onClick: I,
  30865. label: t.label
  30866. }), {
  30867. label: n.label,
  30868. tooltip: n.tooltip
  30869. }), D(Vze, te(te({}, t), {}, {
  30870. errors: se != null ? tf(se) : Q.value,
  30871. marginBottom: j.value,
  30872. prefixCls: o.value,
  30873. status: W.value,
  30874. ref: p,
  30875. help: se,
  30876. extra: (re = t.extra) !== null && re !== void 0 ? re : (q = n.extra) === null || q === void 0 ? void 0 : q.call(n),
  30877. onErrorVisibleChanged: fe
  30878. }), {
  30879. default: n.default
  30880. })]);
  30881. }
  30882. }), !!j.value && D("div", {
  30883. class: `${o.value}-margin-offset`,
  30884. style: {
  30885. marginBottom: `-${j.value}px`
  30886. }
  30887. }, null)]));
  30888. };
  30889. }
  30890. });
  30891. function vae(t) {
  30892. let e = !1, n = t.length;
  30893. const r = [];
  30894. return t.length ? new Promise((i, a) => {
  30895. t.forEach((o, s) => {
  30896. o.catch((l) => (e = !0, l)).then((l) => {
  30897. n -= 1, r[s] = l, !(n > 0) && (e && a(r), i(r));
  30898. });
  30899. });
  30900. }) : Promise.resolve([]);
  30901. }
  30902. function qQ(t) {
  30903. let e = !1;
  30904. return t && t.length && t.every((n) => n.required ? (e = !0, !1) : !0), e;
  30905. }
  30906. function KQ(t) {
  30907. return t == null ? [] : Array.isArray(t) ? t : [t];
  30908. }
  30909. function pE(t, e, n) {
  30910. let r = t;
  30911. e = e.replace(/\[(\w+)\]/g, ".$1"), e = e.replace(/^\./, "");
  30912. const i = e.split(".");
  30913. let a = 0;
  30914. for (let o = i.length; a < o - 1 && !(!r && !n); ++a) {
  30915. const s = i[a];
  30916. if (s in r)
  30917. r = r[s];
  30918. else {
  30919. if (n)
  30920. throw new Error("please transfer a valid name path to validate!");
  30921. break;
  30922. }
  30923. }
  30924. return {
  30925. o: r,
  30926. k: i[a],
  30927. v: r ? r[i[a]] : null,
  30928. isValid: r && i[a] in r
  30929. };
  30930. }
  30931. function jze(t) {
  30932. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ee({}), n = arguments.length > 2 ? arguments[2] : void 0;
  30933. const r = ph(z(t)), i = zn({}), a = ve([]), o = (_) => {
  30934. k(z(t), k(k({}, ph(r)), _)), Bt(() => {
  30935. Object.keys(i).forEach((O) => {
  30936. i[O] = {
  30937. autoLink: !1,
  30938. required: qQ(z(e)[O])
  30939. };
  30940. });
  30941. });
  30942. }, s = function() {
  30943. let _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], O = arguments.length > 1 ? arguments[1] : void 0;
  30944. return O.length ? _.filter((S) => {
  30945. const x = KQ(S.trigger || "change");
  30946. return ZPe(x, O).length;
  30947. }) : _;
  30948. };
  30949. let l = null;
  30950. const u = function(_) {
  30951. let O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = arguments.length > 2 ? arguments[2] : void 0;
  30952. const x = [], C = {};
  30953. for (let T = 0; T < _.length; T++) {
  30954. const E = _[T], M = pE(z(t), E, S);
  30955. if (!M.isValid) continue;
  30956. C[E] = M.v;
  30957. const R = s(z(e)[E], KQ(O && O.trigger));
  30958. R.length && x.push(c(E, M.v, R, O || {}).then(() => ({
  30959. name: E,
  30960. errors: [],
  30961. warnings: []
  30962. })).catch((N) => {
  30963. const I = [], B = [];
  30964. return N.forEach((Q) => {
  30965. let {
  30966. rule: {
  30967. warningOnly: W
  30968. },
  30969. errors: H
  30970. } = Q;
  30971. W ? B.push(...H) : I.push(...H);
  30972. }), I.length ? Promise.reject({
  30973. name: E,
  30974. errors: I,
  30975. warnings: B
  30976. }) : {
  30977. name: E,
  30978. errors: I,
  30979. warnings: B
  30980. };
  30981. }));
  30982. }
  30983. const P = vae(x);
  30984. l = P;
  30985. const $ = P.then(() => l === P ? Promise.resolve(C) : Promise.reject([])).catch((T) => {
  30986. const E = T.filter((M) => M && M.errors.length);
  30987. return E.length ? Promise.reject({
  30988. values: C,
  30989. errorFields: E,
  30990. outOfDate: l !== P
  30991. }) : Promise.resolve(C);
  30992. });
  30993. return $.catch((T) => T), $;
  30994. }, c = function(_, O, S) {
  30995. let x = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
  30996. const C = uae([_], O, S, k({
  30997. validateMessages: Z2
  30998. }, x), !!x.validateFirst);
  30999. return i[_] ? (i[_].validateStatus = "validating", C.catch((P) => P).then(function() {
  31000. let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
  31001. var $;
  31002. if (i[_].validateStatus === "validating") {
  31003. const T = P.filter((E) => E && E.errors.length);
  31004. i[_].validateStatus = T.length ? "error" : "success", i[_].help = T.length ? T.map((E) => E.errors) : null, ($ = n == null ? void 0 : n.onValidate) === null || $ === void 0 || $.call(n, _, !T.length, T.length ? es(i[_].help[0]) : null);
  31005. }
  31006. }), C) : C.catch((P) => P);
  31007. }, f = (_, O) => {
  31008. let S = [], x = !0;
  31009. _ ? Array.isArray(_) ? S = _ : S = [_] : (x = !1, S = a.value);
  31010. const C = u(S, O || {}, x);
  31011. return C.catch((P) => P), C;
  31012. }, d = (_) => {
  31013. let O = [];
  31014. _ ? Array.isArray(_) ? O = _ : O = [_] : O = a.value, O.forEach((S) => {
  31015. i[S] && k(i[S], {
  31016. validateStatus: "",
  31017. help: null
  31018. });
  31019. });
  31020. }, h = (_) => {
  31021. const O = {
  31022. autoLink: !1
  31023. }, S = [], x = Array.isArray(_) ? _ : [_];
  31024. for (let C = 0; C < x.length; C++) {
  31025. const P = x[C];
  31026. (P == null ? void 0 : P.validateStatus) === "error" && (O.validateStatus = "error", P.help && S.push(P.help)), O.required = O.required || (P == null ? void 0 : P.required);
  31027. }
  31028. return O.help = S, O;
  31029. };
  31030. let p = r, v = !0;
  31031. const g = (_) => {
  31032. const O = [];
  31033. a.value.forEach((S) => {
  31034. const x = pE(_, S, !1), C = pE(p, S, !1);
  31035. (v && (n == null ? void 0 : n.immediate) && x.isValid || !z_(x.v, C.v)) && O.push(S);
  31036. }), f(O, {
  31037. trigger: "change"
  31038. }), v = !1, p = ph(es(_));
  31039. }, m = n == null ? void 0 : n.debounce;
  31040. let y = !0;
  31041. return me(e, () => {
  31042. a.value = e ? Object.keys(z(e)) : [], !y && n && n.validateOnRuleChange && f(), y = !1;
  31043. }, {
  31044. deep: !0,
  31045. immediate: !0
  31046. }), me(a, () => {
  31047. const _ = {};
  31048. a.value.forEach((O) => {
  31049. _[O] = k({}, i[O], {
  31050. autoLink: !1,
  31051. required: qQ(z(e)[O])
  31052. }), delete i[O];
  31053. });
  31054. for (const O in i)
  31055. Object.prototype.hasOwnProperty.call(i, O) && delete i[O];
  31056. k(i, _);
  31057. }, {
  31058. immediate: !0
  31059. }), me(t, m && m.wait ? hN(g, m.wait, mte(m, ["wait"])) : g, {
  31060. immediate: n && !!n.immediate,
  31061. deep: !0
  31062. }), {
  31063. modelRef: t,
  31064. rulesRef: e,
  31065. initialModel: r,
  31066. validateInfos: i,
  31067. resetFields: o,
  31068. validate: f,
  31069. validateField: c,
  31070. mergeValidateInfo: h,
  31071. clearValidate: d
  31072. };
  31073. }
  31074. const Zze = () => ({
  31075. layout: oe.oneOf(pf("horizontal", "inline", "vertical")),
  31076. labelCol: sn(),
  31077. wrapperCol: sn(),
  31078. colon: Tt(),
  31079. labelAlign: rr(),
  31080. labelWrap: Tt(),
  31081. prefixCls: String,
  31082. requiredMark: or([String, Boolean]),
  31083. /** @deprecated Will warning in future branch. Pls use `requiredMark` instead. */
  31084. hideRequiredMark: Tt(),
  31085. model: oe.object,
  31086. rules: sn(),
  31087. validateMessages: sn(),
  31088. validateOnRuleChange: Tt(),
  31089. // 提交失败自动滚动到第一个错误字段
  31090. scrollToFirstError: Fo(),
  31091. onSubmit: Ct(),
  31092. name: String,
  31093. validateTrigger: or([String, Array]),
  31094. size: rr(),
  31095. disabled: Tt(),
  31096. onValuesChange: Ct(),
  31097. onFieldsChange: Ct(),
  31098. onFinish: Ct(),
  31099. onFinishFailed: Ct(),
  31100. onValidate: Ct()
  31101. });
  31102. function Uze(t, e) {
  31103. return z_(tf(t), tf(e));
  31104. }
  31105. const Gr = ae({
  31106. compatConfig: {
  31107. MODE: 3
  31108. },
  31109. name: "AForm",
  31110. inheritAttrs: !1,
  31111. props: li(Zze(), {
  31112. layout: "horizontal",
  31113. hideRequiredMark: !1,
  31114. colon: !0
  31115. }),
  31116. Item: pae,
  31117. useForm: jze,
  31118. // emits: ['finishFailed', 'submit', 'finish', 'validate'],
  31119. setup(t, e) {
  31120. let {
  31121. emit: n,
  31122. slots: r,
  31123. expose: i,
  31124. attrs: a
  31125. } = e;
  31126. const {
  31127. prefixCls: o,
  31128. direction: s,
  31129. form: l,
  31130. size: u,
  31131. disabled: c
  31132. } = hn("form", t), f = V(() => t.requiredMark === "" || t.requiredMark), d = V(() => {
  31133. var Q;
  31134. return f.value !== void 0 ? f.value : l && ((Q = l.value) === null || Q === void 0 ? void 0 : Q.requiredMark) !== void 0 ? l.value.requiredMark : !t.hideRequiredMark;
  31135. });
  31136. Sre(u), zne(c);
  31137. const h = V(() => {
  31138. var Q, W;
  31139. return (Q = t.colon) !== null && Q !== void 0 ? Q : (W = l.value) === null || W === void 0 ? void 0 : W.colon;
  31140. }), {
  31141. validateMessages: p
  31142. } = fke(), v = V(() => k(k(k({}, Z2), p.value), t.validateMessages)), [g, m] = E8(o), y = V(() => Re(o.value, {
  31143. [`${o.value}-${t.layout}`]: !0,
  31144. [`${o.value}-hide-required-mark`]: d.value === !1,
  31145. [`${o.value}-rtl`]: s.value === "rtl",
  31146. [`${o.value}-${u.value}`]: u.value
  31147. }, m.value)), _ = ee(), O = {}, S = (Q, W) => {
  31148. O[Q] = W;
  31149. }, x = (Q) => {
  31150. delete O[Q];
  31151. }, C = (Q) => {
  31152. const W = !!Q, H = W ? tf(Q).map(LR) : [];
  31153. return W ? Object.values(O).filter((U) => H.findIndex((j) => Uze(j, U.fieldName.value)) > -1) : Object.values(O);
  31154. }, P = (Q) => {
  31155. if (!t.model) {
  31156. aa(!1, "Form", "model is required for resetFields to work.");
  31157. return;
  31158. }
  31159. C(Q).forEach((W) => {
  31160. W.resetField();
  31161. });
  31162. }, $ = (Q) => {
  31163. C(Q).forEach((W) => {
  31164. W.clearValidate();
  31165. });
  31166. }, T = (Q) => {
  31167. const {
  31168. scrollToFirstError: W
  31169. } = t;
  31170. if (n("finishFailed", Q), W && Q.errorFields.length) {
  31171. let H = {};
  31172. typeof W == "object" && (H = W), M(Q.errorFields[0].name, H);
  31173. }
  31174. }, E = function() {
  31175. return I(...arguments);
  31176. }, M = function(Q) {
  31177. let W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  31178. const H = C(Q ? [Q] : void 0);
  31179. if (H.length) {
  31180. const U = H[0].fieldId.value, j = U ? document.getElementById(U) : null;
  31181. j && YLe(j, k({
  31182. scrollMode: "if-needed",
  31183. block: "nearest"
  31184. }, W));
  31185. }
  31186. }, R = function() {
  31187. let Q = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
  31188. if (Q === !0) {
  31189. const W = [];
  31190. return Object.values(O).forEach((H) => {
  31191. let {
  31192. namePath: U
  31193. } = H;
  31194. W.push(U.value);
  31195. }), UQ(t.model, W);
  31196. } else
  31197. return UQ(t.model, Q);
  31198. }, N = (Q, W) => {
  31199. if (aa(!(Q instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead"), !t.model)
  31200. return aa(!1, "Form", "model is required for validateFields to work."), Promise.reject("Form `model` is required for validateFields to work.");
  31201. const H = !!Q, U = H ? tf(Q).map(LR) : [], j = [];
  31202. Object.values(O).forEach((fe) => {
  31203. var ue;
  31204. if (H || U.push(fe.namePath.value), !(!((ue = fe.rules) === null || ue === void 0) && ue.value.length))
  31205. return;
  31206. const ye = fe.namePath.value;
  31207. if (!H || mze(U, ye)) {
  31208. const se = fe.validateRules(k({
  31209. validateMessages: v.value
  31210. }, W));
  31211. j.push(se.then(() => ({
  31212. name: ye,
  31213. errors: [],
  31214. warnings: []
  31215. })).catch((he) => {
  31216. const re = [], q = [];
  31217. return he.forEach((K) => {
  31218. let {
  31219. rule: {
  31220. warningOnly: de
  31221. },
  31222. errors: xe
  31223. } = K;
  31224. de ? q.push(...xe) : re.push(...xe);
  31225. }), re.length ? Promise.reject({
  31226. name: ye,
  31227. errors: re,
  31228. warnings: q
  31229. }) : {
  31230. name: ye,
  31231. errors: re,
  31232. warnings: q
  31233. };
  31234. }));
  31235. }
  31236. });
  31237. const Y = vae(j);
  31238. _.value = Y;
  31239. const ne = Y.then(() => _.value === Y ? Promise.resolve(R(U)) : Promise.reject([])).catch((fe) => {
  31240. const ue = fe.filter((ye) => ye && ye.errors.length);
  31241. return Promise.reject({
  31242. values: R(U),
  31243. errorFields: ue,
  31244. outOfDate: _.value !== Y
  31245. });
  31246. });
  31247. return ne.catch((fe) => fe), ne;
  31248. }, I = function() {
  31249. return N(...arguments);
  31250. }, B = (Q) => {
  31251. Q.preventDefault(), Q.stopPropagation(), n("submit", Q), t.model && N().then((H) => {
  31252. n("finish", H);
  31253. }).catch((H) => {
  31254. T(H);
  31255. });
  31256. };
  31257. return i({
  31258. resetFields: P,
  31259. clearValidate: $,
  31260. validateFields: N,
  31261. getFieldsValue: R,
  31262. validate: E,
  31263. scrollToField: M
  31264. }), fae({
  31265. model: V(() => t.model),
  31266. name: V(() => t.name),
  31267. labelAlign: V(() => t.labelAlign),
  31268. labelCol: V(() => t.labelCol),
  31269. labelWrap: V(() => t.labelWrap),
  31270. wrapperCol: V(() => t.wrapperCol),
  31271. vertical: V(() => t.layout === "vertical"),
  31272. colon: h,
  31273. requiredMark: d,
  31274. validateTrigger: V(() => t.validateTrigger),
  31275. rules: V(() => t.rules),
  31276. addField: S,
  31277. removeField: x,
  31278. onValidate: (Q, W, H) => {
  31279. n("validate", Q, W, H);
  31280. },
  31281. validateMessages: v
  31282. }), me(() => t.rules, () => {
  31283. t.validateOnRuleChange && N();
  31284. }), () => {
  31285. var Q;
  31286. return g(D("form", te(te({}, a), {}, {
  31287. onSubmit: B,
  31288. class: [y.value, a.class]
  31289. }), [(Q = r.default) === null || Q === void 0 ? void 0 : Q.call(r)]));
  31290. };
  31291. }
  31292. });
  31293. Gr.useInjectFormItemContext = Ul;
  31294. Gr.ItemRest = Lb;
  31295. Gr.install = function(t) {
  31296. return t.component(Gr.name, Gr), t.component(Gr.Item.name, Gr.Item), t.component(Lb.name, Lb), t;
  31297. };
  31298. const Xze = new qt("antCheckboxEffect", {
  31299. "0%": {
  31300. transform: "scale(1)",
  31301. opacity: 0.5
  31302. },
  31303. "100%": {
  31304. transform: "scale(1.6)",
  31305. opacity: 0
  31306. }
  31307. }), Yze = (t) => {
  31308. const {
  31309. checkboxCls: e
  31310. } = t, n = `${e}-wrapper`;
  31311. return [
  31312. // ===================== Basic =====================
  31313. {
  31314. // Group
  31315. [`${e}-group`]: k(k({}, Gn(t)), {
  31316. display: "inline-flex",
  31317. flexWrap: "wrap",
  31318. columnGap: t.marginXS,
  31319. // Group > Grid
  31320. [`> ${t.antCls}-row`]: {
  31321. flex: 1
  31322. }
  31323. }),
  31324. // Wrapper
  31325. [n]: k(k({}, Gn(t)), {
  31326. display: "inline-flex",
  31327. alignItems: "baseline",
  31328. cursor: "pointer",
  31329. // Fix checkbox & radio in flex align #30260
  31330. "&:after": {
  31331. display: "inline-block",
  31332. width: 0,
  31333. overflow: "hidden",
  31334. content: "'\\a0'"
  31335. },
  31336. // Checkbox near checkbox
  31337. [`& + ${n}`]: {
  31338. marginInlineStart: 0
  31339. },
  31340. [`&${n}-in-form-item`]: {
  31341. 'input[type="checkbox"]': {
  31342. width: 14,
  31343. height: 14
  31344. // FIXME: magic
  31345. }
  31346. }
  31347. }),
  31348. // Wrapper > Checkbox
  31349. [e]: k(k({}, Gn(t)), {
  31350. position: "relative",
  31351. whiteSpace: "nowrap",
  31352. lineHeight: 1,
  31353. cursor: "pointer",
  31354. // To make alignment right when `controlHeight` is changed
  31355. // Ref: https://github.com/ant-design/ant-design/issues/41564
  31356. alignSelf: "center",
  31357. // Wrapper > Checkbox > input
  31358. [`${e}-input`]: {
  31359. position: "absolute",
  31360. // Since baseline align will get additional space offset,
  31361. // we need to move input to top to make it align with text.
  31362. // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
  31363. inset: 0,
  31364. zIndex: 1,
  31365. cursor: "pointer",
  31366. opacity: 0,
  31367. margin: 0,
  31368. [`&:focus-visible + ${e}-inner`]: k({}, G_(t))
  31369. },
  31370. // Wrapper > Checkbox > inner
  31371. [`${e}-inner`]: {
  31372. boxSizing: "border-box",
  31373. position: "relative",
  31374. top: 0,
  31375. insetInlineStart: 0,
  31376. display: "block",
  31377. width: t.checkboxSize,
  31378. height: t.checkboxSize,
  31379. direction: "ltr",
  31380. backgroundColor: t.colorBgContainer,
  31381. border: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,
  31382. borderRadius: t.borderRadiusSM,
  31383. borderCollapse: "separate",
  31384. transition: `all ${t.motionDurationSlow}`,
  31385. "&:after": {
  31386. boxSizing: "border-box",
  31387. position: "absolute",
  31388. top: "50%",
  31389. insetInlineStart: "21.5%",
  31390. display: "table",
  31391. width: t.checkboxSize / 14 * 5,
  31392. height: t.checkboxSize / 14 * 8,
  31393. border: `${t.lineWidthBold}px solid ${t.colorWhite}`,
  31394. borderTop: 0,
  31395. borderInlineStart: 0,
  31396. transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
  31397. opacity: 0,
  31398. content: '""',
  31399. transition: `all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`
  31400. }
  31401. },
  31402. // Wrapper > Checkbox + Text
  31403. "& + span": {
  31404. paddingInlineStart: t.paddingXS,
  31405. paddingInlineEnd: t.paddingXS
  31406. }
  31407. })
  31408. },
  31409. // ================= Indeterminate =================
  31410. {
  31411. [e]: {
  31412. "&-indeterminate": {
  31413. // Wrapper > Checkbox > inner
  31414. [`${e}-inner`]: {
  31415. "&:after": {
  31416. top: "50%",
  31417. insetInlineStart: "50%",
  31418. width: t.fontSizeLG / 2,
  31419. height: t.fontSizeLG / 2,
  31420. backgroundColor: t.colorPrimary,
  31421. border: 0,
  31422. transform: "translate(-50%, -50%) scale(1)",
  31423. opacity: 1,
  31424. content: '""'
  31425. }
  31426. }
  31427. }
  31428. }
  31429. },
  31430. // ===================== Hover =====================
  31431. {
  31432. // Wrapper
  31433. [`${n}:hover ${e}:after`]: {
  31434. visibility: "visible"
  31435. },
  31436. // Wrapper & Wrapper > Checkbox
  31437. [`
  31438. ${n}:not(${n}-disabled),
  31439. ${e}:not(${e}-disabled)
  31440. `]: {
  31441. [`&:hover ${e}-inner`]: {
  31442. borderColor: t.colorPrimary
  31443. }
  31444. },
  31445. [`${n}:not(${n}-disabled)`]: {
  31446. [`&:hover ${e}-checked:not(${e}-disabled) ${e}-inner`]: {
  31447. backgroundColor: t.colorPrimaryHover,
  31448. borderColor: "transparent"
  31449. },
  31450. [`&:hover ${e}-checked:not(${e}-disabled):after`]: {
  31451. borderColor: t.colorPrimaryHover
  31452. }
  31453. }
  31454. },
  31455. // ==================== Checked ====================
  31456. {
  31457. // Wrapper > Checkbox
  31458. [`${e}-checked`]: {
  31459. [`${e}-inner`]: {
  31460. backgroundColor: t.colorPrimary,
  31461. borderColor: t.colorPrimary,
  31462. "&:after": {
  31463. opacity: 1,
  31464. transform: "rotate(45deg) scale(1) translate(-50%,-50%)",
  31465. transition: `all ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`
  31466. }
  31467. },
  31468. // Checked Effect
  31469. "&:after": {
  31470. position: "absolute",
  31471. top: 0,
  31472. insetInlineStart: 0,
  31473. width: "100%",
  31474. height: "100%",
  31475. borderRadius: t.borderRadiusSM,
  31476. visibility: "hidden",
  31477. border: `${t.lineWidthBold}px solid ${t.colorPrimary}`,
  31478. animationName: Xze,
  31479. animationDuration: t.motionDurationSlow,
  31480. animationTimingFunction: "ease-in-out",
  31481. animationFillMode: "backwards",
  31482. content: '""',
  31483. transition: `all ${t.motionDurationSlow}`
  31484. }
  31485. },
  31486. [`
  31487. ${n}-checked:not(${n}-disabled),
  31488. ${e}-checked:not(${e}-disabled)
  31489. `]: {
  31490. [`&:hover ${e}-inner`]: {
  31491. backgroundColor: t.colorPrimaryHover,
  31492. borderColor: "transparent"
  31493. },
  31494. [`&:hover ${e}:after`]: {
  31495. borderColor: t.colorPrimaryHover
  31496. }
  31497. }
  31498. },
  31499. // ==================== Disable ====================
  31500. {
  31501. // Wrapper
  31502. [`${n}-disabled`]: {
  31503. cursor: "not-allowed"
  31504. },
  31505. // Wrapper > Checkbox
  31506. [`${e}-disabled`]: {
  31507. // Wrapper > Checkbox > input
  31508. [`&, ${e}-input`]: {
  31509. cursor: "not-allowed",
  31510. // Disabled for native input to enable Tooltip event handler
  31511. // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
  31512. pointerEvents: "none"
  31513. },
  31514. // Wrapper > Checkbox > inner
  31515. [`${e}-inner`]: {
  31516. background: t.colorBgContainerDisabled,
  31517. borderColor: t.colorBorder,
  31518. "&:after": {
  31519. borderColor: t.colorTextDisabled
  31520. }
  31521. },
  31522. "&:after": {
  31523. display: "none"
  31524. },
  31525. "& + span": {
  31526. color: t.colorTextDisabled
  31527. },
  31528. [`&${e}-indeterminate ${e}-inner::after`]: {
  31529. background: t.colorTextDisabled
  31530. }
  31531. }
  31532. }
  31533. ];
  31534. };
  31535. function qze(t, e) {
  31536. const n = bn(e, {
  31537. checkboxCls: `.${t}`,
  31538. checkboxSize: e.controlInteractiveSize
  31539. });
  31540. return [Yze(n)];
  31541. }
  31542. const gae = pr("Checkbox", (t, e) => {
  31543. let {
  31544. prefixCls: n
  31545. } = e;
  31546. return [qze(n, t)];
  31547. }), Kze = () => ({
  31548. name: String,
  31549. prefixCls: String,
  31550. options: Lh([]),
  31551. disabled: Boolean,
  31552. id: String
  31553. }), Jze = () => k(k({}, Kze()), {
  31554. defaultValue: Lh(),
  31555. value: Lh(),
  31556. onChange: Ct(),
  31557. "onUpdate:value": Ct()
  31558. }), eVe = () => ({
  31559. prefixCls: String,
  31560. defaultChecked: Tt(),
  31561. checked: Tt(),
  31562. disabled: Tt(),
  31563. isGroup: Tt(),
  31564. value: oe.any,
  31565. name: String,
  31566. id: String,
  31567. indeterminate: Tt(),
  31568. type: rr("checkbox"),
  31569. autofocus: Tt(),
  31570. onChange: Ct(),
  31571. "onUpdate:checked": Ct(),
  31572. onClick: Ct(),
  31573. skipGroup: Tt(!1)
  31574. }), tVe = () => k(k({}, eVe()), {
  31575. indeterminate: Tt(!1)
  31576. }), mae = Symbol("CheckboxGroupContext");
  31577. var JQ = function(t, e) {
  31578. var n = {};
  31579. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  31580. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  31581. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  31582. return n;
  31583. };
  31584. const Qy = ae({
  31585. compatConfig: {
  31586. MODE: 3
  31587. },
  31588. name: "ACheckbox",
  31589. inheritAttrs: !1,
  31590. __ANT_CHECKBOX: !0,
  31591. props: tVe(),
  31592. // emits: ['change', 'update:checked'],
  31593. setup(t, e) {
  31594. let {
  31595. emit: n,
  31596. attrs: r,
  31597. slots: i,
  31598. expose: a
  31599. } = e;
  31600. const o = Ul(), s = Qs.useInject(), {
  31601. prefixCls: l,
  31602. direction: u,
  31603. disabled: c
  31604. } = hn("checkbox", t), f = Vl(), [d, h] = gae(l), p = et(mae, void 0), v = Symbol("checkboxUniId"), g = V(() => (p == null ? void 0 : p.disabled.value) || c.value);
  31605. Vt(() => {
  31606. !t.skipGroup && p && p.registerValue(v, t.value);
  31607. }), Qt(() => {
  31608. p && p.cancelValue(v);
  31609. }), _t(() => {
  31610. aa(!!(t.checked !== void 0 || p || t.value === void 0), "Checkbox", "`value` is not validate prop, do you mean `checked`?");
  31611. });
  31612. const m = (S) => {
  31613. const x = S.target.checked;
  31614. n("update:checked", x), n("change", S), o.onFieldChange();
  31615. }, y = ee();
  31616. return a({
  31617. focus: () => {
  31618. var S;
  31619. (S = y.value) === null || S === void 0 || S.focus();
  31620. },
  31621. blur: () => {
  31622. var S;
  31623. (S = y.value) === null || S === void 0 || S.blur();
  31624. }
  31625. }), () => {
  31626. var S;
  31627. const x = qr((S = i.default) === null || S === void 0 ? void 0 : S.call(i)), {
  31628. indeterminate: C,
  31629. skipGroup: P,
  31630. id: $ = o.id.value
  31631. } = t, T = JQ(t, ["indeterminate", "skipGroup", "id"]), {
  31632. onMouseenter: E,
  31633. onMouseleave: M,
  31634. onInput: R,
  31635. class: N,
  31636. style: I
  31637. } = r, B = JQ(r, ["onMouseenter", "onMouseleave", "onInput", "class", "style"]), Q = k(k(k(k({}, T), {
  31638. id: $,
  31639. prefixCls: l.value
  31640. }), B), {
  31641. disabled: g.value
  31642. });
  31643. p && !P ? (Q.onChange = function() {
  31644. for (var j = arguments.length, Y = new Array(j), ne = 0; ne < j; ne++)
  31645. Y[ne] = arguments[ne];
  31646. n("change", ...Y), p.toggleOption({
  31647. label: x,
  31648. value: t.value
  31649. });
  31650. }, Q.name = p.name.value, Q.checked = p.mergedValue.value.includes(t.value), Q.disabled = g.value || f.value, Q.indeterminate = C) : Q.onChange = m;
  31651. const W = Re({
  31652. [`${l.value}-wrapper`]: !0,
  31653. [`${l.value}-rtl`]: u.value === "rtl",
  31654. [`${l.value}-wrapper-checked`]: Q.checked,
  31655. [`${l.value}-wrapper-disabled`]: Q.disabled,
  31656. [`${l.value}-wrapper-in-form-item`]: s.isFormItemInput
  31657. }, N, h.value), H = Re({
  31658. [`${l.value}-indeterminate`]: C
  31659. }, h.value);
  31660. return d(D("label", {
  31661. class: W,
  31662. style: I,
  31663. onMouseenter: E,
  31664. onMouseleave: M
  31665. }, [D(Fie, te(te({
  31666. "aria-checked": C ? "mixed" : void 0
  31667. }, Q), {}, {
  31668. class: H,
  31669. ref: y
  31670. }), null), x.length ? D("span", null, [x]) : null]));
  31671. };
  31672. }
  31673. }), dC = ae({
  31674. compatConfig: {
  31675. MODE: 3
  31676. },
  31677. name: "ACheckboxGroup",
  31678. inheritAttrs: !1,
  31679. props: Jze(),
  31680. // emits: ['change', 'update:value'],
  31681. setup(t, e) {
  31682. let {
  31683. slots: n,
  31684. attrs: r,
  31685. emit: i,
  31686. expose: a
  31687. } = e;
  31688. const o = Ul(), {
  31689. prefixCls: s,
  31690. direction: l
  31691. } = hn("checkbox", t), u = V(() => `${s.value}-group`), [c, f] = gae(u), d = ee((t.value === void 0 ? t.defaultValue : t.value) || []);
  31692. me(() => t.value, () => {
  31693. d.value = t.value || [];
  31694. });
  31695. const h = V(() => t.options.map((O) => typeof O == "string" || typeof O == "number" ? {
  31696. label: O,
  31697. value: O
  31698. } : O)), p = ee(Symbol()), v = ee(/* @__PURE__ */ new Map()), g = (O) => {
  31699. v.value.delete(O), p.value = Symbol();
  31700. }, m = (O, S) => {
  31701. v.value.set(O, S), p.value = Symbol();
  31702. }, y = ee(/* @__PURE__ */ new Map());
  31703. return me(p, () => {
  31704. const O = /* @__PURE__ */ new Map();
  31705. for (const S of v.value.values())
  31706. O.set(S, !0);
  31707. y.value = O;
  31708. }), Et(mae, {
  31709. cancelValue: g,
  31710. registerValue: m,
  31711. toggleOption: (O) => {
  31712. const S = d.value.indexOf(O.value), x = [...d.value];
  31713. S === -1 ? x.push(O.value) : x.splice(S, 1), t.value === void 0 && (d.value = x);
  31714. const C = x.filter((P) => y.value.has(P)).sort((P, $) => {
  31715. const T = h.value.findIndex((M) => M.value === P), E = h.value.findIndex((M) => M.value === $);
  31716. return T - E;
  31717. });
  31718. i("update:value", C), i("change", C), o.onFieldChange();
  31719. },
  31720. mergedValue: d,
  31721. name: V(() => t.name),
  31722. disabled: V(() => t.disabled)
  31723. }), a({
  31724. mergedValue: d
  31725. }), () => {
  31726. var O;
  31727. const {
  31728. id: S = o.id.value
  31729. } = t;
  31730. let x = null;
  31731. return h.value && h.value.length > 0 && (x = h.value.map((C) => {
  31732. var P;
  31733. return D(Qy, {
  31734. prefixCls: s.value,
  31735. key: C.value.toString(),
  31736. disabled: "disabled" in C ? C.disabled : t.disabled,
  31737. indeterminate: C.indeterminate,
  31738. value: C.value,
  31739. checked: d.value.indexOf(C.value) !== -1,
  31740. onChange: C.onChange,
  31741. class: `${u.value}-item`
  31742. }, {
  31743. default: () => [n.label !== void 0 ? (P = n.label) === null || P === void 0 ? void 0 : P.call(n, C) : C.label]
  31744. });
  31745. })), c(D("div", te(te({}, r), {}, {
  31746. class: [u.value, {
  31747. [`${u.value}-rtl`]: l.value === "rtl"
  31748. }, r.class, f.value],
  31749. id: S
  31750. }), [x || ((O = n.default) === null || O === void 0 ? void 0 : O.call(n))]));
  31751. };
  31752. }
  31753. });
  31754. Qy.Group = dC;
  31755. Qy.install = function(t) {
  31756. return t.component(Qy.name, Qy), t.component(dC.name, dC), t;
  31757. };
  31758. let Jx = k({}, Nu.Modal);
  31759. function nVe(t) {
  31760. t ? Jx = k(k({}, Jx), t) : Jx = k({}, Nu.Modal);
  31761. }
  31762. function rVe() {
  31763. return Jx;
  31764. }
  31765. const BR = "internalMark", ew = ae({
  31766. compatConfig: {
  31767. MODE: 3
  31768. },
  31769. name: "ALocaleProvider",
  31770. props: {
  31771. locale: {
  31772. type: Object
  31773. },
  31774. ANT_MARK__: String
  31775. },
  31776. setup(t, e) {
  31777. let {
  31778. slots: n
  31779. } = e;
  31780. aa(t.ANT_MARK__ === BR, "LocaleProvider", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");
  31781. const r = zn({
  31782. antLocale: k(k({}, t.locale), {
  31783. exist: !0
  31784. }),
  31785. ANT_MARK__: BR
  31786. });
  31787. return Et("localeData", r), me(() => t.locale, (i) => {
  31788. nVe(i && i.Modal), r.antLocale = k(k({}, i), {
  31789. exist: !0
  31790. });
  31791. }, {
  31792. immediate: !0
  31793. }), () => {
  31794. var i;
  31795. return (i = n.default) === null || i === void 0 ? void 0 : i.call(n);
  31796. };
  31797. }
  31798. });
  31799. ew.install = function(t) {
  31800. return t.component(ew.name, ew), t;
  31801. };
  31802. const iVe = fm(ew), X2 = ae({
  31803. name: "Notice",
  31804. inheritAttrs: !1,
  31805. props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
  31806. setup(t, e) {
  31807. let {
  31808. attrs: n,
  31809. slots: r
  31810. } = e, i, a = !1;
  31811. const o = V(() => t.duration === void 0 ? 4.5 : t.duration), s = () => {
  31812. o.value && !a && (i = setTimeout(() => {
  31813. u();
  31814. }, o.value * 1e3));
  31815. }, l = () => {
  31816. i && (clearTimeout(i), i = null);
  31817. }, u = (f) => {
  31818. f && f.stopPropagation(), l();
  31819. const {
  31820. onClose: d,
  31821. noticeKey: h
  31822. } = t;
  31823. d && d(h);
  31824. }, c = () => {
  31825. l(), s();
  31826. };
  31827. return _t(() => {
  31828. s();
  31829. }), qu(() => {
  31830. a = !0, l();
  31831. }), me([o, () => t.updateMark, () => t.visible], (f, d) => {
  31832. let [h, p, v] = f, [g, m, y] = d;
  31833. (h !== g || p !== m || v !== y && y) && c();
  31834. }, {
  31835. flush: "post"
  31836. }), () => {
  31837. var f, d;
  31838. const {
  31839. prefixCls: h,
  31840. closable: p,
  31841. closeIcon: v = (f = r.closeIcon) === null || f === void 0 ? void 0 : f.call(r),
  31842. onClick: g,
  31843. holder: m
  31844. } = t, {
  31845. class: y,
  31846. style: _
  31847. } = n, O = `${h}-notice`, S = Object.keys(n).reduce((C, P) => ((P.startsWith("data-") || P.startsWith("aria-") || P === "role") && (C[P] = n[P]), C), {}), x = D("div", te({
  31848. class: Re(O, y, {
  31849. [`${O}-closable`]: p
  31850. }),
  31851. style: _,
  31852. onMouseenter: l,
  31853. onMouseleave: s,
  31854. onClick: g
  31855. }, S), [D("div", {
  31856. class: `${O}-content`
  31857. }, [(d = r.default) === null || d === void 0 ? void 0 : d.call(r)]), p ? D("a", {
  31858. tabindex: 0,
  31859. onClick: u,
  31860. class: `${O}-close`
  31861. }, [v || D("span", {
  31862. class: `${O}-close-x`
  31863. }, null)]) : null]);
  31864. return m ? D(R_, {
  31865. to: m
  31866. }, {
  31867. default: () => x
  31868. }) : x;
  31869. };
  31870. }
  31871. });
  31872. var aVe = function(t, e) {
  31873. var n = {};
  31874. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  31875. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  31876. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  31877. return n;
  31878. };
  31879. let e9 = 0;
  31880. const oVe = Date.now();
  31881. function t9() {
  31882. const t = e9;
  31883. return e9 += 1, `rcNotification_${oVe}_${t}`;
  31884. }
  31885. const hC = ae({
  31886. name: "Notification",
  31887. inheritAttrs: !1,
  31888. props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId"],
  31889. setup(t, e) {
  31890. let {
  31891. attrs: n,
  31892. expose: r,
  31893. slots: i
  31894. } = e;
  31895. const a = /* @__PURE__ */ new Map(), o = ee([]), s = V(() => {
  31896. const {
  31897. prefixCls: c,
  31898. animation: f = "fade"
  31899. } = t;
  31900. let d = t.transitionName;
  31901. return !d && f && (d = `${c}-${f}`), JN(d);
  31902. }), l = (c, f) => {
  31903. const d = c.key || t9(), h = k(k({}, c), {
  31904. key: d
  31905. }), {
  31906. maxCount: p
  31907. } = t, v = o.value.map((m) => m.notice.key).indexOf(d), g = o.value.concat();
  31908. v !== -1 ? g.splice(v, 1, {
  31909. notice: h,
  31910. holderCallback: f
  31911. }) : (p && o.value.length >= p && (h.key = g[0].notice.key, h.updateMark = t9(), h.userPassKey = d, g.shift()), g.push({
  31912. notice: h,
  31913. holderCallback: f
  31914. })), o.value = g;
  31915. }, u = (c) => {
  31916. o.value = o.value.filter((f) => {
  31917. let {
  31918. notice: {
  31919. key: d,
  31920. userPassKey: h
  31921. }
  31922. } = f;
  31923. return (h || d) !== c;
  31924. });
  31925. };
  31926. return r({
  31927. add: l,
  31928. remove: u,
  31929. notices: o
  31930. }), () => {
  31931. var c;
  31932. const {
  31933. prefixCls: f,
  31934. closeIcon: d = (c = i.closeIcon) === null || c === void 0 ? void 0 : c.call(i, {
  31935. prefixCls: f
  31936. })
  31937. } = t, h = o.value.map((v, g) => {
  31938. let {
  31939. notice: m,
  31940. holderCallback: y
  31941. } = v;
  31942. const _ = g === o.value.length - 1 ? m.updateMark : void 0, {
  31943. key: O,
  31944. userPassKey: S
  31945. } = m, {
  31946. content: x
  31947. } = m, C = k(k(k({
  31948. prefixCls: f,
  31949. closeIcon: typeof d == "function" ? d({
  31950. prefixCls: f
  31951. }) : d
  31952. }, m), m.props), {
  31953. key: O,
  31954. noticeKey: S || O,
  31955. updateMark: _,
  31956. onClose: (P) => {
  31957. var $;
  31958. u(P), ($ = m.onClose) === null || $ === void 0 || $.call(m);
  31959. },
  31960. onClick: m.onClick
  31961. });
  31962. return y ? D("div", {
  31963. key: O,
  31964. class: `${f}-hook-holder`,
  31965. ref: (P) => {
  31966. typeof O > "u" || (P ? (a.set(O, P), y(P, C)) : a.delete(O));
  31967. }
  31968. }, null) : D(X2, te(te({}, C), {}, {
  31969. class: Re(C.class, t.hashId)
  31970. }), {
  31971. default: () => [typeof x == "function" ? x({
  31972. prefixCls: f
  31973. }) : x]
  31974. });
  31975. }), p = {
  31976. [f]: 1,
  31977. [n.class]: !!n.class,
  31978. [t.hashId]: !0
  31979. };
  31980. return D("div", {
  31981. class: p,
  31982. style: n.style || {
  31983. top: "65px",
  31984. left: "50%"
  31985. }
  31986. }, [D(X4, te({
  31987. tag: "div"
  31988. }, s.value), {
  31989. default: () => [h]
  31990. })]);
  31991. };
  31992. }
  31993. });
  31994. hC.newInstance = function(e, n) {
  31995. const r = e || {}, {
  31996. name: i = "notification",
  31997. getContainer: a,
  31998. appContext: o,
  31999. prefixCls: s,
  32000. rootPrefixCls: l,
  32001. transitionName: u,
  32002. hasTransitionName: c,
  32003. useStyle: f
  32004. } = r, d = aVe(r, ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName", "useStyle"]), h = document.createElement("div");
  32005. a ? a().appendChild(h) : document.body.appendChild(h);
  32006. const p = ae({
  32007. compatConfig: {
  32008. MODE: 3
  32009. },
  32010. name: "NotificationWrapper",
  32011. setup(g, m) {
  32012. let {
  32013. attrs: y
  32014. } = m;
  32015. const _ = ve(), O = V(() => gi.getPrefixCls(i, s)), [, S] = f(O);
  32016. return _t(() => {
  32017. n({
  32018. notice(x) {
  32019. var C;
  32020. (C = _.value) === null || C === void 0 || C.add(x);
  32021. },
  32022. removeNotice(x) {
  32023. var C;
  32024. (C = _.value) === null || C === void 0 || C.remove(x);
  32025. },
  32026. destroy() {
  32027. Ih(null, h), h.parentNode && h.parentNode.removeChild(h);
  32028. },
  32029. component: _
  32030. });
  32031. }), () => {
  32032. const x = gi, C = x.getRootPrefixCls(l, O.value), P = c ? u : `${O.value}-${u}`;
  32033. return D(Gv, te(te({}, x), {}, {
  32034. prefixCls: C
  32035. }), {
  32036. default: () => [D(hC, te(te({
  32037. ref: _
  32038. }, y), {}, {
  32039. prefixCls: O.value,
  32040. transitionName: P,
  32041. hashId: S.value
  32042. }), null)]
  32043. });
  32044. };
  32045. }
  32046. }), v = D(p, d);
  32047. v.appContext = o || v.appContext, Ih(v, h);
  32048. };
  32049. let n9 = 0;
  32050. const sVe = Date.now();
  32051. function r9() {
  32052. const t = n9;
  32053. return n9 += 1, `rcNotification_${sVe}_${t}`;
  32054. }
  32055. const lVe = ae({
  32056. name: "HookNotification",
  32057. inheritAttrs: !1,
  32058. props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId", "remove", "notices", "getStyles", "getClassName", "onAllRemoved", "getContainer"],
  32059. setup(t, e) {
  32060. let {
  32061. attrs: n,
  32062. slots: r
  32063. } = e;
  32064. const i = /* @__PURE__ */ new Map(), a = V(() => t.notices), o = V(() => {
  32065. let c = t.transitionName;
  32066. if (!c && t.animation)
  32067. switch (typeof t.animation) {
  32068. case "string":
  32069. c = t.animation;
  32070. break;
  32071. case "function":
  32072. c = t.animation().name;
  32073. break;
  32074. case "object":
  32075. c = t.animation.name;
  32076. break;
  32077. default:
  32078. c = `${t.prefixCls}-fade`;
  32079. break;
  32080. }
  32081. return JN(c);
  32082. }), s = (c) => t.remove(c), l = ee({});
  32083. me(a, () => {
  32084. const c = {};
  32085. Object.keys(l.value).forEach((f) => {
  32086. c[f] = [];
  32087. }), t.notices.forEach((f) => {
  32088. const {
  32089. placement: d = "topRight"
  32090. } = f.notice;
  32091. d && (c[d] = c[d] || [], c[d].push(f));
  32092. }), l.value = c;
  32093. });
  32094. const u = V(() => Object.keys(l.value));
  32095. return () => {
  32096. var c;
  32097. const {
  32098. prefixCls: f,
  32099. closeIcon: d = (c = r.closeIcon) === null || c === void 0 ? void 0 : c.call(r, {
  32100. prefixCls: f
  32101. })
  32102. } = t, h = u.value.map((p) => {
  32103. var v, g;
  32104. const m = l.value[p], y = (v = t.getClassName) === null || v === void 0 ? void 0 : v.call(t, p), _ = (g = t.getStyles) === null || g === void 0 ? void 0 : g.call(t, p), O = m.map((C, P) => {
  32105. let {
  32106. notice: $,
  32107. holderCallback: T
  32108. } = C;
  32109. const E = P === a.value.length - 1 ? $.updateMark : void 0, {
  32110. key: M,
  32111. userPassKey: R
  32112. } = $, {
  32113. content: N
  32114. } = $, I = k(k(k({
  32115. prefixCls: f,
  32116. closeIcon: typeof d == "function" ? d({
  32117. prefixCls: f
  32118. }) : d
  32119. }, $), $.props), {
  32120. key: M,
  32121. noticeKey: R || M,
  32122. updateMark: E,
  32123. onClose: (B) => {
  32124. var Q;
  32125. s(B), (Q = $.onClose) === null || Q === void 0 || Q.call($);
  32126. },
  32127. onClick: $.onClick
  32128. });
  32129. return T ? D("div", {
  32130. key: M,
  32131. class: `${f}-hook-holder`,
  32132. ref: (B) => {
  32133. typeof M > "u" || (B ? (i.set(M, B), T(B, I)) : i.delete(M));
  32134. }
  32135. }, null) : D(X2, te(te({}, I), {}, {
  32136. class: Re(I.class, t.hashId)
  32137. }), {
  32138. default: () => [typeof N == "function" ? N({
  32139. prefixCls: f
  32140. }) : N]
  32141. });
  32142. }), S = {
  32143. [f]: 1,
  32144. [`${f}-${p}`]: 1,
  32145. [n.class]: !!n.class,
  32146. [t.hashId]: !0,
  32147. [y]: !!y
  32148. };
  32149. function x() {
  32150. var C;
  32151. m.length > 0 || (Reflect.deleteProperty(l.value, p), (C = t.onAllRemoved) === null || C === void 0 || C.call(t));
  32152. }
  32153. return D("div", {
  32154. key: p,
  32155. class: S,
  32156. style: n.style || _ || {
  32157. top: "65px",
  32158. left: "50%"
  32159. }
  32160. }, [D(X4, te(te({
  32161. tag: "div"
  32162. }, o.value), {}, {
  32163. onAfterLeave: x
  32164. }), {
  32165. default: () => [O]
  32166. })]);
  32167. });
  32168. return D(jre, {
  32169. getContainer: t.getContainer
  32170. }, {
  32171. default: () => [h]
  32172. });
  32173. };
  32174. }
  32175. }), uVe = lVe;
  32176. var cVe = function(t, e) {
  32177. var n = {};
  32178. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  32179. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  32180. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  32181. return n;
  32182. };
  32183. const fVe = () => document.body;
  32184. let i9 = 0;
  32185. function dVe() {
  32186. const t = {};
  32187. for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
  32188. n[r] = arguments[r];
  32189. return n.forEach((i) => {
  32190. i && Object.keys(i).forEach((a) => {
  32191. const o = i[a];
  32192. o !== void 0 && (t[a] = o);
  32193. });
  32194. }), t;
  32195. }
  32196. function yae() {
  32197. let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  32198. const {
  32199. getContainer: e = fVe,
  32200. motion: n,
  32201. prefixCls: r,
  32202. maxCount: i,
  32203. getClassName: a,
  32204. getStyles: o,
  32205. onAllRemoved: s
  32206. } = t, l = cVe(t, ["getContainer", "motion", "prefixCls", "maxCount", "getClassName", "getStyles", "onAllRemoved"]), u = ve([]), c = ve(), f = (m, y) => {
  32207. const _ = m.key || r9(), O = k(k({}, m), {
  32208. key: _
  32209. }), S = u.value.map((C) => C.notice.key).indexOf(_), x = u.value.concat();
  32210. S !== -1 ? x.splice(S, 1, {
  32211. notice: O,
  32212. holderCallback: y
  32213. }) : (i && u.value.length >= i && (O.key = x[0].notice.key, O.updateMark = r9(), O.userPassKey = _, x.shift()), x.push({
  32214. notice: O,
  32215. holderCallback: y
  32216. })), u.value = x;
  32217. }, d = (m) => {
  32218. u.value = u.value.filter((y) => {
  32219. let {
  32220. notice: {
  32221. key: _,
  32222. userPassKey: O
  32223. }
  32224. } = y;
  32225. return (O || _) !== m;
  32226. });
  32227. }, h = () => {
  32228. u.value = [];
  32229. }, p = () => D(uVe, {
  32230. ref: c,
  32231. prefixCls: r,
  32232. maxCount: i,
  32233. notices: u.value,
  32234. remove: d,
  32235. getClassName: a,
  32236. getStyles: o,
  32237. animation: n,
  32238. hashId: t.hashId,
  32239. onAllRemoved: s,
  32240. getContainer: e
  32241. }, null), v = ve([]), g = {
  32242. open: (m) => {
  32243. const y = dVe(l, m);
  32244. (y.key === null || y.key === void 0) && (y.key = `vc-notification-${i9}`, i9 += 1), v.value = [...v.value, {
  32245. type: "open",
  32246. config: y
  32247. }];
  32248. },
  32249. close: (m) => {
  32250. v.value = [...v.value, {
  32251. type: "close",
  32252. key: m
  32253. }];
  32254. },
  32255. destroy: () => {
  32256. v.value = [...v.value, {
  32257. type: "destroy"
  32258. }];
  32259. }
  32260. };
  32261. return me(v, () => {
  32262. v.value.length && (v.value.forEach((m) => {
  32263. switch (m.type) {
  32264. case "open":
  32265. f(m.config);
  32266. break;
  32267. case "close":
  32268. d(m.key);
  32269. break;
  32270. case "destroy":
  32271. h();
  32272. break;
  32273. }
  32274. }), v.value = []);
  32275. }), [g, p];
  32276. }
  32277. const hVe = (t) => {
  32278. const {
  32279. componentCls: e,
  32280. iconCls: n,
  32281. boxShadowSecondary: r,
  32282. colorBgElevated: i,
  32283. colorSuccess: a,
  32284. colorError: o,
  32285. colorWarning: s,
  32286. colorInfo: l,
  32287. fontSizeLG: u,
  32288. motionEaseInOutCirc: c,
  32289. motionDurationSlow: f,
  32290. marginXS: d,
  32291. paddingXS: h,
  32292. borderRadiusLG: p,
  32293. zIndexPopup: v,
  32294. // Custom token
  32295. messageNoticeContentPadding: g
  32296. } = t, m = new qt("MessageMoveIn", {
  32297. "0%": {
  32298. padding: 0,
  32299. transform: "translateY(-100%)",
  32300. opacity: 0
  32301. },
  32302. "100%": {
  32303. padding: h,
  32304. transform: "translateY(0)",
  32305. opacity: 1
  32306. }
  32307. }), y = new qt("MessageMoveOut", {
  32308. "0%": {
  32309. maxHeight: t.height,
  32310. padding: h,
  32311. opacity: 1
  32312. },
  32313. "100%": {
  32314. maxHeight: 0,
  32315. padding: 0,
  32316. opacity: 0
  32317. }
  32318. });
  32319. return [
  32320. // ============================ Holder ============================
  32321. {
  32322. [e]: k(k({}, Gn(t)), {
  32323. position: "fixed",
  32324. top: d,
  32325. left: "50%",
  32326. transform: "translateX(-50%)",
  32327. width: "100%",
  32328. pointerEvents: "none",
  32329. zIndex: v,
  32330. [`${e}-move-up`]: {
  32331. animationFillMode: "forwards"
  32332. },
  32333. [`
  32334. ${e}-move-up-appear,
  32335. ${e}-move-up-enter
  32336. `]: {
  32337. animationName: m,
  32338. animationDuration: f,
  32339. animationPlayState: "paused",
  32340. animationTimingFunction: c
  32341. },
  32342. [`
  32343. ${e}-move-up-appear${e}-move-up-appear-active,
  32344. ${e}-move-up-enter${e}-move-up-enter-active
  32345. `]: {
  32346. animationPlayState: "running"
  32347. },
  32348. [`${e}-move-up-leave`]: {
  32349. animationName: y,
  32350. animationDuration: f,
  32351. animationPlayState: "paused",
  32352. animationTimingFunction: c
  32353. },
  32354. [`${e}-move-up-leave${e}-move-up-leave-active`]: {
  32355. animationPlayState: "running"
  32356. },
  32357. "&-rtl": {
  32358. direction: "rtl",
  32359. span: {
  32360. direction: "rtl"
  32361. }
  32362. }
  32363. })
  32364. },
  32365. // ============================ Notice ============================
  32366. {
  32367. [`${e}-notice`]: {
  32368. padding: h,
  32369. textAlign: "center",
  32370. [n]: {
  32371. verticalAlign: "text-bottom",
  32372. marginInlineEnd: d,
  32373. fontSize: u
  32374. },
  32375. [`${e}-notice-content`]: {
  32376. display: "inline-block",
  32377. padding: g,
  32378. background: i,
  32379. borderRadius: p,
  32380. boxShadow: r,
  32381. pointerEvents: "all"
  32382. },
  32383. [`${e}-success ${n}`]: {
  32384. color: a
  32385. },
  32386. [`${e}-error ${n}`]: {
  32387. color: o
  32388. },
  32389. [`${e}-warning ${n}`]: {
  32390. color: s
  32391. },
  32392. [`
  32393. ${e}-info ${n},
  32394. ${e}-loading ${n}`]: {
  32395. color: l
  32396. }
  32397. }
  32398. },
  32399. // ============================= Pure =============================
  32400. {
  32401. [`${e}-notice-pure-panel`]: {
  32402. padding: 0,
  32403. textAlign: "start"
  32404. }
  32405. }
  32406. ];
  32407. }, M8 = pr("Message", (t) => {
  32408. const e = bn(t, {
  32409. messageNoticeContentPadding: `${(t.controlHeightLG - t.fontSize * t.lineHeight) / 2}px ${t.paddingSM}px`
  32410. });
  32411. return [hVe(e)];
  32412. }, (t) => ({
  32413. height: 150,
  32414. zIndexPopup: t.zIndexPopupBase + 10
  32415. })), pVe = {
  32416. info: D(cp, null, null),
  32417. success: D(Df, null, null),
  32418. error: D(cs, null, null),
  32419. warning: D(Rf, null, null),
  32420. loading: D(Ql, null, null)
  32421. }, bae = ae({
  32422. name: "PureContent",
  32423. inheritAttrs: !1,
  32424. props: ["prefixCls", "type", "icon"],
  32425. setup(t, e) {
  32426. let {
  32427. slots: n
  32428. } = e;
  32429. return () => {
  32430. var r;
  32431. return D("div", {
  32432. class: Re(`${t.prefixCls}-custom-content`, `${t.prefixCls}-${t.type}`)
  32433. }, [t.icon || pVe[t.type], D("span", null, [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)])]);
  32434. };
  32435. }
  32436. });
  32437. ae({
  32438. name: "PurePanel",
  32439. inheritAttrs: !1,
  32440. props: ["prefixCls", "class", "type", "icon", "content"],
  32441. setup(t, e) {
  32442. let {
  32443. slots: n,
  32444. attrs: r
  32445. } = e;
  32446. var i;
  32447. const {
  32448. getPrefixCls: a
  32449. } = b2(), o = V(() => t.prefixCls || a("message")), [, s] = M8(o);
  32450. return D(X2, te(te({}, r), {}, {
  32451. prefixCls: o.value,
  32452. class: Re(s.value, `${o.value}-notice-pure-panel`),
  32453. noticeKey: "pure",
  32454. duration: null
  32455. }), {
  32456. default: () => [D(bae, {
  32457. prefixCls: o.value,
  32458. type: t.type,
  32459. icon: t.icon
  32460. }, {
  32461. default: () => [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)]
  32462. })]
  32463. });
  32464. }
  32465. });
  32466. var vVe = function(t, e) {
  32467. var n = {};
  32468. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  32469. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  32470. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  32471. return n;
  32472. };
  32473. const gVe = 8, mVe = 3, yVe = ae({
  32474. name: "Holder",
  32475. inheritAttrs: !1,
  32476. props: ["top", "prefixCls", "getContainer", "maxCount", "duration", "rtl", "transitionName", "onAllRemoved"],
  32477. setup(t, e) {
  32478. let {
  32479. expose: n
  32480. } = e;
  32481. var r, i;
  32482. const {
  32483. getPrefixCls: a,
  32484. getPopupContainer: o
  32485. } = hn("message", t), s = V(() => a("message", t.prefixCls)), [, l] = M8(s), u = () => {
  32486. var v;
  32487. const g = (v = t.top) !== null && v !== void 0 ? v : gVe;
  32488. return {
  32489. left: "50%",
  32490. transform: "translateX(-50%)",
  32491. top: typeof g == "number" ? `${g}px` : g
  32492. };
  32493. }, c = () => Re(l.value, t.rtl ? `${s.value}-rtl` : ""), f = () => {
  32494. var v;
  32495. return ZN({
  32496. prefixCls: s.value,
  32497. animation: (v = t.animation) !== null && v !== void 0 ? v : "move-up",
  32498. transitionName: t.transitionName
  32499. });
  32500. }, d = D("span", {
  32501. class: `${s.value}-close-x`
  32502. }, [D(tc, {
  32503. class: `${s.value}-close-icon`
  32504. }, null)]), [h, p] = yae({
  32505. //@ts-ignore
  32506. getStyles: u,
  32507. prefixCls: s.value,
  32508. getClassName: c,
  32509. motion: f,
  32510. closable: !1,
  32511. closeIcon: d,
  32512. duration: (r = t.duration) !== null && r !== void 0 ? r : mVe,
  32513. getContainer: (i = t.staticGetContainer) !== null && i !== void 0 ? i : o.value,
  32514. maxCount: t.maxCount,
  32515. onAllRemoved: t.onAllRemoved
  32516. });
  32517. return n(k(k({}, h), {
  32518. prefixCls: s,
  32519. hashId: l
  32520. })), p;
  32521. }
  32522. });
  32523. let a9 = 0;
  32524. function bVe(t) {
  32525. const e = ve(null), n = Symbol("messageHolderKey"), r = (l) => {
  32526. var u;
  32527. (u = e.value) === null || u === void 0 || u.close(l);
  32528. }, i = (l) => {
  32529. if (!e.value) {
  32530. const S = () => {
  32531. };
  32532. return S.then = () => {
  32533. }, S;
  32534. }
  32535. const {
  32536. open: u,
  32537. prefixCls: c,
  32538. hashId: f
  32539. } = e.value, d = `${c}-notice`, {
  32540. content: h,
  32541. icon: p,
  32542. type: v,
  32543. key: g,
  32544. class: m,
  32545. onClose: y
  32546. } = l, _ = vVe(l, ["content", "icon", "type", "key", "class", "onClose"]);
  32547. let O = g;
  32548. return O == null && (a9 += 1, O = `antd-message-${a9}`), VRe((S) => (u(k(k({}, _), {
  32549. key: O,
  32550. content: () => D(bae, {
  32551. prefixCls: c,
  32552. type: v,
  32553. icon: typeof p == "function" ? p() : p
  32554. }, {
  32555. default: () => [typeof h == "function" ? h() : h]
  32556. }),
  32557. placement: "top",
  32558. // @ts-ignore
  32559. class: Re(v && `${d}-${v}`, f, m),
  32560. onClose: () => {
  32561. y == null || y(), S();
  32562. }
  32563. })), () => {
  32564. r(O);
  32565. }));
  32566. }, o = {
  32567. open: i,
  32568. destroy: (l) => {
  32569. var u;
  32570. l !== void 0 ? r(l) : (u = e.value) === null || u === void 0 || u.destroy();
  32571. }
  32572. };
  32573. return ["info", "success", "warning", "error", "loading"].forEach((l) => {
  32574. const u = (c, f, d) => {
  32575. let h;
  32576. c && typeof c == "object" && "content" in c ? h = c : h = {
  32577. content: c
  32578. };
  32579. let p, v;
  32580. typeof f == "function" ? v = f : (p = f, v = d);
  32581. const g = k(k({
  32582. onClose: v,
  32583. duration: p
  32584. }, h), {
  32585. type: l
  32586. });
  32587. return i(g);
  32588. };
  32589. o[l] = u;
  32590. }), [o, () => D(yVe, te(te({
  32591. key: n
  32592. }, t), {}, {
  32593. ref: e
  32594. }), null)];
  32595. }
  32596. function _Ve(t) {
  32597. return bVe(t);
  32598. }
  32599. let _ae = 3, Oae, ra, OVe = 1, Sae = "", xae = "move-up", wae = !1, Cae = () => document.body, Tae, Pae = !1;
  32600. function SVe() {
  32601. return OVe++;
  32602. }
  32603. function xVe(t) {
  32604. t.top !== void 0 && (Oae = t.top, ra = null), t.duration !== void 0 && (_ae = t.duration), t.prefixCls !== void 0 && (Sae = t.prefixCls), t.getContainer !== void 0 && (Cae = t.getContainer, ra = null), t.transitionName !== void 0 && (xae = t.transitionName, ra = null, wae = !0), t.maxCount !== void 0 && (Tae = t.maxCount, ra = null), t.rtl !== void 0 && (Pae = t.rtl);
  32605. }
  32606. function wVe(t, e) {
  32607. if (ra) {
  32608. e(ra);
  32609. return;
  32610. }
  32611. hC.newInstance({
  32612. appContext: t.appContext,
  32613. prefixCls: t.prefixCls || Sae,
  32614. rootPrefixCls: t.rootPrefixCls,
  32615. transitionName: xae,
  32616. hasTransitionName: wae,
  32617. style: {
  32618. top: Oae
  32619. },
  32620. getContainer: Cae || t.getPopupContainer,
  32621. maxCount: Tae,
  32622. name: "message",
  32623. useStyle: M8
  32624. }, (n) => {
  32625. if (ra) {
  32626. e(ra);
  32627. return;
  32628. }
  32629. ra = n, e(n);
  32630. });
  32631. }
  32632. const $ae = {
  32633. info: cp,
  32634. success: Df,
  32635. error: cs,
  32636. warning: Rf,
  32637. loading: Ql
  32638. }, CVe = Object.keys($ae);
  32639. function TVe(t) {
  32640. const e = t.duration !== void 0 ? t.duration : _ae, n = t.key || SVe(), r = new Promise((a) => {
  32641. const o = () => (typeof t.onClose == "function" && t.onClose(), a(!0));
  32642. wVe(t, (s) => {
  32643. s.notice({
  32644. key: n,
  32645. duration: e,
  32646. style: t.style || {},
  32647. class: t.class,
  32648. content: (l) => {
  32649. let {
  32650. prefixCls: u
  32651. } = l;
  32652. const c = $ae[t.type], f = c ? D(c, null, null) : "", d = Re(`${u}-custom-content`, {
  32653. [`${u}-${t.type}`]: t.type,
  32654. [`${u}-rtl`]: Pae === !0
  32655. });
  32656. return D("div", {
  32657. class: d
  32658. }, [typeof t.icon == "function" ? t.icon() : t.icon || f, D("span", null, [typeof t.content == "function" ? t.content() : t.content])]);
  32659. },
  32660. onClose: o,
  32661. onClick: t.onClick
  32662. });
  32663. });
  32664. }), i = () => {
  32665. ra && ra.removeNotice(n);
  32666. };
  32667. return i.then = (a, o) => r.then(a, o), i.promise = r, i;
  32668. }
  32669. function PVe(t) {
  32670. return Object.prototype.toString.call(t) === "[object Object]" && !!t.content;
  32671. }
  32672. const Wh = {
  32673. open: TVe,
  32674. config: xVe,
  32675. destroy(t) {
  32676. if (ra)
  32677. if (t) {
  32678. const {
  32679. removeNotice: e
  32680. } = ra;
  32681. e(t);
  32682. } else {
  32683. const {
  32684. destroy: e
  32685. } = ra;
  32686. e(), ra = null;
  32687. }
  32688. }
  32689. };
  32690. function $Ve(t, e) {
  32691. t[e] = (n, r, i) => PVe(n) ? t.open(k(k({}, n), {
  32692. type: e
  32693. })) : (typeof r == "function" && (i = r, r = void 0), t.open({
  32694. content: n,
  32695. duration: r,
  32696. type: e,
  32697. onClose: i
  32698. }));
  32699. }
  32700. CVe.forEach((t) => $Ve(Wh, t));
  32701. Wh.warn = Wh.warning;
  32702. Wh.useMessage = _Ve;
  32703. const AVe = (t) => {
  32704. const {
  32705. componentCls: e,
  32706. width: n,
  32707. notificationMarginEdge: r
  32708. } = t, i = new qt("antNotificationTopFadeIn", {
  32709. "0%": {
  32710. marginTop: "-100%",
  32711. opacity: 0
  32712. },
  32713. "100%": {
  32714. marginTop: 0,
  32715. opacity: 1
  32716. }
  32717. }), a = new qt("antNotificationBottomFadeIn", {
  32718. "0%": {
  32719. marginBottom: "-100%",
  32720. opacity: 0
  32721. },
  32722. "100%": {
  32723. marginBottom: 0,
  32724. opacity: 1
  32725. }
  32726. }), o = new qt("antNotificationLeftFadeIn", {
  32727. "0%": {
  32728. right: {
  32729. _skip_check_: !0,
  32730. value: n
  32731. },
  32732. opacity: 0
  32733. },
  32734. "100%": {
  32735. right: {
  32736. _skip_check_: !0,
  32737. value: 0
  32738. },
  32739. opacity: 1
  32740. }
  32741. });
  32742. return {
  32743. [`&${e}-top, &${e}-bottom`]: {
  32744. marginInline: 0
  32745. },
  32746. [`&${e}-top`]: {
  32747. [`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]: {
  32748. animationName: i
  32749. }
  32750. },
  32751. [`&${e}-bottom`]: {
  32752. [`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]: {
  32753. animationName: a
  32754. }
  32755. },
  32756. [`&${e}-topLeft, &${e}-bottomLeft`]: {
  32757. marginInlineEnd: 0,
  32758. marginInlineStart: r,
  32759. [`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]: {
  32760. animationName: o
  32761. }
  32762. }
  32763. };
  32764. }, EVe = (t) => {
  32765. const {
  32766. iconCls: e,
  32767. componentCls: n,
  32768. // .ant-notification
  32769. boxShadowSecondary: r,
  32770. fontSizeLG: i,
  32771. notificationMarginBottom: a,
  32772. borderRadiusLG: o,
  32773. colorSuccess: s,
  32774. colorInfo: l,
  32775. colorWarning: u,
  32776. colorError: c,
  32777. colorTextHeading: f,
  32778. notificationBg: d,
  32779. notificationPadding: h,
  32780. notificationMarginEdge: p,
  32781. motionDurationMid: v,
  32782. motionEaseInOut: g,
  32783. fontSize: m,
  32784. lineHeight: y,
  32785. width: _,
  32786. notificationIconSize: O
  32787. } = t, S = `${n}-notice`, x = new qt("antNotificationFadeIn", {
  32788. "0%": {
  32789. left: {
  32790. _skip_check_: !0,
  32791. value: _
  32792. },
  32793. opacity: 0
  32794. },
  32795. "100%": {
  32796. left: {
  32797. _skip_check_: !0,
  32798. value: 0
  32799. },
  32800. opacity: 1
  32801. }
  32802. }), C = new qt("antNotificationFadeOut", {
  32803. "0%": {
  32804. maxHeight: t.animationMaxHeight,
  32805. marginBottom: a,
  32806. opacity: 1
  32807. },
  32808. "100%": {
  32809. maxHeight: 0,
  32810. marginBottom: 0,
  32811. paddingTop: 0,
  32812. paddingBottom: 0,
  32813. opacity: 0
  32814. }
  32815. });
  32816. return [
  32817. // ============================ Holder ============================
  32818. {
  32819. [n]: k(k(k(k({}, Gn(t)), {
  32820. position: "fixed",
  32821. zIndex: t.zIndexPopup,
  32822. marginInlineEnd: p,
  32823. [`${n}-hook-holder`]: {
  32824. position: "relative"
  32825. },
  32826. [`&${n}-top, &${n}-bottom`]: {
  32827. [`${n}-notice`]: {
  32828. marginInline: "auto auto"
  32829. }
  32830. },
  32831. [`&${n}-topLeft, &${n}-bottomLeft`]: {
  32832. [`${n}-notice`]: {
  32833. marginInlineEnd: "auto",
  32834. marginInlineStart: 0
  32835. }
  32836. },
  32837. // animation
  32838. [`${n}-fade-enter, ${n}-fade-appear`]: {
  32839. animationDuration: t.motionDurationMid,
  32840. animationTimingFunction: g,
  32841. animationFillMode: "both",
  32842. opacity: 0,
  32843. animationPlayState: "paused"
  32844. },
  32845. [`${n}-fade-leave`]: {
  32846. animationTimingFunction: g,
  32847. animationFillMode: "both",
  32848. animationDuration: v,
  32849. animationPlayState: "paused"
  32850. },
  32851. [`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]: {
  32852. animationName: x,
  32853. animationPlayState: "running"
  32854. },
  32855. [`${n}-fade-leave${n}-fade-leave-active`]: {
  32856. animationName: C,
  32857. animationPlayState: "running"
  32858. }
  32859. }), AVe(t)), {
  32860. // RTL
  32861. "&-rtl": {
  32862. direction: "rtl",
  32863. [`${n}-notice-btn`]: {
  32864. float: "left"
  32865. }
  32866. }
  32867. })
  32868. },
  32869. // ============================ Notice ============================
  32870. {
  32871. [S]: {
  32872. position: "relative",
  32873. width: _,
  32874. maxWidth: `calc(100vw - ${p * 2}px)`,
  32875. marginBottom: a,
  32876. marginInlineStart: "auto",
  32877. padding: h,
  32878. overflow: "hidden",
  32879. lineHeight: y,
  32880. wordWrap: "break-word",
  32881. background: d,
  32882. borderRadius: o,
  32883. boxShadow: r,
  32884. [`${n}-close-icon`]: {
  32885. fontSize: m,
  32886. cursor: "pointer"
  32887. },
  32888. [`${S}-message`]: {
  32889. marginBottom: t.marginXS,
  32890. color: f,
  32891. fontSize: i,
  32892. lineHeight: t.lineHeightLG
  32893. },
  32894. [`${S}-description`]: {
  32895. fontSize: m
  32896. },
  32897. [`&${S}-closable ${S}-message`]: {
  32898. paddingInlineEnd: t.paddingLG
  32899. },
  32900. [`${S}-with-icon ${S}-message`]: {
  32901. marginBottom: t.marginXS,
  32902. marginInlineStart: t.marginSM + O,
  32903. fontSize: i
  32904. },
  32905. [`${S}-with-icon ${S}-description`]: {
  32906. marginInlineStart: t.marginSM + O,
  32907. fontSize: m
  32908. },
  32909. // Icon & color style in different selector level
  32910. // https://github.com/ant-design/ant-design/issues/16503
  32911. // https://github.com/ant-design/ant-design/issues/15512
  32912. [`${S}-icon`]: {
  32913. position: "absolute",
  32914. fontSize: O,
  32915. lineHeight: 0,
  32916. // icon-font
  32917. [`&-success${e}`]: {
  32918. color: s
  32919. },
  32920. [`&-info${e}`]: {
  32921. color: l
  32922. },
  32923. [`&-warning${e}`]: {
  32924. color: u
  32925. },
  32926. [`&-error${e}`]: {
  32927. color: c
  32928. }
  32929. },
  32930. [`${S}-close`]: {
  32931. position: "absolute",
  32932. top: t.notificationPaddingVertical,
  32933. insetInlineEnd: t.notificationPaddingHorizontal,
  32934. color: t.colorIcon,
  32935. outline: "none",
  32936. width: t.notificationCloseButtonSize,
  32937. height: t.notificationCloseButtonSize,
  32938. borderRadius: t.borderRadiusSM,
  32939. transition: `background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,
  32940. display: "flex",
  32941. alignItems: "center",
  32942. justifyContent: "center",
  32943. "&:hover": {
  32944. color: t.colorIconHover,
  32945. backgroundColor: t.wireframe ? "transparent" : t.colorFillContent
  32946. }
  32947. },
  32948. [`${S}-btn`]: {
  32949. float: "right",
  32950. marginTop: t.marginSM
  32951. }
  32952. }
  32953. },
  32954. // ============================= Pure =============================
  32955. {
  32956. [`${S}-pure-panel`]: {
  32957. margin: 0
  32958. }
  32959. }
  32960. ];
  32961. }, I8 = pr("Notification", (t) => {
  32962. const e = t.paddingMD, n = t.paddingLG, r = bn(t, {
  32963. // default.less variables
  32964. notificationBg: t.colorBgElevated,
  32965. notificationPaddingVertical: e,
  32966. notificationPaddingHorizontal: n,
  32967. // index.less variables
  32968. notificationPadding: `${t.paddingMD}px ${t.paddingContentHorizontalLG}px`,
  32969. notificationMarginBottom: t.margin,
  32970. notificationMarginEdge: t.marginLG,
  32971. animationMaxHeight: 150,
  32972. notificationIconSize: t.fontSizeLG * t.lineHeightLG,
  32973. notificationCloseButtonSize: t.controlHeightLG * 0.55
  32974. });
  32975. return [EVe(r)];
  32976. }, (t) => ({
  32977. zIndexPopup: t.zIndexPopupBase + 50,
  32978. width: 384
  32979. }));
  32980. function Aae(t, e) {
  32981. return e || D("span", {
  32982. class: `${t}-close-x`
  32983. }, [D(tc, {
  32984. class: `${t}-close-icon`
  32985. }, null)]);
  32986. }
  32987. D(cp, null, null), D(Df, null, null), D(cs, null, null), D(Rf, null, null), D(Ql, null, null);
  32988. const MVe = {
  32989. success: Df,
  32990. info: cp,
  32991. error: cs,
  32992. warning: Rf
  32993. };
  32994. function Eae(t) {
  32995. let {
  32996. prefixCls: e,
  32997. icon: n,
  32998. type: r,
  32999. message: i,
  33000. description: a,
  33001. btn: o
  33002. } = t, s = null;
  33003. if (n)
  33004. s = D("span", {
  33005. class: `${e}-icon`
  33006. }, [$v(n)]);
  33007. else if (r) {
  33008. const l = MVe[r];
  33009. s = D(l, {
  33010. class: `${e}-icon ${e}-icon-${r}`
  33011. }, null);
  33012. }
  33013. return D("div", {
  33014. class: Re({
  33015. [`${e}-with-icon`]: s
  33016. }),
  33017. role: "alert"
  33018. }, [s, D("div", {
  33019. class: `${e}-message`
  33020. }, [i]), D("div", {
  33021. class: `${e}-description`
  33022. }, [a]), o && D("div", {
  33023. class: `${e}-btn`
  33024. }, [o])]);
  33025. }
  33026. ae({
  33027. name: "PurePanel",
  33028. inheritAttrs: !1,
  33029. props: ["prefixCls", "icon", "type", "message", "description", "btn", "closeIcon"],
  33030. setup(t) {
  33031. const {
  33032. getPrefixCls: e
  33033. } = hn("notification", t), n = V(() => t.prefixCls || e("notification")), r = V(() => `${n.value}-notice`), [, i] = I8(n);
  33034. return () => D(X2, te(te({}, t), {}, {
  33035. prefixCls: n.value,
  33036. class: Re(i.value, `${r.value}-pure-panel`),
  33037. noticeKey: "pure",
  33038. duration: null,
  33039. closable: t.closable,
  33040. closeIcon: Aae(n.value, t.closeIcon)
  33041. }), {
  33042. default: () => [D(Eae, {
  33043. prefixCls: r.value,
  33044. icon: t.icon,
  33045. type: t.type,
  33046. message: t.message,
  33047. description: t.description,
  33048. btn: t.btn
  33049. }, null)]
  33050. });
  33051. }
  33052. });
  33053. function Mae(t, e, n) {
  33054. let r;
  33055. switch (e = typeof e == "number" ? `${e}px` : e, n = typeof n == "number" ? `${n}px` : n, t) {
  33056. case "top":
  33057. r = {
  33058. left: "50%",
  33059. transform: "translateX(-50%)",
  33060. right: "auto",
  33061. top: e,
  33062. bottom: "auto"
  33063. };
  33064. break;
  33065. case "topLeft":
  33066. r = {
  33067. left: 0,
  33068. top: e,
  33069. bottom: "auto"
  33070. };
  33071. break;
  33072. case "topRight":
  33073. r = {
  33074. right: 0,
  33075. top: e,
  33076. bottom: "auto"
  33077. };
  33078. break;
  33079. case "bottom":
  33080. r = {
  33081. left: "50%",
  33082. transform: "translateX(-50%)",
  33083. right: "auto",
  33084. top: "auto",
  33085. bottom: n
  33086. };
  33087. break;
  33088. case "bottomLeft":
  33089. r = {
  33090. left: 0,
  33091. top: "auto",
  33092. bottom: n
  33093. };
  33094. break;
  33095. default:
  33096. r = {
  33097. right: 0,
  33098. top: "auto",
  33099. bottom: n
  33100. };
  33101. break;
  33102. }
  33103. return r;
  33104. }
  33105. function IVe(t) {
  33106. return {
  33107. name: `${t}-fade`
  33108. };
  33109. }
  33110. var DVe = function(t, e) {
  33111. var n = {};
  33112. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  33113. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  33114. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  33115. return n;
  33116. };
  33117. const o9 = 24, RVe = 4.5, kVe = ae({
  33118. name: "Holder",
  33119. inheritAttrs: !1,
  33120. props: ["prefixCls", "class", "type", "icon", "content", "onAllRemoved"],
  33121. setup(t, e) {
  33122. let {
  33123. expose: n
  33124. } = e;
  33125. const {
  33126. getPrefixCls: r,
  33127. getPopupContainer: i
  33128. } = hn("notification", t), a = V(() => t.prefixCls || r("notification")), o = (d) => {
  33129. var h, p;
  33130. return Mae(d, (h = t.top) !== null && h !== void 0 ? h : o9, (p = t.bottom) !== null && p !== void 0 ? p : o9);
  33131. }, [, s] = I8(a), l = () => Re(s.value, {
  33132. [`${a.value}-rtl`]: t.rtl
  33133. }), u = () => IVe(a.value), [c, f] = yae({
  33134. prefixCls: a.value,
  33135. getStyles: o,
  33136. getClassName: l,
  33137. motion: u,
  33138. closable: !0,
  33139. closeIcon: Aae(a.value),
  33140. duration: RVe,
  33141. getContainer: () => {
  33142. var d, h;
  33143. return ((d = t.getPopupContainer) === null || d === void 0 ? void 0 : d.call(t)) || ((h = i.value) === null || h === void 0 ? void 0 : h.call(i)) || document.body;
  33144. },
  33145. maxCount: t.maxCount,
  33146. hashId: s.value,
  33147. onAllRemoved: t.onAllRemoved
  33148. });
  33149. return n(k(k({}, c), {
  33150. prefixCls: a.value,
  33151. hashId: s
  33152. })), f;
  33153. }
  33154. });
  33155. function LVe(t) {
  33156. const e = ve(null), n = Symbol("notificationHolderKey"), r = (s) => {
  33157. if (!e.value)
  33158. return;
  33159. const {
  33160. open: l,
  33161. prefixCls: u,
  33162. hashId: c
  33163. } = e.value, f = `${u}-notice`, {
  33164. message: d,
  33165. description: h,
  33166. icon: p,
  33167. type: v,
  33168. btn: g,
  33169. class: m
  33170. } = s, y = DVe(s, ["message", "description", "icon", "type", "btn", "class"]);
  33171. return l(k(k({
  33172. placement: "topRight"
  33173. }, y), {
  33174. content: () => D(Eae, {
  33175. prefixCls: f,
  33176. icon: typeof p == "function" ? p() : p,
  33177. type: v,
  33178. message: typeof d == "function" ? d() : d,
  33179. description: typeof h == "function" ? h() : h,
  33180. btn: typeof g == "function" ? g() : g
  33181. }, null),
  33182. // @ts-ignore
  33183. class: Re(v && `${f}-${v}`, c, m)
  33184. }));
  33185. }, a = {
  33186. open: r,
  33187. destroy: (s) => {
  33188. var l, u;
  33189. s !== void 0 ? (l = e.value) === null || l === void 0 || l.close(s) : (u = e.value) === null || u === void 0 || u.destroy();
  33190. }
  33191. };
  33192. return ["success", "info", "warning", "error"].forEach((s) => {
  33193. a[s] = (l) => r(k(k({}, l), {
  33194. type: s
  33195. }));
  33196. }), [a, () => D(kVe, te(te({
  33197. key: n
  33198. }, t), {}, {
  33199. ref: e
  33200. }), null)];
  33201. }
  33202. function NVe(t) {
  33203. return LVe(t);
  33204. }
  33205. const Qd = {};
  33206. let Iae = 4.5, Dae = "24px", Rae = "24px", zR = "", kae = "topRight", Lae = () => document.body, Nae = null, VR = !1, Bae;
  33207. function BVe(t) {
  33208. const {
  33209. duration: e,
  33210. placement: n,
  33211. bottom: r,
  33212. top: i,
  33213. getContainer: a,
  33214. closeIcon: o,
  33215. prefixCls: s
  33216. } = t;
  33217. s !== void 0 && (zR = s), e !== void 0 && (Iae = e), n !== void 0 && (kae = n), r !== void 0 && (Rae = typeof r == "number" ? `${r}px` : r), i !== void 0 && (Dae = typeof i == "number" ? `${i}px` : i), a !== void 0 && (Lae = a), o !== void 0 && (Nae = o), t.rtl !== void 0 && (VR = t.rtl), t.maxCount !== void 0 && (Bae = t.maxCount);
  33218. }
  33219. function zVe(t, e) {
  33220. let {
  33221. prefixCls: n,
  33222. placement: r = kae,
  33223. getContainer: i = Lae,
  33224. top: a,
  33225. bottom: o,
  33226. closeIcon: s = Nae,
  33227. appContext: l
  33228. } = t;
  33229. const {
  33230. getPrefixCls: u
  33231. } = qVe(), c = u("notification", n || zR), f = `${c}-${r}-${VR}`, d = Qd[f];
  33232. if (d) {
  33233. Promise.resolve(d).then((p) => {
  33234. e(p);
  33235. });
  33236. return;
  33237. }
  33238. const h = Re(`${c}-${r}`, {
  33239. [`${c}-rtl`]: VR === !0
  33240. });
  33241. hC.newInstance({
  33242. name: "notification",
  33243. prefixCls: n || zR,
  33244. useStyle: I8,
  33245. class: h,
  33246. style: Mae(r, a ?? Dae, o ?? Rae),
  33247. appContext: l,
  33248. getContainer: i,
  33249. closeIcon: (p) => {
  33250. let {
  33251. prefixCls: v
  33252. } = p;
  33253. return D("span", {
  33254. class: `${v}-close-x`
  33255. }, [$v(s, {}, D(tc, {
  33256. class: `${v}-close-icon`
  33257. }, null))]);
  33258. },
  33259. maxCount: Bae,
  33260. hasTransitionName: !0
  33261. }, (p) => {
  33262. Qd[f] = p, e(p);
  33263. });
  33264. }
  33265. const VVe = {
  33266. success: g8,
  33267. info: V2,
  33268. error: y8,
  33269. warning: m8
  33270. };
  33271. function FVe(t) {
  33272. const {
  33273. icon: e,
  33274. type: n,
  33275. description: r,
  33276. message: i,
  33277. btn: a
  33278. } = t, o = t.duration === void 0 ? Iae : t.duration;
  33279. zVe(t, (s) => {
  33280. s.notice({
  33281. content: (l) => {
  33282. let {
  33283. prefixCls: u
  33284. } = l;
  33285. const c = `${u}-notice`;
  33286. let f = null;
  33287. if (e)
  33288. f = () => D("span", {
  33289. class: `${c}-icon`
  33290. }, [$v(e)]);
  33291. else if (n) {
  33292. const d = VVe[n];
  33293. f = () => D(d, {
  33294. class: `${c}-icon ${c}-icon-${n}`
  33295. }, null);
  33296. }
  33297. return D("div", {
  33298. class: f ? `${c}-with-icon` : ""
  33299. }, [f && f(), D("div", {
  33300. class: `${c}-message`
  33301. }, [!r && f ? D("span", {
  33302. class: `${c}-message-single-line-auto-margin`
  33303. }, null) : null, $v(i)]), D("div", {
  33304. class: `${c}-description`
  33305. }, [$v(r)]), a ? D("span", {
  33306. class: `${c}-btn`
  33307. }, [$v(a)]) : null]);
  33308. },
  33309. duration: o,
  33310. closable: !0,
  33311. onClose: t.onClose,
  33312. onClick: t.onClick,
  33313. key: t.key,
  33314. style: t.style || {},
  33315. class: t.class
  33316. });
  33317. });
  33318. }
  33319. const Bg = {
  33320. open: FVe,
  33321. close(t) {
  33322. Object.keys(Qd).forEach((e) => Promise.resolve(Qd[e]).then((n) => {
  33323. n.removeNotice(t);
  33324. }));
  33325. },
  33326. config: BVe,
  33327. destroy() {
  33328. Object.keys(Qd).forEach((t) => {
  33329. Promise.resolve(Qd[t]).then((e) => {
  33330. e.destroy();
  33331. }), delete Qd[t];
  33332. });
  33333. }
  33334. }, WVe = ["success", "info", "warning", "error"];
  33335. WVe.forEach((t) => {
  33336. Bg[t] = (e) => Bg.open(k(k({}, e), {
  33337. type: t
  33338. }));
  33339. });
  33340. Bg.warn = Bg.warning;
  33341. Bg.useNotification = NVe;
  33342. const QVe = `-ant-${Date.now()}-${Math.random()}`;
  33343. function HVe(t, e) {
  33344. const n = {}, r = (o, s) => {
  33345. let l = o.clone();
  33346. return l = (s == null ? void 0 : s(l)) || l, l.toRgbString();
  33347. }, i = (o, s) => {
  33348. const l = new Hn(o), u = Bh(l.toRgbString());
  33349. n[`${s}-color`] = r(l), n[`${s}-color-disabled`] = u[1], n[`${s}-color-hover`] = u[4], n[`${s}-color-active`] = u[6], n[`${s}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), n[`${s}-color-deprecated-bg`] = u[0], n[`${s}-color-deprecated-border`] = u[2];
  33350. };
  33351. if (e.primaryColor) {
  33352. i(e.primaryColor, "primary");
  33353. const o = new Hn(e.primaryColor), s = Bh(o.toRgbString());
  33354. s.forEach((u, c) => {
  33355. n[`primary-${c + 1}`] = u;
  33356. }), n["primary-color-deprecated-l-35"] = r(o, (u) => u.lighten(35)), n["primary-color-deprecated-l-20"] = r(o, (u) => u.lighten(20)), n["primary-color-deprecated-t-20"] = r(o, (u) => u.tint(20)), n["primary-color-deprecated-t-50"] = r(o, (u) => u.tint(50)), n["primary-color-deprecated-f-12"] = r(o, (u) => u.setAlpha(u.getAlpha() * 0.12));
  33357. const l = new Hn(s[0]);
  33358. n["primary-color-active-deprecated-f-30"] = r(l, (u) => u.setAlpha(u.getAlpha() * 0.3)), n["primary-color-active-deprecated-d-02"] = r(l, (u) => u.darken(2));
  33359. }
  33360. return e.successColor && i(e.successColor, "success"), e.warningColor && i(e.warningColor, "warning"), e.errorColor && i(e.errorColor, "error"), e.infoColor && i(e.infoColor, "info"), `
  33361. :root {
  33362. ${Object.keys(n).map((o) => `--${t}-${o}: ${n[o]};`).join(`
  33363. `)}
  33364. }
  33365. `.trim();
  33366. }
  33367. function GVe(t, e) {
  33368. const n = HVe(t, e);
  33369. is() ? Eb(n, `${QVe}-dynamic-theme`) : aa(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
  33370. }
  33371. const jVe = (t) => {
  33372. const [e, n] = pm();
  33373. return bR(V(() => ({
  33374. theme: e.value,
  33375. token: n.value,
  33376. hashId: "",
  33377. path: ["ant-design-icons", t.value]
  33378. })), () => [{
  33379. [`.${t.value}`]: k(k({}, hm()), {
  33380. [`.${t.value} .${t.value}-icon`]: {
  33381. display: "block"
  33382. }
  33383. })
  33384. }]);
  33385. };
  33386. function ZVe(t, e) {
  33387. const n = V(() => (t == null ? void 0 : t.value) || {}), r = V(() => n.value.inherit === !1 || !(e != null && e.value) ? pre : e.value);
  33388. return V(() => {
  33389. if (!(t != null && t.value))
  33390. return e == null ? void 0 : e.value;
  33391. const a = k({}, r.value.components);
  33392. return Object.keys(t.value.components || {}).forEach((o) => {
  33393. a[o] = k(k({}, a[o]), t.value.components[o]);
  33394. }), k(k(k({}, r.value), n.value), {
  33395. token: k(k({}, r.value.token), n.value.token),
  33396. components: a
  33397. });
  33398. });
  33399. }
  33400. var UVe = function(t, e) {
  33401. var n = {};
  33402. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  33403. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  33404. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  33405. return n;
  33406. };
  33407. const XVe = "ant";
  33408. function Hv() {
  33409. return gi.prefixCls || XVe;
  33410. }
  33411. function zae() {
  33412. return gi.iconPrefixCls || BN;
  33413. }
  33414. const D8 = zn({}), gi = zn({});
  33415. Vt(() => {
  33416. k(gi, D8), gi.prefixCls = Hv(), gi.iconPrefixCls = zae(), gi.getPrefixCls = (t, e) => e || (t ? `${gi.prefixCls}-${t}` : gi.prefixCls), gi.getRootPrefixCls = () => gi.prefixCls ? gi.prefixCls : Hv();
  33417. });
  33418. let vE;
  33419. const YVe = (t) => {
  33420. vE && vE(), vE = Vt(() => {
  33421. k(D8, zn(t)), k(gi, zn(t));
  33422. }), t.theme && GVe(Hv(), t.theme);
  33423. }, qVe = () => ({
  33424. getPrefixCls: (t, e) => e || (t ? `${Hv()}-${t}` : Hv()),
  33425. getIconPrefixCls: zae,
  33426. getRootPrefixCls: () => gi.prefixCls ? gi.prefixCls : Hv()
  33427. }), Gv = ae({
  33428. compatConfig: {
  33429. MODE: 3
  33430. },
  33431. name: "AConfigProvider",
  33432. inheritAttrs: !1,
  33433. props: dke(),
  33434. setup(t, e) {
  33435. let {
  33436. slots: n
  33437. } = e;
  33438. const r = b2(), i = (I, B) => {
  33439. const {
  33440. prefixCls: Q = "ant"
  33441. } = t;
  33442. if (B) return B;
  33443. const W = Q || r.getPrefixCls("");
  33444. return I ? `${W}-${I}` : W;
  33445. }, a = V(() => t.iconPrefixCls || r.iconPrefixCls.value || BN), o = V(() => a.value !== r.iconPrefixCls.value), s = V(() => {
  33446. var I;
  33447. return t.csp || ((I = r.csp) === null || I === void 0 ? void 0 : I.value);
  33448. }), l = jVe(a), u = ZVe(V(() => t.theme), V(() => {
  33449. var I;
  33450. return (I = r.theme) === null || I === void 0 ? void 0 : I.value;
  33451. })), c = (I) => (t.renderEmpty || n.renderEmpty || r.renderEmpty || ZLe)(I), f = V(() => {
  33452. var I, B;
  33453. return (I = t.autoInsertSpaceInButton) !== null && I !== void 0 ? I : (B = r.autoInsertSpaceInButton) === null || B === void 0 ? void 0 : B.value;
  33454. }), d = V(() => {
  33455. var I;
  33456. return t.locale || ((I = r.locale) === null || I === void 0 ? void 0 : I.value);
  33457. });
  33458. me(d, () => {
  33459. D8.locale = d.value;
  33460. }, {
  33461. immediate: !0
  33462. });
  33463. const h = V(() => {
  33464. var I;
  33465. return t.direction || ((I = r.direction) === null || I === void 0 ? void 0 : I.value);
  33466. }), p = V(() => {
  33467. var I, B;
  33468. return (I = t.space) !== null && I !== void 0 ? I : (B = r.space) === null || B === void 0 ? void 0 : B.value;
  33469. }), v = V(() => {
  33470. var I, B;
  33471. return (I = t.virtual) !== null && I !== void 0 ? I : (B = r.virtual) === null || B === void 0 ? void 0 : B.value;
  33472. }), g = V(() => {
  33473. var I, B;
  33474. return (I = t.dropdownMatchSelectWidth) !== null && I !== void 0 ? I : (B = r.dropdownMatchSelectWidth) === null || B === void 0 ? void 0 : B.value;
  33475. }), m = V(() => {
  33476. var I;
  33477. return t.getTargetContainer !== void 0 ? t.getTargetContainer : (I = r.getTargetContainer) === null || I === void 0 ? void 0 : I.value;
  33478. }), y = V(() => {
  33479. var I;
  33480. return t.getPopupContainer !== void 0 ? t.getPopupContainer : (I = r.getPopupContainer) === null || I === void 0 ? void 0 : I.value;
  33481. }), _ = V(() => {
  33482. var I;
  33483. return t.pageHeader !== void 0 ? t.pageHeader : (I = r.pageHeader) === null || I === void 0 ? void 0 : I.value;
  33484. }), O = V(() => {
  33485. var I;
  33486. return t.input !== void 0 ? t.input : (I = r.input) === null || I === void 0 ? void 0 : I.value;
  33487. }), S = V(() => {
  33488. var I;
  33489. return t.pagination !== void 0 ? t.pagination : (I = r.pagination) === null || I === void 0 ? void 0 : I.value;
  33490. }), x = V(() => {
  33491. var I;
  33492. return t.form !== void 0 ? t.form : (I = r.form) === null || I === void 0 ? void 0 : I.value;
  33493. }), C = V(() => {
  33494. var I;
  33495. return t.select !== void 0 ? t.select : (I = r.select) === null || I === void 0 ? void 0 : I.value;
  33496. }), P = V(() => t.componentSize), $ = V(() => t.componentDisabled), T = V(() => {
  33497. var I, B;
  33498. return (I = t.wave) !== null && I !== void 0 ? I : (B = r.wave) === null || B === void 0 ? void 0 : B.value;
  33499. }), E = {
  33500. csp: s,
  33501. autoInsertSpaceInButton: f,
  33502. locale: d,
  33503. direction: h,
  33504. space: p,
  33505. virtual: v,
  33506. dropdownMatchSelectWidth: g,
  33507. getPrefixCls: i,
  33508. iconPrefixCls: a,
  33509. theme: V(() => {
  33510. var I, B;
  33511. return (I = u.value) !== null && I !== void 0 ? I : (B = r.theme) === null || B === void 0 ? void 0 : B.value;
  33512. }),
  33513. renderEmpty: c,
  33514. getTargetContainer: m,
  33515. getPopupContainer: y,
  33516. pageHeader: _,
  33517. input: O,
  33518. pagination: S,
  33519. form: x,
  33520. select: C,
  33521. componentSize: P,
  33522. componentDisabled: $,
  33523. transformCellText: V(() => t.transformCellText),
  33524. wave: T
  33525. }, M = V(() => {
  33526. const I = u.value || {}, {
  33527. algorithm: B,
  33528. token: Q
  33529. } = I, W = UVe(I, ["algorithm", "token"]), H = B && (!Array.isArray(B) || B.length > 0) ? Kne(B) : void 0;
  33530. return k(k({}, W), {
  33531. theme: H,
  33532. token: k(k({}, C2), Q)
  33533. });
  33534. }), R = V(() => {
  33535. var I, B;
  33536. let Q = {};
  33537. return d.value && (Q = ((I = d.value.Form) === null || I === void 0 ? void 0 : I.defaultValidateMessages) || ((B = Nu.Form) === null || B === void 0 ? void 0 : B.defaultValidateMessages) || {}), t.form && t.form.validateMessages && (Q = k(k({}, Q), t.form.validateMessages)), Q;
  33538. });
  33539. hke(E), cke({
  33540. validateMessages: R
  33541. }), Sre(P), zne($);
  33542. const N = (I) => {
  33543. var B, Q;
  33544. let W = o.value ? l((B = n.default) === null || B === void 0 ? void 0 : B.call(n)) : (Q = n.default) === null || Q === void 0 ? void 0 : Q.call(n);
  33545. if (t.theme) {
  33546. const H = /* @__PURE__ */ function() {
  33547. return W;
  33548. }();
  33549. W = D(WLe, {
  33550. value: M.value
  33551. }, {
  33552. default: () => [H]
  33553. });
  33554. }
  33555. return D(iVe, {
  33556. locale: d.value || I,
  33557. ANT_MARK__: BR
  33558. }, {
  33559. default: () => [W]
  33560. });
  33561. };
  33562. return Vt(() => {
  33563. h.value && (Wh.config({
  33564. rtl: h.value === "rtl"
  33565. }), Bg.config({
  33566. rtl: h.value === "rtl"
  33567. }));
  33568. }), () => D(Fne, {
  33569. children: (I, B, Q) => N(Q)
  33570. }, null);
  33571. }
  33572. });
  33573. Gv.config = YVe;
  33574. Gv.install = function(t) {
  33575. t.component(Gv.name, Gv);
  33576. };
  33577. const KVe = (t) => {
  33578. const {
  33579. componentCls: e,
  33580. sizePaddingEdgeHorizontal: n,
  33581. colorSplit: r,
  33582. lineWidth: i
  33583. } = t;
  33584. return {
  33585. [e]: k(k({}, Gn(t)), {
  33586. borderBlockStart: `${i}px solid ${r}`,
  33587. // vertical
  33588. "&-vertical": {
  33589. position: "relative",
  33590. top: "-0.06em",
  33591. display: "inline-block",
  33592. height: "0.9em",
  33593. margin: `0 ${t.dividerVerticalGutterMargin}px`,
  33594. verticalAlign: "middle",
  33595. borderTop: 0,
  33596. borderInlineStart: `${i}px solid ${r}`
  33597. },
  33598. "&-horizontal": {
  33599. display: "flex",
  33600. clear: "both",
  33601. width: "100%",
  33602. minWidth: "100%",
  33603. margin: `${t.dividerHorizontalGutterMargin}px 0`
  33604. },
  33605. [`&-horizontal${e}-with-text`]: {
  33606. display: "flex",
  33607. alignItems: "center",
  33608. margin: `${t.dividerHorizontalWithTextGutterMargin}px 0`,
  33609. color: t.colorTextHeading,
  33610. fontWeight: 500,
  33611. fontSize: t.fontSizeLG,
  33612. whiteSpace: "nowrap",
  33613. textAlign: "center",
  33614. borderBlockStart: `0 ${r}`,
  33615. "&::before, &::after": {
  33616. position: "relative",
  33617. width: "50%",
  33618. borderBlockStart: `${i}px solid transparent`,
  33619. // Chrome not accept `inherit` in `border-top`
  33620. borderBlockStartColor: "inherit",
  33621. borderBlockEnd: 0,
  33622. transform: "translateY(50%)",
  33623. content: "''"
  33624. }
  33625. },
  33626. [`&-horizontal${e}-with-text-left`]: {
  33627. "&::before": {
  33628. width: "5%"
  33629. },
  33630. "&::after": {
  33631. width: "95%"
  33632. }
  33633. },
  33634. [`&-horizontal${e}-with-text-right`]: {
  33635. "&::before": {
  33636. width: "95%"
  33637. },
  33638. "&::after": {
  33639. width: "5%"
  33640. }
  33641. },
  33642. [`${e}-inner-text`]: {
  33643. display: "inline-block",
  33644. padding: "0 1em"
  33645. },
  33646. "&-dashed": {
  33647. background: "none",
  33648. borderColor: r,
  33649. borderStyle: "dashed",
  33650. borderWidth: `${i}px 0 0`
  33651. },
  33652. [`&-horizontal${e}-with-text${e}-dashed`]: {
  33653. "&::before, &::after": {
  33654. borderStyle: "dashed none none"
  33655. }
  33656. },
  33657. [`&-vertical${e}-dashed`]: {
  33658. borderInlineStartWidth: i,
  33659. borderInlineEnd: 0,
  33660. borderBlockStart: 0,
  33661. borderBlockEnd: 0
  33662. },
  33663. [`&-plain${e}-with-text`]: {
  33664. color: t.colorText,
  33665. fontWeight: "normal",
  33666. fontSize: t.fontSize
  33667. },
  33668. [`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]: {
  33669. "&::before": {
  33670. width: 0
  33671. },
  33672. "&::after": {
  33673. width: "100%"
  33674. },
  33675. [`${e}-inner-text`]: {
  33676. paddingInlineStart: n
  33677. }
  33678. },
  33679. [`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]: {
  33680. "&::before": {
  33681. width: "100%"
  33682. },
  33683. "&::after": {
  33684. width: 0
  33685. },
  33686. [`${e}-inner-text`]: {
  33687. paddingInlineEnd: n
  33688. }
  33689. }
  33690. })
  33691. };
  33692. }, JVe = pr("Divider", (t) => {
  33693. const e = bn(t, {
  33694. dividerVerticalGutterMargin: t.marginXS,
  33695. dividerHorizontalWithTextGutterMargin: t.margin,
  33696. dividerHorizontalGutterMargin: t.marginLG
  33697. });
  33698. return [KVe(e)];
  33699. }, {
  33700. sizePaddingEdgeHorizontal: 0
  33701. }), eFe = () => ({
  33702. prefixCls: String,
  33703. type: {
  33704. type: String,
  33705. default: "horizontal"
  33706. },
  33707. dashed: {
  33708. type: Boolean,
  33709. default: !1
  33710. },
  33711. orientation: {
  33712. type: String,
  33713. default: "center"
  33714. },
  33715. plain: {
  33716. type: Boolean,
  33717. default: !1
  33718. },
  33719. orientationMargin: [String, Number]
  33720. }), tFe = ae({
  33721. name: "ADivider",
  33722. inheritAttrs: !1,
  33723. compatConfig: {
  33724. MODE: 3
  33725. },
  33726. props: eFe(),
  33727. setup(t, e) {
  33728. let {
  33729. slots: n,
  33730. attrs: r
  33731. } = e;
  33732. const {
  33733. prefixCls: i,
  33734. direction: a
  33735. } = hn("divider", t), [o, s] = JVe(i), l = V(() => t.orientation === "left" && t.orientationMargin != null), u = V(() => t.orientation === "right" && t.orientationMargin != null), c = V(() => {
  33736. const {
  33737. type: h,
  33738. dashed: p,
  33739. plain: v
  33740. } = t, g = i.value;
  33741. return {
  33742. [g]: !0,
  33743. [s.value]: !!s.value,
  33744. [`${g}-${h}`]: !0,
  33745. [`${g}-dashed`]: !!p,
  33746. [`${g}-plain`]: !!v,
  33747. [`${g}-rtl`]: a.value === "rtl",
  33748. [`${g}-no-default-orientation-margin-left`]: l.value,
  33749. [`${g}-no-default-orientation-margin-right`]: u.value
  33750. };
  33751. }), f = V(() => {
  33752. const h = typeof t.orientationMargin == "number" ? `${t.orientationMargin}px` : t.orientationMargin;
  33753. return k(k({}, l.value && {
  33754. marginLeft: h
  33755. }), u.value && {
  33756. marginRight: h
  33757. });
  33758. }), d = V(() => t.orientation.length > 0 ? "-" + t.orientation : t.orientation);
  33759. return () => {
  33760. var h;
  33761. const p = qr((h = n.default) === null || h === void 0 ? void 0 : h.call(n));
  33762. return o(D("div", te(te({}, r), {}, {
  33763. class: [c.value, p.length ? `${i.value}-with-text ${i.value}-with-text${d.value}` : "", r.class],
  33764. role: "separator"
  33765. }), [p.length ? D("span", {
  33766. class: `${i.value}-inner-text`,
  33767. style: f.value
  33768. }, [p]) : null]));
  33769. };
  33770. }
  33771. }), nFe = fm(tFe), Hy = (t) => t != null && (Array.isArray(t) ? Zl(t).length : !0);
  33772. function R8(t) {
  33773. return Hy(t.prefix) || Hy(t.suffix) || Hy(t.allowClear);
  33774. }
  33775. function tw(t) {
  33776. return Hy(t.addonBefore) || Hy(t.addonAfter);
  33777. }
  33778. function FR(t) {
  33779. return typeof t > "u" || t === null ? "" : String(t);
  33780. }
  33781. function Gy(t, e, n, r) {
  33782. if (!n)
  33783. return;
  33784. const i = e;
  33785. if (e.type === "click") {
  33786. Object.defineProperty(i, "target", {
  33787. writable: !0
  33788. }), Object.defineProperty(i, "currentTarget", {
  33789. writable: !0
  33790. });
  33791. const a = t.cloneNode(!0);
  33792. i.target = a, i.currentTarget = a, a.value = "", n(i);
  33793. return;
  33794. }
  33795. if (r !== void 0) {
  33796. Object.defineProperty(i, "target", {
  33797. writable: !0
  33798. }), Object.defineProperty(i, "currentTarget", {
  33799. writable: !0
  33800. }), i.target = t, i.currentTarget = t, t.value = r, n(i);
  33801. return;
  33802. }
  33803. n(i);
  33804. }
  33805. function Vae(t, e) {
  33806. if (!t) return;
  33807. t.focus(e);
  33808. const {
  33809. cursor: n
  33810. } = e || {};
  33811. if (n) {
  33812. const r = t.value.length;
  33813. switch (n) {
  33814. case "start":
  33815. t.setSelectionRange(0, 0);
  33816. break;
  33817. case "end":
  33818. t.setSelectionRange(r, r);
  33819. break;
  33820. default:
  33821. t.setSelectionRange(0, r);
  33822. }
  33823. }
  33824. }
  33825. const rFe = () => ({
  33826. addonBefore: oe.any,
  33827. addonAfter: oe.any,
  33828. prefix: oe.any,
  33829. suffix: oe.any,
  33830. clearIcon: oe.any,
  33831. affixWrapperClassName: String,
  33832. groupClassName: String,
  33833. wrapperClassName: String,
  33834. inputClassName: String,
  33835. allowClear: {
  33836. type: Boolean,
  33837. default: void 0
  33838. }
  33839. }), Fae = () => k(k({}, rFe()), {
  33840. value: {
  33841. type: [String, Number, Symbol],
  33842. default: void 0
  33843. },
  33844. defaultValue: {
  33845. type: [String, Number, Symbol],
  33846. default: void 0
  33847. },
  33848. inputElement: oe.any,
  33849. prefixCls: String,
  33850. disabled: {
  33851. type: Boolean,
  33852. default: void 0
  33853. },
  33854. focused: {
  33855. type: Boolean,
  33856. default: void 0
  33857. },
  33858. triggerFocus: Function,
  33859. readonly: {
  33860. type: Boolean,
  33861. default: void 0
  33862. },
  33863. handleReset: Function,
  33864. hidden: {
  33865. type: Boolean,
  33866. default: void 0
  33867. }
  33868. }), Wae = () => k(k({}, Fae()), {
  33869. id: String,
  33870. placeholder: {
  33871. type: [String, Number]
  33872. },
  33873. autocomplete: String,
  33874. type: rr("text"),
  33875. name: String,
  33876. size: {
  33877. type: String
  33878. },
  33879. autofocus: {
  33880. type: Boolean,
  33881. default: void 0
  33882. },
  33883. lazy: {
  33884. type: Boolean,
  33885. default: !0
  33886. },
  33887. maxlength: Number,
  33888. loading: {
  33889. type: Boolean,
  33890. default: void 0
  33891. },
  33892. bordered: {
  33893. type: Boolean,
  33894. default: void 0
  33895. },
  33896. showCount: {
  33897. type: [Boolean, Object]
  33898. },
  33899. htmlSize: Number,
  33900. onPressEnter: Function,
  33901. onKeydown: Function,
  33902. onKeyup: Function,
  33903. onFocus: Function,
  33904. onBlur: Function,
  33905. onChange: Function,
  33906. onInput: Function,
  33907. "onUpdate:value": Function,
  33908. onCompositionstart: Function,
  33909. onCompositionend: Function,
  33910. valueModifiers: Object,
  33911. hidden: {
  33912. type: Boolean,
  33913. default: void 0
  33914. },
  33915. status: String
  33916. }), iFe = ae({
  33917. name: "BaseInput",
  33918. inheritAttrs: !1,
  33919. props: Fae(),
  33920. setup(t, e) {
  33921. let {
  33922. slots: n,
  33923. attrs: r
  33924. } = e;
  33925. const i = ee(), a = (s) => {
  33926. var l;
  33927. if (!((l = i.value) === null || l === void 0) && l.contains(s.target)) {
  33928. const {
  33929. triggerFocus: u
  33930. } = t;
  33931. u == null || u();
  33932. }
  33933. }, o = () => {
  33934. var s;
  33935. const {
  33936. allowClear: l,
  33937. value: u,
  33938. disabled: c,
  33939. readonly: f,
  33940. handleReset: d,
  33941. suffix: h = n.suffix,
  33942. prefixCls: p
  33943. } = t;
  33944. if (!l)
  33945. return null;
  33946. const v = !c && !f && u, g = `${p}-clear-icon`, m = ((s = n.clearIcon) === null || s === void 0 ? void 0 : s.call(n)) || "*";
  33947. return D("span", {
  33948. onClick: d,
  33949. onMousedown: (y) => y.preventDefault(),
  33950. class: Re({
  33951. [`${g}-hidden`]: !v,
  33952. [`${g}-has-suffix`]: !!h
  33953. }, g),
  33954. role: "button",
  33955. tabindex: -1
  33956. }, [m]);
  33957. };
  33958. return () => {
  33959. var s, l;
  33960. const {
  33961. focused: u,
  33962. value: c,
  33963. disabled: f,
  33964. allowClear: d,
  33965. readonly: h,
  33966. hidden: p,
  33967. prefixCls: v,
  33968. prefix: g = (s = n.prefix) === null || s === void 0 ? void 0 : s.call(n),
  33969. suffix: m = (l = n.suffix) === null || l === void 0 ? void 0 : l.call(n),
  33970. addonAfter: y = n.addonAfter,
  33971. addonBefore: _ = n.addonBefore,
  33972. inputElement: O,
  33973. affixWrapperClassName: S,
  33974. wrapperClassName: x,
  33975. groupClassName: C
  33976. } = t;
  33977. let P = xr(O, {
  33978. value: c,
  33979. hidden: p
  33980. });
  33981. if (R8({
  33982. prefix: g,
  33983. suffix: m,
  33984. allowClear: d
  33985. })) {
  33986. const $ = `${v}-affix-wrapper`, T = Re($, {
  33987. [`${$}-disabled`]: f,
  33988. [`${$}-focused`]: u,
  33989. [`${$}-readonly`]: h,
  33990. [`${$}-input-with-clear-btn`]: m && d && c
  33991. }, !tw({
  33992. addonAfter: y,
  33993. addonBefore: _
  33994. }) && r.class, S), E = (m || d) && D("span", {
  33995. class: `${v}-suffix`
  33996. }, [o(), m]);
  33997. P = D("span", {
  33998. class: T,
  33999. style: r.style,
  34000. hidden: !tw({
  34001. addonAfter: y,
  34002. addonBefore: _
  34003. }) && p,
  34004. onMousedown: a,
  34005. ref: i
  34006. }, [g && D("span", {
  34007. class: `${v}-prefix`
  34008. }, [g]), xr(O, {
  34009. style: null,
  34010. value: c,
  34011. hidden: null
  34012. }), E]);
  34013. }
  34014. if (tw({
  34015. addonAfter: y,
  34016. addonBefore: _
  34017. })) {
  34018. const $ = `${v}-group`, T = `${$}-addon`, E = Re(`${v}-wrapper`, $, x), M = Re(`${v}-group-wrapper`, r.class, C);
  34019. return D("span", {
  34020. class: M,
  34021. style: r.style,
  34022. hidden: p
  34023. }, [D("span", {
  34024. class: E
  34025. }, [_ && D("span", {
  34026. class: T
  34027. }, [_]), xr(P, {
  34028. style: null,
  34029. hidden: null
  34030. }), y && D("span", {
  34031. class: T
  34032. }, [y])])]);
  34033. }
  34034. return P;
  34035. };
  34036. }
  34037. });
  34038. var aFe = function(t, e) {
  34039. var n = {};
  34040. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  34041. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  34042. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  34043. return n;
  34044. };
  34045. const oFe = ae({
  34046. name: "VCInput",
  34047. inheritAttrs: !1,
  34048. props: Wae(),
  34049. setup(t, e) {
  34050. let {
  34051. slots: n,
  34052. attrs: r,
  34053. expose: i,
  34054. emit: a
  34055. } = e;
  34056. const o = ve(t.value === void 0 ? t.defaultValue : t.value), s = ve(!1), l = ve(), u = ve();
  34057. me(() => t.value, () => {
  34058. o.value = t.value;
  34059. }), me(() => t.disabled, () => {
  34060. t.disabled && (s.value = !1);
  34061. });
  34062. const c = (C) => {
  34063. l.value && Vae(l.value.input, C);
  34064. }, f = () => {
  34065. var C;
  34066. (C = l.value.input) === null || C === void 0 || C.blur();
  34067. }, d = (C, P, $) => {
  34068. var T;
  34069. (T = l.value.input) === null || T === void 0 || T.setSelectionRange(C, P, $);
  34070. }, h = () => {
  34071. var C;
  34072. (C = l.value.input) === null || C === void 0 || C.select();
  34073. };
  34074. i({
  34075. focus: c,
  34076. blur: f,
  34077. input: V(() => {
  34078. var C;
  34079. return (C = l.value.input) === null || C === void 0 ? void 0 : C.input;
  34080. }),
  34081. stateValue: o,
  34082. setSelectionRange: d,
  34083. select: h
  34084. });
  34085. const p = (C) => {
  34086. a("change", C);
  34087. }, v = (C, P) => {
  34088. o.value !== C && (t.value === void 0 ? o.value = C : Bt(() => {
  34089. var $;
  34090. l.value.input.value !== o.value && (($ = u.value) === null || $ === void 0 || $.$forceUpdate());
  34091. }), Bt(() => {
  34092. P && P();
  34093. }));
  34094. }, g = (C) => {
  34095. const {
  34096. value: P
  34097. } = C.target;
  34098. if (o.value === P) return;
  34099. const $ = C.target.value;
  34100. Gy(l.value.input, C, p), v($);
  34101. }, m = (C) => {
  34102. C.keyCode === 13 && a("pressEnter", C), a("keydown", C);
  34103. }, y = (C) => {
  34104. s.value = !0, a("focus", C);
  34105. }, _ = (C) => {
  34106. s.value = !1, a("blur", C);
  34107. }, O = (C) => {
  34108. Gy(l.value.input, C, p), v("", () => {
  34109. c();
  34110. });
  34111. }, S = () => {
  34112. var C, P;
  34113. const {
  34114. addonBefore: $ = n.addonBefore,
  34115. addonAfter: T = n.addonAfter,
  34116. disabled: E,
  34117. valueModifiers: M = {},
  34118. htmlSize: R,
  34119. autocomplete: N,
  34120. prefixCls: I,
  34121. inputClassName: B,
  34122. prefix: Q = (C = n.prefix) === null || C === void 0 ? void 0 : C.call(n),
  34123. suffix: W = (P = n.suffix) === null || P === void 0 ? void 0 : P.call(n),
  34124. allowClear: H,
  34125. type: U = "text"
  34126. } = t, j = si(t, [
  34127. "prefixCls",
  34128. "onPressEnter",
  34129. "addonBefore",
  34130. "addonAfter",
  34131. "prefix",
  34132. "suffix",
  34133. "allowClear",
  34134. // Input elements must be either controlled or uncontrolled,
  34135. // specify either the value prop, or the defaultValue prop, but not both.
  34136. "defaultValue",
  34137. "size",
  34138. "bordered",
  34139. "htmlSize",
  34140. "lazy",
  34141. "showCount",
  34142. "valueModifiers",
  34143. "showCount",
  34144. "affixWrapperClassName",
  34145. "groupClassName",
  34146. "inputClassName",
  34147. "wrapperClassName"
  34148. ]), Y = k(k(k({}, j), r), {
  34149. autocomplete: N,
  34150. onChange: g,
  34151. onInput: g,
  34152. onFocus: y,
  34153. onBlur: _,
  34154. onKeydown: m,
  34155. class: Re(I, {
  34156. [`${I}-disabled`]: E
  34157. }, B, !tw({
  34158. addonAfter: T,
  34159. addonBefore: $
  34160. }) && !R8({
  34161. prefix: Q,
  34162. suffix: W,
  34163. allowClear: H
  34164. }) && r.class),
  34165. ref: l,
  34166. key: "ant-input",
  34167. size: R,
  34168. type: U,
  34169. lazy: t.lazy
  34170. });
  34171. return M.lazy && delete Y.onInput, Y.autofocus || delete Y.autofocus, D(t8, si(Y, ["size"]), null);
  34172. }, x = () => {
  34173. var C;
  34174. const {
  34175. maxlength: P,
  34176. suffix: $ = (C = n.suffix) === null || C === void 0 ? void 0 : C.call(n),
  34177. showCount: T,
  34178. prefixCls: E
  34179. } = t, M = Number(P) > 0;
  34180. if ($ || T) {
  34181. const R = [...FR(o.value)].length, N = typeof T == "object" ? T.formatter({
  34182. count: R,
  34183. maxlength: P
  34184. }) : `${R}${M ? ` / ${P}` : ""}`;
  34185. return D(Wt, null, [!!T && D("span", {
  34186. class: Re(`${E}-show-count-suffix`, {
  34187. [`${E}-show-count-has-suffix`]: !!$
  34188. })
  34189. }, [N]), $]);
  34190. }
  34191. return null;
  34192. };
  34193. return _t(() => {
  34194. process.env.NODE_ENV === "test" && t.autofocus && c();
  34195. }), () => {
  34196. const {
  34197. prefixCls: C,
  34198. disabled: P
  34199. } = t, $ = aFe(t, ["prefixCls", "disabled"]);
  34200. return D(iFe, te(te(te({}, $), r), {}, {
  34201. ref: u,
  34202. prefixCls: C,
  34203. inputElement: S(),
  34204. handleReset: O,
  34205. value: FR(o.value),
  34206. focused: s.value,
  34207. triggerFocus: c,
  34208. suffix: x(),
  34209. disabled: P
  34210. }), n);
  34211. };
  34212. }
  34213. }), Y2 = () => si(Wae(), ["wrapperClassName", "groupClassName", "inputClassName", "affixWrapperClassName"]), Qae = () => k(k({}, si(Y2(), ["prefix", "addonBefore", "addonAfter", "suffix"])), {
  34214. rows: Number,
  34215. autosize: {
  34216. type: [Boolean, Object],
  34217. default: void 0
  34218. },
  34219. autoSize: {
  34220. type: [Boolean, Object],
  34221. default: void 0
  34222. },
  34223. onResize: {
  34224. type: Function
  34225. },
  34226. onCompositionstart: Uw(),
  34227. onCompositionend: Uw(),
  34228. valueModifiers: Object
  34229. });
  34230. var sFe = function(t, e) {
  34231. var n = {};
  34232. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  34233. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  34234. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  34235. return n;
  34236. };
  34237. const mr = ae({
  34238. compatConfig: {
  34239. MODE: 3
  34240. },
  34241. name: "AInput",
  34242. inheritAttrs: !1,
  34243. props: Y2(),
  34244. setup(t, e) {
  34245. let {
  34246. slots: n,
  34247. attrs: r,
  34248. expose: i,
  34249. emit: a
  34250. } = e;
  34251. const o = ee(), s = Ul(), l = Qs.useInject(), u = V(() => U_(l.status, t.status)), {
  34252. direction: c,
  34253. prefixCls: f,
  34254. size: d,
  34255. autocomplete: h
  34256. } = hn("input", t), {
  34257. compactSize: p,
  34258. compactItemClassnames: v
  34259. } = L2(f, c), g = V(() => p.value || d.value), [m, y] = C8(f), _ = Vl();
  34260. i({
  34261. focus: (R) => {
  34262. var N;
  34263. (N = o.value) === null || N === void 0 || N.focus(R);
  34264. },
  34265. blur: () => {
  34266. var R;
  34267. (R = o.value) === null || R === void 0 || R.blur();
  34268. },
  34269. input: o,
  34270. setSelectionRange: (R, N, I) => {
  34271. var B;
  34272. (B = o.value) === null || B === void 0 || B.setSelectionRange(R, N, I);
  34273. },
  34274. select: () => {
  34275. var R;
  34276. (R = o.value) === null || R === void 0 || R.select();
  34277. }
  34278. });
  34279. const P = ee([]), $ = () => {
  34280. P.value.push(setTimeout(() => {
  34281. var R, N, I, B;
  34282. !((R = o.value) === null || R === void 0) && R.input && ((N = o.value) === null || N === void 0 ? void 0 : N.input.getAttribute("type")) === "password" && (!((I = o.value) === null || I === void 0) && I.input.hasAttribute("value")) && ((B = o.value) === null || B === void 0 || B.input.removeAttribute("value"));
  34283. }));
  34284. };
  34285. _t(() => {
  34286. $();
  34287. }), Mee(() => {
  34288. P.value.forEach((R) => clearTimeout(R));
  34289. }), Qt(() => {
  34290. P.value.forEach((R) => clearTimeout(R));
  34291. });
  34292. const T = (R) => {
  34293. $(), a("blur", R), s.onFieldBlur();
  34294. }, E = (R) => {
  34295. $(), a("focus", R);
  34296. }, M = (R) => {
  34297. a("update:value", R.target.value), a("change", R), a("input", R), s.onFieldChange();
  34298. };
  34299. return () => {
  34300. var R, N, I, B, Q, W;
  34301. const {
  34302. hasFeedback: H,
  34303. feedbackIcon: U
  34304. } = l, {
  34305. allowClear: j,
  34306. bordered: Y = !0,
  34307. prefix: ne = (R = n.prefix) === null || R === void 0 ? void 0 : R.call(n),
  34308. suffix: fe = (N = n.suffix) === null || N === void 0 ? void 0 : N.call(n),
  34309. addonAfter: ue = (I = n.addonAfter) === null || I === void 0 ? void 0 : I.call(n),
  34310. addonBefore: ye = (B = n.addonBefore) === null || B === void 0 ? void 0 : B.call(n),
  34311. id: se = (Q = s.id) === null || Q === void 0 ? void 0 : Q.value
  34312. } = t, he = sFe(t, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), re = (H || fe) && D(Wt, null, [fe, H && U]), q = f.value, K = R8({
  34313. prefix: ne,
  34314. suffix: fe
  34315. }) || !!H, de = n.clearIcon || (() => D(cs, null, null));
  34316. return m(D(oFe, te(te(te({}, r), si(he, ["onUpdate:value", "onChange", "onInput"])), {}, {
  34317. onChange: M,
  34318. id: se,
  34319. disabled: (W = t.disabled) !== null && W !== void 0 ? W : _.value,
  34320. ref: o,
  34321. prefixCls: q,
  34322. autocomplete: h.value,
  34323. onBlur: T,
  34324. onFocus: E,
  34325. prefix: ne,
  34326. suffix: re,
  34327. allowClear: j,
  34328. addonAfter: ue && D(iC, null, {
  34329. default: () => [D(rC, null, {
  34330. default: () => [ue]
  34331. })]
  34332. }),
  34333. addonBefore: ye && D(iC, null, {
  34334. default: () => [D(rC, null, {
  34335. default: () => [ye]
  34336. })]
  34337. }),
  34338. class: [r.class, v.value],
  34339. inputClassName: Re({
  34340. [`${q}-sm`]: g.value === "small",
  34341. [`${q}-lg`]: g.value === "large",
  34342. [`${q}-rtl`]: c.value === "rtl",
  34343. [`${q}-borderless`]: !Y
  34344. }, !K && Eu(q, u.value), y.value),
  34345. affixWrapperClassName: Re({
  34346. [`${q}-affix-wrapper-sm`]: g.value === "small",
  34347. [`${q}-affix-wrapper-lg`]: g.value === "large",
  34348. [`${q}-affix-wrapper-rtl`]: c.value === "rtl",
  34349. [`${q}-affix-wrapper-borderless`]: !Y
  34350. }, Eu(`${q}-affix-wrapper`, u.value, H), y.value),
  34351. wrapperClassName: Re({
  34352. [`${q}-group-rtl`]: c.value === "rtl"
  34353. }, y.value),
  34354. groupClassName: Re({
  34355. [`${q}-group-wrapper-sm`]: g.value === "small",
  34356. [`${q}-group-wrapper-lg`]: g.value === "large",
  34357. [`${q}-group-wrapper-rtl`]: c.value === "rtl"
  34358. }, Eu(`${q}-group-wrapper`, u.value, H), y.value)
  34359. }), k(k({}, n), {
  34360. clearIcon: de
  34361. })));
  34362. };
  34363. }
  34364. }), lFe = ae({
  34365. compatConfig: {
  34366. MODE: 3
  34367. },
  34368. name: "AInputGroup",
  34369. inheritAttrs: !1,
  34370. props: {
  34371. prefixCls: String,
  34372. size: {
  34373. type: String
  34374. },
  34375. compact: {
  34376. type: Boolean,
  34377. default: void 0
  34378. }
  34379. },
  34380. setup(t, e) {
  34381. let {
  34382. slots: n,
  34383. attrs: r
  34384. } = e;
  34385. const {
  34386. prefixCls: i,
  34387. direction: a,
  34388. getPrefixCls: o
  34389. } = hn("input-group", t), s = Qs.useInject();
  34390. Qs.useProvide(s, {
  34391. isFormItemInput: !1
  34392. });
  34393. const l = V(() => o("input")), [u, c] = C8(l), f = V(() => {
  34394. const d = i.value;
  34395. return {
  34396. [`${d}`]: !0,
  34397. [c.value]: !0,
  34398. [`${d}-lg`]: t.size === "large",
  34399. [`${d}-sm`]: t.size === "small",
  34400. [`${d}-compact`]: t.compact,
  34401. [`${d}-rtl`]: a.value === "rtl"
  34402. };
  34403. });
  34404. return () => {
  34405. var d;
  34406. return u(D("span", te(te({}, r), {}, {
  34407. class: Re(f.value, r.class)
  34408. }), [(d = n.default) === null || d === void 0 ? void 0 : d.call(n)]));
  34409. };
  34410. }
  34411. });
  34412. var uFe = function(t, e) {
  34413. var n = {};
  34414. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  34415. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  34416. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  34417. return n;
  34418. };
  34419. const cFe = ae({
  34420. compatConfig: {
  34421. MODE: 3
  34422. },
  34423. name: "AInputSearch",
  34424. inheritAttrs: !1,
  34425. props: k(k({}, Y2()), {
  34426. inputPrefixCls: String,
  34427. // 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
  34428. enterButton: oe.any,
  34429. onSearch: {
  34430. type: Function
  34431. }
  34432. }),
  34433. setup(t, e) {
  34434. let {
  34435. slots: n,
  34436. attrs: r,
  34437. expose: i,
  34438. emit: a
  34439. } = e;
  34440. const o = ve(), s = ve(!1);
  34441. i({
  34442. focus: () => {
  34443. var S;
  34444. (S = o.value) === null || S === void 0 || S.focus();
  34445. },
  34446. blur: () => {
  34447. var S;
  34448. (S = o.value) === null || S === void 0 || S.blur();
  34449. }
  34450. });
  34451. const c = (S) => {
  34452. a("update:value", S.target.value), S && S.target && S.type === "click" && a("search", S.target.value, S), a("change", S);
  34453. }, f = (S) => {
  34454. var x;
  34455. document.activeElement === ((x = o.value) === null || x === void 0 ? void 0 : x.input) && S.preventDefault();
  34456. }, d = (S) => {
  34457. var x, C;
  34458. a("search", (C = (x = o.value) === null || x === void 0 ? void 0 : x.input) === null || C === void 0 ? void 0 : C.stateValue, S);
  34459. }, h = (S) => {
  34460. s.value || t.loading || d(S);
  34461. }, p = (S) => {
  34462. s.value = !0, a("compositionstart", S);
  34463. }, v = (S) => {
  34464. s.value = !1, a("compositionend", S);
  34465. }, {
  34466. prefixCls: g,
  34467. getPrefixCls: m,
  34468. direction: y,
  34469. size: _
  34470. } = hn("input-search", t), O = V(() => m("input", t.inputPrefixCls));
  34471. return () => {
  34472. var S, x, C, P;
  34473. const {
  34474. disabled: $,
  34475. loading: T,
  34476. addonAfter: E = (S = n.addonAfter) === null || S === void 0 ? void 0 : S.call(n),
  34477. suffix: M = (x = n.suffix) === null || x === void 0 ? void 0 : x.call(n)
  34478. } = t, R = uFe(t, ["disabled", "loading", "addonAfter", "suffix"]);
  34479. let {
  34480. enterButton: N = (P = (C = n.enterButton) === null || C === void 0 ? void 0 : C.call(n)) !== null && P !== void 0 ? P : !1
  34481. } = t;
  34482. N = N || N === "";
  34483. const I = typeof N == "boolean" ? D(R2, null, null) : null, B = `${g.value}-button`, Q = Array.isArray(N) ? N[0] : N;
  34484. let W;
  34485. const H = Q.type && uN(Q.type) && Q.type.__ANT_BUTTON;
  34486. if (H || Q.tagName === "button")
  34487. W = xr(Q, k({
  34488. onMousedown: f,
  34489. onClick: d,
  34490. key: "enterButton"
  34491. }, H ? {
  34492. class: B,
  34493. size: _.value
  34494. } : {}), !1);
  34495. else {
  34496. const j = I && !N;
  34497. W = D(Vi, {
  34498. class: B,
  34499. type: N ? "primary" : void 0,
  34500. size: _.value,
  34501. disabled: $,
  34502. key: "enterButton",
  34503. onMousedown: f,
  34504. onClick: d,
  34505. loading: T,
  34506. icon: j ? I : null
  34507. }, {
  34508. default: () => [j ? null : I || N]
  34509. });
  34510. }
  34511. E && (W = [W, E]);
  34512. const U = Re(g.value, {
  34513. [`${g.value}-rtl`]: y.value === "rtl",
  34514. [`${g.value}-${_.value}`]: !!_.value,
  34515. [`${g.value}-with-button`]: !!N
  34516. }, r.class);
  34517. return D(mr, te(te(te({
  34518. ref: o
  34519. }, si(R, ["onUpdate:value", "onSearch", "enterButton"])), r), {}, {
  34520. onPressEnter: h,
  34521. onCompositionstart: p,
  34522. onCompositionend: v,
  34523. size: _.value,
  34524. prefixCls: O.value,
  34525. addonAfter: W,
  34526. suffix: M,
  34527. onChange: c,
  34528. class: U,
  34529. disabled: $
  34530. }), n);
  34531. };
  34532. }
  34533. }), s9 = (t) => t != null && (Array.isArray(t) ? Zl(t).length : !0);
  34534. function fFe(t) {
  34535. return s9(t.addonBefore) || s9(t.addonAfter);
  34536. }
  34537. const dFe = ["text", "input"], hFe = ae({
  34538. compatConfig: {
  34539. MODE: 3
  34540. },
  34541. name: "ClearableLabeledInput",
  34542. inheritAttrs: !1,
  34543. props: {
  34544. prefixCls: String,
  34545. inputType: oe.oneOf(pf("text", "input")),
  34546. value: Fo(),
  34547. defaultValue: Fo(),
  34548. allowClear: {
  34549. type: Boolean,
  34550. default: void 0
  34551. },
  34552. element: Fo(),
  34553. handleReset: Function,
  34554. disabled: {
  34555. type: Boolean,
  34556. default: void 0
  34557. },
  34558. direction: {
  34559. type: String
  34560. },
  34561. size: {
  34562. type: String
  34563. },
  34564. suffix: Fo(),
  34565. prefix: Fo(),
  34566. addonBefore: Fo(),
  34567. addonAfter: Fo(),
  34568. readonly: {
  34569. type: Boolean,
  34570. default: void 0
  34571. },
  34572. focused: {
  34573. type: Boolean,
  34574. default: void 0
  34575. },
  34576. bordered: {
  34577. type: Boolean,
  34578. default: !0
  34579. },
  34580. triggerFocus: {
  34581. type: Function
  34582. },
  34583. hidden: Boolean,
  34584. status: String,
  34585. hashId: String
  34586. },
  34587. setup(t, e) {
  34588. let {
  34589. slots: n,
  34590. attrs: r
  34591. } = e;
  34592. const i = Qs.useInject(), a = (s) => {
  34593. const {
  34594. value: l,
  34595. disabled: u,
  34596. readonly: c,
  34597. handleReset: f,
  34598. suffix: d = n.suffix
  34599. } = t, h = !u && !c && l, p = `${s}-clear-icon`;
  34600. return D(cs, {
  34601. onClick: f,
  34602. onMousedown: (v) => v.preventDefault(),
  34603. class: Re({
  34604. [`${p}-hidden`]: !h,
  34605. [`${p}-has-suffix`]: !!d
  34606. }, p),
  34607. role: "button"
  34608. }, null);
  34609. }, o = (s, l) => {
  34610. const {
  34611. value: u,
  34612. allowClear: c,
  34613. direction: f,
  34614. bordered: d,
  34615. hidden: h,
  34616. status: p,
  34617. addonAfter: v = n.addonAfter,
  34618. addonBefore: g = n.addonBefore,
  34619. hashId: m
  34620. } = t, {
  34621. status: y,
  34622. hasFeedback: _
  34623. } = i;
  34624. if (!c)
  34625. return xr(l, {
  34626. value: u,
  34627. disabled: t.disabled
  34628. });
  34629. const O = Re(`${s}-affix-wrapper`, `${s}-affix-wrapper-textarea-with-clear-btn`, Eu(`${s}-affix-wrapper`, U_(y, p), _), {
  34630. [`${s}-affix-wrapper-rtl`]: f === "rtl",
  34631. [`${s}-affix-wrapper-borderless`]: !d,
  34632. // className will go to addon wrapper
  34633. [`${r.class}`]: !fFe({
  34634. addonAfter: v,
  34635. addonBefore: g
  34636. }) && r.class
  34637. }, m);
  34638. return D("span", {
  34639. class: O,
  34640. style: r.style,
  34641. hidden: h
  34642. }, [xr(l, {
  34643. style: null,
  34644. value: u,
  34645. disabled: t.disabled
  34646. }), a(s)]);
  34647. };
  34648. return () => {
  34649. var s;
  34650. const {
  34651. prefixCls: l,
  34652. inputType: u,
  34653. element: c = (s = n.element) === null || s === void 0 ? void 0 : s.call(n)
  34654. } = t;
  34655. return u === dFe[0] ? o(l, c) : null;
  34656. };
  34657. }
  34658. }), pFe = `
  34659. min-height:0 !important;
  34660. max-height:none !important;
  34661. height:0 !important;
  34662. visibility:hidden !important;
  34663. overflow:hidden !important;
  34664. position:absolute !important;
  34665. z-index:-1000 !important;
  34666. top:0 !important;
  34667. right:0 !important;
  34668. pointer-events: none !important;
  34669. `, vFe = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], gE = {};
  34670. let Ao;
  34671. function gFe(t) {
  34672. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  34673. const n = t.getAttribute("id") || t.getAttribute("data-reactid") || t.getAttribute("name");
  34674. if (e && gE[n])
  34675. return gE[n];
  34676. const r = window.getComputedStyle(t), i = r.getPropertyValue("box-sizing") || r.getPropertyValue("-moz-box-sizing") || r.getPropertyValue("-webkit-box-sizing"), a = parseFloat(r.getPropertyValue("padding-bottom")) + parseFloat(r.getPropertyValue("padding-top")), o = parseFloat(r.getPropertyValue("border-bottom-width")) + parseFloat(r.getPropertyValue("border-top-width")), l = {
  34677. sizingStyle: vFe.map((u) => `${u}:${r.getPropertyValue(u)}`).join(";"),
  34678. paddingSize: a,
  34679. borderSize: o,
  34680. boxSizing: i
  34681. };
  34682. return e && n && (gE[n] = l), l;
  34683. }
  34684. function mFe(t) {
  34685. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
  34686. Ao || (Ao = document.createElement("textarea"), Ao.setAttribute("tab-index", "-1"), Ao.setAttribute("aria-hidden", "true"), document.body.appendChild(Ao)), t.getAttribute("wrap") ? Ao.setAttribute("wrap", t.getAttribute("wrap")) : Ao.removeAttribute("wrap");
  34687. const {
  34688. paddingSize: i,
  34689. borderSize: a,
  34690. boxSizing: o,
  34691. sizingStyle: s
  34692. } = gFe(t, e);
  34693. Ao.setAttribute("style", `${s};${pFe}`), Ao.value = t.value || t.placeholder || "";
  34694. let l, u, c, f = Ao.scrollHeight;
  34695. if (o === "border-box" ? f += a : o === "content-box" && (f -= i), n !== null || r !== null) {
  34696. Ao.value = " ";
  34697. const h = Ao.scrollHeight - i;
  34698. n !== null && (l = h * n, o === "border-box" && (l = l + i + a), f = Math.max(l, f)), r !== null && (u = h * r, o === "border-box" && (u = u + i + a), c = f > u ? "" : "hidden", f = Math.min(u, f));
  34699. }
  34700. const d = {
  34701. height: `${f}px`,
  34702. overflowY: c,
  34703. resize: "none"
  34704. };
  34705. return l && (d.minHeight = `${l}px`), u && (d.maxHeight = `${u}px`), d;
  34706. }
  34707. const mE = 0, yE = 1, bE = 2, yFe = ae({
  34708. compatConfig: {
  34709. MODE: 3
  34710. },
  34711. name: "ResizableTextArea",
  34712. inheritAttrs: !1,
  34713. props: Qae(),
  34714. setup(t, e) {
  34715. let {
  34716. attrs: n,
  34717. emit: r,
  34718. expose: i
  34719. } = e, a, o;
  34720. const s = ee(), l = ee({}), u = ee(bE);
  34721. Qt(() => {
  34722. en.cancel(a), en.cancel(o);
  34723. });
  34724. const c = () => {
  34725. try {
  34726. if (s.value && document.activeElement === s.value.input) {
  34727. const x = s.value.getSelectionStart(), C = s.value.getSelectionEnd(), P = s.value.getScrollTop();
  34728. s.value.setSelectionRange(x, C), s.value.setScrollTop(P);
  34729. }
  34730. } catch {
  34731. }
  34732. }, f = ee(), d = ee();
  34733. Vt(() => {
  34734. const x = t.autoSize || t.autosize;
  34735. x ? (f.value = x.minRows, d.value = x.maxRows) : (f.value = void 0, d.value = void 0);
  34736. });
  34737. const h = V(() => !!(t.autoSize || t.autosize)), p = () => {
  34738. u.value = mE;
  34739. };
  34740. me([() => t.value, f, d, h], () => {
  34741. h.value && p();
  34742. }, {
  34743. immediate: !0
  34744. });
  34745. const v = ee();
  34746. me([u, s], () => {
  34747. if (s.value)
  34748. if (u.value === mE)
  34749. u.value = yE;
  34750. else if (u.value === yE) {
  34751. const x = mFe(s.value.input, !1, f.value, d.value);
  34752. u.value = bE, v.value = x;
  34753. } else
  34754. c();
  34755. }, {
  34756. immediate: !0,
  34757. flush: "post"
  34758. });
  34759. const g = In(), m = ee(), y = () => {
  34760. en.cancel(m.value);
  34761. }, _ = (x) => {
  34762. u.value === bE && (r("resize", x), h.value && (y(), m.value = en(() => {
  34763. p();
  34764. })));
  34765. };
  34766. Qt(() => {
  34767. y();
  34768. }), i({
  34769. resizeTextarea: () => {
  34770. p();
  34771. },
  34772. textArea: V(() => {
  34773. var x;
  34774. return (x = s.value) === null || x === void 0 ? void 0 : x.input;
  34775. }),
  34776. instance: g
  34777. }), aa(t.autosize === void 0, "Input.TextArea", "autosize is deprecated, please use autoSize instead.");
  34778. const S = () => {
  34779. const {
  34780. prefixCls: x,
  34781. disabled: C
  34782. } = t, P = si(t, ["prefixCls", "onPressEnter", "autoSize", "autosize", "defaultValue", "allowClear", "type", "maxlength", "valueModifiers"]), $ = Re(x, n.class, {
  34783. [`${x}-disabled`]: C
  34784. }), T = h.value ? v.value : null, E = [n.style, l.value, T], M = k(k(k({}, P), n), {
  34785. style: E,
  34786. class: $
  34787. });
  34788. return (u.value === mE || u.value === yE) && E.push({
  34789. overflowX: "hidden",
  34790. overflowY: "hidden"
  34791. }), M.autofocus || delete M.autofocus, M.rows === 0 && delete M.rows, D($g, {
  34792. onResize: _,
  34793. disabled: !h.value
  34794. }, {
  34795. default: () => [D(t8, te(te({}, M), {}, {
  34796. ref: s,
  34797. tag: "textarea"
  34798. }), null)]
  34799. });
  34800. };
  34801. return () => S();
  34802. }
  34803. });
  34804. function Hae(t, e) {
  34805. return [...t || ""].slice(0, e).join("");
  34806. }
  34807. function l9(t, e, n, r) {
  34808. let i = n;
  34809. return t ? i = Hae(n, r) : [...e || ""].length < n.length && [...n || ""].length > r && (i = e), i;
  34810. }
  34811. const bFe = ae({
  34812. compatConfig: {
  34813. MODE: 3
  34814. },
  34815. name: "ATextarea",
  34816. inheritAttrs: !1,
  34817. props: Qae(),
  34818. setup(t, e) {
  34819. let {
  34820. attrs: n,
  34821. expose: r,
  34822. emit: i
  34823. } = e;
  34824. var a;
  34825. const o = Ul(), s = Qs.useInject(), l = V(() => U_(s.status, t.status)), u = ve((a = t.value) !== null && a !== void 0 ? a : t.defaultValue), c = ve(), f = ve(""), {
  34826. prefixCls: d,
  34827. size: h,
  34828. direction: p
  34829. } = hn("input", t), [v, g] = C8(d), m = Vl(), y = V(() => t.showCount === "" || t.showCount || !1), _ = V(() => Number(t.maxlength) > 0), O = ve(!1), S = ve(), x = ve(0), C = (H) => {
  34830. O.value = !0, S.value = f.value, x.value = H.currentTarget.selectionStart, i("compositionstart", H);
  34831. }, P = (H) => {
  34832. var U;
  34833. O.value = !1;
  34834. let j = H.currentTarget.value;
  34835. if (_.value) {
  34836. const Y = x.value >= t.maxlength + 1 || x.value === ((U = S.value) === null || U === void 0 ? void 0 : U.length);
  34837. j = l9(Y, S.value, j, t.maxlength);
  34838. }
  34839. j !== f.value && (M(j), Gy(H.currentTarget, H, I, j)), i("compositionend", H);
  34840. }, $ = In();
  34841. me(() => t.value, () => {
  34842. var H;
  34843. "value" in $.vnode.props, u.value = (H = t.value) !== null && H !== void 0 ? H : "";
  34844. });
  34845. const T = (H) => {
  34846. var U;
  34847. Vae((U = c.value) === null || U === void 0 ? void 0 : U.textArea, H);
  34848. }, E = () => {
  34849. var H, U;
  34850. (U = (H = c.value) === null || H === void 0 ? void 0 : H.textArea) === null || U === void 0 || U.blur();
  34851. }, M = (H, U) => {
  34852. u.value !== H && (t.value === void 0 ? u.value = H : Bt(() => {
  34853. var j, Y, ne;
  34854. c.value.textArea.value !== f.value && ((ne = (j = c.value) === null || j === void 0 ? void 0 : (Y = j.instance).update) === null || ne === void 0 || ne.call(Y));
  34855. }), Bt(() => {
  34856. U && U();
  34857. }));
  34858. }, R = (H) => {
  34859. H.keyCode === 13 && i("pressEnter", H), i("keydown", H);
  34860. }, N = (H) => {
  34861. const {
  34862. onBlur: U
  34863. } = t;
  34864. U == null || U(H), o.onFieldBlur();
  34865. }, I = (H) => {
  34866. i("update:value", H.target.value), i("change", H), i("input", H), o.onFieldChange();
  34867. }, B = (H) => {
  34868. Gy(c.value.textArea, H, I), M("", () => {
  34869. T();
  34870. });
  34871. }, Q = (H) => {
  34872. let U = H.target.value;
  34873. if (u.value !== U) {
  34874. if (_.value) {
  34875. const j = H.target, Y = j.selectionStart >= t.maxlength + 1 || j.selectionStart === U.length || !j.selectionStart;
  34876. U = l9(Y, f.value, U, t.maxlength);
  34877. }
  34878. Gy(H.currentTarget, H, I, U), M(U);
  34879. }
  34880. }, W = () => {
  34881. var H, U;
  34882. const {
  34883. class: j
  34884. } = n, {
  34885. bordered: Y = !0
  34886. } = t, ne = k(k(k({}, si(t, ["allowClear"])), n), {
  34887. class: [{
  34888. [`${d.value}-borderless`]: !Y,
  34889. [`${j}`]: j && !y.value,
  34890. [`${d.value}-sm`]: h.value === "small",
  34891. [`${d.value}-lg`]: h.value === "large"
  34892. }, Eu(d.value, l.value), g.value],
  34893. disabled: m.value,
  34894. showCount: null,
  34895. prefixCls: d.value,
  34896. onInput: Q,
  34897. onChange: Q,
  34898. onBlur: N,
  34899. onKeydown: R,
  34900. onCompositionstart: C,
  34901. onCompositionend: P
  34902. });
  34903. return !((H = t.valueModifiers) === null || H === void 0) && H.lazy && delete ne.onInput, D(yFe, te(te({}, ne), {}, {
  34904. id: (U = ne == null ? void 0 : ne.id) !== null && U !== void 0 ? U : o.id.value,
  34905. ref: c,
  34906. maxlength: t.maxlength,
  34907. lazy: t.lazy
  34908. }), null);
  34909. };
  34910. return r({
  34911. focus: T,
  34912. blur: E,
  34913. resizableTextArea: c
  34914. }), Vt(() => {
  34915. let H = FR(u.value);
  34916. !O.value && _.value && (t.value === null || t.value === void 0) && (H = Hae(H, t.maxlength)), f.value = H;
  34917. }), () => {
  34918. var H;
  34919. const {
  34920. maxlength: U,
  34921. bordered: j = !0,
  34922. hidden: Y
  34923. } = t, {
  34924. style: ne,
  34925. class: fe
  34926. } = n, ue = k(k(k({}, t), n), {
  34927. prefixCls: d.value,
  34928. inputType: "text",
  34929. handleReset: B,
  34930. direction: p.value,
  34931. bordered: j,
  34932. style: y.value ? void 0 : ne,
  34933. hashId: g.value,
  34934. disabled: (H = t.disabled) !== null && H !== void 0 ? H : m.value
  34935. });
  34936. let ye = D(hFe, te(te({}, ue), {}, {
  34937. value: f.value,
  34938. status: t.status
  34939. }), {
  34940. element: W
  34941. });
  34942. if (y.value || s.hasFeedback) {
  34943. const se = [...f.value].length;
  34944. let he = "";
  34945. typeof y.value == "object" ? he = y.value.formatter({
  34946. value: f.value,
  34947. count: se,
  34948. maxlength: U
  34949. }) : he = `${se}${_.value ? ` / ${U}` : ""}`, ye = D("div", {
  34950. hidden: Y,
  34951. class: Re(`${d.value}-textarea`, {
  34952. [`${d.value}-textarea-rtl`]: p.value === "rtl",
  34953. [`${d.value}-textarea-show-count`]: y.value,
  34954. [`${d.value}-textarea-in-form-item`]: s.isFormItemInput
  34955. }, `${d.value}-textarea-show-count`, fe, g.value),
  34956. style: ne,
  34957. "data-count": typeof he != "object" ? he : void 0
  34958. }, [ye, s.hasFeedback && D("span", {
  34959. class: `${d.value}-textarea-suffix`
  34960. }, [s.feedbackIcon])]);
  34961. }
  34962. return v(ye);
  34963. };
  34964. }
  34965. });
  34966. var _Fe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" };
  34967. function u9(t) {
  34968. for (var e = 1; e < arguments.length; e++) {
  34969. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  34970. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  34971. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  34972. }))), r.forEach(function(i) {
  34973. OFe(t, i, n[i]);
  34974. });
  34975. }
  34976. return t;
  34977. }
  34978. function OFe(t, e, n) {
  34979. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  34980. }
  34981. var q2 = function(e, n) {
  34982. var r = u9({}, e, n.attrs);
  34983. return D(Rt, u9({}, r, {
  34984. icon: _Fe
  34985. }), null);
  34986. };
  34987. q2.displayName = "EyeOutlined";
  34988. q2.inheritAttrs = !1;
  34989. var SFe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" };
  34990. function c9(t) {
  34991. for (var e = 1; e < arguments.length; e++) {
  34992. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  34993. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  34994. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  34995. }))), r.forEach(function(i) {
  34996. xFe(t, i, n[i]);
  34997. });
  34998. }
  34999. return t;
  35000. }
  35001. function xFe(t, e, n) {
  35002. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  35003. }
  35004. var k8 = function(e, n) {
  35005. var r = c9({}, e, n.attrs);
  35006. return D(Rt, c9({}, r, {
  35007. icon: SFe
  35008. }), null);
  35009. };
  35010. k8.displayName = "EyeInvisibleOutlined";
  35011. k8.inheritAttrs = !1;
  35012. var wFe = function(t, e) {
  35013. var n = {};
  35014. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  35015. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  35016. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  35017. return n;
  35018. };
  35019. const CFe = {
  35020. click: "onClick",
  35021. hover: "onMouseover"
  35022. }, TFe = (t) => t ? D(q2, null, null) : D(k8, null, null), PFe = ae({
  35023. compatConfig: {
  35024. MODE: 3
  35025. },
  35026. name: "AInputPassword",
  35027. inheritAttrs: !1,
  35028. props: k(k({}, Y2()), {
  35029. prefixCls: String,
  35030. inputPrefixCls: String,
  35031. action: {
  35032. type: String,
  35033. default: "click"
  35034. },
  35035. visibilityToggle: {
  35036. type: Boolean,
  35037. default: !0
  35038. },
  35039. visible: {
  35040. type: Boolean,
  35041. default: void 0
  35042. },
  35043. "onUpdate:visible": Function,
  35044. iconRender: Function
  35045. }),
  35046. setup(t, e) {
  35047. let {
  35048. slots: n,
  35049. attrs: r,
  35050. expose: i,
  35051. emit: a
  35052. } = e;
  35053. const o = ve(!1), s = () => {
  35054. const {
  35055. disabled: g
  35056. } = t;
  35057. g || (o.value = !o.value, a("update:visible", o.value));
  35058. };
  35059. Vt(() => {
  35060. t.visible !== void 0 && (o.value = !!t.visible);
  35061. });
  35062. const l = ve();
  35063. i({
  35064. focus: () => {
  35065. var g;
  35066. (g = l.value) === null || g === void 0 || g.focus();
  35067. },
  35068. blur: () => {
  35069. var g;
  35070. (g = l.value) === null || g === void 0 || g.blur();
  35071. }
  35072. });
  35073. const f = (g) => {
  35074. const {
  35075. action: m,
  35076. iconRender: y = n.iconRender || TFe
  35077. } = t, _ = CFe[m] || "", O = y(o.value), S = {
  35078. [_]: s,
  35079. class: `${g}-icon`,
  35080. key: "passwordIcon",
  35081. onMousedown: (x) => {
  35082. x.preventDefault();
  35083. },
  35084. onMouseup: (x) => {
  35085. x.preventDefault();
  35086. }
  35087. };
  35088. return xr(po(O) ? O : D("span", null, [O]), S);
  35089. }, {
  35090. prefixCls: d,
  35091. getPrefixCls: h
  35092. } = hn("input-password", t), p = V(() => h("input", t.inputPrefixCls)), v = () => {
  35093. const {
  35094. size: g,
  35095. visibilityToggle: m
  35096. } = t, y = wFe(t, ["size", "visibilityToggle"]), _ = m && f(d.value), O = Re(d.value, r.class, {
  35097. [`${d.value}-${g}`]: !!g
  35098. }), S = k(k(k({}, si(y, ["suffix", "iconRender", "action"])), r), {
  35099. type: o.value ? "text" : "password",
  35100. class: O,
  35101. prefixCls: p.value,
  35102. suffix: _
  35103. });
  35104. return g && (S.size = g), D(mr, te({
  35105. ref: l
  35106. }, S), n);
  35107. };
  35108. return () => v();
  35109. }
  35110. });
  35111. mr.Group = lFe;
  35112. mr.Search = cFe;
  35113. mr.TextArea = bFe;
  35114. mr.Password = PFe;
  35115. mr.install = function(t) {
  35116. return t.component(mr.name, mr), t.component(mr.Group.name, mr.Group), t.component(mr.Search.name, mr.Search), t.component(mr.TextArea.name, mr.TextArea), t.component(mr.Password.name, mr.Password), t;
  35117. };
  35118. function K2() {
  35119. return {
  35120. keyboard: {
  35121. type: Boolean,
  35122. default: void 0
  35123. },
  35124. mask: {
  35125. type: Boolean,
  35126. default: void 0
  35127. },
  35128. afterClose: Function,
  35129. closable: {
  35130. type: Boolean,
  35131. default: void 0
  35132. },
  35133. maskClosable: {
  35134. type: Boolean,
  35135. default: void 0
  35136. },
  35137. visible: {
  35138. type: Boolean,
  35139. default: void 0
  35140. },
  35141. destroyOnClose: {
  35142. type: Boolean,
  35143. default: void 0
  35144. },
  35145. mousePosition: oe.shape({
  35146. x: Number,
  35147. y: Number
  35148. }).loose,
  35149. title: oe.any,
  35150. footer: oe.any,
  35151. transitionName: String,
  35152. maskTransitionName: String,
  35153. animation: oe.any,
  35154. maskAnimation: oe.any,
  35155. wrapStyle: {
  35156. type: Object,
  35157. default: void 0
  35158. },
  35159. bodyStyle: {
  35160. type: Object,
  35161. default: void 0
  35162. },
  35163. maskStyle: {
  35164. type: Object,
  35165. default: void 0
  35166. },
  35167. prefixCls: String,
  35168. wrapClassName: String,
  35169. rootClassName: String,
  35170. width: [String, Number],
  35171. height: [String, Number],
  35172. zIndex: Number,
  35173. bodyProps: oe.any,
  35174. maskProps: oe.any,
  35175. wrapProps: oe.any,
  35176. getContainer: oe.any,
  35177. dialogStyle: {
  35178. type: Object,
  35179. default: void 0
  35180. },
  35181. dialogClass: String,
  35182. closeIcon: oe.any,
  35183. forceRender: {
  35184. type: Boolean,
  35185. default: void 0
  35186. },
  35187. getOpenCount: Function,
  35188. // https://github.com/ant-design/ant-design/issues/19771
  35189. // https://github.com/react-component/dialog/issues/95
  35190. focusTriggerAfterClose: {
  35191. type: Boolean,
  35192. default: void 0
  35193. },
  35194. onClose: Function,
  35195. modalRender: Function
  35196. };
  35197. }
  35198. function f9(t, e, n) {
  35199. let r = e;
  35200. return !r && n && (r = `${t}-${n}`), r;
  35201. }
  35202. let d9 = -1;
  35203. function $Fe() {
  35204. return d9 += 1, d9;
  35205. }
  35206. function h9(t, e) {
  35207. let n = t[`page${e ? "Y" : "X"}Offset`];
  35208. const r = `scroll${e ? "Top" : "Left"}`;
  35209. if (typeof n != "number") {
  35210. const i = t.document;
  35211. n = i.documentElement[r], typeof n != "number" && (n = i.body[r]);
  35212. }
  35213. return n;
  35214. }
  35215. function AFe(t) {
  35216. const e = t.getBoundingClientRect(), n = {
  35217. left: e.left,
  35218. top: e.top
  35219. }, r = t.ownerDocument, i = r.defaultView || r.parentWindow;
  35220. return n.left += h9(i), n.top += h9(i, !0), n;
  35221. }
  35222. const p9 = {
  35223. width: 0,
  35224. height: 0,
  35225. overflow: "hidden",
  35226. outline: "none"
  35227. }, EFe = ae({
  35228. compatConfig: {
  35229. MODE: 3
  35230. },
  35231. name: "DialogContent",
  35232. inheritAttrs: !1,
  35233. props: k(k({}, K2()), {
  35234. motionName: String,
  35235. ariaId: String,
  35236. onVisibleChanged: Function,
  35237. onMousedown: Function,
  35238. onMouseup: Function
  35239. }),
  35240. setup(t, e) {
  35241. let {
  35242. expose: n,
  35243. slots: r,
  35244. attrs: i
  35245. } = e;
  35246. const a = ee(), o = ee(), s = ee();
  35247. n({
  35248. focus: () => {
  35249. var d;
  35250. (d = a.value) === null || d === void 0 || d.focus();
  35251. },
  35252. changeActive: (d) => {
  35253. const {
  35254. activeElement: h
  35255. } = document;
  35256. d && h === o.value ? a.value.focus() : !d && h === a.value && o.value.focus();
  35257. }
  35258. });
  35259. const l = ee(), u = V(() => {
  35260. const {
  35261. width: d,
  35262. height: h
  35263. } = t, p = {};
  35264. return d !== void 0 && (p.width = typeof d == "number" ? `${d}px` : d), h !== void 0 && (p.height = typeof h == "number" ? `${h}px` : h), l.value && (p.transformOrigin = l.value), p;
  35265. }), c = () => {
  35266. Bt(() => {
  35267. if (s.value) {
  35268. const d = AFe(s.value);
  35269. l.value = t.mousePosition ? `${t.mousePosition.x - d.left}px ${t.mousePosition.y - d.top}px` : "";
  35270. }
  35271. });
  35272. }, f = (d) => {
  35273. t.onVisibleChanged(d);
  35274. };
  35275. return () => {
  35276. var d, h, p, v;
  35277. const {
  35278. prefixCls: g,
  35279. footer: m = (d = r.footer) === null || d === void 0 ? void 0 : d.call(r),
  35280. title: y = (h = r.title) === null || h === void 0 ? void 0 : h.call(r),
  35281. ariaId: _,
  35282. closable: O,
  35283. closeIcon: S = (p = r.closeIcon) === null || p === void 0 ? void 0 : p.call(r),
  35284. onClose: x,
  35285. bodyStyle: C,
  35286. bodyProps: P,
  35287. onMousedown: $,
  35288. onMouseup: T,
  35289. visible: E,
  35290. modalRender: M = r.modalRender,
  35291. destroyOnClose: R,
  35292. motionName: N
  35293. } = t;
  35294. let I;
  35295. m && (I = D("div", {
  35296. class: `${g}-footer`
  35297. }, [m]));
  35298. let B;
  35299. y && (B = D("div", {
  35300. class: `${g}-header`
  35301. }, [D("div", {
  35302. class: `${g}-title`,
  35303. id: _
  35304. }, [y])]));
  35305. let Q;
  35306. O && (Q = D("button", {
  35307. type: "button",
  35308. onClick: x,
  35309. "aria-label": "Close",
  35310. class: `${g}-close`
  35311. }, [S || D("span", {
  35312. class: `${g}-close-x`
  35313. }, null)]));
  35314. const W = D("div", {
  35315. class: `${g}-content`
  35316. }, [Q, B, D("div", te({
  35317. class: `${g}-body`,
  35318. style: C
  35319. }, P), [(v = r.default) === null || v === void 0 ? void 0 : v.call(r)]), I]), H = Z_(N);
  35320. return D(mo, te(te({}, H), {}, {
  35321. onBeforeEnter: c,
  35322. onAfterEnter: () => f(!0),
  35323. onAfterLeave: () => f(!1)
  35324. }), {
  35325. default: () => [E || !R ? Sr(D("div", te(te({}, i), {}, {
  35326. ref: s,
  35327. key: "dialog-element",
  35328. role: "document",
  35329. style: [u.value, i.style],
  35330. class: [g, i.class],
  35331. onMousedown: $,
  35332. onMouseup: T
  35333. }), [D("div", {
  35334. tabindex: 0,
  35335. ref: a,
  35336. style: p9,
  35337. "aria-hidden": "true"
  35338. }, null), M ? M({
  35339. originVNode: W
  35340. }) : W, D("div", {
  35341. tabindex: 0,
  35342. ref: o,
  35343. style: p9,
  35344. "aria-hidden": "true"
  35345. }, null)]), [[ho, E]]) : null]
  35346. });
  35347. };
  35348. }
  35349. }), MFe = ae({
  35350. compatConfig: {
  35351. MODE: 3
  35352. },
  35353. name: "DialogMask",
  35354. props: {
  35355. prefixCls: String,
  35356. visible: Boolean,
  35357. motionName: String,
  35358. maskProps: Object
  35359. },
  35360. setup(t, e) {
  35361. return () => {
  35362. const {
  35363. prefixCls: n,
  35364. visible: r,
  35365. maskProps: i,
  35366. motionName: a
  35367. } = t, o = Z_(a);
  35368. return D(mo, o, {
  35369. default: () => [Sr(D("div", te({
  35370. class: `${n}-mask`
  35371. }, i), null), [[ho, r]])]
  35372. });
  35373. };
  35374. }
  35375. }), v9 = ae({
  35376. compatConfig: {
  35377. MODE: 3
  35378. },
  35379. name: "VcDialog",
  35380. inheritAttrs: !1,
  35381. props: li(k(k({}, K2()), {
  35382. getOpenCount: Function,
  35383. scrollLocker: Object
  35384. }), {
  35385. mask: !0,
  35386. visible: !1,
  35387. keyboard: !0,
  35388. closable: !0,
  35389. maskClosable: !0,
  35390. destroyOnClose: !1,
  35391. prefixCls: "rc-dialog",
  35392. getOpenCount: () => null,
  35393. focusTriggerAfterClose: !0
  35394. }),
  35395. setup(t, e) {
  35396. let {
  35397. attrs: n,
  35398. slots: r
  35399. } = e;
  35400. const i = ve(), a = ve(), o = ve(), s = ve(t.visible), l = ve(`vcDialogTitle${$Fe()}`), u = (m) => {
  35401. var y, _;
  35402. if (m)
  35403. kc(a.value, document.activeElement) || (i.value = document.activeElement, (y = o.value) === null || y === void 0 || y.focus());
  35404. else {
  35405. const O = s.value;
  35406. if (s.value = !1, t.mask && i.value && t.focusTriggerAfterClose) {
  35407. try {
  35408. i.value.focus({
  35409. preventScroll: !0
  35410. });
  35411. } catch {
  35412. }
  35413. i.value = null;
  35414. }
  35415. O && ((_ = t.afterClose) === null || _ === void 0 || _.call(t));
  35416. }
  35417. }, c = (m) => {
  35418. var y;
  35419. (y = t.onClose) === null || y === void 0 || y.call(t, m);
  35420. }, f = ve(!1), d = ve(), h = () => {
  35421. clearTimeout(d.value), f.value = !0;
  35422. }, p = () => {
  35423. d.value = setTimeout(() => {
  35424. f.value = !1;
  35425. });
  35426. }, v = (m) => {
  35427. if (!t.maskClosable) return null;
  35428. f.value ? f.value = !1 : a.value === m.target && c(m);
  35429. }, g = (m) => {
  35430. if (t.keyboard && m.keyCode === Me.ESC) {
  35431. m.stopPropagation(), c(m);
  35432. return;
  35433. }
  35434. t.visible && m.keyCode === Me.TAB && o.value.changeActive(!m.shiftKey);
  35435. };
  35436. return me(() => t.visible, () => {
  35437. t.visible && (s.value = !0);
  35438. }, {
  35439. flush: "post"
  35440. }), Qt(() => {
  35441. var m;
  35442. clearTimeout(d.value), (m = t.scrollLocker) === null || m === void 0 || m.unLock();
  35443. }), Vt(() => {
  35444. var m, y;
  35445. (m = t.scrollLocker) === null || m === void 0 || m.unLock(), s.value && ((y = t.scrollLocker) === null || y === void 0 || y.lock());
  35446. }), () => {
  35447. const {
  35448. prefixCls: m,
  35449. mask: y,
  35450. visible: _,
  35451. maskTransitionName: O,
  35452. maskAnimation: S,
  35453. zIndex: x,
  35454. wrapClassName: C,
  35455. rootClassName: P,
  35456. wrapStyle: $,
  35457. closable: T,
  35458. maskProps: E,
  35459. maskStyle: M,
  35460. transitionName: R,
  35461. animation: N,
  35462. wrapProps: I,
  35463. title: B = r.title
  35464. } = t, {
  35465. style: Q,
  35466. class: W
  35467. } = n;
  35468. return D("div", te({
  35469. class: [`${m}-root`, P]
  35470. }, M2(t, {
  35471. data: !0
  35472. })), [D(MFe, {
  35473. prefixCls: m,
  35474. visible: y && _,
  35475. motionName: f9(m, O, S),
  35476. style: k({
  35477. zIndex: x
  35478. }, M),
  35479. maskProps: E
  35480. }, null), D("div", te({
  35481. tabIndex: -1,
  35482. onKeydown: g,
  35483. class: Re(`${m}-wrap`, C),
  35484. ref: a,
  35485. onClick: v,
  35486. role: "dialog",
  35487. "aria-labelledby": B ? l.value : null,
  35488. style: k(k({
  35489. zIndex: x
  35490. }, $), {
  35491. display: s.value ? null : "none"
  35492. })
  35493. }, I), [D(EFe, te(te({}, si(t, ["scrollLocker"])), {}, {
  35494. style: Q,
  35495. class: W,
  35496. onMousedown: h,
  35497. onMouseup: p,
  35498. ref: o,
  35499. closable: T,
  35500. ariaId: l.value,
  35501. prefixCls: m,
  35502. visible: _,
  35503. onClose: c,
  35504. onVisibleChanged: u,
  35505. motionName: f9(m, R, N)
  35506. }), r)])]);
  35507. };
  35508. }
  35509. }), IFe = K2(), Gae = ae({
  35510. compatConfig: {
  35511. MODE: 3
  35512. },
  35513. name: "DialogWrap",
  35514. inheritAttrs: !1,
  35515. props: li(IFe, {
  35516. visible: !1
  35517. }),
  35518. setup(t, e) {
  35519. let {
  35520. attrs: n,
  35521. slots: r
  35522. } = e;
  35523. const i = ee(t.visible);
  35524. return e8({}, {
  35525. inTriggerContext: !1
  35526. }), me(() => t.visible, () => {
  35527. t.visible && (i.value = !0);
  35528. }, {
  35529. flush: "post"
  35530. }), () => {
  35531. const {
  35532. visible: a,
  35533. getContainer: o,
  35534. forceRender: s,
  35535. destroyOnClose: l = !1,
  35536. afterClose: u
  35537. } = t;
  35538. let c = k(k(k({}, t), n), {
  35539. ref: "_component",
  35540. key: "dialog"
  35541. });
  35542. return o === !1 ? D(v9, te(te({}, c), {}, {
  35543. getOpenCount: () => 2
  35544. }), r) : !s && l && !i.value ? null : D(Zre, {
  35545. autoLock: !0,
  35546. visible: a,
  35547. forceRender: s,
  35548. getContainer: o
  35549. }, {
  35550. default: (f) => (c = k(k(k({}, c), f), {
  35551. afterClose: () => {
  35552. u == null || u(), i.value = !1;
  35553. }
  35554. }), D(v9, c, r))
  35555. });
  35556. };
  35557. }
  35558. });
  35559. function DFe(t) {
  35560. const e = ee(null), n = zn(k({}, t)), r = ee([]), i = (a) => {
  35561. e.value === null && (r.value = [], e.value = en(() => {
  35562. let o;
  35563. r.value.forEach((s) => {
  35564. o = k(k({}, o), s);
  35565. }), k(n, o), e.value = null;
  35566. })), r.value.push(a);
  35567. };
  35568. return _t(() => {
  35569. e.value && en.cancel(e.value);
  35570. }), [n, i];
  35571. }
  35572. function g9(t, e, n, r) {
  35573. const i = e + n, a = (n - r) / 2;
  35574. if (n > r) {
  35575. if (e > 0)
  35576. return {
  35577. [t]: a
  35578. };
  35579. if (e < 0 && i < r)
  35580. return {
  35581. [t]: -a
  35582. };
  35583. } else if (e < 0 || i > r)
  35584. return {
  35585. [t]: e < 0 ? a : -a
  35586. };
  35587. return {};
  35588. }
  35589. function RFe(t, e, n, r) {
  35590. const {
  35591. width: i,
  35592. height: a
  35593. } = wNe();
  35594. let o = null;
  35595. return t <= i && e <= a ? o = {
  35596. x: 0,
  35597. y: 0
  35598. } : (t > i || e > a) && (o = k(k({}, g9("x", n, t, i)), g9("y", r, e, a))), o;
  35599. }
  35600. var kFe = function(t, e) {
  35601. var n = {};
  35602. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  35603. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  35604. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  35605. return n;
  35606. };
  35607. const m9 = Symbol("previewGroupContext"), L8 = {
  35608. provide: (t) => {
  35609. Et(m9, t);
  35610. },
  35611. inject: () => et(m9, {
  35612. isPreviewGroup: ve(!1),
  35613. previewUrls: V(() => /* @__PURE__ */ new Map()),
  35614. setPreviewUrls: () => {
  35615. },
  35616. current: ee(null),
  35617. setCurrent: () => {
  35618. },
  35619. setShowPreview: () => {
  35620. },
  35621. setMousePosition: () => {
  35622. },
  35623. registerImage: null,
  35624. rootClassName: ""
  35625. })
  35626. }, LFe = () => ({
  35627. previewPrefixCls: String,
  35628. preview: {
  35629. type: [Boolean, Object],
  35630. default: !0
  35631. },
  35632. icons: {
  35633. type: Object,
  35634. default: () => ({})
  35635. }
  35636. }), NFe = ae({
  35637. compatConfig: {
  35638. MODE: 3
  35639. },
  35640. name: "PreviewGroup",
  35641. inheritAttrs: !1,
  35642. props: LFe(),
  35643. setup(t, e) {
  35644. let {
  35645. slots: n
  35646. } = e;
  35647. const r = V(() => {
  35648. const S = {
  35649. visible: void 0,
  35650. onVisibleChange: () => {
  35651. },
  35652. getContainer: void 0,
  35653. current: 0
  35654. };
  35655. return typeof t.preview == "object" ? Xae(t.preview, S) : S;
  35656. }), i = zn(/* @__PURE__ */ new Map()), a = ee(), o = V(() => r.value.visible), s = V(() => r.value.getContainer), l = (S, x) => {
  35657. var C, P;
  35658. (P = (C = r.value).onVisibleChange) === null || P === void 0 || P.call(C, S, x);
  35659. }, [u, c] = Rg(!!o.value, {
  35660. value: o,
  35661. onChange: l
  35662. }), f = ee(null), d = V(() => o.value !== void 0), h = V(() => Array.from(i.keys())), p = V(() => h.value[r.value.current]), v = V(() => new Map(Array.from(i).filter((S) => {
  35663. let [, {
  35664. canPreview: x
  35665. }] = S;
  35666. return !!x;
  35667. }).map((S) => {
  35668. let [x, {
  35669. url: C
  35670. }] = S;
  35671. return [x, C];
  35672. }))), g = function(S, x) {
  35673. let C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
  35674. i.set(S, {
  35675. url: x,
  35676. canPreview: C
  35677. });
  35678. }, m = (S) => {
  35679. a.value = S;
  35680. }, y = (S) => {
  35681. f.value = S;
  35682. }, _ = function(S, x) {
  35683. let C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
  35684. const P = () => {
  35685. i.delete(S);
  35686. };
  35687. return i.set(S, {
  35688. url: x,
  35689. canPreview: C
  35690. }), P;
  35691. }, O = (S) => {
  35692. S == null || S.stopPropagation(), c(!1), y(null);
  35693. };
  35694. return me(p, (S) => {
  35695. m(S);
  35696. }, {
  35697. immediate: !0,
  35698. flush: "post"
  35699. }), Vt(() => {
  35700. u.value && d.value && m(p.value);
  35701. }, {
  35702. flush: "post"
  35703. }), L8.provide({
  35704. isPreviewGroup: ve(!0),
  35705. previewUrls: v,
  35706. setPreviewUrls: g,
  35707. current: a,
  35708. setCurrent: m,
  35709. setShowPreview: c,
  35710. setMousePosition: y,
  35711. registerImage: _
  35712. }), () => {
  35713. const S = kFe(r.value, []);
  35714. return D(Wt, null, [n.default && n.default(), D(Zae, te(te({}, S), {}, {
  35715. "ria-hidden": !u.value,
  35716. visible: u.value,
  35717. prefixCls: t.previewPrefixCls,
  35718. onClose: O,
  35719. mousePosition: f.value,
  35720. src: v.value.get(a.value),
  35721. icons: t.icons,
  35722. getContainer: s.value
  35723. }), null)]);
  35724. };
  35725. }
  35726. }), jae = NFe, od = {
  35727. x: 0,
  35728. y: 0
  35729. }, BFe = k(k({}, K2()), {
  35730. src: String,
  35731. alt: String,
  35732. rootClassName: String,
  35733. icons: {
  35734. type: Object,
  35735. default: () => ({})
  35736. }
  35737. }), Zae = ae({
  35738. compatConfig: {
  35739. MODE: 3
  35740. },
  35741. name: "Preview",
  35742. inheritAttrs: !1,
  35743. props: BFe,
  35744. emits: ["close", "afterClose"],
  35745. setup(t, e) {
  35746. let {
  35747. emit: n,
  35748. attrs: r
  35749. } = e;
  35750. const {
  35751. rotateLeft: i,
  35752. rotateRight: a,
  35753. zoomIn: o,
  35754. zoomOut: s,
  35755. close: l,
  35756. left: u,
  35757. right: c,
  35758. flipX: f,
  35759. flipY: d
  35760. } = zn(t.icons), h = ve(1), p = ve(0), v = zn({
  35761. x: 1,
  35762. y: 1
  35763. }), [g, m] = DFe(od), y = () => n("close"), _ = ve(), O = zn({
  35764. originX: 0,
  35765. originY: 0,
  35766. deltaX: 0,
  35767. deltaY: 0
  35768. }), S = ve(!1), x = L8.inject(), {
  35769. previewUrls: C,
  35770. current: P,
  35771. isPreviewGroup: $,
  35772. setCurrent: T
  35773. } = x, E = V(() => C.value.size), M = V(() => Array.from(C.value.keys())), R = V(() => M.value.indexOf(P.value)), N = V(() => $.value ? C.value.get(P.value) : t.src), I = V(() => $.value && E.value > 1), B = ve({
  35774. wheelDirection: 0
  35775. }), Q = () => {
  35776. h.value = 1, p.value = 0, v.x = 1, v.y = 1, m(od), n("afterClose");
  35777. }, W = (Be) => {
  35778. Be ? h.value += 0.5 : h.value++, m(od);
  35779. }, H = (Be) => {
  35780. h.value > 1 && (Be ? h.value -= 0.5 : h.value--), m(od);
  35781. }, U = () => {
  35782. p.value += 90;
  35783. }, j = () => {
  35784. p.value -= 90;
  35785. }, Y = () => {
  35786. v.x = -v.x;
  35787. }, ne = () => {
  35788. v.y = -v.y;
  35789. }, fe = (Be) => {
  35790. Be.preventDefault(), Be.stopPropagation(), R.value > 0 && T(M.value[R.value - 1]);
  35791. }, ue = (Be) => {
  35792. Be.preventDefault(), Be.stopPropagation(), R.value < E.value - 1 && T(M.value[R.value + 1]);
  35793. }, ye = Re({
  35794. [`${t.prefixCls}-moving`]: S.value
  35795. }), se = `${t.prefixCls}-operations-operation`, he = `${t.prefixCls}-operations-icon`, re = [{
  35796. icon: l,
  35797. onClick: y,
  35798. type: "close"
  35799. }, {
  35800. icon: o,
  35801. onClick: () => W(),
  35802. type: "zoomIn"
  35803. }, {
  35804. icon: s,
  35805. onClick: () => H(),
  35806. type: "zoomOut",
  35807. disabled: V(() => h.value === 1)
  35808. }, {
  35809. icon: a,
  35810. onClick: U,
  35811. type: "rotateRight"
  35812. }, {
  35813. icon: i,
  35814. onClick: j,
  35815. type: "rotateLeft"
  35816. }, {
  35817. icon: f,
  35818. onClick: Y,
  35819. type: "flipX"
  35820. }, {
  35821. icon: d,
  35822. onClick: ne,
  35823. type: "flipY"
  35824. }], q = () => {
  35825. if (t.visible && S.value) {
  35826. const Be = _.value.offsetWidth * h.value, Le = _.value.offsetHeight * h.value, {
  35827. left: Pe,
  35828. top: Fe
  35829. } = Ure(_.value), Ye = p.value % 180 !== 0;
  35830. S.value = !1;
  35831. const xt = RFe(Ye ? Le : Be, Ye ? Be : Le, Pe, Fe);
  35832. xt && m(k({}, xt));
  35833. }
  35834. }, K = (Be) => {
  35835. Be.button === 0 && (Be.preventDefault(), Be.stopPropagation(), O.deltaX = Be.pageX - g.x, O.deltaY = Be.pageY - g.y, O.originX = g.x, O.originY = g.y, S.value = !0);
  35836. }, de = (Be) => {
  35837. t.visible && S.value && m({
  35838. x: Be.pageX - O.deltaX,
  35839. y: Be.pageY - O.deltaY
  35840. });
  35841. }, xe = (Be) => {
  35842. if (!t.visible) return;
  35843. Be.preventDefault();
  35844. const Le = Be.deltaY;
  35845. B.value = {
  35846. wheelDirection: Le
  35847. };
  35848. }, we = (Be) => {
  35849. !t.visible || !I.value || (Be.preventDefault(), Be.keyCode === Me.LEFT ? R.value > 0 && T(M.value[R.value - 1]) : Be.keyCode === Me.RIGHT && R.value < E.value - 1 && T(M.value[R.value + 1]));
  35850. }, He = () => {
  35851. t.visible && (h.value !== 1 && (h.value = 1), (g.x !== od.x || g.y !== od.y) && m(od));
  35852. };
  35853. let je = () => {
  35854. };
  35855. return _t(() => {
  35856. me([() => t.visible, S], () => {
  35857. je();
  35858. let Be, Le;
  35859. const Pe = yi(window, "mouseup", q, !1), Fe = yi(window, "mousemove", de, !1), Ye = yi(window, "wheel", xe, {
  35860. passive: !1
  35861. }), xt = yi(window, "keydown", we, !1);
  35862. try {
  35863. window.top !== window.self && (Be = yi(window.top, "mouseup", q, !1), Le = yi(window.top, "mousemove", de, !1));
  35864. } catch (It) {
  35865. Nh(!1, `[vc-image] ${It}`);
  35866. }
  35867. je = () => {
  35868. Pe.remove(), Fe.remove(), Ye.remove(), xt.remove(), Be && Be.remove(), Le && Le.remove();
  35869. };
  35870. }, {
  35871. flush: "post",
  35872. immediate: !0
  35873. }), me([B], () => {
  35874. const {
  35875. wheelDirection: Be
  35876. } = B.value;
  35877. Be > 0 ? H(!0) : Be < 0 && W(!0);
  35878. });
  35879. }), qu(() => {
  35880. je();
  35881. }), () => {
  35882. const {
  35883. visible: Be,
  35884. prefixCls: Le,
  35885. rootClassName: Pe
  35886. } = t;
  35887. return D(Gae, te(te({}, r), {}, {
  35888. transitionName: t.transitionName,
  35889. maskTransitionName: t.maskTransitionName,
  35890. closable: !1,
  35891. keyboard: !0,
  35892. prefixCls: Le,
  35893. onClose: y,
  35894. afterClose: Q,
  35895. visible: Be,
  35896. wrapClassName: ye,
  35897. rootClassName: Pe,
  35898. getContainer: t.getContainer
  35899. }), {
  35900. default: () => [D("div", {
  35901. class: [`${t.prefixCls}-operations-wrapper`, Pe]
  35902. }, [D("ul", {
  35903. class: `${t.prefixCls}-operations`
  35904. }, [re.map((Fe) => {
  35905. let {
  35906. icon: Ye,
  35907. onClick: xt,
  35908. type: It,
  35909. disabled: an
  35910. } = Fe;
  35911. return D("li", {
  35912. class: Re(se, {
  35913. [`${t.prefixCls}-operations-operation-disabled`]: an && (an == null ? void 0 : an.value)
  35914. }),
  35915. onClick: xt,
  35916. key: It
  35917. }, [ku(Ye, {
  35918. class: he
  35919. })]);
  35920. })])]), D("div", {
  35921. class: `${t.prefixCls}-img-wrapper`,
  35922. style: {
  35923. transform: `translate3d(${g.x}px, ${g.y}px, 0)`
  35924. }
  35925. }, [D("img", {
  35926. onMousedown: K,
  35927. onDblclick: He,
  35928. ref: _,
  35929. class: `${t.prefixCls}-img`,
  35930. src: N.value,
  35931. alt: t.alt,
  35932. style: {
  35933. transform: `scale3d(${v.x * h.value}, ${v.y * h.value}, 1) rotate(${p.value}deg)`
  35934. }
  35935. }, null)]), I.value && D("div", {
  35936. class: Re(`${t.prefixCls}-switch-left`, {
  35937. [`${t.prefixCls}-switch-left-disabled`]: R.value <= 0
  35938. }),
  35939. onClick: fe
  35940. }, [u]), I.value && D("div", {
  35941. class: Re(`${t.prefixCls}-switch-right`, {
  35942. [`${t.prefixCls}-switch-right-disabled`]: R.value >= E.value - 1
  35943. }),
  35944. onClick: ue
  35945. }, [c])]
  35946. });
  35947. };
  35948. }
  35949. });
  35950. var zFe = function(t, e) {
  35951. var n = {};
  35952. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  35953. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  35954. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  35955. return n;
  35956. };
  35957. const Uae = () => ({
  35958. src: String,
  35959. wrapperClassName: String,
  35960. wrapperStyle: {
  35961. type: Object,
  35962. default: void 0
  35963. },
  35964. rootClassName: String,
  35965. prefixCls: String,
  35966. previewPrefixCls: String,
  35967. previewMask: {
  35968. type: [Boolean, Function],
  35969. default: void 0
  35970. },
  35971. placeholder: oe.any,
  35972. fallback: String,
  35973. preview: {
  35974. type: [Boolean, Object],
  35975. default: !0
  35976. },
  35977. onClick: {
  35978. type: Function
  35979. },
  35980. onError: {
  35981. type: Function
  35982. }
  35983. }), Xae = (t, e) => {
  35984. const n = k({}, t);
  35985. return Object.keys(e).forEach((r) => {
  35986. t[r] === void 0 && (n[r] = e[r]);
  35987. }), n;
  35988. };
  35989. let VFe = 0;
  35990. const Yae = ae({
  35991. compatConfig: {
  35992. MODE: 3
  35993. },
  35994. name: "VcImage",
  35995. inheritAttrs: !1,
  35996. props: Uae(),
  35997. emits: ["click", "error"],
  35998. setup(t, e) {
  35999. let {
  36000. attrs: n,
  36001. slots: r,
  36002. emit: i
  36003. } = e;
  36004. const a = V(() => t.prefixCls), o = V(() => `${a.value}-preview`), s = V(() => {
  36005. const W = {
  36006. visible: void 0,
  36007. onVisibleChange: () => {
  36008. },
  36009. getContainer: void 0
  36010. };
  36011. return typeof t.preview == "object" ? Xae(t.preview, W) : W;
  36012. }), l = V(() => {
  36013. var W;
  36014. return (W = s.value.src) !== null && W !== void 0 ? W : t.src;
  36015. }), u = V(() => t.placeholder && t.placeholder !== !0 || r.placeholder), c = V(() => s.value.visible), f = V(() => s.value.getContainer), d = V(() => c.value !== void 0), h = (W, H) => {
  36016. var U, j;
  36017. (j = (U = s.value).onVisibleChange) === null || j === void 0 || j.call(U, W, H);
  36018. }, [p, v] = Rg(!!c.value, {
  36019. value: c,
  36020. onChange: h
  36021. }), g = ee(u.value ? "loading" : "normal");
  36022. me(() => t.src, () => {
  36023. g.value = u.value ? "loading" : "normal";
  36024. });
  36025. const m = ee(null), y = V(() => g.value === "error"), _ = L8.inject(), {
  36026. isPreviewGroup: O,
  36027. setCurrent: S,
  36028. setShowPreview: x,
  36029. setMousePosition: C,
  36030. registerImage: P
  36031. } = _, $ = ee(VFe++), T = V(() => t.preview && !y.value), E = () => {
  36032. g.value = "normal";
  36033. }, M = (W) => {
  36034. g.value = "error", i("error", W);
  36035. }, R = (W) => {
  36036. if (!d.value) {
  36037. const {
  36038. left: H,
  36039. top: U
  36040. } = Ure(W.target);
  36041. O.value ? (S($.value), C({
  36042. x: H,
  36043. y: U
  36044. })) : m.value = {
  36045. x: H,
  36046. y: U
  36047. };
  36048. }
  36049. O.value ? x(!0) : v(!0), i("click", W);
  36050. }, N = () => {
  36051. v(!1), d.value || (m.value = null);
  36052. }, I = ee(null);
  36053. me(() => I, () => {
  36054. g.value === "loading" && I.value.complete && (I.value.naturalWidth || I.value.naturalHeight) && E();
  36055. });
  36056. let B = () => {
  36057. };
  36058. _t(() => {
  36059. me([l, T], () => {
  36060. if (B(), !O.value)
  36061. return () => {
  36062. };
  36063. B = P($.value, l.value, T.value), T.value || B();
  36064. }, {
  36065. flush: "post",
  36066. immediate: !0
  36067. });
  36068. }), qu(() => {
  36069. B();
  36070. });
  36071. const Q = (W) => e$e(W) ? W + "px" : W;
  36072. return () => {
  36073. const {
  36074. prefixCls: W,
  36075. wrapperClassName: H,
  36076. fallback: U,
  36077. src: j,
  36078. placeholder: Y,
  36079. wrapperStyle: ne,
  36080. rootClassName: fe
  36081. } = t, {
  36082. width: ue,
  36083. height: ye,
  36084. crossorigin: se,
  36085. decoding: he,
  36086. alt: re,
  36087. sizes: q,
  36088. srcset: K,
  36089. usemap: de,
  36090. class: xe,
  36091. style: we
  36092. } = n, He = s.value, {
  36093. icons: je,
  36094. maskClassName: Be
  36095. } = He, Le = zFe(He, ["icons", "maskClassName"]), Pe = Re(W, H, fe, {
  36096. [`${W}-error`]: y.value
  36097. }), Fe = y.value && U ? U : l.value, Ye = {
  36098. crossorigin: se,
  36099. decoding: he,
  36100. alt: re,
  36101. sizes: q,
  36102. srcset: K,
  36103. usemap: de,
  36104. width: ue,
  36105. height: ye,
  36106. class: Re(`${W}-img`, {
  36107. [`${W}-img-placeholder`]: Y === !0
  36108. }, xe),
  36109. style: k({
  36110. height: Q(ye)
  36111. }, we)
  36112. };
  36113. return D(Wt, null, [D("div", {
  36114. class: Pe,
  36115. onClick: T.value ? R : (xt) => {
  36116. i("click", xt);
  36117. },
  36118. style: k({
  36119. width: Q(ue),
  36120. height: Q(ye)
  36121. }, ne)
  36122. }, [D("img", te(te(te({}, Ye), y.value && U ? {
  36123. src: U
  36124. } : {
  36125. onLoad: E,
  36126. onError: M,
  36127. src: j
  36128. }), {}, {
  36129. ref: I
  36130. }), null), g.value === "loading" && D("div", {
  36131. "aria-hidden": "true",
  36132. class: `${W}-placeholder`
  36133. }, [Y || r.placeholder && r.placeholder()]), r.previewMask && T.value && D("div", {
  36134. class: [`${W}-mask`, Be]
  36135. }, [r.previewMask()])]), !O.value && T.value && D(Zae, te(te({}, Le), {}, {
  36136. "aria-hidden": !p.value,
  36137. visible: p.value,
  36138. prefixCls: o.value,
  36139. onClose: N,
  36140. mousePosition: m.value,
  36141. src: Fe,
  36142. alt: re,
  36143. getContainer: f.value,
  36144. icons: je,
  36145. rootClassName: fe
  36146. }), null)]);
  36147. };
  36148. }
  36149. });
  36150. Yae.PreviewGroup = jae;
  36151. const FFe = Yae;
  36152. var WFe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" } }, { tag: "path", attrs: { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" } }] }, name: "rotate-left", theme: "outlined" };
  36153. function y9(t) {
  36154. for (var e = 1; e < arguments.length; e++) {
  36155. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  36156. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  36157. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  36158. }))), r.forEach(function(i) {
  36159. QFe(t, i, n[i]);
  36160. });
  36161. }
  36162. return t;
  36163. }
  36164. function QFe(t, e, n) {
  36165. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  36166. }
  36167. var N8 = function(e, n) {
  36168. var r = y9({}, e, n.attrs);
  36169. return D(Rt, y9({}, r, {
  36170. icon: WFe
  36171. }), null);
  36172. };
  36173. N8.displayName = "RotateLeftOutlined";
  36174. N8.inheritAttrs = !1;
  36175. var HFe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" } }, { tag: "path", attrs: { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" } }] }, name: "rotate-right", theme: "outlined" };
  36176. function b9(t) {
  36177. for (var e = 1; e < arguments.length; e++) {
  36178. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  36179. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  36180. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  36181. }))), r.forEach(function(i) {
  36182. GFe(t, i, n[i]);
  36183. });
  36184. }
  36185. return t;
  36186. }
  36187. function GFe(t, e, n) {
  36188. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  36189. }
  36190. var B8 = function(e, n) {
  36191. var r = b9({}, e, n.attrs);
  36192. return D(Rt, b9({}, r, {
  36193. icon: HFe
  36194. }), null);
  36195. };
  36196. B8.displayName = "RotateRightOutlined";
  36197. B8.inheritAttrs = !1;
  36198. var jFe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-in", theme: "outlined" };
  36199. function _9(t) {
  36200. for (var e = 1; e < arguments.length; e++) {
  36201. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  36202. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  36203. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  36204. }))), r.forEach(function(i) {
  36205. ZFe(t, i, n[i]);
  36206. });
  36207. }
  36208. return t;
  36209. }
  36210. function ZFe(t, e, n) {
  36211. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  36212. }
  36213. var z8 = function(e, n) {
  36214. var r = _9({}, e, n.attrs);
  36215. return D(Rt, _9({}, r, {
  36216. icon: jFe
  36217. }), null);
  36218. };
  36219. z8.displayName = "ZoomInOutlined";
  36220. z8.inheritAttrs = !1;
  36221. var UFe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-out", theme: "outlined" };
  36222. function O9(t) {
  36223. for (var e = 1; e < arguments.length; e++) {
  36224. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  36225. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  36226. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  36227. }))), r.forEach(function(i) {
  36228. XFe(t, i, n[i]);
  36229. });
  36230. }
  36231. return t;
  36232. }
  36233. function XFe(t, e, n) {
  36234. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  36235. }
  36236. var V8 = function(e, n) {
  36237. var r = O9({}, e, n.attrs);
  36238. return D(Rt, O9({}, r, {
  36239. icon: UFe
  36240. }), null);
  36241. };
  36242. V8.displayName = "ZoomOutOutlined";
  36243. V8.inheritAttrs = !1;
  36244. var YFe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "swap", theme: "outlined" };
  36245. function S9(t) {
  36246. for (var e = 1; e < arguments.length; e++) {
  36247. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  36248. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  36249. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  36250. }))), r.forEach(function(i) {
  36251. qFe(t, i, n[i]);
  36252. });
  36253. }
  36254. return t;
  36255. }
  36256. function qFe(t, e, n) {
  36257. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  36258. }
  36259. var pC = function(e, n) {
  36260. var r = S9({}, e, n.attrs);
  36261. return D(Rt, S9({}, r, {
  36262. icon: YFe
  36263. }), null);
  36264. };
  36265. pC.displayName = "SwapOutlined";
  36266. pC.inheritAttrs = !1;
  36267. function x9(t) {
  36268. return {
  36269. position: t,
  36270. top: 0,
  36271. insetInlineEnd: 0,
  36272. bottom: 0,
  36273. insetInlineStart: 0
  36274. };
  36275. }
  36276. const qae = (t) => {
  36277. const {
  36278. componentCls: e
  36279. } = t;
  36280. return [{
  36281. [`${e}-root`]: {
  36282. [`${e}${t.antCls}-zoom-enter, ${e}${t.antCls}-zoom-appear`]: {
  36283. // reset scale avoid mousePosition bug
  36284. transform: "none",
  36285. opacity: 0,
  36286. animationDuration: t.motionDurationSlow,
  36287. // https://github.com/ant-design/ant-design/issues/11777
  36288. userSelect: "none"
  36289. },
  36290. [`${e}${t.antCls}-zoom-leave ${e}-content`]: {
  36291. pointerEvents: "none"
  36292. },
  36293. [`${e}-mask`]: k(k({}, x9("fixed")), {
  36294. zIndex: t.zIndexPopupBase,
  36295. height: "100%",
  36296. backgroundColor: t.colorBgMask,
  36297. [`${e}-hidden`]: {
  36298. display: "none"
  36299. }
  36300. }),
  36301. [`${e}-wrap`]: k(k({}, x9("fixed")), {
  36302. overflow: "auto",
  36303. outline: 0,
  36304. WebkitOverflowScrolling: "touch"
  36305. })
  36306. }
  36307. }, {
  36308. [`${e}-root`]: vie(t)
  36309. }];
  36310. }, KFe = (t) => {
  36311. const {
  36312. componentCls: e
  36313. } = t;
  36314. return [
  36315. // ======================== Root =========================
  36316. {
  36317. [`${e}-root`]: {
  36318. [`${e}-wrap`]: {
  36319. zIndex: t.zIndexPopupBase,
  36320. position: "fixed",
  36321. inset: 0,
  36322. overflow: "auto",
  36323. outline: 0,
  36324. WebkitOverflowScrolling: "touch"
  36325. },
  36326. [`${e}-wrap-rtl`]: {
  36327. direction: "rtl"
  36328. },
  36329. [`${e}-centered`]: {
  36330. textAlign: "center",
  36331. "&::before": {
  36332. display: "inline-block",
  36333. width: 0,
  36334. height: "100%",
  36335. verticalAlign: "middle",
  36336. content: '""'
  36337. },
  36338. [e]: {
  36339. top: 0,
  36340. display: "inline-block",
  36341. paddingBottom: 0,
  36342. textAlign: "start",
  36343. verticalAlign: "middle"
  36344. }
  36345. },
  36346. [`@media (max-width: ${t.screenSMMax})`]: {
  36347. [e]: {
  36348. maxWidth: "calc(100vw - 16px)",
  36349. margin: `${t.marginXS} auto`
  36350. },
  36351. [`${e}-centered`]: {
  36352. [e]: {
  36353. flex: 1
  36354. }
  36355. }
  36356. }
  36357. }
  36358. },
  36359. // ======================== Modal ========================
  36360. {
  36361. [e]: k(k({}, Gn(t)), {
  36362. pointerEvents: "none",
  36363. position: "relative",
  36364. top: 100,
  36365. width: "auto",
  36366. maxWidth: `calc(100vw - ${t.margin * 2}px)`,
  36367. margin: "0 auto",
  36368. paddingBottom: t.paddingLG,
  36369. [`${e}-title`]: {
  36370. margin: 0,
  36371. color: t.modalHeadingColor,
  36372. fontWeight: t.fontWeightStrong,
  36373. fontSize: t.modalHeaderTitleFontSize,
  36374. lineHeight: t.modalHeaderTitleLineHeight,
  36375. wordWrap: "break-word"
  36376. },
  36377. [`${e}-content`]: {
  36378. position: "relative",
  36379. backgroundColor: t.modalContentBg,
  36380. backgroundClip: "padding-box",
  36381. border: 0,
  36382. borderRadius: t.borderRadiusLG,
  36383. boxShadow: t.boxShadowSecondary,
  36384. pointerEvents: "auto",
  36385. padding: `${t.paddingMD}px ${t.paddingContentHorizontalLG}px`
  36386. },
  36387. [`${e}-close`]: k({
  36388. position: "absolute",
  36389. top: (t.modalHeaderCloseSize - t.modalCloseBtnSize) / 2,
  36390. insetInlineEnd: (t.modalHeaderCloseSize - t.modalCloseBtnSize) / 2,
  36391. zIndex: t.zIndexPopupBase + 10,
  36392. padding: 0,
  36393. color: t.modalCloseColor,
  36394. fontWeight: t.fontWeightStrong,
  36395. lineHeight: 1,
  36396. textDecoration: "none",
  36397. background: "transparent",
  36398. borderRadius: t.borderRadiusSM,
  36399. width: t.modalConfirmIconSize,
  36400. height: t.modalConfirmIconSize,
  36401. border: 0,
  36402. outline: 0,
  36403. cursor: "pointer",
  36404. transition: `color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,
  36405. "&-x": {
  36406. display: "block",
  36407. fontSize: t.fontSizeLG,
  36408. fontStyle: "normal",
  36409. lineHeight: `${t.modalCloseBtnSize}px`,
  36410. textAlign: "center",
  36411. textTransform: "none",
  36412. textRendering: "auto"
  36413. },
  36414. "&:hover": {
  36415. color: t.modalIconHoverColor,
  36416. backgroundColor: t.wireframe ? "transparent" : t.colorFillContent,
  36417. textDecoration: "none"
  36418. },
  36419. "&:active": {
  36420. backgroundColor: t.wireframe ? "transparent" : t.colorFillContentHover
  36421. }
  36422. }, T2(t)),
  36423. [`${e}-header`]: {
  36424. color: t.colorText,
  36425. background: t.modalHeaderBg,
  36426. borderRadius: `${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,
  36427. marginBottom: t.marginXS
  36428. },
  36429. [`${e}-body`]: {
  36430. fontSize: t.fontSize,
  36431. lineHeight: t.lineHeight,
  36432. wordWrap: "break-word"
  36433. },
  36434. [`${e}-footer`]: {
  36435. textAlign: "end",
  36436. background: t.modalFooterBg,
  36437. marginTop: t.marginSM,
  36438. [`${t.antCls}-btn + ${t.antCls}-btn:not(${t.antCls}-dropdown-trigger)`]: {
  36439. marginBottom: 0,
  36440. marginInlineStart: t.marginXS
  36441. }
  36442. },
  36443. [`${e}-open`]: {
  36444. overflow: "hidden"
  36445. }
  36446. })
  36447. },
  36448. // ======================== Pure =========================
  36449. {
  36450. [`${e}-pure-panel`]: {
  36451. top: "auto",
  36452. padding: 0,
  36453. display: "flex",
  36454. flexDirection: "column",
  36455. [`${e}-content,
  36456. ${e}-body,
  36457. ${e}-confirm-body-wrapper`]: {
  36458. display: "flex",
  36459. flexDirection: "column",
  36460. flex: "auto"
  36461. },
  36462. [`${e}-confirm-body`]: {
  36463. marginBottom: "auto"
  36464. }
  36465. }
  36466. }
  36467. ];
  36468. }, JFe = (t) => {
  36469. const {
  36470. componentCls: e
  36471. } = t, n = `${e}-confirm`;
  36472. return {
  36473. [n]: {
  36474. "&-rtl": {
  36475. direction: "rtl"
  36476. },
  36477. [`${t.antCls}-modal-header`]: {
  36478. display: "none"
  36479. },
  36480. [`${n}-body-wrapper`]: k({}, Kw()),
  36481. [`${n}-body`]: {
  36482. display: "flex",
  36483. flexWrap: "wrap",
  36484. alignItems: "center",
  36485. [`${n}-title`]: {
  36486. flex: "0 0 100%",
  36487. display: "block",
  36488. // create BFC to avoid
  36489. // https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
  36490. overflow: "hidden",
  36491. color: t.colorTextHeading,
  36492. fontWeight: t.fontWeightStrong,
  36493. fontSize: t.modalHeaderTitleFontSize,
  36494. lineHeight: t.modalHeaderTitleLineHeight,
  36495. [`+ ${n}-content`]: {
  36496. marginBlockStart: t.marginXS,
  36497. flexBasis: "100%",
  36498. maxWidth: `calc(100% - ${t.modalConfirmIconSize + t.marginSM}px)`
  36499. }
  36500. },
  36501. [`${n}-content`]: {
  36502. color: t.colorText,
  36503. fontSize: t.fontSize
  36504. },
  36505. [`> ${t.iconCls}`]: {
  36506. flex: "none",
  36507. marginInlineEnd: t.marginSM,
  36508. fontSize: t.modalConfirmIconSize,
  36509. [`+ ${n}-title`]: {
  36510. flex: 1
  36511. },
  36512. // `content` after `icon` should set marginLeft
  36513. [`+ ${n}-title + ${n}-content`]: {
  36514. marginInlineStart: t.modalConfirmIconSize + t.marginSM
  36515. }
  36516. }
  36517. },
  36518. [`${n}-btns`]: {
  36519. textAlign: "end",
  36520. marginTop: t.marginSM,
  36521. [`${t.antCls}-btn + ${t.antCls}-btn`]: {
  36522. marginBottom: 0,
  36523. marginInlineStart: t.marginXS
  36524. }
  36525. }
  36526. },
  36527. [`${n}-error ${n}-body > ${t.iconCls}`]: {
  36528. color: t.colorError
  36529. },
  36530. [`${n}-warning ${n}-body > ${t.iconCls},
  36531. ${n}-confirm ${n}-body > ${t.iconCls}`]: {
  36532. color: t.colorWarning
  36533. },
  36534. [`${n}-info ${n}-body > ${t.iconCls}`]: {
  36535. color: t.colorInfo
  36536. },
  36537. [`${n}-success ${n}-body > ${t.iconCls}`]: {
  36538. color: t.colorSuccess
  36539. },
  36540. // https://github.com/ant-design/ant-design/issues/37329
  36541. [`${e}-zoom-leave ${e}-btns`]: {
  36542. pointerEvents: "none"
  36543. }
  36544. };
  36545. }, eWe = (t) => {
  36546. const {
  36547. componentCls: e
  36548. } = t;
  36549. return {
  36550. [`${e}-root`]: {
  36551. [`${e}-wrap-rtl`]: {
  36552. direction: "rtl",
  36553. [`${e}-confirm-body`]: {
  36554. direction: "rtl"
  36555. }
  36556. }
  36557. }
  36558. };
  36559. }, tWe = (t) => {
  36560. const {
  36561. componentCls: e,
  36562. antCls: n
  36563. } = t, r = `${e}-confirm`;
  36564. return {
  36565. [e]: {
  36566. [`${e}-content`]: {
  36567. padding: 0
  36568. },
  36569. [`${e}-header`]: {
  36570. padding: t.modalHeaderPadding,
  36571. borderBottom: `${t.modalHeaderBorderWidth}px ${t.modalHeaderBorderStyle} ${t.modalHeaderBorderColorSplit}`,
  36572. marginBottom: 0
  36573. },
  36574. [`${e}-body`]: {
  36575. padding: t.modalBodyPadding
  36576. },
  36577. [`${e}-footer`]: {
  36578. padding: `${t.modalFooterPaddingVertical}px ${t.modalFooterPaddingHorizontal}px`,
  36579. borderTop: `${t.modalFooterBorderWidth}px ${t.modalFooterBorderStyle} ${t.modalFooterBorderColorSplit}`,
  36580. borderRadius: `0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`,
  36581. marginTop: 0
  36582. }
  36583. },
  36584. [r]: {
  36585. [`${n}-modal-body`]: {
  36586. padding: `${t.padding * 2}px ${t.padding * 2}px ${t.paddingLG}px`
  36587. },
  36588. [`${r}-body`]: {
  36589. [`> ${t.iconCls}`]: {
  36590. marginInlineEnd: t.margin,
  36591. // `content` after `icon` should set marginLeft
  36592. [`+ ${r}-title + ${r}-content`]: {
  36593. marginInlineStart: t.modalConfirmIconSize + t.margin
  36594. }
  36595. }
  36596. },
  36597. [`${r}-btns`]: {
  36598. marginTop: t.marginLG
  36599. }
  36600. }
  36601. };
  36602. }, nWe = pr("Modal", (t) => {
  36603. const e = t.padding, n = t.fontSizeHeading5, r = t.lineHeightHeading5, i = bn(t, {
  36604. modalBodyPadding: t.paddingLG,
  36605. modalHeaderBg: t.colorBgElevated,
  36606. modalHeaderPadding: `${e}px ${t.paddingLG}px`,
  36607. modalHeaderBorderWidth: t.lineWidth,
  36608. modalHeaderBorderStyle: t.lineType,
  36609. modalHeaderTitleLineHeight: r,
  36610. modalHeaderTitleFontSize: n,
  36611. modalHeaderBorderColorSplit: t.colorSplit,
  36612. modalHeaderCloseSize: r * n + e * 2,
  36613. modalContentBg: t.colorBgElevated,
  36614. modalHeadingColor: t.colorTextHeading,
  36615. modalCloseColor: t.colorTextDescription,
  36616. modalFooterBg: "transparent",
  36617. modalFooterBorderColorSplit: t.colorSplit,
  36618. modalFooterBorderStyle: t.lineType,
  36619. modalFooterPaddingVertical: t.paddingXS,
  36620. modalFooterPaddingHorizontal: t.padding,
  36621. modalFooterBorderWidth: t.lineWidth,
  36622. modalConfirmTitleFontSize: t.fontSizeLG,
  36623. modalIconHoverColor: t.colorIconHover,
  36624. modalConfirmIconSize: t.fontSize * t.lineHeight,
  36625. modalCloseBtnSize: t.controlHeightLG * 0.55
  36626. });
  36627. return [KFe(i), JFe(i), eWe(i), qae(i), t.wireframe && tWe(i), B2(i, "zoom")];
  36628. }), WR = (t) => ({
  36629. position: t || "absolute",
  36630. inset: 0
  36631. }), rWe = (t) => {
  36632. const {
  36633. iconCls: e,
  36634. motionDurationSlow: n,
  36635. paddingXXS: r,
  36636. marginXXS: i,
  36637. prefixCls: a
  36638. } = t;
  36639. return {
  36640. position: "absolute",
  36641. inset: 0,
  36642. display: "flex",
  36643. alignItems: "center",
  36644. justifyContent: "center",
  36645. color: "#fff",
  36646. background: new Hn("#000").setAlpha(0.5).toRgbString(),
  36647. cursor: "pointer",
  36648. opacity: 0,
  36649. transition: `opacity ${n}`,
  36650. [`.${a}-mask-info`]: k(k({}, Mg), {
  36651. padding: `0 ${r}px`,
  36652. [e]: {
  36653. marginInlineEnd: i,
  36654. svg: {
  36655. verticalAlign: "baseline"
  36656. }
  36657. }
  36658. })
  36659. };
  36660. }, iWe = (t) => {
  36661. const {
  36662. previewCls: e,
  36663. modalMaskBg: n,
  36664. paddingSM: r,
  36665. previewOperationColorDisabled: i,
  36666. motionDurationSlow: a
  36667. } = t, o = new Hn(n).setAlpha(0.1), s = o.clone().setAlpha(0.2);
  36668. return {
  36669. [`${e}-operations`]: k(k({}, Gn(t)), {
  36670. display: "flex",
  36671. flexDirection: "row-reverse",
  36672. alignItems: "center",
  36673. color: t.previewOperationColor,
  36674. listStyle: "none",
  36675. background: o.toRgbString(),
  36676. pointerEvents: "auto",
  36677. "&-operation": {
  36678. marginInlineStart: r,
  36679. padding: r,
  36680. cursor: "pointer",
  36681. transition: `all ${a}`,
  36682. userSelect: "none",
  36683. "&:hover": {
  36684. background: s.toRgbString()
  36685. },
  36686. "&-disabled": {
  36687. color: i,
  36688. pointerEvents: "none"
  36689. },
  36690. "&:last-of-type": {
  36691. marginInlineStart: 0
  36692. }
  36693. },
  36694. "&-progress": {
  36695. position: "absolute",
  36696. left: {
  36697. _skip_check_: !0,
  36698. value: "50%"
  36699. },
  36700. transform: "translateX(-50%)"
  36701. },
  36702. "&-icon": {
  36703. fontSize: t.previewOperationSize
  36704. }
  36705. })
  36706. };
  36707. }, aWe = (t) => {
  36708. const {
  36709. modalMaskBg: e,
  36710. iconCls: n,
  36711. previewOperationColorDisabled: r,
  36712. previewCls: i,
  36713. zIndexPopup: a,
  36714. motionDurationSlow: o
  36715. } = t, s = new Hn(e).setAlpha(0.1), l = s.clone().setAlpha(0.2);
  36716. return {
  36717. [`${i}-switch-left, ${i}-switch-right`]: {
  36718. position: "fixed",
  36719. insetBlockStart: "50%",
  36720. zIndex: a + 1,
  36721. display: "flex",
  36722. alignItems: "center",
  36723. justifyContent: "center",
  36724. width: t.imagePreviewSwitchSize,
  36725. height: t.imagePreviewSwitchSize,
  36726. marginTop: -t.imagePreviewSwitchSize / 2,
  36727. color: t.previewOperationColor,
  36728. background: s.toRgbString(),
  36729. borderRadius: "50%",
  36730. transform: "translateY(-50%)",
  36731. cursor: "pointer",
  36732. transition: `all ${o}`,
  36733. pointerEvents: "auto",
  36734. userSelect: "none",
  36735. "&:hover": {
  36736. background: l.toRgbString()
  36737. },
  36738. "&-disabled": {
  36739. "&, &:hover": {
  36740. color: r,
  36741. background: "transparent",
  36742. cursor: "not-allowed",
  36743. [`> ${n}`]: {
  36744. cursor: "not-allowed"
  36745. }
  36746. }
  36747. },
  36748. [`> ${n}`]: {
  36749. fontSize: t.previewOperationSize
  36750. }
  36751. },
  36752. [`${i}-switch-left`]: {
  36753. insetInlineStart: t.marginSM
  36754. },
  36755. [`${i}-switch-right`]: {
  36756. insetInlineEnd: t.marginSM
  36757. }
  36758. };
  36759. }, oWe = (t) => {
  36760. const {
  36761. motionEaseOut: e,
  36762. previewCls: n,
  36763. motionDurationSlow: r,
  36764. componentCls: i
  36765. } = t;
  36766. return [
  36767. {
  36768. [`${i}-preview-root`]: {
  36769. [n]: {
  36770. height: "100%",
  36771. textAlign: "center",
  36772. pointerEvents: "none"
  36773. },
  36774. [`${n}-body`]: k(k({}, WR()), {
  36775. overflow: "hidden"
  36776. }),
  36777. [`${n}-img`]: {
  36778. maxWidth: "100%",
  36779. maxHeight: "100%",
  36780. verticalAlign: "middle",
  36781. transform: "scale3d(1, 1, 1)",
  36782. cursor: "grab",
  36783. transition: `transform ${r} ${e} 0s`,
  36784. userSelect: "none",
  36785. pointerEvents: "auto",
  36786. "&-wrapper": k(k({}, WR()), {
  36787. transition: `transform ${r} ${e} 0s`,
  36788. // https://github.com/ant-design/ant-design/issues/39913
  36789. // TailwindCSS will reset img default style.
  36790. // Let's set back.
  36791. display: "flex",
  36792. justifyContent: "center",
  36793. alignItems: "center",
  36794. "&::before": {
  36795. display: "inline-block",
  36796. width: 1,
  36797. height: "50%",
  36798. marginInlineEnd: -1,
  36799. content: '""'
  36800. }
  36801. })
  36802. },
  36803. [`${n}-moving`]: {
  36804. [`${n}-preview-img`]: {
  36805. cursor: "grabbing",
  36806. "&-wrapper": {
  36807. transitionDuration: "0s"
  36808. }
  36809. }
  36810. }
  36811. }
  36812. },
  36813. // Override
  36814. {
  36815. [`${i}-preview-root`]: {
  36816. [`${n}-wrap`]: {
  36817. zIndex: t.zIndexPopup
  36818. }
  36819. }
  36820. },
  36821. // Preview operations & switch
  36822. {
  36823. [`${i}-preview-operations-wrapper`]: {
  36824. position: "fixed",
  36825. insetBlockStart: 0,
  36826. insetInlineEnd: 0,
  36827. zIndex: t.zIndexPopup + 1,
  36828. width: "100%"
  36829. },
  36830. "&": [iWe(t), aWe(t)]
  36831. }
  36832. ];
  36833. }, sWe = (t) => {
  36834. const {
  36835. componentCls: e
  36836. } = t;
  36837. return {
  36838. // ============================== image ==============================
  36839. [e]: {
  36840. position: "relative",
  36841. display: "inline-block",
  36842. [`${e}-img`]: {
  36843. width: "100%",
  36844. height: "auto",
  36845. verticalAlign: "middle"
  36846. },
  36847. [`${e}-img-placeholder`]: {
  36848. backgroundColor: t.colorBgContainerDisabled,
  36849. backgroundImage: "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",
  36850. backgroundRepeat: "no-repeat",
  36851. backgroundPosition: "center center",
  36852. backgroundSize: "30%"
  36853. },
  36854. [`${e}-mask`]: k({}, rWe(t)),
  36855. [`${e}-mask:hover`]: {
  36856. opacity: 1
  36857. },
  36858. [`${e}-placeholder`]: k({}, WR())
  36859. }
  36860. };
  36861. }, lWe = (t) => {
  36862. const {
  36863. previewCls: e
  36864. } = t;
  36865. return {
  36866. [`${e}-root`]: B2(t, "zoom"),
  36867. "&": vie(t, !0)
  36868. };
  36869. }, Kae = pr("Image", (t) => {
  36870. const e = `${t.componentCls}-preview`, n = bn(t, {
  36871. previewCls: e,
  36872. modalMaskBg: new Hn("#000").setAlpha(0.45).toRgbString(),
  36873. imagePreviewSwitchSize: t.controlHeightLG
  36874. });
  36875. return [sWe(n), oWe(n), qae(bn(n, {
  36876. componentCls: e
  36877. })), lWe(n)];
  36878. }, (t) => ({
  36879. zIndexPopup: t.zIndexPopupBase + 80,
  36880. previewOperationColor: new Hn(t.colorTextLightSolid).toRgbString(),
  36881. previewOperationColorDisabled: new Hn(t.colorTextLightSolid).setAlpha(0.25).toRgbString(),
  36882. previewOperationSize: t.fontSizeIcon * 1.5
  36883. // FIXME: fontSizeIconLG
  36884. })), Jae = {
  36885. rotateLeft: D(N8, null, null),
  36886. rotateRight: D(B8, null, null),
  36887. zoomIn: D(z8, null, null),
  36888. zoomOut: D(V8, null, null),
  36889. close: D(tc, null, null),
  36890. left: D(T8, null, null),
  36891. right: D(Q2, null, null),
  36892. flipX: D(pC, null, null),
  36893. flipY: D(pC, {
  36894. rotate: 90
  36895. }, null)
  36896. }, uWe = () => ({
  36897. previewPrefixCls: String,
  36898. preview: Fo()
  36899. }), cWe = ae({
  36900. compatConfig: {
  36901. MODE: 3
  36902. },
  36903. name: "AImagePreviewGroup",
  36904. inheritAttrs: !1,
  36905. props: uWe(),
  36906. setup(t, e) {
  36907. let {
  36908. attrs: n,
  36909. slots: r
  36910. } = e;
  36911. const {
  36912. prefixCls: i,
  36913. rootPrefixCls: a
  36914. } = hn("image", t), o = V(() => `${i.value}-preview`), [s, l] = Kae(i), u = V(() => {
  36915. const {
  36916. preview: c
  36917. } = t;
  36918. if (c === !1)
  36919. return c;
  36920. const f = typeof c == "object" ? c : {};
  36921. return k(k({}, f), {
  36922. rootClassName: l.value,
  36923. transitionName: Wl(a.value, "zoom", f.transitionName),
  36924. maskTransitionName: Wl(a.value, "fade", f.maskTransitionName)
  36925. });
  36926. });
  36927. return () => s(D(jae, te(te({}, k(k({}, n), t)), {}, {
  36928. preview: u.value,
  36929. icons: Jae,
  36930. previewPrefixCls: o.value
  36931. }), r));
  36932. }
  36933. }), fWe = cWe, Lc = ae({
  36934. name: "AImage",
  36935. inheritAttrs: !1,
  36936. props: Uae(),
  36937. setup(t, e) {
  36938. let {
  36939. slots: n,
  36940. attrs: r
  36941. } = e;
  36942. const {
  36943. prefixCls: i,
  36944. rootPrefixCls: a,
  36945. configProvider: o
  36946. } = hn("image", t), [s, l] = Kae(i), u = V(() => {
  36947. const {
  36948. preview: c
  36949. } = t;
  36950. if (c === !1)
  36951. return c;
  36952. const f = typeof c == "object" ? c : {};
  36953. return k(k({
  36954. icons: Jae
  36955. }, f), {
  36956. transitionName: Wl(a.value, "zoom", f.transitionName),
  36957. maskTransitionName: Wl(a.value, "fade", f.maskTransitionName)
  36958. });
  36959. });
  36960. return () => {
  36961. var c, f;
  36962. const d = ((f = (c = o.locale) === null || c === void 0 ? void 0 : c.value) === null || f === void 0 ? void 0 : f.Image) || Nu.Image, h = () => D("div", {
  36963. class: `${i.value}-mask-info`
  36964. }, [D(q2, null, null), d == null ? void 0 : d.preview]), {
  36965. previewMask: p = n.previewMask || h
  36966. } = t;
  36967. return s(D(FFe, te(te({}, k(k(k({}, r), t), {
  36968. prefixCls: i.value
  36969. })), {}, {
  36970. preview: u.value,
  36971. rootClassName: Re(t.rootClassName, l.value)
  36972. }), k(k({}, n), {
  36973. previewMask: typeof p == "function" ? p : null
  36974. })));
  36975. };
  36976. }
  36977. });
  36978. Lc.PreviewGroup = fWe;
  36979. Lc.install = function(t) {
  36980. return t.component(Lc.name, Lc), t.component(Lc.PreviewGroup.name, Lc.PreviewGroup), t;
  36981. };
  36982. var dWe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" };
  36983. function w9(t) {
  36984. for (var e = 1; e < arguments.length; e++) {
  36985. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  36986. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  36987. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  36988. }))), r.forEach(function(i) {
  36989. hWe(t, i, n[i]);
  36990. });
  36991. }
  36992. return t;
  36993. }
  36994. function hWe(t, e, n) {
  36995. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  36996. }
  36997. var F8 = function(e, n) {
  36998. var r = w9({}, e, n.attrs);
  36999. return D(Rt, w9({}, r, {
  37000. icon: dWe
  37001. }), null);
  37002. };
  37003. F8.displayName = "UpOutlined";
  37004. F8.inheritAttrs = !1;
  37005. function QR() {
  37006. return typeof BigInt == "function";
  37007. }
  37008. function jy(t) {
  37009. let e = t.trim(), n = e.startsWith("-");
  37010. n && (e = e.slice(1)), e = e.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""), e.startsWith(".") && (e = `0${e}`);
  37011. const r = e || "0", i = r.split("."), a = i[0] || "0", o = i[1] || "0";
  37012. a === "0" && o === "0" && (n = !1);
  37013. const s = n ? "-" : "";
  37014. return {
  37015. negative: n,
  37016. negativeStr: s,
  37017. trimStr: r,
  37018. integerStr: a,
  37019. decimalStr: o,
  37020. fullStr: `${s}${r}`
  37021. };
  37022. }
  37023. function W8(t) {
  37024. const e = String(t);
  37025. return !Number.isNaN(Number(e)) && e.includes("e");
  37026. }
  37027. function Nb(t) {
  37028. const e = String(t);
  37029. if (W8(t)) {
  37030. let n = Number(e.slice(e.indexOf("e-") + 2));
  37031. const r = e.match(/\.(\d+)/);
  37032. return r != null && r[1] && (n += r[1].length), n;
  37033. }
  37034. return e.includes(".") && H8(e) ? e.length - e.indexOf(".") - 1 : 0;
  37035. }
  37036. function Q8(t) {
  37037. let e = String(t);
  37038. if (W8(t)) {
  37039. if (t > Number.MAX_SAFE_INTEGER)
  37040. return String(QR() ? BigInt(t).toString() : Number.MAX_SAFE_INTEGER);
  37041. if (t < Number.MIN_SAFE_INTEGER)
  37042. return String(QR() ? BigInt(t).toString() : Number.MIN_SAFE_INTEGER);
  37043. e = t.toFixed(Nb(e));
  37044. }
  37045. return jy(e).fullStr;
  37046. }
  37047. function H8(t) {
  37048. return typeof t == "number" ? !Number.isNaN(t) : t ? (
  37049. // Normal type: 11.28
  37050. /^\s*-?\d+(\.\d+)?\s*$/.test(t) || // Pre-number: 1.
  37051. /^\s*-?\d+\.\s*$/.test(t) || // Post-number: .1
  37052. /^\s*-?\.\d+\s*$/.test(t)
  37053. ) : !1;
  37054. }
  37055. function eoe(t) {
  37056. return !t && t !== 0 && !Number.isNaN(t) || !String(t).trim();
  37057. }
  37058. class Hd {
  37059. constructor(e) {
  37060. if (this.origin = "", eoe(e)) {
  37061. this.empty = !0;
  37062. return;
  37063. }
  37064. this.origin = String(e), this.number = Number(e);
  37065. }
  37066. negate() {
  37067. return new Hd(-this.toNumber());
  37068. }
  37069. add(e) {
  37070. if (this.isInvalidate())
  37071. return new Hd(e);
  37072. const n = Number(e);
  37073. if (Number.isNaN(n))
  37074. return this;
  37075. const r = this.number + n;
  37076. if (r > Number.MAX_SAFE_INTEGER)
  37077. return new Hd(Number.MAX_SAFE_INTEGER);
  37078. if (r < Number.MIN_SAFE_INTEGER)
  37079. return new Hd(Number.MIN_SAFE_INTEGER);
  37080. const i = Math.max(Nb(this.number), Nb(n));
  37081. return new Hd(r.toFixed(i));
  37082. }
  37083. isEmpty() {
  37084. return this.empty;
  37085. }
  37086. isNaN() {
  37087. return Number.isNaN(this.number);
  37088. }
  37089. isInvalidate() {
  37090. return this.isEmpty() || this.isNaN();
  37091. }
  37092. equals(e) {
  37093. return this.toNumber() === (e == null ? void 0 : e.toNumber());
  37094. }
  37095. lessEquals(e) {
  37096. return this.add(e.negate().toString()).toNumber() <= 0;
  37097. }
  37098. toNumber() {
  37099. return this.number;
  37100. }
  37101. toString() {
  37102. return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : Q8(this.number) : this.origin;
  37103. }
  37104. }
  37105. class Mv {
  37106. constructor(e) {
  37107. if (this.origin = "", eoe(e)) {
  37108. this.empty = !0;
  37109. return;
  37110. }
  37111. if (this.origin = String(e), e === "-" || Number.isNaN(e)) {
  37112. this.nan = !0;
  37113. return;
  37114. }
  37115. let n = e;
  37116. if (W8(n) && (n = Number(n)), n = typeof n == "string" ? n : Q8(n), H8(n)) {
  37117. const r = jy(n);
  37118. this.negative = r.negative;
  37119. const i = r.trimStr.split(".");
  37120. this.integer = BigInt(i[0]);
  37121. const a = i[1] || "0";
  37122. this.decimal = BigInt(a), this.decimalLen = a.length;
  37123. } else
  37124. this.nan = !0;
  37125. }
  37126. getMark() {
  37127. return this.negative ? "-" : "";
  37128. }
  37129. getIntegerStr() {
  37130. return this.integer.toString();
  37131. }
  37132. getDecimalStr() {
  37133. return this.decimal.toString().padStart(this.decimalLen, "0");
  37134. }
  37135. /**
  37136. * Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
  37137. * This is used for add function only.
  37138. */
  37139. alignDecimal(e) {
  37140. const n = `${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e, "0")}`;
  37141. return BigInt(n);
  37142. }
  37143. negate() {
  37144. const e = new Mv(this.toString());
  37145. return e.negative = !e.negative, e;
  37146. }
  37147. add(e) {
  37148. if (this.isInvalidate())
  37149. return new Mv(e);
  37150. const n = new Mv(e);
  37151. if (n.isInvalidate())
  37152. return this;
  37153. const r = Math.max(this.getDecimalStr().length, n.getDecimalStr().length), i = this.alignDecimal(r), a = n.alignDecimal(r), o = (i + a).toString(), {
  37154. negativeStr: s,
  37155. trimStr: l
  37156. } = jy(o), u = `${s}${l.padStart(r + 1, "0")}`;
  37157. return new Mv(`${u.slice(0, -r)}.${u.slice(-r)}`);
  37158. }
  37159. isEmpty() {
  37160. return this.empty;
  37161. }
  37162. isNaN() {
  37163. return this.nan;
  37164. }
  37165. isInvalidate() {
  37166. return this.isEmpty() || this.isNaN();
  37167. }
  37168. equals(e) {
  37169. return this.toString() === (e == null ? void 0 : e.toString());
  37170. }
  37171. lessEquals(e) {
  37172. return this.add(e.negate().toString()).toNumber() <= 0;
  37173. }
  37174. toNumber() {
  37175. return this.isNaN() ? NaN : Number(this.toString());
  37176. }
  37177. toString() {
  37178. return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : jy(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr : this.origin;
  37179. }
  37180. }
  37181. function bl(t) {
  37182. return QR() ? new Mv(t) : new Hd(t);
  37183. }
  37184. function HR(t, e, n) {
  37185. let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  37186. if (t === "")
  37187. return "";
  37188. const {
  37189. negativeStr: i,
  37190. integerStr: a,
  37191. decimalStr: o
  37192. } = jy(t), s = `${e}${o}`, l = `${i}${a}`;
  37193. if (n >= 0) {
  37194. const u = Number(o[n]);
  37195. if (u >= 5 && !r) {
  37196. const c = bl(t).add(`${i}0.${"0".repeat(n)}${10 - u}`);
  37197. return HR(c.toString(), e, n, r);
  37198. }
  37199. return n === 0 ? l : `${l}${e}${o.padEnd(n, "0").slice(0, n)}`;
  37200. }
  37201. return s === ".0" ? l : `${l}${s}`;
  37202. }
  37203. const pWe = 200, vWe = 600, gWe = ae({
  37204. compatConfig: {
  37205. MODE: 3
  37206. },
  37207. name: "StepHandler",
  37208. inheritAttrs: !1,
  37209. props: {
  37210. prefixCls: String,
  37211. upDisabled: Boolean,
  37212. downDisabled: Boolean,
  37213. onStep: Ct()
  37214. },
  37215. slots: Object,
  37216. setup(t, e) {
  37217. let {
  37218. slots: n,
  37219. emit: r
  37220. } = e;
  37221. const i = ee(), a = (s, l) => {
  37222. s.preventDefault(), r("step", l);
  37223. function u() {
  37224. r("step", l), i.value = setTimeout(u, pWe);
  37225. }
  37226. i.value = setTimeout(u, vWe);
  37227. }, o = () => {
  37228. clearTimeout(i.value);
  37229. };
  37230. return Qt(() => {
  37231. o();
  37232. }), () => {
  37233. if (i8())
  37234. return null;
  37235. const {
  37236. prefixCls: s,
  37237. upDisabled: l,
  37238. downDisabled: u
  37239. } = t, c = `${s}-handler`, f = Re(c, `${c}-up`, {
  37240. [`${c}-up-disabled`]: l
  37241. }), d = Re(c, `${c}-down`, {
  37242. [`${c}-down-disabled`]: u
  37243. }), h = {
  37244. unselectable: "on",
  37245. role: "button",
  37246. onMouseup: o,
  37247. onMouseleave: o
  37248. }, {
  37249. upNode: p,
  37250. downNode: v
  37251. } = n;
  37252. return D("div", {
  37253. class: `${c}-wrap`
  37254. }, [D("span", te(te({}, h), {}, {
  37255. onMousedown: (g) => {
  37256. a(g, !0);
  37257. },
  37258. "aria-label": "Increase Value",
  37259. "aria-disabled": l,
  37260. class: f
  37261. }), [(p == null ? void 0 : p()) || D("span", {
  37262. unselectable: "on",
  37263. class: `${s}-handler-up-inner`
  37264. }, null)]), D("span", te(te({}, h), {}, {
  37265. onMousedown: (g) => {
  37266. a(g, !1);
  37267. },
  37268. "aria-label": "Decrease Value",
  37269. "aria-disabled": u,
  37270. class: d
  37271. }), [(v == null ? void 0 : v()) || D("span", {
  37272. unselectable: "on",
  37273. class: `${s}-handler-down-inner`
  37274. }, null)])]);
  37275. };
  37276. }
  37277. });
  37278. function mWe(t, e) {
  37279. const n = ee(null);
  37280. function r() {
  37281. try {
  37282. const {
  37283. selectionStart: a,
  37284. selectionEnd: o,
  37285. value: s
  37286. } = t.value, l = s.substring(0, a), u = s.substring(o);
  37287. n.value = {
  37288. start: a,
  37289. end: o,
  37290. value: s,
  37291. beforeTxt: l,
  37292. afterTxt: u
  37293. };
  37294. } catch {
  37295. }
  37296. }
  37297. function i() {
  37298. if (t.value && n.value && e.value)
  37299. try {
  37300. const {
  37301. value: a
  37302. } = t.value, {
  37303. beforeTxt: o,
  37304. afterTxt: s,
  37305. start: l
  37306. } = n.value;
  37307. let u = a.length;
  37308. if (a.endsWith(s))
  37309. u = a.length - n.value.afterTxt.length;
  37310. else if (a.startsWith(o))
  37311. u = o.length;
  37312. else {
  37313. const c = o[l - 1], f = a.indexOf(c, l - 1);
  37314. f !== -1 && (u = f + 1);
  37315. }
  37316. t.value.setSelectionRange(u, u);
  37317. } catch (a) {
  37318. Nh(!1, `Something warning of cursor restore. Please fire issue about this: ${a.message}`);
  37319. }
  37320. }
  37321. return [r, i];
  37322. }
  37323. const yWe = () => {
  37324. const t = ve(0), e = () => {
  37325. en.cancel(t.value);
  37326. };
  37327. return Qt(() => {
  37328. e();
  37329. }), (n) => {
  37330. e(), t.value = en(() => {
  37331. n();
  37332. });
  37333. };
  37334. };
  37335. var bWe = function(t, e) {
  37336. var n = {};
  37337. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  37338. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  37339. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  37340. return n;
  37341. };
  37342. const C9 = (t, e) => t || e.isEmpty() ? e.toString() : e.toNumber(), T9 = (t) => {
  37343. const e = bl(t);
  37344. return e.isInvalidate() ? null : e;
  37345. }, toe = () => ({
  37346. /** value will show as string */
  37347. stringMode: Tt(),
  37348. defaultValue: or([String, Number]),
  37349. value: or([String, Number]),
  37350. prefixCls: rr(),
  37351. min: or([String, Number]),
  37352. max: or([String, Number]),
  37353. step: or([String, Number], 1),
  37354. tabindex: Number,
  37355. controls: Tt(!0),
  37356. readonly: Tt(),
  37357. disabled: Tt(),
  37358. autofocus: Tt(),
  37359. keyboard: Tt(!0),
  37360. /** Parse display value to validate number */
  37361. parser: Ct(),
  37362. /** Transform `value` to display value show in input */
  37363. formatter: Ct(),
  37364. /** Syntactic sugar of `formatter`. Config precision of display. */
  37365. precision: Number,
  37366. /** Syntactic sugar of `formatter`. Config decimal separator of display. */
  37367. decimalSeparator: String,
  37368. onInput: Ct(),
  37369. onChange: Ct(),
  37370. onPressEnter: Ct(),
  37371. onStep: Ct(),
  37372. onBlur: Ct(),
  37373. onFocus: Ct()
  37374. }), _We = ae({
  37375. compatConfig: {
  37376. MODE: 3
  37377. },
  37378. name: "InnerInputNumber",
  37379. inheritAttrs: !1,
  37380. props: k(k({}, toe()), {
  37381. lazy: Boolean
  37382. }),
  37383. slots: Object,
  37384. setup(t, e) {
  37385. let {
  37386. attrs: n,
  37387. slots: r,
  37388. emit: i,
  37389. expose: a
  37390. } = e;
  37391. const o = ve(), s = ve(!1), l = ve(!1), u = ve(!1), c = ve(bl(t.value));
  37392. function f(j) {
  37393. t.value === void 0 && (c.value = j);
  37394. }
  37395. const d = (j, Y) => {
  37396. if (!Y)
  37397. return t.precision >= 0 ? t.precision : Math.max(Nb(j), Nb(t.step));
  37398. }, h = (j) => {
  37399. const Y = String(j);
  37400. if (t.parser)
  37401. return t.parser(Y);
  37402. let ne = Y;
  37403. return t.decimalSeparator && (ne = ne.replace(t.decimalSeparator, ".")), ne.replace(/[^\w.-]+/g, "");
  37404. }, p = ve(""), v = (j, Y) => {
  37405. if (t.formatter)
  37406. return t.formatter(j, {
  37407. userTyping: Y,
  37408. input: String(p.value)
  37409. });
  37410. let ne = typeof j == "number" ? Q8(j) : j;
  37411. if (!Y) {
  37412. const fe = d(ne, Y);
  37413. if (H8(ne) && (t.decimalSeparator || fe >= 0)) {
  37414. const ue = t.decimalSeparator || ".";
  37415. ne = HR(ne, ue, fe);
  37416. }
  37417. }
  37418. return ne;
  37419. }, g = (() => {
  37420. const j = t.value;
  37421. return c.value.isInvalidate() && ["string", "number"].includes(typeof j) ? Number.isNaN(j) ? "" : j : v(c.value.toString(), !1);
  37422. })();
  37423. p.value = g;
  37424. function m(j, Y) {
  37425. p.value = v(
  37426. // Invalidate number is sometime passed by external control, we should let it go
  37427. // Otherwise is controlled by internal interactive logic which check by userTyping
  37428. // You can ref 'show limited value when input is not focused' test for more info.
  37429. j.isInvalidate() ? j.toString(!1) : j.toString(!Y),
  37430. Y
  37431. );
  37432. }
  37433. const y = V(() => T9(t.max)), _ = V(() => T9(t.min)), O = V(() => !y.value || !c.value || c.value.isInvalidate() ? !1 : y.value.lessEquals(c.value)), S = V(() => !_.value || !c.value || c.value.isInvalidate() ? !1 : c.value.lessEquals(_.value)), [x, C] = mWe(o, s), P = (j) => y.value && !j.lessEquals(y.value) ? y.value : _.value && !_.value.lessEquals(j) ? _.value : null, $ = (j) => !P(j), T = (j, Y) => {
  37434. var ne;
  37435. let fe = j, ue = $(fe) || fe.isEmpty();
  37436. if (!fe.isEmpty() && !Y && (fe = P(fe) || fe, ue = !0), !t.readonly && !t.disabled && ue) {
  37437. const ye = fe.toString(), se = d(ye, Y);
  37438. return se >= 0 && (fe = bl(HR(ye, ".", se))), fe.equals(c.value) || (f(fe), (ne = t.onChange) === null || ne === void 0 || ne.call(t, fe.isEmpty() ? null : C9(t.stringMode, fe)), t.value === void 0 && m(fe, Y)), fe;
  37439. }
  37440. return c.value;
  37441. }, E = yWe(), M = (j) => {
  37442. var Y;
  37443. if (x(), p.value = j, !u.value) {
  37444. const ne = h(j), fe = bl(ne);
  37445. fe.isNaN() || T(fe, !0);
  37446. }
  37447. (Y = t.onInput) === null || Y === void 0 || Y.call(t, j), E(() => {
  37448. let ne = j;
  37449. t.parser || (ne = j.replace(/。/g, ".")), ne !== j && M(ne);
  37450. });
  37451. }, R = () => {
  37452. u.value = !0;
  37453. }, N = () => {
  37454. u.value = !1, M(o.value.value);
  37455. }, I = (j) => {
  37456. M(j.target.value);
  37457. }, B = (j) => {
  37458. var Y, ne;
  37459. if (j && O.value || !j && S.value)
  37460. return;
  37461. l.value = !1;
  37462. let fe = bl(t.step);
  37463. j || (fe = fe.negate());
  37464. const ue = (c.value || bl(0)).add(fe.toString()), ye = T(ue, !1);
  37465. (Y = t.onStep) === null || Y === void 0 || Y.call(t, C9(t.stringMode, ye), {
  37466. offset: t.step,
  37467. type: j ? "up" : "down"
  37468. }), (ne = o.value) === null || ne === void 0 || ne.focus();
  37469. }, Q = (j) => {
  37470. const Y = bl(h(p.value));
  37471. let ne = Y;
  37472. Y.isNaN() ? ne = c.value : ne = T(Y, j), t.value !== void 0 ? m(c.value, !1) : ne.isNaN() || m(ne, !1);
  37473. }, W = (j) => {
  37474. var Y;
  37475. const {
  37476. which: ne
  37477. } = j;
  37478. l.value = !0, ne === Me.ENTER && (u.value || (l.value = !1), Q(!1), (Y = t.onPressEnter) === null || Y === void 0 || Y.call(t, j)), t.keyboard !== !1 && !u.value && [Me.UP, Me.DOWN].includes(ne) && (B(Me.UP === ne), j.preventDefault());
  37479. }, H = () => {
  37480. l.value = !1;
  37481. }, U = (j) => {
  37482. Q(!1), s.value = !1, l.value = !1, i("blur", j);
  37483. };
  37484. return me(() => t.precision, () => {
  37485. c.value.isInvalidate() || m(c.value, !1);
  37486. }, {
  37487. flush: "post"
  37488. }), me(() => t.value, () => {
  37489. const j = bl(t.value);
  37490. c.value = j;
  37491. const Y = bl(h(p.value));
  37492. (!j.equals(Y) || !l.value || t.formatter) && m(j, l.value);
  37493. }, {
  37494. flush: "post"
  37495. }), me(p, () => {
  37496. t.formatter && C();
  37497. }, {
  37498. flush: "post"
  37499. }), me(() => t.disabled, (j) => {
  37500. j && (s.value = !1);
  37501. }), a({
  37502. focus: () => {
  37503. var j;
  37504. (j = o.value) === null || j === void 0 || j.focus();
  37505. },
  37506. blur: () => {
  37507. var j;
  37508. (j = o.value) === null || j === void 0 || j.blur();
  37509. }
  37510. }), () => {
  37511. const j = k(k({}, n), t), {
  37512. prefixCls: Y = "rc-input-number",
  37513. min: ne,
  37514. max: fe,
  37515. step: ue = 1,
  37516. defaultValue: ye,
  37517. value: se,
  37518. disabled: he,
  37519. readonly: re,
  37520. keyboard: q,
  37521. controls: K = !0,
  37522. autofocus: de,
  37523. stringMode: xe,
  37524. parser: we,
  37525. formatter: He,
  37526. precision: je,
  37527. decimalSeparator: Be,
  37528. onChange: Le,
  37529. onInput: Pe,
  37530. onPressEnter: Fe,
  37531. onStep: Ye,
  37532. lazy: xt,
  37533. class: It,
  37534. style: an
  37535. } = j, Ae = bWe(j, ["prefixCls", "min", "max", "step", "defaultValue", "value", "disabled", "readonly", "keyboard", "controls", "autofocus", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "lazy", "class", "style"]), {
  37536. upHandler: gt,
  37537. downHandler: Xt
  37538. } = r, Bn = `${Y}-input`, Dn = {};
  37539. return xt ? Dn.onChange = I : Dn.onInput = I, D("div", {
  37540. class: Re(Y, It, {
  37541. [`${Y}-focused`]: s.value,
  37542. [`${Y}-disabled`]: he,
  37543. [`${Y}-readonly`]: re,
  37544. [`${Y}-not-a-number`]: c.value.isNaN(),
  37545. [`${Y}-out-of-range`]: !c.value.isInvalidate() && !$(c.value)
  37546. }),
  37547. style: an,
  37548. onKeydown: W,
  37549. onKeyup: H
  37550. }, [K && D(gWe, {
  37551. prefixCls: Y,
  37552. upDisabled: O.value,
  37553. downDisabled: S.value,
  37554. onStep: B
  37555. }, {
  37556. upNode: gt,
  37557. downNode: Xt
  37558. }), D("div", {
  37559. class: `${Bn}-wrap`
  37560. }, [D("input", te(te(te({
  37561. autofocus: de,
  37562. autocomplete: "off",
  37563. role: "spinbutton",
  37564. "aria-valuemin": ne,
  37565. "aria-valuemax": fe,
  37566. "aria-valuenow": c.value.isInvalidate() ? null : c.value.toString(),
  37567. step: ue
  37568. }, Ae), {}, {
  37569. ref: o,
  37570. class: Bn,
  37571. value: p.value,
  37572. disabled: he,
  37573. readonly: re,
  37574. onFocus: (Dr) => {
  37575. s.value = !0, i("focus", Dr);
  37576. }
  37577. }, Dn), {}, {
  37578. onBlur: U,
  37579. onCompositionstart: R,
  37580. onCompositionend: N
  37581. }), null)])]);
  37582. };
  37583. }
  37584. });
  37585. function _E(t) {
  37586. return t != null;
  37587. }
  37588. const OWe = (t) => {
  37589. const {
  37590. componentCls: e,
  37591. lineWidth: n,
  37592. lineType: r,
  37593. colorBorder: i,
  37594. borderRadius: a,
  37595. fontSizeLG: o,
  37596. controlHeightLG: s,
  37597. controlHeightSM: l,
  37598. colorError: u,
  37599. inputPaddingHorizontalSM: c,
  37600. colorTextDescription: f,
  37601. motionDurationMid: d,
  37602. colorPrimary: h,
  37603. controlHeight: p,
  37604. inputPaddingHorizontal: v,
  37605. colorBgContainer: g,
  37606. colorTextDisabled: m,
  37607. borderRadiusSM: y,
  37608. borderRadiusLG: _,
  37609. controlWidth: O,
  37610. handleVisible: S
  37611. } = t;
  37612. return [
  37613. {
  37614. [e]: k(k(k(k({}, Gn(t)), G2(t)), H2(t, e)), {
  37615. display: "inline-block",
  37616. width: O,
  37617. margin: 0,
  37618. padding: 0,
  37619. border: `${n}px ${r} ${i}`,
  37620. borderRadius: a,
  37621. "&-rtl": {
  37622. direction: "rtl",
  37623. [`${e}-input`]: {
  37624. direction: "rtl"
  37625. }
  37626. },
  37627. "&-lg": {
  37628. padding: 0,
  37629. fontSize: o,
  37630. borderRadius: _,
  37631. [`input${e}-input`]: {
  37632. height: s - 2 * n
  37633. }
  37634. },
  37635. "&-sm": {
  37636. padding: 0,
  37637. borderRadius: y,
  37638. [`input${e}-input`]: {
  37639. height: l - 2 * n,
  37640. padding: `0 ${c}px`
  37641. }
  37642. },
  37643. "&:hover": k({}, X_(t)),
  37644. "&-focused": k({}, cC(t)),
  37645. "&-disabled": k(k({}, Zie(t)), {
  37646. [`${e}-input`]: {
  37647. cursor: "not-allowed"
  37648. }
  37649. }),
  37650. // ===================== Out Of Range =====================
  37651. "&-out-of-range": {
  37652. input: {
  37653. color: u
  37654. }
  37655. },
  37656. // Style for input-group: input with label, with button or dropdown...
  37657. "&-group": k(k(k({}, Gn(t)), Yie(t)), {
  37658. "&-wrapper": {
  37659. display: "inline-block",
  37660. textAlign: "start",
  37661. verticalAlign: "top",
  37662. [`${e}-affix-wrapper`]: {
  37663. width: "100%"
  37664. },
  37665. // Size
  37666. "&-lg": {
  37667. [`${e}-group-addon`]: {
  37668. borderRadius: _
  37669. }
  37670. },
  37671. "&-sm": {
  37672. [`${e}-group-addon`]: {
  37673. borderRadius: y
  37674. }
  37675. }
  37676. }
  37677. }),
  37678. [e]: {
  37679. "&-input": k(k({
  37680. width: "100%",
  37681. height: p - 2 * n,
  37682. padding: `0 ${v}px`,
  37683. textAlign: "start",
  37684. backgroundColor: "transparent",
  37685. border: 0,
  37686. borderRadius: a,
  37687. outline: 0,
  37688. transition: `all ${d} linear`,
  37689. appearance: "textfield",
  37690. color: t.colorText,
  37691. fontSize: "inherit",
  37692. verticalAlign: "top"
  37693. }, jie(t.colorTextPlaceholder)), {
  37694. '&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button': {
  37695. margin: 0,
  37696. /* stylelint-disable-next-line property-no-vendor-prefix */
  37697. webkitAppearance: "none",
  37698. appearance: "none"
  37699. }
  37700. })
  37701. }
  37702. })
  37703. },
  37704. // Handler
  37705. {
  37706. [e]: {
  37707. [`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]: {
  37708. opacity: 1
  37709. },
  37710. [`${e}-handler-wrap`]: {
  37711. position: "absolute",
  37712. insetBlockStart: 0,
  37713. insetInlineEnd: 0,
  37714. width: t.handleWidth,
  37715. height: "100%",
  37716. background: g,
  37717. borderStartStartRadius: 0,
  37718. borderStartEndRadius: a,
  37719. borderEndEndRadius: a,
  37720. borderEndStartRadius: 0,
  37721. opacity: S === !0 ? 1 : 0,
  37722. display: "flex",
  37723. flexDirection: "column",
  37724. alignItems: "stretch",
  37725. transition: `opacity ${d} linear ${d}`,
  37726. // Fix input number inside Menu makes icon too large
  37727. // We arise the selector priority by nest selector here
  37728. // https://github.com/ant-design/ant-design/issues/14367
  37729. [`${e}-handler`]: {
  37730. display: "flex",
  37731. alignItems: "center",
  37732. justifyContent: "center",
  37733. flex: "auto",
  37734. height: "40%",
  37735. [`
  37736. ${e}-handler-up-inner,
  37737. ${e}-handler-down-inner
  37738. `]: {
  37739. marginInlineEnd: 0,
  37740. fontSize: t.handleFontSize
  37741. }
  37742. }
  37743. },
  37744. [`${e}-handler`]: {
  37745. height: "50%",
  37746. overflow: "hidden",
  37747. color: f,
  37748. fontWeight: "bold",
  37749. lineHeight: 0,
  37750. textAlign: "center",
  37751. cursor: "pointer",
  37752. borderInlineStart: `${n}px ${r} ${i}`,
  37753. transition: `all ${d} linear`,
  37754. "&:active": {
  37755. background: t.colorFillAlter
  37756. },
  37757. // Hover
  37758. "&:hover": {
  37759. height: "60%",
  37760. [`
  37761. ${e}-handler-up-inner,
  37762. ${e}-handler-down-inner
  37763. `]: {
  37764. color: h
  37765. }
  37766. },
  37767. "&-up-inner, &-down-inner": k(k({}, hm()), {
  37768. color: f,
  37769. transition: `all ${d} linear`,
  37770. userSelect: "none"
  37771. })
  37772. },
  37773. [`${e}-handler-up`]: {
  37774. borderStartEndRadius: a
  37775. },
  37776. [`${e}-handler-down`]: {
  37777. borderBlockStart: `${n}px ${r} ${i}`,
  37778. borderEndEndRadius: a
  37779. },
  37780. // Disabled
  37781. "&-disabled, &-readonly": {
  37782. [`${e}-handler-wrap`]: {
  37783. display: "none"
  37784. }
  37785. },
  37786. [`
  37787. ${e}-handler-up-disabled,
  37788. ${e}-handler-down-disabled
  37789. `]: {
  37790. cursor: "not-allowed"
  37791. },
  37792. [`
  37793. ${e}-handler-up-disabled:hover &-handler-up-inner,
  37794. ${e}-handler-down-disabled:hover &-handler-down-inner
  37795. `]: {
  37796. color: m
  37797. }
  37798. }
  37799. },
  37800. // Border-less
  37801. {
  37802. [`${e}-borderless`]: {
  37803. borderColor: "transparent",
  37804. boxShadow: "none",
  37805. [`${e}-handler-down`]: {
  37806. borderBlockStartWidth: 0
  37807. }
  37808. }
  37809. }
  37810. ];
  37811. }, SWe = (t) => {
  37812. const {
  37813. componentCls: e,
  37814. inputPaddingHorizontal: n,
  37815. inputAffixPadding: r,
  37816. controlWidth: i,
  37817. borderRadiusLG: a,
  37818. borderRadiusSM: o
  37819. } = t;
  37820. return {
  37821. [`${e}-affix-wrapper`]: k(k(k({}, G2(t)), H2(t, `${e}-affix-wrapper`)), {
  37822. // or number handler will cover form status
  37823. position: "relative",
  37824. display: "inline-flex",
  37825. width: i,
  37826. padding: 0,
  37827. paddingInlineStart: n,
  37828. "&-lg": {
  37829. borderRadius: a
  37830. },
  37831. "&-sm": {
  37832. borderRadius: o
  37833. },
  37834. [`&:not(${e}-affix-wrapper-disabled):hover`]: k(k({}, X_(t)), {
  37835. zIndex: 1
  37836. }),
  37837. "&-focused, &:focus": {
  37838. zIndex: 1
  37839. },
  37840. "&-disabled": {
  37841. [`${e}[disabled]`]: {
  37842. background: "transparent"
  37843. }
  37844. },
  37845. [`> div${e}`]: {
  37846. width: "100%",
  37847. border: "none",
  37848. outline: "none",
  37849. [`&${e}-focused`]: {
  37850. boxShadow: "none !important"
  37851. }
  37852. },
  37853. [`input${e}-input`]: {
  37854. padding: 0
  37855. },
  37856. "&::before": {
  37857. width: 0,
  37858. visibility: "hidden",
  37859. content: '"\\a0"'
  37860. },
  37861. [`${e}-handler-wrap`]: {
  37862. zIndex: 2
  37863. },
  37864. [e]: {
  37865. "&-prefix, &-suffix": {
  37866. display: "flex",
  37867. flex: "none",
  37868. alignItems: "center",
  37869. pointerEvents: "none"
  37870. },
  37871. "&-prefix": {
  37872. marginInlineEnd: r
  37873. },
  37874. "&-suffix": {
  37875. position: "absolute",
  37876. insetBlockStart: 0,
  37877. insetInlineEnd: 0,
  37878. zIndex: 1,
  37879. height: "100%",
  37880. marginInlineEnd: n,
  37881. marginInlineStart: r
  37882. }
  37883. }
  37884. })
  37885. };
  37886. }, xWe = pr("InputNumber", (t) => {
  37887. const e = qie(t);
  37888. return [
  37889. OWe(e),
  37890. SWe(e),
  37891. // =====================================================
  37892. // == Space Compact ==
  37893. // =====================================================
  37894. z2(e)
  37895. ];
  37896. }, (t) => ({
  37897. controlWidth: 90,
  37898. handleWidth: t.controlHeightSM - t.lineWidth * 2,
  37899. handleFontSize: t.fontSize / 2,
  37900. handleVisible: "auto"
  37901. }));
  37902. var wWe = function(t, e) {
  37903. var n = {};
  37904. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  37905. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  37906. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  37907. return n;
  37908. };
  37909. const P9 = toe(), CWe = () => k(k({}, P9), {
  37910. size: rr(),
  37911. bordered: Tt(!0),
  37912. placeholder: String,
  37913. name: String,
  37914. id: String,
  37915. type: String,
  37916. addonBefore: oe.any,
  37917. addonAfter: oe.any,
  37918. prefix: oe.any,
  37919. "onUpdate:value": P9.onChange,
  37920. valueModifiers: Object,
  37921. status: rr()
  37922. }), OE = ae({
  37923. compatConfig: {
  37924. MODE: 3
  37925. },
  37926. name: "AInputNumber",
  37927. inheritAttrs: !1,
  37928. props: CWe(),
  37929. // emits: ['focus', 'blur', 'change', 'input', 'update:value'],
  37930. slots: Object,
  37931. setup(t, e) {
  37932. let {
  37933. emit: n,
  37934. expose: r,
  37935. attrs: i,
  37936. slots: a
  37937. } = e;
  37938. var o;
  37939. const s = Ul(), l = Qs.useInject(), u = V(() => U_(l.status, t.status)), {
  37940. prefixCls: c,
  37941. size: f,
  37942. direction: d,
  37943. disabled: h
  37944. } = hn("input-number", t), {
  37945. compactSize: p,
  37946. compactItemClassnames: v
  37947. } = L2(c, d), g = Vl(), m = V(() => {
  37948. var R;
  37949. return (R = h.value) !== null && R !== void 0 ? R : g.value;
  37950. }), [y, _] = xWe(c), O = V(() => p.value || f.value), S = ve((o = t.value) !== null && o !== void 0 ? o : t.defaultValue), x = ve(!1);
  37951. me(() => t.value, () => {
  37952. S.value = t.value;
  37953. });
  37954. const C = ve(null), P = () => {
  37955. var R;
  37956. (R = C.value) === null || R === void 0 || R.focus();
  37957. };
  37958. r({
  37959. focus: P,
  37960. blur: () => {
  37961. var R;
  37962. (R = C.value) === null || R === void 0 || R.blur();
  37963. }
  37964. });
  37965. const T = (R) => {
  37966. t.value === void 0 && (S.value = R), n("update:value", R), n("change", R), s.onFieldChange();
  37967. }, E = (R) => {
  37968. x.value = !1, n("blur", R), s.onFieldBlur();
  37969. }, M = (R) => {
  37970. x.value = !0, n("focus", R);
  37971. };
  37972. return () => {
  37973. var R, N, I, B;
  37974. const {
  37975. hasFeedback: Q,
  37976. isFormItemInput: W,
  37977. feedbackIcon: H
  37978. } = l, U = (R = t.id) !== null && R !== void 0 ? R : s.id.value, j = k(k(k({}, i), t), {
  37979. id: U,
  37980. disabled: m.value
  37981. }), {
  37982. class: Y,
  37983. bordered: ne,
  37984. readonly: fe,
  37985. style: ue,
  37986. addonBefore: ye = (N = a.addonBefore) === null || N === void 0 ? void 0 : N.call(a),
  37987. addonAfter: se = (I = a.addonAfter) === null || I === void 0 ? void 0 : I.call(a),
  37988. prefix: he = (B = a.prefix) === null || B === void 0 ? void 0 : B.call(a),
  37989. valueModifiers: re = {}
  37990. } = j, q = wWe(j, ["class", "bordered", "readonly", "style", "addonBefore", "addonAfter", "prefix", "valueModifiers"]), K = c.value, de = Re({
  37991. [`${K}-lg`]: O.value === "large",
  37992. [`${K}-sm`]: O.value === "small",
  37993. [`${K}-rtl`]: d.value === "rtl",
  37994. [`${K}-readonly`]: fe,
  37995. [`${K}-borderless`]: !ne,
  37996. [`${K}-in-form-item`]: W
  37997. }, Eu(K, u.value), Y, v.value, _.value);
  37998. let xe = D(_We, te(te({}, si(q, ["size", "defaultValue"])), {}, {
  37999. ref: C,
  38000. lazy: !!re.lazy,
  38001. value: S.value,
  38002. class: de,
  38003. prefixCls: K,
  38004. readonly: fe,
  38005. onChange: T,
  38006. onBlur: E,
  38007. onFocus: M
  38008. }), {
  38009. upHandler: a.upIcon ? () => D("span", {
  38010. class: `${K}-handler-up-inner`
  38011. }, [a.upIcon()]) : () => D(F8, {
  38012. class: `${K}-handler-up-inner`
  38013. }, null),
  38014. downHandler: a.downIcon ? () => D("span", {
  38015. class: `${K}-handler-down-inner`
  38016. }, [a.downIcon()]) : () => D(D2, {
  38017. class: `${K}-handler-down-inner`
  38018. }, null)
  38019. });
  38020. const we = _E(ye) || _E(se), He = _E(he);
  38021. if (He || Q) {
  38022. const je = Re(`${K}-affix-wrapper`, Eu(`${K}-affix-wrapper`, u.value, Q), {
  38023. [`${K}-affix-wrapper-focused`]: x.value,
  38024. [`${K}-affix-wrapper-disabled`]: m.value,
  38025. [`${K}-affix-wrapper-sm`]: O.value === "small",
  38026. [`${K}-affix-wrapper-lg`]: O.value === "large",
  38027. [`${K}-affix-wrapper-rtl`]: d.value === "rtl",
  38028. [`${K}-affix-wrapper-readonly`]: fe,
  38029. [`${K}-affix-wrapper-borderless`]: !ne,
  38030. // className will go to addon wrapper
  38031. [`${Y}`]: !we && Y
  38032. }, _.value);
  38033. xe = D("div", {
  38034. class: je,
  38035. style: ue,
  38036. onClick: P
  38037. }, [He && D("span", {
  38038. class: `${K}-prefix`
  38039. }, [he]), xe, Q && D("span", {
  38040. class: `${K}-suffix`
  38041. }, [H])]);
  38042. }
  38043. if (we) {
  38044. const je = `${K}-group`, Be = `${je}-addon`, Le = ye ? D("div", {
  38045. class: Be
  38046. }, [ye]) : null, Pe = se ? D("div", {
  38047. class: Be
  38048. }, [se]) : null, Fe = Re(`${K}-wrapper`, je, {
  38049. [`${je}-rtl`]: d.value === "rtl"
  38050. }, _.value), Ye = Re(`${K}-group-wrapper`, {
  38051. [`${K}-group-wrapper-sm`]: O.value === "small",
  38052. [`${K}-group-wrapper-lg`]: O.value === "large",
  38053. [`${K}-group-wrapper-rtl`]: d.value === "rtl"
  38054. }, Eu(`${c}-group-wrapper`, u.value, Q), Y, _.value);
  38055. xe = D("div", {
  38056. class: Ye,
  38057. style: ue
  38058. }, [D("div", {
  38059. class: Fe
  38060. }, [Le && D(iC, null, {
  38061. default: () => [D(rC, null, {
  38062. default: () => [Le]
  38063. })]
  38064. }), xe, Pe && D(iC, null, {
  38065. default: () => [D(rC, null, {
  38066. default: () => [Pe]
  38067. })]
  38068. })])]);
  38069. }
  38070. return y(xr(xe, {
  38071. style: ue
  38072. }));
  38073. };
  38074. }
  38075. }), Y_ = k(OE, {
  38076. install: (t) => (t.component(OE.name, OE), t)
  38077. });
  38078. function TWe(t, e, n) {
  38079. var r = n || {}, i = r.noTrailing, a = i === void 0 ? !1 : i, o = r.noLeading, s = o === void 0 ? !1 : o, l = r.debounceMode, u = l === void 0 ? void 0 : l, c, f = !1, d = 0;
  38080. function h() {
  38081. c && clearTimeout(c);
  38082. }
  38083. function p(g) {
  38084. var m = g || {}, y = m.upcomingOnly, _ = y === void 0 ? !1 : y;
  38085. h(), f = !_;
  38086. }
  38087. function v() {
  38088. for (var g = arguments.length, m = new Array(g), y = 0; y < g; y++)
  38089. m[y] = arguments[y];
  38090. var _ = this, O = Date.now() - d;
  38091. if (f)
  38092. return;
  38093. function S() {
  38094. d = Date.now(), e.apply(_, m);
  38095. }
  38096. function x() {
  38097. c = void 0;
  38098. }
  38099. !s && u && !c && S(), h(), u === void 0 && O > t ? s ? (d = Date.now(), a || (c = setTimeout(u ? x : S, t))) : S() : a !== !0 && (c = setTimeout(u ? x : S, u === void 0 ? t - O : t));
  38100. }
  38101. return v.cancel = p, v;
  38102. }
  38103. function PWe(t, e, n) {
  38104. var r = {}, i = r.atBegin, a = i === void 0 ? !1 : i;
  38105. return TWe(t, e, {
  38106. debounceMode: a !== !1
  38107. });
  38108. }
  38109. const $We = new qt("antSpinMove", {
  38110. to: {
  38111. opacity: 1
  38112. }
  38113. }), AWe = new qt("antRotate", {
  38114. to: {
  38115. transform: "rotate(405deg)"
  38116. }
  38117. }), EWe = (t) => ({
  38118. [`${t.componentCls}`]: k(k({}, Gn(t)), {
  38119. position: "absolute",
  38120. display: "none",
  38121. color: t.colorPrimary,
  38122. textAlign: "center",
  38123. verticalAlign: "middle",
  38124. opacity: 0,
  38125. transition: `transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,
  38126. "&-spinning": {
  38127. position: "static",
  38128. display: "inline-block",
  38129. opacity: 1
  38130. },
  38131. "&-nested-loading": {
  38132. position: "relative",
  38133. [`> div > ${t.componentCls}`]: {
  38134. position: "absolute",
  38135. top: 0,
  38136. insetInlineStart: 0,
  38137. zIndex: 4,
  38138. display: "block",
  38139. width: "100%",
  38140. height: "100%",
  38141. maxHeight: t.contentHeight,
  38142. [`${t.componentCls}-dot`]: {
  38143. position: "absolute",
  38144. top: "50%",
  38145. insetInlineStart: "50%",
  38146. margin: -t.spinDotSize / 2
  38147. },
  38148. [`${t.componentCls}-text`]: {
  38149. position: "absolute",
  38150. top: "50%",
  38151. width: "100%",
  38152. paddingTop: (t.spinDotSize - t.fontSize) / 2 + 2,
  38153. textShadow: `0 1px 2px ${t.colorBgContainer}`
  38154. // FIXME: shadow
  38155. },
  38156. [`&${t.componentCls}-show-text ${t.componentCls}-dot`]: {
  38157. marginTop: -(t.spinDotSize / 2) - 10
  38158. },
  38159. "&-sm": {
  38160. [`${t.componentCls}-dot`]: {
  38161. margin: -t.spinDotSizeSM / 2
  38162. },
  38163. [`${t.componentCls}-text`]: {
  38164. paddingTop: (t.spinDotSizeSM - t.fontSize) / 2 + 2
  38165. },
  38166. [`&${t.componentCls}-show-text ${t.componentCls}-dot`]: {
  38167. marginTop: -(t.spinDotSizeSM / 2) - 10
  38168. }
  38169. },
  38170. "&-lg": {
  38171. [`${t.componentCls}-dot`]: {
  38172. margin: -(t.spinDotSizeLG / 2)
  38173. },
  38174. [`${t.componentCls}-text`]: {
  38175. paddingTop: (t.spinDotSizeLG - t.fontSize) / 2 + 2
  38176. },
  38177. [`&${t.componentCls}-show-text ${t.componentCls}-dot`]: {
  38178. marginTop: -(t.spinDotSizeLG / 2) - 10
  38179. }
  38180. }
  38181. },
  38182. [`${t.componentCls}-container`]: {
  38183. position: "relative",
  38184. transition: `opacity ${t.motionDurationSlow}`,
  38185. "&::after": {
  38186. position: "absolute",
  38187. top: 0,
  38188. insetInlineEnd: 0,
  38189. bottom: 0,
  38190. insetInlineStart: 0,
  38191. zIndex: 10,
  38192. width: "100%",
  38193. height: "100%",
  38194. background: t.colorBgContainer,
  38195. opacity: 0,
  38196. transition: `all ${t.motionDurationSlow}`,
  38197. content: '""',
  38198. pointerEvents: "none"
  38199. }
  38200. },
  38201. [`${t.componentCls}-blur`]: {
  38202. clear: "both",
  38203. opacity: 0.5,
  38204. userSelect: "none",
  38205. pointerEvents: "none",
  38206. "&::after": {
  38207. opacity: 0.4,
  38208. pointerEvents: "auto"
  38209. }
  38210. }
  38211. },
  38212. // tip
  38213. // ------------------------------
  38214. "&-tip": {
  38215. color: t.spinDotDefault
  38216. },
  38217. // dots
  38218. // ------------------------------
  38219. [`${t.componentCls}-dot`]: {
  38220. position: "relative",
  38221. display: "inline-block",
  38222. fontSize: t.spinDotSize,
  38223. width: "1em",
  38224. height: "1em",
  38225. "&-item": {
  38226. position: "absolute",
  38227. display: "block",
  38228. width: (t.spinDotSize - t.marginXXS / 2) / 2,
  38229. height: (t.spinDotSize - t.marginXXS / 2) / 2,
  38230. backgroundColor: t.colorPrimary,
  38231. borderRadius: "100%",
  38232. transform: "scale(0.75)",
  38233. transformOrigin: "50% 50%",
  38234. opacity: 0.3,
  38235. animationName: $We,
  38236. animationDuration: "1s",
  38237. animationIterationCount: "infinite",
  38238. animationTimingFunction: "linear",
  38239. animationDirection: "alternate",
  38240. "&:nth-child(1)": {
  38241. top: 0,
  38242. insetInlineStart: 0
  38243. },
  38244. "&:nth-child(2)": {
  38245. top: 0,
  38246. insetInlineEnd: 0,
  38247. animationDelay: "0.4s"
  38248. },
  38249. "&:nth-child(3)": {
  38250. insetInlineEnd: 0,
  38251. bottom: 0,
  38252. animationDelay: "0.8s"
  38253. },
  38254. "&:nth-child(4)": {
  38255. bottom: 0,
  38256. insetInlineStart: 0,
  38257. animationDelay: "1.2s"
  38258. }
  38259. },
  38260. "&-spin": {
  38261. transform: "rotate(45deg)",
  38262. animationName: AWe,
  38263. animationDuration: "1.2s",
  38264. animationIterationCount: "infinite",
  38265. animationTimingFunction: "linear"
  38266. }
  38267. },
  38268. // Sizes
  38269. // ------------------------------
  38270. // small
  38271. [`&-sm ${t.componentCls}-dot`]: {
  38272. fontSize: t.spinDotSizeSM,
  38273. i: {
  38274. width: (t.spinDotSizeSM - t.marginXXS / 2) / 2,
  38275. height: (t.spinDotSizeSM - t.marginXXS / 2) / 2
  38276. }
  38277. },
  38278. // large
  38279. [`&-lg ${t.componentCls}-dot`]: {
  38280. fontSize: t.spinDotSizeLG,
  38281. i: {
  38282. width: (t.spinDotSizeLG - t.marginXXS) / 2,
  38283. height: (t.spinDotSizeLG - t.marginXXS) / 2
  38284. }
  38285. },
  38286. [`&${t.componentCls}-show-text ${t.componentCls}-text`]: {
  38287. display: "block"
  38288. }
  38289. })
  38290. }), MWe = pr("Spin", (t) => {
  38291. const e = bn(t, {
  38292. spinDotDefault: t.colorTextDescription,
  38293. spinDotSize: t.controlHeightLG / 2,
  38294. spinDotSizeSM: t.controlHeightLG * 0.35,
  38295. spinDotSizeLG: t.controlHeight
  38296. });
  38297. return [EWe(e)];
  38298. }, {
  38299. contentHeight: 400
  38300. });
  38301. var IWe = function(t, e) {
  38302. var n = {};
  38303. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  38304. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  38305. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  38306. return n;
  38307. };
  38308. const DWe = () => ({
  38309. prefixCls: String,
  38310. spinning: {
  38311. type: Boolean,
  38312. default: void 0
  38313. },
  38314. size: String,
  38315. wrapperClassName: String,
  38316. tip: oe.any,
  38317. delay: Number,
  38318. indicator: oe.any
  38319. });
  38320. let nw = null;
  38321. function RWe(t, e) {
  38322. return !!t && !!e && !isNaN(Number(e));
  38323. }
  38324. function kWe(t) {
  38325. const e = t.indicator;
  38326. nw = typeof e == "function" ? e : () => D(e, null, null);
  38327. }
  38328. const Zy = ae({
  38329. compatConfig: {
  38330. MODE: 3
  38331. },
  38332. name: "ASpin",
  38333. inheritAttrs: !1,
  38334. props: li(DWe(), {
  38335. size: "default",
  38336. spinning: !0,
  38337. wrapperClassName: ""
  38338. }),
  38339. setup(t, e) {
  38340. let {
  38341. attrs: n,
  38342. slots: r
  38343. } = e;
  38344. const {
  38345. prefixCls: i,
  38346. size: a,
  38347. direction: o
  38348. } = hn("spin", t), [s, l] = MWe(i), u = ve(t.spinning && !RWe(t.spinning, t.delay));
  38349. let c;
  38350. return me([() => t.spinning, () => t.delay], () => {
  38351. c == null || c.cancel(), c = PWe(t.delay, () => {
  38352. u.value = t.spinning;
  38353. }), c == null || c();
  38354. }, {
  38355. immediate: !0,
  38356. flush: "post"
  38357. }), Qt(() => {
  38358. c == null || c.cancel();
  38359. }), () => {
  38360. var f, d;
  38361. const {
  38362. class: h
  38363. } = n, p = IWe(n, ["class"]), {
  38364. tip: v = (f = r.tip) === null || f === void 0 ? void 0 : f.call(r)
  38365. } = t, g = (d = r.default) === null || d === void 0 ? void 0 : d.call(r), m = {
  38366. [l.value]: !0,
  38367. [i.value]: !0,
  38368. [`${i.value}-sm`]: a.value === "small",
  38369. [`${i.value}-lg`]: a.value === "large",
  38370. [`${i.value}-spinning`]: u.value,
  38371. [`${i.value}-show-text`]: !!v,
  38372. [`${i.value}-rtl`]: o.value === "rtl",
  38373. [h]: !!h
  38374. };
  38375. function y(O) {
  38376. const S = `${O}-dot`;
  38377. let x = y2(r, t, "indicator");
  38378. return x === null ? null : (Array.isArray(x) && (x = x.length === 1 ? x[0] : x), df(x) ? ku(x, {
  38379. class: S
  38380. }) : nw && df(nw()) ? ku(nw(), {
  38381. class: S
  38382. }) : D("span", {
  38383. class: `${S} ${O}-dot-spin`
  38384. }, [D("i", {
  38385. class: `${O}-dot-item`
  38386. }, null), D("i", {
  38387. class: `${O}-dot-item`
  38388. }, null), D("i", {
  38389. class: `${O}-dot-item`
  38390. }, null), D("i", {
  38391. class: `${O}-dot-item`
  38392. }, null)]));
  38393. }
  38394. const _ = D("div", te(te({}, p), {}, {
  38395. class: m,
  38396. "aria-live": "polite",
  38397. "aria-busy": u.value
  38398. }), [y(i.value), v ? D("div", {
  38399. class: `${i.value}-text`
  38400. }, [v]) : null]);
  38401. if (g && Zl(g).length) {
  38402. const O = {
  38403. [`${i.value}-container`]: !0,
  38404. [`${i.value}-blur`]: u.value
  38405. };
  38406. return s(D("div", {
  38407. class: [`${i.value}-nested-loading`, t.wrapperClassName, l.value]
  38408. }, [u.value && D("div", {
  38409. key: "loading"
  38410. }, [_]), D("div", {
  38411. class: O,
  38412. key: "container"
  38413. }, [g])]));
  38414. }
  38415. return s(_);
  38416. };
  38417. }
  38418. });
  38419. Zy.setDefaultIndicator = kWe;
  38420. Zy.install = function(t) {
  38421. return t.component(Zy.name, Zy), t;
  38422. };
  38423. var LWe = function(t, e) {
  38424. var n = {};
  38425. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  38426. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  38427. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  38428. return n;
  38429. };
  38430. let GR;
  38431. const NWe = (t) => {
  38432. GR = {
  38433. x: t.pageX,
  38434. y: t.pageY
  38435. }, setTimeout(() => GR = null, 100);
  38436. };
  38437. iae() && yi(document.documentElement, "click", NWe, !0);
  38438. const BWe = () => ({
  38439. prefixCls: String,
  38440. /** @deprecated Please use `open` instead. */
  38441. visible: {
  38442. type: Boolean,
  38443. default: void 0
  38444. },
  38445. open: {
  38446. type: Boolean,
  38447. default: void 0
  38448. },
  38449. confirmLoading: {
  38450. type: Boolean,
  38451. default: void 0
  38452. },
  38453. title: oe.any,
  38454. closable: {
  38455. type: Boolean,
  38456. default: void 0
  38457. },
  38458. closeIcon: oe.any,
  38459. onOk: Function,
  38460. onCancel: Function,
  38461. "onUpdate:visible": Function,
  38462. "onUpdate:open": Function,
  38463. onChange: Function,
  38464. afterClose: Function,
  38465. centered: {
  38466. type: Boolean,
  38467. default: void 0
  38468. },
  38469. width: [String, Number],
  38470. footer: oe.any,
  38471. okText: oe.any,
  38472. okType: String,
  38473. cancelText: oe.any,
  38474. icon: oe.any,
  38475. maskClosable: {
  38476. type: Boolean,
  38477. default: void 0
  38478. },
  38479. forceRender: {
  38480. type: Boolean,
  38481. default: void 0
  38482. },
  38483. okButtonProps: sn(),
  38484. cancelButtonProps: sn(),
  38485. destroyOnClose: {
  38486. type: Boolean,
  38487. default: void 0
  38488. },
  38489. wrapClassName: String,
  38490. maskTransitionName: String,
  38491. transitionName: String,
  38492. getContainer: {
  38493. type: [String, Function, Boolean, Object],
  38494. default: void 0
  38495. },
  38496. zIndex: Number,
  38497. bodyStyle: sn(),
  38498. maskStyle: sn(),
  38499. mask: {
  38500. type: Boolean,
  38501. default: void 0
  38502. },
  38503. keyboard: {
  38504. type: Boolean,
  38505. default: void 0
  38506. },
  38507. wrapProps: Object,
  38508. focusTriggerAfterClose: {
  38509. type: Boolean,
  38510. default: void 0
  38511. },
  38512. modalRender: Function,
  38513. mousePosition: sn()
  38514. }), uo = ae({
  38515. compatConfig: {
  38516. MODE: 3
  38517. },
  38518. name: "AModal",
  38519. inheritAttrs: !1,
  38520. props: li(BWe(), {
  38521. width: 520,
  38522. confirmLoading: !1,
  38523. okType: "primary"
  38524. }),
  38525. setup(t, e) {
  38526. let {
  38527. emit: n,
  38528. slots: r,
  38529. attrs: i
  38530. } = e;
  38531. const [a] = _2("Modal"), {
  38532. prefixCls: o,
  38533. rootPrefixCls: s,
  38534. direction: l,
  38535. getPopupContainer: u
  38536. } = hn("modal", t), [c, f] = nWe(o);
  38537. aa(t.visible === void 0, "Modal", "`visible` will be removed in next major version, please use `open` instead.");
  38538. const d = (v) => {
  38539. n("update:visible", !1), n("update:open", !1), n("cancel", v), n("change", !1);
  38540. }, h = (v) => {
  38541. n("ok", v);
  38542. }, p = () => {
  38543. var v, g;
  38544. const {
  38545. okText: m = (v = r.okText) === null || v === void 0 ? void 0 : v.call(r),
  38546. okType: y,
  38547. cancelText: _ = (g = r.cancelText) === null || g === void 0 ? void 0 : g.call(r),
  38548. confirmLoading: O
  38549. } = t;
  38550. return D(Wt, null, [D(Vi, te({
  38551. onClick: d
  38552. }, t.cancelButtonProps), {
  38553. default: () => [_ || a.value.cancelText]
  38554. }), D(Vi, te(te({}, Cie(y)), {}, {
  38555. loading: O,
  38556. onClick: h
  38557. }, t.okButtonProps), {
  38558. default: () => [m || a.value.okText]
  38559. })]);
  38560. };
  38561. return () => {
  38562. var v, g;
  38563. const {
  38564. prefixCls: m,
  38565. visible: y,
  38566. open: _,
  38567. wrapClassName: O,
  38568. centered: S,
  38569. getContainer: x,
  38570. closeIcon: C = (v = r.closeIcon) === null || v === void 0 ? void 0 : v.call(r),
  38571. focusTriggerAfterClose: P = !0
  38572. } = t, $ = LWe(t, ["prefixCls", "visible", "open", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"]), T = Re(O, {
  38573. [`${o.value}-centered`]: !!S,
  38574. [`${o.value}-wrap-rtl`]: l.value === "rtl"
  38575. });
  38576. return c(D(Gae, te(te(te({}, $), i), {}, {
  38577. rootClassName: f.value,
  38578. class: Re(f.value, i.class),
  38579. getContainer: x || (u == null ? void 0 : u.value),
  38580. prefixCls: o.value,
  38581. wrapClassName: T,
  38582. visible: _ ?? y,
  38583. onClose: d,
  38584. focusTriggerAfterClose: P,
  38585. transitionName: Wl(s.value, "zoom", t.transitionName),
  38586. maskTransitionName: Wl(s.value, "fade", t.maskTransitionName),
  38587. mousePosition: (g = $.mousePosition) !== null && g !== void 0 ? g : GR
  38588. }), k(k({}, r), {
  38589. footer: r.footer || p,
  38590. closeIcon: () => D("span", {
  38591. class: `${o.value}-close-x`
  38592. }, [C || D(tc, {
  38593. class: `${o.value}-close-icon`
  38594. }, null)])
  38595. })));
  38596. };
  38597. }
  38598. }), zWe = () => {
  38599. const t = ve(!1);
  38600. return Qt(() => {
  38601. t.value = !0;
  38602. }), t;
  38603. }, VWe = {
  38604. type: {
  38605. type: String
  38606. },
  38607. actionFn: Function,
  38608. close: Function,
  38609. autofocus: Boolean,
  38610. prefixCls: String,
  38611. buttonProps: sn(),
  38612. emitEvent: Boolean,
  38613. quitOnNullishReturnValue: Boolean
  38614. };
  38615. function $9(t) {
  38616. return !!(t && t.then);
  38617. }
  38618. const A9 = ae({
  38619. compatConfig: {
  38620. MODE: 3
  38621. },
  38622. name: "ActionButton",
  38623. props: VWe,
  38624. setup(t, e) {
  38625. let {
  38626. slots: n
  38627. } = e;
  38628. const r = ve(!1), i = ve(), a = ve(!1);
  38629. let o;
  38630. const s = zWe();
  38631. _t(() => {
  38632. t.autofocus && (o = setTimeout(() => {
  38633. var f, d;
  38634. return (d = (f = xu(i.value)) === null || f === void 0 ? void 0 : f.focus) === null || d === void 0 ? void 0 : d.call(f);
  38635. }));
  38636. }), Qt(() => {
  38637. clearTimeout(o);
  38638. });
  38639. const l = function() {
  38640. for (var f, d = arguments.length, h = new Array(d), p = 0; p < d; p++)
  38641. h[p] = arguments[p];
  38642. (f = t.close) === null || f === void 0 || f.call(t, ...h);
  38643. }, u = (f) => {
  38644. $9(f) && (a.value = !0, f.then(function() {
  38645. s.value || (a.value = !1), l(...arguments), r.value = !1;
  38646. }, (d) => (s.value || (a.value = !1), r.value = !1, Promise.reject(d))));
  38647. }, c = (f) => {
  38648. const {
  38649. actionFn: d
  38650. } = t;
  38651. if (r.value)
  38652. return;
  38653. if (r.value = !0, !d) {
  38654. l();
  38655. return;
  38656. }
  38657. let h;
  38658. if (t.emitEvent) {
  38659. if (h = d(f), t.quitOnNullishReturnValue && !$9(h)) {
  38660. r.value = !1, l(f);
  38661. return;
  38662. }
  38663. } else if (d.length)
  38664. h = d(t.close), r.value = !1;
  38665. else if (h = d(), !h) {
  38666. l();
  38667. return;
  38668. }
  38669. u(h);
  38670. };
  38671. return () => {
  38672. const {
  38673. type: f,
  38674. prefixCls: d,
  38675. buttonProps: h
  38676. } = t;
  38677. return D(Vi, te(te(te({}, Cie(f)), {}, {
  38678. onClick: c,
  38679. loading: a.value,
  38680. prefixCls: d
  38681. }, h), {}, {
  38682. ref: i
  38683. }), n);
  38684. };
  38685. }
  38686. });
  38687. function Gp(t) {
  38688. return typeof t == "function" ? t() : t;
  38689. }
  38690. const noe = ae({
  38691. name: "ConfirmDialog",
  38692. inheritAttrs: !1,
  38693. props: ["icon", "onCancel", "onOk", "close", "closable", "zIndex", "afterClose", "visible", "open", "keyboard", "centered", "getContainer", "maskStyle", "okButtonProps", "cancelButtonProps", "okType", "prefixCls", "okCancel", "width", "mask", "maskClosable", "okText", "cancelText", "autoFocusButton", "transitionName", "maskTransitionName", "type", "title", "content", "direction", "rootPrefixCls", "bodyStyle", "closeIcon", "modalRender", "focusTriggerAfterClose", "wrapClassName", "confirmPrefixCls", "footer"],
  38694. setup(t, e) {
  38695. let {
  38696. attrs: n
  38697. } = e;
  38698. const [r] = _2("Modal");
  38699. return process.env.NODE_ENV !== "production" && aa(t.visible === void 0, "Modal", "`visible` is deprecated, please use `open` instead."), () => {
  38700. const {
  38701. icon: i,
  38702. onCancel: a,
  38703. onOk: o,
  38704. close: s,
  38705. okText: l,
  38706. closable: u = !1,
  38707. zIndex: c,
  38708. afterClose: f,
  38709. keyboard: d,
  38710. centered: h,
  38711. getContainer: p,
  38712. maskStyle: v,
  38713. okButtonProps: g,
  38714. cancelButtonProps: m,
  38715. okCancel: y,
  38716. width: _ = 416,
  38717. mask: O = !0,
  38718. maskClosable: S = !1,
  38719. type: x,
  38720. open: C,
  38721. title: P,
  38722. content: $,
  38723. direction: T,
  38724. closeIcon: E,
  38725. modalRender: M,
  38726. focusTriggerAfterClose: R,
  38727. rootPrefixCls: N,
  38728. bodyStyle: I,
  38729. wrapClassName: B,
  38730. footer: Q
  38731. } = t;
  38732. let W = i;
  38733. if (!i && i !== null)
  38734. switch (x) {
  38735. case "info":
  38736. W = D(cp, null, null);
  38737. break;
  38738. case "success":
  38739. W = D(Df, null, null);
  38740. break;
  38741. case "error":
  38742. W = D(cs, null, null);
  38743. break;
  38744. default:
  38745. W = D(Rf, null, null);
  38746. }
  38747. const H = t.okType || "primary", U = t.prefixCls || "ant-modal", j = `${U}-confirm`, Y = n.style || {}, ne = y ?? x === "confirm", fe = t.autoFocusButton === null ? !1 : t.autoFocusButton || "ok", ue = `${U}-confirm`, ye = Re(ue, `${ue}-${t.type}`, {
  38748. [`${ue}-rtl`]: T === "rtl"
  38749. }, n.class), se = r.value, he = ne && D(A9, {
  38750. actionFn: a,
  38751. close: s,
  38752. autofocus: fe === "cancel",
  38753. buttonProps: m,
  38754. prefixCls: `${N}-btn`
  38755. }, {
  38756. default: () => [Gp(t.cancelText) || se.cancelText]
  38757. });
  38758. return D(uo, {
  38759. prefixCls: U,
  38760. class: ye,
  38761. wrapClassName: Re({
  38762. [`${ue}-centered`]: !!h
  38763. }, B),
  38764. onCancel: (re) => s == null ? void 0 : s({
  38765. triggerCancel: !0
  38766. }, re),
  38767. open: C,
  38768. title: "",
  38769. footer: "",
  38770. transitionName: Wl(N, "zoom", t.transitionName),
  38771. maskTransitionName: Wl(N, "fade", t.maskTransitionName),
  38772. mask: O,
  38773. maskClosable: S,
  38774. maskStyle: v,
  38775. style: Y,
  38776. bodyStyle: I,
  38777. width: _,
  38778. zIndex: c,
  38779. afterClose: f,
  38780. keyboard: d,
  38781. centered: h,
  38782. getContainer: p,
  38783. closable: u,
  38784. closeIcon: E,
  38785. modalRender: M,
  38786. focusTriggerAfterClose: R
  38787. }, {
  38788. default: () => [D("div", {
  38789. class: `${j}-body-wrapper`
  38790. }, [D("div", {
  38791. class: `${j}-body`
  38792. }, [Gp(W), P === void 0 ? null : D("span", {
  38793. class: `${j}-title`
  38794. }, [Gp(P)]), D("div", {
  38795. class: `${j}-content`
  38796. }, [Gp($)])]), Q !== void 0 ? Gp(Q) : D("div", {
  38797. class: `${j}-btns`
  38798. }, [he, D(A9, {
  38799. type: H,
  38800. actionFn: o,
  38801. close: s,
  38802. autofocus: fe === "ok",
  38803. buttonProps: g,
  38804. prefixCls: `${N}-btn`
  38805. }, {
  38806. default: () => [Gp(l) || (ne ? se.okText : se.justOkText)]
  38807. })])])]
  38808. });
  38809. };
  38810. }
  38811. }), nh = [], q_ = (t) => {
  38812. const e = document.createDocumentFragment();
  38813. let n = k(k({}, si(t, ["parentContext", "appContext"])), {
  38814. close: a,
  38815. open: !0
  38816. }), r = null;
  38817. function i() {
  38818. r && (Ih(null, e), r = null);
  38819. for (var u = arguments.length, c = new Array(u), f = 0; f < u; f++)
  38820. c[f] = arguments[f];
  38821. const d = c.some((h) => h && h.triggerCancel);
  38822. t.onCancel && d && t.onCancel(() => {
  38823. }, ...c.slice(1));
  38824. for (let h = 0; h < nh.length; h++)
  38825. if (nh[h] === a) {
  38826. nh.splice(h, 1);
  38827. break;
  38828. }
  38829. }
  38830. function a() {
  38831. for (var u = arguments.length, c = new Array(u), f = 0; f < u; f++)
  38832. c[f] = arguments[f];
  38833. n = k(k({}, n), {
  38834. open: !1,
  38835. afterClose: () => {
  38836. typeof t.afterClose == "function" && t.afterClose(), i.apply(this, c);
  38837. }
  38838. }), n.visible && delete n.visible, o(n);
  38839. }
  38840. function o(u) {
  38841. typeof u == "function" ? n = u(n) : n = k(k({}, n), u), r && nNe(r, n, e);
  38842. }
  38843. const s = (u) => {
  38844. const c = gi, f = c.prefixCls, d = u.prefixCls || `${f}-modal`, h = c.iconPrefixCls, p = rVe();
  38845. return D(Gv, te(te({}, c), {}, {
  38846. prefixCls: f
  38847. }), {
  38848. default: () => [D(noe, te(te({}, u), {}, {
  38849. rootPrefixCls: f,
  38850. prefixCls: d,
  38851. iconPrefixCls: h,
  38852. locale: p,
  38853. cancelText: u.cancelText || p.cancelText
  38854. }), null)]
  38855. });
  38856. };
  38857. function l(u) {
  38858. const c = D(s, k({}, u));
  38859. return c.appContext = t.parentContext || t.appContext || c.appContext, Ih(c, e), c;
  38860. }
  38861. return r = l(n), nh.push(a), {
  38862. destroy: a,
  38863. update: o
  38864. };
  38865. };
  38866. function roe(t) {
  38867. return k(k({}, t), {
  38868. type: "warning"
  38869. });
  38870. }
  38871. function ioe(t) {
  38872. return k(k({}, t), {
  38873. type: "info"
  38874. });
  38875. }
  38876. function aoe(t) {
  38877. return k(k({}, t), {
  38878. type: "success"
  38879. });
  38880. }
  38881. function ooe(t) {
  38882. return k(k({}, t), {
  38883. type: "error"
  38884. });
  38885. }
  38886. function soe(t) {
  38887. return k(k({}, t), {
  38888. type: "confirm"
  38889. });
  38890. }
  38891. const FWe = () => ({
  38892. config: Object,
  38893. afterClose: Function,
  38894. destroyAction: Function,
  38895. open: Boolean
  38896. }), WWe = ae({
  38897. name: "HookModal",
  38898. inheritAttrs: !1,
  38899. props: li(FWe(), {
  38900. config: {
  38901. width: 520,
  38902. okType: "primary"
  38903. }
  38904. }),
  38905. setup(t, e) {
  38906. let {
  38907. expose: n
  38908. } = e;
  38909. var r;
  38910. const i = V(() => t.open), a = V(() => t.config), {
  38911. direction: o,
  38912. getPrefixCls: s
  38913. } = b2(), l = s("modal"), u = s(), c = () => {
  38914. var p, v;
  38915. t == null || t.afterClose(), (v = (p = a.value).afterClose) === null || v === void 0 || v.call(p);
  38916. }, f = function() {
  38917. t.destroyAction(...arguments);
  38918. };
  38919. n({
  38920. destroy: f
  38921. });
  38922. const d = (r = a.value.okCancel) !== null && r !== void 0 ? r : a.value.type === "confirm", [h] = _2("Modal", Nu.Modal);
  38923. return () => D(noe, te(te({
  38924. prefixCls: l,
  38925. rootPrefixCls: u
  38926. }, a.value), {}, {
  38927. close: f,
  38928. open: i.value,
  38929. afterClose: c,
  38930. okText: a.value.okText || (d ? h == null ? void 0 : h.value.okText : h == null ? void 0 : h.value.justOkText),
  38931. direction: a.value.direction || o.value,
  38932. cancelText: a.value.cancelText || (h == null ? void 0 : h.value.cancelText)
  38933. }), null);
  38934. }
  38935. });
  38936. let E9 = 0;
  38937. const QWe = ae({
  38938. name: "ElementsHolder",
  38939. inheritAttrs: !1,
  38940. setup(t, e) {
  38941. let {
  38942. expose: n
  38943. } = e;
  38944. const r = ve([]);
  38945. return n({
  38946. addModal: (a) => (r.value.push(a), r.value = r.value.slice(), () => {
  38947. r.value = r.value.filter((o) => o !== a);
  38948. })
  38949. }), () => r.value.map((a) => a());
  38950. }
  38951. });
  38952. function HWe() {
  38953. const t = ve(null), e = ve([]);
  38954. me(e, () => {
  38955. e.value.length && ([...e.value].forEach((o) => {
  38956. o();
  38957. }), e.value = []);
  38958. }, {
  38959. immediate: !0
  38960. });
  38961. const n = (a) => function(s) {
  38962. var l;
  38963. E9 += 1;
  38964. const u = ve(!0), c = ve(null), f = ve(z(s)), d = ve({});
  38965. me(() => s, (_) => {
  38966. g(k(k({}, Vs(_) ? _.value : _), d.value));
  38967. });
  38968. const h = function() {
  38969. u.value = !1;
  38970. for (var _ = arguments.length, O = new Array(_), S = 0; S < _; S++)
  38971. O[S] = arguments[S];
  38972. const x = O.some((C) => C && C.triggerCancel);
  38973. f.value.onCancel && x && f.value.onCancel(() => {
  38974. }, ...O.slice(1));
  38975. };
  38976. let p;
  38977. const v = () => D(WWe, {
  38978. key: `modal-${E9}`,
  38979. config: a(f.value),
  38980. ref: c,
  38981. open: u.value,
  38982. destroyAction: h,
  38983. afterClose: () => {
  38984. p == null || p();
  38985. }
  38986. }, null);
  38987. p = (l = t.value) === null || l === void 0 ? void 0 : l.addModal(v), p && nh.push(p);
  38988. const g = (_) => {
  38989. f.value = k(k({}, f.value), _);
  38990. };
  38991. return {
  38992. destroy: () => {
  38993. c.value ? h() : e.value = [...e.value, h];
  38994. },
  38995. update: (_) => {
  38996. d.value = _, c.value ? g(_) : e.value = [...e.value, () => g(_)];
  38997. }
  38998. };
  38999. }, r = V(() => ({
  39000. info: n(ioe),
  39001. success: n(aoe),
  39002. error: n(ooe),
  39003. warning: n(roe),
  39004. confirm: n(soe)
  39005. })), i = Symbol("modalHolderKey");
  39006. return [r.value, () => D(QWe, {
  39007. key: i,
  39008. ref: t
  39009. }, null)];
  39010. }
  39011. function loe(t) {
  39012. return q_(roe(t));
  39013. }
  39014. uo.useModal = HWe;
  39015. uo.info = function(e) {
  39016. return q_(ioe(e));
  39017. };
  39018. uo.success = function(e) {
  39019. return q_(aoe(e));
  39020. };
  39021. uo.error = function(e) {
  39022. return q_(ooe(e));
  39023. };
  39024. uo.warning = loe;
  39025. uo.warn = loe;
  39026. uo.confirm = function(e) {
  39027. return q_(soe(e));
  39028. };
  39029. uo.destroyAll = function() {
  39030. for (; nh.length; ) {
  39031. const e = nh.pop();
  39032. e && e();
  39033. }
  39034. };
  39035. uo.install = function(t) {
  39036. return t.component(uo.name, uo), t;
  39037. };
  39038. const G8 = (t, e) => {
  39039. let {
  39040. attrs: n
  39041. } = e;
  39042. const {
  39043. included: r,
  39044. vertical: i,
  39045. style: a,
  39046. class: o
  39047. } = n;
  39048. let {
  39049. length: s,
  39050. offset: l,
  39051. reverse: u
  39052. } = n;
  39053. s < 0 && (u = !u, s = Math.abs(s), l = 100 - l);
  39054. const c = i ? {
  39055. [u ? "top" : "bottom"]: `${l}%`,
  39056. [u ? "bottom" : "top"]: "auto",
  39057. height: `${s}%`
  39058. } : {
  39059. [u ? "right" : "left"]: `${l}%`,
  39060. [u ? "left" : "right"]: "auto",
  39061. width: `${s}%`
  39062. }, f = k(k({}, a), c);
  39063. return r ? D("div", {
  39064. class: o,
  39065. style: f
  39066. }, null) : null;
  39067. };
  39068. G8.inheritAttrs = !1;
  39069. const GWe = (t, e, n, r, i, a) => {
  39070. aa(n ? r > 0 : !0, "Slider", "`Slider[step]` should be a positive number in order to make Slider[dots] work.");
  39071. const o = Object.keys(e).map(parseFloat).sort((s, l) => s - l);
  39072. if (n && r)
  39073. for (let s = i; s <= a; s += r)
  39074. o.indexOf(s) === -1 && o.push(s);
  39075. return o;
  39076. }, uoe = (t, e) => {
  39077. let {
  39078. attrs: n
  39079. } = e;
  39080. const {
  39081. prefixCls: r,
  39082. vertical: i,
  39083. reverse: a,
  39084. marks: o,
  39085. dots: s,
  39086. step: l,
  39087. included: u,
  39088. lowerBound: c,
  39089. upperBound: f,
  39090. max: d,
  39091. min: h,
  39092. dotStyle: p,
  39093. activeDotStyle: v
  39094. } = n, g = d - h, m = GWe(i, o, s, l, h, d).map((y) => {
  39095. const _ = `${Math.abs(y - h) / g * 100}%`, O = !u && y === f || u && y <= f && y >= c;
  39096. let S = i ? k(k({}, p), {
  39097. [a ? "top" : "bottom"]: _
  39098. }) : k(k({}, p), {
  39099. [a ? "right" : "left"]: _
  39100. });
  39101. O && (S = k(k({}, S), v));
  39102. const x = Re({
  39103. [`${r}-dot`]: !0,
  39104. [`${r}-dot-active`]: O,
  39105. [`${r}-dot-reverse`]: a
  39106. });
  39107. return D("span", {
  39108. class: x,
  39109. style: S,
  39110. key: y
  39111. }, null);
  39112. });
  39113. return D("div", {
  39114. class: `${r}-step`
  39115. }, [m]);
  39116. };
  39117. uoe.inheritAttrs = !1;
  39118. const coe = (t, e) => {
  39119. let {
  39120. attrs: n,
  39121. slots: r
  39122. } = e;
  39123. const {
  39124. class: i,
  39125. vertical: a,
  39126. reverse: o,
  39127. marks: s,
  39128. included: l,
  39129. upperBound: u,
  39130. lowerBound: c,
  39131. max: f,
  39132. min: d,
  39133. onClickLabel: h
  39134. } = n, p = Object.keys(s), v = r.mark, g = f - d, m = p.map(parseFloat).sort((y, _) => y - _).map((y) => {
  39135. const _ = typeof s[y] == "function" ? s[y]() : s[y], O = typeof _ == "object" && !po(_);
  39136. let S = O ? _.label : _;
  39137. if (!S && S !== 0)
  39138. return null;
  39139. v && (S = v({
  39140. point: y,
  39141. label: S
  39142. }));
  39143. const x = !l && y === u || l && y <= u && y >= c, C = Re({
  39144. [`${i}-text`]: !0,
  39145. [`${i}-text-active`]: x
  39146. }), P = {
  39147. marginBottom: "-50%",
  39148. [o ? "top" : "bottom"]: `${(y - d) / g * 100}%`
  39149. }, $ = {
  39150. transform: `translateX(${o ? "50%" : "-50%"})`,
  39151. msTransform: `translateX(${o ? "50%" : "-50%"})`,
  39152. [o ? "right" : "left"]: `${(y - d) / g * 100}%`
  39153. }, T = a ? P : $, E = O ? k(k({}, T), _.style) : T, M = {
  39154. [mi ? "onTouchstartPassive" : "onTouchstart"]: (R) => h(R, y)
  39155. };
  39156. return D("span", te({
  39157. class: C,
  39158. style: E,
  39159. key: y,
  39160. onMousedown: (R) => h(R, y)
  39161. }, M), [S]);
  39162. });
  39163. return D("div", {
  39164. class: i
  39165. }, [m]);
  39166. };
  39167. coe.inheritAttrs = !1;
  39168. const foe = ae({
  39169. compatConfig: {
  39170. MODE: 3
  39171. },
  39172. name: "Handle",
  39173. inheritAttrs: !1,
  39174. props: {
  39175. prefixCls: String,
  39176. vertical: {
  39177. type: Boolean,
  39178. default: void 0
  39179. },
  39180. offset: Number,
  39181. disabled: {
  39182. type: Boolean,
  39183. default: void 0
  39184. },
  39185. min: Number,
  39186. max: Number,
  39187. value: Number,
  39188. tabindex: oe.oneOfType([oe.number, oe.string]),
  39189. reverse: {
  39190. type: Boolean,
  39191. default: void 0
  39192. },
  39193. ariaLabel: String,
  39194. ariaLabelledBy: String,
  39195. ariaValueTextFormatter: Function,
  39196. onMouseenter: {
  39197. type: Function
  39198. },
  39199. onMouseleave: {
  39200. type: Function
  39201. },
  39202. onMousedown: {
  39203. type: Function
  39204. }
  39205. },
  39206. setup(t, e) {
  39207. let {
  39208. attrs: n,
  39209. emit: r,
  39210. expose: i
  39211. } = e;
  39212. const a = ve(!1), o = ve(), s = () => {
  39213. document.activeElement === o.value && (a.value = !0);
  39214. }, l = (g) => {
  39215. a.value = !1, r("blur", g);
  39216. }, u = () => {
  39217. a.value = !1;
  39218. }, c = () => {
  39219. var g;
  39220. (g = o.value) === null || g === void 0 || g.focus();
  39221. }, f = () => {
  39222. var g;
  39223. (g = o.value) === null || g === void 0 || g.blur();
  39224. }, d = () => {
  39225. a.value = !0, c();
  39226. }, h = (g) => {
  39227. g.preventDefault(), c(), r("mousedown", g);
  39228. };
  39229. i({
  39230. focus: c,
  39231. blur: f,
  39232. clickFocus: d,
  39233. ref: o
  39234. });
  39235. let p = null;
  39236. _t(() => {
  39237. p = yi(document, "mouseup", s);
  39238. }), Qt(() => {
  39239. p == null || p.remove();
  39240. });
  39241. const v = V(() => {
  39242. const {
  39243. vertical: g,
  39244. offset: m,
  39245. reverse: y
  39246. } = t;
  39247. return g ? {
  39248. [y ? "top" : "bottom"]: `${m}%`,
  39249. [y ? "bottom" : "top"]: "auto",
  39250. transform: y ? null : "translateY(+50%)"
  39251. } : {
  39252. [y ? "right" : "left"]: `${m}%`,
  39253. [y ? "left" : "right"]: "auto",
  39254. transform: `translateX(${y ? "+" : "-"}50%)`
  39255. };
  39256. });
  39257. return () => {
  39258. const {
  39259. prefixCls: g,
  39260. disabled: m,
  39261. min: y,
  39262. max: _,
  39263. value: O,
  39264. tabindex: S,
  39265. ariaLabel: x,
  39266. ariaLabelledBy: C,
  39267. ariaValueTextFormatter: P,
  39268. onMouseenter: $,
  39269. onMouseleave: T
  39270. } = t, E = Re(n.class, {
  39271. [`${g}-handle-click-focused`]: a.value
  39272. }), M = {
  39273. "aria-valuemin": y,
  39274. "aria-valuemax": _,
  39275. "aria-valuenow": O,
  39276. "aria-disabled": !!m
  39277. }, R = [n.style, v.value];
  39278. let N = S || 0;
  39279. (m || S === null) && (N = null);
  39280. let I;
  39281. P && (I = P(O));
  39282. const B = k(k(k(k({}, n), {
  39283. role: "slider",
  39284. tabindex: N
  39285. }), M), {
  39286. class: E,
  39287. onBlur: l,
  39288. onKeydown: u,
  39289. onMousedown: h,
  39290. onMouseenter: $,
  39291. onMouseleave: T,
  39292. ref: o,
  39293. style: R
  39294. });
  39295. return D("div", te(te({}, B), {}, {
  39296. "aria-label": x,
  39297. "aria-labelledby": C,
  39298. "aria-valuetext": I
  39299. }), null);
  39300. };
  39301. }
  39302. });
  39303. function SE(t, e) {
  39304. try {
  39305. return Object.keys(e).some((n) => t.target === e[n].ref);
  39306. } catch {
  39307. return !1;
  39308. }
  39309. }
  39310. function doe(t, e) {
  39311. let {
  39312. min: n,
  39313. max: r
  39314. } = e;
  39315. return t < n || t > r;
  39316. }
  39317. function M9(t) {
  39318. return t.touches.length > 1 || t.type.toLowerCase() === "touchend" && t.touches.length > 0;
  39319. }
  39320. function I9(t, e) {
  39321. let {
  39322. marks: n,
  39323. step: r,
  39324. min: i,
  39325. max: a
  39326. } = e;
  39327. const o = Object.keys(n).map(parseFloat);
  39328. if (r !== null) {
  39329. const l = Math.pow(10, hoe(r)), u = Math.floor((a * l - i * l) / (r * l)), c = Math.min((t - i) / r, u), f = Math.round(c) * r + i;
  39330. o.push(f);
  39331. }
  39332. const s = o.map((l) => Math.abs(t - l));
  39333. return o[s.indexOf(Math.min(...s))];
  39334. }
  39335. function hoe(t) {
  39336. const e = t.toString();
  39337. let n = 0;
  39338. return e.indexOf(".") >= 0 && (n = e.length - e.indexOf(".") - 1), n;
  39339. }
  39340. function D9(t, e) {
  39341. let n = 1;
  39342. return window.visualViewport && (n = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2)), (t ? e.clientY : e.pageX) / n;
  39343. }
  39344. function R9(t, e) {
  39345. let n = 1;
  39346. return window.visualViewport && (n = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2)), (t ? e.touches[0].clientY : e.touches[0].pageX) / n;
  39347. }
  39348. function k9(t, e) {
  39349. const n = e.getBoundingClientRect();
  39350. return t ? n.top + n.height * 0.5 : window.scrollX + n.left + n.width * 0.5;
  39351. }
  39352. function j8(t, e) {
  39353. let {
  39354. max: n,
  39355. min: r
  39356. } = e;
  39357. return t <= r ? r : t >= n ? n : t;
  39358. }
  39359. function poe(t, e) {
  39360. const {
  39361. step: n
  39362. } = e, r = isFinite(I9(t, e)) ? I9(t, e) : 0;
  39363. return n === null ? r : parseFloat(r.toFixed(hoe(n)));
  39364. }
  39365. function zg(t) {
  39366. t.stopPropagation(), t.preventDefault();
  39367. }
  39368. function jWe(t, e, n) {
  39369. const r = {
  39370. increase: (o, s) => o + s,
  39371. decrease: (o, s) => o - s
  39372. }, i = r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)), 1), a = Object.keys(n.marks)[i];
  39373. return n.step ? r[t](e, n.step) : Object.keys(n.marks).length && n.marks[a] ? n.marks[a] : e;
  39374. }
  39375. function voe(t, e, n) {
  39376. const r = "increase", i = "decrease";
  39377. let a = r;
  39378. switch (t.keyCode) {
  39379. case Me.UP:
  39380. a = e && n ? i : r;
  39381. break;
  39382. case Me.RIGHT:
  39383. a = !e && n ? i : r;
  39384. break;
  39385. case Me.DOWN:
  39386. a = e && n ? r : i;
  39387. break;
  39388. case Me.LEFT:
  39389. a = !e && n ? r : i;
  39390. break;
  39391. case Me.END:
  39392. return (o, s) => s.max;
  39393. case Me.HOME:
  39394. return (o, s) => s.min;
  39395. case Me.PAGE_UP:
  39396. return (o, s) => o + s.step * 2;
  39397. case Me.PAGE_DOWN:
  39398. return (o, s) => o - s.step * 2;
  39399. default:
  39400. return;
  39401. }
  39402. return (o, s) => jWe(a, o, s);
  39403. }
  39404. var ZWe = function(t, e) {
  39405. var n = {};
  39406. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  39407. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  39408. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  39409. return n;
  39410. };
  39411. function sd() {
  39412. }
  39413. function goe(t) {
  39414. const e = {
  39415. id: String,
  39416. min: Number,
  39417. max: Number,
  39418. step: Number,
  39419. marks: oe.object,
  39420. included: {
  39421. type: Boolean,
  39422. default: void 0
  39423. },
  39424. prefixCls: String,
  39425. disabled: {
  39426. type: Boolean,
  39427. default: void 0
  39428. },
  39429. handle: Function,
  39430. dots: {
  39431. type: Boolean,
  39432. default: void 0
  39433. },
  39434. vertical: {
  39435. type: Boolean,
  39436. default: void 0
  39437. },
  39438. reverse: {
  39439. type: Boolean,
  39440. default: void 0
  39441. },
  39442. minimumTrackStyle: oe.object,
  39443. maximumTrackStyle: oe.object,
  39444. handleStyle: oe.oneOfType([oe.object, oe.arrayOf(oe.object)]),
  39445. trackStyle: oe.oneOfType([oe.object, oe.arrayOf(oe.object)]),
  39446. railStyle: oe.object,
  39447. dotStyle: oe.object,
  39448. activeDotStyle: oe.object,
  39449. autofocus: {
  39450. type: Boolean,
  39451. default: void 0
  39452. },
  39453. draggableTrack: {
  39454. type: Boolean,
  39455. default: void 0
  39456. }
  39457. };
  39458. return ae({
  39459. compatConfig: {
  39460. MODE: 3
  39461. },
  39462. name: "CreateSlider",
  39463. mixins: [A2, t],
  39464. inheritAttrs: !1,
  39465. props: li(e, {
  39466. prefixCls: "rc-slider",
  39467. min: 0,
  39468. max: 100,
  39469. step: 1,
  39470. marks: {},
  39471. included: !0,
  39472. disabled: !1,
  39473. dots: !1,
  39474. vertical: !1,
  39475. reverse: !1,
  39476. trackStyle: [{}],
  39477. handleStyle: [{}],
  39478. railStyle: {},
  39479. dotStyle: {},
  39480. activeDotStyle: {}
  39481. }),
  39482. emits: ["change", "blur", "focus"],
  39483. data() {
  39484. const {
  39485. step: n,
  39486. max: r,
  39487. min: i
  39488. } = this, a = isFinite(r - i) ? (r - i) % n === 0 : !0;
  39489. return aa(n && Math.floor(n) === n ? a : !0, `Slider[max] - Slider[min] (${r - i}) should be a multiple of Slider[step] (${n})`), this.handlesRefs = {}, {};
  39490. },
  39491. mounted() {
  39492. this.$nextTick(() => {
  39493. this.document = this.sliderRef && this.sliderRef.ownerDocument;
  39494. const {
  39495. autofocus: n,
  39496. disabled: r
  39497. } = this;
  39498. n && !r && this.focus();
  39499. });
  39500. },
  39501. beforeUnmount() {
  39502. this.$nextTick(() => {
  39503. this.removeDocumentEvents();
  39504. });
  39505. },
  39506. methods: {
  39507. defaultHandle(n) {
  39508. var {
  39509. index: r,
  39510. directives: i,
  39511. className: a,
  39512. style: o
  39513. } = n, s = ZWe(n, ["index", "directives", "className", "style"]);
  39514. if (delete s.dragging, s.value === null)
  39515. return null;
  39516. const l = k(k({}, s), {
  39517. class: a,
  39518. style: o,
  39519. key: r
  39520. });
  39521. return D(foe, l, null);
  39522. },
  39523. onDown(n, r) {
  39524. let i = r;
  39525. const {
  39526. draggableTrack: a,
  39527. vertical: o
  39528. } = this.$props, {
  39529. bounds: s
  39530. } = this.$data, l = a && this.positionGetValue ? this.positionGetValue(i) || [] : [], u = SE(n, this.handlesRefs);
  39531. if (this.dragTrack = a && s.length >= 2 && !u && !l.map((c, f) => {
  39532. const d = f ? !0 : c >= s[f];
  39533. return f === l.length - 1 ? c <= s[f] : d;
  39534. }).some((c) => !c), this.dragTrack)
  39535. this.dragOffset = i, this.startBounds = [...s];
  39536. else {
  39537. if (!u)
  39538. this.dragOffset = 0;
  39539. else {
  39540. const c = k9(o, n.target);
  39541. this.dragOffset = i - c, i = c;
  39542. }
  39543. this.onStart(i);
  39544. }
  39545. },
  39546. onMouseDown(n) {
  39547. if (n.button !== 0)
  39548. return;
  39549. this.removeDocumentEvents();
  39550. const r = this.$props.vertical, i = D9(r, n);
  39551. this.onDown(n, i), this.addDocumentMouseEvents();
  39552. },
  39553. onTouchStart(n) {
  39554. if (M9(n)) return;
  39555. const r = this.vertical, i = R9(r, n);
  39556. this.onDown(n, i), this.addDocumentTouchEvents(), zg(n);
  39557. },
  39558. onFocus(n) {
  39559. const {
  39560. vertical: r
  39561. } = this;
  39562. if (SE(n, this.handlesRefs) && !this.dragTrack) {
  39563. const i = k9(r, n.target);
  39564. this.dragOffset = 0, this.onStart(i), zg(n), this.$emit("focus", n);
  39565. }
  39566. },
  39567. onBlur(n) {
  39568. this.dragTrack || this.onEnd(), this.$emit("blur", n);
  39569. },
  39570. onMouseUp() {
  39571. this.handlesRefs[this.prevMovedHandleIndex] && this.handlesRefs[this.prevMovedHandleIndex].clickFocus();
  39572. },
  39573. onMouseMove(n) {
  39574. if (!this.sliderRef) {
  39575. this.onEnd();
  39576. return;
  39577. }
  39578. const r = D9(this.vertical, n);
  39579. this.onMove(n, r - this.dragOffset, this.dragTrack, this.startBounds);
  39580. },
  39581. onTouchMove(n) {
  39582. if (M9(n) || !this.sliderRef) {
  39583. this.onEnd();
  39584. return;
  39585. }
  39586. const r = R9(this.vertical, n);
  39587. this.onMove(n, r - this.dragOffset, this.dragTrack, this.startBounds);
  39588. },
  39589. onKeyDown(n) {
  39590. this.sliderRef && SE(n, this.handlesRefs) && this.onKeyboard(n);
  39591. },
  39592. onClickMarkLabel(n, r) {
  39593. n.stopPropagation(), this.onChange({
  39594. sValue: r
  39595. }), this.setState({
  39596. sValue: r
  39597. }, () => this.onEnd(!0));
  39598. },
  39599. getSliderStart() {
  39600. const n = this.sliderRef, {
  39601. vertical: r,
  39602. reverse: i
  39603. } = this, a = n.getBoundingClientRect();
  39604. return r ? i ? a.bottom : a.top : window.scrollX + (i ? a.right : a.left);
  39605. },
  39606. getSliderLength() {
  39607. const n = this.sliderRef;
  39608. if (!n)
  39609. return 0;
  39610. const r = n.getBoundingClientRect();
  39611. return this.vertical ? r.height : r.width;
  39612. },
  39613. addDocumentTouchEvents() {
  39614. this.onTouchMoveListener = yi(this.document, "touchmove", this.onTouchMove), this.onTouchUpListener = yi(this.document, "touchend", this.onEnd);
  39615. },
  39616. addDocumentMouseEvents() {
  39617. this.onMouseMoveListener = yi(this.document, "mousemove", this.onMouseMove), this.onMouseUpListener = yi(this.document, "mouseup", this.onEnd);
  39618. },
  39619. removeDocumentEvents() {
  39620. this.onTouchMoveListener && this.onTouchMoveListener.remove(), this.onTouchUpListener && this.onTouchUpListener.remove(), this.onMouseMoveListener && this.onMouseMoveListener.remove(), this.onMouseUpListener && this.onMouseUpListener.remove();
  39621. },
  39622. focus() {
  39623. var n;
  39624. this.$props.disabled || (n = this.handlesRefs[0]) === null || n === void 0 || n.focus();
  39625. },
  39626. blur() {
  39627. this.$props.disabled || Object.keys(this.handlesRefs).forEach((n) => {
  39628. var r, i;
  39629. (i = (r = this.handlesRefs[n]) === null || r === void 0 ? void 0 : r.blur) === null || i === void 0 || i.call(r);
  39630. });
  39631. },
  39632. calcValue(n) {
  39633. const {
  39634. vertical: r,
  39635. min: i,
  39636. max: a
  39637. } = this, o = Math.abs(Math.max(n, 0) / this.getSliderLength());
  39638. return r ? (1 - o) * (a - i) + i : o * (a - i) + i;
  39639. },
  39640. calcValueByPos(n) {
  39641. const i = (this.reverse ? -1 : 1) * (n - this.getSliderStart());
  39642. return this.trimAlignValue(this.calcValue(i));
  39643. },
  39644. calcOffset(n) {
  39645. const {
  39646. min: r,
  39647. max: i
  39648. } = this, a = (n - r) / (i - r);
  39649. return Math.max(0, a * 100);
  39650. },
  39651. saveSlider(n) {
  39652. this.sliderRef = n;
  39653. },
  39654. saveHandle(n, r) {
  39655. this.handlesRefs[n] = r;
  39656. }
  39657. },
  39658. render() {
  39659. const {
  39660. prefixCls: n,
  39661. marks: r,
  39662. dots: i,
  39663. step: a,
  39664. included: o,
  39665. disabled: s,
  39666. vertical: l,
  39667. reverse: u,
  39668. min: c,
  39669. max: f,
  39670. maximumTrackStyle: d,
  39671. railStyle: h,
  39672. dotStyle: p,
  39673. activeDotStyle: v,
  39674. id: g
  39675. } = this, {
  39676. class: m,
  39677. style: y
  39678. } = this.$attrs, {
  39679. tracks: _,
  39680. handles: O
  39681. } = this.renderSlider(), S = Re(n, m, {
  39682. [`${n}-with-marks`]: Object.keys(r).length,
  39683. [`${n}-disabled`]: s,
  39684. [`${n}-vertical`]: l,
  39685. [`${n}-horizontal`]: !l
  39686. }), x = {
  39687. vertical: l,
  39688. marks: r,
  39689. included: o,
  39690. lowerBound: this.getLowerBound(),
  39691. upperBound: this.getUpperBound(),
  39692. max: f,
  39693. min: c,
  39694. reverse: u,
  39695. class: `${n}-mark`,
  39696. onClickLabel: s ? sd : this.onClickMarkLabel
  39697. }, C = {
  39698. [mi ? "onTouchstartPassive" : "onTouchstart"]: s ? sd : this.onTouchStart
  39699. };
  39700. return D("div", te(te({
  39701. id: g,
  39702. ref: this.saveSlider,
  39703. tabindex: "-1",
  39704. class: S
  39705. }, C), {}, {
  39706. onMousedown: s ? sd : this.onMouseDown,
  39707. onMouseup: s ? sd : this.onMouseUp,
  39708. onKeydown: s ? sd : this.onKeyDown,
  39709. onFocus: s ? sd : this.onFocus,
  39710. onBlur: s ? sd : this.onBlur,
  39711. style: y
  39712. }), [D("div", {
  39713. class: `${n}-rail`,
  39714. style: k(k({}, d), h)
  39715. }, null), _, D(uoe, {
  39716. prefixCls: n,
  39717. vertical: l,
  39718. reverse: u,
  39719. marks: r,
  39720. dots: i,
  39721. step: a,
  39722. included: o,
  39723. lowerBound: this.getLowerBound(),
  39724. upperBound: this.getUpperBound(),
  39725. max: f,
  39726. min: c,
  39727. dotStyle: p,
  39728. activeDotStyle: v
  39729. }, null), O, D(coe, x, {
  39730. mark: this.$slots.mark
  39731. }), Ine(this)]);
  39732. }
  39733. });
  39734. }
  39735. const UWe = ae({
  39736. compatConfig: {
  39737. MODE: 3
  39738. },
  39739. name: "Slider",
  39740. mixins: [A2],
  39741. inheritAttrs: !1,
  39742. props: {
  39743. defaultValue: Number,
  39744. value: Number,
  39745. disabled: {
  39746. type: Boolean,
  39747. default: void 0
  39748. },
  39749. autofocus: {
  39750. type: Boolean,
  39751. default: void 0
  39752. },
  39753. tabindex: oe.oneOfType([oe.number, oe.string]),
  39754. reverse: {
  39755. type: Boolean,
  39756. default: void 0
  39757. },
  39758. min: Number,
  39759. max: Number,
  39760. ariaLabelForHandle: String,
  39761. ariaLabelledByForHandle: String,
  39762. ariaValueTextFormatterForHandle: String,
  39763. startPoint: Number
  39764. },
  39765. emits: ["beforeChange", "afterChange", "change"],
  39766. data() {
  39767. const t = this.defaultValue !== void 0 ? this.defaultValue : this.min, e = this.value !== void 0 ? this.value : t;
  39768. return {
  39769. sValue: this.trimAlignValue(e),
  39770. dragging: !1
  39771. };
  39772. },
  39773. watch: {
  39774. value: {
  39775. handler(t) {
  39776. this.setChangeValue(t);
  39777. },
  39778. deep: !0
  39779. },
  39780. min() {
  39781. const {
  39782. sValue: t
  39783. } = this;
  39784. this.setChangeValue(t);
  39785. },
  39786. max() {
  39787. const {
  39788. sValue: t
  39789. } = this;
  39790. this.setChangeValue(t);
  39791. }
  39792. },
  39793. methods: {
  39794. setChangeValue(t) {
  39795. const e = t !== void 0 ? t : this.sValue, n = this.trimAlignValue(e, this.$props);
  39796. n !== this.sValue && (this.setState({
  39797. sValue: n
  39798. }), doe(e, this.$props) && this.$emit("change", n));
  39799. },
  39800. onChange(t) {
  39801. const e = !Zw(this, "value"), n = t.sValue > this.max ? k(k({}, t), {
  39802. sValue: this.max
  39803. }) : t;
  39804. e && this.setState(n);
  39805. const r = n.sValue;
  39806. this.$emit("change", r);
  39807. },
  39808. onStart(t) {
  39809. this.setState({
  39810. dragging: !0
  39811. });
  39812. const {
  39813. sValue: e
  39814. } = this;
  39815. this.$emit("beforeChange", e);
  39816. const n = this.calcValueByPos(t);
  39817. this.startValue = n, this.startPosition = t, n !== e && (this.prevMovedHandleIndex = 0, this.onChange({
  39818. sValue: n
  39819. }));
  39820. },
  39821. onEnd(t) {
  39822. const {
  39823. dragging: e
  39824. } = this;
  39825. this.removeDocumentEvents(), (e || t) && this.$emit("afterChange", this.sValue), this.setState({
  39826. dragging: !1
  39827. });
  39828. },
  39829. onMove(t, e) {
  39830. zg(t);
  39831. const {
  39832. sValue: n
  39833. } = this, r = this.calcValueByPos(e);
  39834. r !== n && this.onChange({
  39835. sValue: r
  39836. });
  39837. },
  39838. onKeyboard(t) {
  39839. const {
  39840. reverse: e,
  39841. vertical: n
  39842. } = this.$props, r = voe(t, n, e);
  39843. if (r) {
  39844. zg(t);
  39845. const {
  39846. sValue: i
  39847. } = this, a = r(i, this.$props), o = this.trimAlignValue(a);
  39848. if (o === i) return;
  39849. this.onChange({
  39850. sValue: o
  39851. }), this.$emit("afterChange", o), this.onEnd();
  39852. }
  39853. },
  39854. getLowerBound() {
  39855. const t = this.$props.startPoint || this.$props.min;
  39856. return this.$data.sValue > t ? t : this.$data.sValue;
  39857. },
  39858. getUpperBound() {
  39859. return this.$data.sValue < this.$props.startPoint ? this.$props.startPoint : this.$data.sValue;
  39860. },
  39861. trimAlignValue(t) {
  39862. let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  39863. if (t === null)
  39864. return null;
  39865. const n = k(k({}, this.$props), e), r = j8(t, n);
  39866. return poe(r, n);
  39867. },
  39868. getTrack(t) {
  39869. let {
  39870. prefixCls: e,
  39871. reverse: n,
  39872. vertical: r,
  39873. included: i,
  39874. minimumTrackStyle: a,
  39875. mergedTrackStyle: o,
  39876. length: s,
  39877. offset: l
  39878. } = t;
  39879. return D(G8, {
  39880. class: `${e}-track`,
  39881. vertical: r,
  39882. included: i,
  39883. offset: l,
  39884. reverse: n,
  39885. length: s,
  39886. style: k(k({}, a), o)
  39887. }, null);
  39888. },
  39889. renderSlider() {
  39890. const {
  39891. prefixCls: t,
  39892. vertical: e,
  39893. included: n,
  39894. disabled: r,
  39895. minimumTrackStyle: i,
  39896. trackStyle: a,
  39897. handleStyle: o,
  39898. tabindex: s,
  39899. ariaLabelForHandle: l,
  39900. ariaLabelledByForHandle: u,
  39901. ariaValueTextFormatterForHandle: c,
  39902. min: f,
  39903. max: d,
  39904. startPoint: h,
  39905. reverse: p,
  39906. handle: v,
  39907. defaultHandle: g
  39908. } = this, m = v || g, {
  39909. sValue: y,
  39910. dragging: _
  39911. } = this, O = this.calcOffset(y), S = m({
  39912. class: `${t}-handle`,
  39913. prefixCls: t,
  39914. vertical: e,
  39915. offset: O,
  39916. value: y,
  39917. dragging: _,
  39918. disabled: r,
  39919. min: f,
  39920. max: d,
  39921. reverse: p,
  39922. index: 0,
  39923. tabindex: s,
  39924. ariaLabel: l,
  39925. ariaLabelledBy: u,
  39926. ariaValueTextFormatter: c,
  39927. style: o[0] || o,
  39928. ref: (P) => this.saveHandle(0, P),
  39929. onFocus: this.onFocus,
  39930. onBlur: this.onBlur
  39931. }), x = h !== void 0 ? this.calcOffset(h) : 0, C = a[0] || a;
  39932. return {
  39933. tracks: this.getTrack({
  39934. prefixCls: t,
  39935. reverse: p,
  39936. vertical: e,
  39937. included: n,
  39938. offset: x,
  39939. minimumTrackStyle: i,
  39940. mergedTrackStyle: C,
  39941. length: O - x
  39942. }),
  39943. handles: S
  39944. };
  39945. }
  39946. }
  39947. }), XWe = goe(UWe), S0 = (t) => {
  39948. let {
  39949. value: e,
  39950. handle: n,
  39951. bounds: r,
  39952. props: i
  39953. } = t;
  39954. const {
  39955. allowCross: a,
  39956. pushable: o
  39957. } = i, s = Number(o), l = j8(e, i);
  39958. let u = l;
  39959. return !a && n != null && r !== void 0 && (n > 0 && l <= r[n - 1] + s && (u = r[n - 1] + s), n < r.length - 1 && l >= r[n + 1] - s && (u = r[n + 1] - s)), poe(u, i);
  39960. }, YWe = {
  39961. defaultValue: oe.arrayOf(oe.number),
  39962. value: oe.arrayOf(oe.number),
  39963. count: Number,
  39964. pushable: m4e(oe.oneOfType([oe.looseBool, oe.number])),
  39965. allowCross: {
  39966. type: Boolean,
  39967. default: void 0
  39968. },
  39969. disabled: {
  39970. type: Boolean,
  39971. default: void 0
  39972. },
  39973. reverse: {
  39974. type: Boolean,
  39975. default: void 0
  39976. },
  39977. tabindex: oe.arrayOf(oe.number),
  39978. prefixCls: String,
  39979. min: Number,
  39980. max: Number,
  39981. autofocus: {
  39982. type: Boolean,
  39983. default: void 0
  39984. },
  39985. ariaLabelGroupForHandles: Array,
  39986. ariaLabelledByGroupForHandles: Array,
  39987. ariaValueTextFormatterGroupForHandles: Array,
  39988. draggableTrack: {
  39989. type: Boolean,
  39990. default: void 0
  39991. }
  39992. }, qWe = ae({
  39993. compatConfig: {
  39994. MODE: 3
  39995. },
  39996. name: "Range",
  39997. mixins: [A2],
  39998. inheritAttrs: !1,
  39999. props: li(YWe, {
  40000. count: 1,
  40001. allowCross: !0,
  40002. pushable: !1,
  40003. tabindex: [],
  40004. draggableTrack: !1,
  40005. ariaLabelGroupForHandles: [],
  40006. ariaLabelledByGroupForHandles: [],
  40007. ariaValueTextFormatterGroupForHandles: []
  40008. }),
  40009. emits: ["beforeChange", "afterChange", "change"],
  40010. displayName: "Range",
  40011. data() {
  40012. const {
  40013. count: t,
  40014. min: e,
  40015. max: n
  40016. } = this, r = Array(...Array(t + 1)).map(() => e), i = Zw(this, "defaultValue") ? this.defaultValue : r;
  40017. let {
  40018. value: a
  40019. } = this;
  40020. a === void 0 && (a = i);
  40021. const o = a.map((l, u) => S0({
  40022. value: l,
  40023. handle: u,
  40024. props: this.$props
  40025. }));
  40026. return {
  40027. sHandle: null,
  40028. recent: o[0] === n ? 0 : o.length - 1,
  40029. bounds: o
  40030. };
  40031. },
  40032. watch: {
  40033. value: {
  40034. handler(t) {
  40035. const {
  40036. bounds: e
  40037. } = this;
  40038. this.setChangeValue(t || e);
  40039. },
  40040. deep: !0
  40041. },
  40042. min() {
  40043. const {
  40044. value: t
  40045. } = this;
  40046. this.setChangeValue(t || this.bounds);
  40047. },
  40048. max() {
  40049. const {
  40050. value: t
  40051. } = this;
  40052. this.setChangeValue(t || this.bounds);
  40053. }
  40054. },
  40055. methods: {
  40056. setChangeValue(t) {
  40057. const {
  40058. bounds: e
  40059. } = this;
  40060. let n = t.map((r, i) => S0({
  40061. value: r,
  40062. handle: i,
  40063. bounds: e,
  40064. props: this.$props
  40065. }));
  40066. if (e.length === n.length) {
  40067. if (n.every((r, i) => r === e[i]))
  40068. return null;
  40069. } else
  40070. n = t.map((r, i) => S0({
  40071. value: r,
  40072. handle: i,
  40073. props: this.$props
  40074. }));
  40075. if (this.setState({
  40076. bounds: n
  40077. }), t.some((r) => doe(r, this.$props))) {
  40078. const r = t.map((i) => j8(i, this.$props));
  40079. this.$emit("change", r);
  40080. }
  40081. },
  40082. onChange(t) {
  40083. if (!Zw(this, "value"))
  40084. this.setState(t);
  40085. else {
  40086. const i = {};
  40087. ["sHandle", "recent"].forEach((a) => {
  40088. t[a] !== void 0 && (i[a] = t[a]);
  40089. }), Object.keys(i).length && this.setState(i);
  40090. }
  40091. const r = k(k({}, this.$data), t).bounds;
  40092. this.$emit("change", r);
  40093. },
  40094. positionGetValue(t) {
  40095. const e = this.getValue(), n = this.calcValueByPos(t), r = this.getClosestBound(n), i = this.getBoundNeedMoving(n, r), a = e[i];
  40096. if (n === a) return null;
  40097. const o = [...e];
  40098. return o[i] = n, o;
  40099. },
  40100. onStart(t) {
  40101. const {
  40102. bounds: e
  40103. } = this;
  40104. this.$emit("beforeChange", e);
  40105. const n = this.calcValueByPos(t);
  40106. this.startValue = n, this.startPosition = t;
  40107. const r = this.getClosestBound(n);
  40108. this.prevMovedHandleIndex = this.getBoundNeedMoving(n, r), this.setState({
  40109. sHandle: this.prevMovedHandleIndex,
  40110. recent: this.prevMovedHandleIndex
  40111. });
  40112. const i = e[this.prevMovedHandleIndex];
  40113. if (n === i) return;
  40114. const a = [...e];
  40115. a[this.prevMovedHandleIndex] = n, this.onChange({
  40116. bounds: a
  40117. });
  40118. },
  40119. onEnd(t) {
  40120. const {
  40121. sHandle: e
  40122. } = this;
  40123. this.removeDocumentEvents(), e || (this.dragTrack = !1), (e !== null || t) && this.$emit("afterChange", this.bounds), this.setState({
  40124. sHandle: null
  40125. });
  40126. },
  40127. onMove(t, e, n, r) {
  40128. zg(t);
  40129. const {
  40130. $data: i,
  40131. $props: a
  40132. } = this, o = a.max || 100, s = a.min || 0;
  40133. if (n) {
  40134. let d = a.vertical ? -e : e;
  40135. d = a.reverse ? -d : d;
  40136. const h = o - Math.max(...r), p = s - Math.min(...r), v = Math.min(Math.max(d / (this.getSliderLength() / 100), p), h), g = r.map((m) => Math.floor(Math.max(Math.min(m + v, o), s)));
  40137. i.bounds.map((m, y) => m === g[y]).some((m) => !m) && this.onChange({
  40138. bounds: g
  40139. });
  40140. return;
  40141. }
  40142. const {
  40143. bounds: l,
  40144. sHandle: u
  40145. } = this, c = this.calcValueByPos(e), f = l[u];
  40146. c !== f && this.moveTo(c);
  40147. },
  40148. onKeyboard(t) {
  40149. const {
  40150. reverse: e,
  40151. vertical: n
  40152. } = this.$props, r = voe(t, n, e);
  40153. if (r) {
  40154. zg(t);
  40155. const {
  40156. bounds: i,
  40157. sHandle: a
  40158. } = this, o = i[a === null ? this.recent : a], s = r(o, this.$props), l = S0({
  40159. value: s,
  40160. handle: a,
  40161. bounds: i,
  40162. props: this.$props
  40163. });
  40164. if (l === o) return;
  40165. this.moveTo(l, !0);
  40166. }
  40167. },
  40168. getClosestBound(t) {
  40169. const {
  40170. bounds: e
  40171. } = this;
  40172. let n = 0;
  40173. for (let r = 1; r < e.length - 1; r += 1)
  40174. t >= e[r] && (n = r);
  40175. return Math.abs(e[n + 1] - t) < Math.abs(e[n] - t) && (n += 1), n;
  40176. },
  40177. getBoundNeedMoving(t, e) {
  40178. const {
  40179. bounds: n,
  40180. recent: r
  40181. } = this;
  40182. let i = e;
  40183. const a = n[e + 1] === n[e];
  40184. return a && n[r] === n[e] && (i = r), a && t !== n[e + 1] && (i = t < n[e + 1] ? e : e + 1), i;
  40185. },
  40186. getLowerBound() {
  40187. return this.bounds[0];
  40188. },
  40189. getUpperBound() {
  40190. const {
  40191. bounds: t
  40192. } = this;
  40193. return t[t.length - 1];
  40194. },
  40195. /**
  40196. * Returns an array of possible slider points, taking into account both
  40197. * `marks` and `step`. The result is cached.
  40198. */
  40199. getPoints() {
  40200. const {
  40201. marks: t,
  40202. step: e,
  40203. min: n,
  40204. max: r
  40205. } = this, i = this.internalPointsCache;
  40206. if (!i || i.marks !== t || i.step !== e) {
  40207. const a = k({}, t);
  40208. if (e !== null)
  40209. for (let s = n; s <= r; s += e)
  40210. a[s] = s;
  40211. const o = Object.keys(a).map(parseFloat);
  40212. o.sort((s, l) => s - l), this.internalPointsCache = {
  40213. marks: t,
  40214. step: e,
  40215. points: o
  40216. };
  40217. }
  40218. return this.internalPointsCache.points;
  40219. },
  40220. moveTo(t, e) {
  40221. const n = [...this.bounds], {
  40222. sHandle: r,
  40223. recent: i
  40224. } = this, a = r === null ? i : r;
  40225. n[a] = t;
  40226. let o = a;
  40227. this.$props.pushable !== !1 ? this.pushSurroundingHandles(n, o) : this.$props.allowCross && (n.sort((s, l) => s - l), o = n.indexOf(t)), this.onChange({
  40228. recent: o,
  40229. sHandle: o,
  40230. bounds: n
  40231. }), e && (this.$emit("afterChange", n), this.setState({}, () => {
  40232. this.handlesRefs[o].focus();
  40233. }), this.onEnd());
  40234. },
  40235. pushSurroundingHandles(t, e) {
  40236. const n = t[e], {
  40237. pushable: r
  40238. } = this, i = Number(r);
  40239. let a = 0;
  40240. if (t[e + 1] - n < i && (a = 1), n - t[e - 1] < i && (a = -1), a === 0)
  40241. return;
  40242. const o = e + a, s = a * (t[o] - n);
  40243. this.pushHandle(t, o, a, i - s) || (t[e] = t[o] - a * i);
  40244. },
  40245. pushHandle(t, e, n, r) {
  40246. const i = t[e];
  40247. let a = t[e];
  40248. for (; n * (a - i) < r; ) {
  40249. if (!this.pushHandleOnePoint(t, e, n))
  40250. return t[e] = i, !1;
  40251. a = t[e];
  40252. }
  40253. return !0;
  40254. },
  40255. pushHandleOnePoint(t, e, n) {
  40256. const r = this.getPoints(), a = r.indexOf(t[e]) + n;
  40257. if (a >= r.length || a < 0)
  40258. return !1;
  40259. const o = e + n, s = r[a], {
  40260. pushable: l
  40261. } = this, u = Number(l), c = n * (t[o] - s);
  40262. return this.pushHandle(t, o, n, u - c) ? (t[e] = s, !0) : !1;
  40263. },
  40264. trimAlignValue(t) {
  40265. const {
  40266. sHandle: e,
  40267. bounds: n
  40268. } = this;
  40269. return S0({
  40270. value: t,
  40271. handle: e,
  40272. bounds: n,
  40273. props: this.$props
  40274. });
  40275. },
  40276. ensureValueNotConflict(t, e, n) {
  40277. let {
  40278. allowCross: r,
  40279. pushable: i
  40280. } = n;
  40281. const a = this.$data || {}, {
  40282. bounds: o
  40283. } = a;
  40284. if (t = t === void 0 ? a.sHandle : t, i = Number(i), !r && t != null && o !== void 0) {
  40285. if (t > 0 && e <= o[t - 1] + i)
  40286. return o[t - 1] + i;
  40287. if (t < o.length - 1 && e >= o[t + 1] - i)
  40288. return o[t + 1] - i;
  40289. }
  40290. return e;
  40291. },
  40292. getTrack(t) {
  40293. let {
  40294. bounds: e,
  40295. prefixCls: n,
  40296. reverse: r,
  40297. vertical: i,
  40298. included: a,
  40299. offsets: o,
  40300. trackStyle: s
  40301. } = t;
  40302. return e.slice(0, -1).map((l, u) => {
  40303. const c = u + 1, f = Re({
  40304. [`${n}-track`]: !0,
  40305. [`${n}-track-${c}`]: !0
  40306. });
  40307. return D(G8, {
  40308. class: f,
  40309. vertical: i,
  40310. reverse: r,
  40311. included: a,
  40312. offset: o[c - 1],
  40313. length: o[c] - o[c - 1],
  40314. style: s[u],
  40315. key: c
  40316. }, null);
  40317. });
  40318. },
  40319. renderSlider() {
  40320. const {
  40321. sHandle: t,
  40322. bounds: e,
  40323. prefixCls: n,
  40324. vertical: r,
  40325. included: i,
  40326. disabled: a,
  40327. min: o,
  40328. max: s,
  40329. reverse: l,
  40330. handle: u,
  40331. defaultHandle: c,
  40332. trackStyle: f,
  40333. handleStyle: d,
  40334. tabindex: h,
  40335. ariaLabelGroupForHandles: p,
  40336. ariaLabelledByGroupForHandles: v,
  40337. ariaValueTextFormatterGroupForHandles: g
  40338. } = this, m = u || c, y = e.map((S) => this.calcOffset(S)), _ = `${n}-handle`, O = e.map((S, x) => {
  40339. let C = h[x] || 0;
  40340. (a || h[x] === null) && (C = null);
  40341. const P = t === x;
  40342. return m({
  40343. class: Re({
  40344. [_]: !0,
  40345. [`${_}-${x + 1}`]: !0,
  40346. [`${_}-dragging`]: P
  40347. }),
  40348. prefixCls: n,
  40349. vertical: r,
  40350. dragging: P,
  40351. offset: y[x],
  40352. value: S,
  40353. index: x,
  40354. tabindex: C,
  40355. min: o,
  40356. max: s,
  40357. reverse: l,
  40358. disabled: a,
  40359. style: d[x],
  40360. ref: ($) => this.saveHandle(x, $),
  40361. onFocus: this.onFocus,
  40362. onBlur: this.onBlur,
  40363. ariaLabel: p[x],
  40364. ariaLabelledBy: v[x],
  40365. ariaValueTextFormatter: g[x]
  40366. });
  40367. });
  40368. return {
  40369. tracks: this.getTrack({
  40370. bounds: e,
  40371. prefixCls: n,
  40372. reverse: l,
  40373. vertical: r,
  40374. included: i,
  40375. offsets: y,
  40376. trackStyle: f
  40377. }),
  40378. handles: O
  40379. };
  40380. }
  40381. }
  40382. }), KWe = goe(qWe), JWe = ae({
  40383. compatConfig: {
  40384. MODE: 3
  40385. },
  40386. name: "SliderTooltip",
  40387. inheritAttrs: !1,
  40388. props: wie(),
  40389. setup(t, e) {
  40390. let {
  40391. attrs: n,
  40392. slots: r
  40393. } = e;
  40394. const i = ee(null), a = ee(null);
  40395. function o() {
  40396. en.cancel(a.value), a.value = null;
  40397. }
  40398. function s() {
  40399. a.value = en(() => {
  40400. var u;
  40401. (u = i.value) === null || u === void 0 || u.forcePopupAlign(), a.value = null;
  40402. });
  40403. }
  40404. const l = () => {
  40405. o(), t.open && s();
  40406. };
  40407. return me([() => t.open, () => t.title], () => {
  40408. l();
  40409. }, {
  40410. flush: "post",
  40411. immediate: !0
  40412. }), hxe(() => {
  40413. l();
  40414. }), Qt(() => {
  40415. o();
  40416. }), () => D(F2, te(te({
  40417. ref: i
  40418. }, t), n), r);
  40419. }
  40420. }), e7e = (t) => {
  40421. const {
  40422. componentCls: e,
  40423. controlSize: n,
  40424. dotSize: r,
  40425. marginFull: i,
  40426. marginPart: a,
  40427. colorFillContentHover: o
  40428. } = t;
  40429. return {
  40430. [e]: k(k({}, Gn(t)), {
  40431. position: "relative",
  40432. height: n,
  40433. margin: `${a}px ${i}px`,
  40434. padding: 0,
  40435. cursor: "pointer",
  40436. touchAction: "none",
  40437. "&-vertical": {
  40438. margin: `${i}px ${a}px`
  40439. },
  40440. [`${e}-rail`]: {
  40441. position: "absolute",
  40442. backgroundColor: t.colorFillTertiary,
  40443. borderRadius: t.borderRadiusXS,
  40444. transition: `background-color ${t.motionDurationMid}`
  40445. },
  40446. [`${e}-track`]: {
  40447. position: "absolute",
  40448. backgroundColor: t.colorPrimaryBorder,
  40449. borderRadius: t.borderRadiusXS,
  40450. transition: `background-color ${t.motionDurationMid}`
  40451. },
  40452. "&:hover": {
  40453. [`${e}-rail`]: {
  40454. backgroundColor: t.colorFillSecondary
  40455. },
  40456. [`${e}-track`]: {
  40457. backgroundColor: t.colorPrimaryBorderHover
  40458. },
  40459. [`${e}-dot`]: {
  40460. borderColor: o
  40461. },
  40462. [`${e}-handle::after`]: {
  40463. boxShadow: `0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorderHover}`
  40464. },
  40465. [`${e}-dot-active`]: {
  40466. borderColor: t.colorPrimary
  40467. }
  40468. },
  40469. [`${e}-handle`]: {
  40470. position: "absolute",
  40471. width: t.handleSize,
  40472. height: t.handleSize,
  40473. outline: "none",
  40474. [`${e}-dragging`]: {
  40475. zIndex: 1
  40476. },
  40477. // 扩大选区
  40478. "&::before": {
  40479. content: '""',
  40480. position: "absolute",
  40481. insetInlineStart: -t.handleLineWidth,
  40482. insetBlockStart: -t.handleLineWidth,
  40483. width: t.handleSize + t.handleLineWidth * 2,
  40484. height: t.handleSize + t.handleLineWidth * 2,
  40485. backgroundColor: "transparent"
  40486. },
  40487. "&::after": {
  40488. content: '""',
  40489. position: "absolute",
  40490. insetBlockStart: 0,
  40491. insetInlineStart: 0,
  40492. width: t.handleSize,
  40493. height: t.handleSize,
  40494. backgroundColor: t.colorBgElevated,
  40495. boxShadow: `0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorder}`,
  40496. borderRadius: "50%",
  40497. cursor: "pointer",
  40498. transition: `
  40499. inset-inline-start ${t.motionDurationMid},
  40500. inset-block-start ${t.motionDurationMid},
  40501. width ${t.motionDurationMid},
  40502. height ${t.motionDurationMid},
  40503. box-shadow ${t.motionDurationMid}
  40504. `
  40505. },
  40506. "&:hover, &:active, &:focus": {
  40507. "&::before": {
  40508. insetInlineStart: -((t.handleSizeHover - t.handleSize) / 2 + t.handleLineWidthHover),
  40509. insetBlockStart: -((t.handleSizeHover - t.handleSize) / 2 + t.handleLineWidthHover),
  40510. width: t.handleSizeHover + t.handleLineWidthHover * 2,
  40511. height: t.handleSizeHover + t.handleLineWidthHover * 2
  40512. },
  40513. "&::after": {
  40514. boxShadow: `0 0 0 ${t.handleLineWidthHover}px ${t.colorPrimary}`,
  40515. width: t.handleSizeHover,
  40516. height: t.handleSizeHover,
  40517. insetInlineStart: (t.handleSize - t.handleSizeHover) / 2,
  40518. insetBlockStart: (t.handleSize - t.handleSizeHover) / 2
  40519. }
  40520. }
  40521. },
  40522. [`${e}-mark`]: {
  40523. position: "absolute",
  40524. fontSize: t.fontSize
  40525. },
  40526. [`${e}-mark-text`]: {
  40527. position: "absolute",
  40528. display: "inline-block",
  40529. color: t.colorTextDescription,
  40530. textAlign: "center",
  40531. wordBreak: "keep-all",
  40532. cursor: "pointer",
  40533. userSelect: "none",
  40534. "&-active": {
  40535. color: t.colorText
  40536. }
  40537. },
  40538. [`${e}-step`]: {
  40539. position: "absolute",
  40540. background: "transparent",
  40541. pointerEvents: "none"
  40542. },
  40543. [`${e}-dot`]: {
  40544. position: "absolute",
  40545. width: r,
  40546. height: r,
  40547. backgroundColor: t.colorBgElevated,
  40548. border: `${t.handleLineWidth}px solid ${t.colorBorderSecondary}`,
  40549. borderRadius: "50%",
  40550. cursor: "pointer",
  40551. transition: `border-color ${t.motionDurationSlow}`,
  40552. "&-active": {
  40553. borderColor: t.colorPrimaryBorder
  40554. }
  40555. },
  40556. [`&${e}-disabled`]: {
  40557. cursor: "not-allowed",
  40558. [`${e}-rail`]: {
  40559. backgroundColor: `${t.colorFillSecondary} !important`
  40560. },
  40561. [`${e}-track`]: {
  40562. backgroundColor: `${t.colorTextDisabled} !important`
  40563. },
  40564. [`
  40565. ${e}-dot
  40566. `]: {
  40567. backgroundColor: t.colorBgElevated,
  40568. borderColor: t.colorTextDisabled,
  40569. boxShadow: "none",
  40570. cursor: "not-allowed"
  40571. },
  40572. [`${e}-handle::after`]: {
  40573. backgroundColor: t.colorBgElevated,
  40574. cursor: "not-allowed",
  40575. width: t.handleSize,
  40576. height: t.handleSize,
  40577. boxShadow: `0 0 0 ${t.handleLineWidth}px ${new Hn(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,
  40578. insetInlineStart: 0,
  40579. insetBlockStart: 0
  40580. },
  40581. [`
  40582. ${e}-mark-text,
  40583. ${e}-dot
  40584. `]: {
  40585. cursor: "not-allowed !important"
  40586. }
  40587. }
  40588. })
  40589. };
  40590. }, moe = (t, e) => {
  40591. const {
  40592. componentCls: n,
  40593. railSize: r,
  40594. handleSize: i,
  40595. dotSize: a
  40596. } = t, o = e ? "paddingBlock" : "paddingInline", s = e ? "width" : "height", l = e ? "height" : "width", u = e ? "insetBlockStart" : "insetInlineStart", c = e ? "top" : "insetInlineStart";
  40597. return {
  40598. [o]: r,
  40599. [l]: r * 3,
  40600. [`${n}-rail`]: {
  40601. [s]: "100%",
  40602. [l]: r
  40603. },
  40604. [`${n}-track`]: {
  40605. [l]: r
  40606. },
  40607. [`${n}-handle`]: {
  40608. [u]: (r * 3 - i) / 2
  40609. },
  40610. [`${n}-mark`]: {
  40611. // Reset all
  40612. insetInlineStart: 0,
  40613. top: 0,
  40614. [c]: i,
  40615. [s]: "100%"
  40616. },
  40617. [`${n}-step`]: {
  40618. // Reset all
  40619. insetInlineStart: 0,
  40620. top: 0,
  40621. [c]: r,
  40622. [s]: "100%",
  40623. [l]: r
  40624. },
  40625. [`${n}-dot`]: {
  40626. position: "absolute",
  40627. [u]: (r - a) / 2
  40628. }
  40629. };
  40630. }, t7e = (t) => {
  40631. const {
  40632. componentCls: e,
  40633. marginPartWithMark: n
  40634. } = t;
  40635. return {
  40636. [`${e}-horizontal`]: k(k({}, moe(t, !0)), {
  40637. [`&${e}-with-marks`]: {
  40638. marginBottom: n
  40639. }
  40640. })
  40641. };
  40642. }, n7e = (t) => {
  40643. const {
  40644. componentCls: e
  40645. } = t;
  40646. return {
  40647. [`${e}-vertical`]: k(k({}, moe(t, !1)), {
  40648. height: "100%"
  40649. })
  40650. };
  40651. }, r7e = pr("Slider", (t) => {
  40652. const e = bn(t, {
  40653. marginPart: (t.controlHeight - t.controlSize) / 2,
  40654. marginFull: t.controlSize / 2,
  40655. marginPartWithMark: t.controlHeightLG - t.controlSize
  40656. });
  40657. return [e7e(e), t7e(e), n7e(e)];
  40658. }, (t) => {
  40659. const n = t.controlHeightLG / 4, r = t.controlHeightSM / 2, i = t.lineWidth + 1, a = t.lineWidth + 1 * 3;
  40660. return {
  40661. controlSize: n,
  40662. railSize: 4,
  40663. handleSize: n,
  40664. handleSizeHover: r,
  40665. dotSize: 8,
  40666. handleLineWidth: i,
  40667. handleLineWidthHover: a
  40668. };
  40669. });
  40670. var L9 = function(t, e) {
  40671. var n = {};
  40672. for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  40673. if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
  40674. e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
  40675. return n;
  40676. };
  40677. const i7e = (t) => typeof t == "number" ? t.toString() : "", a7e = () => ({
  40678. id: String,
  40679. prefixCls: String,
  40680. tooltipPrefixCls: String,
  40681. range: or([Boolean, Object]),
  40682. reverse: Tt(),
  40683. min: Number,
  40684. max: Number,
  40685. step: or([Object, Number]),
  40686. marks: sn(),
  40687. dots: Tt(),
  40688. value: or([Array, Number]),
  40689. defaultValue: or([Array, Number]),
  40690. included: Tt(),
  40691. disabled: Tt(),
  40692. vertical: Tt(),
  40693. tipFormatter: or([Function, Object], () => i7e),
  40694. tooltipOpen: Tt(),
  40695. /** @deprecated `tooltipVisible` is deprecated. Please use `tooltipOpen` instead. */
  40696. tooltipVisible: Tt(),
  40697. tooltipPlacement: rr(),
  40698. getTooltipPopupContainer: Ct(),
  40699. autofocus: Tt(),
  40700. handleStyle: or([Array, Object]),
  40701. trackStyle: or([Array, Object]),
  40702. onChange: Ct(),
  40703. onAfterChange: Ct(),
  40704. onFocus: Ct(),
  40705. onBlur: Ct(),
  40706. "onUpdate:value": Ct()
  40707. }), o7e = ae({
  40708. compatConfig: {
  40709. MODE: 3
  40710. },
  40711. name: "ASlider",
  40712. inheritAttrs: !1,
  40713. props: a7e(),
  40714. // emits: ['update:value', 'change', 'afterChange', 'blur'],
  40715. slots: Object,
  40716. setup(t, e) {
  40717. let {
  40718. attrs: n,
  40719. slots: r,
  40720. emit: i,
  40721. expose: a
  40722. } = e;
  40723. process.env.NODE_ENV !== "production" && [["tooltipVisible", "tooltipOpen"]].forEach((C) => {
  40724. let [P, $] = C;
  40725. lo(t.tooltipVisible === void 0, "Slider", `\`${P}\` is deprecated, please use \`${$}\` instead.`);
  40726. });
  40727. const {
  40728. prefixCls: o,
  40729. rootPrefixCls: s,
  40730. direction: l,
  40731. getPopupContainer: u,
  40732. configProvider: c
  40733. } = hn("slider", t), [f, d] = r7e(o), h = Ul(), p = ee(), v = ee({}), g = (C, P) => {
  40734. v.value[C] = P;
  40735. }, m = V(() => t.tooltipPlacement ? t.tooltipPlacement : t.vertical ? l.value === "rtl" ? "left" : "right" : "top"), y = () => {
  40736. var C;
  40737. (C = p.value) === null || C === void 0 || C.focus();
  40738. }, _ = () => {
  40739. var C;
  40740. (C = p.value) === null || C === void 0 || C.blur();
  40741. }, O = (C) => {
  40742. i("update:value", C), i("change", C), h.onFieldChange();
  40743. }, S = (C) => {
  40744. i("blur", C);
  40745. };
  40746. a({
  40747. focus: y,
  40748. blur: _
  40749. });
  40750. const x = (C) => {
  40751. var {
  40752. tooltipPrefixCls: P
  40753. } = C, $ = C.info, {
  40754. value: T,
  40755. dragging: E,
  40756. index: M
  40757. } = $, R = L9($, ["value", "dragging", "index"]);
  40758. const {
  40759. tipFormatter: N,
  40760. tooltipOpen: I = t.tooltipVisible,
  40761. getTooltipPopupContainer: B
  40762. } = t, Q = N ? v.value[M] || E : !1, W = I || I === void 0 && Q;
  40763. return D(JWe, {
  40764. prefixCls: P,
  40765. title: N ? N(T) : "",
  40766. open: W,
  40767. placement: m.value,
  40768. transitionName: `${s.value}-zoom-down`,
  40769. key: M,
  40770. overlayClassName: `${o.value}-tooltip`,
  40771. getPopupContainer: B || (u == null ? void 0 : u.value)
  40772. }, {
  40773. default: () => [D(foe, te(te({}, R), {}, {
  40774. value: T,
  40775. onMouseenter: () => g(M, !0),
  40776. onMouseleave: () => g(M, !1)
  40777. }), null)]
  40778. });
  40779. };
  40780. return () => {
  40781. const {
  40782. tooltipPrefixCls: C,
  40783. range: P,
  40784. id: $ = h.id.value
  40785. } = t, T = L9(t, ["tooltipPrefixCls", "range", "id"]), E = c.getPrefixCls("tooltip", C), M = Re(n.class, {
  40786. [`${o.value}-rtl`]: l.value === "rtl"
  40787. }, d.value);
  40788. l.value === "rtl" && !T.vertical && (T.reverse = !T.reverse);
  40789. let R;
  40790. return typeof P == "object" && (R = P.draggableTrack), f(P ? D(KWe, te(te(te({}, n), T), {}, {
  40791. step: T.step,
  40792. draggableTrack: R,
  40793. class: M,
  40794. ref: p,
  40795. handle: (N) => x({
  40796. tooltipPrefixCls: E,
  40797. prefixCls: o.value,
  40798. info: N
  40799. }),
  40800. prefixCls: o.value,
  40801. onChange: O,
  40802. onBlur: S
  40803. }), {
  40804. mark: r.mark
  40805. }) : D(XWe, te(te(te({}, n), T), {}, {
  40806. id: $,
  40807. step: T.step,
  40808. class: M,
  40809. ref: p,
  40810. handle: (N) => x({
  40811. tooltipPrefixCls: E,
  40812. prefixCls: o.value,
  40813. info: N
  40814. }),
  40815. prefixCls: o.value,
  40816. onChange: O,
  40817. onBlur: S
  40818. }), {
  40819. mark: r.mark
  40820. }));
  40821. };
  40822. }
  40823. }), s7e = fm(o7e);
  40824. var l7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "align-center", theme: "outlined" };
  40825. function N9(t) {
  40826. for (var e = 1; e < arguments.length; e++) {
  40827. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40828. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40829. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40830. }))), r.forEach(function(i) {
  40831. u7e(t, i, n[i]);
  40832. });
  40833. }
  40834. return t;
  40835. }
  40836. function u7e(t, e, n) {
  40837. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40838. }
  40839. var Z8 = function(e, n) {
  40840. var r = N9({}, e, n.attrs);
  40841. return D(Rt, N9({}, r, {
  40842. icon: l7e
  40843. }), null);
  40844. };
  40845. Z8.displayName = "AlignCenterOutlined";
  40846. Z8.inheritAttrs = !1;
  40847. var c7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "align-left", theme: "outlined" };
  40848. function B9(t) {
  40849. for (var e = 1; e < arguments.length; e++) {
  40850. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40851. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40852. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40853. }))), r.forEach(function(i) {
  40854. f7e(t, i, n[i]);
  40855. });
  40856. }
  40857. return t;
  40858. }
  40859. function f7e(t, e, n) {
  40860. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40861. }
  40862. var U8 = function(e, n) {
  40863. var r = B9({}, e, n.attrs);
  40864. return D(Rt, B9({}, r, {
  40865. icon: c7e
  40866. }), null);
  40867. };
  40868. U8.displayName = "AlignLeftOutlined";
  40869. U8.inheritAttrs = !1;
  40870. var d7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "align-right", theme: "outlined" };
  40871. function z9(t) {
  40872. for (var e = 1; e < arguments.length; e++) {
  40873. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40874. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40875. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40876. }))), r.forEach(function(i) {
  40877. h7e(t, i, n[i]);
  40878. });
  40879. }
  40880. return t;
  40881. }
  40882. function h7e(t, e, n) {
  40883. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40884. }
  40885. var X8 = function(e, n) {
  40886. var r = z9({}, e, n.attrs);
  40887. return D(Rt, z9({}, r, {
  40888. icon: d7e
  40889. }), null);
  40890. };
  40891. X8.displayName = "AlignRightOutlined";
  40892. X8.inheritAttrs = !1;
  40893. var p7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z" } }] }, name: "bold", theme: "outlined" };
  40894. function V9(t) {
  40895. for (var e = 1; e < arguments.length; e++) {
  40896. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40897. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40898. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40899. }))), r.forEach(function(i) {
  40900. v7e(t, i, n[i]);
  40901. });
  40902. }
  40903. return t;
  40904. }
  40905. function v7e(t, e, n) {
  40906. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40907. }
  40908. var Y8 = function(e, n) {
  40909. var r = V9({}, e, n.attrs);
  40910. return D(Rt, V9({}, r, {
  40911. icon: p7e
  40912. }), null);
  40913. };
  40914. Y8.displayName = "BoldOutlined";
  40915. Y8.inheritAttrs = !1;
  40916. var g7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z" } }] }, name: "border-bottom", theme: "outlined" };
  40917. function F9(t) {
  40918. for (var e = 1; e < arguments.length; e++) {
  40919. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40920. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40921. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40922. }))), r.forEach(function(i) {
  40923. m7e(t, i, n[i]);
  40924. });
  40925. }
  40926. return t;
  40927. }
  40928. function m7e(t, e, n) {
  40929. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40930. }
  40931. var q8 = function(e, n) {
  40932. var r = F9({}, e, n.attrs);
  40933. return D(Rt, F9({}, r, {
  40934. icon: g7e
  40935. }), null);
  40936. };
  40937. q8.displayName = "BorderBottomOutlined";
  40938. q8.inheritAttrs = !1;
  40939. var y7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "border-left", theme: "outlined" };
  40940. function W9(t) {
  40941. for (var e = 1; e < arguments.length; e++) {
  40942. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40943. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40944. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40945. }))), r.forEach(function(i) {
  40946. b7e(t, i, n[i]);
  40947. });
  40948. }
  40949. return t;
  40950. }
  40951. function b7e(t, e, n) {
  40952. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40953. }
  40954. var K8 = function(e, n) {
  40955. var r = W9({}, e, n.attrs);
  40956. return D(Rt, W9({}, r, {
  40957. icon: y7e
  40958. }), null);
  40959. };
  40960. K8.displayName = "BorderLeftOutlined";
  40961. K8.inheritAttrs = !1;
  40962. var _7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "border-right", theme: "outlined" };
  40963. function Q9(t) {
  40964. for (var e = 1; e < arguments.length; e++) {
  40965. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40966. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40967. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40968. }))), r.forEach(function(i) {
  40969. O7e(t, i, n[i]);
  40970. });
  40971. }
  40972. return t;
  40973. }
  40974. function O7e(t, e, n) {
  40975. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40976. }
  40977. var J8 = function(e, n) {
  40978. var r = Q9({}, e, n.attrs);
  40979. return D(Rt, Q9({}, r, {
  40980. icon: _7e
  40981. }), null);
  40982. };
  40983. J8.displayName = "BorderRightOutlined";
  40984. J8.inheritAttrs = !1;
  40985. var S7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "border-top", theme: "outlined" };
  40986. function H9(t) {
  40987. for (var e = 1; e < arguments.length; e++) {
  40988. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  40989. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  40990. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  40991. }))), r.forEach(function(i) {
  40992. x7e(t, i, n[i]);
  40993. });
  40994. }
  40995. return t;
  40996. }
  40997. function x7e(t, e, n) {
  40998. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  40999. }
  41000. var e5 = function(e, n) {
  41001. var r = H9({}, e, n.attrs);
  41002. return D(Rt, H9({}, r, {
  41003. icon: S7e
  41004. }), null);
  41005. };
  41006. e5.displayName = "BorderTopOutlined";
  41007. e5.inheritAttrs = !1;
  41008. var w7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "database", theme: "outlined" };
  41009. function G9(t) {
  41010. for (var e = 1; e < arguments.length; e++) {
  41011. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41012. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41013. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41014. }))), r.forEach(function(i) {
  41015. C7e(t, i, n[i]);
  41016. });
  41017. }
  41018. return t;
  41019. }
  41020. function C7e(t, e, n) {
  41021. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41022. }
  41023. var K_ = function(e, n) {
  41024. var r = G9({}, e, n.attrs);
  41025. return D(Rt, G9({}, r, {
  41026. icon: w7e
  41027. }), null);
  41028. };
  41029. K_.displayName = "DatabaseOutlined";
  41030. K_.inheritAttrs = !1;
  41031. var T7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z" } }] }, name: "font-colors", theme: "outlined" };
  41032. function j9(t) {
  41033. for (var e = 1; e < arguments.length; e++) {
  41034. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41035. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41036. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41037. }))), r.forEach(function(i) {
  41038. P7e(t, i, n[i]);
  41039. });
  41040. }
  41041. return t;
  41042. }
  41043. function P7e(t, e, n) {
  41044. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41045. }
  41046. var t5 = function(e, n) {
  41047. var r = j9({}, e, n.attrs);
  41048. return D(Rt, j9({}, r, {
  41049. icon: T7e
  41050. }), null);
  41051. };
  41052. t5.displayName = "FontColorsOutlined";
  41053. t5.inheritAttrs = !1;
  41054. var $7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" } }] }, name: "italic", theme: "outlined" };
  41055. function Z9(t) {
  41056. for (var e = 1; e < arguments.length; e++) {
  41057. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41058. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41059. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41060. }))), r.forEach(function(i) {
  41061. A7e(t, i, n[i]);
  41062. });
  41063. }
  41064. return t;
  41065. }
  41066. function A7e(t, e, n) {
  41067. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41068. }
  41069. var n5 = function(e, n) {
  41070. var r = Z9({}, e, n.attrs);
  41071. return D(Rt, Z9({}, r, {
  41072. icon: $7e
  41073. }), null);
  41074. };
  41075. n5.displayName = "ItalicOutlined";
  41076. n5.inheritAttrs = !1;
  41077. var E7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "radius-bottomleft", theme: "outlined" };
  41078. function U9(t) {
  41079. for (var e = 1; e < arguments.length; e++) {
  41080. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41081. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41082. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41083. }))), r.forEach(function(i) {
  41084. M7e(t, i, n[i]);
  41085. });
  41086. }
  41087. return t;
  41088. }
  41089. function M7e(t, e, n) {
  41090. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41091. }
  41092. var r5 = function(e, n) {
  41093. var r = U9({}, e, n.attrs);
  41094. return D(Rt, U9({}, r, {
  41095. icon: E7e
  41096. }), null);
  41097. };
  41098. r5.displayName = "RadiusBottomleftOutlined";
  41099. r5.inheritAttrs = !1;
  41100. var I7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z" } }] }, name: "radius-bottomright", theme: "outlined" };
  41101. function X9(t) {
  41102. for (var e = 1; e < arguments.length; e++) {
  41103. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41104. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41105. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41106. }))), r.forEach(function(i) {
  41107. D7e(t, i, n[i]);
  41108. });
  41109. }
  41110. return t;
  41111. }
  41112. function D7e(t, e, n) {
  41113. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41114. }
  41115. var i5 = function(e, n) {
  41116. var r = X9({}, e, n.attrs);
  41117. return D(Rt, X9({}, r, {
  41118. icon: I7e
  41119. }), null);
  41120. };
  41121. i5.displayName = "RadiusBottomrightOutlined";
  41122. i5.inheritAttrs = !1;
  41123. var R7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "radius-upleft", theme: "outlined" };
  41124. function Y9(t) {
  41125. for (var e = 1; e < arguments.length; e++) {
  41126. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41127. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41128. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41129. }))), r.forEach(function(i) {
  41130. k7e(t, i, n[i]);
  41131. });
  41132. }
  41133. return t;
  41134. }
  41135. function k7e(t, e, n) {
  41136. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41137. }
  41138. var a5 = function(e, n) {
  41139. var r = Y9({}, e, n.attrs);
  41140. return D(Rt, Y9({}, r, {
  41141. icon: R7e
  41142. }), null);
  41143. };
  41144. a5.displayName = "RadiusUpleftOutlined";
  41145. a5.inheritAttrs = !1;
  41146. var L7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z" } }] }, name: "radius-upright", theme: "outlined" };
  41147. function q9(t) {
  41148. for (var e = 1; e < arguments.length; e++) {
  41149. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41150. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41151. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41152. }))), r.forEach(function(i) {
  41153. N7e(t, i, n[i]);
  41154. });
  41155. }
  41156. return t;
  41157. }
  41158. function N7e(t, e, n) {
  41159. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41160. }
  41161. var o5 = function(e, n) {
  41162. var r = q9({}, e, n.attrs);
  41163. return D(Rt, q9({}, r, {
  41164. icon: L7e
  41165. }), null);
  41166. };
  41167. o5.displayName = "RadiusUprightOutlined";
  41168. o5.inheritAttrs = !1;
  41169. var B7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, name: "setting", theme: "outlined" };
  41170. function K9(t) {
  41171. for (var e = 1; e < arguments.length; e++) {
  41172. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41173. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41174. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41175. }))), r.forEach(function(i) {
  41176. z7e(t, i, n[i]);
  41177. });
  41178. }
  41179. return t;
  41180. }
  41181. function z7e(t, e, n) {
  41182. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41183. }
  41184. var vC = function(e, n) {
  41185. var r = K9({}, e, n.attrs);
  41186. return D(Rt, K9({}, r, {
  41187. icon: B7e
  41188. }), null);
  41189. };
  41190. vC.displayName = "SettingOutlined";
  41191. vC.inheritAttrs = !1;
  41192. var V7e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z" } }] }, name: "skin", theme: "outlined" };
  41193. function J9(t) {
  41194. for (var e = 1; e < arguments.length; e++) {
  41195. var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
  41196. typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
  41197. return Object.getOwnPropertyDescriptor(n, i).enumerable;
  41198. }))), r.forEach(function(i) {
  41199. F7e(t, i, n[i]);
  41200. });
  41201. }
  41202. return t;
  41203. }
  41204. function F7e(t, e, n) {
  41205. return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
  41206. }
  41207. var J_ = function(e, n) {
  41208. var r = J9({}, e, n.attrs);
  41209. return D(Rt, J9({}, r, {
  41210. icon: V7e
  41211. }), null);
  41212. };
  41213. J_.displayName = "SkinOutlined";
  41214. J_.inheritAttrs = !1;
  41215. function yoe(t, e) {
  41216. return function() {
  41217. return t.apply(e, arguments);
  41218. };
  41219. }
  41220. const { toString: W7e } = Object.prototype, { getPrototypeOf: s5 } = Object, J2 = /* @__PURE__ */ ((t) => (e) => {
  41221. const n = W7e.call(e);
  41222. return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
  41223. })(/* @__PURE__ */ Object.create(null)), Ks = (t) => (t = t.toLowerCase(), (e) => J2(e) === t), eP = (t) => (e) => typeof e === t, { isArray: vm } = Array, Bb = eP("undefined");
  41224. function Q7e(t) {
  41225. return t !== null && !Bb(t) && t.constructor !== null && !Bb(t.constructor) && Yo(t.constructor.isBuffer) && t.constructor.isBuffer(t);
  41226. }
  41227. const boe = Ks("ArrayBuffer");
  41228. function H7e(t) {
  41229. let e;
  41230. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && boe(t.buffer), e;
  41231. }
  41232. const G7e = eP("string"), Yo = eP("function"), _oe = eP("number"), tP = (t) => t !== null && typeof t == "object", j7e = (t) => t === !0 || t === !1, rw = (t) => {
  41233. if (J2(t) !== "object")
  41234. return !1;
  41235. const e = s5(t);
  41236. return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
  41237. }, Z7e = Ks("Date"), U7e = Ks("File"), X7e = Ks("Blob"), Y7e = Ks("FileList"), q7e = (t) => tP(t) && Yo(t.pipe), K7e = (t) => {
  41238. let e;
  41239. return t && (typeof FormData == "function" && t instanceof FormData || Yo(t.append) && ((e = J2(t)) === "formdata" || // detect form-data instance
  41240. e === "object" && Yo(t.toString) && t.toString() === "[object FormData]"));
  41241. }, J7e = Ks("URLSearchParams"), [eQe, tQe, nQe, rQe] = ["ReadableStream", "Request", "Response", "Headers"].map(Ks), iQe = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  41242. function e1(t, e, { allOwnKeys: n = !1 } = {}) {
  41243. if (t === null || typeof t > "u")
  41244. return;
  41245. let r, i;
  41246. if (typeof t != "object" && (t = [t]), vm(t))
  41247. for (r = 0, i = t.length; r < i; r++)
  41248. e.call(null, t[r], r, t);
  41249. else {
  41250. const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), o = a.length;
  41251. let s;
  41252. for (r = 0; r < o; r++)
  41253. s = a[r], e.call(null, t[s], s, t);
  41254. }
  41255. }
  41256. function Ooe(t, e) {
  41257. e = e.toLowerCase();
  41258. const n = Object.keys(t);
  41259. let r = n.length, i;
  41260. for (; r-- > 0; )
  41261. if (i = n[r], e === i.toLowerCase())
  41262. return i;
  41263. return null;
  41264. }
  41265. const Soe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, xoe = (t) => !Bb(t) && t !== Soe;
  41266. function jR() {
  41267. const { caseless: t } = xoe(this) && this || {}, e = {}, n = (r, i) => {
  41268. const a = t && Ooe(e, i) || i;
  41269. rw(e[a]) && rw(r) ? e[a] = jR(e[a], r) : rw(r) ? e[a] = jR({}, r) : vm(r) ? e[a] = r.slice() : e[a] = r;
  41270. };
  41271. for (let r = 0, i = arguments.length; r < i; r++)
  41272. arguments[r] && e1(arguments[r], n);
  41273. return e;
  41274. }
  41275. const aQe = (t, e, n, { allOwnKeys: r } = {}) => (e1(e, (i, a) => {
  41276. n && Yo(i) ? t[a] = yoe(i, n) : t[a] = i;
  41277. }, { allOwnKeys: r }), t), oQe = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), sQe = (t, e, n, r) => {
  41278. t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
  41279. value: e.prototype
  41280. }), n && Object.assign(t.prototype, n);
  41281. }, lQe = (t, e, n, r) => {
  41282. let i, a, o;
  41283. const s = {};
  41284. if (e = e || {}, t == null) return e;
  41285. do {
  41286. for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
  41287. o = i[a], (!r || r(o, t, e)) && !s[o] && (e[o] = t[o], s[o] = !0);
  41288. t = n !== !1 && s5(t);
  41289. } while (t && (!n || n(t, e)) && t !== Object.prototype);
  41290. return e;
  41291. }, uQe = (t, e, n) => {
  41292. t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
  41293. const r = t.indexOf(e, n);
  41294. return r !== -1 && r === n;
  41295. }, cQe = (t) => {
  41296. if (!t) return null;
  41297. if (vm(t)) return t;
  41298. let e = t.length;
  41299. if (!_oe(e)) return null;
  41300. const n = new Array(e);
  41301. for (; e-- > 0; )
  41302. n[e] = t[e];
  41303. return n;
  41304. }, fQe = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && s5(Uint8Array)), dQe = (t, e) => {
  41305. const r = (t && t[Symbol.iterator]).call(t);
  41306. let i;
  41307. for (; (i = r.next()) && !i.done; ) {
  41308. const a = i.value;
  41309. e.call(t, a[0], a[1]);
  41310. }
  41311. }, hQe = (t, e) => {
  41312. let n;
  41313. const r = [];
  41314. for (; (n = t.exec(e)) !== null; )
  41315. r.push(n);
  41316. return r;
  41317. }, pQe = Ks("HTMLFormElement"), vQe = (t) => t.toLowerCase().replace(
  41318. /[-_\s]([a-z\d])(\w*)/g,
  41319. function(n, r, i) {
  41320. return r.toUpperCase() + i;
  41321. }
  41322. ), eH = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), gQe = Ks("RegExp"), woe = (t, e) => {
  41323. const n = Object.getOwnPropertyDescriptors(t), r = {};
  41324. e1(n, (i, a) => {
  41325. let o;
  41326. (o = e(i, a, t)) !== !1 && (r[a] = o || i);
  41327. }), Object.defineProperties(t, r);
  41328. }, mQe = (t) => {
  41329. woe(t, (e, n) => {
  41330. if (Yo(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
  41331. return !1;
  41332. const r = t[n];
  41333. if (Yo(r)) {
  41334. if (e.enumerable = !1, "writable" in e) {
  41335. e.writable = !1;
  41336. return;
  41337. }
  41338. e.set || (e.set = () => {
  41339. throw Error("Can not rewrite read-only method '" + n + "'");
  41340. });
  41341. }
  41342. });
  41343. }, yQe = (t, e) => {
  41344. const n = {}, r = (i) => {
  41345. i.forEach((a) => {
  41346. n[a] = !0;
  41347. });
  41348. };
  41349. return vm(t) ? r(t) : r(String(t).split(e)), n;
  41350. }, bQe = () => {
  41351. }, _Qe = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, xE = "abcdefghijklmnopqrstuvwxyz", tH = "0123456789", Coe = {
  41352. DIGIT: tH,
  41353. ALPHA: xE,
  41354. ALPHA_DIGIT: xE + xE.toUpperCase() + tH
  41355. }, OQe = (t = 16, e = Coe.ALPHA_DIGIT) => {
  41356. let n = "";
  41357. const { length: r } = e;
  41358. for (; t--; )
  41359. n += e[Math.random() * r | 0];
  41360. return n;
  41361. };
  41362. function SQe(t) {
  41363. return !!(t && Yo(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
  41364. }
  41365. const xQe = (t) => {
  41366. const e = new Array(10), n = (r, i) => {
  41367. if (tP(r)) {
  41368. if (e.indexOf(r) >= 0)
  41369. return;
  41370. if (!("toJSON" in r)) {
  41371. e[i] = r;
  41372. const a = vm(r) ? [] : {};
  41373. return e1(r, (o, s) => {
  41374. const l = n(o, i + 1);
  41375. !Bb(l) && (a[s] = l);
  41376. }), e[i] = void 0, a;
  41377. }
  41378. }
  41379. return r;
  41380. };
  41381. return n(t, 0);
  41382. }, wQe = Ks("AsyncFunction"), CQe = (t) => t && (tP(t) || Yo(t)) && Yo(t.then) && Yo(t.catch), Te = {
  41383. isArray: vm,
  41384. isArrayBuffer: boe,
  41385. isBuffer: Q7e,
  41386. isFormData: K7e,
  41387. isArrayBufferView: H7e,
  41388. isString: G7e,
  41389. isNumber: _oe,
  41390. isBoolean: j7e,
  41391. isObject: tP,
  41392. isPlainObject: rw,
  41393. isReadableStream: eQe,
  41394. isRequest: tQe,
  41395. isResponse: nQe,
  41396. isHeaders: rQe,
  41397. isUndefined: Bb,
  41398. isDate: Z7e,
  41399. isFile: U7e,
  41400. isBlob: X7e,
  41401. isRegExp: gQe,
  41402. isFunction: Yo,
  41403. isStream: q7e,
  41404. isURLSearchParams: J7e,
  41405. isTypedArray: fQe,
  41406. isFileList: Y7e,
  41407. forEach: e1,
  41408. merge: jR,
  41409. extend: aQe,
  41410. trim: iQe,
  41411. stripBOM: oQe,
  41412. inherits: sQe,
  41413. toFlatObject: lQe,
  41414. kindOf: J2,
  41415. kindOfTest: Ks,
  41416. endsWith: uQe,
  41417. toArray: cQe,
  41418. forEachEntry: dQe,
  41419. matchAll: hQe,
  41420. isHTMLForm: pQe,
  41421. hasOwnProperty: eH,
  41422. hasOwnProp: eH,
  41423. // an alias to avoid ESLint no-prototype-builtins detection
  41424. reduceDescriptors: woe,
  41425. freezeMethods: mQe,
  41426. toObjectSet: yQe,
  41427. toCamelCase: vQe,
  41428. noop: bQe,
  41429. toFiniteNumber: _Qe,
  41430. findKey: Ooe,
  41431. global: Soe,
  41432. isContextDefined: xoe,
  41433. ALPHABET: Coe,
  41434. generateString: OQe,
  41435. isSpecCompliantForm: SQe,
  41436. toJSONObject: xQe,
  41437. isAsyncFn: wQe,
  41438. isThenable: CQe
  41439. };
  41440. function Ht(t, e, n, r, i) {
  41441. Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), i && (this.response = i);
  41442. }
  41443. Te.inherits(Ht, Error, {
  41444. toJSON: function() {
  41445. return {
  41446. // Standard
  41447. message: this.message,
  41448. name: this.name,
  41449. // Microsoft
  41450. description: this.description,
  41451. number: this.number,
  41452. // Mozilla
  41453. fileName: this.fileName,
  41454. lineNumber: this.lineNumber,
  41455. columnNumber: this.columnNumber,
  41456. stack: this.stack,
  41457. // Axios
  41458. config: Te.toJSONObject(this.config),
  41459. code: this.code,
  41460. status: this.response && this.response.status ? this.response.status : null
  41461. };
  41462. }
  41463. });
  41464. const Toe = Ht.prototype, Poe = {};
  41465. [
  41466. "ERR_BAD_OPTION_VALUE",
  41467. "ERR_BAD_OPTION",
  41468. "ECONNABORTED",
  41469. "ETIMEDOUT",
  41470. "ERR_NETWORK",
  41471. "ERR_FR_TOO_MANY_REDIRECTS",
  41472. "ERR_DEPRECATED",
  41473. "ERR_BAD_RESPONSE",
  41474. "ERR_BAD_REQUEST",
  41475. "ERR_CANCELED",
  41476. "ERR_NOT_SUPPORT",
  41477. "ERR_INVALID_URL"
  41478. // eslint-disable-next-line func-names
  41479. ].forEach((t) => {
  41480. Poe[t] = { value: t };
  41481. });
  41482. Object.defineProperties(Ht, Poe);
  41483. Object.defineProperty(Toe, "isAxiosError", { value: !0 });
  41484. Ht.from = (t, e, n, r, i, a) => {
  41485. const o = Object.create(Toe);
  41486. return Te.toFlatObject(t, o, function(l) {
  41487. return l !== Error.prototype;
  41488. }, (s) => s !== "isAxiosError"), Ht.call(o, t.message, e, n, r, i), o.cause = t, o.name = t.name, a && Object.assign(o, a), o;
  41489. };
  41490. const TQe = null;
  41491. function ZR(t) {
  41492. return Te.isPlainObject(t) || Te.isArray(t);
  41493. }
  41494. function $oe(t) {
  41495. return Te.endsWith(t, "[]") ? t.slice(0, -2) : t;
  41496. }
  41497. function nH(t, e, n) {
  41498. return t ? t.concat(e).map(function(i, a) {
  41499. return i = $oe(i), !n && a ? "[" + i + "]" : i;
  41500. }).join(n ? "." : "") : e;
  41501. }
  41502. function PQe(t) {
  41503. return Te.isArray(t) && !t.some(ZR);
  41504. }
  41505. const $Qe = Te.toFlatObject(Te, {}, null, function(e) {
  41506. return /^is[A-Z]/.test(e);
  41507. });
  41508. function nP(t, e, n) {
  41509. if (!Te.isObject(t))
  41510. throw new TypeError("target must be an object");
  41511. e = e || new FormData(), n = Te.toFlatObject(n, {
  41512. metaTokens: !0,
  41513. dots: !1,
  41514. indexes: !1
  41515. }, !1, function(v, g) {
  41516. return !Te.isUndefined(g[v]);
  41517. });
  41518. const r = n.metaTokens, i = n.visitor || c, a = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && Te.isSpecCompliantForm(e);
  41519. if (!Te.isFunction(i))
  41520. throw new TypeError("visitor must be a function");
  41521. function u(p) {
  41522. if (p === null) return "";
  41523. if (Te.isDate(p))
  41524. return p.toISOString();
  41525. if (!l && Te.isBlob(p))
  41526. throw new Ht("Blob is not supported. Use a Buffer instead.");
  41527. return Te.isArrayBuffer(p) || Te.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
  41528. }
  41529. function c(p, v, g) {
  41530. let m = p;
  41531. if (p && !g && typeof p == "object") {
  41532. if (Te.endsWith(v, "{}"))
  41533. v = r ? v : v.slice(0, -2), p = JSON.stringify(p);
  41534. else if (Te.isArray(p) && PQe(p) || (Te.isFileList(p) || Te.endsWith(v, "[]")) && (m = Te.toArray(p)))
  41535. return v = $oe(v), m.forEach(function(_, O) {
  41536. !(Te.isUndefined(_) || _ === null) && e.append(
  41537. // eslint-disable-next-line no-nested-ternary
  41538. o === !0 ? nH([v], O, a) : o === null ? v : v + "[]",
  41539. u(_)
  41540. );
  41541. }), !1;
  41542. }
  41543. return ZR(p) ? !0 : (e.append(nH(g, v, a), u(p)), !1);
  41544. }
  41545. const f = [], d = Object.assign($Qe, {
  41546. defaultVisitor: c,
  41547. convertValue: u,
  41548. isVisitable: ZR
  41549. });
  41550. function h(p, v) {
  41551. if (!Te.isUndefined(p)) {
  41552. if (f.indexOf(p) !== -1)
  41553. throw Error("Circular reference detected in " + v.join("."));
  41554. f.push(p), Te.forEach(p, function(m, y) {
  41555. (!(Te.isUndefined(m) || m === null) && i.call(
  41556. e,
  41557. m,
  41558. Te.isString(y) ? y.trim() : y,
  41559. v,
  41560. d
  41561. )) === !0 && h(m, v ? v.concat(y) : [y]);
  41562. }), f.pop();
  41563. }
  41564. }
  41565. if (!Te.isObject(t))
  41566. throw new TypeError("data must be an object");
  41567. return h(t), e;
  41568. }
  41569. function rH(t) {
  41570. const e = {
  41571. "!": "%21",
  41572. "'": "%27",
  41573. "(": "%28",
  41574. ")": "%29",
  41575. "~": "%7E",
  41576. "%20": "+",
  41577. "%00": "\0"
  41578. };
  41579. return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
  41580. return e[r];
  41581. });
  41582. }
  41583. function l5(t, e) {
  41584. this._pairs = [], t && nP(t, this, e);
  41585. }
  41586. const Aoe = l5.prototype;
  41587. Aoe.append = function(e, n) {
  41588. this._pairs.push([e, n]);
  41589. };
  41590. Aoe.toString = function(e) {
  41591. const n = e ? function(r) {
  41592. return e.call(this, r, rH);
  41593. } : rH;
  41594. return this._pairs.map(function(i) {
  41595. return n(i[0]) + "=" + n(i[1]);
  41596. }, "").join("&");
  41597. };
  41598. function AQe(t) {
  41599. return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  41600. }
  41601. function Eoe(t, e, n) {
  41602. if (!e)
  41603. return t;
  41604. const r = n && n.encode || AQe, i = n && n.serialize;
  41605. let a;
  41606. if (i ? a = i(e, n) : a = Te.isURLSearchParams(e) ? e.toString() : new l5(e, n).toString(r), a) {
  41607. const o = t.indexOf("#");
  41608. o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
  41609. }
  41610. return t;
  41611. }
  41612. class iH {
  41613. constructor() {
  41614. this.handlers = [];
  41615. }
  41616. /**
  41617. * Add a new interceptor to the stack
  41618. *
  41619. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  41620. * @param {Function} rejected The function to handle `reject` for a `Promise`
  41621. *
  41622. * @return {Number} An ID used to remove interceptor later
  41623. */
  41624. use(e, n, r) {
  41625. return this.handlers.push({
  41626. fulfilled: e,
  41627. rejected: n,
  41628. synchronous: r ? r.synchronous : !1,
  41629. runWhen: r ? r.runWhen : null
  41630. }), this.handlers.length - 1;
  41631. }
  41632. /**
  41633. * Remove an interceptor from the stack
  41634. *
  41635. * @param {Number} id The ID that was returned by `use`
  41636. *
  41637. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  41638. */
  41639. eject(e) {
  41640. this.handlers[e] && (this.handlers[e] = null);
  41641. }
  41642. /**
  41643. * Clear all interceptors from the stack
  41644. *
  41645. * @returns {void}
  41646. */
  41647. clear() {
  41648. this.handlers && (this.handlers = []);
  41649. }
  41650. /**
  41651. * Iterate over all the registered interceptors
  41652. *
  41653. * This method is particularly useful for skipping over any
  41654. * interceptors that may have become `null` calling `eject`.
  41655. *
  41656. * @param {Function} fn The function to call for each interceptor
  41657. *
  41658. * @returns {void}
  41659. */
  41660. forEach(e) {
  41661. Te.forEach(this.handlers, function(r) {
  41662. r !== null && e(r);
  41663. });
  41664. }
  41665. }
  41666. const Moe = {
  41667. silentJSONParsing: !0,
  41668. forcedJSONParsing: !0,
  41669. clarifyTimeoutError: !1
  41670. }, EQe = typeof URLSearchParams < "u" ? URLSearchParams : l5, MQe = typeof FormData < "u" ? FormData : null, IQe = typeof Blob < "u" ? Blob : null, DQe = {
  41671. isBrowser: !0,
  41672. classes: {
  41673. URLSearchParams: EQe,
  41674. FormData: MQe,
  41675. Blob: IQe
  41676. },
  41677. protocols: ["http", "https", "file", "blob", "url", "data"]
  41678. }, u5 = typeof window < "u" && typeof document < "u", RQe = ((t) => u5 && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), kQe = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
  41679. self instanceof WorkerGlobalScope && typeof self.importScripts == "function", LQe = u5 && window.location.href || "http://localhost", NQe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  41680. __proto__: null,
  41681. hasBrowserEnv: u5,
  41682. hasStandardBrowserEnv: RQe,
  41683. hasStandardBrowserWebWorkerEnv: kQe,
  41684. origin: LQe
  41685. }, Symbol.toStringTag, { value: "Module" })), Ls = {
  41686. ...NQe,
  41687. ...DQe
  41688. };
  41689. function BQe(t, e) {
  41690. return nP(t, new Ls.classes.URLSearchParams(), Object.assign({
  41691. visitor: function(n, r, i, a) {
  41692. return Ls.isNode && Te.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
  41693. }
  41694. }, e));
  41695. }
  41696. function zQe(t) {
  41697. return Te.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
  41698. }
  41699. function VQe(t) {
  41700. const e = {}, n = Object.keys(t);
  41701. let r;
  41702. const i = n.length;
  41703. let a;
  41704. for (r = 0; r < i; r++)
  41705. a = n[r], e[a] = t[a];
  41706. return e;
  41707. }
  41708. function Ioe(t) {
  41709. function e(n, r, i, a) {
  41710. let o = n[a++];
  41711. if (o === "__proto__") return !0;
  41712. const s = Number.isFinite(+o), l = a >= n.length;
  41713. return o = !o && Te.isArray(i) ? i.length : o, l ? (Te.hasOwnProp(i, o) ? i[o] = [i[o], r] : i[o] = r, !s) : ((!i[o] || !Te.isObject(i[o])) && (i[o] = []), e(n, r, i[o], a) && Te.isArray(i[o]) && (i[o] = VQe(i[o])), !s);
  41714. }
  41715. if (Te.isFormData(t) && Te.isFunction(t.entries)) {
  41716. const n = {};
  41717. return Te.forEachEntry(t, (r, i) => {
  41718. e(zQe(r), i, n, 0);
  41719. }), n;
  41720. }
  41721. return null;
  41722. }
  41723. function FQe(t, e, n) {
  41724. if (Te.isString(t))
  41725. try {
  41726. return (e || JSON.parse)(t), Te.trim(t);
  41727. } catch (r) {
  41728. if (r.name !== "SyntaxError")
  41729. throw r;
  41730. }
  41731. return (n || JSON.stringify)(t);
  41732. }
  41733. const t1 = {
  41734. transitional: Moe,
  41735. adapter: ["xhr", "http", "fetch"],
  41736. transformRequest: [function(e, n) {
  41737. const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, a = Te.isObject(e);
  41738. if (a && Te.isHTMLForm(e) && (e = new FormData(e)), Te.isFormData(e))
  41739. return i ? JSON.stringify(Ioe(e)) : e;
  41740. if (Te.isArrayBuffer(e) || Te.isBuffer(e) || Te.isStream(e) || Te.isFile(e) || Te.isBlob(e) || Te.isReadableStream(e))
  41741. return e;
  41742. if (Te.isArrayBufferView(e))
  41743. return e.buffer;
  41744. if (Te.isURLSearchParams(e))
  41745. return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
  41746. let s;
  41747. if (a) {
  41748. if (r.indexOf("application/x-www-form-urlencoded") > -1)
  41749. return BQe(e, this.formSerializer).toString();
  41750. if ((s = Te.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
  41751. const l = this.env && this.env.FormData;
  41752. return nP(
  41753. s ? { "files[]": e } : e,
  41754. l && new l(),
  41755. this.formSerializer
  41756. );
  41757. }
  41758. }
  41759. return a || i ? (n.setContentType("application/json", !1), FQe(e)) : e;
  41760. }],
  41761. transformResponse: [function(e) {
  41762. const n = this.transitional || t1.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
  41763. if (Te.isResponse(e) || Te.isReadableStream(e))
  41764. return e;
  41765. if (e && Te.isString(e) && (r && !this.responseType || i)) {
  41766. const o = !(n && n.silentJSONParsing) && i;
  41767. try {
  41768. return JSON.parse(e);
  41769. } catch (s) {
  41770. if (o)
  41771. throw s.name === "SyntaxError" ? Ht.from(s, Ht.ERR_BAD_RESPONSE, this, null, this.response) : s;
  41772. }
  41773. }
  41774. return e;
  41775. }],
  41776. /**
  41777. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  41778. * timeout is not created.
  41779. */
  41780. timeout: 0,
  41781. xsrfCookieName: "XSRF-TOKEN",
  41782. xsrfHeaderName: "X-XSRF-TOKEN",
  41783. maxContentLength: -1,
  41784. maxBodyLength: -1,
  41785. env: {
  41786. FormData: Ls.classes.FormData,
  41787. Blob: Ls.classes.Blob
  41788. },
  41789. validateStatus: function(e) {
  41790. return e >= 200 && e < 300;
  41791. },
  41792. headers: {
  41793. common: {
  41794. Accept: "application/json, text/plain, */*",
  41795. "Content-Type": void 0
  41796. }
  41797. }
  41798. };
  41799. Te.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
  41800. t1.headers[t] = {};
  41801. });
  41802. const WQe = Te.toObjectSet([
  41803. "age",
  41804. "authorization",
  41805. "content-length",
  41806. "content-type",
  41807. "etag",
  41808. "expires",
  41809. "from",
  41810. "host",
  41811. "if-modified-since",
  41812. "if-unmodified-since",
  41813. "last-modified",
  41814. "location",
  41815. "max-forwards",
  41816. "proxy-authorization",
  41817. "referer",
  41818. "retry-after",
  41819. "user-agent"
  41820. ]), QQe = (t) => {
  41821. const e = {};
  41822. let n, r, i;
  41823. return t && t.split(`
  41824. `).forEach(function(o) {
  41825. i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!n || e[n] && WQe[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
  41826. }), e;
  41827. }, aH = Symbol("internals");
  41828. function x0(t) {
  41829. return t && String(t).trim().toLowerCase();
  41830. }
  41831. function iw(t) {
  41832. return t === !1 || t == null ? t : Te.isArray(t) ? t.map(iw) : String(t);
  41833. }
  41834. function HQe(t) {
  41835. const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  41836. let r;
  41837. for (; r = n.exec(t); )
  41838. e[r[1]] = r[2];
  41839. return e;
  41840. }
  41841. const GQe = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
  41842. function wE(t, e, n, r, i) {
  41843. if (Te.isFunction(r))
  41844. return r.call(this, e, n);
  41845. if (i && (e = n), !!Te.isString(e)) {
  41846. if (Te.isString(r))
  41847. return e.indexOf(r) !== -1;
  41848. if (Te.isRegExp(r))
  41849. return r.test(e);
  41850. }
  41851. }
  41852. function jQe(t) {
  41853. return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
  41854. }
  41855. function ZQe(t, e) {
  41856. const n = Te.toCamelCase(" " + e);
  41857. ["get", "set", "has"].forEach((r) => {
  41858. Object.defineProperty(t, r + n, {
  41859. value: function(i, a, o) {
  41860. return this[r].call(this, e, i, a, o);
  41861. },
  41862. configurable: !0
  41863. });
  41864. });
  41865. }
  41866. class La {
  41867. constructor(e) {
  41868. e && this.set(e);
  41869. }
  41870. set(e, n, r) {
  41871. const i = this;
  41872. function a(s, l, u) {
  41873. const c = x0(l);
  41874. if (!c)
  41875. throw new Error("header name must be a non-empty string");
  41876. const f = Te.findKey(i, c);
  41877. (!f || i[f] === void 0 || u === !0 || u === void 0 && i[f] !== !1) && (i[f || l] = iw(s));
  41878. }
  41879. const o = (s, l) => Te.forEach(s, (u, c) => a(u, c, l));
  41880. if (Te.isPlainObject(e) || e instanceof this.constructor)
  41881. o(e, n);
  41882. else if (Te.isString(e) && (e = e.trim()) && !GQe(e))
  41883. o(QQe(e), n);
  41884. else if (Te.isHeaders(e))
  41885. for (const [s, l] of e.entries())
  41886. a(l, s, r);
  41887. else
  41888. e != null && a(n, e, r);
  41889. return this;
  41890. }
  41891. get(e, n) {
  41892. if (e = x0(e), e) {
  41893. const r = Te.findKey(this, e);
  41894. if (r) {
  41895. const i = this[r];
  41896. if (!n)
  41897. return i;
  41898. if (n === !0)
  41899. return HQe(i);
  41900. if (Te.isFunction(n))
  41901. return n.call(this, i, r);
  41902. if (Te.isRegExp(n))
  41903. return n.exec(i);
  41904. throw new TypeError("parser must be boolean|regexp|function");
  41905. }
  41906. }
  41907. }
  41908. has(e, n) {
  41909. if (e = x0(e), e) {
  41910. const r = Te.findKey(this, e);
  41911. return !!(r && this[r] !== void 0 && (!n || wE(this, this[r], r, n)));
  41912. }
  41913. return !1;
  41914. }
  41915. delete(e, n) {
  41916. const r = this;
  41917. let i = !1;
  41918. function a(o) {
  41919. if (o = x0(o), o) {
  41920. const s = Te.findKey(r, o);
  41921. s && (!n || wE(r, r[s], s, n)) && (delete r[s], i = !0);
  41922. }
  41923. }
  41924. return Te.isArray(e) ? e.forEach(a) : a(e), i;
  41925. }
  41926. clear(e) {
  41927. const n = Object.keys(this);
  41928. let r = n.length, i = !1;
  41929. for (; r--; ) {
  41930. const a = n[r];
  41931. (!e || wE(this, this[a], a, e, !0)) && (delete this[a], i = !0);
  41932. }
  41933. return i;
  41934. }
  41935. normalize(e) {
  41936. const n = this, r = {};
  41937. return Te.forEach(this, (i, a) => {
  41938. const o = Te.findKey(r, a);
  41939. if (o) {
  41940. n[o] = iw(i), delete n[a];
  41941. return;
  41942. }
  41943. const s = e ? jQe(a) : String(a).trim();
  41944. s !== a && delete n[a], n[s] = iw(i), r[s] = !0;
  41945. }), this;
  41946. }
  41947. concat(...e) {
  41948. return this.constructor.concat(this, ...e);
  41949. }
  41950. toJSON(e) {
  41951. const n = /* @__PURE__ */ Object.create(null);
  41952. return Te.forEach(this, (r, i) => {
  41953. r != null && r !== !1 && (n[i] = e && Te.isArray(r) ? r.join(", ") : r);
  41954. }), n;
  41955. }
  41956. [Symbol.iterator]() {
  41957. return Object.entries(this.toJSON())[Symbol.iterator]();
  41958. }
  41959. toString() {
  41960. return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
  41961. `);
  41962. }
  41963. get [Symbol.toStringTag]() {
  41964. return "AxiosHeaders";
  41965. }
  41966. static from(e) {
  41967. return e instanceof this ? e : new this(e);
  41968. }
  41969. static concat(e, ...n) {
  41970. const r = new this(e);
  41971. return n.forEach((i) => r.set(i)), r;
  41972. }
  41973. static accessor(e) {
  41974. const r = (this[aH] = this[aH] = {
  41975. accessors: {}
  41976. }).accessors, i = this.prototype;
  41977. function a(o) {
  41978. const s = x0(o);
  41979. r[s] || (ZQe(i, o), r[s] = !0);
  41980. }
  41981. return Te.isArray(e) ? e.forEach(a) : a(e), this;
  41982. }
  41983. }
  41984. La.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  41985. Te.reduceDescriptors(La.prototype, ({ value: t }, e) => {
  41986. let n = e[0].toUpperCase() + e.slice(1);
  41987. return {
  41988. get: () => t,
  41989. set(r) {
  41990. this[n] = r;
  41991. }
  41992. };
  41993. });
  41994. Te.freezeMethods(La);
  41995. function CE(t, e) {
  41996. const n = this || t1, r = e || n, i = La.from(r.headers);
  41997. let a = r.data;
  41998. return Te.forEach(t, function(s) {
  41999. a = s.call(n, a, i.normalize(), e ? e.status : void 0);
  42000. }), i.normalize(), a;
  42001. }
  42002. function Doe(t) {
  42003. return !!(t && t.__CANCEL__);
  42004. }
  42005. function gm(t, e, n) {
  42006. Ht.call(this, t ?? "canceled", Ht.ERR_CANCELED, e, n), this.name = "CanceledError";
  42007. }
  42008. Te.inherits(gm, Ht, {
  42009. __CANCEL__: !0
  42010. });
  42011. function Roe(t, e, n) {
  42012. const r = n.config.validateStatus;
  42013. !n.status || !r || r(n.status) ? t(n) : e(new Ht(
  42014. "Request failed with status code " + n.status,
  42015. [Ht.ERR_BAD_REQUEST, Ht.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
  42016. n.config,
  42017. n.request,
  42018. n
  42019. ));
  42020. }
  42021. function UQe(t) {
  42022. const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
  42023. return e && e[1] || "";
  42024. }
  42025. function XQe(t, e) {
  42026. t = t || 10;
  42027. const n = new Array(t), r = new Array(t);
  42028. let i = 0, a = 0, o;
  42029. return e = e !== void 0 ? e : 1e3, function(l) {
  42030. const u = Date.now(), c = r[a];
  42031. o || (o = u), n[i] = l, r[i] = u;
  42032. let f = a, d = 0;
  42033. for (; f !== i; )
  42034. d += n[f++], f = f % t;
  42035. if (i = (i + 1) % t, i === a && (a = (a + 1) % t), u - o < e)
  42036. return;
  42037. const h = c && u - c;
  42038. return h ? Math.round(d * 1e3 / h) : void 0;
  42039. };
  42040. }
  42041. function YQe(t, e) {
  42042. let n = 0;
  42043. const r = 1e3 / e;
  42044. let i = null;
  42045. return function() {
  42046. const o = this === !0, s = Date.now();
  42047. if (o || s - n > r)
  42048. return i && (clearTimeout(i), i = null), n = s, t.apply(null, arguments);
  42049. i || (i = setTimeout(() => (i = null, n = Date.now(), t.apply(null, arguments)), r - (s - n)));
  42050. };
  42051. }
  42052. const gC = (t, e, n = 3) => {
  42053. let r = 0;
  42054. const i = XQe(50, 250);
  42055. return YQe((a) => {
  42056. const o = a.loaded, s = a.lengthComputable ? a.total : void 0, l = o - r, u = i(l), c = o <= s;
  42057. r = o;
  42058. const f = {
  42059. loaded: o,
  42060. total: s,
  42061. progress: s ? o / s : void 0,
  42062. bytes: l,
  42063. rate: u || void 0,
  42064. estimated: u && s && c ? (s - o) / u : void 0,
  42065. event: a,
  42066. lengthComputable: s != null
  42067. };
  42068. f[e ? "download" : "upload"] = !0, t(f);
  42069. }, n);
  42070. }, qQe = Ls.hasStandardBrowserEnv ? (
  42071. // Standard browser envs have full support of the APIs needed to test
  42072. // whether the request URL is of the same origin as current location.
  42073. function() {
  42074. const e = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
  42075. let r;
  42076. function i(a) {
  42077. let o = a;
  42078. return e && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
  42079. href: n.href,
  42080. protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
  42081. host: n.host,
  42082. search: n.search ? n.search.replace(/^\?/, "") : "",
  42083. hash: n.hash ? n.hash.replace(/^#/, "") : "",
  42084. hostname: n.hostname,
  42085. port: n.port,
  42086. pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
  42087. };
  42088. }
  42089. return r = i(window.location.href), function(o) {
  42090. const s = Te.isString(o) ? i(o) : o;
  42091. return s.protocol === r.protocol && s.host === r.host;
  42092. };
  42093. }()
  42094. ) : (
  42095. // Non standard browser envs (web workers, react-native) lack needed support.
  42096. /* @__PURE__ */ function() {
  42097. return function() {
  42098. return !0;
  42099. };
  42100. }()
  42101. ), KQe = Ls.hasStandardBrowserEnv ? (
  42102. // Standard browser envs support document.cookie
  42103. {
  42104. write(t, e, n, r, i, a) {
  42105. const o = [t + "=" + encodeURIComponent(e)];
  42106. Te.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), Te.isString(r) && o.push("path=" + r), Te.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
  42107. },
  42108. read(t) {
  42109. const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
  42110. return e ? decodeURIComponent(e[3]) : null;
  42111. },
  42112. remove(t) {
  42113. this.write(t, "", Date.now() - 864e5);
  42114. }
  42115. }
  42116. ) : (
  42117. // Non-standard browser env (web workers, react-native) lack needed support.
  42118. {
  42119. write() {
  42120. },
  42121. read() {
  42122. return null;
  42123. },
  42124. remove() {
  42125. }
  42126. }
  42127. );
  42128. function JQe(t) {
  42129. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
  42130. }
  42131. function e9e(t, e) {
  42132. return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
  42133. }
  42134. function koe(t, e) {
  42135. return t && !JQe(e) ? e9e(t, e) : e;
  42136. }
  42137. const oH = (t) => t instanceof La ? { ...t } : t;
  42138. function Qh(t, e) {
  42139. e = e || {};
  42140. const n = {};
  42141. function r(u, c, f) {
  42142. return Te.isPlainObject(u) && Te.isPlainObject(c) ? Te.merge.call({ caseless: f }, u, c) : Te.isPlainObject(c) ? Te.merge({}, c) : Te.isArray(c) ? c.slice() : c;
  42143. }
  42144. function i(u, c, f) {
  42145. if (Te.isUndefined(c)) {
  42146. if (!Te.isUndefined(u))
  42147. return r(void 0, u, f);
  42148. } else return r(u, c, f);
  42149. }
  42150. function a(u, c) {
  42151. if (!Te.isUndefined(c))
  42152. return r(void 0, c);
  42153. }
  42154. function o(u, c) {
  42155. if (Te.isUndefined(c)) {
  42156. if (!Te.isUndefined(u))
  42157. return r(void 0, u);
  42158. } else return r(void 0, c);
  42159. }
  42160. function s(u, c, f) {
  42161. if (f in e)
  42162. return r(u, c);
  42163. if (f in t)
  42164. return r(void 0, u);
  42165. }
  42166. const l = {
  42167. url: a,
  42168. method: a,
  42169. data: a,
  42170. baseURL: o,
  42171. transformRequest: o,
  42172. transformResponse: o,
  42173. paramsSerializer: o,
  42174. timeout: o,
  42175. timeoutMessage: o,
  42176. withCredentials: o,
  42177. withXSRFToken: o,
  42178. adapter: o,
  42179. responseType: o,
  42180. xsrfCookieName: o,
  42181. xsrfHeaderName: o,
  42182. onUploadProgress: o,
  42183. onDownloadProgress: o,
  42184. decompress: o,
  42185. maxContentLength: o,
  42186. maxBodyLength: o,
  42187. beforeRedirect: o,
  42188. transport: o,
  42189. httpAgent: o,
  42190. httpsAgent: o,
  42191. cancelToken: o,
  42192. socketPath: o,
  42193. responseEncoding: o,
  42194. validateStatus: s,
  42195. headers: (u, c) => i(oH(u), oH(c), !0)
  42196. };
  42197. return Te.forEach(Object.keys(Object.assign({}, t, e)), function(c) {
  42198. const f = l[c] || i, d = f(t[c], e[c], c);
  42199. Te.isUndefined(d) && f !== s || (n[c] = d);
  42200. }), n;
  42201. }
  42202. const Loe = (t) => {
  42203. const e = Qh({}, t);
  42204. let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = e;
  42205. e.headers = o = La.from(o), e.url = Eoe(koe(e.baseURL, e.url), t.params, t.paramsSerializer), s && o.set(
  42206. "Authorization",
  42207. "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
  42208. );
  42209. let l;
  42210. if (Te.isFormData(n)) {
  42211. if (Ls.hasStandardBrowserEnv || Ls.hasStandardBrowserWebWorkerEnv)
  42212. o.setContentType(void 0);
  42213. else if ((l = o.getContentType()) !== !1) {
  42214. const [u, ...c] = l ? l.split(";").map((f) => f.trim()).filter(Boolean) : [];
  42215. o.setContentType([u || "multipart/form-data", ...c].join("; "));
  42216. }
  42217. }
  42218. if (Ls.hasStandardBrowserEnv && (r && Te.isFunction(r) && (r = r(e)), r || r !== !1 && qQe(e.url))) {
  42219. const u = i && a && KQe.read(a);
  42220. u && o.set(i, u);
  42221. }
  42222. return e;
  42223. }, t9e = typeof XMLHttpRequest < "u", n9e = t9e && function(t) {
  42224. return new Promise(function(n, r) {
  42225. const i = Loe(t);
  42226. let a = i.data;
  42227. const o = La.from(i.headers).normalize();
  42228. let { responseType: s } = i, l;
  42229. function u() {
  42230. i.cancelToken && i.cancelToken.unsubscribe(l), i.signal && i.signal.removeEventListener("abort", l);
  42231. }
  42232. let c = new XMLHttpRequest();
  42233. c.open(i.method.toUpperCase(), i.url, !0), c.timeout = i.timeout;
  42234. function f() {
  42235. if (!c)
  42236. return;
  42237. const h = La.from(
  42238. "getAllResponseHeaders" in c && c.getAllResponseHeaders()
  42239. ), v = {
  42240. data: !s || s === "text" || s === "json" ? c.responseText : c.response,
  42241. status: c.status,
  42242. statusText: c.statusText,
  42243. headers: h,
  42244. config: t,
  42245. request: c
  42246. };
  42247. Roe(function(m) {
  42248. n(m), u();
  42249. }, function(m) {
  42250. r(m), u();
  42251. }, v), c = null;
  42252. }
  42253. "onloadend" in c ? c.onloadend = f : c.onreadystatechange = function() {
  42254. !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(f);
  42255. }, c.onabort = function() {
  42256. c && (r(new Ht("Request aborted", Ht.ECONNABORTED, i, c)), c = null);
  42257. }, c.onerror = function() {
  42258. r(new Ht("Network Error", Ht.ERR_NETWORK, i, c)), c = null;
  42259. }, c.ontimeout = function() {
  42260. let p = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
  42261. const v = i.transitional || Moe;
  42262. i.timeoutErrorMessage && (p = i.timeoutErrorMessage), r(new Ht(
  42263. p,
  42264. v.clarifyTimeoutError ? Ht.ETIMEDOUT : Ht.ECONNABORTED,
  42265. i,
  42266. c
  42267. )), c = null;
  42268. }, a === void 0 && o.setContentType(null), "setRequestHeader" in c && Te.forEach(o.toJSON(), function(p, v) {
  42269. c.setRequestHeader(v, p);
  42270. }), Te.isUndefined(i.withCredentials) || (c.withCredentials = !!i.withCredentials), s && s !== "json" && (c.responseType = i.responseType), typeof i.onDownloadProgress == "function" && c.addEventListener("progress", gC(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", gC(i.onUploadProgress)), (i.cancelToken || i.signal) && (l = (h) => {
  42271. c && (r(!h || h.type ? new gm(null, t, c) : h), c.abort(), c = null);
  42272. }, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
  42273. const d = UQe(i.url);
  42274. if (d && Ls.protocols.indexOf(d) === -1) {
  42275. r(new Ht("Unsupported protocol " + d + ":", Ht.ERR_BAD_REQUEST, t));
  42276. return;
  42277. }
  42278. c.send(a || null);
  42279. });
  42280. }, r9e = (t, e) => {
  42281. let n = new AbortController(), r;
  42282. const i = function(l) {
  42283. if (!r) {
  42284. r = !0, o();
  42285. const u = l instanceof Error ? l : this.reason;
  42286. n.abort(u instanceof Ht ? u : new gm(u instanceof Error ? u.message : u));
  42287. }
  42288. };
  42289. let a = e && setTimeout(() => {
  42290. i(new Ht(`timeout ${e} of ms exceeded`, Ht.ETIMEDOUT));
  42291. }, e);
  42292. const o = () => {
  42293. t && (a && clearTimeout(a), a = null, t.forEach((l) => {
  42294. l && (l.removeEventListener ? l.removeEventListener("abort", i) : l.unsubscribe(i));
  42295. }), t = null);
  42296. };
  42297. t.forEach((l) => l && l.addEventListener && l.addEventListener("abort", i));
  42298. const { signal: s } = n;
  42299. return s.unsubscribe = o, [s, () => {
  42300. a && clearTimeout(a), a = null;
  42301. }];
  42302. }, i9e = function* (t, e) {
  42303. let n = t.byteLength;
  42304. if (!e || n < e) {
  42305. yield t;
  42306. return;
  42307. }
  42308. let r = 0, i;
  42309. for (; r < n; )
  42310. i = r + e, yield t.slice(r, i), r = i;
  42311. }, a9e = async function* (t, e, n) {
  42312. for await (const r of t)
  42313. yield* i9e(ArrayBuffer.isView(r) ? r : await n(String(r)), e);
  42314. }, sH = (t, e, n, r, i) => {
  42315. const a = a9e(t, e, i);
  42316. let o = 0;
  42317. return new ReadableStream({
  42318. type: "bytes",
  42319. async pull(s) {
  42320. const { done: l, value: u } = await a.next();
  42321. if (l) {
  42322. s.close(), r();
  42323. return;
  42324. }
  42325. let c = u.byteLength;
  42326. n && n(o += c), s.enqueue(new Uint8Array(u));
  42327. },
  42328. cancel(s) {
  42329. return r(s), a.return();
  42330. }
  42331. }, {
  42332. highWaterMark: 2
  42333. });
  42334. }, lH = (t, e) => {
  42335. const n = t != null;
  42336. return (r) => setTimeout(() => e({
  42337. lengthComputable: n,
  42338. total: t,
  42339. loaded: r
  42340. }));
  42341. }, rP = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Noe = rP && typeof ReadableStream == "function", UR = rP && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), o9e = Noe && (() => {
  42342. let t = !1;
  42343. const e = new Request(Ls.origin, {
  42344. body: new ReadableStream(),
  42345. method: "POST",
  42346. get duplex() {
  42347. return t = !0, "half";
  42348. }
  42349. }).headers.has("Content-Type");
  42350. return t && !e;
  42351. })(), uH = 64 * 1024, XR = Noe && !!(() => {
  42352. try {
  42353. return Te.isReadableStream(new Response("").body);
  42354. } catch {
  42355. }
  42356. })(), mC = {
  42357. stream: XR && ((t) => t.body)
  42358. };
  42359. rP && ((t) => {
  42360. ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
  42361. !mC[e] && (mC[e] = Te.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
  42362. throw new Ht(`Response type '${e}' is not supported`, Ht.ERR_NOT_SUPPORT, r);
  42363. });
  42364. });
  42365. })(new Response());
  42366. const s9e = async (t) => {
  42367. if (t == null)
  42368. return 0;
  42369. if (Te.isBlob(t))
  42370. return t.size;
  42371. if (Te.isSpecCompliantForm(t))
  42372. return (await new Request(t).arrayBuffer()).byteLength;
  42373. if (Te.isArrayBufferView(t))
  42374. return t.byteLength;
  42375. if (Te.isURLSearchParams(t) && (t = t + ""), Te.isString(t))
  42376. return (await UR(t)).byteLength;
  42377. }, l9e = async (t, e) => {
  42378. const n = Te.toFiniteNumber(t.getContentLength());
  42379. return n ?? s9e(e);
  42380. }, u9e = rP && (async (t) => {
  42381. let {
  42382. url: e,
  42383. method: n,
  42384. data: r,
  42385. signal: i,
  42386. cancelToken: a,
  42387. timeout: o,
  42388. onDownloadProgress: s,
  42389. onUploadProgress: l,
  42390. responseType: u,
  42391. headers: c,
  42392. withCredentials: f = "same-origin",
  42393. fetchOptions: d
  42394. } = Loe(t);
  42395. u = u ? (u + "").toLowerCase() : "text";
  42396. let [h, p] = i || a || o ? r9e([i, a], o) : [], v, g;
  42397. const m = () => {
  42398. !v && setTimeout(() => {
  42399. h && h.unsubscribe();
  42400. }), v = !0;
  42401. };
  42402. let y;
  42403. try {
  42404. if (l && o9e && n !== "get" && n !== "head" && (y = await l9e(c, r)) !== 0) {
  42405. let x = new Request(e, {
  42406. method: "POST",
  42407. body: r,
  42408. duplex: "half"
  42409. }), C;
  42410. Te.isFormData(r) && (C = x.headers.get("content-type")) && c.setContentType(C), x.body && (r = sH(x.body, uH, lH(
  42411. y,
  42412. gC(l)
  42413. ), null, UR));
  42414. }
  42415. Te.isString(f) || (f = f ? "cors" : "omit"), g = new Request(e, {
  42416. ...d,
  42417. signal: h,
  42418. method: n.toUpperCase(),
  42419. headers: c.normalize().toJSON(),
  42420. body: r,
  42421. duplex: "half",
  42422. withCredentials: f
  42423. });
  42424. let _ = await fetch(g);
  42425. const O = XR && (u === "stream" || u === "response");
  42426. if (XR && (s || O)) {
  42427. const x = {};
  42428. ["status", "statusText", "headers"].forEach((P) => {
  42429. x[P] = _[P];
  42430. });
  42431. const C = Te.toFiniteNumber(_.headers.get("content-length"));
  42432. _ = new Response(
  42433. sH(_.body, uH, s && lH(
  42434. C,
  42435. gC(s, !0)
  42436. ), O && m, UR),
  42437. x
  42438. );
  42439. }
  42440. u = u || "text";
  42441. let S = await mC[Te.findKey(mC, u) || "text"](_, t);
  42442. return !O && m(), p && p(), await new Promise((x, C) => {
  42443. Roe(x, C, {
  42444. data: S,
  42445. headers: La.from(_.headers),
  42446. status: _.status,
  42447. statusText: _.statusText,
  42448. config: t,
  42449. request: g
  42450. });
  42451. });
  42452. } catch (_) {
  42453. throw m(), _ && _.name === "TypeError" && /fetch/i.test(_.message) ? Object.assign(
  42454. new Ht("Network Error", Ht.ERR_NETWORK, t, g),
  42455. {
  42456. cause: _.cause || _
  42457. }
  42458. ) : Ht.from(_, _ && _.code, t, g);
  42459. }
  42460. }), YR = {
  42461. http: TQe,
  42462. xhr: n9e,
  42463. fetch: u9e
  42464. };
  42465. Te.forEach(YR, (t, e) => {
  42466. if (t) {
  42467. try {
  42468. Object.defineProperty(t, "name", { value: e });
  42469. } catch {
  42470. }
  42471. Object.defineProperty(t, "adapterName", { value: e });
  42472. }
  42473. });
  42474. const cH = (t) => `- ${t}`, c9e = (t) => Te.isFunction(t) || t === null || t === !1, Boe = {
  42475. getAdapter: (t) => {
  42476. t = Te.isArray(t) ? t : [t];
  42477. const { length: e } = t;
  42478. let n, r;
  42479. const i = {};
  42480. for (let a = 0; a < e; a++) {
  42481. n = t[a];
  42482. let o;
  42483. if (r = n, !c9e(n) && (r = YR[(o = String(n)).toLowerCase()], r === void 0))
  42484. throw new Ht(`Unknown adapter '${o}'`);
  42485. if (r)
  42486. break;
  42487. i[o || "#" + a] = r;
  42488. }
  42489. if (!r) {
  42490. const a = Object.entries(i).map(
  42491. ([s, l]) => `adapter ${s} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
  42492. );
  42493. let o = e ? a.length > 1 ? `since :
  42494. ` + a.map(cH).join(`
  42495. `) : " " + cH(a[0]) : "as no adapter specified";
  42496. throw new Ht(
  42497. "There is no suitable adapter to dispatch the request " + o,
  42498. "ERR_NOT_SUPPORT"
  42499. );
  42500. }
  42501. return r;
  42502. },
  42503. adapters: YR
  42504. };
  42505. function TE(t) {
  42506. if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
  42507. throw new gm(null, t);
  42508. }
  42509. function fH(t) {
  42510. return TE(t), t.headers = La.from(t.headers), t.data = CE.call(
  42511. t,
  42512. t.transformRequest
  42513. ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Boe.getAdapter(t.adapter || t1.adapter)(t).then(function(r) {
  42514. return TE(t), r.data = CE.call(
  42515. t,
  42516. t.transformResponse,
  42517. r
  42518. ), r.headers = La.from(r.headers), r;
  42519. }, function(r) {
  42520. return Doe(r) || (TE(t), r && r.response && (r.response.data = CE.call(
  42521. t,
  42522. t.transformResponse,
  42523. r.response
  42524. ), r.response.headers = La.from(r.response.headers))), Promise.reject(r);
  42525. });
  42526. }
  42527. const zoe = "1.7.2", c5 = {};
  42528. ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
  42529. c5[t] = function(r) {
  42530. return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
  42531. };
  42532. });
  42533. const dH = {};
  42534. c5.transitional = function(e, n, r) {
  42535. function i(a, o) {
  42536. return "[Axios v" + zoe + "] Transitional option '" + a + "'" + o + (r ? ". " + r : "");
  42537. }
  42538. return (a, o, s) => {
  42539. if (e === !1)
  42540. throw new Ht(
  42541. i(o, " has been removed" + (n ? " in " + n : "")),
  42542. Ht.ERR_DEPRECATED
  42543. );
  42544. return n && !dH[o] && (dH[o] = !0, console.warn(
  42545. i(
  42546. o,
  42547. " has been deprecated since v" + n + " and will be removed in the near future"
  42548. )
  42549. )), e ? e(a, o, s) : !0;
  42550. };
  42551. };
  42552. function f9e(t, e, n) {
  42553. if (typeof t != "object")
  42554. throw new Ht("options must be an object", Ht.ERR_BAD_OPTION_VALUE);
  42555. const r = Object.keys(t);
  42556. let i = r.length;
  42557. for (; i-- > 0; ) {
  42558. const a = r[i], o = e[a];
  42559. if (o) {
  42560. const s = t[a], l = s === void 0 || o(s, a, t);
  42561. if (l !== !0)
  42562. throw new Ht("option " + a + " must be " + l, Ht.ERR_BAD_OPTION_VALUE);
  42563. continue;
  42564. }
  42565. if (n !== !0)
  42566. throw new Ht("Unknown option " + a, Ht.ERR_BAD_OPTION);
  42567. }
  42568. }
  42569. const qR = {
  42570. assertOptions: f9e,
  42571. validators: c5
  42572. }, yc = qR.validators;
  42573. class Oh {
  42574. constructor(e) {
  42575. this.defaults = e, this.interceptors = {
  42576. request: new iH(),
  42577. response: new iH()
  42578. };
  42579. }
  42580. /**
  42581. * Dispatch a request
  42582. *
  42583. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  42584. * @param {?Object} config
  42585. *
  42586. * @returns {Promise} The Promise to be fulfilled
  42587. */
  42588. async request(e, n) {
  42589. try {
  42590. return await this._request(e, n);
  42591. } catch (r) {
  42592. if (r instanceof Error) {
  42593. let i;
  42594. Error.captureStackTrace ? Error.captureStackTrace(i = {}) : i = new Error();
  42595. const a = i.stack ? i.stack.replace(/^.+\n/, "") : "";
  42596. try {
  42597. r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
  42598. ` + a) : r.stack = a;
  42599. } catch {
  42600. }
  42601. }
  42602. throw r;
  42603. }
  42604. }
  42605. _request(e, n) {
  42606. typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Qh(this.defaults, n);
  42607. const { transitional: r, paramsSerializer: i, headers: a } = n;
  42608. r !== void 0 && qR.assertOptions(r, {
  42609. silentJSONParsing: yc.transitional(yc.boolean),
  42610. forcedJSONParsing: yc.transitional(yc.boolean),
  42611. clarifyTimeoutError: yc.transitional(yc.boolean)
  42612. }, !1), i != null && (Te.isFunction(i) ? n.paramsSerializer = {
  42613. serialize: i
  42614. } : qR.assertOptions(i, {
  42615. encode: yc.function,
  42616. serialize: yc.function
  42617. }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
  42618. let o = a && Te.merge(
  42619. a.common,
  42620. a[n.method]
  42621. );
  42622. a && Te.forEach(
  42623. ["delete", "get", "head", "post", "put", "patch", "common"],
  42624. (p) => {
  42625. delete a[p];
  42626. }
  42627. ), n.headers = La.concat(o, a);
  42628. const s = [];
  42629. let l = !0;
  42630. this.interceptors.request.forEach(function(v) {
  42631. typeof v.runWhen == "function" && v.runWhen(n) === !1 || (l = l && v.synchronous, s.unshift(v.fulfilled, v.rejected));
  42632. });
  42633. const u = [];
  42634. this.interceptors.response.forEach(function(v) {
  42635. u.push(v.fulfilled, v.rejected);
  42636. });
  42637. let c, f = 0, d;
  42638. if (!l) {
  42639. const p = [fH.bind(this), void 0];
  42640. for (p.unshift.apply(p, s), p.push.apply(p, u), d = p.length, c = Promise.resolve(n); f < d; )
  42641. c = c.then(p[f++], p[f++]);
  42642. return c;
  42643. }
  42644. d = s.length;
  42645. let h = n;
  42646. for (f = 0; f < d; ) {
  42647. const p = s[f++], v = s[f++];
  42648. try {
  42649. h = p(h);
  42650. } catch (g) {
  42651. v.call(this, g);
  42652. break;
  42653. }
  42654. }
  42655. try {
  42656. c = fH.call(this, h);
  42657. } catch (p) {
  42658. return Promise.reject(p);
  42659. }
  42660. for (f = 0, d = u.length; f < d; )
  42661. c = c.then(u[f++], u[f++]);
  42662. return c;
  42663. }
  42664. getUri(e) {
  42665. e = Qh(this.defaults, e);
  42666. const n = koe(e.baseURL, e.url);
  42667. return Eoe(n, e.params, e.paramsSerializer);
  42668. }
  42669. }
  42670. Te.forEach(["delete", "get", "head", "options"], function(e) {
  42671. Oh.prototype[e] = function(n, r) {
  42672. return this.request(Qh(r || {}, {
  42673. method: e,
  42674. url: n,
  42675. data: (r || {}).data
  42676. }));
  42677. };
  42678. });
  42679. Te.forEach(["post", "put", "patch"], function(e) {
  42680. function n(r) {
  42681. return function(a, o, s) {
  42682. return this.request(Qh(s || {}, {
  42683. method: e,
  42684. headers: r ? {
  42685. "Content-Type": "multipart/form-data"
  42686. } : {},
  42687. url: a,
  42688. data: o
  42689. }));
  42690. };
  42691. }
  42692. Oh.prototype[e] = n(), Oh.prototype[e + "Form"] = n(!0);
  42693. });
  42694. class f5 {
  42695. constructor(e) {
  42696. if (typeof e != "function")
  42697. throw new TypeError("executor must be a function.");
  42698. let n;
  42699. this.promise = new Promise(function(a) {
  42700. n = a;
  42701. });
  42702. const r = this;
  42703. this.promise.then((i) => {
  42704. if (!r._listeners) return;
  42705. let a = r._listeners.length;
  42706. for (; a-- > 0; )
  42707. r._listeners[a](i);
  42708. r._listeners = null;
  42709. }), this.promise.then = (i) => {
  42710. let a;
  42711. const o = new Promise((s) => {
  42712. r.subscribe(s), a = s;
  42713. }).then(i);
  42714. return o.cancel = function() {
  42715. r.unsubscribe(a);
  42716. }, o;
  42717. }, e(function(a, o, s) {
  42718. r.reason || (r.reason = new gm(a, o, s), n(r.reason));
  42719. });
  42720. }
  42721. /**
  42722. * Throws a `CanceledError` if cancellation has been requested.
  42723. */
  42724. throwIfRequested() {
  42725. if (this.reason)
  42726. throw this.reason;
  42727. }
  42728. /**
  42729. * Subscribe to the cancel signal
  42730. */
  42731. subscribe(e) {
  42732. if (this.reason) {
  42733. e(this.reason);
  42734. return;
  42735. }
  42736. this._listeners ? this._listeners.push(e) : this._listeners = [e];
  42737. }
  42738. /**
  42739. * Unsubscribe from the cancel signal
  42740. */
  42741. unsubscribe(e) {
  42742. if (!this._listeners)
  42743. return;
  42744. const n = this._listeners.indexOf(e);
  42745. n !== -1 && this._listeners.splice(n, 1);
  42746. }
  42747. /**
  42748. * Returns an object that contains a new `CancelToken` and a function that, when called,
  42749. * cancels the `CancelToken`.
  42750. */
  42751. static source() {
  42752. let e;
  42753. return {
  42754. token: new f5(function(i) {
  42755. e = i;
  42756. }),
  42757. cancel: e
  42758. };
  42759. }
  42760. }
  42761. function d9e(t) {
  42762. return function(n) {
  42763. return t.apply(null, n);
  42764. };
  42765. }
  42766. function h9e(t) {
  42767. return Te.isObject(t) && t.isAxiosError === !0;
  42768. }
  42769. const KR = {
  42770. Continue: 100,
  42771. SwitchingProtocols: 101,
  42772. Processing: 102,
  42773. EarlyHints: 103,
  42774. Ok: 200,
  42775. Created: 201,
  42776. Accepted: 202,
  42777. NonAuthoritativeInformation: 203,
  42778. NoContent: 204,
  42779. ResetContent: 205,
  42780. PartialContent: 206,
  42781. MultiStatus: 207,
  42782. AlreadyReported: 208,
  42783. ImUsed: 226,
  42784. MultipleChoices: 300,
  42785. MovedPermanently: 301,
  42786. Found: 302,
  42787. SeeOther: 303,
  42788. NotModified: 304,
  42789. UseProxy: 305,
  42790. Unused: 306,
  42791. TemporaryRedirect: 307,
  42792. PermanentRedirect: 308,
  42793. BadRequest: 400,
  42794. Unauthorized: 401,
  42795. PaymentRequired: 402,
  42796. Forbidden: 403,
  42797. NotFound: 404,
  42798. MethodNotAllowed: 405,
  42799. NotAcceptable: 406,
  42800. ProxyAuthenticationRequired: 407,
  42801. RequestTimeout: 408,
  42802. Conflict: 409,
  42803. Gone: 410,
  42804. LengthRequired: 411,
  42805. PreconditionFailed: 412,
  42806. PayloadTooLarge: 413,
  42807. UriTooLong: 414,
  42808. UnsupportedMediaType: 415,
  42809. RangeNotSatisfiable: 416,
  42810. ExpectationFailed: 417,
  42811. ImATeapot: 418,
  42812. MisdirectedRequest: 421,
  42813. UnprocessableEntity: 422,
  42814. Locked: 423,
  42815. FailedDependency: 424,
  42816. TooEarly: 425,
  42817. UpgradeRequired: 426,
  42818. PreconditionRequired: 428,
  42819. TooManyRequests: 429,
  42820. RequestHeaderFieldsTooLarge: 431,
  42821. UnavailableForLegalReasons: 451,
  42822. InternalServerError: 500,
  42823. NotImplemented: 501,
  42824. BadGateway: 502,
  42825. ServiceUnavailable: 503,
  42826. GatewayTimeout: 504,
  42827. HttpVersionNotSupported: 505,
  42828. VariantAlsoNegotiates: 506,
  42829. InsufficientStorage: 507,
  42830. LoopDetected: 508,
  42831. NotExtended: 510,
  42832. NetworkAuthenticationRequired: 511
  42833. };
  42834. Object.entries(KR).forEach(([t, e]) => {
  42835. KR[e] = t;
  42836. });
  42837. function Voe(t) {
  42838. const e = new Oh(t), n = yoe(Oh.prototype.request, e);
  42839. return Te.extend(n, Oh.prototype, e, { allOwnKeys: !0 }), Te.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
  42840. return Voe(Qh(t, i));
  42841. }, n;
  42842. }
  42843. const Wr = Voe(t1);
  42844. Wr.Axios = Oh;
  42845. Wr.CanceledError = gm;
  42846. Wr.CancelToken = f5;
  42847. Wr.isCancel = Doe;
  42848. Wr.VERSION = zoe;
  42849. Wr.toFormData = nP;
  42850. Wr.AxiosError = Ht;
  42851. Wr.Cancel = Wr.CanceledError;
  42852. Wr.all = function(e) {
  42853. return Promise.all(e);
  42854. };
  42855. Wr.spread = d9e;
  42856. Wr.isAxiosError = h9e;
  42857. Wr.mergeConfig = Qh;
  42858. Wr.AxiosHeaders = La;
  42859. Wr.formToJSON = (t) => Ioe(Te.isHTMLForm(t) ? new FormData(t) : t);
  42860. Wr.getAdapter = Boe.getAdapter;
  42861. Wr.HttpStatusCode = KR;
  42862. Wr.default = Wr;
  42863. class p9e {
  42864. constructor(e, n) {
  42865. this.axiosInstance = Wr.create({
  42866. baseURL: e,
  42867. timeout: 5e3
  42868. // Set your desired timeout value
  42869. }), this.options = n;
  42870. }
  42871. get(e, n) {
  42872. return this.request({ url: e, method: "GET", ...n });
  42873. }
  42874. post(e, n, r) {
  42875. return this.request({ url: e, method: "POST", data: n, ...r });
  42876. }
  42877. put(e, n, r) {
  42878. return this.request({ url: e, method: "PUT", data: n, ...r });
  42879. }
  42880. delete(e, n) {
  42881. return this.request({ url: e, method: "DELETE", ...n });
  42882. }
  42883. request(e) {
  42884. e.headers = {
  42885. ...e.headers,
  42886. Authorization: localStorage.getItem("token") || ""
  42887. };
  42888. const { transformResponse: n } = this.options || {};
  42889. return new Promise((r, i) => {
  42890. this.axiosInstance.request(e).then((a) => {
  42891. if (n)
  42892. try {
  42893. const o = n(a.data, e);
  42894. r(o);
  42895. } catch (o) {
  42896. i(o);
  42897. }
  42898. r(a.data);
  42899. }).catch((a) => {
  42900. i(a);
  42901. });
  42902. });
  42903. }
  42904. }
  42905. var v9e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
  42906. const g9e = v9e.VITE_APP_BASE_URL, m9e = (t, e) => {
  42907. if (e.responseType === "blob")
  42908. return t;
  42909. if (t.code === 1)
  42910. return t.result;
  42911. throw Wh.warning(t.error), new Error(t.error);
  42912. }, Foe = new p9e(g9e, { transformResponse: m9e });
  42913. function y9e(t) {
  42914. return Foe.post("/api/table/GetAllTablesAndViews", t);
  42915. }
  42916. function b9e(t) {
  42917. return Foe.post("/api/system/GetAllBasicData", t);
  42918. }
  42919. const _9e = (t) => {
  42920. const e = ee(), n = ee(!1), r = ee(""), i = ee(""), a = ee(), o = ee("");
  42921. t === "view" && (e.value = [
  42922. { label: "系统视图", children: [] },
  42923. { label: "数据源视图", children: [] }
  42924. ], n.value = !0, y9e({ types: t }).then((u) => {
  42925. const { bpmViewTables: c = [] } = u || {};
  42926. c.forEach((f) => {
  42927. const { name: d, schemaName: h, type: p, id: v } = f;
  42928. e.value[p - 1] && e.value[p - 1].children.push({
  42929. label: `${h}(${d})`,
  42930. value: h,
  42931. id: v
  42932. });
  42933. });
  42934. }).finally(() => {
  42935. n.value = !1;
  42936. }));
  42937. const s = (u, c) => {
  42938. if (u.level === 0)
  42939. return c([{ name: "基础数据" }]);
  42940. const f = u.data;
  42941. b9e({
  42942. currentPage: 1,
  42943. pageSize: 999,
  42944. orderByProperty: "id",
  42945. Ascending: !0,
  42946. totalPage: 1,
  42947. totalCount: 1,
  42948. filters: f != null && f.id ? [{ name: "parentId", value: f.id }] : null
  42949. }).then((d) => {
  42950. c(d || []);
  42951. });
  42952. }, l = () => t === "table" ? /* @__PURE__ */ React.createElement(
  42953. WW,
  42954. {
  42955. ref: a,
  42956. lazy: !0,
  42957. load: s,
  42958. props: {
  42959. label: (u) => u.path ? `${u.path}(${u.name})` : u.name,
  42960. children: "children"
  42961. },
  42962. "onNode-click": (u) => {
  42963. u != null && u.path && (r.value = u.path);
  42964. },
  42965. filterNodeMethod: (u, c) => {
  42966. var f;
  42967. return ((f = c.path) == null ? void 0 : f.toUpperCase().includes(u.toUpperCase())) || c.name.toUpperCase().includes(u.toUpperCase());
  42968. },
  42969. "empty-text": "暂无数据"
  42970. }
  42971. ) : /* @__PURE__ */ React.createElement(
  42972. WW,
  42973. {
  42974. ref: a,
  42975. data: e.value,
  42976. defaultExpandAll: !0,
  42977. "onNode-click": (u) => {
  42978. u != null && u.value && u.id && (r.value = u.value, o.value = u.id);
  42979. },
  42980. filterNodeMethod: (u, c) => {
  42981. var f;
  42982. return (f = c.label) == null ? void 0 : f.includes(u);
  42983. },
  42984. "empty-text": "暂无数据"
  42985. }
  42986. );
  42987. return new Promise((u, c) => {
  42988. const f = document.createElement("div"), d = pxe({
  42989. render() {
  42990. return /* @__PURE__ */ React.createElement(
  42991. uRe,
  42992. {
  42993. modelValue: !0,
  42994. title: t === "table" ? "选择数据集" : "选择视图表",
  42995. width: "800px",
  42996. style: { height: "600px" },
  42997. "v-slots": {
  42998. footer: () => /* @__PURE__ */ React.createElement(
  42999. oR,
  43000. {
  43001. type: "primary",
  43002. disabled: !r.value,
  43003. onClick: () => {
  43004. u({ value: r.value }), document.body.removeChild(f);
  43005. }
  43006. },
  43007. "确定"
  43008. )
  43009. },
  43010. onClose: () => {
  43011. c("close"), document.body.removeChild(f);
  43012. }
  43013. },
  43014. /* @__PURE__ */ React.createElement(
  43015. p2,
  43016. {
  43017. size: "small",
  43018. placeholder: "请输入关键字进行搜索",
  43019. "v-model": i.value,
  43020. onInput: () => {
  43021. var h;
  43022. (h = a.value) == null || h.filter(i.value);
  43023. },
  43024. style: {
  43025. marginBottom: "10px",
  43026. height: "35px",
  43027. fontSize: "14px"
  43028. }
  43029. }
  43030. ),
  43031. /* @__PURE__ */ React.createElement("div", { style: { height: "379px", overflow: "auto" } }, l())
  43032. );
  43033. }
  43034. });
  43035. document.body.appendChild(f), d.mount(f);
  43036. });
  43037. };
  43038. function JR(t) {
  43039. const e = {};
  43040. for (const n in t)
  43041. if (typeof t[n] == "object")
  43042. switch (n) {
  43043. case "background":
  43044. t[n].type === "none" && (e[n] = "none"), t[n].type === "color" && (e[n] = t[n].color), t[n].type === "image" && (e[n + "-image"] = `url(${t[n].image}) no-repeat center center`, e[n + "-size"] = t[n].fillType);
  43045. break;
  43046. case "border":
  43047. t[n].type === "none" ? e[n] = "none" : e[n] = `${t[n].width}px ${t[n].type} ${t[n].color}`;
  43048. break;
  43049. case "borderRadius":
  43050. t[n].type === "all" ? e[n] = `${t[n].value}${t[n].unit}` : e[n] = `${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`;
  43051. break;
  43052. case "boxShadow":
  43053. t[n].enabled && (e[n] = `${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset ? "inset" : ""}`);
  43054. break;
  43055. case "backdropFilter":
  43056. t[n].enabled && (e[n] = `blur(${t[n].blur}px)`);
  43057. break;
  43058. }
  43059. else typeof t[n] == "number" ? e[n] = t[n] + "px" : typeof t[n] == "string" && (e[n] = t[n]);
  43060. return e;
  43061. }
  43062. var yC = { exports: {} };
  43063. /**
  43064. * @license
  43065. * Lodash <https://lodash.com/>
  43066. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  43067. * Released under MIT license <https://lodash.com/license>
  43068. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  43069. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  43070. */
  43071. yC.exports;
  43072. (function(t, e) {
  43073. (function() {
  43074. var n, r = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", s = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, c = "__lodash_placeholder__", f = 1, d = 2, h = 4, p = 1, v = 2, g = 1, m = 2, y = 4, _ = 8, O = 16, S = 32, x = 64, C = 128, P = 256, $ = 512, T = 30, E = "...", M = 800, R = 16, N = 1, I = 2, B = 3, Q = 1 / 0, W = 9007199254740991, H = 17976931348623157e292, U = NaN, j = 4294967295, Y = j - 1, ne = j >>> 1, fe = [
  43075. ["ary", C],
  43076. ["bind", g],
  43077. ["bindKey", m],
  43078. ["curry", _],
  43079. ["curryRight", O],
  43080. ["flip", $],
  43081. ["partial", S],
  43082. ["partialRight", x],
  43083. ["rearg", P]
  43084. ], ue = "[object Arguments]", ye = "[object Array]", se = "[object AsyncFunction]", he = "[object Boolean]", re = "[object Date]", q = "[object DOMException]", K = "[object Error]", de = "[object Function]", xe = "[object GeneratorFunction]", we = "[object Map]", He = "[object Number]", je = "[object Null]", Be = "[object Object]", Le = "[object Promise]", Pe = "[object Proxy]", Fe = "[object RegExp]", Ye = "[object Set]", xt = "[object String]", It = "[object Symbol]", an = "[object Undefined]", Ae = "[object WeakMap]", gt = "[object WeakSet]", Xt = "[object ArrayBuffer]", Bn = "[object DataView]", Dn = "[object Float32Array]", Dr = "[object Float64Array]", ji = "[object Int8Array]", tu = "[object Int16Array]", nu = "[object Int32Array]", oc = "[object Uint8Array]", Qf = "[object Uint8ClampedArray]", rl = "[object Uint16Array]", Hf = "[object Uint32Array]", Gf = /\b__p \+= '';/g, Gm = /\b(__p \+=) '' \+/g, sc = /(__e\(.*?\)|\b__t\)) \+\n'';/g, jm = /&(?:amp|lt|gt|quot|#39);/g, g$ = /[&<>"']/g, FB = RegExp(jm.source), WB = RegExp(g$.source), QB = /<%-([\s\S]+?)%>/g, HB = /<%([\s\S]+?)%>/g, Sp = /<%=([\s\S]+?)%>/g, Zm = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, z1 = /^\w*$/, xp = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Um = /[\\^$.*+?()[\]{}|]/g, m$ = RegExp(Um.source), Xm = /^\s+/, y$ = /\s/, b$ = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, _$ = /\{\n\/\* \[wrapped with (.+)\] \*/, V1 = /,? & /, jf = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ym = /[()=,{}\[\]\/\s]/, F1 = /\\(\\)?/g, W1 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, qm = /\w*$/, Q1 = /^[-+]0x[0-9a-f]+$/i, O$ = /^0b[01]+$/i, S$ = /^\[object .+?Constructor\]$/, x$ = /^0o[0-7]+$/i, H1 = /^(?:0|[1-9]\d*)$/, Km = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, yo = /($^)/, G1 = /['\n\r\u2028\u2029\\]/g, wp = "\\ud800-\\udfff", Jme = "\\u0300-\\u036f", e0e = "\\ufe20-\\ufe2f", t0e = "\\u20d0-\\u20ff", GB = Jme + e0e + t0e, jB = "\\u2700-\\u27bf", ZB = "a-z\\xdf-\\xf6\\xf8-\\xff", n0e = "\\xac\\xb1\\xd7\\xf7", r0e = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", i0e = "\\u2000-\\u206f", a0e = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", UB = "A-Z\\xc0-\\xd6\\xd8-\\xde", XB = "\\ufe0e\\ufe0f", YB = n0e + r0e + i0e + a0e, w$ = "['’]", o0e = "[" + wp + "]", qB = "[" + YB + "]", j1 = "[" + GB + "]", KB = "\\d+", s0e = "[" + jB + "]", JB = "[" + ZB + "]", ez = "[^" + wp + YB + KB + jB + ZB + UB + "]", C$ = "\\ud83c[\\udffb-\\udfff]", l0e = "(?:" + j1 + "|" + C$ + ")", tz = "[^" + wp + "]", T$ = "(?:\\ud83c[\\udde6-\\uddff]){2}", P$ = "[\\ud800-\\udbff][\\udc00-\\udfff]", Cp = "[" + UB + "]", nz = "\\u200d", rz = "(?:" + JB + "|" + ez + ")", u0e = "(?:" + Cp + "|" + ez + ")", iz = "(?:" + w$ + "(?:d|ll|m|re|s|t|ve))?", az = "(?:" + w$ + "(?:D|LL|M|RE|S|T|VE))?", oz = l0e + "?", sz = "[" + XB + "]?", c0e = "(?:" + nz + "(?:" + [tz, T$, P$].join("|") + ")" + sz + oz + ")*", f0e = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", d0e = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", lz = sz + oz + c0e, h0e = "(?:" + [s0e, T$, P$].join("|") + ")" + lz, p0e = "(?:" + [tz + j1 + "?", j1, T$, P$, o0e].join("|") + ")", v0e = RegExp(w$, "g"), g0e = RegExp(j1, "g"), $$ = RegExp(C$ + "(?=" + C$ + ")|" + p0e + lz, "g"), m0e = RegExp([
  43085. Cp + "?" + JB + "+" + iz + "(?=" + [qB, Cp, "$"].join("|") + ")",
  43086. u0e + "+" + az + "(?=" + [qB, Cp + rz, "$"].join("|") + ")",
  43087. Cp + "?" + rz + "+" + iz,
  43088. Cp + "+" + az,
  43089. d0e,
  43090. f0e,
  43091. KB,
  43092. h0e
  43093. ].join("|"), "g"), y0e = RegExp("[" + nz + wp + GB + XB + "]"), b0e = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, _0e = [
  43094. "Array",
  43095. "Buffer",
  43096. "DataView",
  43097. "Date",
  43098. "Error",
  43099. "Float32Array",
  43100. "Float64Array",
  43101. "Function",
  43102. "Int8Array",
  43103. "Int16Array",
  43104. "Int32Array",
  43105. "Map",
  43106. "Math",
  43107. "Object",
  43108. "Promise",
  43109. "RegExp",
  43110. "Set",
  43111. "String",
  43112. "Symbol",
  43113. "TypeError",
  43114. "Uint8Array",
  43115. "Uint8ClampedArray",
  43116. "Uint16Array",
  43117. "Uint32Array",
  43118. "WeakMap",
  43119. "_",
  43120. "clearTimeout",
  43121. "isFinite",
  43122. "parseInt",
  43123. "setTimeout"
  43124. ], O0e = -1, qn = {};
  43125. qn[Dn] = qn[Dr] = qn[ji] = qn[tu] = qn[nu] = qn[oc] = qn[Qf] = qn[rl] = qn[Hf] = !0, qn[ue] = qn[ye] = qn[Xt] = qn[he] = qn[Bn] = qn[re] = qn[K] = qn[de] = qn[we] = qn[He] = qn[Be] = qn[Fe] = qn[Ye] = qn[xt] = qn[Ae] = !1;
  43126. var jn = {};
  43127. jn[ue] = jn[ye] = jn[Xt] = jn[Bn] = jn[he] = jn[re] = jn[Dn] = jn[Dr] = jn[ji] = jn[tu] = jn[nu] = jn[we] = jn[He] = jn[Be] = jn[Fe] = jn[Ye] = jn[xt] = jn[It] = jn[oc] = jn[Qf] = jn[rl] = jn[Hf] = !0, jn[K] = jn[de] = jn[Ae] = !1;
  43128. var S0e = {
  43129. // Latin-1 Supplement block.
  43130. À: "A",
  43131. Á: "A",
  43132. Â: "A",
  43133. Ã: "A",
  43134. Ä: "A",
  43135. Å: "A",
  43136. à: "a",
  43137. á: "a",
  43138. â: "a",
  43139. ã: "a",
  43140. ä: "a",
  43141. å: "a",
  43142. Ç: "C",
  43143. ç: "c",
  43144. Ð: "D",
  43145. ð: "d",
  43146. È: "E",
  43147. É: "E",
  43148. Ê: "E",
  43149. Ë: "E",
  43150. è: "e",
  43151. é: "e",
  43152. ê: "e",
  43153. ë: "e",
  43154. Ì: "I",
  43155. Í: "I",
  43156. Î: "I",
  43157. Ï: "I",
  43158. ì: "i",
  43159. í: "i",
  43160. î: "i",
  43161. ï: "i",
  43162. Ñ: "N",
  43163. ñ: "n",
  43164. Ò: "O",
  43165. Ó: "O",
  43166. Ô: "O",
  43167. Õ: "O",
  43168. Ö: "O",
  43169. Ø: "O",
  43170. ò: "o",
  43171. ó: "o",
  43172. ô: "o",
  43173. õ: "o",
  43174. ö: "o",
  43175. ø: "o",
  43176. Ù: "U",
  43177. Ú: "U",
  43178. Û: "U",
  43179. Ü: "U",
  43180. ù: "u",
  43181. ú: "u",
  43182. û: "u",
  43183. ü: "u",
  43184. Ý: "Y",
  43185. ý: "y",
  43186. ÿ: "y",
  43187. Æ: "Ae",
  43188. æ: "ae",
  43189. Þ: "Th",
  43190. þ: "th",
  43191. ß: "ss",
  43192. // Latin Extended-A block.
  43193. Ā: "A",
  43194. Ă: "A",
  43195. Ą: "A",
  43196. ā: "a",
  43197. ă: "a",
  43198. ą: "a",
  43199. Ć: "C",
  43200. Ĉ: "C",
  43201. Ċ: "C",
  43202. Č: "C",
  43203. ć: "c",
  43204. ĉ: "c",
  43205. ċ: "c",
  43206. č: "c",
  43207. Ď: "D",
  43208. Đ: "D",
  43209. ď: "d",
  43210. đ: "d",
  43211. Ē: "E",
  43212. Ĕ: "E",
  43213. Ė: "E",
  43214. Ę: "E",
  43215. Ě: "E",
  43216. ē: "e",
  43217. ĕ: "e",
  43218. ė: "e",
  43219. ę: "e",
  43220. ě: "e",
  43221. Ĝ: "G",
  43222. Ğ: "G",
  43223. Ġ: "G",
  43224. Ģ: "G",
  43225. ĝ: "g",
  43226. ğ: "g",
  43227. ġ: "g",
  43228. ģ: "g",
  43229. Ĥ: "H",
  43230. Ħ: "H",
  43231. ĥ: "h",
  43232. ħ: "h",
  43233. Ĩ: "I",
  43234. Ī: "I",
  43235. Ĭ: "I",
  43236. Į: "I",
  43237. İ: "I",
  43238. ĩ: "i",
  43239. ī: "i",
  43240. ĭ: "i",
  43241. į: "i",
  43242. ı: "i",
  43243. Ĵ: "J",
  43244. ĵ: "j",
  43245. Ķ: "K",
  43246. ķ: "k",
  43247. ĸ: "k",
  43248. Ĺ: "L",
  43249. Ļ: "L",
  43250. Ľ: "L",
  43251. Ŀ: "L",
  43252. Ł: "L",
  43253. ĺ: "l",
  43254. ļ: "l",
  43255. ľ: "l",
  43256. ŀ: "l",
  43257. ł: "l",
  43258. Ń: "N",
  43259. Ņ: "N",
  43260. Ň: "N",
  43261. Ŋ: "N",
  43262. ń: "n",
  43263. ņ: "n",
  43264. ň: "n",
  43265. ŋ: "n",
  43266. Ō: "O",
  43267. Ŏ: "O",
  43268. Ő: "O",
  43269. ō: "o",
  43270. ŏ: "o",
  43271. ő: "o",
  43272. Ŕ: "R",
  43273. Ŗ: "R",
  43274. Ř: "R",
  43275. ŕ: "r",
  43276. ŗ: "r",
  43277. ř: "r",
  43278. Ś: "S",
  43279. Ŝ: "S",
  43280. Ş: "S",
  43281. Š: "S",
  43282. ś: "s",
  43283. ŝ: "s",
  43284. ş: "s",
  43285. š: "s",
  43286. Ţ: "T",
  43287. Ť: "T",
  43288. Ŧ: "T",
  43289. ţ: "t",
  43290. ť: "t",
  43291. ŧ: "t",
  43292. Ũ: "U",
  43293. Ū: "U",
  43294. Ŭ: "U",
  43295. Ů: "U",
  43296. Ű: "U",
  43297. Ų: "U",
  43298. ũ: "u",
  43299. ū: "u",
  43300. ŭ: "u",
  43301. ů: "u",
  43302. ű: "u",
  43303. ų: "u",
  43304. Ŵ: "W",
  43305. ŵ: "w",
  43306. Ŷ: "Y",
  43307. ŷ: "y",
  43308. Ÿ: "Y",
  43309. Ź: "Z",
  43310. Ż: "Z",
  43311. Ž: "Z",
  43312. ź: "z",
  43313. ż: "z",
  43314. ž: "z",
  43315. IJ: "IJ",
  43316. ij: "ij",
  43317. Œ: "Oe",
  43318. œ: "oe",
  43319. ʼn: "'n",
  43320. ſ: "s"
  43321. }, x0e = {
  43322. "&": "&amp;",
  43323. "<": "&lt;",
  43324. ">": "&gt;",
  43325. '"': "&quot;",
  43326. "'": "&#39;"
  43327. }, w0e = {
  43328. "&amp;": "&",
  43329. "&lt;": "<",
  43330. "&gt;": ">",
  43331. "&quot;": '"',
  43332. "&#39;": "'"
  43333. }, C0e = {
  43334. "\\": "\\",
  43335. "'": "'",
  43336. "\n": "n",
  43337. "\r": "r",
  43338. "\u2028": "u2028",
  43339. "\u2029": "u2029"
  43340. }, T0e = parseFloat, P0e = parseInt, uz = typeof Su == "object" && Su && Su.Object === Object && Su, $0e = typeof self == "object" && self && self.Object === Object && self, di = uz || $0e || Function("return this")(), A$ = e && !e.nodeType && e, Zf = A$ && !0 && t && !t.nodeType && t, cz = Zf && Zf.exports === A$, E$ = cz && uz.process, bo = function() {
  43341. try {
  43342. var pe = Zf && Zf.require && Zf.require("util").types;
  43343. return pe || E$ && E$.binding && E$.binding("util");
  43344. } catch {
  43345. }
  43346. }(), fz = bo && bo.isArrayBuffer, dz = bo && bo.isDate, hz = bo && bo.isMap, pz = bo && bo.isRegExp, vz = bo && bo.isSet, gz = bo && bo.isTypedArray;
  43347. function Fa(pe, $e, Oe) {
  43348. switch (Oe.length) {
  43349. case 0:
  43350. return pe.call($e);
  43351. case 1:
  43352. return pe.call($e, Oe[0]);
  43353. case 2:
  43354. return pe.call($e, Oe[0], Oe[1]);
  43355. case 3:
  43356. return pe.call($e, Oe[0], Oe[1], Oe[2]);
  43357. }
  43358. return pe.apply($e, Oe);
  43359. }
  43360. function A0e(pe, $e, Oe, st) {
  43361. for (var Lt = -1, Pn = pe == null ? 0 : pe.length; ++Lt < Pn; ) {
  43362. var Qr = pe[Lt];
  43363. $e(st, Qr, Oe(Qr), pe);
  43364. }
  43365. return st;
  43366. }
  43367. function _o(pe, $e) {
  43368. for (var Oe = -1, st = pe == null ? 0 : pe.length; ++Oe < st && $e(pe[Oe], Oe, pe) !== !1; )
  43369. ;
  43370. return pe;
  43371. }
  43372. function E0e(pe, $e) {
  43373. for (var Oe = pe == null ? 0 : pe.length; Oe-- && $e(pe[Oe], Oe, pe) !== !1; )
  43374. ;
  43375. return pe;
  43376. }
  43377. function mz(pe, $e) {
  43378. for (var Oe = -1, st = pe == null ? 0 : pe.length; ++Oe < st; )
  43379. if (!$e(pe[Oe], Oe, pe))
  43380. return !1;
  43381. return !0;
  43382. }
  43383. function lc(pe, $e) {
  43384. for (var Oe = -1, st = pe == null ? 0 : pe.length, Lt = 0, Pn = []; ++Oe < st; ) {
  43385. var Qr = pe[Oe];
  43386. $e(Qr, Oe, pe) && (Pn[Lt++] = Qr);
  43387. }
  43388. return Pn;
  43389. }
  43390. function Z1(pe, $e) {
  43391. var Oe = pe == null ? 0 : pe.length;
  43392. return !!Oe && Tp(pe, $e, 0) > -1;
  43393. }
  43394. function M$(pe, $e, Oe) {
  43395. for (var st = -1, Lt = pe == null ? 0 : pe.length; ++st < Lt; )
  43396. if (Oe($e, pe[st]))
  43397. return !0;
  43398. return !1;
  43399. }
  43400. function ar(pe, $e) {
  43401. for (var Oe = -1, st = pe == null ? 0 : pe.length, Lt = Array(st); ++Oe < st; )
  43402. Lt[Oe] = $e(pe[Oe], Oe, pe);
  43403. return Lt;
  43404. }
  43405. function uc(pe, $e) {
  43406. for (var Oe = -1, st = $e.length, Lt = pe.length; ++Oe < st; )
  43407. pe[Lt + Oe] = $e[Oe];
  43408. return pe;
  43409. }
  43410. function I$(pe, $e, Oe, st) {
  43411. var Lt = -1, Pn = pe == null ? 0 : pe.length;
  43412. for (st && Pn && (Oe = pe[++Lt]); ++Lt < Pn; )
  43413. Oe = $e(Oe, pe[Lt], Lt, pe);
  43414. return Oe;
  43415. }
  43416. function M0e(pe, $e, Oe, st) {
  43417. var Lt = pe == null ? 0 : pe.length;
  43418. for (st && Lt && (Oe = pe[--Lt]); Lt--; )
  43419. Oe = $e(Oe, pe[Lt], Lt, pe);
  43420. return Oe;
  43421. }
  43422. function D$(pe, $e) {
  43423. for (var Oe = -1, st = pe == null ? 0 : pe.length; ++Oe < st; )
  43424. if ($e(pe[Oe], Oe, pe))
  43425. return !0;
  43426. return !1;
  43427. }
  43428. var I0e = R$("length");
  43429. function D0e(pe) {
  43430. return pe.split("");
  43431. }
  43432. function R0e(pe) {
  43433. return pe.match(jf) || [];
  43434. }
  43435. function yz(pe, $e, Oe) {
  43436. var st;
  43437. return Oe(pe, function(Lt, Pn, Qr) {
  43438. if ($e(Lt, Pn, Qr))
  43439. return st = Pn, !1;
  43440. }), st;
  43441. }
  43442. function U1(pe, $e, Oe, st) {
  43443. for (var Lt = pe.length, Pn = Oe + (st ? 1 : -1); st ? Pn-- : ++Pn < Lt; )
  43444. if ($e(pe[Pn], Pn, pe))
  43445. return Pn;
  43446. return -1;
  43447. }
  43448. function Tp(pe, $e, Oe) {
  43449. return $e === $e ? j0e(pe, $e, Oe) : U1(pe, bz, Oe);
  43450. }
  43451. function k0e(pe, $e, Oe, st) {
  43452. for (var Lt = Oe - 1, Pn = pe.length; ++Lt < Pn; )
  43453. if (st(pe[Lt], $e))
  43454. return Lt;
  43455. return -1;
  43456. }
  43457. function bz(pe) {
  43458. return pe !== pe;
  43459. }
  43460. function _z(pe, $e) {
  43461. var Oe = pe == null ? 0 : pe.length;
  43462. return Oe ? L$(pe, $e) / Oe : U;
  43463. }
  43464. function R$(pe) {
  43465. return function($e) {
  43466. return $e == null ? n : $e[pe];
  43467. };
  43468. }
  43469. function k$(pe) {
  43470. return function($e) {
  43471. return pe == null ? n : pe[$e];
  43472. };
  43473. }
  43474. function Oz(pe, $e, Oe, st, Lt) {
  43475. return Lt(pe, function(Pn, Qr, Fn) {
  43476. Oe = st ? (st = !1, Pn) : $e(Oe, Pn, Qr, Fn);
  43477. }), Oe;
  43478. }
  43479. function L0e(pe, $e) {
  43480. var Oe = pe.length;
  43481. for (pe.sort($e); Oe--; )
  43482. pe[Oe] = pe[Oe].value;
  43483. return pe;
  43484. }
  43485. function L$(pe, $e) {
  43486. for (var Oe, st = -1, Lt = pe.length; ++st < Lt; ) {
  43487. var Pn = $e(pe[st]);
  43488. Pn !== n && (Oe = Oe === n ? Pn : Oe + Pn);
  43489. }
  43490. return Oe;
  43491. }
  43492. function N$(pe, $e) {
  43493. for (var Oe = -1, st = Array(pe); ++Oe < pe; )
  43494. st[Oe] = $e(Oe);
  43495. return st;
  43496. }
  43497. function N0e(pe, $e) {
  43498. return ar($e, function(Oe) {
  43499. return [Oe, pe[Oe]];
  43500. });
  43501. }
  43502. function Sz(pe) {
  43503. return pe && pe.slice(0, Tz(pe) + 1).replace(Xm, "");
  43504. }
  43505. function Wa(pe) {
  43506. return function($e) {
  43507. return pe($e);
  43508. };
  43509. }
  43510. function B$(pe, $e) {
  43511. return ar($e, function(Oe) {
  43512. return pe[Oe];
  43513. });
  43514. }
  43515. function Jm(pe, $e) {
  43516. return pe.has($e);
  43517. }
  43518. function xz(pe, $e) {
  43519. for (var Oe = -1, st = pe.length; ++Oe < st && Tp($e, pe[Oe], 0) > -1; )
  43520. ;
  43521. return Oe;
  43522. }
  43523. function wz(pe, $e) {
  43524. for (var Oe = pe.length; Oe-- && Tp($e, pe[Oe], 0) > -1; )
  43525. ;
  43526. return Oe;
  43527. }
  43528. function B0e(pe, $e) {
  43529. for (var Oe = pe.length, st = 0; Oe--; )
  43530. pe[Oe] === $e && ++st;
  43531. return st;
  43532. }
  43533. var z0e = k$(S0e), V0e = k$(x0e);
  43534. function F0e(pe) {
  43535. return "\\" + C0e[pe];
  43536. }
  43537. function W0e(pe, $e) {
  43538. return pe == null ? n : pe[$e];
  43539. }
  43540. function Pp(pe) {
  43541. return y0e.test(pe);
  43542. }
  43543. function Q0e(pe) {
  43544. return b0e.test(pe);
  43545. }
  43546. function H0e(pe) {
  43547. for (var $e, Oe = []; !($e = pe.next()).done; )
  43548. Oe.push($e.value);
  43549. return Oe;
  43550. }
  43551. function z$(pe) {
  43552. var $e = -1, Oe = Array(pe.size);
  43553. return pe.forEach(function(st, Lt) {
  43554. Oe[++$e] = [Lt, st];
  43555. }), Oe;
  43556. }
  43557. function Cz(pe, $e) {
  43558. return function(Oe) {
  43559. return pe($e(Oe));
  43560. };
  43561. }
  43562. function cc(pe, $e) {
  43563. for (var Oe = -1, st = pe.length, Lt = 0, Pn = []; ++Oe < st; ) {
  43564. var Qr = pe[Oe];
  43565. (Qr === $e || Qr === c) && (pe[Oe] = c, Pn[Lt++] = Oe);
  43566. }
  43567. return Pn;
  43568. }
  43569. function X1(pe) {
  43570. var $e = -1, Oe = Array(pe.size);
  43571. return pe.forEach(function(st) {
  43572. Oe[++$e] = st;
  43573. }), Oe;
  43574. }
  43575. function G0e(pe) {
  43576. var $e = -1, Oe = Array(pe.size);
  43577. return pe.forEach(function(st) {
  43578. Oe[++$e] = [st, st];
  43579. }), Oe;
  43580. }
  43581. function j0e(pe, $e, Oe) {
  43582. for (var st = Oe - 1, Lt = pe.length; ++st < Lt; )
  43583. if (pe[st] === $e)
  43584. return st;
  43585. return -1;
  43586. }
  43587. function Z0e(pe, $e, Oe) {
  43588. for (var st = Oe + 1; st--; )
  43589. if (pe[st] === $e)
  43590. return st;
  43591. return st;
  43592. }
  43593. function $p(pe) {
  43594. return Pp(pe) ? X0e(pe) : I0e(pe);
  43595. }
  43596. function ms(pe) {
  43597. return Pp(pe) ? Y0e(pe) : D0e(pe);
  43598. }
  43599. function Tz(pe) {
  43600. for (var $e = pe.length; $e-- && y$.test(pe.charAt($e)); )
  43601. ;
  43602. return $e;
  43603. }
  43604. var U0e = k$(w0e);
  43605. function X0e(pe) {
  43606. for (var $e = $$.lastIndex = 0; $$.test(pe); )
  43607. ++$e;
  43608. return $e;
  43609. }
  43610. function Y0e(pe) {
  43611. return pe.match($$) || [];
  43612. }
  43613. function q0e(pe) {
  43614. return pe.match(m0e) || [];
  43615. }
  43616. var K0e = function pe($e) {
  43617. $e = $e == null ? di : Ap.defaults(di.Object(), $e, Ap.pick(di, _0e));
  43618. var Oe = $e.Array, st = $e.Date, Lt = $e.Error, Pn = $e.Function, Qr = $e.Math, Fn = $e.Object, V$ = $e.RegExp, J0e = $e.String, Oo = $e.TypeError, Y1 = Oe.prototype, eye = Pn.prototype, Ep = Fn.prototype, q1 = $e["__core-js_shared__"], K1 = eye.toString, Rn = Ep.hasOwnProperty, tye = 0, Pz = function() {
  43619. var b = /[^.]+$/.exec(q1 && q1.keys && q1.keys.IE_PROTO || "");
  43620. return b ? "Symbol(src)_1." + b : "";
  43621. }(), J1 = Ep.toString, nye = K1.call(Fn), rye = di._, iye = V$(
  43622. "^" + K1.call(Rn).replace(Um, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  43623. ), eO = cz ? $e.Buffer : n, fc = $e.Symbol, tO = $e.Uint8Array, $z = eO ? eO.allocUnsafe : n, nO = Cz(Fn.getPrototypeOf, Fn), Az = Fn.create, Ez = Ep.propertyIsEnumerable, rO = Y1.splice, Mz = fc ? fc.isConcatSpreadable : n, e0 = fc ? fc.iterator : n, Uf = fc ? fc.toStringTag : n, iO = function() {
  43624. try {
  43625. var b = Jf(Fn, "defineProperty");
  43626. return b({}, "", {}), b;
  43627. } catch {
  43628. }
  43629. }(), aye = $e.clearTimeout !== di.clearTimeout && $e.clearTimeout, oye = st && st.now !== di.Date.now && st.now, sye = $e.setTimeout !== di.setTimeout && $e.setTimeout, aO = Qr.ceil, oO = Qr.floor, F$ = Fn.getOwnPropertySymbols, lye = eO ? eO.isBuffer : n, Iz = $e.isFinite, uye = Y1.join, cye = Cz(Fn.keys, Fn), Hr = Qr.max, Mi = Qr.min, fye = st.now, dye = $e.parseInt, Dz = Qr.random, hye = Y1.reverse, W$ = Jf($e, "DataView"), t0 = Jf($e, "Map"), Q$ = Jf($e, "Promise"), Mp = Jf($e, "Set"), n0 = Jf($e, "WeakMap"), r0 = Jf(Fn, "create"), sO = n0 && new n0(), Ip = {}, pye = ed(W$), vye = ed(t0), gye = ed(Q$), mye = ed(Mp), yye = ed(n0), lO = fc ? fc.prototype : n, i0 = lO ? lO.valueOf : n, Rz = lO ? lO.toString : n;
  43630. function Z(b) {
  43631. if (gr(b) && !Ft(b) && !(b instanceof un)) {
  43632. if (b instanceof So)
  43633. return b;
  43634. if (Rn.call(b, "__wrapped__"))
  43635. return kV(b);
  43636. }
  43637. return new So(b);
  43638. }
  43639. var Dp = /* @__PURE__ */ function() {
  43640. function b() {
  43641. }
  43642. return function(w) {
  43643. if (!cr(w))
  43644. return {};
  43645. if (Az)
  43646. return Az(w);
  43647. b.prototype = w;
  43648. var A = new b();
  43649. return b.prototype = n, A;
  43650. };
  43651. }();
  43652. function uO() {
  43653. }
  43654. function So(b, w) {
  43655. this.__wrapped__ = b, this.__actions__ = [], this.__chain__ = !!w, this.__index__ = 0, this.__values__ = n;
  43656. }
  43657. Z.templateSettings = {
  43658. /**
  43659. * Used to detect `data` property values to be HTML-escaped.
  43660. *
  43661. * @memberOf _.templateSettings
  43662. * @type {RegExp}
  43663. */
  43664. escape: QB,
  43665. /**
  43666. * Used to detect code to be evaluated.
  43667. *
  43668. * @memberOf _.templateSettings
  43669. * @type {RegExp}
  43670. */
  43671. evaluate: HB,
  43672. /**
  43673. * Used to detect `data` property values to inject.
  43674. *
  43675. * @memberOf _.templateSettings
  43676. * @type {RegExp}
  43677. */
  43678. interpolate: Sp,
  43679. /**
  43680. * Used to reference the data object in the template text.
  43681. *
  43682. * @memberOf _.templateSettings
  43683. * @type {string}
  43684. */
  43685. variable: "",
  43686. /**
  43687. * Used to import variables into the compiled template.
  43688. *
  43689. * @memberOf _.templateSettings
  43690. * @type {Object}
  43691. */
  43692. imports: {
  43693. /**
  43694. * A reference to the `lodash` function.
  43695. *
  43696. * @memberOf _.templateSettings.imports
  43697. * @type {Function}
  43698. */
  43699. _: Z
  43700. }
  43701. }, Z.prototype = uO.prototype, Z.prototype.constructor = Z, So.prototype = Dp(uO.prototype), So.prototype.constructor = So;
  43702. function un(b) {
  43703. this.__wrapped__ = b, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = j, this.__views__ = [];
  43704. }
  43705. function bye() {
  43706. var b = new un(this.__wrapped__);
  43707. return b.__actions__ = ga(this.__actions__), b.__dir__ = this.__dir__, b.__filtered__ = this.__filtered__, b.__iteratees__ = ga(this.__iteratees__), b.__takeCount__ = this.__takeCount__, b.__views__ = ga(this.__views__), b;
  43708. }
  43709. function _ye() {
  43710. if (this.__filtered__) {
  43711. var b = new un(this);
  43712. b.__dir__ = -1, b.__filtered__ = !0;
  43713. } else
  43714. b = this.clone(), b.__dir__ *= -1;
  43715. return b;
  43716. }
  43717. function Oye() {
  43718. var b = this.__wrapped__.value(), w = this.__dir__, A = Ft(b), L = w < 0, G = A ? b.length : 0, X = Dbe(0, G, this.__views__), J = X.start, ie = X.end, ge = ie - J, Ee = L ? ie : J - 1, Ie = this.__iteratees__, Ne = Ie.length, Ke = 0, ht = Mi(ge, this.__takeCount__);
  43719. if (!A || !L && G == ge && ht == ge)
  43720. return iV(b, this.__actions__);
  43721. var Pt = [];
  43722. e:
  43723. for (; ge-- && Ke < ht; ) {
  43724. Ee += w;
  43725. for (var Jt = -1, $t = b[Ee]; ++Jt < Ne; ) {
  43726. var on = Ie[Jt], pn = on.iteratee, Ga = on.type, Xi = pn($t);
  43727. if (Ga == I)
  43728. $t = Xi;
  43729. else if (!Xi) {
  43730. if (Ga == N)
  43731. continue e;
  43732. break e;
  43733. }
  43734. }
  43735. Pt[Ke++] = $t;
  43736. }
  43737. return Pt;
  43738. }
  43739. un.prototype = Dp(uO.prototype), un.prototype.constructor = un;
  43740. function Xf(b) {
  43741. var w = -1, A = b == null ? 0 : b.length;
  43742. for (this.clear(); ++w < A; ) {
  43743. var L = b[w];
  43744. this.set(L[0], L[1]);
  43745. }
  43746. }
  43747. function Sye() {
  43748. this.__data__ = r0 ? r0(null) : {}, this.size = 0;
  43749. }
  43750. function xye(b) {
  43751. var w = this.has(b) && delete this.__data__[b];
  43752. return this.size -= w ? 1 : 0, w;
  43753. }
  43754. function wye(b) {
  43755. var w = this.__data__;
  43756. if (r0) {
  43757. var A = w[b];
  43758. return A === l ? n : A;
  43759. }
  43760. return Rn.call(w, b) ? w[b] : n;
  43761. }
  43762. function Cye(b) {
  43763. var w = this.__data__;
  43764. return r0 ? w[b] !== n : Rn.call(w, b);
  43765. }
  43766. function Tye(b, w) {
  43767. var A = this.__data__;
  43768. return this.size += this.has(b) ? 0 : 1, A[b] = r0 && w === n ? l : w, this;
  43769. }
  43770. Xf.prototype.clear = Sye, Xf.prototype.delete = xye, Xf.prototype.get = wye, Xf.prototype.has = Cye, Xf.prototype.set = Tye;
  43771. function ru(b) {
  43772. var w = -1, A = b == null ? 0 : b.length;
  43773. for (this.clear(); ++w < A; ) {
  43774. var L = b[w];
  43775. this.set(L[0], L[1]);
  43776. }
  43777. }
  43778. function Pye() {
  43779. this.__data__ = [], this.size = 0;
  43780. }
  43781. function $ye(b) {
  43782. var w = this.__data__, A = cO(w, b);
  43783. if (A < 0)
  43784. return !1;
  43785. var L = w.length - 1;
  43786. return A == L ? w.pop() : rO.call(w, A, 1), --this.size, !0;
  43787. }
  43788. function Aye(b) {
  43789. var w = this.__data__, A = cO(w, b);
  43790. return A < 0 ? n : w[A][1];
  43791. }
  43792. function Eye(b) {
  43793. return cO(this.__data__, b) > -1;
  43794. }
  43795. function Mye(b, w) {
  43796. var A = this.__data__, L = cO(A, b);
  43797. return L < 0 ? (++this.size, A.push([b, w])) : A[L][1] = w, this;
  43798. }
  43799. ru.prototype.clear = Pye, ru.prototype.delete = $ye, ru.prototype.get = Aye, ru.prototype.has = Eye, ru.prototype.set = Mye;
  43800. function iu(b) {
  43801. var w = -1, A = b == null ? 0 : b.length;
  43802. for (this.clear(); ++w < A; ) {
  43803. var L = b[w];
  43804. this.set(L[0], L[1]);
  43805. }
  43806. }
  43807. function Iye() {
  43808. this.size = 0, this.__data__ = {
  43809. hash: new Xf(),
  43810. map: new (t0 || ru)(),
  43811. string: new Xf()
  43812. };
  43813. }
  43814. function Dye(b) {
  43815. var w = SO(this, b).delete(b);
  43816. return this.size -= w ? 1 : 0, w;
  43817. }
  43818. function Rye(b) {
  43819. return SO(this, b).get(b);
  43820. }
  43821. function kye(b) {
  43822. return SO(this, b).has(b);
  43823. }
  43824. function Lye(b, w) {
  43825. var A = SO(this, b), L = A.size;
  43826. return A.set(b, w), this.size += A.size == L ? 0 : 1, this;
  43827. }
  43828. iu.prototype.clear = Iye, iu.prototype.delete = Dye, iu.prototype.get = Rye, iu.prototype.has = kye, iu.prototype.set = Lye;
  43829. function Yf(b) {
  43830. var w = -1, A = b == null ? 0 : b.length;
  43831. for (this.__data__ = new iu(); ++w < A; )
  43832. this.add(b[w]);
  43833. }
  43834. function Nye(b) {
  43835. return this.__data__.set(b, l), this;
  43836. }
  43837. function Bye(b) {
  43838. return this.__data__.has(b);
  43839. }
  43840. Yf.prototype.add = Yf.prototype.push = Nye, Yf.prototype.has = Bye;
  43841. function ys(b) {
  43842. var w = this.__data__ = new ru(b);
  43843. this.size = w.size;
  43844. }
  43845. function zye() {
  43846. this.__data__ = new ru(), this.size = 0;
  43847. }
  43848. function Vye(b) {
  43849. var w = this.__data__, A = w.delete(b);
  43850. return this.size = w.size, A;
  43851. }
  43852. function Fye(b) {
  43853. return this.__data__.get(b);
  43854. }
  43855. function Wye(b) {
  43856. return this.__data__.has(b);
  43857. }
  43858. function Qye(b, w) {
  43859. var A = this.__data__;
  43860. if (A instanceof ru) {
  43861. var L = A.__data__;
  43862. if (!t0 || L.length < i - 1)
  43863. return L.push([b, w]), this.size = ++A.size, this;
  43864. A = this.__data__ = new iu(L);
  43865. }
  43866. return A.set(b, w), this.size = A.size, this;
  43867. }
  43868. ys.prototype.clear = zye, ys.prototype.delete = Vye, ys.prototype.get = Fye, ys.prototype.has = Wye, ys.prototype.set = Qye;
  43869. function kz(b, w) {
  43870. var A = Ft(b), L = !A && td(b), G = !A && !L && gc(b), X = !A && !L && !G && Np(b), J = A || L || G || X, ie = J ? N$(b.length, J0e) : [], ge = ie.length;
  43871. for (var Ee in b)
  43872. (w || Rn.call(b, Ee)) && !(J && // Safari 9 has enumerable `arguments.length` in strict mode.
  43873. (Ee == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  43874. G && (Ee == "offset" || Ee == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  43875. X && (Ee == "buffer" || Ee == "byteLength" || Ee == "byteOffset") || // Skip index properties.
  43876. lu(Ee, ge))) && ie.push(Ee);
  43877. return ie;
  43878. }
  43879. function Lz(b) {
  43880. var w = b.length;
  43881. return w ? b[eA(0, w - 1)] : n;
  43882. }
  43883. function Hye(b, w) {
  43884. return xO(ga(b), qf(w, 0, b.length));
  43885. }
  43886. function Gye(b) {
  43887. return xO(ga(b));
  43888. }
  43889. function H$(b, w, A) {
  43890. (A !== n && !bs(b[w], A) || A === n && !(w in b)) && au(b, w, A);
  43891. }
  43892. function a0(b, w, A) {
  43893. var L = b[w];
  43894. (!(Rn.call(b, w) && bs(L, A)) || A === n && !(w in b)) && au(b, w, A);
  43895. }
  43896. function cO(b, w) {
  43897. for (var A = b.length; A--; )
  43898. if (bs(b[A][0], w))
  43899. return A;
  43900. return -1;
  43901. }
  43902. function jye(b, w, A, L) {
  43903. return dc(b, function(G, X, J) {
  43904. w(L, G, A(G), J);
  43905. }), L;
  43906. }
  43907. function Nz(b, w) {
  43908. return b && al(w, ri(w), b);
  43909. }
  43910. function Zye(b, w) {
  43911. return b && al(w, ya(w), b);
  43912. }
  43913. function au(b, w, A) {
  43914. w == "__proto__" && iO ? iO(b, w, {
  43915. configurable: !0,
  43916. enumerable: !0,
  43917. value: A,
  43918. writable: !0
  43919. }) : b[w] = A;
  43920. }
  43921. function G$(b, w) {
  43922. for (var A = -1, L = w.length, G = Oe(L), X = b == null; ++A < L; )
  43923. G[A] = X ? n : CA(b, w[A]);
  43924. return G;
  43925. }
  43926. function qf(b, w, A) {
  43927. return b === b && (A !== n && (b = b <= A ? b : A), w !== n && (b = b >= w ? b : w)), b;
  43928. }
  43929. function xo(b, w, A, L, G, X) {
  43930. var J, ie = w & f, ge = w & d, Ee = w & h;
  43931. if (A && (J = G ? A(b, L, G, X) : A(b)), J !== n)
  43932. return J;
  43933. if (!cr(b))
  43934. return b;
  43935. var Ie = Ft(b);
  43936. if (Ie) {
  43937. if (J = kbe(b), !ie)
  43938. return ga(b, J);
  43939. } else {
  43940. var Ne = Ii(b), Ke = Ne == de || Ne == xe;
  43941. if (gc(b))
  43942. return sV(b, ie);
  43943. if (Ne == Be || Ne == ue || Ke && !G) {
  43944. if (J = ge || Ke ? {} : TV(b), !ie)
  43945. return ge ? wbe(b, Zye(J, b)) : xbe(b, Nz(J, b));
  43946. } else {
  43947. if (!jn[Ne])
  43948. return G ? b : {};
  43949. J = Lbe(b, Ne, ie);
  43950. }
  43951. }
  43952. X || (X = new ys());
  43953. var ht = X.get(b);
  43954. if (ht)
  43955. return ht;
  43956. X.set(b, J), tF(b) ? b.forEach(function($t) {
  43957. J.add(xo($t, w, A, $t, b, X));
  43958. }) : JV(b) && b.forEach(function($t, on) {
  43959. J.set(on, xo($t, w, A, on, b, X));
  43960. });
  43961. var Pt = Ee ? ge ? fA : cA : ge ? ya : ri, Jt = Ie ? n : Pt(b);
  43962. return _o(Jt || b, function($t, on) {
  43963. Jt && (on = $t, $t = b[on]), a0(J, on, xo($t, w, A, on, b, X));
  43964. }), J;
  43965. }
  43966. function Uye(b) {
  43967. var w = ri(b);
  43968. return function(A) {
  43969. return Bz(A, b, w);
  43970. };
  43971. }
  43972. function Bz(b, w, A) {
  43973. var L = A.length;
  43974. if (b == null)
  43975. return !L;
  43976. for (b = Fn(b); L--; ) {
  43977. var G = A[L], X = w[G], J = b[G];
  43978. if (J === n && !(G in b) || !X(J))
  43979. return !1;
  43980. }
  43981. return !0;
  43982. }
  43983. function zz(b, w, A) {
  43984. if (typeof b != "function")
  43985. throw new Oo(o);
  43986. return d0(function() {
  43987. b.apply(n, A);
  43988. }, w);
  43989. }
  43990. function o0(b, w, A, L) {
  43991. var G = -1, X = Z1, J = !0, ie = b.length, ge = [], Ee = w.length;
  43992. if (!ie)
  43993. return ge;
  43994. A && (w = ar(w, Wa(A))), L ? (X = M$, J = !1) : w.length >= i && (X = Jm, J = !1, w = new Yf(w));
  43995. e:
  43996. for (; ++G < ie; ) {
  43997. var Ie = b[G], Ne = A == null ? Ie : A(Ie);
  43998. if (Ie = L || Ie !== 0 ? Ie : 0, J && Ne === Ne) {
  43999. for (var Ke = Ee; Ke--; )
  44000. if (w[Ke] === Ne)
  44001. continue e;
  44002. ge.push(Ie);
  44003. } else X(w, Ne, L) || ge.push(Ie);
  44004. }
  44005. return ge;
  44006. }
  44007. var dc = dV(il), Vz = dV(Z$, !0);
  44008. function Xye(b, w) {
  44009. var A = !0;
  44010. return dc(b, function(L, G, X) {
  44011. return A = !!w(L, G, X), A;
  44012. }), A;
  44013. }
  44014. function fO(b, w, A) {
  44015. for (var L = -1, G = b.length; ++L < G; ) {
  44016. var X = b[L], J = w(X);
  44017. if (J != null && (ie === n ? J === J && !Ha(J) : A(J, ie)))
  44018. var ie = J, ge = X;
  44019. }
  44020. return ge;
  44021. }
  44022. function Yye(b, w, A, L) {
  44023. var G = b.length;
  44024. for (A = Yt(A), A < 0 && (A = -A > G ? 0 : G + A), L = L === n || L > G ? G : Yt(L), L < 0 && (L += G), L = A > L ? 0 : rF(L); A < L; )
  44025. b[A++] = w;
  44026. return b;
  44027. }
  44028. function Fz(b, w) {
  44029. var A = [];
  44030. return dc(b, function(L, G, X) {
  44031. w(L, G, X) && A.push(L);
  44032. }), A;
  44033. }
  44034. function hi(b, w, A, L, G) {
  44035. var X = -1, J = b.length;
  44036. for (A || (A = Bbe), G || (G = []); ++X < J; ) {
  44037. var ie = b[X];
  44038. w > 0 && A(ie) ? w > 1 ? hi(ie, w - 1, A, L, G) : uc(G, ie) : L || (G[G.length] = ie);
  44039. }
  44040. return G;
  44041. }
  44042. var j$ = hV(), Wz = hV(!0);
  44043. function il(b, w) {
  44044. return b && j$(b, w, ri);
  44045. }
  44046. function Z$(b, w) {
  44047. return b && Wz(b, w, ri);
  44048. }
  44049. function dO(b, w) {
  44050. return lc(w, function(A) {
  44051. return uu(b[A]);
  44052. });
  44053. }
  44054. function Kf(b, w) {
  44055. w = pc(w, b);
  44056. for (var A = 0, L = w.length; b != null && A < L; )
  44057. b = b[ol(w[A++])];
  44058. return A && A == L ? b : n;
  44059. }
  44060. function Qz(b, w, A) {
  44061. var L = w(b);
  44062. return Ft(b) ? L : uc(L, A(b));
  44063. }
  44064. function Zi(b) {
  44065. return b == null ? b === n ? an : je : Uf && Uf in Fn(b) ? Ibe(b) : Gbe(b);
  44066. }
  44067. function U$(b, w) {
  44068. return b > w;
  44069. }
  44070. function qye(b, w) {
  44071. return b != null && Rn.call(b, w);
  44072. }
  44073. function Kye(b, w) {
  44074. return b != null && w in Fn(b);
  44075. }
  44076. function Jye(b, w, A) {
  44077. return b >= Mi(w, A) && b < Hr(w, A);
  44078. }
  44079. function X$(b, w, A) {
  44080. for (var L = A ? M$ : Z1, G = b[0].length, X = b.length, J = X, ie = Oe(X), ge = 1 / 0, Ee = []; J--; ) {
  44081. var Ie = b[J];
  44082. J && w && (Ie = ar(Ie, Wa(w))), ge = Mi(Ie.length, ge), ie[J] = !A && (w || G >= 120 && Ie.length >= 120) ? new Yf(J && Ie) : n;
  44083. }
  44084. Ie = b[0];
  44085. var Ne = -1, Ke = ie[0];
  44086. e:
  44087. for (; ++Ne < G && Ee.length < ge; ) {
  44088. var ht = Ie[Ne], Pt = w ? w(ht) : ht;
  44089. if (ht = A || ht !== 0 ? ht : 0, !(Ke ? Jm(Ke, Pt) : L(Ee, Pt, A))) {
  44090. for (J = X; --J; ) {
  44091. var Jt = ie[J];
  44092. if (!(Jt ? Jm(Jt, Pt) : L(b[J], Pt, A)))
  44093. continue e;
  44094. }
  44095. Ke && Ke.push(Pt), Ee.push(ht);
  44096. }
  44097. }
  44098. return Ee;
  44099. }
  44100. function ebe(b, w, A, L) {
  44101. return il(b, function(G, X, J) {
  44102. w(L, A(G), X, J);
  44103. }), L;
  44104. }
  44105. function s0(b, w, A) {
  44106. w = pc(w, b), b = EV(b, w);
  44107. var L = b == null ? b : b[ol(Co(w))];
  44108. return L == null ? n : Fa(L, b, A);
  44109. }
  44110. function Hz(b) {
  44111. return gr(b) && Zi(b) == ue;
  44112. }
  44113. function tbe(b) {
  44114. return gr(b) && Zi(b) == Xt;
  44115. }
  44116. function nbe(b) {
  44117. return gr(b) && Zi(b) == re;
  44118. }
  44119. function l0(b, w, A, L, G) {
  44120. return b === w ? !0 : b == null || w == null || !gr(b) && !gr(w) ? b !== b && w !== w : rbe(b, w, A, L, l0, G);
  44121. }
  44122. function rbe(b, w, A, L, G, X) {
  44123. var J = Ft(b), ie = Ft(w), ge = J ? ye : Ii(b), Ee = ie ? ye : Ii(w);
  44124. ge = ge == ue ? Be : ge, Ee = Ee == ue ? Be : Ee;
  44125. var Ie = ge == Be, Ne = Ee == Be, Ke = ge == Ee;
  44126. if (Ke && gc(b)) {
  44127. if (!gc(w))
  44128. return !1;
  44129. J = !0, Ie = !1;
  44130. }
  44131. if (Ke && !Ie)
  44132. return X || (X = new ys()), J || Np(b) ? xV(b, w, A, L, G, X) : Ebe(b, w, ge, A, L, G, X);
  44133. if (!(A & p)) {
  44134. var ht = Ie && Rn.call(b, "__wrapped__"), Pt = Ne && Rn.call(w, "__wrapped__");
  44135. if (ht || Pt) {
  44136. var Jt = ht ? b.value() : b, $t = Pt ? w.value() : w;
  44137. return X || (X = new ys()), G(Jt, $t, A, L, X);
  44138. }
  44139. }
  44140. return Ke ? (X || (X = new ys()), Mbe(b, w, A, L, G, X)) : !1;
  44141. }
  44142. function ibe(b) {
  44143. return gr(b) && Ii(b) == we;
  44144. }
  44145. function Y$(b, w, A, L) {
  44146. var G = A.length, X = G, J = !L;
  44147. if (b == null)
  44148. return !X;
  44149. for (b = Fn(b); G--; ) {
  44150. var ie = A[G];
  44151. if (J && ie[2] ? ie[1] !== b[ie[0]] : !(ie[0] in b))
  44152. return !1;
  44153. }
  44154. for (; ++G < X; ) {
  44155. ie = A[G];
  44156. var ge = ie[0], Ee = b[ge], Ie = ie[1];
  44157. if (J && ie[2]) {
  44158. if (Ee === n && !(ge in b))
  44159. return !1;
  44160. } else {
  44161. var Ne = new ys();
  44162. if (L)
  44163. var Ke = L(Ee, Ie, ge, b, w, Ne);
  44164. if (!(Ke === n ? l0(Ie, Ee, p | v, L, Ne) : Ke))
  44165. return !1;
  44166. }
  44167. }
  44168. return !0;
  44169. }
  44170. function Gz(b) {
  44171. if (!cr(b) || Vbe(b))
  44172. return !1;
  44173. var w = uu(b) ? iye : S$;
  44174. return w.test(ed(b));
  44175. }
  44176. function abe(b) {
  44177. return gr(b) && Zi(b) == Fe;
  44178. }
  44179. function obe(b) {
  44180. return gr(b) && Ii(b) == Ye;
  44181. }
  44182. function sbe(b) {
  44183. return gr(b) && AO(b.length) && !!qn[Zi(b)];
  44184. }
  44185. function jz(b) {
  44186. return typeof b == "function" ? b : b == null ? ba : typeof b == "object" ? Ft(b) ? Xz(b[0], b[1]) : Uz(b) : pF(b);
  44187. }
  44188. function q$(b) {
  44189. if (!f0(b))
  44190. return cye(b);
  44191. var w = [];
  44192. for (var A in Fn(b))
  44193. Rn.call(b, A) && A != "constructor" && w.push(A);
  44194. return w;
  44195. }
  44196. function lbe(b) {
  44197. if (!cr(b))
  44198. return Hbe(b);
  44199. var w = f0(b), A = [];
  44200. for (var L in b)
  44201. L == "constructor" && (w || !Rn.call(b, L)) || A.push(L);
  44202. return A;
  44203. }
  44204. function K$(b, w) {
  44205. return b < w;
  44206. }
  44207. function Zz(b, w) {
  44208. var A = -1, L = ma(b) ? Oe(b.length) : [];
  44209. return dc(b, function(G, X, J) {
  44210. L[++A] = w(G, X, J);
  44211. }), L;
  44212. }
  44213. function Uz(b) {
  44214. var w = hA(b);
  44215. return w.length == 1 && w[0][2] ? $V(w[0][0], w[0][1]) : function(A) {
  44216. return A === b || Y$(A, b, w);
  44217. };
  44218. }
  44219. function Xz(b, w) {
  44220. return vA(b) && PV(w) ? $V(ol(b), w) : function(A) {
  44221. var L = CA(A, b);
  44222. return L === n && L === w ? TA(A, b) : l0(w, L, p | v);
  44223. };
  44224. }
  44225. function hO(b, w, A, L, G) {
  44226. b !== w && j$(w, function(X, J) {
  44227. if (G || (G = new ys()), cr(X))
  44228. ube(b, w, J, A, hO, L, G);
  44229. else {
  44230. var ie = L ? L(mA(b, J), X, J + "", b, w, G) : n;
  44231. ie === n && (ie = X), H$(b, J, ie);
  44232. }
  44233. }, ya);
  44234. }
  44235. function ube(b, w, A, L, G, X, J) {
  44236. var ie = mA(b, A), ge = mA(w, A), Ee = J.get(ge);
  44237. if (Ee) {
  44238. H$(b, A, Ee);
  44239. return;
  44240. }
  44241. var Ie = X ? X(ie, ge, A + "", b, w, J) : n, Ne = Ie === n;
  44242. if (Ne) {
  44243. var Ke = Ft(ge), ht = !Ke && gc(ge), Pt = !Ke && !ht && Np(ge);
  44244. Ie = ge, Ke || ht || Pt ? Ft(ie) ? Ie = ie : Cr(ie) ? Ie = ga(ie) : ht ? (Ne = !1, Ie = sV(ge, !0)) : Pt ? (Ne = !1, Ie = lV(ge, !0)) : Ie = [] : h0(ge) || td(ge) ? (Ie = ie, td(ie) ? Ie = iF(ie) : (!cr(ie) || uu(ie)) && (Ie = TV(ge))) : Ne = !1;
  44245. }
  44246. Ne && (J.set(ge, Ie), G(Ie, ge, L, X, J), J.delete(ge)), H$(b, A, Ie);
  44247. }
  44248. function Yz(b, w) {
  44249. var A = b.length;
  44250. if (A)
  44251. return w += w < 0 ? A : 0, lu(w, A) ? b[w] : n;
  44252. }
  44253. function qz(b, w, A) {
  44254. w.length ? w = ar(w, function(X) {
  44255. return Ft(X) ? function(J) {
  44256. return Kf(J, X.length === 1 ? X[0] : X);
  44257. } : X;
  44258. }) : w = [ba];
  44259. var L = -1;
  44260. w = ar(w, Wa(wt()));
  44261. var G = Zz(b, function(X, J, ie) {
  44262. var ge = ar(w, function(Ee) {
  44263. return Ee(X);
  44264. });
  44265. return { criteria: ge, index: ++L, value: X };
  44266. });
  44267. return L0e(G, function(X, J) {
  44268. return Sbe(X, J, A);
  44269. });
  44270. }
  44271. function cbe(b, w) {
  44272. return Kz(b, w, function(A, L) {
  44273. return TA(b, L);
  44274. });
  44275. }
  44276. function Kz(b, w, A) {
  44277. for (var L = -1, G = w.length, X = {}; ++L < G; ) {
  44278. var J = w[L], ie = Kf(b, J);
  44279. A(ie, J) && u0(X, pc(J, b), ie);
  44280. }
  44281. return X;
  44282. }
  44283. function fbe(b) {
  44284. return function(w) {
  44285. return Kf(w, b);
  44286. };
  44287. }
  44288. function J$(b, w, A, L) {
  44289. var G = L ? k0e : Tp, X = -1, J = w.length, ie = b;
  44290. for (b === w && (w = ga(w)), A && (ie = ar(b, Wa(A))); ++X < J; )
  44291. for (var ge = 0, Ee = w[X], Ie = A ? A(Ee) : Ee; (ge = G(ie, Ie, ge, L)) > -1; )
  44292. ie !== b && rO.call(ie, ge, 1), rO.call(b, ge, 1);
  44293. return b;
  44294. }
  44295. function Jz(b, w) {
  44296. for (var A = b ? w.length : 0, L = A - 1; A--; ) {
  44297. var G = w[A];
  44298. if (A == L || G !== X) {
  44299. var X = G;
  44300. lu(G) ? rO.call(b, G, 1) : rA(b, G);
  44301. }
  44302. }
  44303. return b;
  44304. }
  44305. function eA(b, w) {
  44306. return b + oO(Dz() * (w - b + 1));
  44307. }
  44308. function dbe(b, w, A, L) {
  44309. for (var G = -1, X = Hr(aO((w - b) / (A || 1)), 0), J = Oe(X); X--; )
  44310. J[L ? X : ++G] = b, b += A;
  44311. return J;
  44312. }
  44313. function tA(b, w) {
  44314. var A = "";
  44315. if (!b || w < 1 || w > W)
  44316. return A;
  44317. do
  44318. w % 2 && (A += b), w = oO(w / 2), w && (b += b);
  44319. while (w);
  44320. return A;
  44321. }
  44322. function nn(b, w) {
  44323. return yA(AV(b, w, ba), b + "");
  44324. }
  44325. function hbe(b) {
  44326. return Lz(Bp(b));
  44327. }
  44328. function pbe(b, w) {
  44329. var A = Bp(b);
  44330. return xO(A, qf(w, 0, A.length));
  44331. }
  44332. function u0(b, w, A, L) {
  44333. if (!cr(b))
  44334. return b;
  44335. w = pc(w, b);
  44336. for (var G = -1, X = w.length, J = X - 1, ie = b; ie != null && ++G < X; ) {
  44337. var ge = ol(w[G]), Ee = A;
  44338. if (ge === "__proto__" || ge === "constructor" || ge === "prototype")
  44339. return b;
  44340. if (G != J) {
  44341. var Ie = ie[ge];
  44342. Ee = L ? L(Ie, ge, ie) : n, Ee === n && (Ee = cr(Ie) ? Ie : lu(w[G + 1]) ? [] : {});
  44343. }
  44344. a0(ie, ge, Ee), ie = ie[ge];
  44345. }
  44346. return b;
  44347. }
  44348. var eV = sO ? function(b, w) {
  44349. return sO.set(b, w), b;
  44350. } : ba, vbe = iO ? function(b, w) {
  44351. return iO(b, "toString", {
  44352. configurable: !0,
  44353. enumerable: !1,
  44354. value: $A(w),
  44355. writable: !0
  44356. });
  44357. } : ba;
  44358. function gbe(b) {
  44359. return xO(Bp(b));
  44360. }
  44361. function wo(b, w, A) {
  44362. var L = -1, G = b.length;
  44363. w < 0 && (w = -w > G ? 0 : G + w), A = A > G ? G : A, A < 0 && (A += G), G = w > A ? 0 : A - w >>> 0, w >>>= 0;
  44364. for (var X = Oe(G); ++L < G; )
  44365. X[L] = b[L + w];
  44366. return X;
  44367. }
  44368. function mbe(b, w) {
  44369. var A;
  44370. return dc(b, function(L, G, X) {
  44371. return A = w(L, G, X), !A;
  44372. }), !!A;
  44373. }
  44374. function pO(b, w, A) {
  44375. var L = 0, G = b == null ? L : b.length;
  44376. if (typeof w == "number" && w === w && G <= ne) {
  44377. for (; L < G; ) {
  44378. var X = L + G >>> 1, J = b[X];
  44379. J !== null && !Ha(J) && (A ? J <= w : J < w) ? L = X + 1 : G = X;
  44380. }
  44381. return G;
  44382. }
  44383. return nA(b, w, ba, A);
  44384. }
  44385. function nA(b, w, A, L) {
  44386. var G = 0, X = b == null ? 0 : b.length;
  44387. if (X === 0)
  44388. return 0;
  44389. w = A(w);
  44390. for (var J = w !== w, ie = w === null, ge = Ha(w), Ee = w === n; G < X; ) {
  44391. var Ie = oO((G + X) / 2), Ne = A(b[Ie]), Ke = Ne !== n, ht = Ne === null, Pt = Ne === Ne, Jt = Ha(Ne);
  44392. if (J)
  44393. var $t = L || Pt;
  44394. else Ee ? $t = Pt && (L || Ke) : ie ? $t = Pt && Ke && (L || !ht) : ge ? $t = Pt && Ke && !ht && (L || !Jt) : ht || Jt ? $t = !1 : $t = L ? Ne <= w : Ne < w;
  44395. $t ? G = Ie + 1 : X = Ie;
  44396. }
  44397. return Mi(X, Y);
  44398. }
  44399. function tV(b, w) {
  44400. for (var A = -1, L = b.length, G = 0, X = []; ++A < L; ) {
  44401. var J = b[A], ie = w ? w(J) : J;
  44402. if (!A || !bs(ie, ge)) {
  44403. var ge = ie;
  44404. X[G++] = J === 0 ? 0 : J;
  44405. }
  44406. }
  44407. return X;
  44408. }
  44409. function nV(b) {
  44410. return typeof b == "number" ? b : Ha(b) ? U : +b;
  44411. }
  44412. function Qa(b) {
  44413. if (typeof b == "string")
  44414. return b;
  44415. if (Ft(b))
  44416. return ar(b, Qa) + "";
  44417. if (Ha(b))
  44418. return Rz ? Rz.call(b) : "";
  44419. var w = b + "";
  44420. return w == "0" && 1 / b == -Q ? "-0" : w;
  44421. }
  44422. function hc(b, w, A) {
  44423. var L = -1, G = Z1, X = b.length, J = !0, ie = [], ge = ie;
  44424. if (A)
  44425. J = !1, G = M$;
  44426. else if (X >= i) {
  44427. var Ee = w ? null : $be(b);
  44428. if (Ee)
  44429. return X1(Ee);
  44430. J = !1, G = Jm, ge = new Yf();
  44431. } else
  44432. ge = w ? [] : ie;
  44433. e:
  44434. for (; ++L < X; ) {
  44435. var Ie = b[L], Ne = w ? w(Ie) : Ie;
  44436. if (Ie = A || Ie !== 0 ? Ie : 0, J && Ne === Ne) {
  44437. for (var Ke = ge.length; Ke--; )
  44438. if (ge[Ke] === Ne)
  44439. continue e;
  44440. w && ge.push(Ne), ie.push(Ie);
  44441. } else G(ge, Ne, A) || (ge !== ie && ge.push(Ne), ie.push(Ie));
  44442. }
  44443. return ie;
  44444. }
  44445. function rA(b, w) {
  44446. return w = pc(w, b), b = EV(b, w), b == null || delete b[ol(Co(w))];
  44447. }
  44448. function rV(b, w, A, L) {
  44449. return u0(b, w, A(Kf(b, w)), L);
  44450. }
  44451. function vO(b, w, A, L) {
  44452. for (var G = b.length, X = L ? G : -1; (L ? X-- : ++X < G) && w(b[X], X, b); )
  44453. ;
  44454. return A ? wo(b, L ? 0 : X, L ? X + 1 : G) : wo(b, L ? X + 1 : 0, L ? G : X);
  44455. }
  44456. function iV(b, w) {
  44457. var A = b;
  44458. return A instanceof un && (A = A.value()), I$(w, function(L, G) {
  44459. return G.func.apply(G.thisArg, uc([L], G.args));
  44460. }, A);
  44461. }
  44462. function iA(b, w, A) {
  44463. var L = b.length;
  44464. if (L < 2)
  44465. return L ? hc(b[0]) : [];
  44466. for (var G = -1, X = Oe(L); ++G < L; )
  44467. for (var J = b[G], ie = -1; ++ie < L; )
  44468. ie != G && (X[G] = o0(X[G] || J, b[ie], w, A));
  44469. return hc(hi(X, 1), w, A);
  44470. }
  44471. function aV(b, w, A) {
  44472. for (var L = -1, G = b.length, X = w.length, J = {}; ++L < G; ) {
  44473. var ie = L < X ? w[L] : n;
  44474. A(J, b[L], ie);
  44475. }
  44476. return J;
  44477. }
  44478. function aA(b) {
  44479. return Cr(b) ? b : [];
  44480. }
  44481. function oA(b) {
  44482. return typeof b == "function" ? b : ba;
  44483. }
  44484. function pc(b, w) {
  44485. return Ft(b) ? b : vA(b, w) ? [b] : RV(An(b));
  44486. }
  44487. var ybe = nn;
  44488. function vc(b, w, A) {
  44489. var L = b.length;
  44490. return A = A === n ? L : A, !w && A >= L ? b : wo(b, w, A);
  44491. }
  44492. var oV = aye || function(b) {
  44493. return di.clearTimeout(b);
  44494. };
  44495. function sV(b, w) {
  44496. if (w)
  44497. return b.slice();
  44498. var A = b.length, L = $z ? $z(A) : new b.constructor(A);
  44499. return b.copy(L), L;
  44500. }
  44501. function sA(b) {
  44502. var w = new b.constructor(b.byteLength);
  44503. return new tO(w).set(new tO(b)), w;
  44504. }
  44505. function bbe(b, w) {
  44506. var A = w ? sA(b.buffer) : b.buffer;
  44507. return new b.constructor(A, b.byteOffset, b.byteLength);
  44508. }
  44509. function _be(b) {
  44510. var w = new b.constructor(b.source, qm.exec(b));
  44511. return w.lastIndex = b.lastIndex, w;
  44512. }
  44513. function Obe(b) {
  44514. return i0 ? Fn(i0.call(b)) : {};
  44515. }
  44516. function lV(b, w) {
  44517. var A = w ? sA(b.buffer) : b.buffer;
  44518. return new b.constructor(A, b.byteOffset, b.length);
  44519. }
  44520. function uV(b, w) {
  44521. if (b !== w) {
  44522. var A = b !== n, L = b === null, G = b === b, X = Ha(b), J = w !== n, ie = w === null, ge = w === w, Ee = Ha(w);
  44523. if (!ie && !Ee && !X && b > w || X && J && ge && !ie && !Ee || L && J && ge || !A && ge || !G)
  44524. return 1;
  44525. if (!L && !X && !Ee && b < w || Ee && A && G && !L && !X || ie && A && G || !J && G || !ge)
  44526. return -1;
  44527. }
  44528. return 0;
  44529. }
  44530. function Sbe(b, w, A) {
  44531. for (var L = -1, G = b.criteria, X = w.criteria, J = G.length, ie = A.length; ++L < J; ) {
  44532. var ge = uV(G[L], X[L]);
  44533. if (ge) {
  44534. if (L >= ie)
  44535. return ge;
  44536. var Ee = A[L];
  44537. return ge * (Ee == "desc" ? -1 : 1);
  44538. }
  44539. }
  44540. return b.index - w.index;
  44541. }
  44542. function cV(b, w, A, L) {
  44543. for (var G = -1, X = b.length, J = A.length, ie = -1, ge = w.length, Ee = Hr(X - J, 0), Ie = Oe(ge + Ee), Ne = !L; ++ie < ge; )
  44544. Ie[ie] = w[ie];
  44545. for (; ++G < J; )
  44546. (Ne || G < X) && (Ie[A[G]] = b[G]);
  44547. for (; Ee--; )
  44548. Ie[ie++] = b[G++];
  44549. return Ie;
  44550. }
  44551. function fV(b, w, A, L) {
  44552. for (var G = -1, X = b.length, J = -1, ie = A.length, ge = -1, Ee = w.length, Ie = Hr(X - ie, 0), Ne = Oe(Ie + Ee), Ke = !L; ++G < Ie; )
  44553. Ne[G] = b[G];
  44554. for (var ht = G; ++ge < Ee; )
  44555. Ne[ht + ge] = w[ge];
  44556. for (; ++J < ie; )
  44557. (Ke || G < X) && (Ne[ht + A[J]] = b[G++]);
  44558. return Ne;
  44559. }
  44560. function ga(b, w) {
  44561. var A = -1, L = b.length;
  44562. for (w || (w = Oe(L)); ++A < L; )
  44563. w[A] = b[A];
  44564. return w;
  44565. }
  44566. function al(b, w, A, L) {
  44567. var G = !A;
  44568. A || (A = {});
  44569. for (var X = -1, J = w.length; ++X < J; ) {
  44570. var ie = w[X], ge = L ? L(A[ie], b[ie], ie, A, b) : n;
  44571. ge === n && (ge = b[ie]), G ? au(A, ie, ge) : a0(A, ie, ge);
  44572. }
  44573. return A;
  44574. }
  44575. function xbe(b, w) {
  44576. return al(b, pA(b), w);
  44577. }
  44578. function wbe(b, w) {
  44579. return al(b, wV(b), w);
  44580. }
  44581. function gO(b, w) {
  44582. return function(A, L) {
  44583. var G = Ft(A) ? A0e : jye, X = w ? w() : {};
  44584. return G(A, b, wt(L, 2), X);
  44585. };
  44586. }
  44587. function Rp(b) {
  44588. return nn(function(w, A) {
  44589. var L = -1, G = A.length, X = G > 1 ? A[G - 1] : n, J = G > 2 ? A[2] : n;
  44590. for (X = b.length > 3 && typeof X == "function" ? (G--, X) : n, J && Ui(A[0], A[1], J) && (X = G < 3 ? n : X, G = 1), w = Fn(w); ++L < G; ) {
  44591. var ie = A[L];
  44592. ie && b(w, ie, L, X);
  44593. }
  44594. return w;
  44595. });
  44596. }
  44597. function dV(b, w) {
  44598. return function(A, L) {
  44599. if (A == null)
  44600. return A;
  44601. if (!ma(A))
  44602. return b(A, L);
  44603. for (var G = A.length, X = w ? G : -1, J = Fn(A); (w ? X-- : ++X < G) && L(J[X], X, J) !== !1; )
  44604. ;
  44605. return A;
  44606. };
  44607. }
  44608. function hV(b) {
  44609. return function(w, A, L) {
  44610. for (var G = -1, X = Fn(w), J = L(w), ie = J.length; ie--; ) {
  44611. var ge = J[b ? ie : ++G];
  44612. if (A(X[ge], ge, X) === !1)
  44613. break;
  44614. }
  44615. return w;
  44616. };
  44617. }
  44618. function Cbe(b, w, A) {
  44619. var L = w & g, G = c0(b);
  44620. function X() {
  44621. var J = this && this !== di && this instanceof X ? G : b;
  44622. return J.apply(L ? A : this, arguments);
  44623. }
  44624. return X;
  44625. }
  44626. function pV(b) {
  44627. return function(w) {
  44628. w = An(w);
  44629. var A = Pp(w) ? ms(w) : n, L = A ? A[0] : w.charAt(0), G = A ? vc(A, 1).join("") : w.slice(1);
  44630. return L[b]() + G;
  44631. };
  44632. }
  44633. function kp(b) {
  44634. return function(w) {
  44635. return I$(dF(fF(w).replace(v0e, "")), b, "");
  44636. };
  44637. }
  44638. function c0(b) {
  44639. return function() {
  44640. var w = arguments;
  44641. switch (w.length) {
  44642. case 0:
  44643. return new b();
  44644. case 1:
  44645. return new b(w[0]);
  44646. case 2:
  44647. return new b(w[0], w[1]);
  44648. case 3:
  44649. return new b(w[0], w[1], w[2]);
  44650. case 4:
  44651. return new b(w[0], w[1], w[2], w[3]);
  44652. case 5:
  44653. return new b(w[0], w[1], w[2], w[3], w[4]);
  44654. case 6:
  44655. return new b(w[0], w[1], w[2], w[3], w[4], w[5]);
  44656. case 7:
  44657. return new b(w[0], w[1], w[2], w[3], w[4], w[5], w[6]);
  44658. }
  44659. var A = Dp(b.prototype), L = b.apply(A, w);
  44660. return cr(L) ? L : A;
  44661. };
  44662. }
  44663. function Tbe(b, w, A) {
  44664. var L = c0(b);
  44665. function G() {
  44666. for (var X = arguments.length, J = Oe(X), ie = X, ge = Lp(G); ie--; )
  44667. J[ie] = arguments[ie];
  44668. var Ee = X < 3 && J[0] !== ge && J[X - 1] !== ge ? [] : cc(J, ge);
  44669. if (X -= Ee.length, X < A)
  44670. return bV(
  44671. b,
  44672. w,
  44673. mO,
  44674. G.placeholder,
  44675. n,
  44676. J,
  44677. Ee,
  44678. n,
  44679. n,
  44680. A - X
  44681. );
  44682. var Ie = this && this !== di && this instanceof G ? L : b;
  44683. return Fa(Ie, this, J);
  44684. }
  44685. return G;
  44686. }
  44687. function vV(b) {
  44688. return function(w, A, L) {
  44689. var G = Fn(w);
  44690. if (!ma(w)) {
  44691. var X = wt(A, 3);
  44692. w = ri(w), A = function(ie) {
  44693. return X(G[ie], ie, G);
  44694. };
  44695. }
  44696. var J = b(w, A, L);
  44697. return J > -1 ? G[X ? w[J] : J] : n;
  44698. };
  44699. }
  44700. function gV(b) {
  44701. return su(function(w) {
  44702. var A = w.length, L = A, G = So.prototype.thru;
  44703. for (b && w.reverse(); L--; ) {
  44704. var X = w[L];
  44705. if (typeof X != "function")
  44706. throw new Oo(o);
  44707. if (G && !J && OO(X) == "wrapper")
  44708. var J = new So([], !0);
  44709. }
  44710. for (L = J ? L : A; ++L < A; ) {
  44711. X = w[L];
  44712. var ie = OO(X), ge = ie == "wrapper" ? dA(X) : n;
  44713. ge && gA(ge[0]) && ge[1] == (C | _ | S | P) && !ge[4].length && ge[9] == 1 ? J = J[OO(ge[0])].apply(J, ge[3]) : J = X.length == 1 && gA(X) ? J[ie]() : J.thru(X);
  44714. }
  44715. return function() {
  44716. var Ee = arguments, Ie = Ee[0];
  44717. if (J && Ee.length == 1 && Ft(Ie))
  44718. return J.plant(Ie).value();
  44719. for (var Ne = 0, Ke = A ? w[Ne].apply(this, Ee) : Ie; ++Ne < A; )
  44720. Ke = w[Ne].call(this, Ke);
  44721. return Ke;
  44722. };
  44723. });
  44724. }
  44725. function mO(b, w, A, L, G, X, J, ie, ge, Ee) {
  44726. var Ie = w & C, Ne = w & g, Ke = w & m, ht = w & (_ | O), Pt = w & $, Jt = Ke ? n : c0(b);
  44727. function $t() {
  44728. for (var on = arguments.length, pn = Oe(on), Ga = on; Ga--; )
  44729. pn[Ga] = arguments[Ga];
  44730. if (ht)
  44731. var Xi = Lp($t), ja = B0e(pn, Xi);
  44732. if (L && (pn = cV(pn, L, G, ht)), X && (pn = fV(pn, X, J, ht)), on -= ja, ht && on < Ee) {
  44733. var Tr = cc(pn, Xi);
  44734. return bV(
  44735. b,
  44736. w,
  44737. mO,
  44738. $t.placeholder,
  44739. A,
  44740. pn,
  44741. Tr,
  44742. ie,
  44743. ge,
  44744. Ee - on
  44745. );
  44746. }
  44747. var _s = Ne ? A : this, fu = Ke ? _s[b] : b;
  44748. return on = pn.length, ie ? pn = jbe(pn, ie) : Pt && on > 1 && pn.reverse(), Ie && ge < on && (pn.length = ge), this && this !== di && this instanceof $t && (fu = Jt || c0(fu)), fu.apply(_s, pn);
  44749. }
  44750. return $t;
  44751. }
  44752. function mV(b, w) {
  44753. return function(A, L) {
  44754. return ebe(A, b, w(L), {});
  44755. };
  44756. }
  44757. function yO(b, w) {
  44758. return function(A, L) {
  44759. var G;
  44760. if (A === n && L === n)
  44761. return w;
  44762. if (A !== n && (G = A), L !== n) {
  44763. if (G === n)
  44764. return L;
  44765. typeof A == "string" || typeof L == "string" ? (A = Qa(A), L = Qa(L)) : (A = nV(A), L = nV(L)), G = b(A, L);
  44766. }
  44767. return G;
  44768. };
  44769. }
  44770. function lA(b) {
  44771. return su(function(w) {
  44772. return w = ar(w, Wa(wt())), nn(function(A) {
  44773. var L = this;
  44774. return b(w, function(G) {
  44775. return Fa(G, L, A);
  44776. });
  44777. });
  44778. });
  44779. }
  44780. function bO(b, w) {
  44781. w = w === n ? " " : Qa(w);
  44782. var A = w.length;
  44783. if (A < 2)
  44784. return A ? tA(w, b) : w;
  44785. var L = tA(w, aO(b / $p(w)));
  44786. return Pp(w) ? vc(ms(L), 0, b).join("") : L.slice(0, b);
  44787. }
  44788. function Pbe(b, w, A, L) {
  44789. var G = w & g, X = c0(b);
  44790. function J() {
  44791. for (var ie = -1, ge = arguments.length, Ee = -1, Ie = L.length, Ne = Oe(Ie + ge), Ke = this && this !== di && this instanceof J ? X : b; ++Ee < Ie; )
  44792. Ne[Ee] = L[Ee];
  44793. for (; ge--; )
  44794. Ne[Ee++] = arguments[++ie];
  44795. return Fa(Ke, G ? A : this, Ne);
  44796. }
  44797. return J;
  44798. }
  44799. function yV(b) {
  44800. return function(w, A, L) {
  44801. return L && typeof L != "number" && Ui(w, A, L) && (A = L = n), w = cu(w), A === n ? (A = w, w = 0) : A = cu(A), L = L === n ? w < A ? 1 : -1 : cu(L), dbe(w, A, L, b);
  44802. };
  44803. }
  44804. function _O(b) {
  44805. return function(w, A) {
  44806. return typeof w == "string" && typeof A == "string" || (w = To(w), A = To(A)), b(w, A);
  44807. };
  44808. }
  44809. function bV(b, w, A, L, G, X, J, ie, ge, Ee) {
  44810. var Ie = w & _, Ne = Ie ? J : n, Ke = Ie ? n : J, ht = Ie ? X : n, Pt = Ie ? n : X;
  44811. w |= Ie ? S : x, w &= ~(Ie ? x : S), w & y || (w &= ~(g | m));
  44812. var Jt = [
  44813. b,
  44814. w,
  44815. G,
  44816. ht,
  44817. Ne,
  44818. Pt,
  44819. Ke,
  44820. ie,
  44821. ge,
  44822. Ee
  44823. ], $t = A.apply(n, Jt);
  44824. return gA(b) && MV($t, Jt), $t.placeholder = L, IV($t, b, w);
  44825. }
  44826. function uA(b) {
  44827. var w = Qr[b];
  44828. return function(A, L) {
  44829. if (A = To(A), L = L == null ? 0 : Mi(Yt(L), 292), L && Iz(A)) {
  44830. var G = (An(A) + "e").split("e"), X = w(G[0] + "e" + (+G[1] + L));
  44831. return G = (An(X) + "e").split("e"), +(G[0] + "e" + (+G[1] - L));
  44832. }
  44833. return w(A);
  44834. };
  44835. }
  44836. var $be = Mp && 1 / X1(new Mp([, -0]))[1] == Q ? function(b) {
  44837. return new Mp(b);
  44838. } : MA;
  44839. function _V(b) {
  44840. return function(w) {
  44841. var A = Ii(w);
  44842. return A == we ? z$(w) : A == Ye ? G0e(w) : N0e(w, b(w));
  44843. };
  44844. }
  44845. function ou(b, w, A, L, G, X, J, ie) {
  44846. var ge = w & m;
  44847. if (!ge && typeof b != "function")
  44848. throw new Oo(o);
  44849. var Ee = L ? L.length : 0;
  44850. if (Ee || (w &= ~(S | x), L = G = n), J = J === n ? J : Hr(Yt(J), 0), ie = ie === n ? ie : Yt(ie), Ee -= G ? G.length : 0, w & x) {
  44851. var Ie = L, Ne = G;
  44852. L = G = n;
  44853. }
  44854. var Ke = ge ? n : dA(b), ht = [
  44855. b,
  44856. w,
  44857. A,
  44858. L,
  44859. G,
  44860. Ie,
  44861. Ne,
  44862. X,
  44863. J,
  44864. ie
  44865. ];
  44866. if (Ke && Qbe(ht, Ke), b = ht[0], w = ht[1], A = ht[2], L = ht[3], G = ht[4], ie = ht[9] = ht[9] === n ? ge ? 0 : b.length : Hr(ht[9] - Ee, 0), !ie && w & (_ | O) && (w &= ~(_ | O)), !w || w == g)
  44867. var Pt = Cbe(b, w, A);
  44868. else w == _ || w == O ? Pt = Tbe(b, w, ie) : (w == S || w == (g | S)) && !G.length ? Pt = Pbe(b, w, A, L) : Pt = mO.apply(n, ht);
  44869. var Jt = Ke ? eV : MV;
  44870. return IV(Jt(Pt, ht), b, w);
  44871. }
  44872. function OV(b, w, A, L) {
  44873. return b === n || bs(b, Ep[A]) && !Rn.call(L, A) ? w : b;
  44874. }
  44875. function SV(b, w, A, L, G, X) {
  44876. return cr(b) && cr(w) && (X.set(w, b), hO(b, w, n, SV, X), X.delete(w)), b;
  44877. }
  44878. function Abe(b) {
  44879. return h0(b) ? n : b;
  44880. }
  44881. function xV(b, w, A, L, G, X) {
  44882. var J = A & p, ie = b.length, ge = w.length;
  44883. if (ie != ge && !(J && ge > ie))
  44884. return !1;
  44885. var Ee = X.get(b), Ie = X.get(w);
  44886. if (Ee && Ie)
  44887. return Ee == w && Ie == b;
  44888. var Ne = -1, Ke = !0, ht = A & v ? new Yf() : n;
  44889. for (X.set(b, w), X.set(w, b); ++Ne < ie; ) {
  44890. var Pt = b[Ne], Jt = w[Ne];
  44891. if (L)
  44892. var $t = J ? L(Jt, Pt, Ne, w, b, X) : L(Pt, Jt, Ne, b, w, X);
  44893. if ($t !== n) {
  44894. if ($t)
  44895. continue;
  44896. Ke = !1;
  44897. break;
  44898. }
  44899. if (ht) {
  44900. if (!D$(w, function(on, pn) {
  44901. if (!Jm(ht, pn) && (Pt === on || G(Pt, on, A, L, X)))
  44902. return ht.push(pn);
  44903. })) {
  44904. Ke = !1;
  44905. break;
  44906. }
  44907. } else if (!(Pt === Jt || G(Pt, Jt, A, L, X))) {
  44908. Ke = !1;
  44909. break;
  44910. }
  44911. }
  44912. return X.delete(b), X.delete(w), Ke;
  44913. }
  44914. function Ebe(b, w, A, L, G, X, J) {
  44915. switch (A) {
  44916. case Bn:
  44917. if (b.byteLength != w.byteLength || b.byteOffset != w.byteOffset)
  44918. return !1;
  44919. b = b.buffer, w = w.buffer;
  44920. case Xt:
  44921. return !(b.byteLength != w.byteLength || !X(new tO(b), new tO(w)));
  44922. case he:
  44923. case re:
  44924. case He:
  44925. return bs(+b, +w);
  44926. case K:
  44927. return b.name == w.name && b.message == w.message;
  44928. case Fe:
  44929. case xt:
  44930. return b == w + "";
  44931. case we:
  44932. var ie = z$;
  44933. case Ye:
  44934. var ge = L & p;
  44935. if (ie || (ie = X1), b.size != w.size && !ge)
  44936. return !1;
  44937. var Ee = J.get(b);
  44938. if (Ee)
  44939. return Ee == w;
  44940. L |= v, J.set(b, w);
  44941. var Ie = xV(ie(b), ie(w), L, G, X, J);
  44942. return J.delete(b), Ie;
  44943. case It:
  44944. if (i0)
  44945. return i0.call(b) == i0.call(w);
  44946. }
  44947. return !1;
  44948. }
  44949. function Mbe(b, w, A, L, G, X) {
  44950. var J = A & p, ie = cA(b), ge = ie.length, Ee = cA(w), Ie = Ee.length;
  44951. if (ge != Ie && !J)
  44952. return !1;
  44953. for (var Ne = ge; Ne--; ) {
  44954. var Ke = ie[Ne];
  44955. if (!(J ? Ke in w : Rn.call(w, Ke)))
  44956. return !1;
  44957. }
  44958. var ht = X.get(b), Pt = X.get(w);
  44959. if (ht && Pt)
  44960. return ht == w && Pt == b;
  44961. var Jt = !0;
  44962. X.set(b, w), X.set(w, b);
  44963. for (var $t = J; ++Ne < ge; ) {
  44964. Ke = ie[Ne];
  44965. var on = b[Ke], pn = w[Ke];
  44966. if (L)
  44967. var Ga = J ? L(pn, on, Ke, w, b, X) : L(on, pn, Ke, b, w, X);
  44968. if (!(Ga === n ? on === pn || G(on, pn, A, L, X) : Ga)) {
  44969. Jt = !1;
  44970. break;
  44971. }
  44972. $t || ($t = Ke == "constructor");
  44973. }
  44974. if (Jt && !$t) {
  44975. var Xi = b.constructor, ja = w.constructor;
  44976. Xi != ja && "constructor" in b && "constructor" in w && !(typeof Xi == "function" && Xi instanceof Xi && typeof ja == "function" && ja instanceof ja) && (Jt = !1);
  44977. }
  44978. return X.delete(b), X.delete(w), Jt;
  44979. }
  44980. function su(b) {
  44981. return yA(AV(b, n, BV), b + "");
  44982. }
  44983. function cA(b) {
  44984. return Qz(b, ri, pA);
  44985. }
  44986. function fA(b) {
  44987. return Qz(b, ya, wV);
  44988. }
  44989. var dA = sO ? function(b) {
  44990. return sO.get(b);
  44991. } : MA;
  44992. function OO(b) {
  44993. for (var w = b.name + "", A = Ip[w], L = Rn.call(Ip, w) ? A.length : 0; L--; ) {
  44994. var G = A[L], X = G.func;
  44995. if (X == null || X == b)
  44996. return G.name;
  44997. }
  44998. return w;
  44999. }
  45000. function Lp(b) {
  45001. var w = Rn.call(Z, "placeholder") ? Z : b;
  45002. return w.placeholder;
  45003. }
  45004. function wt() {
  45005. var b = Z.iteratee || AA;
  45006. return b = b === AA ? jz : b, arguments.length ? b(arguments[0], arguments[1]) : b;
  45007. }
  45008. function SO(b, w) {
  45009. var A = b.__data__;
  45010. return zbe(w) ? A[typeof w == "string" ? "string" : "hash"] : A.map;
  45011. }
  45012. function hA(b) {
  45013. for (var w = ri(b), A = w.length; A--; ) {
  45014. var L = w[A], G = b[L];
  45015. w[A] = [L, G, PV(G)];
  45016. }
  45017. return w;
  45018. }
  45019. function Jf(b, w) {
  45020. var A = W0e(b, w);
  45021. return Gz(A) ? A : n;
  45022. }
  45023. function Ibe(b) {
  45024. var w = Rn.call(b, Uf), A = b[Uf];
  45025. try {
  45026. b[Uf] = n;
  45027. var L = !0;
  45028. } catch {
  45029. }
  45030. var G = J1.call(b);
  45031. return L && (w ? b[Uf] = A : delete b[Uf]), G;
  45032. }
  45033. var pA = F$ ? function(b) {
  45034. return b == null ? [] : (b = Fn(b), lc(F$(b), function(w) {
  45035. return Ez.call(b, w);
  45036. }));
  45037. } : IA, wV = F$ ? function(b) {
  45038. for (var w = []; b; )
  45039. uc(w, pA(b)), b = nO(b);
  45040. return w;
  45041. } : IA, Ii = Zi;
  45042. (W$ && Ii(new W$(new ArrayBuffer(1))) != Bn || t0 && Ii(new t0()) != we || Q$ && Ii(Q$.resolve()) != Le || Mp && Ii(new Mp()) != Ye || n0 && Ii(new n0()) != Ae) && (Ii = function(b) {
  45043. var w = Zi(b), A = w == Be ? b.constructor : n, L = A ? ed(A) : "";
  45044. if (L)
  45045. switch (L) {
  45046. case pye:
  45047. return Bn;
  45048. case vye:
  45049. return we;
  45050. case gye:
  45051. return Le;
  45052. case mye:
  45053. return Ye;
  45054. case yye:
  45055. return Ae;
  45056. }
  45057. return w;
  45058. });
  45059. function Dbe(b, w, A) {
  45060. for (var L = -1, G = A.length; ++L < G; ) {
  45061. var X = A[L], J = X.size;
  45062. switch (X.type) {
  45063. case "drop":
  45064. b += J;
  45065. break;
  45066. case "dropRight":
  45067. w -= J;
  45068. break;
  45069. case "take":
  45070. w = Mi(w, b + J);
  45071. break;
  45072. case "takeRight":
  45073. b = Hr(b, w - J);
  45074. break;
  45075. }
  45076. }
  45077. return { start: b, end: w };
  45078. }
  45079. function Rbe(b) {
  45080. var w = b.match(_$);
  45081. return w ? w[1].split(V1) : [];
  45082. }
  45083. function CV(b, w, A) {
  45084. w = pc(w, b);
  45085. for (var L = -1, G = w.length, X = !1; ++L < G; ) {
  45086. var J = ol(w[L]);
  45087. if (!(X = b != null && A(b, J)))
  45088. break;
  45089. b = b[J];
  45090. }
  45091. return X || ++L != G ? X : (G = b == null ? 0 : b.length, !!G && AO(G) && lu(J, G) && (Ft(b) || td(b)));
  45092. }
  45093. function kbe(b) {
  45094. var w = b.length, A = new b.constructor(w);
  45095. return w && typeof b[0] == "string" && Rn.call(b, "index") && (A.index = b.index, A.input = b.input), A;
  45096. }
  45097. function TV(b) {
  45098. return typeof b.constructor == "function" && !f0(b) ? Dp(nO(b)) : {};
  45099. }
  45100. function Lbe(b, w, A) {
  45101. var L = b.constructor;
  45102. switch (w) {
  45103. case Xt:
  45104. return sA(b);
  45105. case he:
  45106. case re:
  45107. return new L(+b);
  45108. case Bn:
  45109. return bbe(b, A);
  45110. case Dn:
  45111. case Dr:
  45112. case ji:
  45113. case tu:
  45114. case nu:
  45115. case oc:
  45116. case Qf:
  45117. case rl:
  45118. case Hf:
  45119. return lV(b, A);
  45120. case we:
  45121. return new L();
  45122. case He:
  45123. case xt:
  45124. return new L(b);
  45125. case Fe:
  45126. return _be(b);
  45127. case Ye:
  45128. return new L();
  45129. case It:
  45130. return Obe(b);
  45131. }
  45132. }
  45133. function Nbe(b, w) {
  45134. var A = w.length;
  45135. if (!A)
  45136. return b;
  45137. var L = A - 1;
  45138. return w[L] = (A > 1 ? "& " : "") + w[L], w = w.join(A > 2 ? ", " : " "), b.replace(b$, `{
  45139. /* [wrapped with ` + w + `] */
  45140. `);
  45141. }
  45142. function Bbe(b) {
  45143. return Ft(b) || td(b) || !!(Mz && b && b[Mz]);
  45144. }
  45145. function lu(b, w) {
  45146. var A = typeof b;
  45147. return w = w ?? W, !!w && (A == "number" || A != "symbol" && H1.test(b)) && b > -1 && b % 1 == 0 && b < w;
  45148. }
  45149. function Ui(b, w, A) {
  45150. if (!cr(A))
  45151. return !1;
  45152. var L = typeof w;
  45153. return (L == "number" ? ma(A) && lu(w, A.length) : L == "string" && w in A) ? bs(A[w], b) : !1;
  45154. }
  45155. function vA(b, w) {
  45156. if (Ft(b))
  45157. return !1;
  45158. var A = typeof b;
  45159. return A == "number" || A == "symbol" || A == "boolean" || b == null || Ha(b) ? !0 : z1.test(b) || !Zm.test(b) || w != null && b in Fn(w);
  45160. }
  45161. function zbe(b) {
  45162. var w = typeof b;
  45163. return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? b !== "__proto__" : b === null;
  45164. }
  45165. function gA(b) {
  45166. var w = OO(b), A = Z[w];
  45167. if (typeof A != "function" || !(w in un.prototype))
  45168. return !1;
  45169. if (b === A)
  45170. return !0;
  45171. var L = dA(A);
  45172. return !!L && b === L[0];
  45173. }
  45174. function Vbe(b) {
  45175. return !!Pz && Pz in b;
  45176. }
  45177. var Fbe = q1 ? uu : DA;
  45178. function f0(b) {
  45179. var w = b && b.constructor, A = typeof w == "function" && w.prototype || Ep;
  45180. return b === A;
  45181. }
  45182. function PV(b) {
  45183. return b === b && !cr(b);
  45184. }
  45185. function $V(b, w) {
  45186. return function(A) {
  45187. return A == null ? !1 : A[b] === w && (w !== n || b in Fn(A));
  45188. };
  45189. }
  45190. function Wbe(b) {
  45191. var w = PO(b, function(L) {
  45192. return A.size === u && A.clear(), L;
  45193. }), A = w.cache;
  45194. return w;
  45195. }
  45196. function Qbe(b, w) {
  45197. var A = b[1], L = w[1], G = A | L, X = G < (g | m | C), J = L == C && A == _ || L == C && A == P && b[7].length <= w[8] || L == (C | P) && w[7].length <= w[8] && A == _;
  45198. if (!(X || J))
  45199. return b;
  45200. L & g && (b[2] = w[2], G |= A & g ? 0 : y);
  45201. var ie = w[3];
  45202. if (ie) {
  45203. var ge = b[3];
  45204. b[3] = ge ? cV(ge, ie, w[4]) : ie, b[4] = ge ? cc(b[3], c) : w[4];
  45205. }
  45206. return ie = w[5], ie && (ge = b[5], b[5] = ge ? fV(ge, ie, w[6]) : ie, b[6] = ge ? cc(b[5], c) : w[6]), ie = w[7], ie && (b[7] = ie), L & C && (b[8] = b[8] == null ? w[8] : Mi(b[8], w[8])), b[9] == null && (b[9] = w[9]), b[0] = w[0], b[1] = G, b;
  45207. }
  45208. function Hbe(b) {
  45209. var w = [];
  45210. if (b != null)
  45211. for (var A in Fn(b))
  45212. w.push(A);
  45213. return w;
  45214. }
  45215. function Gbe(b) {
  45216. return J1.call(b);
  45217. }
  45218. function AV(b, w, A) {
  45219. return w = Hr(w === n ? b.length - 1 : w, 0), function() {
  45220. for (var L = arguments, G = -1, X = Hr(L.length - w, 0), J = Oe(X); ++G < X; )
  45221. J[G] = L[w + G];
  45222. G = -1;
  45223. for (var ie = Oe(w + 1); ++G < w; )
  45224. ie[G] = L[G];
  45225. return ie[w] = A(J), Fa(b, this, ie);
  45226. };
  45227. }
  45228. function EV(b, w) {
  45229. return w.length < 2 ? b : Kf(b, wo(w, 0, -1));
  45230. }
  45231. function jbe(b, w) {
  45232. for (var A = b.length, L = Mi(w.length, A), G = ga(b); L--; ) {
  45233. var X = w[L];
  45234. b[L] = lu(X, A) ? G[X] : n;
  45235. }
  45236. return b;
  45237. }
  45238. function mA(b, w) {
  45239. if (!(w === "constructor" && typeof b[w] == "function") && w != "__proto__")
  45240. return b[w];
  45241. }
  45242. var MV = DV(eV), d0 = sye || function(b, w) {
  45243. return di.setTimeout(b, w);
  45244. }, yA = DV(vbe);
  45245. function IV(b, w, A) {
  45246. var L = w + "";
  45247. return yA(b, Nbe(L, Zbe(Rbe(L), A)));
  45248. }
  45249. function DV(b) {
  45250. var w = 0, A = 0;
  45251. return function() {
  45252. var L = fye(), G = R - (L - A);
  45253. if (A = L, G > 0) {
  45254. if (++w >= M)
  45255. return arguments[0];
  45256. } else
  45257. w = 0;
  45258. return b.apply(n, arguments);
  45259. };
  45260. }
  45261. function xO(b, w) {
  45262. var A = -1, L = b.length, G = L - 1;
  45263. for (w = w === n ? L : w; ++A < w; ) {
  45264. var X = eA(A, G), J = b[X];
  45265. b[X] = b[A], b[A] = J;
  45266. }
  45267. return b.length = w, b;
  45268. }
  45269. var RV = Wbe(function(b) {
  45270. var w = [];
  45271. return b.charCodeAt(0) === 46 && w.push(""), b.replace(xp, function(A, L, G, X) {
  45272. w.push(G ? X.replace(F1, "$1") : L || A);
  45273. }), w;
  45274. });
  45275. function ol(b) {
  45276. if (typeof b == "string" || Ha(b))
  45277. return b;
  45278. var w = b + "";
  45279. return w == "0" && 1 / b == -Q ? "-0" : w;
  45280. }
  45281. function ed(b) {
  45282. if (b != null) {
  45283. try {
  45284. return K1.call(b);
  45285. } catch {
  45286. }
  45287. try {
  45288. return b + "";
  45289. } catch {
  45290. }
  45291. }
  45292. return "";
  45293. }
  45294. function Zbe(b, w) {
  45295. return _o(fe, function(A) {
  45296. var L = "_." + A[0];
  45297. w & A[1] && !Z1(b, L) && b.push(L);
  45298. }), b.sort();
  45299. }
  45300. function kV(b) {
  45301. if (b instanceof un)
  45302. return b.clone();
  45303. var w = new So(b.__wrapped__, b.__chain__);
  45304. return w.__actions__ = ga(b.__actions__), w.__index__ = b.__index__, w.__values__ = b.__values__, w;
  45305. }
  45306. function Ube(b, w, A) {
  45307. (A ? Ui(b, w, A) : w === n) ? w = 1 : w = Hr(Yt(w), 0);
  45308. var L = b == null ? 0 : b.length;
  45309. if (!L || w < 1)
  45310. return [];
  45311. for (var G = 0, X = 0, J = Oe(aO(L / w)); G < L; )
  45312. J[X++] = wo(b, G, G += w);
  45313. return J;
  45314. }
  45315. function Xbe(b) {
  45316. for (var w = -1, A = b == null ? 0 : b.length, L = 0, G = []; ++w < A; ) {
  45317. var X = b[w];
  45318. X && (G[L++] = X);
  45319. }
  45320. return G;
  45321. }
  45322. function Ybe() {
  45323. var b = arguments.length;
  45324. if (!b)
  45325. return [];
  45326. for (var w = Oe(b - 1), A = arguments[0], L = b; L--; )
  45327. w[L - 1] = arguments[L];
  45328. return uc(Ft(A) ? ga(A) : [A], hi(w, 1));
  45329. }
  45330. var qbe = nn(function(b, w) {
  45331. return Cr(b) ? o0(b, hi(w, 1, Cr, !0)) : [];
  45332. }), Kbe = nn(function(b, w) {
  45333. var A = Co(w);
  45334. return Cr(A) && (A = n), Cr(b) ? o0(b, hi(w, 1, Cr, !0), wt(A, 2)) : [];
  45335. }), Jbe = nn(function(b, w) {
  45336. var A = Co(w);
  45337. return Cr(A) && (A = n), Cr(b) ? o0(b, hi(w, 1, Cr, !0), n, A) : [];
  45338. });
  45339. function e_e(b, w, A) {
  45340. var L = b == null ? 0 : b.length;
  45341. return L ? (w = A || w === n ? 1 : Yt(w), wo(b, w < 0 ? 0 : w, L)) : [];
  45342. }
  45343. function t_e(b, w, A) {
  45344. var L = b == null ? 0 : b.length;
  45345. return L ? (w = A || w === n ? 1 : Yt(w), w = L - w, wo(b, 0, w < 0 ? 0 : w)) : [];
  45346. }
  45347. function n_e(b, w) {
  45348. return b && b.length ? vO(b, wt(w, 3), !0, !0) : [];
  45349. }
  45350. function r_e(b, w) {
  45351. return b && b.length ? vO(b, wt(w, 3), !0) : [];
  45352. }
  45353. function i_e(b, w, A, L) {
  45354. var G = b == null ? 0 : b.length;
  45355. return G ? (A && typeof A != "number" && Ui(b, w, A) && (A = 0, L = G), Yye(b, w, A, L)) : [];
  45356. }
  45357. function LV(b, w, A) {
  45358. var L = b == null ? 0 : b.length;
  45359. if (!L)
  45360. return -1;
  45361. var G = A == null ? 0 : Yt(A);
  45362. return G < 0 && (G = Hr(L + G, 0)), U1(b, wt(w, 3), G);
  45363. }
  45364. function NV(b, w, A) {
  45365. var L = b == null ? 0 : b.length;
  45366. if (!L)
  45367. return -1;
  45368. var G = L - 1;
  45369. return A !== n && (G = Yt(A), G = A < 0 ? Hr(L + G, 0) : Mi(G, L - 1)), U1(b, wt(w, 3), G, !0);
  45370. }
  45371. function BV(b) {
  45372. var w = b == null ? 0 : b.length;
  45373. return w ? hi(b, 1) : [];
  45374. }
  45375. function a_e(b) {
  45376. var w = b == null ? 0 : b.length;
  45377. return w ? hi(b, Q) : [];
  45378. }
  45379. function o_e(b, w) {
  45380. var A = b == null ? 0 : b.length;
  45381. return A ? (w = w === n ? 1 : Yt(w), hi(b, w)) : [];
  45382. }
  45383. function s_e(b) {
  45384. for (var w = -1, A = b == null ? 0 : b.length, L = {}; ++w < A; ) {
  45385. var G = b[w];
  45386. L[G[0]] = G[1];
  45387. }
  45388. return L;
  45389. }
  45390. function zV(b) {
  45391. return b && b.length ? b[0] : n;
  45392. }
  45393. function l_e(b, w, A) {
  45394. var L = b == null ? 0 : b.length;
  45395. if (!L)
  45396. return -1;
  45397. var G = A == null ? 0 : Yt(A);
  45398. return G < 0 && (G = Hr(L + G, 0)), Tp(b, w, G);
  45399. }
  45400. function u_e(b) {
  45401. var w = b == null ? 0 : b.length;
  45402. return w ? wo(b, 0, -1) : [];
  45403. }
  45404. var c_e = nn(function(b) {
  45405. var w = ar(b, aA);
  45406. return w.length && w[0] === b[0] ? X$(w) : [];
  45407. }), f_e = nn(function(b) {
  45408. var w = Co(b), A = ar(b, aA);
  45409. return w === Co(A) ? w = n : A.pop(), A.length && A[0] === b[0] ? X$(A, wt(w, 2)) : [];
  45410. }), d_e = nn(function(b) {
  45411. var w = Co(b), A = ar(b, aA);
  45412. return w = typeof w == "function" ? w : n, w && A.pop(), A.length && A[0] === b[0] ? X$(A, n, w) : [];
  45413. });
  45414. function h_e(b, w) {
  45415. return b == null ? "" : uye.call(b, w);
  45416. }
  45417. function Co(b) {
  45418. var w = b == null ? 0 : b.length;
  45419. return w ? b[w - 1] : n;
  45420. }
  45421. function p_e(b, w, A) {
  45422. var L = b == null ? 0 : b.length;
  45423. if (!L)
  45424. return -1;
  45425. var G = L;
  45426. return A !== n && (G = Yt(A), G = G < 0 ? Hr(L + G, 0) : Mi(G, L - 1)), w === w ? Z0e(b, w, G) : U1(b, bz, G, !0);
  45427. }
  45428. function v_e(b, w) {
  45429. return b && b.length ? Yz(b, Yt(w)) : n;
  45430. }
  45431. var g_e = nn(VV);
  45432. function VV(b, w) {
  45433. return b && b.length && w && w.length ? J$(b, w) : b;
  45434. }
  45435. function m_e(b, w, A) {
  45436. return b && b.length && w && w.length ? J$(b, w, wt(A, 2)) : b;
  45437. }
  45438. function y_e(b, w, A) {
  45439. return b && b.length && w && w.length ? J$(b, w, n, A) : b;
  45440. }
  45441. var b_e = su(function(b, w) {
  45442. var A = b == null ? 0 : b.length, L = G$(b, w);
  45443. return Jz(b, ar(w, function(G) {
  45444. return lu(G, A) ? +G : G;
  45445. }).sort(uV)), L;
  45446. });
  45447. function __e(b, w) {
  45448. var A = [];
  45449. if (!(b && b.length))
  45450. return A;
  45451. var L = -1, G = [], X = b.length;
  45452. for (w = wt(w, 3); ++L < X; ) {
  45453. var J = b[L];
  45454. w(J, L, b) && (A.push(J), G.push(L));
  45455. }
  45456. return Jz(b, G), A;
  45457. }
  45458. function bA(b) {
  45459. return b == null ? b : hye.call(b);
  45460. }
  45461. function O_e(b, w, A) {
  45462. var L = b == null ? 0 : b.length;
  45463. return L ? (A && typeof A != "number" && Ui(b, w, A) ? (w = 0, A = L) : (w = w == null ? 0 : Yt(w), A = A === n ? L : Yt(A)), wo(b, w, A)) : [];
  45464. }
  45465. function S_e(b, w) {
  45466. return pO(b, w);
  45467. }
  45468. function x_e(b, w, A) {
  45469. return nA(b, w, wt(A, 2));
  45470. }
  45471. function w_e(b, w) {
  45472. var A = b == null ? 0 : b.length;
  45473. if (A) {
  45474. var L = pO(b, w);
  45475. if (L < A && bs(b[L], w))
  45476. return L;
  45477. }
  45478. return -1;
  45479. }
  45480. function C_e(b, w) {
  45481. return pO(b, w, !0);
  45482. }
  45483. function T_e(b, w, A) {
  45484. return nA(b, w, wt(A, 2), !0);
  45485. }
  45486. function P_e(b, w) {
  45487. var A = b == null ? 0 : b.length;
  45488. if (A) {
  45489. var L = pO(b, w, !0) - 1;
  45490. if (bs(b[L], w))
  45491. return L;
  45492. }
  45493. return -1;
  45494. }
  45495. function $_e(b) {
  45496. return b && b.length ? tV(b) : [];
  45497. }
  45498. function A_e(b, w) {
  45499. return b && b.length ? tV(b, wt(w, 2)) : [];
  45500. }
  45501. function E_e(b) {
  45502. var w = b == null ? 0 : b.length;
  45503. return w ? wo(b, 1, w) : [];
  45504. }
  45505. function M_e(b, w, A) {
  45506. return b && b.length ? (w = A || w === n ? 1 : Yt(w), wo(b, 0, w < 0 ? 0 : w)) : [];
  45507. }
  45508. function I_e(b, w, A) {
  45509. var L = b == null ? 0 : b.length;
  45510. return L ? (w = A || w === n ? 1 : Yt(w), w = L - w, wo(b, w < 0 ? 0 : w, L)) : [];
  45511. }
  45512. function D_e(b, w) {
  45513. return b && b.length ? vO(b, wt(w, 3), !1, !0) : [];
  45514. }
  45515. function R_e(b, w) {
  45516. return b && b.length ? vO(b, wt(w, 3)) : [];
  45517. }
  45518. var k_e = nn(function(b) {
  45519. return hc(hi(b, 1, Cr, !0));
  45520. }), L_e = nn(function(b) {
  45521. var w = Co(b);
  45522. return Cr(w) && (w = n), hc(hi(b, 1, Cr, !0), wt(w, 2));
  45523. }), N_e = nn(function(b) {
  45524. var w = Co(b);
  45525. return w = typeof w == "function" ? w : n, hc(hi(b, 1, Cr, !0), n, w);
  45526. });
  45527. function B_e(b) {
  45528. return b && b.length ? hc(b) : [];
  45529. }
  45530. function z_e(b, w) {
  45531. return b && b.length ? hc(b, wt(w, 2)) : [];
  45532. }
  45533. function V_e(b, w) {
  45534. return w = typeof w == "function" ? w : n, b && b.length ? hc(b, n, w) : [];
  45535. }
  45536. function _A(b) {
  45537. if (!(b && b.length))
  45538. return [];
  45539. var w = 0;
  45540. return b = lc(b, function(A) {
  45541. if (Cr(A))
  45542. return w = Hr(A.length, w), !0;
  45543. }), N$(w, function(A) {
  45544. return ar(b, R$(A));
  45545. });
  45546. }
  45547. function FV(b, w) {
  45548. if (!(b && b.length))
  45549. return [];
  45550. var A = _A(b);
  45551. return w == null ? A : ar(A, function(L) {
  45552. return Fa(w, n, L);
  45553. });
  45554. }
  45555. var F_e = nn(function(b, w) {
  45556. return Cr(b) ? o0(b, w) : [];
  45557. }), W_e = nn(function(b) {
  45558. return iA(lc(b, Cr));
  45559. }), Q_e = nn(function(b) {
  45560. var w = Co(b);
  45561. return Cr(w) && (w = n), iA(lc(b, Cr), wt(w, 2));
  45562. }), H_e = nn(function(b) {
  45563. var w = Co(b);
  45564. return w = typeof w == "function" ? w : n, iA(lc(b, Cr), n, w);
  45565. }), G_e = nn(_A);
  45566. function j_e(b, w) {
  45567. return aV(b || [], w || [], a0);
  45568. }
  45569. function Z_e(b, w) {
  45570. return aV(b || [], w || [], u0);
  45571. }
  45572. var U_e = nn(function(b) {
  45573. var w = b.length, A = w > 1 ? b[w - 1] : n;
  45574. return A = typeof A == "function" ? (b.pop(), A) : n, FV(b, A);
  45575. });
  45576. function WV(b) {
  45577. var w = Z(b);
  45578. return w.__chain__ = !0, w;
  45579. }
  45580. function X_e(b, w) {
  45581. return w(b), b;
  45582. }
  45583. function wO(b, w) {
  45584. return w(b);
  45585. }
  45586. var Y_e = su(function(b) {
  45587. var w = b.length, A = w ? b[0] : 0, L = this.__wrapped__, G = function(X) {
  45588. return G$(X, b);
  45589. };
  45590. return w > 1 || this.__actions__.length || !(L instanceof un) || !lu(A) ? this.thru(G) : (L = L.slice(A, +A + (w ? 1 : 0)), L.__actions__.push({
  45591. func: wO,
  45592. args: [G],
  45593. thisArg: n
  45594. }), new So(L, this.__chain__).thru(function(X) {
  45595. return w && !X.length && X.push(n), X;
  45596. }));
  45597. });
  45598. function q_e() {
  45599. return WV(this);
  45600. }
  45601. function K_e() {
  45602. return new So(this.value(), this.__chain__);
  45603. }
  45604. function J_e() {
  45605. this.__values__ === n && (this.__values__ = nF(this.value()));
  45606. var b = this.__index__ >= this.__values__.length, w = b ? n : this.__values__[this.__index__++];
  45607. return { done: b, value: w };
  45608. }
  45609. function e1e() {
  45610. return this;
  45611. }
  45612. function t1e(b) {
  45613. for (var w, A = this; A instanceof uO; ) {
  45614. var L = kV(A);
  45615. L.__index__ = 0, L.__values__ = n, w ? G.__wrapped__ = L : w = L;
  45616. var G = L;
  45617. A = A.__wrapped__;
  45618. }
  45619. return G.__wrapped__ = b, w;
  45620. }
  45621. function n1e() {
  45622. var b = this.__wrapped__;
  45623. if (b instanceof un) {
  45624. var w = b;
  45625. return this.__actions__.length && (w = new un(this)), w = w.reverse(), w.__actions__.push({
  45626. func: wO,
  45627. args: [bA],
  45628. thisArg: n
  45629. }), new So(w, this.__chain__);
  45630. }
  45631. return this.thru(bA);
  45632. }
  45633. function r1e() {
  45634. return iV(this.__wrapped__, this.__actions__);
  45635. }
  45636. var i1e = gO(function(b, w, A) {
  45637. Rn.call(b, A) ? ++b[A] : au(b, A, 1);
  45638. });
  45639. function a1e(b, w, A) {
  45640. var L = Ft(b) ? mz : Xye;
  45641. return A && Ui(b, w, A) && (w = n), L(b, wt(w, 3));
  45642. }
  45643. function o1e(b, w) {
  45644. var A = Ft(b) ? lc : Fz;
  45645. return A(b, wt(w, 3));
  45646. }
  45647. var s1e = vV(LV), l1e = vV(NV);
  45648. function u1e(b, w) {
  45649. return hi(CO(b, w), 1);
  45650. }
  45651. function c1e(b, w) {
  45652. return hi(CO(b, w), Q);
  45653. }
  45654. function f1e(b, w, A) {
  45655. return A = A === n ? 1 : Yt(A), hi(CO(b, w), A);
  45656. }
  45657. function QV(b, w) {
  45658. var A = Ft(b) ? _o : dc;
  45659. return A(b, wt(w, 3));
  45660. }
  45661. function HV(b, w) {
  45662. var A = Ft(b) ? E0e : Vz;
  45663. return A(b, wt(w, 3));
  45664. }
  45665. var d1e = gO(function(b, w, A) {
  45666. Rn.call(b, A) ? b[A].push(w) : au(b, A, [w]);
  45667. });
  45668. function h1e(b, w, A, L) {
  45669. b = ma(b) ? b : Bp(b), A = A && !L ? Yt(A) : 0;
  45670. var G = b.length;
  45671. return A < 0 && (A = Hr(G + A, 0)), EO(b) ? A <= G && b.indexOf(w, A) > -1 : !!G && Tp(b, w, A) > -1;
  45672. }
  45673. var p1e = nn(function(b, w, A) {
  45674. var L = -1, G = typeof w == "function", X = ma(b) ? Oe(b.length) : [];
  45675. return dc(b, function(J) {
  45676. X[++L] = G ? Fa(w, J, A) : s0(J, w, A);
  45677. }), X;
  45678. }), v1e = gO(function(b, w, A) {
  45679. au(b, A, w);
  45680. });
  45681. function CO(b, w) {
  45682. var A = Ft(b) ? ar : Zz;
  45683. return A(b, wt(w, 3));
  45684. }
  45685. function g1e(b, w, A, L) {
  45686. return b == null ? [] : (Ft(w) || (w = w == null ? [] : [w]), A = L ? n : A, Ft(A) || (A = A == null ? [] : [A]), qz(b, w, A));
  45687. }
  45688. var m1e = gO(function(b, w, A) {
  45689. b[A ? 0 : 1].push(w);
  45690. }, function() {
  45691. return [[], []];
  45692. });
  45693. function y1e(b, w, A) {
  45694. var L = Ft(b) ? I$ : Oz, G = arguments.length < 3;
  45695. return L(b, wt(w, 4), A, G, dc);
  45696. }
  45697. function b1e(b, w, A) {
  45698. var L = Ft(b) ? M0e : Oz, G = arguments.length < 3;
  45699. return L(b, wt(w, 4), A, G, Vz);
  45700. }
  45701. function _1e(b, w) {
  45702. var A = Ft(b) ? lc : Fz;
  45703. return A(b, $O(wt(w, 3)));
  45704. }
  45705. function O1e(b) {
  45706. var w = Ft(b) ? Lz : hbe;
  45707. return w(b);
  45708. }
  45709. function S1e(b, w, A) {
  45710. (A ? Ui(b, w, A) : w === n) ? w = 1 : w = Yt(w);
  45711. var L = Ft(b) ? Hye : pbe;
  45712. return L(b, w);
  45713. }
  45714. function x1e(b) {
  45715. var w = Ft(b) ? Gye : gbe;
  45716. return w(b);
  45717. }
  45718. function w1e(b) {
  45719. if (b == null)
  45720. return 0;
  45721. if (ma(b))
  45722. return EO(b) ? $p(b) : b.length;
  45723. var w = Ii(b);
  45724. return w == we || w == Ye ? b.size : q$(b).length;
  45725. }
  45726. function C1e(b, w, A) {
  45727. var L = Ft(b) ? D$ : mbe;
  45728. return A && Ui(b, w, A) && (w = n), L(b, wt(w, 3));
  45729. }
  45730. var T1e = nn(function(b, w) {
  45731. if (b == null)
  45732. return [];
  45733. var A = w.length;
  45734. return A > 1 && Ui(b, w[0], w[1]) ? w = [] : A > 2 && Ui(w[0], w[1], w[2]) && (w = [w[0]]), qz(b, hi(w, 1), []);
  45735. }), TO = oye || function() {
  45736. return di.Date.now();
  45737. };
  45738. function P1e(b, w) {
  45739. if (typeof w != "function")
  45740. throw new Oo(o);
  45741. return b = Yt(b), function() {
  45742. if (--b < 1)
  45743. return w.apply(this, arguments);
  45744. };
  45745. }
  45746. function GV(b, w, A) {
  45747. return w = A ? n : w, w = b && w == null ? b.length : w, ou(b, C, n, n, n, n, w);
  45748. }
  45749. function jV(b, w) {
  45750. var A;
  45751. if (typeof w != "function")
  45752. throw new Oo(o);
  45753. return b = Yt(b), function() {
  45754. return --b > 0 && (A = w.apply(this, arguments)), b <= 1 && (w = n), A;
  45755. };
  45756. }
  45757. var OA = nn(function(b, w, A) {
  45758. var L = g;
  45759. if (A.length) {
  45760. var G = cc(A, Lp(OA));
  45761. L |= S;
  45762. }
  45763. return ou(b, L, w, A, G);
  45764. }), ZV = nn(function(b, w, A) {
  45765. var L = g | m;
  45766. if (A.length) {
  45767. var G = cc(A, Lp(ZV));
  45768. L |= S;
  45769. }
  45770. return ou(w, L, b, A, G);
  45771. });
  45772. function UV(b, w, A) {
  45773. w = A ? n : w;
  45774. var L = ou(b, _, n, n, n, n, n, w);
  45775. return L.placeholder = UV.placeholder, L;
  45776. }
  45777. function XV(b, w, A) {
  45778. w = A ? n : w;
  45779. var L = ou(b, O, n, n, n, n, n, w);
  45780. return L.placeholder = XV.placeholder, L;
  45781. }
  45782. function YV(b, w, A) {
  45783. var L, G, X, J, ie, ge, Ee = 0, Ie = !1, Ne = !1, Ke = !0;
  45784. if (typeof b != "function")
  45785. throw new Oo(o);
  45786. w = To(w) || 0, cr(A) && (Ie = !!A.leading, Ne = "maxWait" in A, X = Ne ? Hr(To(A.maxWait) || 0, w) : X, Ke = "trailing" in A ? !!A.trailing : Ke);
  45787. function ht(Tr) {
  45788. var _s = L, fu = G;
  45789. return L = G = n, Ee = Tr, J = b.apply(fu, _s), J;
  45790. }
  45791. function Pt(Tr) {
  45792. return Ee = Tr, ie = d0(on, w), Ie ? ht(Tr) : J;
  45793. }
  45794. function Jt(Tr) {
  45795. var _s = Tr - ge, fu = Tr - Ee, vF = w - _s;
  45796. return Ne ? Mi(vF, X - fu) : vF;
  45797. }
  45798. function $t(Tr) {
  45799. var _s = Tr - ge, fu = Tr - Ee;
  45800. return ge === n || _s >= w || _s < 0 || Ne && fu >= X;
  45801. }
  45802. function on() {
  45803. var Tr = TO();
  45804. if ($t(Tr))
  45805. return pn(Tr);
  45806. ie = d0(on, Jt(Tr));
  45807. }
  45808. function pn(Tr) {
  45809. return ie = n, Ke && L ? ht(Tr) : (L = G = n, J);
  45810. }
  45811. function Ga() {
  45812. ie !== n && oV(ie), Ee = 0, L = ge = G = ie = n;
  45813. }
  45814. function Xi() {
  45815. return ie === n ? J : pn(TO());
  45816. }
  45817. function ja() {
  45818. var Tr = TO(), _s = $t(Tr);
  45819. if (L = arguments, G = this, ge = Tr, _s) {
  45820. if (ie === n)
  45821. return Pt(ge);
  45822. if (Ne)
  45823. return oV(ie), ie = d0(on, w), ht(ge);
  45824. }
  45825. return ie === n && (ie = d0(on, w)), J;
  45826. }
  45827. return ja.cancel = Ga, ja.flush = Xi, ja;
  45828. }
  45829. var $1e = nn(function(b, w) {
  45830. return zz(b, 1, w);
  45831. }), A1e = nn(function(b, w, A) {
  45832. return zz(b, To(w) || 0, A);
  45833. });
  45834. function E1e(b) {
  45835. return ou(b, $);
  45836. }
  45837. function PO(b, w) {
  45838. if (typeof b != "function" || w != null && typeof w != "function")
  45839. throw new Oo(o);
  45840. var A = function() {
  45841. var L = arguments, G = w ? w.apply(this, L) : L[0], X = A.cache;
  45842. if (X.has(G))
  45843. return X.get(G);
  45844. var J = b.apply(this, L);
  45845. return A.cache = X.set(G, J) || X, J;
  45846. };
  45847. return A.cache = new (PO.Cache || iu)(), A;
  45848. }
  45849. PO.Cache = iu;
  45850. function $O(b) {
  45851. if (typeof b != "function")
  45852. throw new Oo(o);
  45853. return function() {
  45854. var w = arguments;
  45855. switch (w.length) {
  45856. case 0:
  45857. return !b.call(this);
  45858. case 1:
  45859. return !b.call(this, w[0]);
  45860. case 2:
  45861. return !b.call(this, w[0], w[1]);
  45862. case 3:
  45863. return !b.call(this, w[0], w[1], w[2]);
  45864. }
  45865. return !b.apply(this, w);
  45866. };
  45867. }
  45868. function M1e(b) {
  45869. return jV(2, b);
  45870. }
  45871. var I1e = ybe(function(b, w) {
  45872. w = w.length == 1 && Ft(w[0]) ? ar(w[0], Wa(wt())) : ar(hi(w, 1), Wa(wt()));
  45873. var A = w.length;
  45874. return nn(function(L) {
  45875. for (var G = -1, X = Mi(L.length, A); ++G < X; )
  45876. L[G] = w[G].call(this, L[G]);
  45877. return Fa(b, this, L);
  45878. });
  45879. }), SA = nn(function(b, w) {
  45880. var A = cc(w, Lp(SA));
  45881. return ou(b, S, n, w, A);
  45882. }), qV = nn(function(b, w) {
  45883. var A = cc(w, Lp(qV));
  45884. return ou(b, x, n, w, A);
  45885. }), D1e = su(function(b, w) {
  45886. return ou(b, P, n, n, n, w);
  45887. });
  45888. function R1e(b, w) {
  45889. if (typeof b != "function")
  45890. throw new Oo(o);
  45891. return w = w === n ? w : Yt(w), nn(b, w);
  45892. }
  45893. function k1e(b, w) {
  45894. if (typeof b != "function")
  45895. throw new Oo(o);
  45896. return w = w == null ? 0 : Hr(Yt(w), 0), nn(function(A) {
  45897. var L = A[w], G = vc(A, 0, w);
  45898. return L && uc(G, L), Fa(b, this, G);
  45899. });
  45900. }
  45901. function L1e(b, w, A) {
  45902. var L = !0, G = !0;
  45903. if (typeof b != "function")
  45904. throw new Oo(o);
  45905. return cr(A) && (L = "leading" in A ? !!A.leading : L, G = "trailing" in A ? !!A.trailing : G), YV(b, w, {
  45906. leading: L,
  45907. maxWait: w,
  45908. trailing: G
  45909. });
  45910. }
  45911. function N1e(b) {
  45912. return GV(b, 1);
  45913. }
  45914. function B1e(b, w) {
  45915. return SA(oA(w), b);
  45916. }
  45917. function z1e() {
  45918. if (!arguments.length)
  45919. return [];
  45920. var b = arguments[0];
  45921. return Ft(b) ? b : [b];
  45922. }
  45923. function V1e(b) {
  45924. return xo(b, h);
  45925. }
  45926. function F1e(b, w) {
  45927. return w = typeof w == "function" ? w : n, xo(b, h, w);
  45928. }
  45929. function W1e(b) {
  45930. return xo(b, f | h);
  45931. }
  45932. function Q1e(b, w) {
  45933. return w = typeof w == "function" ? w : n, xo(b, f | h, w);
  45934. }
  45935. function H1e(b, w) {
  45936. return w == null || Bz(b, w, ri(w));
  45937. }
  45938. function bs(b, w) {
  45939. return b === w || b !== b && w !== w;
  45940. }
  45941. var G1e = _O(U$), j1e = _O(function(b, w) {
  45942. return b >= w;
  45943. }), td = Hz(/* @__PURE__ */ function() {
  45944. return arguments;
  45945. }()) ? Hz : function(b) {
  45946. return gr(b) && Rn.call(b, "callee") && !Ez.call(b, "callee");
  45947. }, Ft = Oe.isArray, Z1e = fz ? Wa(fz) : tbe;
  45948. function ma(b) {
  45949. return b != null && AO(b.length) && !uu(b);
  45950. }
  45951. function Cr(b) {
  45952. return gr(b) && ma(b);
  45953. }
  45954. function U1e(b) {
  45955. return b === !0 || b === !1 || gr(b) && Zi(b) == he;
  45956. }
  45957. var gc = lye || DA, X1e = dz ? Wa(dz) : nbe;
  45958. function Y1e(b) {
  45959. return gr(b) && b.nodeType === 1 && !h0(b);
  45960. }
  45961. function q1e(b) {
  45962. if (b == null)
  45963. return !0;
  45964. if (ma(b) && (Ft(b) || typeof b == "string" || typeof b.splice == "function" || gc(b) || Np(b) || td(b)))
  45965. return !b.length;
  45966. var w = Ii(b);
  45967. if (w == we || w == Ye)
  45968. return !b.size;
  45969. if (f0(b))
  45970. return !q$(b).length;
  45971. for (var A in b)
  45972. if (Rn.call(b, A))
  45973. return !1;
  45974. return !0;
  45975. }
  45976. function K1e(b, w) {
  45977. return l0(b, w);
  45978. }
  45979. function J1e(b, w, A) {
  45980. A = typeof A == "function" ? A : n;
  45981. var L = A ? A(b, w) : n;
  45982. return L === n ? l0(b, w, n, A) : !!L;
  45983. }
  45984. function xA(b) {
  45985. if (!gr(b))
  45986. return !1;
  45987. var w = Zi(b);
  45988. return w == K || w == q || typeof b.message == "string" && typeof b.name == "string" && !h0(b);
  45989. }
  45990. function eOe(b) {
  45991. return typeof b == "number" && Iz(b);
  45992. }
  45993. function uu(b) {
  45994. if (!cr(b))
  45995. return !1;
  45996. var w = Zi(b);
  45997. return w == de || w == xe || w == se || w == Pe;
  45998. }
  45999. function KV(b) {
  46000. return typeof b == "number" && b == Yt(b);
  46001. }
  46002. function AO(b) {
  46003. return typeof b == "number" && b > -1 && b % 1 == 0 && b <= W;
  46004. }
  46005. function cr(b) {
  46006. var w = typeof b;
  46007. return b != null && (w == "object" || w == "function");
  46008. }
  46009. function gr(b) {
  46010. return b != null && typeof b == "object";
  46011. }
  46012. var JV = hz ? Wa(hz) : ibe;
  46013. function tOe(b, w) {
  46014. return b === w || Y$(b, w, hA(w));
  46015. }
  46016. function nOe(b, w, A) {
  46017. return A = typeof A == "function" ? A : n, Y$(b, w, hA(w), A);
  46018. }
  46019. function rOe(b) {
  46020. return eF(b) && b != +b;
  46021. }
  46022. function iOe(b) {
  46023. if (Fbe(b))
  46024. throw new Lt(a);
  46025. return Gz(b);
  46026. }
  46027. function aOe(b) {
  46028. return b === null;
  46029. }
  46030. function oOe(b) {
  46031. return b == null;
  46032. }
  46033. function eF(b) {
  46034. return typeof b == "number" || gr(b) && Zi(b) == He;
  46035. }
  46036. function h0(b) {
  46037. if (!gr(b) || Zi(b) != Be)
  46038. return !1;
  46039. var w = nO(b);
  46040. if (w === null)
  46041. return !0;
  46042. var A = Rn.call(w, "constructor") && w.constructor;
  46043. return typeof A == "function" && A instanceof A && K1.call(A) == nye;
  46044. }
  46045. var wA = pz ? Wa(pz) : abe;
  46046. function sOe(b) {
  46047. return KV(b) && b >= -W && b <= W;
  46048. }
  46049. var tF = vz ? Wa(vz) : obe;
  46050. function EO(b) {
  46051. return typeof b == "string" || !Ft(b) && gr(b) && Zi(b) == xt;
  46052. }
  46053. function Ha(b) {
  46054. return typeof b == "symbol" || gr(b) && Zi(b) == It;
  46055. }
  46056. var Np = gz ? Wa(gz) : sbe;
  46057. function lOe(b) {
  46058. return b === n;
  46059. }
  46060. function uOe(b) {
  46061. return gr(b) && Ii(b) == Ae;
  46062. }
  46063. function cOe(b) {
  46064. return gr(b) && Zi(b) == gt;
  46065. }
  46066. var fOe = _O(K$), dOe = _O(function(b, w) {
  46067. return b <= w;
  46068. });
  46069. function nF(b) {
  46070. if (!b)
  46071. return [];
  46072. if (ma(b))
  46073. return EO(b) ? ms(b) : ga(b);
  46074. if (e0 && b[e0])
  46075. return H0e(b[e0]());
  46076. var w = Ii(b), A = w == we ? z$ : w == Ye ? X1 : Bp;
  46077. return A(b);
  46078. }
  46079. function cu(b) {
  46080. if (!b)
  46081. return b === 0 ? b : 0;
  46082. if (b = To(b), b === Q || b === -Q) {
  46083. var w = b < 0 ? -1 : 1;
  46084. return w * H;
  46085. }
  46086. return b === b ? b : 0;
  46087. }
  46088. function Yt(b) {
  46089. var w = cu(b), A = w % 1;
  46090. return w === w ? A ? w - A : w : 0;
  46091. }
  46092. function rF(b) {
  46093. return b ? qf(Yt(b), 0, j) : 0;
  46094. }
  46095. function To(b) {
  46096. if (typeof b == "number")
  46097. return b;
  46098. if (Ha(b))
  46099. return U;
  46100. if (cr(b)) {
  46101. var w = typeof b.valueOf == "function" ? b.valueOf() : b;
  46102. b = cr(w) ? w + "" : w;
  46103. }
  46104. if (typeof b != "string")
  46105. return b === 0 ? b : +b;
  46106. b = Sz(b);
  46107. var A = O$.test(b);
  46108. return A || x$.test(b) ? P0e(b.slice(2), A ? 2 : 8) : Q1.test(b) ? U : +b;
  46109. }
  46110. function iF(b) {
  46111. return al(b, ya(b));
  46112. }
  46113. function hOe(b) {
  46114. return b ? qf(Yt(b), -W, W) : b === 0 ? b : 0;
  46115. }
  46116. function An(b) {
  46117. return b == null ? "" : Qa(b);
  46118. }
  46119. var pOe = Rp(function(b, w) {
  46120. if (f0(w) || ma(w)) {
  46121. al(w, ri(w), b);
  46122. return;
  46123. }
  46124. for (var A in w)
  46125. Rn.call(w, A) && a0(b, A, w[A]);
  46126. }), aF = Rp(function(b, w) {
  46127. al(w, ya(w), b);
  46128. }), MO = Rp(function(b, w, A, L) {
  46129. al(w, ya(w), b, L);
  46130. }), vOe = Rp(function(b, w, A, L) {
  46131. al(w, ri(w), b, L);
  46132. }), gOe = su(G$);
  46133. function mOe(b, w) {
  46134. var A = Dp(b);
  46135. return w == null ? A : Nz(A, w);
  46136. }
  46137. var yOe = nn(function(b, w) {
  46138. b = Fn(b);
  46139. var A = -1, L = w.length, G = L > 2 ? w[2] : n;
  46140. for (G && Ui(w[0], w[1], G) && (L = 1); ++A < L; )
  46141. for (var X = w[A], J = ya(X), ie = -1, ge = J.length; ++ie < ge; ) {
  46142. var Ee = J[ie], Ie = b[Ee];
  46143. (Ie === n || bs(Ie, Ep[Ee]) && !Rn.call(b, Ee)) && (b[Ee] = X[Ee]);
  46144. }
  46145. return b;
  46146. }), bOe = nn(function(b) {
  46147. return b.push(n, SV), Fa(oF, n, b);
  46148. });
  46149. function _Oe(b, w) {
  46150. return yz(b, wt(w, 3), il);
  46151. }
  46152. function OOe(b, w) {
  46153. return yz(b, wt(w, 3), Z$);
  46154. }
  46155. function SOe(b, w) {
  46156. return b == null ? b : j$(b, wt(w, 3), ya);
  46157. }
  46158. function xOe(b, w) {
  46159. return b == null ? b : Wz(b, wt(w, 3), ya);
  46160. }
  46161. function wOe(b, w) {
  46162. return b && il(b, wt(w, 3));
  46163. }
  46164. function COe(b, w) {
  46165. return b && Z$(b, wt(w, 3));
  46166. }
  46167. function TOe(b) {
  46168. return b == null ? [] : dO(b, ri(b));
  46169. }
  46170. function POe(b) {
  46171. return b == null ? [] : dO(b, ya(b));
  46172. }
  46173. function CA(b, w, A) {
  46174. var L = b == null ? n : Kf(b, w);
  46175. return L === n ? A : L;
  46176. }
  46177. function $Oe(b, w) {
  46178. return b != null && CV(b, w, qye);
  46179. }
  46180. function TA(b, w) {
  46181. return b != null && CV(b, w, Kye);
  46182. }
  46183. var AOe = mV(function(b, w, A) {
  46184. w != null && typeof w.toString != "function" && (w = J1.call(w)), b[w] = A;
  46185. }, $A(ba)), EOe = mV(function(b, w, A) {
  46186. w != null && typeof w.toString != "function" && (w = J1.call(w)), Rn.call(b, w) ? b[w].push(A) : b[w] = [A];
  46187. }, wt), MOe = nn(s0);
  46188. function ri(b) {
  46189. return ma(b) ? kz(b) : q$(b);
  46190. }
  46191. function ya(b) {
  46192. return ma(b) ? kz(b, !0) : lbe(b);
  46193. }
  46194. function IOe(b, w) {
  46195. var A = {};
  46196. return w = wt(w, 3), il(b, function(L, G, X) {
  46197. au(A, w(L, G, X), L);
  46198. }), A;
  46199. }
  46200. function DOe(b, w) {
  46201. var A = {};
  46202. return w = wt(w, 3), il(b, function(L, G, X) {
  46203. au(A, G, w(L, G, X));
  46204. }), A;
  46205. }
  46206. var ROe = Rp(function(b, w, A) {
  46207. hO(b, w, A);
  46208. }), oF = Rp(function(b, w, A, L) {
  46209. hO(b, w, A, L);
  46210. }), kOe = su(function(b, w) {
  46211. var A = {};
  46212. if (b == null)
  46213. return A;
  46214. var L = !1;
  46215. w = ar(w, function(X) {
  46216. return X = pc(X, b), L || (L = X.length > 1), X;
  46217. }), al(b, fA(b), A), L && (A = xo(A, f | d | h, Abe));
  46218. for (var G = w.length; G--; )
  46219. rA(A, w[G]);
  46220. return A;
  46221. });
  46222. function LOe(b, w) {
  46223. return sF(b, $O(wt(w)));
  46224. }
  46225. var NOe = su(function(b, w) {
  46226. return b == null ? {} : cbe(b, w);
  46227. });
  46228. function sF(b, w) {
  46229. if (b == null)
  46230. return {};
  46231. var A = ar(fA(b), function(L) {
  46232. return [L];
  46233. });
  46234. return w = wt(w), Kz(b, A, function(L, G) {
  46235. return w(L, G[0]);
  46236. });
  46237. }
  46238. function BOe(b, w, A) {
  46239. w = pc(w, b);
  46240. var L = -1, G = w.length;
  46241. for (G || (G = 1, b = n); ++L < G; ) {
  46242. var X = b == null ? n : b[ol(w[L])];
  46243. X === n && (L = G, X = A), b = uu(X) ? X.call(b) : X;
  46244. }
  46245. return b;
  46246. }
  46247. function zOe(b, w, A) {
  46248. return b == null ? b : u0(b, w, A);
  46249. }
  46250. function VOe(b, w, A, L) {
  46251. return L = typeof L == "function" ? L : n, b == null ? b : u0(b, w, A, L);
  46252. }
  46253. var lF = _V(ri), uF = _V(ya);
  46254. function FOe(b, w, A) {
  46255. var L = Ft(b), G = L || gc(b) || Np(b);
  46256. if (w = wt(w, 4), A == null) {
  46257. var X = b && b.constructor;
  46258. G ? A = L ? new X() : [] : cr(b) ? A = uu(X) ? Dp(nO(b)) : {} : A = {};
  46259. }
  46260. return (G ? _o : il)(b, function(J, ie, ge) {
  46261. return w(A, J, ie, ge);
  46262. }), A;
  46263. }
  46264. function WOe(b, w) {
  46265. return b == null ? !0 : rA(b, w);
  46266. }
  46267. function QOe(b, w, A) {
  46268. return b == null ? b : rV(b, w, oA(A));
  46269. }
  46270. function HOe(b, w, A, L) {
  46271. return L = typeof L == "function" ? L : n, b == null ? b : rV(b, w, oA(A), L);
  46272. }
  46273. function Bp(b) {
  46274. return b == null ? [] : B$(b, ri(b));
  46275. }
  46276. function GOe(b) {
  46277. return b == null ? [] : B$(b, ya(b));
  46278. }
  46279. function jOe(b, w, A) {
  46280. return A === n && (A = w, w = n), A !== n && (A = To(A), A = A === A ? A : 0), w !== n && (w = To(w), w = w === w ? w : 0), qf(To(b), w, A);
  46281. }
  46282. function ZOe(b, w, A) {
  46283. return w = cu(w), A === n ? (A = w, w = 0) : A = cu(A), b = To(b), Jye(b, w, A);
  46284. }
  46285. function UOe(b, w, A) {
  46286. if (A && typeof A != "boolean" && Ui(b, w, A) && (w = A = n), A === n && (typeof w == "boolean" ? (A = w, w = n) : typeof b == "boolean" && (A = b, b = n)), b === n && w === n ? (b = 0, w = 1) : (b = cu(b), w === n ? (w = b, b = 0) : w = cu(w)), b > w) {
  46287. var L = b;
  46288. b = w, w = L;
  46289. }
  46290. if (A || b % 1 || w % 1) {
  46291. var G = Dz();
  46292. return Mi(b + G * (w - b + T0e("1e-" + ((G + "").length - 1))), w);
  46293. }
  46294. return eA(b, w);
  46295. }
  46296. var XOe = kp(function(b, w, A) {
  46297. return w = w.toLowerCase(), b + (A ? cF(w) : w);
  46298. });
  46299. function cF(b) {
  46300. return PA(An(b).toLowerCase());
  46301. }
  46302. function fF(b) {
  46303. return b = An(b), b && b.replace(Km, z0e).replace(g0e, "");
  46304. }
  46305. function YOe(b, w, A) {
  46306. b = An(b), w = Qa(w);
  46307. var L = b.length;
  46308. A = A === n ? L : qf(Yt(A), 0, L);
  46309. var G = A;
  46310. return A -= w.length, A >= 0 && b.slice(A, G) == w;
  46311. }
  46312. function qOe(b) {
  46313. return b = An(b), b && WB.test(b) ? b.replace(g$, V0e) : b;
  46314. }
  46315. function KOe(b) {
  46316. return b = An(b), b && m$.test(b) ? b.replace(Um, "\\$&") : b;
  46317. }
  46318. var JOe = kp(function(b, w, A) {
  46319. return b + (A ? "-" : "") + w.toLowerCase();
  46320. }), eSe = kp(function(b, w, A) {
  46321. return b + (A ? " " : "") + w.toLowerCase();
  46322. }), tSe = pV("toLowerCase");
  46323. function nSe(b, w, A) {
  46324. b = An(b), w = Yt(w);
  46325. var L = w ? $p(b) : 0;
  46326. if (!w || L >= w)
  46327. return b;
  46328. var G = (w - L) / 2;
  46329. return bO(oO(G), A) + b + bO(aO(G), A);
  46330. }
  46331. function rSe(b, w, A) {
  46332. b = An(b), w = Yt(w);
  46333. var L = w ? $p(b) : 0;
  46334. return w && L < w ? b + bO(w - L, A) : b;
  46335. }
  46336. function iSe(b, w, A) {
  46337. b = An(b), w = Yt(w);
  46338. var L = w ? $p(b) : 0;
  46339. return w && L < w ? bO(w - L, A) + b : b;
  46340. }
  46341. function aSe(b, w, A) {
  46342. return A || w == null ? w = 0 : w && (w = +w), dye(An(b).replace(Xm, ""), w || 0);
  46343. }
  46344. function oSe(b, w, A) {
  46345. return (A ? Ui(b, w, A) : w === n) ? w = 1 : w = Yt(w), tA(An(b), w);
  46346. }
  46347. function sSe() {
  46348. var b = arguments, w = An(b[0]);
  46349. return b.length < 3 ? w : w.replace(b[1], b[2]);
  46350. }
  46351. var lSe = kp(function(b, w, A) {
  46352. return b + (A ? "_" : "") + w.toLowerCase();
  46353. });
  46354. function uSe(b, w, A) {
  46355. return A && typeof A != "number" && Ui(b, w, A) && (w = A = n), A = A === n ? j : A >>> 0, A ? (b = An(b), b && (typeof w == "string" || w != null && !wA(w)) && (w = Qa(w), !w && Pp(b)) ? vc(ms(b), 0, A) : b.split(w, A)) : [];
  46356. }
  46357. var cSe = kp(function(b, w, A) {
  46358. return b + (A ? " " : "") + PA(w);
  46359. });
  46360. function fSe(b, w, A) {
  46361. return b = An(b), A = A == null ? 0 : qf(Yt(A), 0, b.length), w = Qa(w), b.slice(A, A + w.length) == w;
  46362. }
  46363. function dSe(b, w, A) {
  46364. var L = Z.templateSettings;
  46365. A && Ui(b, w, A) && (w = n), b = An(b), w = MO({}, w, L, OV);
  46366. var G = MO({}, w.imports, L.imports, OV), X = ri(G), J = B$(G, X), ie, ge, Ee = 0, Ie = w.interpolate || yo, Ne = "__p += '", Ke = V$(
  46367. (w.escape || yo).source + "|" + Ie.source + "|" + (Ie === Sp ? W1 : yo).source + "|" + (w.evaluate || yo).source + "|$",
  46368. "g"
  46369. ), ht = "//# sourceURL=" + (Rn.call(w, "sourceURL") ? (w.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++O0e + "]") + `
  46370. `;
  46371. b.replace(Ke, function($t, on, pn, Ga, Xi, ja) {
  46372. return pn || (pn = Ga), Ne += b.slice(Ee, ja).replace(G1, F0e), on && (ie = !0, Ne += `' +
  46373. __e(` + on + `) +
  46374. '`), Xi && (ge = !0, Ne += `';
  46375. ` + Xi + `;
  46376. __p += '`), pn && (Ne += `' +
  46377. ((__t = (` + pn + `)) == null ? '' : __t) +
  46378. '`), Ee = ja + $t.length, $t;
  46379. }), Ne += `';
  46380. `;
  46381. var Pt = Rn.call(w, "variable") && w.variable;
  46382. if (!Pt)
  46383. Ne = `with (obj) {
  46384. ` + Ne + `
  46385. }
  46386. `;
  46387. else if (Ym.test(Pt))
  46388. throw new Lt(s);
  46389. Ne = (ge ? Ne.replace(Gf, "") : Ne).replace(Gm, "$1").replace(sc, "$1;"), Ne = "function(" + (Pt || "obj") + `) {
  46390. ` + (Pt ? "" : `obj || (obj = {});
  46391. `) + "var __t, __p = ''" + (ie ? ", __e = _.escape" : "") + (ge ? `, __j = Array.prototype.join;
  46392. function print() { __p += __j.call(arguments, '') }
  46393. ` : `;
  46394. `) + Ne + `return __p
  46395. }`;
  46396. var Jt = hF(function() {
  46397. return Pn(X, ht + "return " + Ne).apply(n, J);
  46398. });
  46399. if (Jt.source = Ne, xA(Jt))
  46400. throw Jt;
  46401. return Jt;
  46402. }
  46403. function hSe(b) {
  46404. return An(b).toLowerCase();
  46405. }
  46406. function pSe(b) {
  46407. return An(b).toUpperCase();
  46408. }
  46409. function vSe(b, w, A) {
  46410. if (b = An(b), b && (A || w === n))
  46411. return Sz(b);
  46412. if (!b || !(w = Qa(w)))
  46413. return b;
  46414. var L = ms(b), G = ms(w), X = xz(L, G), J = wz(L, G) + 1;
  46415. return vc(L, X, J).join("");
  46416. }
  46417. function gSe(b, w, A) {
  46418. if (b = An(b), b && (A || w === n))
  46419. return b.slice(0, Tz(b) + 1);
  46420. if (!b || !(w = Qa(w)))
  46421. return b;
  46422. var L = ms(b), G = wz(L, ms(w)) + 1;
  46423. return vc(L, 0, G).join("");
  46424. }
  46425. function mSe(b, w, A) {
  46426. if (b = An(b), b && (A || w === n))
  46427. return b.replace(Xm, "");
  46428. if (!b || !(w = Qa(w)))
  46429. return b;
  46430. var L = ms(b), G = xz(L, ms(w));
  46431. return vc(L, G).join("");
  46432. }
  46433. function ySe(b, w) {
  46434. var A = T, L = E;
  46435. if (cr(w)) {
  46436. var G = "separator" in w ? w.separator : G;
  46437. A = "length" in w ? Yt(w.length) : A, L = "omission" in w ? Qa(w.omission) : L;
  46438. }
  46439. b = An(b);
  46440. var X = b.length;
  46441. if (Pp(b)) {
  46442. var J = ms(b);
  46443. X = J.length;
  46444. }
  46445. if (A >= X)
  46446. return b;
  46447. var ie = A - $p(L);
  46448. if (ie < 1)
  46449. return L;
  46450. var ge = J ? vc(J, 0, ie).join("") : b.slice(0, ie);
  46451. if (G === n)
  46452. return ge + L;
  46453. if (J && (ie += ge.length - ie), wA(G)) {
  46454. if (b.slice(ie).search(G)) {
  46455. var Ee, Ie = ge;
  46456. for (G.global || (G = V$(G.source, An(qm.exec(G)) + "g")), G.lastIndex = 0; Ee = G.exec(Ie); )
  46457. var Ne = Ee.index;
  46458. ge = ge.slice(0, Ne === n ? ie : Ne);
  46459. }
  46460. } else if (b.indexOf(Qa(G), ie) != ie) {
  46461. var Ke = ge.lastIndexOf(G);
  46462. Ke > -1 && (ge = ge.slice(0, Ke));
  46463. }
  46464. return ge + L;
  46465. }
  46466. function bSe(b) {
  46467. return b = An(b), b && FB.test(b) ? b.replace(jm, U0e) : b;
  46468. }
  46469. var _Se = kp(function(b, w, A) {
  46470. return b + (A ? " " : "") + w.toUpperCase();
  46471. }), PA = pV("toUpperCase");
  46472. function dF(b, w, A) {
  46473. return b = An(b), w = A ? n : w, w === n ? Q0e(b) ? q0e(b) : R0e(b) : b.match(w) || [];
  46474. }
  46475. var hF = nn(function(b, w) {
  46476. try {
  46477. return Fa(b, n, w);
  46478. } catch (A) {
  46479. return xA(A) ? A : new Lt(A);
  46480. }
  46481. }), OSe = su(function(b, w) {
  46482. return _o(w, function(A) {
  46483. A = ol(A), au(b, A, OA(b[A], b));
  46484. }), b;
  46485. });
  46486. function SSe(b) {
  46487. var w = b == null ? 0 : b.length, A = wt();
  46488. return b = w ? ar(b, function(L) {
  46489. if (typeof L[1] != "function")
  46490. throw new Oo(o);
  46491. return [A(L[0]), L[1]];
  46492. }) : [], nn(function(L) {
  46493. for (var G = -1; ++G < w; ) {
  46494. var X = b[G];
  46495. if (Fa(X[0], this, L))
  46496. return Fa(X[1], this, L);
  46497. }
  46498. });
  46499. }
  46500. function xSe(b) {
  46501. return Uye(xo(b, f));
  46502. }
  46503. function $A(b) {
  46504. return function() {
  46505. return b;
  46506. };
  46507. }
  46508. function wSe(b, w) {
  46509. return b == null || b !== b ? w : b;
  46510. }
  46511. var CSe = gV(), TSe = gV(!0);
  46512. function ba(b) {
  46513. return b;
  46514. }
  46515. function AA(b) {
  46516. return jz(typeof b == "function" ? b : xo(b, f));
  46517. }
  46518. function PSe(b) {
  46519. return Uz(xo(b, f));
  46520. }
  46521. function $Se(b, w) {
  46522. return Xz(b, xo(w, f));
  46523. }
  46524. var ASe = nn(function(b, w) {
  46525. return function(A) {
  46526. return s0(A, b, w);
  46527. };
  46528. }), ESe = nn(function(b, w) {
  46529. return function(A) {
  46530. return s0(b, A, w);
  46531. };
  46532. });
  46533. function EA(b, w, A) {
  46534. var L = ri(w), G = dO(w, L);
  46535. A == null && !(cr(w) && (G.length || !L.length)) && (A = w, w = b, b = this, G = dO(w, ri(w)));
  46536. var X = !(cr(A) && "chain" in A) || !!A.chain, J = uu(b);
  46537. return _o(G, function(ie) {
  46538. var ge = w[ie];
  46539. b[ie] = ge, J && (b.prototype[ie] = function() {
  46540. var Ee = this.__chain__;
  46541. if (X || Ee) {
  46542. var Ie = b(this.__wrapped__), Ne = Ie.__actions__ = ga(this.__actions__);
  46543. return Ne.push({ func: ge, args: arguments, thisArg: b }), Ie.__chain__ = Ee, Ie;
  46544. }
  46545. return ge.apply(b, uc([this.value()], arguments));
  46546. });
  46547. }), b;
  46548. }
  46549. function MSe() {
  46550. return di._ === this && (di._ = rye), this;
  46551. }
  46552. function MA() {
  46553. }
  46554. function ISe(b) {
  46555. return b = Yt(b), nn(function(w) {
  46556. return Yz(w, b);
  46557. });
  46558. }
  46559. var DSe = lA(ar), RSe = lA(mz), kSe = lA(D$);
  46560. function pF(b) {
  46561. return vA(b) ? R$(ol(b)) : fbe(b);
  46562. }
  46563. function LSe(b) {
  46564. return function(w) {
  46565. return b == null ? n : Kf(b, w);
  46566. };
  46567. }
  46568. var NSe = yV(), BSe = yV(!0);
  46569. function IA() {
  46570. return [];
  46571. }
  46572. function DA() {
  46573. return !1;
  46574. }
  46575. function zSe() {
  46576. return {};
  46577. }
  46578. function VSe() {
  46579. return "";
  46580. }
  46581. function FSe() {
  46582. return !0;
  46583. }
  46584. function WSe(b, w) {
  46585. if (b = Yt(b), b < 1 || b > W)
  46586. return [];
  46587. var A = j, L = Mi(b, j);
  46588. w = wt(w), b -= j;
  46589. for (var G = N$(L, w); ++A < b; )
  46590. w(A);
  46591. return G;
  46592. }
  46593. function QSe(b) {
  46594. return Ft(b) ? ar(b, ol) : Ha(b) ? [b] : ga(RV(An(b)));
  46595. }
  46596. function HSe(b) {
  46597. var w = ++tye;
  46598. return An(b) + w;
  46599. }
  46600. var GSe = yO(function(b, w) {
  46601. return b + w;
  46602. }, 0), jSe = uA("ceil"), ZSe = yO(function(b, w) {
  46603. return b / w;
  46604. }, 1), USe = uA("floor");
  46605. function XSe(b) {
  46606. return b && b.length ? fO(b, ba, U$) : n;
  46607. }
  46608. function YSe(b, w) {
  46609. return b && b.length ? fO(b, wt(w, 2), U$) : n;
  46610. }
  46611. function qSe(b) {
  46612. return _z(b, ba);
  46613. }
  46614. function KSe(b, w) {
  46615. return _z(b, wt(w, 2));
  46616. }
  46617. function JSe(b) {
  46618. return b && b.length ? fO(b, ba, K$) : n;
  46619. }
  46620. function exe(b, w) {
  46621. return b && b.length ? fO(b, wt(w, 2), K$) : n;
  46622. }
  46623. var txe = yO(function(b, w) {
  46624. return b * w;
  46625. }, 1), nxe = uA("round"), rxe = yO(function(b, w) {
  46626. return b - w;
  46627. }, 0);
  46628. function ixe(b) {
  46629. return b && b.length ? L$(b, ba) : 0;
  46630. }
  46631. function axe(b, w) {
  46632. return b && b.length ? L$(b, wt(w, 2)) : 0;
  46633. }
  46634. return Z.after = P1e, Z.ary = GV, Z.assign = pOe, Z.assignIn = aF, Z.assignInWith = MO, Z.assignWith = vOe, Z.at = gOe, Z.before = jV, Z.bind = OA, Z.bindAll = OSe, Z.bindKey = ZV, Z.castArray = z1e, Z.chain = WV, Z.chunk = Ube, Z.compact = Xbe, Z.concat = Ybe, Z.cond = SSe, Z.conforms = xSe, Z.constant = $A, Z.countBy = i1e, Z.create = mOe, Z.curry = UV, Z.curryRight = XV, Z.debounce = YV, Z.defaults = yOe, Z.defaultsDeep = bOe, Z.defer = $1e, Z.delay = A1e, Z.difference = qbe, Z.differenceBy = Kbe, Z.differenceWith = Jbe, Z.drop = e_e, Z.dropRight = t_e, Z.dropRightWhile = n_e, Z.dropWhile = r_e, Z.fill = i_e, Z.filter = o1e, Z.flatMap = u1e, Z.flatMapDeep = c1e, Z.flatMapDepth = f1e, Z.flatten = BV, Z.flattenDeep = a_e, Z.flattenDepth = o_e, Z.flip = E1e, Z.flow = CSe, Z.flowRight = TSe, Z.fromPairs = s_e, Z.functions = TOe, Z.functionsIn = POe, Z.groupBy = d1e, Z.initial = u_e, Z.intersection = c_e, Z.intersectionBy = f_e, Z.intersectionWith = d_e, Z.invert = AOe, Z.invertBy = EOe, Z.invokeMap = p1e, Z.iteratee = AA, Z.keyBy = v1e, Z.keys = ri, Z.keysIn = ya, Z.map = CO, Z.mapKeys = IOe, Z.mapValues = DOe, Z.matches = PSe, Z.matchesProperty = $Se, Z.memoize = PO, Z.merge = ROe, Z.mergeWith = oF, Z.method = ASe, Z.methodOf = ESe, Z.mixin = EA, Z.negate = $O, Z.nthArg = ISe, Z.omit = kOe, Z.omitBy = LOe, Z.once = M1e, Z.orderBy = g1e, Z.over = DSe, Z.overArgs = I1e, Z.overEvery = RSe, Z.overSome = kSe, Z.partial = SA, Z.partialRight = qV, Z.partition = m1e, Z.pick = NOe, Z.pickBy = sF, Z.property = pF, Z.propertyOf = LSe, Z.pull = g_e, Z.pullAll = VV, Z.pullAllBy = m_e, Z.pullAllWith = y_e, Z.pullAt = b_e, Z.range = NSe, Z.rangeRight = BSe, Z.rearg = D1e, Z.reject = _1e, Z.remove = __e, Z.rest = R1e, Z.reverse = bA, Z.sampleSize = S1e, Z.set = zOe, Z.setWith = VOe, Z.shuffle = x1e, Z.slice = O_e, Z.sortBy = T1e, Z.sortedUniq = $_e, Z.sortedUniqBy = A_e, Z.split = uSe, Z.spread = k1e, Z.tail = E_e, Z.take = M_e, Z.takeRight = I_e, Z.takeRightWhile = D_e, Z.takeWhile = R_e, Z.tap = X_e, Z.throttle = L1e, Z.thru = wO, Z.toArray = nF, Z.toPairs = lF, Z.toPairsIn = uF, Z.toPath = QSe, Z.toPlainObject = iF, Z.transform = FOe, Z.unary = N1e, Z.union = k_e, Z.unionBy = L_e, Z.unionWith = N_e, Z.uniq = B_e, Z.uniqBy = z_e, Z.uniqWith = V_e, Z.unset = WOe, Z.unzip = _A, Z.unzipWith = FV, Z.update = QOe, Z.updateWith = HOe, Z.values = Bp, Z.valuesIn = GOe, Z.without = F_e, Z.words = dF, Z.wrap = B1e, Z.xor = W_e, Z.xorBy = Q_e, Z.xorWith = H_e, Z.zip = G_e, Z.zipObject = j_e, Z.zipObjectDeep = Z_e, Z.zipWith = U_e, Z.entries = lF, Z.entriesIn = uF, Z.extend = aF, Z.extendWith = MO, EA(Z, Z), Z.add = GSe, Z.attempt = hF, Z.camelCase = XOe, Z.capitalize = cF, Z.ceil = jSe, Z.clamp = jOe, Z.clone = V1e, Z.cloneDeep = W1e, Z.cloneDeepWith = Q1e, Z.cloneWith = F1e, Z.conformsTo = H1e, Z.deburr = fF, Z.defaultTo = wSe, Z.divide = ZSe, Z.endsWith = YOe, Z.eq = bs, Z.escape = qOe, Z.escapeRegExp = KOe, Z.every = a1e, Z.find = s1e, Z.findIndex = LV, Z.findKey = _Oe, Z.findLast = l1e, Z.findLastIndex = NV, Z.findLastKey = OOe, Z.floor = USe, Z.forEach = QV, Z.forEachRight = HV, Z.forIn = SOe, Z.forInRight = xOe, Z.forOwn = wOe, Z.forOwnRight = COe, Z.get = CA, Z.gt = G1e, Z.gte = j1e, Z.has = $Oe, Z.hasIn = TA, Z.head = zV, Z.identity = ba, Z.includes = h1e, Z.indexOf = l_e, Z.inRange = ZOe, Z.invoke = MOe, Z.isArguments = td, Z.isArray = Ft, Z.isArrayBuffer = Z1e, Z.isArrayLike = ma, Z.isArrayLikeObject = Cr, Z.isBoolean = U1e, Z.isBuffer = gc, Z.isDate = X1e, Z.isElement = Y1e, Z.isEmpty = q1e, Z.isEqual = K1e, Z.isEqualWith = J1e, Z.isError = xA, Z.isFinite = eOe, Z.isFunction = uu, Z.isInteger = KV, Z.isLength = AO, Z.isMap = JV, Z.isMatch = tOe, Z.isMatchWith = nOe, Z.isNaN = rOe, Z.isNative = iOe, Z.isNil = oOe, Z.isNull = aOe, Z.isNumber = eF, Z.isObject = cr, Z.isObjectLike = gr, Z.isPlainObject = h0, Z.isRegExp = wA, Z.isSafeInteger = sOe, Z.isSet = tF, Z.isString = EO, Z.isSymbol = Ha, Z.isTypedArray = Np, Z.isUndefined = lOe, Z.isWeakMap = uOe, Z.isWeakSet = cOe, Z.join = h_e, Z.kebabCase = JOe, Z.last = Co, Z.lastIndexOf = p_e, Z.lowerCase = eSe, Z.lowerFirst = tSe, Z.lt = fOe, Z.lte = dOe, Z.max = XSe, Z.maxBy = YSe, Z.mean = qSe, Z.meanBy = KSe, Z.min = JSe, Z.minBy = exe, Z.stubArray = IA, Z.stubFalse = DA, Z.stubObject = zSe, Z.stubString = VSe, Z.stubTrue = FSe, Z.multiply = txe, Z.nth = v_e, Z.noConflict = MSe, Z.noop = MA, Z.now = TO, Z.pad = nSe, Z.padEnd = rSe, Z.padStart = iSe, Z.parseInt = aSe, Z.random = UOe, Z.reduce = y1e, Z.reduceRight = b1e, Z.repeat = oSe, Z.replace = sSe, Z.result = BOe, Z.round = nxe, Z.runInContext = pe, Z.sample = O1e, Z.size = w1e, Z.snakeCase = lSe, Z.some = C1e, Z.sortedIndex = S_e, Z.sortedIndexBy = x_e, Z.sortedIndexOf = w_e, Z.sortedLastIndex = C_e, Z.sortedLastIndexBy = T_e, Z.sortedLastIndexOf = P_e, Z.startCase = cSe, Z.startsWith = fSe, Z.subtract = rxe, Z.sum = ixe, Z.sumBy = axe, Z.template = dSe, Z.times = WSe, Z.toFinite = cu, Z.toInteger = Yt, Z.toLength = rF, Z.toLower = hSe, Z.toNumber = To, Z.toSafeInteger = hOe, Z.toString = An, Z.toUpper = pSe, Z.trim = vSe, Z.trimEnd = gSe, Z.trimStart = mSe, Z.truncate = ySe, Z.unescape = bSe, Z.uniqueId = HSe, Z.upperCase = _Se, Z.upperFirst = PA, Z.each = QV, Z.eachRight = HV, Z.first = zV, EA(Z, function() {
  46635. var b = {};
  46636. return il(Z, function(w, A) {
  46637. Rn.call(Z.prototype, A) || (b[A] = w);
  46638. }), b;
  46639. }(), { chain: !1 }), Z.VERSION = r, _o(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(b) {
  46640. Z[b].placeholder = Z;
  46641. }), _o(["drop", "take"], function(b, w) {
  46642. un.prototype[b] = function(A) {
  46643. A = A === n ? 1 : Hr(Yt(A), 0);
  46644. var L = this.__filtered__ && !w ? new un(this) : this.clone();
  46645. return L.__filtered__ ? L.__takeCount__ = Mi(A, L.__takeCount__) : L.__views__.push({
  46646. size: Mi(A, j),
  46647. type: b + (L.__dir__ < 0 ? "Right" : "")
  46648. }), L;
  46649. }, un.prototype[b + "Right"] = function(A) {
  46650. return this.reverse()[b](A).reverse();
  46651. };
  46652. }), _o(["filter", "map", "takeWhile"], function(b, w) {
  46653. var A = w + 1, L = A == N || A == B;
  46654. un.prototype[b] = function(G) {
  46655. var X = this.clone();
  46656. return X.__iteratees__.push({
  46657. iteratee: wt(G, 3),
  46658. type: A
  46659. }), X.__filtered__ = X.__filtered__ || L, X;
  46660. };
  46661. }), _o(["head", "last"], function(b, w) {
  46662. var A = "take" + (w ? "Right" : "");
  46663. un.prototype[b] = function() {
  46664. return this[A](1).value()[0];
  46665. };
  46666. }), _o(["initial", "tail"], function(b, w) {
  46667. var A = "drop" + (w ? "" : "Right");
  46668. un.prototype[b] = function() {
  46669. return this.__filtered__ ? new un(this) : this[A](1);
  46670. };
  46671. }), un.prototype.compact = function() {
  46672. return this.filter(ba);
  46673. }, un.prototype.find = function(b) {
  46674. return this.filter(b).head();
  46675. }, un.prototype.findLast = function(b) {
  46676. return this.reverse().find(b);
  46677. }, un.prototype.invokeMap = nn(function(b, w) {
  46678. return typeof b == "function" ? new un(this) : this.map(function(A) {
  46679. return s0(A, b, w);
  46680. });
  46681. }), un.prototype.reject = function(b) {
  46682. return this.filter($O(wt(b)));
  46683. }, un.prototype.slice = function(b, w) {
  46684. b = Yt(b);
  46685. var A = this;
  46686. return A.__filtered__ && (b > 0 || w < 0) ? new un(A) : (b < 0 ? A = A.takeRight(-b) : b && (A = A.drop(b)), w !== n && (w = Yt(w), A = w < 0 ? A.dropRight(-w) : A.take(w - b)), A);
  46687. }, un.prototype.takeRightWhile = function(b) {
  46688. return this.reverse().takeWhile(b).reverse();
  46689. }, un.prototype.toArray = function() {
  46690. return this.take(j);
  46691. }, il(un.prototype, function(b, w) {
  46692. var A = /^(?:filter|find|map|reject)|While$/.test(w), L = /^(?:head|last)$/.test(w), G = Z[L ? "take" + (w == "last" ? "Right" : "") : w], X = L || /^find/.test(w);
  46693. G && (Z.prototype[w] = function() {
  46694. var J = this.__wrapped__, ie = L ? [1] : arguments, ge = J instanceof un, Ee = ie[0], Ie = ge || Ft(J), Ne = function(on) {
  46695. var pn = G.apply(Z, uc([on], ie));
  46696. return L && Ke ? pn[0] : pn;
  46697. };
  46698. Ie && A && typeof Ee == "function" && Ee.length != 1 && (ge = Ie = !1);
  46699. var Ke = this.__chain__, ht = !!this.__actions__.length, Pt = X && !Ke, Jt = ge && !ht;
  46700. if (!X && Ie) {
  46701. J = Jt ? J : new un(this);
  46702. var $t = b.apply(J, ie);
  46703. return $t.__actions__.push({ func: wO, args: [Ne], thisArg: n }), new So($t, Ke);
  46704. }
  46705. return Pt && Jt ? b.apply(this, ie) : ($t = this.thru(Ne), Pt ? L ? $t.value()[0] : $t.value() : $t);
  46706. });
  46707. }), _o(["pop", "push", "shift", "sort", "splice", "unshift"], function(b) {
  46708. var w = Y1[b], A = /^(?:push|sort|unshift)$/.test(b) ? "tap" : "thru", L = /^(?:pop|shift)$/.test(b);
  46709. Z.prototype[b] = function() {
  46710. var G = arguments;
  46711. if (L && !this.__chain__) {
  46712. var X = this.value();
  46713. return w.apply(Ft(X) ? X : [], G);
  46714. }
  46715. return this[A](function(J) {
  46716. return w.apply(Ft(J) ? J : [], G);
  46717. });
  46718. };
  46719. }), il(un.prototype, function(b, w) {
  46720. var A = Z[w];
  46721. if (A) {
  46722. var L = A.name + "";
  46723. Rn.call(Ip, L) || (Ip[L] = []), Ip[L].push({ name: w, func: A });
  46724. }
  46725. }), Ip[mO(n, m).name] = [{
  46726. name: "wrapper",
  46727. func: n
  46728. }], un.prototype.clone = bye, un.prototype.reverse = _ye, un.prototype.value = Oye, Z.prototype.at = Y_e, Z.prototype.chain = q_e, Z.prototype.commit = K_e, Z.prototype.next = J_e, Z.prototype.plant = t1e, Z.prototype.reverse = n1e, Z.prototype.toJSON = Z.prototype.valueOf = Z.prototype.value = r1e, Z.prototype.first = Z.prototype.head, e0 && (Z.prototype[e0] = e1e), Z;
  46729. }, Ap = K0e();
  46730. Zf ? ((Zf.exports = Ap)._ = Ap, A$._ = Ap) : di._ = Ap;
  46731. }).call(Su);
  46732. })(yC, yC.exports);
  46733. var hH = yC.exports;
  46734. const O9e = ae({
  46735. name: "DContainer",
  46736. props: {
  46737. style: Object,
  46738. props: Object
  46739. },
  46740. setup(t) {
  46741. const e = V(() => {
  46742. var i, a, o, s, l, u;
  46743. return {
  46744. width: ((i = t.props) == null ? void 0 : i.width) + "px",
  46745. height: ((a = t.props) == null ? void 0 : a.height) + "px",
  46746. transform: `rotateX(${((o = t.props) == null ? void 0 : o.rotateX) || 0}deg) rotateY(${((s = t.props) == null ? void 0 : s.rotateY) || 0}deg) rotateZ(${((l = t.props) == null ? void 0 : l.rotateZ) || 0}deg)`,
  46747. opacity: ((u = t.props) == null ? void 0 : u.opacity) / 100,
  46748. ...JR(
  46749. hH.pick(t.style, [
  46750. "boxShadow",
  46751. "webkitBoxReflect"
  46752. ])
  46753. )
  46754. };
  46755. }), n = V(() => {
  46756. var i, a, o, s;
  46757. return {
  46758. paddingLeft: ((i = t.props) == null ? void 0 : i.paddingLeft) + "px",
  46759. paddingRight: ((a = t.props) == null ? void 0 : a.paddingRight) + "px",
  46760. paddingTop: ((o = t.props) == null ? void 0 : o.paddingTop) + "px",
  46761. paddingBottom: ((s = t.props) == null ? void 0 : s.paddingBottom) + "px",
  46762. overflow: "hidden"
  46763. };
  46764. }), r = V(() => {
  46765. var o, s;
  46766. const { style: i = {} } = t, a = JR(
  46767. hH.pick(i, [
  46768. "background",
  46769. "backdropFilter",
  46770. "borderRadius",
  46771. "borderStyle",
  46772. "borderColor",
  46773. "borderWidth"
  46774. ])
  46775. );
  46776. return {
  46777. position: "absolute",
  46778. boxSizing: "border-box",
  46779. left: 0,
  46780. top: 0,
  46781. opacity: i.opacity / 100,
  46782. width: ((o = t.props) == null ? void 0 : o.width) + "px",
  46783. height: ((s = t.props) == null ? void 0 : s.height) + "px",
  46784. ...a
  46785. };
  46786. });
  46787. return {
  46788. getContentStyle: n,
  46789. getBackgroundStyle: r,
  46790. getContainetStyle: e
  46791. };
  46792. }
  46793. }), ui = (t, e) => {
  46794. const n = t.__vccOpts || t;
  46795. for (const [r, i] of e)
  46796. n[r] = i;
  46797. return n;
  46798. };
  46799. function S9e(t, e, n, r, i, a) {
  46800. return be(), Ue("div", Xn({
  46801. class: "component-contaier",
  46802. style: t.getContainetStyle
  46803. }, t.$attrs), [
  46804. tt("div", {
  46805. class: "component-background",
  46806. style: dr(t.getBackgroundStyle)
  46807. }, null, 4),
  46808. tt("div", {
  46809. class: "component-content",
  46810. style: dr(t.getContentStyle)
  46811. }, [
  46812. ln(t.$slots, "default", {}, void 0, !0)
  46813. ], 4)
  46814. ], 16);
  46815. }
  46816. const jv = /* @__PURE__ */ ui(O9e, [["render", S9e], ["__scopeId", "data-v-54953270"]]);
  46817. jv.install = (t) => (t.component(jv.name, jv), t);
  46818. const x9e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  46819. __proto__: null,
  46820. Container: jv,
  46821. default: jv
  46822. }, Symbol.toStringTag, { value: "Module" })), d5 = {
  46823. text: {
  46824. type: String,
  46825. required: !0
  46826. },
  46827. width: {
  46828. type: Number
  46829. },
  46830. height: {
  46831. type: Number
  46832. },
  46833. fontSize: {
  46834. type: Number
  46835. },
  46836. fontWeight: {
  46837. type: [Number, String]
  46838. },
  46839. color: {
  46840. type: String
  46841. },
  46842. backgroundColor: {
  46843. type: String
  46844. },
  46845. textAlign: {
  46846. type: String
  46847. },
  46848. direction: {
  46849. type: String
  46850. }
  46851. }, w9e = {
  46852. container: {
  46853. style: {
  46854. background: {
  46855. type: "none"
  46856. }
  46857. },
  46858. props: {
  46859. width: 300,
  46860. height: 80
  46861. }
  46862. },
  46863. props: {
  46864. text: "标题内容",
  46865. fontSize: 24,
  46866. color: "#fff",
  46867. fontWeight: "bold",
  46868. textAlign: "left",
  46869. direction: "horizontal"
  46870. }
  46871. }, C9e = ae({
  46872. name: "DTitle",
  46873. props: d5,
  46874. setup(t) {
  46875. return {
  46876. style: V(() => {
  46877. const n = JR(t), r = {};
  46878. return n.color.length > 9 && (r.backgroundImage = n.color, r.webkitBackgroundClip = "text", r.webkitTextFillColor = "transparent"), {
  46879. ...r,
  46880. ...n,
  46881. width: "100%",
  46882. height: "100%",
  46883. lineHeight: t.height + "px"
  46884. };
  46885. })
  46886. };
  46887. }
  46888. });
  46889. function T9e(t, e, n, r, i, a) {
  46890. return be(), Ue("div", {
  46891. class: "cus-title",
  46892. style: dr(t.style)
  46893. }, xi(t.text), 5);
  46894. }
  46895. const Zv = /* @__PURE__ */ ui(C9e, [["render", T9e]]), Woe = (t) => (JT("data-v-eace9702"), t = t(), e2(), t), P9e = {
  46896. key: 0,
  46897. class: "color-box"
  46898. }, $9e = { class: "img-preview" }, A9e = /* @__PURE__ */ Woe(() => /* @__PURE__ */ tt("div", { class: "img-empty" }, "未选择", -1)), E9e = /* @__PURE__ */ Woe(() => /* @__PURE__ */ tt("div", { class: "img-tip" }, "选择素材", -1)), M9e = /* @__PURE__ */ ae({
  46899. __name: "BackgroundSelect",
  46900. props: {
  46901. value: { default: () => ({
  46902. type: "none",
  46903. color: "",
  46904. image: "",
  46905. fillType: ""
  46906. }) },
  46907. filterOptions: {}
  46908. },
  46909. emits: ["update:value"],
  46910. setup(t, { emit: e }) {
  46911. const n = t, r = e, i = ee(n.value), a = [
  46912. { label: "无", value: "none" },
  46913. { label: "颜色", value: "color" },
  46914. { label: "图片", value: "image" }
  46915. ], o = V(() => n.filterOptions ? a.filter((l) => {
  46916. var u;
  46917. return !((u = n.filterOptions) != null && u.includes(l.value));
  46918. }) : a);
  46919. me(
  46920. () => i.value,
  46921. () => {
  46922. r("update:value", i.value);
  46923. },
  46924. {
  46925. deep: !0
  46926. }
  46927. );
  46928. const s = (l) => {
  46929. l === "color" && !i.value.color && (i.value.color = "#0B074BFF");
  46930. };
  46931. return (l, u) => (be(), Ue(Wt, null, [
  46932. D(z(Ca), {
  46933. value: i.value.type,
  46934. "onUpdate:value": u[0] || (u[0] = (c) => i.value.type = c),
  46935. style: { width: "100%" },
  46936. options: o.value,
  46937. onChange: s
  46938. }, null, 8, ["value", "options"]),
  46939. i.value.type === "color" ? (be(), Ue("div", P9e, [
  46940. D(z(Fv), {
  46941. modelValue: i.value.color,
  46942. "onUpdate:modelValue": u[1] || (u[1] = (c) => i.value.color = c),
  46943. "color-format": "hex",
  46944. "show-alpha": "",
  46945. size: "small"
  46946. }, null, 8, ["modelValue"]),
  46947. D(z(p2), {
  46948. modelValue: i.value.color,
  46949. "onUpdate:modelValue": u[2] || (u[2] = (c) => i.value.color = c),
  46950. size: "small"
  46951. }, null, 8, ["modelValue"])
  46952. ])) : i.value.type === "image" ? (be(), Ue(Wt, { key: 1 }, [
  46953. D(z(mr), {
  46954. style: { "margin-top": "12px" },
  46955. placeholder: "图片地址",
  46956. value: i.value.image,
  46957. "onUpdate:value": u[3] || (u[3] = (c) => i.value.image = c)
  46958. }, null, 8, ["value"]),
  46959. tt("div", $9e, [
  46960. A9e,
  46961. D(z(Lc), {
  46962. src: i.value.image
  46963. }, null, 8, ["src"]),
  46964. E9e
  46965. ]),
  46966. D(z(yne), {
  46967. modelValue: i.value.fillType,
  46968. "onUpdate:modelValue": u[4] || (u[4] = (c) => i.value.fillType = c)
  46969. }, {
  46970. default: ke(() => [
  46971. D(z(By), { value: "cover" }, {
  46972. default: ke(() => [
  46973. On("填充")
  46974. ]),
  46975. _: 1
  46976. }),
  46977. D(z(By), { value: "contain" }, {
  46978. default: ke(() => [
  46979. On("适应")
  46980. ]),
  46981. _: 1
  46982. }),
  46983. D(z(By), { value: "stretch" }, {
  46984. default: ke(() => [
  46985. On("拉伸")
  46986. ]),
  46987. _: 1
  46988. })
  46989. ]),
  46990. _: 1
  46991. }, 8, ["modelValue"])
  46992. ], 64)) : Ot("", !0)
  46993. ], 64));
  46994. }
  46995. }), I9e = /* @__PURE__ */ ui(M9e, [["__scopeId", "data-v-eace9702"]]), D9e = /* @__PURE__ */ ae({
  46996. __name: "ColorSelect",
  46997. props: {
  46998. value: {},
  46999. gradient: { type: Boolean, default: !0 }
  47000. },
  47001. emits: ["update:value"],
  47002. setup(t, { emit: e }) {
  47003. var s, l;
  47004. const n = e, r = t, i = ee(((s = r.value) == null ? void 0 : s.length) <= 9 || !r.value ? "pure" : "gradient"), a = ee(r.value), o = ee(((l = r.value) == null ? void 0 : l.length) >= 9 ? r.value.slice(22).replace(")", "").split(",") : ["#4ba9ff", "#fff"]);
  47005. return me(
  47006. () => [i.value, a.value, o.value],
  47007. () => {
  47008. i.value === "pure" ? a.value = a.value.length > 9 ? "#FFFFFFFF" : a.value : a.value = `linear-gradient(90deg, ${o.value.join(",")})`, n("update:value", a.value);
  47009. },
  47010. {
  47011. deep: !0
  47012. }
  47013. ), me(
  47014. () => r.gradient,
  47015. (u) => {
  47016. u || (i.value = "pure", a.value = a.value.length > 9 ? "#FFFFFFFF" : a.value);
  47017. }
  47018. ), (u, c) => (be(), Ue(Wt, null, [
  47019. u.gradient ? (be(), Je(z(yne), {
  47020. key: 0,
  47021. modelValue: i.value,
  47022. "onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
  47023. size: "small",
  47024. style: { width: "100%" }
  47025. }, {
  47026. default: ke(() => [
  47027. D(z(By), { value: "pure" }, {
  47028. default: ke(() => [
  47029. On("单色")
  47030. ]),
  47031. _: 1
  47032. }),
  47033. D(z(By), { value: "gradient" }, {
  47034. default: ke(() => [
  47035. On("渐变色")
  47036. ]),
  47037. _: 1
  47038. })
  47039. ]),
  47040. _: 1
  47041. }, 8, ["modelValue"])) : Ot("", !0),
  47042. i.value === "pure" ? (be(), Ue("div", {
  47043. key: 1,
  47044. class: "color-box",
  47045. style: dr({ marginTop: u.gradient ? "12px" : "0" })
  47046. }, [
  47047. D(z(Fv), {
  47048. modelValue: a.value,
  47049. "onUpdate:modelValue": c[1] || (c[1] = (f) => a.value = f),
  47050. "color-format": "hex",
  47051. "show-alpha": "",
  47052. size: "small"
  47053. }, null, 8, ["modelValue"]),
  47054. D(z(p2), {
  47055. modelValue: a.value,
  47056. "onUpdate:modelValue": c[2] || (c[2] = (f) => a.value = f),
  47057. size: "small"
  47058. }, null, 8, ["modelValue"])
  47059. ], 4)) : i.value === "gradient" ? (be(), Ue("div", {
  47060. key: 2,
  47061. class: "gradient-box",
  47062. style: dr({ background: a.value })
  47063. }, [
  47064. D(z(Fv), {
  47065. modelValue: o.value[0],
  47066. "onUpdate:modelValue": c[3] || (c[3] = (f) => o.value[0] = f),
  47067. "color-format": "hex",
  47068. "show-alpha": "",
  47069. size: "small"
  47070. }, null, 8, ["modelValue"]),
  47071. D(z(Fv), {
  47072. modelValue: o.value[1],
  47073. "onUpdate:modelValue": c[4] || (c[4] = (f) => o.value[1] = f),
  47074. "color-format": "hex",
  47075. "show-alpha": "",
  47076. size: "small"
  47077. }, null, 8, ["modelValue"])
  47078. ], 4)) : Ot("", !0)
  47079. ], 64));
  47080. }
  47081. }), R9e = /* @__PURE__ */ ui(D9e, [["__scopeId", "data-v-d5768739"]]), bC = [
  47082. {
  47083. name: "清新",
  47084. color: ["#00a8e1", "#99cc00", "#e30039", "#fcd300", "#800080"]
  47085. },
  47086. {
  47087. name: "复古",
  47088. color: ["#FFA69E", "#FAE3D9", "#B8F2E6", "#56E39F", "#3A837D"]
  47089. },
  47090. {
  47091. name: "商务",
  47092. color: ["#194f97", "#555555", "#bd6b08", "#00686b", "#c82d31"]
  47093. },
  47094. {
  47095. name: "经典",
  47096. color: ["#002c53", "#ffa510", "#0c84c6", "#ffffff", "#f74d4d"]
  47097. },
  47098. {
  47099. name: "怀旧",
  47100. color: ["#3b6291", "#943c39", "#779043", "#624c7c", "#388498"]
  47101. }
  47102. ], k9e = {
  47103. // 调色盘-预设颜色
  47104. color: bC[0].color,
  47105. // 标题
  47106. title: {
  47107. show: !0,
  47108. left: "center",
  47109. top: 8,
  47110. textStyle: {
  47111. color: "#FFFFFFFF",
  47112. fontSize: 16,
  47113. fontWeight: "normal"
  47114. }
  47115. },
  47116. // 图例
  47117. legend: {
  47118. show: !0,
  47119. textStyle: {
  47120. color: "#FFFFFFFF"
  47121. },
  47122. top: 32,
  47123. bottom: "auto",
  47124. left: "center",
  47125. right: "auto"
  47126. },
  47127. // 布局
  47128. grid: {
  47129. bottom: 34,
  47130. right: 20,
  47131. left: 20,
  47132. top: 60
  47133. },
  47134. // x轴
  47135. xAxis: {
  47136. type: "category",
  47137. name: "",
  47138. nameLocation: "middle",
  47139. nameTruncate: {
  47140. ellipsis: "...",
  47141. maxWidth: 80
  47142. },
  47143. nameTextStyle: {
  47144. color: "#FFFFFFFF",
  47145. fontSize: 12,
  47146. fontWeight: "normal",
  47147. fontStyle: "normal"
  47148. },
  47149. axisLabel: {
  47150. show: !0,
  47151. color: "#9fadbf",
  47152. fontSize: 12,
  47153. fontWeight: "normal",
  47154. fontStyle: "normal"
  47155. },
  47156. axisLine: {
  47157. show: !0,
  47158. lineStyle: {
  47159. width: 1
  47160. }
  47161. },
  47162. axisTick: {
  47163. show: !0,
  47164. lineStyle: {
  47165. width: 1,
  47166. color: "#ccc"
  47167. }
  47168. }
  47169. },
  47170. // y轴
  47171. yAxis: {
  47172. splitLine: {
  47173. show: !0,
  47174. lineStyle: {
  47175. type: "dashed",
  47176. color: "#36485f"
  47177. }
  47178. },
  47179. type: "value",
  47180. name: "",
  47181. nameLocation: "middle",
  47182. nameTruncate: {
  47183. ellipsis: "...",
  47184. maxWidth: 80
  47185. },
  47186. nameTextStyle: {
  47187. color: "#FFFFFFFF",
  47188. fontSize: 12,
  47189. fontWeight: "normal",
  47190. fontStyle: "normal"
  47191. },
  47192. axisLabel: {
  47193. show: !0,
  47194. color: "#9fadbf",
  47195. fontSize: 12,
  47196. fontWeight: "normal",
  47197. fontStyle: "normal",
  47198. rotate: 0
  47199. },
  47200. axisLine: {
  47201. show: !1,
  47202. lineStyle: {
  47203. width: 1,
  47204. color: "#ccc"
  47205. }
  47206. },
  47207. axisTick: {
  47208. show: !1,
  47209. lineStyle: {
  47210. width: 1,
  47211. color: "#ccc"
  47212. }
  47213. }
  47214. },
  47215. // 提示
  47216. tooltip: {
  47217. show: !0,
  47218. trigger: "axis",
  47219. formatter: "{b} {c}",
  47220. // valueFormatter: "(value, dataIndex) => value",
  47221. axisPointer: {
  47222. type: "line"
  47223. },
  47224. textStyle: {
  47225. color: "#000000FF",
  47226. fontSize: 12,
  47227. fontWeight: "normal",
  47228. fontStyle: "normal"
  47229. },
  47230. padding: 10,
  47231. borderWidth: 1,
  47232. borderColor: "#ccc",
  47233. borderRadius: 4,
  47234. backgroundColor: "#FFFFFFFF",
  47235. extraCssText: ""
  47236. }
  47237. }, L9e = { class: "color-list" }, N9e = { class: "del-btn" }, B9e = /* @__PURE__ */ ae({
  47238. __name: "ColorScheme",
  47239. props: {
  47240. value: {
  47241. type: Array,
  47242. default: () => []
  47243. }
  47244. },
  47245. emits: ["update:value"],
  47246. setup(t, { emit: e }) {
  47247. const n = t, r = bC.map((d) => d.color.join(",")), i = e, a = ee(r.includes(n.value.join(",")) ? n.value.join(",") : "custom"), o = ee(n.value), s = ee();
  47248. function l(d) {
  47249. d === "custom" || (o.value = d.split(","), i("update:value", d.split(",")));
  47250. }
  47251. const u = () => {
  47252. var d;
  47253. (d = s.value) == null || d.show();
  47254. };
  47255. function c(d) {
  47256. o.value.push(d), a.value = "custom", i("update:value", o.value);
  47257. }
  47258. const f = (d) => {
  47259. o.value.splice(d, 1), a.value = "custom", i("update:value", o.value);
  47260. };
  47261. return (d, h) => (be(), Ue("div", null, [
  47262. D(z(Ca), {
  47263. value: a.value,
  47264. "onUpdate:value": h[0] || (h[0] = (p) => a.value = p),
  47265. size: "small",
  47266. style: { width: "100%" },
  47267. onChange: l
  47268. }, {
  47269. default: ke(() => [
  47270. (be(!0), Ue(Wt, null, hh(z(bC), (p) => (be(), Je(z(Ev), {
  47271. key: p.name,
  47272. value: p.color.join(",")
  47273. }, {
  47274. default: ke(() => [
  47275. (be(!0), Ue(Wt, null, hh(p.color.slice(0, 5), (v) => (be(), Ue("span", {
  47276. class: "color-block",
  47277. key: v,
  47278. style: dr({ background: v })
  47279. }, null, 4))), 128)),
  47280. On(" " + xi(p.name), 1)
  47281. ]),
  47282. _: 2
  47283. }, 1032, ["value"]))), 128)),
  47284. D(z(Ev), { value: "custom" }, {
  47285. default: ke(() => [
  47286. On("自定义组合")
  47287. ]),
  47288. _: 1
  47289. })
  47290. ]),
  47291. _: 1
  47292. }, 8, ["value"]),
  47293. tt("div", L9e, [
  47294. (be(!0), Ue(Wt, null, hh(o.value, (p, v) => (be(), Ue("span", {
  47295. class: "color-block",
  47296. key: v,
  47297. style: dr({ background: p })
  47298. }, [
  47299. tt("span", N9e, [
  47300. D(z(cs), {
  47301. onClick: (g) => f(v)
  47302. }, null, 8, ["onClick"])
  47303. ])
  47304. ], 4))), 128)),
  47305. tt("span", {
  47306. class: "color-block cus-btn",
  47307. onClick: u
  47308. }, [
  47309. D(z(j2))
  47310. ]),
  47311. D(z(Fv), {
  47312. ref_key: "colorPickerRef",
  47313. ref: s,
  47314. style: { width: "0", height: "0", opacity: "0" },
  47315. onChange: c
  47316. }, null, 512)
  47317. ])
  47318. ]));
  47319. }
  47320. }), z9e = /* @__PURE__ */ ui(B9e, [["__scopeId", "data-v-b29b1b78"]]), V9e = { class: "position" }, F9e = /* @__PURE__ */ ae({
  47321. __name: "Position",
  47322. props: {
  47323. value: {},
  47324. type: { default: "line" }
  47325. },
  47326. emits: ["update:value"],
  47327. setup(t) {
  47328. return (e, n) => (be(), Ue("div", V9e, [
  47329. e.type === "line" ? (be(), Je(z(Fh), {
  47330. key: 0,
  47331. value: e.value,
  47332. onChange: n[0] || (n[0] = (r) => e.$emit("update:value", r.target.value))
  47333. }, {
  47334. default: ke(() => [
  47335. D(z(_l), { value: "left" }, {
  47336. default: ke(() => [
  47337. D(z(U8))
  47338. ]),
  47339. _: 1
  47340. }),
  47341. D(z(_l), { value: "center" }, {
  47342. default: ke(() => [
  47343. D(z(Z8))
  47344. ]),
  47345. _: 1
  47346. }),
  47347. D(z(_l), { value: "right" }, {
  47348. default: ke(() => [
  47349. D(z(X8))
  47350. ]),
  47351. _: 1
  47352. })
  47353. ]),
  47354. _: 1
  47355. }, 8, ["value"])) : e.type === "round" ? (be(), Je(z(Fh), {
  47356. key: 1,
  47357. value: e.value,
  47358. onChange: n[1] || (n[1] = (r) => e.$emit("update:value", r.target.value))
  47359. }, {
  47360. default: ke(() => [
  47361. D(z(_l), { value: "top" }, {
  47362. default: ke(() => [
  47363. D(z(e5))
  47364. ]),
  47365. _: 1
  47366. }),
  47367. D(z(_l), { value: "bottom" }, {
  47368. default: ke(() => [
  47369. D(z(q8))
  47370. ]),
  47371. _: 1
  47372. }),
  47373. D(z(_l), { value: "left" }, {
  47374. default: ke(() => [
  47375. D(z(K8))
  47376. ]),
  47377. _: 1
  47378. }),
  47379. D(z(_l), { value: "right" }, {
  47380. default: ke(() => [
  47381. D(z(J8))
  47382. ]),
  47383. _: 1
  47384. })
  47385. ]),
  47386. _: 1
  47387. }, 8, ["value"])) : Ot("", !0)
  47388. ]));
  47389. }
  47390. }), W9e = /* @__PURE__ */ ui(F9e, [["__scopeId", "data-v-a4b8591a"]]), Q9e = { class: "font-style" }, H9e = { class: "cus-btn" }, G9e = /* @__PURE__ */ ae({
  47391. __name: "FontStyle",
  47392. props: {
  47393. value: {}
  47394. },
  47395. emits: ["update:value"],
  47396. setup(t, { emit: e }) {
  47397. var v, g, m, y;
  47398. const n = t, r = e, i = ee((v = n.value) == null ? void 0 : v.bold), a = ee((g = n.value) == null ? void 0 : g.italic), o = ee((m = n.value) == null ? void 0 : m.size), s = ee((y = n.value) == null ? void 0 : y.color), l = ee(), u = () => {
  47399. r("update:value", {
  47400. size: o.value,
  47401. bold: i.value,
  47402. italic: a.value,
  47403. color: s.value
  47404. });
  47405. }, c = () => {
  47406. i.value = !i.value, u();
  47407. }, f = () => {
  47408. a.value = !a.value, u();
  47409. };
  47410. function d(_) {
  47411. s.value = _, u();
  47412. }
  47413. function h(_) {
  47414. o.value = _, u();
  47415. }
  47416. const p = () => {
  47417. var _;
  47418. (_ = l.value) == null || _.show();
  47419. };
  47420. return (_, O) => (be(), Ue("div", Q9e, [
  47421. D(z(Vi), {
  47422. size: "small",
  47423. onClick: p
  47424. }, {
  47425. default: ke(() => [
  47426. tt("span", H9e, [
  47427. D(z(t5)),
  47428. tt("div", {
  47429. class: "color-block",
  47430. style: dr({ background: s.value })
  47431. }, null, 4),
  47432. D(z(Fv), {
  47433. ref_key: "colorPickerRef",
  47434. ref: l,
  47435. style: { width: "0", height: "0", opacity: "0" },
  47436. value: s.value,
  47437. "onUpdate:value": O[0] || (O[0] = (S) => s.value = S),
  47438. onChange: d
  47439. }, null, 8, ["value"])
  47440. ])
  47441. ]),
  47442. _: 1
  47443. }),
  47444. D(z(Vi), {
  47445. size: "small",
  47446. onClick: c
  47447. }, {
  47448. default: ke(() => [
  47449. tt("span", {
  47450. class: Ge(["cus-btn", { "active-btn": i.value }])
  47451. }, [
  47452. D(z(Y8))
  47453. ], 2)
  47454. ]),
  47455. _: 1
  47456. }),
  47457. D(z(Vi), {
  47458. size: "small",
  47459. onClick: f
  47460. }, {
  47461. default: ke(() => [
  47462. tt("span", {
  47463. class: Ge(["cus-btn", { "active-btn": a.value }])
  47464. }, [
  47465. D(z(n5))
  47466. ], 2)
  47467. ]),
  47468. _: 1
  47469. }),
  47470. D(z(Y_), {
  47471. size: "small",
  47472. value: o.value,
  47473. min: 12,
  47474. step: 1,
  47475. precision: 0,
  47476. style: { width: "80px" },
  47477. onChange: h
  47478. }, {
  47479. addonAfter: ke(() => [
  47480. On("px")
  47481. ]),
  47482. _: 1
  47483. }, 8, ["value"])
  47484. ]));
  47485. }
  47486. }), j9e = /* @__PURE__ */ ui(G9e, [["__scopeId", "data-v-12e62bfe"]]), Z9e = { class: "cus-slider" }, U9e = /* @__PURE__ */ ae({
  47487. __name: "CusSlider",
  47488. props: {
  47489. value: {}
  47490. },
  47491. emits: ["update:value"],
  47492. setup(t) {
  47493. return (e, n) => (be(), Ue("div", Z9e, [
  47494. D(z(s7e), {
  47495. value: e.value,
  47496. onChange: n[0] || (n[0] = (r) => e.$emit("update:value", r)),
  47497. "tip-formatter": (r) => `${r}%`
  47498. }, null, 8, ["value", "tip-formatter"]),
  47499. D(z(Y_), {
  47500. value: e.value,
  47501. onChange: n[1] || (n[1] = (r) => e.$emit("update:value", r)),
  47502. "addon-after": "%"
  47503. }, null, 8, ["value"])
  47504. ]));
  47505. }
  47506. }), X9e = /* @__PURE__ */ ui(U9e, [["__scopeId", "data-v-2fe8fa98"]]), Y9e = ae({
  47507. name: "FmBorderRadius",
  47508. components: {
  47509. RadioGroup: Fh,
  47510. RadioButton: _l,
  47511. InputNumber: Y_,
  47512. Select: Ca,
  47513. RadiusUpleftOutlined: a5,
  47514. RadiusUprightOutlined: o5,
  47515. RadiusBottomleftOutlined: r5,
  47516. RadiusBottomrightOutlined: i5
  47517. },
  47518. props: {
  47519. value: {
  47520. type: Object,
  47521. default: () => ({})
  47522. }
  47523. },
  47524. emits: ["update:value"],
  47525. setup(t, { emit: e }) {
  47526. var r, i, a, o;
  47527. const n = zn({
  47528. type: t.value.type || "all",
  47529. value: t.value.type === "all" ? t.value.value : 0,
  47530. unit: t.value.unit || "px",
  47531. topLeft: typeof t.value.value == "object" ? (r = t.value.value) == null ? void 0 : r.topLeft : 0,
  47532. topRight: typeof t.value.value == "object" ? (i = t.value.value) == null ? void 0 : i.topRight : 0,
  47533. bottomLeft: typeof t.value.value == "object" ? (a = t.value.value) == null ? void 0 : a.bottomLeft : 0,
  47534. bottomRight: typeof t.value.value == "object" ? (o = t.value.value) == null ? void 0 : o.bottomRight : 0
  47535. });
  47536. return me(
  47537. () => n,
  47538. (s) => {
  47539. e("update:value", {
  47540. type: s.type,
  47541. value: s.type === "all" ? s.value : {
  47542. topLeft: s.topLeft,
  47543. topRight: s.topRight,
  47544. bottomLeft: s.bottomLeft,
  47545. bottomRight: s.bottomRight
  47546. },
  47547. unit: s.unit
  47548. });
  47549. },
  47550. {
  47551. deep: !0
  47552. }
  47553. ), {
  47554. radius: n,
  47555. unitOptions: [
  47556. { label: "px", value: "px" },
  47557. { label: "%", value: "%" }
  47558. ]
  47559. };
  47560. }
  47561. }), q9e = {
  47562. key: 0,
  47563. class: "all"
  47564. }, K9e = {
  47565. key: 1,
  47566. class: "custom"
  47567. };
  47568. function J9e(t, e, n, r, i, a) {
  47569. const o = br("RadioButton"), s = br("RadioGroup"), l = br("InputNumber"), u = br("Select"), c = br("RadiusUpleftOutlined"), f = br("RadiusUprightOutlined"), d = br("RadiusBottomleftOutlined"), h = br("RadiusBottomrightOutlined");
  47570. return be(), Ue("div", null, [
  47571. D(s, {
  47572. value: t.radius.type,
  47573. "onUpdate:value": e[0] || (e[0] = (p) => t.radius.type = p)
  47574. }, {
  47575. default: ke(() => [
  47576. D(o, { value: "all" }, {
  47577. default: ke(() => [
  47578. On("整体")
  47579. ]),
  47580. _: 1
  47581. }),
  47582. D(o, { value: "custom" }, {
  47583. default: ke(() => [
  47584. On("单个")
  47585. ]),
  47586. _: 1
  47587. })
  47588. ]),
  47589. _: 1
  47590. }, 8, ["value"]),
  47591. t.radius.type === "all" ? (be(), Ue("div", q9e, [
  47592. D(l, {
  47593. value: t.radius.value,
  47594. "onUpdate:value": e[1] || (e[1] = (p) => t.radius.value = p)
  47595. }, null, 8, ["value"]),
  47596. D(u, {
  47597. value: t.radius.unit,
  47598. "onUpdate:value": e[2] || (e[2] = (p) => t.radius.unit = p),
  47599. options: t.unitOptions
  47600. }, null, 8, ["value", "options"])
  47601. ])) : (be(), Ue("div", K9e, [
  47602. D(l, {
  47603. value: t.radius.topLeft,
  47604. "onUpdate:value": e[3] || (e[3] = (p) => t.radius.topLeft = p)
  47605. }, {
  47606. addonBefore: ke(() => [
  47607. D(c)
  47608. ]),
  47609. _: 1
  47610. }, 8, ["value"]),
  47611. D(l, {
  47612. value: t.radius.topRight,
  47613. "onUpdate:value": e[4] || (e[4] = (p) => t.radius.topRight = p)
  47614. }, {
  47615. addonBefore: ke(() => [
  47616. D(f)
  47617. ]),
  47618. _: 1
  47619. }, 8, ["value"]),
  47620. D(l, {
  47621. value: t.radius.bottomLeft,
  47622. "onUpdate:value": e[5] || (e[5] = (p) => t.radius.bottomLeft = p)
  47623. }, {
  47624. addonBefore: ke(() => [
  47625. D(d)
  47626. ]),
  47627. _: 1
  47628. }, 8, ["value"]),
  47629. D(l, {
  47630. value: t.radius.bottomRight,
  47631. "onUpdate:value": e[6] || (e[6] = (p) => t.radius.bottomRight = p)
  47632. }, {
  47633. addonBefore: ke(() => [
  47634. D(h)
  47635. ]),
  47636. _: 1
  47637. }, 8, ["value"]),
  47638. D(u, {
  47639. value: t.radius.unit,
  47640. "onUpdate:value": e[7] || (e[7] = (p) => t.radius.unit = p),
  47641. options: t.unitOptions
  47642. }, null, 8, ["value", "options"])
  47643. ]))
  47644. ]);
  47645. }
  47646. const eHe = /* @__PURE__ */ ui(Y9e, [["render", J9e], ["__scopeId", "data-v-da2b5cf6"]]), tHe = /* @__PURE__ */ ae({
  47647. __name: "CusFormItem",
  47648. props: {
  47649. item: {},
  47650. modelValue: {}
  47651. },
  47652. emits: ["update:modelValue"],
  47653. setup(t, { emit: e }) {
  47654. const n = t, r = e, i = ee(n.modelValue);
  47655. return me(
  47656. () => i.value,
  47657. () => {
  47658. r("update:modelValue", i.value);
  47659. },
  47660. { deep: !0 }
  47661. ), me(
  47662. () => n.modelValue,
  47663. (a) => {
  47664. z_(a, i.value) || (i.value = a);
  47665. }
  47666. ), (a, o) => (be(), Je(z(pae), {
  47667. label: a.item.type !== "divider" ? a.item.label : "",
  47668. name: a.item.prop,
  47669. rules: a.item.rules
  47670. }, {
  47671. default: ke(() => {
  47672. var s, l, u, c, f, d, h, p, v, g, m;
  47673. return [
  47674. a.item.type === "divider" ? (be(), Je(z(nFe), {
  47675. key: 0,
  47676. style: { margin: "0" }
  47677. }, {
  47678. default: ke(() => [
  47679. On(xi(a.item.label), 1)
  47680. ]),
  47681. _: 1
  47682. })) : a.item.type === "input" ? (be(), Je(z(mr), Xn({
  47683. key: 1,
  47684. value: i.value,
  47685. "onUpdate:value": o[0] || (o[0] = (y) => i.value = y)
  47686. }, (s = a.item) == null ? void 0 : s.fieldProps), null, 16, ["value"])) : a.item.type === "select" ? (be(), Je(z(Ca), Xn({
  47687. key: 2,
  47688. value: i.value,
  47689. "onUpdate:value": o[1] || (o[1] = (y) => i.value = y)
  47690. }, (l = a.item) == null ? void 0 : l.fieldProps), null, 16, ["value"])) : a.item.type === "inputNumber" ? (be(), Je(z(Y_), Xn({
  47691. key: 3,
  47692. value: i.value,
  47693. "onUpdate:value": o[2] || (o[2] = (y) => i.value = y)
  47694. }, (u = a.item) == null ? void 0 : u.fieldProps, { style: { width: "100%" } }), null, 16, ["value"])) : a.item.type === "image" ? (be(), Je(z(Lc), Xn({
  47695. key: 4,
  47696. value: i.value,
  47697. "onUpdate:value": o[3] || (o[3] = (y) => i.value = y)
  47698. }, (c = a.item) == null ? void 0 : c.fieldProps), null, 16, ["value"])) : a.item.type === "checkboxGroup" ? (be(), Je(z(dC), Xn({
  47699. key: 5,
  47700. value: i.value,
  47701. "onUpdate:value": o[4] || (o[4] = (y) => i.value = y)
  47702. }, (f = a.item) == null ? void 0 : f.fieldProps), null, 16, ["value"])) : a.item.type === "backgroundSelect" ? (be(), Je(I9e, Xn({
  47703. key: 6,
  47704. value: i.value,
  47705. "onUpdate:value": o[5] || (o[5] = (y) => i.value = y)
  47706. }, (d = a.item) == null ? void 0 : d.fieldProps), null, 16, ["value"])) : a.item.type === "colorSelect" ? (be(), Je(R9e, Xn({
  47707. key: 7,
  47708. value: i.value,
  47709. "onUpdate:value": o[6] || (o[6] = (y) => i.value = y)
  47710. }, (h = a.item) == null ? void 0 : h.fieldProps), null, 16, ["value"])) : a.item.type === "colorScheme" ? (be(), Je(z9e, Xn({
  47711. key: 8,
  47712. value: i.value,
  47713. "onUpdate:value": o[7] || (o[7] = (y) => i.value = y)
  47714. }, (p = a.item) == null ? void 0 : p.fieldProps), null, 16, ["value"])) : a.item.type === "radioGroup" ? (be(), Je(z(Fh), Xn({
  47715. key: 9,
  47716. value: i.value,
  47717. "onUpdate:value": o[8] || (o[8] = (y) => i.value = y),
  47718. size: "small"
  47719. }, (v = a.item) == null ? void 0 : v.fieldProps), null, 16, ["value"])) : a.item.type === "radioGroupButton" ? (be(), Je(z(Fh), {
  47720. key: 10,
  47721. value: i.value,
  47722. "onUpdate:value": o[9] || (o[9] = (y) => i.value = y),
  47723. size: "small"
  47724. }, {
  47725. default: ke(() => [
  47726. (be(!0), Ue(Wt, null, hh(a.item.fieldProps.options, (y) => (be(), Je(z(_l), {
  47727. key: y.value,
  47728. value: y.value
  47729. }, {
  47730. default: ke(() => [
  47731. On(xi(y.label), 1)
  47732. ]),
  47733. _: 2
  47734. }, 1032, ["value"]))), 128))
  47735. ]),
  47736. _: 1
  47737. }, 8, ["value"])) : a.item.type === "position" ? (be(), Je(W9e, Xn({
  47738. key: 11,
  47739. value: i.value,
  47740. "onUpdate:value": o[10] || (o[10] = (y) => i.value = y)
  47741. }, (g = a.item) == null ? void 0 : g.fieldProps), null, 16, ["value"])) : a.item.type === "fontStyle" ? (be(), Je(j9e, Xn({
  47742. key: 12,
  47743. value: i.value,
  47744. "onUpdate:value": o[11] || (o[11] = (y) => i.value = y)
  47745. }, (m = a.item) == null ? void 0 : m.fieldProps), null, 16, ["value"])) : a.item.type === "slider" ? (be(), Je(z(Lb), { key: 13 }, {
  47746. default: ke(() => {
  47747. var y;
  47748. return [
  47749. D(X9e, Xn({
  47750. value: i.value,
  47751. "onUpdate:value": o[12] || (o[12] = (_) => i.value = _)
  47752. }, (y = a.item) == null ? void 0 : y.fieldProps), null, 16, ["value"])
  47753. ];
  47754. }),
  47755. _: 1
  47756. })) : a.item.type === "boderRadiusSelect" ? (be(), Je(z(Lb), { key: 14 }, {
  47757. default: ke(() => {
  47758. var y;
  47759. return [
  47760. D(eHe, Xn({
  47761. value: i.value,
  47762. "onUpdate:value": o[13] || (o[13] = (_) => i.value = _)
  47763. }, (y = a.item) == null ? void 0 : y.fieldProps), null, 16, ["value"])
  47764. ];
  47765. }),
  47766. _: 1
  47767. })) : Ot("", !0),
  47768. a.item.tip ? (be(), Je(z(F2), {
  47769. key: 15,
  47770. title: a.item.tip
  47771. }, {
  47772. default: ke(() => [
  47773. D(z(V2), { style: { color: "#666" } })
  47774. ]),
  47775. _: 1
  47776. }, 8, ["title"])) : Ot("", !0)
  47777. ];
  47778. }),
  47779. _: 1
  47780. }, 8, ["label", "name", "rules"]));
  47781. }
  47782. }), nHe = /* @__PURE__ */ ui(tHe, [["__scopeId", "data-v-04c55003"]]), Sh = ae({
  47783. name: "DCusForm",
  47784. props: {
  47785. columns: {
  47786. type: Array,
  47787. default: () => []
  47788. },
  47789. formModel: {
  47790. type: Object,
  47791. default: () => ({})
  47792. }
  47793. },
  47794. emits: ["change"],
  47795. setup(t, { emit: e }) {
  47796. const n = ee({}), r = ee(), i = ee({}), a = V(() => t.columns.map((f) => ({
  47797. ...f,
  47798. rules: (f == null ? void 0 : f.rules) || []
  47799. }))), o = (f) => {
  47800. f == null || f.forEach((d) => {
  47801. var h;
  47802. if (d.type === "group")
  47803. o(d.children);
  47804. else if (d.type === "dependency") {
  47805. const p = (h = d.children) == null ? void 0 : h.call(
  47806. d,
  47807. mg(n.value, d.name || []),
  47808. n
  47809. );
  47810. o(p);
  47811. } else {
  47812. if (d.type === "divider") return;
  47813. const p = vn(t.formModel, d.prop);
  47814. n.value[d.prop] = d != null && d.valueToForm ? d.valueToForm(p, t.formModel) : p ?? d.defaultValue, d.format ? d.format(i, n.value[d.prop]) : i.value[d.prop] = p ?? d.defaultValue;
  47815. }
  47816. });
  47817. }, s = (f, d) => {
  47818. n.value[d.prop] = f, d.format ? d.format(i, f) : i.value[d.prop] = f, e("change", i.value);
  47819. }, l = (f) => {
  47820. var d;
  47821. switch (f.type) {
  47822. case "dependency": {
  47823. const h = (d = f.children) == null ? void 0 : d.call(
  47824. f,
  47825. mg(n.value, f.name || []),
  47826. n
  47827. );
  47828. return o(h), c(h);
  47829. }
  47830. case "group":
  47831. return u(f);
  47832. default:
  47833. return /* @__PURE__ */ React.createElement(
  47834. nHe,
  47835. {
  47836. key: f.prop,
  47837. item: f,
  47838. modelValue: n.value[f.prop],
  47839. "onUpdate:modelValue": (h) => {
  47840. s(h, f);
  47841. }
  47842. }
  47843. );
  47844. }
  47845. }, u = (f) => {
  47846. var d;
  47847. return /* @__PURE__ */ React.createElement(Wy, { style: { borderRadius: 0 } }, /* @__PURE__ */ React.createElement(fC, { style: { borderRadius: 0 }, key: f.prop, header: f.label }, (d = f.children) == null ? void 0 : d.map((h) => l(h))));
  47848. }, c = (f) => f.map((d) => {
  47849. switch (d.type) {
  47850. case "group":
  47851. return u(d);
  47852. default:
  47853. return l(d);
  47854. }
  47855. });
  47856. return me(
  47857. () => a.value,
  47858. (f) => {
  47859. f && o(f);
  47860. },
  47861. { immediate: !0 }
  47862. ), () => /* @__PURE__ */ React.createElement(
  47863. Gr,
  47864. {
  47865. model: n,
  47866. colon: !1,
  47867. "label-col": { span: 8 },
  47868. ref: r,
  47869. layout: "horizontal",
  47870. size: "small"
  47871. },
  47872. c(a.value)
  47873. );
  47874. }
  47875. });
  47876. Sh.install = (t) => (t.component(Sh.name, Sh), t);
  47877. const Qoe = /* @__PURE__ */ ae({
  47878. __name: "Config",
  47879. props: d5,
  47880. emits: ["change"],
  47881. setup(t, { emit: e }) {
  47882. const n = t, r = e, i = V(() => [
  47883. {
  47884. label: "内容",
  47885. prop: "text",
  47886. type: "input",
  47887. defaultValue: n.text
  47888. },
  47889. {
  47890. label: "字体",
  47891. prop: "fontSize",
  47892. type: "inputNumber",
  47893. defaultValue: n.fontSize
  47894. },
  47895. {
  47896. label: "颜色",
  47897. prop: "color",
  47898. type: "colorSelect",
  47899. defaultValue: n.color
  47900. },
  47901. {
  47902. label: "对齐",
  47903. prop: "textAlign",
  47904. type: "radioGroup",
  47905. defaultValue: n.textAlign,
  47906. fieldProps: {
  47907. options: [
  47908. { label: "左对齐", value: "left" },
  47909. { label: "居中", value: "center" },
  47910. { label: "右对齐", value: "right" }
  47911. ]
  47912. }
  47913. }
  47914. ]), a = (o) => {
  47915. r("change", o);
  47916. };
  47917. return (o, s) => (be(), Je(z(Sh), Xn({ columns: i.value }, o.$attrs, { onChange: a }), null, 16, ["columns"]));
  47918. }
  47919. });
  47920. Zv.Config = Qoe;
  47921. Zv.install = (t) => (t.component(Zv.name, Zv), t);
  47922. const rHe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  47923. __proto__: null,
  47924. Config: Qoe,
  47925. default: Zv,
  47926. defaultPropsValue: w9e,
  47927. titleProps: d5
  47928. }, Symbol.toStringTag, { value: "Module" }));
  47929. /*! *****************************************************************************
  47930. Copyright (c) Microsoft Corporation.
  47931. Permission to use, copy, modify, and/or distribute this software for any
  47932. purpose with or without fee is hereby granted.
  47933. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  47934. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  47935. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  47936. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  47937. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  47938. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  47939. PERFORMANCE OF THIS SOFTWARE.
  47940. ***************************************************************************** */
  47941. var ek = function(t, e) {
  47942. return ek = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
  47943. n.__proto__ = r;
  47944. } || function(n, r) {
  47945. for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
  47946. }, ek(t, e);
  47947. };
  47948. function le(t, e) {
  47949. if (typeof e != "function" && e !== null)
  47950. throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
  47951. ek(t, e);
  47952. function n() {
  47953. this.constructor = t;
  47954. }
  47955. t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
  47956. }
  47957. var iHe = /* @__PURE__ */ function() {
  47958. function t() {
  47959. this.firefox = !1, this.ie = !1, this.edge = !1, this.newEdge = !1, this.weChat = !1;
  47960. }
  47961. return t;
  47962. }(), aHe = /* @__PURE__ */ function() {
  47963. function t() {
  47964. this.browser = new iHe(), this.node = !1, this.wxa = !1, this.worker = !1, this.svgSupported = !1, this.touchEventsSupported = !1, this.pointerEventsSupported = !1, this.domSupported = !1, this.transformSupported = !1, this.transform3dSupported = !1, this.hasGlobalWindow = typeof window < "u";
  47965. }
  47966. return t;
  47967. }(), Rd = new aHe();
  47968. typeof wx == "object" && typeof wx.getSystemInfoSync == "function" ? (Rd.wxa = !0, Rd.touchEventsSupported = !0) : typeof document > "u" && typeof self < "u" ? Rd.worker = !0 : typeof navigator > "u" || navigator.userAgent.indexOf("Node.js") === 0 ? (Rd.node = !0, Rd.svgSupported = !0) : oHe(navigator.userAgent, Rd);
  47969. function oHe(t, e) {
  47970. var n = e.browser, r = t.match(/Firefox\/([\d.]+)/), i = t.match(/MSIE\s([\d.]+)/) || t.match(/Trident\/.+?rv:(([\d.]+))/), a = t.match(/Edge?\/([\d.]+)/), o = /micromessenger/i.test(t);
  47971. r && (n.firefox = !0, n.version = r[1]), i && (n.ie = !0, n.version = i[1]), a && (n.edge = !0, n.version = a[1], n.newEdge = +a[1].split(".")[0] > 18), o && (n.weChat = !0), e.svgSupported = typeof SVGRect < "u", e.touchEventsSupported = "ontouchstart" in window && !n.ie && !n.edge, e.pointerEventsSupported = "onpointerdown" in window && (n.edge || n.ie && +n.version >= 11), e.domSupported = typeof document < "u";
  47972. var s = document.documentElement.style;
  47973. e.transform3dSupported = (n.ie && "transition" in s || n.edge || "WebKitCSSMatrix" in window && "m11" in new WebKitCSSMatrix() || "MozPerspective" in s) && !("OTransition" in s), e.transformSupported = e.transform3dSupported || n.ie && +n.version >= 9;
  47974. }
  47975. const Gt = Rd;
  47976. var h5 = 12, Hoe = "sans-serif", vf = h5 + "px " + Hoe, sHe = 20, lHe = 100, uHe = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";
  47977. function cHe(t) {
  47978. var e = {};
  47979. if (typeof JSON > "u")
  47980. return e;
  47981. for (var n = 0; n < t.length; n++) {
  47982. var r = String.fromCharCode(n + 32), i = (t.charCodeAt(n) - sHe) / lHe;
  47983. e[r] = i;
  47984. }
  47985. return e;
  47986. }
  47987. var fHe = cHe(uHe), Hs = {
  47988. createCanvas: function() {
  47989. return typeof document < "u" && document.createElement("canvas");
  47990. },
  47991. measureText: /* @__PURE__ */ function() {
  47992. var t, e;
  47993. return function(n, r) {
  47994. if (!t) {
  47995. var i = Hs.createCanvas();
  47996. t = i && i.getContext("2d");
  47997. }
  47998. if (t)
  47999. return e !== r && (e = t.font = r || vf), t.measureText(n);
  48000. n = n || "", r = r || vf;
  48001. var a = /((?:\d+)?\.?\d*)px/.exec(r), o = a && +a[1] || h5, s = 0;
  48002. if (r.indexOf("mono") >= 0)
  48003. s = o * n.length;
  48004. else
  48005. for (var l = 0; l < n.length; l++) {
  48006. var u = fHe[n[l]];
  48007. s += u == null ? o : u * o;
  48008. }
  48009. return { width: s };
  48010. };
  48011. }(),
  48012. loadImage: function(t, e, n) {
  48013. var r = new Image();
  48014. return r.onload = e, r.onerror = n, r.src = t, r;
  48015. }
  48016. };
  48017. function Goe(t) {
  48018. for (var e in Hs)
  48019. t[e] && (Hs[e] = t[e]);
  48020. }
  48021. var joe = os([
  48022. "Function",
  48023. "RegExp",
  48024. "Date",
  48025. "Error",
  48026. "CanvasGradient",
  48027. "CanvasPattern",
  48028. "Image",
  48029. "Canvas"
  48030. ], function(t, e) {
  48031. return t["[object " + e + "]"] = !0, t;
  48032. }, {}), Zoe = os([
  48033. "Int8",
  48034. "Uint8",
  48035. "Uint8Clamped",
  48036. "Int16",
  48037. "Uint16",
  48038. "Int32",
  48039. "Uint32",
  48040. "Float32",
  48041. "Float64"
  48042. ], function(t, e) {
  48043. return t["[object " + e + "Array]"] = !0, t;
  48044. }, {}), mm = Object.prototype.toString, iP = Array.prototype, dHe = iP.forEach, hHe = iP.filter, p5 = iP.slice, pHe = iP.map, pH = (function() {
  48045. }).constructor, nS = pH ? pH.prototype : null, v5 = "__proto__", vHe = 2311;
  48046. function g5() {
  48047. return vHe++;
  48048. }
  48049. function qo() {
  48050. for (var t = [], e = 0; e < arguments.length; e++)
  48051. t[e] = arguments[e];
  48052. typeof console < "u" && console.error.apply(console, t);
  48053. }
  48054. function ot(t) {
  48055. if (t == null || typeof t != "object")
  48056. return t;
  48057. var e = t, n = mm.call(t);
  48058. if (n === "[object Array]") {
  48059. if (!Uv(t)) {
  48060. e = [];
  48061. for (var r = 0, i = t.length; r < i; r++)
  48062. e[r] = ot(t[r]);
  48063. }
  48064. } else if (Zoe[n]) {
  48065. if (!Uv(t)) {
  48066. var a = t.constructor;
  48067. if (a.from)
  48068. e = a.from(t);
  48069. else {
  48070. e = new a(t.length);
  48071. for (var r = 0, i = t.length; r < i; r++)
  48072. e[r] = t[r];
  48073. }
  48074. }
  48075. } else if (!joe[n] && !Uv(t) && !gf(t)) {
  48076. e = {};
  48077. for (var o in t)
  48078. t.hasOwnProperty(o) && o !== v5 && (e[o] = ot(t[o]));
  48079. }
  48080. return e;
  48081. }
  48082. function mt(t, e, n) {
  48083. if (!nt(e) || !nt(t))
  48084. return n ? ot(e) : t;
  48085. for (var r in e)
  48086. if (e.hasOwnProperty(r) && r !== v5) {
  48087. var i = t[r], a = e[r];
  48088. nt(a) && nt(i) && !Se(a) && !Se(i) && !gf(a) && !gf(i) && !tk(a) && !tk(i) && !Uv(a) && !Uv(i) ? mt(i, a, n) : (n || !(r in t)) && (t[r] = ot(e[r]));
  48089. }
  48090. return t;
  48091. }
  48092. function aP(t, e) {
  48093. for (var n = t[0], r = 1, i = t.length; r < i; r++)
  48094. n = mt(n, t[r], e);
  48095. return n;
  48096. }
  48097. function _e(t, e) {
  48098. if (Object.assign)
  48099. Object.assign(t, e);
  48100. else
  48101. for (var n in e)
  48102. e.hasOwnProperty(n) && n !== v5 && (t[n] = e[n]);
  48103. return t;
  48104. }
  48105. function it(t, e, n) {
  48106. for (var r = kt(e), i = 0; i < r.length; i++) {
  48107. var a = r[i];
  48108. (n ? e[a] != null : t[a] == null) && (t[a] = e[a]);
  48109. }
  48110. return t;
  48111. }
  48112. var gHe = Hs.createCanvas;
  48113. function St(t, e) {
  48114. if (t) {
  48115. if (t.indexOf)
  48116. return t.indexOf(e);
  48117. for (var n = 0, r = t.length; n < r; n++)
  48118. if (t[n] === e)
  48119. return n;
  48120. }
  48121. return -1;
  48122. }
  48123. function m5(t, e) {
  48124. var n = t.prototype;
  48125. function r() {
  48126. }
  48127. r.prototype = e.prototype, t.prototype = new r();
  48128. for (var i in n)
  48129. n.hasOwnProperty(i) && (t.prototype[i] = n[i]);
  48130. t.prototype.constructor = t, t.superClass = e;
  48131. }
  48132. function vr(t, e, n) {
  48133. if (t = "prototype" in t ? t.prototype : t, e = "prototype" in e ? e.prototype : e, Object.getOwnPropertyNames)
  48134. for (var r = Object.getOwnPropertyNames(e), i = 0; i < r.length; i++) {
  48135. var a = r[i];
  48136. a !== "constructor" && (n ? e[a] != null : t[a] == null) && (t[a] = e[a]);
  48137. }
  48138. else
  48139. it(t, e, n);
  48140. }
  48141. function Pi(t) {
  48142. return !t || typeof t == "string" ? !1 : typeof t.length == "number";
  48143. }
  48144. function F(t, e, n) {
  48145. if (t && e)
  48146. if (t.forEach && t.forEach === dHe)
  48147. t.forEach(e, n);
  48148. else if (t.length === +t.length)
  48149. for (var r = 0, i = t.length; r < i; r++)
  48150. e.call(n, t[r], r, t);
  48151. else
  48152. for (var a in t)
  48153. t.hasOwnProperty(a) && e.call(n, t[a], a, t);
  48154. }
  48155. function Ce(t, e, n) {
  48156. if (!t)
  48157. return [];
  48158. if (!e)
  48159. return oP(t);
  48160. if (t.map && t.map === pHe)
  48161. return t.map(e, n);
  48162. for (var r = [], i = 0, a = t.length; i < a; i++)
  48163. r.push(e.call(n, t[i], i, t));
  48164. return r;
  48165. }
  48166. function os(t, e, n, r) {
  48167. if (t && e) {
  48168. for (var i = 0, a = t.length; i < a; i++)
  48169. n = e.call(r, n, t[i], i, t);
  48170. return n;
  48171. }
  48172. }
  48173. function yn(t, e, n) {
  48174. if (!t)
  48175. return [];
  48176. if (!e)
  48177. return oP(t);
  48178. if (t.filter && t.filter === hHe)
  48179. return t.filter(e, n);
  48180. for (var r = [], i = 0, a = t.length; i < a; i++)
  48181. e.call(n, t[i], i, t) && r.push(t[i]);
  48182. return r;
  48183. }
  48184. function Uoe(t, e, n) {
  48185. if (t && e) {
  48186. for (var r = 0, i = t.length; r < i; r++)
  48187. if (e.call(n, t[r], r, t))
  48188. return t[r];
  48189. }
  48190. }
  48191. function kt(t) {
  48192. if (!t)
  48193. return [];
  48194. if (Object.keys)
  48195. return Object.keys(t);
  48196. var e = [];
  48197. for (var n in t)
  48198. t.hasOwnProperty(n) && e.push(n);
  48199. return e;
  48200. }
  48201. function mHe(t, e) {
  48202. for (var n = [], r = 2; r < arguments.length; r++)
  48203. n[r - 2] = arguments[r];
  48204. return function() {
  48205. return t.apply(e, n.concat(p5.call(arguments)));
  48206. };
  48207. }
  48208. var We = nS && qe(nS.bind) ? nS.call.bind(nS.bind) : mHe;
  48209. function vt(t) {
  48210. for (var e = [], n = 1; n < arguments.length; n++)
  48211. e[n - 1] = arguments[n];
  48212. return function() {
  48213. return t.apply(this, e.concat(p5.call(arguments)));
  48214. };
  48215. }
  48216. function Se(t) {
  48217. return Array.isArray ? Array.isArray(t) : mm.call(t) === "[object Array]";
  48218. }
  48219. function qe(t) {
  48220. return typeof t == "function";
  48221. }
  48222. function Ve(t) {
  48223. return typeof t == "string";
  48224. }
  48225. function zb(t) {
  48226. return mm.call(t) === "[object String]";
  48227. }
  48228. function Kt(t) {
  48229. return typeof t == "number";
  48230. }
  48231. function nt(t) {
  48232. var e = typeof t;
  48233. return e === "function" || !!t && e === "object";
  48234. }
  48235. function tk(t) {
  48236. return !!joe[mm.call(t)];
  48237. }
  48238. function Qi(t) {
  48239. return !!Zoe[mm.call(t)];
  48240. }
  48241. function gf(t) {
  48242. return typeof t == "object" && typeof t.nodeType == "number" && typeof t.ownerDocument == "object";
  48243. }
  48244. function n1(t) {
  48245. return t.colorStops != null;
  48246. }
  48247. function Xoe(t) {
  48248. return t.image != null;
  48249. }
  48250. function y5(t) {
  48251. return mm.call(t) === "[object RegExp]";
  48252. }
  48253. function mf(t) {
  48254. return t !== t;
  48255. }
  48256. function Or() {
  48257. for (var t = [], e = 0; e < arguments.length; e++)
  48258. t[e] = arguments[e];
  48259. for (var n = 0, r = t.length; n < r; n++)
  48260. if (t[n] != null)
  48261. return t[n];
  48262. }
  48263. function dt(t, e) {
  48264. return t ?? e;
  48265. }
  48266. function co(t, e, n) {
  48267. return t ?? e ?? n;
  48268. }
  48269. function oP(t) {
  48270. for (var e = [], n = 1; n < arguments.length; n++)
  48271. e[n - 1] = arguments[n];
  48272. return p5.apply(t, e);
  48273. }
  48274. function sP(t) {
  48275. if (typeof t == "number")
  48276. return [t, t, t, t];
  48277. var e = t.length;
  48278. return e === 2 ? [t[0], t[1], t[0], t[1]] : e === 3 ? [t[0], t[1], t[2], t[1]] : t;
  48279. }
  48280. function at(t, e) {
  48281. if (!t)
  48282. throw new Error(e);
  48283. }
  48284. function Zo(t) {
  48285. return t == null ? null : typeof t.trim == "function" ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  48286. }
  48287. var Yoe = "__ec_primitive__";
  48288. function Vb(t) {
  48289. t[Yoe] = !0;
  48290. }
  48291. function Uv(t) {
  48292. return t[Yoe];
  48293. }
  48294. var yHe = function() {
  48295. function t() {
  48296. this.data = {};
  48297. }
  48298. return t.prototype.delete = function(e) {
  48299. var n = this.has(e);
  48300. return n && delete this.data[e], n;
  48301. }, t.prototype.has = function(e) {
  48302. return this.data.hasOwnProperty(e);
  48303. }, t.prototype.get = function(e) {
  48304. return this.data[e];
  48305. }, t.prototype.set = function(e, n) {
  48306. return this.data[e] = n, this;
  48307. }, t.prototype.keys = function() {
  48308. return kt(this.data);
  48309. }, t.prototype.forEach = function(e) {
  48310. var n = this.data;
  48311. for (var r in n)
  48312. n.hasOwnProperty(r) && e(n[r], r);
  48313. }, t;
  48314. }(), qoe = typeof Map == "function";
  48315. function bHe() {
  48316. return qoe ? /* @__PURE__ */ new Map() : new yHe();
  48317. }
  48318. var Koe = function() {
  48319. function t(e) {
  48320. var n = Se(e);
  48321. this.data = bHe();
  48322. var r = this;
  48323. e instanceof t ? e.each(i) : e && F(e, i);
  48324. function i(a, o) {
  48325. n ? r.set(a, o) : r.set(o, a);
  48326. }
  48327. }
  48328. return t.prototype.hasKey = function(e) {
  48329. return this.data.has(e);
  48330. }, t.prototype.get = function(e) {
  48331. return this.data.get(e);
  48332. }, t.prototype.set = function(e, n) {
  48333. return this.data.set(e, n), n;
  48334. }, t.prototype.each = function(e, n) {
  48335. this.data.forEach(function(r, i) {
  48336. e.call(n, r, i);
  48337. });
  48338. }, t.prototype.keys = function() {
  48339. var e = this.data.keys();
  48340. return qoe ? Array.from(e) : e;
  48341. }, t.prototype.removeKey = function(e) {
  48342. this.data.delete(e);
  48343. }, t;
  48344. }();
  48345. function Ze(t) {
  48346. return new Koe(t);
  48347. }
  48348. function Fb(t, e) {
  48349. for (var n = new t.constructor(t.length + e.length), r = 0; r < t.length; r++)
  48350. n[r] = t[r];
  48351. for (var i = t.length, r = 0; r < e.length; r++)
  48352. n[r + i] = e[r];
  48353. return n;
  48354. }
  48355. function r1(t, e) {
  48356. var n;
  48357. if (Object.create)
  48358. n = Object.create(t);
  48359. else {
  48360. var r = function() {
  48361. };
  48362. r.prototype = t, n = new r();
  48363. }
  48364. return e && _e(n, e), n;
  48365. }
  48366. function b5(t) {
  48367. var e = t.style;
  48368. e.webkitUserSelect = "none", e.userSelect = "none", e.webkitTapHighlightColor = "rgba(0,0,0,0)", e["-webkit-touch-callout"] = "none";
  48369. }
  48370. function Qe(t, e) {
  48371. return t.hasOwnProperty(e);
  48372. }
  48373. function fr() {
  48374. }
  48375. var Uy = 180 / Math.PI;
  48376. const _He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  48377. __proto__: null,
  48378. HashMap: Koe,
  48379. RADIAN_TO_DEGREE: Uy,
  48380. assert: at,
  48381. bind: We,
  48382. clone: ot,
  48383. concatArray: Fb,
  48384. createCanvas: gHe,
  48385. createHashMap: Ze,
  48386. createObject: r1,
  48387. curry: vt,
  48388. defaults: it,
  48389. disableUserSelect: b5,
  48390. each: F,
  48391. eqNaN: mf,
  48392. extend: _e,
  48393. filter: yn,
  48394. find: Uoe,
  48395. guid: g5,
  48396. hasOwn: Qe,
  48397. indexOf: St,
  48398. inherits: m5,
  48399. isArray: Se,
  48400. isArrayLike: Pi,
  48401. isBuiltInObject: tk,
  48402. isDom: gf,
  48403. isFunction: qe,
  48404. isGradientObject: n1,
  48405. isImagePatternObject: Xoe,
  48406. isNumber: Kt,
  48407. isObject: nt,
  48408. isPrimitive: Uv,
  48409. isRegExp: y5,
  48410. isString: Ve,
  48411. isStringSafe: zb,
  48412. isTypedArray: Qi,
  48413. keys: kt,
  48414. logError: qo,
  48415. map: Ce,
  48416. merge: mt,
  48417. mergeAll: aP,
  48418. mixin: vr,
  48419. noop: fr,
  48420. normalizeCssArray: sP,
  48421. reduce: os,
  48422. retrieve: Or,
  48423. retrieve2: dt,
  48424. retrieve3: co,
  48425. setAsPrimitive: Vb,
  48426. slice: oP,
  48427. trim: Zo
  48428. }, Symbol.toStringTag, { value: "Module" }));
  48429. function kf(t, e) {
  48430. return t == null && (t = 0), e == null && (e = 0), [t, e];
  48431. }
  48432. function ki(t, e) {
  48433. return t[0] = e[0], t[1] = e[1], t;
  48434. }
  48435. function kl(t) {
  48436. return [t[0], t[1]];
  48437. }
  48438. function Joe(t, e, n) {
  48439. return t[0] = e, t[1] = n, t;
  48440. }
  48441. function nk(t, e, n) {
  48442. return t[0] = e[0] + n[0], t[1] = e[1] + n[1], t;
  48443. }
  48444. function _C(t, e, n, r) {
  48445. return t[0] = e[0] + n[0] * r, t[1] = e[1] + n[1] * r, t;
  48446. }
  48447. function Wc(t, e, n) {
  48448. return t[0] = e[0] - n[0], t[1] = e[1] - n[1], t;
  48449. }
  48450. function Wb(t) {
  48451. return Math.sqrt(_5(t));
  48452. }
  48453. var OHe = Wb;
  48454. function _5(t) {
  48455. return t[0] * t[0] + t[1] * t[1];
  48456. }
  48457. var SHe = _5;
  48458. function xHe(t, e, n) {
  48459. return t[0] = e[0] * n[0], t[1] = e[1] * n[1], t;
  48460. }
  48461. function wHe(t, e, n) {
  48462. return t[0] = e[0] / n[0], t[1] = e[1] / n[1], t;
  48463. }
  48464. function CHe(t, e) {
  48465. return t[0] * e[0] + t[1] * e[1];
  48466. }
  48467. function Xy(t, e, n) {
  48468. return t[0] = e[0] * n, t[1] = e[1] * n, t;
  48469. }
  48470. function fp(t, e) {
  48471. var n = Wb(e);
  48472. return n === 0 ? (t[0] = 0, t[1] = 0) : (t[0] = e[0] / n, t[1] = e[1] / n), t;
  48473. }
  48474. function OC(t, e) {
  48475. return Math.sqrt((t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1]));
  48476. }
  48477. var wu = OC;
  48478. function ese(t, e) {
  48479. return (t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1]);
  48480. }
  48481. var nf = ese;
  48482. function THe(t, e) {
  48483. return t[0] = -e[0], t[1] = -e[1], t;
  48484. }
  48485. function Yy(t, e, n, r) {
  48486. return t[0] = e[0] + r * (n[0] - e[0]), t[1] = e[1] + r * (n[1] - e[1]), t;
  48487. }
  48488. function oi(t, e, n) {
  48489. var r = e[0], i = e[1];
  48490. return t[0] = n[0] * r + n[2] * i + n[4], t[1] = n[1] * r + n[3] * i + n[5], t;
  48491. }
  48492. function Cu(t, e, n) {
  48493. return t[0] = Math.min(e[0], n[0]), t[1] = Math.min(e[1], n[1]), t;
  48494. }
  48495. function Tu(t, e, n) {
  48496. return t[0] = Math.max(e[0], n[0]), t[1] = Math.max(e[1], n[1]), t;
  48497. }
  48498. const PHe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  48499. __proto__: null,
  48500. add: nk,
  48501. applyTransform: oi,
  48502. clone: kl,
  48503. copy: ki,
  48504. create: kf,
  48505. dist: wu,
  48506. distSquare: nf,
  48507. distance: OC,
  48508. distanceSquare: ese,
  48509. div: wHe,
  48510. dot: CHe,
  48511. len: Wb,
  48512. lenSquare: _5,
  48513. length: OHe,
  48514. lengthSquare: SHe,
  48515. lerp: Yy,
  48516. max: Tu,
  48517. min: Cu,
  48518. mul: xHe,
  48519. negate: THe,
  48520. normalize: fp,
  48521. scale: Xy,
  48522. scaleAndAdd: _C,
  48523. set: Joe,
  48524. sub: Wc
  48525. }, Symbol.toStringTag, { value: "Module" }));
  48526. var jp = /* @__PURE__ */ function() {
  48527. function t(e, n) {
  48528. this.target = e, this.topTarget = n && n.topTarget;
  48529. }
  48530. return t;
  48531. }(), $He = function() {
  48532. function t(e) {
  48533. this.handler = e, e.on("mousedown", this._dragStart, this), e.on("mousemove", this._drag, this), e.on("mouseup", this._dragEnd, this);
  48534. }
  48535. return t.prototype._dragStart = function(e) {
  48536. for (var n = e.target; n && !n.draggable; )
  48537. n = n.parent || n.__hostTarget;
  48538. n && (this._draggingTarget = n, n.dragging = !0, this._x = e.offsetX, this._y = e.offsetY, this.handler.dispatchToElement(new jp(n, e), "dragstart", e.event));
  48539. }, t.prototype._drag = function(e) {
  48540. var n = this._draggingTarget;
  48541. if (n) {
  48542. var r = e.offsetX, i = e.offsetY, a = r - this._x, o = i - this._y;
  48543. this._x = r, this._y = i, n.drift(a, o, e), this.handler.dispatchToElement(new jp(n, e), "drag", e.event);
  48544. var s = this.handler.findHover(r, i, n).target, l = this._dropTarget;
  48545. this._dropTarget = s, n !== s && (l && s !== l && this.handler.dispatchToElement(new jp(l, e), "dragleave", e.event), s && s !== l && this.handler.dispatchToElement(new jp(s, e), "dragenter", e.event));
  48546. }
  48547. }, t.prototype._dragEnd = function(e) {
  48548. var n = this._draggingTarget;
  48549. n && (n.dragging = !1), this.handler.dispatchToElement(new jp(n, e), "dragend", e.event), this._dropTarget && this.handler.dispatchToElement(new jp(this._dropTarget, e), "drop", e.event), this._draggingTarget = null, this._dropTarget = null;
  48550. }, t;
  48551. }(), fs = function() {
  48552. function t(e) {
  48553. e && (this._$eventProcessor = e);
  48554. }
  48555. return t.prototype.on = function(e, n, r, i) {
  48556. this._$handlers || (this._$handlers = {});
  48557. var a = this._$handlers;
  48558. if (typeof n == "function" && (i = r, r = n, n = null), !r || !e)
  48559. return this;
  48560. var o = this._$eventProcessor;
  48561. n != null && o && o.normalizeQuery && (n = o.normalizeQuery(n)), a[e] || (a[e] = []);
  48562. for (var s = 0; s < a[e].length; s++)
  48563. if (a[e][s].h === r)
  48564. return this;
  48565. var l = {
  48566. h: r,
  48567. query: n,
  48568. ctx: i || this,
  48569. callAtLast: r.zrEventfulCallAtLast
  48570. }, u = a[e].length - 1, c = a[e][u];
  48571. return c && c.callAtLast ? a[e].splice(u, 0, l) : a[e].push(l), this;
  48572. }, t.prototype.isSilent = function(e) {
  48573. var n = this._$handlers;
  48574. return !n || !n[e] || !n[e].length;
  48575. }, t.prototype.off = function(e, n) {
  48576. var r = this._$handlers;
  48577. if (!r)
  48578. return this;
  48579. if (!e)
  48580. return this._$handlers = {}, this;
  48581. if (n) {
  48582. if (r[e]) {
  48583. for (var i = [], a = 0, o = r[e].length; a < o; a++)
  48584. r[e][a].h !== n && i.push(r[e][a]);
  48585. r[e] = i;
  48586. }
  48587. r[e] && r[e].length === 0 && delete r[e];
  48588. } else
  48589. delete r[e];
  48590. return this;
  48591. }, t.prototype.trigger = function(e) {
  48592. for (var n = [], r = 1; r < arguments.length; r++)
  48593. n[r - 1] = arguments[r];
  48594. if (!this._$handlers)
  48595. return this;
  48596. var i = this._$handlers[e], a = this._$eventProcessor;
  48597. if (i)
  48598. for (var o = n.length, s = i.length, l = 0; l < s; l++) {
  48599. var u = i[l];
  48600. if (!(a && a.filter && u.query != null && !a.filter(e, u.query)))
  48601. switch (o) {
  48602. case 0:
  48603. u.h.call(u.ctx);
  48604. break;
  48605. case 1:
  48606. u.h.call(u.ctx, n[0]);
  48607. break;
  48608. case 2:
  48609. u.h.call(u.ctx, n[0], n[1]);
  48610. break;
  48611. default:
  48612. u.h.apply(u.ctx, n);
  48613. break;
  48614. }
  48615. }
  48616. return a && a.afterTrigger && a.afterTrigger(e), this;
  48617. }, t.prototype.triggerWithContext = function(e) {
  48618. for (var n = [], r = 1; r < arguments.length; r++)
  48619. n[r - 1] = arguments[r];
  48620. if (!this._$handlers)
  48621. return this;
  48622. var i = this._$handlers[e], a = this._$eventProcessor;
  48623. if (i)
  48624. for (var o = n.length, s = n[o - 1], l = i.length, u = 0; u < l; u++) {
  48625. var c = i[u];
  48626. if (!(a && a.filter && c.query != null && !a.filter(e, c.query)))
  48627. switch (o) {
  48628. case 0:
  48629. c.h.call(s);
  48630. break;
  48631. case 1:
  48632. c.h.call(s, n[0]);
  48633. break;
  48634. case 2:
  48635. c.h.call(s, n[0], n[1]);
  48636. break;
  48637. default:
  48638. c.h.apply(s, n.slice(1, o - 1));
  48639. break;
  48640. }
  48641. }
  48642. return a && a.afterTrigger && a.afterTrigger(e), this;
  48643. }, t;
  48644. }(), AHe = Math.log(2);
  48645. function rk(t, e, n, r, i, a) {
  48646. var o = r + "-" + i, s = t.length;
  48647. if (a.hasOwnProperty(o))
  48648. return a[o];
  48649. if (e === 1) {
  48650. var l = Math.round(Math.log((1 << s) - 1 & ~i) / AHe);
  48651. return t[n][l];
  48652. }
  48653. for (var u = r | 1 << n, c = n + 1; r & 1 << c; )
  48654. c++;
  48655. for (var f = 0, d = 0, h = 0; d < s; d++) {
  48656. var p = 1 << d;
  48657. p & i || (f += (h % 2 ? -1 : 1) * t[n][d] * rk(t, e - 1, c, u, i | p, a), h++);
  48658. }
  48659. return a[o] = f, f;
  48660. }
  48661. function vH(t, e) {
  48662. var n = [
  48663. [t[0], t[1], 1, 0, 0, 0, -e[0] * t[0], -e[0] * t[1]],
  48664. [0, 0, 0, t[0], t[1], 1, -e[1] * t[0], -e[1] * t[1]],
  48665. [t[2], t[3], 1, 0, 0, 0, -e[2] * t[2], -e[2] * t[3]],
  48666. [0, 0, 0, t[2], t[3], 1, -e[3] * t[2], -e[3] * t[3]],
  48667. [t[4], t[5], 1, 0, 0, 0, -e[4] * t[4], -e[4] * t[5]],
  48668. [0, 0, 0, t[4], t[5], 1, -e[5] * t[4], -e[5] * t[5]],
  48669. [t[6], t[7], 1, 0, 0, 0, -e[6] * t[6], -e[6] * t[7]],
  48670. [0, 0, 0, t[6], t[7], 1, -e[7] * t[6], -e[7] * t[7]]
  48671. ], r = {}, i = rk(n, 8, 0, 0, 0, r);
  48672. if (i !== 0) {
  48673. for (var a = [], o = 0; o < 8; o++)
  48674. for (var s = 0; s < 8; s++)
  48675. a[s] == null && (a[s] = 0), a[s] += ((o + s) % 2 ? -1 : 1) * rk(n, 7, o === 0 ? 1 : 0, 1 << o, 1 << s, r) / i * e[o];
  48676. return function(l, u, c) {
  48677. var f = u * a[6] + c * a[7] + 1;
  48678. l[0] = (u * a[0] + c * a[1] + a[2]) / f, l[1] = (u * a[3] + c * a[4] + a[5]) / f;
  48679. };
  48680. }
  48681. }
  48682. var gH = "___zrEVENTSAVED", PE = [];
  48683. function EHe(t, e, n, r, i) {
  48684. return ik(PE, e, r, i, !0) && ik(t, n, PE[0], PE[1]);
  48685. }
  48686. function ik(t, e, n, r, i) {
  48687. if (e.getBoundingClientRect && Gt.domSupported && !tse(e)) {
  48688. var a = e[gH] || (e[gH] = {}), o = MHe(e, a), s = IHe(o, a, i);
  48689. if (s)
  48690. return s(t, n, r), !0;
  48691. }
  48692. return !1;
  48693. }
  48694. function MHe(t, e) {
  48695. var n = e.markers;
  48696. if (n)
  48697. return n;
  48698. n = e.markers = [];
  48699. for (var r = ["left", "right"], i = ["top", "bottom"], a = 0; a < 4; a++) {
  48700. var o = document.createElement("div"), s = o.style, l = a % 2, u = (a >> 1) % 2;
  48701. s.cssText = [
  48702. "position: absolute",
  48703. "visibility: hidden",
  48704. "padding: 0",
  48705. "margin: 0",
  48706. "border-width: 0",
  48707. "user-select: none",
  48708. "width:0",
  48709. "height:0",
  48710. r[l] + ":0",
  48711. i[u] + ":0",
  48712. r[1 - l] + ":auto",
  48713. i[1 - u] + ":auto",
  48714. ""
  48715. ].join("!important;"), t.appendChild(o), n.push(o);
  48716. }
  48717. return n;
  48718. }
  48719. function IHe(t, e, n) {
  48720. for (var r = n ? "invTrans" : "trans", i = e[r], a = e.srcCoords, o = [], s = [], l = !0, u = 0; u < 4; u++) {
  48721. var c = t[u].getBoundingClientRect(), f = 2 * u, d = c.left, h = c.top;
  48722. o.push(d, h), l = l && a && d === a[f] && h === a[f + 1], s.push(t[u].offsetLeft, t[u].offsetTop);
  48723. }
  48724. return l && i ? i : (e.srcCoords = o, e[r] = n ? vH(s, o) : vH(o, s));
  48725. }
  48726. function tse(t) {
  48727. return t.nodeName.toUpperCase() === "CANVAS";
  48728. }
  48729. var DHe = /([&<>"'])/g, RHe = {
  48730. "&": "&amp;",
  48731. "<": "&lt;",
  48732. ">": "&gt;",
  48733. '"': "&quot;",
  48734. "'": "&#39;"
  48735. };
  48736. function ta(t) {
  48737. return t == null ? "" : (t + "").replace(DHe, function(e, n) {
  48738. return RHe[n];
  48739. });
  48740. }
  48741. var kHe = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, $E = [], LHe = Gt.browser.firefox && +Gt.browser.version.split(".")[0] < 39;
  48742. function ak(t, e, n, r) {
  48743. return n = n || {}, r ? mH(t, e, n) : LHe && e.layerX != null && e.layerX !== e.offsetX ? (n.zrX = e.layerX, n.zrY = e.layerY) : e.offsetX != null ? (n.zrX = e.offsetX, n.zrY = e.offsetY) : mH(t, e, n), n;
  48744. }
  48745. function mH(t, e, n) {
  48746. if (Gt.domSupported && t.getBoundingClientRect) {
  48747. var r = e.clientX, i = e.clientY;
  48748. if (tse(t)) {
  48749. var a = t.getBoundingClientRect();
  48750. n.zrX = r - a.left, n.zrY = i - a.top;
  48751. return;
  48752. } else if (ik($E, t, r, i)) {
  48753. n.zrX = $E[0], n.zrY = $E[1];
  48754. return;
  48755. }
  48756. }
  48757. n.zrX = n.zrY = 0;
  48758. }
  48759. function O5(t) {
  48760. return t || window.event;
  48761. }
  48762. function No(t, e, n) {
  48763. if (e = O5(e), e.zrX != null)
  48764. return e;
  48765. var r = e.type, i = r && r.indexOf("touch") >= 0;
  48766. if (i) {
  48767. var o = r !== "touchend" ? e.targetTouches[0] : e.changedTouches[0];
  48768. o && ak(t, o, e, n);
  48769. } else {
  48770. ak(t, e, e, n);
  48771. var a = NHe(e);
  48772. e.zrDelta = a ? a / 120 : -(e.detail || 0) / 3;
  48773. }
  48774. var s = e.button;
  48775. return e.which == null && s !== void 0 && kHe.test(e.type) && (e.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0), e;
  48776. }
  48777. function NHe(t) {
  48778. var e = t.wheelDelta;
  48779. if (e)
  48780. return e;
  48781. var n = t.deltaX, r = t.deltaY;
  48782. if (n == null || r == null)
  48783. return e;
  48784. var i = Math.abs(r !== 0 ? r : n), a = r > 0 ? -1 : r < 0 ? 1 : n > 0 ? -1 : 1;
  48785. return 3 * i * a;
  48786. }
  48787. function ok(t, e, n, r) {
  48788. t.addEventListener(e, n, r);
  48789. }
  48790. function BHe(t, e, n, r) {
  48791. t.removeEventListener(e, n, r);
  48792. }
  48793. var Vu = function(t) {
  48794. t.preventDefault(), t.stopPropagation(), t.cancelBubble = !0;
  48795. };
  48796. function yH(t) {
  48797. return t.which === 2 || t.which === 3;
  48798. }
  48799. var zHe = function() {
  48800. function t() {
  48801. this._track = [];
  48802. }
  48803. return t.prototype.recognize = function(e, n, r) {
  48804. return this._doTrack(e, n, r), this._recognize(e);
  48805. }, t.prototype.clear = function() {
  48806. return this._track.length = 0, this;
  48807. }, t.prototype._doTrack = function(e, n, r) {
  48808. var i = e.touches;
  48809. if (i) {
  48810. for (var a = {
  48811. points: [],
  48812. touches: [],
  48813. target: n,
  48814. event: e
  48815. }, o = 0, s = i.length; o < s; o++) {
  48816. var l = i[o], u = ak(r, l, {});
  48817. a.points.push([u.zrX, u.zrY]), a.touches.push(l);
  48818. }
  48819. this._track.push(a);
  48820. }
  48821. }, t.prototype._recognize = function(e) {
  48822. for (var n in AE)
  48823. if (AE.hasOwnProperty(n)) {
  48824. var r = AE[n](this._track, e);
  48825. if (r)
  48826. return r;
  48827. }
  48828. }, t;
  48829. }();
  48830. function bH(t) {
  48831. var e = t[1][0] - t[0][0], n = t[1][1] - t[0][1];
  48832. return Math.sqrt(e * e + n * n);
  48833. }
  48834. function VHe(t) {
  48835. return [
  48836. (t[0][0] + t[1][0]) / 2,
  48837. (t[0][1] + t[1][1]) / 2
  48838. ];
  48839. }
  48840. var AE = {
  48841. pinch: function(t, e) {
  48842. var n = t.length;
  48843. if (n) {
  48844. var r = (t[n - 1] || {}).points, i = (t[n - 2] || {}).points || r;
  48845. if (i && i.length > 1 && r && r.length > 1) {
  48846. var a = bH(r) / bH(i);
  48847. !isFinite(a) && (a = 1), e.pinchScale = a;
  48848. var o = VHe(r);
  48849. return e.pinchX = o[0], e.pinchY = o[1], {
  48850. type: "pinch",
  48851. target: t[0].target,
  48852. event: e
  48853. };
  48854. }
  48855. }
  48856. }
  48857. };
  48858. function Na() {
  48859. return [1, 0, 0, 1, 0, 0];
  48860. }
  48861. function i1(t) {
  48862. return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 1, t[4] = 0, t[5] = 0, t;
  48863. }
  48864. function lP(t, e) {
  48865. return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4], t[5] = e[5], t;
  48866. }
  48867. function Ll(t, e, n) {
  48868. var r = e[0] * n[0] + e[2] * n[1], i = e[1] * n[0] + e[3] * n[1], a = e[0] * n[2] + e[2] * n[3], o = e[1] * n[2] + e[3] * n[3], s = e[0] * n[4] + e[2] * n[5] + e[4], l = e[1] * n[4] + e[3] * n[5] + e[5];
  48869. return t[0] = r, t[1] = i, t[2] = a, t[3] = o, t[4] = s, t[5] = l, t;
  48870. }
  48871. function Gs(t, e, n) {
  48872. return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4] + n[0], t[5] = e[5] + n[1], t;
  48873. }
  48874. function Lf(t, e, n, r) {
  48875. r === void 0 && (r = [0, 0]);
  48876. var i = e[0], a = e[2], o = e[4], s = e[1], l = e[3], u = e[5], c = Math.sin(n), f = Math.cos(n);
  48877. return t[0] = i * f + s * c, t[1] = -i * c + s * f, t[2] = a * f + l * c, t[3] = -a * c + f * l, t[4] = f * (o - r[0]) + c * (u - r[1]) + r[0], t[5] = f * (u - r[1]) - c * (o - r[0]) + r[1], t;
  48878. }
  48879. function uP(t, e, n) {
  48880. var r = n[0], i = n[1];
  48881. return t[0] = e[0] * r, t[1] = e[1] * i, t[2] = e[2] * r, t[3] = e[3] * i, t[4] = e[4] * r, t[5] = e[5] * i, t;
  48882. }
  48883. function dp(t, e) {
  48884. var n = e[0], r = e[2], i = e[4], a = e[1], o = e[3], s = e[5], l = n * o - a * r;
  48885. return l ? (l = 1 / l, t[0] = o * l, t[1] = -a * l, t[2] = -r * l, t[3] = n * l, t[4] = (r * s - o * i) * l, t[5] = (a * i - n * s) * l, t) : null;
  48886. }
  48887. function nse(t) {
  48888. var e = Na();
  48889. return lP(e, t), e;
  48890. }
  48891. const FHe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  48892. __proto__: null,
  48893. clone: nse,
  48894. copy: lP,
  48895. create: Na,
  48896. identity: i1,
  48897. invert: dp,
  48898. mul: Ll,
  48899. rotate: Lf,
  48900. scale: uP,
  48901. translate: Gs
  48902. }, Symbol.toStringTag, { value: "Module" }));
  48903. var yt = function() {
  48904. function t(e, n) {
  48905. this.x = e || 0, this.y = n || 0;
  48906. }
  48907. return t.prototype.copy = function(e) {
  48908. return this.x = e.x, this.y = e.y, this;
  48909. }, t.prototype.clone = function() {
  48910. return new t(this.x, this.y);
  48911. }, t.prototype.set = function(e, n) {
  48912. return this.x = e, this.y = n, this;
  48913. }, t.prototype.equal = function(e) {
  48914. return e.x === this.x && e.y === this.y;
  48915. }, t.prototype.add = function(e) {
  48916. return this.x += e.x, this.y += e.y, this;
  48917. }, t.prototype.scale = function(e) {
  48918. this.x *= e, this.y *= e;
  48919. }, t.prototype.scaleAndAdd = function(e, n) {
  48920. this.x += e.x * n, this.y += e.y * n;
  48921. }, t.prototype.sub = function(e) {
  48922. return this.x -= e.x, this.y -= e.y, this;
  48923. }, t.prototype.dot = function(e) {
  48924. return this.x * e.x + this.y * e.y;
  48925. }, t.prototype.len = function() {
  48926. return Math.sqrt(this.x * this.x + this.y * this.y);
  48927. }, t.prototype.lenSquare = function() {
  48928. return this.x * this.x + this.y * this.y;
  48929. }, t.prototype.normalize = function() {
  48930. var e = this.len();
  48931. return this.x /= e, this.y /= e, this;
  48932. }, t.prototype.distance = function(e) {
  48933. var n = this.x - e.x, r = this.y - e.y;
  48934. return Math.sqrt(n * n + r * r);
  48935. }, t.prototype.distanceSquare = function(e) {
  48936. var n = this.x - e.x, r = this.y - e.y;
  48937. return n * n + r * r;
  48938. }, t.prototype.negate = function() {
  48939. return this.x = -this.x, this.y = -this.y, this;
  48940. }, t.prototype.transform = function(e) {
  48941. if (e) {
  48942. var n = this.x, r = this.y;
  48943. return this.x = e[0] * n + e[2] * r + e[4], this.y = e[1] * n + e[3] * r + e[5], this;
  48944. }
  48945. }, t.prototype.toArray = function(e) {
  48946. return e[0] = this.x, e[1] = this.y, e;
  48947. }, t.prototype.fromArray = function(e) {
  48948. this.x = e[0], this.y = e[1];
  48949. }, t.set = function(e, n, r) {
  48950. e.x = n, e.y = r;
  48951. }, t.copy = function(e, n) {
  48952. e.x = n.x, e.y = n.y;
  48953. }, t.len = function(e) {
  48954. return Math.sqrt(e.x * e.x + e.y * e.y);
  48955. }, t.lenSquare = function(e) {
  48956. return e.x * e.x + e.y * e.y;
  48957. }, t.dot = function(e, n) {
  48958. return e.x * n.x + e.y * n.y;
  48959. }, t.add = function(e, n, r) {
  48960. e.x = n.x + r.x, e.y = n.y + r.y;
  48961. }, t.sub = function(e, n, r) {
  48962. e.x = n.x - r.x, e.y = n.y - r.y;
  48963. }, t.scale = function(e, n, r) {
  48964. e.x = n.x * r, e.y = n.y * r;
  48965. }, t.scaleAndAdd = function(e, n, r, i) {
  48966. e.x = n.x + r.x * i, e.y = n.y + r.y * i;
  48967. }, t.lerp = function(e, n, r, i) {
  48968. var a = 1 - i;
  48969. e.x = a * n.x + i * r.x, e.y = a * n.y + i * r.y;
  48970. }, t;
  48971. }(), rS = Math.min, iS = Math.max, ld = new yt(), ud = new yt(), cd = new yt(), fd = new yt(), w0 = new yt(), C0 = new yt(), WHe = function() {
  48972. function t(e, n, r, i) {
  48973. r < 0 && (e = e + r, r = -r), i < 0 && (n = n + i, i = -i), this.x = e, this.y = n, this.width = r, this.height = i;
  48974. }
  48975. return t.prototype.union = function(e) {
  48976. var n = rS(e.x, this.x), r = rS(e.y, this.y);
  48977. isFinite(this.x) && isFinite(this.width) ? this.width = iS(e.x + e.width, this.x + this.width) - n : this.width = e.width, isFinite(this.y) && isFinite(this.height) ? this.height = iS(e.y + e.height, this.y + this.height) - r : this.height = e.height, this.x = n, this.y = r;
  48978. }, t.prototype.applyTransform = function(e) {
  48979. t.applyTransform(this, this, e);
  48980. }, t.prototype.calculateTransform = function(e) {
  48981. var n = this, r = e.width / n.width, i = e.height / n.height, a = Na();
  48982. return Gs(a, a, [-n.x, -n.y]), uP(a, a, [r, i]), Gs(a, a, [e.x, e.y]), a;
  48983. }, t.prototype.intersect = function(e, n) {
  48984. if (!e)
  48985. return !1;
  48986. e instanceof t || (e = t.create(e));
  48987. var r = this, i = r.x, a = r.x + r.width, o = r.y, s = r.y + r.height, l = e.x, u = e.x + e.width, c = e.y, f = e.y + e.height, d = !(a < l || u < i || s < c || f < o);
  48988. if (n) {
  48989. var h = 1 / 0, p = 0, v = Math.abs(a - l), g = Math.abs(u - i), m = Math.abs(s - c), y = Math.abs(f - o), _ = Math.min(v, g), O = Math.min(m, y);
  48990. a < l || u < i ? _ > p && (p = _, v < g ? yt.set(C0, -v, 0) : yt.set(C0, g, 0)) : _ < h && (h = _, v < g ? yt.set(w0, v, 0) : yt.set(w0, -g, 0)), s < c || f < o ? O > p && (p = O, m < y ? yt.set(C0, 0, -m) : yt.set(C0, 0, y)) : _ < h && (h = _, m < y ? yt.set(w0, 0, m) : yt.set(w0, 0, -y));
  48991. }
  48992. return n && yt.copy(n, d ? w0 : C0), d;
  48993. }, t.prototype.contain = function(e, n) {
  48994. var r = this;
  48995. return e >= r.x && e <= r.x + r.width && n >= r.y && n <= r.y + r.height;
  48996. }, t.prototype.clone = function() {
  48997. return new t(this.x, this.y, this.width, this.height);
  48998. }, t.prototype.copy = function(e) {
  48999. t.copy(this, e);
  49000. }, t.prototype.plain = function() {
  49001. return {
  49002. x: this.x,
  49003. y: this.y,
  49004. width: this.width,
  49005. height: this.height
  49006. };
  49007. }, t.prototype.isFinite = function() {
  49008. return isFinite(this.x) && isFinite(this.y) && isFinite(this.width) && isFinite(this.height);
  49009. }, t.prototype.isZero = function() {
  49010. return this.width === 0 || this.height === 0;
  49011. }, t.create = function(e) {
  49012. return new t(e.x, e.y, e.width, e.height);
  49013. }, t.copy = function(e, n) {
  49014. e.x = n.x, e.y = n.y, e.width = n.width, e.height = n.height;
  49015. }, t.applyTransform = function(e, n, r) {
  49016. if (!r) {
  49017. e !== n && t.copy(e, n);
  49018. return;
  49019. }
  49020. if (r[1] < 1e-5 && r[1] > -1e-5 && r[2] < 1e-5 && r[2] > -1e-5) {
  49021. var i = r[0], a = r[3], o = r[4], s = r[5];
  49022. e.x = n.x * i + o, e.y = n.y * a + s, e.width = n.width * i, e.height = n.height * a, e.width < 0 && (e.x += e.width, e.width = -e.width), e.height < 0 && (e.y += e.height, e.height = -e.height);
  49023. return;
  49024. }
  49025. ld.x = cd.x = n.x, ld.y = fd.y = n.y, ud.x = fd.x = n.x + n.width, ud.y = cd.y = n.y + n.height, ld.transform(r), fd.transform(r), ud.transform(r), cd.transform(r), e.x = rS(ld.x, ud.x, cd.x, fd.x), e.y = rS(ld.y, ud.y, cd.y, fd.y);
  49026. var l = iS(ld.x, ud.x, cd.x, fd.x), u = iS(ld.y, ud.y, cd.y, fd.y);
  49027. e.width = l - e.x, e.height = u - e.y;
  49028. }, t;
  49029. }();
  49030. const bt = WHe;
  49031. var rse = "silent";
  49032. function QHe(t, e, n) {
  49033. return {
  49034. type: t,
  49035. event: n,
  49036. target: e.target,
  49037. topTarget: e.topTarget,
  49038. cancelBubble: !1,
  49039. offsetX: n.zrX,
  49040. offsetY: n.zrY,
  49041. gestureEvent: n.gestureEvent,
  49042. pinchX: n.pinchX,
  49043. pinchY: n.pinchY,
  49044. pinchScale: n.pinchScale,
  49045. wheelDelta: n.zrDelta,
  49046. zrByTouch: n.zrByTouch,
  49047. which: n.which,
  49048. stop: HHe
  49049. };
  49050. }
  49051. function HHe() {
  49052. Vu(this.event);
  49053. }
  49054. var GHe = function(t) {
  49055. le(e, t);
  49056. function e() {
  49057. var n = t !== null && t.apply(this, arguments) || this;
  49058. return n.handler = null, n;
  49059. }
  49060. return e.prototype.dispose = function() {
  49061. }, e.prototype.setCursor = function() {
  49062. }, e;
  49063. }(fs), T0 = /* @__PURE__ */ function() {
  49064. function t(e, n) {
  49065. this.x = e, this.y = n;
  49066. }
  49067. return t;
  49068. }(), jHe = [
  49069. "click",
  49070. "dblclick",
  49071. "mousewheel",
  49072. "mouseout",
  49073. "mouseup",
  49074. "mousedown",
  49075. "mousemove",
  49076. "contextmenu"
  49077. ], EE = new bt(0, 0, 0, 0), ise = function(t) {
  49078. le(e, t);
  49079. function e(n, r, i, a, o) {
  49080. var s = t.call(this) || this;
  49081. return s._hovered = new T0(0, 0), s.storage = n, s.painter = r, s.painterRoot = a, s._pointerSize = o, i = i || new GHe(), s.proxy = null, s.setHandlerProxy(i), s._draggingMgr = new $He(s), s;
  49082. }
  49083. return e.prototype.setHandlerProxy = function(n) {
  49084. this.proxy && this.proxy.dispose(), n && (F(jHe, function(r) {
  49085. n.on && n.on(r, this[r], this);
  49086. }, this), n.handler = this), this.proxy = n;
  49087. }, e.prototype.mousemove = function(n) {
  49088. var r = n.zrX, i = n.zrY, a = ase(this, r, i), o = this._hovered, s = o.target;
  49089. s && !s.__zr && (o = this.findHover(o.x, o.y), s = o.target);
  49090. var l = this._hovered = a ? new T0(r, i) : this.findHover(r, i), u = l.target, c = this.proxy;
  49091. c.setCursor && c.setCursor(u ? u.cursor : "default"), s && u !== s && this.dispatchToElement(o, "mouseout", n), this.dispatchToElement(l, "mousemove", n), u && u !== s && this.dispatchToElement(l, "mouseover", n);
  49092. }, e.prototype.mouseout = function(n) {
  49093. var r = n.zrEventControl;
  49094. r !== "only_globalout" && this.dispatchToElement(this._hovered, "mouseout", n), r !== "no_globalout" && this.trigger("globalout", { type: "globalout", event: n });
  49095. }, e.prototype.resize = function() {
  49096. this._hovered = new T0(0, 0);
  49097. }, e.prototype.dispatch = function(n, r) {
  49098. var i = this[n];
  49099. i && i.call(this, r);
  49100. }, e.prototype.dispose = function() {
  49101. this.proxy.dispose(), this.storage = null, this.proxy = null, this.painter = null;
  49102. }, e.prototype.setCursorStyle = function(n) {
  49103. var r = this.proxy;
  49104. r.setCursor && r.setCursor(n);
  49105. }, e.prototype.dispatchToElement = function(n, r, i) {
  49106. n = n || {};
  49107. var a = n.target;
  49108. if (!(a && a.silent)) {
  49109. for (var o = "on" + r, s = QHe(r, n, i); a && (a[o] && (s.cancelBubble = !!a[o].call(a, s)), a.trigger(r, s), a = a.__hostTarget ? a.__hostTarget : a.parent, !s.cancelBubble); )
  49110. ;
  49111. s.cancelBubble || (this.trigger(r, s), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(l) {
  49112. typeof l[o] == "function" && l[o].call(l, s), l.trigger && l.trigger(r, s);
  49113. }));
  49114. }
  49115. }, e.prototype.findHover = function(n, r, i) {
  49116. var a = this.storage.getDisplayList(), o = new T0(n, r);
  49117. if (_H(a, o, n, r, i), this._pointerSize && !o.target) {
  49118. for (var s = [], l = this._pointerSize, u = l / 2, c = new bt(n - u, r - u, l, l), f = a.length - 1; f >= 0; f--) {
  49119. var d = a[f];
  49120. d !== i && !d.ignore && !d.ignoreCoarsePointer && (!d.parent || !d.parent.ignoreCoarsePointer) && (EE.copy(d.getBoundingRect()), d.transform && EE.applyTransform(d.transform), EE.intersect(c) && s.push(d));
  49121. }
  49122. if (s.length)
  49123. for (var h = 4, p = Math.PI / 12, v = Math.PI * 2, g = 0; g < u; g += h)
  49124. for (var m = 0; m < v; m += p) {
  49125. var y = n + g * Math.cos(m), _ = r + g * Math.sin(m);
  49126. if (_H(s, o, y, _, i), o.target)
  49127. return o;
  49128. }
  49129. }
  49130. return o;
  49131. }, e.prototype.processGesture = function(n, r) {
  49132. this._gestureMgr || (this._gestureMgr = new zHe());
  49133. var i = this._gestureMgr;
  49134. r === "start" && i.clear();
  49135. var a = i.recognize(n, this.findHover(n.zrX, n.zrY, null).target, this.proxy.dom);
  49136. if (r === "end" && i.clear(), a) {
  49137. var o = a.type;
  49138. n.gestureEvent = o;
  49139. var s = new T0();
  49140. s.target = a.target, this.dispatchToElement(s, o, a.event);
  49141. }
  49142. }, e;
  49143. }(fs);
  49144. F(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], function(t) {
  49145. ise.prototype[t] = function(e) {
  49146. var n = e.zrX, r = e.zrY, i = ase(this, n, r), a, o;
  49147. if ((t !== "mouseup" || !i) && (a = this.findHover(n, r), o = a.target), t === "mousedown")
  49148. this._downEl = o, this._downPoint = [e.zrX, e.zrY], this._upEl = o;
  49149. else if (t === "mouseup")
  49150. this._upEl = o;
  49151. else if (t === "click") {
  49152. if (this._downEl !== this._upEl || !this._downPoint || wu(this._downPoint, [e.zrX, e.zrY]) > 4)
  49153. return;
  49154. this._downPoint = null;
  49155. }
  49156. this.dispatchToElement(a, t, e);
  49157. };
  49158. });
  49159. function ZHe(t, e, n) {
  49160. if (t[t.rectHover ? "rectContain" : "contain"](e, n)) {
  49161. for (var r = t, i = void 0, a = !1; r; ) {
  49162. if (r.ignoreClip && (a = !0), !a) {
  49163. var o = r.getClipPath();
  49164. if (o && !o.contain(e, n))
  49165. return !1;
  49166. }
  49167. r.silent && (i = !0);
  49168. var s = r.__hostTarget;
  49169. r = s || r.parent;
  49170. }
  49171. return i ? rse : !0;
  49172. }
  49173. return !1;
  49174. }
  49175. function _H(t, e, n, r, i) {
  49176. for (var a = t.length - 1; a >= 0; a--) {
  49177. var o = t[a], s = void 0;
  49178. if (o !== i && !o.ignore && (s = ZHe(o, n, r)) && (!e.topTarget && (e.topTarget = o), s !== rse)) {
  49179. e.target = o;
  49180. break;
  49181. }
  49182. }
  49183. }
  49184. function ase(t, e, n) {
  49185. var r = t.painter;
  49186. return e < 0 || e > r.getWidth() || n < 0 || n > r.getHeight();
  49187. }
  49188. var ose = 32, P0 = 7;
  49189. function UHe(t) {
  49190. for (var e = 0; t >= ose; )
  49191. e |= t & 1, t >>= 1;
  49192. return t + e;
  49193. }
  49194. function OH(t, e, n, r) {
  49195. var i = e + 1;
  49196. if (i === n)
  49197. return 1;
  49198. if (r(t[i++], t[e]) < 0) {
  49199. for (; i < n && r(t[i], t[i - 1]) < 0; )
  49200. i++;
  49201. XHe(t, e, i);
  49202. } else
  49203. for (; i < n && r(t[i], t[i - 1]) >= 0; )
  49204. i++;
  49205. return i - e;
  49206. }
  49207. function XHe(t, e, n) {
  49208. for (n--; e < n; ) {
  49209. var r = t[e];
  49210. t[e++] = t[n], t[n--] = r;
  49211. }
  49212. }
  49213. function SH(t, e, n, r, i) {
  49214. for (r === e && r++; r < n; r++) {
  49215. for (var a = t[r], o = e, s = r, l; o < s; )
  49216. l = o + s >>> 1, i(a, t[l]) < 0 ? s = l : o = l + 1;
  49217. var u = r - o;
  49218. switch (u) {
  49219. case 3:
  49220. t[o + 3] = t[o + 2];
  49221. case 2:
  49222. t[o + 2] = t[o + 1];
  49223. case 1:
  49224. t[o + 1] = t[o];
  49225. break;
  49226. default:
  49227. for (; u > 0; )
  49228. t[o + u] = t[o + u - 1], u--;
  49229. }
  49230. t[o] = a;
  49231. }
  49232. }
  49233. function ME(t, e, n, r, i, a) {
  49234. var o = 0, s = 0, l = 1;
  49235. if (a(t, e[n + i]) > 0) {
  49236. for (s = r - i; l < s && a(t, e[n + i + l]) > 0; )
  49237. o = l, l = (l << 1) + 1, l <= 0 && (l = s);
  49238. l > s && (l = s), o += i, l += i;
  49239. } else {
  49240. for (s = i + 1; l < s && a(t, e[n + i - l]) <= 0; )
  49241. o = l, l = (l << 1) + 1, l <= 0 && (l = s);
  49242. l > s && (l = s);
  49243. var u = o;
  49244. o = i - l, l = i - u;
  49245. }
  49246. for (o++; o < l; ) {
  49247. var c = o + (l - o >>> 1);
  49248. a(t, e[n + c]) > 0 ? o = c + 1 : l = c;
  49249. }
  49250. return l;
  49251. }
  49252. function IE(t, e, n, r, i, a) {
  49253. var o = 0, s = 0, l = 1;
  49254. if (a(t, e[n + i]) < 0) {
  49255. for (s = i + 1; l < s && a(t, e[n + i - l]) < 0; )
  49256. o = l, l = (l << 1) + 1, l <= 0 && (l = s);
  49257. l > s && (l = s);
  49258. var u = o;
  49259. o = i - l, l = i - u;
  49260. } else {
  49261. for (s = r - i; l < s && a(t, e[n + i + l]) >= 0; )
  49262. o = l, l = (l << 1) + 1, l <= 0 && (l = s);
  49263. l > s && (l = s), o += i, l += i;
  49264. }
  49265. for (o++; o < l; ) {
  49266. var c = o + (l - o >>> 1);
  49267. a(t, e[n + c]) < 0 ? l = c : o = c + 1;
  49268. }
  49269. return l;
  49270. }
  49271. function YHe(t, e) {
  49272. var n = P0, r, i, a = 0, o = [];
  49273. r = [], i = [];
  49274. function s(h, p) {
  49275. r[a] = h, i[a] = p, a += 1;
  49276. }
  49277. function l() {
  49278. for (; a > 1; ) {
  49279. var h = a - 2;
  49280. if (h >= 1 && i[h - 1] <= i[h] + i[h + 1] || h >= 2 && i[h - 2] <= i[h] + i[h - 1])
  49281. i[h - 1] < i[h + 1] && h--;
  49282. else if (i[h] > i[h + 1])
  49283. break;
  49284. c(h);
  49285. }
  49286. }
  49287. function u() {
  49288. for (; a > 1; ) {
  49289. var h = a - 2;
  49290. h > 0 && i[h - 1] < i[h + 1] && h--, c(h);
  49291. }
  49292. }
  49293. function c(h) {
  49294. var p = r[h], v = i[h], g = r[h + 1], m = i[h + 1];
  49295. i[h] = v + m, h === a - 3 && (r[h + 1] = r[h + 2], i[h + 1] = i[h + 2]), a--;
  49296. var y = IE(t[g], t, p, v, 0, e);
  49297. p += y, v -= y, v !== 0 && (m = ME(t[p + v - 1], t, g, m, m - 1, e), m !== 0 && (v <= m ? f(p, v, g, m) : d(p, v, g, m)));
  49298. }
  49299. function f(h, p, v, g) {
  49300. var m = 0;
  49301. for (m = 0; m < p; m++)
  49302. o[m] = t[h + m];
  49303. var y = 0, _ = v, O = h;
  49304. if (t[O++] = t[_++], --g === 0) {
  49305. for (m = 0; m < p; m++)
  49306. t[O + m] = o[y + m];
  49307. return;
  49308. }
  49309. if (p === 1) {
  49310. for (m = 0; m < g; m++)
  49311. t[O + m] = t[_ + m];
  49312. t[O + g] = o[y];
  49313. return;
  49314. }
  49315. for (var S = n, x, C, P; ; ) {
  49316. x = 0, C = 0, P = !1;
  49317. do
  49318. if (e(t[_], o[y]) < 0) {
  49319. if (t[O++] = t[_++], C++, x = 0, --g === 0) {
  49320. P = !0;
  49321. break;
  49322. }
  49323. } else if (t[O++] = o[y++], x++, C = 0, --p === 1) {
  49324. P = !0;
  49325. break;
  49326. }
  49327. while ((x | C) < S);
  49328. if (P)
  49329. break;
  49330. do {
  49331. if (x = IE(t[_], o, y, p, 0, e), x !== 0) {
  49332. for (m = 0; m < x; m++)
  49333. t[O + m] = o[y + m];
  49334. if (O += x, y += x, p -= x, p <= 1) {
  49335. P = !0;
  49336. break;
  49337. }
  49338. }
  49339. if (t[O++] = t[_++], --g === 0) {
  49340. P = !0;
  49341. break;
  49342. }
  49343. if (C = ME(o[y], t, _, g, 0, e), C !== 0) {
  49344. for (m = 0; m < C; m++)
  49345. t[O + m] = t[_ + m];
  49346. if (O += C, _ += C, g -= C, g === 0) {
  49347. P = !0;
  49348. break;
  49349. }
  49350. }
  49351. if (t[O++] = o[y++], --p === 1) {
  49352. P = !0;
  49353. break;
  49354. }
  49355. S--;
  49356. } while (x >= P0 || C >= P0);
  49357. if (P)
  49358. break;
  49359. S < 0 && (S = 0), S += 2;
  49360. }
  49361. if (n = S, n < 1 && (n = 1), p === 1) {
  49362. for (m = 0; m < g; m++)
  49363. t[O + m] = t[_ + m];
  49364. t[O + g] = o[y];
  49365. } else {
  49366. if (p === 0)
  49367. throw new Error();
  49368. for (m = 0; m < p; m++)
  49369. t[O + m] = o[y + m];
  49370. }
  49371. }
  49372. function d(h, p, v, g) {
  49373. var m = 0;
  49374. for (m = 0; m < g; m++)
  49375. o[m] = t[v + m];
  49376. var y = h + p - 1, _ = g - 1, O = v + g - 1, S = 0, x = 0;
  49377. if (t[O--] = t[y--], --p === 0) {
  49378. for (S = O - (g - 1), m = 0; m < g; m++)
  49379. t[S + m] = o[m];
  49380. return;
  49381. }
  49382. if (g === 1) {
  49383. for (O -= p, y -= p, x = O + 1, S = y + 1, m = p - 1; m >= 0; m--)
  49384. t[x + m] = t[S + m];
  49385. t[O] = o[_];
  49386. return;
  49387. }
  49388. for (var C = n; ; ) {
  49389. var P = 0, $ = 0, T = !1;
  49390. do
  49391. if (e(o[_], t[y]) < 0) {
  49392. if (t[O--] = t[y--], P++, $ = 0, --p === 0) {
  49393. T = !0;
  49394. break;
  49395. }
  49396. } else if (t[O--] = o[_--], $++, P = 0, --g === 1) {
  49397. T = !0;
  49398. break;
  49399. }
  49400. while ((P | $) < C);
  49401. if (T)
  49402. break;
  49403. do {
  49404. if (P = p - IE(o[_], t, h, p, p - 1, e), P !== 0) {
  49405. for (O -= P, y -= P, p -= P, x = O + 1, S = y + 1, m = P - 1; m >= 0; m--)
  49406. t[x + m] = t[S + m];
  49407. if (p === 0) {
  49408. T = !0;
  49409. break;
  49410. }
  49411. }
  49412. if (t[O--] = o[_--], --g === 1) {
  49413. T = !0;
  49414. break;
  49415. }
  49416. if ($ = g - ME(t[y], o, 0, g, g - 1, e), $ !== 0) {
  49417. for (O -= $, _ -= $, g -= $, x = O + 1, S = _ + 1, m = 0; m < $; m++)
  49418. t[x + m] = o[S + m];
  49419. if (g <= 1) {
  49420. T = !0;
  49421. break;
  49422. }
  49423. }
  49424. if (t[O--] = t[y--], --p === 0) {
  49425. T = !0;
  49426. break;
  49427. }
  49428. C--;
  49429. } while (P >= P0 || $ >= P0);
  49430. if (T)
  49431. break;
  49432. C < 0 && (C = 0), C += 2;
  49433. }
  49434. if (n = C, n < 1 && (n = 1), g === 1) {
  49435. for (O -= p, y -= p, x = O + 1, S = y + 1, m = p - 1; m >= 0; m--)
  49436. t[x + m] = t[S + m];
  49437. t[O] = o[_];
  49438. } else {
  49439. if (g === 0)
  49440. throw new Error();
  49441. for (S = O - (g - 1), m = 0; m < g; m++)
  49442. t[S + m] = o[m];
  49443. }
  49444. }
  49445. return {
  49446. mergeRuns: l,
  49447. forceMergeRuns: u,
  49448. pushRun: s
  49449. };
  49450. }
  49451. function aw(t, e, n, r) {
  49452. n || (n = 0), r || (r = t.length);
  49453. var i = r - n;
  49454. if (!(i < 2)) {
  49455. var a = 0;
  49456. if (i < ose) {
  49457. a = OH(t, n, r, e), SH(t, n, r, n + a, e);
  49458. return;
  49459. }
  49460. var o = YHe(t, e), s = UHe(i);
  49461. do {
  49462. if (a = OH(t, n, r, e), a < s) {
  49463. var l = i;
  49464. l > s && (l = s), SH(t, n, n + l, n + a, e), a = l;
  49465. }
  49466. o.pushRun(n, a), o.mergeRuns(), i -= a, n += a;
  49467. } while (i !== 0);
  49468. o.forceMergeRuns();
  49469. }
  49470. }
  49471. var to = 1, hy = 2, _v = 4, xH = !1;
  49472. function DE() {
  49473. xH || (xH = !0, console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"));
  49474. }
  49475. function wH(t, e) {
  49476. return t.zlevel === e.zlevel ? t.z === e.z ? t.z2 - e.z2 : t.z - e.z : t.zlevel - e.zlevel;
  49477. }
  49478. var qHe = function() {
  49479. function t() {
  49480. this._roots = [], this._displayList = [], this._displayListLen = 0, this.displayableSortFunc = wH;
  49481. }
  49482. return t.prototype.traverse = function(e, n) {
  49483. for (var r = 0; r < this._roots.length; r++)
  49484. this._roots[r].traverse(e, n);
  49485. }, t.prototype.getDisplayList = function(e, n) {
  49486. n = n || !1;
  49487. var r = this._displayList;
  49488. return (e || !r.length) && this.updateDisplayList(n), r;
  49489. }, t.prototype.updateDisplayList = function(e) {
  49490. this._displayListLen = 0;
  49491. for (var n = this._roots, r = this._displayList, i = 0, a = n.length; i < a; i++)
  49492. this._updateAndAddDisplayable(n[i], null, e);
  49493. r.length = this._displayListLen, aw(r, wH);
  49494. }, t.prototype._updateAndAddDisplayable = function(e, n, r) {
  49495. if (!(e.ignore && !r)) {
  49496. e.beforeUpdate(), e.update(), e.afterUpdate();
  49497. var i = e.getClipPath();
  49498. if (e.ignoreClip)
  49499. n = null;
  49500. else if (i) {
  49501. n ? n = n.slice() : n = [];
  49502. for (var a = i, o = e; a; )
  49503. a.parent = o, a.updateTransform(), n.push(a), o = a, a = a.getClipPath();
  49504. }
  49505. if (e.childrenRef) {
  49506. for (var s = e.childrenRef(), l = 0; l < s.length; l++) {
  49507. var u = s[l];
  49508. e.__dirty && (u.__dirty |= to), this._updateAndAddDisplayable(u, n, r);
  49509. }
  49510. e.__dirty = 0;
  49511. } else {
  49512. var c = e;
  49513. n && n.length ? c.__clipPaths = n : c.__clipPaths && c.__clipPaths.length > 0 && (c.__clipPaths = []), isNaN(c.z) && (DE(), c.z = 0), isNaN(c.z2) && (DE(), c.z2 = 0), isNaN(c.zlevel) && (DE(), c.zlevel = 0), this._displayList[this._displayListLen++] = c;
  49514. }
  49515. var f = e.getDecalElement && e.getDecalElement();
  49516. f && this._updateAndAddDisplayable(f, n, r);
  49517. var d = e.getTextGuideLine();
  49518. d && this._updateAndAddDisplayable(d, n, r);
  49519. var h = e.getTextContent();
  49520. h && this._updateAndAddDisplayable(h, n, r);
  49521. }
  49522. }, t.prototype.addRoot = function(e) {
  49523. e.__zr && e.__zr.storage === this || this._roots.push(e);
  49524. }, t.prototype.delRoot = function(e) {
  49525. if (e instanceof Array) {
  49526. for (var n = 0, r = e.length; n < r; n++)
  49527. this.delRoot(e[n]);
  49528. return;
  49529. }
  49530. var i = St(this._roots, e);
  49531. i >= 0 && this._roots.splice(i, 1);
  49532. }, t.prototype.delAllRoots = function() {
  49533. this._roots = [], this._displayList = [], this._displayListLen = 0;
  49534. }, t.prototype.getRoots = function() {
  49535. return this._roots;
  49536. }, t.prototype.dispose = function() {
  49537. this._displayList = null, this._roots = null;
  49538. }, t;
  49539. }(), SC;
  49540. SC = Gt.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(t) {
  49541. return setTimeout(t, 16);
  49542. };
  49543. var qy = {
  49544. linear: function(t) {
  49545. return t;
  49546. },
  49547. quadraticIn: function(t) {
  49548. return t * t;
  49549. },
  49550. quadraticOut: function(t) {
  49551. return t * (2 - t);
  49552. },
  49553. quadraticInOut: function(t) {
  49554. return (t *= 2) < 1 ? 0.5 * t * t : -0.5 * (--t * (t - 2) - 1);
  49555. },
  49556. cubicIn: function(t) {
  49557. return t * t * t;
  49558. },
  49559. cubicOut: function(t) {
  49560. return --t * t * t + 1;
  49561. },
  49562. cubicInOut: function(t) {
  49563. return (t *= 2) < 1 ? 0.5 * t * t * t : 0.5 * ((t -= 2) * t * t + 2);
  49564. },
  49565. quarticIn: function(t) {
  49566. return t * t * t * t;
  49567. },
  49568. quarticOut: function(t) {
  49569. return 1 - --t * t * t * t;
  49570. },
  49571. quarticInOut: function(t) {
  49572. return (t *= 2) < 1 ? 0.5 * t * t * t * t : -0.5 * ((t -= 2) * t * t * t - 2);
  49573. },
  49574. quinticIn: function(t) {
  49575. return t * t * t * t * t;
  49576. },
  49577. quinticOut: function(t) {
  49578. return --t * t * t * t * t + 1;
  49579. },
  49580. quinticInOut: function(t) {
  49581. return (t *= 2) < 1 ? 0.5 * t * t * t * t * t : 0.5 * ((t -= 2) * t * t * t * t + 2);
  49582. },
  49583. sinusoidalIn: function(t) {
  49584. return 1 - Math.cos(t * Math.PI / 2);
  49585. },
  49586. sinusoidalOut: function(t) {
  49587. return Math.sin(t * Math.PI / 2);
  49588. },
  49589. sinusoidalInOut: function(t) {
  49590. return 0.5 * (1 - Math.cos(Math.PI * t));
  49591. },
  49592. exponentialIn: function(t) {
  49593. return t === 0 ? 0 : Math.pow(1024, t - 1);
  49594. },
  49595. exponentialOut: function(t) {
  49596. return t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
  49597. },
  49598. exponentialInOut: function(t) {
  49599. return t === 0 ? 0 : t === 1 ? 1 : (t *= 2) < 1 ? 0.5 * Math.pow(1024, t - 1) : 0.5 * (-Math.pow(2, -10 * (t - 1)) + 2);
  49600. },
  49601. circularIn: function(t) {
  49602. return 1 - Math.sqrt(1 - t * t);
  49603. },
  49604. circularOut: function(t) {
  49605. return Math.sqrt(1 - --t * t);
  49606. },
  49607. circularInOut: function(t) {
  49608. return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
  49609. },
  49610. elasticIn: function(t) {
  49611. var e, n = 0.1, r = 0.4;
  49612. return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1, e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI), -(n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r)));
  49613. },
  49614. elasticOut: function(t) {
  49615. var e, n = 0.1, r = 0.4;
  49616. return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1, e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI), n * Math.pow(2, -10 * t) * Math.sin((t - e) * (2 * Math.PI) / r) + 1);
  49617. },
  49618. elasticInOut: function(t) {
  49619. var e, n = 0.1, r = 0.4;
  49620. return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1, e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI), (t *= 2) < 1 ? -0.5 * (n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r)) : n * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r) * 0.5 + 1);
  49621. },
  49622. backIn: function(t) {
  49623. var e = 1.70158;
  49624. return t * t * ((e + 1) * t - e);
  49625. },
  49626. backOut: function(t) {
  49627. var e = 1.70158;
  49628. return --t * t * ((e + 1) * t + e) + 1;
  49629. },
  49630. backInOut: function(t) {
  49631. var e = 2.5949095;
  49632. return (t *= 2) < 1 ? 0.5 * (t * t * ((e + 1) * t - e)) : 0.5 * ((t -= 2) * t * ((e + 1) * t + e) + 2);
  49633. },
  49634. bounceIn: function(t) {
  49635. return 1 - qy.bounceOut(1 - t);
  49636. },
  49637. bounceOut: function(t) {
  49638. return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
  49639. },
  49640. bounceInOut: function(t) {
  49641. return t < 0.5 ? qy.bounceIn(t * 2) * 0.5 : qy.bounceOut(t * 2 - 1) * 0.5 + 0.5;
  49642. }
  49643. }, aS = Math.pow, rf = Math.sqrt, xC = 1e-8, sse = 1e-4, CH = rf(3), oS = 1 / 3, xl = kf(), Qo = kf(), Xv = kf();
  49644. function Qc(t) {
  49645. return t > -xC && t < xC;
  49646. }
  49647. function lse(t) {
  49648. return t > xC || t < -xC;
  49649. }
  49650. function jr(t, e, n, r, i) {
  49651. var a = 1 - i;
  49652. return a * a * (a * t + 3 * i * e) + i * i * (i * r + 3 * a * n);
  49653. }
  49654. function TH(t, e, n, r, i) {
  49655. var a = 1 - i;
  49656. return 3 * (((e - t) * a + 2 * (n - e) * i) * a + (r - n) * i * i);
  49657. }
  49658. function wC(t, e, n, r, i, a) {
  49659. var o = r + 3 * (e - n) - t, s = 3 * (n - e * 2 + t), l = 3 * (e - t), u = t - i, c = s * s - 3 * o * l, f = s * l - 9 * o * u, d = l * l - 3 * s * u, h = 0;
  49660. if (Qc(c) && Qc(f))
  49661. if (Qc(s))
  49662. a[0] = 0;
  49663. else {
  49664. var p = -l / s;
  49665. p >= 0 && p <= 1 && (a[h++] = p);
  49666. }
  49667. else {
  49668. var v = f * f - 4 * c * d;
  49669. if (Qc(v)) {
  49670. var g = f / c, p = -s / o + g, m = -g / 2;
  49671. p >= 0 && p <= 1 && (a[h++] = p), m >= 0 && m <= 1 && (a[h++] = m);
  49672. } else if (v > 0) {
  49673. var y = rf(v), _ = c * s + 1.5 * o * (-f + y), O = c * s + 1.5 * o * (-f - y);
  49674. _ < 0 ? _ = -aS(-_, oS) : _ = aS(_, oS), O < 0 ? O = -aS(-O, oS) : O = aS(O, oS);
  49675. var p = (-s - (_ + O)) / (3 * o);
  49676. p >= 0 && p <= 1 && (a[h++] = p);
  49677. } else {
  49678. var S = (2 * c * s - 3 * o * f) / (2 * rf(c * c * c)), x = Math.acos(S) / 3, C = rf(c), P = Math.cos(x), p = (-s - 2 * C * P) / (3 * o), m = (-s + C * (P + CH * Math.sin(x))) / (3 * o), $ = (-s + C * (P - CH * Math.sin(x))) / (3 * o);
  49679. p >= 0 && p <= 1 && (a[h++] = p), m >= 0 && m <= 1 && (a[h++] = m), $ >= 0 && $ <= 1 && (a[h++] = $);
  49680. }
  49681. }
  49682. return h;
  49683. }
  49684. function use(t, e, n, r, i) {
  49685. var a = 6 * n - 12 * e + 6 * t, o = 9 * e + 3 * r - 3 * t - 9 * n, s = 3 * e - 3 * t, l = 0;
  49686. if (Qc(o)) {
  49687. if (lse(a)) {
  49688. var u = -s / a;
  49689. u >= 0 && u <= 1 && (i[l++] = u);
  49690. }
  49691. } else {
  49692. var c = a * a - 4 * o * s;
  49693. if (Qc(c))
  49694. i[0] = -a / (2 * o);
  49695. else if (c > 0) {
  49696. var f = rf(c), u = (-a + f) / (2 * o), d = (-a - f) / (2 * o);
  49697. u >= 0 && u <= 1 && (i[l++] = u), d >= 0 && d <= 1 && (i[l++] = d);
  49698. }
  49699. }
  49700. return l;
  49701. }
  49702. function yf(t, e, n, r, i, a) {
  49703. var o = (e - t) * i + t, s = (n - e) * i + e, l = (r - n) * i + n, u = (s - o) * i + o, c = (l - s) * i + s, f = (c - u) * i + u;
  49704. a[0] = t, a[1] = o, a[2] = u, a[3] = f, a[4] = f, a[5] = c, a[6] = l, a[7] = r;
  49705. }
  49706. function cse(t, e, n, r, i, a, o, s, l, u, c) {
  49707. var f, d = 5e-3, h = 1 / 0, p, v, g, m;
  49708. xl[0] = l, xl[1] = u;
  49709. for (var y = 0; y < 1; y += 0.05)
  49710. Qo[0] = jr(t, n, i, o, y), Qo[1] = jr(e, r, a, s, y), g = nf(xl, Qo), g < h && (f = y, h = g);
  49711. h = 1 / 0;
  49712. for (var _ = 0; _ < 32 && !(d < sse); _++)
  49713. p = f - d, v = f + d, Qo[0] = jr(t, n, i, o, p), Qo[1] = jr(e, r, a, s, p), g = nf(Qo, xl), p >= 0 && g < h ? (f = p, h = g) : (Xv[0] = jr(t, n, i, o, v), Xv[1] = jr(e, r, a, s, v), m = nf(Xv, xl), v <= 1 && m < h ? (f = v, h = m) : d *= 0.5);
  49714. return c && (c[0] = jr(t, n, i, o, f), c[1] = jr(e, r, a, s, f)), rf(h);
  49715. }
  49716. function KHe(t, e, n, r, i, a, o, s, l) {
  49717. for (var u = t, c = e, f = 0, d = 1 / l, h = 1; h <= l; h++) {
  49718. var p = h * d, v = jr(t, n, i, o, p), g = jr(e, r, a, s, p), m = v - u, y = g - c;
  49719. f += Math.sqrt(m * m + y * y), u = v, c = g;
  49720. }
  49721. return f;
  49722. }
  49723. function ii(t, e, n, r) {
  49724. var i = 1 - r;
  49725. return i * (i * t + 2 * r * e) + r * r * n;
  49726. }
  49727. function sk(t, e, n, r) {
  49728. return 2 * ((1 - r) * (e - t) + r * (n - e));
  49729. }
  49730. function JHe(t, e, n, r, i) {
  49731. var a = t - 2 * e + n, o = 2 * (e - t), s = t - r, l = 0;
  49732. if (Qc(a)) {
  49733. if (lse(o)) {
  49734. var u = -s / o;
  49735. u >= 0 && u <= 1 && (i[l++] = u);
  49736. }
  49737. } else {
  49738. var c = o * o - 4 * a * s;
  49739. if (Qc(c)) {
  49740. var u = -o / (2 * a);
  49741. u >= 0 && u <= 1 && (i[l++] = u);
  49742. } else if (c > 0) {
  49743. var f = rf(c), u = (-o + f) / (2 * a), d = (-o - f) / (2 * a);
  49744. u >= 0 && u <= 1 && (i[l++] = u), d >= 0 && d <= 1 && (i[l++] = d);
  49745. }
  49746. }
  49747. return l;
  49748. }
  49749. function fse(t, e, n) {
  49750. var r = t + n - 2 * e;
  49751. return r === 0 ? 0.5 : (t - e) / r;
  49752. }
  49753. function Qb(t, e, n, r, i) {
  49754. var a = (e - t) * r + t, o = (n - e) * r + e, s = (o - a) * r + a;
  49755. i[0] = t, i[1] = a, i[2] = s, i[3] = s, i[4] = o, i[5] = n;
  49756. }
  49757. function dse(t, e, n, r, i, a, o, s, l) {
  49758. var u, c = 5e-3, f = 1 / 0;
  49759. xl[0] = o, xl[1] = s;
  49760. for (var d = 0; d < 1; d += 0.05) {
  49761. Qo[0] = ii(t, n, i, d), Qo[1] = ii(e, r, a, d);
  49762. var h = nf(xl, Qo);
  49763. h < f && (u = d, f = h);
  49764. }
  49765. f = 1 / 0;
  49766. for (var p = 0; p < 32 && !(c < sse); p++) {
  49767. var v = u - c, g = u + c;
  49768. Qo[0] = ii(t, n, i, v), Qo[1] = ii(e, r, a, v);
  49769. var h = nf(Qo, xl);
  49770. if (v >= 0 && h < f)
  49771. u = v, f = h;
  49772. else {
  49773. Xv[0] = ii(t, n, i, g), Xv[1] = ii(e, r, a, g);
  49774. var m = nf(Xv, xl);
  49775. g <= 1 && m < f ? (u = g, f = m) : c *= 0.5;
  49776. }
  49777. }
  49778. return l && (l[0] = ii(t, n, i, u), l[1] = ii(e, r, a, u)), rf(f);
  49779. }
  49780. function eGe(t, e, n, r, i, a, o) {
  49781. for (var s = t, l = e, u = 0, c = 1 / o, f = 1; f <= o; f++) {
  49782. var d = f * c, h = ii(t, n, i, d), p = ii(e, r, a, d), v = h - s, g = p - l;
  49783. u += Math.sqrt(v * v + g * g), s = h, l = p;
  49784. }
  49785. return u;
  49786. }
  49787. var tGe = /cubic-bezier\(([0-9,\.e ]+)\)/;
  49788. function S5(t) {
  49789. var e = t && tGe.exec(t);
  49790. if (e) {
  49791. var n = e[1].split(","), r = +Zo(n[0]), i = +Zo(n[1]), a = +Zo(n[2]), o = +Zo(n[3]);
  49792. if (isNaN(r + i + a + o))
  49793. return;
  49794. var s = [];
  49795. return function(l) {
  49796. return l <= 0 ? 0 : l >= 1 ? 1 : wC(0, r, a, 1, l, s) && jr(0, i, o, 1, s[0]);
  49797. };
  49798. }
  49799. }
  49800. var nGe = function() {
  49801. function t(e) {
  49802. this._inited = !1, this._startTime = 0, this._pausedTime = 0, this._paused = !1, this._life = e.life || 1e3, this._delay = e.delay || 0, this.loop = e.loop || !1, this.onframe = e.onframe || fr, this.ondestroy = e.ondestroy || fr, this.onrestart = e.onrestart || fr, e.easing && this.setEasing(e.easing);
  49803. }
  49804. return t.prototype.step = function(e, n) {
  49805. if (this._inited || (this._startTime = e + this._delay, this._inited = !0), this._paused) {
  49806. this._pausedTime += n;
  49807. return;
  49808. }
  49809. var r = this._life, i = e - this._startTime - this._pausedTime, a = i / r;
  49810. a < 0 && (a = 0), a = Math.min(a, 1);
  49811. var o = this.easingFunc, s = o ? o(a) : a;
  49812. if (this.onframe(s), a === 1)
  49813. if (this.loop) {
  49814. var l = i % r;
  49815. this._startTime = e - l, this._pausedTime = 0, this.onrestart();
  49816. } else
  49817. return !0;
  49818. return !1;
  49819. }, t.prototype.pause = function() {
  49820. this._paused = !0;
  49821. }, t.prototype.resume = function() {
  49822. this._paused = !1;
  49823. }, t.prototype.setEasing = function(e) {
  49824. this.easing = e, this.easingFunc = qe(e) ? e : qy[e] || S5(e);
  49825. }, t;
  49826. }(), hse = /* @__PURE__ */ function() {
  49827. function t(e) {
  49828. this.value = e;
  49829. }
  49830. return t;
  49831. }(), rGe = function() {
  49832. function t() {
  49833. this._len = 0;
  49834. }
  49835. return t.prototype.insert = function(e) {
  49836. var n = new hse(e);
  49837. return this.insertEntry(n), n;
  49838. }, t.prototype.insertEntry = function(e) {
  49839. this.head ? (this.tail.next = e, e.prev = this.tail, e.next = null, this.tail = e) : this.head = this.tail = e, this._len++;
  49840. }, t.prototype.remove = function(e) {
  49841. var n = e.prev, r = e.next;
  49842. n ? n.next = r : this.head = r, r ? r.prev = n : this.tail = n, e.next = e.prev = null, this._len--;
  49843. }, t.prototype.len = function() {
  49844. return this._len;
  49845. }, t.prototype.clear = function() {
  49846. this.head = this.tail = null, this._len = 0;
  49847. }, t;
  49848. }(), a1 = function() {
  49849. function t(e) {
  49850. this._list = new rGe(), this._maxSize = 10, this._map = {}, this._maxSize = e;
  49851. }
  49852. return t.prototype.put = function(e, n) {
  49853. var r = this._list, i = this._map, a = null;
  49854. if (i[e] == null) {
  49855. var o = r.len(), s = this._lastRemovedEntry;
  49856. if (o >= this._maxSize && o > 0) {
  49857. var l = r.head;
  49858. r.remove(l), delete i[l.key], a = l.value, this._lastRemovedEntry = l;
  49859. }
  49860. s ? s.value = n : s = new hse(n), s.key = e, r.insertEntry(s), i[e] = s;
  49861. }
  49862. return a;
  49863. }, t.prototype.get = function(e) {
  49864. var n = this._map[e], r = this._list;
  49865. if (n != null)
  49866. return n !== r.tail && (r.remove(n), r.insertEntry(n)), n.value;
  49867. }, t.prototype.clear = function() {
  49868. this._list.clear(), this._map = {};
  49869. }, t.prototype.len = function() {
  49870. return this._list.len();
  49871. }, t;
  49872. }(), PH = {
  49873. transparent: [0, 0, 0, 0],
  49874. aliceblue: [240, 248, 255, 1],
  49875. antiquewhite: [250, 235, 215, 1],
  49876. aqua: [0, 255, 255, 1],
  49877. aquamarine: [127, 255, 212, 1],
  49878. azure: [240, 255, 255, 1],
  49879. beige: [245, 245, 220, 1],
  49880. bisque: [255, 228, 196, 1],
  49881. black: [0, 0, 0, 1],
  49882. blanchedalmond: [255, 235, 205, 1],
  49883. blue: [0, 0, 255, 1],
  49884. blueviolet: [138, 43, 226, 1],
  49885. brown: [165, 42, 42, 1],
  49886. burlywood: [222, 184, 135, 1],
  49887. cadetblue: [95, 158, 160, 1],
  49888. chartreuse: [127, 255, 0, 1],
  49889. chocolate: [210, 105, 30, 1],
  49890. coral: [255, 127, 80, 1],
  49891. cornflowerblue: [100, 149, 237, 1],
  49892. cornsilk: [255, 248, 220, 1],
  49893. crimson: [220, 20, 60, 1],
  49894. cyan: [0, 255, 255, 1],
  49895. darkblue: [0, 0, 139, 1],
  49896. darkcyan: [0, 139, 139, 1],
  49897. darkgoldenrod: [184, 134, 11, 1],
  49898. darkgray: [169, 169, 169, 1],
  49899. darkgreen: [0, 100, 0, 1],
  49900. darkgrey: [169, 169, 169, 1],
  49901. darkkhaki: [189, 183, 107, 1],
  49902. darkmagenta: [139, 0, 139, 1],
  49903. darkolivegreen: [85, 107, 47, 1],
  49904. darkorange: [255, 140, 0, 1],
  49905. darkorchid: [153, 50, 204, 1],
  49906. darkred: [139, 0, 0, 1],
  49907. darksalmon: [233, 150, 122, 1],
  49908. darkseagreen: [143, 188, 143, 1],
  49909. darkslateblue: [72, 61, 139, 1],
  49910. darkslategray: [47, 79, 79, 1],
  49911. darkslategrey: [47, 79, 79, 1],
  49912. darkturquoise: [0, 206, 209, 1],
  49913. darkviolet: [148, 0, 211, 1],
  49914. deeppink: [255, 20, 147, 1],
  49915. deepskyblue: [0, 191, 255, 1],
  49916. dimgray: [105, 105, 105, 1],
  49917. dimgrey: [105, 105, 105, 1],
  49918. dodgerblue: [30, 144, 255, 1],
  49919. firebrick: [178, 34, 34, 1],
  49920. floralwhite: [255, 250, 240, 1],
  49921. forestgreen: [34, 139, 34, 1],
  49922. fuchsia: [255, 0, 255, 1],
  49923. gainsboro: [220, 220, 220, 1],
  49924. ghostwhite: [248, 248, 255, 1],
  49925. gold: [255, 215, 0, 1],
  49926. goldenrod: [218, 165, 32, 1],
  49927. gray: [128, 128, 128, 1],
  49928. green: [0, 128, 0, 1],
  49929. greenyellow: [173, 255, 47, 1],
  49930. grey: [128, 128, 128, 1],
  49931. honeydew: [240, 255, 240, 1],
  49932. hotpink: [255, 105, 180, 1],
  49933. indianred: [205, 92, 92, 1],
  49934. indigo: [75, 0, 130, 1],
  49935. ivory: [255, 255, 240, 1],
  49936. khaki: [240, 230, 140, 1],
  49937. lavender: [230, 230, 250, 1],
  49938. lavenderblush: [255, 240, 245, 1],
  49939. lawngreen: [124, 252, 0, 1],
  49940. lemonchiffon: [255, 250, 205, 1],
  49941. lightblue: [173, 216, 230, 1],
  49942. lightcoral: [240, 128, 128, 1],
  49943. lightcyan: [224, 255, 255, 1],
  49944. lightgoldenrodyellow: [250, 250, 210, 1],
  49945. lightgray: [211, 211, 211, 1],
  49946. lightgreen: [144, 238, 144, 1],
  49947. lightgrey: [211, 211, 211, 1],
  49948. lightpink: [255, 182, 193, 1],
  49949. lightsalmon: [255, 160, 122, 1],
  49950. lightseagreen: [32, 178, 170, 1],
  49951. lightskyblue: [135, 206, 250, 1],
  49952. lightslategray: [119, 136, 153, 1],
  49953. lightslategrey: [119, 136, 153, 1],
  49954. lightsteelblue: [176, 196, 222, 1],
  49955. lightyellow: [255, 255, 224, 1],
  49956. lime: [0, 255, 0, 1],
  49957. limegreen: [50, 205, 50, 1],
  49958. linen: [250, 240, 230, 1],
  49959. magenta: [255, 0, 255, 1],
  49960. maroon: [128, 0, 0, 1],
  49961. mediumaquamarine: [102, 205, 170, 1],
  49962. mediumblue: [0, 0, 205, 1],
  49963. mediumorchid: [186, 85, 211, 1],
  49964. mediumpurple: [147, 112, 219, 1],
  49965. mediumseagreen: [60, 179, 113, 1],
  49966. mediumslateblue: [123, 104, 238, 1],
  49967. mediumspringgreen: [0, 250, 154, 1],
  49968. mediumturquoise: [72, 209, 204, 1],
  49969. mediumvioletred: [199, 21, 133, 1],
  49970. midnightblue: [25, 25, 112, 1],
  49971. mintcream: [245, 255, 250, 1],
  49972. mistyrose: [255, 228, 225, 1],
  49973. moccasin: [255, 228, 181, 1],
  49974. navajowhite: [255, 222, 173, 1],
  49975. navy: [0, 0, 128, 1],
  49976. oldlace: [253, 245, 230, 1],
  49977. olive: [128, 128, 0, 1],
  49978. olivedrab: [107, 142, 35, 1],
  49979. orange: [255, 165, 0, 1],
  49980. orangered: [255, 69, 0, 1],
  49981. orchid: [218, 112, 214, 1],
  49982. palegoldenrod: [238, 232, 170, 1],
  49983. palegreen: [152, 251, 152, 1],
  49984. paleturquoise: [175, 238, 238, 1],
  49985. palevioletred: [219, 112, 147, 1],
  49986. papayawhip: [255, 239, 213, 1],
  49987. peachpuff: [255, 218, 185, 1],
  49988. peru: [205, 133, 63, 1],
  49989. pink: [255, 192, 203, 1],
  49990. plum: [221, 160, 221, 1],
  49991. powderblue: [176, 224, 230, 1],
  49992. purple: [128, 0, 128, 1],
  49993. red: [255, 0, 0, 1],
  49994. rosybrown: [188, 143, 143, 1],
  49995. royalblue: [65, 105, 225, 1],
  49996. saddlebrown: [139, 69, 19, 1],
  49997. salmon: [250, 128, 114, 1],
  49998. sandybrown: [244, 164, 96, 1],
  49999. seagreen: [46, 139, 87, 1],
  50000. seashell: [255, 245, 238, 1],
  50001. sienna: [160, 82, 45, 1],
  50002. silver: [192, 192, 192, 1],
  50003. skyblue: [135, 206, 235, 1],
  50004. slateblue: [106, 90, 205, 1],
  50005. slategray: [112, 128, 144, 1],
  50006. slategrey: [112, 128, 144, 1],
  50007. snow: [255, 250, 250, 1],
  50008. springgreen: [0, 255, 127, 1],
  50009. steelblue: [70, 130, 180, 1],
  50010. tan: [210, 180, 140, 1],
  50011. teal: [0, 128, 128, 1],
  50012. thistle: [216, 191, 216, 1],
  50013. tomato: [255, 99, 71, 1],
  50014. turquoise: [64, 224, 208, 1],
  50015. violet: [238, 130, 238, 1],
  50016. wheat: [245, 222, 179, 1],
  50017. white: [255, 255, 255, 1],
  50018. whitesmoke: [245, 245, 245, 1],
  50019. yellow: [255, 255, 0, 1],
  50020. yellowgreen: [154, 205, 50, 1]
  50021. };
  50022. function Ns(t) {
  50023. return t = Math.round(t), t < 0 ? 0 : t > 255 ? 255 : t;
  50024. }
  50025. function iGe(t) {
  50026. return t = Math.round(t), t < 0 ? 0 : t > 360 ? 360 : t;
  50027. }
  50028. function Hb(t) {
  50029. return t < 0 ? 0 : t > 1 ? 1 : t;
  50030. }
  50031. function RE(t) {
  50032. var e = t;
  50033. return e.length && e.charAt(e.length - 1) === "%" ? Ns(parseFloat(e) / 100 * 255) : Ns(parseInt(e, 10));
  50034. }
  50035. function xh(t) {
  50036. var e = t;
  50037. return e.length && e.charAt(e.length - 1) === "%" ? Hb(parseFloat(e) / 100) : Hb(parseFloat(e));
  50038. }
  50039. function kE(t, e, n) {
  50040. return n < 0 ? n += 1 : n > 1 && (n -= 1), n * 6 < 1 ? t + (e - t) * n * 6 : n * 2 < 1 ? e : n * 3 < 2 ? t + (e - t) * (2 / 3 - n) * 6 : t;
  50041. }
  50042. function Hc(t, e, n) {
  50043. return t + (e - t) * n;
  50044. }
  50045. function ko(t, e, n, r, i) {
  50046. return t[0] = e, t[1] = n, t[2] = r, t[3] = i, t;
  50047. }
  50048. function lk(t, e) {
  50049. return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t;
  50050. }
  50051. var pse = new a1(20), sS = null;
  50052. function Zp(t, e) {
  50053. sS && lk(sS, e), sS = pse.put(t, sS || e.slice());
  50054. }
  50055. function oa(t, e) {
  50056. if (t) {
  50057. e = e || [];
  50058. var n = pse.get(t);
  50059. if (n)
  50060. return lk(e, n);
  50061. t = t + "";
  50062. var r = t.replace(/ /g, "").toLowerCase();
  50063. if (r in PH)
  50064. return lk(e, PH[r]), Zp(t, e), e;
  50065. var i = r.length;
  50066. if (r.charAt(0) === "#") {
  50067. if (i === 4 || i === 5) {
  50068. var a = parseInt(r.slice(1, 4), 16);
  50069. if (!(a >= 0 && a <= 4095)) {
  50070. ko(e, 0, 0, 0, 1);
  50071. return;
  50072. }
  50073. return ko(e, (a & 3840) >> 4 | (a & 3840) >> 8, a & 240 | (a & 240) >> 4, a & 15 | (a & 15) << 4, i === 5 ? parseInt(r.slice(4), 16) / 15 : 1), Zp(t, e), e;
  50074. } else if (i === 7 || i === 9) {
  50075. var a = parseInt(r.slice(1, 7), 16);
  50076. if (!(a >= 0 && a <= 16777215)) {
  50077. ko(e, 0, 0, 0, 1);
  50078. return;
  50079. }
  50080. return ko(e, (a & 16711680) >> 16, (a & 65280) >> 8, a & 255, i === 9 ? parseInt(r.slice(7), 16) / 255 : 1), Zp(t, e), e;
  50081. }
  50082. return;
  50083. }
  50084. var o = r.indexOf("("), s = r.indexOf(")");
  50085. if (o !== -1 && s + 1 === i) {
  50086. var l = r.substr(0, o), u = r.substr(o + 1, s - (o + 1)).split(","), c = 1;
  50087. switch (l) {
  50088. case "rgba":
  50089. if (u.length !== 4)
  50090. return u.length === 3 ? ko(e, +u[0], +u[1], +u[2], 1) : ko(e, 0, 0, 0, 1);
  50091. c = xh(u.pop());
  50092. case "rgb":
  50093. if (u.length >= 3)
  50094. return ko(e, RE(u[0]), RE(u[1]), RE(u[2]), u.length === 3 ? c : xh(u[3])), Zp(t, e), e;
  50095. ko(e, 0, 0, 0, 1);
  50096. return;
  50097. case "hsla":
  50098. if (u.length !== 4) {
  50099. ko(e, 0, 0, 0, 1);
  50100. return;
  50101. }
  50102. return u[3] = xh(u[3]), uk(u, e), Zp(t, e), e;
  50103. case "hsl":
  50104. if (u.length !== 3) {
  50105. ko(e, 0, 0, 0, 1);
  50106. return;
  50107. }
  50108. return uk(u, e), Zp(t, e), e;
  50109. default:
  50110. return;
  50111. }
  50112. }
  50113. ko(e, 0, 0, 0, 1);
  50114. }
  50115. }
  50116. function uk(t, e) {
  50117. var n = (parseFloat(t[0]) % 360 + 360) % 360 / 360, r = xh(t[1]), i = xh(t[2]), a = i <= 0.5 ? i * (r + 1) : i + r - i * r, o = i * 2 - a;
  50118. return e = e || [], ko(e, Ns(kE(o, a, n + 1 / 3) * 255), Ns(kE(o, a, n) * 255), Ns(kE(o, a, n - 1 / 3) * 255), 1), t.length === 4 && (e[3] = t[3]), e;
  50119. }
  50120. function aGe(t) {
  50121. if (t) {
  50122. var e = t[0] / 255, n = t[1] / 255, r = t[2] / 255, i = Math.min(e, n, r), a = Math.max(e, n, r), o = a - i, s = (a + i) / 2, l, u;
  50123. if (o === 0)
  50124. l = 0, u = 0;
  50125. else {
  50126. s < 0.5 ? u = o / (a + i) : u = o / (2 - a - i);
  50127. var c = ((a - e) / 6 + o / 2) / o, f = ((a - n) / 6 + o / 2) / o, d = ((a - r) / 6 + o / 2) / o;
  50128. e === a ? l = d - f : n === a ? l = 1 / 3 + c - d : r === a && (l = 2 / 3 + f - c), l < 0 && (l += 1), l > 1 && (l -= 1);
  50129. }
  50130. var h = [l * 360, u, s];
  50131. return t[3] != null && h.push(t[3]), h;
  50132. }
  50133. }
  50134. function CC(t, e) {
  50135. var n = oa(t);
  50136. if (n) {
  50137. for (var r = 0; r < 3; r++)
  50138. e < 0 ? n[r] = n[r] * (1 - e) | 0 : n[r] = (255 - n[r]) * e + n[r] | 0, n[r] > 255 ? n[r] = 255 : n[r] < 0 && (n[r] = 0);
  50139. return Bs(n, n.length === 4 ? "rgba" : "rgb");
  50140. }
  50141. }
  50142. function oGe(t) {
  50143. var e = oa(t);
  50144. if (e)
  50145. return ((1 << 24) + (e[0] << 16) + (e[1] << 8) + +e[2]).toString(16).slice(1);
  50146. }
  50147. function Ky(t, e, n) {
  50148. if (!(!(e && e.length) || !(t >= 0 && t <= 1))) {
  50149. n = n || [];
  50150. var r = t * (e.length - 1), i = Math.floor(r), a = Math.ceil(r), o = e[i], s = e[a], l = r - i;
  50151. return n[0] = Ns(Hc(o[0], s[0], l)), n[1] = Ns(Hc(o[1], s[1], l)), n[2] = Ns(Hc(o[2], s[2], l)), n[3] = Hb(Hc(o[3], s[3], l)), n;
  50152. }
  50153. }
  50154. var sGe = Ky;
  50155. function x5(t, e, n) {
  50156. if (!(!(e && e.length) || !(t >= 0 && t <= 1))) {
  50157. var r = t * (e.length - 1), i = Math.floor(r), a = Math.ceil(r), o = oa(e[i]), s = oa(e[a]), l = r - i, u = Bs([
  50158. Ns(Hc(o[0], s[0], l)),
  50159. Ns(Hc(o[1], s[1], l)),
  50160. Ns(Hc(o[2], s[2], l)),
  50161. Hb(Hc(o[3], s[3], l))
  50162. ], "rgba");
  50163. return n ? {
  50164. color: u,
  50165. leftIndex: i,
  50166. rightIndex: a,
  50167. value: r
  50168. } : u;
  50169. }
  50170. }
  50171. var lGe = x5;
  50172. function Yv(t, e, n, r) {
  50173. var i = oa(t);
  50174. if (t)
  50175. return i = aGe(i), e != null && (i[0] = iGe(e)), n != null && (i[1] = xh(n)), r != null && (i[2] = xh(r)), Bs(uk(i), "rgba");
  50176. }
  50177. function Gb(t, e) {
  50178. var n = oa(t);
  50179. if (n && e != null)
  50180. return n[3] = Hb(e), Bs(n, "rgba");
  50181. }
  50182. function Bs(t, e) {
  50183. if (!(!t || !t.length)) {
  50184. var n = t[0] + "," + t[1] + "," + t[2];
  50185. return (e === "rgba" || e === "hsva" || e === "hsla") && (n += "," + t[3]), e + "(" + n + ")";
  50186. }
  50187. }
  50188. function jb(t, e) {
  50189. var n = oa(t);
  50190. return n ? (0.299 * n[0] + 0.587 * n[1] + 0.114 * n[2]) * n[3] / 255 + (1 - n[3]) * e : 0;
  50191. }
  50192. function uGe() {
  50193. return Bs([
  50194. Math.round(Math.random() * 255),
  50195. Math.round(Math.random() * 255),
  50196. Math.round(Math.random() * 255)
  50197. ], "rgb");
  50198. }
  50199. var $H = new a1(100);
  50200. function TC(t) {
  50201. if (Ve(t)) {
  50202. var e = $H.get(t);
  50203. return e || (e = CC(t, -0.1), $H.put(t, e)), e;
  50204. } else if (n1(t)) {
  50205. var n = _e({}, t);
  50206. return n.colorStops = Ce(t.colorStops, function(r) {
  50207. return {
  50208. offset: r.offset,
  50209. color: CC(r.color, -0.1)
  50210. };
  50211. }), n;
  50212. }
  50213. return t;
  50214. }
  50215. const cGe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  50216. __proto__: null,
  50217. fastLerp: Ky,
  50218. fastMapToColor: sGe,
  50219. lerp: x5,
  50220. lift: CC,
  50221. liftColor: TC,
  50222. lum: jb,
  50223. mapToColor: lGe,
  50224. modifyAlpha: Gb,
  50225. modifyHSL: Yv,
  50226. parse: oa,
  50227. random: uGe,
  50228. stringify: Bs,
  50229. toHex: oGe
  50230. }, Symbol.toStringTag, { value: "Module" }));
  50231. var PC = Math.round;
  50232. function Zb(t) {
  50233. var e;
  50234. if (!t || t === "transparent")
  50235. t = "none";
  50236. else if (typeof t == "string" && t.indexOf("rgba") > -1) {
  50237. var n = oa(t);
  50238. n && (t = "rgb(" + n[0] + "," + n[1] + "," + n[2] + ")", e = n[3]);
  50239. }
  50240. return {
  50241. color: t,
  50242. opacity: e ?? 1
  50243. };
  50244. }
  50245. var AH = 1e-4;
  50246. function Gc(t) {
  50247. return t < AH && t > -AH;
  50248. }
  50249. function lS(t) {
  50250. return PC(t * 1e3) / 1e3;
  50251. }
  50252. function ck(t) {
  50253. return PC(t * 1e4) / 1e4;
  50254. }
  50255. function fGe(t) {
  50256. return "matrix(" + lS(t[0]) + "," + lS(t[1]) + "," + lS(t[2]) + "," + lS(t[3]) + "," + ck(t[4]) + "," + ck(t[5]) + ")";
  50257. }
  50258. var dGe = {
  50259. left: "start",
  50260. right: "end",
  50261. center: "middle",
  50262. middle: "middle"
  50263. };
  50264. function hGe(t, e, n) {
  50265. return n === "top" ? t += e / 2 : n === "bottom" && (t -= e / 2), t;
  50266. }
  50267. function pGe(t) {
  50268. return t && (t.shadowBlur || t.shadowOffsetX || t.shadowOffsetY);
  50269. }
  50270. function vGe(t) {
  50271. var e = t.style, n = t.getGlobalScale();
  50272. return [
  50273. e.shadowColor,
  50274. (e.shadowBlur || 0).toFixed(2),
  50275. (e.shadowOffsetX || 0).toFixed(2),
  50276. (e.shadowOffsetY || 0).toFixed(2),
  50277. n[0],
  50278. n[1]
  50279. ].join(",");
  50280. }
  50281. function vse(t) {
  50282. return t && !!t.image;
  50283. }
  50284. function gGe(t) {
  50285. return t && !!t.svgElement;
  50286. }
  50287. function w5(t) {
  50288. return vse(t) || gGe(t);
  50289. }
  50290. function gse(t) {
  50291. return t.type === "linear";
  50292. }
  50293. function mse(t) {
  50294. return t.type === "radial";
  50295. }
  50296. function yse(t) {
  50297. return t && (t.type === "linear" || t.type === "radial");
  50298. }
  50299. function cP(t) {
  50300. return "url(#" + t + ")";
  50301. }
  50302. function bse(t) {
  50303. var e = t.getGlobalScale(), n = Math.max(e[0], e[1]);
  50304. return Math.max(Math.ceil(Math.log(n) / Math.log(10)), 1);
  50305. }
  50306. function _se(t) {
  50307. var e = t.x || 0, n = t.y || 0, r = (t.rotation || 0) * Uy, i = dt(t.scaleX, 1), a = dt(t.scaleY, 1), o = t.skewX || 0, s = t.skewY || 0, l = [];
  50308. return (e || n) && l.push("translate(" + e + "px," + n + "px)"), r && l.push("rotate(" + r + ")"), (i !== 1 || a !== 1) && l.push("scale(" + i + "," + a + ")"), (o || s) && l.push("skew(" + PC(o * Uy) + "deg, " + PC(s * Uy) + "deg)"), l.join(" ");
  50309. }
  50310. var mGe = function() {
  50311. return Gt.hasGlobalWindow && qe(window.btoa) ? function(t) {
  50312. return window.btoa(unescape(encodeURIComponent(t)));
  50313. } : typeof Buffer < "u" ? function(t) {
  50314. return Buffer.from(t).toString("base64");
  50315. } : function(t) {
  50316. return process.env.NODE_ENV !== "production" && qo("Base64 isn't natively supported in the current environment."), null;
  50317. };
  50318. }(), fk = Array.prototype.slice;
  50319. function yu(t, e, n) {
  50320. return (e - t) * n + t;
  50321. }
  50322. function LE(t, e, n, r) {
  50323. for (var i = e.length, a = 0; a < i; a++)
  50324. t[a] = yu(e[a], n[a], r);
  50325. return t;
  50326. }
  50327. function yGe(t, e, n, r) {
  50328. for (var i = e.length, a = i && e[0].length, o = 0; o < i; o++) {
  50329. t[o] || (t[o] = []);
  50330. for (var s = 0; s < a; s++)
  50331. t[o][s] = yu(e[o][s], n[o][s], r);
  50332. }
  50333. return t;
  50334. }
  50335. function uS(t, e, n, r) {
  50336. for (var i = e.length, a = 0; a < i; a++)
  50337. t[a] = e[a] + n[a] * r;
  50338. return t;
  50339. }
  50340. function EH(t, e, n, r) {
  50341. for (var i = e.length, a = i && e[0].length, o = 0; o < i; o++) {
  50342. t[o] || (t[o] = []);
  50343. for (var s = 0; s < a; s++)
  50344. t[o][s] = e[o][s] + n[o][s] * r;
  50345. }
  50346. return t;
  50347. }
  50348. function bGe(t, e) {
  50349. for (var n = t.length, r = e.length, i = n > r ? e : t, a = Math.min(n, r), o = i[a - 1] || { color: [0, 0, 0, 0], offset: 0 }, s = a; s < Math.max(n, r); s++)
  50350. i.push({
  50351. offset: o.offset,
  50352. color: o.color.slice()
  50353. });
  50354. }
  50355. function _Ge(t, e, n) {
  50356. var r = t, i = e;
  50357. if (!(!r.push || !i.push)) {
  50358. var a = r.length, o = i.length;
  50359. if (a !== o) {
  50360. var s = a > o;
  50361. if (s)
  50362. r.length = o;
  50363. else
  50364. for (var l = a; l < o; l++)
  50365. r.push(n === 1 ? i[l] : fk.call(i[l]));
  50366. }
  50367. for (var u = r[0] && r[0].length, l = 0; l < r.length; l++)
  50368. if (n === 1)
  50369. isNaN(r[l]) && (r[l] = i[l]);
  50370. else
  50371. for (var c = 0; c < u; c++)
  50372. isNaN(r[l][c]) && (r[l][c] = i[l][c]);
  50373. }
  50374. }
  50375. function Jy(t) {
  50376. if (Pi(t)) {
  50377. var e = t.length;
  50378. if (Pi(t[0])) {
  50379. for (var n = [], r = 0; r < e; r++)
  50380. n.push(fk.call(t[r]));
  50381. return n;
  50382. }
  50383. return fk.call(t);
  50384. }
  50385. return t;
  50386. }
  50387. function ow(t) {
  50388. return t[0] = Math.floor(t[0]) || 0, t[1] = Math.floor(t[1]) || 0, t[2] = Math.floor(t[2]) || 0, t[3] = t[3] == null ? 1 : t[3], "rgba(" + t.join(",") + ")";
  50389. }
  50390. function OGe(t) {
  50391. return Pi(t && t[0]) ? 2 : 1;
  50392. }
  50393. var cS = 0, sw = 1, Ose = 2, py = 3, dk = 4, hk = 5, MH = 6;
  50394. function IH(t) {
  50395. return t === dk || t === hk;
  50396. }
  50397. function fS(t) {
  50398. return t === sw || t === Ose;
  50399. }
  50400. var $0 = [0, 0, 0, 0], SGe = function() {
  50401. function t(e) {
  50402. this.keyframes = [], this.discrete = !1, this._invalid = !1, this._needsSort = !1, this._lastFr = 0, this._lastFrP = 0, this.propName = e;
  50403. }
  50404. return t.prototype.isFinished = function() {
  50405. return this._finished;
  50406. }, t.prototype.setFinished = function() {
  50407. this._finished = !0, this._additiveTrack && this._additiveTrack.setFinished();
  50408. }, t.prototype.needsAnimate = function() {
  50409. return this.keyframes.length >= 1;
  50410. }, t.prototype.getAdditiveTrack = function() {
  50411. return this._additiveTrack;
  50412. }, t.prototype.addKeyframe = function(e, n, r) {
  50413. this._needsSort = !0;
  50414. var i = this.keyframes, a = i.length, o = !1, s = MH, l = n;
  50415. if (Pi(n)) {
  50416. var u = OGe(n);
  50417. s = u, (u === 1 && !Kt(n[0]) || u === 2 && !Kt(n[0][0])) && (o = !0);
  50418. } else if (Kt(n) && !mf(n))
  50419. s = cS;
  50420. else if (Ve(n))
  50421. if (!isNaN(+n))
  50422. s = cS;
  50423. else {
  50424. var c = oa(n);
  50425. c && (l = c, s = py);
  50426. }
  50427. else if (n1(n)) {
  50428. var f = _e({}, l);
  50429. f.colorStops = Ce(n.colorStops, function(h) {
  50430. return {
  50431. offset: h.offset,
  50432. color: oa(h.color)
  50433. };
  50434. }), gse(n) ? s = dk : mse(n) && (s = hk), l = f;
  50435. }
  50436. a === 0 ? this.valType = s : (s !== this.valType || s === MH) && (o = !0), this.discrete = this.discrete || o;
  50437. var d = {
  50438. time: e,
  50439. value: l,
  50440. rawValue: n,
  50441. percent: 0
  50442. };
  50443. return r && (d.easing = r, d.easingFunc = qe(r) ? r : qy[r] || S5(r)), i.push(d), d;
  50444. }, t.prototype.prepare = function(e, n) {
  50445. var r = this.keyframes;
  50446. this._needsSort && r.sort(function(v, g) {
  50447. return v.time - g.time;
  50448. });
  50449. for (var i = this.valType, a = r.length, o = r[a - 1], s = this.discrete, l = fS(i), u = IH(i), c = 0; c < a; c++) {
  50450. var f = r[c], d = f.value, h = o.value;
  50451. f.percent = f.time / e, s || (l && c !== a - 1 ? _Ge(d, h, i) : u && bGe(d.colorStops, h.colorStops));
  50452. }
  50453. if (!s && i !== hk && n && this.needsAnimate() && n.needsAnimate() && i === n.valType && !n._finished) {
  50454. this._additiveTrack = n;
  50455. for (var p = r[0].value, c = 0; c < a; c++)
  50456. i === cS ? r[c].additiveValue = r[c].value - p : i === py ? r[c].additiveValue = uS([], r[c].value, p, -1) : fS(i) && (r[c].additiveValue = i === sw ? uS([], r[c].value, p, -1) : EH([], r[c].value, p, -1));
  50457. }
  50458. }, t.prototype.step = function(e, n) {
  50459. if (!this._finished) {
  50460. this._additiveTrack && this._additiveTrack._finished && (this._additiveTrack = null);
  50461. var r = this._additiveTrack != null, i = r ? "additiveValue" : "value", a = this.valType, o = this.keyframes, s = o.length, l = this.propName, u = a === py, c, f = this._lastFr, d = Math.min, h, p;
  50462. if (s === 1)
  50463. h = p = o[0];
  50464. else {
  50465. if (n < 0)
  50466. c = 0;
  50467. else if (n < this._lastFrP) {
  50468. var v = d(f + 1, s - 1);
  50469. for (c = v; c >= 0 && !(o[c].percent <= n); c--)
  50470. ;
  50471. c = d(c, s - 2);
  50472. } else {
  50473. for (c = f; c < s && !(o[c].percent > n); c++)
  50474. ;
  50475. c = d(c - 1, s - 2);
  50476. }
  50477. p = o[c + 1], h = o[c];
  50478. }
  50479. if (h && p) {
  50480. this._lastFr = c, this._lastFrP = n;
  50481. var g = p.percent - h.percent, m = g === 0 ? 1 : d((n - h.percent) / g, 1);
  50482. p.easingFunc && (m = p.easingFunc(m));
  50483. var y = r ? this._additiveValue : u ? $0 : e[l];
  50484. if ((fS(a) || u) && !y && (y = this._additiveValue = []), this.discrete)
  50485. e[l] = m < 1 ? h.rawValue : p.rawValue;
  50486. else if (fS(a))
  50487. a === sw ? LE(y, h[i], p[i], m) : yGe(y, h[i], p[i], m);
  50488. else if (IH(a)) {
  50489. var _ = h[i], O = p[i], S = a === dk;
  50490. e[l] = {
  50491. type: S ? "linear" : "radial",
  50492. x: yu(_.x, O.x, m),
  50493. y: yu(_.y, O.y, m),
  50494. colorStops: Ce(_.colorStops, function(C, P) {
  50495. var $ = O.colorStops[P];
  50496. return {
  50497. offset: yu(C.offset, $.offset, m),
  50498. color: ow(LE([], C.color, $.color, m))
  50499. };
  50500. }),
  50501. global: O.global
  50502. }, S ? (e[l].x2 = yu(_.x2, O.x2, m), e[l].y2 = yu(_.y2, O.y2, m)) : e[l].r = yu(_.r, O.r, m);
  50503. } else if (u)
  50504. LE(y, h[i], p[i], m), r || (e[l] = ow(y));
  50505. else {
  50506. var x = yu(h[i], p[i], m);
  50507. r ? this._additiveValue = x : e[l] = x;
  50508. }
  50509. r && this._addToTarget(e);
  50510. }
  50511. }
  50512. }, t.prototype._addToTarget = function(e) {
  50513. var n = this.valType, r = this.propName, i = this._additiveValue;
  50514. n === cS ? e[r] = e[r] + i : n === py ? (oa(e[r], $0), uS($0, $0, i, 1), e[r] = ow($0)) : n === sw ? uS(e[r], e[r], i, 1) : n === Ose && EH(e[r], e[r], i, 1);
  50515. }, t;
  50516. }(), C5 = function() {
  50517. function t(e, n, r, i) {
  50518. if (this._tracks = {}, this._trackKeys = [], this._maxTime = 0, this._started = 0, this._clip = null, this._target = e, this._loop = n, n && i) {
  50519. qo("Can' use additive animation on looped animation.");
  50520. return;
  50521. }
  50522. this._additiveAnimators = i, this._allowDiscrete = r;
  50523. }
  50524. return t.prototype.getMaxTime = function() {
  50525. return this._maxTime;
  50526. }, t.prototype.getDelay = function() {
  50527. return this._delay;
  50528. }, t.prototype.getLoop = function() {
  50529. return this._loop;
  50530. }, t.prototype.getTarget = function() {
  50531. return this._target;
  50532. }, t.prototype.changeTarget = function(e) {
  50533. this._target = e;
  50534. }, t.prototype.when = function(e, n, r) {
  50535. return this.whenWithKeys(e, n, kt(n), r);
  50536. }, t.prototype.whenWithKeys = function(e, n, r, i) {
  50537. for (var a = this._tracks, o = 0; o < r.length; o++) {
  50538. var s = r[o], l = a[s];
  50539. if (!l) {
  50540. l = a[s] = new SGe(s);
  50541. var u = void 0, c = this._getAdditiveTrack(s);
  50542. if (c) {
  50543. var f = c.keyframes, d = f[f.length - 1];
  50544. u = d && d.value, c.valType === py && u && (u = ow(u));
  50545. } else
  50546. u = this._target[s];
  50547. if (u == null)
  50548. continue;
  50549. e > 0 && l.addKeyframe(0, Jy(u), i), this._trackKeys.push(s);
  50550. }
  50551. l.addKeyframe(e, Jy(n[s]), i);
  50552. }
  50553. return this._maxTime = Math.max(this._maxTime, e), this;
  50554. }, t.prototype.pause = function() {
  50555. this._clip.pause(), this._paused = !0;
  50556. }, t.prototype.resume = function() {
  50557. this._clip.resume(), this._paused = !1;
  50558. }, t.prototype.isPaused = function() {
  50559. return !!this._paused;
  50560. }, t.prototype.duration = function(e) {
  50561. return this._maxTime = e, this._force = !0, this;
  50562. }, t.prototype._doneCallback = function() {
  50563. this._setTracksFinished(), this._clip = null;
  50564. var e = this._doneCbs;
  50565. if (e)
  50566. for (var n = e.length, r = 0; r < n; r++)
  50567. e[r].call(this);
  50568. }, t.prototype._abortedCallback = function() {
  50569. this._setTracksFinished();
  50570. var e = this.animation, n = this._abortedCbs;
  50571. if (e && e.removeClip(this._clip), this._clip = null, n)
  50572. for (var r = 0; r < n.length; r++)
  50573. n[r].call(this);
  50574. }, t.prototype._setTracksFinished = function() {
  50575. for (var e = this._tracks, n = this._trackKeys, r = 0; r < n.length; r++)
  50576. e[n[r]].setFinished();
  50577. }, t.prototype._getAdditiveTrack = function(e) {
  50578. var n, r = this._additiveAnimators;
  50579. if (r)
  50580. for (var i = 0; i < r.length; i++) {
  50581. var a = r[i].getTrack(e);
  50582. a && (n = a);
  50583. }
  50584. return n;
  50585. }, t.prototype.start = function(e) {
  50586. if (!(this._started > 0)) {
  50587. this._started = 1;
  50588. for (var n = this, r = [], i = this._maxTime || 0, a = 0; a < this._trackKeys.length; a++) {
  50589. var o = this._trackKeys[a], s = this._tracks[o], l = this._getAdditiveTrack(o), u = s.keyframes, c = u.length;
  50590. if (s.prepare(i, l), s.needsAnimate())
  50591. if (!this._allowDiscrete && s.discrete) {
  50592. var f = u[c - 1];
  50593. f && (n._target[s.propName] = f.rawValue), s.setFinished();
  50594. } else
  50595. r.push(s);
  50596. }
  50597. if (r.length || this._force) {
  50598. var d = new nGe({
  50599. life: i,
  50600. loop: this._loop,
  50601. delay: this._delay || 0,
  50602. onframe: function(h) {
  50603. n._started = 2;
  50604. var p = n._additiveAnimators;
  50605. if (p) {
  50606. for (var v = !1, g = 0; g < p.length; g++)
  50607. if (p[g]._clip) {
  50608. v = !0;
  50609. break;
  50610. }
  50611. v || (n._additiveAnimators = null);
  50612. }
  50613. for (var g = 0; g < r.length; g++)
  50614. r[g].step(n._target, h);
  50615. var m = n._onframeCbs;
  50616. if (m)
  50617. for (var g = 0; g < m.length; g++)
  50618. m[g](n._target, h);
  50619. },
  50620. ondestroy: function() {
  50621. n._doneCallback();
  50622. }
  50623. });
  50624. this._clip = d, this.animation && this.animation.addClip(d), e && d.setEasing(e);
  50625. } else
  50626. this._doneCallback();
  50627. return this;
  50628. }
  50629. }, t.prototype.stop = function(e) {
  50630. if (this._clip) {
  50631. var n = this._clip;
  50632. e && n.onframe(1), this._abortedCallback();
  50633. }
  50634. }, t.prototype.delay = function(e) {
  50635. return this._delay = e, this;
  50636. }, t.prototype.during = function(e) {
  50637. return e && (this._onframeCbs || (this._onframeCbs = []), this._onframeCbs.push(e)), this;
  50638. }, t.prototype.done = function(e) {
  50639. return e && (this._doneCbs || (this._doneCbs = []), this._doneCbs.push(e)), this;
  50640. }, t.prototype.aborted = function(e) {
  50641. return e && (this._abortedCbs || (this._abortedCbs = []), this._abortedCbs.push(e)), this;
  50642. }, t.prototype.getClip = function() {
  50643. return this._clip;
  50644. }, t.prototype.getTrack = function(e) {
  50645. return this._tracks[e];
  50646. }, t.prototype.getTracks = function() {
  50647. var e = this;
  50648. return Ce(this._trackKeys, function(n) {
  50649. return e._tracks[n];
  50650. });
  50651. }, t.prototype.stopTracks = function(e, n) {
  50652. if (!e.length || !this._clip)
  50653. return !0;
  50654. for (var r = this._tracks, i = this._trackKeys, a = 0; a < e.length; a++) {
  50655. var o = r[e[a]];
  50656. o && !o.isFinished() && (n ? o.step(this._target, 1) : this._started === 1 && o.step(this._target, 0), o.setFinished());
  50657. }
  50658. for (var s = !0, a = 0; a < i.length; a++)
  50659. if (!r[i[a]].isFinished()) {
  50660. s = !1;
  50661. break;
  50662. }
  50663. return s && this._abortedCallback(), s;
  50664. }, t.prototype.saveTo = function(e, n, r) {
  50665. if (e) {
  50666. n = n || this._trackKeys;
  50667. for (var i = 0; i < n.length; i++) {
  50668. var a = n[i], o = this._tracks[a];
  50669. if (!(!o || o.isFinished())) {
  50670. var s = o.keyframes, l = s[r ? 0 : s.length - 1];
  50671. l && (e[a] = Jy(l.rawValue));
  50672. }
  50673. }
  50674. }
  50675. }, t.prototype.__changeFinalValue = function(e, n) {
  50676. n = n || kt(e);
  50677. for (var r = 0; r < n.length; r++) {
  50678. var i = n[r], a = this._tracks[i];
  50679. if (a) {
  50680. var o = a.keyframes;
  50681. if (o.length > 1) {
  50682. var s = o.pop();
  50683. a.addKeyframe(s.time, e[i]), a.prepare(this._maxTime, a.getAdditiveTrack());
  50684. }
  50685. }
  50686. }
  50687. }, t;
  50688. }();
  50689. function Iv() {
  50690. return (/* @__PURE__ */ new Date()).getTime();
  50691. }
  50692. var xGe = function(t) {
  50693. le(e, t);
  50694. function e(n) {
  50695. var r = t.call(this) || this;
  50696. return r._running = !1, r._time = 0, r._pausedTime = 0, r._pauseStart = 0, r._paused = !1, n = n || {}, r.stage = n.stage || {}, r;
  50697. }
  50698. return e.prototype.addClip = function(n) {
  50699. n.animation && this.removeClip(n), this._head ? (this._tail.next = n, n.prev = this._tail, n.next = null, this._tail = n) : this._head = this._tail = n, n.animation = this;
  50700. }, e.prototype.addAnimator = function(n) {
  50701. n.animation = this;
  50702. var r = n.getClip();
  50703. r && this.addClip(r);
  50704. }, e.prototype.removeClip = function(n) {
  50705. if (n.animation) {
  50706. var r = n.prev, i = n.next;
  50707. r ? r.next = i : this._head = i, i ? i.prev = r : this._tail = r, n.next = n.prev = n.animation = null;
  50708. }
  50709. }, e.prototype.removeAnimator = function(n) {
  50710. var r = n.getClip();
  50711. r && this.removeClip(r), n.animation = null;
  50712. }, e.prototype.update = function(n) {
  50713. for (var r = Iv() - this._pausedTime, i = r - this._time, a = this._head; a; ) {
  50714. var o = a.next, s = a.step(r, i);
  50715. s && (a.ondestroy(), this.removeClip(a)), a = o;
  50716. }
  50717. this._time = r, n || (this.trigger("frame", i), this.stage.update && this.stage.update());
  50718. }, e.prototype._startLoop = function() {
  50719. var n = this;
  50720. this._running = !0;
  50721. function r() {
  50722. n._running && (SC(r), !n._paused && n.update());
  50723. }
  50724. SC(r);
  50725. }, e.prototype.start = function() {
  50726. this._running || (this._time = Iv(), this._pausedTime = 0, this._startLoop());
  50727. }, e.prototype.stop = function() {
  50728. this._running = !1;
  50729. }, e.prototype.pause = function() {
  50730. this._paused || (this._pauseStart = Iv(), this._paused = !0);
  50731. }, e.prototype.resume = function() {
  50732. this._paused && (this._pausedTime += Iv() - this._pauseStart, this._paused = !1);
  50733. }, e.prototype.clear = function() {
  50734. for (var n = this._head; n; ) {
  50735. var r = n.next;
  50736. n.prev = n.next = n.animation = null, n = r;
  50737. }
  50738. this._head = this._tail = null;
  50739. }, e.prototype.isFinished = function() {
  50740. return this._head == null;
  50741. }, e.prototype.animate = function(n, r) {
  50742. r = r || {}, this.start();
  50743. var i = new C5(n, r.loop);
  50744. return this.addAnimator(i), i;
  50745. }, e;
  50746. }(fs), wGe = 300, NE = Gt.domSupported, BE = function() {
  50747. var t = [
  50748. "click",
  50749. "dblclick",
  50750. "mousewheel",
  50751. "wheel",
  50752. "mouseout",
  50753. "mouseup",
  50754. "mousedown",
  50755. "mousemove",
  50756. "contextmenu"
  50757. ], e = [
  50758. "touchstart",
  50759. "touchend",
  50760. "touchmove"
  50761. ], n = {
  50762. pointerdown: 1,
  50763. pointerup: 1,
  50764. pointermove: 1,
  50765. pointerout: 1
  50766. }, r = Ce(t, function(i) {
  50767. var a = i.replace("mouse", "pointer");
  50768. return n.hasOwnProperty(a) ? a : i;
  50769. });
  50770. return {
  50771. mouse: t,
  50772. touch: e,
  50773. pointer: r
  50774. };
  50775. }(), DH = {
  50776. mouse: ["mousemove", "mouseup"],
  50777. pointer: ["pointermove", "pointerup"]
  50778. }, RH = !1;
  50779. function pk(t) {
  50780. var e = t.pointerType;
  50781. return e === "pen" || e === "touch";
  50782. }
  50783. function CGe(t) {
  50784. t.touching = !0, t.touchTimer != null && (clearTimeout(t.touchTimer), t.touchTimer = null), t.touchTimer = setTimeout(function() {
  50785. t.touching = !1, t.touchTimer = null;
  50786. }, 700);
  50787. }
  50788. function zE(t) {
  50789. t && (t.zrByTouch = !0);
  50790. }
  50791. function TGe(t, e) {
  50792. return No(t.dom, new PGe(t, e), !0);
  50793. }
  50794. function Sse(t, e) {
  50795. for (var n = e, r = !1; n && n.nodeType !== 9 && !(r = n.domBelongToZr || n !== e && n === t.painterRoot); )
  50796. n = n.parentNode;
  50797. return r;
  50798. }
  50799. var PGe = /* @__PURE__ */ function() {
  50800. function t(e, n) {
  50801. this.stopPropagation = fr, this.stopImmediatePropagation = fr, this.preventDefault = fr, this.type = n.type, this.target = this.currentTarget = e.dom, this.pointerType = n.pointerType, this.clientX = n.clientX, this.clientY = n.clientY;
  50802. }
  50803. return t;
  50804. }(), Cs = {
  50805. mousedown: function(t) {
  50806. t = No(this.dom, t), this.__mayPointerCapture = [t.zrX, t.zrY], this.trigger("mousedown", t);
  50807. },
  50808. mousemove: function(t) {
  50809. t = No(this.dom, t);
  50810. var e = this.__mayPointerCapture;
  50811. e && (t.zrX !== e[0] || t.zrY !== e[1]) && this.__togglePointerCapture(!0), this.trigger("mousemove", t);
  50812. },
  50813. mouseup: function(t) {
  50814. t = No(this.dom, t), this.__togglePointerCapture(!1), this.trigger("mouseup", t);
  50815. },
  50816. mouseout: function(t) {
  50817. t = No(this.dom, t);
  50818. var e = t.toElement || t.relatedTarget;
  50819. Sse(this, e) || (this.__pointerCapturing && (t.zrEventControl = "no_globalout"), this.trigger("mouseout", t));
  50820. },
  50821. wheel: function(t) {
  50822. RH = !0, t = No(this.dom, t), this.trigger("mousewheel", t);
  50823. },
  50824. mousewheel: function(t) {
  50825. RH || (t = No(this.dom, t), this.trigger("mousewheel", t));
  50826. },
  50827. touchstart: function(t) {
  50828. t = No(this.dom, t), zE(t), this.__lastTouchMoment = /* @__PURE__ */ new Date(), this.handler.processGesture(t, "start"), Cs.mousemove.call(this, t), Cs.mousedown.call(this, t);
  50829. },
  50830. touchmove: function(t) {
  50831. t = No(this.dom, t), zE(t), this.handler.processGesture(t, "change"), Cs.mousemove.call(this, t);
  50832. },
  50833. touchend: function(t) {
  50834. t = No(this.dom, t), zE(t), this.handler.processGesture(t, "end"), Cs.mouseup.call(this, t), +/* @__PURE__ */ new Date() - +this.__lastTouchMoment < wGe && Cs.click.call(this, t);
  50835. },
  50836. pointerdown: function(t) {
  50837. Cs.mousedown.call(this, t);
  50838. },
  50839. pointermove: function(t) {
  50840. pk(t) || Cs.mousemove.call(this, t);
  50841. },
  50842. pointerup: function(t) {
  50843. Cs.mouseup.call(this, t);
  50844. },
  50845. pointerout: function(t) {
  50846. pk(t) || Cs.mouseout.call(this, t);
  50847. }
  50848. };
  50849. F(["click", "dblclick", "contextmenu"], function(t) {
  50850. Cs[t] = function(e) {
  50851. e = No(this.dom, e), this.trigger(t, e);
  50852. };
  50853. });
  50854. var vk = {
  50855. pointermove: function(t) {
  50856. pk(t) || vk.mousemove.call(this, t);
  50857. },
  50858. pointerup: function(t) {
  50859. vk.mouseup.call(this, t);
  50860. },
  50861. mousemove: function(t) {
  50862. this.trigger("mousemove", t);
  50863. },
  50864. mouseup: function(t) {
  50865. var e = this.__pointerCapturing;
  50866. this.__togglePointerCapture(!1), this.trigger("mouseup", t), e && (t.zrEventControl = "only_globalout", this.trigger("mouseout", t));
  50867. }
  50868. };
  50869. function $Ge(t, e) {
  50870. var n = e.domHandlers;
  50871. Gt.pointerEventsSupported ? F(BE.pointer, function(r) {
  50872. lw(e, r, function(i) {
  50873. n[r].call(t, i);
  50874. });
  50875. }) : (Gt.touchEventsSupported && F(BE.touch, function(r) {
  50876. lw(e, r, function(i) {
  50877. n[r].call(t, i), CGe(e);
  50878. });
  50879. }), F(BE.mouse, function(r) {
  50880. lw(e, r, function(i) {
  50881. i = O5(i), e.touching || n[r].call(t, i);
  50882. });
  50883. }));
  50884. }
  50885. function AGe(t, e) {
  50886. Gt.pointerEventsSupported ? F(DH.pointer, n) : Gt.touchEventsSupported || F(DH.mouse, n);
  50887. function n(r) {
  50888. function i(a) {
  50889. a = O5(a), Sse(t, a.target) || (a = TGe(t, a), e.domHandlers[r].call(t, a));
  50890. }
  50891. lw(e, r, i, { capture: !0 });
  50892. }
  50893. }
  50894. function lw(t, e, n, r) {
  50895. t.mounted[e] = n, t.listenerOpts[e] = r, ok(t.domTarget, e, n, r);
  50896. }
  50897. function VE(t) {
  50898. var e = t.mounted;
  50899. for (var n in e)
  50900. e.hasOwnProperty(n) && BHe(t.domTarget, n, e[n], t.listenerOpts[n]);
  50901. t.mounted = {};
  50902. }
  50903. var kH = /* @__PURE__ */ function() {
  50904. function t(e, n) {
  50905. this.mounted = {}, this.listenerOpts = {}, this.touching = !1, this.domTarget = e, this.domHandlers = n;
  50906. }
  50907. return t;
  50908. }(), EGe = function(t) {
  50909. le(e, t);
  50910. function e(n, r) {
  50911. var i = t.call(this) || this;
  50912. return i.__pointerCapturing = !1, i.dom = n, i.painterRoot = r, i._localHandlerScope = new kH(n, Cs), NE && (i._globalHandlerScope = new kH(document, vk)), $Ge(i, i._localHandlerScope), i;
  50913. }
  50914. return e.prototype.dispose = function() {
  50915. VE(this._localHandlerScope), NE && VE(this._globalHandlerScope);
  50916. }, e.prototype.setCursor = function(n) {
  50917. this.dom.style && (this.dom.style.cursor = n || "default");
  50918. }, e.prototype.__togglePointerCapture = function(n) {
  50919. if (this.__mayPointerCapture = null, NE && +this.__pointerCapturing ^ +n) {
  50920. this.__pointerCapturing = n;
  50921. var r = this._globalHandlerScope;
  50922. n ? AGe(this, r) : VE(r);
  50923. }
  50924. }, e;
  50925. }(fs), xse = 1;
  50926. Gt.hasGlobalWindow && (xse = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1));
  50927. var $C = xse, gk = 0.4, mk = "#333", yk = "#ccc", MGe = "#eee", LH = i1, NH = 5e-5;
  50928. function dd(t) {
  50929. return t > NH || t < -NH;
  50930. }
  50931. var hd = [], Up = [], FE = Na(), WE = Math.abs, IGe = function() {
  50932. function t() {
  50933. }
  50934. return t.prototype.getLocalTransform = function(e) {
  50935. return t.getLocalTransform(this, e);
  50936. }, t.prototype.setPosition = function(e) {
  50937. this.x = e[0], this.y = e[1];
  50938. }, t.prototype.setScale = function(e) {
  50939. this.scaleX = e[0], this.scaleY = e[1];
  50940. }, t.prototype.setSkew = function(e) {
  50941. this.skewX = e[0], this.skewY = e[1];
  50942. }, t.prototype.setOrigin = function(e) {
  50943. this.originX = e[0], this.originY = e[1];
  50944. }, t.prototype.needLocalTransform = function() {
  50945. return dd(this.rotation) || dd(this.x) || dd(this.y) || dd(this.scaleX - 1) || dd(this.scaleY - 1) || dd(this.skewX) || dd(this.skewY);
  50946. }, t.prototype.updateTransform = function() {
  50947. var e = this.parent && this.parent.transform, n = this.needLocalTransform(), r = this.transform;
  50948. if (!(n || e)) {
  50949. r && (LH(r), this.invTransform = null);
  50950. return;
  50951. }
  50952. r = r || Na(), n ? this.getLocalTransform(r) : LH(r), e && (n ? Ll(r, e, r) : lP(r, e)), this.transform = r, this._resolveGlobalScaleRatio(r);
  50953. }, t.prototype._resolveGlobalScaleRatio = function(e) {
  50954. var n = this.globalScaleRatio;
  50955. if (n != null && n !== 1) {
  50956. this.getGlobalScale(hd);
  50957. var r = hd[0] < 0 ? -1 : 1, i = hd[1] < 0 ? -1 : 1, a = ((hd[0] - r) * n + r) / hd[0] || 0, o = ((hd[1] - i) * n + i) / hd[1] || 0;
  50958. e[0] *= a, e[1] *= a, e[2] *= o, e[3] *= o;
  50959. }
  50960. this.invTransform = this.invTransform || Na(), dp(this.invTransform, e);
  50961. }, t.prototype.getComputedTransform = function() {
  50962. for (var e = this, n = []; e; )
  50963. n.push(e), e = e.parent;
  50964. for (; e = n.pop(); )
  50965. e.updateTransform();
  50966. return this.transform;
  50967. }, t.prototype.setLocalTransform = function(e) {
  50968. if (e) {
  50969. var n = e[0] * e[0] + e[1] * e[1], r = e[2] * e[2] + e[3] * e[3], i = Math.atan2(e[1], e[0]), a = Math.PI / 2 + i - Math.atan2(e[3], e[2]);
  50970. r = Math.sqrt(r) * Math.cos(a), n = Math.sqrt(n), this.skewX = a, this.skewY = 0, this.rotation = -i, this.x = +e[4], this.y = +e[5], this.scaleX = n, this.scaleY = r, this.originX = 0, this.originY = 0;
  50971. }
  50972. }, t.prototype.decomposeTransform = function() {
  50973. if (this.transform) {
  50974. var e = this.parent, n = this.transform;
  50975. e && e.transform && (e.invTransform = e.invTransform || Na(), Ll(Up, e.invTransform, n), n = Up);
  50976. var r = this.originX, i = this.originY;
  50977. (r || i) && (FE[4] = r, FE[5] = i, Ll(Up, n, FE), Up[4] -= r, Up[5] -= i, n = Up), this.setLocalTransform(n);
  50978. }
  50979. }, t.prototype.getGlobalScale = function(e) {
  50980. var n = this.transform;
  50981. return e = e || [], n ? (e[0] = Math.sqrt(n[0] * n[0] + n[1] * n[1]), e[1] = Math.sqrt(n[2] * n[2] + n[3] * n[3]), n[0] < 0 && (e[0] = -e[0]), n[3] < 0 && (e[1] = -e[1]), e) : (e[0] = 1, e[1] = 1, e);
  50982. }, t.prototype.transformCoordToLocal = function(e, n) {
  50983. var r = [e, n], i = this.invTransform;
  50984. return i && oi(r, r, i), r;
  50985. }, t.prototype.transformCoordToGlobal = function(e, n) {
  50986. var r = [e, n], i = this.transform;
  50987. return i && oi(r, r, i), r;
  50988. }, t.prototype.getLineScale = function() {
  50989. var e = this.transform;
  50990. return e && WE(e[0] - 1) > 1e-10 && WE(e[3] - 1) > 1e-10 ? Math.sqrt(WE(e[0] * e[3] - e[2] * e[1])) : 1;
  50991. }, t.prototype.copyTransform = function(e) {
  50992. wse(this, e);
  50993. }, t.getLocalTransform = function(e, n) {
  50994. n = n || [];
  50995. var r = e.originX || 0, i = e.originY || 0, a = e.scaleX, o = e.scaleY, s = e.anchorX, l = e.anchorY, u = e.rotation || 0, c = e.x, f = e.y, d = e.skewX ? Math.tan(e.skewX) : 0, h = e.skewY ? Math.tan(-e.skewY) : 0;
  50996. if (r || i || s || l) {
  50997. var p = r + s, v = i + l;
  50998. n[4] = -p * a - d * v * o, n[5] = -v * o - h * p * a;
  50999. } else
  51000. n[4] = n[5] = 0;
  51001. return n[0] = a, n[3] = o, n[1] = h * a, n[2] = d * o, u && Lf(n, n, u), n[4] += r + c, n[5] += i + f, n;
  51002. }, t.initDefaultProps = function() {
  51003. var e = t.prototype;
  51004. e.scaleX = e.scaleY = e.globalScaleRatio = 1, e.x = e.y = e.originX = e.originY = e.skewX = e.skewY = e.rotation = e.anchorX = e.anchorY = 0;
  51005. }(), t;
  51006. }(), Hl = [
  51007. "x",
  51008. "y",
  51009. "originX",
  51010. "originY",
  51011. "anchorX",
  51012. "anchorY",
  51013. "rotation",
  51014. "scaleX",
  51015. "scaleY",
  51016. "skewX",
  51017. "skewY"
  51018. ];
  51019. function wse(t, e) {
  51020. for (var n = 0; n < Hl.length; n++) {
  51021. var r = Hl[n];
  51022. t[r] = e[r];
  51023. }
  51024. }
  51025. const Pu = IGe;
  51026. var BH = {};
  51027. function fo(t, e) {
  51028. e = e || vf;
  51029. var n = BH[e];
  51030. n || (n = BH[e] = new a1(500));
  51031. var r = n.get(t);
  51032. return r == null && (r = Hs.measureText(t, e).width, n.put(t, r)), r;
  51033. }
  51034. function zH(t, e, n, r) {
  51035. var i = fo(t, e), a = fP(e), o = vy(0, i, n), s = Ov(0, a, r), l = new bt(o, s, i, a);
  51036. return l;
  51037. }
  51038. function o1(t, e, n, r) {
  51039. var i = ((t || "") + "").split(`
  51040. `), a = i.length;
  51041. if (a === 1)
  51042. return zH(i[0], e, n, r);
  51043. for (var o = new bt(0, 0, 0, 0), s = 0; s < i.length; s++) {
  51044. var l = zH(i[s], e, n, r);
  51045. s === 0 ? o.copy(l) : o.union(l);
  51046. }
  51047. return o;
  51048. }
  51049. function vy(t, e, n) {
  51050. return n === "right" ? t -= e : n === "center" && (t -= e / 2), t;
  51051. }
  51052. function Ov(t, e, n) {
  51053. return n === "middle" ? t -= e / 2 : n === "bottom" && (t -= e), t;
  51054. }
  51055. function fP(t) {
  51056. return fo("国", t);
  51057. }
  51058. function js(t, e) {
  51059. return typeof t == "string" ? t.lastIndexOf("%") >= 0 ? parseFloat(t) / 100 * e : parseFloat(t) : t;
  51060. }
  51061. function AC(t, e, n) {
  51062. var r = e.position || "inside", i = e.distance != null ? e.distance : 5, a = n.height, o = n.width, s = a / 2, l = n.x, u = n.y, c = "left", f = "top";
  51063. if (r instanceof Array)
  51064. l += js(r[0], n.width), u += js(r[1], n.height), c = null, f = null;
  51065. else
  51066. switch (r) {
  51067. case "left":
  51068. l -= i, u += s, c = "right", f = "middle";
  51069. break;
  51070. case "right":
  51071. l += i + o, u += s, f = "middle";
  51072. break;
  51073. case "top":
  51074. l += o / 2, u -= i, c = "center", f = "bottom";
  51075. break;
  51076. case "bottom":
  51077. l += o / 2, u += a + i, c = "center";
  51078. break;
  51079. case "inside":
  51080. l += o / 2, u += s, c = "center", f = "middle";
  51081. break;
  51082. case "insideLeft":
  51083. l += i, u += s, f = "middle";
  51084. break;
  51085. case "insideRight":
  51086. l += o - i, u += s, c = "right", f = "middle";
  51087. break;
  51088. case "insideTop":
  51089. l += o / 2, u += i, c = "center";
  51090. break;
  51091. case "insideBottom":
  51092. l += o / 2, u += a - i, c = "center", f = "bottom";
  51093. break;
  51094. case "insideTopLeft":
  51095. l += i, u += i;
  51096. break;
  51097. case "insideTopRight":
  51098. l += o - i, u += i, c = "right";
  51099. break;
  51100. case "insideBottomLeft":
  51101. l += i, u += a - i, f = "bottom";
  51102. break;
  51103. case "insideBottomRight":
  51104. l += o - i, u += a - i, c = "right", f = "bottom";
  51105. break;
  51106. }
  51107. return t = t || {}, t.x = l, t.y = u, t.align = c, t.verticalAlign = f, t;
  51108. }
  51109. var QE = "__zr_normal__", HE = Hl.concat(["ignore"]), DGe = os(Hl, function(t, e) {
  51110. return t[e] = !0, t;
  51111. }, { ignore: !1 }), Xp = {}, RGe = new bt(0, 0, 0, 0), dP = function() {
  51112. function t(e) {
  51113. this.id = g5(), this.animators = [], this.currentStates = [], this.states = {}, this._init(e);
  51114. }
  51115. return t.prototype._init = function(e) {
  51116. this.attr(e);
  51117. }, t.prototype.drift = function(e, n, r) {
  51118. switch (this.draggable) {
  51119. case "horizontal":
  51120. n = 0;
  51121. break;
  51122. case "vertical":
  51123. e = 0;
  51124. break;
  51125. }
  51126. var i = this.transform;
  51127. i || (i = this.transform = [1, 0, 0, 1, 0, 0]), i[4] += e, i[5] += n, this.decomposeTransform(), this.markRedraw();
  51128. }, t.prototype.beforeUpdate = function() {
  51129. }, t.prototype.afterUpdate = function() {
  51130. }, t.prototype.update = function() {
  51131. this.updateTransform(), this.__dirty && this.updateInnerText();
  51132. }, t.prototype.updateInnerText = function(e) {
  51133. var n = this._textContent;
  51134. if (n && (!n.ignore || e)) {
  51135. this.textConfig || (this.textConfig = {});
  51136. var r = this.textConfig, i = r.local, a = n.innerTransformable, o = void 0, s = void 0, l = !1;
  51137. a.parent = i ? this : null;
  51138. var u = !1;
  51139. if (a.copyTransform(n), r.position != null) {
  51140. var c = RGe;
  51141. r.layoutRect ? c.copy(r.layoutRect) : c.copy(this.getBoundingRect()), i || c.applyTransform(this.transform), this.calculateTextPosition ? this.calculateTextPosition(Xp, r, c) : AC(Xp, r, c), a.x = Xp.x, a.y = Xp.y, o = Xp.align, s = Xp.verticalAlign;
  51142. var f = r.origin;
  51143. if (f && r.rotation != null) {
  51144. var d = void 0, h = void 0;
  51145. f === "center" ? (d = c.width * 0.5, h = c.height * 0.5) : (d = js(f[0], c.width), h = js(f[1], c.height)), u = !0, a.originX = -a.x + d + (i ? 0 : c.x), a.originY = -a.y + h + (i ? 0 : c.y);
  51146. }
  51147. }
  51148. r.rotation != null && (a.rotation = r.rotation);
  51149. var p = r.offset;
  51150. p && (a.x += p[0], a.y += p[1], u || (a.originX = -p[0], a.originY = -p[1]));
  51151. var v = r.inside == null ? typeof r.position == "string" && r.position.indexOf("inside") >= 0 : r.inside, g = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {}), m = void 0, y = void 0, _ = void 0;
  51152. v && this.canBeInsideText() ? (m = r.insideFill, y = r.insideStroke, (m == null || m === "auto") && (m = this.getInsideTextFill()), (y == null || y === "auto") && (y = this.getInsideTextStroke(m), _ = !0)) : (m = r.outsideFill, y = r.outsideStroke, (m == null || m === "auto") && (m = this.getOutsideFill()), (y == null || y === "auto") && (y = this.getOutsideStroke(m), _ = !0)), m = m || "#000", (m !== g.fill || y !== g.stroke || _ !== g.autoStroke || o !== g.align || s !== g.verticalAlign) && (l = !0, g.fill = m, g.stroke = y, g.autoStroke = _, g.align = o, g.verticalAlign = s, n.setDefaultTextStyle(g)), n.__dirty |= to, l && n.dirtyStyle(!0);
  51153. }
  51154. }, t.prototype.canBeInsideText = function() {
  51155. return !0;
  51156. }, t.prototype.getInsideTextFill = function() {
  51157. return "#fff";
  51158. }, t.prototype.getInsideTextStroke = function(e) {
  51159. return "#000";
  51160. }, t.prototype.getOutsideFill = function() {
  51161. return this.__zr && this.__zr.isDarkMode() ? yk : mk;
  51162. }, t.prototype.getOutsideStroke = function(e) {
  51163. var n = this.__zr && this.__zr.getBackgroundColor(), r = typeof n == "string" && oa(n);
  51164. r || (r = [255, 255, 255, 1]);
  51165. for (var i = r[3], a = this.__zr.isDarkMode(), o = 0; o < 3; o++)
  51166. r[o] = r[o] * i + (a ? 0 : 255) * (1 - i);
  51167. return r[3] = 1, Bs(r, "rgba");
  51168. }, t.prototype.traverse = function(e, n) {
  51169. }, t.prototype.attrKV = function(e, n) {
  51170. e === "textConfig" ? this.setTextConfig(n) : e === "textContent" ? this.setTextContent(n) : e === "clipPath" ? this.setClipPath(n) : e === "extra" ? (this.extra = this.extra || {}, _e(this.extra, n)) : this[e] = n;
  51171. }, t.prototype.hide = function() {
  51172. this.ignore = !0, this.markRedraw();
  51173. }, t.prototype.show = function() {
  51174. this.ignore = !1, this.markRedraw();
  51175. }, t.prototype.attr = function(e, n) {
  51176. if (typeof e == "string")
  51177. this.attrKV(e, n);
  51178. else if (nt(e))
  51179. for (var r = e, i = kt(r), a = 0; a < i.length; a++) {
  51180. var o = i[a];
  51181. this.attrKV(o, e[o]);
  51182. }
  51183. return this.markRedraw(), this;
  51184. }, t.prototype.saveCurrentToNormalState = function(e) {
  51185. this._innerSaveToNormal(e);
  51186. for (var n = this._normalState, r = 0; r < this.animators.length; r++) {
  51187. var i = this.animators[r], a = i.__fromStateTransition;
  51188. if (!(i.getLoop() || a && a !== QE)) {
  51189. var o = i.targetName, s = o ? n[o] : n;
  51190. i.saveTo(s);
  51191. }
  51192. }
  51193. }, t.prototype._innerSaveToNormal = function(e) {
  51194. var n = this._normalState;
  51195. n || (n = this._normalState = {}), e.textConfig && !n.textConfig && (n.textConfig = this.textConfig), this._savePrimaryToNormal(e, n, HE);
  51196. }, t.prototype._savePrimaryToNormal = function(e, n, r) {
  51197. for (var i = 0; i < r.length; i++) {
  51198. var a = r[i];
  51199. e[a] != null && !(a in n) && (n[a] = this[a]);
  51200. }
  51201. }, t.prototype.hasState = function() {
  51202. return this.currentStates.length > 0;
  51203. }, t.prototype.getState = function(e) {
  51204. return this.states[e];
  51205. }, t.prototype.ensureState = function(e) {
  51206. var n = this.states;
  51207. return n[e] || (n[e] = {}), n[e];
  51208. }, t.prototype.clearStates = function(e) {
  51209. this.useState(QE, !1, e);
  51210. }, t.prototype.useState = function(e, n, r, i) {
  51211. var a = e === QE, o = this.hasState();
  51212. if (!(!o && a)) {
  51213. var s = this.currentStates, l = this.stateTransition;
  51214. if (!(St(s, e) >= 0 && (n || s.length === 1))) {
  51215. var u;
  51216. if (this.stateProxy && !a && (u = this.stateProxy(e)), u || (u = this.states && this.states[e]), !u && !a) {
  51217. qo("State " + e + " not exists.");
  51218. return;
  51219. }
  51220. a || this.saveCurrentToNormalState(u);
  51221. var c = !!(u && u.hoverLayer || i);
  51222. c && this._toggleHoverLayerFlag(!0), this._applyStateObj(e, u, this._normalState, n, !r && !this.__inHover && l && l.duration > 0, l);
  51223. var f = this._textContent, d = this._textGuide;
  51224. return f && f.useState(e, n, r, c), d && d.useState(e, n, r, c), a ? (this.currentStates = [], this._normalState = {}) : n ? this.currentStates.push(e) : this.currentStates = [e], this._updateAnimationTargets(), this.markRedraw(), !c && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~to), u;
  51225. }
  51226. }
  51227. }, t.prototype.useStates = function(e, n, r) {
  51228. if (!e.length)
  51229. this.clearStates();
  51230. else {
  51231. var i = [], a = this.currentStates, o = e.length, s = o === a.length;
  51232. if (s) {
  51233. for (var l = 0; l < o; l++)
  51234. if (e[l] !== a[l]) {
  51235. s = !1;
  51236. break;
  51237. }
  51238. }
  51239. if (s)
  51240. return;
  51241. for (var l = 0; l < o; l++) {
  51242. var u = e[l], c = void 0;
  51243. this.stateProxy && (c = this.stateProxy(u, e)), c || (c = this.states[u]), c && i.push(c);
  51244. }
  51245. var f = i[o - 1], d = !!(f && f.hoverLayer || r);
  51246. d && this._toggleHoverLayerFlag(!0);
  51247. var h = this._mergeStates(i), p = this.stateTransition;
  51248. this.saveCurrentToNormalState(h), this._applyStateObj(e.join(","), h, this._normalState, !1, !n && !this.__inHover && p && p.duration > 0, p);
  51249. var v = this._textContent, g = this._textGuide;
  51250. v && v.useStates(e, n, d), g && g.useStates(e, n, d), this._updateAnimationTargets(), this.currentStates = e.slice(), this.markRedraw(), !d && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~to);
  51251. }
  51252. }, t.prototype.isSilent = function() {
  51253. for (var e = this.silent, n = this.parent; !e && n; ) {
  51254. if (n.silent) {
  51255. e = !0;
  51256. break;
  51257. }
  51258. n = n.parent;
  51259. }
  51260. return e;
  51261. }, t.prototype._updateAnimationTargets = function() {
  51262. for (var e = 0; e < this.animators.length; e++) {
  51263. var n = this.animators[e];
  51264. n.targetName && n.changeTarget(this[n.targetName]);
  51265. }
  51266. }, t.prototype.removeState = function(e) {
  51267. var n = St(this.currentStates, e);
  51268. if (n >= 0) {
  51269. var r = this.currentStates.slice();
  51270. r.splice(n, 1), this.useStates(r);
  51271. }
  51272. }, t.prototype.replaceState = function(e, n, r) {
  51273. var i = this.currentStates.slice(), a = St(i, e), o = St(i, n) >= 0;
  51274. a >= 0 ? o ? i.splice(a, 1) : i[a] = n : r && !o && i.push(n), this.useStates(i);
  51275. }, t.prototype.toggleState = function(e, n) {
  51276. n ? this.useState(e, !0) : this.removeState(e);
  51277. }, t.prototype._mergeStates = function(e) {
  51278. for (var n = {}, r, i = 0; i < e.length; i++) {
  51279. var a = e[i];
  51280. _e(n, a), a.textConfig && (r = r || {}, _e(r, a.textConfig));
  51281. }
  51282. return r && (n.textConfig = r), n;
  51283. }, t.prototype._applyStateObj = function(e, n, r, i, a, o) {
  51284. var s = !(n && i);
  51285. n && n.textConfig ? (this.textConfig = _e({}, i ? this.textConfig : r.textConfig), _e(this.textConfig, n.textConfig)) : s && r.textConfig && (this.textConfig = r.textConfig);
  51286. for (var l = {}, u = !1, c = 0; c < HE.length; c++) {
  51287. var f = HE[c], d = a && DGe[f];
  51288. n && n[f] != null ? d ? (u = !0, l[f] = n[f]) : this[f] = n[f] : s && r[f] != null && (d ? (u = !0, l[f] = r[f]) : this[f] = r[f]);
  51289. }
  51290. if (!a)
  51291. for (var c = 0; c < this.animators.length; c++) {
  51292. var h = this.animators[c], p = h.targetName;
  51293. h.getLoop() || h.__changeFinalValue(p ? (n || r)[p] : n || r);
  51294. }
  51295. u && this._transitionState(e, l, o);
  51296. }, t.prototype._attachComponent = function(e) {
  51297. if (e.__zr && !e.__hostTarget) {
  51298. if (process.env.NODE_ENV !== "production")
  51299. throw new Error("Text element has been added to zrender.");
  51300. return;
  51301. }
  51302. if (e === this) {
  51303. if (process.env.NODE_ENV !== "production")
  51304. throw new Error("Recursive component attachment.");
  51305. return;
  51306. }
  51307. var n = this.__zr;
  51308. n && e.addSelfToZr(n), e.__zr = n, e.__hostTarget = this;
  51309. }, t.prototype._detachComponent = function(e) {
  51310. e.__zr && e.removeSelfFromZr(e.__zr), e.__zr = null, e.__hostTarget = null;
  51311. }, t.prototype.getClipPath = function() {
  51312. return this._clipPath;
  51313. }, t.prototype.setClipPath = function(e) {
  51314. this._clipPath && this._clipPath !== e && this.removeClipPath(), this._attachComponent(e), this._clipPath = e, this.markRedraw();
  51315. }, t.prototype.removeClipPath = function() {
  51316. var e = this._clipPath;
  51317. e && (this._detachComponent(e), this._clipPath = null, this.markRedraw());
  51318. }, t.prototype.getTextContent = function() {
  51319. return this._textContent;
  51320. }, t.prototype.setTextContent = function(e) {
  51321. var n = this._textContent;
  51322. if (n !== e) {
  51323. if (n && n !== e && this.removeTextContent(), process.env.NODE_ENV !== "production" && e.__zr && !e.__hostTarget)
  51324. throw new Error("Text element has been added to zrender.");
  51325. e.innerTransformable = new Pu(), this._attachComponent(e), this._textContent = e, this.markRedraw();
  51326. }
  51327. }, t.prototype.setTextConfig = function(e) {
  51328. this.textConfig || (this.textConfig = {}), _e(this.textConfig, e), this.markRedraw();
  51329. }, t.prototype.removeTextConfig = function() {
  51330. this.textConfig = null, this.markRedraw();
  51331. }, t.prototype.removeTextContent = function() {
  51332. var e = this._textContent;
  51333. e && (e.innerTransformable = null, this._detachComponent(e), this._textContent = null, this._innerTextDefaultStyle = null, this.markRedraw());
  51334. }, t.prototype.getTextGuideLine = function() {
  51335. return this._textGuide;
  51336. }, t.prototype.setTextGuideLine = function(e) {
  51337. this._textGuide && this._textGuide !== e && this.removeTextGuideLine(), this._attachComponent(e), this._textGuide = e, this.markRedraw();
  51338. }, t.prototype.removeTextGuideLine = function() {
  51339. var e = this._textGuide;
  51340. e && (this._detachComponent(e), this._textGuide = null, this.markRedraw());
  51341. }, t.prototype.markRedraw = function() {
  51342. this.__dirty |= to;
  51343. var e = this.__zr;
  51344. e && (this.__inHover ? e.refreshHover() : e.refresh()), this.__hostTarget && this.__hostTarget.markRedraw();
  51345. }, t.prototype.dirty = function() {
  51346. this.markRedraw();
  51347. }, t.prototype._toggleHoverLayerFlag = function(e) {
  51348. this.__inHover = e;
  51349. var n = this._textContent, r = this._textGuide;
  51350. n && (n.__inHover = e), r && (r.__inHover = e);
  51351. }, t.prototype.addSelfToZr = function(e) {
  51352. if (this.__zr !== e) {
  51353. this.__zr = e;
  51354. var n = this.animators;
  51355. if (n)
  51356. for (var r = 0; r < n.length; r++)
  51357. e.animation.addAnimator(n[r]);
  51358. this._clipPath && this._clipPath.addSelfToZr(e), this._textContent && this._textContent.addSelfToZr(e), this._textGuide && this._textGuide.addSelfToZr(e);
  51359. }
  51360. }, t.prototype.removeSelfFromZr = function(e) {
  51361. if (this.__zr) {
  51362. this.__zr = null;
  51363. var n = this.animators;
  51364. if (n)
  51365. for (var r = 0; r < n.length; r++)
  51366. e.animation.removeAnimator(n[r]);
  51367. this._clipPath && this._clipPath.removeSelfFromZr(e), this._textContent && this._textContent.removeSelfFromZr(e), this._textGuide && this._textGuide.removeSelfFromZr(e);
  51368. }
  51369. }, t.prototype.animate = function(e, n, r) {
  51370. var i = e ? this[e] : this;
  51371. if (process.env.NODE_ENV !== "production" && !i) {
  51372. qo('Property "' + e + '" is not existed in element ' + this.id);
  51373. return;
  51374. }
  51375. var a = new C5(i, n, r);
  51376. return e && (a.targetName = e), this.addAnimator(a, e), a;
  51377. }, t.prototype.addAnimator = function(e, n) {
  51378. var r = this.__zr, i = this;
  51379. e.during(function() {
  51380. i.updateDuringAnimation(n);
  51381. }).done(function() {
  51382. var a = i.animators, o = St(a, e);
  51383. o >= 0 && a.splice(o, 1);
  51384. }), this.animators.push(e), r && r.animation.addAnimator(e), r && r.wakeUp();
  51385. }, t.prototype.updateDuringAnimation = function(e) {
  51386. this.markRedraw();
  51387. }, t.prototype.stopAnimation = function(e, n) {
  51388. for (var r = this.animators, i = r.length, a = [], o = 0; o < i; o++) {
  51389. var s = r[o];
  51390. !e || e === s.scope ? s.stop(n) : a.push(s);
  51391. }
  51392. return this.animators = a, this;
  51393. }, t.prototype.animateTo = function(e, n, r) {
  51394. GE(this, e, n, r);
  51395. }, t.prototype.animateFrom = function(e, n, r) {
  51396. GE(this, e, n, r, !0);
  51397. }, t.prototype._transitionState = function(e, n, r, i) {
  51398. for (var a = GE(this, n, r, i), o = 0; o < a.length; o++)
  51399. a[o].__fromStateTransition = e;
  51400. }, t.prototype.getBoundingRect = function() {
  51401. return null;
  51402. }, t.prototype.getPaintRect = function() {
  51403. return null;
  51404. }, t.initDefaultProps = function() {
  51405. var e = t.prototype;
  51406. e.type = "element", e.name = "", e.ignore = e.silent = e.isGroup = e.draggable = e.dragging = e.ignoreClip = e.__inHover = !1, e.__dirty = to;
  51407. var n = {};
  51408. function r(a, o, s) {
  51409. n[a + o + s] || (console.warn("DEPRECATED: '" + a + "' has been deprecated. use '" + o + "', '" + s + "' instead"), n[a + o + s] = !0);
  51410. }
  51411. function i(a, o, s, l) {
  51412. Object.defineProperty(e, a, {
  51413. get: function() {
  51414. if (process.env.NODE_ENV !== "production" && r(a, s, l), !this[o]) {
  51415. var c = this[o] = [];
  51416. u(this, c);
  51417. }
  51418. return this[o];
  51419. },
  51420. set: function(c) {
  51421. process.env.NODE_ENV !== "production" && r(a, s, l), this[s] = c[0], this[l] = c[1], this[o] = c, u(this, c);
  51422. }
  51423. });
  51424. function u(c, f) {
  51425. Object.defineProperty(f, 0, {
  51426. get: function() {
  51427. return c[s];
  51428. },
  51429. set: function(d) {
  51430. c[s] = d;
  51431. }
  51432. }), Object.defineProperty(f, 1, {
  51433. get: function() {
  51434. return c[l];
  51435. },
  51436. set: function(d) {
  51437. c[l] = d;
  51438. }
  51439. });
  51440. }
  51441. }
  51442. Object.defineProperty && (i("position", "_legacyPos", "x", "y"), i("scale", "_legacyScale", "scaleX", "scaleY"), i("origin", "_legacyOrigin", "originX", "originY"));
  51443. }(), t;
  51444. }();
  51445. vr(dP, fs);
  51446. vr(dP, Pu);
  51447. function GE(t, e, n, r, i) {
  51448. n = n || {};
  51449. var a = [];
  51450. Cse(t, "", t, e, n, r, a, i);
  51451. var o = a.length, s = !1, l = n.done, u = n.aborted, c = function() {
  51452. s = !0, o--, o <= 0 && (s ? l && l() : u && u());
  51453. }, f = function() {
  51454. o--, o <= 0 && (s ? l && l() : u && u());
  51455. };
  51456. o || l && l(), a.length > 0 && n.during && a[0].during(function(p, v) {
  51457. n.during(v);
  51458. });
  51459. for (var d = 0; d < a.length; d++) {
  51460. var h = a[d];
  51461. c && h.done(c), f && h.aborted(f), n.force && h.duration(n.duration), h.start(n.easing);
  51462. }
  51463. return a;
  51464. }
  51465. function jE(t, e, n) {
  51466. for (var r = 0; r < n; r++)
  51467. t[r] = e[r];
  51468. }
  51469. function kGe(t) {
  51470. return Pi(t[0]);
  51471. }
  51472. function LGe(t, e, n) {
  51473. if (Pi(e[n]))
  51474. if (Pi(t[n]) || (t[n] = []), Qi(e[n])) {
  51475. var r = e[n].length;
  51476. t[n].length !== r && (t[n] = new e[n].constructor(r), jE(t[n], e[n], r));
  51477. } else {
  51478. var i = e[n], a = t[n], o = i.length;
  51479. if (kGe(i))
  51480. for (var s = i[0].length, l = 0; l < o; l++)
  51481. a[l] ? jE(a[l], i[l], s) : a[l] = Array.prototype.slice.call(i[l]);
  51482. else
  51483. jE(a, i, o);
  51484. a.length = i.length;
  51485. }
  51486. else
  51487. t[n] = e[n];
  51488. }
  51489. function NGe(t, e) {
  51490. return t === e || Pi(t) && Pi(e) && BGe(t, e);
  51491. }
  51492. function BGe(t, e) {
  51493. var n = t.length;
  51494. if (n !== e.length)
  51495. return !1;
  51496. for (var r = 0; r < n; r++)
  51497. if (t[r] !== e[r])
  51498. return !1;
  51499. return !0;
  51500. }
  51501. function Cse(t, e, n, r, i, a, o, s) {
  51502. for (var l = kt(r), u = i.duration, c = i.delay, f = i.additive, d = i.setToFinal, h = !nt(a), p = t.animators, v = [], g = 0; g < l.length; g++) {
  51503. var m = l[g], y = r[m];
  51504. if (y != null && n[m] != null && (h || a[m]))
  51505. if (nt(y) && !Pi(y) && !n1(y)) {
  51506. if (e) {
  51507. s || (n[m] = y, t.updateDuringAnimation(e));
  51508. continue;
  51509. }
  51510. Cse(t, m, n[m], y, i, a && a[m], o, s);
  51511. } else
  51512. v.push(m);
  51513. else s || (n[m] = y, t.updateDuringAnimation(e), v.push(m));
  51514. }
  51515. var _ = v.length;
  51516. if (!f && _)
  51517. for (var O = 0; O < p.length; O++) {
  51518. var S = p[O];
  51519. if (S.targetName === e) {
  51520. var x = S.stopTracks(v);
  51521. if (x) {
  51522. var C = St(p, S);
  51523. p.splice(C, 1);
  51524. }
  51525. }
  51526. }
  51527. if (i.force || (v = yn(v, function(E) {
  51528. return !NGe(r[E], n[E]);
  51529. }), _ = v.length), _ > 0 || i.force && !o.length) {
  51530. var P = void 0, $ = void 0, T = void 0;
  51531. if (s) {
  51532. $ = {}, d && (P = {});
  51533. for (var O = 0; O < _; O++) {
  51534. var m = v[O];
  51535. $[m] = n[m], d ? P[m] = r[m] : n[m] = r[m];
  51536. }
  51537. } else if (d) {
  51538. T = {};
  51539. for (var O = 0; O < _; O++) {
  51540. var m = v[O];
  51541. T[m] = Jy(n[m]), LGe(n, r, m);
  51542. }
  51543. }
  51544. var S = new C5(n, !1, !1, f ? yn(p, function(M) {
  51545. return M.targetName === e;
  51546. }) : null);
  51547. S.targetName = e, i.scope && (S.scope = i.scope), d && P && S.whenWithKeys(0, P, v), T && S.whenWithKeys(0, T, v), S.whenWithKeys(u ?? 500, s ? $ : r, v).delay(c || 0), t.addAnimator(S, e), o.push(S);
  51548. }
  51549. }
  51550. var Tse = function(t) {
  51551. le(e, t);
  51552. function e(n) {
  51553. var r = t.call(this) || this;
  51554. return r.isGroup = !0, r._children = [], r.attr(n), r;
  51555. }
  51556. return e.prototype.childrenRef = function() {
  51557. return this._children;
  51558. }, e.prototype.children = function() {
  51559. return this._children.slice();
  51560. }, e.prototype.childAt = function(n) {
  51561. return this._children[n];
  51562. }, e.prototype.childOfName = function(n) {
  51563. for (var r = this._children, i = 0; i < r.length; i++)
  51564. if (r[i].name === n)
  51565. return r[i];
  51566. }, e.prototype.childCount = function() {
  51567. return this._children.length;
  51568. }, e.prototype.add = function(n) {
  51569. if (n && (n !== this && n.parent !== this && (this._children.push(n), this._doAdd(n)), process.env.NODE_ENV !== "production" && n.__hostTarget))
  51570. throw "This elemenet has been used as an attachment";
  51571. return this;
  51572. }, e.prototype.addBefore = function(n, r) {
  51573. if (n && n !== this && n.parent !== this && r && r.parent === this) {
  51574. var i = this._children, a = i.indexOf(r);
  51575. a >= 0 && (i.splice(a, 0, n), this._doAdd(n));
  51576. }
  51577. return this;
  51578. }, e.prototype.replace = function(n, r) {
  51579. var i = St(this._children, n);
  51580. return i >= 0 && this.replaceAt(r, i), this;
  51581. }, e.prototype.replaceAt = function(n, r) {
  51582. var i = this._children, a = i[r];
  51583. if (n && n !== this && n.parent !== this && n !== a) {
  51584. i[r] = n, a.parent = null;
  51585. var o = this.__zr;
  51586. o && a.removeSelfFromZr(o), this._doAdd(n);
  51587. }
  51588. return this;
  51589. }, e.prototype._doAdd = function(n) {
  51590. n.parent && n.parent.remove(n), n.parent = this;
  51591. var r = this.__zr;
  51592. r && r !== n.__zr && n.addSelfToZr(r), r && r.refresh();
  51593. }, e.prototype.remove = function(n) {
  51594. var r = this.__zr, i = this._children, a = St(i, n);
  51595. return a < 0 ? this : (i.splice(a, 1), n.parent = null, r && n.removeSelfFromZr(r), r && r.refresh(), this);
  51596. }, e.prototype.removeAll = function() {
  51597. for (var n = this._children, r = this.__zr, i = 0; i < n.length; i++) {
  51598. var a = n[i];
  51599. r && a.removeSelfFromZr(r), a.parent = null;
  51600. }
  51601. return n.length = 0, this;
  51602. }, e.prototype.eachChild = function(n, r) {
  51603. for (var i = this._children, a = 0; a < i.length; a++) {
  51604. var o = i[a];
  51605. n.call(r, o, a);
  51606. }
  51607. return this;
  51608. }, e.prototype.traverse = function(n, r) {
  51609. for (var i = 0; i < this._children.length; i++) {
  51610. var a = this._children[i], o = n.call(r, a);
  51611. a.isGroup && !o && a.traverse(n, r);
  51612. }
  51613. return this;
  51614. }, e.prototype.addSelfToZr = function(n) {
  51615. t.prototype.addSelfToZr.call(this, n);
  51616. for (var r = 0; r < this._children.length; r++) {
  51617. var i = this._children[r];
  51618. i.addSelfToZr(n);
  51619. }
  51620. }, e.prototype.removeSelfFromZr = function(n) {
  51621. t.prototype.removeSelfFromZr.call(this, n);
  51622. for (var r = 0; r < this._children.length; r++) {
  51623. var i = this._children[r];
  51624. i.removeSelfFromZr(n);
  51625. }
  51626. }, e.prototype.getBoundingRect = function(n) {
  51627. for (var r = new bt(0, 0, 0, 0), i = n || this._children, a = [], o = null, s = 0; s < i.length; s++) {
  51628. var l = i[s];
  51629. if (!(l.ignore || l.invisible)) {
  51630. var u = l.getBoundingRect(), c = l.getLocalTransform(a);
  51631. c ? (bt.applyTransform(r, u, c), o = o || r.clone(), o.union(r)) : (o = o || u.clone(), o.union(u));
  51632. }
  51633. }
  51634. return o || r;
  51635. }, e;
  51636. }(dP);
  51637. Tse.prototype.type = "group";
  51638. const ct = Tse;
  51639. /*!
  51640. * ZRender, a high performance 2d drawing library.
  51641. *
  51642. * Copyright (c) 2013, Baidu Inc.
  51643. * All rights reserved.
  51644. *
  51645. * LICENSE
  51646. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  51647. */
  51648. var gy = {}, rh = {};
  51649. function zGe(t) {
  51650. delete rh[t];
  51651. }
  51652. function VGe(t) {
  51653. if (!t)
  51654. return !1;
  51655. if (typeof t == "string")
  51656. return jb(t, 1) < gk;
  51657. if (t.colorStops) {
  51658. for (var e = t.colorStops, n = 0, r = e.length, i = 0; i < r; i++)
  51659. n += jb(e[i].color, 1);
  51660. return n /= r, n < gk;
  51661. }
  51662. return !1;
  51663. }
  51664. var FGe = function() {
  51665. function t(e, n, r) {
  51666. var i = this;
  51667. this._sleepAfterStill = 10, this._stillFrameAccum = 0, this._needsRefresh = !0, this._needsRefreshHover = !0, this._darkMode = !1, r = r || {}, this.dom = n, this.id = e;
  51668. var a = new qHe(), o = r.renderer || "canvas";
  51669. if (gy[o] || (o = kt(gy)[0]), process.env.NODE_ENV !== "production" && !gy[o])
  51670. throw new Error("Renderer '" + o + "' is not imported. Please import it first.");
  51671. r.useDirtyRect = r.useDirtyRect == null ? !1 : r.useDirtyRect;
  51672. var s = new gy[o](n, a, r, e), l = r.ssr || s.ssrOnly;
  51673. this.storage = a, this.painter = s;
  51674. var u = !Gt.node && !Gt.worker && !l ? new EGe(s.getViewportRoot(), s.root) : null, c = r.useCoarsePointer, f = c == null || c === "auto" ? Gt.touchEventsSupported : !!c, d = 44, h;
  51675. f && (h = dt(r.pointerSize, d)), this.handler = new ise(a, s, u, s.root, h), this.animation = new xGe({
  51676. stage: {
  51677. update: l ? null : function() {
  51678. return i._flush(!0);
  51679. }
  51680. }
  51681. }), l || this.animation.start();
  51682. }
  51683. return t.prototype.add = function(e) {
  51684. this._disposed || !e || (this.storage.addRoot(e), e.addSelfToZr(this), this.refresh());
  51685. }, t.prototype.remove = function(e) {
  51686. this._disposed || !e || (this.storage.delRoot(e), e.removeSelfFromZr(this), this.refresh());
  51687. }, t.prototype.configLayer = function(e, n) {
  51688. this._disposed || (this.painter.configLayer && this.painter.configLayer(e, n), this.refresh());
  51689. }, t.prototype.setBackgroundColor = function(e) {
  51690. this._disposed || (this.painter.setBackgroundColor && this.painter.setBackgroundColor(e), this.refresh(), this._backgroundColor = e, this._darkMode = VGe(e));
  51691. }, t.prototype.getBackgroundColor = function() {
  51692. return this._backgroundColor;
  51693. }, t.prototype.setDarkMode = function(e) {
  51694. this._darkMode = e;
  51695. }, t.prototype.isDarkMode = function() {
  51696. return this._darkMode;
  51697. }, t.prototype.refreshImmediately = function(e) {
  51698. this._disposed || (e || this.animation.update(!0), this._needsRefresh = !1, this.painter.refresh(), this._needsRefresh = !1);
  51699. }, t.prototype.refresh = function() {
  51700. this._disposed || (this._needsRefresh = !0, this.animation.start());
  51701. }, t.prototype.flush = function() {
  51702. this._disposed || this._flush(!1);
  51703. }, t.prototype._flush = function(e) {
  51704. var n, r = Iv();
  51705. this._needsRefresh && (n = !0, this.refreshImmediately(e)), this._needsRefreshHover && (n = !0, this.refreshHoverImmediately());
  51706. var i = Iv();
  51707. n ? (this._stillFrameAccum = 0, this.trigger("rendered", {
  51708. elapsedTime: i - r
  51709. })) : this._sleepAfterStill > 0 && (this._stillFrameAccum++, this._stillFrameAccum > this._sleepAfterStill && this.animation.stop());
  51710. }, t.prototype.setSleepAfterStill = function(e) {
  51711. this._sleepAfterStill = e;
  51712. }, t.prototype.wakeUp = function() {
  51713. this._disposed || (this.animation.start(), this._stillFrameAccum = 0);
  51714. }, t.prototype.refreshHover = function() {
  51715. this._needsRefreshHover = !0;
  51716. }, t.prototype.refreshHoverImmediately = function() {
  51717. this._disposed || (this._needsRefreshHover = !1, this.painter.refreshHover && this.painter.getType() === "canvas" && this.painter.refreshHover());
  51718. }, t.prototype.resize = function(e) {
  51719. this._disposed || (e = e || {}, this.painter.resize(e.width, e.height), this.handler.resize());
  51720. }, t.prototype.clearAnimation = function() {
  51721. this._disposed || this.animation.clear();
  51722. }, t.prototype.getWidth = function() {
  51723. if (!this._disposed)
  51724. return this.painter.getWidth();
  51725. }, t.prototype.getHeight = function() {
  51726. if (!this._disposed)
  51727. return this.painter.getHeight();
  51728. }, t.prototype.setCursorStyle = function(e) {
  51729. this._disposed || this.handler.setCursorStyle(e);
  51730. }, t.prototype.findHover = function(e, n) {
  51731. if (!this._disposed)
  51732. return this.handler.findHover(e, n);
  51733. }, t.prototype.on = function(e, n, r) {
  51734. return this._disposed || this.handler.on(e, n, r), this;
  51735. }, t.prototype.off = function(e, n) {
  51736. this._disposed || this.handler.off(e, n);
  51737. }, t.prototype.trigger = function(e, n) {
  51738. this._disposed || this.handler.trigger(e, n);
  51739. }, t.prototype.clear = function() {
  51740. if (!this._disposed) {
  51741. for (var e = this.storage.getRoots(), n = 0; n < e.length; n++)
  51742. e[n] instanceof ct && e[n].removeSelfFromZr(this);
  51743. this.storage.delAllRoots(), this.painter.clear();
  51744. }
  51745. }, t.prototype.dispose = function() {
  51746. this._disposed || (this.animation.stop(), this.clear(), this.storage.dispose(), this.painter.dispose(), this.handler.dispose(), this.animation = this.storage = this.painter = this.handler = null, this._disposed = !0, zGe(this.id));
  51747. }, t;
  51748. }();
  51749. function bk(t, e) {
  51750. var n = new FGe(g5(), t, e);
  51751. return rh[n.id] = n, n;
  51752. }
  51753. function WGe(t) {
  51754. t.dispose();
  51755. }
  51756. function QGe() {
  51757. for (var t in rh)
  51758. rh.hasOwnProperty(t) && rh[t].dispose();
  51759. rh = {};
  51760. }
  51761. function HGe(t) {
  51762. return rh[t];
  51763. }
  51764. function Pse(t, e) {
  51765. gy[t] = e;
  51766. }
  51767. var _k;
  51768. function $se(t) {
  51769. if (typeof _k == "function")
  51770. return _k(t);
  51771. }
  51772. function Ase(t) {
  51773. _k = t;
  51774. }
  51775. var GGe = "5.6.0";
  51776. const jGe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  51777. __proto__: null,
  51778. dispose: WGe,
  51779. disposeAll: QGe,
  51780. getElementSSRData: $se,
  51781. getInstance: HGe,
  51782. init: bk,
  51783. registerPainter: Pse,
  51784. registerSSRDataGetter: Ase,
  51785. version: GGe
  51786. }, Symbol.toStringTag, { value: "Module" }));
  51787. var VH = 1e-4, Ese = 20;
  51788. function ZGe(t) {
  51789. return t.replace(/^\s+|\s+$/g, "");
  51790. }
  51791. function gn(t, e, n, r) {
  51792. var i = e[0], a = e[1], o = n[0], s = n[1], l = a - i, u = s - o;
  51793. if (l === 0)
  51794. return u === 0 ? o : (o + s) / 2;
  51795. if (r)
  51796. if (l > 0) {
  51797. if (t <= i)
  51798. return o;
  51799. if (t >= a)
  51800. return s;
  51801. } else {
  51802. if (t >= i)
  51803. return o;
  51804. if (t <= a)
  51805. return s;
  51806. }
  51807. else {
  51808. if (t === i)
  51809. return o;
  51810. if (t === a)
  51811. return s;
  51812. }
  51813. return (t - i) / l * u + o;
  51814. }
  51815. function ze(t, e) {
  51816. switch (t) {
  51817. case "center":
  51818. case "middle":
  51819. t = "50%";
  51820. break;
  51821. case "left":
  51822. case "top":
  51823. t = "0%";
  51824. break;
  51825. case "right":
  51826. case "bottom":
  51827. t = "100%";
  51828. break;
  51829. }
  51830. return Ve(t) ? ZGe(t).match(/%$/) ? parseFloat(t) / 100 * e : parseFloat(t) : t == null ? NaN : +t;
  51831. }
  51832. function sr(t, e, n) {
  51833. return e == null && (e = 10), e = Math.min(Math.max(0, e), Ese), t = (+t).toFixed(e), n ? t : +t;
  51834. }
  51835. function ao(t) {
  51836. return t.sort(function(e, n) {
  51837. return e - n;
  51838. }), t;
  51839. }
  51840. function Ms(t) {
  51841. if (t = +t, isNaN(t))
  51842. return 0;
  51843. if (t > 1e-14) {
  51844. for (var e = 1, n = 0; n < 15; n++, e *= 10)
  51845. if (Math.round(t * e) / e === t)
  51846. return n;
  51847. }
  51848. return EC(t);
  51849. }
  51850. function EC(t) {
  51851. var e = t.toString().toLowerCase(), n = e.indexOf("e"), r = n > 0 ? +e.slice(n + 1) : 0, i = n > 0 ? n : e.length, a = e.indexOf("."), o = a < 0 ? 0 : i - 1 - a;
  51852. return Math.max(0, o - r);
  51853. }
  51854. function T5(t, e) {
  51855. var n = Math.log, r = Math.LN10, i = Math.floor(n(t[1] - t[0]) / r), a = Math.round(n(Math.abs(e[1] - e[0])) / r), o = Math.min(Math.max(-i + a, 0), 20);
  51856. return isFinite(o) ? o : 20;
  51857. }
  51858. function UGe(t, e, n) {
  51859. if (!t[e])
  51860. return 0;
  51861. var r = Mse(t, n);
  51862. return r[e] || 0;
  51863. }
  51864. function Mse(t, e) {
  51865. var n = os(t, function(h, p) {
  51866. return h + (isNaN(p) ? 0 : p);
  51867. }, 0);
  51868. if (n === 0)
  51869. return [];
  51870. for (var r = Math.pow(10, e), i = Ce(t, function(h) {
  51871. return (isNaN(h) ? 0 : h) / n * r * 100;
  51872. }), a = r * 100, o = Ce(i, function(h) {
  51873. return Math.floor(h);
  51874. }), s = os(o, function(h, p) {
  51875. return h + p;
  51876. }, 0), l = Ce(i, function(h, p) {
  51877. return h - o[p];
  51878. }); s < a; ) {
  51879. for (var u = Number.NEGATIVE_INFINITY, c = null, f = 0, d = l.length; f < d; ++f)
  51880. l[f] > u && (u = l[f], c = f);
  51881. ++o[c], l[c] = 0, ++s;
  51882. }
  51883. return Ce(o, function(h) {
  51884. return h / r;
  51885. });
  51886. }
  51887. function XGe(t, e) {
  51888. var n = Math.max(Ms(t), Ms(e)), r = t + e;
  51889. return n > Ese ? r : sr(r, n);
  51890. }
  51891. var Ok = 9007199254740991;
  51892. function P5(t) {
  51893. var e = Math.PI * 2;
  51894. return (t % e + e) % e;
  51895. }
  51896. function Vg(t) {
  51897. return t > -VH && t < VH;
  51898. }
  51899. var YGe = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;
  51900. function go(t) {
  51901. if (t instanceof Date)
  51902. return t;
  51903. if (Ve(t)) {
  51904. var e = YGe.exec(t);
  51905. if (!e)
  51906. return /* @__PURE__ */ new Date(NaN);
  51907. if (e[8]) {
  51908. var n = +e[4] || 0;
  51909. return e[8].toUpperCase() !== "Z" && (n -= +e[8].slice(0, 3)), new Date(Date.UTC(+e[1], +(e[2] || 1) - 1, +e[3] || 1, n, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0));
  51910. } else
  51911. return new Date(+e[1], +(e[2] || 1) - 1, +e[3] || 1, +e[4] || 0, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0);
  51912. } else if (t == null)
  51913. return /* @__PURE__ */ new Date(NaN);
  51914. return new Date(Math.round(t));
  51915. }
  51916. function Ise(t) {
  51917. return Math.pow(10, s1(t));
  51918. }
  51919. function s1(t) {
  51920. if (t === 0)
  51921. return 0;
  51922. var e = Math.floor(Math.log(t) / Math.LN10);
  51923. return t / Math.pow(10, e) >= 10 && e++, e;
  51924. }
  51925. function $5(t, e) {
  51926. var n = s1(t), r = Math.pow(10, n), i = t / r, a;
  51927. return e ? i < 1.5 ? a = 1 : i < 2.5 ? a = 2 : i < 4 ? a = 3 : i < 7 ? a = 5 : a = 10 : i < 1 ? a = 1 : i < 2 ? a = 2 : i < 3 ? a = 3 : i < 5 ? a = 5 : a = 10, t = a * r, n >= -20 ? +t.toFixed(n < 0 ? -n : 0) : t;
  51928. }
  51929. function uw(t, e) {
  51930. var n = (t.length - 1) * e + 1, r = Math.floor(n), i = +t[r - 1], a = n - r;
  51931. return a ? i + a * (t[r] - i) : i;
  51932. }
  51933. function Sk(t) {
  51934. t.sort(function(l, u) {
  51935. return s(l, u, 0) ? -1 : 1;
  51936. });
  51937. for (var e = -1 / 0, n = 1, r = 0; r < t.length; ) {
  51938. for (var i = t[r].interval, a = t[r].close, o = 0; o < 2; o++)
  51939. i[o] <= e && (i[o] = e, a[o] = o ? 1 : 1 - n), e = i[o], n = a[o];
  51940. i[0] === i[1] && a[0] * a[1] !== 1 ? t.splice(r, 1) : r++;
  51941. }
  51942. return t;
  51943. function s(l, u, c) {
  51944. return l.interval[c] < u.interval[c] || l.interval[c] === u.interval[c] && (l.close[c] - u.close[c] === (c ? -1 : 1) || !c && s(l, u, 1));
  51945. }
  51946. }
  51947. function Gl(t) {
  51948. var e = parseFloat(t);
  51949. return e == t && (e !== 0 || !Ve(t) || t.indexOf("x") <= 0) ? e : NaN;
  51950. }
  51951. function hP(t) {
  51952. return !isNaN(Gl(t));
  51953. }
  51954. function Dse() {
  51955. return Math.round(Math.random() * 9);
  51956. }
  51957. function Rse(t, e) {
  51958. return e === 0 ? t : Rse(e, t % e);
  51959. }
  51960. function FH(t, e) {
  51961. return t == null ? e : e == null ? t : t * e / Rse(t, e);
  51962. }
  51963. var qGe = "[ECharts] ", WH = {}, KGe = typeof console < "u" && console.warn && console.log;
  51964. function pP(t, e, n) {
  51965. if (KGe) {
  51966. if (n) {
  51967. if (WH[e])
  51968. return;
  51969. WH[e] = !0;
  51970. }
  51971. console[t](qGe + e);
  51972. }
  51973. }
  51974. function JGe(t, e) {
  51975. pP("log", t, e);
  51976. }
  51977. function nr(t, e) {
  51978. pP("warn", t, e);
  51979. }
  51980. function $i(t, e) {
  51981. pP("error", t, e);
  51982. }
  51983. function ss(t) {
  51984. process.env.NODE_ENV !== "production" && pP("warn", "DEPRECATED: " + t, !0);
  51985. }
  51986. function _r(t, e, n) {
  51987. process.env.NODE_ENV !== "production" && ss((n ? "[" + n + "]" : "") + (t + " is deprecated, use " + e + " instead."));
  51988. }
  51989. function fa() {
  51990. for (var t = [], e = 0; e < arguments.length; e++)
  51991. t[e] = arguments[e];
  51992. var n = "";
  51993. if (process.env.NODE_ENV !== "production") {
  51994. var r = function(i) {
  51995. return i === void 0 ? "undefined" : i === 1 / 0 ? "Infinity" : i === -1 / 0 ? "-Infinity" : mf(i) ? "NaN" : i instanceof Date ? "Date(" + i.toISOString() + ")" : qe(i) ? "function () { ... }" : y5(i) ? i + "" : null;
  51996. };
  51997. n = Ce(t, function(i) {
  51998. if (Ve(i))
  51999. return i;
  52000. var a = r(i);
  52001. if (a != null)
  52002. return a;
  52003. if (typeof JSON < "u" && JSON.stringify)
  52004. try {
  52005. return JSON.stringify(i, function(o, s) {
  52006. var l = r(s);
  52007. return l ?? s;
  52008. });
  52009. } catch {
  52010. return "?";
  52011. }
  52012. else
  52013. return "?";
  52014. }).join(" ");
  52015. }
  52016. return n;
  52017. }
  52018. function fn(t) {
  52019. throw new Error(t);
  52020. }
  52021. function QH(t, e, n) {
  52022. return (e - t) * n + t;
  52023. }
  52024. var kse = "series\0", Lse = "\0_ec_\0";
  52025. function Cn(t) {
  52026. return t instanceof Array ? t : t == null ? [] : [t];
  52027. }
  52028. function Hh(t, e, n) {
  52029. if (t) {
  52030. t[e] = t[e] || {}, t.emphasis = t.emphasis || {}, t.emphasis[e] = t.emphasis[e] || {};
  52031. for (var r = 0, i = n.length; r < i; r++) {
  52032. var a = n[r];
  52033. !t.emphasis[e].hasOwnProperty(a) && t[e].hasOwnProperty(a) && (t.emphasis[e][a] = t[e][a]);
  52034. }
  52035. }
  52036. }
  52037. var HH = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "rich", "tag", "color", "textBorderColor", "textBorderWidth", "width", "height", "lineHeight", "align", "verticalAlign", "baseline", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY", "backgroundColor", "borderColor", "borderWidth", "borderRadius", "padding"];
  52038. function ym(t) {
  52039. return nt(t) && !Se(t) && !(t instanceof Date) ? t.value : t;
  52040. }
  52041. function eje(t) {
  52042. return nt(t) && !(t instanceof Array);
  52043. }
  52044. function Nse(t, e, n) {
  52045. var r = n === "normalMerge", i = n === "replaceMerge", a = n === "replaceAll";
  52046. t = t || [], e = (e || []).slice();
  52047. var o = Ze();
  52048. F(e, function(l, u) {
  52049. if (!nt(l)) {
  52050. e[u] = null;
  52051. return;
  52052. }
  52053. process.env.NODE_ENV !== "production" && (l.id != null && !jH(l.id) && GH(l.id), l.name != null && !jH(l.name) && GH(l.name));
  52054. });
  52055. var s = tje(t, o, n);
  52056. return (r || i) && nje(s, t, o, e), r && rje(s, e), r || i ? ije(s, e, i) : a && aje(s, e), oje(s), s;
  52057. }
  52058. function tje(t, e, n) {
  52059. var r = [];
  52060. if (n === "replaceAll")
  52061. return r;
  52062. for (var i = 0; i < t.length; i++) {
  52063. var a = t[i];
  52064. a && a.id != null && e.set(a.id, i), r.push({
  52065. existing: n === "replaceMerge" || Fg(a) ? null : a,
  52066. newOption: null,
  52067. keyInfo: null,
  52068. brandNew: null
  52069. });
  52070. }
  52071. return r;
  52072. }
  52073. function nje(t, e, n, r) {
  52074. F(r, function(i, a) {
  52075. if (!(!i || i.id == null)) {
  52076. var o = eb(i.id), s = n.get(o);
  52077. if (s != null) {
  52078. var l = t[s];
  52079. at(!l.newOption, 'Duplicated option on id "' + o + '".'), l.newOption = i, l.existing = e[s], r[a] = null;
  52080. }
  52081. }
  52082. });
  52083. }
  52084. function rje(t, e) {
  52085. F(e, function(n, r) {
  52086. if (!(!n || n.name == null))
  52087. for (var i = 0; i < t.length; i++) {
  52088. var a = t[i].existing;
  52089. if (!t[i].newOption && a && (a.id == null || n.id == null) && !Fg(n) && !Fg(a) && Bse("name", a, n)) {
  52090. t[i].newOption = n, e[r] = null;
  52091. return;
  52092. }
  52093. }
  52094. });
  52095. }
  52096. function ije(t, e, n) {
  52097. F(e, function(r) {
  52098. if (r) {
  52099. for (
  52100. var i, a = 0;
  52101. // Be `!resultItem` only when `nextIdx >= result.length`.
  52102. (i = t[a]) && (i.newOption || Fg(i.existing) || // In mode "replaceMerge", here no not-mapped-non-internal-existing.
  52103. i.existing && r.id != null && !Bse("id", r, i.existing));
  52104. )
  52105. a++;
  52106. i ? (i.newOption = r, i.brandNew = n) : t.push({
  52107. newOption: r,
  52108. brandNew: n,
  52109. existing: null,
  52110. keyInfo: null
  52111. }), a++;
  52112. }
  52113. });
  52114. }
  52115. function aje(t, e) {
  52116. F(e, function(n) {
  52117. t.push({
  52118. newOption: n,
  52119. brandNew: !0,
  52120. existing: null,
  52121. keyInfo: null
  52122. });
  52123. });
  52124. }
  52125. function oje(t) {
  52126. var e = Ze();
  52127. F(t, function(n) {
  52128. var r = n.existing;
  52129. r && e.set(r.id, n);
  52130. }), F(t, function(n) {
  52131. var r = n.newOption;
  52132. at(!r || r.id == null || !e.get(r.id) || e.get(r.id) === n, "id duplicates: " + (r && r.id)), r && r.id != null && e.set(r.id, n), !n.keyInfo && (n.keyInfo = {});
  52133. }), F(t, function(n, r) {
  52134. var i = n.existing, a = n.newOption, o = n.keyInfo;
  52135. if (nt(a)) {
  52136. if (o.name = a.name != null ? eb(a.name) : i ? i.name : kse + r, i)
  52137. o.id = eb(i.id);
  52138. else if (a.id != null)
  52139. o.id = eb(a.id);
  52140. else {
  52141. var s = 0;
  52142. do
  52143. o.id = "\0" + o.name + "\0" + s++;
  52144. while (e.get(o.id));
  52145. }
  52146. e.set(o.id, n);
  52147. }
  52148. });
  52149. }
  52150. function Bse(t, e, n) {
  52151. var r = Br(e[t], null), i = Br(n[t], null);
  52152. return r != null && i != null && r === i;
  52153. }
  52154. function eb(t) {
  52155. if (process.env.NODE_ENV !== "production" && t == null)
  52156. throw new Error();
  52157. return Br(t, "");
  52158. }
  52159. function Br(t, e) {
  52160. return t == null ? e : Ve(t) ? t : Kt(t) || zb(t) ? t + "" : e;
  52161. }
  52162. function GH(t) {
  52163. process.env.NODE_ENV !== "production" && nr("`" + t + "` is invalid id or name. Must be a string or number.");
  52164. }
  52165. function jH(t) {
  52166. return zb(t) || hP(t);
  52167. }
  52168. function A5(t) {
  52169. var e = t.name;
  52170. return !!(e && e.indexOf(kse));
  52171. }
  52172. function Fg(t) {
  52173. return t && t.id != null && eb(t.id).indexOf(Lse) === 0;
  52174. }
  52175. function sje(t) {
  52176. return Lse + t;
  52177. }
  52178. function lje(t, e, n) {
  52179. F(t, function(r) {
  52180. var i = r.newOption;
  52181. nt(i) && (r.keyInfo.mainType = e, r.keyInfo.subType = uje(e, i, r.existing, n));
  52182. });
  52183. }
  52184. function uje(t, e, n, r) {
  52185. var i = e.type ? e.type : n ? n.subType : r.determineSubType(t, e);
  52186. return i;
  52187. }
  52188. function cje(t, e) {
  52189. var n = {}, r = {};
  52190. return i(t || [], n), i(e || [], r, n), [a(n), a(r)];
  52191. function i(o, s, l) {
  52192. for (var u = 0, c = o.length; u < c; u++) {
  52193. var f = Br(o[u].seriesId, null);
  52194. if (f == null)
  52195. return;
  52196. for (var d = Cn(o[u].dataIndex), h = l && l[f], p = 0, v = d.length; p < v; p++) {
  52197. var g = d[p];
  52198. h && h[g] ? h[g] = null : (s[f] || (s[f] = {}))[g] = 1;
  52199. }
  52200. }
  52201. }
  52202. function a(o, s) {
  52203. var l = [];
  52204. for (var u in o)
  52205. if (o.hasOwnProperty(u) && o[u] != null)
  52206. if (s)
  52207. l.push(+u);
  52208. else {
  52209. var c = a(o[u], !0);
  52210. c.length && l.push({
  52211. seriesId: u,
  52212. dataIndex: c
  52213. });
  52214. }
  52215. return l;
  52216. }
  52217. }
  52218. function Gh(t, e) {
  52219. if (e.dataIndexInside != null)
  52220. return e.dataIndexInside;
  52221. if (e.dataIndex != null)
  52222. return Se(e.dataIndex) ? Ce(e.dataIndex, function(n) {
  52223. return t.indexOfRawIndex(n);
  52224. }) : t.indexOfRawIndex(e.dataIndex);
  52225. if (e.name != null)
  52226. return Se(e.name) ? Ce(e.name, function(n) {
  52227. return t.indexOfName(n);
  52228. }) : t.indexOfName(e.name);
  52229. }
  52230. function Ut() {
  52231. var t = "__ec_inner_" + fje++;
  52232. return function(e) {
  52233. return e[t] || (e[t] = {});
  52234. };
  52235. }
  52236. var fje = Dse();
  52237. function tb(t, e, n) {
  52238. var r = E5(e, n), i = r.mainTypeSpecified, a = r.queryOptionMap, o = r.others, s = o, l = n ? n.defaultMainType : null;
  52239. return !i && l && a.set(l, {}), a.each(function(u, c) {
  52240. var f = l1(t, c, u, {
  52241. useDefault: l === c,
  52242. enableAll: n && n.enableAll != null ? n.enableAll : !0,
  52243. enableNone: n && n.enableNone != null ? n.enableNone : !0
  52244. });
  52245. s[c + "Models"] = f.models, s[c + "Model"] = f.models[0];
  52246. }), s;
  52247. }
  52248. function E5(t, e) {
  52249. var n;
  52250. if (Ve(t)) {
  52251. var r = {};
  52252. r[t + "Index"] = 0, n = r;
  52253. } else
  52254. n = t;
  52255. var i = Ze(), a = {}, o = !1;
  52256. return F(n, function(s, l) {
  52257. if (l === "dataIndex" || l === "dataIndexInside") {
  52258. a[l] = s;
  52259. return;
  52260. }
  52261. var u = l.match(/^(\w+)(Index|Id|Name)$/) || [], c = u[1], f = (u[2] || "").toLowerCase();
  52262. if (!(!c || !f || e && e.includeMainTypes && St(e.includeMainTypes, c) < 0)) {
  52263. o = o || !!c;
  52264. var d = i.get(c) || i.set(c, {});
  52265. d[f] = s;
  52266. }
  52267. }), {
  52268. mainTypeSpecified: o,
  52269. queryOptionMap: i,
  52270. others: a
  52271. };
  52272. }
  52273. var Er = {
  52274. useDefault: !0,
  52275. enableAll: !1,
  52276. enableNone: !1
  52277. }, dje = {
  52278. useDefault: !1,
  52279. enableAll: !0,
  52280. enableNone: !0
  52281. };
  52282. function l1(t, e, n, r) {
  52283. r = r || Er;
  52284. var i = n.index, a = n.id, o = n.name, s = {
  52285. models: null,
  52286. specified: i != null || a != null || o != null
  52287. };
  52288. if (!s.specified) {
  52289. var l = void 0;
  52290. return s.models = r.useDefault && (l = t.getComponent(e)) ? [l] : [], s;
  52291. }
  52292. return i === "none" || i === !1 ? (at(r.enableNone, '`"none"` or `false` is not a valid value on index option.'), s.models = [], s) : (i === "all" && (at(r.enableAll, '`"all"` is not a valid value on index option.'), i = a = o = null), s.models = t.queryComponents({
  52293. mainType: e,
  52294. index: i,
  52295. id: a,
  52296. name: o
  52297. }), s);
  52298. }
  52299. function zse(t, e, n) {
  52300. t.setAttribute ? t.setAttribute(e, n) : t[e] = n;
  52301. }
  52302. function hje(t, e) {
  52303. return t.getAttribute ? t.getAttribute(e) : t[e];
  52304. }
  52305. function pje(t) {
  52306. return t === "auto" ? Gt.domSupported ? "html" : "richText" : t || "html";
  52307. }
  52308. function xk(t, e) {
  52309. var n = Ze(), r = [];
  52310. return F(t, function(i) {
  52311. var a = e(i);
  52312. (n.get(a) || (r.push(a), n.set(a, []))).push(i);
  52313. }), {
  52314. keys: r,
  52315. buckets: n
  52316. };
  52317. }
  52318. function Vse(t, e, n, r, i) {
  52319. var a = e == null || e === "auto";
  52320. if (r == null)
  52321. return r;
  52322. if (Kt(r)) {
  52323. var o = QH(n || 0, r, i);
  52324. return sr(o, a ? Math.max(Ms(n || 0), Ms(r)) : e);
  52325. } else {
  52326. if (Ve(r))
  52327. return i < 1 ? n : r;
  52328. for (var s = [], l = n, u = r, c = Math.max(l ? l.length : 0, u.length), f = 0; f < c; ++f) {
  52329. var d = t.getDimensionInfo(f);
  52330. if (d && d.type === "ordinal")
  52331. s[f] = (i < 1 && l ? l : u)[f];
  52332. else {
  52333. var h = l && l[f] ? l[f] : 0, p = u[f], o = QH(h, p, i);
  52334. s[f] = sr(o, a ? Math.max(Ms(h), Ms(p)) : e);
  52335. }
  52336. }
  52337. return s;
  52338. }
  52339. }
  52340. var vje = ".", pd = "___EC__COMPONENT__CONTAINER___", Fse = "___EC__EXTENDED_CLASS___";
  52341. function $l(t) {
  52342. var e = {
  52343. main: "",
  52344. sub: ""
  52345. };
  52346. if (t) {
  52347. var n = t.split(vje);
  52348. e.main = n[0] || "", e.sub = n[1] || "";
  52349. }
  52350. return e;
  52351. }
  52352. function gje(t) {
  52353. at(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t), 'componentType "' + t + '" illegal');
  52354. }
  52355. function mje(t) {
  52356. return !!(t && t[Fse]);
  52357. }
  52358. function M5(t, e) {
  52359. t.$constructor = t, t.extend = function(n) {
  52360. process.env.NODE_ENV !== "production" && F(e, function(a) {
  52361. n[a] || console.warn("Method `" + a + "` should be implemented" + (n.type ? " in " + n.type : "") + ".");
  52362. });
  52363. var r = this, i;
  52364. return yje(r) ? i = /** @class */
  52365. function(a) {
  52366. le(o, a);
  52367. function o() {
  52368. return a.apply(this, arguments) || this;
  52369. }
  52370. return o;
  52371. }(r) : (i = function() {
  52372. (n.$constructor || r).apply(this, arguments);
  52373. }, m5(i, this)), _e(i.prototype, n), i[Fse] = !0, i.extend = this.extend, i.superCall = Oje, i.superApply = Sje, i.superClass = r, i;
  52374. };
  52375. }
  52376. function yje(t) {
  52377. return qe(t) && /^class\s/.test(Function.prototype.toString.call(t));
  52378. }
  52379. function Wse(t, e) {
  52380. t.extend = e.extend;
  52381. }
  52382. var bje = Math.round(Math.random() * 10);
  52383. function _je(t) {
  52384. var e = ["__\0is_clz", bje++].join("_");
  52385. t.prototype[e] = !0, process.env.NODE_ENV !== "production" && at(!t.isInstance, 'The method "is" can not be defined.'), t.isInstance = function(n) {
  52386. return !!(n && n[e]);
  52387. };
  52388. }
  52389. function Oje(t, e) {
  52390. for (var n = [], r = 2; r < arguments.length; r++)
  52391. n[r - 2] = arguments[r];
  52392. return this.superClass.prototype[e].apply(t, n);
  52393. }
  52394. function Sje(t, e, n) {
  52395. return this.superClass.prototype[e].apply(t, n);
  52396. }
  52397. function vP(t) {
  52398. var e = {};
  52399. t.registerClass = function(r) {
  52400. var i = r.type || r.prototype.type;
  52401. if (i) {
  52402. gje(i), r.prototype.type = i;
  52403. var a = $l(i);
  52404. if (!a.sub)
  52405. process.env.NODE_ENV !== "production" && e[a.main] && console.warn(a.main + " exists."), e[a.main] = r;
  52406. else if (a.sub !== pd) {
  52407. var o = n(a);
  52408. o[a.sub] = r;
  52409. }
  52410. }
  52411. return r;
  52412. }, t.getClass = function(r, i, a) {
  52413. var o = e[r];
  52414. if (o && o[pd] && (o = i ? o[i] : null), a && !o)
  52415. throw new Error(i ? "Component " + r + "." + (i || "") + " is used but not imported." : r + ".type should be specified.");
  52416. return o;
  52417. }, t.getClassesByMainType = function(r) {
  52418. var i = $l(r), a = [], o = e[i.main];
  52419. return o && o[pd] ? F(o, function(s, l) {
  52420. l !== pd && a.push(s);
  52421. }) : a.push(o), a;
  52422. }, t.hasClass = function(r) {
  52423. var i = $l(r);
  52424. return !!e[i.main];
  52425. }, t.getAllClassMainTypes = function() {
  52426. var r = [];
  52427. return F(e, function(i, a) {
  52428. r.push(a);
  52429. }), r;
  52430. }, t.hasSubTypes = function(r) {
  52431. var i = $l(r), a = e[i.main];
  52432. return a && a[pd];
  52433. };
  52434. function n(r) {
  52435. var i = e[r.main];
  52436. return (!i || !i[pd]) && (i = e[r.main] = {}, i[pd] = !0), i;
  52437. }
  52438. }
  52439. function jh(t, e) {
  52440. for (var n = 0; n < t.length; n++)
  52441. t[n][1] || (t[n][1] = t[n][0]);
  52442. return e = e || !1, function(r, i, a) {
  52443. for (var o = {}, s = 0; s < t.length; s++) {
  52444. var l = t[s][1];
  52445. if (!(i && St(i, l) >= 0 || a && St(a, l) < 0)) {
  52446. var u = r.getShallow(l, e);
  52447. u != null && (o[t[s][0]] = u);
  52448. }
  52449. }
  52450. return o;
  52451. };
  52452. }
  52453. var xje = [
  52454. ["fill", "color"],
  52455. ["shadowBlur"],
  52456. ["shadowOffsetX"],
  52457. ["shadowOffsetY"],
  52458. ["opacity"],
  52459. ["shadowColor"]
  52460. // Option decal is in `DecalObject` but style.decal is in `PatternObject`.
  52461. // So do not transfer decal directly.
  52462. ], wje = jh(xje), Cje = (
  52463. /** @class */
  52464. function() {
  52465. function t() {
  52466. }
  52467. return t.prototype.getAreaStyle = function(e, n) {
  52468. return wje(this, e, n);
  52469. }, t;
  52470. }()
  52471. ), wk = new a1(50);
  52472. function Tje(t) {
  52473. if (typeof t == "string") {
  52474. var e = wk.get(t);
  52475. return e && e.image;
  52476. } else
  52477. return t;
  52478. }
  52479. function I5(t, e, n, r, i) {
  52480. if (t)
  52481. if (typeof t == "string") {
  52482. if (e && e.__zrImageSrc === t || !n)
  52483. return e;
  52484. var a = wk.get(t), o = { hostEl: n, cb: r, cbPayload: i };
  52485. return a ? (e = a.image, !gP(e) && a.pending.push(o)) : (e = Hs.loadImage(t, ZH, ZH), e.__zrImageSrc = t, wk.put(t, e.__cachedImgObj = {
  52486. image: e,
  52487. pending: [o]
  52488. })), e;
  52489. } else
  52490. return t;
  52491. else return e;
  52492. }
  52493. function ZH() {
  52494. var t = this.__cachedImgObj;
  52495. this.onload = this.onerror = this.__cachedImgObj = null;
  52496. for (var e = 0; e < t.pending.length; e++) {
  52497. var n = t.pending[e], r = n.cb;
  52498. r && r(this, n.cbPayload), n.hostEl.dirty();
  52499. }
  52500. t.pending.length = 0;
  52501. }
  52502. function gP(t) {
  52503. return t && t.width && t.height;
  52504. }
  52505. var ZE = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
  52506. function Qse(t, e, n, r, i) {
  52507. if (!e)
  52508. return "";
  52509. var a = (t + "").split(`
  52510. `);
  52511. i = Hse(e, n, r, i);
  52512. for (var o = 0, s = a.length; o < s; o++)
  52513. a[o] = Gse(a[o], i);
  52514. return a.join(`
  52515. `);
  52516. }
  52517. function Hse(t, e, n, r) {
  52518. r = r || {};
  52519. var i = _e({}, r);
  52520. i.font = e, n = dt(n, "..."), i.maxIterations = dt(r.maxIterations, 2);
  52521. var a = i.minChar = dt(r.minChar, 0);
  52522. i.cnCharWidth = fo("国", e);
  52523. var o = i.ascCharWidth = fo("a", e);
  52524. i.placeholder = dt(r.placeholder, "");
  52525. for (var s = t = Math.max(0, t - 1), l = 0; l < a && s >= o; l++)
  52526. s -= o;
  52527. var u = fo(n, e);
  52528. return u > s && (n = "", u = 0), s = t - u, i.ellipsis = n, i.ellipsisWidth = u, i.contentWidth = s, i.containerWidth = t, i;
  52529. }
  52530. function Gse(t, e) {
  52531. var n = e.containerWidth, r = e.font, i = e.contentWidth;
  52532. if (!n)
  52533. return "";
  52534. var a = fo(t, r);
  52535. if (a <= n)
  52536. return t;
  52537. for (var o = 0; ; o++) {
  52538. if (a <= i || o >= e.maxIterations) {
  52539. t += e.ellipsis;
  52540. break;
  52541. }
  52542. var s = o === 0 ? Pje(t, i, e.ascCharWidth, e.cnCharWidth) : a > 0 ? Math.floor(t.length * i / a) : 0;
  52543. t = t.substr(0, s), a = fo(t, r);
  52544. }
  52545. return t === "" && (t = e.placeholder), t;
  52546. }
  52547. function Pje(t, e, n, r) {
  52548. for (var i = 0, a = 0, o = t.length; a < o && i < e; a++) {
  52549. var s = t.charCodeAt(a);
  52550. i += 0 <= s && s <= 127 ? n : r;
  52551. }
  52552. return a;
  52553. }
  52554. function $je(t, e) {
  52555. t != null && (t += "");
  52556. var n = e.overflow, r = e.padding, i = e.font, a = n === "truncate", o = fP(i), s = dt(e.lineHeight, o), l = !!e.backgroundColor, u = e.lineOverflow === "truncate", c = e.width, f;
  52557. c != null && (n === "break" || n === "breakAll") ? f = t ? jse(t, e.font, c, n === "breakAll", 0).lines : [] : f = t ? t.split(`
  52558. `) : [];
  52559. var d = f.length * s, h = dt(e.height, d);
  52560. if (d > h && u) {
  52561. var p = Math.floor(h / s);
  52562. f = f.slice(0, p);
  52563. }
  52564. if (t && a && c != null)
  52565. for (var v = Hse(c, i, e.ellipsis, {
  52566. minChar: e.truncateMinChar,
  52567. placeholder: e.placeholder
  52568. }), g = 0; g < f.length; g++)
  52569. f[g] = Gse(f[g], v);
  52570. for (var m = h, y = 0, g = 0; g < f.length; g++)
  52571. y = Math.max(fo(f[g], i), y);
  52572. c == null && (c = y);
  52573. var _ = y;
  52574. return r && (m += r[0] + r[2], _ += r[1] + r[3], c += r[1] + r[3]), l && (_ = c), {
  52575. lines: f,
  52576. height: h,
  52577. outerWidth: _,
  52578. outerHeight: m,
  52579. lineHeight: s,
  52580. calculatedLineHeight: o,
  52581. contentWidth: y,
  52582. contentHeight: d,
  52583. width: c
  52584. };
  52585. }
  52586. var Aje = /* @__PURE__ */ function() {
  52587. function t() {
  52588. }
  52589. return t;
  52590. }(), UH = /* @__PURE__ */ function() {
  52591. function t(e) {
  52592. this.tokens = [], e && (this.tokens = e);
  52593. }
  52594. return t;
  52595. }(), Eje = /* @__PURE__ */ function() {
  52596. function t() {
  52597. this.width = 0, this.height = 0, this.contentWidth = 0, this.contentHeight = 0, this.outerWidth = 0, this.outerHeight = 0, this.lines = [];
  52598. }
  52599. return t;
  52600. }();
  52601. function Mje(t, e) {
  52602. var n = new Eje();
  52603. if (t != null && (t += ""), !t)
  52604. return n;
  52605. for (var r = e.width, i = e.height, a = e.overflow, o = (a === "break" || a === "breakAll") && r != null ? { width: r, accumWidth: 0, breakAll: a === "breakAll" } : null, s = ZE.lastIndex = 0, l; (l = ZE.exec(t)) != null; ) {
  52606. var u = l.index;
  52607. u > s && UE(n, t.substring(s, u), e, o), UE(n, l[2], e, o, l[1]), s = ZE.lastIndex;
  52608. }
  52609. s < t.length && UE(n, t.substring(s, t.length), e, o);
  52610. var c = [], f = 0, d = 0, h = e.padding, p = a === "truncate", v = e.lineOverflow === "truncate";
  52611. function g(W, H, U) {
  52612. W.width = H, W.lineHeight = U, f += U, d = Math.max(d, H);
  52613. }
  52614. e: for (var m = 0; m < n.lines.length; m++) {
  52615. for (var y = n.lines[m], _ = 0, O = 0, S = 0; S < y.tokens.length; S++) {
  52616. var x = y.tokens[S], C = x.styleName && e.rich[x.styleName] || {}, P = x.textPadding = C.padding, $ = P ? P[1] + P[3] : 0, T = x.font = C.font || e.font;
  52617. x.contentHeight = fP(T);
  52618. var E = dt(C.height, x.contentHeight);
  52619. if (x.innerHeight = E, P && (E += P[0] + P[2]), x.height = E, x.lineHeight = co(C.lineHeight, e.lineHeight, E), x.align = C && C.align || e.align, x.verticalAlign = C && C.verticalAlign || "middle", v && i != null && f + x.lineHeight > i) {
  52620. S > 0 ? (y.tokens = y.tokens.slice(0, S), g(y, O, _), n.lines = n.lines.slice(0, m + 1)) : n.lines = n.lines.slice(0, m);
  52621. break e;
  52622. }
  52623. var M = C.width, R = M == null || M === "auto";
  52624. if (typeof M == "string" && M.charAt(M.length - 1) === "%")
  52625. x.percentWidth = M, c.push(x), x.contentWidth = fo(x.text, T);
  52626. else {
  52627. if (R) {
  52628. var N = C.backgroundColor, I = N && N.image;
  52629. I && (I = Tje(I), gP(I) && (x.width = Math.max(x.width, I.width * E / I.height)));
  52630. }
  52631. var B = p && r != null ? r - O : null;
  52632. B != null && B < x.width ? !R || B < $ ? (x.text = "", x.width = x.contentWidth = 0) : (x.text = Qse(x.text, B - $, T, e.ellipsis, { minChar: e.truncateMinChar }), x.width = x.contentWidth = fo(x.text, T)) : x.contentWidth = fo(x.text, T);
  52633. }
  52634. x.width += $, O += x.width, C && (_ = Math.max(_, x.lineHeight));
  52635. }
  52636. g(y, O, _);
  52637. }
  52638. n.outerWidth = n.width = dt(r, d), n.outerHeight = n.height = dt(i, f), n.contentHeight = f, n.contentWidth = d, h && (n.outerWidth += h[1] + h[3], n.outerHeight += h[0] + h[2]);
  52639. for (var m = 0; m < c.length; m++) {
  52640. var x = c[m], Q = x.percentWidth;
  52641. x.width = parseInt(Q, 10) / 100 * n.width;
  52642. }
  52643. return n;
  52644. }
  52645. function UE(t, e, n, r, i) {
  52646. var a = e === "", o = i && n.rich[i] || {}, s = t.lines, l = o.font || n.font, u = !1, c, f;
  52647. if (r) {
  52648. var d = o.padding, h = d ? d[1] + d[3] : 0;
  52649. if (o.width != null && o.width !== "auto") {
  52650. var p = js(o.width, r.width) + h;
  52651. s.length > 0 && p + r.accumWidth > r.width && (c = e.split(`
  52652. `), u = !0), r.accumWidth = p;
  52653. } else {
  52654. var v = jse(e, l, r.width, r.breakAll, r.accumWidth);
  52655. r.accumWidth = v.accumWidth + h, f = v.linesWidths, c = v.lines;
  52656. }
  52657. } else
  52658. c = e.split(`
  52659. `);
  52660. for (var g = 0; g < c.length; g++) {
  52661. var m = c[g], y = new Aje();
  52662. if (y.styleName = i, y.text = m, y.isLineHolder = !m && !a, typeof o.width == "number" ? y.width = o.width : y.width = f ? f[g] : fo(m, l), !g && !u) {
  52663. var _ = (s[s.length - 1] || (s[0] = new UH())).tokens, O = _.length;
  52664. O === 1 && _[0].isLineHolder ? _[0] = y : (m || !O || a) && _.push(y);
  52665. } else
  52666. s.push(new UH([y]));
  52667. }
  52668. }
  52669. function Ije(t) {
  52670. var e = t.charCodeAt(0);
  52671. return e >= 32 && e <= 591 || e >= 880 && e <= 4351 || e >= 4608 && e <= 5119 || e >= 7680 && e <= 8303;
  52672. }
  52673. var Dje = os(",&?/;] ".split(""), function(t, e) {
  52674. return t[e] = !0, t;
  52675. }, {});
  52676. function Rje(t) {
  52677. return Ije(t) ? !!Dje[t] : !0;
  52678. }
  52679. function jse(t, e, n, r, i) {
  52680. for (var a = [], o = [], s = "", l = "", u = 0, c = 0, f = 0; f < t.length; f++) {
  52681. var d = t.charAt(f);
  52682. if (d === `
  52683. `) {
  52684. l && (s += l, c += u), a.push(s), o.push(c), s = "", l = "", u = 0, c = 0;
  52685. continue;
  52686. }
  52687. var h = fo(d, e), p = r ? !1 : !Rje(d);
  52688. if (a.length ? c + h > n : i + c + h > n) {
  52689. c ? (s || l) && (p ? (s || (s = l, l = "", u = 0, c = u), a.push(s), o.push(c - u), l += d, u += h, s = "", c = u) : (l && (s += l, l = "", u = 0), a.push(s), o.push(c), s = d, c = h)) : p ? (a.push(l), o.push(u), l = d, u = h) : (a.push(d), o.push(h));
  52690. continue;
  52691. }
  52692. c += h, p ? (l += d, u += h) : (l && (s += l, l = "", u = 0), s += d);
  52693. }
  52694. return !a.length && !s && (s = t, l = "", u = 0), l && (s += l), s && (a.push(s), o.push(c)), a.length === 1 && (c += i), {
  52695. accumWidth: c,
  52696. lines: a,
  52697. linesWidths: o
  52698. };
  52699. }
  52700. var Ck = "__zr_style_" + Math.round(Math.random() * 10), wh = {
  52701. shadowBlur: 0,
  52702. shadowOffsetX: 0,
  52703. shadowOffsetY: 0,
  52704. shadowColor: "#000",
  52705. opacity: 1,
  52706. blend: "source-over"
  52707. }, mP = {
  52708. style: {
  52709. shadowBlur: !0,
  52710. shadowOffsetX: !0,
  52711. shadowOffsetY: !0,
  52712. shadowColor: !0,
  52713. opacity: !0
  52714. }
  52715. };
  52716. wh[Ck] = !0;
  52717. var XH = ["z", "z2", "invisible"], kje = ["invisible"], Lje = function(t) {
  52718. le(e, t);
  52719. function e(n) {
  52720. return t.call(this, n) || this;
  52721. }
  52722. return e.prototype._init = function(n) {
  52723. for (var r = kt(n), i = 0; i < r.length; i++) {
  52724. var a = r[i];
  52725. a === "style" ? this.useStyle(n[a]) : t.prototype.attrKV.call(this, a, n[a]);
  52726. }
  52727. this.style || this.useStyle({});
  52728. }, e.prototype.beforeBrush = function() {
  52729. }, e.prototype.afterBrush = function() {
  52730. }, e.prototype.innerBeforeBrush = function() {
  52731. }, e.prototype.innerAfterBrush = function() {
  52732. }, e.prototype.shouldBePainted = function(n, r, i, a) {
  52733. var o = this.transform;
  52734. if (this.ignore || this.invisible || this.style.opacity === 0 || this.culling && Nje(this, n, r) || o && !o[0] && !o[3])
  52735. return !1;
  52736. if (i && this.__clipPaths) {
  52737. for (var s = 0; s < this.__clipPaths.length; ++s)
  52738. if (this.__clipPaths[s].isZeroArea())
  52739. return !1;
  52740. }
  52741. if (a && this.parent)
  52742. for (var l = this.parent; l; ) {
  52743. if (l.ignore)
  52744. return !1;
  52745. l = l.parent;
  52746. }
  52747. return !0;
  52748. }, e.prototype.contain = function(n, r) {
  52749. return this.rectContain(n, r);
  52750. }, e.prototype.traverse = function(n, r) {
  52751. n.call(r, this);
  52752. }, e.prototype.rectContain = function(n, r) {
  52753. var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
  52754. return a.contain(i[0], i[1]);
  52755. }, e.prototype.getPaintRect = function() {
  52756. var n = this._paintRect;
  52757. if (!this._paintRect || this.__dirty) {
  52758. var r = this.transform, i = this.getBoundingRect(), a = this.style, o = a.shadowBlur || 0, s = a.shadowOffsetX || 0, l = a.shadowOffsetY || 0;
  52759. n = this._paintRect || (this._paintRect = new bt(0, 0, 0, 0)), r ? bt.applyTransform(n, i, r) : n.copy(i), (o || s || l) && (n.width += o * 2 + Math.abs(s), n.height += o * 2 + Math.abs(l), n.x = Math.min(n.x, n.x + s - o), n.y = Math.min(n.y, n.y + l - o));
  52760. var u = this.dirtyRectTolerance;
  52761. n.isZero() || (n.x = Math.floor(n.x - u), n.y = Math.floor(n.y - u), n.width = Math.ceil(n.width + 1 + u * 2), n.height = Math.ceil(n.height + 1 + u * 2));
  52762. }
  52763. return n;
  52764. }, e.prototype.setPrevPaintRect = function(n) {
  52765. n ? (this._prevPaintRect = this._prevPaintRect || new bt(0, 0, 0, 0), this._prevPaintRect.copy(n)) : this._prevPaintRect = null;
  52766. }, e.prototype.getPrevPaintRect = function() {
  52767. return this._prevPaintRect;
  52768. }, e.prototype.animateStyle = function(n) {
  52769. return this.animate("style", n);
  52770. }, e.prototype.updateDuringAnimation = function(n) {
  52771. n === "style" ? this.dirtyStyle() : this.markRedraw();
  52772. }, e.prototype.attrKV = function(n, r) {
  52773. n !== "style" ? t.prototype.attrKV.call(this, n, r) : this.style ? this.setStyle(r) : this.useStyle(r);
  52774. }, e.prototype.setStyle = function(n, r) {
  52775. return typeof n == "string" ? this.style[n] = r : _e(this.style, n), this.dirtyStyle(), this;
  52776. }, e.prototype.dirtyStyle = function(n) {
  52777. n || this.markRedraw(), this.__dirty |= hy, this._rect && (this._rect = null);
  52778. }, e.prototype.dirty = function() {
  52779. this.dirtyStyle();
  52780. }, e.prototype.styleChanged = function() {
  52781. return !!(this.__dirty & hy);
  52782. }, e.prototype.styleUpdated = function() {
  52783. this.__dirty &= ~hy;
  52784. }, e.prototype.createStyle = function(n) {
  52785. return r1(wh, n);
  52786. }, e.prototype.useStyle = function(n) {
  52787. n[Ck] || (n = this.createStyle(n)), this.__inHover ? this.__hoverStyle = n : this.style = n, this.dirtyStyle();
  52788. }, e.prototype.isStyleObject = function(n) {
  52789. return n[Ck];
  52790. }, e.prototype._innerSaveToNormal = function(n) {
  52791. t.prototype._innerSaveToNormal.call(this, n);
  52792. var r = this._normalState;
  52793. n.style && !r.style && (r.style = this._mergeStyle(this.createStyle(), this.style)), this._savePrimaryToNormal(n, r, XH);
  52794. }, e.prototype._applyStateObj = function(n, r, i, a, o, s) {
  52795. t.prototype._applyStateObj.call(this, n, r, i, a, o, s);
  52796. var l = !(r && a), u;
  52797. if (r && r.style ? o ? a ? u = r.style : (u = this._mergeStyle(this.createStyle(), i.style), this._mergeStyle(u, r.style)) : (u = this._mergeStyle(this.createStyle(), a ? this.style : i.style), this._mergeStyle(u, r.style)) : l && (u = i.style), u)
  52798. if (o) {
  52799. var c = this.style;
  52800. if (this.style = this.createStyle(l ? {} : c), l)
  52801. for (var f = kt(c), d = 0; d < f.length; d++) {
  52802. var h = f[d];
  52803. h in u && (u[h] = u[h], this.style[h] = c[h]);
  52804. }
  52805. for (var p = kt(u), d = 0; d < p.length; d++) {
  52806. var h = p[d];
  52807. this.style[h] = this.style[h];
  52808. }
  52809. this._transitionState(n, {
  52810. style: u
  52811. }, s, this.getAnimationStyleProps());
  52812. } else
  52813. this.useStyle(u);
  52814. for (var v = this.__inHover ? kje : XH, d = 0; d < v.length; d++) {
  52815. var h = v[d];
  52816. r && r[h] != null ? this[h] = r[h] : l && i[h] != null && (this[h] = i[h]);
  52817. }
  52818. }, e.prototype._mergeStates = function(n) {
  52819. for (var r = t.prototype._mergeStates.call(this, n), i, a = 0; a < n.length; a++) {
  52820. var o = n[a];
  52821. o.style && (i = i || {}, this._mergeStyle(i, o.style));
  52822. }
  52823. return i && (r.style = i), r;
  52824. }, e.prototype._mergeStyle = function(n, r) {
  52825. return _e(n, r), n;
  52826. }, e.prototype.getAnimationStyleProps = function() {
  52827. return mP;
  52828. }, e.initDefaultProps = function() {
  52829. var n = e.prototype;
  52830. n.type = "displayable", n.invisible = !1, n.z = 0, n.z2 = 0, n.zlevel = 0, n.culling = !1, n.cursor = "pointer", n.rectHover = !1, n.incremental = !1, n._rect = null, n.dirtyRectTolerance = 0, n.__dirty = to | hy;
  52831. }(), e;
  52832. }(dP), XE = new bt(0, 0, 0, 0), YE = new bt(0, 0, 0, 0);
  52833. function Nje(t, e, n) {
  52834. return XE.copy(t.getBoundingRect()), t.transform && XE.applyTransform(t.transform), YE.width = e, YE.height = n, !XE.intersect(YE);
  52835. }
  52836. const ls = Lje;
  52837. var Pa = Math.min, $a = Math.max, qE = Math.sin, KE = Math.cos, vd = Math.PI * 2, dS = kf(), hS = kf(), pS = kf();
  52838. function yP(t, e, n) {
  52839. if (t.length !== 0) {
  52840. for (var r = t[0], i = r[0], a = r[0], o = r[1], s = r[1], l = 1; l < t.length; l++)
  52841. r = t[l], i = Pa(i, r[0]), a = $a(a, r[0]), o = Pa(o, r[1]), s = $a(s, r[1]);
  52842. e[0] = i, e[1] = o, n[0] = a, n[1] = s;
  52843. }
  52844. }
  52845. function YH(t, e, n, r, i, a) {
  52846. i[0] = Pa(t, n), i[1] = Pa(e, r), a[0] = $a(t, n), a[1] = $a(e, r);
  52847. }
  52848. var qH = [], KH = [];
  52849. function Bje(t, e, n, r, i, a, o, s, l, u) {
  52850. var c = use, f = jr, d = c(t, n, i, o, qH);
  52851. l[0] = 1 / 0, l[1] = 1 / 0, u[0] = -1 / 0, u[1] = -1 / 0;
  52852. for (var h = 0; h < d; h++) {
  52853. var p = f(t, n, i, o, qH[h]);
  52854. l[0] = Pa(p, l[0]), u[0] = $a(p, u[0]);
  52855. }
  52856. d = c(e, r, a, s, KH);
  52857. for (var h = 0; h < d; h++) {
  52858. var v = f(e, r, a, s, KH[h]);
  52859. l[1] = Pa(v, l[1]), u[1] = $a(v, u[1]);
  52860. }
  52861. l[0] = Pa(t, l[0]), u[0] = $a(t, u[0]), l[0] = Pa(o, l[0]), u[0] = $a(o, u[0]), l[1] = Pa(e, l[1]), u[1] = $a(e, u[1]), l[1] = Pa(s, l[1]), u[1] = $a(s, u[1]);
  52862. }
  52863. function zje(t, e, n, r, i, a, o, s) {
  52864. var l = fse, u = ii, c = $a(Pa(l(t, n, i), 1), 0), f = $a(Pa(l(e, r, a), 1), 0), d = u(t, n, i, c), h = u(e, r, a, f);
  52865. o[0] = Pa(t, i, d), o[1] = Pa(e, a, h), s[0] = $a(t, i, d), s[1] = $a(e, a, h);
  52866. }
  52867. function Vje(t, e, n, r, i, a, o, s, l) {
  52868. var u = Cu, c = Tu, f = Math.abs(i - a);
  52869. if (f % vd < 1e-4 && f > 1e-4) {
  52870. s[0] = t - n, s[1] = e - r, l[0] = t + n, l[1] = e + r;
  52871. return;
  52872. }
  52873. if (dS[0] = KE(i) * n + t, dS[1] = qE(i) * r + e, hS[0] = KE(a) * n + t, hS[1] = qE(a) * r + e, u(s, dS, hS), c(l, dS, hS), i = i % vd, i < 0 && (i = i + vd), a = a % vd, a < 0 && (a = a + vd), i > a && !o ? a += vd : i < a && o && (i += vd), o) {
  52874. var d = a;
  52875. a = i, i = d;
  52876. }
  52877. for (var h = 0; h < a; h += Math.PI / 2)
  52878. h > i && (pS[0] = KE(h) * n + t, pS[1] = qE(h) * r + e, u(s, pS, s), c(l, pS, l));
  52879. }
  52880. var En = {
  52881. M: 1,
  52882. L: 2,
  52883. C: 3,
  52884. Q: 4,
  52885. A: 5,
  52886. Z: 6,
  52887. R: 7
  52888. }, gd = [], md = [], sl = [], bc = [], ll = [], ul = [], JE = Math.min, eM = Math.max, yd = Math.cos, bd = Math.sin, pu = Math.abs, Tk = Math.PI, Ac = Tk * 2, tM = typeof Float32Array < "u", A0 = [];
  52889. function nM(t) {
  52890. var e = Math.round(t / Tk * 1e8) / 1e8;
  52891. return e % 2 * Tk;
  52892. }
  52893. function D5(t, e) {
  52894. var n = nM(t[0]);
  52895. n < 0 && (n += Ac);
  52896. var r = n - t[0], i = t[1];
  52897. i += r, !e && i - n >= Ac ? i = n + Ac : e && n - i >= Ac ? i = n - Ac : !e && n > i ? i = n + (Ac - nM(n - i)) : e && n < i && (i = n - (Ac - nM(i - n))), t[0] = n, t[1] = i;
  52898. }
  52899. var jl = function() {
  52900. function t(e) {
  52901. this.dpr = 1, this._xi = 0, this._yi = 0, this._x0 = 0, this._y0 = 0, this._len = 0, e && (this._saveData = !1), this._saveData && (this.data = []);
  52902. }
  52903. return t.prototype.increaseVersion = function() {
  52904. this._version++;
  52905. }, t.prototype.getVersion = function() {
  52906. return this._version;
  52907. }, t.prototype.setScale = function(e, n, r) {
  52908. r = r || 0, r > 0 && (this._ux = pu(r / $C / e) || 0, this._uy = pu(r / $C / n) || 0);
  52909. }, t.prototype.setDPR = function(e) {
  52910. this.dpr = e;
  52911. }, t.prototype.setContext = function(e) {
  52912. this._ctx = e;
  52913. }, t.prototype.getContext = function() {
  52914. return this._ctx;
  52915. }, t.prototype.beginPath = function() {
  52916. return this._ctx && this._ctx.beginPath(), this.reset(), this;
  52917. }, t.prototype.reset = function() {
  52918. this._saveData && (this._len = 0), this._pathSegLen && (this._pathSegLen = null, this._pathLen = 0), this._version++;
  52919. }, t.prototype.moveTo = function(e, n) {
  52920. return this._drawPendingPt(), this.addData(En.M, e, n), this._ctx && this._ctx.moveTo(e, n), this._x0 = e, this._y0 = n, this._xi = e, this._yi = n, this;
  52921. }, t.prototype.lineTo = function(e, n) {
  52922. var r = pu(e - this._xi), i = pu(n - this._yi), a = r > this._ux || i > this._uy;
  52923. if (this.addData(En.L, e, n), this._ctx && a && this._ctx.lineTo(e, n), a)
  52924. this._xi = e, this._yi = n, this._pendingPtDist = 0;
  52925. else {
  52926. var o = r * r + i * i;
  52927. o > this._pendingPtDist && (this._pendingPtX = e, this._pendingPtY = n, this._pendingPtDist = o);
  52928. }
  52929. return this;
  52930. }, t.prototype.bezierCurveTo = function(e, n, r, i, a, o) {
  52931. return this._drawPendingPt(), this.addData(En.C, e, n, r, i, a, o), this._ctx && this._ctx.bezierCurveTo(e, n, r, i, a, o), this._xi = a, this._yi = o, this;
  52932. }, t.prototype.quadraticCurveTo = function(e, n, r, i) {
  52933. return this._drawPendingPt(), this.addData(En.Q, e, n, r, i), this._ctx && this._ctx.quadraticCurveTo(e, n, r, i), this._xi = r, this._yi = i, this;
  52934. }, t.prototype.arc = function(e, n, r, i, a, o) {
  52935. this._drawPendingPt(), A0[0] = i, A0[1] = a, D5(A0, o), i = A0[0], a = A0[1];
  52936. var s = a - i;
  52937. return this.addData(En.A, e, n, r, r, i, s, 0, o ? 0 : 1), this._ctx && this._ctx.arc(e, n, r, i, a, o), this._xi = yd(a) * r + e, this._yi = bd(a) * r + n, this;
  52938. }, t.prototype.arcTo = function(e, n, r, i, a) {
  52939. return this._drawPendingPt(), this._ctx && this._ctx.arcTo(e, n, r, i, a), this;
  52940. }, t.prototype.rect = function(e, n, r, i) {
  52941. return this._drawPendingPt(), this._ctx && this._ctx.rect(e, n, r, i), this.addData(En.R, e, n, r, i), this;
  52942. }, t.prototype.closePath = function() {
  52943. this._drawPendingPt(), this.addData(En.Z);
  52944. var e = this._ctx, n = this._x0, r = this._y0;
  52945. return e && e.closePath(), this._xi = n, this._yi = r, this;
  52946. }, t.prototype.fill = function(e) {
  52947. e && e.fill(), this.toStatic();
  52948. }, t.prototype.stroke = function(e) {
  52949. e && e.stroke(), this.toStatic();
  52950. }, t.prototype.len = function() {
  52951. return this._len;
  52952. }, t.prototype.setData = function(e) {
  52953. var n = e.length;
  52954. !(this.data && this.data.length === n) && tM && (this.data = new Float32Array(n));
  52955. for (var r = 0; r < n; r++)
  52956. this.data[r] = e[r];
  52957. this._len = n;
  52958. }, t.prototype.appendPath = function(e) {
  52959. e instanceof Array || (e = [e]);
  52960. for (var n = e.length, r = 0, i = this._len, a = 0; a < n; a++)
  52961. r += e[a].len();
  52962. tM && this.data instanceof Float32Array && (this.data = new Float32Array(i + r));
  52963. for (var a = 0; a < n; a++)
  52964. for (var o = e[a].data, s = 0; s < o.length; s++)
  52965. this.data[i++] = o[s];
  52966. this._len = i;
  52967. }, t.prototype.addData = function(e, n, r, i, a, o, s, l, u) {
  52968. if (this._saveData) {
  52969. var c = this.data;
  52970. this._len + arguments.length > c.length && (this._expandData(), c = this.data);
  52971. for (var f = 0; f < arguments.length; f++)
  52972. c[this._len++] = arguments[f];
  52973. }
  52974. }, t.prototype._drawPendingPt = function() {
  52975. this._pendingPtDist > 0 && (this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY), this._pendingPtDist = 0);
  52976. }, t.prototype._expandData = function() {
  52977. if (!(this.data instanceof Array)) {
  52978. for (var e = [], n = 0; n < this._len; n++)
  52979. e[n] = this.data[n];
  52980. this.data = e;
  52981. }
  52982. }, t.prototype.toStatic = function() {
  52983. if (this._saveData) {
  52984. this._drawPendingPt();
  52985. var e = this.data;
  52986. e instanceof Array && (e.length = this._len, tM && this._len > 11 && (this.data = new Float32Array(e)));
  52987. }
  52988. }, t.prototype.getBoundingRect = function() {
  52989. sl[0] = sl[1] = ll[0] = ll[1] = Number.MAX_VALUE, bc[0] = bc[1] = ul[0] = ul[1] = -Number.MAX_VALUE;
  52990. var e = this.data, n = 0, r = 0, i = 0, a = 0, o;
  52991. for (o = 0; o < this._len; ) {
  52992. var s = e[o++], l = o === 1;
  52993. switch (l && (n = e[o], r = e[o + 1], i = n, a = r), s) {
  52994. case En.M:
  52995. n = i = e[o++], r = a = e[o++], ll[0] = i, ll[1] = a, ul[0] = i, ul[1] = a;
  52996. break;
  52997. case En.L:
  52998. YH(n, r, e[o], e[o + 1], ll, ul), n = e[o++], r = e[o++];
  52999. break;
  53000. case En.C:
  53001. Bje(n, r, e[o++], e[o++], e[o++], e[o++], e[o], e[o + 1], ll, ul), n = e[o++], r = e[o++];
  53002. break;
  53003. case En.Q:
  53004. zje(n, r, e[o++], e[o++], e[o], e[o + 1], ll, ul), n = e[o++], r = e[o++];
  53005. break;
  53006. case En.A:
  53007. var u = e[o++], c = e[o++], f = e[o++], d = e[o++], h = e[o++], p = e[o++] + h;
  53008. o += 1;
  53009. var v = !e[o++];
  53010. l && (i = yd(h) * f + u, a = bd(h) * d + c), Vje(u, c, f, d, h, p, v, ll, ul), n = yd(p) * f + u, r = bd(p) * d + c;
  53011. break;
  53012. case En.R:
  53013. i = n = e[o++], a = r = e[o++];
  53014. var g = e[o++], m = e[o++];
  53015. YH(i, a, i + g, a + m, ll, ul);
  53016. break;
  53017. case En.Z:
  53018. n = i, r = a;
  53019. break;
  53020. }
  53021. Cu(sl, sl, ll), Tu(bc, bc, ul);
  53022. }
  53023. return o === 0 && (sl[0] = sl[1] = bc[0] = bc[1] = 0), new bt(sl[0], sl[1], bc[0] - sl[0], bc[1] - sl[1]);
  53024. }, t.prototype._calculateLength = function() {
  53025. var e = this.data, n = this._len, r = this._ux, i = this._uy, a = 0, o = 0, s = 0, l = 0;
  53026. this._pathSegLen || (this._pathSegLen = []);
  53027. for (var u = this._pathSegLen, c = 0, f = 0, d = 0; d < n; ) {
  53028. var h = e[d++], p = d === 1;
  53029. p && (a = e[d], o = e[d + 1], s = a, l = o);
  53030. var v = -1;
  53031. switch (h) {
  53032. case En.M:
  53033. a = s = e[d++], o = l = e[d++];
  53034. break;
  53035. case En.L: {
  53036. var g = e[d++], m = e[d++], y = g - a, _ = m - o;
  53037. (pu(y) > r || pu(_) > i || d === n - 1) && (v = Math.sqrt(y * y + _ * _), a = g, o = m);
  53038. break;
  53039. }
  53040. case En.C: {
  53041. var O = e[d++], S = e[d++], g = e[d++], m = e[d++], x = e[d++], C = e[d++];
  53042. v = KHe(a, o, O, S, g, m, x, C, 10), a = x, o = C;
  53043. break;
  53044. }
  53045. case En.Q: {
  53046. var O = e[d++], S = e[d++], g = e[d++], m = e[d++];
  53047. v = eGe(a, o, O, S, g, m, 10), a = g, o = m;
  53048. break;
  53049. }
  53050. case En.A:
  53051. var P = e[d++], $ = e[d++], T = e[d++], E = e[d++], M = e[d++], R = e[d++], N = R + M;
  53052. d += 1, p && (s = yd(M) * T + P, l = bd(M) * E + $), v = eM(T, E) * JE(Ac, Math.abs(R)), a = yd(N) * T + P, o = bd(N) * E + $;
  53053. break;
  53054. case En.R: {
  53055. s = a = e[d++], l = o = e[d++];
  53056. var I = e[d++], B = e[d++];
  53057. v = I * 2 + B * 2;
  53058. break;
  53059. }
  53060. case En.Z: {
  53061. var y = s - a, _ = l - o;
  53062. v = Math.sqrt(y * y + _ * _), a = s, o = l;
  53063. break;
  53064. }
  53065. }
  53066. v >= 0 && (u[f++] = v, c += v);
  53067. }
  53068. return this._pathLen = c, c;
  53069. }, t.prototype.rebuildPath = function(e, n) {
  53070. var r = this.data, i = this._ux, a = this._uy, o = this._len, s, l, u, c, f, d, h = n < 1, p, v, g = 0, m = 0, y, _ = 0, O, S;
  53071. if (!(h && (this._pathSegLen || this._calculateLength(), p = this._pathSegLen, v = this._pathLen, y = n * v, !y)))
  53072. e: for (var x = 0; x < o; ) {
  53073. var C = r[x++], P = x === 1;
  53074. switch (P && (u = r[x], c = r[x + 1], s = u, l = c), C !== En.L && _ > 0 && (e.lineTo(O, S), _ = 0), C) {
  53075. case En.M:
  53076. s = u = r[x++], l = c = r[x++], e.moveTo(u, c);
  53077. break;
  53078. case En.L: {
  53079. f = r[x++], d = r[x++];
  53080. var $ = pu(f - u), T = pu(d - c);
  53081. if ($ > i || T > a) {
  53082. if (h) {
  53083. var E = p[m++];
  53084. if (g + E > y) {
  53085. var M = (y - g) / E;
  53086. e.lineTo(u * (1 - M) + f * M, c * (1 - M) + d * M);
  53087. break e;
  53088. }
  53089. g += E;
  53090. }
  53091. e.lineTo(f, d), u = f, c = d, _ = 0;
  53092. } else {
  53093. var R = $ * $ + T * T;
  53094. R > _ && (O = f, S = d, _ = R);
  53095. }
  53096. break;
  53097. }
  53098. case En.C: {
  53099. var N = r[x++], I = r[x++], B = r[x++], Q = r[x++], W = r[x++], H = r[x++];
  53100. if (h) {
  53101. var E = p[m++];
  53102. if (g + E > y) {
  53103. var M = (y - g) / E;
  53104. yf(u, N, B, W, M, gd), yf(c, I, Q, H, M, md), e.bezierCurveTo(gd[1], md[1], gd[2], md[2], gd[3], md[3]);
  53105. break e;
  53106. }
  53107. g += E;
  53108. }
  53109. e.bezierCurveTo(N, I, B, Q, W, H), u = W, c = H;
  53110. break;
  53111. }
  53112. case En.Q: {
  53113. var N = r[x++], I = r[x++], B = r[x++], Q = r[x++];
  53114. if (h) {
  53115. var E = p[m++];
  53116. if (g + E > y) {
  53117. var M = (y - g) / E;
  53118. Qb(u, N, B, M, gd), Qb(c, I, Q, M, md), e.quadraticCurveTo(gd[1], md[1], gd[2], md[2]);
  53119. break e;
  53120. }
  53121. g += E;
  53122. }
  53123. e.quadraticCurveTo(N, I, B, Q), u = B, c = Q;
  53124. break;
  53125. }
  53126. case En.A:
  53127. var U = r[x++], j = r[x++], Y = r[x++], ne = r[x++], fe = r[x++], ue = r[x++], ye = r[x++], se = !r[x++], he = Y > ne ? Y : ne, re = pu(Y - ne) > 1e-3, q = fe + ue, K = !1;
  53128. if (h) {
  53129. var E = p[m++];
  53130. g + E > y && (q = fe + ue * (y - g) / E, K = !0), g += E;
  53131. }
  53132. if (re && e.ellipse ? e.ellipse(U, j, Y, ne, ye, fe, q, se) : e.arc(U, j, he, fe, q, se), K)
  53133. break e;
  53134. P && (s = yd(fe) * Y + U, l = bd(fe) * ne + j), u = yd(q) * Y + U, c = bd(q) * ne + j;
  53135. break;
  53136. case En.R:
  53137. s = u = r[x], l = c = r[x + 1], f = r[x++], d = r[x++];
  53138. var de = r[x++], xe = r[x++];
  53139. if (h) {
  53140. var E = p[m++];
  53141. if (g + E > y) {
  53142. var we = y - g;
  53143. e.moveTo(f, d), e.lineTo(f + JE(we, de), d), we -= de, we > 0 && e.lineTo(f + de, d + JE(we, xe)), we -= xe, we > 0 && e.lineTo(f + eM(de - we, 0), d + xe), we -= de, we > 0 && e.lineTo(f, d + eM(xe - we, 0));
  53144. break e;
  53145. }
  53146. g += E;
  53147. }
  53148. e.rect(f, d, de, xe);
  53149. break;
  53150. case En.Z:
  53151. if (h) {
  53152. var E = p[m++];
  53153. if (g + E > y) {
  53154. var M = (y - g) / E;
  53155. e.lineTo(u * (1 - M) + s * M, c * (1 - M) + l * M);
  53156. break e;
  53157. }
  53158. g += E;
  53159. }
  53160. e.closePath(), u = s, c = l;
  53161. }
  53162. }
  53163. }, t.prototype.clone = function() {
  53164. var e = new t(), n = this.data;
  53165. return e.data = n.slice ? n.slice() : Array.prototype.slice.call(n), e._len = this._len, e;
  53166. }, t.CMD = En, t.initDefaultProps = function() {
  53167. var e = t.prototype;
  53168. e._saveData = !0, e._ux = 0, e._uy = 0, e._pendingPtDist = 0, e._version = 0;
  53169. }(), t;
  53170. }();
  53171. function Mc(t, e, n, r, i, a, o) {
  53172. if (i === 0)
  53173. return !1;
  53174. var s = i, l = 0, u = t;
  53175. if (o > e + s && o > r + s || o < e - s && o < r - s || a > t + s && a > n + s || a < t - s && a < n - s)
  53176. return !1;
  53177. if (t !== n)
  53178. l = (e - r) / (t - n), u = (t * r - n * e) / (t - n);
  53179. else
  53180. return Math.abs(a - t) <= s / 2;
  53181. var c = l * a - o + u, f = c * c / (l * l + 1);
  53182. return f <= s / 2 * s / 2;
  53183. }
  53184. function Fje(t, e, n, r, i, a, o, s, l, u, c) {
  53185. if (l === 0)
  53186. return !1;
  53187. var f = l;
  53188. if (c > e + f && c > r + f && c > a + f && c > s + f || c < e - f && c < r - f && c < a - f && c < s - f || u > t + f && u > n + f && u > i + f && u > o + f || u < t - f && u < n - f && u < i - f && u < o - f)
  53189. return !1;
  53190. var d = cse(t, e, n, r, i, a, o, s, u, c, null);
  53191. return d <= f / 2;
  53192. }
  53193. function Zse(t, e, n, r, i, a, o, s, l) {
  53194. if (o === 0)
  53195. return !1;
  53196. var u = o;
  53197. if (l > e + u && l > r + u && l > a + u || l < e - u && l < r - u && l < a - u || s > t + u && s > n + u && s > i + u || s < t - u && s < n - u && s < i - u)
  53198. return !1;
  53199. var c = dse(t, e, n, r, i, a, s, l, null);
  53200. return c <= u / 2;
  53201. }
  53202. var JH = Math.PI * 2;
  53203. function oo(t) {
  53204. return t %= JH, t < 0 && (t += JH), t;
  53205. }
  53206. var E0 = Math.PI * 2;
  53207. function Wje(t, e, n, r, i, a, o, s, l) {
  53208. if (o === 0)
  53209. return !1;
  53210. var u = o;
  53211. s -= t, l -= e;
  53212. var c = Math.sqrt(s * s + l * l);
  53213. if (c - u > n || c + u < n)
  53214. return !1;
  53215. if (Math.abs(r - i) % E0 < 1e-4)
  53216. return !0;
  53217. if (a) {
  53218. var f = r;
  53219. r = oo(i), i = oo(f);
  53220. } else
  53221. r = oo(r), i = oo(i);
  53222. r > i && (i += E0);
  53223. var d = Math.atan2(l, s);
  53224. return d < 0 && (d += E0), d >= r && d <= i || d + E0 >= r && d + E0 <= i;
  53225. }
  53226. function bu(t, e, n, r, i, a) {
  53227. if (a > e && a > r || a < e && a < r || r === e)
  53228. return 0;
  53229. var o = (a - e) / (r - e), s = r < e ? 1 : -1;
  53230. (o === 1 || o === 0) && (s = r < e ? 0.5 : -0.5);
  53231. var l = o * (n - t) + t;
  53232. return l === i ? 1 / 0 : l > i ? s : 0;
  53233. }
  53234. var _c = jl.CMD, _d = Math.PI * 2, Qje = 1e-4;
  53235. function Hje(t, e) {
  53236. return Math.abs(t - e) < Qje;
  53237. }
  53238. var Ki = [-1, -1, -1], zo = [-1, -1];
  53239. function Gje() {
  53240. var t = zo[0];
  53241. zo[0] = zo[1], zo[1] = t;
  53242. }
  53243. function jje(t, e, n, r, i, a, o, s, l, u) {
  53244. if (u > e && u > r && u > a && u > s || u < e && u < r && u < a && u < s)
  53245. return 0;
  53246. var c = wC(e, r, a, s, u, Ki);
  53247. if (c === 0)
  53248. return 0;
  53249. for (var f = 0, d = -1, h = void 0, p = void 0, v = 0; v < c; v++) {
  53250. var g = Ki[v], m = g === 0 || g === 1 ? 0.5 : 1, y = jr(t, n, i, o, g);
  53251. y < l || (d < 0 && (d = use(e, r, a, s, zo), zo[1] < zo[0] && d > 1 && Gje(), h = jr(e, r, a, s, zo[0]), d > 1 && (p = jr(e, r, a, s, zo[1]))), d === 2 ? g < zo[0] ? f += h < e ? m : -m : g < zo[1] ? f += p < h ? m : -m : f += s < p ? m : -m : g < zo[0] ? f += h < e ? m : -m : f += s < h ? m : -m);
  53252. }
  53253. return f;
  53254. }
  53255. function Zje(t, e, n, r, i, a, o, s) {
  53256. if (s > e && s > r && s > a || s < e && s < r && s < a)
  53257. return 0;
  53258. var l = JHe(e, r, a, s, Ki);
  53259. if (l === 0)
  53260. return 0;
  53261. var u = fse(e, r, a);
  53262. if (u >= 0 && u <= 1) {
  53263. for (var c = 0, f = ii(e, r, a, u), d = 0; d < l; d++) {
  53264. var h = Ki[d] === 0 || Ki[d] === 1 ? 0.5 : 1, p = ii(t, n, i, Ki[d]);
  53265. p < o || (Ki[d] < u ? c += f < e ? h : -h : c += a < f ? h : -h);
  53266. }
  53267. return c;
  53268. } else {
  53269. var h = Ki[0] === 0 || Ki[0] === 1 ? 0.5 : 1, p = ii(t, n, i, Ki[0]);
  53270. return p < o ? 0 : a < e ? h : -h;
  53271. }
  53272. }
  53273. function Uje(t, e, n, r, i, a, o, s) {
  53274. if (s -= e, s > n || s < -n)
  53275. return 0;
  53276. var l = Math.sqrt(n * n - s * s);
  53277. Ki[0] = -l, Ki[1] = l;
  53278. var u = Math.abs(r - i);
  53279. if (u < 1e-4)
  53280. return 0;
  53281. if (u >= _d - 1e-4) {
  53282. r = 0, i = _d;
  53283. var c = a ? 1 : -1;
  53284. return o >= Ki[0] + t && o <= Ki[1] + t ? c : 0;
  53285. }
  53286. if (r > i) {
  53287. var f = r;
  53288. r = i, i = f;
  53289. }
  53290. r < 0 && (r += _d, i += _d);
  53291. for (var d = 0, h = 0; h < 2; h++) {
  53292. var p = Ki[h];
  53293. if (p + t > o) {
  53294. var v = Math.atan2(s, p), c = a ? 1 : -1;
  53295. v < 0 && (v = _d + v), (v >= r && v <= i || v + _d >= r && v + _d <= i) && (v > Math.PI / 2 && v < Math.PI * 1.5 && (c = -c), d += c);
  53296. }
  53297. }
  53298. return d;
  53299. }
  53300. function Use(t, e, n, r, i) {
  53301. for (var a = t.data, o = t.len(), s = 0, l = 0, u = 0, c = 0, f = 0, d, h, p = 0; p < o; ) {
  53302. var v = a[p++], g = p === 1;
  53303. switch (v === _c.M && p > 1 && (n || (s += bu(l, u, c, f, r, i))), g && (l = a[p], u = a[p + 1], c = l, f = u), v) {
  53304. case _c.M:
  53305. c = a[p++], f = a[p++], l = c, u = f;
  53306. break;
  53307. case _c.L:
  53308. if (n) {
  53309. if (Mc(l, u, a[p], a[p + 1], e, r, i))
  53310. return !0;
  53311. } else
  53312. s += bu(l, u, a[p], a[p + 1], r, i) || 0;
  53313. l = a[p++], u = a[p++];
  53314. break;
  53315. case _c.C:
  53316. if (n) {
  53317. if (Fje(l, u, a[p++], a[p++], a[p++], a[p++], a[p], a[p + 1], e, r, i))
  53318. return !0;
  53319. } else
  53320. s += jje(l, u, a[p++], a[p++], a[p++], a[p++], a[p], a[p + 1], r, i) || 0;
  53321. l = a[p++], u = a[p++];
  53322. break;
  53323. case _c.Q:
  53324. if (n) {
  53325. if (Zse(l, u, a[p++], a[p++], a[p], a[p + 1], e, r, i))
  53326. return !0;
  53327. } else
  53328. s += Zje(l, u, a[p++], a[p++], a[p], a[p + 1], r, i) || 0;
  53329. l = a[p++], u = a[p++];
  53330. break;
  53331. case _c.A:
  53332. var m = a[p++], y = a[p++], _ = a[p++], O = a[p++], S = a[p++], x = a[p++];
  53333. p += 1;
  53334. var C = !!(1 - a[p++]);
  53335. d = Math.cos(S) * _ + m, h = Math.sin(S) * O + y, g ? (c = d, f = h) : s += bu(l, u, d, h, r, i);
  53336. var P = (r - m) * O / _ + m;
  53337. if (n) {
  53338. if (Wje(m, y, O, S, S + x, C, e, P, i))
  53339. return !0;
  53340. } else
  53341. s += Uje(m, y, O, S, S + x, C, P, i);
  53342. l = Math.cos(S + x) * _ + m, u = Math.sin(S + x) * O + y;
  53343. break;
  53344. case _c.R:
  53345. c = l = a[p++], f = u = a[p++];
  53346. var $ = a[p++], T = a[p++];
  53347. if (d = c + $, h = f + T, n) {
  53348. if (Mc(c, f, d, f, e, r, i) || Mc(d, f, d, h, e, r, i) || Mc(d, h, c, h, e, r, i) || Mc(c, h, c, f, e, r, i))
  53349. return !0;
  53350. } else
  53351. s += bu(d, f, d, h, r, i), s += bu(c, h, c, f, r, i);
  53352. break;
  53353. case _c.Z:
  53354. if (n) {
  53355. if (Mc(l, u, c, f, e, r, i))
  53356. return !0;
  53357. } else
  53358. s += bu(l, u, c, f, r, i);
  53359. l = c, u = f;
  53360. break;
  53361. }
  53362. }
  53363. return !n && !Hje(u, f) && (s += bu(l, u, c, f, r, i) || 0), s !== 0;
  53364. }
  53365. function Xje(t, e, n) {
  53366. return Use(t, 0, !1, e, n);
  53367. }
  53368. function Yje(t, e, n, r) {
  53369. return Use(t, e, !0, n, r);
  53370. }
  53371. var MC = it({
  53372. fill: "#000",
  53373. stroke: null,
  53374. strokePercent: 1,
  53375. fillOpacity: 1,
  53376. strokeOpacity: 1,
  53377. lineDashOffset: 0,
  53378. lineWidth: 1,
  53379. lineCap: "butt",
  53380. miterLimit: 10,
  53381. strokeNoScale: !1,
  53382. strokeFirst: !1
  53383. }, wh), qje = {
  53384. style: it({
  53385. fill: !0,
  53386. stroke: !0,
  53387. strokePercent: !0,
  53388. fillOpacity: !0,
  53389. strokeOpacity: !0,
  53390. lineDashOffset: !0,
  53391. lineWidth: !0,
  53392. miterLimit: !0
  53393. }, mP.style)
  53394. }, rM = Hl.concat([
  53395. "invisible",
  53396. "culling",
  53397. "z",
  53398. "z2",
  53399. "zlevel",
  53400. "parent"
  53401. ]), Dt = function(t) {
  53402. le(e, t);
  53403. function e(n) {
  53404. return t.call(this, n) || this;
  53405. }
  53406. return e.prototype.update = function() {
  53407. var n = this;
  53408. t.prototype.update.call(this);
  53409. var r = this.style;
  53410. if (r.decal) {
  53411. var i = this._decalEl = this._decalEl || new e();
  53412. i.buildPath === e.prototype.buildPath && (i.buildPath = function(l) {
  53413. n.buildPath(l, n.shape);
  53414. }), i.silent = !0;
  53415. var a = i.style;
  53416. for (var o in r)
  53417. a[o] !== r[o] && (a[o] = r[o]);
  53418. a.fill = r.fill ? r.decal : null, a.decal = null, a.shadowColor = null, r.strokeFirst && (a.stroke = null);
  53419. for (var s = 0; s < rM.length; ++s)
  53420. i[rM[s]] = this[rM[s]];
  53421. i.__dirty |= to;
  53422. } else this._decalEl && (this._decalEl = null);
  53423. }, e.prototype.getDecalElement = function() {
  53424. return this._decalEl;
  53425. }, e.prototype._init = function(n) {
  53426. var r = kt(n);
  53427. this.shape = this.getDefaultShape();
  53428. var i = this.getDefaultStyle();
  53429. i && this.useStyle(i);
  53430. for (var a = 0; a < r.length; a++) {
  53431. var o = r[a], s = n[o];
  53432. o === "style" ? this.style ? _e(this.style, s) : this.useStyle(s) : o === "shape" ? _e(this.shape, s) : t.prototype.attrKV.call(this, o, s);
  53433. }
  53434. this.style || this.useStyle({});
  53435. }, e.prototype.getDefaultStyle = function() {
  53436. return null;
  53437. }, e.prototype.getDefaultShape = function() {
  53438. return {};
  53439. }, e.prototype.canBeInsideText = function() {
  53440. return this.hasFill();
  53441. }, e.prototype.getInsideTextFill = function() {
  53442. var n = this.style.fill;
  53443. if (n !== "none") {
  53444. if (Ve(n)) {
  53445. var r = jb(n, 0);
  53446. return r > 0.5 ? mk : r > 0.2 ? MGe : yk;
  53447. } else if (n)
  53448. return yk;
  53449. }
  53450. return mk;
  53451. }, e.prototype.getInsideTextStroke = function(n) {
  53452. var r = this.style.fill;
  53453. if (Ve(r)) {
  53454. var i = this.__zr, a = !!(i && i.isDarkMode()), o = jb(n, 0) < gk;
  53455. if (a === o)
  53456. return r;
  53457. }
  53458. }, e.prototype.buildPath = function(n, r, i) {
  53459. }, e.prototype.pathUpdated = function() {
  53460. this.__dirty &= ~_v;
  53461. }, e.prototype.getUpdatedPathProxy = function(n) {
  53462. return !this.path && this.createPathProxy(), this.path.beginPath(), this.buildPath(this.path, this.shape, n), this.path;
  53463. }, e.prototype.createPathProxy = function() {
  53464. this.path = new jl(!1);
  53465. }, e.prototype.hasStroke = function() {
  53466. var n = this.style, r = n.stroke;
  53467. return !(r == null || r === "none" || !(n.lineWidth > 0));
  53468. }, e.prototype.hasFill = function() {
  53469. var n = this.style, r = n.fill;
  53470. return r != null && r !== "none";
  53471. }, e.prototype.getBoundingRect = function() {
  53472. var n = this._rect, r = this.style, i = !n;
  53473. if (i) {
  53474. var a = !1;
  53475. this.path || (a = !0, this.createPathProxy());
  53476. var o = this.path;
  53477. (a || this.__dirty & _v) && (o.beginPath(), this.buildPath(o, this.shape, !1), this.pathUpdated()), n = o.getBoundingRect();
  53478. }
  53479. if (this._rect = n, this.hasStroke() && this.path && this.path.len() > 0) {
  53480. var s = this._rectStroke || (this._rectStroke = n.clone());
  53481. if (this.__dirty || i) {
  53482. s.copy(n);
  53483. var l = r.strokeNoScale ? this.getLineScale() : 1, u = r.lineWidth;
  53484. if (!this.hasFill()) {
  53485. var c = this.strokeContainThreshold;
  53486. u = Math.max(u, c ?? 4);
  53487. }
  53488. l > 1e-10 && (s.width += u / l, s.height += u / l, s.x -= u / l / 2, s.y -= u / l / 2);
  53489. }
  53490. return s;
  53491. }
  53492. return n;
  53493. }, e.prototype.contain = function(n, r) {
  53494. var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect(), o = this.style;
  53495. if (n = i[0], r = i[1], a.contain(n, r)) {
  53496. var s = this.path;
  53497. if (this.hasStroke()) {
  53498. var l = o.lineWidth, u = o.strokeNoScale ? this.getLineScale() : 1;
  53499. if (u > 1e-10 && (this.hasFill() || (l = Math.max(l, this.strokeContainThreshold)), Yje(s, l / u, n, r)))
  53500. return !0;
  53501. }
  53502. if (this.hasFill())
  53503. return Xje(s, n, r);
  53504. }
  53505. return !1;
  53506. }, e.prototype.dirtyShape = function() {
  53507. this.__dirty |= _v, this._rect && (this._rect = null), this._decalEl && this._decalEl.dirtyShape(), this.markRedraw();
  53508. }, e.prototype.dirty = function() {
  53509. this.dirtyStyle(), this.dirtyShape();
  53510. }, e.prototype.animateShape = function(n) {
  53511. return this.animate("shape", n);
  53512. }, e.prototype.updateDuringAnimation = function(n) {
  53513. n === "style" ? this.dirtyStyle() : n === "shape" ? this.dirtyShape() : this.markRedraw();
  53514. }, e.prototype.attrKV = function(n, r) {
  53515. n === "shape" ? this.setShape(r) : t.prototype.attrKV.call(this, n, r);
  53516. }, e.prototype.setShape = function(n, r) {
  53517. var i = this.shape;
  53518. return i || (i = this.shape = {}), typeof n == "string" ? i[n] = r : _e(i, n), this.dirtyShape(), this;
  53519. }, e.prototype.shapeChanged = function() {
  53520. return !!(this.__dirty & _v);
  53521. }, e.prototype.createStyle = function(n) {
  53522. return r1(MC, n);
  53523. }, e.prototype._innerSaveToNormal = function(n) {
  53524. t.prototype._innerSaveToNormal.call(this, n);
  53525. var r = this._normalState;
  53526. n.shape && !r.shape && (r.shape = _e({}, this.shape));
  53527. }, e.prototype._applyStateObj = function(n, r, i, a, o, s) {
  53528. t.prototype._applyStateObj.call(this, n, r, i, a, o, s);
  53529. var l = !(r && a), u;
  53530. if (r && r.shape ? o ? a ? u = r.shape : (u = _e({}, i.shape), _e(u, r.shape)) : (u = _e({}, a ? this.shape : i.shape), _e(u, r.shape)) : l && (u = i.shape), u)
  53531. if (o) {
  53532. this.shape = _e({}, this.shape);
  53533. for (var c = {}, f = kt(u), d = 0; d < f.length; d++) {
  53534. var h = f[d];
  53535. typeof u[h] == "object" ? this.shape[h] = u[h] : c[h] = u[h];
  53536. }
  53537. this._transitionState(n, {
  53538. shape: c
  53539. }, s);
  53540. } else
  53541. this.shape = u, this.dirtyShape();
  53542. }, e.prototype._mergeStates = function(n) {
  53543. for (var r = t.prototype._mergeStates.call(this, n), i, a = 0; a < n.length; a++) {
  53544. var o = n[a];
  53545. o.shape && (i = i || {}, this._mergeStyle(i, o.shape));
  53546. }
  53547. return i && (r.shape = i), r;
  53548. }, e.prototype.getAnimationStyleProps = function() {
  53549. return qje;
  53550. }, e.prototype.isZeroArea = function() {
  53551. return !1;
  53552. }, e.extend = function(n) {
  53553. var r = function(a) {
  53554. le(o, a);
  53555. function o(s) {
  53556. var l = a.call(this, s) || this;
  53557. return n.init && n.init.call(l, s), l;
  53558. }
  53559. return o.prototype.getDefaultStyle = function() {
  53560. return ot(n.style);
  53561. }, o.prototype.getDefaultShape = function() {
  53562. return ot(n.shape);
  53563. }, o;
  53564. }(e);
  53565. for (var i in n)
  53566. typeof n[i] == "function" && (r.prototype[i] = n[i]);
  53567. return r;
  53568. }, e.initDefaultProps = function() {
  53569. var n = e.prototype;
  53570. n.type = "path", n.strokeContainThreshold = 5, n.segmentIgnoreThreshold = 0, n.subPixelOptimize = !1, n.autoBatch = !1, n.__dirty = to | hy | _v;
  53571. }(), e;
  53572. }(ls), Kje = it({
  53573. strokeFirst: !0,
  53574. font: vf,
  53575. x: 0,
  53576. y: 0,
  53577. textAlign: "left",
  53578. textBaseline: "top",
  53579. miterLimit: 2
  53580. }, MC), Wg = function(t) {
  53581. le(e, t);
  53582. function e() {
  53583. return t !== null && t.apply(this, arguments) || this;
  53584. }
  53585. return e.prototype.hasStroke = function() {
  53586. var n = this.style, r = n.stroke;
  53587. return r != null && r !== "none" && n.lineWidth > 0;
  53588. }, e.prototype.hasFill = function() {
  53589. var n = this.style, r = n.fill;
  53590. return r != null && r !== "none";
  53591. }, e.prototype.createStyle = function(n) {
  53592. return r1(Kje, n);
  53593. }, e.prototype.setBoundingRect = function(n) {
  53594. this._rect = n;
  53595. }, e.prototype.getBoundingRect = function() {
  53596. var n = this.style;
  53597. if (!this._rect) {
  53598. var r = n.text;
  53599. r != null ? r += "" : r = "";
  53600. var i = o1(r, n.font, n.textAlign, n.textBaseline);
  53601. if (i.x += n.x || 0, i.y += n.y || 0, this.hasStroke()) {
  53602. var a = n.lineWidth;
  53603. i.x -= a / 2, i.y -= a / 2, i.width += a, i.height += a;
  53604. }
  53605. this._rect = i;
  53606. }
  53607. return this._rect;
  53608. }, e.initDefaultProps = function() {
  53609. var n = e.prototype;
  53610. n.dirtyRectTolerance = 10;
  53611. }(), e;
  53612. }(ls);
  53613. Wg.prototype.type = "tspan";
  53614. var Jje = it({
  53615. x: 0,
  53616. y: 0
  53617. }, wh), eZe = {
  53618. style: it({
  53619. x: !0,
  53620. y: !0,
  53621. width: !0,
  53622. height: !0,
  53623. sx: !0,
  53624. sy: !0,
  53625. sWidth: !0,
  53626. sHeight: !0
  53627. }, mP.style)
  53628. };
  53629. function tZe(t) {
  53630. return !!(t && typeof t != "string" && t.width && t.height);
  53631. }
  53632. var Xse = function(t) {
  53633. le(e, t);
  53634. function e() {
  53635. return t !== null && t.apply(this, arguments) || this;
  53636. }
  53637. return e.prototype.createStyle = function(n) {
  53638. return r1(Jje, n);
  53639. }, e.prototype._getSize = function(n) {
  53640. var r = this.style, i = r[n];
  53641. if (i != null)
  53642. return i;
  53643. var a = tZe(r.image) ? r.image : this.__image;
  53644. if (!a)
  53645. return 0;
  53646. var o = n === "width" ? "height" : "width", s = r[o];
  53647. return s == null ? a[n] : a[n] / a[o] * s;
  53648. }, e.prototype.getWidth = function() {
  53649. return this._getSize("width");
  53650. }, e.prototype.getHeight = function() {
  53651. return this._getSize("height");
  53652. }, e.prototype.getAnimationStyleProps = function() {
  53653. return eZe;
  53654. }, e.prototype.getBoundingRect = function() {
  53655. var n = this.style;
  53656. return this._rect || (this._rect = new bt(n.x || 0, n.y || 0, this.getWidth(), this.getHeight())), this._rect;
  53657. }, e;
  53658. }(ls);
  53659. Xse.prototype.type = "image";
  53660. const ci = Xse;
  53661. function nZe(t, e) {
  53662. var n = e.x, r = e.y, i = e.width, a = e.height, o = e.r, s, l, u, c;
  53663. i < 0 && (n = n + i, i = -i), a < 0 && (r = r + a, a = -a), typeof o == "number" ? s = l = u = c = o : o instanceof Array ? o.length === 1 ? s = l = u = c = o[0] : o.length === 2 ? (s = u = o[0], l = c = o[1]) : o.length === 3 ? (s = o[0], l = c = o[1], u = o[2]) : (s = o[0], l = o[1], u = o[2], c = o[3]) : s = l = u = c = 0;
  53664. var f;
  53665. s + l > i && (f = s + l, s *= i / f, l *= i / f), u + c > i && (f = u + c, u *= i / f, c *= i / f), l + u > a && (f = l + u, l *= a / f, u *= a / f), s + c > a && (f = s + c, s *= a / f, c *= a / f), t.moveTo(n + s, r), t.lineTo(n + i - l, r), l !== 0 && t.arc(n + i - l, r + l, l, -Math.PI / 2, 0), t.lineTo(n + i, r + a - u), u !== 0 && t.arc(n + i - u, r + a - u, u, 0, Math.PI / 2), t.lineTo(n + c, r + a), c !== 0 && t.arc(n + c, r + a - c, c, Math.PI / 2, Math.PI), t.lineTo(n, r + s), s !== 0 && t.arc(n + s, r + s, s, Math.PI, Math.PI * 1.5);
  53666. }
  53667. var Dv = Math.round;
  53668. function Yse(t, e, n) {
  53669. if (e) {
  53670. var r = e.x1, i = e.x2, a = e.y1, o = e.y2;
  53671. t.x1 = r, t.x2 = i, t.y1 = a, t.y2 = o;
  53672. var s = n && n.lineWidth;
  53673. return s && (Dv(r * 2) === Dv(i * 2) && (t.x1 = t.x2 = ih(r, s, !0)), Dv(a * 2) === Dv(o * 2) && (t.y1 = t.y2 = ih(a, s, !0))), t;
  53674. }
  53675. }
  53676. function qse(t, e, n) {
  53677. if (e) {
  53678. var r = e.x, i = e.y, a = e.width, o = e.height;
  53679. t.x = r, t.y = i, t.width = a, t.height = o;
  53680. var s = n && n.lineWidth;
  53681. return s && (t.x = ih(r, s, !0), t.y = ih(i, s, !0), t.width = Math.max(ih(r + a, s, !1) - t.x, a === 0 ? 0 : 1), t.height = Math.max(ih(i + o, s, !1) - t.y, o === 0 ? 0 : 1)), t;
  53682. }
  53683. }
  53684. function ih(t, e, n) {
  53685. if (!e)
  53686. return t;
  53687. var r = Dv(t * 2);
  53688. return (r + Dv(e)) % 2 === 0 ? r / 2 : (r + (n ? 1 : -1)) / 2;
  53689. }
  53690. var rZe = /* @__PURE__ */ function() {
  53691. function t() {
  53692. this.x = 0, this.y = 0, this.width = 0, this.height = 0;
  53693. }
  53694. return t;
  53695. }(), iZe = {}, Kse = function(t) {
  53696. le(e, t);
  53697. function e(n) {
  53698. return t.call(this, n) || this;
  53699. }
  53700. return e.prototype.getDefaultShape = function() {
  53701. return new rZe();
  53702. }, e.prototype.buildPath = function(n, r) {
  53703. var i, a, o, s;
  53704. if (this.subPixelOptimize) {
  53705. var l = qse(iZe, r, this.style);
  53706. i = l.x, a = l.y, o = l.width, s = l.height, l.r = r.r, r = l;
  53707. } else
  53708. i = r.x, a = r.y, o = r.width, s = r.height;
  53709. r.r ? nZe(n, r) : n.rect(i, a, o, s);
  53710. }, e.prototype.isZeroArea = function() {
  53711. return !this.shape.width || !this.shape.height;
  53712. }, e;
  53713. }(Dt);
  53714. Kse.prototype.type = "rect";
  53715. const Zt = Kse;
  53716. var eG = {
  53717. fill: "#000"
  53718. }, tG = 2, aZe = {
  53719. style: it({
  53720. fill: !0,
  53721. stroke: !0,
  53722. fillOpacity: !0,
  53723. strokeOpacity: !0,
  53724. lineWidth: !0,
  53725. fontSize: !0,
  53726. lineHeight: !0,
  53727. width: !0,
  53728. height: !0,
  53729. textShadowColor: !0,
  53730. textShadowBlur: !0,
  53731. textShadowOffsetX: !0,
  53732. textShadowOffsetY: !0,
  53733. backgroundColor: !0,
  53734. padding: !0,
  53735. borderColor: !0,
  53736. borderWidth: !0,
  53737. borderRadius: !0
  53738. }, mP.style)
  53739. }, Jse = function(t) {
  53740. le(e, t);
  53741. function e(n) {
  53742. var r = t.call(this) || this;
  53743. return r.type = "text", r._children = [], r._defaultStyle = eG, r.attr(n), r;
  53744. }
  53745. return e.prototype.childrenRef = function() {
  53746. return this._children;
  53747. }, e.prototype.update = function() {
  53748. t.prototype.update.call(this), this.styleChanged() && this._updateSubTexts();
  53749. for (var n = 0; n < this._children.length; n++) {
  53750. var r = this._children[n];
  53751. r.zlevel = this.zlevel, r.z = this.z, r.z2 = this.z2, r.culling = this.culling, r.cursor = this.cursor, r.invisible = this.invisible;
  53752. }
  53753. }, e.prototype.updateTransform = function() {
  53754. var n = this.innerTransformable;
  53755. n ? (n.updateTransform(), n.transform && (this.transform = n.transform)) : t.prototype.updateTransform.call(this);
  53756. }, e.prototype.getLocalTransform = function(n) {
  53757. var r = this.innerTransformable;
  53758. return r ? r.getLocalTransform(n) : t.prototype.getLocalTransform.call(this, n);
  53759. }, e.prototype.getComputedTransform = function() {
  53760. return this.__hostTarget && (this.__hostTarget.getComputedTransform(), this.__hostTarget.updateInnerText(!0)), t.prototype.getComputedTransform.call(this);
  53761. }, e.prototype._updateSubTexts = function() {
  53762. this._childCursor = 0, lZe(this.style), this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(), this._children.length = this._childCursor, this.styleUpdated();
  53763. }, e.prototype.addSelfToZr = function(n) {
  53764. t.prototype.addSelfToZr.call(this, n);
  53765. for (var r = 0; r < this._children.length; r++)
  53766. this._children[r].__zr = n;
  53767. }, e.prototype.removeSelfFromZr = function(n) {
  53768. t.prototype.removeSelfFromZr.call(this, n);
  53769. for (var r = 0; r < this._children.length; r++)
  53770. this._children[r].__zr = null;
  53771. }, e.prototype.getBoundingRect = function() {
  53772. if (this.styleChanged() && this._updateSubTexts(), !this._rect) {
  53773. for (var n = new bt(0, 0, 0, 0), r = this._children, i = [], a = null, o = 0; o < r.length; o++) {
  53774. var s = r[o], l = s.getBoundingRect(), u = s.getLocalTransform(i);
  53775. u ? (n.copy(l), n.applyTransform(u), a = a || n.clone(), a.union(n)) : (a = a || l.clone(), a.union(l));
  53776. }
  53777. this._rect = a || n;
  53778. }
  53779. return this._rect;
  53780. }, e.prototype.setDefaultTextStyle = function(n) {
  53781. this._defaultStyle = n || eG;
  53782. }, e.prototype.setTextContent = function(n) {
  53783. if (process.env.NODE_ENV !== "production")
  53784. throw new Error("Can't attach text on another text");
  53785. }, e.prototype._mergeStyle = function(n, r) {
  53786. if (!r)
  53787. return n;
  53788. var i = r.rich, a = n.rich || i && {};
  53789. return _e(n, r), i && a ? (this._mergeRich(a, i), n.rich = a) : a && (n.rich = a), n;
  53790. }, e.prototype._mergeRich = function(n, r) {
  53791. for (var i = kt(r), a = 0; a < i.length; a++) {
  53792. var o = i[a];
  53793. n[o] = n[o] || {}, _e(n[o], r[o]);
  53794. }
  53795. }, e.prototype.getAnimationStyleProps = function() {
  53796. return aZe;
  53797. }, e.prototype._getOrCreateChild = function(n) {
  53798. var r = this._children[this._childCursor];
  53799. return (!r || !(r instanceof n)) && (r = new n()), this._children[this._childCursor++] = r, r.__zr = this.__zr, r.parent = this, r;
  53800. }, e.prototype._updatePlainTexts = function() {
  53801. var n = this.style, r = n.font || vf, i = n.padding, a = lG(n), o = $je(a, n), s = iM(n), l = !!n.backgroundColor, u = o.outerHeight, c = o.outerWidth, f = o.contentWidth, d = o.lines, h = o.lineHeight, p = this._defaultStyle, v = n.x || 0, g = n.y || 0, m = n.align || p.align || "left", y = n.verticalAlign || p.verticalAlign || "top", _ = v, O = Ov(g, o.contentHeight, y);
  53802. if (s || i) {
  53803. var S = vy(v, c, m), x = Ov(g, u, y);
  53804. s && this._renderBackground(n, n, S, x, c, u);
  53805. }
  53806. O += h / 2, i && (_ = sG(v, m, i), y === "top" ? O += i[0] : y === "bottom" && (O -= i[2]));
  53807. for (var C = 0, P = !1, $ = oG("fill" in n ? n.fill : (P = !0, p.fill)), T = aG("stroke" in n ? n.stroke : !l && (!p.autoStroke || P) ? (C = tG, p.stroke) : null), E = n.textShadowBlur > 0, M = n.width != null && (n.overflow === "truncate" || n.overflow === "break" || n.overflow === "breakAll"), R = o.calculatedLineHeight, N = 0; N < d.length; N++) {
  53808. var I = this._getOrCreateChild(Wg), B = I.createStyle();
  53809. I.useStyle(B), B.text = d[N], B.x = _, B.y = O, m && (B.textAlign = m), B.textBaseline = "middle", B.opacity = n.opacity, B.strokeFirst = !0, E && (B.shadowBlur = n.textShadowBlur || 0, B.shadowColor = n.textShadowColor || "transparent", B.shadowOffsetX = n.textShadowOffsetX || 0, B.shadowOffsetY = n.textShadowOffsetY || 0), B.stroke = T, B.fill = $, T && (B.lineWidth = n.lineWidth || C, B.lineDash = n.lineDash, B.lineDashOffset = n.lineDashOffset || 0), B.font = r, rG(B, n), O += h, M && I.setBoundingRect(new bt(vy(B.x, n.width, B.textAlign), Ov(B.y, R, B.textBaseline), f, R));
  53810. }
  53811. }, e.prototype._updateRichTexts = function() {
  53812. var n = this.style, r = lG(n), i = Mje(r, n), a = i.width, o = i.outerWidth, s = i.outerHeight, l = n.padding, u = n.x || 0, c = n.y || 0, f = this._defaultStyle, d = n.align || f.align, h = n.verticalAlign || f.verticalAlign, p = vy(u, o, d), v = Ov(c, s, h), g = p, m = v;
  53813. l && (g += l[3], m += l[0]);
  53814. var y = g + a;
  53815. iM(n) && this._renderBackground(n, n, p, v, o, s);
  53816. for (var _ = !!n.backgroundColor, O = 0; O < i.lines.length; O++) {
  53817. for (var S = i.lines[O], x = S.tokens, C = x.length, P = S.lineHeight, $ = S.width, T = 0, E = g, M = y, R = C - 1, N = void 0; T < C && (N = x[T], !N.align || N.align === "left"); )
  53818. this._placeToken(N, n, P, m, E, "left", _), $ -= N.width, E += N.width, T++;
  53819. for (; R >= 0 && (N = x[R], N.align === "right"); )
  53820. this._placeToken(N, n, P, m, M, "right", _), $ -= N.width, M -= N.width, R--;
  53821. for (E += (a - (E - g) - (y - M) - $) / 2; T <= R; )
  53822. N = x[T], this._placeToken(N, n, P, m, E + N.width / 2, "center", _), E += N.width, T++;
  53823. m += P;
  53824. }
  53825. }, e.prototype._placeToken = function(n, r, i, a, o, s, l) {
  53826. var u = r.rich[n.styleName] || {};
  53827. u.text = n.text;
  53828. var c = n.verticalAlign, f = a + i / 2;
  53829. c === "top" ? f = a + n.height / 2 : c === "bottom" && (f = a + i - n.height / 2);
  53830. var d = !n.isLineHolder && iM(u);
  53831. d && this._renderBackground(u, r, s === "right" ? o - n.width : s === "center" ? o - n.width / 2 : o, f - n.height / 2, n.width, n.height);
  53832. var h = !!u.backgroundColor, p = n.textPadding;
  53833. p && (o = sG(o, s, p), f -= n.height / 2 - p[0] - n.innerHeight / 2);
  53834. var v = this._getOrCreateChild(Wg), g = v.createStyle();
  53835. v.useStyle(g);
  53836. var m = this._defaultStyle, y = !1, _ = 0, O = oG("fill" in u ? u.fill : "fill" in r ? r.fill : (y = !0, m.fill)), S = aG("stroke" in u ? u.stroke : "stroke" in r ? r.stroke : !h && !l && (!m.autoStroke || y) ? (_ = tG, m.stroke) : null), x = u.textShadowBlur > 0 || r.textShadowBlur > 0;
  53837. g.text = n.text, g.x = o, g.y = f, x && (g.shadowBlur = u.textShadowBlur || r.textShadowBlur || 0, g.shadowColor = u.textShadowColor || r.textShadowColor || "transparent", g.shadowOffsetX = u.textShadowOffsetX || r.textShadowOffsetX || 0, g.shadowOffsetY = u.textShadowOffsetY || r.textShadowOffsetY || 0), g.textAlign = s, g.textBaseline = "middle", g.font = n.font || vf, g.opacity = co(u.opacity, r.opacity, 1), rG(g, u), S && (g.lineWidth = co(u.lineWidth, r.lineWidth, _), g.lineDash = dt(u.lineDash, r.lineDash), g.lineDashOffset = r.lineDashOffset || 0, g.stroke = S), O && (g.fill = O);
  53838. var C = n.contentWidth, P = n.contentHeight;
  53839. v.setBoundingRect(new bt(vy(g.x, C, g.textAlign), Ov(g.y, P, g.textBaseline), C, P));
  53840. }, e.prototype._renderBackground = function(n, r, i, a, o, s) {
  53841. var l = n.backgroundColor, u = n.borderWidth, c = n.borderColor, f = l && l.image, d = l && !f, h = n.borderRadius, p = this, v, g;
  53842. if (d || n.lineHeight || u && c) {
  53843. v = this._getOrCreateChild(Zt), v.useStyle(v.createStyle()), v.style.fill = null;
  53844. var m = v.shape;
  53845. m.x = i, m.y = a, m.width = o, m.height = s, m.r = h, v.dirtyShape();
  53846. }
  53847. if (d) {
  53848. var y = v.style;
  53849. y.fill = l || null, y.fillOpacity = dt(n.fillOpacity, 1);
  53850. } else if (f) {
  53851. g = this._getOrCreateChild(ci), g.onload = function() {
  53852. p.dirtyStyle();
  53853. };
  53854. var _ = g.style;
  53855. _.image = l.image, _.x = i, _.y = a, _.width = o, _.height = s;
  53856. }
  53857. if (u && c) {
  53858. var y = v.style;
  53859. y.lineWidth = u, y.stroke = c, y.strokeOpacity = dt(n.strokeOpacity, 1), y.lineDash = n.borderDash, y.lineDashOffset = n.borderDashOffset || 0, v.strokeContainThreshold = 0, v.hasFill() && v.hasStroke() && (y.strokeFirst = !0, y.lineWidth *= 2);
  53860. }
  53861. var O = (v || g).style;
  53862. O.shadowBlur = n.shadowBlur || 0, O.shadowColor = n.shadowColor || "transparent", O.shadowOffsetX = n.shadowOffsetX || 0, O.shadowOffsetY = n.shadowOffsetY || 0, O.opacity = co(n.opacity, r.opacity, 1);
  53863. }, e.makeFont = function(n) {
  53864. var r = "";
  53865. return tle(n) && (r = [
  53866. n.fontStyle,
  53867. n.fontWeight,
  53868. ele(n.fontSize),
  53869. n.fontFamily || "sans-serif"
  53870. ].join(" ")), r && Zo(r) || n.textFont || n.font;
  53871. }, e;
  53872. }(ls), oZe = { left: !0, right: 1, center: 1 }, sZe = { top: 1, bottom: 1, middle: 1 }, nG = ["fontStyle", "fontWeight", "fontSize", "fontFamily"];
  53873. function ele(t) {
  53874. return typeof t == "string" && (t.indexOf("px") !== -1 || t.indexOf("rem") !== -1 || t.indexOf("em") !== -1) ? t : isNaN(+t) ? h5 + "px" : t + "px";
  53875. }
  53876. function rG(t, e) {
  53877. for (var n = 0; n < nG.length; n++) {
  53878. var r = nG[n], i = e[r];
  53879. i != null && (t[r] = i);
  53880. }
  53881. }
  53882. function tle(t) {
  53883. return t.fontSize != null || t.fontFamily || t.fontWeight;
  53884. }
  53885. function lZe(t) {
  53886. return iG(t), F(t.rich, iG), t;
  53887. }
  53888. function iG(t) {
  53889. if (t) {
  53890. t.font = Jse.makeFont(t);
  53891. var e = t.align;
  53892. e === "middle" && (e = "center"), t.align = e == null || oZe[e] ? e : "left";
  53893. var n = t.verticalAlign;
  53894. n === "center" && (n = "middle"), t.verticalAlign = n == null || sZe[n] ? n : "top";
  53895. var r = t.padding;
  53896. r && (t.padding = sP(t.padding));
  53897. }
  53898. }
  53899. function aG(t, e) {
  53900. return t == null || e <= 0 || t === "transparent" || t === "none" ? null : t.image || t.colorStops ? "#000" : t;
  53901. }
  53902. function oG(t) {
  53903. return t == null || t === "none" ? null : t.image || t.colorStops ? "#000" : t;
  53904. }
  53905. function sG(t, e, n) {
  53906. return e === "right" ? t - n[1] : e === "center" ? t + n[3] / 2 - n[1] / 2 : t + n[3];
  53907. }
  53908. function lG(t) {
  53909. var e = t.text;
  53910. return e != null && (e += ""), e;
  53911. }
  53912. function iM(t) {
  53913. return !!(t.backgroundColor || t.lineHeight || t.borderWidth && t.borderColor);
  53914. }
  53915. const jt = Jse;
  53916. var ft = Ut(), Pk = function(t, e, n, r) {
  53917. if (r) {
  53918. var i = ft(r);
  53919. i.dataIndex = n, i.dataType = e, i.seriesIndex = t, i.ssrType = "chart", r.type === "group" && r.traverse(function(a) {
  53920. var o = ft(a);
  53921. o.seriesIndex = t, o.dataIndex = n, o.dataType = e, o.ssrType = "chart";
  53922. });
  53923. }
  53924. }, uG = 1, cG = {}, nle = Ut(), R5 = Ut(), k5 = 0, u1 = 1, bP = 2, da = ["emphasis", "blur", "select"], Ub = ["normal", "emphasis", "blur", "select"], bm = 10, uZe = 9, Ch = "highlight", cw = "downplay", nb = "select", fw = "unselect", rb = "toggleSelect";
  53925. function Yp(t) {
  53926. return t != null && t !== "none";
  53927. }
  53928. function _P(t, e, n) {
  53929. t.onHoverStateChange && (t.hoverState || 0) !== n && t.onHoverStateChange(e), t.hoverState = n;
  53930. }
  53931. function rle(t) {
  53932. _P(t, "emphasis", bP);
  53933. }
  53934. function ile(t) {
  53935. t.hoverState === bP && _P(t, "normal", k5);
  53936. }
  53937. function L5(t) {
  53938. _P(t, "blur", u1);
  53939. }
  53940. function ale(t) {
  53941. t.hoverState === u1 && _P(t, "normal", k5);
  53942. }
  53943. function cZe(t) {
  53944. t.selected = !0;
  53945. }
  53946. function fZe(t) {
  53947. t.selected = !1;
  53948. }
  53949. function fG(t, e, n) {
  53950. e(t, n);
  53951. }
  53952. function rc(t, e, n) {
  53953. fG(t, e, n), t.isGroup && t.traverse(function(r) {
  53954. fG(r, e, n);
  53955. });
  53956. }
  53957. function IC(t, e) {
  53958. switch (e) {
  53959. case "emphasis":
  53960. t.hoverState = bP;
  53961. break;
  53962. case "normal":
  53963. t.hoverState = k5;
  53964. break;
  53965. case "blur":
  53966. t.hoverState = u1;
  53967. break;
  53968. case "select":
  53969. t.selected = !0;
  53970. }
  53971. }
  53972. function dZe(t, e, n, r) {
  53973. for (var i = t.style, a = {}, o = 0; o < e.length; o++) {
  53974. var s = e[o], l = i[s];
  53975. a[s] = l ?? (r && r[s]);
  53976. }
  53977. for (var o = 0; o < t.animators.length; o++) {
  53978. var u = t.animators[o];
  53979. u.__fromStateTransition && u.__fromStateTransition.indexOf(n) < 0 && u.targetName === "style" && u.saveTo(a, e);
  53980. }
  53981. return a;
  53982. }
  53983. function hZe(t, e, n, r) {
  53984. var i = n && St(n, "select") >= 0, a = !1;
  53985. if (t instanceof Dt) {
  53986. var o = nle(t), s = i && o.selectFill || o.normalFill, l = i && o.selectStroke || o.normalStroke;
  53987. if (Yp(s) || Yp(l)) {
  53988. r = r || {};
  53989. var u = r.style || {};
  53990. u.fill === "inherit" ? (a = !0, r = _e({}, r), u = _e({}, u), u.fill = s) : !Yp(u.fill) && Yp(s) ? (a = !0, r = _e({}, r), u = _e({}, u), u.fill = TC(s)) : !Yp(u.stroke) && Yp(l) && (a || (r = _e({}, r), u = _e({}, u)), u.stroke = TC(l)), r.style = u;
  53991. }
  53992. }
  53993. if (r && r.z2 == null) {
  53994. a || (r = _e({}, r));
  53995. var c = t.z2EmphasisLift;
  53996. r.z2 = t.z2 + (c ?? bm);
  53997. }
  53998. return r;
  53999. }
  54000. function pZe(t, e, n) {
  54001. if (n && n.z2 == null) {
  54002. n = _e({}, n);
  54003. var r = t.z2SelectLift;
  54004. n.z2 = t.z2 + (r ?? uZe);
  54005. }
  54006. return n;
  54007. }
  54008. function vZe(t, e, n) {
  54009. var r = St(t.currentStates, e) >= 0, i = t.style.opacity, a = r ? null : dZe(t, ["opacity"], e, {
  54010. opacity: 1
  54011. });
  54012. n = n || {};
  54013. var o = n.style || {};
  54014. return o.opacity == null && (n = _e({}, n), o = _e({
  54015. // Already being applied 'emphasis'. DON'T mul opacity multiple times.
  54016. opacity: r ? i : a.opacity * 0.1
  54017. }, o), n.style = o), n;
  54018. }
  54019. function aM(t, e) {
  54020. var n = this.states[t];
  54021. if (this.style) {
  54022. if (t === "emphasis")
  54023. return hZe(this, t, e, n);
  54024. if (t === "blur")
  54025. return vZe(this, t, n);
  54026. if (t === "select")
  54027. return pZe(this, t, n);
  54028. }
  54029. return n;
  54030. }
  54031. function Zh(t) {
  54032. t.stateProxy = aM;
  54033. var e = t.getTextContent(), n = t.getTextGuideLine();
  54034. e && (e.stateProxy = aM), n && (n.stateProxy = aM);
  54035. }
  54036. function dG(t, e) {
  54037. !ule(t, e) && !t.__highByOuter && rc(t, rle);
  54038. }
  54039. function hG(t, e) {
  54040. !ule(t, e) && !t.__highByOuter && rc(t, ile);
  54041. }
  54042. function Fu(t, e) {
  54043. t.__highByOuter |= 1 << (e || 0), rc(t, rle);
  54044. }
  54045. function Wu(t, e) {
  54046. !(t.__highByOuter &= ~(1 << (e || 0))) && rc(t, ile);
  54047. }
  54048. function ole(t) {
  54049. rc(t, L5);
  54050. }
  54051. function N5(t) {
  54052. rc(t, ale);
  54053. }
  54054. function sle(t) {
  54055. rc(t, cZe);
  54056. }
  54057. function lle(t) {
  54058. rc(t, fZe);
  54059. }
  54060. function ule(t, e) {
  54061. return t.__highDownSilentOnTouch && e.zrByTouch;
  54062. }
  54063. function cle(t) {
  54064. var e = t.getModel(), n = [], r = [];
  54065. e.eachComponent(function(i, a) {
  54066. var o = R5(a), s = i === "series", l = s ? t.getViewOfSeriesModel(a) : t.getViewOfComponentModel(a);
  54067. !s && r.push(l), o.isBlured && (l.group.traverse(function(u) {
  54068. ale(u);
  54069. }), s && n.push(a)), o.isBlured = !1;
  54070. }), F(r, function(i) {
  54071. i && i.toggleBlurSeries && i.toggleBlurSeries(n, !1, e);
  54072. });
  54073. }
  54074. function $k(t, e, n, r) {
  54075. var i = r.getModel();
  54076. n = n || "coordinateSystem";
  54077. function a(u, c) {
  54078. for (var f = 0; f < c.length; f++) {
  54079. var d = u.getItemGraphicEl(c[f]);
  54080. d && N5(d);
  54081. }
  54082. }
  54083. if (t != null && !(!e || e === "none")) {
  54084. var o = i.getSeriesByIndex(t), s = o.coordinateSystem;
  54085. s && s.master && (s = s.master);
  54086. var l = [];
  54087. i.eachSeries(function(u) {
  54088. var c = o === u, f = u.coordinateSystem;
  54089. f && f.master && (f = f.master);
  54090. var d = f && s ? f === s : c;
  54091. if (!// Not blur other series if blurScope series
  54092. (n === "series" && !c || n === "coordinateSystem" && !d || e === "series" && c)) {
  54093. var h = r.getViewOfSeriesModel(u);
  54094. if (h.group.traverse(function(g) {
  54095. g.__highByOuter && c && e === "self" || L5(g);
  54096. }), Pi(e))
  54097. a(u.getData(), e);
  54098. else if (nt(e))
  54099. for (var p = kt(e), v = 0; v < p.length; v++)
  54100. a(u.getData(p[v]), e[p[v]]);
  54101. l.push(u), R5(u).isBlured = !0;
  54102. }
  54103. }), i.eachComponent(function(u, c) {
  54104. if (u !== "series") {
  54105. var f = r.getViewOfComponentModel(c);
  54106. f && f.toggleBlurSeries && f.toggleBlurSeries(l, !0, i);
  54107. }
  54108. });
  54109. }
  54110. }
  54111. function Ak(t, e, n) {
  54112. if (!(t == null || e == null)) {
  54113. var r = n.getModel().getComponent(t, e);
  54114. if (r) {
  54115. R5(r).isBlured = !0;
  54116. var i = n.getViewOfComponentModel(r);
  54117. !i || !i.focusBlurEnabled || i.group.traverse(function(a) {
  54118. L5(a);
  54119. });
  54120. }
  54121. }
  54122. }
  54123. function gZe(t, e, n) {
  54124. var r = t.seriesIndex, i = t.getData(e.dataType);
  54125. if (!i) {
  54126. process.env.NODE_ENV !== "production" && $i("Unknown dataType " + e.dataType);
  54127. return;
  54128. }
  54129. var a = Gh(i, e);
  54130. a = (Se(a) ? a[0] : a) || 0;
  54131. var o = i.getItemGraphicEl(a);
  54132. if (!o)
  54133. for (var s = i.count(), l = 0; !o && l < s; )
  54134. o = i.getItemGraphicEl(l++);
  54135. if (o) {
  54136. var u = ft(o);
  54137. $k(r, u.focus, u.blurScope, n);
  54138. } else {
  54139. var c = t.get(["emphasis", "focus"]), f = t.get(["emphasis", "blurScope"]);
  54140. c != null && $k(r, c, f, n);
  54141. }
  54142. }
  54143. function B5(t, e, n, r) {
  54144. var i = {
  54145. focusSelf: !1,
  54146. dispatchers: null
  54147. };
  54148. if (t == null || t === "series" || e == null || n == null)
  54149. return i;
  54150. var a = r.getModel().getComponent(t, e);
  54151. if (!a)
  54152. return i;
  54153. var o = r.getViewOfComponentModel(a);
  54154. if (!o || !o.findHighDownDispatchers)
  54155. return i;
  54156. for (var s = o.findHighDownDispatchers(n), l, u = 0; u < s.length; u++)
  54157. if (process.env.NODE_ENV !== "production" && !bf(s[u]) && $i("param should be highDownDispatcher"), ft(s[u]).focus === "self") {
  54158. l = !0;
  54159. break;
  54160. }
  54161. return {
  54162. focusSelf: l,
  54163. dispatchers: s
  54164. };
  54165. }
  54166. function mZe(t, e, n) {
  54167. process.env.NODE_ENV !== "production" && !bf(t) && $i("param should be highDownDispatcher");
  54168. var r = ft(t), i = B5(r.componentMainType, r.componentIndex, r.componentHighDownName, n), a = i.dispatchers, o = i.focusSelf;
  54169. a ? (o && Ak(r.componentMainType, r.componentIndex, n), F(a, function(s) {
  54170. return dG(s, e);
  54171. })) : ($k(r.seriesIndex, r.focus, r.blurScope, n), r.focus === "self" && Ak(r.componentMainType, r.componentIndex, n), dG(t, e));
  54172. }
  54173. function yZe(t, e, n) {
  54174. process.env.NODE_ENV !== "production" && !bf(t) && $i("param should be highDownDispatcher"), cle(n);
  54175. var r = ft(t), i = B5(r.componentMainType, r.componentIndex, r.componentHighDownName, n).dispatchers;
  54176. i ? F(i, function(a) {
  54177. return hG(a, e);
  54178. }) : hG(t, e);
  54179. }
  54180. function bZe(t, e, n) {
  54181. if (Mk(e)) {
  54182. var r = e.dataType, i = t.getData(r), a = Gh(i, e);
  54183. Se(a) || (a = [a]), t[e.type === rb ? "toggleSelect" : e.type === nb ? "select" : "unselect"](a, r);
  54184. }
  54185. }
  54186. function pG(t) {
  54187. var e = t.getAllData();
  54188. F(e, function(n) {
  54189. var r = n.data, i = n.type;
  54190. r.eachItemGraphicEl(function(a, o) {
  54191. t.isSelected(o, i) ? sle(a) : lle(a);
  54192. });
  54193. });
  54194. }
  54195. function _Ze(t) {
  54196. var e = [];
  54197. return t.eachSeries(function(n) {
  54198. var r = n.getAllData();
  54199. F(r, function(i) {
  54200. i.data;
  54201. var a = i.type, o = n.getSelectedDataIndices();
  54202. if (o.length > 0) {
  54203. var s = {
  54204. dataIndex: o,
  54205. seriesIndex: n.seriesIndex
  54206. };
  54207. a != null && (s.dataType = a), e.push(s);
  54208. }
  54209. });
  54210. }), e;
  54211. }
  54212. function af(t, e, n) {
  54213. ah(t, !0), rc(t, Zh), Ek(t, e, n);
  54214. }
  54215. function OZe(t) {
  54216. ah(t, !1);
  54217. }
  54218. function ur(t, e, n, r) {
  54219. r ? OZe(t) : af(t, e, n);
  54220. }
  54221. function Ek(t, e, n) {
  54222. var r = ft(t);
  54223. e != null ? (r.focus = e, r.blurScope = n) : r.focus && (r.focus = null);
  54224. }
  54225. var vG = ["emphasis", "blur", "select"], SZe = {
  54226. itemStyle: "getItemStyle",
  54227. lineStyle: "getLineStyle",
  54228. areaStyle: "getAreaStyle"
  54229. };
  54230. function Ai(t, e, n, r) {
  54231. n = n || "itemStyle";
  54232. for (var i = 0; i < vG.length; i++) {
  54233. var a = vG[i], o = e.getModel([a, n]), s = t.ensureState(a);
  54234. s.style = r ? r(o) : o[SZe[n]]();
  54235. }
  54236. }
  54237. function ah(t, e) {
  54238. var n = e === !1, r = t;
  54239. t.highDownSilentOnTouch && (r.__highDownSilentOnTouch = t.highDownSilentOnTouch), (!n || r.__highDownDispatcher) && (r.__highByOuter = r.__highByOuter || 0, r.__highDownDispatcher = !n);
  54240. }
  54241. function bf(t) {
  54242. return !!(t && t.__highDownDispatcher);
  54243. }
  54244. function xZe(t, e, n) {
  54245. var r = ft(t);
  54246. r.componentMainType = e.mainType, r.componentIndex = e.componentIndex, r.componentHighDownName = n;
  54247. }
  54248. function wZe(t) {
  54249. var e = cG[t];
  54250. return e == null && uG <= 32 && (e = cG[t] = uG++), e;
  54251. }
  54252. function Mk(t) {
  54253. var e = t.type;
  54254. return e === nb || e === fw || e === rb;
  54255. }
  54256. function gG(t) {
  54257. var e = t.type;
  54258. return e === Ch || e === cw;
  54259. }
  54260. function CZe(t) {
  54261. var e = nle(t);
  54262. e.normalFill = t.style.fill, e.normalStroke = t.style.stroke;
  54263. var n = t.states.select || {};
  54264. e.selectFill = n.style && n.style.fill || null, e.selectStroke = n.style && n.style.stroke || null;
  54265. }
  54266. var qp = jl.CMD, TZe = [[], [], []], mG = Math.sqrt, PZe = Math.atan2;
  54267. function fle(t, e) {
  54268. if (e) {
  54269. var n = t.data, r = t.len(), i, a, o, s, l, u, c = qp.M, f = qp.C, d = qp.L, h = qp.R, p = qp.A, v = qp.Q;
  54270. for (o = 0, s = 0; o < r; ) {
  54271. switch (i = n[o++], s = o, a = 0, i) {
  54272. case c:
  54273. a = 1;
  54274. break;
  54275. case d:
  54276. a = 1;
  54277. break;
  54278. case f:
  54279. a = 3;
  54280. break;
  54281. case v:
  54282. a = 2;
  54283. break;
  54284. case p:
  54285. var g = e[4], m = e[5], y = mG(e[0] * e[0] + e[1] * e[1]), _ = mG(e[2] * e[2] + e[3] * e[3]), O = PZe(-e[1] / _, e[0] / y);
  54286. n[o] *= y, n[o++] += g, n[o] *= _, n[o++] += m, n[o++] *= y, n[o++] *= _, n[o++] += O, n[o++] += O, o += 2, s = o;
  54287. break;
  54288. case h:
  54289. u[0] = n[o++], u[1] = n[o++], oi(u, u, e), n[s++] = u[0], n[s++] = u[1], u[0] += n[o++], u[1] += n[o++], oi(u, u, e), n[s++] = u[0], n[s++] = u[1];
  54290. }
  54291. for (l = 0; l < a; l++) {
  54292. var S = TZe[l];
  54293. S[0] = n[o++], S[1] = n[o++], oi(S, S, e), n[s++] = S[0], n[s++] = S[1];
  54294. }
  54295. }
  54296. t.increaseVersion();
  54297. }
  54298. }
  54299. var oM = Math.sqrt, vS = Math.sin, gS = Math.cos, M0 = Math.PI;
  54300. function yG(t) {
  54301. return Math.sqrt(t[0] * t[0] + t[1] * t[1]);
  54302. }
  54303. function Ik(t, e) {
  54304. return (t[0] * e[0] + t[1] * e[1]) / (yG(t) * yG(e));
  54305. }
  54306. function bG(t, e) {
  54307. return (t[0] * e[1] < t[1] * e[0] ? -1 : 1) * Math.acos(Ik(t, e));
  54308. }
  54309. function _G(t, e, n, r, i, a, o, s, l, u, c) {
  54310. var f = l * (M0 / 180), d = gS(f) * (t - n) / 2 + vS(f) * (e - r) / 2, h = -1 * vS(f) * (t - n) / 2 + gS(f) * (e - r) / 2, p = d * d / (o * o) + h * h / (s * s);
  54311. p > 1 && (o *= oM(p), s *= oM(p));
  54312. var v = (i === a ? -1 : 1) * oM((o * o * (s * s) - o * o * (h * h) - s * s * (d * d)) / (o * o * (h * h) + s * s * (d * d))) || 0, g = v * o * h / s, m = v * -s * d / o, y = (t + n) / 2 + gS(f) * g - vS(f) * m, _ = (e + r) / 2 + vS(f) * g + gS(f) * m, O = bG([1, 0], [(d - g) / o, (h - m) / s]), S = [(d - g) / o, (h - m) / s], x = [(-1 * d - g) / o, (-1 * h - m) / s], C = bG(S, x);
  54313. if (Ik(S, x) <= -1 && (C = M0), Ik(S, x) >= 1 && (C = 0), C < 0) {
  54314. var P = Math.round(C / M0 * 1e6) / 1e6;
  54315. C = M0 * 2 + P % 2 * M0;
  54316. }
  54317. c.addData(u, y, _, o, s, O, C, f, a);
  54318. }
  54319. var $Ze = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig, AZe = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
  54320. function EZe(t) {
  54321. var e = new jl();
  54322. if (!t)
  54323. return e;
  54324. var n = 0, r = 0, i = n, a = r, o, s = jl.CMD, l = t.match($Ze);
  54325. if (!l)
  54326. return e;
  54327. for (var u = 0; u < l.length; u++) {
  54328. for (var c = l[u], f = c.charAt(0), d = void 0, h = c.match(AZe) || [], p = h.length, v = 0; v < p; v++)
  54329. h[v] = parseFloat(h[v]);
  54330. for (var g = 0; g < p; ) {
  54331. var m = void 0, y = void 0, _ = void 0, O = void 0, S = void 0, x = void 0, C = void 0, P = n, $ = r, T = void 0, E = void 0;
  54332. switch (f) {
  54333. case "l":
  54334. n += h[g++], r += h[g++], d = s.L, e.addData(d, n, r);
  54335. break;
  54336. case "L":
  54337. n = h[g++], r = h[g++], d = s.L, e.addData(d, n, r);
  54338. break;
  54339. case "m":
  54340. n += h[g++], r += h[g++], d = s.M, e.addData(d, n, r), i = n, a = r, f = "l";
  54341. break;
  54342. case "M":
  54343. n = h[g++], r = h[g++], d = s.M, e.addData(d, n, r), i = n, a = r, f = "L";
  54344. break;
  54345. case "h":
  54346. n += h[g++], d = s.L, e.addData(d, n, r);
  54347. break;
  54348. case "H":
  54349. n = h[g++], d = s.L, e.addData(d, n, r);
  54350. break;
  54351. case "v":
  54352. r += h[g++], d = s.L, e.addData(d, n, r);
  54353. break;
  54354. case "V":
  54355. r = h[g++], d = s.L, e.addData(d, n, r);
  54356. break;
  54357. case "C":
  54358. d = s.C, e.addData(d, h[g++], h[g++], h[g++], h[g++], h[g++], h[g++]), n = h[g - 2], r = h[g - 1];
  54359. break;
  54360. case "c":
  54361. d = s.C, e.addData(d, h[g++] + n, h[g++] + r, h[g++] + n, h[g++] + r, h[g++] + n, h[g++] + r), n += h[g - 2], r += h[g - 1];
  54362. break;
  54363. case "S":
  54364. m = n, y = r, T = e.len(), E = e.data, o === s.C && (m += n - E[T - 4], y += r - E[T - 3]), d = s.C, P = h[g++], $ = h[g++], n = h[g++], r = h[g++], e.addData(d, m, y, P, $, n, r);
  54365. break;
  54366. case "s":
  54367. m = n, y = r, T = e.len(), E = e.data, o === s.C && (m += n - E[T - 4], y += r - E[T - 3]), d = s.C, P = n + h[g++], $ = r + h[g++], n += h[g++], r += h[g++], e.addData(d, m, y, P, $, n, r);
  54368. break;
  54369. case "Q":
  54370. P = h[g++], $ = h[g++], n = h[g++], r = h[g++], d = s.Q, e.addData(d, P, $, n, r);
  54371. break;
  54372. case "q":
  54373. P = h[g++] + n, $ = h[g++] + r, n += h[g++], r += h[g++], d = s.Q, e.addData(d, P, $, n, r);
  54374. break;
  54375. case "T":
  54376. m = n, y = r, T = e.len(), E = e.data, o === s.Q && (m += n - E[T - 4], y += r - E[T - 3]), n = h[g++], r = h[g++], d = s.Q, e.addData(d, m, y, n, r);
  54377. break;
  54378. case "t":
  54379. m = n, y = r, T = e.len(), E = e.data, o === s.Q && (m += n - E[T - 4], y += r - E[T - 3]), n += h[g++], r += h[g++], d = s.Q, e.addData(d, m, y, n, r);
  54380. break;
  54381. case "A":
  54382. _ = h[g++], O = h[g++], S = h[g++], x = h[g++], C = h[g++], P = n, $ = r, n = h[g++], r = h[g++], d = s.A, _G(P, $, n, r, x, C, _, O, S, d, e);
  54383. break;
  54384. case "a":
  54385. _ = h[g++], O = h[g++], S = h[g++], x = h[g++], C = h[g++], P = n, $ = r, n += h[g++], r += h[g++], d = s.A, _G(P, $, n, r, x, C, _, O, S, d, e);
  54386. break;
  54387. }
  54388. }
  54389. (f === "z" || f === "Z") && (d = s.Z, e.addData(d), n = i, r = a), o = d;
  54390. }
  54391. return e.toStatic(), e;
  54392. }
  54393. var dle = function(t) {
  54394. le(e, t);
  54395. function e() {
  54396. return t !== null && t.apply(this, arguments) || this;
  54397. }
  54398. return e.prototype.applyTransform = function(n) {
  54399. }, e;
  54400. }(Dt);
  54401. function hle(t) {
  54402. return t.setData != null;
  54403. }
  54404. function ple(t, e) {
  54405. var n = EZe(t), r = _e({}, e);
  54406. return r.buildPath = function(i) {
  54407. if (hle(i)) {
  54408. i.setData(n.data);
  54409. var a = i.getContext();
  54410. a && i.rebuildPath(a, 1);
  54411. } else {
  54412. var a = i;
  54413. n.rebuildPath(a, 1);
  54414. }
  54415. }, r.applyTransform = function(i) {
  54416. fle(n, i), this.dirtyShape();
  54417. }, r;
  54418. }
  54419. function vle(t, e) {
  54420. return new dle(ple(t, e));
  54421. }
  54422. function MZe(t, e) {
  54423. var n = ple(t, e), r = function(i) {
  54424. le(a, i);
  54425. function a(o) {
  54426. var s = i.call(this, o) || this;
  54427. return s.applyTransform = n.applyTransform, s.buildPath = n.buildPath, s;
  54428. }
  54429. return a;
  54430. }(dle);
  54431. return r;
  54432. }
  54433. function IZe(t, e) {
  54434. for (var n = [], r = t.length, i = 0; i < r; i++) {
  54435. var a = t[i];
  54436. n.push(a.getUpdatedPathProxy(!0));
  54437. }
  54438. var o = new Dt(e);
  54439. return o.createPathProxy(), o.buildPath = function(s) {
  54440. if (hle(s)) {
  54441. s.appendPath(n);
  54442. var l = s.getContext();
  54443. l && s.rebuildPath(l, 1);
  54444. }
  54445. }, o;
  54446. }
  54447. function z5(t, e) {
  54448. e = e || {};
  54449. var n = new Dt();
  54450. return t.shape && n.setShape(t.shape), n.setStyle(t.style), e.bakeTransform ? fle(n.path, t.getComputedTransform()) : e.toLocal ? n.setLocalTransform(t.getComputedTransform()) : n.copyTransform(t), n.buildPath = t.buildPath, n.applyTransform = n.applyTransform, n.z = t.z, n.z2 = t.z2, n.zlevel = t.zlevel, n;
  54451. }
  54452. var DZe = /* @__PURE__ */ function() {
  54453. function t() {
  54454. this.cx = 0, this.cy = 0, this.r = 0;
  54455. }
  54456. return t;
  54457. }(), gle = function(t) {
  54458. le(e, t);
  54459. function e(n) {
  54460. return t.call(this, n) || this;
  54461. }
  54462. return e.prototype.getDefaultShape = function() {
  54463. return new DZe();
  54464. }, e.prototype.buildPath = function(n, r) {
  54465. n.moveTo(r.cx + r.r, r.cy), n.arc(r.cx, r.cy, r.r, 0, Math.PI * 2);
  54466. }, e;
  54467. }(Dt);
  54468. gle.prototype.type = "circle";
  54469. const ic = gle;
  54470. var RZe = /* @__PURE__ */ function() {
  54471. function t() {
  54472. this.cx = 0, this.cy = 0, this.rx = 0, this.ry = 0;
  54473. }
  54474. return t;
  54475. }(), mle = function(t) {
  54476. le(e, t);
  54477. function e(n) {
  54478. return t.call(this, n) || this;
  54479. }
  54480. return e.prototype.getDefaultShape = function() {
  54481. return new RZe();
  54482. }, e.prototype.buildPath = function(n, r) {
  54483. var i = 0.5522848, a = r.cx, o = r.cy, s = r.rx, l = r.ry, u = s * i, c = l * i;
  54484. n.moveTo(a - s, o), n.bezierCurveTo(a - s, o - c, a - u, o - l, a, o - l), n.bezierCurveTo(a + u, o - l, a + s, o - c, a + s, o), n.bezierCurveTo(a + s, o + c, a + u, o + l, a, o + l), n.bezierCurveTo(a - u, o + l, a - s, o + c, a - s, o), n.closePath();
  54485. }, e;
  54486. }(Dt);
  54487. mle.prototype.type = "ellipse";
  54488. const OP = mle;
  54489. var yle = Math.PI, sM = yle * 2, Od = Math.sin, Kp = Math.cos, kZe = Math.acos, Di = Math.atan2, OG = Math.abs, ib = Math.sqrt, my = Math.max, cl = Math.min, ws = 1e-4;
  54490. function LZe(t, e, n, r, i, a, o, s) {
  54491. var l = n - t, u = r - e, c = o - i, f = s - a, d = f * l - c * u;
  54492. if (!(d * d < ws))
  54493. return d = (c * (e - a) - f * (t - i)) / d, [t + d * l, e + d * u];
  54494. }
  54495. function mS(t, e, n, r, i, a, o) {
  54496. var s = t - n, l = e - r, u = (o ? a : -a) / ib(s * s + l * l), c = u * l, f = -u * s, d = t + c, h = e + f, p = n + c, v = r + f, g = (d + p) / 2, m = (h + v) / 2, y = p - d, _ = v - h, O = y * y + _ * _, S = i - a, x = d * v - p * h, C = (_ < 0 ? -1 : 1) * ib(my(0, S * S * O - x * x)), P = (x * _ - y * C) / O, $ = (-x * y - _ * C) / O, T = (x * _ + y * C) / O, E = (-x * y + _ * C) / O, M = P - g, R = $ - m, N = T - g, I = E - m;
  54497. return M * M + R * R > N * N + I * I && (P = T, $ = E), {
  54498. cx: P,
  54499. cy: $,
  54500. x0: -c,
  54501. y0: -f,
  54502. x1: P * (i / S - 1),
  54503. y1: $ * (i / S - 1)
  54504. };
  54505. }
  54506. function NZe(t) {
  54507. var e;
  54508. if (Se(t)) {
  54509. var n = t.length;
  54510. if (!n)
  54511. return t;
  54512. n === 1 ? e = [t[0], t[0], 0, 0] : n === 2 ? e = [t[0], t[0], t[1], t[1]] : n === 3 ? e = t.concat(t[2]) : e = t;
  54513. } else
  54514. e = [t, t, t, t];
  54515. return e;
  54516. }
  54517. function BZe(t, e) {
  54518. var n, r = my(e.r, 0), i = my(e.r0 || 0, 0), a = r > 0, o = i > 0;
  54519. if (!(!a && !o)) {
  54520. if (a || (r = i, i = 0), i > r) {
  54521. var s = r;
  54522. r = i, i = s;
  54523. }
  54524. var l = e.startAngle, u = e.endAngle;
  54525. if (!(isNaN(l) || isNaN(u))) {
  54526. var c = e.cx, f = e.cy, d = !!e.clockwise, h = OG(u - l), p = h > sM && h % sM;
  54527. if (p > ws && (h = p), !(r > ws))
  54528. t.moveTo(c, f);
  54529. else if (h > sM - ws)
  54530. t.moveTo(c + r * Kp(l), f + r * Od(l)), t.arc(c, f, r, l, u, !d), i > ws && (t.moveTo(c + i * Kp(u), f + i * Od(u)), t.arc(c, f, i, u, l, d));
  54531. else {
  54532. var v = void 0, g = void 0, m = void 0, y = void 0, _ = void 0, O = void 0, S = void 0, x = void 0, C = void 0, P = void 0, $ = void 0, T = void 0, E = void 0, M = void 0, R = void 0, N = void 0, I = r * Kp(l), B = r * Od(l), Q = i * Kp(u), W = i * Od(u), H = h > ws;
  54533. if (H) {
  54534. var U = e.cornerRadius;
  54535. U && (n = NZe(U), v = n[0], g = n[1], m = n[2], y = n[3]);
  54536. var j = OG(r - i) / 2;
  54537. if (_ = cl(j, m), O = cl(j, y), S = cl(j, v), x = cl(j, g), $ = C = my(_, O), T = P = my(S, x), (C > ws || P > ws) && (E = r * Kp(u), M = r * Od(u), R = i * Kp(l), N = i * Od(l), h < yle)) {
  54538. var Y = LZe(I, B, R, N, E, M, Q, W);
  54539. if (Y) {
  54540. var ne = I - Y[0], fe = B - Y[1], ue = E - Y[0], ye = M - Y[1], se = 1 / Od(kZe((ne * ue + fe * ye) / (ib(ne * ne + fe * fe) * ib(ue * ue + ye * ye))) / 2), he = ib(Y[0] * Y[0] + Y[1] * Y[1]);
  54541. $ = cl(C, (r - he) / (se + 1)), T = cl(P, (i - he) / (se - 1));
  54542. }
  54543. }
  54544. }
  54545. if (!H)
  54546. t.moveTo(c + I, f + B);
  54547. else if ($ > ws) {
  54548. var re = cl(m, $), q = cl(y, $), K = mS(R, N, I, B, r, re, d), de = mS(E, M, Q, W, r, q, d);
  54549. t.moveTo(c + K.cx + K.x0, f + K.cy + K.y0), $ < C && re === q ? t.arc(c + K.cx, f + K.cy, $, Di(K.y0, K.x0), Di(de.y0, de.x0), !d) : (re > 0 && t.arc(c + K.cx, f + K.cy, re, Di(K.y0, K.x0), Di(K.y1, K.x1), !d), t.arc(c, f, r, Di(K.cy + K.y1, K.cx + K.x1), Di(de.cy + de.y1, de.cx + de.x1), !d), q > 0 && t.arc(c + de.cx, f + de.cy, q, Di(de.y1, de.x1), Di(de.y0, de.x0), !d));
  54550. } else
  54551. t.moveTo(c + I, f + B), t.arc(c, f, r, l, u, !d);
  54552. if (!(i > ws) || !H)
  54553. t.lineTo(c + Q, f + W);
  54554. else if (T > ws) {
  54555. var re = cl(v, T), q = cl(g, T), K = mS(Q, W, E, M, i, -q, d), de = mS(I, B, R, N, i, -re, d);
  54556. t.lineTo(c + K.cx + K.x0, f + K.cy + K.y0), T < P && re === q ? t.arc(c + K.cx, f + K.cy, T, Di(K.y0, K.x0), Di(de.y0, de.x0), !d) : (q > 0 && t.arc(c + K.cx, f + K.cy, q, Di(K.y0, K.x0), Di(K.y1, K.x1), !d), t.arc(c, f, i, Di(K.cy + K.y1, K.cx + K.x1), Di(de.cy + de.y1, de.cx + de.x1), d), re > 0 && t.arc(c + de.cx, f + de.cy, re, Di(de.y1, de.x1), Di(de.y0, de.x0), !d));
  54557. } else
  54558. t.lineTo(c + Q, f + W), t.arc(c, f, i, u, l, d);
  54559. }
  54560. t.closePath();
  54561. }
  54562. }
  54563. }
  54564. var zZe = /* @__PURE__ */ function() {
  54565. function t() {
  54566. this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0, this.cornerRadius = 0;
  54567. }
  54568. return t;
  54569. }(), ble = function(t) {
  54570. le(e, t);
  54571. function e(n) {
  54572. return t.call(this, n) || this;
  54573. }
  54574. return e.prototype.getDefaultShape = function() {
  54575. return new zZe();
  54576. }, e.prototype.buildPath = function(n, r) {
  54577. BZe(n, r);
  54578. }, e.prototype.isZeroArea = function() {
  54579. return this.shape.startAngle === this.shape.endAngle || this.shape.r === this.shape.r0;
  54580. }, e;
  54581. }(Dt);
  54582. ble.prototype.type = "sector";
  54583. const ha = ble;
  54584. var VZe = /* @__PURE__ */ function() {
  54585. function t() {
  54586. this.cx = 0, this.cy = 0, this.r = 0, this.r0 = 0;
  54587. }
  54588. return t;
  54589. }(), _le = function(t) {
  54590. le(e, t);
  54591. function e(n) {
  54592. return t.call(this, n) || this;
  54593. }
  54594. return e.prototype.getDefaultShape = function() {
  54595. return new VZe();
  54596. }, e.prototype.buildPath = function(n, r) {
  54597. var i = r.cx, a = r.cy, o = Math.PI * 2;
  54598. n.moveTo(i + r.r, a), n.arc(i, a, r.r, 0, o, !1), n.moveTo(i + r.r0, a), n.arc(i, a, r.r0, 0, o, !0);
  54599. }, e;
  54600. }(Dt);
  54601. _le.prototype.type = "ring";
  54602. const c1 = _le;
  54603. function FZe(t, e, n, r) {
  54604. var i = [], a = [], o = [], s = [], l, u, c, f;
  54605. if (r) {
  54606. c = [1 / 0, 1 / 0], f = [-1 / 0, -1 / 0];
  54607. for (var d = 0, h = t.length; d < h; d++)
  54608. Cu(c, c, t[d]), Tu(f, f, t[d]);
  54609. Cu(c, c, r[0]), Tu(f, f, r[1]);
  54610. }
  54611. for (var d = 0, h = t.length; d < h; d++) {
  54612. var p = t[d];
  54613. if (n)
  54614. l = t[d ? d - 1 : h - 1], u = t[(d + 1) % h];
  54615. else if (d === 0 || d === h - 1) {
  54616. i.push(kl(t[d]));
  54617. continue;
  54618. } else
  54619. l = t[d - 1], u = t[d + 1];
  54620. Wc(a, u, l), Xy(a, a, e);
  54621. var v = OC(p, l), g = OC(p, u), m = v + g;
  54622. m !== 0 && (v /= m, g /= m), Xy(o, a, -v), Xy(s, a, g);
  54623. var y = nk([], p, o), _ = nk([], p, s);
  54624. r && (Tu(y, y, c), Cu(y, y, f), Tu(_, _, c), Cu(_, _, f)), i.push(y), i.push(_);
  54625. }
  54626. return n && i.push(i.shift()), i;
  54627. }
  54628. function Ole(t, e, n) {
  54629. var r = e.smooth, i = e.points;
  54630. if (i && i.length >= 2) {
  54631. if (r) {
  54632. var a = FZe(i, r, n, e.smoothConstraint);
  54633. t.moveTo(i[0][0], i[0][1]);
  54634. for (var o = i.length, s = 0; s < (n ? o : o - 1); s++) {
  54635. var l = a[s * 2], u = a[s * 2 + 1], c = i[(s + 1) % o];
  54636. t.bezierCurveTo(l[0], l[1], u[0], u[1], c[0], c[1]);
  54637. }
  54638. } else {
  54639. t.moveTo(i[0][0], i[0][1]);
  54640. for (var s = 1, f = i.length; s < f; s++)
  54641. t.lineTo(i[s][0], i[s][1]);
  54642. }
  54643. n && t.closePath();
  54644. }
  54645. }
  54646. var WZe = /* @__PURE__ */ function() {
  54647. function t() {
  54648. this.points = null, this.smooth = 0, this.smoothConstraint = null;
  54649. }
  54650. return t;
  54651. }(), Sle = function(t) {
  54652. le(e, t);
  54653. function e(n) {
  54654. return t.call(this, n) || this;
  54655. }
  54656. return e.prototype.getDefaultShape = function() {
  54657. return new WZe();
  54658. }, e.prototype.buildPath = function(n, r) {
  54659. Ole(n, r, !0);
  54660. }, e;
  54661. }(Dt);
  54662. Sle.prototype.type = "polygon";
  54663. const pa = Sle;
  54664. var QZe = /* @__PURE__ */ function() {
  54665. function t() {
  54666. this.points = null, this.percent = 1, this.smooth = 0, this.smoothConstraint = null;
  54667. }
  54668. return t;
  54669. }(), xle = function(t) {
  54670. le(e, t);
  54671. function e(n) {
  54672. return t.call(this, n) || this;
  54673. }
  54674. return e.prototype.getDefaultStyle = function() {
  54675. return {
  54676. stroke: "#000",
  54677. fill: null
  54678. };
  54679. }, e.prototype.getDefaultShape = function() {
  54680. return new QZe();
  54681. }, e.prototype.buildPath = function(n, r) {
  54682. Ole(n, r, !1);
  54683. }, e;
  54684. }(Dt);
  54685. xle.prototype.type = "polyline";
  54686. const va = xle;
  54687. var HZe = {}, GZe = /* @__PURE__ */ function() {
  54688. function t() {
  54689. this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
  54690. }
  54691. return t;
  54692. }(), wle = function(t) {
  54693. le(e, t);
  54694. function e(n) {
  54695. return t.call(this, n) || this;
  54696. }
  54697. return e.prototype.getDefaultStyle = function() {
  54698. return {
  54699. stroke: "#000",
  54700. fill: null
  54701. };
  54702. }, e.prototype.getDefaultShape = function() {
  54703. return new GZe();
  54704. }, e.prototype.buildPath = function(n, r) {
  54705. var i, a, o, s;
  54706. if (this.subPixelOptimize) {
  54707. var l = Yse(HZe, r, this.style);
  54708. i = l.x1, a = l.y1, o = l.x2, s = l.y2;
  54709. } else
  54710. i = r.x1, a = r.y1, o = r.x2, s = r.y2;
  54711. var u = r.percent;
  54712. u !== 0 && (n.moveTo(i, a), u < 1 && (o = i * (1 - u) + o * u, s = a * (1 - u) + s * u), n.lineTo(o, s));
  54713. }, e.prototype.pointAt = function(n) {
  54714. var r = this.shape;
  54715. return [
  54716. r.x1 * (1 - n) + r.x2 * n,
  54717. r.y1 * (1 - n) + r.y2 * n
  54718. ];
  54719. }, e;
  54720. }(Dt);
  54721. wle.prototype.type = "line";
  54722. const Xr = wle;
  54723. var _a = [], jZe = /* @__PURE__ */ function() {
  54724. function t() {
  54725. this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.percent = 1;
  54726. }
  54727. return t;
  54728. }();
  54729. function SG(t, e, n) {
  54730. var r = t.cpx2, i = t.cpy2;
  54731. return r != null || i != null ? [
  54732. (n ? TH : jr)(t.x1, t.cpx1, t.cpx2, t.x2, e),
  54733. (n ? TH : jr)(t.y1, t.cpy1, t.cpy2, t.y2, e)
  54734. ] : [
  54735. (n ? sk : ii)(t.x1, t.cpx1, t.x2, e),
  54736. (n ? sk : ii)(t.y1, t.cpy1, t.y2, e)
  54737. ];
  54738. }
  54739. var Cle = function(t) {
  54740. le(e, t);
  54741. function e(n) {
  54742. return t.call(this, n) || this;
  54743. }
  54744. return e.prototype.getDefaultStyle = function() {
  54745. return {
  54746. stroke: "#000",
  54747. fill: null
  54748. };
  54749. }, e.prototype.getDefaultShape = function() {
  54750. return new jZe();
  54751. }, e.prototype.buildPath = function(n, r) {
  54752. var i = r.x1, a = r.y1, o = r.x2, s = r.y2, l = r.cpx1, u = r.cpy1, c = r.cpx2, f = r.cpy2, d = r.percent;
  54753. d !== 0 && (n.moveTo(i, a), c == null || f == null ? (d < 1 && (Qb(i, l, o, d, _a), l = _a[1], o = _a[2], Qb(a, u, s, d, _a), u = _a[1], s = _a[2]), n.quadraticCurveTo(l, u, o, s)) : (d < 1 && (yf(i, l, c, o, d, _a), l = _a[1], c = _a[2], o = _a[3], yf(a, u, f, s, d, _a), u = _a[1], f = _a[2], s = _a[3]), n.bezierCurveTo(l, u, c, f, o, s)));
  54754. }, e.prototype.pointAt = function(n) {
  54755. return SG(this.shape, n, !1);
  54756. }, e.prototype.tangentAt = function(n) {
  54757. var r = SG(this.shape, n, !0);
  54758. return fp(r, r);
  54759. }, e;
  54760. }(Dt);
  54761. Cle.prototype.type = "bezier-curve";
  54762. const f1 = Cle;
  54763. var ZZe = /* @__PURE__ */ function() {
  54764. function t() {
  54765. this.cx = 0, this.cy = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0;
  54766. }
  54767. return t;
  54768. }(), Tle = function(t) {
  54769. le(e, t);
  54770. function e(n) {
  54771. return t.call(this, n) || this;
  54772. }
  54773. return e.prototype.getDefaultStyle = function() {
  54774. return {
  54775. stroke: "#000",
  54776. fill: null
  54777. };
  54778. }, e.prototype.getDefaultShape = function() {
  54779. return new ZZe();
  54780. }, e.prototype.buildPath = function(n, r) {
  54781. var i = r.cx, a = r.cy, o = Math.max(r.r, 0), s = r.startAngle, l = r.endAngle, u = r.clockwise, c = Math.cos(s), f = Math.sin(s);
  54782. n.moveTo(c * o + i, f * o + a), n.arc(i, a, o, s, l, !u);
  54783. }, e;
  54784. }(Dt);
  54785. Tle.prototype.type = "arc";
  54786. const SP = Tle;
  54787. var UZe = function(t) {
  54788. le(e, t);
  54789. function e() {
  54790. var n = t !== null && t.apply(this, arguments) || this;
  54791. return n.type = "compound", n;
  54792. }
  54793. return e.prototype._updatePathDirty = function() {
  54794. for (var n = this.shape.paths, r = this.shapeChanged(), i = 0; i < n.length; i++)
  54795. r = r || n[i].shapeChanged();
  54796. r && this.dirtyShape();
  54797. }, e.prototype.beforeBrush = function() {
  54798. this._updatePathDirty();
  54799. for (var n = this.shape.paths || [], r = this.getGlobalScale(), i = 0; i < n.length; i++)
  54800. n[i].path || n[i].createPathProxy(), n[i].path.setScale(r[0], r[1], n[i].segmentIgnoreThreshold);
  54801. }, e.prototype.buildPath = function(n, r) {
  54802. for (var i = r.paths || [], a = 0; a < i.length; a++)
  54803. i[a].buildPath(n, i[a].shape, !0);
  54804. }, e.prototype.afterBrush = function() {
  54805. for (var n = this.shape.paths || [], r = 0; r < n.length; r++)
  54806. n[r].pathUpdated();
  54807. }, e.prototype.getBoundingRect = function() {
  54808. return this._updatePathDirty.call(this), Dt.prototype.getBoundingRect.call(this);
  54809. }, e;
  54810. }(Dt);
  54811. const xP = UZe;
  54812. var Ple = function() {
  54813. function t(e) {
  54814. this.colorStops = e || [];
  54815. }
  54816. return t.prototype.addColorStop = function(e, n) {
  54817. this.colorStops.push({
  54818. offset: e,
  54819. color: n
  54820. });
  54821. }, t;
  54822. }(), XZe = function(t) {
  54823. le(e, t);
  54824. function e(n, r, i, a, o, s) {
  54825. var l = t.call(this, o) || this;
  54826. return l.x = n ?? 0, l.y = r ?? 0, l.x2 = i ?? 1, l.y2 = a ?? 0, l.type = "linear", l.global = s || !1, l;
  54827. }
  54828. return e;
  54829. }(Ple);
  54830. const _m = XZe;
  54831. var YZe = function(t) {
  54832. le(e, t);
  54833. function e(n, r, i, a, o) {
  54834. var s = t.call(this, a) || this;
  54835. return s.x = n ?? 0.5, s.y = r ?? 0.5, s.r = i ?? 0.5, s.type = "radial", s.global = o || !1, s;
  54836. }
  54837. return e;
  54838. }(Ple);
  54839. const V5 = YZe;
  54840. var Sd = [0, 0], xd = [0, 0], yS = new yt(), bS = new yt(), qZe = function() {
  54841. function t(e, n) {
  54842. this._corners = [], this._axes = [], this._origin = [0, 0];
  54843. for (var r = 0; r < 4; r++)
  54844. this._corners[r] = new yt();
  54845. for (var r = 0; r < 2; r++)
  54846. this._axes[r] = new yt();
  54847. e && this.fromBoundingRect(e, n);
  54848. }
  54849. return t.prototype.fromBoundingRect = function(e, n) {
  54850. var r = this._corners, i = this._axes, a = e.x, o = e.y, s = a + e.width, l = o + e.height;
  54851. if (r[0].set(a, o), r[1].set(s, o), r[2].set(s, l), r[3].set(a, l), n)
  54852. for (var u = 0; u < 4; u++)
  54853. r[u].transform(n);
  54854. yt.sub(i[0], r[1], r[0]), yt.sub(i[1], r[3], r[0]), i[0].normalize(), i[1].normalize();
  54855. for (var u = 0; u < 2; u++)
  54856. this._origin[u] = i[u].dot(r[0]);
  54857. }, t.prototype.intersect = function(e, n) {
  54858. var r = !0, i = !n;
  54859. return yS.set(1 / 0, 1 / 0), bS.set(0, 0), !this._intersectCheckOneSide(this, e, yS, bS, i, 1) && (r = !1, i) || !this._intersectCheckOneSide(e, this, yS, bS, i, -1) && (r = !1, i) || i || yt.copy(n, r ? yS : bS), r;
  54860. }, t.prototype._intersectCheckOneSide = function(e, n, r, i, a, o) {
  54861. for (var s = !0, l = 0; l < 2; l++) {
  54862. var u = this._axes[l];
  54863. if (this._getProjMinMaxOnAxis(l, e._corners, Sd), this._getProjMinMaxOnAxis(l, n._corners, xd), Sd[1] < xd[0] || Sd[0] > xd[1]) {
  54864. if (s = !1, a)
  54865. return s;
  54866. var c = Math.abs(xd[0] - Sd[1]), f = Math.abs(Sd[0] - xd[1]);
  54867. Math.min(c, f) > i.len() && (c < f ? yt.scale(i, u, -c * o) : yt.scale(i, u, f * o));
  54868. } else if (r) {
  54869. var c = Math.abs(xd[0] - Sd[1]), f = Math.abs(Sd[0] - xd[1]);
  54870. Math.min(c, f) < r.len() && (c < f ? yt.scale(r, u, c * o) : yt.scale(r, u, -f * o));
  54871. }
  54872. }
  54873. return s;
  54874. }, t.prototype._getProjMinMaxOnAxis = function(e, n, r) {
  54875. for (var i = this._axes[e], a = this._origin, o = n[0].dot(i) + a[e], s = o, l = o, u = 1; u < n.length; u++) {
  54876. var c = n[u].dot(i) + a[e];
  54877. s = Math.min(c, s), l = Math.max(c, l);
  54878. }
  54879. r[0] = s, r[1] = l;
  54880. }, t;
  54881. }();
  54882. const DC = qZe;
  54883. var KZe = [], JZe = function(t) {
  54884. le(e, t);
  54885. function e() {
  54886. var n = t !== null && t.apply(this, arguments) || this;
  54887. return n.notClear = !0, n.incremental = !0, n._displayables = [], n._temporaryDisplayables = [], n._cursor = 0, n;
  54888. }
  54889. return e.prototype.traverse = function(n, r) {
  54890. n.call(r, this);
  54891. }, e.prototype.useStyle = function() {
  54892. this.style = {};
  54893. }, e.prototype.getCursor = function() {
  54894. return this._cursor;
  54895. }, e.prototype.innerAfterBrush = function() {
  54896. this._cursor = this._displayables.length;
  54897. }, e.prototype.clearDisplaybles = function() {
  54898. this._displayables = [], this._temporaryDisplayables = [], this._cursor = 0, this.markRedraw(), this.notClear = !1;
  54899. }, e.prototype.clearTemporalDisplayables = function() {
  54900. this._temporaryDisplayables = [];
  54901. }, e.prototype.addDisplayable = function(n, r) {
  54902. r ? this._temporaryDisplayables.push(n) : this._displayables.push(n), this.markRedraw();
  54903. }, e.prototype.addDisplayables = function(n, r) {
  54904. r = r || !1;
  54905. for (var i = 0; i < n.length; i++)
  54906. this.addDisplayable(n[i], r);
  54907. }, e.prototype.getDisplayables = function() {
  54908. return this._displayables;
  54909. }, e.prototype.getTemporalDisplayables = function() {
  54910. return this._temporaryDisplayables;
  54911. }, e.prototype.eachPendingDisplayable = function(n) {
  54912. for (var r = this._cursor; r < this._displayables.length; r++)
  54913. n && n(this._displayables[r]);
  54914. for (var r = 0; r < this._temporaryDisplayables.length; r++)
  54915. n && n(this._temporaryDisplayables[r]);
  54916. }, e.prototype.update = function() {
  54917. this.updateTransform();
  54918. for (var n = this._cursor; n < this._displayables.length; n++) {
  54919. var r = this._displayables[n];
  54920. r.parent = this, r.update(), r.parent = null;
  54921. }
  54922. for (var n = 0; n < this._temporaryDisplayables.length; n++) {
  54923. var r = this._temporaryDisplayables[n];
  54924. r.parent = this, r.update(), r.parent = null;
  54925. }
  54926. }, e.prototype.getBoundingRect = function() {
  54927. if (!this._rect) {
  54928. for (var n = new bt(1 / 0, 1 / 0, -1 / 0, -1 / 0), r = 0; r < this._displayables.length; r++) {
  54929. var i = this._displayables[r], a = i.getBoundingRect().clone();
  54930. i.needLocalTransform() && a.applyTransform(i.getLocalTransform(KZe)), n.union(a);
  54931. }
  54932. this._rect = n;
  54933. }
  54934. return this._rect;
  54935. }, e.prototype.contain = function(n, r) {
  54936. var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
  54937. if (a.contain(i[0], i[1]))
  54938. for (var o = 0; o < this._displayables.length; o++) {
  54939. var s = this._displayables[o];
  54940. if (s.contain(n, r))
  54941. return !0;
  54942. }
  54943. return !1;
  54944. }, e;
  54945. }(ls);
  54946. const $le = JZe;
  54947. var Ale = Ut();
  54948. function Om(t, e, n, r, i) {
  54949. var a;
  54950. if (e && e.ecModel) {
  54951. var o = e.ecModel.getUpdatePayload();
  54952. a = o && o.animation;
  54953. }
  54954. var s = e && e.isAnimationEnabled(), l = t === "update";
  54955. if (s) {
  54956. var u = void 0, c = void 0, f = void 0;
  54957. r ? (u = dt(r.duration, 200), c = dt(r.easing, "cubicOut"), f = 0) : (u = e.getShallow(l ? "animationDurationUpdate" : "animationDuration"), c = e.getShallow(l ? "animationEasingUpdate" : "animationEasing"), f = e.getShallow(l ? "animationDelayUpdate" : "animationDelay")), a && (a.duration != null && (u = a.duration), a.easing != null && (c = a.easing), a.delay != null && (f = a.delay)), qe(f) && (f = f(n, i)), qe(u) && (u = u(n));
  54958. var d = {
  54959. duration: u || 0,
  54960. delay: f,
  54961. easing: c
  54962. };
  54963. return d;
  54964. } else
  54965. return null;
  54966. }
  54967. function F5(t, e, n, r, i, a, o) {
  54968. var s = !1, l;
  54969. qe(i) ? (o = a, a = i, i = null) : nt(i) && (a = i.cb, o = i.during, s = i.isFrom, l = i.removeOpt, i = i.dataIndex);
  54970. var u = t === "leave";
  54971. u || e.stopAnimation("leave");
  54972. var c = Om(t, r, i, u ? l || {} : null, r && r.getAnimationDelayParams ? r.getAnimationDelayParams(e, i) : null);
  54973. if (c && c.duration > 0) {
  54974. var f = c.duration, d = c.delay, h = c.easing, p = {
  54975. duration: f,
  54976. delay: d || 0,
  54977. easing: h,
  54978. done: a,
  54979. force: !!a || !!o,
  54980. // Set to final state in update/init animation.
  54981. // So the post processing based on the path shape can be done correctly.
  54982. setToFinal: !u,
  54983. scope: t,
  54984. during: o
  54985. };
  54986. s ? e.animateFrom(n, p) : e.animateTo(n, p);
  54987. } else
  54988. e.stopAnimation(), !s && e.attr(n), o && o(1), a && a();
  54989. }
  54990. function tn(t, e, n, r, i, a) {
  54991. F5("update", t, e, n, r, i, a);
  54992. }
  54993. function Vn(t, e, n, r, i, a) {
  54994. F5("enter", t, e, n, r, i, a);
  54995. }
  54996. function qv(t) {
  54997. if (!t.__zr)
  54998. return !0;
  54999. for (var e = 0; e < t.animators.length; e++) {
  55000. var n = t.animators[e];
  55001. if (n.scope === "leave")
  55002. return !0;
  55003. }
  55004. return !1;
  55005. }
  55006. function _f(t, e, n, r, i, a) {
  55007. qv(t) || F5("leave", t, e, n, r, i, a);
  55008. }
  55009. function xG(t, e, n, r) {
  55010. t.removeTextContent(), t.removeTextGuideLine(), _f(t, {
  55011. style: {
  55012. opacity: 0
  55013. }
  55014. }, e, n, r);
  55015. }
  55016. function Xb(t, e, n) {
  55017. function r() {
  55018. t.parent && t.parent.remove(t);
  55019. }
  55020. t.isGroup ? t.traverse(function(i) {
  55021. i.isGroup || xG(i, e, n, r);
  55022. }) : xG(t, e, n, r);
  55023. }
  55024. function Zs(t) {
  55025. Ale(t).oldStyle = t.style;
  55026. }
  55027. function eUe(t) {
  55028. return Ale(t).oldStyle;
  55029. }
  55030. var RC = Math.max, kC = Math.min, Dk = {};
  55031. function Ele(t) {
  55032. return Dt.extend(t);
  55033. }
  55034. var tUe = MZe;
  55035. function Mle(t, e) {
  55036. return tUe(t, e);
  55037. }
  55038. function ds(t, e) {
  55039. Dk[t] = e;
  55040. }
  55041. function wP(t) {
  55042. if (Dk.hasOwnProperty(t))
  55043. return Dk[t];
  55044. }
  55045. function d1(t, e, n, r) {
  55046. var i = vle(t, e);
  55047. return n && (r === "center" && (n = Ile(n, i.getBoundingRect())), Q5(i, n)), i;
  55048. }
  55049. function W5(t, e, n) {
  55050. var r = new ci({
  55051. style: {
  55052. image: t,
  55053. x: e.x,
  55054. y: e.y,
  55055. width: e.width,
  55056. height: e.height
  55057. },
  55058. onload: function(i) {
  55059. if (n === "center") {
  55060. var a = {
  55061. width: i.width,
  55062. height: i.height
  55063. };
  55064. r.setStyle(Ile(e, a));
  55065. }
  55066. }
  55067. });
  55068. return r;
  55069. }
  55070. function Ile(t, e) {
  55071. var n = e.width / e.height, r = t.height * n, i;
  55072. r <= t.width ? i = t.height : (r = t.width, i = r / n);
  55073. var a = t.x + t.width / 2, o = t.y + t.height / 2;
  55074. return {
  55075. x: a - r / 2,
  55076. y: o - i / 2,
  55077. width: r,
  55078. height: i
  55079. };
  55080. }
  55081. var no = IZe;
  55082. function Q5(t, e) {
  55083. if (t.applyTransform) {
  55084. var n = t.getBoundingRect(), r = n.calculateTransform(e);
  55085. t.applyTransform(r);
  55086. }
  55087. }
  55088. function Qg(t, e) {
  55089. return Yse(t, t, {
  55090. lineWidth: e
  55091. }), t;
  55092. }
  55093. function nUe(t) {
  55094. return qse(t.shape, t.shape, t.style), t;
  55095. }
  55096. var dw = ih;
  55097. function of(t, e) {
  55098. for (var n = i1([]); t && t !== e; )
  55099. Ll(n, t.getLocalTransform(), n), t = t.parent;
  55100. return n;
  55101. }
  55102. function zs(t, e, n) {
  55103. return e && !Pi(e) && (e = Pu.getLocalTransform(e)), n && (e = dp([], e)), oi([], t, e);
  55104. }
  55105. function CP(t, e, n) {
  55106. var r = e[4] === 0 || e[5] === 0 || e[0] === 0 ? 1 : Math.abs(2 * e[4] / e[0]), i = e[4] === 0 || e[5] === 0 || e[2] === 0 ? 1 : Math.abs(2 * e[4] / e[2]), a = [t === "left" ? -r : t === "right" ? r : 0, t === "top" ? -i : t === "bottom" ? i : 0];
  55107. return a = zs(a, e, n), Math.abs(a[0]) > Math.abs(a[1]) ? a[0] > 0 ? "right" : "left" : a[1] > 0 ? "bottom" : "top";
  55108. }
  55109. function wG(t) {
  55110. return !t.isGroup;
  55111. }
  55112. function rUe(t) {
  55113. return t.shape != null;
  55114. }
  55115. function h1(t, e, n) {
  55116. if (!t || !e)
  55117. return;
  55118. function r(o) {
  55119. var s = {};
  55120. return o.traverse(function(l) {
  55121. wG(l) && l.anid && (s[l.anid] = l);
  55122. }), s;
  55123. }
  55124. function i(o) {
  55125. var s = {
  55126. x: o.x,
  55127. y: o.y,
  55128. rotation: o.rotation
  55129. };
  55130. return rUe(o) && (s.shape = _e({}, o.shape)), s;
  55131. }
  55132. var a = r(t);
  55133. e.traverse(function(o) {
  55134. if (wG(o) && o.anid) {
  55135. var s = a[o.anid];
  55136. if (s) {
  55137. var l = i(o);
  55138. o.attr(i(s)), tn(o, l, n, ft(o).dataIndex);
  55139. }
  55140. }
  55141. });
  55142. }
  55143. function H5(t, e) {
  55144. return Ce(t, function(n) {
  55145. var r = n[0];
  55146. r = RC(r, e.x), r = kC(r, e.x + e.width);
  55147. var i = n[1];
  55148. return i = RC(i, e.y), i = kC(i, e.y + e.height), [r, i];
  55149. });
  55150. }
  55151. function Dle(t, e) {
  55152. var n = RC(t.x, e.x), r = kC(t.x + t.width, e.x + e.width), i = RC(t.y, e.y), a = kC(t.y + t.height, e.y + e.height);
  55153. if (r >= n && a >= i)
  55154. return {
  55155. x: n,
  55156. y: i,
  55157. width: r - n,
  55158. height: a - i
  55159. };
  55160. }
  55161. function Sm(t, e, n) {
  55162. var r = _e({
  55163. rectHover: !0
  55164. }, e), i = r.style = {
  55165. strokeNoScale: !0
  55166. };
  55167. if (n = n || {
  55168. x: -1,
  55169. y: -1,
  55170. width: 2,
  55171. height: 2
  55172. }, t)
  55173. return t.indexOf("image://") === 0 ? (i.image = t.slice(8), it(i, n), new ci(r)) : d1(t.replace("path://", ""), r, n, "center");
  55174. }
  55175. function yy(t, e, n, r, i) {
  55176. for (var a = 0, o = i[i.length - 1]; a < i.length; a++) {
  55177. var s = i[a];
  55178. if (Rle(t, e, n, r, s[0], s[1], o[0], o[1]))
  55179. return !0;
  55180. o = s;
  55181. }
  55182. }
  55183. function Rle(t, e, n, r, i, a, o, s) {
  55184. var l = n - t, u = r - e, c = o - i, f = s - a, d = lM(c, f, l, u);
  55185. if (iUe(d))
  55186. return !1;
  55187. var h = t - i, p = e - a, v = lM(h, p, l, u) / d;
  55188. if (v < 0 || v > 1)
  55189. return !1;
  55190. var g = lM(h, p, c, f) / d;
  55191. return !(g < 0 || g > 1);
  55192. }
  55193. function lM(t, e, n, r) {
  55194. return t * r - n * e;
  55195. }
  55196. function iUe(t) {
  55197. return t <= 1e-6 && t >= -1e-6;
  55198. }
  55199. function xm(t) {
  55200. var e = t.itemTooltipOption, n = t.componentModel, r = t.itemName, i = Ve(e) ? {
  55201. formatter: e
  55202. } : e, a = n.mainType, o = n.componentIndex, s = {
  55203. componentType: a,
  55204. name: r,
  55205. $vars: ["name"]
  55206. };
  55207. s[a + "Index"] = o;
  55208. var l = t.formatterParamsExtra;
  55209. l && F(kt(l), function(c) {
  55210. Qe(s, c) || (s[c] = l[c], s.$vars.push(c));
  55211. });
  55212. var u = ft(t.el);
  55213. u.componentMainType = a, u.componentIndex = o, u.tooltipConfig = {
  55214. name: r,
  55215. option: it({
  55216. content: r,
  55217. encodeHTMLContent: !0,
  55218. formatterParams: s
  55219. }, i)
  55220. };
  55221. }
  55222. function CG(t, e) {
  55223. var n;
  55224. t.isGroup && (n = e(t)), n || t.traverse(e);
  55225. }
  55226. function Nf(t, e) {
  55227. if (t)
  55228. if (Se(t))
  55229. for (var n = 0; n < t.length; n++)
  55230. CG(t[n], e);
  55231. else
  55232. CG(t, e);
  55233. }
  55234. ds("circle", ic);
  55235. ds("ellipse", OP);
  55236. ds("sector", ha);
  55237. ds("ring", c1);
  55238. ds("polygon", pa);
  55239. ds("polyline", va);
  55240. ds("rect", Zt);
  55241. ds("line", Xr);
  55242. ds("bezierCurve", f1);
  55243. ds("arc", SP);
  55244. const hp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  55245. __proto__: null,
  55246. Arc: SP,
  55247. BezierCurve: f1,
  55248. BoundingRect: bt,
  55249. Circle: ic,
  55250. CompoundPath: xP,
  55251. Ellipse: OP,
  55252. Group: ct,
  55253. Image: ci,
  55254. IncrementalDisplayable: $le,
  55255. Line: Xr,
  55256. LinearGradient: _m,
  55257. OrientedBoundingRect: DC,
  55258. Path: Dt,
  55259. Point: yt,
  55260. Polygon: pa,
  55261. Polyline: va,
  55262. RadialGradient: V5,
  55263. Rect: Zt,
  55264. Ring: c1,
  55265. Sector: ha,
  55266. Text: jt,
  55267. applyTransform: zs,
  55268. clipPointsByRect: H5,
  55269. clipRectByRect: Dle,
  55270. createIcon: Sm,
  55271. extendPath: Mle,
  55272. extendShape: Ele,
  55273. getShapeClass: wP,
  55274. getTransform: of,
  55275. groupTransition: h1,
  55276. initProps: Vn,
  55277. isElementRemoved: qv,
  55278. lineLineIntersect: Rle,
  55279. linePolygonIntersect: yy,
  55280. makeImage: W5,
  55281. makePath: d1,
  55282. mergePath: no,
  55283. registerShape: ds,
  55284. removeElement: _f,
  55285. removeElementWithFadeOut: Xb,
  55286. resizePath: Q5,
  55287. setTooltipConfig: xm,
  55288. subPixelOptimize: dw,
  55289. subPixelOptimizeLine: Qg,
  55290. subPixelOptimizeRect: nUe,
  55291. transformDirection: CP,
  55292. traverseElements: Nf,
  55293. updateProps: tn
  55294. }, Symbol.toStringTag, { value: "Module" }));
  55295. var TP = {};
  55296. function kle(t, e) {
  55297. for (var n = 0; n < da.length; n++) {
  55298. var r = da[n], i = e[r], a = t.ensureState(r);
  55299. a.style = a.style || {}, a.style.text = i;
  55300. }
  55301. var o = t.currentStates.slice();
  55302. t.clearStates(!0), t.setStyle({
  55303. text: e.normal
  55304. }), t.useStates(o, !0);
  55305. }
  55306. function Rk(t, e, n) {
  55307. var r = t.labelFetcher, i = t.labelDataIndex, a = t.labelDimIndex, o = e.normal, s;
  55308. r && (s = r.getFormattedLabel(i, "normal", null, a, o && o.get("formatter"), n != null ? {
  55309. interpolatedValue: n
  55310. } : null)), s == null && (s = qe(t.defaultText) ? t.defaultText(i, t, n) : t.defaultText);
  55311. for (var l = {
  55312. normal: s
  55313. }, u = 0; u < da.length; u++) {
  55314. var c = da[u], f = e[c];
  55315. l[c] = dt(r ? r.getFormattedLabel(i, c, null, a, f && f.get("formatter")) : null, s);
  55316. }
  55317. return l;
  55318. }
  55319. function Ei(t, e, n, r) {
  55320. n = n || TP;
  55321. for (var i = t instanceof jt, a = !1, o = 0; o < Ub.length; o++) {
  55322. var s = e[Ub[o]];
  55323. if (s && s.getShallow("show")) {
  55324. a = !0;
  55325. break;
  55326. }
  55327. }
  55328. var l = i ? t : t.getTextContent();
  55329. if (a) {
  55330. i || (l || (l = new jt(), t.setTextContent(l)), t.stateProxy && (l.stateProxy = t.stateProxy));
  55331. var u = Rk(n, e), c = e.normal, f = !!c.getShallow("show"), d = Mn(c, r && r.normal, n, !1, !i);
  55332. d.text = u.normal, i || t.setTextConfig(LC(c, n, !1));
  55333. for (var o = 0; o < da.length; o++) {
  55334. var h = da[o], s = e[h];
  55335. if (s) {
  55336. var p = l.ensureState(h), v = !!dt(s.getShallow("show"), f);
  55337. if (v !== f && (p.ignore = !v), p.style = Mn(s, r && r[h], n, !0, !i), p.style.text = u[h], !i) {
  55338. var g = t.ensureState(h);
  55339. g.textConfig = LC(s, n, !0);
  55340. }
  55341. }
  55342. }
  55343. l.silent = !!c.getShallow("silent"), l.style.x != null && (d.x = l.style.x), l.style.y != null && (d.y = l.style.y), l.ignore = !f, l.useStyle(d), l.dirty(), n.enableTextSetter && (wm(l).setLabelText = function(m) {
  55344. var y = Rk(n, e, m);
  55345. kle(l, y);
  55346. });
  55347. } else l && (l.ignore = !0);
  55348. t.dirty();
  55349. }
  55350. function ei(t, e) {
  55351. e = e || "label";
  55352. for (var n = {
  55353. normal: t.getModel(e)
  55354. }, r = 0; r < da.length; r++) {
  55355. var i = da[r];
  55356. n[i] = t.getModel([i, e]);
  55357. }
  55358. return n;
  55359. }
  55360. function Mn(t, e, n, r, i) {
  55361. var a = {};
  55362. return aUe(a, t, n, r, i), e && _e(a, e), a;
  55363. }
  55364. function LC(t, e, n) {
  55365. e = e || {};
  55366. var r = {}, i, a = t.getShallow("rotate"), o = dt(t.getShallow("distance"), n ? null : 5), s = t.getShallow("offset");
  55367. return i = t.getShallow("position") || (n ? null : "inside"), i === "outside" && (i = e.defaultOutsidePosition || "top"), i != null && (r.position = i), s != null && (r.offset = s), a != null && (a *= Math.PI / 180, r.rotation = a), o != null && (r.distance = o), r.outsideFill = t.get("color") === "inherit" ? e.inheritColor || null : "auto", r;
  55368. }
  55369. function aUe(t, e, n, r, i) {
  55370. n = n || TP;
  55371. var a = e.ecModel, o = a && a.option.textStyle, s = oUe(e), l;
  55372. if (s) {
  55373. l = {};
  55374. for (var u in s)
  55375. if (s.hasOwnProperty(u)) {
  55376. var c = e.getModel(["rich", u]);
  55377. AG(l[u] = {}, c, o, n, r, i, !1, !0);
  55378. }
  55379. }
  55380. l && (t.rich = l);
  55381. var f = e.get("overflow");
  55382. f && (t.overflow = f);
  55383. var d = e.get("minMargin");
  55384. d != null && (t.margin = d), AG(t, e, o, n, r, i, !0, !1);
  55385. }
  55386. function oUe(t) {
  55387. for (var e; t && t !== t.ecModel; ) {
  55388. var n = (t.option || TP).rich;
  55389. if (n) {
  55390. e = e || {};
  55391. for (var r = kt(n), i = 0; i < r.length; i++) {
  55392. var a = r[i];
  55393. e[a] = 1;
  55394. }
  55395. }
  55396. t = t.parentModel;
  55397. }
  55398. return e;
  55399. }
  55400. var TG = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], PG = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"], $G = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"];
  55401. function AG(t, e, n, r, i, a, o, s) {
  55402. n = !i && n || TP;
  55403. var l = r && r.inheritColor, u = e.getShallow("color"), c = e.getShallow("textBorderColor"), f = dt(e.getShallow("opacity"), n.opacity);
  55404. (u === "inherit" || u === "auto") && (process.env.NODE_ENV !== "production" && u === "auto" && _r("color: 'auto'", "color: 'inherit'"), l ? u = l : u = null), (c === "inherit" || c === "auto") && (process.env.NODE_ENV !== "production" && c === "auto" && _r("color: 'auto'", "color: 'inherit'"), l ? c = l : c = null), a || (u = u || n.color, c = c || n.textBorderColor), u != null && (t.fill = u), c != null && (t.stroke = c);
  55405. var d = dt(e.getShallow("textBorderWidth"), n.textBorderWidth);
  55406. d != null && (t.lineWidth = d);
  55407. var h = dt(e.getShallow("textBorderType"), n.textBorderType);
  55408. h != null && (t.lineDash = h);
  55409. var p = dt(e.getShallow("textBorderDashOffset"), n.textBorderDashOffset);
  55410. p != null && (t.lineDashOffset = p), !i && f == null && !s && (f = r && r.defaultOpacity), f != null && (t.opacity = f), !i && !a && t.fill == null && r.inheritColor && (t.fill = r.inheritColor);
  55411. for (var v = 0; v < TG.length; v++) {
  55412. var g = TG[v], m = dt(e.getShallow(g), n[g]);
  55413. m != null && (t[g] = m);
  55414. }
  55415. for (var v = 0; v < PG.length; v++) {
  55416. var g = PG[v], m = e.getShallow(g);
  55417. m != null && (t[g] = m);
  55418. }
  55419. if (t.verticalAlign == null) {
  55420. var y = e.getShallow("baseline");
  55421. y != null && (t.verticalAlign = y);
  55422. }
  55423. if (!o || !r.disableBox) {
  55424. for (var v = 0; v < $G.length; v++) {
  55425. var g = $G[v], m = e.getShallow(g);
  55426. m != null && (t[g] = m);
  55427. }
  55428. var _ = e.getShallow("borderType");
  55429. _ != null && (t.borderDash = _), (t.backgroundColor === "auto" || t.backgroundColor === "inherit") && l && (process.env.NODE_ENV !== "production" && t.backgroundColor === "auto" && _r("backgroundColor: 'auto'", "backgroundColor: 'inherit'"), t.backgroundColor = l), (t.borderColor === "auto" || t.borderColor === "inherit") && l && (process.env.NODE_ENV !== "production" && t.borderColor === "auto" && _r("borderColor: 'auto'", "borderColor: 'inherit'"), t.borderColor = l);
  55430. }
  55431. }
  55432. function G5(t, e) {
  55433. var n = e && e.getModel("textStyle");
  55434. return Zo([
  55435. // FIXME in node-canvas fontWeight is before fontStyle
  55436. t.fontStyle || n && n.getShallow("fontStyle") || "",
  55437. t.fontWeight || n && n.getShallow("fontWeight") || "",
  55438. (t.fontSize || n && n.getShallow("fontSize") || 12) + "px",
  55439. t.fontFamily || n && n.getShallow("fontFamily") || "sans-serif"
  55440. ].join(" "));
  55441. }
  55442. var wm = Ut();
  55443. function Lle(t, e, n, r) {
  55444. if (t) {
  55445. var i = wm(t);
  55446. i.prevValue = i.value, i.value = n;
  55447. var a = e.normal;
  55448. i.valueAnimation = a.get("valueAnimation"), i.valueAnimation && (i.precision = a.get("precision"), i.defaultInterpolatedText = r, i.statesModels = e);
  55449. }
  55450. }
  55451. function Nle(t, e, n, r, i) {
  55452. var a = wm(t);
  55453. if (!a.valueAnimation || a.prevValue === a.value)
  55454. return;
  55455. var o = a.defaultInterpolatedText, s = dt(a.interpolatedValue, a.prevValue), l = a.value;
  55456. function u(c) {
  55457. var f = Vse(n, a.precision, s, l, c);
  55458. a.interpolatedValue = c === 1 ? null : f;
  55459. var d = Rk({
  55460. labelDataIndex: e,
  55461. labelFetcher: i,
  55462. defaultText: o ? o(f) : f + ""
  55463. }, a.statesModels, f);
  55464. kle(t, d);
  55465. }
  55466. t.percent = 0, (a.prevValue == null ? Vn : tn)(t, {
  55467. // percent is used to prevent animation from being aborted #15916
  55468. percent: 1
  55469. }, r, e, null, u);
  55470. }
  55471. var sUe = ["textStyle", "color"], uM = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "padding", "lineHeight", "rich", "width", "height", "overflow"], cM = new jt(), lUe = (
  55472. /** @class */
  55473. function() {
  55474. function t() {
  55475. }
  55476. return t.prototype.getTextColor = function(e) {
  55477. var n = this.ecModel;
  55478. return this.getShallow("color") || (!e && n ? n.get(sUe) : null);
  55479. }, t.prototype.getFont = function() {
  55480. return G5({
  55481. fontStyle: this.getShallow("fontStyle"),
  55482. fontWeight: this.getShallow("fontWeight"),
  55483. fontSize: this.getShallow("fontSize"),
  55484. fontFamily: this.getShallow("fontFamily")
  55485. }, this.ecModel);
  55486. }, t.prototype.getTextRect = function(e) {
  55487. for (var n = {
  55488. text: e,
  55489. verticalAlign: this.getShallow("verticalAlign") || this.getShallow("baseline")
  55490. }, r = 0; r < uM.length; r++)
  55491. n[uM[r]] = this.getShallow(uM[r]);
  55492. return cM.useStyle(n), cM.update(), cM.getBoundingRect();
  55493. }, t;
  55494. }()
  55495. ), Ble = [
  55496. ["lineWidth", "width"],
  55497. ["stroke", "color"],
  55498. ["opacity"],
  55499. ["shadowBlur"],
  55500. ["shadowOffsetX"],
  55501. ["shadowOffsetY"],
  55502. ["shadowColor"],
  55503. ["lineDash", "type"],
  55504. ["lineDashOffset", "dashOffset"],
  55505. ["lineCap", "cap"],
  55506. ["lineJoin", "join"],
  55507. ["miterLimit"]
  55508. // Option decal is in `DecalObject` but style.decal is in `PatternObject`.
  55509. // So do not transfer decal directly.
  55510. ], uUe = jh(Ble), cUe = (
  55511. /** @class */
  55512. function() {
  55513. function t() {
  55514. }
  55515. return t.prototype.getLineStyle = function(e) {
  55516. return uUe(this, e);
  55517. }, t;
  55518. }()
  55519. ), zle = [
  55520. ["fill", "color"],
  55521. ["stroke", "borderColor"],
  55522. ["lineWidth", "borderWidth"],
  55523. ["opacity"],
  55524. ["shadowBlur"],
  55525. ["shadowOffsetX"],
  55526. ["shadowOffsetY"],
  55527. ["shadowColor"],
  55528. ["lineDash", "borderType"],
  55529. ["lineDashOffset", "borderDashOffset"],
  55530. ["lineCap", "borderCap"],
  55531. ["lineJoin", "borderJoin"],
  55532. ["miterLimit", "borderMiterLimit"]
  55533. // Option decal is in `DecalObject` but style.decal is in `PatternObject`.
  55534. // So do not transfer decal directly.
  55535. ], fUe = jh(zle), dUe = (
  55536. /** @class */
  55537. function() {
  55538. function t() {
  55539. }
  55540. return t.prototype.getItemStyle = function(e, n) {
  55541. return fUe(this, e, n);
  55542. }, t;
  55543. }()
  55544. ), pp = (
  55545. /** @class */
  55546. function() {
  55547. function t(e, n, r) {
  55548. this.parentModel = n, this.ecModel = r, this.option = e;
  55549. }
  55550. return t.prototype.init = function(e, n, r) {
  55551. }, t.prototype.mergeOption = function(e, n) {
  55552. mt(this.option, e, !0);
  55553. }, t.prototype.get = function(e, n) {
  55554. return e == null ? this.option : this._doGet(this.parsePath(e), !n && this.parentModel);
  55555. }, t.prototype.getShallow = function(e, n) {
  55556. var r = this.option, i = r == null ? r : r[e];
  55557. if (i == null && !n) {
  55558. var a = this.parentModel;
  55559. a && (i = a.getShallow(e));
  55560. }
  55561. return i;
  55562. }, t.prototype.getModel = function(e, n) {
  55563. var r = e != null, i = r ? this.parsePath(e) : null, a = r ? this._doGet(i) : this.option;
  55564. return n = n || this.parentModel && this.parentModel.getModel(this.resolveParentPath(i)), new t(a, n, this.ecModel);
  55565. }, t.prototype.isEmpty = function() {
  55566. return this.option == null;
  55567. }, t.prototype.restoreData = function() {
  55568. }, t.prototype.clone = function() {
  55569. var e = this.constructor;
  55570. return new e(ot(this.option));
  55571. }, t.prototype.parsePath = function(e) {
  55572. return typeof e == "string" ? e.split(".") : e;
  55573. }, t.prototype.resolveParentPath = function(e) {
  55574. return e;
  55575. }, t.prototype.isAnimationEnabled = function() {
  55576. if (!Gt.node && this.option) {
  55577. if (this.option.animation != null)
  55578. return !!this.option.animation;
  55579. if (this.parentModel)
  55580. return this.parentModel.isAnimationEnabled();
  55581. }
  55582. }, t.prototype._doGet = function(e, n) {
  55583. var r = this.option;
  55584. if (!e)
  55585. return r;
  55586. for (var i = 0; i < e.length && !(e[i] && (r = r && typeof r == "object" ? r[e[i]] : null, r == null)); i++)
  55587. ;
  55588. return r == null && n && (r = n._doGet(this.resolveParentPath(e), n.parentModel)), r;
  55589. }, t;
  55590. }()
  55591. );
  55592. M5(pp);
  55593. _je(pp);
  55594. vr(pp, cUe);
  55595. vr(pp, dUe);
  55596. vr(pp, Cje);
  55597. vr(pp, lUe);
  55598. const wn = pp;
  55599. var hUe = Math.round(Math.random() * 10);
  55600. function Cm(t) {
  55601. return [t || "", hUe++].join("_");
  55602. }
  55603. function pUe(t) {
  55604. var e = {};
  55605. t.registerSubTypeDefaulter = function(n, r) {
  55606. var i = $l(n);
  55607. e[i.main] = r;
  55608. }, t.determineSubType = function(n, r) {
  55609. var i = r.type;
  55610. if (!i) {
  55611. var a = $l(n).main;
  55612. t.hasSubTypes(n) && e[a] && (i = e[a](r));
  55613. }
  55614. return i;
  55615. };
  55616. }
  55617. function vUe(t, e) {
  55618. t.topologicalTravel = function(a, o, s, l) {
  55619. if (!a.length)
  55620. return;
  55621. var u = n(o), c = u.graph, f = u.noEntryList, d = {};
  55622. for (F(a, function(y) {
  55623. d[y] = !0;
  55624. }); f.length; ) {
  55625. var h = f.pop(), p = c[h], v = !!d[h];
  55626. v && (s.call(l, h, p.originalDeps.slice()), delete d[h]), F(p.successor, v ? m : g);
  55627. }
  55628. F(d, function() {
  55629. var y = "";
  55630. throw process.env.NODE_ENV !== "production" && (y = fa("Circular dependency may exists: ", d, a, o)), new Error(y);
  55631. });
  55632. function g(y) {
  55633. c[y].entryCount--, c[y].entryCount === 0 && f.push(y);
  55634. }
  55635. function m(y) {
  55636. d[y] = !0, g(y);
  55637. }
  55638. };
  55639. function n(a) {
  55640. var o = {}, s = [];
  55641. return F(a, function(l) {
  55642. var u = r(o, l), c = u.originalDeps = e(l), f = i(c, a);
  55643. u.entryCount = f.length, u.entryCount === 0 && s.push(l), F(f, function(d) {
  55644. St(u.predecessor, d) < 0 && u.predecessor.push(d);
  55645. var h = r(o, d);
  55646. St(h.successor, d) < 0 && h.successor.push(l);
  55647. });
  55648. }), {
  55649. graph: o,
  55650. noEntryList: s
  55651. };
  55652. }
  55653. function r(a, o) {
  55654. return a[o] || (a[o] = {
  55655. predecessor: [],
  55656. successor: []
  55657. }), a[o];
  55658. }
  55659. function i(a, o) {
  55660. var s = [];
  55661. return F(a, function(l) {
  55662. St(o, l) >= 0 && s.push(l);
  55663. }), s;
  55664. }
  55665. }
  55666. function Bf(t, e) {
  55667. return mt(mt({}, t, !0), e, !0);
  55668. }
  55669. const gUe = {
  55670. time: {
  55671. month: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  55672. monthAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  55673. dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  55674. dayOfWeekAbbr: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
  55675. },
  55676. legend: {
  55677. selector: {
  55678. all: "All",
  55679. inverse: "Inv"
  55680. }
  55681. },
  55682. toolbox: {
  55683. brush: {
  55684. title: {
  55685. rect: "Box Select",
  55686. polygon: "Lasso Select",
  55687. lineX: "Horizontally Select",
  55688. lineY: "Vertically Select",
  55689. keep: "Keep Selections",
  55690. clear: "Clear Selections"
  55691. }
  55692. },
  55693. dataView: {
  55694. title: "Data View",
  55695. lang: ["Data View", "Close", "Refresh"]
  55696. },
  55697. dataZoom: {
  55698. title: {
  55699. zoom: "Zoom",
  55700. back: "Zoom Reset"
  55701. }
  55702. },
  55703. magicType: {
  55704. title: {
  55705. line: "Switch to Line Chart",
  55706. bar: "Switch to Bar Chart",
  55707. stack: "Stack",
  55708. tiled: "Tile"
  55709. }
  55710. },
  55711. restore: {
  55712. title: "Restore"
  55713. },
  55714. saveAsImage: {
  55715. title: "Save as Image",
  55716. lang: ["Right Click to Save Image"]
  55717. }
  55718. },
  55719. series: {
  55720. typeNames: {
  55721. pie: "Pie chart",
  55722. bar: "Bar chart",
  55723. line: "Line chart",
  55724. scatter: "Scatter plot",
  55725. effectScatter: "Ripple scatter plot",
  55726. radar: "Radar chart",
  55727. tree: "Tree",
  55728. treemap: "Treemap",
  55729. boxplot: "Boxplot",
  55730. candlestick: "Candlestick",
  55731. k: "K line chart",
  55732. heatmap: "Heat map",
  55733. map: "Map",
  55734. parallel: "Parallel coordinate map",
  55735. lines: "Line graph",
  55736. graph: "Relationship graph",
  55737. sankey: "Sankey diagram",
  55738. funnel: "Funnel chart",
  55739. gauge: "Gauge",
  55740. pictorialBar: "Pictorial bar",
  55741. themeRiver: "Theme River Map",
  55742. sunburst: "Sunburst",
  55743. custom: "Custom chart",
  55744. chart: "Chart"
  55745. }
  55746. },
  55747. aria: {
  55748. general: {
  55749. withTitle: 'This is a chart about "{title}"',
  55750. withoutTitle: "This is a chart"
  55751. },
  55752. series: {
  55753. single: {
  55754. prefix: "",
  55755. withName: " with type {seriesType} named {seriesName}.",
  55756. withoutName: " with type {seriesType}."
  55757. },
  55758. multiple: {
  55759. prefix: ". It consists of {seriesCount} series count.",
  55760. withName: " The {seriesId} series is a {seriesType} representing {seriesName}.",
  55761. withoutName: " The {seriesId} series is a {seriesType}.",
  55762. separator: {
  55763. middle: "",
  55764. end: ""
  55765. }
  55766. }
  55767. },
  55768. data: {
  55769. allData: "The data is as follows: ",
  55770. partialData: "The first {displayCnt} items are: ",
  55771. withName: "the data for {name} is {value}",
  55772. withoutName: "{value}",
  55773. separator: {
  55774. middle: ", ",
  55775. end: ". "
  55776. }
  55777. }
  55778. }
  55779. }, mUe = {
  55780. time: {
  55781. month: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
  55782. monthAbbr: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
  55783. dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
  55784. dayOfWeekAbbr: ["日", "一", "二", "三", "四", "五", "六"]
  55785. },
  55786. legend: {
  55787. selector: {
  55788. all: "全选",
  55789. inverse: "反选"
  55790. }
  55791. },
  55792. toolbox: {
  55793. brush: {
  55794. title: {
  55795. rect: "矩形选择",
  55796. polygon: "圈选",
  55797. lineX: "横向选择",
  55798. lineY: "纵向选择",
  55799. keep: "保持选择",
  55800. clear: "清除选择"
  55801. }
  55802. },
  55803. dataView: {
  55804. title: "数据视图",
  55805. lang: ["数据视图", "关闭", "刷新"]
  55806. },
  55807. dataZoom: {
  55808. title: {
  55809. zoom: "区域缩放",
  55810. back: "区域缩放还原"
  55811. }
  55812. },
  55813. magicType: {
  55814. title: {
  55815. line: "切换为折线图",
  55816. bar: "切换为柱状图",
  55817. stack: "切换为堆叠",
  55818. tiled: "切换为平铺"
  55819. }
  55820. },
  55821. restore: {
  55822. title: "还原"
  55823. },
  55824. saveAsImage: {
  55825. title: "保存为图片",
  55826. lang: ["右键另存为图片"]
  55827. }
  55828. },
  55829. series: {
  55830. typeNames: {
  55831. pie: "饼图",
  55832. bar: "柱状图",
  55833. line: "折线图",
  55834. scatter: "散点图",
  55835. effectScatter: "涟漪散点图",
  55836. radar: "雷达图",
  55837. tree: "树图",
  55838. treemap: "矩形树图",
  55839. boxplot: "箱型图",
  55840. candlestick: "K线图",
  55841. k: "K线图",
  55842. heatmap: "热力图",
  55843. map: "地图",
  55844. parallel: "平行坐标图",
  55845. lines: "线图",
  55846. graph: "关系图",
  55847. sankey: "桑基图",
  55848. funnel: "漏斗图",
  55849. gauge: "仪表盘图",
  55850. pictorialBar: "象形柱图",
  55851. themeRiver: "主题河流图",
  55852. sunburst: "旭日图",
  55853. custom: "自定义图表",
  55854. chart: "图表"
  55855. }
  55856. },
  55857. aria: {
  55858. general: {
  55859. withTitle: "这是一个关于“{title}”的图表。",
  55860. withoutTitle: "这是一个图表,"
  55861. },
  55862. series: {
  55863. single: {
  55864. prefix: "",
  55865. withName: "图表类型是{seriesType},表示{seriesName}。",
  55866. withoutName: "图表类型是{seriesType}。"
  55867. },
  55868. multiple: {
  55869. prefix: "它由{seriesCount}个图表系列组成。",
  55870. withName: "第{seriesId}个系列是一个表示{seriesName}的{seriesType},",
  55871. withoutName: "第{seriesId}个系列是一个{seriesType},",
  55872. separator: {
  55873. middle: ";",
  55874. end: "。"
  55875. }
  55876. }
  55877. },
  55878. data: {
  55879. allData: "其数据是——",
  55880. partialData: "其中,前{displayCnt}项是——",
  55881. withName: "{name}的数据是{value}",
  55882. withoutName: "{value}",
  55883. separator: {
  55884. middle: ",",
  55885. end: ""
  55886. }
  55887. }
  55888. }
  55889. };
  55890. var NC = "ZH", j5 = "EN", Kv = j5, hw = {}, Z5 = {}, Vle = Gt.domSupported ? function() {
  55891. var t = (
  55892. /* eslint-disable-next-line */
  55893. (document.documentElement.lang || navigator.language || navigator.browserLanguage || Kv).toUpperCase()
  55894. );
  55895. return t.indexOf(NC) > -1 ? NC : Kv;
  55896. }() : Kv;
  55897. function U5(t, e) {
  55898. t = t.toUpperCase(), Z5[t] = new wn(e), hw[t] = e;
  55899. }
  55900. function yUe(t) {
  55901. if (Ve(t)) {
  55902. var e = hw[t.toUpperCase()] || {};
  55903. return t === NC || t === j5 ? ot(e) : mt(ot(e), ot(hw[Kv]), !1);
  55904. } else
  55905. return mt(ot(t), ot(hw[Kv]), !1);
  55906. }
  55907. function kk(t) {
  55908. return Z5[t];
  55909. }
  55910. function bUe() {
  55911. return Z5[Kv];
  55912. }
  55913. U5(j5, gUe);
  55914. U5(NC, mUe);
  55915. var X5 = 1e3, Y5 = X5 * 60, ab = Y5 * 60, Go = ab * 24, EG = Go * 365, by = {
  55916. year: "{yyyy}",
  55917. month: "{MMM}",
  55918. day: "{d}",
  55919. hour: "{HH}:{mm}",
  55920. minute: "{HH}:{mm}",
  55921. second: "{HH}:{mm}:{ss}",
  55922. millisecond: "{HH}:{mm}:{ss} {SSS}",
  55923. none: "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"
  55924. }, _S = "{yyyy}-{MM}-{dd}", MG = {
  55925. year: "{yyyy}",
  55926. month: "{yyyy}-{MM}",
  55927. day: _S,
  55928. hour: _S + " " + by.hour,
  55929. minute: _S + " " + by.minute,
  55930. second: _S + " " + by.second,
  55931. millisecond: by.none
  55932. }, fM = ["year", "month", "day", "hour", "minute", "second", "millisecond"], Fle = ["year", "half-year", "quarter", "month", "week", "half-week", "day", "half-day", "quarter-day", "hour", "minute", "second", "millisecond"];
  55933. function Ji(t, e) {
  55934. return t += "", "0000".substr(0, e - t.length) + t;
  55935. }
  55936. function Jv(t) {
  55937. switch (t) {
  55938. case "half-year":
  55939. case "quarter":
  55940. return "month";
  55941. case "week":
  55942. case "half-week":
  55943. return "day";
  55944. case "half-day":
  55945. case "quarter-day":
  55946. return "hour";
  55947. default:
  55948. return t;
  55949. }
  55950. }
  55951. function _Ue(t) {
  55952. return t === Jv(t);
  55953. }
  55954. function OUe(t) {
  55955. switch (t) {
  55956. case "year":
  55957. case "month":
  55958. return "day";
  55959. case "millisecond":
  55960. return "millisecond";
  55961. default:
  55962. return "second";
  55963. }
  55964. }
  55965. function p1(t, e, n, r) {
  55966. var i = go(t), a = i[q5(n)](), o = i[eg(n)]() + 1, s = Math.floor((o - 1) / 3) + 1, l = i[PP(n)](), u = i["get" + (n ? "UTC" : "") + "Day"](), c = i[Yb(n)](), f = (c - 1) % 12 + 1, d = i[$P(n)](), h = i[AP(n)](), p = i[EP(n)](), v = c >= 12 ? "pm" : "am", g = v.toUpperCase(), m = r instanceof wn ? r : kk(r || Vle) || bUe(), y = m.getModel("time"), _ = y.get("month"), O = y.get("monthAbbr"), S = y.get("dayOfWeek"), x = y.get("dayOfWeekAbbr");
  55967. return (e || "").replace(/{a}/g, v + "").replace(/{A}/g, g + "").replace(/{yyyy}/g, a + "").replace(/{yy}/g, Ji(a % 100 + "", 2)).replace(/{Q}/g, s + "").replace(/{MMMM}/g, _[o - 1]).replace(/{MMM}/g, O[o - 1]).replace(/{MM}/g, Ji(o, 2)).replace(/{M}/g, o + "").replace(/{dd}/g, Ji(l, 2)).replace(/{d}/g, l + "").replace(/{eeee}/g, S[u]).replace(/{ee}/g, x[u]).replace(/{e}/g, u + "").replace(/{HH}/g, Ji(c, 2)).replace(/{H}/g, c + "").replace(/{hh}/g, Ji(f + "", 2)).replace(/{h}/g, f + "").replace(/{mm}/g, Ji(d, 2)).replace(/{m}/g, d + "").replace(/{ss}/g, Ji(h, 2)).replace(/{s}/g, h + "").replace(/{SSS}/g, Ji(p, 3)).replace(/{S}/g, p + "");
  55968. }
  55969. function SUe(t, e, n, r, i) {
  55970. var a = null;
  55971. if (Ve(n))
  55972. a = n;
  55973. else if (qe(n))
  55974. a = n(t.value, e, {
  55975. level: t.level
  55976. });
  55977. else {
  55978. var o = _e({}, by);
  55979. if (t.level > 0)
  55980. for (var s = 0; s < fM.length; ++s)
  55981. o[fM[s]] = "{primary|" + o[fM[s]] + "}";
  55982. var l = n ? n.inherit === !1 ? n : it(n, o) : o, u = Wle(t.value, i);
  55983. if (l[u])
  55984. a = l[u];
  55985. else if (l.inherit) {
  55986. for (var c = Fle.indexOf(u), s = c - 1; s >= 0; --s)
  55987. if (l[u]) {
  55988. a = l[u];
  55989. break;
  55990. }
  55991. a = a || o.none;
  55992. }
  55993. if (Se(a)) {
  55994. var f = t.level == null ? 0 : t.level >= 0 ? t.level : a.length + t.level;
  55995. f = Math.min(f, a.length - 1), a = a[f];
  55996. }
  55997. }
  55998. return p1(new Date(t.value), a, i, r);
  55999. }
  56000. function Wle(t, e) {
  56001. var n = go(t), r = n[eg(e)]() + 1, i = n[PP(e)](), a = n[Yb(e)](), o = n[$P(e)](), s = n[AP(e)](), l = n[EP(e)](), u = l === 0, c = u && s === 0, f = c && o === 0, d = f && a === 0, h = d && i === 1, p = h && r === 1;
  56002. return p ? "year" : h ? "month" : d ? "day" : f ? "hour" : c ? "minute" : u ? "second" : "millisecond";
  56003. }
  56004. function IG(t, e, n) {
  56005. var r = Kt(t) ? go(t) : t;
  56006. switch (e = e || Wle(t, n), e) {
  56007. case "year":
  56008. return r[q5(n)]();
  56009. case "half-year":
  56010. return r[eg(n)]() >= 6 ? 1 : 0;
  56011. case "quarter":
  56012. return Math.floor((r[eg(n)]() + 1) / 4);
  56013. case "month":
  56014. return r[eg(n)]();
  56015. case "day":
  56016. return r[PP(n)]();
  56017. case "half-day":
  56018. return r[Yb(n)]() / 24;
  56019. case "hour":
  56020. return r[Yb(n)]();
  56021. case "minute":
  56022. return r[$P(n)]();
  56023. case "second":
  56024. return r[AP(n)]();
  56025. case "millisecond":
  56026. return r[EP(n)]();
  56027. }
  56028. }
  56029. function q5(t) {
  56030. return t ? "getUTCFullYear" : "getFullYear";
  56031. }
  56032. function eg(t) {
  56033. return t ? "getUTCMonth" : "getMonth";
  56034. }
  56035. function PP(t) {
  56036. return t ? "getUTCDate" : "getDate";
  56037. }
  56038. function Yb(t) {
  56039. return t ? "getUTCHours" : "getHours";
  56040. }
  56041. function $P(t) {
  56042. return t ? "getUTCMinutes" : "getMinutes";
  56043. }
  56044. function AP(t) {
  56045. return t ? "getUTCSeconds" : "getSeconds";
  56046. }
  56047. function EP(t) {
  56048. return t ? "getUTCMilliseconds" : "getMilliseconds";
  56049. }
  56050. function xUe(t) {
  56051. return t ? "setUTCFullYear" : "setFullYear";
  56052. }
  56053. function Qle(t) {
  56054. return t ? "setUTCMonth" : "setMonth";
  56055. }
  56056. function Hle(t) {
  56057. return t ? "setUTCDate" : "setDate";
  56058. }
  56059. function Gle(t) {
  56060. return t ? "setUTCHours" : "setHours";
  56061. }
  56062. function jle(t) {
  56063. return t ? "setUTCMinutes" : "setMinutes";
  56064. }
  56065. function Zle(t) {
  56066. return t ? "setUTCSeconds" : "setSeconds";
  56067. }
  56068. function Ule(t) {
  56069. return t ? "setUTCMilliseconds" : "setMilliseconds";
  56070. }
  56071. function wUe(t, e, n, r, i, a, o, s) {
  56072. var l = new jt({
  56073. style: {
  56074. text: t,
  56075. font: e,
  56076. align: n,
  56077. verticalAlign: r,
  56078. padding: i,
  56079. rich: a,
  56080. overflow: o ? "truncate" : null,
  56081. lineHeight: s
  56082. }
  56083. });
  56084. return l.getBoundingRect();
  56085. }
  56086. function K5(t) {
  56087. if (!hP(t))
  56088. return Ve(t) ? t : "-";
  56089. var e = (t + "").split(".");
  56090. return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, "$1,") + (e.length > 1 ? "." + e[1] : "");
  56091. }
  56092. function J5(t, e) {
  56093. return t = (t || "").toLowerCase().replace(/-(.)/g, function(n, r) {
  56094. return r.toUpperCase();
  56095. }), e && t && (t = t.charAt(0).toUpperCase() + t.slice(1)), t;
  56096. }
  56097. var vp = sP;
  56098. function Lk(t, e, n) {
  56099. var r = "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";
  56100. function i(c) {
  56101. return c && Zo(c) ? c : "-";
  56102. }
  56103. function a(c) {
  56104. return !!(c != null && !isNaN(c) && isFinite(c));
  56105. }
  56106. var o = e === "time", s = t instanceof Date;
  56107. if (o || s) {
  56108. var l = o ? go(t) : t;
  56109. if (isNaN(+l)) {
  56110. if (s)
  56111. return "-";
  56112. } else return p1(l, r, n);
  56113. }
  56114. if (e === "ordinal")
  56115. return zb(t) ? i(t) : Kt(t) && a(t) ? t + "" : "-";
  56116. var u = Gl(t);
  56117. return a(u) ? K5(u) : zb(t) ? i(t) : typeof t == "boolean" ? t + "" : "-";
  56118. }
  56119. var DG = ["a", "b", "c", "d", "e", "f", "g"], dM = function(t, e) {
  56120. return "{" + t + (e ?? "") + "}";
  56121. };
  56122. function e3(t, e, n) {
  56123. Se(e) || (e = [e]);
  56124. var r = e.length;
  56125. if (!r)
  56126. return "";
  56127. for (var i = e[0].$vars || [], a = 0; a < i.length; a++) {
  56128. var o = DG[a];
  56129. t = t.replace(dM(o), dM(o, 0));
  56130. }
  56131. for (var s = 0; s < r; s++)
  56132. for (var l = 0; l < i.length; l++) {
  56133. var u = e[s][i[l]];
  56134. t = t.replace(dM(DG[l], s), n ? ta(u) : u);
  56135. }
  56136. return t;
  56137. }
  56138. function CUe(t, e, n) {
  56139. return F(e, function(r, i) {
  56140. t = t.replace("{" + i + "}", r);
  56141. }), t;
  56142. }
  56143. function Xle(t, e) {
  56144. var n = Ve(t) ? {
  56145. color: t,
  56146. extraCssText: e
  56147. } : t || {}, r = n.color, i = n.type;
  56148. e = n.extraCssText;
  56149. var a = n.renderMode || "html";
  56150. if (!r)
  56151. return "";
  56152. if (a === "html")
  56153. return i === "subItem" ? '<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:' + ta(r) + ";" + (e || "") + '"></span>' : '<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:' + ta(r) + ";" + (e || "") + '"></span>';
  56154. var o = n.markerId || "markerX";
  56155. return {
  56156. renderMode: a,
  56157. content: "{" + o + "|} ",
  56158. style: i === "subItem" ? {
  56159. width: 4,
  56160. height: 4,
  56161. borderRadius: 2,
  56162. backgroundColor: r
  56163. } : {
  56164. width: 10,
  56165. height: 10,
  56166. borderRadius: 5,
  56167. backgroundColor: r
  56168. }
  56169. };
  56170. }
  56171. function TUe(t, e, n) {
  56172. process.env.NODE_ENV !== "production" && _r("echarts.format.formatTime", "echarts.time.format"), (t === "week" || t === "month" || t === "quarter" || t === "half-year" || t === "year") && (t = `MM-dd
  56173. yyyy`);
  56174. var r = go(e), i = n ? "getUTC" : "get", a = r[i + "FullYear"](), o = r[i + "Month"]() + 1, s = r[i + "Date"](), l = r[i + "Hours"](), u = r[i + "Minutes"](), c = r[i + "Seconds"](), f = r[i + "Milliseconds"]();
  56175. return t = t.replace("MM", Ji(o, 2)).replace("M", o).replace("yyyy", a).replace("yy", Ji(a % 100 + "", 2)).replace("dd", Ji(s, 2)).replace("d", s).replace("hh", Ji(l, 2)).replace("h", l).replace("mm", Ji(u, 2)).replace("m", u).replace("ss", Ji(c, 2)).replace("s", c).replace("SSS", Ji(f, 3)), t;
  56176. }
  56177. function PUe(t) {
  56178. return t && t.charAt(0).toUpperCase() + t.substr(1);
  56179. }
  56180. function Uh(t, e) {
  56181. return e = e || "transparent", Ve(t) ? t : nt(t) && t.colorStops && (t.colorStops[0] || {}).color || e;
  56182. }
  56183. function BC(t, e) {
  56184. if (e === "_blank" || e === "blank") {
  56185. var n = window.open();
  56186. n.opener = null, n.location.href = t;
  56187. } else
  56188. window.open(t, e);
  56189. }
  56190. var pw = F, Yle = ["left", "right", "top", "bottom", "width", "height"], oh = [["width", "left", "right"], ["height", "top", "bottom"]];
  56191. function t3(t, e, n, r, i) {
  56192. var a = 0, o = 0;
  56193. r == null && (r = 1 / 0), i == null && (i = 1 / 0);
  56194. var s = 0;
  56195. e.eachChild(function(l, u) {
  56196. var c = l.getBoundingRect(), f = e.childAt(u + 1), d = f && f.getBoundingRect(), h, p;
  56197. if (t === "horizontal") {
  56198. var v = c.width + (d ? -d.x + c.x : 0);
  56199. h = a + v, h > r || l.newline ? (a = 0, h = v, o += s + n, s = c.height) : s = Math.max(s, c.height);
  56200. } else {
  56201. var g = c.height + (d ? -d.y + c.y : 0);
  56202. p = o + g, p > i || l.newline ? (a += s + n, o = 0, p = g, s = c.width) : s = Math.max(s, c.width);
  56203. }
  56204. l.newline || (l.x = a, l.y = o, l.markRedraw(), t === "horizontal" ? a = h + n : o = p + n);
  56205. });
  56206. }
  56207. var Th = t3;
  56208. vt(t3, "vertical");
  56209. vt(t3, "horizontal");
  56210. function $Ue(t, e, n) {
  56211. var r = e.width, i = e.height, a = ze(t.left, r), o = ze(t.top, i), s = ze(t.right, r), l = ze(t.bottom, i);
  56212. return (isNaN(a) || isNaN(parseFloat(t.left))) && (a = 0), (isNaN(s) || isNaN(parseFloat(t.right))) && (s = r), (isNaN(o) || isNaN(parseFloat(t.top))) && (o = 0), (isNaN(l) || isNaN(parseFloat(t.bottom))) && (l = i), n = vp(n || 0), {
  56213. width: Math.max(s - a - n[1] - n[3], 0),
  56214. height: Math.max(l - o - n[0] - n[2], 0)
  56215. };
  56216. }
  56217. function Mr(t, e, n) {
  56218. n = vp(n || 0);
  56219. var r = e.width, i = e.height, a = ze(t.left, r), o = ze(t.top, i), s = ze(t.right, r), l = ze(t.bottom, i), u = ze(t.width, r), c = ze(t.height, i), f = n[2] + n[0], d = n[1] + n[3], h = t.aspect;
  56220. switch (isNaN(u) && (u = r - s - d - a), isNaN(c) && (c = i - l - f - o), h != null && (isNaN(u) && isNaN(c) && (h > r / i ? u = r * 0.8 : c = i * 0.8), isNaN(u) && (u = h * c), isNaN(c) && (c = u / h)), isNaN(a) && (a = r - s - u - d), isNaN(o) && (o = i - l - c - f), t.left || t.right) {
  56221. case "center":
  56222. a = r / 2 - u / 2 - n[3];
  56223. break;
  56224. case "right":
  56225. a = r - u - d;
  56226. break;
  56227. }
  56228. switch (t.top || t.bottom) {
  56229. case "middle":
  56230. case "center":
  56231. o = i / 2 - c / 2 - n[0];
  56232. break;
  56233. case "bottom":
  56234. o = i - c - f;
  56235. break;
  56236. }
  56237. a = a || 0, o = o || 0, isNaN(u) && (u = r - d - a - (s || 0)), isNaN(c) && (c = i - f - o - (l || 0));
  56238. var p = new bt(a + n[3], o + n[0], u, c);
  56239. return p.margin = n, p;
  56240. }
  56241. function MP(t, e, n, r, i, a) {
  56242. var o = !i || !i.hv || i.hv[0], s = !i || !i.hv || i.hv[1], l = i && i.boundingMode || "all";
  56243. if (a = a || t, a.x = t.x, a.y = t.y, !o && !s)
  56244. return !1;
  56245. var u;
  56246. if (l === "raw")
  56247. u = t.type === "group" ? new bt(0, 0, +e.width || 0, +e.height || 0) : t.getBoundingRect();
  56248. else if (u = t.getBoundingRect(), t.needLocalTransform()) {
  56249. var c = t.getLocalTransform();
  56250. u = u.clone(), u.applyTransform(c);
  56251. }
  56252. var f = Mr(it({
  56253. width: u.width,
  56254. height: u.height
  56255. }, e), n, r), d = o ? f.x - u.x : 0, h = s ? f.y - u.y : 0;
  56256. return l === "raw" ? (a.x = d, a.y = h) : (a.x += d, a.y += h), a === t && t.markRedraw(), !0;
  56257. }
  56258. function AUe(t, e) {
  56259. return t[oh[e][0]] != null || t[oh[e][1]] != null && t[oh[e][2]] != null;
  56260. }
  56261. function qb(t) {
  56262. var e = t.layoutMode || t.constructor.layoutMode;
  56263. return nt(e) ? e : e ? {
  56264. type: e
  56265. } : null;
  56266. }
  56267. function Of(t, e, n) {
  56268. var r = n && n.ignoreSize;
  56269. !Se(r) && (r = [r, r]);
  56270. var i = o(oh[0], 0), a = o(oh[1], 1);
  56271. u(oh[0], t, i), u(oh[1], t, a);
  56272. function o(c, f) {
  56273. var d = {}, h = 0, p = {}, v = 0, g = 2;
  56274. if (pw(c, function(_) {
  56275. p[_] = t[_];
  56276. }), pw(c, function(_) {
  56277. s(e, _) && (d[_] = p[_] = e[_]), l(d, _) && h++, l(p, _) && v++;
  56278. }), r[f])
  56279. return l(e, c[1]) ? p[c[2]] = null : l(e, c[2]) && (p[c[1]] = null), p;
  56280. if (v === g || !h)
  56281. return p;
  56282. if (h >= g)
  56283. return d;
  56284. for (var m = 0; m < c.length; m++) {
  56285. var y = c[m];
  56286. if (!s(d, y) && s(t, y)) {
  56287. d[y] = t[y];
  56288. break;
  56289. }
  56290. }
  56291. return d;
  56292. }
  56293. function s(c, f) {
  56294. return c.hasOwnProperty(f);
  56295. }
  56296. function l(c, f) {
  56297. return c[f] != null && c[f] !== "auto";
  56298. }
  56299. function u(c, f, d) {
  56300. pw(c, function(h) {
  56301. f[h] = d[h];
  56302. });
  56303. }
  56304. }
  56305. function Tm(t) {
  56306. return qle({}, t);
  56307. }
  56308. function qle(t, e) {
  56309. return e && t && pw(Yle, function(n) {
  56310. e.hasOwnProperty(n) && (t[n] = e[n]);
  56311. }), t;
  56312. }
  56313. var EUe = Ut(), At = (
  56314. /** @class */
  56315. function(t) {
  56316. le(e, t);
  56317. function e(n, r, i) {
  56318. var a = t.call(this, n, r, i) || this;
  56319. return a.uid = Cm("ec_cpt_model"), a;
  56320. }
  56321. return e.prototype.init = function(n, r, i) {
  56322. this.mergeDefaultAndTheme(n, i);
  56323. }, e.prototype.mergeDefaultAndTheme = function(n, r) {
  56324. var i = qb(this), a = i ? Tm(n) : {}, o = r.getTheme();
  56325. mt(n, o.get(this.mainType)), mt(n, this.getDefaultOption()), i && Of(n, a, i);
  56326. }, e.prototype.mergeOption = function(n, r) {
  56327. mt(this.option, n, !0);
  56328. var i = qb(this);
  56329. i && Of(this.option, n, i);
  56330. }, e.prototype.optionUpdated = function(n, r) {
  56331. }, e.prototype.getDefaultOption = function() {
  56332. var n = this.constructor;
  56333. if (!mje(n))
  56334. return n.defaultOption;
  56335. var r = EUe(this);
  56336. if (!r.defaultOption) {
  56337. for (var i = [], a = n; a; ) {
  56338. var o = a.prototype.defaultOption;
  56339. o && i.push(o), a = a.superClass;
  56340. }
  56341. for (var s = {}, l = i.length - 1; l >= 0; l--)
  56342. s = mt(s, i[l], !0);
  56343. r.defaultOption = s;
  56344. }
  56345. return r.defaultOption;
  56346. }, e.prototype.getReferringComponents = function(n, r) {
  56347. var i = n + "Index", a = n + "Id";
  56348. return l1(this.ecModel, n, {
  56349. index: this.get(i, !0),
  56350. id: this.get(a, !0)
  56351. }, r);
  56352. }, e.prototype.getBoxLayoutParams = function() {
  56353. var n = this;
  56354. return {
  56355. left: n.get("left"),
  56356. top: n.get("top"),
  56357. right: n.get("right"),
  56358. bottom: n.get("bottom"),
  56359. width: n.get("width"),
  56360. height: n.get("height")
  56361. };
  56362. }, e.prototype.getZLevelKey = function() {
  56363. return "";
  56364. }, e.prototype.setZLevel = function(n) {
  56365. this.option.zlevel = n;
  56366. }, e.protoInitialize = function() {
  56367. var n = e.prototype;
  56368. n.type = "component", n.id = "", n.name = "", n.mainType = "", n.subType = "", n.componentIndex = 0;
  56369. }(), e;
  56370. }(wn)
  56371. );
  56372. Wse(At, wn);
  56373. vP(At);
  56374. pUe(At);
  56375. vUe(At, MUe);
  56376. function MUe(t) {
  56377. var e = [];
  56378. return F(At.getClassesByMainType(t), function(n) {
  56379. e = e.concat(n.dependencies || n.prototype.dependencies || []);
  56380. }), e = Ce(e, function(n) {
  56381. return $l(n).main;
  56382. }), t !== "dataset" && St(e, "dataset") <= 0 && e.unshift("dataset"), e;
  56383. }
  56384. var Kle = "";
  56385. typeof navigator < "u" && (Kle = navigator.platform || "");
  56386. var Jp = "rgba(0, 0, 0, 0.2)";
  56387. const IUe = {
  56388. darkMode: "auto",
  56389. // backgroundColor: 'rgba(0,0,0,0)',
  56390. colorBy: "series",
  56391. color: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
  56392. gradientColor: ["#f6efa6", "#d88273", "#bf444c"],
  56393. aria: {
  56394. decal: {
  56395. decals: [{
  56396. color: Jp,
  56397. dashArrayX: [1, 0],
  56398. dashArrayY: [2, 5],
  56399. symbolSize: 1,
  56400. rotation: Math.PI / 6
  56401. }, {
  56402. color: Jp,
  56403. symbol: "circle",
  56404. dashArrayX: [[8, 8], [0, 8, 8, 0]],
  56405. dashArrayY: [6, 0],
  56406. symbolSize: 0.8
  56407. }, {
  56408. color: Jp,
  56409. dashArrayX: [1, 0],
  56410. dashArrayY: [4, 3],
  56411. rotation: -Math.PI / 4
  56412. }, {
  56413. color: Jp,
  56414. dashArrayX: [[6, 6], [0, 6, 6, 0]],
  56415. dashArrayY: [6, 0]
  56416. }, {
  56417. color: Jp,
  56418. dashArrayX: [[1, 0], [1, 6]],
  56419. dashArrayY: [1, 0, 6, 0],
  56420. rotation: Math.PI / 4
  56421. }, {
  56422. color: Jp,
  56423. symbol: "triangle",
  56424. dashArrayX: [[9, 9], [0, 9, 9, 0]],
  56425. dashArrayY: [7, 2],
  56426. symbolSize: 0.75
  56427. }]
  56428. }
  56429. },
  56430. // If xAxis and yAxis declared, grid is created by default.
  56431. // grid: {},
  56432. textStyle: {
  56433. // color: '#000',
  56434. // decoration: 'none',
  56435. // PENDING
  56436. fontFamily: Kle.match(/^Win/) ? "Microsoft YaHei" : "sans-serif",
  56437. // fontFamily: 'Arial, Verdana, sans-serif',
  56438. fontSize: 12,
  56439. fontStyle: "normal",
  56440. fontWeight: "normal"
  56441. },
  56442. // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
  56443. // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
  56444. // Default is source-over
  56445. blendMode: null,
  56446. stateAnimation: {
  56447. duration: 300,
  56448. easing: "cubicOut"
  56449. },
  56450. animation: "auto",
  56451. animationDuration: 1e3,
  56452. animationDurationUpdate: 500,
  56453. animationEasing: "cubicInOut",
  56454. animationEasingUpdate: "cubicInOut",
  56455. animationThreshold: 2e3,
  56456. // Configuration for progressive/incremental rendering
  56457. progressiveThreshold: 3e3,
  56458. progressive: 400,
  56459. // Threshold of if use single hover layer to optimize.
  56460. // It is recommended that `hoverLayerThreshold` is equivalent to or less than
  56461. // `progressiveThreshold`, otherwise hover will cause restart of progressive,
  56462. // which is unexpected.
  56463. // see example <echarts/test/heatmap-large.html>.
  56464. hoverLayerThreshold: 3e3,
  56465. // See: module:echarts/scale/Time
  56466. useUTC: !1
  56467. };
  56468. var Nk = Ze(["tooltip", "label", "itemName", "itemId", "itemGroupId", "itemChildGroupId", "seriesName"]), hs = "original", Hi = "arrayRows", ps = "objectRows", Xl = "keyedColumns", Mu = "typedArray", Jle = "unknown", Nl = "column", Pm = "row", pi = {
  56469. Must: 1,
  56470. Might: 2,
  56471. Not: 3
  56472. // Other cases
  56473. }, eue = Ut();
  56474. function DUe(t) {
  56475. eue(t).datasetMap = Ze();
  56476. }
  56477. function tue(t, e, n) {
  56478. var r = {}, i = r3(e);
  56479. if (!i || !t)
  56480. return r;
  56481. var a = [], o = [], s = e.ecModel, l = eue(s).datasetMap, u = i.uid + "_" + n.seriesLayoutBy, c, f;
  56482. t = t.slice(), F(t, function(v, g) {
  56483. var m = nt(v) ? v : t[g] = {
  56484. name: v
  56485. };
  56486. m.type === "ordinal" && c == null && (c = g, f = p(m)), r[m.name] = [];
  56487. });
  56488. var d = l.get(u) || l.set(u, {
  56489. categoryWayDim: f,
  56490. valueWayDim: 0
  56491. });
  56492. F(t, function(v, g) {
  56493. var m = v.name, y = p(v);
  56494. if (c == null) {
  56495. var _ = d.valueWayDim;
  56496. h(r[m], _, y), h(o, _, y), d.valueWayDim += y;
  56497. } else if (c === g)
  56498. h(r[m], 0, y), h(a, 0, y);
  56499. else {
  56500. var _ = d.categoryWayDim;
  56501. h(r[m], _, y), h(o, _, y), d.categoryWayDim += y;
  56502. }
  56503. });
  56504. function h(v, g, m) {
  56505. for (var y = 0; y < m; y++)
  56506. v.push(g + y);
  56507. }
  56508. function p(v) {
  56509. var g = v.dimsDef;
  56510. return g ? g.length : 1;
  56511. }
  56512. return a.length && (r.itemName = a), o.length && (r.seriesName = o), r;
  56513. }
  56514. function n3(t, e, n) {
  56515. var r = {}, i = r3(t);
  56516. if (!i)
  56517. return r;
  56518. var a = e.sourceFormat, o = e.dimensionsDefine, s;
  56519. (a === ps || a === Xl) && F(o, function(c, f) {
  56520. (nt(c) ? c.name : c) === "name" && (s = f);
  56521. });
  56522. var l = function() {
  56523. for (var c = {}, f = {}, d = [], h = 0, p = Math.min(5, n); h < p; h++) {
  56524. var v = rue(e.data, a, e.seriesLayoutBy, o, e.startIndex, h);
  56525. d.push(v);
  56526. var g = v === pi.Not;
  56527. if (g && c.v == null && h !== s && (c.v = h), (c.n == null || c.n === c.v || !g && d[c.n] === pi.Not) && (c.n = h), m(c) && d[c.n] !== pi.Not)
  56528. return c;
  56529. g || (v === pi.Might && f.v == null && h !== s && (f.v = h), (f.n == null || f.n === f.v) && (f.n = h));
  56530. }
  56531. function m(y) {
  56532. return y.v != null && y.n != null;
  56533. }
  56534. return m(c) ? c : m(f) ? f : null;
  56535. }();
  56536. if (l) {
  56537. r.value = [l.v];
  56538. var u = s ?? l.n;
  56539. r.itemName = [u], r.seriesName = [u];
  56540. }
  56541. return r;
  56542. }
  56543. function r3(t) {
  56544. var e = t.get("data", !0);
  56545. if (!e)
  56546. return l1(t.ecModel, "dataset", {
  56547. index: t.get("datasetIndex", !0),
  56548. id: t.get("datasetId", !0)
  56549. }, Er).models[0];
  56550. }
  56551. function RUe(t) {
  56552. return !t.get("transform", !0) && !t.get("fromTransformResult", !0) ? [] : l1(t.ecModel, "dataset", {
  56553. index: t.get("fromDatasetIndex", !0),
  56554. id: t.get("fromDatasetId", !0)
  56555. }, Er).models;
  56556. }
  56557. function nue(t, e) {
  56558. return rue(t.data, t.sourceFormat, t.seriesLayoutBy, t.dimensionsDefine, t.startIndex, e);
  56559. }
  56560. function rue(t, e, n, r, i, a) {
  56561. var o, s = 5;
  56562. if (Qi(t))
  56563. return pi.Not;
  56564. var l, u;
  56565. if (r) {
  56566. var c = r[a];
  56567. nt(c) ? (l = c.name, u = c.type) : Ve(c) && (l = c);
  56568. }
  56569. if (u != null)
  56570. return u === "ordinal" ? pi.Must : pi.Not;
  56571. if (e === Hi) {
  56572. var f = t;
  56573. if (n === Pm) {
  56574. for (var d = f[a], h = 0; h < (d || []).length && h < s; h++)
  56575. if ((o = O(d[i + h])) != null)
  56576. return o;
  56577. } else
  56578. for (var h = 0; h < f.length && h < s; h++) {
  56579. var p = f[i + h];
  56580. if (p && (o = O(p[a])) != null)
  56581. return o;
  56582. }
  56583. } else if (e === ps) {
  56584. var v = t;
  56585. if (!l)
  56586. return pi.Not;
  56587. for (var h = 0; h < v.length && h < s; h++) {
  56588. var g = v[h];
  56589. if (g && (o = O(g[l])) != null)
  56590. return o;
  56591. }
  56592. } else if (e === Xl) {
  56593. var m = t;
  56594. if (!l)
  56595. return pi.Not;
  56596. var d = m[l];
  56597. if (!d || Qi(d))
  56598. return pi.Not;
  56599. for (var h = 0; h < d.length && h < s; h++)
  56600. if ((o = O(d[h])) != null)
  56601. return o;
  56602. } else if (e === hs)
  56603. for (var y = t, h = 0; h < y.length && h < s; h++) {
  56604. var g = y[h], _ = ym(g);
  56605. if (!Se(_))
  56606. return pi.Not;
  56607. if ((o = O(_[a])) != null)
  56608. return o;
  56609. }
  56610. function O(S) {
  56611. var x = Ve(S);
  56612. if (S != null && Number.isFinite(Number(S)) && S !== "")
  56613. return x ? pi.Might : pi.Not;
  56614. if (x && S !== "-")
  56615. return pi.Must;
  56616. }
  56617. return pi.Not;
  56618. }
  56619. var Bk = Ze();
  56620. function kUe(t, e) {
  56621. at(Bk.get(t) == null && e), Bk.set(t, e);
  56622. }
  56623. function LUe(t, e, n) {
  56624. var r = Bk.get(e);
  56625. if (!r)
  56626. return n;
  56627. var i = r(t);
  56628. if (!i)
  56629. return n;
  56630. if (process.env.NODE_ENV !== "production")
  56631. for (var a = 0; a < i.length; a++)
  56632. at(Fg(i[a]));
  56633. return n.concat(i);
  56634. }
  56635. var RG = Ut(), NUe = Ut(), i3 = (
  56636. /** @class */
  56637. function() {
  56638. function t() {
  56639. }
  56640. return t.prototype.getColorFromPalette = function(e, n, r) {
  56641. var i = Cn(this.get("color", !0)), a = this.get("colorLayer", !0);
  56642. return iue(this, RG, i, a, e, n, r);
  56643. }, t.prototype.clearColorPalette = function() {
  56644. zUe(this, RG);
  56645. }, t;
  56646. }()
  56647. );
  56648. function zk(t, e, n, r) {
  56649. var i = Cn(t.get(["aria", "decal", "decals"]));
  56650. return iue(t, NUe, i, null, e, n, r);
  56651. }
  56652. function BUe(t, e) {
  56653. for (var n = t.length, r = 0; r < n; r++)
  56654. if (t[r].length > e)
  56655. return t[r];
  56656. return t[n - 1];
  56657. }
  56658. function iue(t, e, n, r, i, a, o) {
  56659. a = a || t;
  56660. var s = e(a), l = s.paletteIdx || 0, u = s.paletteNameMap = s.paletteNameMap || {};
  56661. if (u.hasOwnProperty(i))
  56662. return u[i];
  56663. var c = o == null || !r ? n : BUe(r, o);
  56664. if (c = c || n, !(!c || !c.length)) {
  56665. var f = c[l];
  56666. return i && (u[i] = f), s.paletteIdx = (l + 1) % c.length, f;
  56667. }
  56668. }
  56669. function zUe(t, e) {
  56670. e(t).paletteIdx = 0, e(t).paletteNameMap = {};
  56671. }
  56672. var OS, I0, kG, hM = "\0_ec_inner", LG = 1, VUe = {
  56673. grid: "GridComponent",
  56674. polar: "PolarComponent",
  56675. geo: "GeoComponent",
  56676. singleAxis: "SingleAxisComponent",
  56677. parallel: "ParallelComponent",
  56678. calendar: "CalendarComponent",
  56679. graphic: "GraphicComponent",
  56680. toolbox: "ToolboxComponent",
  56681. tooltip: "TooltipComponent",
  56682. axisPointer: "AxisPointerComponent",
  56683. brush: "BrushComponent",
  56684. title: "TitleComponent",
  56685. timeline: "TimelineComponent",
  56686. markPoint: "MarkPointComponent",
  56687. markLine: "MarkLineComponent",
  56688. markArea: "MarkAreaComponent",
  56689. legend: "LegendComponent",
  56690. dataZoom: "DataZoomComponent",
  56691. visualMap: "VisualMapComponent",
  56692. // aria: 'AriaComponent',
  56693. // dataset: 'DatasetComponent',
  56694. // Dependencies
  56695. xAxis: "GridComponent",
  56696. yAxis: "GridComponent",
  56697. angleAxis: "PolarComponent",
  56698. radiusAxis: "PolarComponent"
  56699. }, FUe = {
  56700. line: "LineChart",
  56701. bar: "BarChart",
  56702. pie: "PieChart",
  56703. scatter: "ScatterChart",
  56704. radar: "RadarChart",
  56705. map: "MapChart",
  56706. tree: "TreeChart",
  56707. treemap: "TreemapChart",
  56708. graph: "GraphChart",
  56709. gauge: "GaugeChart",
  56710. funnel: "FunnelChart",
  56711. parallel: "ParallelChart",
  56712. sankey: "SankeyChart",
  56713. boxplot: "BoxplotChart",
  56714. candlestick: "CandlestickChart",
  56715. effectScatter: "EffectScatterChart",
  56716. lines: "LinesChart",
  56717. heatmap: "HeatmapChart",
  56718. pictorialBar: "PictorialBarChart",
  56719. themeRiver: "ThemeRiverChart",
  56720. sunburst: "SunburstChart",
  56721. custom: "CustomChart"
  56722. }, zC = {};
  56723. function WUe(t) {
  56724. F(t, function(e, n) {
  56725. if (!At.hasClass(n)) {
  56726. var r = VUe[n];
  56727. r && !zC[r] && ($i("Component " + n + ` is used but not imported.
  56728. import { ` + r + ` } from 'echarts/components';
  56729. echarts.use([` + r + "]);"), zC[r] = !0);
  56730. }
  56731. });
  56732. }
  56733. var a3 = (
  56734. /** @class */
  56735. function(t) {
  56736. le(e, t);
  56737. function e() {
  56738. return t !== null && t.apply(this, arguments) || this;
  56739. }
  56740. return e.prototype.init = function(n, r, i, a, o, s) {
  56741. a = a || {}, this.option = null, this._theme = new wn(a), this._locale = new wn(o), this._optionManager = s;
  56742. }, e.prototype.setOption = function(n, r, i) {
  56743. process.env.NODE_ENV !== "production" && (at(n != null, "option is null/undefined"), at(n[hM] !== LG, "please use chart.getOption()"));
  56744. var a = zG(r);
  56745. this._optionManager.setOption(n, i, a), this._resetOption(null, a);
  56746. }, e.prototype.resetOption = function(n, r) {
  56747. return this._resetOption(n, zG(r));
  56748. }, e.prototype._resetOption = function(n, r) {
  56749. var i = !1, a = this._optionManager;
  56750. if (!n || n === "recreate") {
  56751. var o = a.mountOption(n === "recreate");
  56752. process.env.NODE_ENV !== "production" && WUe(o), !this.option || n === "recreate" ? kG(this, o) : (this.restoreData(), this._mergeOption(o, r)), i = !0;
  56753. }
  56754. if ((n === "timeline" || n === "media") && this.restoreData(), !n || n === "recreate" || n === "timeline") {
  56755. var s = a.getTimelineOption(this);
  56756. s && (i = !0, this._mergeOption(s, r));
  56757. }
  56758. if (!n || n === "recreate" || n === "media") {
  56759. var l = a.getMediaOption(this);
  56760. l.length && F(l, function(u) {
  56761. i = !0, this._mergeOption(u, r);
  56762. }, this);
  56763. }
  56764. return i;
  56765. }, e.prototype.mergeOption = function(n) {
  56766. this._mergeOption(n, null);
  56767. }, e.prototype._mergeOption = function(n, r) {
  56768. var i = this.option, a = this._componentsMap, o = this._componentsCount, s = [], l = Ze(), u = r && r.replaceMergeMainTypeMap;
  56769. DUe(this), F(n, function(f, d) {
  56770. f != null && (At.hasClass(d) ? d && (s.push(d), l.set(d, !0)) : i[d] = i[d] == null ? ot(f) : mt(i[d], f, !0));
  56771. }), u && u.each(function(f, d) {
  56772. At.hasClass(d) && !l.get(d) && (s.push(d), l.set(d, !0));
  56773. }), At.topologicalTravel(s, At.getAllClassMainTypes(), c, this);
  56774. function c(f) {
  56775. var d = LUe(this, f, Cn(n[f])), h = a.get(f), p = (
  56776. // `!oldCmptList` means init. See the comment in `mappingToExists`
  56777. h ? u && u.get(f) ? "replaceMerge" : "normalMerge" : "replaceAll"
  56778. ), v = Nse(h, d, p);
  56779. lje(v, f, At), i[f] = null, a.set(f, null), o.set(f, 0);
  56780. var g = [], m = [], y = 0, _, O;
  56781. F(v, function(S, x) {
  56782. var C = S.existing, P = S.newOption;
  56783. if (!P)
  56784. C && (C.mergeOption({}, this), C.optionUpdated({}, !1));
  56785. else {
  56786. var $ = f === "series", T = At.getClass(
  56787. f,
  56788. S.keyInfo.subType,
  56789. !$
  56790. // Give a more detailed warn later if series don't exists
  56791. );
  56792. if (!T) {
  56793. if (process.env.NODE_ENV !== "production") {
  56794. var E = S.keyInfo.subType, M = FUe[E];
  56795. zC[E] || (zC[E] = !0, $i(M ? "Series " + E + ` is used but not imported.
  56796. import { ` + M + ` } from 'echarts/charts';
  56797. echarts.use([` + M + "]);" : "Unknown series " + E));
  56798. }
  56799. return;
  56800. }
  56801. if (f === "tooltip") {
  56802. if (_) {
  56803. process.env.NODE_ENV !== "production" && (O || (nr("Currently only one tooltip component is allowed."), O = !0));
  56804. return;
  56805. }
  56806. _ = !0;
  56807. }
  56808. if (C && C.constructor === T)
  56809. C.name = S.keyInfo.name, C.mergeOption(P, this), C.optionUpdated(P, !1);
  56810. else {
  56811. var R = _e({
  56812. componentIndex: x
  56813. }, S.keyInfo);
  56814. C = new T(P, this, this, R), _e(C, R), S.brandNew && (C.__requireNewView = !0), C.init(P, this, this), C.optionUpdated(null, !0);
  56815. }
  56816. }
  56817. C ? (g.push(C.option), m.push(C), y++) : (g.push(void 0), m.push(void 0));
  56818. }, this), i[f] = g, a.set(f, m), o.set(f, y), f === "series" && OS(this);
  56819. }
  56820. this._seriesIndices || OS(this);
  56821. }, e.prototype.getOption = function() {
  56822. var n = ot(this.option);
  56823. return F(n, function(r, i) {
  56824. if (At.hasClass(i)) {
  56825. for (var a = Cn(r), o = a.length, s = !1, l = o - 1; l >= 0; l--)
  56826. a[l] && !Fg(a[l]) ? s = !0 : (a[l] = null, !s && o--);
  56827. a.length = o, n[i] = a;
  56828. }
  56829. }), delete n[hM], n;
  56830. }, e.prototype.getTheme = function() {
  56831. return this._theme;
  56832. }, e.prototype.getLocaleModel = function() {
  56833. return this._locale;
  56834. }, e.prototype.setUpdatePayload = function(n) {
  56835. this._payload = n;
  56836. }, e.prototype.getUpdatePayload = function() {
  56837. return this._payload;
  56838. }, e.prototype.getComponent = function(n, r) {
  56839. var i = this._componentsMap.get(n);
  56840. if (i) {
  56841. var a = i[r || 0];
  56842. if (a)
  56843. return a;
  56844. if (r == null) {
  56845. for (var o = 0; o < i.length; o++)
  56846. if (i[o])
  56847. return i[o];
  56848. }
  56849. }
  56850. }, e.prototype.queryComponents = function(n) {
  56851. var r = n.mainType;
  56852. if (!r)
  56853. return [];
  56854. var i = n.index, a = n.id, o = n.name, s = this._componentsMap.get(r);
  56855. if (!s || !s.length)
  56856. return [];
  56857. var l;
  56858. return i != null ? (l = [], F(Cn(i), function(u) {
  56859. s[u] && l.push(s[u]);
  56860. })) : a != null ? l = NG("id", a, s) : o != null ? l = NG("name", o, s) : l = yn(s, function(u) {
  56861. return !!u;
  56862. }), BG(l, n);
  56863. }, e.prototype.findComponents = function(n) {
  56864. var r = n.query, i = n.mainType, a = s(r), o = a ? this.queryComponents(a) : yn(this._componentsMap.get(i), function(u) {
  56865. return !!u;
  56866. });
  56867. return l(BG(o, n));
  56868. function s(u) {
  56869. var c = i + "Index", f = i + "Id", d = i + "Name";
  56870. return u && (u[c] != null || u[f] != null || u[d] != null) ? {
  56871. mainType: i,
  56872. // subType will be filtered finally.
  56873. index: u[c],
  56874. id: u[f],
  56875. name: u[d]
  56876. } : null;
  56877. }
  56878. function l(u) {
  56879. return n.filter ? yn(u, n.filter) : u;
  56880. }
  56881. }, e.prototype.eachComponent = function(n, r, i) {
  56882. var a = this._componentsMap;
  56883. if (qe(n)) {
  56884. var o = r, s = n;
  56885. a.each(function(f, d) {
  56886. for (var h = 0; f && h < f.length; h++) {
  56887. var p = f[h];
  56888. p && s.call(o, d, p, p.componentIndex);
  56889. }
  56890. });
  56891. } else
  56892. for (var l = Ve(n) ? a.get(n) : nt(n) ? this.findComponents(n) : null, u = 0; l && u < l.length; u++) {
  56893. var c = l[u];
  56894. c && r.call(i, c, c.componentIndex);
  56895. }
  56896. }, e.prototype.getSeriesByName = function(n) {
  56897. var r = Br(n, null);
  56898. return yn(this._componentsMap.get("series"), function(i) {
  56899. return !!i && r != null && i.name === r;
  56900. });
  56901. }, e.prototype.getSeriesByIndex = function(n) {
  56902. return this._componentsMap.get("series")[n];
  56903. }, e.prototype.getSeriesByType = function(n) {
  56904. return yn(this._componentsMap.get("series"), function(r) {
  56905. return !!r && r.subType === n;
  56906. });
  56907. }, e.prototype.getSeries = function() {
  56908. return yn(this._componentsMap.get("series"), function(n) {
  56909. return !!n;
  56910. });
  56911. }, e.prototype.getSeriesCount = function() {
  56912. return this._componentsCount.get("series");
  56913. }, e.prototype.eachSeries = function(n, r) {
  56914. I0(this), F(this._seriesIndices, function(i) {
  56915. var a = this._componentsMap.get("series")[i];
  56916. n.call(r, a, i);
  56917. }, this);
  56918. }, e.prototype.eachRawSeries = function(n, r) {
  56919. F(this._componentsMap.get("series"), function(i) {
  56920. i && n.call(r, i, i.componentIndex);
  56921. });
  56922. }, e.prototype.eachSeriesByType = function(n, r, i) {
  56923. I0(this), F(this._seriesIndices, function(a) {
  56924. var o = this._componentsMap.get("series")[a];
  56925. o.subType === n && r.call(i, o, a);
  56926. }, this);
  56927. }, e.prototype.eachRawSeriesByType = function(n, r, i) {
  56928. return F(this.getSeriesByType(n), r, i);
  56929. }, e.prototype.isSeriesFiltered = function(n) {
  56930. return I0(this), this._seriesIndicesMap.get(n.componentIndex) == null;
  56931. }, e.prototype.getCurrentSeriesIndices = function() {
  56932. return (this._seriesIndices || []).slice();
  56933. }, e.prototype.filterSeries = function(n, r) {
  56934. I0(this);
  56935. var i = [];
  56936. F(this._seriesIndices, function(a) {
  56937. var o = this._componentsMap.get("series")[a];
  56938. n.call(r, o, a) && i.push(a);
  56939. }, this), this._seriesIndices = i, this._seriesIndicesMap = Ze(i);
  56940. }, e.prototype.restoreData = function(n) {
  56941. OS(this);
  56942. var r = this._componentsMap, i = [];
  56943. r.each(function(a, o) {
  56944. At.hasClass(o) && i.push(o);
  56945. }), At.topologicalTravel(i, At.getAllClassMainTypes(), function(a) {
  56946. F(r.get(a), function(o) {
  56947. o && (a !== "series" || !QUe(o, n)) && o.restoreData();
  56948. });
  56949. });
  56950. }, e.internalField = function() {
  56951. OS = function(n) {
  56952. var r = n._seriesIndices = [];
  56953. F(n._componentsMap.get("series"), function(i) {
  56954. i && r.push(i.componentIndex);
  56955. }), n._seriesIndicesMap = Ze(r);
  56956. }, I0 = function(n) {
  56957. if (process.env.NODE_ENV !== "production" && !n._seriesIndices)
  56958. throw new Error("Option should contains series.");
  56959. }, kG = function(n, r) {
  56960. n.option = {}, n.option[hM] = LG, n._componentsMap = Ze({
  56961. series: []
  56962. }), n._componentsCount = Ze();
  56963. var i = r.aria;
  56964. nt(i) && i.enabled == null && (i.enabled = !0), HUe(r, n._theme.option), mt(r, IUe, !1), n._mergeOption(r, null);
  56965. };
  56966. }(), e;
  56967. }(wn)
  56968. );
  56969. function QUe(t, e) {
  56970. if (e) {
  56971. var n = e.seriesIndex, r = e.seriesId, i = e.seriesName;
  56972. return n != null && t.componentIndex !== n || r != null && t.id !== r || i != null && t.name !== i;
  56973. }
  56974. }
  56975. function HUe(t, e) {
  56976. var n = t.color && !t.colorLayer;
  56977. F(e, function(r, i) {
  56978. i === "colorLayer" && n || At.hasClass(i) || (typeof r == "object" ? t[i] = t[i] ? mt(t[i], r, !1) : ot(r) : t[i] == null && (t[i] = r));
  56979. });
  56980. }
  56981. function NG(t, e, n) {
  56982. if (Se(e)) {
  56983. var r = Ze();
  56984. return F(e, function(a) {
  56985. if (a != null) {
  56986. var o = Br(a, null);
  56987. o != null && r.set(a, !0);
  56988. }
  56989. }), yn(n, function(a) {
  56990. return a && r.get(a[t]);
  56991. });
  56992. } else {
  56993. var i = Br(e, null);
  56994. return yn(n, function(a) {
  56995. return a && i != null && a[t] === i;
  56996. });
  56997. }
  56998. }
  56999. function BG(t, e) {
  57000. return e.hasOwnProperty("subType") ? yn(t, function(n) {
  57001. return n && n.subType === e.subType;
  57002. }) : t;
  57003. }
  57004. function zG(t) {
  57005. var e = Ze();
  57006. return t && F(Cn(t.replaceMerge), function(n) {
  57007. process.env.NODE_ENV !== "production" && at(At.hasClass(n), '"' + n + '" is not valid component main type in "replaceMerge"'), e.set(n, !0);
  57008. }), {
  57009. replaceMergeMainTypeMap: e
  57010. };
  57011. }
  57012. vr(a3, i3);
  57013. var GUe = [
  57014. "getDom",
  57015. "getZr",
  57016. "getWidth",
  57017. "getHeight",
  57018. "getDevicePixelRatio",
  57019. "dispatchAction",
  57020. "isSSR",
  57021. "isDisposed",
  57022. "on",
  57023. "off",
  57024. "getDataURL",
  57025. "getConnectedDataURL",
  57026. // 'getModel',
  57027. "getOption",
  57028. // 'getViewOfComponentModel',
  57029. // 'getViewOfSeriesModel',
  57030. "getId",
  57031. "updateLabelLayout"
  57032. ], aue = (
  57033. /** @class */
  57034. /* @__PURE__ */ function() {
  57035. function t(e) {
  57036. F(GUe, function(n) {
  57037. this[n] = We(e[n], e);
  57038. }, this);
  57039. }
  57040. return t;
  57041. }()
  57042. ), pM = {}, gp = (
  57043. /** @class */
  57044. function() {
  57045. function t() {
  57046. this._coordinateSystems = [];
  57047. }
  57048. return t.prototype.create = function(e, n) {
  57049. var r = [];
  57050. F(pM, function(i, a) {
  57051. var o = i.create(e, n);
  57052. r = r.concat(o || []);
  57053. }), this._coordinateSystems = r;
  57054. }, t.prototype.update = function(e, n) {
  57055. F(this._coordinateSystems, function(r) {
  57056. r.update && r.update(e, n);
  57057. });
  57058. }, t.prototype.getCoordinateSystems = function() {
  57059. return this._coordinateSystems.slice();
  57060. }, t.register = function(e, n) {
  57061. pM[e] = n;
  57062. }, t.get = function(e) {
  57063. return pM[e];
  57064. }, t;
  57065. }()
  57066. ), jUe = /^(min|max)?(.+)$/, ZUe = (
  57067. /** @class */
  57068. function() {
  57069. function t(e) {
  57070. this._timelineOptions = [], this._mediaList = [], this._currentMediaIndices = [], this._api = e;
  57071. }
  57072. return t.prototype.setOption = function(e, n, r) {
  57073. e && (F(Cn(e.series), function(o) {
  57074. o && o.data && Qi(o.data) && Vb(o.data);
  57075. }), F(Cn(e.dataset), function(o) {
  57076. o && o.source && Qi(o.source) && Vb(o.source);
  57077. })), e = ot(e);
  57078. var i = this._optionBackup, a = UUe(e, n, !i);
  57079. this._newBaseOption = a.baseOption, i ? (a.timelineOptions.length && (i.timelineOptions = a.timelineOptions), a.mediaList.length && (i.mediaList = a.mediaList), a.mediaDefault && (i.mediaDefault = a.mediaDefault)) : this._optionBackup = a;
  57080. }, t.prototype.mountOption = function(e) {
  57081. var n = this._optionBackup;
  57082. return this._timelineOptions = n.timelineOptions, this._mediaList = n.mediaList, this._mediaDefault = n.mediaDefault, this._currentMediaIndices = [], ot(e ? n.baseOption : this._newBaseOption);
  57083. }, t.prototype.getTimelineOption = function(e) {
  57084. var n, r = this._timelineOptions;
  57085. if (r.length) {
  57086. var i = e.getComponent("timeline");
  57087. i && (n = ot(
  57088. // FIXME:TS as TimelineModel or quivlant interface
  57089. r[i.getCurrentIndex()]
  57090. ));
  57091. }
  57092. return n;
  57093. }, t.prototype.getMediaOption = function(e) {
  57094. var n = this._api.getWidth(), r = this._api.getHeight(), i = this._mediaList, a = this._mediaDefault, o = [], s = [];
  57095. if (!i.length && !a)
  57096. return s;
  57097. for (var l = 0, u = i.length; l < u; l++)
  57098. XUe(i[l].query, n, r) && o.push(l);
  57099. return !o.length && a && (o = [-1]), o.length && !qUe(o, this._currentMediaIndices) && (s = Ce(o, function(c) {
  57100. return ot(c === -1 ? a.option : i[c].option);
  57101. })), this._currentMediaIndices = o, s;
  57102. }, t;
  57103. }()
  57104. );
  57105. function UUe(t, e, n) {
  57106. var r = [], i, a, o = t.baseOption, s = t.timeline, l = t.options, u = t.media, c = !!t.media, f = !!(l || s || o && o.timeline);
  57107. o ? (a = o, a.timeline || (a.timeline = s)) : ((f || c) && (t.options = t.media = null), a = t), c && (Se(u) ? F(u, function(h) {
  57108. process.env.NODE_ENV !== "production" && h && !h.option && nt(h.query) && nt(h.query.option) && $i("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"), h && h.option && (h.query ? r.push(h) : i || (i = h));
  57109. }) : process.env.NODE_ENV !== "production" && $i("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")), d(a), F(l, function(h) {
  57110. return d(h);
  57111. }), F(r, function(h) {
  57112. return d(h.option);
  57113. });
  57114. function d(h) {
  57115. F(e, function(p) {
  57116. p(h, n);
  57117. });
  57118. }
  57119. return {
  57120. baseOption: a,
  57121. timelineOptions: l || [],
  57122. mediaDefault: i,
  57123. mediaList: r
  57124. };
  57125. }
  57126. function XUe(t, e, n) {
  57127. var r = {
  57128. width: e,
  57129. height: n,
  57130. aspectratio: e / n
  57131. // lower case for convenience.
  57132. }, i = !0;
  57133. return F(t, function(a, o) {
  57134. var s = o.match(jUe);
  57135. if (!(!s || !s[1] || !s[2])) {
  57136. var l = s[1], u = s[2].toLowerCase();
  57137. YUe(r[u], a, l) || (i = !1);
  57138. }
  57139. }), i;
  57140. }
  57141. function YUe(t, e, n) {
  57142. return n === "min" ? t >= e : n === "max" ? t <= e : t === e;
  57143. }
  57144. function qUe(t, e) {
  57145. return t.join(",") === e.join(",");
  57146. }
  57147. var Eo = F, Kb = nt, VG = ["areaStyle", "lineStyle", "nodeStyle", "linkStyle", "chordStyle", "label", "labelLine"];
  57148. function vM(t) {
  57149. var e = t && t.itemStyle;
  57150. if (e)
  57151. for (var n = 0, r = VG.length; n < r; n++) {
  57152. var i = VG[n], a = e.normal, o = e.emphasis;
  57153. a && a[i] && (process.env.NODE_ENV !== "production" && _r("itemStyle.normal." + i, i), t[i] = t[i] || {}, t[i].normal ? mt(t[i].normal, a[i]) : t[i].normal = a[i], a[i] = null), o && o[i] && (process.env.NODE_ENV !== "production" && _r("itemStyle.emphasis." + i, "emphasis." + i), t[i] = t[i] || {}, t[i].emphasis ? mt(t[i].emphasis, o[i]) : t[i].emphasis = o[i], o[i] = null);
  57154. }
  57155. }
  57156. function Li(t, e, n) {
  57157. if (t && t[e] && (t[e].normal || t[e].emphasis)) {
  57158. var r = t[e].normal, i = t[e].emphasis;
  57159. r && (process.env.NODE_ENV !== "production" && ss("'normal' hierarchy in " + e + " has been removed since 4.0. All style properties are configured in " + e + " directly now."), n ? (t[e].normal = t[e].emphasis = null, it(t[e], r)) : t[e] = r), i && (process.env.NODE_ENV !== "production" && ss(e + ".emphasis has been changed to emphasis." + e + " since 4.0"), t.emphasis = t.emphasis || {}, t.emphasis[e] = i, i.focus && (t.emphasis.focus = i.focus), i.blurScope && (t.emphasis.blurScope = i.blurScope));
  57160. }
  57161. }
  57162. function _y(t) {
  57163. Li(t, "itemStyle"), Li(t, "lineStyle"), Li(t, "areaStyle"), Li(t, "label"), Li(t, "labelLine"), Li(t, "upperLabel"), Li(t, "edgeLabel");
  57164. }
  57165. function Pr(t, e) {
  57166. var n = Kb(t) && t[e], r = Kb(n) && n.textStyle;
  57167. if (r) {
  57168. process.env.NODE_ENV !== "production" && ss("textStyle hierarchy in " + e + " has been removed since 4.0. All textStyle properties are configured in " + e + " directly now.");
  57169. for (var i = 0, a = HH.length; i < a; i++) {
  57170. var o = HH[i];
  57171. r.hasOwnProperty(o) && (n[o] = r[o]);
  57172. }
  57173. }
  57174. }
  57175. function Bo(t) {
  57176. t && (_y(t), Pr(t, "label"), t.emphasis && Pr(t.emphasis, "label"));
  57177. }
  57178. function KUe(t) {
  57179. if (Kb(t)) {
  57180. vM(t), _y(t), Pr(t, "label"), Pr(t, "upperLabel"), Pr(t, "edgeLabel"), t.emphasis && (Pr(t.emphasis, "label"), Pr(t.emphasis, "upperLabel"), Pr(t.emphasis, "edgeLabel"));
  57181. var e = t.markPoint;
  57182. e && (vM(e), Bo(e));
  57183. var n = t.markLine;
  57184. n && (vM(n), Bo(n));
  57185. var r = t.markArea;
  57186. r && Bo(r);
  57187. var i = t.data;
  57188. if (t.type === "graph") {
  57189. i = i || t.nodes;
  57190. var a = t.links || t.edges;
  57191. if (a && !Qi(a))
  57192. for (var o = 0; o < a.length; o++)
  57193. Bo(a[o]);
  57194. F(t.categories, function(u) {
  57195. _y(u);
  57196. });
  57197. }
  57198. if (i && !Qi(i))
  57199. for (var o = 0; o < i.length; o++)
  57200. Bo(i[o]);
  57201. if (e = t.markPoint, e && e.data)
  57202. for (var s = e.data, o = 0; o < s.length; o++)
  57203. Bo(s[o]);
  57204. if (n = t.markLine, n && n.data)
  57205. for (var l = n.data, o = 0; o < l.length; o++)
  57206. Se(l[o]) ? (Bo(l[o][0]), Bo(l[o][1])) : Bo(l[o]);
  57207. t.type === "gauge" ? (Pr(t, "axisLabel"), Pr(t, "title"), Pr(t, "detail")) : t.type === "treemap" ? (Li(t.breadcrumb, "itemStyle"), F(t.levels, function(u) {
  57208. _y(u);
  57209. })) : t.type === "tree" && _y(t.leaves);
  57210. }
  57211. }
  57212. function vu(t) {
  57213. return Se(t) ? t : t ? [t] : [];
  57214. }
  57215. function FG(t) {
  57216. return (Se(t) ? t[0] : t) || {};
  57217. }
  57218. function JUe(t, e) {
  57219. Eo(vu(t.series), function(r) {
  57220. Kb(r) && KUe(r);
  57221. });
  57222. var n = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "parallelAxis", "radar"];
  57223. e && n.push("valueAxis", "categoryAxis", "logAxis", "timeAxis"), Eo(n, function(r) {
  57224. Eo(vu(t[r]), function(i) {
  57225. i && (Pr(i, "axisLabel"), Pr(i.axisPointer, "label"));
  57226. });
  57227. }), Eo(vu(t.parallel), function(r) {
  57228. var i = r && r.parallelAxisDefault;
  57229. Pr(i, "axisLabel"), Pr(i && i.axisPointer, "label");
  57230. }), Eo(vu(t.calendar), function(r) {
  57231. Li(r, "itemStyle"), Pr(r, "dayLabel"), Pr(r, "monthLabel"), Pr(r, "yearLabel");
  57232. }), Eo(vu(t.radar), function(r) {
  57233. Pr(r, "name"), r.name && r.axisName == null && (r.axisName = r.name, delete r.name, process.env.NODE_ENV !== "production" && ss("name property in radar component has been changed to axisName")), r.nameGap != null && r.axisNameGap == null && (r.axisNameGap = r.nameGap, delete r.nameGap, process.env.NODE_ENV !== "production" && ss("nameGap property in radar component has been changed to axisNameGap")), process.env.NODE_ENV !== "production" && Eo(r.indicator, function(i) {
  57234. i.text && _r("text", "name", "radar.indicator");
  57235. });
  57236. }), Eo(vu(t.geo), function(r) {
  57237. Kb(r) && (Bo(r), Eo(vu(r.regions), function(i) {
  57238. Bo(i);
  57239. }));
  57240. }), Eo(vu(t.timeline), function(r) {
  57241. Bo(r), Li(r, "label"), Li(r, "itemStyle"), Li(r, "controlStyle", !0);
  57242. var i = r.data;
  57243. Se(i) && F(i, function(a) {
  57244. nt(a) && (Li(a, "label"), Li(a, "itemStyle"));
  57245. });
  57246. }), Eo(vu(t.toolbox), function(r) {
  57247. Li(r, "iconStyle"), Eo(r.feature, function(i) {
  57248. Li(i, "iconStyle");
  57249. });
  57250. }), Pr(FG(t.axisPointer), "label"), Pr(FG(t.tooltip).axisPointer, "label");
  57251. }
  57252. function eXe(t, e) {
  57253. for (var n = e.split(","), r = t, i = 0; i < n.length && (r = r && r[n[i]], r != null); i++)
  57254. ;
  57255. return r;
  57256. }
  57257. function tXe(t, e, n, r) {
  57258. for (var i = e.split(","), a = t, o, s = 0; s < i.length - 1; s++)
  57259. o = i[s], a[o] == null && (a[o] = {}), a = a[o];
  57260. a[i[s]] == null && (a[i[s]] = n);
  57261. }
  57262. function WG(t) {
  57263. t && F(nXe, function(e) {
  57264. e[0] in t && !(e[1] in t) && (t[e[1]] = t[e[0]]);
  57265. });
  57266. }
  57267. var nXe = [["x", "left"], ["y", "top"], ["x2", "right"], ["y2", "bottom"]], rXe = ["grid", "geo", "parallel", "legend", "toolbox", "title", "visualMap", "dataZoom", "timeline"], gM = [["borderRadius", "barBorderRadius"], ["borderColor", "barBorderColor"], ["borderWidth", "barBorderWidth"]];
  57268. function D0(t) {
  57269. var e = t && t.itemStyle;
  57270. if (e)
  57271. for (var n = 0; n < gM.length; n++) {
  57272. var r = gM[n][1], i = gM[n][0];
  57273. e[r] != null && (e[i] = e[r], process.env.NODE_ENV !== "production" && _r(r, i));
  57274. }
  57275. }
  57276. function QG(t) {
  57277. t && t.alignTo === "edge" && t.margin != null && t.edgeDistance == null && (process.env.NODE_ENV !== "production" && _r("label.margin", "label.edgeDistance", "pie"), t.edgeDistance = t.margin);
  57278. }
  57279. function HG(t) {
  57280. t && t.downplay && !t.blur && (t.blur = t.downplay, process.env.NODE_ENV !== "production" && _r("downplay", "blur", "sunburst"));
  57281. }
  57282. function iXe(t) {
  57283. t && t.focusNodeAdjacency != null && (t.emphasis = t.emphasis || {}, t.emphasis.focus == null && (process.env.NODE_ENV !== "production" && _r("focusNodeAdjacency", "emphasis: { focus: 'adjacency'}", "graph/sankey"), t.emphasis.focus = "adjacency"));
  57284. }
  57285. function oue(t, e) {
  57286. if (t)
  57287. for (var n = 0; n < t.length; n++)
  57288. e(t[n]), t[n] && oue(t[n].children, e);
  57289. }
  57290. function sue(t, e) {
  57291. JUe(t, e), t.series = Cn(t.series), F(t.series, function(n) {
  57292. if (nt(n)) {
  57293. var r = n.type;
  57294. if (r === "line")
  57295. n.clipOverflow != null && (n.clip = n.clipOverflow, process.env.NODE_ENV !== "production" && _r("clipOverflow", "clip", "line"));
  57296. else if (r === "pie" || r === "gauge") {
  57297. n.clockWise != null && (n.clockwise = n.clockWise, process.env.NODE_ENV !== "production" && _r("clockWise", "clockwise")), QG(n.label);
  57298. var i = n.data;
  57299. if (i && !Qi(i))
  57300. for (var a = 0; a < i.length; a++)
  57301. QG(i[a]);
  57302. n.hoverOffset != null && (n.emphasis = n.emphasis || {}, (n.emphasis.scaleSize = null) && (process.env.NODE_ENV !== "production" && _r("hoverOffset", "emphasis.scaleSize"), n.emphasis.scaleSize = n.hoverOffset));
  57303. } else if (r === "gauge") {
  57304. var o = eXe(n, "pointer.color");
  57305. o != null && tXe(n, "itemStyle.color", o);
  57306. } else if (r === "bar") {
  57307. D0(n), D0(n.backgroundStyle), D0(n.emphasis);
  57308. var i = n.data;
  57309. if (i && !Qi(i))
  57310. for (var a = 0; a < i.length; a++)
  57311. typeof i[a] == "object" && (D0(i[a]), D0(i[a] && i[a].emphasis));
  57312. } else if (r === "sunburst") {
  57313. var s = n.highlightPolicy;
  57314. s && (n.emphasis = n.emphasis || {}, n.emphasis.focus || (n.emphasis.focus = s, process.env.NODE_ENV !== "production" && _r("highlightPolicy", "emphasis.focus", "sunburst"))), HG(n), oue(n.data, HG);
  57315. } else r === "graph" || r === "sankey" ? iXe(n) : r === "map" && (n.mapType && !n.map && (process.env.NODE_ENV !== "production" && _r("mapType", "map", "map"), n.map = n.mapType), n.mapLocation && (process.env.NODE_ENV !== "production" && ss("`mapLocation` is not used anymore."), it(n, n.mapLocation)));
  57316. n.hoverAnimation != null && (n.emphasis = n.emphasis || {}, n.emphasis && n.emphasis.scale == null && (process.env.NODE_ENV !== "production" && _r("hoverAnimation", "emphasis.scale"), n.emphasis.scale = n.hoverAnimation)), WG(n);
  57317. }
  57318. }), t.dataRange && (t.visualMap = t.dataRange), F(rXe, function(n) {
  57319. var r = t[n];
  57320. r && (Se(r) || (r = [r]), F(r, function(i) {
  57321. WG(i);
  57322. }));
  57323. });
  57324. }
  57325. function aXe(t) {
  57326. var e = Ze();
  57327. t.eachSeries(function(n) {
  57328. var r = n.get("stack");
  57329. if (r) {
  57330. var i = e.get(r) || e.set(r, []), a = n.getData(), o = {
  57331. // Used for calculate axis extent automatically.
  57332. // TODO: Type getCalculationInfo return more specific type?
  57333. stackResultDimension: a.getCalculationInfo("stackResultDimension"),
  57334. stackedOverDimension: a.getCalculationInfo("stackedOverDimension"),
  57335. stackedDimension: a.getCalculationInfo("stackedDimension"),
  57336. stackedByDimension: a.getCalculationInfo("stackedByDimension"),
  57337. isStackedByIndex: a.getCalculationInfo("isStackedByIndex"),
  57338. data: a,
  57339. seriesModel: n
  57340. };
  57341. if (!o.stackedDimension || !(o.isStackedByIndex || o.stackedByDimension))
  57342. return;
  57343. i.length && a.setCalculationInfo("stackedOnSeries", i[i.length - 1].seriesModel), i.push(o);
  57344. }
  57345. }), e.each(oXe);
  57346. }
  57347. function oXe(t) {
  57348. F(t, function(e, n) {
  57349. var r = [], i = [NaN, NaN], a = [e.stackResultDimension, e.stackedOverDimension], o = e.data, s = e.isStackedByIndex, l = e.seriesModel.get("stackStrategy") || "samesign";
  57350. o.modify(a, function(u, c, f) {
  57351. var d = o.get(e.stackedDimension, f);
  57352. if (isNaN(d))
  57353. return i;
  57354. var h, p;
  57355. s ? p = o.getRawIndex(f) : h = o.get(e.stackedByDimension, f);
  57356. for (var v = NaN, g = n - 1; g >= 0; g--) {
  57357. var m = t[g];
  57358. if (s || (p = m.data.rawIndexOf(m.stackedByDimension, h)), p >= 0) {
  57359. var y = m.data.getByRawIndex(m.stackResultDimension, p);
  57360. if (l === "all" || l === "positive" && y > 0 || l === "negative" && y < 0 || l === "samesign" && d >= 0 && y > 0 || l === "samesign" && d <= 0 && y < 0) {
  57361. d = XGe(d, y), v = y;
  57362. break;
  57363. }
  57364. }
  57365. }
  57366. return r[0] = d, r[1] = v, r;
  57367. });
  57368. });
  57369. }
  57370. var IP = (
  57371. /** @class */
  57372. /* @__PURE__ */ function() {
  57373. function t(e) {
  57374. this.data = e.data || (e.sourceFormat === Xl ? {} : []), this.sourceFormat = e.sourceFormat || Jle, this.seriesLayoutBy = e.seriesLayoutBy || Nl, this.startIndex = e.startIndex || 0, this.dimensionsDetectedCount = e.dimensionsDetectedCount, this.metaRawOption = e.metaRawOption;
  57375. var n = this.dimensionsDefine = e.dimensionsDefine;
  57376. if (n)
  57377. for (var r = 0; r < n.length; r++) {
  57378. var i = n[r];
  57379. i.type == null && nue(this, r) === pi.Must && (i.type = "ordinal");
  57380. }
  57381. }
  57382. return t;
  57383. }()
  57384. );
  57385. function o3(t) {
  57386. return t instanceof IP;
  57387. }
  57388. function Vk(t, e, n) {
  57389. n = n || lue(t);
  57390. var r = e.seriesLayoutBy, i = lXe(t, n, r, e.sourceHeader, e.dimensions), a = new IP({
  57391. data: t,
  57392. sourceFormat: n,
  57393. seriesLayoutBy: r,
  57394. dimensionsDefine: i.dimensionsDefine,
  57395. startIndex: i.startIndex,
  57396. dimensionsDetectedCount: i.dimensionsDetectedCount,
  57397. metaRawOption: ot(e)
  57398. });
  57399. return a;
  57400. }
  57401. function s3(t) {
  57402. return new IP({
  57403. data: t,
  57404. sourceFormat: Qi(t) ? Mu : hs
  57405. });
  57406. }
  57407. function sXe(t) {
  57408. return new IP({
  57409. data: t.data,
  57410. sourceFormat: t.sourceFormat,
  57411. seriesLayoutBy: t.seriesLayoutBy,
  57412. dimensionsDefine: ot(t.dimensionsDefine),
  57413. startIndex: t.startIndex,
  57414. dimensionsDetectedCount: t.dimensionsDetectedCount
  57415. });
  57416. }
  57417. function lue(t) {
  57418. var e = Jle;
  57419. if (Qi(t))
  57420. e = Mu;
  57421. else if (Se(t)) {
  57422. t.length === 0 && (e = Hi);
  57423. for (var n = 0, r = t.length; n < r; n++) {
  57424. var i = t[n];
  57425. if (i != null) {
  57426. if (Se(i) || Qi(i)) {
  57427. e = Hi;
  57428. break;
  57429. } else if (nt(i)) {
  57430. e = ps;
  57431. break;
  57432. }
  57433. }
  57434. }
  57435. } else if (nt(t)) {
  57436. for (var a in t)
  57437. if (Qe(t, a) && Pi(t[a])) {
  57438. e = Xl;
  57439. break;
  57440. }
  57441. }
  57442. return e;
  57443. }
  57444. function lXe(t, e, n, r, i) {
  57445. var a, o;
  57446. if (!t)
  57447. return {
  57448. dimensionsDefine: GG(i),
  57449. startIndex: o,
  57450. dimensionsDetectedCount: a
  57451. };
  57452. if (e === Hi) {
  57453. var s = t;
  57454. r === "auto" || r == null ? jG(function(u) {
  57455. u != null && u !== "-" && (Ve(u) ? o == null && (o = 1) : o = 0);
  57456. }, n, s, 10) : o = Kt(r) ? r : r ? 1 : 0, !i && o === 1 && (i = [], jG(function(u, c) {
  57457. i[c] = u != null ? u + "" : "";
  57458. }, n, s, 1 / 0)), a = i ? i.length : n === Pm ? s.length : s[0] ? s[0].length : null;
  57459. } else if (e === ps)
  57460. i || (i = uXe(t));
  57461. else if (e === Xl)
  57462. i || (i = [], F(t, function(u, c) {
  57463. i.push(c);
  57464. }));
  57465. else if (e === hs) {
  57466. var l = ym(t[0]);
  57467. a = Se(l) && l.length || 1;
  57468. } else e === Mu && process.env.NODE_ENV !== "production" && at(!!i, "dimensions must be given if data is TypedArray.");
  57469. return {
  57470. startIndex: o,
  57471. dimensionsDefine: GG(i),
  57472. dimensionsDetectedCount: a
  57473. };
  57474. }
  57475. function uXe(t) {
  57476. for (var e = 0, n; e < t.length && !(n = t[e++]); )
  57477. ;
  57478. if (n)
  57479. return kt(n);
  57480. }
  57481. function GG(t) {
  57482. if (t) {
  57483. var e = Ze();
  57484. return Ce(t, function(n, r) {
  57485. n = nt(n) ? n : {
  57486. name: n
  57487. };
  57488. var i = {
  57489. name: n.name,
  57490. displayName: n.displayName,
  57491. type: n.type
  57492. };
  57493. if (i.name == null)
  57494. return i;
  57495. i.name += "", i.displayName == null && (i.displayName = i.name);
  57496. var a = e.get(i.name);
  57497. return a ? i.name += "-" + a.count++ : e.set(i.name, {
  57498. count: 1
  57499. }), i;
  57500. });
  57501. }
  57502. }
  57503. function jG(t, e, n, r) {
  57504. if (e === Pm)
  57505. for (var i = 0; i < n.length && i < r; i++)
  57506. t(n[i] ? n[i][0] : null, i);
  57507. else
  57508. for (var a = n[0] || [], i = 0; i < a.length && i < r; i++)
  57509. t(a[i], i);
  57510. }
  57511. function uue(t) {
  57512. var e = t.sourceFormat;
  57513. return e === ps || e === Xl;
  57514. }
  57515. var wd, Cd, Td, ZG, UG, cue = (
  57516. /** @class */
  57517. function() {
  57518. function t(e, n) {
  57519. var r = o3(e) ? e : s3(e);
  57520. this._source = r;
  57521. var i = this._data = r.data;
  57522. if (r.sourceFormat === Mu) {
  57523. if (process.env.NODE_ENV !== "production" && n == null)
  57524. throw new Error("Typed array data must specify dimension size");
  57525. this._offset = 0, this._dimSize = n, this._data = i;
  57526. }
  57527. UG(this, i, r);
  57528. }
  57529. return t.prototype.getSource = function() {
  57530. return this._source;
  57531. }, t.prototype.count = function() {
  57532. return 0;
  57533. }, t.prototype.getItem = function(e, n) {
  57534. }, t.prototype.appendData = function(e) {
  57535. }, t.prototype.clean = function() {
  57536. }, t.protoInitialize = function() {
  57537. var e = t.prototype;
  57538. e.pure = !1, e.persistent = !0;
  57539. }(), t.internalField = function() {
  57540. var e;
  57541. UG = function(o, s, l) {
  57542. var u = l.sourceFormat, c = l.seriesLayoutBy, f = l.startIndex, d = l.dimensionsDefine, h = ZG[l3(u, c)];
  57543. if (process.env.NODE_ENV !== "production" && at(h, "Invalide sourceFormat: " + u), _e(o, h), u === Mu)
  57544. o.getItem = n, o.count = i, o.fillStorage = r;
  57545. else {
  57546. var p = fue(u, c);
  57547. o.getItem = We(p, null, s, f, d);
  57548. var v = due(u, c);
  57549. o.count = We(v, null, s, f, d);
  57550. }
  57551. };
  57552. var n = function(o, s) {
  57553. o = o - this._offset, s = s || [];
  57554. for (var l = this._data, u = this._dimSize, c = u * o, f = 0; f < u; f++)
  57555. s[f] = l[c + f];
  57556. return s;
  57557. }, r = function(o, s, l, u) {
  57558. for (var c = this._data, f = this._dimSize, d = 0; d < f; d++) {
  57559. for (var h = u[d], p = h[0] == null ? 1 / 0 : h[0], v = h[1] == null ? -1 / 0 : h[1], g = s - o, m = l[d], y = 0; y < g; y++) {
  57560. var _ = c[y * f + d];
  57561. m[o + y] = _, _ < p && (p = _), _ > v && (v = _);
  57562. }
  57563. h[0] = p, h[1] = v;
  57564. }
  57565. }, i = function() {
  57566. return this._data ? this._data.length / this._dimSize : 0;
  57567. };
  57568. ZG = (e = {}, e[Hi + "_" + Nl] = {
  57569. pure: !0,
  57570. appendData: a
  57571. }, e[Hi + "_" + Pm] = {
  57572. pure: !0,
  57573. appendData: function() {
  57574. throw new Error('Do not support appendData when set seriesLayoutBy: "row".');
  57575. }
  57576. }, e[ps] = {
  57577. pure: !0,
  57578. appendData: a
  57579. }, e[Xl] = {
  57580. pure: !0,
  57581. appendData: function(o) {
  57582. var s = this._data;
  57583. F(o, function(l, u) {
  57584. for (var c = s[u] || (s[u] = []), f = 0; f < (l || []).length; f++)
  57585. c.push(l[f]);
  57586. });
  57587. }
  57588. }, e[hs] = {
  57589. appendData: a
  57590. }, e[Mu] = {
  57591. persistent: !1,
  57592. pure: !0,
  57593. appendData: function(o) {
  57594. process.env.NODE_ENV !== "production" && at(Qi(o), "Added data must be TypedArray if data in initialization is TypedArray"), this._data = o;
  57595. },
  57596. // Clean self if data is already used.
  57597. clean: function() {
  57598. this._offset += this.count(), this._data = null;
  57599. }
  57600. }, e);
  57601. function a(o) {
  57602. for (var s = 0; s < o.length; s++)
  57603. this._data.push(o[s]);
  57604. }
  57605. }(), t;
  57606. }()
  57607. ), XG = function(t, e, n, r) {
  57608. return t[r];
  57609. }, cXe = (wd = {}, wd[Hi + "_" + Nl] = function(t, e, n, r) {
  57610. return t[r + e];
  57611. }, wd[Hi + "_" + Pm] = function(t, e, n, r, i) {
  57612. r += e;
  57613. for (var a = i || [], o = t, s = 0; s < o.length; s++) {
  57614. var l = o[s];
  57615. a[s] = l ? l[r] : null;
  57616. }
  57617. return a;
  57618. }, wd[ps] = XG, wd[Xl] = function(t, e, n, r, i) {
  57619. for (var a = i || [], o = 0; o < n.length; o++) {
  57620. var s = n[o].name;
  57621. if (process.env.NODE_ENV !== "production" && s == null)
  57622. throw new Error();
  57623. var l = t[s];
  57624. a[o] = l ? l[r] : null;
  57625. }
  57626. return a;
  57627. }, wd[hs] = XG, wd);
  57628. function fue(t, e) {
  57629. var n = cXe[l3(t, e)];
  57630. return process.env.NODE_ENV !== "production" && at(n, 'Do not support get item on "' + t + '", "' + e + '".'), n;
  57631. }
  57632. var YG = function(t, e, n) {
  57633. return t.length;
  57634. }, fXe = (Cd = {}, Cd[Hi + "_" + Nl] = function(t, e, n) {
  57635. return Math.max(0, t.length - e);
  57636. }, Cd[Hi + "_" + Pm] = function(t, e, n) {
  57637. var r = t[0];
  57638. return r ? Math.max(0, r.length - e) : 0;
  57639. }, Cd[ps] = YG, Cd[Xl] = function(t, e, n) {
  57640. var r = n[0].name;
  57641. if (process.env.NODE_ENV !== "production" && r == null)
  57642. throw new Error();
  57643. var i = t[r];
  57644. return i ? i.length : 0;
  57645. }, Cd[hs] = YG, Cd);
  57646. function due(t, e) {
  57647. var n = fXe[l3(t, e)];
  57648. return process.env.NODE_ENV !== "production" && at(n, 'Do not support count on "' + t + '", "' + e + '".'), n;
  57649. }
  57650. var mM = function(t, e, n) {
  57651. return t[e];
  57652. }, dXe = (Td = {}, Td[Hi] = mM, Td[ps] = function(t, e, n) {
  57653. return t[n];
  57654. }, Td[Xl] = mM, Td[hs] = function(t, e, n) {
  57655. var r = ym(t);
  57656. return r instanceof Array ? r[e] : r;
  57657. }, Td[Mu] = mM, Td);
  57658. function hue(t) {
  57659. var e = dXe[t];
  57660. return process.env.NODE_ENV !== "production" && at(e, 'Do not support get value on "' + t + '".'), e;
  57661. }
  57662. function l3(t, e) {
  57663. return t === Hi ? t + "_" + e : t;
  57664. }
  57665. function Hg(t, e, n) {
  57666. if (t) {
  57667. var r = t.getRawDataItem(e);
  57668. if (r != null) {
  57669. var i = t.getStore(), a = i.getSource().sourceFormat;
  57670. if (n != null) {
  57671. var o = t.getDimensionIndex(n), s = i.getDimensionProperty(o);
  57672. return hue(a)(r, o, s);
  57673. } else {
  57674. var l = r;
  57675. return a === hs && (l = ym(r)), l;
  57676. }
  57677. }
  57678. }
  57679. }
  57680. var hXe = /\{@(.+?)\}/g, DP = (
  57681. /** @class */
  57682. function() {
  57683. function t() {
  57684. }
  57685. return t.prototype.getDataParams = function(e, n) {
  57686. var r = this.getData(n), i = this.getRawValue(e, n), a = r.getRawIndex(e), o = r.getName(e), s = r.getRawDataItem(e), l = r.getItemVisual(e, "style"), u = l && l[r.getItemVisual(e, "drawType") || "fill"], c = l && l.stroke, f = this.mainType, d = f === "series", h = r.userOutput && r.userOutput.get();
  57687. return {
  57688. componentType: f,
  57689. componentSubType: this.subType,
  57690. componentIndex: this.componentIndex,
  57691. seriesType: d ? this.subType : null,
  57692. seriesIndex: this.seriesIndex,
  57693. seriesId: d ? this.id : null,
  57694. seriesName: d ? this.name : null,
  57695. name: o,
  57696. dataIndex: a,
  57697. data: s,
  57698. dataType: n,
  57699. value: i,
  57700. color: u,
  57701. borderColor: c,
  57702. dimensionNames: h ? h.fullDimensions : null,
  57703. encode: h ? h.encode : null,
  57704. // Param name list for mapping `a`, `b`, `c`, `d`, `e`
  57705. $vars: ["seriesName", "name", "value"]
  57706. };
  57707. }, t.prototype.getFormattedLabel = function(e, n, r, i, a, o) {
  57708. n = n || "normal";
  57709. var s = this.getData(r), l = this.getDataParams(e, r);
  57710. if (o && (l.value = o.interpolatedValue), i != null && Se(l.value) && (l.value = l.value[i]), !a) {
  57711. var u = s.getItemModel(e);
  57712. a = u.get(n === "normal" ? ["label", "formatter"] : [n, "label", "formatter"]);
  57713. }
  57714. if (qe(a))
  57715. return l.status = n, l.dimensionIndex = i, a(l);
  57716. if (Ve(a)) {
  57717. var c = e3(a, l);
  57718. return c.replace(hXe, function(f, d) {
  57719. var h = d.length, p = d;
  57720. p.charAt(0) === "[" && p.charAt(h - 1) === "]" && (p = +p.slice(1, h - 1), process.env.NODE_ENV !== "production" && isNaN(p) && $i("Invalide label formatter: @" + d + ", only support @[0], @[1], @[2], ..."));
  57721. var v = Hg(s, e, p);
  57722. if (o && Se(o.interpolatedValue)) {
  57723. var g = s.getDimensionIndex(p);
  57724. g >= 0 && (v = o.interpolatedValue[g]);
  57725. }
  57726. return v != null ? v + "" : "";
  57727. });
  57728. }
  57729. }, t.prototype.getRawValue = function(e, n) {
  57730. return Hg(this.getData(n), e);
  57731. }, t.prototype.formatTooltip = function(e, n, r) {
  57732. }, t;
  57733. }()
  57734. );
  57735. function qG(t) {
  57736. var e, n;
  57737. return nt(t) ? t.type ? n = t : process.env.NODE_ENV !== "production" && console.warn("The return type of `formatTooltip` is not supported: " + fa(t)) : e = t, {
  57738. text: e,
  57739. // markers: markers || markersExisting,
  57740. frag: n
  57741. };
  57742. }
  57743. function ob(t) {
  57744. return new pXe(t);
  57745. }
  57746. var pXe = (
  57747. /** @class */
  57748. function() {
  57749. function t(e) {
  57750. e = e || {}, this._reset = e.reset, this._plan = e.plan, this._count = e.count, this._onDirty = e.onDirty, this._dirty = !0;
  57751. }
  57752. return t.prototype.perform = function(e) {
  57753. var n = this._upstream, r = e && e.skip;
  57754. if (this._dirty && n) {
  57755. var i = this.context;
  57756. i.data = i.outputData = n.context.outputData;
  57757. }
  57758. this.__pipeline && (this.__pipeline.currentTask = this);
  57759. var a;
  57760. this._plan && !r && (a = this._plan(this.context));
  57761. var o = c(this._modBy), s = this._modDataCount || 0, l = c(e && e.modBy), u = e && e.modDataCount || 0;
  57762. (o !== l || s !== u) && (a = "reset");
  57763. function c(y) {
  57764. return !(y >= 1) && (y = 1), y;
  57765. }
  57766. var f;
  57767. (this._dirty || a === "reset") && (this._dirty = !1, f = this._doReset(r)), this._modBy = l, this._modDataCount = u;
  57768. var d = e && e.step;
  57769. if (n ? (process.env.NODE_ENV !== "production" && at(n._outputDueEnd != null), this._dueEnd = n._outputDueEnd) : (process.env.NODE_ENV !== "production" && at(!this._progress || this._count), this._dueEnd = this._count ? this._count(this.context) : 1 / 0), this._progress) {
  57770. var h = this._dueIndex, p = Math.min(d != null ? this._dueIndex + d : 1 / 0, this._dueEnd);
  57771. if (!r && (f || h < p)) {
  57772. var v = this._progress;
  57773. if (Se(v))
  57774. for (var g = 0; g < v.length; g++)
  57775. this._doProgress(v[g], h, p, l, u);
  57776. else
  57777. this._doProgress(v, h, p, l, u);
  57778. }
  57779. this._dueIndex = p;
  57780. var m = this._settedOutputEnd != null ? this._settedOutputEnd : p;
  57781. process.env.NODE_ENV !== "production" && at(m >= this._outputDueEnd), this._outputDueEnd = m;
  57782. } else
  57783. this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;
  57784. return this.unfinished();
  57785. }, t.prototype.dirty = function() {
  57786. this._dirty = !0, this._onDirty && this._onDirty(this.context);
  57787. }, t.prototype._doProgress = function(e, n, r, i, a) {
  57788. KG.reset(n, r, i, a), this._callingProgress = e, this._callingProgress({
  57789. start: n,
  57790. end: r,
  57791. count: r - n,
  57792. next: KG.next
  57793. }, this.context);
  57794. }, t.prototype._doReset = function(e) {
  57795. this._dueIndex = this._outputDueEnd = this._dueEnd = 0, this._settedOutputEnd = null;
  57796. var n, r;
  57797. !e && this._reset && (n = this._reset(this.context), n && n.progress && (r = n.forceFirstProgress, n = n.progress), Se(n) && !n.length && (n = null)), this._progress = n, this._modBy = this._modDataCount = null;
  57798. var i = this._downstream;
  57799. return i && i.dirty(), r;
  57800. }, t.prototype.unfinished = function() {
  57801. return this._progress && this._dueIndex < this._dueEnd;
  57802. }, t.prototype.pipe = function(e) {
  57803. process.env.NODE_ENV !== "production" && at(e && !e._disposed && e !== this), (this._downstream !== e || this._dirty) && (this._downstream = e, e._upstream = this, e.dirty());
  57804. }, t.prototype.dispose = function() {
  57805. this._disposed || (this._upstream && (this._upstream._downstream = null), this._downstream && (this._downstream._upstream = null), this._dirty = !1, this._disposed = !0);
  57806. }, t.prototype.getUpstream = function() {
  57807. return this._upstream;
  57808. }, t.prototype.getDownstream = function() {
  57809. return this._downstream;
  57810. }, t.prototype.setOutputEnd = function(e) {
  57811. this._outputDueEnd = this._settedOutputEnd = e;
  57812. }, t;
  57813. }()
  57814. ), KG = /* @__PURE__ */ function() {
  57815. var t, e, n, r, i, a = {
  57816. reset: function(l, u, c, f) {
  57817. e = l, t = u, n = c, r = f, i = Math.ceil(r / n), a.next = n > 1 && r > 0 ? s : o;
  57818. }
  57819. };
  57820. return a;
  57821. function o() {
  57822. return e < t ? e++ : null;
  57823. }
  57824. function s() {
  57825. var l = e % i * n + Math.ceil(e / i), u = e >= t ? null : l < r ? l : e;
  57826. return e++, u;
  57827. }
  57828. }();
  57829. function sf(t, e) {
  57830. var n = e && e.type;
  57831. return n === "ordinal" ? t : (n === "time" && !Kt(t) && t != null && t !== "-" && (t = +go(t)), t == null || t === "" ? NaN : Number(t));
  57832. }
  57833. var vXe = Ze({
  57834. number: function(t) {
  57835. return parseFloat(t);
  57836. },
  57837. time: function(t) {
  57838. return +go(t);
  57839. },
  57840. trim: function(t) {
  57841. return Ve(t) ? Zo(t) : t;
  57842. }
  57843. });
  57844. function pue(t) {
  57845. return vXe.get(t);
  57846. }
  57847. var vue = {
  57848. lt: function(t, e) {
  57849. return t < e;
  57850. },
  57851. lte: function(t, e) {
  57852. return t <= e;
  57853. },
  57854. gt: function(t, e) {
  57855. return t > e;
  57856. },
  57857. gte: function(t, e) {
  57858. return t >= e;
  57859. }
  57860. }, gXe = (
  57861. /** @class */
  57862. function() {
  57863. function t(e, n) {
  57864. if (!Kt(n)) {
  57865. var r = "";
  57866. process.env.NODE_ENV !== "production" && (r = 'rvalue of "<", ">", "<=", ">=" can only be number in filter.'), fn(r);
  57867. }
  57868. this._opFn = vue[e], this._rvalFloat = Gl(n);
  57869. }
  57870. return t.prototype.evaluate = function(e) {
  57871. return Kt(e) ? this._opFn(e, this._rvalFloat) : this._opFn(Gl(e), this._rvalFloat);
  57872. }, t;
  57873. }()
  57874. ), gue = (
  57875. /** @class */
  57876. function() {
  57877. function t(e, n) {
  57878. var r = e === "desc";
  57879. this._resultLT = r ? 1 : -1, n == null && (n = r ? "min" : "max"), this._incomparable = n === "min" ? -1 / 0 : 1 / 0;
  57880. }
  57881. return t.prototype.evaluate = function(e, n) {
  57882. var r = Kt(e) ? e : Gl(e), i = Kt(n) ? n : Gl(n), a = isNaN(r), o = isNaN(i);
  57883. if (a && (r = this._incomparable), o && (i = this._incomparable), a && o) {
  57884. var s = Ve(e), l = Ve(n);
  57885. s && (r = l ? e : 0), l && (i = s ? n : 0);
  57886. }
  57887. return r < i ? this._resultLT : r > i ? -this._resultLT : 0;
  57888. }, t;
  57889. }()
  57890. ), mXe = (
  57891. /** @class */
  57892. function() {
  57893. function t(e, n) {
  57894. this._rval = n, this._isEQ = e, this._rvalTypeof = typeof n, this._rvalFloat = Gl(n);
  57895. }
  57896. return t.prototype.evaluate = function(e) {
  57897. var n = e === this._rval;
  57898. if (!n) {
  57899. var r = typeof e;
  57900. r !== this._rvalTypeof && (r === "number" || this._rvalTypeof === "number") && (n = Gl(e) === this._rvalFloat);
  57901. }
  57902. return this._isEQ ? n : !n;
  57903. }, t;
  57904. }()
  57905. );
  57906. function yXe(t, e) {
  57907. return t === "eq" || t === "ne" ? new mXe(t === "eq", e) : Qe(vue, t) ? new gXe(t, e) : null;
  57908. }
  57909. var bXe = (
  57910. /** @class */
  57911. function() {
  57912. function t() {
  57913. }
  57914. return t.prototype.getRawData = function() {
  57915. throw new Error("not supported");
  57916. }, t.prototype.getRawDataItem = function(e) {
  57917. throw new Error("not supported");
  57918. }, t.prototype.cloneRawData = function() {
  57919. }, t.prototype.getDimensionInfo = function(e) {
  57920. }, t.prototype.cloneAllDimensionInfo = function() {
  57921. }, t.prototype.count = function() {
  57922. }, t.prototype.retrieveValue = function(e, n) {
  57923. }, t.prototype.retrieveValueFromItem = function(e, n) {
  57924. }, t.prototype.convertValue = function(e, n) {
  57925. return sf(e, n);
  57926. }, t;
  57927. }()
  57928. );
  57929. function _Xe(t, e) {
  57930. var n = new bXe(), r = t.data, i = n.sourceFormat = t.sourceFormat, a = t.startIndex, o = "";
  57931. t.seriesLayoutBy !== Nl && (process.env.NODE_ENV !== "production" && (o = '`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'), fn(o));
  57932. var s = [], l = {}, u = t.dimensionsDefine;
  57933. if (u)
  57934. F(u, function(v, g) {
  57935. var m = v.name, y = {
  57936. index: g,
  57937. name: m,
  57938. displayName: v.displayName
  57939. };
  57940. if (s.push(y), m != null) {
  57941. var _ = "";
  57942. Qe(l, m) && (process.env.NODE_ENV !== "production" && (_ = 'dimension name "' + m + '" duplicated.'), fn(_)), l[m] = y;
  57943. }
  57944. });
  57945. else
  57946. for (var c = 0; c < t.dimensionsDetectedCount; c++)
  57947. s.push({
  57948. index: c
  57949. });
  57950. var f = fue(i, Nl);
  57951. e.__isBuiltIn && (n.getRawDataItem = function(v) {
  57952. return f(r, a, s, v);
  57953. }, n.getRawData = We(OXe, null, t)), n.cloneRawData = We(SXe, null, t);
  57954. var d = due(i, Nl);
  57955. n.count = We(d, null, r, a, s);
  57956. var h = hue(i);
  57957. n.retrieveValue = function(v, g) {
  57958. var m = f(r, a, s, v);
  57959. return p(m, g);
  57960. };
  57961. var p = n.retrieveValueFromItem = function(v, g) {
  57962. if (v != null) {
  57963. var m = s[g];
  57964. if (m)
  57965. return h(v, g, m.name);
  57966. }
  57967. };
  57968. return n.getDimensionInfo = We(xXe, null, s, l), n.cloneAllDimensionInfo = We(wXe, null, s), n;
  57969. }
  57970. function OXe(t) {
  57971. var e = t.sourceFormat;
  57972. if (!u3(e)) {
  57973. var n = "";
  57974. process.env.NODE_ENV !== "production" && (n = "`getRawData` is not supported in source format " + e), fn(n);
  57975. }
  57976. return t.data;
  57977. }
  57978. function SXe(t) {
  57979. var e = t.sourceFormat, n = t.data;
  57980. if (!u3(e)) {
  57981. var r = "";
  57982. process.env.NODE_ENV !== "production" && (r = "`cloneRawData` is not supported in source format " + e), fn(r);
  57983. }
  57984. if (e === Hi) {
  57985. for (var i = [], a = 0, o = n.length; a < o; a++)
  57986. i.push(n[a].slice());
  57987. return i;
  57988. } else if (e === ps) {
  57989. for (var i = [], a = 0, o = n.length; a < o; a++)
  57990. i.push(_e({}, n[a]));
  57991. return i;
  57992. }
  57993. }
  57994. function xXe(t, e, n) {
  57995. if (n != null) {
  57996. if (Kt(n) || !isNaN(n) && !Qe(e, n))
  57997. return t[n];
  57998. if (Qe(e, n))
  57999. return e[n];
  58000. }
  58001. }
  58002. function wXe(t) {
  58003. return ot(t);
  58004. }
  58005. var mue = Ze();
  58006. function CXe(t) {
  58007. t = ot(t);
  58008. var e = t.type, n = "";
  58009. e || (process.env.NODE_ENV !== "production" && (n = "Must have a `type` when `registerTransform`."), fn(n));
  58010. var r = e.split(":");
  58011. r.length !== 2 && (process.env.NODE_ENV !== "production" && (n = 'Name must include namespace like "ns:regression".'), fn(n));
  58012. var i = !1;
  58013. r[0] === "echarts" && (e = r[1], i = !0), t.__isBuiltIn = i, mue.set(e, t);
  58014. }
  58015. function TXe(t, e, n) {
  58016. var r = Cn(t), i = r.length, a = "";
  58017. i || (process.env.NODE_ENV !== "production" && (a = "If `transform` declared, it should at least contain one transform."), fn(a));
  58018. for (var o = 0, s = i; o < s; o++) {
  58019. var l = r[o];
  58020. e = PXe(l, e, n, i === 1 ? null : o), o !== s - 1 && (e.length = Math.max(e.length, 1));
  58021. }
  58022. return e;
  58023. }
  58024. function PXe(t, e, n, r) {
  58025. var i = "";
  58026. e.length || (process.env.NODE_ENV !== "production" && (i = "Must have at least one upstream dataset."), fn(i)), nt(t) || (process.env.NODE_ENV !== "production" && (i = "transform declaration must be an object rather than " + typeof t + "."), fn(i));
  58027. var a = t.type, o = mue.get(a);
  58028. o || (process.env.NODE_ENV !== "production" && (i = 'Can not find transform on type "' + a + '".'), fn(i));
  58029. var s = Ce(e, function(c) {
  58030. return _Xe(c, o);
  58031. }), l = Cn(o.transform({
  58032. upstream: s[0],
  58033. upstreamList: s,
  58034. config: ot(t.config)
  58035. }));
  58036. if (process.env.NODE_ENV !== "production" && t.print) {
  58037. var u = Ce(l, function(c) {
  58038. var f = r != null ? " === pipe index: " + r : "";
  58039. return ["=== dataset index: " + n.datasetIndex + f + " ===", "- transform result data:", fa(c.data), "- transform result dimensions:", fa(c.dimensions)].join(`
  58040. `);
  58041. }).join(`
  58042. `);
  58043. JGe(u);
  58044. }
  58045. return Ce(l, function(c, f) {
  58046. var d = "";
  58047. nt(c) || (process.env.NODE_ENV !== "production" && (d = "A transform should not return some empty results."), fn(d)), c.data || (process.env.NODE_ENV !== "production" && (d = "Transform result data should be not be null or undefined"), fn(d));
  58048. var h = lue(c.data);
  58049. u3(h) || (process.env.NODE_ENV !== "production" && (d = "Transform result data should be array rows or object rows."), fn(d));
  58050. var p, v = e[0];
  58051. if (v && f === 0 && !c.dimensions) {
  58052. var g = v.startIndex;
  58053. g && (c.data = v.data.slice(0, g).concat(c.data)), p = {
  58054. seriesLayoutBy: Nl,
  58055. sourceHeader: g,
  58056. dimensions: v.metaRawOption.dimensions
  58057. };
  58058. } else
  58059. p = {
  58060. seriesLayoutBy: Nl,
  58061. sourceHeader: 0,
  58062. dimensions: c.dimensions
  58063. };
  58064. return Vk(c.data, p, null);
  58065. });
  58066. }
  58067. function u3(t) {
  58068. return t === Hi || t === ps;
  58069. }
  58070. var RP = "undefined", $Xe = typeof Uint32Array === RP ? Array : Uint32Array, AXe = typeof Uint16Array === RP ? Array : Uint16Array, yue = typeof Int32Array === RP ? Array : Int32Array, JG = typeof Float64Array === RP ? Array : Float64Array, bue = {
  58071. float: JG,
  58072. int: yue,
  58073. // Ordinal data type can be string or int
  58074. ordinal: Array,
  58075. number: Array,
  58076. time: JG
  58077. }, yM;
  58078. function R0(t) {
  58079. return t > 65535 ? $Xe : AXe;
  58080. }
  58081. function ev() {
  58082. return [1 / 0, -1 / 0];
  58083. }
  58084. function EXe(t) {
  58085. var e = t.constructor;
  58086. return e === Array ? t.slice() : new e(t);
  58087. }
  58088. function ej(t, e, n, r, i) {
  58089. var a = bue[n || "float"];
  58090. if (i) {
  58091. var o = t[e], s = o && o.length;
  58092. if (s !== r) {
  58093. for (var l = new a(r), u = 0; u < s; u++)
  58094. l[u] = o[u];
  58095. t[e] = l;
  58096. }
  58097. } else
  58098. t[e] = new a(r);
  58099. }
  58100. var Fk = (
  58101. /** @class */
  58102. function() {
  58103. function t() {
  58104. this._chunks = [], this._rawExtent = [], this._extent = [], this._count = 0, this._rawCount = 0, this._calcDimNameToIdx = Ze();
  58105. }
  58106. return t.prototype.initData = function(e, n, r) {
  58107. process.env.NODE_ENV !== "production" && at(qe(e.getItem) && qe(e.count), "Invalid data provider."), this._provider = e, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity;
  58108. var i = e.getSource(), a = this.defaultDimValueGetter = yM[i.sourceFormat];
  58109. this._dimValueGetter = r || a, this._rawExtent = [];
  58110. var o = uue(i);
  58111. this._dimensions = Ce(n, function(s) {
  58112. return process.env.NODE_ENV !== "production" && o && at(s.property != null), {
  58113. // Only pick these two props. Not leak other properties like orderMeta.
  58114. type: s.type,
  58115. property: s.property
  58116. };
  58117. }), this._initDataFromProvider(0, e.count());
  58118. }, t.prototype.getProvider = function() {
  58119. return this._provider;
  58120. }, t.prototype.getSource = function() {
  58121. return this._provider.getSource();
  58122. }, t.prototype.ensureCalculationDimension = function(e, n) {
  58123. var r = this._calcDimNameToIdx, i = this._dimensions, a = r.get(e);
  58124. if (a != null) {
  58125. if (i[a].type === n)
  58126. return a;
  58127. } else
  58128. a = i.length;
  58129. return i[a] = {
  58130. type: n
  58131. }, r.set(e, a), this._chunks[a] = new bue[n || "float"](this._rawCount), this._rawExtent[a] = ev(), a;
  58132. }, t.prototype.collectOrdinalMeta = function(e, n) {
  58133. var r = this._chunks[e], i = this._dimensions[e], a = this._rawExtent, o = i.ordinalOffset || 0, s = r.length;
  58134. o === 0 && (a[e] = ev());
  58135. for (var l = a[e], u = o; u < s; u++) {
  58136. var c = r[u] = n.parseAndCollect(r[u]);
  58137. isNaN(c) || (l[0] = Math.min(c, l[0]), l[1] = Math.max(c, l[1]));
  58138. }
  58139. i.ordinalMeta = n, i.ordinalOffset = s, i.type = "ordinal";
  58140. }, t.prototype.getOrdinalMeta = function(e) {
  58141. var n = this._dimensions[e], r = n.ordinalMeta;
  58142. return r;
  58143. }, t.prototype.getDimensionProperty = function(e) {
  58144. var n = this._dimensions[e];
  58145. return n && n.property;
  58146. }, t.prototype.appendData = function(e) {
  58147. process.env.NODE_ENV !== "production" && at(!this._indices, "appendData can only be called on raw data.");
  58148. var n = this._provider, r = this.count();
  58149. n.appendData(e);
  58150. var i = n.count();
  58151. return n.persistent || (i += r), r < i && this._initDataFromProvider(r, i, !0), [r, i];
  58152. }, t.prototype.appendValues = function(e, n) {
  58153. for (var r = this._chunks, i = this._dimensions, a = i.length, o = this._rawExtent, s = this.count(), l = s + Math.max(e.length, n || 0), u = 0; u < a; u++) {
  58154. var c = i[u];
  58155. ej(r, u, c.type, l, !0);
  58156. }
  58157. for (var f = [], d = s; d < l; d++)
  58158. for (var h = d - s, p = 0; p < a; p++) {
  58159. var c = i[p], v = yM.arrayRows.call(this, e[h] || f, c.property, h, p);
  58160. r[p][d] = v;
  58161. var g = o[p];
  58162. v < g[0] && (g[0] = v), v > g[1] && (g[1] = v);
  58163. }
  58164. return this._rawCount = this._count = l, {
  58165. start: s,
  58166. end: l
  58167. };
  58168. }, t.prototype._initDataFromProvider = function(e, n, r) {
  58169. for (var i = this._provider, a = this._chunks, o = this._dimensions, s = o.length, l = this._rawExtent, u = Ce(o, function(y) {
  58170. return y.property;
  58171. }), c = 0; c < s; c++) {
  58172. var f = o[c];
  58173. l[c] || (l[c] = ev()), ej(a, c, f.type, n, r);
  58174. }
  58175. if (i.fillStorage)
  58176. i.fillStorage(e, n, a, l);
  58177. else
  58178. for (var d = [], h = e; h < n; h++) {
  58179. d = i.getItem(h, d);
  58180. for (var p = 0; p < s; p++) {
  58181. var v = a[p], g = this._dimValueGetter(d, u[p], h, p);
  58182. v[h] = g;
  58183. var m = l[p];
  58184. g < m[0] && (m[0] = g), g > m[1] && (m[1] = g);
  58185. }
  58186. }
  58187. !i.persistent && i.clean && i.clean(), this._rawCount = this._count = n, this._extent = [];
  58188. }, t.prototype.count = function() {
  58189. return this._count;
  58190. }, t.prototype.get = function(e, n) {
  58191. if (!(n >= 0 && n < this._count))
  58192. return NaN;
  58193. var r = this._chunks[e];
  58194. return r ? r[this.getRawIndex(n)] : NaN;
  58195. }, t.prototype.getValues = function(e, n) {
  58196. var r = [], i = [];
  58197. if (n == null) {
  58198. n = e, e = [];
  58199. for (var a = 0; a < this._dimensions.length; a++)
  58200. i.push(a);
  58201. } else
  58202. i = e;
  58203. for (var a = 0, o = i.length; a < o; a++)
  58204. r.push(this.get(i[a], n));
  58205. return r;
  58206. }, t.prototype.getByRawIndex = function(e, n) {
  58207. if (!(n >= 0 && n < this._rawCount))
  58208. return NaN;
  58209. var r = this._chunks[e];
  58210. return r ? r[n] : NaN;
  58211. }, t.prototype.getSum = function(e) {
  58212. var n = this._chunks[e], r = 0;
  58213. if (n)
  58214. for (var i = 0, a = this.count(); i < a; i++) {
  58215. var o = this.get(e, i);
  58216. isNaN(o) || (r += o);
  58217. }
  58218. return r;
  58219. }, t.prototype.getMedian = function(e) {
  58220. var n = [];
  58221. this.each([e], function(a) {
  58222. isNaN(a) || n.push(a);
  58223. });
  58224. var r = n.sort(function(a, o) {
  58225. return a - o;
  58226. }), i = this.count();
  58227. return i === 0 ? 0 : i % 2 === 1 ? r[(i - 1) / 2] : (r[i / 2] + r[i / 2 - 1]) / 2;
  58228. }, t.prototype.indexOfRawIndex = function(e) {
  58229. if (e >= this._rawCount || e < 0)
  58230. return -1;
  58231. if (!this._indices)
  58232. return e;
  58233. var n = this._indices, r = n[e];
  58234. if (r != null && r < this._count && r === e)
  58235. return e;
  58236. for (var i = 0, a = this._count - 1; i <= a; ) {
  58237. var o = (i + a) / 2 | 0;
  58238. if (n[o] < e)
  58239. i = o + 1;
  58240. else if (n[o] > e)
  58241. a = o - 1;
  58242. else
  58243. return o;
  58244. }
  58245. return -1;
  58246. }, t.prototype.indicesOfNearest = function(e, n, r) {
  58247. var i = this._chunks, a = i[e], o = [];
  58248. if (!a)
  58249. return o;
  58250. r == null && (r = 1 / 0);
  58251. for (var s = 1 / 0, l = -1, u = 0, c = 0, f = this.count(); c < f; c++) {
  58252. var d = this.getRawIndex(c), h = n - a[d], p = Math.abs(h);
  58253. p <= r && ((p < s || p === s && h >= 0 && l < 0) && (s = p, l = h, u = 0), h === l && (o[u++] = c));
  58254. }
  58255. return o.length = u, o;
  58256. }, t.prototype.getIndices = function() {
  58257. var e, n = this._indices;
  58258. if (n) {
  58259. var r = n.constructor, i = this._count;
  58260. if (r === Array) {
  58261. e = new r(i);
  58262. for (var a = 0; a < i; a++)
  58263. e[a] = n[a];
  58264. } else
  58265. e = new r(n.buffer, 0, i);
  58266. } else {
  58267. var r = R0(this._rawCount);
  58268. e = new r(this.count());
  58269. for (var a = 0; a < e.length; a++)
  58270. e[a] = a;
  58271. }
  58272. return e;
  58273. }, t.prototype.filter = function(e, n) {
  58274. if (!this._count)
  58275. return this;
  58276. for (var r = this.clone(), i = r.count(), a = R0(r._rawCount), o = new a(i), s = [], l = e.length, u = 0, c = e[0], f = r._chunks, d = 0; d < i; d++) {
  58277. var h = void 0, p = r.getRawIndex(d);
  58278. if (l === 0)
  58279. h = n(d);
  58280. else if (l === 1) {
  58281. var v = f[c][p];
  58282. h = n(v, d);
  58283. } else {
  58284. for (var g = 0; g < l; g++)
  58285. s[g] = f[e[g]][p];
  58286. s[g] = d, h = n.apply(null, s);
  58287. }
  58288. h && (o[u++] = p);
  58289. }
  58290. return u < i && (r._indices = o), r._count = u, r._extent = [], r._updateGetRawIdx(), r;
  58291. }, t.prototype.selectRange = function(e) {
  58292. var n = this.clone(), r = n._count;
  58293. if (!r)
  58294. return this;
  58295. var i = kt(e), a = i.length;
  58296. if (!a)
  58297. return this;
  58298. var o = n.count(), s = R0(n._rawCount), l = new s(o), u = 0, c = i[0], f = e[c][0], d = e[c][1], h = n._chunks, p = !1;
  58299. if (!n._indices) {
  58300. var v = 0;
  58301. if (a === 1) {
  58302. for (var g = h[i[0]], m = 0; m < r; m++) {
  58303. var y = g[m];
  58304. (y >= f && y <= d || isNaN(y)) && (l[u++] = v), v++;
  58305. }
  58306. p = !0;
  58307. } else if (a === 2) {
  58308. for (var g = h[i[0]], _ = h[i[1]], O = e[i[1]][0], S = e[i[1]][1], m = 0; m < r; m++) {
  58309. var y = g[m], x = _[m];
  58310. (y >= f && y <= d || isNaN(y)) && (x >= O && x <= S || isNaN(x)) && (l[u++] = v), v++;
  58311. }
  58312. p = !0;
  58313. }
  58314. }
  58315. if (!p)
  58316. if (a === 1)
  58317. for (var m = 0; m < o; m++) {
  58318. var C = n.getRawIndex(m), y = h[i[0]][C];
  58319. (y >= f && y <= d || isNaN(y)) && (l[u++] = C);
  58320. }
  58321. else
  58322. for (var m = 0; m < o; m++) {
  58323. for (var P = !0, C = n.getRawIndex(m), $ = 0; $ < a; $++) {
  58324. var T = i[$], y = h[T][C];
  58325. (y < e[T][0] || y > e[T][1]) && (P = !1);
  58326. }
  58327. P && (l[u++] = n.getRawIndex(m));
  58328. }
  58329. return u < o && (n._indices = l), n._count = u, n._extent = [], n._updateGetRawIdx(), n;
  58330. }, t.prototype.map = function(e, n) {
  58331. var r = this.clone(e);
  58332. return this._updateDims(r, e, n), r;
  58333. }, t.prototype.modify = function(e, n) {
  58334. this._updateDims(this, e, n);
  58335. }, t.prototype._updateDims = function(e, n, r) {
  58336. for (var i = e._chunks, a = [], o = n.length, s = e.count(), l = [], u = e._rawExtent, c = 0; c < n.length; c++)
  58337. u[n[c]] = ev();
  58338. for (var f = 0; f < s; f++) {
  58339. for (var d = e.getRawIndex(f), h = 0; h < o; h++)
  58340. l[h] = i[n[h]][d];
  58341. l[o] = f;
  58342. var p = r && r.apply(null, l);
  58343. if (p != null) {
  58344. typeof p != "object" && (a[0] = p, p = a);
  58345. for (var c = 0; c < p.length; c++) {
  58346. var v = n[c], g = p[c], m = u[v], y = i[v];
  58347. y && (y[d] = g), g < m[0] && (m[0] = g), g > m[1] && (m[1] = g);
  58348. }
  58349. }
  58350. }
  58351. }, t.prototype.lttbDownSample = function(e, n) {
  58352. var r = this.clone([e], !0), i = r._chunks, a = i[e], o = this.count(), s = 0, l = Math.floor(1 / n), u = this.getRawIndex(0), c, f, d, h = new (R0(this._rawCount))(Math.min((Math.ceil(o / l) + 2) * 2, o));
  58353. h[s++] = u;
  58354. for (var p = 1; p < o - 1; p += l) {
  58355. for (var v = Math.min(p + l, o - 1), g = Math.min(p + l * 2, o), m = (g + v) / 2, y = 0, _ = v; _ < g; _++) {
  58356. var O = this.getRawIndex(_), S = a[O];
  58357. isNaN(S) || (y += S);
  58358. }
  58359. y /= g - v;
  58360. var x = p, C = Math.min(p + l, o), P = p - 1, $ = a[u];
  58361. c = -1, d = x;
  58362. for (var T = -1, E = 0, _ = x; _ < C; _++) {
  58363. var O = this.getRawIndex(_), S = a[O];
  58364. if (isNaN(S)) {
  58365. E++, T < 0 && (T = O);
  58366. continue;
  58367. }
  58368. f = Math.abs((P - m) * (S - $) - (P - _) * (y - $)), f > c && (c = f, d = O);
  58369. }
  58370. E > 0 && E < C - x && (h[s++] = Math.min(T, d), d = Math.max(T, d)), h[s++] = d, u = d;
  58371. }
  58372. return h[s++] = this.getRawIndex(o - 1), r._count = s, r._indices = h, r.getRawIndex = this._getRawIdx, r;
  58373. }, t.prototype.downSample = function(e, n, r, i) {
  58374. for (var a = this.clone([e], !0), o = a._chunks, s = [], l = Math.floor(1 / n), u = o[e], c = this.count(), f = a._rawExtent[e] = ev(), d = new (R0(this._rawCount))(Math.ceil(c / l)), h = 0, p = 0; p < c; p += l) {
  58375. l > c - p && (l = c - p, s.length = l);
  58376. for (var v = 0; v < l; v++) {
  58377. var g = this.getRawIndex(p + v);
  58378. s[v] = u[g];
  58379. }
  58380. var m = r(s), y = this.getRawIndex(Math.min(p + i(s, m) || 0, c - 1));
  58381. u[y] = m, m < f[0] && (f[0] = m), m > f[1] && (f[1] = m), d[h++] = y;
  58382. }
  58383. return a._count = h, a._indices = d, a._updateGetRawIdx(), a;
  58384. }, t.prototype.each = function(e, n) {
  58385. if (this._count)
  58386. for (var r = e.length, i = this._chunks, a = 0, o = this.count(); a < o; a++) {
  58387. var s = this.getRawIndex(a);
  58388. switch (r) {
  58389. case 0:
  58390. n(a);
  58391. break;
  58392. case 1:
  58393. n(i[e[0]][s], a);
  58394. break;
  58395. case 2:
  58396. n(i[e[0]][s], i[e[1]][s], a);
  58397. break;
  58398. default:
  58399. for (var l = 0, u = []; l < r; l++)
  58400. u[l] = i[e[l]][s];
  58401. u[l] = a, n.apply(null, u);
  58402. }
  58403. }
  58404. }, t.prototype.getDataExtent = function(e) {
  58405. var n = this._chunks[e], r = ev();
  58406. if (!n)
  58407. return r;
  58408. var i = this.count(), a = !this._indices, o;
  58409. if (a)
  58410. return this._rawExtent[e].slice();
  58411. if (o = this._extent[e], o)
  58412. return o.slice();
  58413. o = r;
  58414. for (var s = o[0], l = o[1], u = 0; u < i; u++) {
  58415. var c = this.getRawIndex(u), f = n[c];
  58416. f < s && (s = f), f > l && (l = f);
  58417. }
  58418. return o = [s, l], this._extent[e] = o, o;
  58419. }, t.prototype.getRawDataItem = function(e) {
  58420. var n = this.getRawIndex(e);
  58421. if (this._provider.persistent)
  58422. return this._provider.getItem(n);
  58423. for (var r = [], i = this._chunks, a = 0; a < i.length; a++)
  58424. r.push(i[a][n]);
  58425. return r;
  58426. }, t.prototype.clone = function(e, n) {
  58427. var r = new t(), i = this._chunks, a = e && os(e, function(s, l) {
  58428. return s[l] = !0, s;
  58429. }, {});
  58430. if (a)
  58431. for (var o = 0; o < i.length; o++)
  58432. r._chunks[o] = a[o] ? EXe(i[o]) : i[o];
  58433. else
  58434. r._chunks = i;
  58435. return this._copyCommonProps(r), n || (r._indices = this._cloneIndices()), r._updateGetRawIdx(), r;
  58436. }, t.prototype._copyCommonProps = function(e) {
  58437. e._count = this._count, e._rawCount = this._rawCount, e._provider = this._provider, e._dimensions = this._dimensions, e._extent = ot(this._extent), e._rawExtent = ot(this._rawExtent);
  58438. }, t.prototype._cloneIndices = function() {
  58439. if (this._indices) {
  58440. var e = this._indices.constructor, n = void 0;
  58441. if (e === Array) {
  58442. var r = this._indices.length;
  58443. n = new e(r);
  58444. for (var i = 0; i < r; i++)
  58445. n[i] = this._indices[i];
  58446. } else
  58447. n = new e(this._indices);
  58448. return n;
  58449. }
  58450. return null;
  58451. }, t.prototype._getRawIdxIdentity = function(e) {
  58452. return e;
  58453. }, t.prototype._getRawIdx = function(e) {
  58454. return e < this._count && e >= 0 ? this._indices[e] : -1;
  58455. }, t.prototype._updateGetRawIdx = function() {
  58456. this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity;
  58457. }, t.internalField = function() {
  58458. function e(n, r, i, a) {
  58459. return sf(n[a], this._dimensions[a]);
  58460. }
  58461. yM = {
  58462. arrayRows: e,
  58463. objectRows: function(n, r, i, a) {
  58464. return sf(n[r], this._dimensions[a]);
  58465. },
  58466. keyedColumns: e,
  58467. original: function(n, r, i, a) {
  58468. var o = n && (n.value == null ? n : n.value);
  58469. return sf(o instanceof Array ? o[a] : o, this._dimensions[a]);
  58470. },
  58471. typedArray: function(n, r, i, a) {
  58472. return n[a];
  58473. }
  58474. };
  58475. }(), t;
  58476. }()
  58477. ), _ue = (
  58478. /** @class */
  58479. function() {
  58480. function t(e) {
  58481. this._sourceList = [], this._storeList = [], this._upstreamSignList = [], this._versionSignBase = 0, this._dirty = !0, this._sourceHost = e;
  58482. }
  58483. return t.prototype.dirty = function() {
  58484. this._setLocalSource([], []), this._storeList = [], this._dirty = !0;
  58485. }, t.prototype._setLocalSource = function(e, n) {
  58486. this._sourceList = e, this._upstreamSignList = n, this._versionSignBase++, this._versionSignBase > 9e10 && (this._versionSignBase = 0);
  58487. }, t.prototype._getVersionSign = function() {
  58488. return this._sourceHost.uid + "_" + this._versionSignBase;
  58489. }, t.prototype.prepareSource = function() {
  58490. this._isDirty() && (this._createSource(), this._dirty = !1);
  58491. }, t.prototype._createSource = function() {
  58492. this._setLocalSource([], []);
  58493. var e = this._sourceHost, n = this._getUpstreamSourceManagers(), r = !!n.length, i, a;
  58494. if (k0(e)) {
  58495. var o = e, s = void 0, l = void 0, u = void 0;
  58496. if (r) {
  58497. var c = n[0];
  58498. c.prepareSource(), u = c.getSource(), s = u.data, l = u.sourceFormat, a = [c._getVersionSign()];
  58499. } else
  58500. s = o.get("data", !0), l = Qi(s) ? Mu : hs, a = [];
  58501. var f = this._getSourceMetaRawOption() || {}, d = u && u.metaRawOption || {}, h = dt(f.seriesLayoutBy, d.seriesLayoutBy) || null, p = dt(f.sourceHeader, d.sourceHeader), v = dt(f.dimensions, d.dimensions), g = h !== d.seriesLayoutBy || !!p != !!d.sourceHeader || v;
  58502. i = g ? [Vk(s, {
  58503. seriesLayoutBy: h,
  58504. sourceHeader: p,
  58505. dimensions: v
  58506. }, l)] : [];
  58507. } else {
  58508. var m = e;
  58509. if (r) {
  58510. var y = this._applyTransform(n);
  58511. i = y.sourceList, a = y.upstreamSignList;
  58512. } else {
  58513. var _ = m.get("source", !0);
  58514. i = [Vk(_, this._getSourceMetaRawOption(), null)], a = [];
  58515. }
  58516. }
  58517. process.env.NODE_ENV !== "production" && at(i && a), this._setLocalSource(i, a);
  58518. }, t.prototype._applyTransform = function(e) {
  58519. var n = this._sourceHost, r = n.get("transform", !0), i = n.get("fromTransformResult", !0);
  58520. if (process.env.NODE_ENV !== "production" && at(i != null || r != null), i != null) {
  58521. var a = "";
  58522. e.length !== 1 && (process.env.NODE_ENV !== "production" && (a = "When using `fromTransformResult`, there should be only one upstream dataset"), nj(a));
  58523. }
  58524. var o, s = [], l = [];
  58525. return F(e, function(u) {
  58526. u.prepareSource();
  58527. var c = u.getSource(i || 0), f = "";
  58528. i != null && !c && (process.env.NODE_ENV !== "production" && (f = "Can not retrieve result by `fromTransformResult`: " + i), nj(f)), s.push(c), l.push(u._getVersionSign());
  58529. }), r ? o = TXe(r, s, {
  58530. datasetIndex: n.componentIndex
  58531. }) : i != null && (o = [sXe(s[0])]), {
  58532. sourceList: o,
  58533. upstreamSignList: l
  58534. };
  58535. }, t.prototype._isDirty = function() {
  58536. if (this._dirty)
  58537. return !0;
  58538. for (var e = this._getUpstreamSourceManagers(), n = 0; n < e.length; n++) {
  58539. var r = e[n];
  58540. if (
  58541. // Consider the case that there is ancestor diry, call it recursively.
  58542. // The performance is probably not an issue because usually the chain is not long.
  58543. r._isDirty() || this._upstreamSignList[n] !== r._getVersionSign()
  58544. )
  58545. return !0;
  58546. }
  58547. }, t.prototype.getSource = function(e) {
  58548. e = e || 0;
  58549. var n = this._sourceList[e];
  58550. if (!n) {
  58551. var r = this._getUpstreamSourceManagers();
  58552. return r[0] && r[0].getSource(e);
  58553. }
  58554. return n;
  58555. }, t.prototype.getSharedDataStore = function(e) {
  58556. process.env.NODE_ENV !== "production" && at(k0(this._sourceHost), "Can only call getDataStore on series source manager.");
  58557. var n = e.makeStoreSchema();
  58558. return this._innerGetDataStore(n.dimensions, e.source, n.hash);
  58559. }, t.prototype._innerGetDataStore = function(e, n, r) {
  58560. var i = 0, a = this._storeList, o = a[i];
  58561. o || (o = a[i] = {});
  58562. var s = o[r];
  58563. if (!s) {
  58564. var l = this._getUpstreamSourceManagers()[0];
  58565. k0(this._sourceHost) && l ? s = l._innerGetDataStore(e, n, r) : (s = new Fk(), s.initData(new cue(n, e.length), e)), o[r] = s;
  58566. }
  58567. return s;
  58568. }, t.prototype._getUpstreamSourceManagers = function() {
  58569. var e = this._sourceHost;
  58570. if (k0(e)) {
  58571. var n = r3(e);
  58572. return n ? [n.getSourceManager()] : [];
  58573. } else
  58574. return Ce(RUe(e), function(r) {
  58575. return r.getSourceManager();
  58576. });
  58577. }, t.prototype._getSourceMetaRawOption = function() {
  58578. var e = this._sourceHost, n, r, i;
  58579. if (k0(e))
  58580. n = e.get("seriesLayoutBy", !0), r = e.get("sourceHeader", !0), i = e.get("dimensions", !0);
  58581. else if (!this._getUpstreamSourceManagers().length) {
  58582. var a = e;
  58583. n = a.get("seriesLayoutBy", !0), r = a.get("sourceHeader", !0), i = a.get("dimensions", !0);
  58584. }
  58585. return {
  58586. seriesLayoutBy: n,
  58587. sourceHeader: r,
  58588. dimensions: i
  58589. };
  58590. }, t;
  58591. }()
  58592. );
  58593. function tj(t) {
  58594. var e = t.option.transform;
  58595. e && Vb(t.option.transform);
  58596. }
  58597. function k0(t) {
  58598. return t.mainType === "series";
  58599. }
  58600. function nj(t) {
  58601. throw new Error(t);
  58602. }
  58603. var Oue = "line-height:1";
  58604. function Sue(t, e) {
  58605. var n = t.color || "#6e7079", r = t.fontSize || 12, i = t.fontWeight || "400", a = t.color || "#464646", o = t.fontSize || 14, s = t.fontWeight || "900";
  58606. return e === "html" ? {
  58607. // eslint-disable-next-line max-len
  58608. nameStyle: "font-size:" + ta(r + "") + "px;color:" + ta(n) + ";font-weight:" + ta(i + ""),
  58609. // eslint-disable-next-line max-len
  58610. valueStyle: "font-size:" + ta(o + "") + "px;color:" + ta(a) + ";font-weight:" + ta(s + "")
  58611. } : {
  58612. nameStyle: {
  58613. fontSize: r,
  58614. fill: n,
  58615. fontWeight: i
  58616. },
  58617. valueStyle: {
  58618. fontSize: o,
  58619. fill: a,
  58620. fontWeight: s
  58621. }
  58622. };
  58623. }
  58624. var MXe = [0, 10, 20, 30], IXe = ["", `
  58625. `, `
  58626. `, `
  58627. `];
  58628. function ti(t, e) {
  58629. return e.type = t, e;
  58630. }
  58631. function Wk(t) {
  58632. return t.type === "section";
  58633. }
  58634. function xue(t) {
  58635. return Wk(t) ? DXe : RXe;
  58636. }
  58637. function wue(t) {
  58638. if (Wk(t)) {
  58639. var e = 0, n = t.blocks.length, r = n > 1 || n > 0 && !t.noHeader;
  58640. return F(t.blocks, function(i) {
  58641. var a = wue(i);
  58642. a >= e && (e = a + +(r && // 0 always can not be readable gap level.
  58643. (!a || Wk(i) && !i.noHeader)));
  58644. }), e;
  58645. }
  58646. return 0;
  58647. }
  58648. function DXe(t, e, n, r) {
  58649. var i = e.noHeader, a = kXe(wue(e)), o = [], s = e.blocks || [];
  58650. at(!s || Se(s)), s = s || [];
  58651. var l = t.orderMode;
  58652. if (e.sortBlocks && l) {
  58653. s = s.slice();
  58654. var u = {
  58655. valueAsc: "asc",
  58656. valueDesc: "desc"
  58657. };
  58658. if (Qe(u, l)) {
  58659. var c = new gue(u[l], null);
  58660. s.sort(function(p, v) {
  58661. return c.evaluate(p.sortParam, v.sortParam);
  58662. });
  58663. } else l === "seriesDesc" && s.reverse();
  58664. }
  58665. F(s, function(p, v) {
  58666. var g = e.valueFormatter, m = xue(p)(
  58667. // Inherit valueFormatter
  58668. g ? _e(_e({}, t), {
  58669. valueFormatter: g
  58670. }) : t,
  58671. p,
  58672. v > 0 ? a.html : 0,
  58673. r
  58674. );
  58675. m != null && o.push(m);
  58676. });
  58677. var f = t.renderMode === "richText" ? o.join(a.richText) : Qk(o.join(""), i ? n : a.html);
  58678. if (i)
  58679. return f;
  58680. var d = Lk(e.header, "ordinal", t.useUTC), h = Sue(r, t.renderMode).nameStyle;
  58681. return t.renderMode === "richText" ? Cue(t, d, h) + a.richText + f : Qk('<div style="' + h + ";" + Oue + ';">' + ta(d) + "</div>" + f, n);
  58682. }
  58683. function RXe(t, e, n, r) {
  58684. var i = t.renderMode, a = e.noName, o = e.noValue, s = !e.markerType, l = e.name, u = t.useUTC, c = e.valueFormatter || t.valueFormatter || function(O) {
  58685. return O = Se(O) ? O : [O], Ce(O, function(S, x) {
  58686. return Lk(S, Se(h) ? h[x] : h, u);
  58687. });
  58688. };
  58689. if (!(a && o)) {
  58690. var f = s ? "" : t.markupStyleCreator.makeTooltipMarker(e.markerType, e.markerColor || "#333", i), d = a ? "" : Lk(l, "ordinal", u), h = e.valueType, p = o ? [] : c(e.value, e.dataIndex), v = !s || !a, g = !s && a, m = Sue(r, i), y = m.nameStyle, _ = m.valueStyle;
  58691. return i === "richText" ? (s ? "" : f) + (a ? "" : Cue(t, d, y)) + (o ? "" : BXe(t, p, v, g, _)) : Qk((s ? "" : f) + (a ? "" : LXe(d, !s, y)) + (o ? "" : NXe(p, v, g, _)), n);
  58692. }
  58693. }
  58694. function rj(t, e, n, r, i, a) {
  58695. if (t) {
  58696. var o = xue(t), s = {
  58697. useUTC: i,
  58698. renderMode: n,
  58699. orderMode: r,
  58700. markupStyleCreator: e,
  58701. valueFormatter: t.valueFormatter
  58702. };
  58703. return o(s, t, 0, a);
  58704. }
  58705. }
  58706. function kXe(t) {
  58707. return {
  58708. html: MXe[t],
  58709. richText: IXe[t]
  58710. };
  58711. }
  58712. function Qk(t, e) {
  58713. var n = '<div style="clear:both"></div>', r = "margin: " + e + "px 0 0";
  58714. return '<div style="' + r + ";" + Oue + ';">' + t + n + "</div>";
  58715. }
  58716. function LXe(t, e, n) {
  58717. var r = e ? "margin-left:2px" : "";
  58718. return '<span style="' + n + ";" + r + '">' + ta(t) + "</span>";
  58719. }
  58720. function NXe(t, e, n, r) {
  58721. var i = n ? "10px" : "20px", a = e ? "float:right;margin-left:" + i : "";
  58722. return t = Se(t) ? t : [t], '<span style="' + a + ";" + r + '">' + Ce(t, function(o) {
  58723. return ta(o);
  58724. }).join("&nbsp;&nbsp;") + "</span>";
  58725. }
  58726. function Cue(t, e, n) {
  58727. return t.markupStyleCreator.wrapRichTextStyle(e, n);
  58728. }
  58729. function BXe(t, e, n, r, i) {
  58730. var a = [i], o = r ? 10 : 20;
  58731. return n && a.push({
  58732. padding: [0, 0, 0, o],
  58733. align: "right"
  58734. }), t.markupStyleCreator.wrapRichTextStyle(Se(e) ? e.join(" ") : e, a);
  58735. }
  58736. function Tue(t, e) {
  58737. var n = t.getData().getItemVisual(e, "style"), r = n[t.visualDrawType];
  58738. return Uh(r);
  58739. }
  58740. function Pue(t, e) {
  58741. var n = t.get("padding");
  58742. return n ?? (e === "richText" ? [8, 10] : 10);
  58743. }
  58744. var bM = (
  58745. /** @class */
  58746. function() {
  58747. function t() {
  58748. this.richTextStyles = {}, this._nextStyleNameId = Dse();
  58749. }
  58750. return t.prototype._generateStyleName = function() {
  58751. return "__EC_aUTo_" + this._nextStyleNameId++;
  58752. }, t.prototype.makeTooltipMarker = function(e, n, r) {
  58753. var i = r === "richText" ? this._generateStyleName() : null, a = Xle({
  58754. color: n,
  58755. type: e,
  58756. renderMode: r,
  58757. markerId: i
  58758. });
  58759. return Ve(a) ? a : (process.env.NODE_ENV !== "production" && at(i), this.richTextStyles[i] = a.style, a.content);
  58760. }, t.prototype.wrapRichTextStyle = function(e, n) {
  58761. var r = {};
  58762. Se(n) ? F(n, function(a) {
  58763. return _e(r, a);
  58764. }) : _e(r, n);
  58765. var i = this._generateStyleName();
  58766. return this.richTextStyles[i] = r, "{" + i + "|" + e + "}";
  58767. }, t;
  58768. }()
  58769. );
  58770. function $ue(t) {
  58771. var e = t.series, n = t.dataIndex, r = t.multipleSeries, i = e.getData(), a = i.mapDimensionsAll("defaultedTooltip"), o = a.length, s = e.getRawValue(n), l = Se(s), u = Tue(e, n), c, f, d, h;
  58772. if (o > 1 || l && !o) {
  58773. var p = zXe(s, e, n, a, u);
  58774. c = p.inlineValues, f = p.inlineValueTypes, d = p.blocks, h = p.inlineValues[0];
  58775. } else if (o) {
  58776. var v = i.getDimensionInfo(a[0]);
  58777. h = c = Hg(i, n, a[0]), f = v.type;
  58778. } else
  58779. h = c = l ? s[0] : s;
  58780. var g = A5(e), m = g && e.name || "", y = i.getName(n), _ = r ? m : y;
  58781. return ti("section", {
  58782. header: m,
  58783. // When series name is not specified, do not show a header line with only '-'.
  58784. // This case always happens in tooltip.trigger: 'item'.
  58785. noHeader: r || !g,
  58786. sortParam: h,
  58787. blocks: [ti("nameValue", {
  58788. markerType: "item",
  58789. markerColor: u,
  58790. // Do not mix display seriesName and itemName in one tooltip,
  58791. // which might confuses users.
  58792. name: _,
  58793. // name dimension might be auto assigned, where the name might
  58794. // be not readable. So we check trim here.
  58795. noName: !Zo(_),
  58796. value: c,
  58797. valueType: f,
  58798. dataIndex: n
  58799. })].concat(d || [])
  58800. });
  58801. }
  58802. function zXe(t, e, n, r, i) {
  58803. var a = e.getData(), o = os(t, function(f, d, h) {
  58804. var p = a.getDimensionInfo(h);
  58805. return f = f || p && p.tooltip !== !1 && p.displayName != null;
  58806. }, !1), s = [], l = [], u = [];
  58807. r.length ? F(r, function(f) {
  58808. c(Hg(a, n, f), f);
  58809. }) : F(t, c);
  58810. function c(f, d) {
  58811. var h = a.getDimensionInfo(d);
  58812. !h || h.otherDims.tooltip === !1 || (o ? u.push(ti("nameValue", {
  58813. markerType: "subItem",
  58814. markerColor: i,
  58815. name: h.displayName,
  58816. value: f,
  58817. valueType: h.type
  58818. })) : (s.push(f), l.push(h.type)));
  58819. }
  58820. return {
  58821. inlineValues: s,
  58822. inlineValueTypes: l,
  58823. blocks: u
  58824. };
  58825. }
  58826. var Oc = Ut();
  58827. function SS(t, e) {
  58828. return t.getName(e) || t.getId(e);
  58829. }
  58830. var vw = "__universalTransitionEnabled", Tn = (
  58831. /** @class */
  58832. function(t) {
  58833. le(e, t);
  58834. function e() {
  58835. var n = t !== null && t.apply(this, arguments) || this;
  58836. return n._selectedDataIndicesMap = {}, n;
  58837. }
  58838. return e.prototype.init = function(n, r, i) {
  58839. this.seriesIndex = this.componentIndex, this.dataTask = ob({
  58840. count: FXe,
  58841. reset: WXe
  58842. }), this.dataTask.context = {
  58843. model: this
  58844. }, this.mergeDefaultAndTheme(n, i);
  58845. var a = Oc(this).sourceManager = new _ue(this);
  58846. a.prepareSource();
  58847. var o = this.getInitialData(n, i);
  58848. aj(o, this), this.dataTask.context.data = o, process.env.NODE_ENV !== "production" && at(o, "getInitialData returned invalid data."), Oc(this).dataBeforeProcessed = o, ij(this), this._initSelectedMapFromData(o);
  58849. }, e.prototype.mergeDefaultAndTheme = function(n, r) {
  58850. var i = qb(this), a = i ? Tm(n) : {}, o = this.subType;
  58851. At.hasClass(o) && (o += "Series"), mt(n, r.getTheme().get(this.subType)), mt(n, this.getDefaultOption()), Hh(n, "label", ["show"]), this.fillDataTextStyle(n.data), i && Of(n, a, i);
  58852. }, e.prototype.mergeOption = function(n, r) {
  58853. n = mt(this.option, n, !0), this.fillDataTextStyle(n.data);
  58854. var i = qb(this);
  58855. i && Of(this.option, n, i);
  58856. var a = Oc(this).sourceManager;
  58857. a.dirty(), a.prepareSource();
  58858. var o = this.getInitialData(n, r);
  58859. aj(o, this), this.dataTask.dirty(), this.dataTask.context.data = o, Oc(this).dataBeforeProcessed = o, ij(this), this._initSelectedMapFromData(o);
  58860. }, e.prototype.fillDataTextStyle = function(n) {
  58861. if (n && !Qi(n))
  58862. for (var r = ["show"], i = 0; i < n.length; i++)
  58863. n[i] && n[i].label && Hh(n[i], "label", r);
  58864. }, e.prototype.getInitialData = function(n, r) {
  58865. }, e.prototype.appendData = function(n) {
  58866. var r = this.getRawData();
  58867. r.appendData(n.data);
  58868. }, e.prototype.getData = function(n) {
  58869. var r = Hk(this);
  58870. if (r) {
  58871. var i = r.context.data;
  58872. return n == null || !i.getLinkedData ? i : i.getLinkedData(n);
  58873. } else
  58874. return Oc(this).data;
  58875. }, e.prototype.getAllData = function() {
  58876. var n = this.getData();
  58877. return n && n.getLinkedDataAll ? n.getLinkedDataAll() : [{
  58878. data: n
  58879. }];
  58880. }, e.prototype.setData = function(n) {
  58881. var r = Hk(this);
  58882. if (r) {
  58883. var i = r.context;
  58884. i.outputData = n, r !== this.dataTask && (i.data = n);
  58885. }
  58886. Oc(this).data = n;
  58887. }, e.prototype.getEncode = function() {
  58888. var n = this.get("encode", !0);
  58889. if (n)
  58890. return Ze(n);
  58891. }, e.prototype.getSourceManager = function() {
  58892. return Oc(this).sourceManager;
  58893. }, e.prototype.getSource = function() {
  58894. return this.getSourceManager().getSource();
  58895. }, e.prototype.getRawData = function() {
  58896. return Oc(this).dataBeforeProcessed;
  58897. }, e.prototype.getColorBy = function() {
  58898. var n = this.get("colorBy");
  58899. return n || "series";
  58900. }, e.prototype.isColorBySeries = function() {
  58901. return this.getColorBy() === "series";
  58902. }, e.prototype.getBaseAxis = function() {
  58903. var n = this.coordinateSystem;
  58904. return n && n.getBaseAxis && n.getBaseAxis();
  58905. }, e.prototype.formatTooltip = function(n, r, i) {
  58906. return $ue({
  58907. series: this,
  58908. dataIndex: n,
  58909. multipleSeries: r
  58910. });
  58911. }, e.prototype.isAnimationEnabled = function() {
  58912. var n = this.ecModel;
  58913. if (Gt.node && !(n && n.ssr))
  58914. return !1;
  58915. var r = this.getShallow("animation");
  58916. return r && this.getData().count() > this.getShallow("animationThreshold") && (r = !1), !!r;
  58917. }, e.prototype.restoreData = function() {
  58918. this.dataTask.dirty();
  58919. }, e.prototype.getColorFromPalette = function(n, r, i) {
  58920. var a = this.ecModel, o = i3.prototype.getColorFromPalette.call(this, n, r, i);
  58921. return o || (o = a.getColorFromPalette(n, r, i)), o;
  58922. }, e.prototype.coordDimToDataDim = function(n) {
  58923. return this.getRawData().mapDimensionsAll(n);
  58924. }, e.prototype.getProgressive = function() {
  58925. return this.get("progressive");
  58926. }, e.prototype.getProgressiveThreshold = function() {
  58927. return this.get("progressiveThreshold");
  58928. }, e.prototype.select = function(n, r) {
  58929. this._innerSelect(this.getData(r), n);
  58930. }, e.prototype.unselect = function(n, r) {
  58931. var i = this.option.selectedMap;
  58932. if (i) {
  58933. var a = this.option.selectedMode, o = this.getData(r);
  58934. if (a === "series" || i === "all") {
  58935. this.option.selectedMap = {}, this._selectedDataIndicesMap = {};
  58936. return;
  58937. }
  58938. for (var s = 0; s < n.length; s++) {
  58939. var l = n[s], u = SS(o, l);
  58940. i[u] = !1, this._selectedDataIndicesMap[u] = -1;
  58941. }
  58942. }
  58943. }, e.prototype.toggleSelect = function(n, r) {
  58944. for (var i = [], a = 0; a < n.length; a++)
  58945. i[0] = n[a], this.isSelected(n[a], r) ? this.unselect(i, r) : this.select(i, r);
  58946. }, e.prototype.getSelectedDataIndices = function() {
  58947. if (this.option.selectedMap === "all")
  58948. return [].slice.call(this.getData().getIndices());
  58949. for (var n = this._selectedDataIndicesMap, r = kt(n), i = [], a = 0; a < r.length; a++) {
  58950. var o = n[r[a]];
  58951. o >= 0 && i.push(o);
  58952. }
  58953. return i;
  58954. }, e.prototype.isSelected = function(n, r) {
  58955. var i = this.option.selectedMap;
  58956. if (!i)
  58957. return !1;
  58958. var a = this.getData(r);
  58959. return (i === "all" || i[SS(a, n)]) && !a.getItemModel(n).get(["select", "disabled"]);
  58960. }, e.prototype.isUniversalTransitionEnabled = function() {
  58961. if (this[vw])
  58962. return !0;
  58963. var n = this.option.universalTransition;
  58964. return n ? n === !0 ? !0 : n && n.enabled : !1;
  58965. }, e.prototype._innerSelect = function(n, r) {
  58966. var i, a, o = this.option, s = o.selectedMode, l = r.length;
  58967. if (!(!s || !l)) {
  58968. if (s === "series")
  58969. o.selectedMap = "all";
  58970. else if (s === "multiple") {
  58971. nt(o.selectedMap) || (o.selectedMap = {});
  58972. for (var u = o.selectedMap, c = 0; c < l; c++) {
  58973. var f = r[c], d = SS(n, f);
  58974. u[d] = !0, this._selectedDataIndicesMap[d] = n.getRawIndex(f);
  58975. }
  58976. } else if (s === "single" || s === !0) {
  58977. var h = r[l - 1], d = SS(n, h);
  58978. o.selectedMap = (i = {}, i[d] = !0, i), this._selectedDataIndicesMap = (a = {}, a[d] = n.getRawIndex(h), a);
  58979. }
  58980. }
  58981. }, e.prototype._initSelectedMapFromData = function(n) {
  58982. if (!this.option.selectedMap) {
  58983. var r = [];
  58984. n.hasItemOption && n.each(function(i) {
  58985. var a = n.getRawDataItem(i);
  58986. a && a.selected && r.push(i);
  58987. }), r.length > 0 && this._innerSelect(n, r);
  58988. }
  58989. }, e.registerClass = function(n) {
  58990. return At.registerClass(n);
  58991. }, e.protoInitialize = function() {
  58992. var n = e.prototype;
  58993. n.type = "series.__base__", n.seriesIndex = 0, n.ignoreStyleOnData = !1, n.hasSymbolVisual = !1, n.defaultSymbol = "circle", n.visualStyleAccessPath = "itemStyle", n.visualDrawType = "fill";
  58994. }(), e;
  58995. }(At)
  58996. );
  58997. vr(Tn, DP);
  58998. vr(Tn, i3);
  58999. Wse(Tn, At);
  59000. function ij(t) {
  59001. var e = t.name;
  59002. A5(t) || (t.name = VXe(t) || e);
  59003. }
  59004. function VXe(t) {
  59005. var e = t.getRawData(), n = e.mapDimensionsAll("seriesName"), r = [];
  59006. return F(n, function(i) {
  59007. var a = e.getDimensionInfo(i);
  59008. a.displayName && r.push(a.displayName);
  59009. }), r.join(" ");
  59010. }
  59011. function FXe(t) {
  59012. return t.model.getRawData().count();
  59013. }
  59014. function WXe(t) {
  59015. var e = t.model;
  59016. return e.setData(e.getRawData().cloneShallow()), QXe;
  59017. }
  59018. function QXe(t, e) {
  59019. e.outputData && t.end > e.outputData.count() && e.model.getRawData().cloneShallow(e.outputData);
  59020. }
  59021. function aj(t, e) {
  59022. F(Fb(t.CHANGABLE_METHODS, t.DOWNSAMPLE_METHODS), function(n) {
  59023. t.wrapMethod(n, vt(HXe, e));
  59024. });
  59025. }
  59026. function HXe(t, e) {
  59027. var n = Hk(t);
  59028. return n && n.setOutputEnd((e || this).count()), e;
  59029. }
  59030. function Hk(t) {
  59031. var e = (t.ecModel || {}).scheduler, n = e && e.getPipeline(t.uid);
  59032. if (n) {
  59033. var r = n.currentTask;
  59034. if (r) {
  59035. var i = r.agentStubMap;
  59036. i && (r = i.get(t.uid));
  59037. }
  59038. return r;
  59039. }
  59040. }
  59041. var Ln = (
  59042. /** @class */
  59043. function() {
  59044. function t() {
  59045. this.group = new ct(), this.uid = Cm("viewComponent");
  59046. }
  59047. return t.prototype.init = function(e, n) {
  59048. }, t.prototype.render = function(e, n, r, i) {
  59049. }, t.prototype.dispose = function(e, n) {
  59050. }, t.prototype.updateView = function(e, n, r, i) {
  59051. }, t.prototype.updateLayout = function(e, n, r, i) {
  59052. }, t.prototype.updateVisual = function(e, n, r, i) {
  59053. }, t.prototype.toggleBlurSeries = function(e, n, r) {
  59054. }, t.prototype.eachRendered = function(e) {
  59055. var n = this.group;
  59056. n && n.traverse(e);
  59057. }, t;
  59058. }()
  59059. );
  59060. M5(Ln);
  59061. vP(Ln);
  59062. function $m() {
  59063. var t = Ut();
  59064. return function(e) {
  59065. var n = t(e), r = e.pipelineContext, i = !!n.large, a = !!n.progressiveRender, o = n.large = !!(r && r.large), s = n.progressiveRender = !!(r && r.progressiveRender);
  59066. return (i !== o || a !== s) && "reset";
  59067. };
  59068. }
  59069. var Aue = Ut(), GXe = $m(), _n = (
  59070. /** @class */
  59071. function() {
  59072. function t() {
  59073. this.group = new ct(), this.uid = Cm("viewChart"), this.renderTask = ob({
  59074. plan: jXe,
  59075. reset: ZXe
  59076. }), this.renderTask.context = {
  59077. view: this
  59078. };
  59079. }
  59080. return t.prototype.init = function(e, n) {
  59081. }, t.prototype.render = function(e, n, r, i) {
  59082. if (process.env.NODE_ENV !== "production")
  59083. throw new Error("render method must been implemented");
  59084. }, t.prototype.highlight = function(e, n, r, i) {
  59085. var a = e.getData(i && i.dataType);
  59086. if (!a) {
  59087. process.env.NODE_ENV !== "production" && $i("Unknown dataType " + i.dataType);
  59088. return;
  59089. }
  59090. sj(a, i, "emphasis");
  59091. }, t.prototype.downplay = function(e, n, r, i) {
  59092. var a = e.getData(i && i.dataType);
  59093. if (!a) {
  59094. process.env.NODE_ENV !== "production" && $i("Unknown dataType " + i.dataType);
  59095. return;
  59096. }
  59097. sj(a, i, "normal");
  59098. }, t.prototype.remove = function(e, n) {
  59099. this.group.removeAll();
  59100. }, t.prototype.dispose = function(e, n) {
  59101. }, t.prototype.updateView = function(e, n, r, i) {
  59102. this.render(e, n, r, i);
  59103. }, t.prototype.updateLayout = function(e, n, r, i) {
  59104. this.render(e, n, r, i);
  59105. }, t.prototype.updateVisual = function(e, n, r, i) {
  59106. this.render(e, n, r, i);
  59107. }, t.prototype.eachRendered = function(e) {
  59108. Nf(this.group, e);
  59109. }, t.markUpdateMethod = function(e, n) {
  59110. Aue(e).updateMethod = n;
  59111. }, t.protoInitialize = function() {
  59112. var e = t.prototype;
  59113. e.type = "chart";
  59114. }(), t;
  59115. }()
  59116. );
  59117. function oj(t, e, n) {
  59118. t && bf(t) && (e === "emphasis" ? Fu : Wu)(t, n);
  59119. }
  59120. function sj(t, e, n) {
  59121. var r = Gh(t, e), i = e && e.highlightKey != null ? wZe(e.highlightKey) : null;
  59122. r != null ? F(Cn(r), function(a) {
  59123. oj(t.getItemGraphicEl(a), n, i);
  59124. }) : t.eachItemGraphicEl(function(a) {
  59125. oj(a, n, i);
  59126. });
  59127. }
  59128. M5(_n, ["dispose"]);
  59129. vP(_n);
  59130. function jXe(t) {
  59131. return GXe(t.model);
  59132. }
  59133. function ZXe(t) {
  59134. var e = t.model, n = t.ecModel, r = t.api, i = t.payload, a = e.pipelineContext.progressiveRender, o = t.view, s = i && Aue(i).updateMethod, l = a ? "incrementalPrepareRender" : s && o[s] ? s : "render";
  59135. return l !== "render" && o[l](e, n, r, i), UXe[l];
  59136. }
  59137. var UXe = {
  59138. incrementalPrepareRender: {
  59139. progress: function(t, e) {
  59140. e.view.incrementalRender(t, e.model, e.ecModel, e.api, e.payload);
  59141. }
  59142. },
  59143. render: {
  59144. // Put view.render in `progress` to support appendData. But in this case
  59145. // view.render should not be called in reset, otherwise it will be called
  59146. // twise. Use `forceFirstProgress` to make sure that view.render is called
  59147. // in any cases.
  59148. forceFirstProgress: !0,
  59149. progress: function(t, e) {
  59150. e.view.render(e.model, e.ecModel, e.api, e.payload);
  59151. }
  59152. }
  59153. }, VC = "\0__throttleOriginMethod", lj = "\0__throttleRate", uj = "\0__throttleType";
  59154. function kP(t, e, n) {
  59155. var r, i = 0, a = 0, o = null, s, l, u, c;
  59156. e = e || 0;
  59157. function f() {
  59158. a = (/* @__PURE__ */ new Date()).getTime(), o = null, t.apply(l, u || []);
  59159. }
  59160. var d = function() {
  59161. for (var h = [], p = 0; p < arguments.length; p++)
  59162. h[p] = arguments[p];
  59163. r = (/* @__PURE__ */ new Date()).getTime(), l = this, u = h;
  59164. var v = c || e, g = c || n;
  59165. c = null, s = r - (g ? i : a) - v, clearTimeout(o), g ? o = setTimeout(f, v) : s >= 0 ? f() : o = setTimeout(f, -s), i = r;
  59166. };
  59167. return d.clear = function() {
  59168. o && (clearTimeout(o), o = null);
  59169. }, d.debounceNextCall = function(h) {
  59170. c = h;
  59171. }, d;
  59172. }
  59173. function Am(t, e, n, r) {
  59174. var i = t[e];
  59175. if (i) {
  59176. var a = i[VC] || i, o = i[uj], s = i[lj];
  59177. if (s !== n || o !== r) {
  59178. if (n == null || !r)
  59179. return t[e] = a;
  59180. i = t[e] = kP(a, n, r === "debounce"), i[VC] = a, i[uj] = r, i[lj] = n;
  59181. }
  59182. return i;
  59183. }
  59184. }
  59185. function Jb(t, e) {
  59186. var n = t[e];
  59187. n && n[VC] && (n.clear && n.clear(), t[e] = n[VC]);
  59188. }
  59189. var cj = Ut(), fj = {
  59190. itemStyle: jh(zle, !0),
  59191. lineStyle: jh(Ble, !0)
  59192. }, XXe = {
  59193. lineStyle: "stroke",
  59194. itemStyle: "fill"
  59195. };
  59196. function Eue(t, e) {
  59197. var n = t.visualStyleMapper || fj[e];
  59198. return n || (console.warn("Unknown style type '" + e + "'."), fj.itemStyle);
  59199. }
  59200. function Mue(t, e) {
  59201. var n = t.visualDrawType || XXe[e];
  59202. return n || (console.warn("Unknown style type '" + e + "'."), "fill");
  59203. }
  59204. var YXe = {
  59205. createOnAllSeries: !0,
  59206. performRawSeries: !0,
  59207. reset: function(t, e) {
  59208. var n = t.getData(), r = t.visualStyleAccessPath || "itemStyle", i = t.getModel(r), a = Eue(t, r), o = a(i), s = i.getShallow("decal");
  59209. s && (n.setVisual("decal", s), s.dirty = !0);
  59210. var l = Mue(t, r), u = o[l], c = qe(u) ? u : null, f = o.fill === "auto" || o.stroke === "auto";
  59211. if (!o[l] || c || f) {
  59212. var d = t.getColorFromPalette(
  59213. // TODO series count changed.
  59214. t.name,
  59215. null,
  59216. e.getSeriesCount()
  59217. );
  59218. o[l] || (o[l] = d, n.setVisual("colorFromPalette", !0)), o.fill = o.fill === "auto" || qe(o.fill) ? d : o.fill, o.stroke = o.stroke === "auto" || qe(o.stroke) ? d : o.stroke;
  59219. }
  59220. if (n.setVisual("style", o), n.setVisual("drawType", l), !e.isSeriesFiltered(t) && c)
  59221. return n.setVisual("colorFromPalette", !1), {
  59222. dataEach: function(h, p) {
  59223. var v = t.getDataParams(p), g = _e({}, o);
  59224. g[l] = c(v), h.setItemVisual(p, "style", g);
  59225. }
  59226. };
  59227. }
  59228. }, L0 = new wn(), qXe = {
  59229. createOnAllSeries: !0,
  59230. performRawSeries: !0,
  59231. reset: function(t, e) {
  59232. if (!(t.ignoreStyleOnData || e.isSeriesFiltered(t))) {
  59233. var n = t.getData(), r = t.visualStyleAccessPath || "itemStyle", i = Eue(t, r), a = n.getVisual("drawType");
  59234. return {
  59235. dataEach: n.hasItemOption ? function(o, s) {
  59236. var l = o.getRawDataItem(s);
  59237. if (l && l[r]) {
  59238. L0.option = l[r];
  59239. var u = i(L0), c = o.ensureUniqueItemVisual(s, "style");
  59240. _e(c, u), L0.option.decal && (o.setItemVisual(s, "decal", L0.option.decal), L0.option.decal.dirty = !0), a in u && o.setItemVisual(s, "colorFromPalette", !1);
  59241. }
  59242. } : null
  59243. };
  59244. }
  59245. }
  59246. }, KXe = {
  59247. performRawSeries: !0,
  59248. overallReset: function(t) {
  59249. var e = Ze();
  59250. t.eachSeries(function(n) {
  59251. var r = n.getColorBy();
  59252. if (!n.isColorBySeries()) {
  59253. var i = n.type + "-" + r, a = e.get(i);
  59254. a || (a = {}, e.set(i, a)), cj(n).scope = a;
  59255. }
  59256. }), t.eachSeries(function(n) {
  59257. if (!(n.isColorBySeries() || t.isSeriesFiltered(n))) {
  59258. var r = n.getRawData(), i = {}, a = n.getData(), o = cj(n).scope, s = n.visualStyleAccessPath || "itemStyle", l = Mue(n, s);
  59259. a.each(function(u) {
  59260. var c = a.getRawIndex(u);
  59261. i[c] = u;
  59262. }), r.each(function(u) {
  59263. var c = i[u], f = a.getItemVisual(c, "colorFromPalette");
  59264. if (f) {
  59265. var d = a.ensureUniqueItemVisual(c, "style"), h = r.getName(u) || u + "", p = r.count();
  59266. d[l] = n.getColorFromPalette(h, o, p);
  59267. }
  59268. });
  59269. }
  59270. });
  59271. }
  59272. }, xS = Math.PI;
  59273. function JXe(t, e) {
  59274. e = e || {}, it(e, {
  59275. text: "loading",
  59276. textColor: "#000",
  59277. fontSize: 12,
  59278. fontWeight: "normal",
  59279. fontStyle: "normal",
  59280. fontFamily: "sans-serif",
  59281. maskColor: "rgba(255, 255, 255, 0.8)",
  59282. showSpinner: !0,
  59283. color: "#5470c6",
  59284. spinnerRadius: 10,
  59285. lineWidth: 5,
  59286. zlevel: 0
  59287. });
  59288. var n = new ct(), r = new Zt({
  59289. style: {
  59290. fill: e.maskColor
  59291. },
  59292. zlevel: e.zlevel,
  59293. z: 1e4
  59294. });
  59295. n.add(r);
  59296. var i = new jt({
  59297. style: {
  59298. text: e.text,
  59299. fill: e.textColor,
  59300. fontSize: e.fontSize,
  59301. fontWeight: e.fontWeight,
  59302. fontStyle: e.fontStyle,
  59303. fontFamily: e.fontFamily
  59304. },
  59305. zlevel: e.zlevel,
  59306. z: 10001
  59307. }), a = new Zt({
  59308. style: {
  59309. fill: "none"
  59310. },
  59311. textContent: i,
  59312. textConfig: {
  59313. position: "right",
  59314. distance: 10
  59315. },
  59316. zlevel: e.zlevel,
  59317. z: 10001
  59318. });
  59319. n.add(a);
  59320. var o;
  59321. return e.showSpinner && (o = new SP({
  59322. shape: {
  59323. startAngle: -xS / 2,
  59324. endAngle: -xS / 2 + 0.1,
  59325. r: e.spinnerRadius
  59326. },
  59327. style: {
  59328. stroke: e.color,
  59329. lineCap: "round",
  59330. lineWidth: e.lineWidth
  59331. },
  59332. zlevel: e.zlevel,
  59333. z: 10001
  59334. }), o.animateShape(!0).when(1e3, {
  59335. endAngle: xS * 3 / 2
  59336. }).start("circularInOut"), o.animateShape(!0).when(1e3, {
  59337. startAngle: xS * 3 / 2
  59338. }).delay(300).start("circularInOut"), n.add(o)), n.resize = function() {
  59339. var s = i.getBoundingRect().width, l = e.showSpinner ? e.spinnerRadius : 0, u = (t.getWidth() - l * 2 - (e.showSpinner && s ? 10 : 0) - s) / 2 - (e.showSpinner && s ? 0 : 5 + s / 2) + (e.showSpinner ? 0 : s / 2) + (s ? 0 : l), c = t.getHeight() / 2;
  59340. e.showSpinner && o.setShape({
  59341. cx: u,
  59342. cy: c
  59343. }), a.setShape({
  59344. x: u - l,
  59345. y: c - l,
  59346. width: l * 2,
  59347. height: l * 2
  59348. }), r.setShape({
  59349. x: 0,
  59350. y: 0,
  59351. width: t.getWidth(),
  59352. height: t.getHeight()
  59353. });
  59354. }, n.resize(), n;
  59355. }
  59356. var Iue = (
  59357. /** @class */
  59358. function() {
  59359. function t(e, n, r, i) {
  59360. this._stageTaskMap = Ze(), this.ecInstance = e, this.api = n, r = this._dataProcessorHandlers = r.slice(), i = this._visualHandlers = i.slice(), this._allHandlers = r.concat(i);
  59361. }
  59362. return t.prototype.restoreData = function(e, n) {
  59363. e.restoreData(n), this._stageTaskMap.each(function(r) {
  59364. var i = r.overallTask;
  59365. i && i.dirty();
  59366. });
  59367. }, t.prototype.getPerformArgs = function(e, n) {
  59368. if (e.__pipeline) {
  59369. var r = this._pipelineMap.get(e.__pipeline.id), i = r.context, a = !n && r.progressiveEnabled && (!i || i.progressiveRender) && e.__idxInPipeline > r.blockIndex, o = a ? r.step : null, s = i && i.modDataCount, l = s != null ? Math.ceil(s / o) : null;
  59370. return {
  59371. step: o,
  59372. modBy: l,
  59373. modDataCount: s
  59374. };
  59375. }
  59376. }, t.prototype.getPipeline = function(e) {
  59377. return this._pipelineMap.get(e);
  59378. }, t.prototype.updateStreamModes = function(e, n) {
  59379. var r = this._pipelineMap.get(e.uid), i = e.getData(), a = i.count(), o = r.progressiveEnabled && n.incrementalPrepareRender && a >= r.threshold, s = e.get("large") && a >= e.get("largeThreshold"), l = e.get("progressiveChunkMode") === "mod" ? a : null;
  59380. e.pipelineContext = r.context = {
  59381. progressiveRender: o,
  59382. modDataCount: l,
  59383. large: s
  59384. };
  59385. }, t.prototype.restorePipelines = function(e) {
  59386. var n = this, r = n._pipelineMap = Ze();
  59387. e.eachSeries(function(i) {
  59388. var a = i.getProgressive(), o = i.uid;
  59389. r.set(o, {
  59390. id: o,
  59391. head: null,
  59392. tail: null,
  59393. threshold: i.getProgressiveThreshold(),
  59394. progressiveEnabled: a && !(i.preventIncremental && i.preventIncremental()),
  59395. blockIndex: -1,
  59396. step: Math.round(a || 700),
  59397. count: 0
  59398. }), n._pipe(i, i.dataTask);
  59399. });
  59400. }, t.prototype.prepareStageTasks = function() {
  59401. var e = this._stageTaskMap, n = this.api.getModel(), r = this.api;
  59402. F(this._allHandlers, function(i) {
  59403. var a = e.get(i.uid) || e.set(i.uid, {}), o = "";
  59404. process.env.NODE_ENV !== "production" && (o = '"reset" and "overallReset" must not be both specified.'), at(!(i.reset && i.overallReset), o), i.reset && this._createSeriesStageTask(i, a, n, r), i.overallReset && this._createOverallStageTask(i, a, n, r);
  59405. }, this);
  59406. }, t.prototype.prepareView = function(e, n, r, i) {
  59407. var a = e.renderTask, o = a.context;
  59408. o.model = n, o.ecModel = r, o.api = i, a.__block = !e.incrementalPrepareRender, this._pipe(n, a);
  59409. }, t.prototype.performDataProcessorTasks = function(e, n) {
  59410. this._performStageTasks(this._dataProcessorHandlers, e, n, {
  59411. block: !0
  59412. });
  59413. }, t.prototype.performVisualTasks = function(e, n, r) {
  59414. this._performStageTasks(this._visualHandlers, e, n, r);
  59415. }, t.prototype._performStageTasks = function(e, n, r, i) {
  59416. i = i || {};
  59417. var a = !1, o = this;
  59418. F(e, function(l, u) {
  59419. if (!(i.visualType && i.visualType !== l.visualType)) {
  59420. var c = o._stageTaskMap.get(l.uid), f = c.seriesTaskMap, d = c.overallTask;
  59421. if (d) {
  59422. var h, p = d.agentStubMap;
  59423. p.each(function(g) {
  59424. s(i, g) && (g.dirty(), h = !0);
  59425. }), h && d.dirty(), o.updatePayload(d, r);
  59426. var v = o.getPerformArgs(d, i.block);
  59427. p.each(function(g) {
  59428. g.perform(v);
  59429. }), d.perform(v) && (a = !0);
  59430. } else f && f.each(function(g, m) {
  59431. s(i, g) && g.dirty();
  59432. var y = o.getPerformArgs(g, i.block);
  59433. y.skip = !l.performRawSeries && n.isSeriesFiltered(g.context.model), o.updatePayload(g, r), g.perform(y) && (a = !0);
  59434. });
  59435. }
  59436. });
  59437. function s(l, u) {
  59438. return l.setDirty && (!l.dirtyMap || l.dirtyMap.get(u.__pipeline.id));
  59439. }
  59440. this.unfinished = a || this.unfinished;
  59441. }, t.prototype.performSeriesTasks = function(e) {
  59442. var n;
  59443. e.eachSeries(function(r) {
  59444. n = r.dataTask.perform() || n;
  59445. }), this.unfinished = n || this.unfinished;
  59446. }, t.prototype.plan = function() {
  59447. this._pipelineMap.each(function(e) {
  59448. var n = e.tail;
  59449. do {
  59450. if (n.__block) {
  59451. e.blockIndex = n.__idxInPipeline;
  59452. break;
  59453. }
  59454. n = n.getUpstream();
  59455. } while (n);
  59456. });
  59457. }, t.prototype.updatePayload = function(e, n) {
  59458. n !== "remain" && (e.context.payload = n);
  59459. }, t.prototype._createSeriesStageTask = function(e, n, r, i) {
  59460. var a = this, o = n.seriesTaskMap, s = n.seriesTaskMap = Ze(), l = e.seriesType, u = e.getTargetSeries;
  59461. e.createOnAllSeries ? r.eachRawSeries(c) : l ? r.eachRawSeriesByType(l, c) : u && u(r, i).each(c);
  59462. function c(f) {
  59463. var d = f.uid, h = s.set(d, o && o.get(d) || ob({
  59464. plan: iYe,
  59465. reset: aYe,
  59466. count: sYe
  59467. }));
  59468. h.context = {
  59469. model: f,
  59470. ecModel: r,
  59471. api: i,
  59472. // PENDING: `useClearVisual` not used?
  59473. useClearVisual: e.isVisual && !e.isLayout,
  59474. plan: e.plan,
  59475. reset: e.reset,
  59476. scheduler: a
  59477. }, a._pipe(f, h);
  59478. }
  59479. }, t.prototype._createOverallStageTask = function(e, n, r, i) {
  59480. var a = this, o = n.overallTask = n.overallTask || ob({
  59481. reset: eYe
  59482. });
  59483. o.context = {
  59484. ecModel: r,
  59485. api: i,
  59486. overallReset: e.overallReset,
  59487. scheduler: a
  59488. };
  59489. var s = o.agentStubMap, l = o.agentStubMap = Ze(), u = e.seriesType, c = e.getTargetSeries, f = !0, d = !1, h = "";
  59490. process.env.NODE_ENV !== "production" && (h = '"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'), at(!e.createOnAllSeries, h), u ? r.eachRawSeriesByType(u, p) : c ? c(r, i).each(p) : (f = !1, F(r.getSeries(), p));
  59491. function p(v) {
  59492. var g = v.uid, m = l.set(g, s && s.get(g) || // When the result of `getTargetSeries` changed, the overallTask
  59493. // should be set as dirty and re-performed.
  59494. (d = !0, ob({
  59495. reset: tYe,
  59496. onDirty: rYe
  59497. })));
  59498. m.context = {
  59499. model: v,
  59500. overallProgress: f
  59501. // FIXME:TS never used, so comment it
  59502. // modifyOutputEnd: modifyOutputEnd
  59503. }, m.agent = o, m.__block = f, a._pipe(v, m);
  59504. }
  59505. d && o.dirty();
  59506. }, t.prototype._pipe = function(e, n) {
  59507. var r = e.uid, i = this._pipelineMap.get(r);
  59508. !i.head && (i.head = n), i.tail && i.tail.pipe(n), i.tail = n, n.__idxInPipeline = i.count++, n.__pipeline = i;
  59509. }, t.wrapStageHandler = function(e, n) {
  59510. return qe(e) && (e = {
  59511. overallReset: e,
  59512. seriesType: lYe(e)
  59513. }), e.uid = Cm("stageHandler"), n && (e.visualType = n), e;
  59514. }, t;
  59515. }()
  59516. );
  59517. function eYe(t) {
  59518. t.overallReset(t.ecModel, t.api, t.payload);
  59519. }
  59520. function tYe(t) {
  59521. return t.overallProgress && nYe;
  59522. }
  59523. function nYe() {
  59524. this.agent.dirty(), this.getDownstream().dirty();
  59525. }
  59526. function rYe() {
  59527. this.agent && this.agent.dirty();
  59528. }
  59529. function iYe(t) {
  59530. return t.plan ? t.plan(t.model, t.ecModel, t.api, t.payload) : null;
  59531. }
  59532. function aYe(t) {
  59533. t.useClearVisual && t.data.clearAllVisual();
  59534. var e = t.resetDefines = Cn(t.reset(t.model, t.ecModel, t.api, t.payload));
  59535. return e.length > 1 ? Ce(e, function(n, r) {
  59536. return Due(r);
  59537. }) : oYe;
  59538. }
  59539. var oYe = Due(0);
  59540. function Due(t) {
  59541. return function(e, n) {
  59542. var r = n.data, i = n.resetDefines[t];
  59543. if (i && i.dataEach)
  59544. for (var a = e.start; a < e.end; a++)
  59545. i.dataEach(r, a);
  59546. else i && i.progress && i.progress(e, r);
  59547. };
  59548. }
  59549. function sYe(t) {
  59550. return t.data.count();
  59551. }
  59552. function lYe(t) {
  59553. FC = null;
  59554. try {
  59555. t(e_, Rue);
  59556. } catch {
  59557. }
  59558. return FC;
  59559. }
  59560. var e_ = {}, Rue = {}, FC;
  59561. kue(e_, a3);
  59562. kue(Rue, aue);
  59563. e_.eachSeriesByType = e_.eachRawSeriesByType = function(t) {
  59564. FC = t;
  59565. };
  59566. e_.eachComponent = function(t) {
  59567. t.mainType === "series" && t.subType && (FC = t.subType);
  59568. };
  59569. function kue(t, e) {
  59570. for (var n in e.prototype)
  59571. t[n] = fr;
  59572. }
  59573. var dj = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"];
  59574. const uYe = {
  59575. color: dj,
  59576. colorLayer: [["#37A2DA", "#ffd85c", "#fd7b5f"], ["#37A2DA", "#67E0E3", "#FFDB5C", "#ff9f7f", "#E062AE", "#9d96f5"], ["#37A2DA", "#32C5E9", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#e7bcf3", "#8378EA", "#96BFFF"], dj]
  59577. };
  59578. var qi = "#B9B8CE", hj = "#100C2A", wS = function() {
  59579. return {
  59580. axisLine: {
  59581. lineStyle: {
  59582. color: qi
  59583. }
  59584. },
  59585. splitLine: {
  59586. lineStyle: {
  59587. color: "#484753"
  59588. }
  59589. },
  59590. splitArea: {
  59591. areaStyle: {
  59592. color: ["rgba(255,255,255,0.02)", "rgba(255,255,255,0.05)"]
  59593. }
  59594. },
  59595. minorSplitLine: {
  59596. lineStyle: {
  59597. color: "#20203B"
  59598. }
  59599. }
  59600. };
  59601. }, pj = ["#4992ff", "#7cffb2", "#fddd60", "#ff6e76", "#58d9f9", "#05c091", "#ff8a45", "#8d48e3", "#dd79ff"], Lue = {
  59602. darkMode: !0,
  59603. color: pj,
  59604. backgroundColor: hj,
  59605. axisPointer: {
  59606. lineStyle: {
  59607. color: "#817f91"
  59608. },
  59609. crossStyle: {
  59610. color: "#817f91"
  59611. },
  59612. label: {
  59613. // TODO Contrast of label backgorundColor
  59614. color: "#fff"
  59615. }
  59616. },
  59617. legend: {
  59618. textStyle: {
  59619. color: qi
  59620. }
  59621. },
  59622. textStyle: {
  59623. color: qi
  59624. },
  59625. title: {
  59626. textStyle: {
  59627. color: "#EEF1FA"
  59628. },
  59629. subtextStyle: {
  59630. color: "#B9B8CE"
  59631. }
  59632. },
  59633. toolbox: {
  59634. iconStyle: {
  59635. borderColor: qi
  59636. }
  59637. },
  59638. dataZoom: {
  59639. borderColor: "#71708A",
  59640. textStyle: {
  59641. color: qi
  59642. },
  59643. brushStyle: {
  59644. color: "rgba(135,163,206,0.3)"
  59645. },
  59646. handleStyle: {
  59647. color: "#353450",
  59648. borderColor: "#C5CBE3"
  59649. },
  59650. moveHandleStyle: {
  59651. color: "#B0B6C3",
  59652. opacity: 0.3
  59653. },
  59654. fillerColor: "rgba(135,163,206,0.2)",
  59655. emphasis: {
  59656. handleStyle: {
  59657. borderColor: "#91B7F2",
  59658. color: "#4D587D"
  59659. },
  59660. moveHandleStyle: {
  59661. color: "#636D9A",
  59662. opacity: 0.7
  59663. }
  59664. },
  59665. dataBackground: {
  59666. lineStyle: {
  59667. color: "#71708A",
  59668. width: 1
  59669. },
  59670. areaStyle: {
  59671. color: "#71708A"
  59672. }
  59673. },
  59674. selectedDataBackground: {
  59675. lineStyle: {
  59676. color: "#87A3CE"
  59677. },
  59678. areaStyle: {
  59679. color: "#87A3CE"
  59680. }
  59681. }
  59682. },
  59683. visualMap: {
  59684. textStyle: {
  59685. color: qi
  59686. }
  59687. },
  59688. timeline: {
  59689. lineStyle: {
  59690. color: qi
  59691. },
  59692. label: {
  59693. color: qi
  59694. },
  59695. controlStyle: {
  59696. color: qi,
  59697. borderColor: qi
  59698. }
  59699. },
  59700. calendar: {
  59701. itemStyle: {
  59702. color: hj
  59703. },
  59704. dayLabel: {
  59705. color: qi
  59706. },
  59707. monthLabel: {
  59708. color: qi
  59709. },
  59710. yearLabel: {
  59711. color: qi
  59712. }
  59713. },
  59714. timeAxis: wS(),
  59715. logAxis: wS(),
  59716. valueAxis: wS(),
  59717. categoryAxis: wS(),
  59718. line: {
  59719. symbol: "circle"
  59720. },
  59721. graph: {
  59722. color: pj
  59723. },
  59724. gauge: {
  59725. title: {
  59726. color: qi
  59727. },
  59728. axisLine: {
  59729. lineStyle: {
  59730. color: [[1, "rgba(207,212,219,0.2)"]]
  59731. }
  59732. },
  59733. axisLabel: {
  59734. color: qi
  59735. },
  59736. detail: {
  59737. color: "#EEF1FA"
  59738. }
  59739. },
  59740. candlestick: {
  59741. itemStyle: {
  59742. color: "#f64e56",
  59743. color0: "#54ea92",
  59744. borderColor: "#f64e56",
  59745. borderColor0: "#54ea92"
  59746. // borderColor: '#ca2824',
  59747. // borderColor0: '#09a443'
  59748. }
  59749. }
  59750. };
  59751. Lue.categoryAxis.splitLine.show = !1;
  59752. var cYe = (
  59753. /** @class */
  59754. function() {
  59755. function t() {
  59756. }
  59757. return t.prototype.normalizeQuery = function(e) {
  59758. var n = {}, r = {}, i = {};
  59759. if (Ve(e)) {
  59760. var a = $l(e);
  59761. n.mainType = a.main || null, n.subType = a.sub || null;
  59762. } else {
  59763. var o = ["Index", "Name", "Id"], s = {
  59764. name: 1,
  59765. dataIndex: 1,
  59766. dataType: 1
  59767. };
  59768. F(e, function(l, u) {
  59769. for (var c = !1, f = 0; f < o.length; f++) {
  59770. var d = o[f], h = u.lastIndexOf(d);
  59771. if (h > 0 && h === u.length - d.length) {
  59772. var p = u.slice(0, h);
  59773. p !== "data" && (n.mainType = p, n[d.toLowerCase()] = l, c = !0);
  59774. }
  59775. }
  59776. s.hasOwnProperty(u) && (r[u] = l, c = !0), c || (i[u] = l);
  59777. });
  59778. }
  59779. return {
  59780. cptQuery: n,
  59781. dataQuery: r,
  59782. otherQuery: i
  59783. };
  59784. }, t.prototype.filter = function(e, n) {
  59785. var r = this.eventInfo;
  59786. if (!r)
  59787. return !0;
  59788. var i = r.targetEl, a = r.packedEvent, o = r.model, s = r.view;
  59789. if (!o || !s)
  59790. return !0;
  59791. var l = n.cptQuery, u = n.dataQuery;
  59792. return c(l, o, "mainType") && c(l, o, "subType") && c(l, o, "index", "componentIndex") && c(l, o, "name") && c(l, o, "id") && c(u, a, "name") && c(u, a, "dataIndex") && c(u, a, "dataType") && (!s.filterForExposedEvent || s.filterForExposedEvent(e, n.otherQuery, i, a));
  59793. function c(f, d, h, p) {
  59794. return f[h] == null || d[p || h] === f[h];
  59795. }
  59796. }, t.prototype.afterTrigger = function() {
  59797. this.eventInfo = null;
  59798. }, t;
  59799. }()
  59800. ), Gk = ["symbol", "symbolSize", "symbolRotate", "symbolOffset"], vj = Gk.concat(["symbolKeepAspect"]), fYe = {
  59801. createOnAllSeries: !0,
  59802. // For legend.
  59803. performRawSeries: !0,
  59804. reset: function(t, e) {
  59805. var n = t.getData();
  59806. if (t.legendIcon && n.setVisual("legendIcon", t.legendIcon), !t.hasSymbolVisual)
  59807. return;
  59808. for (var r = {}, i = {}, a = !1, o = 0; o < Gk.length; o++) {
  59809. var s = Gk[o], l = t.get(s);
  59810. qe(l) ? (a = !0, i[s] = l) : r[s] = l;
  59811. }
  59812. if (r.symbol = r.symbol || t.defaultSymbol, n.setVisual(_e({
  59813. legendIcon: t.legendIcon || r.symbol,
  59814. symbolKeepAspect: t.get("symbolKeepAspect")
  59815. }, r)), e.isSeriesFiltered(t))
  59816. return;
  59817. var u = kt(i);
  59818. function c(f, d) {
  59819. for (var h = t.getRawValue(d), p = t.getDataParams(d), v = 0; v < u.length; v++) {
  59820. var g = u[v];
  59821. f.setItemVisual(d, g, i[g](h, p));
  59822. }
  59823. }
  59824. return {
  59825. dataEach: a ? c : null
  59826. };
  59827. }
  59828. }, dYe = {
  59829. createOnAllSeries: !0,
  59830. // For legend.
  59831. performRawSeries: !0,
  59832. reset: function(t, e) {
  59833. if (!t.hasSymbolVisual || e.isSeriesFiltered(t))
  59834. return;
  59835. var n = t.getData();
  59836. function r(i, a) {
  59837. for (var o = i.getItemModel(a), s = 0; s < vj.length; s++) {
  59838. var l = vj[s], u = o.getShallow(l, !0);
  59839. u != null && i.setItemVisual(a, l, u);
  59840. }
  59841. }
  59842. return {
  59843. dataEach: n.hasItemOption ? r : null
  59844. };
  59845. }
  59846. };
  59847. function c3(t, e, n) {
  59848. switch (n) {
  59849. case "color":
  59850. var r = t.getItemVisual(e, "style");
  59851. return r[t.getVisual("drawType")];
  59852. case "opacity":
  59853. return t.getItemVisual(e, "style").opacity;
  59854. case "symbol":
  59855. case "symbolSize":
  59856. case "liftZ":
  59857. return t.getItemVisual(e, n);
  59858. default:
  59859. process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + n);
  59860. }
  59861. }
  59862. function v1(t, e) {
  59863. switch (e) {
  59864. case "color":
  59865. var n = t.getVisual("style");
  59866. return n[t.getVisual("drawType")];
  59867. case "opacity":
  59868. return t.getVisual("style").opacity;
  59869. case "symbol":
  59870. case "symbolSize":
  59871. case "liftZ":
  59872. return t.getVisual(e);
  59873. default:
  59874. process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + e);
  59875. }
  59876. }
  59877. function Nue(t, e, n, r) {
  59878. switch (n) {
  59879. case "color":
  59880. var i = t.ensureUniqueItemVisual(e, "style");
  59881. i[t.getVisual("drawType")] = r, t.setItemVisual(e, "colorFromPalette", !1);
  59882. break;
  59883. case "opacity":
  59884. t.ensureUniqueItemVisual(e, "style").opacity = r;
  59885. break;
  59886. case "symbol":
  59887. case "symbolSize":
  59888. case "liftZ":
  59889. t.setItemVisual(e, n, r);
  59890. break;
  59891. default:
  59892. process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + n);
  59893. }
  59894. }
  59895. function Bue(t, e) {
  59896. function n(r, i) {
  59897. var a = [];
  59898. return r.eachComponent({
  59899. mainType: "series",
  59900. subType: t,
  59901. query: i
  59902. }, function(o) {
  59903. a.push(o.seriesIndex);
  59904. }), a;
  59905. }
  59906. F([[t + "ToggleSelect", "toggleSelect"], [t + "Select", "select"], [t + "UnSelect", "unselect"]], function(r) {
  59907. e(r[0], function(i, a, o) {
  59908. i = _e({}, i), process.env.NODE_ENV !== "production" && _r(i.type, r[1]), o.dispatchAction(_e(i, {
  59909. type: r[1],
  59910. seriesIndex: n(a, i)
  59911. }));
  59912. });
  59913. });
  59914. }
  59915. function tv(t, e, n, r, i) {
  59916. var a = t + e;
  59917. n.isSilent(a) || (process.env.NODE_ENV !== "production" && ss("event " + a + " is deprecated."), r.eachComponent({
  59918. mainType: "series",
  59919. subType: "pie"
  59920. }, function(o) {
  59921. for (var s = o.seriesIndex, l = o.option.selectedMap, u = i.selected, c = 0; c < u.length; c++)
  59922. if (u[c].seriesIndex === s) {
  59923. var f = o.getData(), d = Gh(f, i.fromActionPayload);
  59924. n.trigger(a, {
  59925. type: a,
  59926. seriesId: o.id,
  59927. name: Se(d) ? f.getName(d[0]) : f.getName(d),
  59928. selected: Ve(l) ? l : _e({}, l)
  59929. });
  59930. }
  59931. }));
  59932. }
  59933. function hYe(t, e, n) {
  59934. t.on("selectchanged", function(r) {
  59935. var i = n.getModel();
  59936. r.isFromClick ? (tv("map", "selectchanged", e, i, r), tv("pie", "selectchanged", e, i, r)) : r.fromAction === "select" ? (tv("map", "selected", e, i, r), tv("pie", "selected", e, i, r)) : r.fromAction === "unselect" && (tv("map", "unselected", e, i, r), tv("pie", "unselected", e, i, r));
  59937. });
  59938. }
  59939. function sh(t, e, n) {
  59940. for (var r; t && !(e(t) && (r = t, n)); )
  59941. t = t.__hostTarget || t.parent;
  59942. return r;
  59943. }
  59944. var pYe = Math.round(Math.random() * 9), vYe = typeof Object.defineProperty == "function", gYe = function() {
  59945. function t() {
  59946. this._id = "__ec_inner_" + pYe++;
  59947. }
  59948. return t.prototype.get = function(e) {
  59949. return this._guard(e)[this._id];
  59950. }, t.prototype.set = function(e, n) {
  59951. var r = this._guard(e);
  59952. return vYe ? Object.defineProperty(r, this._id, {
  59953. value: n,
  59954. enumerable: !1,
  59955. configurable: !0
  59956. }) : r[this._id] = n, this;
  59957. }, t.prototype.delete = function(e) {
  59958. return this.has(e) ? (delete this._guard(e)[this._id], !0) : !1;
  59959. }, t.prototype.has = function(e) {
  59960. return !!this._guard(e)[this._id];
  59961. }, t.prototype._guard = function(e) {
  59962. if (e !== Object(e))
  59963. throw TypeError("Value of WeakMap is not a non-null object.");
  59964. return e;
  59965. }, t;
  59966. }(), mYe = Dt.extend({
  59967. type: "triangle",
  59968. shape: {
  59969. cx: 0,
  59970. cy: 0,
  59971. width: 0,
  59972. height: 0
  59973. },
  59974. buildPath: function(t, e) {
  59975. var n = e.cx, r = e.cy, i = e.width / 2, a = e.height / 2;
  59976. t.moveTo(n, r - a), t.lineTo(n + i, r + a), t.lineTo(n - i, r + a), t.closePath();
  59977. }
  59978. }), yYe = Dt.extend({
  59979. type: "diamond",
  59980. shape: {
  59981. cx: 0,
  59982. cy: 0,
  59983. width: 0,
  59984. height: 0
  59985. },
  59986. buildPath: function(t, e) {
  59987. var n = e.cx, r = e.cy, i = e.width / 2, a = e.height / 2;
  59988. t.moveTo(n, r - a), t.lineTo(n + i, r), t.lineTo(n, r + a), t.lineTo(n - i, r), t.closePath();
  59989. }
  59990. }), bYe = Dt.extend({
  59991. type: "pin",
  59992. shape: {
  59993. // x, y on the cusp
  59994. x: 0,
  59995. y: 0,
  59996. width: 0,
  59997. height: 0
  59998. },
  59999. buildPath: function(t, e) {
  60000. var n = e.x, r = e.y, i = e.width / 5 * 3, a = Math.max(i, e.height), o = i / 2, s = o * o / (a - o), l = r - a + o + s, u = Math.asin(s / o), c = Math.cos(u) * o, f = Math.sin(u), d = Math.cos(u), h = o * 0.6, p = o * 0.7;
  60001. t.moveTo(n - c, l + s), t.arc(n, l, o, Math.PI - u, Math.PI * 2 + u), t.bezierCurveTo(n + c - f * h, l + s + d * h, n, r - p, n, r), t.bezierCurveTo(n, r - p, n - c + f * h, l + s + d * h, n - c, l + s), t.closePath();
  60002. }
  60003. }), _Ye = Dt.extend({
  60004. type: "arrow",
  60005. shape: {
  60006. x: 0,
  60007. y: 0,
  60008. width: 0,
  60009. height: 0
  60010. },
  60011. buildPath: function(t, e) {
  60012. var n = e.height, r = e.width, i = e.x, a = e.y, o = r / 3 * 2;
  60013. t.moveTo(i, a), t.lineTo(i + o, a + n), t.lineTo(i, a + n / 4 * 3), t.lineTo(i - o, a + n), t.lineTo(i, a), t.closePath();
  60014. }
  60015. }), OYe = {
  60016. line: Xr,
  60017. rect: Zt,
  60018. roundRect: Zt,
  60019. square: Zt,
  60020. circle: ic,
  60021. diamond: yYe,
  60022. pin: bYe,
  60023. arrow: _Ye,
  60024. triangle: mYe
  60025. }, SYe = {
  60026. line: function(t, e, n, r, i) {
  60027. i.x1 = t, i.y1 = e + r / 2, i.x2 = t + n, i.y2 = e + r / 2;
  60028. },
  60029. rect: function(t, e, n, r, i) {
  60030. i.x = t, i.y = e, i.width = n, i.height = r;
  60031. },
  60032. roundRect: function(t, e, n, r, i) {
  60033. i.x = t, i.y = e, i.width = n, i.height = r, i.r = Math.min(n, r) / 4;
  60034. },
  60035. square: function(t, e, n, r, i) {
  60036. var a = Math.min(n, r);
  60037. i.x = t, i.y = e, i.width = a, i.height = a;
  60038. },
  60039. circle: function(t, e, n, r, i) {
  60040. i.cx = t + n / 2, i.cy = e + r / 2, i.r = Math.min(n, r) / 2;
  60041. },
  60042. diamond: function(t, e, n, r, i) {
  60043. i.cx = t + n / 2, i.cy = e + r / 2, i.width = n, i.height = r;
  60044. },
  60045. pin: function(t, e, n, r, i) {
  60046. i.x = t + n / 2, i.y = e + r / 2, i.width = n, i.height = r;
  60047. },
  60048. arrow: function(t, e, n, r, i) {
  60049. i.x = t + n / 2, i.y = e + r / 2, i.width = n, i.height = r;
  60050. },
  60051. triangle: function(t, e, n, r, i) {
  60052. i.cx = t + n / 2, i.cy = e + r / 2, i.width = n, i.height = r;
  60053. }
  60054. }, WC = {};
  60055. F(OYe, function(t, e) {
  60056. WC[e] = new t();
  60057. });
  60058. var xYe = Dt.extend({
  60059. type: "symbol",
  60060. shape: {
  60061. symbolType: "",
  60062. x: 0,
  60063. y: 0,
  60064. width: 0,
  60065. height: 0
  60066. },
  60067. calculateTextPosition: function(t, e, n) {
  60068. var r = AC(t, e, n), i = this.shape;
  60069. return i && i.symbolType === "pin" && e.position === "inside" && (r.y = n.y + n.height * 0.4), r;
  60070. },
  60071. buildPath: function(t, e, n) {
  60072. var r = e.symbolType;
  60073. if (r !== "none") {
  60074. var i = WC[r];
  60075. i || (r = "rect", i = WC[r]), SYe[r](e.x, e.y, e.width, e.height, i.shape), i.buildPath(t, i.shape, n);
  60076. }
  60077. }
  60078. });
  60079. function wYe(t, e) {
  60080. if (this.type !== "image") {
  60081. var n = this.style;
  60082. this.__isEmptyBrush ? (n.stroke = t, n.fill = e || "#fff", n.lineWidth = 2) : this.shape.symbolType === "line" ? n.stroke = t : n.fill = t, this.markRedraw();
  60083. }
  60084. }
  60085. function wr(t, e, n, r, i, a, o) {
  60086. var s = t.indexOf("empty") === 0;
  60087. s && (t = t.substr(5, 1).toLowerCase() + t.substr(6));
  60088. var l;
  60089. return t.indexOf("image://") === 0 ? l = W5(t.slice(8), new bt(e, n, r, i), o ? "center" : "cover") : t.indexOf("path://") === 0 ? l = d1(t.slice(7), {}, new bt(e, n, r, i), o ? "center" : "cover") : l = new xYe({
  60090. shape: {
  60091. symbolType: t,
  60092. x: e,
  60093. y: n,
  60094. width: r,
  60095. height: i
  60096. }
  60097. }), l.__isEmptyBrush = s, l.setColor = wYe, a && l.setColor(a), l;
  60098. }
  60099. function Em(t) {
  60100. return Se(t) || (t = [+t, +t]), [t[0] || 0, t[1] || 0];
  60101. }
  60102. function mp(t, e) {
  60103. if (t != null)
  60104. return Se(t) || (t = [t, t]), [ze(t[0], e[0]) || 0, ze(dt(t[1], t[0]), e[1]) || 0];
  60105. }
  60106. function lh(t) {
  60107. return isFinite(t);
  60108. }
  60109. function CYe(t, e, n) {
  60110. var r = e.x == null ? 0 : e.x, i = e.x2 == null ? 1 : e.x2, a = e.y == null ? 0 : e.y, o = e.y2 == null ? 0 : e.y2;
  60111. e.global || (r = r * n.width + n.x, i = i * n.width + n.x, a = a * n.height + n.y, o = o * n.height + n.y), r = lh(r) ? r : 0, i = lh(i) ? i : 1, a = lh(a) ? a : 0, o = lh(o) ? o : 0;
  60112. var s = t.createLinearGradient(r, a, i, o);
  60113. return s;
  60114. }
  60115. function TYe(t, e, n) {
  60116. var r = n.width, i = n.height, a = Math.min(r, i), o = e.x == null ? 0.5 : e.x, s = e.y == null ? 0.5 : e.y, l = e.r == null ? 0.5 : e.r;
  60117. e.global || (o = o * r + n.x, s = s * i + n.y, l = l * a), o = lh(o) ? o : 0.5, s = lh(s) ? s : 0.5, l = l >= 0 && lh(l) ? l : 0.5;
  60118. var u = t.createRadialGradient(o, s, 0, o, s, l);
  60119. return u;
  60120. }
  60121. function jk(t, e, n) {
  60122. for (var r = e.type === "radial" ? TYe(t, e, n) : CYe(t, e, n), i = e.colorStops, a = 0; a < i.length; a++)
  60123. r.addColorStop(i[a].offset, i[a].color);
  60124. return r;
  60125. }
  60126. function PYe(t, e) {
  60127. if (t === e || !t && !e)
  60128. return !1;
  60129. if (!t || !e || t.length !== e.length)
  60130. return !0;
  60131. for (var n = 0; n < t.length; n++)
  60132. if (t[n] !== e[n])
  60133. return !0;
  60134. return !1;
  60135. }
  60136. function CS(t) {
  60137. return parseInt(t, 10);
  60138. }
  60139. function Rv(t, e, n) {
  60140. var r = ["width", "height"][e], i = ["clientWidth", "clientHeight"][e], a = ["paddingLeft", "paddingTop"][e], o = ["paddingRight", "paddingBottom"][e];
  60141. if (n[r] != null && n[r] !== "auto")
  60142. return parseFloat(n[r]);
  60143. var s = document.defaultView.getComputedStyle(t);
  60144. return (t[i] || CS(s[r]) || CS(t.style[r])) - (CS(s[a]) || 0) - (CS(s[o]) || 0) | 0;
  60145. }
  60146. function $Ye(t, e) {
  60147. return !t || t === "solid" || !(e > 0) ? null : t === "dashed" ? [4 * e, 2 * e] : t === "dotted" ? [e] : Kt(t) ? [t] : Se(t) ? t : null;
  60148. }
  60149. function f3(t) {
  60150. var e = t.style, n = e.lineDash && e.lineWidth > 0 && $Ye(e.lineDash, e.lineWidth), r = e.lineDashOffset;
  60151. if (n) {
  60152. var i = e.strokeNoScale && t.getLineScale ? t.getLineScale() : 1;
  60153. i && i !== 1 && (n = Ce(n, function(a) {
  60154. return a / i;
  60155. }), r /= i);
  60156. }
  60157. return [n, r];
  60158. }
  60159. var AYe = new jl(!0);
  60160. function QC(t) {
  60161. var e = t.stroke;
  60162. return !(e == null || e === "none" || !(t.lineWidth > 0));
  60163. }
  60164. function gj(t) {
  60165. return typeof t == "string" && t !== "none";
  60166. }
  60167. function HC(t) {
  60168. var e = t.fill;
  60169. return e != null && e !== "none";
  60170. }
  60171. function mj(t, e) {
  60172. if (e.fillOpacity != null && e.fillOpacity !== 1) {
  60173. var n = t.globalAlpha;
  60174. t.globalAlpha = e.fillOpacity * e.opacity, t.fill(), t.globalAlpha = n;
  60175. } else
  60176. t.fill();
  60177. }
  60178. function yj(t, e) {
  60179. if (e.strokeOpacity != null && e.strokeOpacity !== 1) {
  60180. var n = t.globalAlpha;
  60181. t.globalAlpha = e.strokeOpacity * e.opacity, t.stroke(), t.globalAlpha = n;
  60182. } else
  60183. t.stroke();
  60184. }
  60185. function Zk(t, e, n) {
  60186. var r = I5(e.image, e.__image, n);
  60187. if (gP(r)) {
  60188. var i = t.createPattern(r, e.repeat || "repeat");
  60189. if (typeof DOMMatrix == "function" && i && i.setTransform) {
  60190. var a = new DOMMatrix();
  60191. a.translateSelf(e.x || 0, e.y || 0), a.rotateSelf(0, 0, (e.rotation || 0) * Uy), a.scaleSelf(e.scaleX || 1, e.scaleY || 1), i.setTransform(a);
  60192. }
  60193. return i;
  60194. }
  60195. }
  60196. function EYe(t, e, n, r) {
  60197. var i, a = QC(n), o = HC(n), s = n.strokePercent, l = s < 1, u = !e.path;
  60198. (!e.silent || l) && u && e.createPathProxy();
  60199. var c = e.path || AYe, f = e.__dirty;
  60200. if (!r) {
  60201. var d = n.fill, h = n.stroke, p = o && !!d.colorStops, v = a && !!h.colorStops, g = o && !!d.image, m = a && !!h.image, y = void 0, _ = void 0, O = void 0, S = void 0, x = void 0;
  60202. (p || v) && (x = e.getBoundingRect()), p && (y = f ? jk(t, d, x) : e.__canvasFillGradient, e.__canvasFillGradient = y), v && (_ = f ? jk(t, h, x) : e.__canvasStrokeGradient, e.__canvasStrokeGradient = _), g && (O = f || !e.__canvasFillPattern ? Zk(t, d, e) : e.__canvasFillPattern, e.__canvasFillPattern = O), m && (S = f || !e.__canvasStrokePattern ? Zk(t, h, e) : e.__canvasStrokePattern, e.__canvasStrokePattern = O), p ? t.fillStyle = y : g && (O ? t.fillStyle = O : o = !1), v ? t.strokeStyle = _ : m && (S ? t.strokeStyle = S : a = !1);
  60203. }
  60204. var C = e.getGlobalScale();
  60205. c.setScale(C[0], C[1], e.segmentIgnoreThreshold);
  60206. var P, $;
  60207. t.setLineDash && n.lineDash && (i = f3(e), P = i[0], $ = i[1]);
  60208. var T = !0;
  60209. (u || f & _v) && (c.setDPR(t.dpr), l ? c.setContext(null) : (c.setContext(t), T = !1), c.reset(), e.buildPath(c, e.shape, r), c.toStatic(), e.pathUpdated()), T && c.rebuildPath(t, l ? s : 1), P && (t.setLineDash(P), t.lineDashOffset = $), r || (n.strokeFirst ? (a && yj(t, n), o && mj(t, n)) : (o && mj(t, n), a && yj(t, n))), P && t.setLineDash([]);
  60210. }
  60211. function MYe(t, e, n) {
  60212. var r = e.__image = I5(n.image, e.__image, e, e.onload);
  60213. if (!(!r || !gP(r))) {
  60214. var i = n.x || 0, a = n.y || 0, o = e.getWidth(), s = e.getHeight(), l = r.width / r.height;
  60215. if (o == null && s != null ? o = s * l : s == null && o != null ? s = o / l : o == null && s == null && (o = r.width, s = r.height), n.sWidth && n.sHeight) {
  60216. var u = n.sx || 0, c = n.sy || 0;
  60217. t.drawImage(r, u, c, n.sWidth, n.sHeight, i, a, o, s);
  60218. } else if (n.sx && n.sy) {
  60219. var u = n.sx, c = n.sy, f = o - u, d = s - c;
  60220. t.drawImage(r, u, c, f, d, i, a, o, s);
  60221. } else
  60222. t.drawImage(r, i, a, o, s);
  60223. }
  60224. }
  60225. function IYe(t, e, n) {
  60226. var r, i = n.text;
  60227. if (i != null && (i += ""), i) {
  60228. t.font = n.font || vf, t.textAlign = n.textAlign, t.textBaseline = n.textBaseline;
  60229. var a = void 0, o = void 0;
  60230. t.setLineDash && n.lineDash && (r = f3(e), a = r[0], o = r[1]), a && (t.setLineDash(a), t.lineDashOffset = o), n.strokeFirst ? (QC(n) && t.strokeText(i, n.x, n.y), HC(n) && t.fillText(i, n.x, n.y)) : (HC(n) && t.fillText(i, n.x, n.y), QC(n) && t.strokeText(i, n.x, n.y)), a && t.setLineDash([]);
  60231. }
  60232. }
  60233. var bj = ["shadowBlur", "shadowOffsetX", "shadowOffsetY"], _j = [
  60234. ["lineCap", "butt"],
  60235. ["lineJoin", "miter"],
  60236. ["miterLimit", 10]
  60237. ];
  60238. function zue(t, e, n, r, i) {
  60239. var a = !1;
  60240. if (!r && (n = n || {}, e === n))
  60241. return !1;
  60242. if (r || e.opacity !== n.opacity) {
  60243. Ma(t, i), a = !0;
  60244. var o = Math.max(Math.min(e.opacity, 1), 0);
  60245. t.globalAlpha = isNaN(o) ? wh.opacity : o;
  60246. }
  60247. (r || e.blend !== n.blend) && (a || (Ma(t, i), a = !0), t.globalCompositeOperation = e.blend || wh.blend);
  60248. for (var s = 0; s < bj.length; s++) {
  60249. var l = bj[s];
  60250. (r || e[l] !== n[l]) && (a || (Ma(t, i), a = !0), t[l] = t.dpr * (e[l] || 0));
  60251. }
  60252. return (r || e.shadowColor !== n.shadowColor) && (a || (Ma(t, i), a = !0), t.shadowColor = e.shadowColor || wh.shadowColor), a;
  60253. }
  60254. function Oj(t, e, n, r, i) {
  60255. var a = t_(e, i.inHover), o = r ? null : n && t_(n, i.inHover) || {};
  60256. if (a === o)
  60257. return !1;
  60258. var s = zue(t, a, o, r, i);
  60259. if ((r || a.fill !== o.fill) && (s || (Ma(t, i), s = !0), gj(a.fill) && (t.fillStyle = a.fill)), (r || a.stroke !== o.stroke) && (s || (Ma(t, i), s = !0), gj(a.stroke) && (t.strokeStyle = a.stroke)), (r || a.opacity !== o.opacity) && (s || (Ma(t, i), s = !0), t.globalAlpha = a.opacity == null ? 1 : a.opacity), e.hasStroke()) {
  60260. var l = a.lineWidth, u = l / (a.strokeNoScale && e.getLineScale ? e.getLineScale() : 1);
  60261. t.lineWidth !== u && (s || (Ma(t, i), s = !0), t.lineWidth = u);
  60262. }
  60263. for (var c = 0; c < _j.length; c++) {
  60264. var f = _j[c], d = f[0];
  60265. (r || a[d] !== o[d]) && (s || (Ma(t, i), s = !0), t[d] = a[d] || f[1]);
  60266. }
  60267. return s;
  60268. }
  60269. function DYe(t, e, n, r, i) {
  60270. return zue(t, t_(e, i.inHover), n && t_(n, i.inHover), r, i);
  60271. }
  60272. function Vue(t, e) {
  60273. var n = e.transform, r = t.dpr || 1;
  60274. n ? t.setTransform(r * n[0], r * n[1], r * n[2], r * n[3], r * n[4], r * n[5]) : t.setTransform(r, 0, 0, r, 0, 0);
  60275. }
  60276. function RYe(t, e, n) {
  60277. for (var r = !1, i = 0; i < t.length; i++) {
  60278. var a = t[i];
  60279. r = r || a.isZeroArea(), Vue(e, a), e.beginPath(), a.buildPath(e, a.shape), e.clip();
  60280. }
  60281. n.allClipped = r;
  60282. }
  60283. function kYe(t, e) {
  60284. return t && e ? t[0] !== e[0] || t[1] !== e[1] || t[2] !== e[2] || t[3] !== e[3] || t[4] !== e[4] || t[5] !== e[5] : !(!t && !e);
  60285. }
  60286. var Sj = 1, xj = 2, wj = 3, Cj = 4;
  60287. function LYe(t) {
  60288. var e = HC(t), n = QC(t);
  60289. return !(t.lineDash || !(+e ^ +n) || e && typeof t.fill != "string" || n && typeof t.stroke != "string" || t.strokePercent < 1 || t.strokeOpacity < 1 || t.fillOpacity < 1);
  60290. }
  60291. function Ma(t, e) {
  60292. e.batchFill && t.fill(), e.batchStroke && t.stroke(), e.batchFill = "", e.batchStroke = "";
  60293. }
  60294. function t_(t, e) {
  60295. return e && t.__hoverStyle || t.style;
  60296. }
  60297. function d3(t, e) {
  60298. uh(t, e, { inHover: !1, viewWidth: 0, viewHeight: 0 }, !0);
  60299. }
  60300. function uh(t, e, n, r) {
  60301. var i = e.transform;
  60302. if (!e.shouldBePainted(n.viewWidth, n.viewHeight, !1, !1)) {
  60303. e.__dirty &= ~to, e.__isRendered = !1;
  60304. return;
  60305. }
  60306. var a = e.__clipPaths, o = n.prevElClipPaths, s = !1, l = !1;
  60307. if ((!o || PYe(a, o)) && (o && o.length && (Ma(t, n), t.restore(), l = s = !0, n.prevElClipPaths = null, n.allClipped = !1, n.prevEl = null), a && a.length && (Ma(t, n), t.save(), RYe(a, t, n), s = !0), n.prevElClipPaths = a), n.allClipped) {
  60308. e.__isRendered = !1;
  60309. return;
  60310. }
  60311. e.beforeBrush && e.beforeBrush(), e.innerBeforeBrush();
  60312. var u = n.prevEl;
  60313. u || (l = s = !0);
  60314. var c = e instanceof Dt && e.autoBatch && LYe(e.style);
  60315. s || kYe(i, u.transform) ? (Ma(t, n), Vue(t, e)) : c || Ma(t, n);
  60316. var f = t_(e, n.inHover);
  60317. e instanceof Dt ? (n.lastDrawType !== Sj && (l = !0, n.lastDrawType = Sj), Oj(t, e, u, l, n), (!c || !n.batchFill && !n.batchStroke) && t.beginPath(), EYe(t, e, f, c), c && (n.batchFill = f.fill || "", n.batchStroke = f.stroke || "")) : e instanceof Wg ? (n.lastDrawType !== wj && (l = !0, n.lastDrawType = wj), Oj(t, e, u, l, n), IYe(t, e, f)) : e instanceof ci ? (n.lastDrawType !== xj && (l = !0, n.lastDrawType = xj), DYe(t, e, u, l, n), MYe(t, e, f)) : e.getTemporalDisplayables && (n.lastDrawType !== Cj && (l = !0, n.lastDrawType = Cj), NYe(t, e, n)), c && r && Ma(t, n), e.innerAfterBrush(), e.afterBrush && e.afterBrush(), n.prevEl = e, e.__dirty = 0, e.__isRendered = !0;
  60318. }
  60319. function NYe(t, e, n) {
  60320. var r = e.getDisplayables(), i = e.getTemporalDisplayables();
  60321. t.save();
  60322. var a = {
  60323. prevElClipPaths: null,
  60324. prevEl: null,
  60325. allClipped: !1,
  60326. viewWidth: n.viewWidth,
  60327. viewHeight: n.viewHeight,
  60328. inHover: n.inHover
  60329. }, o, s;
  60330. for (o = e.getCursor(), s = r.length; o < s; o++) {
  60331. var l = r[o];
  60332. l.beforeBrush && l.beforeBrush(), l.innerBeforeBrush(), uh(t, l, a, o === s - 1), l.innerAfterBrush(), l.afterBrush && l.afterBrush(), a.prevEl = l;
  60333. }
  60334. for (var u = 0, c = i.length; u < c; u++) {
  60335. var l = i[u];
  60336. l.beforeBrush && l.beforeBrush(), l.innerBeforeBrush(), uh(t, l, a, u === c - 1), l.innerAfterBrush(), l.afterBrush && l.afterBrush(), a.prevEl = l;
  60337. }
  60338. e.clearTemporalDisplayables(), e.notClear = !0, t.restore();
  60339. }
  60340. var _M = new gYe(), Tj = new a1(100), Pj = ["symbol", "symbolSize", "symbolKeepAspect", "color", "backgroundColor", "dashArrayX", "dashArrayY", "maxTileWidth", "maxTileHeight"];
  60341. function Gg(t, e) {
  60342. if (t === "none")
  60343. return null;
  60344. var n = e.getDevicePixelRatio(), r = e.getZr(), i = r.painter.type === "svg";
  60345. t.dirty && _M.delete(t);
  60346. var a = _M.get(t);
  60347. if (a)
  60348. return a;
  60349. var o = it(t, {
  60350. symbol: "rect",
  60351. symbolSize: 1,
  60352. symbolKeepAspect: !0,
  60353. color: "rgba(0, 0, 0, 0.2)",
  60354. backgroundColor: null,
  60355. dashArrayX: 5,
  60356. dashArrayY: 5,
  60357. rotation: 0,
  60358. maxTileWidth: 512,
  60359. maxTileHeight: 512
  60360. });
  60361. o.backgroundColor === "none" && (o.backgroundColor = null);
  60362. var s = {
  60363. repeat: "repeat"
  60364. };
  60365. return l(s), s.rotation = o.rotation, s.scaleX = s.scaleY = i ? 1 : 1 / n, _M.set(t, s), t.dirty = !1, s;
  60366. function l(u) {
  60367. for (var c = [n], f = !0, d = 0; d < Pj.length; ++d) {
  60368. var h = o[Pj[d]];
  60369. if (h != null && !Se(h) && !Ve(h) && !Kt(h) && typeof h != "boolean") {
  60370. f = !1;
  60371. break;
  60372. }
  60373. c.push(h);
  60374. }
  60375. var p;
  60376. if (f) {
  60377. p = c.join(",") + (i ? "-svg" : "");
  60378. var v = Tj.get(p);
  60379. v && (i ? u.svgElement = v : u.image = v);
  60380. }
  60381. var g = Wue(o.dashArrayX), m = BYe(o.dashArrayY), y = Fue(o.symbol), _ = zYe(g), O = Que(m), S = !i && Hs.createCanvas(), x = i && {
  60382. tag: "g",
  60383. attrs: {},
  60384. key: "dcl",
  60385. children: []
  60386. }, C = $(), P;
  60387. S && (S.width = C.width * n, S.height = C.height * n, P = S.getContext("2d")), T(), f && Tj.put(p, S || x), u.image = S, u.svgElement = x, u.svgWidth = C.width, u.svgHeight = C.height;
  60388. function $() {
  60389. for (var E = 1, M = 0, R = _.length; M < R; ++M)
  60390. E = FH(E, _[M]);
  60391. for (var N = 1, M = 0, R = y.length; M < R; ++M)
  60392. N = FH(N, y[M].length);
  60393. E *= N;
  60394. var I = O * _.length * y.length;
  60395. if (process.env.NODE_ENV !== "production") {
  60396. var B = function(Q) {
  60397. console.warn("Calculated decal size is greater than " + Q + " due to decal option settings so " + Q + " is used for the decal size. Please consider changing the decal option to make a smaller decal or set " + Q + " to be larger to avoid incontinuity.");
  60398. };
  60399. E > o.maxTileWidth && B("maxTileWidth"), I > o.maxTileHeight && B("maxTileHeight");
  60400. }
  60401. return {
  60402. width: Math.max(1, Math.min(E, o.maxTileWidth)),
  60403. height: Math.max(1, Math.min(I, o.maxTileHeight))
  60404. };
  60405. }
  60406. function T() {
  60407. P && (P.clearRect(0, 0, S.width, S.height), o.backgroundColor && (P.fillStyle = o.backgroundColor, P.fillRect(0, 0, S.width, S.height)));
  60408. for (var E = 0, M = 0; M < m.length; ++M)
  60409. E += m[M];
  60410. if (E <= 0)
  60411. return;
  60412. for (var R = -O, N = 0, I = 0, B = 0; R < C.height; ) {
  60413. if (N % 2 === 0) {
  60414. for (var Q = I / 2 % y.length, W = 0, H = 0, U = 0; W < C.width * 2; ) {
  60415. for (var j = 0, M = 0; M < g[B].length; ++M)
  60416. j += g[B][M];
  60417. if (j <= 0)
  60418. break;
  60419. if (H % 2 === 0) {
  60420. var Y = (1 - o.symbolSize) * 0.5, ne = W + g[B][H] * Y, fe = R + m[N] * Y, ue = g[B][H] * o.symbolSize, ye = m[N] * o.symbolSize, se = U / 2 % y[Q].length;
  60421. he(ne, fe, ue, ye, y[Q][se]);
  60422. }
  60423. W += g[B][H], ++U, ++H, H === g[B].length && (H = 0);
  60424. }
  60425. ++B, B === g.length && (B = 0);
  60426. }
  60427. R += m[N], ++I, ++N, N === m.length && (N = 0);
  60428. }
  60429. function he(re, q, K, de, xe) {
  60430. var we = i ? 1 : n, He = wr(xe, re * we, q * we, K * we, de * we, o.color, o.symbolKeepAspect);
  60431. if (i) {
  60432. var je = r.painter.renderOneToVNode(He);
  60433. je && x.children.push(je);
  60434. } else
  60435. d3(P, He);
  60436. }
  60437. }
  60438. }
  60439. }
  60440. function Fue(t) {
  60441. if (!t || t.length === 0)
  60442. return [["rect"]];
  60443. if (Ve(t))
  60444. return [[t]];
  60445. for (var e = !0, n = 0; n < t.length; ++n)
  60446. if (!Ve(t[n])) {
  60447. e = !1;
  60448. break;
  60449. }
  60450. if (e)
  60451. return Fue([t]);
  60452. for (var r = [], n = 0; n < t.length; ++n)
  60453. Ve(t[n]) ? r.push([t[n]]) : r.push(t[n]);
  60454. return r;
  60455. }
  60456. function Wue(t) {
  60457. if (!t || t.length === 0)
  60458. return [[0, 0]];
  60459. if (Kt(t)) {
  60460. var e = Math.ceil(t);
  60461. return [[e, e]];
  60462. }
  60463. for (var n = !0, r = 0; r < t.length; ++r)
  60464. if (!Kt(t[r])) {
  60465. n = !1;
  60466. break;
  60467. }
  60468. if (n)
  60469. return Wue([t]);
  60470. for (var i = [], r = 0; r < t.length; ++r)
  60471. if (Kt(t[r])) {
  60472. var e = Math.ceil(t[r]);
  60473. i.push([e, e]);
  60474. } else {
  60475. var e = Ce(t[r], function(s) {
  60476. return Math.ceil(s);
  60477. });
  60478. e.length % 2 === 1 ? i.push(e.concat(e)) : i.push(e);
  60479. }
  60480. return i;
  60481. }
  60482. function BYe(t) {
  60483. if (!t || typeof t == "object" && t.length === 0)
  60484. return [0, 0];
  60485. if (Kt(t)) {
  60486. var e = Math.ceil(t);
  60487. return [e, e];
  60488. }
  60489. var n = Ce(t, function(r) {
  60490. return Math.ceil(r);
  60491. });
  60492. return t.length % 2 ? n.concat(n) : n;
  60493. }
  60494. function zYe(t) {
  60495. return Ce(t, function(e) {
  60496. return Que(e);
  60497. });
  60498. }
  60499. function Que(t) {
  60500. for (var e = 0, n = 0; n < t.length; ++n)
  60501. e += t[n];
  60502. return t.length % 2 === 1 ? e * 2 : e;
  60503. }
  60504. function VYe(t, e) {
  60505. t.eachRawSeries(function(n) {
  60506. if (!t.isSeriesFiltered(n)) {
  60507. var r = n.getData();
  60508. r.hasItemVisual() && r.each(function(o) {
  60509. var s = r.getItemVisual(o, "decal");
  60510. if (s) {
  60511. var l = r.ensureUniqueItemVisual(o, "style");
  60512. l.decal = Gg(s, e);
  60513. }
  60514. });
  60515. var i = r.getVisual("decal");
  60516. if (i) {
  60517. var a = r.getVisual("style");
  60518. a.decal = Gg(i, e);
  60519. }
  60520. }
  60521. });
  60522. }
  60523. var Ts = new fs(), GC = {};
  60524. function FYe(t, e) {
  60525. process.env.NODE_ENV !== "production" && GC[t] && $i("Already has an implementation of " + t + "."), GC[t] = e;
  60526. }
  60527. function Hue(t) {
  60528. return process.env.NODE_ENV !== "production" && (GC[t] || $i("Implementation of " + t + " doesn't exists.")), GC[t];
  60529. }
  60530. var WYe = "5.5.1", QYe = {
  60531. zrender: "5.6.0"
  60532. }, HYe = 1, GYe = 800, jYe = 900, ZYe = 1e3, UYe = 2e3, XYe = 5e3, Gue = 1e3, YYe = 1100, h3 = 2e3, jue = 3e3, qYe = 4e3, LP = 4500, KYe = 4600, JYe = 5e3, eqe = 6e3, Zue = 7e3, Uue = {
  60533. PROCESSOR: {
  60534. FILTER: ZYe,
  60535. SERIES_FILTER: GYe,
  60536. STATISTIC: XYe
  60537. },
  60538. VISUAL: {
  60539. LAYOUT: Gue,
  60540. PROGRESSIVE_LAYOUT: YYe,
  60541. GLOBAL: h3,
  60542. CHART: jue,
  60543. POST_CHART_LAYOUT: KYe,
  60544. COMPONENT: qYe,
  60545. BRUSH: JYe,
  60546. CHART_ITEM: LP,
  60547. ARIA: eqe,
  60548. DECAL: Zue
  60549. }
  60550. }, Ri = "__flagInMainProcess", Oa = "__pendingUpdate", OM = "__needsUpdateStatus", $j = /^[a-zA-Z0-9_]+$/, SM = "__connectUpdateStatus", Aj = 0, tqe = 1, nqe = 2;
  60551. function Xue(t) {
  60552. return function() {
  60553. for (var e = [], n = 0; n < arguments.length; n++)
  60554. e[n] = arguments[n];
  60555. if (this.isDisposed()) {
  60556. Ja(this.id);
  60557. return;
  60558. }
  60559. return que(this, t, e);
  60560. };
  60561. }
  60562. function Yue(t) {
  60563. return function() {
  60564. for (var e = [], n = 0; n < arguments.length; n++)
  60565. e[n] = arguments[n];
  60566. return que(this, t, e);
  60567. };
  60568. }
  60569. function que(t, e, n) {
  60570. return n[0] = n[0] && n[0].toLowerCase(), fs.prototype[e].apply(t, n);
  60571. }
  60572. var Kue = (
  60573. /** @class */
  60574. function(t) {
  60575. le(e, t);
  60576. function e() {
  60577. return t !== null && t.apply(this, arguments) || this;
  60578. }
  60579. return e;
  60580. }(fs)
  60581. ), Jue = Kue.prototype;
  60582. Jue.on = Yue("on");
  60583. Jue.off = Yue("off");
  60584. var nv, xM, TS, Sc, wM, CM, TM, N0, B0, Ej, Mj, PM, Ij, PS, Dj, ece, Mo, Rj, jC = (
  60585. /** @class */
  60586. function(t) {
  60587. le(e, t);
  60588. function e(n, r, i) {
  60589. var a = t.call(this, new cYe()) || this;
  60590. a._chartsViews = [], a._chartsMap = {}, a._componentsViews = [], a._componentsMap = {}, a._pendingActions = [], i = i || {}, Ve(r) && (r = tce[r]), a._dom = n;
  60591. var o = "canvas", s = "auto", l = !1;
  60592. if (process.env.NODE_ENV !== "production") {
  60593. var u = (
  60594. /* eslint-disable-next-line */
  60595. Gt.hasGlobalWindow ? window : global
  60596. );
  60597. u && (o = dt(u.__ECHARTS__DEFAULT__RENDERER__, o), s = dt(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), l = dt(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, l));
  60598. }
  60599. i.ssr && Ase(function(h) {
  60600. var p = ft(h), v = p.dataIndex;
  60601. if (v != null) {
  60602. var g = Ze();
  60603. return g.set("series_index", p.seriesIndex), g.set("data_index", v), p.ssrType && g.set("ssr_type", p.ssrType), g;
  60604. }
  60605. });
  60606. var c = a._zr = bk(n, {
  60607. renderer: i.renderer || o,
  60608. devicePixelRatio: i.devicePixelRatio,
  60609. width: i.width,
  60610. height: i.height,
  60611. ssr: i.ssr,
  60612. useDirtyRect: dt(i.useDirtyRect, l),
  60613. useCoarsePointer: dt(i.useCoarsePointer, s),
  60614. pointerSize: i.pointerSize
  60615. });
  60616. a._ssr = i.ssr, a._throttledZrFlush = kP(We(c.flush, c), 17), r = ot(r), r && sue(r, !0), a._theme = r, a._locale = yUe(i.locale || Vle), a._coordSysMgr = new gp();
  60617. var f = a._api = Dj(a);
  60618. function d(h, p) {
  60619. return h.__prio - p.__prio;
  60620. }
  60621. return aw(UC, d), aw(Uk, d), a._scheduler = new Iue(a, f, Uk, UC), a._messageCenter = new Kue(), a._initEvents(), a.resize = We(a.resize, a), c.animation.on("frame", a._onframe, a), Ej(c, a), Mj(c, a), Vb(a), a;
  60622. }
  60623. return e.prototype._onframe = function() {
  60624. if (!this._disposed) {
  60625. Rj(this);
  60626. var n = this._scheduler;
  60627. if (this[Oa]) {
  60628. var r = this[Oa].silent;
  60629. this[Ri] = !0;
  60630. try {
  60631. nv(this), Sc.update.call(this, null, this[Oa].updateParams);
  60632. } catch (l) {
  60633. throw this[Ri] = !1, this[Oa] = null, l;
  60634. }
  60635. this._zr.flush(), this[Ri] = !1, this[Oa] = null, N0.call(this, r), B0.call(this, r);
  60636. } else if (n.unfinished) {
  60637. var i = HYe, a = this._model, o = this._api;
  60638. n.unfinished = !1;
  60639. do {
  60640. var s = +/* @__PURE__ */ new Date();
  60641. n.performSeriesTasks(a), n.performDataProcessorTasks(a), CM(this, a), n.performVisualTasks(a), PS(this, this._model, o, "remain", {}), i -= +/* @__PURE__ */ new Date() - s;
  60642. } while (i > 0 && n.unfinished);
  60643. n.unfinished || this._zr.flush();
  60644. }
  60645. }
  60646. }, e.prototype.getDom = function() {
  60647. return this._dom;
  60648. }, e.prototype.getId = function() {
  60649. return this.id;
  60650. }, e.prototype.getZr = function() {
  60651. return this._zr;
  60652. }, e.prototype.isSSR = function() {
  60653. return this._ssr;
  60654. }, e.prototype.setOption = function(n, r, i) {
  60655. if (this[Ri]) {
  60656. process.env.NODE_ENV !== "production" && $i("`setOption` should not be called during main process.");
  60657. return;
  60658. }
  60659. if (this._disposed) {
  60660. Ja(this.id);
  60661. return;
  60662. }
  60663. var a, o, s;
  60664. if (nt(r) && (i = r.lazyUpdate, a = r.silent, o = r.replaceMerge, s = r.transition, r = r.notMerge), this[Ri] = !0, !this._model || r) {
  60665. var l = new ZUe(this._api), u = this._theme, c = this._model = new a3();
  60666. c.scheduler = this._scheduler, c.ssr = this._ssr, c.init(null, null, null, u, this._locale, l);
  60667. }
  60668. this._model.setOption(n, {
  60669. replaceMerge: o
  60670. }, Xk);
  60671. var f = {
  60672. seriesTransition: s,
  60673. optionChanged: !0
  60674. };
  60675. if (i)
  60676. this[Oa] = {
  60677. silent: a,
  60678. updateParams: f
  60679. }, this[Ri] = !1, this.getZr().wakeUp();
  60680. else {
  60681. try {
  60682. nv(this), Sc.update.call(this, null, f);
  60683. } catch (d) {
  60684. throw this[Oa] = null, this[Ri] = !1, d;
  60685. }
  60686. this._ssr || this._zr.flush(), this[Oa] = null, this[Ri] = !1, N0.call(this, a), B0.call(this, a);
  60687. }
  60688. }, e.prototype.setTheme = function() {
  60689. ss("ECharts#setTheme() is DEPRECATED in ECharts 3.0");
  60690. }, e.prototype.getModel = function() {
  60691. return this._model;
  60692. }, e.prototype.getOption = function() {
  60693. return this._model && this._model.getOption();
  60694. }, e.prototype.getWidth = function() {
  60695. return this._zr.getWidth();
  60696. }, e.prototype.getHeight = function() {
  60697. return this._zr.getHeight();
  60698. }, e.prototype.getDevicePixelRatio = function() {
  60699. return this._zr.painter.dpr || Gt.hasGlobalWindow && window.devicePixelRatio || 1;
  60700. }, e.prototype.getRenderedCanvas = function(n) {
  60701. return process.env.NODE_ENV !== "production" && _r("getRenderedCanvas", "renderToCanvas"), this.renderToCanvas(n);
  60702. }, e.prototype.renderToCanvas = function(n) {
  60703. n = n || {};
  60704. var r = this._zr.painter;
  60705. if (process.env.NODE_ENV !== "production" && r.type !== "canvas")
  60706. throw new Error("renderToCanvas can only be used in the canvas renderer.");
  60707. return r.getRenderedCanvas({
  60708. backgroundColor: n.backgroundColor || this._model.get("backgroundColor"),
  60709. pixelRatio: n.pixelRatio || this.getDevicePixelRatio()
  60710. });
  60711. }, e.prototype.renderToSVGString = function(n) {
  60712. n = n || {};
  60713. var r = this._zr.painter;
  60714. if (process.env.NODE_ENV !== "production" && r.type !== "svg")
  60715. throw new Error("renderToSVGString can only be used in the svg renderer.");
  60716. return r.renderToString({
  60717. useViewBox: n.useViewBox
  60718. });
  60719. }, e.prototype.getSvgDataURL = function() {
  60720. if (Gt.svgSupported) {
  60721. var n = this._zr, r = n.storage.getDisplayList();
  60722. return F(r, function(i) {
  60723. i.stopAnimation(null, !0);
  60724. }), n.painter.toDataURL();
  60725. }
  60726. }, e.prototype.getDataURL = function(n) {
  60727. if (this._disposed) {
  60728. Ja(this.id);
  60729. return;
  60730. }
  60731. n = n || {};
  60732. var r = n.excludeComponents, i = this._model, a = [], o = this;
  60733. F(r, function(l) {
  60734. i.eachComponent({
  60735. mainType: l
  60736. }, function(u) {
  60737. var c = o._componentsMap[u.__viewId];
  60738. c.group.ignore || (a.push(c), c.group.ignore = !0);
  60739. });
  60740. });
  60741. var s = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(n).toDataURL("image/" + (n && n.type || "png"));
  60742. return F(a, function(l) {
  60743. l.group.ignore = !1;
  60744. }), s;
  60745. }, e.prototype.getConnectedDataURL = function(n) {
  60746. if (this._disposed) {
  60747. Ja(this.id);
  60748. return;
  60749. }
  60750. var r = n.type === "svg", i = this.group, a = Math.min, o = Math.max, s = 1 / 0;
  60751. if (XC[i]) {
  60752. var l = s, u = s, c = -s, f = -s, d = [], h = n && n.pixelRatio || this.getDevicePixelRatio();
  60753. F(Ph, function(_, O) {
  60754. if (_.group === i) {
  60755. var S = r ? _.getZr().painter.getSvgDom().innerHTML : _.renderToCanvas(ot(n)), x = _.getDom().getBoundingClientRect();
  60756. l = a(x.left, l), u = a(x.top, u), c = o(x.right, c), f = o(x.bottom, f), d.push({
  60757. dom: S,
  60758. left: x.left,
  60759. top: x.top
  60760. });
  60761. }
  60762. }), l *= h, u *= h, c *= h, f *= h;
  60763. var p = c - l, v = f - u, g = Hs.createCanvas(), m = bk(g, {
  60764. renderer: r ? "svg" : "canvas"
  60765. });
  60766. if (m.resize({
  60767. width: p,
  60768. height: v
  60769. }), r) {
  60770. var y = "";
  60771. return F(d, function(_) {
  60772. var O = _.left - l, S = _.top - u;
  60773. y += '<g transform="translate(' + O + "," + S + ')">' + _.dom + "</g>";
  60774. }), m.painter.getSvgRoot().innerHTML = y, n.connectedBackgroundColor && m.painter.setBackgroundColor(n.connectedBackgroundColor), m.refreshImmediately(), m.painter.toDataURL();
  60775. } else
  60776. return n.connectedBackgroundColor && m.add(new Zt({
  60777. shape: {
  60778. x: 0,
  60779. y: 0,
  60780. width: p,
  60781. height: v
  60782. },
  60783. style: {
  60784. fill: n.connectedBackgroundColor
  60785. }
  60786. })), F(d, function(_) {
  60787. var O = new ci({
  60788. style: {
  60789. x: _.left * h - l,
  60790. y: _.top * h - u,
  60791. image: _.dom
  60792. }
  60793. });
  60794. m.add(O);
  60795. }), m.refreshImmediately(), g.toDataURL("image/" + (n && n.type || "png"));
  60796. } else
  60797. return this.getDataURL(n);
  60798. }, e.prototype.convertToPixel = function(n, r) {
  60799. return wM(this, "convertToPixel", n, r);
  60800. }, e.prototype.convertFromPixel = function(n, r) {
  60801. return wM(this, "convertFromPixel", n, r);
  60802. }, e.prototype.containPixel = function(n, r) {
  60803. if (this._disposed) {
  60804. Ja(this.id);
  60805. return;
  60806. }
  60807. var i = this._model, a, o = tb(i, n);
  60808. return F(o, function(s, l) {
  60809. l.indexOf("Models") >= 0 && F(s, function(u) {
  60810. var c = u.coordinateSystem;
  60811. if (c && c.containPoint)
  60812. a = a || !!c.containPoint(r);
  60813. else if (l === "seriesModels") {
  60814. var f = this._chartsMap[u.__viewId];
  60815. f && f.containPoint ? a = a || f.containPoint(r, u) : process.env.NODE_ENV !== "production" && nr(l + ": " + (f ? "The found component do not support containPoint." : "No view mapping to the found component."));
  60816. } else
  60817. process.env.NODE_ENV !== "production" && nr(l + ": containPoint is not supported");
  60818. }, this);
  60819. }, this), !!a;
  60820. }, e.prototype.getVisual = function(n, r) {
  60821. var i = this._model, a = tb(i, n, {
  60822. defaultMainType: "series"
  60823. }), o = a.seriesModel;
  60824. process.env.NODE_ENV !== "production" && (o || nr("There is no specified series model"));
  60825. var s = o.getData(), l = a.hasOwnProperty("dataIndexInside") ? a.dataIndexInside : a.hasOwnProperty("dataIndex") ? s.indexOfRawIndex(a.dataIndex) : null;
  60826. return l != null ? c3(s, l, r) : v1(s, r);
  60827. }, e.prototype.getViewOfComponentModel = function(n) {
  60828. return this._componentsMap[n.__viewId];
  60829. }, e.prototype.getViewOfSeriesModel = function(n) {
  60830. return this._chartsMap[n.__viewId];
  60831. }, e.prototype._initEvents = function() {
  60832. var n = this;
  60833. F(rqe, function(r) {
  60834. var i = function(a) {
  60835. var o = n.getModel(), s = a.target, l, u = r === "globalout";
  60836. if (u ? l = {} : s && sh(s, function(p) {
  60837. var v = ft(p);
  60838. if (v && v.dataIndex != null) {
  60839. var g = v.dataModel || o.getSeriesByIndex(v.seriesIndex);
  60840. return l = g && g.getDataParams(v.dataIndex, v.dataType, s) || {}, !0;
  60841. } else if (v.eventData)
  60842. return l = _e({}, v.eventData), !0;
  60843. }, !0), l) {
  60844. var c = l.componentType, f = l.componentIndex;
  60845. (c === "markLine" || c === "markPoint" || c === "markArea") && (c = "series", f = l.seriesIndex);
  60846. var d = c && f != null && o.getComponent(c, f), h = d && n[d.mainType === "series" ? "_chartsMap" : "_componentsMap"][d.__viewId];
  60847. process.env.NODE_ENV !== "production" && !u && !(d && h) && nr("model or view can not be found by params"), l.event = a, l.type = r, n._$eventProcessor.eventInfo = {
  60848. targetEl: s,
  60849. packedEvent: l,
  60850. model: d,
  60851. view: h
  60852. }, n.trigger(r, l);
  60853. }
  60854. };
  60855. i.zrEventfulCallAtLast = !0, n._zr.on(r, i, n);
  60856. }), F(sb, function(r, i) {
  60857. n._messageCenter.on(i, function(a) {
  60858. this.trigger(i, a);
  60859. }, n);
  60860. }), F(["selectchanged"], function(r) {
  60861. n._messageCenter.on(r, function(i) {
  60862. this.trigger(r, i);
  60863. }, n);
  60864. }), hYe(this._messageCenter, this, this._api);
  60865. }, e.prototype.isDisposed = function() {
  60866. return this._disposed;
  60867. }, e.prototype.clear = function() {
  60868. if (this._disposed) {
  60869. Ja(this.id);
  60870. return;
  60871. }
  60872. this.setOption({
  60873. series: []
  60874. }, !0);
  60875. }, e.prototype.dispose = function() {
  60876. if (this._disposed) {
  60877. Ja(this.id);
  60878. return;
  60879. }
  60880. this._disposed = !0;
  60881. var n = this.getDom();
  60882. n && zse(this.getDom(), v3, "");
  60883. var r = this, i = r._api, a = r._model;
  60884. F(r._componentsViews, function(o) {
  60885. o.dispose(a, i);
  60886. }), F(r._chartsViews, function(o) {
  60887. o.dispose(a, i);
  60888. }), r._zr.dispose(), r._dom = r._model = r._chartsMap = r._componentsMap = r._chartsViews = r._componentsViews = r._scheduler = r._api = r._zr = r._throttledZrFlush = r._theme = r._coordSysMgr = r._messageCenter = null, delete Ph[r.id];
  60889. }, e.prototype.resize = function(n) {
  60890. if (this[Ri]) {
  60891. process.env.NODE_ENV !== "production" && $i("`resize` should not be called during main process.");
  60892. return;
  60893. }
  60894. if (this._disposed) {
  60895. Ja(this.id);
  60896. return;
  60897. }
  60898. this._zr.resize(n);
  60899. var r = this._model;
  60900. if (this._loadingFX && this._loadingFX.resize(), !!r) {
  60901. var i = r.resetOption("media"), a = n && n.silent;
  60902. this[Oa] && (a == null && (a = this[Oa].silent), i = !0, this[Oa] = null), this[Ri] = !0;
  60903. try {
  60904. i && nv(this), Sc.update.call(this, {
  60905. type: "resize",
  60906. animation: _e({
  60907. // Disable animation
  60908. duration: 0
  60909. }, n && n.animation)
  60910. });
  60911. } catch (o) {
  60912. throw this[Ri] = !1, o;
  60913. }
  60914. this[Ri] = !1, N0.call(this, a), B0.call(this, a);
  60915. }
  60916. }, e.prototype.showLoading = function(n, r) {
  60917. if (this._disposed) {
  60918. Ja(this.id);
  60919. return;
  60920. }
  60921. if (nt(n) && (r = n, n = ""), n = n || "default", this.hideLoading(), !Yk[n]) {
  60922. process.env.NODE_ENV !== "production" && nr("Loading effects " + n + " not exists.");
  60923. return;
  60924. }
  60925. var i = Yk[n](this._api, r), a = this._zr;
  60926. this._loadingFX = i, a.add(i);
  60927. }, e.prototype.hideLoading = function() {
  60928. if (this._disposed) {
  60929. Ja(this.id);
  60930. return;
  60931. }
  60932. this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null;
  60933. }, e.prototype.makeActionFromEvent = function(n) {
  60934. var r = _e({}, n);
  60935. return r.type = sb[n.type], r;
  60936. }, e.prototype.dispatchAction = function(n, r) {
  60937. if (this._disposed) {
  60938. Ja(this.id);
  60939. return;
  60940. }
  60941. if (nt(r) || (r = {
  60942. silent: !!r
  60943. }), !!ZC[n.type] && this._model) {
  60944. if (this[Ri]) {
  60945. this._pendingActions.push(n);
  60946. return;
  60947. }
  60948. var i = r.silent;
  60949. TM.call(this, n, i);
  60950. var a = r.flush;
  60951. a ? this._zr.flush() : a !== !1 && Gt.browser.weChat && this._throttledZrFlush(), N0.call(this, i), B0.call(this, i);
  60952. }
  60953. }, e.prototype.updateLabelLayout = function() {
  60954. Ts.trigger("series:layoutlabels", this._model, this._api, {
  60955. // Not adding series labels.
  60956. // TODO
  60957. updatedSeries: []
  60958. });
  60959. }, e.prototype.appendData = function(n) {
  60960. if (this._disposed) {
  60961. Ja(this.id);
  60962. return;
  60963. }
  60964. var r = n.seriesIndex, i = this.getModel(), a = i.getSeriesByIndex(r);
  60965. process.env.NODE_ENV !== "production" && at(n.data && a), a.appendData(n), this._scheduler.unfinished = !0, this.getZr().wakeUp();
  60966. }, e.internalField = function() {
  60967. nv = function(f) {
  60968. var d = f._scheduler;
  60969. d.restorePipelines(f._model), d.prepareStageTasks(), xM(f, !0), xM(f, !1), d.plan();
  60970. }, xM = function(f, d) {
  60971. for (var h = f._model, p = f._scheduler, v = d ? f._componentsViews : f._chartsViews, g = d ? f._componentsMap : f._chartsMap, m = f._zr, y = f._api, _ = 0; _ < v.length; _++)
  60972. v[_].__alive = !1;
  60973. d ? h.eachComponent(function(x, C) {
  60974. x !== "series" && O(C);
  60975. }) : h.eachSeries(O);
  60976. function O(x) {
  60977. var C = x.__requireNewView;
  60978. x.__requireNewView = !1;
  60979. var P = "_ec_" + x.id + "_" + x.type, $ = !C && g[P];
  60980. if (!$) {
  60981. var T = $l(x.type), E = d ? Ln.getClass(T.main, T.sub) : (
  60982. // FIXME:TS
  60983. // (ChartView as ChartViewConstructor).getClass('series', classType.sub)
  60984. // For backward compat, still support a chart type declared as only subType
  60985. // like "liquidfill", but recommend "series.liquidfill"
  60986. // But need a base class to make a type series.
  60987. _n.getClass(T.sub)
  60988. );
  60989. process.env.NODE_ENV !== "production" && at(E, T.sub + " does not exist."), $ = new E(), $.init(h, y), g[P] = $, v.push($), m.add($.group);
  60990. }
  60991. x.__viewId = $.__id = P, $.__alive = !0, $.__model = x, $.group.__ecComponentInfo = {
  60992. mainType: x.mainType,
  60993. index: x.componentIndex
  60994. }, !d && p.prepareView($, x, h, y);
  60995. }
  60996. for (var _ = 0; _ < v.length; ) {
  60997. var S = v[_];
  60998. S.__alive ? _++ : (!d && S.renderTask.dispose(), m.remove(S.group), S.dispose(h, y), v.splice(_, 1), g[S.__id] === S && delete g[S.__id], S.__id = S.group.__ecComponentInfo = null);
  60999. }
  61000. }, TS = function(f, d, h, p, v) {
  61001. var g = f._model;
  61002. if (g.setUpdatePayload(h), !p) {
  61003. F([].concat(f._componentsViews).concat(f._chartsViews), S);
  61004. return;
  61005. }
  61006. var m = {};
  61007. m[p + "Id"] = h[p + "Id"], m[p + "Index"] = h[p + "Index"], m[p + "Name"] = h[p + "Name"];
  61008. var y = {
  61009. mainType: p,
  61010. query: m
  61011. };
  61012. v && (y.subType = v);
  61013. var _ = h.excludeSeriesId, O;
  61014. _ != null && (O = Ze(), F(Cn(_), function(x) {
  61015. var C = Br(x, null);
  61016. C != null && O.set(C, !0);
  61017. })), g && g.eachComponent(y, function(x) {
  61018. var C = O && O.get(x.id) != null;
  61019. if (!C)
  61020. if (gG(h))
  61021. if (x instanceof Tn)
  61022. h.type === Ch && !h.notBlur && !x.get(["emphasis", "disabled"]) && gZe(x, h, f._api);
  61023. else {
  61024. var P = B5(x.mainType, x.componentIndex, h.name, f._api), $ = P.focusSelf, T = P.dispatchers;
  61025. h.type === Ch && $ && !h.notBlur && Ak(x.mainType, x.componentIndex, f._api), T && F(T, function(E) {
  61026. h.type === Ch ? Fu(E) : Wu(E);
  61027. });
  61028. }
  61029. else Mk(h) && x instanceof Tn && (bZe(x, h, f._api), pG(x), Mo(f));
  61030. }, f), g && g.eachComponent(y, function(x) {
  61031. var C = O && O.get(x.id) != null;
  61032. C || S(f[p === "series" ? "_chartsMap" : "_componentsMap"][x.__viewId]);
  61033. }, f);
  61034. function S(x) {
  61035. x && x.__alive && x[d] && x[d](x.__model, g, f._api, h);
  61036. }
  61037. }, Sc = {
  61038. prepareAndUpdate: function(f) {
  61039. nv(this), Sc.update.call(this, f, {
  61040. // Needs to mark option changed if newOption is given.
  61041. // It's from MagicType.
  61042. // TODO If use a separate flag optionChanged in payload?
  61043. optionChanged: f.newOption != null
  61044. });
  61045. },
  61046. update: function(f, d) {
  61047. var h = this._model, p = this._api, v = this._zr, g = this._coordSysMgr, m = this._scheduler;
  61048. if (h) {
  61049. h.setUpdatePayload(f), m.restoreData(h, f), m.performSeriesTasks(h), g.create(h, p), m.performDataProcessorTasks(h, f), CM(this, h), g.update(h, p), n(h), m.performVisualTasks(h, f), PM(this, h, p, f, d);
  61050. var y = h.get("backgroundColor") || "transparent", _ = h.get("darkMode");
  61051. v.setBackgroundColor(y), _ != null && _ !== "auto" && v.setDarkMode(_), Ts.trigger("afterupdate", h, p);
  61052. }
  61053. },
  61054. updateTransform: function(f) {
  61055. var d = this, h = this._model, p = this._api;
  61056. if (h) {
  61057. h.setUpdatePayload(f);
  61058. var v = [];
  61059. h.eachComponent(function(m, y) {
  61060. if (m !== "series") {
  61061. var _ = d.getViewOfComponentModel(y);
  61062. if (_ && _.__alive)
  61063. if (_.updateTransform) {
  61064. var O = _.updateTransform(y, h, p, f);
  61065. O && O.update && v.push(_);
  61066. } else
  61067. v.push(_);
  61068. }
  61069. });
  61070. var g = Ze();
  61071. h.eachSeries(function(m) {
  61072. var y = d._chartsMap[m.__viewId];
  61073. if (y.updateTransform) {
  61074. var _ = y.updateTransform(m, h, p, f);
  61075. _ && _.update && g.set(m.uid, 1);
  61076. } else
  61077. g.set(m.uid, 1);
  61078. }), n(h), this._scheduler.performVisualTasks(h, f, {
  61079. setDirty: !0,
  61080. dirtyMap: g
  61081. }), PS(this, h, p, f, {}, g), Ts.trigger("afterupdate", h, p);
  61082. }
  61083. },
  61084. updateView: function(f) {
  61085. var d = this._model;
  61086. d && (d.setUpdatePayload(f), _n.markUpdateMethod(f, "updateView"), n(d), this._scheduler.performVisualTasks(d, f, {
  61087. setDirty: !0
  61088. }), PM(this, d, this._api, f, {}), Ts.trigger("afterupdate", d, this._api));
  61089. },
  61090. updateVisual: function(f) {
  61091. var d = this, h = this._model;
  61092. h && (h.setUpdatePayload(f), h.eachSeries(function(p) {
  61093. p.getData().clearAllVisual();
  61094. }), _n.markUpdateMethod(f, "updateVisual"), n(h), this._scheduler.performVisualTasks(h, f, {
  61095. visualType: "visual",
  61096. setDirty: !0
  61097. }), h.eachComponent(function(p, v) {
  61098. if (p !== "series") {
  61099. var g = d.getViewOfComponentModel(v);
  61100. g && g.__alive && g.updateVisual(v, h, d._api, f);
  61101. }
  61102. }), h.eachSeries(function(p) {
  61103. var v = d._chartsMap[p.__viewId];
  61104. v.updateVisual(p, h, d._api, f);
  61105. }), Ts.trigger("afterupdate", h, this._api));
  61106. },
  61107. updateLayout: function(f) {
  61108. Sc.update.call(this, f);
  61109. }
  61110. }, wM = function(f, d, h, p) {
  61111. if (f._disposed) {
  61112. Ja(f.id);
  61113. return;
  61114. }
  61115. for (var v = f._model, g = f._coordSysMgr.getCoordinateSystems(), m, y = tb(v, h), _ = 0; _ < g.length; _++) {
  61116. var O = g[_];
  61117. if (O[d] && (m = O[d](v, y, p)) != null)
  61118. return m;
  61119. }
  61120. process.env.NODE_ENV !== "production" && nr("No coordinate system that supports " + d + " found by the given finder.");
  61121. }, CM = function(f, d) {
  61122. var h = f._chartsMap, p = f._scheduler;
  61123. d.eachSeries(function(v) {
  61124. p.updateStreamModes(v, h[v.__viewId]);
  61125. });
  61126. }, TM = function(f, d) {
  61127. var h = this, p = this.getModel(), v = f.type, g = f.escapeConnect, m = ZC[v], y = m.actionInfo, _ = (y.update || "update").split(":"), O = _.pop(), S = _[0] != null && $l(_[0]);
  61128. this[Ri] = !0;
  61129. var x = [f], C = !1;
  61130. f.batch && (C = !0, x = Ce(f.batch, function(N) {
  61131. return N = it(_e({}, N), f), N.batch = null, N;
  61132. }));
  61133. var P = [], $, T = Mk(f), E = gG(f);
  61134. if (E && cle(this._api), F(x, function(N) {
  61135. if ($ = m.action(N, h._model, h._api), $ = $ || _e({}, N), $.type = y.event || $.type, P.push($), E) {
  61136. var I = E5(f), B = I.queryOptionMap, Q = I.mainTypeSpecified, W = Q ? B.keys()[0] : "series";
  61137. TS(h, O, N, W), Mo(h);
  61138. } else T ? (TS(h, O, N, "series"), Mo(h)) : S && TS(h, O, N, S.main, S.sub);
  61139. }), O !== "none" && !E && !T && !S)
  61140. try {
  61141. this[Oa] ? (nv(this), Sc.update.call(this, f), this[Oa] = null) : Sc[O].call(this, f);
  61142. } catch (N) {
  61143. throw this[Ri] = !1, N;
  61144. }
  61145. if (C ? $ = {
  61146. type: y.event || v,
  61147. escapeConnect: g,
  61148. batch: P
  61149. } : $ = P[0], this[Ri] = !1, !d) {
  61150. var M = this._messageCenter;
  61151. if (M.trigger($.type, $), T) {
  61152. var R = {
  61153. type: "selectchanged",
  61154. escapeConnect: g,
  61155. selected: _Ze(p),
  61156. isFromClick: f.isFromClick || !1,
  61157. fromAction: f.type,
  61158. fromActionPayload: f
  61159. };
  61160. M.trigger(R.type, R);
  61161. }
  61162. }
  61163. }, N0 = function(f) {
  61164. for (var d = this._pendingActions; d.length; ) {
  61165. var h = d.shift();
  61166. TM.call(this, h, f);
  61167. }
  61168. }, B0 = function(f) {
  61169. !f && this.trigger("updated");
  61170. }, Ej = function(f, d) {
  61171. f.on("rendered", function(h) {
  61172. d.trigger("rendered", h), // Although zr is dirty if initial animation is not finished
  61173. // and this checking is called on frame, we also check
  61174. // animation finished for robustness.
  61175. f.animation.isFinished() && !d[Oa] && !d._scheduler.unfinished && !d._pendingActions.length && d.trigger("finished");
  61176. });
  61177. }, Mj = function(f, d) {
  61178. f.on("mouseover", function(h) {
  61179. var p = h.target, v = sh(p, bf);
  61180. v && (mZe(v, h, d._api), Mo(d));
  61181. }).on("mouseout", function(h) {
  61182. var p = h.target, v = sh(p, bf);
  61183. v && (yZe(v, h, d._api), Mo(d));
  61184. }).on("click", function(h) {
  61185. var p = h.target, v = sh(p, function(y) {
  61186. return ft(y).dataIndex != null;
  61187. }, !0);
  61188. if (v) {
  61189. var g = v.selected ? "unselect" : "select", m = ft(v);
  61190. d._api.dispatchAction({
  61191. type: g,
  61192. dataType: m.dataType,
  61193. dataIndexInside: m.dataIndex,
  61194. seriesIndex: m.seriesIndex,
  61195. isFromClick: !0
  61196. });
  61197. }
  61198. });
  61199. };
  61200. function n(f) {
  61201. f.clearColorPalette(), f.eachSeries(function(d) {
  61202. d.clearColorPalette();
  61203. });
  61204. }
  61205. function r(f) {
  61206. var d = [], h = [], p = !1;
  61207. if (f.eachComponent(function(y, _) {
  61208. var O = _.get("zlevel") || 0, S = _.get("z") || 0, x = _.getZLevelKey();
  61209. p = p || !!x, (y === "series" ? h : d).push({
  61210. zlevel: O,
  61211. z: S,
  61212. idx: _.componentIndex,
  61213. type: y,
  61214. key: x
  61215. });
  61216. }), p) {
  61217. var v = d.concat(h), g, m;
  61218. aw(v, function(y, _) {
  61219. return y.zlevel === _.zlevel ? y.z - _.z : y.zlevel - _.zlevel;
  61220. }), F(v, function(y) {
  61221. var _ = f.getComponent(y.type, y.idx), O = y.zlevel, S = y.key;
  61222. g != null && (O = Math.max(g, O)), S ? (O === g && S !== m && O++, m = S) : m && (O === g && O++, m = ""), g = O, _.setZLevel(O);
  61223. });
  61224. }
  61225. }
  61226. PM = function(f, d, h, p, v) {
  61227. r(d), Ij(f, d, h, p, v), F(f._chartsViews, function(g) {
  61228. g.__alive = !1;
  61229. }), PS(f, d, h, p, v), F(f._chartsViews, function(g) {
  61230. g.__alive || g.remove(d, h);
  61231. });
  61232. }, Ij = function(f, d, h, p, v, g) {
  61233. F(g || f._componentsViews, function(m) {
  61234. var y = m.__model;
  61235. u(y, m), m.render(y, d, h, p), s(y, m), c(y, m);
  61236. });
  61237. }, PS = function(f, d, h, p, v, g) {
  61238. var m = f._scheduler;
  61239. v = _e(v || {}, {
  61240. updatedSeries: d.getSeries()
  61241. }), Ts.trigger("series:beforeupdate", d, h, v);
  61242. var y = !1;
  61243. d.eachSeries(function(_) {
  61244. var O = f._chartsMap[_.__viewId];
  61245. O.__alive = !0;
  61246. var S = O.renderTask;
  61247. m.updatePayload(S, p), u(_, O), g && g.get(_.uid) && S.dirty(), S.perform(m.getPerformArgs(S)) && (y = !0), O.group.silent = !!_.get("silent"), o(_, O), pG(_);
  61248. }), m.unfinished = y || m.unfinished, Ts.trigger("series:layoutlabels", d, h, v), Ts.trigger("series:transition", d, h, v), d.eachSeries(function(_) {
  61249. var O = f._chartsMap[_.__viewId];
  61250. s(_, O), c(_, O);
  61251. }), a(f, d), Ts.trigger("series:afterupdate", d, h, v);
  61252. }, Mo = function(f) {
  61253. f[OM] = !0, f.getZr().wakeUp();
  61254. }, Rj = function(f) {
  61255. f[OM] && (f.getZr().storage.traverse(function(d) {
  61256. qv(d) || i(d);
  61257. }), f[OM] = !1);
  61258. };
  61259. function i(f) {
  61260. for (var d = [], h = f.currentStates, p = 0; p < h.length; p++) {
  61261. var v = h[p];
  61262. v === "emphasis" || v === "blur" || v === "select" || d.push(v);
  61263. }
  61264. f.selected && f.states.select && d.push("select"), f.hoverState === bP && f.states.emphasis ? d.push("emphasis") : f.hoverState === u1 && f.states.blur && d.push("blur"), f.useStates(d);
  61265. }
  61266. function a(f, d) {
  61267. var h = f._zr, p = h.storage, v = 0;
  61268. p.traverse(function(g) {
  61269. g.isGroup || v++;
  61270. }), v > d.get("hoverLayerThreshold") && !Gt.node && !Gt.worker && d.eachSeries(function(g) {
  61271. if (!g.preventUsingHoverLayer) {
  61272. var m = f._chartsMap[g.__viewId];
  61273. m.__alive && m.eachRendered(function(y) {
  61274. y.states.emphasis && (y.states.emphasis.hoverLayer = !0);
  61275. });
  61276. }
  61277. });
  61278. }
  61279. function o(f, d) {
  61280. var h = f.get("blendMode") || null;
  61281. d.eachRendered(function(p) {
  61282. p.isGroup || (p.style.blend = h);
  61283. });
  61284. }
  61285. function s(f, d) {
  61286. if (!f.preventAutoZ) {
  61287. var h = f.get("z") || 0, p = f.get("zlevel") || 0;
  61288. d.eachRendered(function(v) {
  61289. return l(v, h, p, -1 / 0), !0;
  61290. });
  61291. }
  61292. }
  61293. function l(f, d, h, p) {
  61294. var v = f.getTextContent(), g = f.getTextGuideLine(), m = f.isGroup;
  61295. if (m)
  61296. for (var y = f.childrenRef(), _ = 0; _ < y.length; _++)
  61297. p = Math.max(l(y[_], d, h, p), p);
  61298. else
  61299. f.z = d, f.zlevel = h, p = Math.max(f.z2, p);
  61300. if (v && (v.z = d, v.zlevel = h, isFinite(p) && (v.z2 = p + 2)), g) {
  61301. var O = f.textGuideLineConfig;
  61302. g.z = d, g.zlevel = h, isFinite(p) && (g.z2 = p + (O && O.showAbove ? 1 : -1));
  61303. }
  61304. return p;
  61305. }
  61306. function u(f, d) {
  61307. d.eachRendered(function(h) {
  61308. if (!qv(h)) {
  61309. var p = h.getTextContent(), v = h.getTextGuideLine();
  61310. h.stateTransition && (h.stateTransition = null), p && p.stateTransition && (p.stateTransition = null), v && v.stateTransition && (v.stateTransition = null), h.hasState() ? (h.prevStates = h.currentStates, h.clearStates()) : h.prevStates && (h.prevStates = null);
  61311. }
  61312. });
  61313. }
  61314. function c(f, d) {
  61315. var h = f.getModel("stateAnimation"), p = f.isAnimationEnabled(), v = h.get("duration"), g = v > 0 ? {
  61316. duration: v,
  61317. delay: h.get("delay"),
  61318. easing: h.get("easing")
  61319. // additive: stateAnimationModel.get('additive')
  61320. } : null;
  61321. d.eachRendered(function(m) {
  61322. if (m.states && m.states.emphasis) {
  61323. if (qv(m))
  61324. return;
  61325. if (m instanceof Dt && CZe(m), m.__dirty) {
  61326. var y = m.prevStates;
  61327. y && m.useStates(y);
  61328. }
  61329. if (p) {
  61330. m.stateTransition = g;
  61331. var _ = m.getTextContent(), O = m.getTextGuideLine();
  61332. _ && (_.stateTransition = g), O && (O.stateTransition = g);
  61333. }
  61334. m.__dirty && i(m);
  61335. }
  61336. });
  61337. }
  61338. Dj = function(f) {
  61339. return new /** @class */
  61340. (function(d) {
  61341. le(h, d);
  61342. function h() {
  61343. return d !== null && d.apply(this, arguments) || this;
  61344. }
  61345. return h.prototype.getCoordinateSystems = function() {
  61346. return f._coordSysMgr.getCoordinateSystems();
  61347. }, h.prototype.getComponentByElement = function(p) {
  61348. for (; p; ) {
  61349. var v = p.__ecComponentInfo;
  61350. if (v != null)
  61351. return f._model.getComponent(v.mainType, v.index);
  61352. p = p.parent;
  61353. }
  61354. }, h.prototype.enterEmphasis = function(p, v) {
  61355. Fu(p, v), Mo(f);
  61356. }, h.prototype.leaveEmphasis = function(p, v) {
  61357. Wu(p, v), Mo(f);
  61358. }, h.prototype.enterBlur = function(p) {
  61359. ole(p), Mo(f);
  61360. }, h.prototype.leaveBlur = function(p) {
  61361. N5(p), Mo(f);
  61362. }, h.prototype.enterSelect = function(p) {
  61363. sle(p), Mo(f);
  61364. }, h.prototype.leaveSelect = function(p) {
  61365. lle(p), Mo(f);
  61366. }, h.prototype.getModel = function() {
  61367. return f.getModel();
  61368. }, h.prototype.getViewOfComponentModel = function(p) {
  61369. return f.getViewOfComponentModel(p);
  61370. }, h.prototype.getViewOfSeriesModel = function(p) {
  61371. return f.getViewOfSeriesModel(p);
  61372. }, h;
  61373. }(aue))(f);
  61374. }, ece = function(f) {
  61375. function d(h, p) {
  61376. for (var v = 0; v < h.length; v++) {
  61377. var g = h[v];
  61378. g[SM] = p;
  61379. }
  61380. }
  61381. F(sb, function(h, p) {
  61382. f._messageCenter.on(p, function(v) {
  61383. if (XC[f.group] && f[SM] !== Aj) {
  61384. if (v && v.escapeConnect)
  61385. return;
  61386. var g = f.makeActionFromEvent(v), m = [];
  61387. F(Ph, function(y) {
  61388. y !== f && y.group === f.group && m.push(y);
  61389. }), d(m, Aj), F(m, function(y) {
  61390. y[SM] !== tqe && y.dispatchAction(g);
  61391. }), d(m, nqe);
  61392. }
  61393. });
  61394. });
  61395. };
  61396. }(), e;
  61397. }(fs)
  61398. ), p3 = jC.prototype;
  61399. p3.on = Xue("on");
  61400. p3.off = Xue("off");
  61401. p3.one = function(t, e, n) {
  61402. var r = this;
  61403. ss("ECharts#one is deprecated.");
  61404. function i() {
  61405. for (var a = [], o = 0; o < arguments.length; o++)
  61406. a[o] = arguments[o];
  61407. e && e.apply && e.apply(this, a), r.off(t, i);
  61408. }
  61409. this.on.call(this, t, i, n);
  61410. };
  61411. var rqe = ["click", "dblclick", "mouseover", "mouseout", "mousemove", "mousedown", "mouseup", "globalout", "contextmenu"];
  61412. function Ja(t) {
  61413. process.env.NODE_ENV !== "production" && nr("Instance " + t + " has been disposed");
  61414. }
  61415. var ZC = {}, sb = {}, Uk = [], Xk = [], UC = [], tce = {}, Yk = {}, Ph = {}, XC = {}, iqe = +/* @__PURE__ */ new Date() - 0, aqe = +/* @__PURE__ */ new Date() - 0, v3 = "_echarts_instance_";
  61416. function nce(t, e, n) {
  61417. var r = !(n && n.ssr);
  61418. if (r) {
  61419. if (process.env.NODE_ENV !== "production" && !t)
  61420. throw new Error("Initialize failed: invalid dom.");
  61421. var i = g3(t);
  61422. if (i)
  61423. return process.env.NODE_ENV !== "production" && nr("There is a chart instance already initialized on the dom."), i;
  61424. process.env.NODE_ENV !== "production" && gf(t) && t.nodeName.toUpperCase() !== "CANVAS" && (!t.clientWidth && (!n || n.width == null) || !t.clientHeight && (!n || n.height == null)) && nr("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");
  61425. }
  61426. var a = new jC(t, e, n);
  61427. return a.id = "ec_" + iqe++, Ph[a.id] = a, r && zse(t, v3, a.id), ece(a), Ts.trigger("afterinit", a), a;
  61428. }
  61429. function oqe(t) {
  61430. if (Se(t)) {
  61431. var e = t;
  61432. t = null, F(e, function(n) {
  61433. n.group != null && (t = n.group);
  61434. }), t = t || "g_" + aqe++, F(e, function(n) {
  61435. n.group = t;
  61436. });
  61437. }
  61438. return XC[t] = !0, t;
  61439. }
  61440. function rce(t) {
  61441. XC[t] = !1;
  61442. }
  61443. var sqe = rce;
  61444. function lqe(t) {
  61445. Ve(t) ? t = Ph[t] : t instanceof jC || (t = g3(t)), t instanceof jC && !t.isDisposed() && t.dispose();
  61446. }
  61447. function g3(t) {
  61448. return Ph[hje(t, v3)];
  61449. }
  61450. function uqe(t) {
  61451. return Ph[t];
  61452. }
  61453. function m3(t, e) {
  61454. tce[t] = e;
  61455. }
  61456. function y3(t) {
  61457. St(Xk, t) < 0 && Xk.push(t);
  61458. }
  61459. function b3(t, e) {
  61460. _3(Uk, t, e, UYe);
  61461. }
  61462. function ice(t) {
  61463. NP("afterinit", t);
  61464. }
  61465. function ace(t) {
  61466. NP("afterupdate", t);
  61467. }
  61468. function NP(t, e) {
  61469. Ts.on(t, e);
  61470. }
  61471. function Js(t, e, n) {
  61472. qe(e) && (n = e, e = "");
  61473. var r = nt(t) ? t.type : [t, t = {
  61474. event: e
  61475. }][0];
  61476. t.event = (t.event || r).toLowerCase(), e = t.event, !sb[e] && (at($j.test(r) && $j.test(e)), ZC[r] || (ZC[r] = {
  61477. action: n,
  61478. actionInfo: t
  61479. }), sb[e] = r);
  61480. }
  61481. function oce(t, e) {
  61482. gp.register(t, e);
  61483. }
  61484. function cqe(t) {
  61485. var e = gp.get(t);
  61486. if (e)
  61487. return e.getDimensionsInfo ? e.getDimensionsInfo() : e.dimensions.slice();
  61488. }
  61489. function sce(t, e) {
  61490. _3(UC, t, e, Gue, "layout");
  61491. }
  61492. function zf(t, e) {
  61493. _3(UC, t, e, jue, "visual");
  61494. }
  61495. var kj = [];
  61496. function _3(t, e, n, r, i) {
  61497. if ((qe(e) || nt(e)) && (n = e, e = r), process.env.NODE_ENV !== "production") {
  61498. if (isNaN(e) || e == null)
  61499. throw new Error("Illegal priority");
  61500. F(t, function(o) {
  61501. at(o.__raw !== n);
  61502. });
  61503. }
  61504. if (!(St(kj, n) >= 0)) {
  61505. kj.push(n);
  61506. var a = Iue.wrapStageHandler(n, i);
  61507. a.__prio = e, a.__raw = n, t.push(a);
  61508. }
  61509. }
  61510. function O3(t, e) {
  61511. Yk[t] = e;
  61512. }
  61513. function fqe(t) {
  61514. process.env.NODE_ENV !== "production" && ss("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."), Goe({
  61515. createCanvas: t
  61516. });
  61517. }
  61518. function lce(t, e, n) {
  61519. var r = Hue("registerMap");
  61520. r && r(t, e, n);
  61521. }
  61522. function dqe(t) {
  61523. var e = Hue("getMap");
  61524. return e && e(t);
  61525. }
  61526. var uce = CXe;
  61527. zf(h3, YXe);
  61528. zf(LP, qXe);
  61529. zf(LP, KXe);
  61530. zf(h3, fYe);
  61531. zf(LP, dYe);
  61532. zf(Zue, VYe);
  61533. y3(sue);
  61534. b3(jYe, aXe);
  61535. O3("default", JXe);
  61536. Js({
  61537. type: Ch,
  61538. event: Ch,
  61539. update: Ch
  61540. }, fr);
  61541. Js({
  61542. type: cw,
  61543. event: cw,
  61544. update: cw
  61545. }, fr);
  61546. Js({
  61547. type: nb,
  61548. event: nb,
  61549. update: nb
  61550. }, fr);
  61551. Js({
  61552. type: fw,
  61553. event: fw,
  61554. update: fw
  61555. }, fr);
  61556. Js({
  61557. type: rb,
  61558. event: rb,
  61559. update: rb
  61560. }, fr);
  61561. m3("light", uYe);
  61562. m3("dark", Lue);
  61563. var hqe = {}, Lj = [], pqe = {
  61564. registerPreprocessor: y3,
  61565. registerProcessor: b3,
  61566. registerPostInit: ice,
  61567. registerPostUpdate: ace,
  61568. registerUpdateLifecycle: NP,
  61569. registerAction: Js,
  61570. registerCoordinateSystem: oce,
  61571. registerLayout: sce,
  61572. registerVisual: zf,
  61573. registerTransform: uce,
  61574. registerLoading: O3,
  61575. registerMap: lce,
  61576. registerImpl: FYe,
  61577. PRIORITY: Uue,
  61578. ComponentModel: At,
  61579. ComponentView: Ln,
  61580. SeriesModel: Tn,
  61581. ChartView: _n,
  61582. // TODO Use ComponentModel and SeriesModel instead of Constructor
  61583. registerComponentModel: function(t) {
  61584. At.registerClass(t);
  61585. },
  61586. registerComponentView: function(t) {
  61587. Ln.registerClass(t);
  61588. },
  61589. registerSeriesModel: function(t) {
  61590. Tn.registerClass(t);
  61591. },
  61592. registerChartView: function(t) {
  61593. _n.registerClass(t);
  61594. },
  61595. registerSubTypeDefaulter: function(t, e) {
  61596. At.registerSubTypeDefaulter(t, e);
  61597. },
  61598. registerPainter: function(t, e) {
  61599. Pse(t, e);
  61600. }
  61601. };
  61602. function Mt(t) {
  61603. if (Se(t)) {
  61604. F(t, function(e) {
  61605. Mt(e);
  61606. });
  61607. return;
  61608. }
  61609. St(Lj, t) >= 0 || (Lj.push(t), qe(t) && (t = {
  61610. install: t
  61611. }), t.install(pqe));
  61612. }
  61613. function z0(t) {
  61614. return t == null ? 0 : t.length || 1;
  61615. }
  61616. function Nj(t) {
  61617. return t;
  61618. }
  61619. var Qu = (
  61620. /** @class */
  61621. function() {
  61622. function t(e, n, r, i, a, o) {
  61623. this._old = e, this._new = n, this._oldKeyGetter = r || Nj, this._newKeyGetter = i || Nj, this.context = a, this._diffModeMultiple = o === "multiple";
  61624. }
  61625. return t.prototype.add = function(e) {
  61626. return this._add = e, this;
  61627. }, t.prototype.update = function(e) {
  61628. return this._update = e, this;
  61629. }, t.prototype.updateManyToOne = function(e) {
  61630. return this._updateManyToOne = e, this;
  61631. }, t.prototype.updateOneToMany = function(e) {
  61632. return this._updateOneToMany = e, this;
  61633. }, t.prototype.updateManyToMany = function(e) {
  61634. return this._updateManyToMany = e, this;
  61635. }, t.prototype.remove = function(e) {
  61636. return this._remove = e, this;
  61637. }, t.prototype.execute = function() {
  61638. this[this._diffModeMultiple ? "_executeMultiple" : "_executeOneToOne"]();
  61639. }, t.prototype._executeOneToOne = function() {
  61640. var e = this._old, n = this._new, r = {}, i = new Array(e.length), a = new Array(n.length);
  61641. this._initIndexMap(e, null, i, "_oldKeyGetter"), this._initIndexMap(n, r, a, "_newKeyGetter");
  61642. for (var o = 0; o < e.length; o++) {
  61643. var s = i[o], l = r[s], u = z0(l);
  61644. if (u > 1) {
  61645. var c = l.shift();
  61646. l.length === 1 && (r[s] = l[0]), this._update && this._update(c, o);
  61647. } else u === 1 ? (r[s] = null, this._update && this._update(l, o)) : this._remove && this._remove(o);
  61648. }
  61649. this._performRestAdd(a, r);
  61650. }, t.prototype._executeMultiple = function() {
  61651. var e = this._old, n = this._new, r = {}, i = {}, a = [], o = [];
  61652. this._initIndexMap(e, r, a, "_oldKeyGetter"), this._initIndexMap(n, i, o, "_newKeyGetter");
  61653. for (var s = 0; s < a.length; s++) {
  61654. var l = a[s], u = r[l], c = i[l], f = z0(u), d = z0(c);
  61655. if (f > 1 && d === 1)
  61656. this._updateManyToOne && this._updateManyToOne(c, u), i[l] = null;
  61657. else if (f === 1 && d > 1)
  61658. this._updateOneToMany && this._updateOneToMany(c, u), i[l] = null;
  61659. else if (f === 1 && d === 1)
  61660. this._update && this._update(c, u), i[l] = null;
  61661. else if (f > 1 && d > 1)
  61662. this._updateManyToMany && this._updateManyToMany(c, u), i[l] = null;
  61663. else if (f > 1)
  61664. for (var h = 0; h < f; h++)
  61665. this._remove && this._remove(u[h]);
  61666. else
  61667. this._remove && this._remove(u);
  61668. }
  61669. this._performRestAdd(o, i);
  61670. }, t.prototype._performRestAdd = function(e, n) {
  61671. for (var r = 0; r < e.length; r++) {
  61672. var i = e[r], a = n[i], o = z0(a);
  61673. if (o > 1)
  61674. for (var s = 0; s < o; s++)
  61675. this._add && this._add(a[s]);
  61676. else o === 1 && this._add && this._add(a);
  61677. n[i] = null;
  61678. }
  61679. }, t.prototype._initIndexMap = function(e, n, r, i) {
  61680. for (var a = this._diffModeMultiple, o = 0; o < e.length; o++) {
  61681. var s = "_ec_" + this[i](e[o], o);
  61682. if (a || (r[o] = s), !!n) {
  61683. var l = n[s], u = z0(l);
  61684. u === 0 ? (n[s] = o, a && r.push(s)) : u === 1 ? n[s] = [l, o] : l.push(o);
  61685. }
  61686. }
  61687. }, t;
  61688. }()
  61689. ), vqe = (
  61690. /** @class */
  61691. function() {
  61692. function t(e, n) {
  61693. this._encode = e, this._schema = n;
  61694. }
  61695. return t.prototype.get = function() {
  61696. return {
  61697. // Do not generate full dimension name until fist used.
  61698. fullDimensions: this._getFullDimensionNames(),
  61699. encode: this._encode
  61700. };
  61701. }, t.prototype._getFullDimensionNames = function() {
  61702. return this._cachedDimNames || (this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : []), this._cachedDimNames;
  61703. }, t;
  61704. }()
  61705. );
  61706. function gqe(t, e) {
  61707. var n = {}, r = n.encode = {}, i = Ze(), a = [], o = [], s = {};
  61708. F(t.dimensions, function(d) {
  61709. var h = t.getDimensionInfo(d), p = h.coordDim;
  61710. if (p) {
  61711. process.env.NODE_ENV !== "production" && at(Nk.get(p) == null);
  61712. var v = h.coordDimIndex;
  61713. $M(r, p)[v] = d, h.isExtraCoord || (i.set(p, 1), mqe(h.type) && (a[0] = d), $M(s, p)[v] = t.getDimensionIndex(h.name)), h.defaultTooltip && o.push(d);
  61714. }
  61715. Nk.each(function(g, m) {
  61716. var y = $M(r, m), _ = h.otherDims[m];
  61717. _ != null && _ !== !1 && (y[_] = h.name);
  61718. });
  61719. });
  61720. var l = [], u = {};
  61721. i.each(function(d, h) {
  61722. var p = r[h];
  61723. u[h] = p[0], l = l.concat(p);
  61724. }), n.dataDimsOnCoord = l, n.dataDimIndicesOnCoord = Ce(l, function(d) {
  61725. return t.getDimensionInfo(d).storeDimIndex;
  61726. }), n.encodeFirstDimNotExtra = u;
  61727. var c = r.label;
  61728. c && c.length && (a = c.slice());
  61729. var f = r.tooltip;
  61730. return f && f.length ? o = f.slice() : o.length || (o = a.slice()), r.defaultedLabel = a, r.defaultedTooltip = o, n.userOutput = new vqe(s, e), n;
  61731. }
  61732. function $M(t, e) {
  61733. return t.hasOwnProperty(e) || (t[e] = []), t[e];
  61734. }
  61735. function YC(t) {
  61736. return t === "category" ? "ordinal" : t === "time" ? "time" : "float";
  61737. }
  61738. function mqe(t) {
  61739. return !(t === "ordinal" || t === "time");
  61740. }
  61741. var gw = (
  61742. /** @class */
  61743. /* @__PURE__ */ function() {
  61744. function t(e) {
  61745. this.otherDims = {}, e != null && _e(this, e);
  61746. }
  61747. return t;
  61748. }()
  61749. ), yqe = Ut(), bqe = {
  61750. float: "f",
  61751. int: "i",
  61752. ordinal: "o",
  61753. number: "n",
  61754. time: "t"
  61755. }, cce = (
  61756. /** @class */
  61757. function() {
  61758. function t(e) {
  61759. this.dimensions = e.dimensions, this._dimOmitted = e.dimensionOmitted, this.source = e.source, this._fullDimCount = e.fullDimensionCount, this._updateDimOmitted(e.dimensionOmitted);
  61760. }
  61761. return t.prototype.isDimensionOmitted = function() {
  61762. return this._dimOmitted;
  61763. }, t.prototype._updateDimOmitted = function(e) {
  61764. this._dimOmitted = e, e && (this._dimNameMap || (this._dimNameMap = hce(this.source)));
  61765. }, t.prototype.getSourceDimensionIndex = function(e) {
  61766. return dt(this._dimNameMap.get(e), -1);
  61767. }, t.prototype.getSourceDimension = function(e) {
  61768. var n = this.source.dimensionsDefine;
  61769. if (n)
  61770. return n[e];
  61771. }, t.prototype.makeStoreSchema = function() {
  61772. for (var e = this._fullDimCount, n = uue(this.source), r = !pce(e), i = "", a = [], o = 0, s = 0; o < e; o++) {
  61773. var l = void 0, u = void 0, c = void 0, f = this.dimensions[s];
  61774. if (f && f.storeDimIndex === o)
  61775. l = n ? f.name : null, u = f.type, c = f.ordinalMeta, s++;
  61776. else {
  61777. var d = this.getSourceDimension(o);
  61778. d && (l = n ? d.name : null, u = d.type);
  61779. }
  61780. a.push({
  61781. property: l,
  61782. type: u,
  61783. ordinalMeta: c
  61784. }), n && l != null && (!f || !f.isCalculationCoord) && (i += r ? l.replace(/\`/g, "`1").replace(/\$/g, "`2") : l), i += "$", i += bqe[u] || "f", c && (i += c.uid), i += "$";
  61785. }
  61786. var h = this.source, p = [h.seriesLayoutBy, h.startIndex, i].join("$$");
  61787. return {
  61788. dimensions: a,
  61789. hash: p
  61790. };
  61791. }, t.prototype.makeOutputDimensionNames = function() {
  61792. for (var e = [], n = 0, r = 0; n < this._fullDimCount; n++) {
  61793. var i = void 0, a = this.dimensions[r];
  61794. if (a && a.storeDimIndex === n)
  61795. a.isCalculationCoord || (i = a.name), r++;
  61796. else {
  61797. var o = this.getSourceDimension(n);
  61798. o && (i = o.name);
  61799. }
  61800. e.push(i);
  61801. }
  61802. return e;
  61803. }, t.prototype.appendCalculationDimension = function(e) {
  61804. this.dimensions.push(e), e.isCalculationCoord = !0, this._fullDimCount++, this._updateDimOmitted(!0);
  61805. }, t;
  61806. }()
  61807. );
  61808. function fce(t) {
  61809. return t instanceof cce;
  61810. }
  61811. function dce(t) {
  61812. for (var e = Ze(), n = 0; n < (t || []).length; n++) {
  61813. var r = t[n], i = nt(r) ? r.name : r;
  61814. i != null && e.get(i) == null && e.set(i, n);
  61815. }
  61816. return e;
  61817. }
  61818. function hce(t) {
  61819. var e = yqe(t);
  61820. return e.dimNameMap || (e.dimNameMap = dce(t.dimensionsDefine));
  61821. }
  61822. function pce(t) {
  61823. return t > 30;
  61824. }
  61825. var V0 = nt, xc = Ce, _qe = typeof Int32Array > "u" ? Array : Int32Array, Oqe = "e\0\0", Bj = -1, Sqe = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"], xqe = ["_approximateExtent"], zj, $S, F0, rv, AM, AS, EM, wqe = (
  61826. /** @class */
  61827. function() {
  61828. function t(e, n) {
  61829. this.type = "list", this._dimOmitted = !1, this._nameList = [], this._idList = [], this._visual = {}, this._layout = {}, this._itemVisuals = [], this._itemLayouts = [], this._graphicEls = [], this._approximateExtent = {}, this._calculationInfo = {}, this.hasItemOption = !1, this.TRANSFERABLE_METHODS = ["cloneShallow", "downSample", "lttbDownSample", "map"], this.CHANGABLE_METHODS = ["filterSelf", "selectRange"], this.DOWNSAMPLE_METHODS = ["downSample", "lttbDownSample"];
  61830. var r, i = !1;
  61831. fce(e) ? (r = e.dimensions, this._dimOmitted = e.isDimensionOmitted(), this._schema = e) : (i = !0, r = e), r = r || ["x", "y"];
  61832. for (var a = {}, o = [], s = {}, l = !1, u = {}, c = 0; c < r.length; c++) {
  61833. var f = r[c], d = Ve(f) ? new gw({
  61834. name: f
  61835. }) : f instanceof gw ? f : new gw(f), h = d.name;
  61836. d.type = d.type || "float", d.coordDim || (d.coordDim = h, d.coordDimIndex = 0);
  61837. var p = d.otherDims = d.otherDims || {};
  61838. o.push(h), a[h] = d, u[h] != null && (l = !0), d.createInvertedIndices && (s[h] = []), p.itemName === 0 && (this._nameDimIdx = c), p.itemId === 0 && (this._idDimIdx = c), process.env.NODE_ENV !== "production" && at(i || d.storeDimIndex >= 0), i && (d.storeDimIndex = c);
  61839. }
  61840. if (this.dimensions = o, this._dimInfos = a, this._initGetDimensionInfo(l), this.hostModel = n, this._invertedIndicesMap = s, this._dimOmitted) {
  61841. var v = this._dimIdxToName = Ze();
  61842. F(o, function(g) {
  61843. v.set(a[g].storeDimIndex, g);
  61844. });
  61845. }
  61846. }
  61847. return t.prototype.getDimension = function(e) {
  61848. var n = this._recognizeDimIndex(e);
  61849. if (n == null)
  61850. return e;
  61851. if (n = e, !this._dimOmitted)
  61852. return this.dimensions[n];
  61853. var r = this._dimIdxToName.get(n);
  61854. if (r != null)
  61855. return r;
  61856. var i = this._schema.getSourceDimension(n);
  61857. if (i)
  61858. return i.name;
  61859. }, t.prototype.getDimensionIndex = function(e) {
  61860. var n = this._recognizeDimIndex(e);
  61861. if (n != null)
  61862. return n;
  61863. if (e == null)
  61864. return -1;
  61865. var r = this._getDimInfo(e);
  61866. return r ? r.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(e) : -1;
  61867. }, t.prototype._recognizeDimIndex = function(e) {
  61868. if (Kt(e) || e != null && !isNaN(e) && !this._getDimInfo(e) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(e) < 0))
  61869. return +e;
  61870. }, t.prototype._getStoreDimIndex = function(e) {
  61871. var n = this.getDimensionIndex(e);
  61872. if (process.env.NODE_ENV !== "production" && n == null)
  61873. throw new Error("Unknown dimension " + e);
  61874. return n;
  61875. }, t.prototype.getDimensionInfo = function(e) {
  61876. return this._getDimInfo(this.getDimension(e));
  61877. }, t.prototype._initGetDimensionInfo = function(e) {
  61878. var n = this._dimInfos;
  61879. this._getDimInfo = e ? function(r) {
  61880. return n.hasOwnProperty(r) ? n[r] : void 0;
  61881. } : function(r) {
  61882. return n[r];
  61883. };
  61884. }, t.prototype.getDimensionsOnCoord = function() {
  61885. return this._dimSummary.dataDimsOnCoord.slice();
  61886. }, t.prototype.mapDimension = function(e, n) {
  61887. var r = this._dimSummary;
  61888. if (n == null)
  61889. return r.encodeFirstDimNotExtra[e];
  61890. var i = r.encode[e];
  61891. return i ? i[n] : null;
  61892. }, t.prototype.mapDimensionsAll = function(e) {
  61893. var n = this._dimSummary, r = n.encode[e];
  61894. return (r || []).slice();
  61895. }, t.prototype.getStore = function() {
  61896. return this._store;
  61897. }, t.prototype.initData = function(e, n, r) {
  61898. var i = this, a;
  61899. if (e instanceof Fk && (a = e), !a) {
  61900. var o = this.dimensions, s = o3(e) || Pi(e) ? new cue(e, o.length) : e;
  61901. a = new Fk();
  61902. var l = xc(o, function(u) {
  61903. return {
  61904. type: i._dimInfos[u].type,
  61905. property: u
  61906. };
  61907. });
  61908. a.initData(s, l, r);
  61909. }
  61910. this._store = a, this._nameList = (n || []).slice(), this._idList = [], this._nameRepeatCount = {}, this._doInit(0, a.count()), this._dimSummary = gqe(this, this._schema), this.userOutput = this._dimSummary.userOutput;
  61911. }, t.prototype.appendData = function(e) {
  61912. var n = this._store.appendData(e);
  61913. this._doInit(n[0], n[1]);
  61914. }, t.prototype.appendValues = function(e, n) {
  61915. var r = this._store.appendValues(e, n.length), i = r.start, a = r.end, o = this._shouldMakeIdFromName();
  61916. if (this._updateOrdinalMeta(), n)
  61917. for (var s = i; s < a; s++) {
  61918. var l = s - i;
  61919. this._nameList[s] = n[l], o && EM(this, s);
  61920. }
  61921. }, t.prototype._updateOrdinalMeta = function() {
  61922. for (var e = this._store, n = this.dimensions, r = 0; r < n.length; r++) {
  61923. var i = this._dimInfos[n[r]];
  61924. i.ordinalMeta && e.collectOrdinalMeta(i.storeDimIndex, i.ordinalMeta);
  61925. }
  61926. }, t.prototype._shouldMakeIdFromName = function() {
  61927. var e = this._store.getProvider();
  61928. return this._idDimIdx == null && e.getSource().sourceFormat !== Mu && !e.fillStorage;
  61929. }, t.prototype._doInit = function(e, n) {
  61930. if (!(e >= n)) {
  61931. var r = this._store, i = r.getProvider();
  61932. this._updateOrdinalMeta();
  61933. var a = this._nameList, o = this._idList, s = i.getSource().sourceFormat, l = s === hs;
  61934. if (l && !i.pure)
  61935. for (var u = [], c = e; c < n; c++) {
  61936. var f = i.getItem(c, u);
  61937. if (!this.hasItemOption && eje(f) && (this.hasItemOption = !0), f) {
  61938. var d = f.name;
  61939. a[c] == null && d != null && (a[c] = Br(d, null));
  61940. var h = f.id;
  61941. o[c] == null && h != null && (o[c] = Br(h, null));
  61942. }
  61943. }
  61944. if (this._shouldMakeIdFromName())
  61945. for (var c = e; c < n; c++)
  61946. EM(this, c);
  61947. zj(this);
  61948. }
  61949. }, t.prototype.getApproximateExtent = function(e) {
  61950. return this._approximateExtent[e] || this._store.getDataExtent(this._getStoreDimIndex(e));
  61951. }, t.prototype.setApproximateExtent = function(e, n) {
  61952. n = this.getDimension(n), this._approximateExtent[n] = e.slice();
  61953. }, t.prototype.getCalculationInfo = function(e) {
  61954. return this._calculationInfo[e];
  61955. }, t.prototype.setCalculationInfo = function(e, n) {
  61956. V0(e) ? _e(this._calculationInfo, e) : this._calculationInfo[e] = n;
  61957. }, t.prototype.getName = function(e) {
  61958. var n = this.getRawIndex(e), r = this._nameList[n];
  61959. return r == null && this._nameDimIdx != null && (r = F0(this, this._nameDimIdx, n)), r == null && (r = ""), r;
  61960. }, t.prototype._getCategory = function(e, n) {
  61961. var r = this._store.get(e, n), i = this._store.getOrdinalMeta(e);
  61962. return i ? i.categories[r] : r;
  61963. }, t.prototype.getId = function(e) {
  61964. return $S(this, this.getRawIndex(e));
  61965. }, t.prototype.count = function() {
  61966. return this._store.count();
  61967. }, t.prototype.get = function(e, n) {
  61968. var r = this._store, i = this._dimInfos[e];
  61969. if (i)
  61970. return r.get(i.storeDimIndex, n);
  61971. }, t.prototype.getByRawIndex = function(e, n) {
  61972. var r = this._store, i = this._dimInfos[e];
  61973. if (i)
  61974. return r.getByRawIndex(i.storeDimIndex, n);
  61975. }, t.prototype.getIndices = function() {
  61976. return this._store.getIndices();
  61977. }, t.prototype.getDataExtent = function(e) {
  61978. return this._store.getDataExtent(this._getStoreDimIndex(e));
  61979. }, t.prototype.getSum = function(e) {
  61980. return this._store.getSum(this._getStoreDimIndex(e));
  61981. }, t.prototype.getMedian = function(e) {
  61982. return this._store.getMedian(this._getStoreDimIndex(e));
  61983. }, t.prototype.getValues = function(e, n) {
  61984. var r = this, i = this._store;
  61985. return Se(e) ? i.getValues(xc(e, function(a) {
  61986. return r._getStoreDimIndex(a);
  61987. }), n) : i.getValues(e);
  61988. }, t.prototype.hasValue = function(e) {
  61989. for (var n = this._dimSummary.dataDimIndicesOnCoord, r = 0, i = n.length; r < i; r++)
  61990. if (isNaN(this._store.get(n[r], e)))
  61991. return !1;
  61992. return !0;
  61993. }, t.prototype.indexOfName = function(e) {
  61994. for (var n = 0, r = this._store.count(); n < r; n++)
  61995. if (this.getName(n) === e)
  61996. return n;
  61997. return -1;
  61998. }, t.prototype.getRawIndex = function(e) {
  61999. return this._store.getRawIndex(e);
  62000. }, t.prototype.indexOfRawIndex = function(e) {
  62001. return this._store.indexOfRawIndex(e);
  62002. }, t.prototype.rawIndexOf = function(e, n) {
  62003. var r = e && this._invertedIndicesMap[e];
  62004. if (process.env.NODE_ENV !== "production" && !r)
  62005. throw new Error("Do not supported yet");
  62006. var i = r[n];
  62007. return i == null || isNaN(i) ? Bj : i;
  62008. }, t.prototype.indicesOfNearest = function(e, n, r) {
  62009. return this._store.indicesOfNearest(this._getStoreDimIndex(e), n, r);
  62010. }, t.prototype.each = function(e, n, r) {
  62011. qe(e) && (r = n, n = e, e = []);
  62012. var i = r || this, a = xc(rv(e), this._getStoreDimIndex, this);
  62013. this._store.each(a, i ? We(n, i) : n);
  62014. }, t.prototype.filterSelf = function(e, n, r) {
  62015. qe(e) && (r = n, n = e, e = []);
  62016. var i = r || this, a = xc(rv(e), this._getStoreDimIndex, this);
  62017. return this._store = this._store.filter(a, i ? We(n, i) : n), this;
  62018. }, t.prototype.selectRange = function(e) {
  62019. var n = this, r = {}, i = kt(e);
  62020. return F(i, function(a) {
  62021. var o = n._getStoreDimIndex(a);
  62022. r[o] = e[a];
  62023. }), this._store = this._store.selectRange(r), this;
  62024. }, t.prototype.mapArray = function(e, n, r) {
  62025. qe(e) && (r = n, n = e, e = []), r = r || this;
  62026. var i = [];
  62027. return this.each(e, function() {
  62028. i.push(n && n.apply(this, arguments));
  62029. }, r), i;
  62030. }, t.prototype.map = function(e, n, r, i) {
  62031. var a = r || i || this, o = xc(rv(e), this._getStoreDimIndex, this), s = AS(this);
  62032. return s._store = this._store.map(o, a ? We(n, a) : n), s;
  62033. }, t.prototype.modify = function(e, n, r, i) {
  62034. var a = this, o = r || i || this;
  62035. process.env.NODE_ENV !== "production" && F(rv(e), function(l) {
  62036. var u = a.getDimensionInfo(l);
  62037. u.isCalculationCoord || console.error("Danger: only stack dimension can be modified");
  62038. });
  62039. var s = xc(rv(e), this._getStoreDimIndex, this);
  62040. this._store.modify(s, o ? We(n, o) : n);
  62041. }, t.prototype.downSample = function(e, n, r, i) {
  62042. var a = AS(this);
  62043. return a._store = this._store.downSample(this._getStoreDimIndex(e), n, r, i), a;
  62044. }, t.prototype.lttbDownSample = function(e, n) {
  62045. var r = AS(this);
  62046. return r._store = this._store.lttbDownSample(this._getStoreDimIndex(e), n), r;
  62047. }, t.prototype.getRawDataItem = function(e) {
  62048. return this._store.getRawDataItem(e);
  62049. }, t.prototype.getItemModel = function(e) {
  62050. var n = this.hostModel, r = this.getRawDataItem(e);
  62051. return new wn(r, n, n && n.ecModel);
  62052. }, t.prototype.diff = function(e) {
  62053. var n = this;
  62054. return new Qu(e ? e.getStore().getIndices() : [], this.getStore().getIndices(), function(r) {
  62055. return $S(e, r);
  62056. }, function(r) {
  62057. return $S(n, r);
  62058. });
  62059. }, t.prototype.getVisual = function(e) {
  62060. var n = this._visual;
  62061. return n && n[e];
  62062. }, t.prototype.setVisual = function(e, n) {
  62063. this._visual = this._visual || {}, V0(e) ? _e(this._visual, e) : this._visual[e] = n;
  62064. }, t.prototype.getItemVisual = function(e, n) {
  62065. var r = this._itemVisuals[e], i = r && r[n];
  62066. return i ?? this.getVisual(n);
  62067. }, t.prototype.hasItemVisual = function() {
  62068. return this._itemVisuals.length > 0;
  62069. }, t.prototype.ensureUniqueItemVisual = function(e, n) {
  62070. var r = this._itemVisuals, i = r[e];
  62071. i || (i = r[e] = {});
  62072. var a = i[n];
  62073. return a == null && (a = this.getVisual(n), Se(a) ? a = a.slice() : V0(a) && (a = _e({}, a)), i[n] = a), a;
  62074. }, t.prototype.setItemVisual = function(e, n, r) {
  62075. var i = this._itemVisuals[e] || {};
  62076. this._itemVisuals[e] = i, V0(n) ? _e(i, n) : i[n] = r;
  62077. }, t.prototype.clearAllVisual = function() {
  62078. this._visual = {}, this._itemVisuals = [];
  62079. }, t.prototype.setLayout = function(e, n) {
  62080. V0(e) ? _e(this._layout, e) : this._layout[e] = n;
  62081. }, t.prototype.getLayout = function(e) {
  62082. return this._layout[e];
  62083. }, t.prototype.getItemLayout = function(e) {
  62084. return this._itemLayouts[e];
  62085. }, t.prototype.setItemLayout = function(e, n, r) {
  62086. this._itemLayouts[e] = r ? _e(this._itemLayouts[e] || {}, n) : n;
  62087. }, t.prototype.clearItemLayouts = function() {
  62088. this._itemLayouts.length = 0;
  62089. }, t.prototype.setItemGraphicEl = function(e, n) {
  62090. var r = this.hostModel && this.hostModel.seriesIndex;
  62091. Pk(r, this.dataType, e, n), this._graphicEls[e] = n;
  62092. }, t.prototype.getItemGraphicEl = function(e) {
  62093. return this._graphicEls[e];
  62094. }, t.prototype.eachItemGraphicEl = function(e, n) {
  62095. F(this._graphicEls, function(r, i) {
  62096. r && e && e.call(n, r, i);
  62097. });
  62098. }, t.prototype.cloneShallow = function(e) {
  62099. return e || (e = new t(this._schema ? this._schema : xc(this.dimensions, this._getDimInfo, this), this.hostModel)), AM(e, this), e._store = this._store, e;
  62100. }, t.prototype.wrapMethod = function(e, n) {
  62101. var r = this[e];
  62102. qe(r) && (this.__wrappedMethods = this.__wrappedMethods || [], this.__wrappedMethods.push(e), this[e] = function() {
  62103. var i = r.apply(this, arguments);
  62104. return n.apply(this, [i].concat(oP(arguments)));
  62105. });
  62106. }, t.internalField = function() {
  62107. zj = function(e) {
  62108. var n = e._invertedIndicesMap;
  62109. F(n, function(r, i) {
  62110. var a = e._dimInfos[i], o = a.ordinalMeta, s = e._store;
  62111. if (o) {
  62112. r = n[i] = new _qe(o.categories.length);
  62113. for (var l = 0; l < r.length; l++)
  62114. r[l] = Bj;
  62115. for (var l = 0; l < s.count(); l++)
  62116. r[s.get(a.storeDimIndex, l)] = l;
  62117. }
  62118. });
  62119. }, F0 = function(e, n, r) {
  62120. return Br(e._getCategory(n, r), null);
  62121. }, $S = function(e, n) {
  62122. var r = e._idList[n];
  62123. return r == null && e._idDimIdx != null && (r = F0(e, e._idDimIdx, n)), r == null && (r = Oqe + n), r;
  62124. }, rv = function(e) {
  62125. return Se(e) || (e = e != null ? [e] : []), e;
  62126. }, AS = function(e) {
  62127. var n = new t(e._schema ? e._schema : xc(e.dimensions, e._getDimInfo, e), e.hostModel);
  62128. return AM(n, e), n;
  62129. }, AM = function(e, n) {
  62130. F(Sqe.concat(n.__wrappedMethods || []), function(r) {
  62131. n.hasOwnProperty(r) && (e[r] = n[r]);
  62132. }), e.__wrappedMethods = n.__wrappedMethods, F(xqe, function(r) {
  62133. e[r] = ot(n[r]);
  62134. }), e._calculationInfo = _e({}, n._calculationInfo);
  62135. }, EM = function(e, n) {
  62136. var r = e._nameList, i = e._idList, a = e._nameDimIdx, o = e._idDimIdx, s = r[n], l = i[n];
  62137. if (s == null && a != null && (r[n] = s = F0(e, a, n)), l == null && o != null && (i[n] = l = F0(e, o, n)), l == null && s != null) {
  62138. var u = e._nameRepeatCount, c = u[s] = (u[s] || 0) + 1;
  62139. l = s, c > 1 && (l += "__ec__" + c), i[n] = l;
  62140. }
  62141. };
  62142. }(), t;
  62143. }()
  62144. );
  62145. const Wi = wqe;
  62146. function Cqe(t, e) {
  62147. return Mm(t, e).dimensions;
  62148. }
  62149. function Mm(t, e) {
  62150. o3(t) || (t = s3(t)), e = e || {};
  62151. var n = e.coordDimensions || [], r = e.dimensionsDefine || t.dimensionsDefine || [], i = Ze(), a = [], o = Pqe(t, n, r, e.dimensionsCount), s = e.canOmitUnusedDimensions && pce(o), l = r === t.dimensionsDefine, u = l ? hce(t) : dce(r), c = e.encodeDefine;
  62152. !c && e.encodeDefaulter && (c = e.encodeDefaulter(t, o));
  62153. for (var f = Ze(c), d = new yue(o), h = 0; h < d.length; h++)
  62154. d[h] = -1;
  62155. function p($) {
  62156. var T = d[$];
  62157. if (T < 0) {
  62158. var E = r[$], M = nt(E) ? E : {
  62159. name: E
  62160. }, R = new gw(), N = M.name;
  62161. N != null && u.get(N) != null && (R.name = R.displayName = N), M.type != null && (R.type = M.type), M.displayName != null && (R.displayName = M.displayName);
  62162. var I = a.length;
  62163. return d[$] = I, R.storeDimIndex = $, a.push(R), R;
  62164. }
  62165. return a[T];
  62166. }
  62167. if (!s)
  62168. for (var h = 0; h < o; h++)
  62169. p(h);
  62170. f.each(function($, T) {
  62171. var E = Cn($).slice();
  62172. if (E.length === 1 && !Ve(E[0]) && E[0] < 0) {
  62173. f.set(T, !1);
  62174. return;
  62175. }
  62176. var M = f.set(T, []);
  62177. F(E, function(R, N) {
  62178. var I = Ve(R) ? u.get(R) : R;
  62179. I != null && I < o && (M[N] = I, g(p(I), T, N));
  62180. });
  62181. });
  62182. var v = 0;
  62183. F(n, function($) {
  62184. var T, E, M, R;
  62185. if (Ve($))
  62186. T = $, R = {};
  62187. else {
  62188. R = $, T = R.name;
  62189. var N = R.ordinalMeta;
  62190. R.ordinalMeta = null, R = _e({}, R), R.ordinalMeta = N, E = R.dimsDef, M = R.otherDims, R.name = R.coordDim = R.coordDimIndex = R.dimsDef = R.otherDims = null;
  62191. }
  62192. var I = f.get(T);
  62193. if (I !== !1) {
  62194. if (I = Cn(I), !I.length)
  62195. for (var B = 0; B < (E && E.length || 1); B++) {
  62196. for (; v < o && p(v).coordDim != null; )
  62197. v++;
  62198. v < o && I.push(v++);
  62199. }
  62200. F(I, function(Q, W) {
  62201. var H = p(Q);
  62202. if (l && R.type != null && (H.type = R.type), g(it(H, R), T, W), H.name == null && E) {
  62203. var U = E[W];
  62204. !nt(U) && (U = {
  62205. name: U
  62206. }), H.name = H.displayName = U.name, H.defaultTooltip = U.defaultTooltip;
  62207. }
  62208. M && it(H.otherDims, M);
  62209. });
  62210. }
  62211. });
  62212. function g($, T, E) {
  62213. Nk.get(T) != null ? $.otherDims[T] = E : ($.coordDim = T, $.coordDimIndex = E, i.set(T, !0));
  62214. }
  62215. var m = e.generateCoord, y = e.generateCoordCount, _ = y != null;
  62216. y = m ? y || 1 : 0;
  62217. var O = m || "value";
  62218. function S($) {
  62219. $.name == null && ($.name = $.coordDim);
  62220. }
  62221. if (s)
  62222. F(a, function($) {
  62223. S($);
  62224. }), a.sort(function($, T) {
  62225. return $.storeDimIndex - T.storeDimIndex;
  62226. });
  62227. else
  62228. for (var x = 0; x < o; x++) {
  62229. var C = p(x), P = C.coordDim;
  62230. P == null && (C.coordDim = $qe(O, i, _), C.coordDimIndex = 0, (!m || y <= 0) && (C.isExtraCoord = !0), y--), S(C), C.type == null && (nue(t, x) === pi.Must || C.isExtraCoord && (C.otherDims.itemName != null || C.otherDims.seriesName != null)) && (C.type = "ordinal");
  62231. }
  62232. return Tqe(a), new cce({
  62233. source: t,
  62234. dimensions: a,
  62235. fullDimensionCount: o,
  62236. dimensionOmitted: s
  62237. });
  62238. }
  62239. function Tqe(t) {
  62240. for (var e = Ze(), n = 0; n < t.length; n++) {
  62241. var r = t[n], i = r.name, a = e.get(i) || 0;
  62242. a > 0 && (r.name = i + (a - 1)), a++, e.set(i, a);
  62243. }
  62244. }
  62245. function Pqe(t, e, n, r) {
  62246. var i = Math.max(t.dimensionsDetectedCount || 1, e.length, n.length, r || 0);
  62247. return F(e, function(a) {
  62248. var o;
  62249. nt(a) && (o = a.dimsDef) && (i = Math.max(i, o.length));
  62250. }), i;
  62251. }
  62252. function $qe(t, e, n) {
  62253. if (n || e.hasKey(t)) {
  62254. for (var r = 0; e.hasKey(t + r); )
  62255. r++;
  62256. t += r;
  62257. }
  62258. return e.set(t, !0), t;
  62259. }
  62260. var Aqe = (
  62261. /** @class */
  62262. /* @__PURE__ */ function() {
  62263. function t(e) {
  62264. this.coordSysDims = [], this.axisMap = Ze(), this.categoryAxisMap = Ze(), this.coordSysName = e;
  62265. }
  62266. return t;
  62267. }()
  62268. );
  62269. function Eqe(t) {
  62270. var e = t.get("coordinateSystem"), n = new Aqe(e), r = Mqe[e];
  62271. if (r)
  62272. return r(t, n, n.axisMap, n.categoryAxisMap), n;
  62273. }
  62274. var Mqe = {
  62275. cartesian2d: function(t, e, n, r) {
  62276. var i = t.getReferringComponents("xAxis", Er).models[0], a = t.getReferringComponents("yAxis", Er).models[0];
  62277. if (process.env.NODE_ENV !== "production") {
  62278. if (!i)
  62279. throw new Error('xAxis "' + Or(t.get("xAxisIndex"), t.get("xAxisId"), 0) + '" not found');
  62280. if (!a)
  62281. throw new Error('yAxis "' + Or(t.get("xAxisIndex"), t.get("yAxisId"), 0) + '" not found');
  62282. }
  62283. e.coordSysDims = ["x", "y"], n.set("x", i), n.set("y", a), iv(i) && (r.set("x", i), e.firstCategoryDimIndex = 0), iv(a) && (r.set("y", a), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1));
  62284. },
  62285. singleAxis: function(t, e, n, r) {
  62286. var i = t.getReferringComponents("singleAxis", Er).models[0];
  62287. if (process.env.NODE_ENV !== "production" && !i)
  62288. throw new Error("singleAxis should be specified.");
  62289. e.coordSysDims = ["single"], n.set("single", i), iv(i) && (r.set("single", i), e.firstCategoryDimIndex = 0);
  62290. },
  62291. polar: function(t, e, n, r) {
  62292. var i = t.getReferringComponents("polar", Er).models[0], a = i.findAxisModel("radiusAxis"), o = i.findAxisModel("angleAxis");
  62293. if (process.env.NODE_ENV !== "production") {
  62294. if (!o)
  62295. throw new Error("angleAxis option not found");
  62296. if (!a)
  62297. throw new Error("radiusAxis option not found");
  62298. }
  62299. e.coordSysDims = ["radius", "angle"], n.set("radius", a), n.set("angle", o), iv(a) && (r.set("radius", a), e.firstCategoryDimIndex = 0), iv(o) && (r.set("angle", o), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1));
  62300. },
  62301. geo: function(t, e, n, r) {
  62302. e.coordSysDims = ["lng", "lat"];
  62303. },
  62304. parallel: function(t, e, n, r) {
  62305. var i = t.ecModel, a = i.getComponent("parallel", t.get("parallelIndex")), o = e.coordSysDims = a.dimensions.slice();
  62306. F(a.parallelAxisIndex, function(s, l) {
  62307. var u = i.getComponent("parallelAxis", s), c = o[l];
  62308. n.set(c, u), iv(u) && (r.set(c, u), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = l));
  62309. });
  62310. }
  62311. };
  62312. function iv(t) {
  62313. return t.get("type") === "category";
  62314. }
  62315. function vce(t, e, n) {
  62316. n = n || {};
  62317. var r = n.byIndex, i = n.stackedCoordDimension, a, o, s;
  62318. Iqe(e) ? a = e : (o = e.schema, a = o.dimensions, s = e.store);
  62319. var l = !!(t && t.get("stack")), u, c, f, d;
  62320. if (F(a, function(y, _) {
  62321. Ve(y) && (a[_] = y = {
  62322. name: y
  62323. }), l && !y.isExtraCoord && (!r && !u && y.ordinalMeta && (u = y), !c && y.type !== "ordinal" && y.type !== "time" && (!i || i === y.coordDim) && (c = y));
  62324. }), c && !r && !u && (r = !0), c) {
  62325. f = "__\0ecstackresult_" + t.id, d = "__\0ecstackedover_" + t.id, u && (u.createInvertedIndices = !0);
  62326. var h = c.coordDim, p = c.type, v = 0;
  62327. F(a, function(y) {
  62328. y.coordDim === h && v++;
  62329. });
  62330. var g = {
  62331. name: f,
  62332. coordDim: h,
  62333. coordDimIndex: v,
  62334. type: p,
  62335. isExtraCoord: !0,
  62336. isCalculationCoord: !0,
  62337. storeDimIndex: a.length
  62338. }, m = {
  62339. name: d,
  62340. // This dimension contains stack base (generally, 0), so do not set it as
  62341. // `stackedDimCoordDim` to avoid extent calculation, consider log scale.
  62342. coordDim: d,
  62343. coordDimIndex: v + 1,
  62344. type: p,
  62345. isExtraCoord: !0,
  62346. isCalculationCoord: !0,
  62347. storeDimIndex: a.length + 1
  62348. };
  62349. o ? (s && (g.storeDimIndex = s.ensureCalculationDimension(d, p), m.storeDimIndex = s.ensureCalculationDimension(f, p)), o.appendCalculationDimension(g), o.appendCalculationDimension(m)) : (a.push(g), a.push(m));
  62350. }
  62351. return {
  62352. stackedDimension: c && c.name,
  62353. stackedByDimension: u && u.name,
  62354. isStackedByIndex: r,
  62355. stackedOverDimension: d,
  62356. stackResultDimension: f
  62357. };
  62358. }
  62359. function Iqe(t) {
  62360. return !fce(t.schema);
  62361. }
  62362. function Hu(t, e) {
  62363. return !!e && e === t.getCalculationInfo("stackedDimension");
  62364. }
  62365. function S3(t, e) {
  62366. return Hu(t, e) ? t.getCalculationInfo("stackResultDimension") : e;
  62367. }
  62368. function Dqe(t, e) {
  62369. var n = t.get("coordinateSystem"), r = gp.get(n), i;
  62370. return e && e.coordSysDims && (i = Ce(e.coordSysDims, function(a) {
  62371. var o = {
  62372. name: a
  62373. }, s = e.axisMap.get(a);
  62374. if (s) {
  62375. var l = s.get("type");
  62376. o.type = YC(l);
  62377. }
  62378. return o;
  62379. })), i || (i = r && (r.getDimensionsInfo ? r.getDimensionsInfo() : r.dimensions.slice()) || ["x", "y"]), i;
  62380. }
  62381. function Rqe(t, e, n) {
  62382. var r, i;
  62383. return n && F(t, function(a, o) {
  62384. var s = a.coordDim, l = n.categoryAxisMap.get(s);
  62385. l && (r == null && (r = o), a.ordinalMeta = l.getOrdinalMeta(), e && (a.createInvertedIndices = !0)), a.otherDims.itemName != null && (i = !0);
  62386. }), !i && r != null && (t[r].otherDims.itemName = 0), r;
  62387. }
  62388. function Yl(t, e, n) {
  62389. n = n || {};
  62390. var r = e.getSourceManager(), i, a = !1;
  62391. t ? (a = !0, i = s3(t)) : (i = r.getSource(), a = i.sourceFormat === hs);
  62392. var o = Eqe(e), s = Dqe(e, o), l = n.useEncodeDefaulter, u = qe(l) ? l : l ? vt(tue, s, e) : null, c = {
  62393. coordDimensions: s,
  62394. generateCoord: n.generateCoord,
  62395. encodeDefine: e.getEncode(),
  62396. encodeDefaulter: u,
  62397. canOmitUnusedDimensions: !a
  62398. }, f = Mm(i, c), d = Rqe(f.dimensions, n.createInvertedIndices, o), h = a ? null : r.getSharedDataStore(f), p = vce(e, {
  62399. schema: f,
  62400. store: h
  62401. }), v = new Wi(f, e);
  62402. v.setCalculationInfo(p);
  62403. var g = d != null && kqe(i) ? function(m, y, _, O) {
  62404. return O === d ? _ : this.defaultDimValueGetter(m, y, _, O);
  62405. } : null;
  62406. return v.hasItemOption = !1, v.initData(
  62407. // Try to reuse the data store in sourceManager if using dataset.
  62408. a ? i : h,
  62409. null,
  62410. g
  62411. ), v;
  62412. }
  62413. function kqe(t) {
  62414. if (t.sourceFormat === hs) {
  62415. var e = Lqe(t.data || []);
  62416. return !Se(ym(e));
  62417. }
  62418. }
  62419. function Lqe(t) {
  62420. for (var e = 0; e < t.length && t[e] == null; )
  62421. e++;
  62422. return t[e];
  62423. }
  62424. var ql = (
  62425. /** @class */
  62426. function() {
  62427. function t(e) {
  62428. this._setting = e || {}, this._extent = [1 / 0, -1 / 0];
  62429. }
  62430. return t.prototype.getSetting = function(e) {
  62431. return this._setting[e];
  62432. }, t.prototype.unionExtent = function(e) {
  62433. var n = this._extent;
  62434. e[0] < n[0] && (n[0] = e[0]), e[1] > n[1] && (n[1] = e[1]);
  62435. }, t.prototype.unionExtentFromData = function(e, n) {
  62436. this.unionExtent(e.getApproximateExtent(n));
  62437. }, t.prototype.getExtent = function() {
  62438. return this._extent.slice();
  62439. }, t.prototype.setExtent = function(e, n) {
  62440. var r = this._extent;
  62441. isNaN(e) || (r[0] = e), isNaN(n) || (r[1] = n);
  62442. }, t.prototype.isInExtentRange = function(e) {
  62443. return this._extent[0] <= e && this._extent[1] >= e;
  62444. }, t.prototype.isBlank = function() {
  62445. return this._isBlank;
  62446. }, t.prototype.setBlank = function(e) {
  62447. this._isBlank = e;
  62448. }, t;
  62449. }()
  62450. );
  62451. vP(ql);
  62452. var Nqe = 0, qk = (
  62453. /** @class */
  62454. function() {
  62455. function t(e) {
  62456. this.categories = e.categories || [], this._needCollect = e.needCollect, this._deduplication = e.deduplication, this.uid = ++Nqe;
  62457. }
  62458. return t.createByAxisModel = function(e) {
  62459. var n = e.option, r = n.data, i = r && Ce(r, Bqe);
  62460. return new t({
  62461. categories: i,
  62462. needCollect: !i,
  62463. // deduplication is default in axis.
  62464. deduplication: n.dedplication !== !1
  62465. });
  62466. }, t.prototype.getOrdinal = function(e) {
  62467. return this._getOrCreateMap().get(e);
  62468. }, t.prototype.parseAndCollect = function(e) {
  62469. var n, r = this._needCollect;
  62470. if (!Ve(e) && !r)
  62471. return e;
  62472. if (r && !this._deduplication)
  62473. return n = this.categories.length, this.categories[n] = e, n;
  62474. var i = this._getOrCreateMap();
  62475. return n = i.get(e), n == null && (r ? (n = this.categories.length, this.categories[n] = e, i.set(e, n)) : n = NaN), n;
  62476. }, t.prototype._getOrCreateMap = function() {
  62477. return this._map || (this._map = Ze(this.categories));
  62478. }, t;
  62479. }()
  62480. );
  62481. function Bqe(t) {
  62482. return nt(t) && t.value != null ? t.value : t + "";
  62483. }
  62484. function zqe(t) {
  62485. var e = Math.pow(10, s1(Math.abs(t))), n = Math.abs(t / e);
  62486. return n === 0 || n === 1 || n === 2 || n === 3 || n === 5;
  62487. }
  62488. function Kk(t) {
  62489. return t.type === "interval" || t.type === "log";
  62490. }
  62491. function Vqe(t, e, n, r) {
  62492. var i = {}, a = t[1] - t[0], o = i.interval = $5(a / e, !0);
  62493. n != null && o < n && (o = i.interval = n), r != null && o > r && (o = i.interval = r);
  62494. var s = i.intervalPrecision = gce(o), l = i.niceTickExtent = [sr(Math.ceil(t[0] / o) * o, s), sr(Math.floor(t[1] / o) * o, s)];
  62495. return Fqe(l, t), i;
  62496. }
  62497. function MM(t) {
  62498. var e = Math.pow(10, s1(t)), n = t / e;
  62499. return n ? n === 2 ? n = 3 : n === 3 ? n = 5 : n *= 2 : n = 1, sr(n * e);
  62500. }
  62501. function gce(t) {
  62502. return Ms(t) + 2;
  62503. }
  62504. function Vj(t, e, n) {
  62505. t[e] = Math.max(Math.min(t[e], n[1]), n[0]);
  62506. }
  62507. function Fqe(t, e) {
  62508. !isFinite(t[0]) && (t[0] = e[0]), !isFinite(t[1]) && (t[1] = e[1]), Vj(t, 0, e), Vj(t, 1, e), t[0] > t[1] && (t[0] = t[1]);
  62509. }
  62510. function BP(t, e) {
  62511. return t >= e[0] && t <= e[1];
  62512. }
  62513. function zP(t, e) {
  62514. return e[1] === e[0] ? 0.5 : (t - e[0]) / (e[1] - e[0]);
  62515. }
  62516. function VP(t, e) {
  62517. return t * (e[1] - e[0]) + e[0];
  62518. }
  62519. var FP = (
  62520. /** @class */
  62521. function(t) {
  62522. le(e, t);
  62523. function e(n) {
  62524. var r = t.call(this, n) || this;
  62525. r.type = "ordinal";
  62526. var i = r.getSetting("ordinalMeta");
  62527. return i || (i = new qk({})), Se(i) && (i = new qk({
  62528. categories: Ce(i, function(a) {
  62529. return nt(a) ? a.value : a;
  62530. })
  62531. })), r._ordinalMeta = i, r._extent = r.getSetting("extent") || [0, i.categories.length - 1], r;
  62532. }
  62533. return e.prototype.parse = function(n) {
  62534. return n == null ? NaN : Ve(n) ? this._ordinalMeta.getOrdinal(n) : Math.round(n);
  62535. }, e.prototype.contain = function(n) {
  62536. return n = this.parse(n), BP(n, this._extent) && this._ordinalMeta.categories[n] != null;
  62537. }, e.prototype.normalize = function(n) {
  62538. return n = this._getTickNumber(this.parse(n)), zP(n, this._extent);
  62539. }, e.prototype.scale = function(n) {
  62540. return n = Math.round(VP(n, this._extent)), this.getRawOrdinalNumber(n);
  62541. }, e.prototype.getTicks = function() {
  62542. for (var n = [], r = this._extent, i = r[0]; i <= r[1]; )
  62543. n.push({
  62544. value: i
  62545. }), i++;
  62546. return n;
  62547. }, e.prototype.getMinorTicks = function(n) {
  62548. }, e.prototype.setSortInfo = function(n) {
  62549. if (n == null) {
  62550. this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;
  62551. return;
  62552. }
  62553. for (var r = n.ordinalNumbers, i = this._ordinalNumbersByTick = [], a = this._ticksByOrdinalNumber = [], o = 0, s = this._ordinalMeta.categories.length, l = Math.min(s, r.length); o < l; ++o) {
  62554. var u = r[o];
  62555. i[o] = u, a[u] = o;
  62556. }
  62557. for (var c = 0; o < s; ++o) {
  62558. for (; a[c] != null; )
  62559. c++;
  62560. i.push(c), a[c] = o;
  62561. }
  62562. }, e.prototype._getTickNumber = function(n) {
  62563. var r = this._ticksByOrdinalNumber;
  62564. return r && n >= 0 && n < r.length ? r[n] : n;
  62565. }, e.prototype.getRawOrdinalNumber = function(n) {
  62566. var r = this._ordinalNumbersByTick;
  62567. return r && n >= 0 && n < r.length ? r[n] : n;
  62568. }, e.prototype.getLabel = function(n) {
  62569. if (!this.isBlank()) {
  62570. var r = this.getRawOrdinalNumber(n.value), i = this._ordinalMeta.categories[r];
  62571. return i == null ? "" : i + "";
  62572. }
  62573. }, e.prototype.count = function() {
  62574. return this._extent[1] - this._extent[0] + 1;
  62575. }, e.prototype.unionExtentFromData = function(n, r) {
  62576. this.unionExtent(n.getApproximateExtent(r));
  62577. }, e.prototype.isInExtentRange = function(n) {
  62578. return n = this._getTickNumber(n), this._extent[0] <= n && this._extent[1] >= n;
  62579. }, e.prototype.getOrdinalMeta = function() {
  62580. return this._ordinalMeta;
  62581. }, e.prototype.calcNiceTicks = function() {
  62582. }, e.prototype.calcNiceExtent = function() {
  62583. }, e.type = "ordinal", e;
  62584. }(ql)
  62585. );
  62586. ql.registerClass(FP);
  62587. var Pd = sr, Gu = (
  62588. /** @class */
  62589. function(t) {
  62590. le(e, t);
  62591. function e() {
  62592. var n = t !== null && t.apply(this, arguments) || this;
  62593. return n.type = "interval", n._interval = 0, n._intervalPrecision = 2, n;
  62594. }
  62595. return e.prototype.parse = function(n) {
  62596. return n;
  62597. }, e.prototype.contain = function(n) {
  62598. return BP(n, this._extent);
  62599. }, e.prototype.normalize = function(n) {
  62600. return zP(n, this._extent);
  62601. }, e.prototype.scale = function(n) {
  62602. return VP(n, this._extent);
  62603. }, e.prototype.setExtent = function(n, r) {
  62604. var i = this._extent;
  62605. isNaN(n) || (i[0] = parseFloat(n)), isNaN(r) || (i[1] = parseFloat(r));
  62606. }, e.prototype.unionExtent = function(n) {
  62607. var r = this._extent;
  62608. n[0] < r[0] && (r[0] = n[0]), n[1] > r[1] && (r[1] = n[1]), this.setExtent(r[0], r[1]);
  62609. }, e.prototype.getInterval = function() {
  62610. return this._interval;
  62611. }, e.prototype.setInterval = function(n) {
  62612. this._interval = n, this._niceExtent = this._extent.slice(), this._intervalPrecision = gce(n);
  62613. }, e.prototype.getTicks = function(n) {
  62614. var r = this._interval, i = this._extent, a = this._niceExtent, o = this._intervalPrecision, s = [];
  62615. if (!r)
  62616. return s;
  62617. var l = 1e4;
  62618. i[0] < a[0] && (n ? s.push({
  62619. value: Pd(a[0] - r, o)
  62620. }) : s.push({
  62621. value: i[0]
  62622. }));
  62623. for (var u = a[0]; u <= a[1] && (s.push({
  62624. value: u
  62625. }), u = Pd(u + r, o), u !== s[s.length - 1].value); )
  62626. if (s.length > l)
  62627. return [];
  62628. var c = s.length ? s[s.length - 1].value : a[1];
  62629. return i[1] > c && (n ? s.push({
  62630. value: Pd(c + r, o)
  62631. }) : s.push({
  62632. value: i[1]
  62633. })), s;
  62634. }, e.prototype.getMinorTicks = function(n) {
  62635. for (var r = this.getTicks(!0), i = [], a = this.getExtent(), o = 1; o < r.length; o++) {
  62636. for (var s = r[o], l = r[o - 1], u = 0, c = [], f = s.value - l.value, d = f / n; u < n - 1; ) {
  62637. var h = Pd(l.value + (u + 1) * d);
  62638. h > a[0] && h < a[1] && c.push(h), u++;
  62639. }
  62640. i.push(c);
  62641. }
  62642. return i;
  62643. }, e.prototype.getLabel = function(n, r) {
  62644. if (n == null)
  62645. return "";
  62646. var i = r && r.precision;
  62647. i == null ? i = Ms(n.value) || 0 : i === "auto" && (i = this._intervalPrecision);
  62648. var a = Pd(n.value, i, !0);
  62649. return K5(a);
  62650. }, e.prototype.calcNiceTicks = function(n, r, i) {
  62651. n = n || 5;
  62652. var a = this._extent, o = a[1] - a[0];
  62653. if (isFinite(o)) {
  62654. o < 0 && (o = -o, a.reverse());
  62655. var s = Vqe(a, n, r, i);
  62656. this._intervalPrecision = s.intervalPrecision, this._interval = s.interval, this._niceExtent = s.niceTickExtent;
  62657. }
  62658. }, e.prototype.calcNiceExtent = function(n) {
  62659. var r = this._extent;
  62660. if (r[0] === r[1])
  62661. if (r[0] !== 0) {
  62662. var i = Math.abs(r[0]);
  62663. n.fixMax || (r[1] += i / 2), r[0] -= i / 2;
  62664. } else
  62665. r[1] = 1;
  62666. var a = r[1] - r[0];
  62667. isFinite(a) || (r[0] = 0, r[1] = 1), this.calcNiceTicks(n.splitNumber, n.minInterval, n.maxInterval);
  62668. var o = this._interval;
  62669. n.fixMin || (r[0] = Pd(Math.floor(r[0] / o) * o)), n.fixMax || (r[1] = Pd(Math.ceil(r[1] / o) * o));
  62670. }, e.prototype.setNiceExtent = function(n, r) {
  62671. this._niceExtent = [n, r];
  62672. }, e.type = "interval", e;
  62673. }(ql)
  62674. );
  62675. ql.registerClass(Gu);
  62676. var mce = typeof Float32Array < "u", Wqe = mce ? Float32Array : Array;
  62677. function Al(t) {
  62678. return Se(t) ? mce ? new Float32Array(t) : t : new Wqe(t);
  62679. }
  62680. var Jk = "__ec_stack_";
  62681. function x3(t) {
  62682. return t.get("stack") || Jk + t.seriesIndex;
  62683. }
  62684. function w3(t) {
  62685. return t.dim + t.index;
  62686. }
  62687. function Qqe(t) {
  62688. var e = [], n = t.axis, r = "axis0";
  62689. if (n.type === "category") {
  62690. for (var i = n.getBandWidth(), a = 0; a < t.count; a++)
  62691. e.push(it({
  62692. bandWidth: i,
  62693. axisKey: r,
  62694. stackId: Jk + a
  62695. }, t));
  62696. for (var o = _ce(e), s = [], a = 0; a < t.count; a++) {
  62697. var l = o[r][Jk + a];
  62698. l.offsetCenter = l.offset + l.width / 2, s.push(l);
  62699. }
  62700. return s;
  62701. }
  62702. }
  62703. function yce(t, e) {
  62704. var n = [];
  62705. return e.eachSeriesByType(t, function(r) {
  62706. xce(r) && n.push(r);
  62707. }), n;
  62708. }
  62709. function Hqe(t) {
  62710. var e = {};
  62711. F(t, function(l) {
  62712. var u = l.coordinateSystem, c = u.getBaseAxis();
  62713. if (!(c.type !== "time" && c.type !== "value"))
  62714. for (var f = l.getData(), d = c.dim + "_" + c.index, h = f.getDimensionIndex(f.mapDimension(c.dim)), p = f.getStore(), v = 0, g = p.count(); v < g; ++v) {
  62715. var m = p.get(h, v);
  62716. e[d] ? e[d].push(m) : e[d] = [m];
  62717. }
  62718. });
  62719. var n = {};
  62720. for (var r in e)
  62721. if (e.hasOwnProperty(r)) {
  62722. var i = e[r];
  62723. if (i) {
  62724. i.sort(function(l, u) {
  62725. return l - u;
  62726. });
  62727. for (var a = null, o = 1; o < i.length; ++o) {
  62728. var s = i[o] - i[o - 1];
  62729. s > 0 && (a = a === null ? s : Math.min(a, s));
  62730. }
  62731. n[r] = a;
  62732. }
  62733. }
  62734. return n;
  62735. }
  62736. function bce(t) {
  62737. var e = Hqe(t), n = [];
  62738. return F(t, function(r) {
  62739. var i = r.coordinateSystem, a = i.getBaseAxis(), o = a.getExtent(), s;
  62740. if (a.type === "category")
  62741. s = a.getBandWidth();
  62742. else if (a.type === "value" || a.type === "time") {
  62743. var l = a.dim + "_" + a.index, u = e[l], c = Math.abs(o[1] - o[0]), f = a.scale.getExtent(), d = Math.abs(f[1] - f[0]);
  62744. s = u ? c / d * u : c;
  62745. } else {
  62746. var h = r.getData();
  62747. s = Math.abs(o[1] - o[0]) / h.count();
  62748. }
  62749. var p = ze(r.get("barWidth"), s), v = ze(r.get("barMaxWidth"), s), g = ze(
  62750. // barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis,
  62751. // the auto-calculated bar width might be less than 0.5 / 1.
  62752. r.get("barMinWidth") || (wce(r) ? 0.5 : 1),
  62753. s
  62754. ), m = r.get("barGap"), y = r.get("barCategoryGap");
  62755. n.push({
  62756. bandWidth: s,
  62757. barWidth: p,
  62758. barMaxWidth: v,
  62759. barMinWidth: g,
  62760. barGap: m,
  62761. barCategoryGap: y,
  62762. axisKey: w3(a),
  62763. stackId: x3(r)
  62764. });
  62765. }), _ce(n);
  62766. }
  62767. function _ce(t) {
  62768. var e = {};
  62769. F(t, function(r, i) {
  62770. var a = r.axisKey, o = r.bandWidth, s = e[a] || {
  62771. bandWidth: o,
  62772. remainedWidth: o,
  62773. autoWidthCount: 0,
  62774. categoryGap: null,
  62775. gap: "20%",
  62776. stacks: {}
  62777. }, l = s.stacks;
  62778. e[a] = s;
  62779. var u = r.stackId;
  62780. l[u] || s.autoWidthCount++, l[u] = l[u] || {
  62781. width: 0,
  62782. maxWidth: 0
  62783. };
  62784. var c = r.barWidth;
  62785. c && !l[u].width && (l[u].width = c, c = Math.min(s.remainedWidth, c), s.remainedWidth -= c);
  62786. var f = r.barMaxWidth;
  62787. f && (l[u].maxWidth = f);
  62788. var d = r.barMinWidth;
  62789. d && (l[u].minWidth = d);
  62790. var h = r.barGap;
  62791. h != null && (s.gap = h);
  62792. var p = r.barCategoryGap;
  62793. p != null && (s.categoryGap = p);
  62794. });
  62795. var n = {};
  62796. return F(e, function(r, i) {
  62797. n[i] = {};
  62798. var a = r.stacks, o = r.bandWidth, s = r.categoryGap;
  62799. if (s == null) {
  62800. var l = kt(a).length;
  62801. s = Math.max(35 - l * 4, 15) + "%";
  62802. }
  62803. var u = ze(s, o), c = ze(r.gap, 1), f = r.remainedWidth, d = r.autoWidthCount, h = (f - u) / (d + (d - 1) * c);
  62804. h = Math.max(h, 0), F(a, function(m) {
  62805. var y = m.maxWidth, _ = m.minWidth;
  62806. if (m.width) {
  62807. var O = m.width;
  62808. y && (O = Math.min(O, y)), _ && (O = Math.max(O, _)), m.width = O, f -= O + c * O, d--;
  62809. } else {
  62810. var O = h;
  62811. y && y < O && (O = Math.min(y, f)), _ && _ > O && (O = _), O !== h && (m.width = O, f -= O + c * O, d--);
  62812. }
  62813. }), h = (f - u) / (d + (d - 1) * c), h = Math.max(h, 0);
  62814. var p = 0, v;
  62815. F(a, function(m, y) {
  62816. m.width || (m.width = h), v = m, p += m.width * (1 + c);
  62817. }), v && (p -= v.width * c);
  62818. var g = -p / 2;
  62819. F(a, function(m, y) {
  62820. n[i][y] = n[i][y] || {
  62821. bandWidth: o,
  62822. offset: g,
  62823. width: m.width
  62824. }, g += m.width * (1 + c);
  62825. });
  62826. }), n;
  62827. }
  62828. function Gqe(t, e, n) {
  62829. if (t && e) {
  62830. var r = t[w3(e)];
  62831. return r != null && n != null ? r[x3(n)] : r;
  62832. }
  62833. }
  62834. function Oce(t, e) {
  62835. var n = yce(t, e), r = bce(n);
  62836. F(n, function(i) {
  62837. var a = i.getData(), o = i.coordinateSystem, s = o.getBaseAxis(), l = x3(i), u = r[w3(s)][l], c = u.offset, f = u.width;
  62838. a.setLayout({
  62839. bandWidth: u.bandWidth,
  62840. offset: c,
  62841. size: f
  62842. });
  62843. });
  62844. }
  62845. function Sce(t) {
  62846. return {
  62847. seriesType: t,
  62848. plan: $m(),
  62849. reset: function(e) {
  62850. if (xce(e)) {
  62851. var n = e.getData(), r = e.coordinateSystem, i = r.getBaseAxis(), a = r.getOtherAxis(i), o = n.getDimensionIndex(n.mapDimension(a.dim)), s = n.getDimensionIndex(n.mapDimension(i.dim)), l = e.get("showBackground", !0), u = n.mapDimension(a.dim), c = n.getCalculationInfo("stackResultDimension"), f = Hu(n, u) && !!n.getCalculationInfo("stackedOnSeries"), d = a.isHorizontal(), h = jqe(i, a), p = wce(e), v = e.get("barMinHeight") || 0, g = c && n.getDimensionIndex(c), m = n.getLayout("size"), y = n.getLayout("offset");
  62852. return {
  62853. progress: function(_, O) {
  62854. for (var S = _.count, x = p && Al(S * 3), C = p && l && Al(S * 3), P = p && Al(S), $ = r.master.getRect(), T = d ? $.width : $.height, E, M = O.getStore(), R = 0; (E = _.next()) != null; ) {
  62855. var N = M.get(f ? g : o, E), I = M.get(s, E), B = h, Q = void 0;
  62856. f && (Q = +N - M.get(o, E));
  62857. var W = void 0, H = void 0, U = void 0, j = void 0;
  62858. if (d) {
  62859. var Y = r.dataToPoint([N, I]);
  62860. if (f) {
  62861. var ne = r.dataToPoint([Q, I]);
  62862. B = ne[0];
  62863. }
  62864. W = B, H = Y[1] + y, U = Y[0] - B, j = m, Math.abs(U) < v && (U = (U < 0 ? -1 : 1) * v);
  62865. } else {
  62866. var Y = r.dataToPoint([I, N]);
  62867. if (f) {
  62868. var ne = r.dataToPoint([I, Q]);
  62869. B = ne[1];
  62870. }
  62871. W = Y[0] + y, H = B, U = m, j = Y[1] - B, Math.abs(j) < v && (j = (j <= 0 ? -1 : 1) * v);
  62872. }
  62873. p ? (x[R] = W, x[R + 1] = H, x[R + 2] = d ? U : j, C && (C[R] = d ? $.x : W, C[R + 1] = d ? H : $.y, C[R + 2] = T), P[E] = E) : O.setItemLayout(E, {
  62874. x: W,
  62875. y: H,
  62876. width: U,
  62877. height: j
  62878. }), R += 3;
  62879. }
  62880. p && O.setLayout({
  62881. largePoints: x,
  62882. largeDataIndices: P,
  62883. largeBackgroundPoints: C,
  62884. valueAxisHorizontal: d
  62885. });
  62886. }
  62887. };
  62888. }
  62889. }
  62890. };
  62891. }
  62892. function xce(t) {
  62893. return t.coordinateSystem && t.coordinateSystem.type === "cartesian2d";
  62894. }
  62895. function wce(t) {
  62896. return t.pipelineContext && t.pipelineContext.large;
  62897. }
  62898. function jqe(t, e) {
  62899. var n = e.model.get("startValue");
  62900. return n || (n = 0), e.toGlobalCoord(e.dataToCoord(e.type === "log" ? n > 0 ? n : 1 : n));
  62901. }
  62902. var Zqe = function(t, e, n, r) {
  62903. for (; n < r; ) {
  62904. var i = n + r >>> 1;
  62905. t[i][1] < e ? n = i + 1 : r = i;
  62906. }
  62907. return n;
  62908. }, C3 = (
  62909. /** @class */
  62910. function(t) {
  62911. le(e, t);
  62912. function e(n) {
  62913. var r = t.call(this, n) || this;
  62914. return r.type = "time", r;
  62915. }
  62916. return e.prototype.getLabel = function(n) {
  62917. var r = this.getSetting("useUTC");
  62918. return p1(n.value, MG[OUe(Jv(this._minLevelUnit))] || MG.second, r, this.getSetting("locale"));
  62919. }, e.prototype.getFormattedLabel = function(n, r, i) {
  62920. var a = this.getSetting("useUTC"), o = this.getSetting("locale");
  62921. return SUe(n, r, i, o, a);
  62922. }, e.prototype.getTicks = function() {
  62923. var n = this._interval, r = this._extent, i = [];
  62924. if (!n)
  62925. return i;
  62926. i.push({
  62927. value: r[0],
  62928. level: 0
  62929. });
  62930. var a = this.getSetting("useUTC"), o = eKe(this._minLevelUnit, this._approxInterval, a, r);
  62931. return i = i.concat(o), i.push({
  62932. value: r[1],
  62933. level: 0
  62934. }), i;
  62935. }, e.prototype.calcNiceExtent = function(n) {
  62936. var r = this._extent;
  62937. if (r[0] === r[1] && (r[0] -= Go, r[1] += Go), r[1] === -1 / 0 && r[0] === 1 / 0) {
  62938. var i = /* @__PURE__ */ new Date();
  62939. r[1] = +new Date(i.getFullYear(), i.getMonth(), i.getDate()), r[0] = r[1] - Go;
  62940. }
  62941. this.calcNiceTicks(n.splitNumber, n.minInterval, n.maxInterval);
  62942. }, e.prototype.calcNiceTicks = function(n, r, i) {
  62943. n = n || 10;
  62944. var a = this._extent, o = a[1] - a[0];
  62945. this._approxInterval = o / n, r != null && this._approxInterval < r && (this._approxInterval = r), i != null && this._approxInterval > i && (this._approxInterval = i);
  62946. var s = ES.length, l = Math.min(Zqe(ES, this._approxInterval, 0, s), s - 1);
  62947. this._interval = ES[l][1], this._minLevelUnit = ES[Math.max(l - 1, 0)][0];
  62948. }, e.prototype.parse = function(n) {
  62949. return Kt(n) ? n : +go(n);
  62950. }, e.prototype.contain = function(n) {
  62951. return BP(this.parse(n), this._extent);
  62952. }, e.prototype.normalize = function(n) {
  62953. return zP(this.parse(n), this._extent);
  62954. }, e.prototype.scale = function(n) {
  62955. return VP(n, this._extent);
  62956. }, e.type = "time", e;
  62957. }(Gu)
  62958. ), ES = [
  62959. // Format interval
  62960. ["second", X5],
  62961. ["minute", Y5],
  62962. ["hour", ab],
  62963. ["quarter-day", ab * 6],
  62964. ["half-day", ab * 12],
  62965. ["day", Go * 1.2],
  62966. ["half-week", Go * 3.5],
  62967. ["week", Go * 7],
  62968. ["month", Go * 31],
  62969. ["quarter", Go * 95],
  62970. ["half-year", EG / 2],
  62971. ["year", EG]
  62972. // 1Y
  62973. ];
  62974. function Uqe(t, e, n, r) {
  62975. var i = go(e), a = go(n), o = function(p) {
  62976. return IG(i, p, r) === IG(a, p, r);
  62977. }, s = function() {
  62978. return o("year");
  62979. }, l = function() {
  62980. return s() && o("month");
  62981. }, u = function() {
  62982. return l() && o("day");
  62983. }, c = function() {
  62984. return u() && o("hour");
  62985. }, f = function() {
  62986. return c() && o("minute");
  62987. }, d = function() {
  62988. return f() && o("second");
  62989. }, h = function() {
  62990. return d() && o("millisecond");
  62991. };
  62992. switch (t) {
  62993. case "year":
  62994. return s();
  62995. case "month":
  62996. return l();
  62997. case "day":
  62998. return u();
  62999. case "hour":
  63000. return c();
  63001. case "minute":
  63002. return f();
  63003. case "second":
  63004. return d();
  63005. case "millisecond":
  63006. return h();
  63007. }
  63008. }
  63009. function Xqe(t, e) {
  63010. return t /= Go, t > 16 ? 16 : t > 7.5 ? 7 : t > 3.5 ? 4 : t > 1.5 ? 2 : 1;
  63011. }
  63012. function Yqe(t) {
  63013. var e = 30 * Go;
  63014. return t /= e, t > 6 ? 6 : t > 3 ? 3 : t > 2 ? 2 : 1;
  63015. }
  63016. function qqe(t) {
  63017. return t /= ab, t > 12 ? 12 : t > 6 ? 6 : t > 3.5 ? 4 : t > 2 ? 2 : 1;
  63018. }
  63019. function Fj(t, e) {
  63020. return t /= e ? Y5 : X5, t > 30 ? 30 : t > 20 ? 20 : t > 15 ? 15 : t > 10 ? 10 : t > 5 ? 5 : t > 2 ? 2 : 1;
  63021. }
  63022. function Kqe(t) {
  63023. return $5(t, !0);
  63024. }
  63025. function Jqe(t, e, n) {
  63026. var r = new Date(t);
  63027. switch (Jv(e)) {
  63028. case "year":
  63029. case "month":
  63030. r[Qle(n)](0);
  63031. case "day":
  63032. r[Hle(n)](1);
  63033. case "hour":
  63034. r[Gle(n)](0);
  63035. case "minute":
  63036. r[jle(n)](0);
  63037. case "second":
  63038. r[Zle(n)](0), r[Ule(n)](0);
  63039. }
  63040. return r.getTime();
  63041. }
  63042. function eKe(t, e, n, r) {
  63043. var i = 1e4, a = Fle, o = 0;
  63044. function s(T, E, M, R, N, I, B) {
  63045. for (var Q = new Date(E), W = E, H = Q[R](); W < M && W <= r[1]; )
  63046. B.push({
  63047. value: W
  63048. }), H += T, Q[N](H), W = Q.getTime();
  63049. B.push({
  63050. value: W,
  63051. notAdd: !0
  63052. });
  63053. }
  63054. function l(T, E, M) {
  63055. var R = [], N = !E.length;
  63056. if (!Uqe(Jv(T), r[0], r[1], n)) {
  63057. N && (E = [{
  63058. // TODO Optimize. Not include so may ticks.
  63059. value: Jqe(new Date(r[0]), T, n)
  63060. }, {
  63061. value: r[1]
  63062. }]);
  63063. for (var I = 0; I < E.length - 1; I++) {
  63064. var B = E[I].value, Q = E[I + 1].value;
  63065. if (B !== Q) {
  63066. var W = void 0, H = void 0, U = void 0, j = !1;
  63067. switch (T) {
  63068. case "year":
  63069. W = Math.max(1, Math.round(e / Go / 365)), H = q5(n), U = xUe(n);
  63070. break;
  63071. case "half-year":
  63072. case "quarter":
  63073. case "month":
  63074. W = Yqe(e), H = eg(n), U = Qle(n);
  63075. break;
  63076. case "week":
  63077. case "half-week":
  63078. case "day":
  63079. W = Xqe(e), H = PP(n), U = Hle(n), j = !0;
  63080. break;
  63081. case "half-day":
  63082. case "quarter-day":
  63083. case "hour":
  63084. W = qqe(e), H = Yb(n), U = Gle(n);
  63085. break;
  63086. case "minute":
  63087. W = Fj(e, !0), H = $P(n), U = jle(n);
  63088. break;
  63089. case "second":
  63090. W = Fj(e, !1), H = AP(n), U = Zle(n);
  63091. break;
  63092. case "millisecond":
  63093. W = Kqe(e), H = EP(n), U = Ule(n);
  63094. break;
  63095. }
  63096. s(W, B, Q, H, U, j, R), T === "year" && M.length > 1 && I === 0 && M.unshift({
  63097. value: M[0].value - W
  63098. });
  63099. }
  63100. }
  63101. for (var I = 0; I < R.length; I++)
  63102. M.push(R[I]);
  63103. return R;
  63104. }
  63105. }
  63106. for (var u = [], c = [], f = 0, d = 0, h = 0; h < a.length && o++ < i; ++h) {
  63107. var p = Jv(a[h]);
  63108. if (_Ue(a[h])) {
  63109. l(a[h], u[u.length - 1] || [], c);
  63110. var v = a[h + 1] ? Jv(a[h + 1]) : null;
  63111. if (p !== v) {
  63112. if (c.length) {
  63113. d = f, c.sort(function(T, E) {
  63114. return T.value - E.value;
  63115. });
  63116. for (var g = [], m = 0; m < c.length; ++m) {
  63117. var y = c[m].value;
  63118. (m === 0 || c[m - 1].value !== y) && (g.push(c[m]), y >= r[0] && y <= r[1] && f++);
  63119. }
  63120. var _ = (r[1] - r[0]) / e;
  63121. if (f > _ * 1.5 && d > _ / 1.5 || (u.push(g), f > _ || t === a[h]))
  63122. break;
  63123. }
  63124. c = [];
  63125. }
  63126. }
  63127. }
  63128. process.env.NODE_ENV !== "production" && o >= i && nr("Exceed safe limit.");
  63129. for (var O = yn(Ce(u, function(T) {
  63130. return yn(T, function(E) {
  63131. return E.value >= r[0] && E.value <= r[1] && !E.notAdd;
  63132. });
  63133. }), function(T) {
  63134. return T.length > 0;
  63135. }), S = [], x = O.length - 1, h = 0; h < O.length; ++h)
  63136. for (var C = O[h], P = 0; P < C.length; ++P)
  63137. S.push({
  63138. value: C[P].value,
  63139. level: x - h
  63140. });
  63141. S.sort(function(T, E) {
  63142. return T.value - E.value;
  63143. });
  63144. for (var $ = [], h = 0; h < S.length; ++h)
  63145. (h === 0 || S[h].value !== S[h - 1].value) && $.push(S[h]);
  63146. return $;
  63147. }
  63148. ql.registerClass(C3);
  63149. var Wj = ql.prototype, lb = Gu.prototype, tKe = sr, nKe = Math.floor, rKe = Math.ceil, MS = Math.pow, Ss = Math.log, T3 = (
  63150. /** @class */
  63151. function(t) {
  63152. le(e, t);
  63153. function e() {
  63154. var n = t !== null && t.apply(this, arguments) || this;
  63155. return n.type = "log", n.base = 10, n._originalScale = new Gu(), n._interval = 0, n;
  63156. }
  63157. return e.prototype.getTicks = function(n) {
  63158. var r = this._originalScale, i = this._extent, a = r.getExtent(), o = lb.getTicks.call(this, n);
  63159. return Ce(o, function(s) {
  63160. var l = s.value, u = sr(MS(this.base, l));
  63161. return u = l === i[0] && this._fixMin ? IS(u, a[0]) : u, u = l === i[1] && this._fixMax ? IS(u, a[1]) : u, {
  63162. value: u
  63163. };
  63164. }, this);
  63165. }, e.prototype.setExtent = function(n, r) {
  63166. var i = Ss(this.base);
  63167. n = Ss(Math.max(0, n)) / i, r = Ss(Math.max(0, r)) / i, lb.setExtent.call(this, n, r);
  63168. }, e.prototype.getExtent = function() {
  63169. var n = this.base, r = Wj.getExtent.call(this);
  63170. r[0] = MS(n, r[0]), r[1] = MS(n, r[1]);
  63171. var i = this._originalScale, a = i.getExtent();
  63172. return this._fixMin && (r[0] = IS(r[0], a[0])), this._fixMax && (r[1] = IS(r[1], a[1])), r;
  63173. }, e.prototype.unionExtent = function(n) {
  63174. this._originalScale.unionExtent(n);
  63175. var r = this.base;
  63176. n[0] = Ss(n[0]) / Ss(r), n[1] = Ss(n[1]) / Ss(r), Wj.unionExtent.call(this, n);
  63177. }, e.prototype.unionExtentFromData = function(n, r) {
  63178. this.unionExtent(n.getApproximateExtent(r));
  63179. }, e.prototype.calcNiceTicks = function(n) {
  63180. n = n || 10;
  63181. var r = this._extent, i = r[1] - r[0];
  63182. if (!(i === 1 / 0 || i <= 0)) {
  63183. var a = Ise(i), o = n / i * a;
  63184. for (o <= 0.5 && (a *= 10); !isNaN(a) && Math.abs(a) < 1 && Math.abs(a) > 0; )
  63185. a *= 10;
  63186. var s = [sr(rKe(r[0] / a) * a), sr(nKe(r[1] / a) * a)];
  63187. this._interval = a, this._niceExtent = s;
  63188. }
  63189. }, e.prototype.calcNiceExtent = function(n) {
  63190. lb.calcNiceExtent.call(this, n), this._fixMin = n.fixMin, this._fixMax = n.fixMax;
  63191. }, e.prototype.parse = function(n) {
  63192. return n;
  63193. }, e.prototype.contain = function(n) {
  63194. return n = Ss(n) / Ss(this.base), BP(n, this._extent);
  63195. }, e.prototype.normalize = function(n) {
  63196. return n = Ss(n) / Ss(this.base), zP(n, this._extent);
  63197. }, e.prototype.scale = function(n) {
  63198. return n = VP(n, this._extent), MS(this.base, n);
  63199. }, e.type = "log", e;
  63200. }(ql)
  63201. ), Cce = T3.prototype;
  63202. Cce.getMinorTicks = lb.getMinorTicks;
  63203. Cce.getLabel = lb.getLabel;
  63204. function IS(t, e) {
  63205. return tKe(t, Ms(e));
  63206. }
  63207. ql.registerClass(T3);
  63208. var iKe = (
  63209. /** @class */
  63210. function() {
  63211. function t(e, n, r) {
  63212. this._prepareParams(e, n, r);
  63213. }
  63214. return t.prototype._prepareParams = function(e, n, r) {
  63215. r[1] < r[0] && (r = [NaN, NaN]), this._dataMin = r[0], this._dataMax = r[1];
  63216. var i = this._isOrdinal = e.type === "ordinal";
  63217. this._needCrossZero = e.type === "interval" && n.getNeedCrossZero && n.getNeedCrossZero();
  63218. var a = n.get("min", !0);
  63219. a == null && (a = n.get("startValue", !0));
  63220. var o = this._modelMinRaw = a;
  63221. qe(o) ? this._modelMinNum = DS(e, o({
  63222. min: r[0],
  63223. max: r[1]
  63224. })) : o !== "dataMin" && (this._modelMinNum = DS(e, o));
  63225. var s = this._modelMaxRaw = n.get("max", !0);
  63226. if (qe(s) ? this._modelMaxNum = DS(e, s({
  63227. min: r[0],
  63228. max: r[1]
  63229. })) : s !== "dataMax" && (this._modelMaxNum = DS(e, s)), i)
  63230. this._axisDataLen = n.getCategories().length;
  63231. else {
  63232. var l = n.get("boundaryGap"), u = Se(l) ? l : [l || 0, l || 0];
  63233. typeof u[0] == "boolean" || typeof u[1] == "boolean" ? (process.env.NODE_ENV !== "production" && console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'), this._boundaryGapInner = [0, 0]) : this._boundaryGapInner = [js(u[0], 1), js(u[1], 1)];
  63234. }
  63235. }, t.prototype.calculate = function() {
  63236. var e = this._isOrdinal, n = this._dataMin, r = this._dataMax, i = this._axisDataLen, a = this._boundaryGapInner, o = e ? null : r - n || Math.abs(n), s = this._modelMinRaw === "dataMin" ? n : this._modelMinNum, l = this._modelMaxRaw === "dataMax" ? r : this._modelMaxNum, u = s != null, c = l != null;
  63237. s == null && (s = e ? i ? 0 : NaN : n - a[0] * o), l == null && (l = e ? i ? i - 1 : NaN : r + a[1] * o), (s == null || !isFinite(s)) && (s = NaN), (l == null || !isFinite(l)) && (l = NaN);
  63238. var f = mf(s) || mf(l) || e && !i;
  63239. this._needCrossZero && (s > 0 && l > 0 && !u && (s = 0), s < 0 && l < 0 && !c && (l = 0));
  63240. var d = this._determinedMin, h = this._determinedMax;
  63241. return d != null && (s = d, u = !0), h != null && (l = h, c = !0), {
  63242. min: s,
  63243. max: l,
  63244. minFixed: u,
  63245. maxFixed: c,
  63246. isBlank: f
  63247. };
  63248. }, t.prototype.modifyDataMinMax = function(e, n) {
  63249. process.env.NODE_ENV !== "production" && at(!this.frozen), this[oKe[e]] = n;
  63250. }, t.prototype.setDeterminedMinMax = function(e, n) {
  63251. var r = aKe[e];
  63252. process.env.NODE_ENV !== "production" && at(!this.frozen && this[r] == null), this[r] = n;
  63253. }, t.prototype.freeze = function() {
  63254. this.frozen = !0;
  63255. }, t;
  63256. }()
  63257. ), aKe = {
  63258. min: "_determinedMin",
  63259. max: "_determinedMax"
  63260. }, oKe = {
  63261. min: "_dataMin",
  63262. max: "_dataMax"
  63263. };
  63264. function Tce(t, e, n) {
  63265. var r = t.rawExtentInfo;
  63266. return r || (r = new iKe(t, e, n), t.rawExtentInfo = r, r);
  63267. }
  63268. function DS(t, e) {
  63269. return e == null ? null : mf(e) ? NaN : t.parse(e);
  63270. }
  63271. function Pce(t, e) {
  63272. var n = t.type, r = Tce(t, e, t.getExtent()).calculate();
  63273. t.setBlank(r.isBlank);
  63274. var i = r.min, a = r.max, o = e.ecModel;
  63275. if (o && n === "time") {
  63276. var s = yce("bar", o), l = !1;
  63277. if (F(s, function(f) {
  63278. l = l || f.getBaseAxis() === e.axis;
  63279. }), l) {
  63280. var u = bce(s), c = sKe(i, a, e, u);
  63281. i = c.min, a = c.max;
  63282. }
  63283. }
  63284. return {
  63285. extent: [i, a],
  63286. // "fix" means "fixed", the value should not be
  63287. // changed in the subsequent steps.
  63288. fixMin: r.minFixed,
  63289. fixMax: r.maxFixed
  63290. };
  63291. }
  63292. function sKe(t, e, n, r) {
  63293. var i = n.axis.getExtent(), a = i[1] - i[0], o = Gqe(r, n.axis);
  63294. if (o === void 0)
  63295. return {
  63296. min: t,
  63297. max: e
  63298. };
  63299. var s = 1 / 0;
  63300. F(o, function(h) {
  63301. s = Math.min(h.offset, s);
  63302. });
  63303. var l = -1 / 0;
  63304. F(o, function(h) {
  63305. l = Math.max(h.offset + h.width, l);
  63306. }), s = Math.abs(s), l = Math.abs(l);
  63307. var u = s + l, c = e - t, f = 1 - (s + l) / a, d = c / f - c;
  63308. return e += d * (l / u), t -= d * (s / u), {
  63309. min: t,
  63310. max: e
  63311. };
  63312. }
  63313. function Xh(t, e) {
  63314. var n = e, r = Pce(t, n), i = r.extent, a = n.get("splitNumber");
  63315. t instanceof T3 && (t.base = n.get("logBase"));
  63316. var o = t.type, s = n.get("interval"), l = o === "interval" || o === "time";
  63317. t.setExtent(i[0], i[1]), t.calcNiceExtent({
  63318. splitNumber: a,
  63319. fixMin: r.fixMin,
  63320. fixMax: r.fixMax,
  63321. minInterval: l ? n.get("minInterval") : null,
  63322. maxInterval: l ? n.get("maxInterval") : null
  63323. }), s != null && t.setInterval && t.setInterval(s);
  63324. }
  63325. function g1(t, e) {
  63326. if (e = e || t.get("type"), e)
  63327. switch (e) {
  63328. case "category":
  63329. return new FP({
  63330. ordinalMeta: t.getOrdinalMeta ? t.getOrdinalMeta() : t.getCategories(),
  63331. extent: [1 / 0, -1 / 0]
  63332. });
  63333. case "time":
  63334. return new C3({
  63335. locale: t.ecModel.getLocaleModel(),
  63336. useUTC: t.ecModel.get("useUTC")
  63337. });
  63338. default:
  63339. return new (ql.getClass(e) || Gu)();
  63340. }
  63341. }
  63342. function lKe(t) {
  63343. var e = t.scale.getExtent(), n = e[0], r = e[1];
  63344. return !(n > 0 && r > 0 || n < 0 && r < 0);
  63345. }
  63346. function Im(t) {
  63347. var e = t.getLabelModel().get("formatter"), n = t.type === "category" ? t.scale.getExtent()[0] : null;
  63348. return t.scale.type === "time" ? /* @__PURE__ */ function(r) {
  63349. return function(i, a) {
  63350. return t.scale.getFormattedLabel(i, a, r);
  63351. };
  63352. }(e) : Ve(e) ? /* @__PURE__ */ function(r) {
  63353. return function(i) {
  63354. var a = t.scale.getLabel(i), o = r.replace("{value}", a ?? "");
  63355. return o;
  63356. };
  63357. }(e) : qe(e) ? /* @__PURE__ */ function(r) {
  63358. return function(i, a) {
  63359. return n != null && (a = i.value - n), r(P3(t, i), a, i.level != null ? {
  63360. level: i.level
  63361. } : null);
  63362. };
  63363. }(e) : function(r) {
  63364. return t.scale.getLabel(r);
  63365. };
  63366. }
  63367. function P3(t, e) {
  63368. return t.type === "category" ? t.scale.getLabel(e) : e.value;
  63369. }
  63370. function uKe(t) {
  63371. var e = t.model, n = t.scale;
  63372. if (!(!e.get(["axisLabel", "show"]) || n.isBlank())) {
  63373. var r, i, a = n.getExtent();
  63374. n instanceof FP ? i = n.count() : (r = n.getTicks(), i = r.length);
  63375. var o = t.getLabelModel(), s = Im(t), l, u = 1;
  63376. i > 40 && (u = Math.ceil(i / 40));
  63377. for (var c = 0; c < i; c += u) {
  63378. var f = r ? r[c] : {
  63379. value: a[0] + c
  63380. }, d = s(f, c), h = o.getTextRect(d), p = cKe(h, o.get("rotate") || 0);
  63381. l ? l.union(p) : l = p;
  63382. }
  63383. return l;
  63384. }
  63385. }
  63386. function cKe(t, e) {
  63387. var n = e * Math.PI / 180, r = t.width, i = t.height, a = r * Math.abs(Math.cos(n)) + Math.abs(i * Math.sin(n)), o = r * Math.abs(Math.sin(n)) + Math.abs(i * Math.cos(n)), s = new bt(t.x, t.y, a, o);
  63388. return s;
  63389. }
  63390. function $3(t) {
  63391. var e = t.get("interval");
  63392. return e ?? "auto";
  63393. }
  63394. function $ce(t) {
  63395. return t.type === "category" && $3(t.getLabelModel()) === 0;
  63396. }
  63397. function qC(t, e) {
  63398. var n = {};
  63399. return F(t.mapDimensionsAll(e), function(r) {
  63400. n[S3(t, r)] = !0;
  63401. }), kt(n);
  63402. }
  63403. function fKe(t, e, n) {
  63404. e && F(qC(e, n), function(r) {
  63405. var i = e.getApproximateExtent(r);
  63406. i[0] < t[0] && (t[0] = i[0]), i[1] > t[1] && (t[1] = i[1]);
  63407. });
  63408. }
  63409. var Dm = (
  63410. /** @class */
  63411. function() {
  63412. function t() {
  63413. }
  63414. return t.prototype.getNeedCrossZero = function() {
  63415. var e = this.option;
  63416. return !e.scale;
  63417. }, t.prototype.getCoordSysModel = function() {
  63418. }, t;
  63419. }()
  63420. );
  63421. function dKe(t) {
  63422. return Yl(null, t);
  63423. }
  63424. var hKe = {
  63425. isDimensionStacked: Hu,
  63426. enableDataStack: vce,
  63427. getStackedDimension: S3
  63428. };
  63429. function pKe(t, e) {
  63430. var n = e;
  63431. e instanceof wn || (n = new wn(e));
  63432. var r = g1(n);
  63433. return r.setExtent(t[0], t[1]), Xh(r, n), r;
  63434. }
  63435. function vKe(t) {
  63436. vr(t, Dm);
  63437. }
  63438. function gKe(t, e) {
  63439. return e = e || {}, Mn(t, null, null, e.state !== "normal");
  63440. }
  63441. const mKe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  63442. __proto__: null,
  63443. createDimensions: Cqe,
  63444. createList: dKe,
  63445. createScale: pKe,
  63446. createSymbol: wr,
  63447. createTextStyle: gKe,
  63448. dataStack: hKe,
  63449. enableHoverEmphasis: af,
  63450. getECData: ft,
  63451. getLayoutRect: Mr,
  63452. mixinAxisModelCommonMethods: vKe
  63453. }, Symbol.toStringTag, { value: "Module" }));
  63454. var yKe = 1e-8;
  63455. function Qj(t, e) {
  63456. return Math.abs(t - e) < yKe;
  63457. }
  63458. function Gd(t, e, n) {
  63459. var r = 0, i = t[0];
  63460. if (!i)
  63461. return !1;
  63462. for (var a = 1; a < t.length; a++) {
  63463. var o = t[a];
  63464. r += bu(i[0], i[1], o[0], o[1], e, n), i = o;
  63465. }
  63466. var s = t[0];
  63467. return (!Qj(i[0], s[0]) || !Qj(i[1], s[1])) && (r += bu(i[0], i[1], s[0], s[1], e, n)), r !== 0;
  63468. }
  63469. var bKe = [];
  63470. function IM(t, e) {
  63471. for (var n = 0; n < t.length; n++)
  63472. oi(t[n], t[n], e);
  63473. }
  63474. function Hj(t, e, n, r) {
  63475. for (var i = 0; i < t.length; i++) {
  63476. var a = t[i];
  63477. r && (a = r.project(a)), a && isFinite(a[0]) && isFinite(a[1]) && (Cu(e, e, a), Tu(n, n, a));
  63478. }
  63479. }
  63480. function _Ke(t) {
  63481. for (var e = 0, n = 0, r = 0, i = t.length, a = t[i - 1][0], o = t[i - 1][1], s = 0; s < i; s++) {
  63482. var l = t[s][0], u = t[s][1], c = a * u - l * o;
  63483. e += c, n += (a + l) * c, r += (o + u) * c, a = l, o = u;
  63484. }
  63485. return e ? [n / e / 3, r / e / 3, e] : [t[0][0] || 0, t[0][1] || 0];
  63486. }
  63487. var Ace = (
  63488. /** @class */
  63489. function() {
  63490. function t(e) {
  63491. this.name = e;
  63492. }
  63493. return t.prototype.setCenter = function(e) {
  63494. this._center = e;
  63495. }, t.prototype.getCenter = function() {
  63496. var e = this._center;
  63497. return e || (e = this._center = this.calcCenter()), e;
  63498. }, t;
  63499. }()
  63500. ), Gj = (
  63501. /** @class */
  63502. /* @__PURE__ */ function() {
  63503. function t(e, n) {
  63504. this.type = "polygon", this.exterior = e, this.interiors = n;
  63505. }
  63506. return t;
  63507. }()
  63508. ), jj = (
  63509. /** @class */
  63510. /* @__PURE__ */ function() {
  63511. function t(e) {
  63512. this.type = "linestring", this.points = e;
  63513. }
  63514. return t;
  63515. }()
  63516. ), Ece = (
  63517. /** @class */
  63518. function(t) {
  63519. le(e, t);
  63520. function e(n, r, i) {
  63521. var a = t.call(this, n) || this;
  63522. return a.type = "geoJSON", a.geometries = r, a._center = i && [i[0], i[1]], a;
  63523. }
  63524. return e.prototype.calcCenter = function() {
  63525. for (var n = this.geometries, r, i = 0, a = 0; a < n.length; a++) {
  63526. var o = n[a], s = o.exterior, l = s && s.length;
  63527. l > i && (r = o, i = l);
  63528. }
  63529. if (r)
  63530. return _Ke(r.exterior);
  63531. var u = this.getBoundingRect();
  63532. return [u.x + u.width / 2, u.y + u.height / 2];
  63533. }, e.prototype.getBoundingRect = function(n) {
  63534. var r = this._rect;
  63535. if (r && !n)
  63536. return r;
  63537. var i = [1 / 0, 1 / 0], a = [-1 / 0, -1 / 0], o = this.geometries;
  63538. return F(o, function(s) {
  63539. s.type === "polygon" ? Hj(s.exterior, i, a, n) : F(s.points, function(l) {
  63540. Hj(l, i, a, n);
  63541. });
  63542. }), isFinite(i[0]) && isFinite(i[1]) && isFinite(a[0]) && isFinite(a[1]) || (i[0] = i[1] = a[0] = a[1] = 0), r = new bt(i[0], i[1], a[0] - i[0], a[1] - i[1]), n || (this._rect = r), r;
  63543. }, e.prototype.contain = function(n) {
  63544. var r = this.getBoundingRect(), i = this.geometries;
  63545. if (!r.contain(n[0], n[1]))
  63546. return !1;
  63547. e: for (var a = 0, o = i.length; a < o; a++) {
  63548. var s = i[a];
  63549. if (s.type === "polygon") {
  63550. var l = s.exterior, u = s.interiors;
  63551. if (Gd(l, n[0], n[1])) {
  63552. for (var c = 0; c < (u ? u.length : 0); c++)
  63553. if (Gd(u[c], n[0], n[1]))
  63554. continue e;
  63555. return !0;
  63556. }
  63557. }
  63558. }
  63559. return !1;
  63560. }, e.prototype.transformTo = function(n, r, i, a) {
  63561. var o = this.getBoundingRect(), s = o.width / o.height;
  63562. i ? a || (a = i / s) : i = s * a;
  63563. for (var l = new bt(n, r, i, a), u = o.calculateTransform(l), c = this.geometries, f = 0; f < c.length; f++) {
  63564. var d = c[f];
  63565. d.type === "polygon" ? (IM(d.exterior, u), F(d.interiors, function(h) {
  63566. IM(h, u);
  63567. })) : F(d.points, function(h) {
  63568. IM(h, u);
  63569. });
  63570. }
  63571. o = this._rect, o.copy(l), this._center = [o.x + o.width / 2, o.y + o.height / 2];
  63572. }, e.prototype.cloneShallow = function(n) {
  63573. n == null && (n = this.name);
  63574. var r = new e(n, this.geometries, this._center);
  63575. return r._rect = this._rect, r.transformTo = null, r;
  63576. }, e;
  63577. }(Ace)
  63578. ), OKe = (
  63579. /** @class */
  63580. function(t) {
  63581. le(e, t);
  63582. function e(n, r) {
  63583. var i = t.call(this, n) || this;
  63584. return i.type = "geoSVG", i._elOnlyForCalculate = r, i;
  63585. }
  63586. return e.prototype.calcCenter = function() {
  63587. for (var n = this._elOnlyForCalculate, r = n.getBoundingRect(), i = [r.x + r.width / 2, r.y + r.height / 2], a = i1(bKe), o = n; o && !o.isGeoSVGGraphicRoot; )
  63588. Ll(a, o.getLocalTransform(), a), o = o.parent;
  63589. return dp(a, a), oi(i, i, a), i;
  63590. }, e;
  63591. }(Ace)
  63592. );
  63593. function SKe(t) {
  63594. if (!t.UTF8Encoding)
  63595. return t;
  63596. var e = t, n = e.UTF8Scale;
  63597. n == null && (n = 1024);
  63598. var r = e.features;
  63599. return F(r, function(i) {
  63600. var a = i.geometry, o = a.encodeOffsets, s = a.coordinates;
  63601. if (o)
  63602. switch (a.type) {
  63603. case "LineString":
  63604. a.coordinates = Mce(s, o, n);
  63605. break;
  63606. case "Polygon":
  63607. DM(s, o, n);
  63608. break;
  63609. case "MultiLineString":
  63610. DM(s, o, n);
  63611. break;
  63612. case "MultiPolygon":
  63613. F(s, function(l, u) {
  63614. return DM(l, o[u], n);
  63615. });
  63616. }
  63617. }), e.UTF8Encoding = !1, e;
  63618. }
  63619. function DM(t, e, n) {
  63620. for (var r = 0; r < t.length; r++)
  63621. t[r] = Mce(t[r], e[r], n);
  63622. }
  63623. function Mce(t, e, n) {
  63624. for (var r = [], i = e[0], a = e[1], o = 0; o < t.length; o += 2) {
  63625. var s = t.charCodeAt(o) - 64, l = t.charCodeAt(o + 1) - 64;
  63626. s = s >> 1 ^ -(s & 1), l = l >> 1 ^ -(l & 1), s += i, l += a, i = s, a = l, r.push([s / n, l / n]);
  63627. }
  63628. return r;
  63629. }
  63630. function eL(t, e) {
  63631. return t = SKe(t), Ce(yn(t.features, function(n) {
  63632. return n.geometry && n.properties && n.geometry.coordinates.length > 0;
  63633. }), function(n) {
  63634. var r = n.properties, i = n.geometry, a = [];
  63635. switch (i.type) {
  63636. case "Polygon":
  63637. var o = i.coordinates;
  63638. a.push(new Gj(o[0], o.slice(1)));
  63639. break;
  63640. case "MultiPolygon":
  63641. F(i.coordinates, function(l) {
  63642. l[0] && a.push(new Gj(l[0], l.slice(1)));
  63643. });
  63644. break;
  63645. case "LineString":
  63646. a.push(new jj([i.coordinates]));
  63647. break;
  63648. case "MultiLineString":
  63649. a.push(new jj(i.coordinates));
  63650. }
  63651. var s = new Ece(r[e || "name"], a, r.cp);
  63652. return s.properties = r, s;
  63653. });
  63654. }
  63655. const xKe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  63656. __proto__: null,
  63657. MAX_SAFE_INTEGER: Ok,
  63658. asc: ao,
  63659. getPercentWithPrecision: UGe,
  63660. getPixelPrecision: T5,
  63661. getPrecision: Ms,
  63662. getPrecisionSafe: EC,
  63663. isNumeric: hP,
  63664. isRadianAroundZero: Vg,
  63665. linearMap: gn,
  63666. nice: $5,
  63667. numericToNumber: Gl,
  63668. parseDate: go,
  63669. quantile: uw,
  63670. quantity: Ise,
  63671. quantityExponent: s1,
  63672. reformIntervals: Sk,
  63673. remRadian: P5,
  63674. round: sr
  63675. }, Symbol.toStringTag, { value: "Module" })), wKe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  63676. __proto__: null,
  63677. format: p1,
  63678. parse: go
  63679. }, Symbol.toStringTag, { value: "Module" })), CKe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  63680. __proto__: null,
  63681. Arc: SP,
  63682. BezierCurve: f1,
  63683. BoundingRect: bt,
  63684. Circle: ic,
  63685. CompoundPath: xP,
  63686. Ellipse: OP,
  63687. Group: ct,
  63688. Image: ci,
  63689. IncrementalDisplayable: $le,
  63690. Line: Xr,
  63691. LinearGradient: _m,
  63692. Polygon: pa,
  63693. Polyline: va,
  63694. RadialGradient: V5,
  63695. Rect: Zt,
  63696. Ring: c1,
  63697. Sector: ha,
  63698. Text: jt,
  63699. clipPointsByRect: H5,
  63700. clipRectByRect: Dle,
  63701. createIcon: Sm,
  63702. extendPath: Mle,
  63703. extendShape: Ele,
  63704. getShapeClass: wP,
  63705. getTransform: of,
  63706. initProps: Vn,
  63707. makeImage: W5,
  63708. makePath: d1,
  63709. mergePath: no,
  63710. registerShape: ds,
  63711. resizePath: Q5,
  63712. updateProps: tn
  63713. }, Symbol.toStringTag, { value: "Module" })), TKe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  63714. __proto__: null,
  63715. addCommas: K5,
  63716. capitalFirst: PUe,
  63717. encodeHTML: ta,
  63718. formatTime: TUe,
  63719. formatTpl: e3,
  63720. getTextRect: wUe,
  63721. getTooltipMarker: Xle,
  63722. normalizeCssArray: vp,
  63723. toCamelCase: J5,
  63724. truncateText: Qse
  63725. }, Symbol.toStringTag, { value: "Module" })), PKe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  63726. __proto__: null,
  63727. bind: We,
  63728. clone: ot,
  63729. curry: vt,
  63730. defaults: it,
  63731. each: F,
  63732. extend: _e,
  63733. filter: yn,
  63734. indexOf: St,
  63735. inherits: m5,
  63736. isArray: Se,
  63737. isFunction: qe,
  63738. isObject: nt,
  63739. isString: Ve,
  63740. map: Ce,
  63741. merge: mt,
  63742. reduce: os
  63743. }, Symbol.toStringTag, { value: "Module" }));
  63744. var n_ = Ut();
  63745. function Ice(t, e) {
  63746. var n = Ce(e, function(r) {
  63747. return t.scale.parse(r);
  63748. });
  63749. return t.type === "time" && n.length > 0 && (n.sort(), n.unshift(n[0]), n.push(n[n.length - 1])), n;
  63750. }
  63751. function $Ke(t) {
  63752. var e = t.getLabelModel().get("customValues");
  63753. if (e) {
  63754. var n = Im(t);
  63755. return {
  63756. labels: Ice(t, e).map(function(r) {
  63757. var i = {
  63758. value: r
  63759. };
  63760. return {
  63761. formattedLabel: n(i),
  63762. rawLabel: t.scale.getLabel(i),
  63763. tickValue: r
  63764. };
  63765. })
  63766. };
  63767. }
  63768. return t.type === "category" ? EKe(t) : IKe(t);
  63769. }
  63770. function AKe(t, e) {
  63771. var n = t.getTickModel().get("customValues");
  63772. return n ? {
  63773. ticks: Ice(t, n)
  63774. } : t.type === "category" ? MKe(t, e) : {
  63775. ticks: Ce(t.scale.getTicks(), function(r) {
  63776. return r.value;
  63777. })
  63778. };
  63779. }
  63780. function EKe(t) {
  63781. var e = t.getLabelModel(), n = Dce(t, e);
  63782. return !e.get("show") || t.scale.isBlank() ? {
  63783. labels: [],
  63784. labelCategoryInterval: n.labelCategoryInterval
  63785. } : n;
  63786. }
  63787. function Dce(t, e) {
  63788. var n = Rce(t, "labels"), r = $3(e), i = kce(n, r);
  63789. if (i)
  63790. return i;
  63791. var a, o;
  63792. return qe(r) ? a = Bce(t, r) : (o = r === "auto" ? DKe(t) : r, a = Nce(t, o)), Lce(n, r, {
  63793. labels: a,
  63794. labelCategoryInterval: o
  63795. });
  63796. }
  63797. function MKe(t, e) {
  63798. var n = Rce(t, "ticks"), r = $3(e), i = kce(n, r);
  63799. if (i)
  63800. return i;
  63801. var a, o;
  63802. if ((!e.get("show") || t.scale.isBlank()) && (a = []), qe(r))
  63803. a = Bce(t, r, !0);
  63804. else if (r === "auto") {
  63805. var s = Dce(t, t.getLabelModel());
  63806. o = s.labelCategoryInterval, a = Ce(s.labels, function(l) {
  63807. return l.tickValue;
  63808. });
  63809. } else
  63810. o = r, a = Nce(t, o, !0);
  63811. return Lce(n, r, {
  63812. ticks: a,
  63813. tickCategoryInterval: o
  63814. });
  63815. }
  63816. function IKe(t) {
  63817. var e = t.scale.getTicks(), n = Im(t);
  63818. return {
  63819. labels: Ce(e, function(r, i) {
  63820. return {
  63821. level: r.level,
  63822. formattedLabel: n(r, i),
  63823. rawLabel: t.scale.getLabel(r),
  63824. tickValue: r.value
  63825. };
  63826. })
  63827. };
  63828. }
  63829. function Rce(t, e) {
  63830. return n_(t)[e] || (n_(t)[e] = []);
  63831. }
  63832. function kce(t, e) {
  63833. for (var n = 0; n < t.length; n++)
  63834. if (t[n].key === e)
  63835. return t[n].value;
  63836. }
  63837. function Lce(t, e, n) {
  63838. return t.push({
  63839. key: e,
  63840. value: n
  63841. }), n;
  63842. }
  63843. function DKe(t) {
  63844. var e = n_(t).autoInterval;
  63845. return e ?? (n_(t).autoInterval = t.calculateCategoryInterval());
  63846. }
  63847. function RKe(t) {
  63848. var e = kKe(t), n = Im(t), r = (e.axisRotate - e.labelRotate) / 180 * Math.PI, i = t.scale, a = i.getExtent(), o = i.count();
  63849. if (a[1] - a[0] < 1)
  63850. return 0;
  63851. var s = 1;
  63852. o > 40 && (s = Math.max(1, Math.floor(o / 40)));
  63853. for (var l = a[0], u = t.dataToCoord(l + 1) - t.dataToCoord(l), c = Math.abs(u * Math.cos(r)), f = Math.abs(u * Math.sin(r)), d = 0, h = 0; l <= a[1]; l += s) {
  63854. var p = 0, v = 0, g = o1(n({
  63855. value: l
  63856. }), e.font, "center", "top");
  63857. p = g.width * 1.3, v = g.height * 1.3, d = Math.max(d, p, 7), h = Math.max(h, v, 7);
  63858. }
  63859. var m = d / c, y = h / f;
  63860. isNaN(m) && (m = 1 / 0), isNaN(y) && (y = 1 / 0);
  63861. var _ = Math.max(0, Math.floor(Math.min(m, y))), O = n_(t.model), S = t.getExtent(), x = O.lastAutoInterval, C = O.lastTickCount;
  63862. return x != null && C != null && Math.abs(x - _) <= 1 && Math.abs(C - o) <= 1 && x > _ && O.axisExtent0 === S[0] && O.axisExtent1 === S[1] ? _ = x : (O.lastTickCount = o, O.lastAutoInterval = _, O.axisExtent0 = S[0], O.axisExtent1 = S[1]), _;
  63863. }
  63864. function kKe(t) {
  63865. var e = t.getLabelModel();
  63866. return {
  63867. axisRotate: t.getRotate ? t.getRotate() : t.isHorizontal && !t.isHorizontal() ? 90 : 0,
  63868. labelRotate: e.get("rotate") || 0,
  63869. font: e.getFont()
  63870. };
  63871. }
  63872. function Nce(t, e, n) {
  63873. var r = Im(t), i = t.scale, a = i.getExtent(), o = t.getLabelModel(), s = [], l = Math.max((e || 0) + 1, 1), u = a[0], c = i.count();
  63874. u !== 0 && l > 1 && c / l > 2 && (u = Math.round(Math.ceil(u / l) * l));
  63875. var f = $ce(t), d = o.get("showMinLabel") || f, h = o.get("showMaxLabel") || f;
  63876. d && u !== a[0] && v(a[0]);
  63877. for (var p = u; p <= a[1]; p += l)
  63878. v(p);
  63879. h && p - l !== a[1] && v(a[1]);
  63880. function v(g) {
  63881. var m = {
  63882. value: g
  63883. };
  63884. s.push(n ? g : {
  63885. formattedLabel: r(m),
  63886. rawLabel: i.getLabel(m),
  63887. tickValue: g
  63888. });
  63889. }
  63890. return s;
  63891. }
  63892. function Bce(t, e, n) {
  63893. var r = t.scale, i = Im(t), a = [];
  63894. return F(r.getTicks(), function(o) {
  63895. var s = r.getLabel(o), l = o.value;
  63896. e(o.value, s) && a.push(n ? l : {
  63897. formattedLabel: i(o),
  63898. rawLabel: s,
  63899. tickValue: l
  63900. });
  63901. }), a;
  63902. }
  63903. var Zj = [0, 1], LKe = (
  63904. /** @class */
  63905. function() {
  63906. function t(e, n, r) {
  63907. this.onBand = !1, this.inverse = !1, this.dim = e, this.scale = n, this._extent = r || [0, 0];
  63908. }
  63909. return t.prototype.contain = function(e) {
  63910. var n = this._extent, r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
  63911. return e >= r && e <= i;
  63912. }, t.prototype.containData = function(e) {
  63913. return this.scale.contain(e);
  63914. }, t.prototype.getExtent = function() {
  63915. return this._extent.slice();
  63916. }, t.prototype.getPixelPrecision = function(e) {
  63917. return T5(e || this.scale.getExtent(), this._extent);
  63918. }, t.prototype.setExtent = function(e, n) {
  63919. var r = this._extent;
  63920. r[0] = e, r[1] = n;
  63921. }, t.prototype.dataToCoord = function(e, n) {
  63922. var r = this._extent, i = this.scale;
  63923. return e = i.normalize(e), this.onBand && i.type === "ordinal" && (r = r.slice(), Uj(r, i.count())), gn(e, Zj, r, n);
  63924. }, t.prototype.coordToData = function(e, n) {
  63925. var r = this._extent, i = this.scale;
  63926. this.onBand && i.type === "ordinal" && (r = r.slice(), Uj(r, i.count()));
  63927. var a = gn(e, r, Zj, n);
  63928. return this.scale.scale(a);
  63929. }, t.prototype.pointToData = function(e, n) {
  63930. }, t.prototype.getTicksCoords = function(e) {
  63931. e = e || {};
  63932. var n = e.tickModel || this.getTickModel(), r = AKe(this, n), i = r.ticks, a = Ce(i, function(s) {
  63933. return {
  63934. coord: this.dataToCoord(this.scale.type === "ordinal" ? this.scale.getRawOrdinalNumber(s) : s),
  63935. tickValue: s
  63936. };
  63937. }, this), o = n.get("alignWithLabel");
  63938. return NKe(this, a, o, e.clamp), a;
  63939. }, t.prototype.getMinorTicksCoords = function() {
  63940. if (this.scale.type === "ordinal")
  63941. return [];
  63942. var e = this.model.getModel("minorTick"), n = e.get("splitNumber");
  63943. n > 0 && n < 100 || (n = 5);
  63944. var r = this.scale.getMinorTicks(n), i = Ce(r, function(a) {
  63945. return Ce(a, function(o) {
  63946. return {
  63947. coord: this.dataToCoord(o),
  63948. tickValue: o
  63949. };
  63950. }, this);
  63951. }, this);
  63952. return i;
  63953. }, t.prototype.getViewLabels = function() {
  63954. return $Ke(this).labels;
  63955. }, t.prototype.getLabelModel = function() {
  63956. return this.model.getModel("axisLabel");
  63957. }, t.prototype.getTickModel = function() {
  63958. return this.model.getModel("axisTick");
  63959. }, t.prototype.getBandWidth = function() {
  63960. var e = this._extent, n = this.scale.getExtent(), r = n[1] - n[0] + (this.onBand ? 1 : 0);
  63961. r === 0 && (r = 1);
  63962. var i = Math.abs(e[1] - e[0]);
  63963. return Math.abs(i) / r;
  63964. }, t.prototype.calculateCategoryInterval = function() {
  63965. return RKe(this);
  63966. }, t;
  63967. }()
  63968. );
  63969. function Uj(t, e) {
  63970. var n = t[1] - t[0], r = e, i = n / r / 2;
  63971. t[0] += i, t[1] -= i;
  63972. }
  63973. function NKe(t, e, n, r) {
  63974. var i = e.length;
  63975. if (!t.onBand || n || !i)
  63976. return;
  63977. var a = t.getExtent(), o, s;
  63978. if (i === 1)
  63979. e[0].coord = a[0], o = e[1] = {
  63980. coord: a[1]
  63981. };
  63982. else {
  63983. var l = e[i - 1].tickValue - e[0].tickValue, u = (e[i - 1].coord - e[0].coord) / l;
  63984. F(e, function(h) {
  63985. h.coord -= u / 2;
  63986. });
  63987. var c = t.scale.getExtent();
  63988. s = 1 + c[1] - e[i - 1].tickValue, o = {
  63989. coord: e[i - 1].coord + u * s
  63990. }, e.push(o);
  63991. }
  63992. var f = a[0] > a[1];
  63993. d(e[0].coord, a[0]) && (r ? e[0].coord = a[0] : e.shift()), r && d(a[0], e[0].coord) && e.unshift({
  63994. coord: a[0]
  63995. }), d(a[1], o.coord) && (r ? o.coord = a[1] : e.pop()), r && d(o.coord, a[1]) && e.push({
  63996. coord: a[1]
  63997. });
  63998. function d(h, p) {
  63999. return h = sr(h), p = sr(p), f ? h > p : h < p;
  64000. }
  64001. }
  64002. const vs = LKe;
  64003. function BKe(t) {
  64004. var e = At.extend(t);
  64005. return At.registerClass(e), e;
  64006. }
  64007. function zKe(t) {
  64008. var e = Ln.extend(t);
  64009. return Ln.registerClass(e), e;
  64010. }
  64011. function VKe(t) {
  64012. var e = Tn.extend(t);
  64013. return Tn.registerClass(e), e;
  64014. }
  64015. function FKe(t) {
  64016. var e = _n.extend(t);
  64017. return _n.registerClass(e), e;
  64018. }
  64019. var W0 = Math.PI * 2, $d = jl.CMD, WKe = ["top", "right", "bottom", "left"];
  64020. function QKe(t, e, n, r, i) {
  64021. var a = n.width, o = n.height;
  64022. switch (t) {
  64023. case "top":
  64024. r.set(n.x + a / 2, n.y - e), i.set(0, -1);
  64025. break;
  64026. case "bottom":
  64027. r.set(n.x + a / 2, n.y + o + e), i.set(0, 1);
  64028. break;
  64029. case "left":
  64030. r.set(n.x - e, n.y + o / 2), i.set(-1, 0);
  64031. break;
  64032. case "right":
  64033. r.set(n.x + a + e, n.y + o / 2), i.set(1, 0);
  64034. break;
  64035. }
  64036. }
  64037. function HKe(t, e, n, r, i, a, o, s, l) {
  64038. o -= t, s -= e;
  64039. var u = Math.sqrt(o * o + s * s);
  64040. o /= u, s /= u;
  64041. var c = o * n + t, f = s * n + e;
  64042. if (Math.abs(r - i) % W0 < 1e-4)
  64043. return l[0] = c, l[1] = f, u - n;
  64044. if (a) {
  64045. var d = r;
  64046. r = oo(i), i = oo(d);
  64047. } else
  64048. r = oo(r), i = oo(i);
  64049. r > i && (i += W0);
  64050. var h = Math.atan2(s, o);
  64051. if (h < 0 && (h += W0), h >= r && h <= i || h + W0 >= r && h + W0 <= i)
  64052. return l[0] = c, l[1] = f, u - n;
  64053. var p = n * Math.cos(r) + t, v = n * Math.sin(r) + e, g = n * Math.cos(i) + t, m = n * Math.sin(i) + e, y = (p - o) * (p - o) + (v - s) * (v - s), _ = (g - o) * (g - o) + (m - s) * (m - s);
  64054. return y < _ ? (l[0] = p, l[1] = v, Math.sqrt(y)) : (l[0] = g, l[1] = m, Math.sqrt(_));
  64055. }
  64056. function KC(t, e, n, r, i, a, o, s) {
  64057. var l = i - t, u = a - e, c = n - t, f = r - e, d = Math.sqrt(c * c + f * f);
  64058. c /= d, f /= d;
  64059. var h = l * c + u * f, p = h / d;
  64060. s && (p = Math.min(Math.max(p, 0), 1)), p *= d;
  64061. var v = o[0] = t + p * c, g = o[1] = e + p * f;
  64062. return Math.sqrt((v - i) * (v - i) + (g - a) * (g - a));
  64063. }
  64064. function zce(t, e, n, r, i, a, o) {
  64065. n < 0 && (t = t + n, n = -n), r < 0 && (e = e + r, r = -r);
  64066. var s = t + n, l = e + r, u = o[0] = Math.min(Math.max(i, t), s), c = o[1] = Math.min(Math.max(a, e), l);
  64067. return Math.sqrt((u - i) * (u - i) + (c - a) * (c - a));
  64068. }
  64069. var Ps = [];
  64070. function GKe(t, e, n) {
  64071. var r = zce(e.x, e.y, e.width, e.height, t.x, t.y, Ps);
  64072. return n.set(Ps[0], Ps[1]), r;
  64073. }
  64074. function jKe(t, e, n) {
  64075. for (var r = 0, i = 0, a = 0, o = 0, s, l, u = 1 / 0, c = e.data, f = t.x, d = t.y, h = 0; h < c.length; ) {
  64076. var p = c[h++];
  64077. h === 1 && (r = c[h], i = c[h + 1], a = r, o = i);
  64078. var v = u;
  64079. switch (p) {
  64080. case $d.M:
  64081. a = c[h++], o = c[h++], r = a, i = o;
  64082. break;
  64083. case $d.L:
  64084. v = KC(r, i, c[h], c[h + 1], f, d, Ps, !0), r = c[h++], i = c[h++];
  64085. break;
  64086. case $d.C:
  64087. v = cse(r, i, c[h++], c[h++], c[h++], c[h++], c[h], c[h + 1], f, d, Ps), r = c[h++], i = c[h++];
  64088. break;
  64089. case $d.Q:
  64090. v = dse(r, i, c[h++], c[h++], c[h], c[h + 1], f, d, Ps), r = c[h++], i = c[h++];
  64091. break;
  64092. case $d.A:
  64093. var g = c[h++], m = c[h++], y = c[h++], _ = c[h++], O = c[h++], S = c[h++];
  64094. h += 1;
  64095. var x = !!(1 - c[h++]);
  64096. s = Math.cos(O) * y + g, l = Math.sin(O) * _ + m, h <= 1 && (a = s, o = l);
  64097. var C = (f - g) * _ / y + g;
  64098. v = HKe(g, m, _, O, O + S, x, C, d, Ps), r = Math.cos(O + S) * y + g, i = Math.sin(O + S) * _ + m;
  64099. break;
  64100. case $d.R:
  64101. a = r = c[h++], o = i = c[h++];
  64102. var P = c[h++], $ = c[h++];
  64103. v = zce(a, o, P, $, f, d, Ps);
  64104. break;
  64105. case $d.Z:
  64106. v = KC(r, i, a, o, f, d, Ps, !0), r = a, i = o;
  64107. break;
  64108. }
  64109. v < u && (u = v, n.set(Ps[0], Ps[1]));
  64110. }
  64111. return u;
  64112. }
  64113. var Is = new yt(), kn = new yt(), yr = new yt(), El = new yt(), wl = new yt();
  64114. function Xj(t, e) {
  64115. if (t) {
  64116. var n = t.getTextGuideLine(), r = t.getTextContent();
  64117. if (r && n) {
  64118. var i = t.textGuideLineConfig || {}, a = [[0, 0], [0, 0], [0, 0]], o = i.candidates || WKe, s = r.getBoundingRect().clone();
  64119. s.applyTransform(r.getComputedTransform());
  64120. var l = 1 / 0, u = i.anchor, c = t.getComputedTransform(), f = c && dp([], c), d = e.get("length2") || 0;
  64121. u && yr.copy(u);
  64122. for (var h = 0; h < o.length; h++) {
  64123. var p = o[h];
  64124. QKe(p, 0, s, Is, El), yt.scaleAndAdd(kn, Is, El, d), kn.transform(f);
  64125. var v = t.getBoundingRect(), g = u ? u.distance(kn) : t instanceof Dt ? jKe(kn, t.path, yr) : GKe(kn, v, yr);
  64126. g < l && (l = g, kn.transform(c), yr.transform(c), yr.toArray(a[0]), kn.toArray(a[1]), Is.toArray(a[2]));
  64127. }
  64128. Vce(a, e.get("minTurnAngle")), n.setShape({
  64129. points: a
  64130. });
  64131. }
  64132. }
  64133. }
  64134. var JC = [], ea = new yt();
  64135. function Vce(t, e) {
  64136. if (e <= 180 && e > 0) {
  64137. e = e / 180 * Math.PI, Is.fromArray(t[0]), kn.fromArray(t[1]), yr.fromArray(t[2]), yt.sub(El, Is, kn), yt.sub(wl, yr, kn);
  64138. var n = El.len(), r = wl.len();
  64139. if (!(n < 1e-3 || r < 1e-3)) {
  64140. El.scale(1 / n), wl.scale(1 / r);
  64141. var i = El.dot(wl), a = Math.cos(e);
  64142. if (a < i) {
  64143. var o = KC(kn.x, kn.y, yr.x, yr.y, Is.x, Is.y, JC, !1);
  64144. ea.fromArray(JC), ea.scaleAndAdd(wl, o / Math.tan(Math.PI - e));
  64145. var s = yr.x !== kn.x ? (ea.x - kn.x) / (yr.x - kn.x) : (ea.y - kn.y) / (yr.y - kn.y);
  64146. if (isNaN(s))
  64147. return;
  64148. s < 0 ? yt.copy(ea, kn) : s > 1 && yt.copy(ea, yr), ea.toArray(t[1]);
  64149. }
  64150. }
  64151. }
  64152. }
  64153. function ZKe(t, e, n) {
  64154. if (n <= 180 && n > 0) {
  64155. n = n / 180 * Math.PI, Is.fromArray(t[0]), kn.fromArray(t[1]), yr.fromArray(t[2]), yt.sub(El, kn, Is), yt.sub(wl, yr, kn);
  64156. var r = El.len(), i = wl.len();
  64157. if (!(r < 1e-3 || i < 1e-3)) {
  64158. El.scale(1 / r), wl.scale(1 / i);
  64159. var a = El.dot(e), o = Math.cos(n);
  64160. if (a < o) {
  64161. var s = KC(kn.x, kn.y, yr.x, yr.y, Is.x, Is.y, JC, !1);
  64162. ea.fromArray(JC);
  64163. var l = Math.PI / 2, u = Math.acos(wl.dot(e)), c = l + u - n;
  64164. if (c >= l)
  64165. yt.copy(ea, yr);
  64166. else {
  64167. ea.scaleAndAdd(wl, s / Math.tan(Math.PI / 2 - c));
  64168. var f = yr.x !== kn.x ? (ea.x - kn.x) / (yr.x - kn.x) : (ea.y - kn.y) / (yr.y - kn.y);
  64169. if (isNaN(f))
  64170. return;
  64171. f < 0 ? yt.copy(ea, kn) : f > 1 && yt.copy(ea, yr);
  64172. }
  64173. ea.toArray(t[1]);
  64174. }
  64175. }
  64176. }
  64177. }
  64178. function RM(t, e, n, r) {
  64179. var i = n === "normal", a = i ? t : t.ensureState(n);
  64180. a.ignore = e;
  64181. var o = r.get("smooth");
  64182. o && o === !0 && (o = 0.3), a.shape = a.shape || {}, o > 0 && (a.shape.smooth = o);
  64183. var s = r.getModel("lineStyle").getLineStyle();
  64184. i ? t.useStyle(s) : a.style = s;
  64185. }
  64186. function UKe(t, e) {
  64187. var n = e.smooth, r = e.points;
  64188. if (r)
  64189. if (t.moveTo(r[0][0], r[0][1]), n > 0 && r.length >= 3) {
  64190. var i = wu(r[0], r[1]), a = wu(r[1], r[2]);
  64191. if (!i || !a) {
  64192. t.lineTo(r[1][0], r[1][1]), t.lineTo(r[2][0], r[2][1]);
  64193. return;
  64194. }
  64195. var o = Math.min(i, a) * n, s = Yy([], r[1], r[0], o / i), l = Yy([], r[1], r[2], o / a), u = Yy([], s, l, 0.5);
  64196. t.bezierCurveTo(s[0], s[1], s[0], s[1], u[0], u[1]), t.bezierCurveTo(l[0], l[1], l[0], l[1], r[2][0], r[2][1]);
  64197. } else
  64198. for (var c = 1; c < r.length; c++)
  64199. t.lineTo(r[c][0], r[c][1]);
  64200. }
  64201. function A3(t, e, n) {
  64202. var r = t.getTextGuideLine(), i = t.getTextContent();
  64203. if (!i) {
  64204. r && t.removeTextGuideLine();
  64205. return;
  64206. }
  64207. for (var a = e.normal, o = a.get("show"), s = i.ignore, l = 0; l < Ub.length; l++) {
  64208. var u = Ub[l], c = e[u], f = u === "normal";
  64209. if (c) {
  64210. var d = c.get("show"), h = f ? s : dt(i.states[u] && i.states[u].ignore, s);
  64211. if (h || !dt(d, o)) {
  64212. var p = f ? r : r && r.states[u];
  64213. p && (p.ignore = !0), r && RM(r, !0, u, c);
  64214. continue;
  64215. }
  64216. r || (r = new va(), t.setTextGuideLine(r), !f && (s || !o) && RM(r, !0, "normal", e.normal), t.stateProxy && (r.stateProxy = t.stateProxy)), RM(r, !1, u, c);
  64217. }
  64218. }
  64219. if (r) {
  64220. it(r.style, n), r.style.fill = null;
  64221. var v = a.get("showAbove"), g = t.textGuideLineConfig = t.textGuideLineConfig || {};
  64222. g.showAbove = v || !1, r.buildPath = UKe;
  64223. }
  64224. }
  64225. function E3(t, e) {
  64226. e = e || "labelLine";
  64227. for (var n = {
  64228. normal: t.getModel(e)
  64229. }, r = 0; r < da.length; r++) {
  64230. var i = da[r];
  64231. n[i] = t.getModel([i, e]);
  64232. }
  64233. return n;
  64234. }
  64235. function Fce(t) {
  64236. for (var e = [], n = 0; n < t.length; n++) {
  64237. var r = t[n];
  64238. if (!r.defaultAttr.ignore) {
  64239. var i = r.label, a = i.getComputedTransform(), o = i.getBoundingRect(), s = !a || a[1] < 1e-5 && a[2] < 1e-5, l = i.style.margin || 0, u = o.clone();
  64240. u.applyTransform(a), u.x -= l / 2, u.y -= l / 2, u.width += l, u.height += l;
  64241. var c = s ? new DC(o, a) : null;
  64242. e.push({
  64243. label: i,
  64244. labelLine: r.labelLine,
  64245. rect: u,
  64246. localRect: o,
  64247. obb: c,
  64248. priority: r.priority,
  64249. defaultAttr: r.defaultAttr,
  64250. layoutOption: r.computedLayoutOption,
  64251. axisAligned: s,
  64252. transform: a
  64253. });
  64254. }
  64255. }
  64256. return e;
  64257. }
  64258. function Wce(t, e, n, r, i, a) {
  64259. var o = t.length;
  64260. if (o < 2)
  64261. return;
  64262. t.sort(function(P, $) {
  64263. return P.rect[e] - $.rect[e];
  64264. });
  64265. for (var s = 0, l, u = !1, c = 0, f = 0; f < o; f++) {
  64266. var d = t[f], h = d.rect;
  64267. l = h[e] - s, l < 0 && (h[e] -= l, d.label[e] -= l, u = !0);
  64268. var p = Math.max(-l, 0);
  64269. c += p, s = h[e] + h[n];
  64270. }
  64271. c > 0 && a && S(-c / o, 0, o);
  64272. var v = t[0], g = t[o - 1], m, y;
  64273. _(), m < 0 && x(-m, 0.8), y < 0 && x(y, 0.8), _(), O(m, y, 1), O(y, m, -1), _(), m < 0 && C(-m), y < 0 && C(y);
  64274. function _() {
  64275. m = v.rect[e] - r, y = i - g.rect[e] - g.rect[n];
  64276. }
  64277. function O(P, $, T) {
  64278. if (P < 0) {
  64279. var E = Math.min($, -P);
  64280. if (E > 0) {
  64281. S(E * T, 0, o);
  64282. var M = E + P;
  64283. M < 0 && x(-M * T, 1);
  64284. } else
  64285. x(-P * T, 1);
  64286. }
  64287. }
  64288. function S(P, $, T) {
  64289. P !== 0 && (u = !0);
  64290. for (var E = $; E < T; E++) {
  64291. var M = t[E], R = M.rect;
  64292. R[e] += P, M.label[e] += P;
  64293. }
  64294. }
  64295. function x(P, $) {
  64296. for (var T = [], E = 0, M = 1; M < o; M++) {
  64297. var R = t[M - 1].rect, N = Math.max(t[M].rect[e] - R[e] - R[n], 0);
  64298. T.push(N), E += N;
  64299. }
  64300. if (E) {
  64301. var I = Math.min(Math.abs(P) / E, $);
  64302. if (P > 0)
  64303. for (var M = 0; M < o - 1; M++) {
  64304. var B = T[M] * I;
  64305. S(B, 0, M + 1);
  64306. }
  64307. else
  64308. for (var M = o - 1; M > 0; M--) {
  64309. var B = T[M - 1] * I;
  64310. S(-B, M, o);
  64311. }
  64312. }
  64313. }
  64314. function C(P) {
  64315. var $ = P < 0 ? -1 : 1;
  64316. P = Math.abs(P);
  64317. for (var T = Math.ceil(P / (o - 1)), E = 0; E < o - 1; E++)
  64318. if ($ > 0 ? S(T, 0, E + 1) : S(-T, o - E - 1, o), P -= T, P <= 0)
  64319. return;
  64320. }
  64321. return u;
  64322. }
  64323. function XKe(t, e, n, r) {
  64324. return Wce(t, "x", "width", e, n, r);
  64325. }
  64326. function Qce(t, e, n, r) {
  64327. return Wce(t, "y", "height", e, n, r);
  64328. }
  64329. function Hce(t) {
  64330. var e = [];
  64331. t.sort(function(v, g) {
  64332. return g.priority - v.priority;
  64333. });
  64334. var n = new bt(0, 0, 0, 0);
  64335. function r(v) {
  64336. if (!v.ignore) {
  64337. var g = v.ensureState("emphasis");
  64338. g.ignore == null && (g.ignore = !1);
  64339. }
  64340. v.ignore = !0;
  64341. }
  64342. for (var i = 0; i < t.length; i++) {
  64343. var a = t[i], o = a.axisAligned, s = a.localRect, l = a.transform, u = a.label, c = a.labelLine;
  64344. n.copy(a.rect), n.width -= 0.1, n.height -= 0.1, n.x += 0.05, n.y += 0.05;
  64345. for (var f = a.obb, d = !1, h = 0; h < e.length; h++) {
  64346. var p = e[h];
  64347. if (n.intersect(p.rect)) {
  64348. if (o && p.axisAligned) {
  64349. d = !0;
  64350. break;
  64351. }
  64352. if (p.obb || (p.obb = new DC(p.localRect, p.transform)), f || (f = new DC(s, l)), f.intersect(p.obb)) {
  64353. d = !0;
  64354. break;
  64355. }
  64356. }
  64357. }
  64358. d ? (r(u), c && r(c)) : (u.attr("ignore", a.defaultAttr.ignore), c && c.attr("ignore", a.defaultAttr.labelGuideIgnore), e.push(a));
  64359. }
  64360. }
  64361. function YKe(t) {
  64362. if (t) {
  64363. for (var e = [], n = 0; n < t.length; n++)
  64364. e.push(t[n].slice());
  64365. return e;
  64366. }
  64367. }
  64368. function qKe(t, e) {
  64369. var n = t.label, r = e && e.getTextGuideLine();
  64370. return {
  64371. dataIndex: t.dataIndex,
  64372. dataType: t.dataType,
  64373. seriesIndex: t.seriesModel.seriesIndex,
  64374. text: t.label.style.text,
  64375. rect: t.hostRect,
  64376. labelRect: t.rect,
  64377. // x: labelAttr.x,
  64378. // y: labelAttr.y,
  64379. align: n.style.align,
  64380. verticalAlign: n.style.verticalAlign,
  64381. labelLinePoints: YKe(r && r.shape.points)
  64382. };
  64383. }
  64384. var Yj = ["align", "verticalAlign", "width", "height", "fontSize"], Yi = new Pu(), kM = Ut(), KKe = Ut();
  64385. function RS(t, e, n) {
  64386. for (var r = 0; r < n.length; r++) {
  64387. var i = n[r];
  64388. e[i] != null && (t[i] = e[i]);
  64389. }
  64390. }
  64391. var kS = ["x", "y", "rotation"], JKe = (
  64392. /** @class */
  64393. function() {
  64394. function t() {
  64395. this._labelList = [], this._chartViewList = [];
  64396. }
  64397. return t.prototype.clearLabels = function() {
  64398. this._labelList = [], this._chartViewList = [];
  64399. }, t.prototype._addLabel = function(e, n, r, i, a) {
  64400. var o = i.style, s = i.__hostTarget, l = s.textConfig || {}, u = i.getComputedTransform(), c = i.getBoundingRect().plain();
  64401. bt.applyTransform(c, c, u), u ? Yi.setLocalTransform(u) : (Yi.x = Yi.y = Yi.rotation = Yi.originX = Yi.originY = 0, Yi.scaleX = Yi.scaleY = 1), Yi.rotation = oo(Yi.rotation);
  64402. var f = i.__hostTarget, d;
  64403. if (f) {
  64404. d = f.getBoundingRect().plain();
  64405. var h = f.getComputedTransform();
  64406. bt.applyTransform(d, d, h);
  64407. }
  64408. var p = d && f.getTextGuideLine();
  64409. this._labelList.push({
  64410. label: i,
  64411. labelLine: p,
  64412. seriesModel: r,
  64413. dataIndex: e,
  64414. dataType: n,
  64415. layoutOption: a,
  64416. computedLayoutOption: null,
  64417. rect: c,
  64418. hostRect: d,
  64419. // Label with lower priority will be hidden when overlapped
  64420. // Use rect size as default priority
  64421. priority: d ? d.width * d.height : 0,
  64422. // Save default label attributes.
  64423. // For restore if developers want get back to default value in callback.
  64424. defaultAttr: {
  64425. ignore: i.ignore,
  64426. labelGuideIgnore: p && p.ignore,
  64427. x: Yi.x,
  64428. y: Yi.y,
  64429. scaleX: Yi.scaleX,
  64430. scaleY: Yi.scaleY,
  64431. rotation: Yi.rotation,
  64432. style: {
  64433. x: o.x,
  64434. y: o.y,
  64435. align: o.align,
  64436. verticalAlign: o.verticalAlign,
  64437. width: o.width,
  64438. height: o.height,
  64439. fontSize: o.fontSize
  64440. },
  64441. cursor: i.cursor,
  64442. attachedPos: l.position,
  64443. attachedRot: l.rotation
  64444. }
  64445. });
  64446. }, t.prototype.addLabelsOfSeries = function(e) {
  64447. var n = this;
  64448. this._chartViewList.push(e);
  64449. var r = e.__model, i = r.get("labelLayout");
  64450. (qe(i) || kt(i).length) && e.group.traverse(function(a) {
  64451. if (a.ignore)
  64452. return !0;
  64453. var o = a.getTextContent(), s = ft(a);
  64454. o && !o.disableLabelLayout && n._addLabel(s.dataIndex, s.dataType, r, o, i);
  64455. });
  64456. }, t.prototype.updateLayoutConfig = function(e) {
  64457. var n = e.getWidth(), r = e.getHeight();
  64458. function i(_, O) {
  64459. return function() {
  64460. Xj(_, O);
  64461. };
  64462. }
  64463. for (var a = 0; a < this._labelList.length; a++) {
  64464. var o = this._labelList[a], s = o.label, l = s.__hostTarget, u = o.defaultAttr, c = void 0;
  64465. qe(o.layoutOption) ? c = o.layoutOption(qKe(o, l)) : c = o.layoutOption, c = c || {}, o.computedLayoutOption = c;
  64466. var f = Math.PI / 180;
  64467. l && l.setTextConfig({
  64468. // Force to set local false.
  64469. local: !1,
  64470. // Ignore position and rotation config on the host el if x or y is changed.
  64471. position: c.x != null || c.y != null ? null : u.attachedPos,
  64472. // Ignore rotation config on the host el if rotation is changed.
  64473. rotation: c.rotate != null ? c.rotate * f : u.attachedRot,
  64474. offset: [c.dx || 0, c.dy || 0]
  64475. });
  64476. var d = !1;
  64477. if (c.x != null ? (s.x = ze(c.x, n), s.setStyle("x", 0), d = !0) : (s.x = u.x, s.setStyle("x", u.style.x)), c.y != null ? (s.y = ze(c.y, r), s.setStyle("y", 0), d = !0) : (s.y = u.y, s.setStyle("y", u.style.y)), c.labelLinePoints) {
  64478. var h = l.getTextGuideLine();
  64479. h && (h.setShape({
  64480. points: c.labelLinePoints
  64481. }), d = !1);
  64482. }
  64483. var p = kM(s);
  64484. p.needsUpdateLabelLine = d, s.rotation = c.rotate != null ? c.rotate * f : u.rotation, s.scaleX = u.scaleX, s.scaleY = u.scaleY;
  64485. for (var v = 0; v < Yj.length; v++) {
  64486. var g = Yj[v];
  64487. s.setStyle(g, c[g] != null ? c[g] : u.style[g]);
  64488. }
  64489. if (c.draggable) {
  64490. if (s.draggable = !0, s.cursor = "move", l) {
  64491. var m = o.seriesModel;
  64492. if (o.dataIndex != null) {
  64493. var y = o.seriesModel.getData(o.dataType);
  64494. m = y.getItemModel(o.dataIndex);
  64495. }
  64496. s.on("drag", i(l, m.getModel("labelLine")));
  64497. }
  64498. } else
  64499. s.off("drag"), s.cursor = u.cursor;
  64500. }
  64501. }, t.prototype.layout = function(e) {
  64502. var n = e.getWidth(), r = e.getHeight(), i = Fce(this._labelList), a = yn(i, function(l) {
  64503. return l.layoutOption.moveOverlap === "shiftX";
  64504. }), o = yn(i, function(l) {
  64505. return l.layoutOption.moveOverlap === "shiftY";
  64506. });
  64507. XKe(a, 0, n), Qce(o, 0, r);
  64508. var s = yn(i, function(l) {
  64509. return l.layoutOption.hideOverlap;
  64510. });
  64511. Hce(s);
  64512. }, t.prototype.processLabelsOverall = function() {
  64513. var e = this;
  64514. F(this._chartViewList, function(n) {
  64515. var r = n.__model, i = n.ignoreLabelLineUpdate, a = r.isAnimationEnabled();
  64516. n.group.traverse(function(o) {
  64517. if (o.ignore && !o.forceLabelAnimation)
  64518. return !0;
  64519. var s = !i, l = o.getTextContent();
  64520. !s && l && (s = kM(l).needsUpdateLabelLine), s && e._updateLabelLine(o, r), a && e._animateLabels(o, r);
  64521. });
  64522. });
  64523. }, t.prototype._updateLabelLine = function(e, n) {
  64524. var r = e.getTextContent(), i = ft(e), a = i.dataIndex;
  64525. if (r && a != null) {
  64526. var o = n.getData(i.dataType), s = o.getItemModel(a), l = {}, u = o.getItemVisual(a, "style");
  64527. if (u) {
  64528. var c = o.getVisual("drawType");
  64529. l.stroke = u[c];
  64530. }
  64531. var f = s.getModel("labelLine");
  64532. A3(e, E3(s), l), Xj(e, f);
  64533. }
  64534. }, t.prototype._animateLabels = function(e, n) {
  64535. var r = e.getTextContent(), i = e.getTextGuideLine();
  64536. if (r && (e.forceLabelAnimation || !r.ignore && !r.invisible && !e.disableLabelAnimation && !qv(e))) {
  64537. var a = kM(r), o = a.oldLayout, s = ft(e), l = s.dataIndex, u = {
  64538. x: r.x,
  64539. y: r.y,
  64540. rotation: r.rotation
  64541. }, c = n.getData(s.dataType);
  64542. if (o) {
  64543. r.attr(o);
  64544. var d = e.prevStates;
  64545. d && (St(d, "select") >= 0 && r.attr(a.oldLayoutSelect), St(d, "emphasis") >= 0 && r.attr(a.oldLayoutEmphasis)), tn(r, u, n, l);
  64546. } else if (r.attr(u), !wm(r).valueAnimation) {
  64547. var f = dt(r.style.opacity, 1);
  64548. r.style.opacity = 0, Vn(r, {
  64549. style: {
  64550. opacity: f
  64551. }
  64552. }, n, l);
  64553. }
  64554. if (a.oldLayout = u, r.states.select) {
  64555. var h = a.oldLayoutSelect = {};
  64556. RS(h, u, kS), RS(h, r.states.select, kS);
  64557. }
  64558. if (r.states.emphasis) {
  64559. var p = a.oldLayoutEmphasis = {};
  64560. RS(p, u, kS), RS(p, r.states.emphasis, kS);
  64561. }
  64562. Nle(r, l, c, n, n);
  64563. }
  64564. if (i && !i.ignore && !i.invisible) {
  64565. var a = KKe(i), o = a.oldLayout, v = {
  64566. points: i.shape.points
  64567. };
  64568. o ? (i.attr({
  64569. shape: o
  64570. }), tn(i, {
  64571. shape: v
  64572. }, n)) : (i.setShape(v), i.style.strokePercent = 0, Vn(i, {
  64573. style: {
  64574. strokePercent: 1
  64575. }
  64576. }, n)), a.oldLayout = v;
  64577. }
  64578. }, t;
  64579. }()
  64580. ), LM = Ut();
  64581. function eJe(t) {
  64582. t.registerUpdateLifecycle("series:beforeupdate", function(e, n, r) {
  64583. var i = LM(n).labelManager;
  64584. i || (i = LM(n).labelManager = new JKe()), i.clearLabels();
  64585. }), t.registerUpdateLifecycle("series:layoutlabels", function(e, n, r) {
  64586. var i = LM(n).labelManager;
  64587. r.updatedSeries.forEach(function(a) {
  64588. i.addLabelsOfSeries(n.getViewOfSeriesModel(a));
  64589. }), i.updateLayoutConfig(n), i.layout(n), i.processLabelsOverall();
  64590. });
  64591. }
  64592. var NM = Math.sin, BM = Math.cos, Gce = Math.PI, Ad = Math.PI * 2, tJe = 180 / Gce, jce = function() {
  64593. function t() {
  64594. }
  64595. return t.prototype.reset = function(e) {
  64596. this._start = !0, this._d = [], this._str = "", this._p = Math.pow(10, e || 4);
  64597. }, t.prototype.moveTo = function(e, n) {
  64598. this._add("M", e, n);
  64599. }, t.prototype.lineTo = function(e, n) {
  64600. this._add("L", e, n);
  64601. }, t.prototype.bezierCurveTo = function(e, n, r, i, a, o) {
  64602. this._add("C", e, n, r, i, a, o);
  64603. }, t.prototype.quadraticCurveTo = function(e, n, r, i) {
  64604. this._add("Q", e, n, r, i);
  64605. }, t.prototype.arc = function(e, n, r, i, a, o) {
  64606. this.ellipse(e, n, r, r, 0, i, a, o);
  64607. }, t.prototype.ellipse = function(e, n, r, i, a, o, s, l) {
  64608. var u = s - o, c = !l, f = Math.abs(u), d = Gc(f - Ad) || (c ? u >= Ad : -u >= Ad), h = u > 0 ? u % Ad : u % Ad + Ad, p = !1;
  64609. d ? p = !0 : Gc(f) ? p = !1 : p = h >= Gce == !!c;
  64610. var v = e + r * BM(o), g = n + i * NM(o);
  64611. this._start && this._add("M", v, g);
  64612. var m = Math.round(a * tJe);
  64613. if (d) {
  64614. var y = 1 / this._p, _ = (c ? 1 : -1) * (Ad - y);
  64615. this._add("A", r, i, m, 1, +c, e + r * BM(o + _), n + i * NM(o + _)), y > 0.01 && this._add("A", r, i, m, 0, +c, v, g);
  64616. } else {
  64617. var O = e + r * BM(s), S = n + i * NM(s);
  64618. this._add("A", r, i, m, +p, +c, O, S);
  64619. }
  64620. }, t.prototype.rect = function(e, n, r, i) {
  64621. this._add("M", e, n), this._add("l", r, 0), this._add("l", 0, i), this._add("l", -r, 0), this._add("Z");
  64622. }, t.prototype.closePath = function() {
  64623. this._d.length > 0 && this._add("Z");
  64624. }, t.prototype._add = function(e, n, r, i, a, o, s, l, u) {
  64625. for (var c = [], f = this._p, d = 1; d < arguments.length; d++) {
  64626. var h = arguments[d];
  64627. if (isNaN(h)) {
  64628. this._invalid = !0;
  64629. return;
  64630. }
  64631. c.push(Math.round(h * f) / f);
  64632. }
  64633. this._d.push(e + c.join(" ")), this._start = e === "Z";
  64634. }, t.prototype.generateStr = function() {
  64635. this._str = this._invalid ? "" : this._d.join(""), this._d = [];
  64636. }, t.prototype.getStr = function() {
  64637. return this._str;
  64638. }, t;
  64639. }(), M3 = "none", nJe = Math.round;
  64640. function rJe(t) {
  64641. var e = t.fill;
  64642. return e != null && e !== M3;
  64643. }
  64644. function iJe(t) {
  64645. var e = t.stroke;
  64646. return e != null && e !== M3;
  64647. }
  64648. var tL = ["lineCap", "miterLimit", "lineJoin"], aJe = Ce(tL, function(t) {
  64649. return "stroke-" + t.toLowerCase();
  64650. });
  64651. function oJe(t, e, n, r) {
  64652. var i = e.opacity == null ? 1 : e.opacity;
  64653. if (n instanceof ci) {
  64654. t("opacity", i);
  64655. return;
  64656. }
  64657. if (rJe(e)) {
  64658. var a = Zb(e.fill);
  64659. t("fill", a.color);
  64660. var o = e.fillOpacity != null ? e.fillOpacity * a.opacity * i : a.opacity * i;
  64661. o < 1 && t("fill-opacity", o);
  64662. } else
  64663. t("fill", M3);
  64664. if (iJe(e)) {
  64665. var s = Zb(e.stroke);
  64666. t("stroke", s.color);
  64667. var l = e.strokeNoScale ? n.getLineScale() : 1, u = l ? (e.lineWidth || 0) / l : 0, c = e.strokeOpacity != null ? e.strokeOpacity * s.opacity * i : s.opacity * i, f = e.strokeFirst;
  64668. if (u !== 1 && t("stroke-width", u), f && t("paint-order", f ? "stroke" : "fill"), c < 1 && t("stroke-opacity", c), e.lineDash) {
  64669. var d = f3(n), h = d[0], p = d[1];
  64670. h && (p = nJe(p || 0), t("stroke-dasharray", h.join(",")), (p || r) && t("stroke-dashoffset", p));
  64671. }
  64672. for (var v = 0; v < tL.length; v++) {
  64673. var g = tL[v];
  64674. if (e[g] !== MC[g]) {
  64675. var m = e[g] || MC[g];
  64676. m && t(aJe[v], m);
  64677. }
  64678. }
  64679. }
  64680. }
  64681. var Zce = "http://www.w3.org/2000/svg", Uce = "http://www.w3.org/1999/xlink", sJe = "http://www.w3.org/2000/xmlns/", lJe = "http://www.w3.org/XML/1998/namespace", qj = "ecmeta_";
  64682. function Xce(t) {
  64683. return document.createElementNS(Zce, t);
  64684. }
  64685. function Yr(t, e, n, r, i) {
  64686. return {
  64687. tag: t,
  64688. attrs: n || {},
  64689. children: r,
  64690. text: i,
  64691. key: e
  64692. };
  64693. }
  64694. function uJe(t, e) {
  64695. var n = [];
  64696. if (e)
  64697. for (var r in e) {
  64698. var i = e[r], a = r;
  64699. i !== !1 && (i !== !0 && i != null && (a += '="' + i + '"'), n.push(a));
  64700. }
  64701. return "<" + t + " " + n.join(" ") + ">";
  64702. }
  64703. function cJe(t) {
  64704. return "</" + t + ">";
  64705. }
  64706. function I3(t, e) {
  64707. e = e || {};
  64708. var n = e.newline ? `
  64709. ` : "";
  64710. function r(i) {
  64711. var a = i.children, o = i.tag, s = i.attrs, l = i.text;
  64712. return uJe(o, s) + (o !== "style" ? ta(l) : l || "") + (a ? "" + n + Ce(a, function(u) {
  64713. return r(u);
  64714. }).join(n) + n : "") + cJe(o);
  64715. }
  64716. return r(t);
  64717. }
  64718. function fJe(t, e, n) {
  64719. n = n || {};
  64720. var r = n.newline ? `
  64721. ` : "", i = " {" + r, a = r + "}", o = Ce(kt(t), function(l) {
  64722. return l + i + Ce(kt(t[l]), function(u) {
  64723. return u + ":" + t[l][u] + ";";
  64724. }).join(r) + a;
  64725. }).join(r), s = Ce(kt(e), function(l) {
  64726. return "@keyframes " + l + i + Ce(kt(e[l]), function(u) {
  64727. return u + i + Ce(kt(e[l][u]), function(c) {
  64728. var f = e[l][u][c];
  64729. return c === "d" && (f = 'path("' + f + '")'), c + ":" + f + ";";
  64730. }).join(r) + a;
  64731. }).join(r) + a;
  64732. }).join(r);
  64733. return !o && !s ? "" : ["<![CDATA[", o, s, "]]>"].join(r);
  64734. }
  64735. function nL(t) {
  64736. return {
  64737. zrId: t,
  64738. shadowCache: {},
  64739. patternCache: {},
  64740. gradientCache: {},
  64741. clipPathCache: {},
  64742. defs: {},
  64743. cssNodes: {},
  64744. cssAnims: {},
  64745. cssStyleCache: {},
  64746. cssAnimIdx: 0,
  64747. shadowIdx: 0,
  64748. gradientIdx: 0,
  64749. patternIdx: 0,
  64750. clipPathIdx: 0
  64751. };
  64752. }
  64753. function Kj(t, e, n, r) {
  64754. return Yr("svg", "root", {
  64755. width: t,
  64756. height: e,
  64757. xmlns: Zce,
  64758. "xmlns:xlink": Uce,
  64759. version: "1.1",
  64760. baseProfile: "full",
  64761. viewBox: r ? "0 0 " + t + " " + e : !1
  64762. }, n);
  64763. }
  64764. var dJe = 0;
  64765. function Yce() {
  64766. return dJe++;
  64767. }
  64768. var Jj = {
  64769. cubicIn: "0.32,0,0.67,0",
  64770. cubicOut: "0.33,1,0.68,1",
  64771. cubicInOut: "0.65,0,0.35,1",
  64772. quadraticIn: "0.11,0,0.5,0",
  64773. quadraticOut: "0.5,1,0.89,1",
  64774. quadraticInOut: "0.45,0,0.55,1",
  64775. quarticIn: "0.5,0,0.75,0",
  64776. quarticOut: "0.25,1,0.5,1",
  64777. quarticInOut: "0.76,0,0.24,1",
  64778. quinticIn: "0.64,0,0.78,0",
  64779. quinticOut: "0.22,1,0.36,1",
  64780. quinticInOut: "0.83,0,0.17,1",
  64781. sinusoidalIn: "0.12,0,0.39,0",
  64782. sinusoidalOut: "0.61,1,0.88,1",
  64783. sinusoidalInOut: "0.37,0,0.63,1",
  64784. exponentialIn: "0.7,0,0.84,0",
  64785. exponentialOut: "0.16,1,0.3,1",
  64786. exponentialInOut: "0.87,0,0.13,1",
  64787. circularIn: "0.55,0,1,0.45",
  64788. circularOut: "0,0.55,0.45,1",
  64789. circularInOut: "0.85,0,0.15,1"
  64790. }, kd = "transform-origin";
  64791. function hJe(t, e, n) {
  64792. var r = _e({}, t.shape);
  64793. _e(r, e), t.buildPath(n, r);
  64794. var i = new jce();
  64795. return i.reset(bse(t)), n.rebuildPath(i, 1), i.generateStr(), i.getStr();
  64796. }
  64797. function pJe(t, e) {
  64798. var n = e.originX, r = e.originY;
  64799. (n || r) && (t[kd] = n + "px " + r + "px");
  64800. }
  64801. var vJe = {
  64802. fill: "fill",
  64803. opacity: "opacity",
  64804. lineWidth: "stroke-width",
  64805. lineDashOffset: "stroke-dashoffset"
  64806. };
  64807. function qce(t, e) {
  64808. var n = e.zrId + "-ani-" + e.cssAnimIdx++;
  64809. return e.cssAnims[n] = t, n;
  64810. }
  64811. function gJe(t, e, n) {
  64812. var r = t.shape.paths, i = {}, a, o;
  64813. if (F(r, function(l) {
  64814. var u = nL(n.zrId);
  64815. u.animation = !0, WP(l, {}, u, !0);
  64816. var c = u.cssAnims, f = u.cssNodes, d = kt(c), h = d.length;
  64817. if (h) {
  64818. o = d[h - 1];
  64819. var p = c[o];
  64820. for (var v in p) {
  64821. var g = p[v];
  64822. i[v] = i[v] || { d: "" }, i[v].d += g.d || "";
  64823. }
  64824. for (var m in f) {
  64825. var y = f[m].animation;
  64826. y.indexOf(o) >= 0 && (a = y);
  64827. }
  64828. }
  64829. }), !!a) {
  64830. e.d = !1;
  64831. var s = qce(i, n);
  64832. return a.replace(o, s);
  64833. }
  64834. }
  64835. function eZ(t) {
  64836. return Ve(t) ? Jj[t] ? "cubic-bezier(" + Jj[t] + ")" : S5(t) ? t : "" : "";
  64837. }
  64838. function WP(t, e, n, r) {
  64839. var i = t.animators, a = i.length, o = [];
  64840. if (t instanceof xP) {
  64841. var s = gJe(t, e, n);
  64842. if (s)
  64843. o.push(s);
  64844. else if (!a)
  64845. return;
  64846. } else if (!a)
  64847. return;
  64848. for (var l = {}, u = 0; u < a; u++) {
  64849. var c = i[u], f = [c.getMaxTime() / 1e3 + "s"], d = eZ(c.getClip().easing), h = c.getDelay();
  64850. d ? f.push(d) : f.push("linear"), h && f.push(h / 1e3 + "s"), c.getLoop() && f.push("infinite");
  64851. var p = f.join(" ");
  64852. l[p] = l[p] || [p, []], l[p][1].push(c);
  64853. }
  64854. function v(y) {
  64855. var _ = y[1], O = _.length, S = {}, x = {}, C = {}, P = "animation-timing-function";
  64856. function $(he, re, q) {
  64857. for (var K = he.getTracks(), de = he.getMaxTime(), xe = 0; xe < K.length; xe++) {
  64858. var we = K[xe];
  64859. if (we.needsAnimate()) {
  64860. var He = we.keyframes, je = we.propName;
  64861. if (q && (je = q(je)), je)
  64862. for (var Be = 0; Be < He.length; Be++) {
  64863. var Le = He[Be], Pe = Math.round(Le.time / de * 100) + "%", Fe = eZ(Le.easing), Ye = Le.rawValue;
  64864. (Ve(Ye) || Kt(Ye)) && (re[Pe] = re[Pe] || {}, re[Pe][je] = Le.rawValue, Fe && (re[Pe][P] = Fe));
  64865. }
  64866. }
  64867. }
  64868. }
  64869. for (var T = 0; T < O; T++) {
  64870. var E = _[T], M = E.targetName;
  64871. M ? M === "shape" && $(E, x) : !r && $(E, S);
  64872. }
  64873. for (var R in S) {
  64874. var N = {};
  64875. wse(N, t), _e(N, S[R]);
  64876. var I = _se(N), B = S[R][P];
  64877. C[R] = I ? {
  64878. transform: I
  64879. } : {}, pJe(C[R], N), B && (C[R][P] = B);
  64880. }
  64881. var Q, W = !0;
  64882. for (var R in x) {
  64883. C[R] = C[R] || {};
  64884. var H = !Q, B = x[R][P];
  64885. H && (Q = new jl());
  64886. var U = Q.len();
  64887. Q.reset(), C[R].d = hJe(t, x[R], Q);
  64888. var j = Q.len();
  64889. if (!H && U !== j) {
  64890. W = !1;
  64891. break;
  64892. }
  64893. B && (C[R][P] = B);
  64894. }
  64895. if (!W)
  64896. for (var R in C)
  64897. delete C[R].d;
  64898. if (!r)
  64899. for (var T = 0; T < O; T++) {
  64900. var E = _[T], M = E.targetName;
  64901. M === "style" && $(E, C, function(K) {
  64902. return vJe[K];
  64903. });
  64904. }
  64905. for (var Y = kt(C), ne = !0, fe, T = 1; T < Y.length; T++) {
  64906. var ue = Y[T - 1], ye = Y[T];
  64907. if (C[ue][kd] !== C[ye][kd]) {
  64908. ne = !1;
  64909. break;
  64910. }
  64911. fe = C[ue][kd];
  64912. }
  64913. if (ne && fe) {
  64914. for (var R in C)
  64915. C[R][kd] && delete C[R][kd];
  64916. e[kd] = fe;
  64917. }
  64918. if (yn(Y, function(he) {
  64919. return kt(C[he]).length > 0;
  64920. }).length) {
  64921. var se = qce(C, n);
  64922. return se + " " + y[0] + " both";
  64923. }
  64924. }
  64925. for (var g in l) {
  64926. var s = v(l[g]);
  64927. s && o.push(s);
  64928. }
  64929. if (o.length) {
  64930. var m = n.zrId + "-cls-" + Yce();
  64931. n.cssNodes["." + m] = {
  64932. animation: o.join(",")
  64933. }, e.class = m;
  64934. }
  64935. }
  64936. function mJe(t, e, n) {
  64937. if (!t.ignore)
  64938. if (t.isSilent()) {
  64939. var r = {
  64940. "pointer-events": "none"
  64941. };
  64942. tZ(r, e, n);
  64943. } else {
  64944. var i = t.states.emphasis && t.states.emphasis.style ? t.states.emphasis.style : {}, a = i.fill;
  64945. if (!a) {
  64946. var o = t.style && t.style.fill, s = t.states.select && t.states.select.style && t.states.select.style.fill, l = t.currentStates.indexOf("select") >= 0 && s || o;
  64947. l && (a = TC(l));
  64948. }
  64949. var u = i.lineWidth;
  64950. if (u) {
  64951. var c = !i.strokeNoScale && t.transform ? t.transform[0] : 1;
  64952. u = u / c;
  64953. }
  64954. var r = {
  64955. cursor: "pointer"
  64956. };
  64957. a && (r.fill = a), i.stroke && (r.stroke = i.stroke), u && (r["stroke-width"] = u), tZ(r, e, n);
  64958. }
  64959. }
  64960. function tZ(t, e, n, r) {
  64961. var i = JSON.stringify(t), a = n.cssStyleCache[i];
  64962. a || (a = n.zrId + "-cls-" + Yce(), n.cssStyleCache[i] = a, n.cssNodes["." + a + ":hover"] = t), e.class = e.class ? e.class + " " + a : a;
  64963. }
  64964. var r_ = Math.round;
  64965. function Kce(t) {
  64966. return t && Ve(t.src);
  64967. }
  64968. function Jce(t) {
  64969. return t && qe(t.toDataURL);
  64970. }
  64971. function D3(t, e, n, r) {
  64972. oJe(function(i, a) {
  64973. var o = i === "fill" || i === "stroke";
  64974. o && yse(a) ? tfe(e, t, i, r) : o && w5(a) ? nfe(n, t, i, r) : o && a === "none" ? t[i] = "transparent" : t[i] = a;
  64975. }, e, n, !1), wJe(n, t, r);
  64976. }
  64977. function R3(t, e) {
  64978. var n = $se(e);
  64979. n && (n.each(function(r, i) {
  64980. r != null && (t[(qj + i).toLowerCase()] = r + "");
  64981. }), e.isSilent() && (t[qj + "silent"] = "true"));
  64982. }
  64983. function nZ(t) {
  64984. return Gc(t[0] - 1) && Gc(t[1]) && Gc(t[2]) && Gc(t[3] - 1);
  64985. }
  64986. function yJe(t) {
  64987. return Gc(t[4]) && Gc(t[5]);
  64988. }
  64989. function k3(t, e, n) {
  64990. if (e && !(yJe(e) && nZ(e))) {
  64991. var r = 1e4;
  64992. t.transform = nZ(e) ? "translate(" + r_(e[4] * r) / r + " " + r_(e[5] * r) / r + ")" : fGe(e);
  64993. }
  64994. }
  64995. function rZ(t, e, n) {
  64996. for (var r = t.points, i = [], a = 0; a < r.length; a++)
  64997. i.push(r_(r[a][0] * n) / n), i.push(r_(r[a][1] * n) / n);
  64998. e.points = i.join(" ");
  64999. }
  65000. function iZ(t) {
  65001. return !t.smooth;
  65002. }
  65003. function bJe(t) {
  65004. var e = Ce(t, function(n) {
  65005. return typeof n == "string" ? [n, n] : n;
  65006. });
  65007. return function(n, r, i) {
  65008. for (var a = 0; a < e.length; a++) {
  65009. var o = e[a], s = n[o[0]];
  65010. s != null && (r[o[1]] = r_(s * i) / i);
  65011. }
  65012. };
  65013. }
  65014. var _Je = {
  65015. circle: [bJe(["cx", "cy", "r"])],
  65016. polyline: [rZ, iZ],
  65017. polygon: [rZ, iZ]
  65018. };
  65019. function OJe(t) {
  65020. for (var e = t.animators, n = 0; n < e.length; n++)
  65021. if (e[n].targetName === "shape")
  65022. return !0;
  65023. return !1;
  65024. }
  65025. function efe(t, e) {
  65026. var n = t.style, r = t.shape, i = _Je[t.type], a = {}, o = e.animation, s = "path", l = t.style.strokePercent, u = e.compress && bse(t) || 4;
  65027. if (i && !e.willUpdate && !(i[1] && !i[1](r)) && !(o && OJe(t)) && !(l < 1)) {
  65028. s = t.type;
  65029. var c = Math.pow(10, u);
  65030. i[0](r, a, c);
  65031. } else {
  65032. var f = !t.path || t.shapeChanged();
  65033. t.path || t.createPathProxy();
  65034. var d = t.path;
  65035. f && (d.beginPath(), t.buildPath(d, t.shape), t.pathUpdated());
  65036. var h = d.getVersion(), p = t, v = p.__svgPathBuilder;
  65037. (p.__svgPathVersion !== h || !v || l !== p.__svgPathStrokePercent) && (v || (v = p.__svgPathBuilder = new jce()), v.reset(u), d.rebuildPath(v, l), v.generateStr(), p.__svgPathVersion = h, p.__svgPathStrokePercent = l), a.d = v.getStr();
  65038. }
  65039. return k3(a, t.transform), D3(a, n, t, e), R3(a, t), e.animation && WP(t, a, e), e.emphasis && mJe(t, a, e), Yr(s, t.id + "", a);
  65040. }
  65041. function SJe(t, e) {
  65042. var n = t.style, r = n.image;
  65043. if (r && !Ve(r) && (Kce(r) ? r = r.src : Jce(r) && (r = r.toDataURL())), !!r) {
  65044. var i = n.x || 0, a = n.y || 0, o = n.width, s = n.height, l = {
  65045. href: r,
  65046. width: o,
  65047. height: s
  65048. };
  65049. return i && (l.x = i), a && (l.y = a), k3(l, t.transform), D3(l, n, t, e), R3(l, t), e.animation && WP(t, l, e), Yr("image", t.id + "", l);
  65050. }
  65051. }
  65052. function xJe(t, e) {
  65053. var n = t.style, r = n.text;
  65054. if (r != null && (r += ""), !(!r || isNaN(n.x) || isNaN(n.y))) {
  65055. var i = n.font || vf, a = n.x || 0, o = hGe(n.y || 0, fP(i), n.textBaseline), s = dGe[n.textAlign] || n.textAlign, l = {
  65056. "dominant-baseline": "central",
  65057. "text-anchor": s
  65058. };
  65059. if (tle(n)) {
  65060. var u = "", c = n.fontStyle, f = ele(n.fontSize);
  65061. if (!parseFloat(f))
  65062. return;
  65063. var d = n.fontFamily || Hoe, h = n.fontWeight;
  65064. u += "font-size:" + f + ";font-family:" + d + ";", c && c !== "normal" && (u += "font-style:" + c + ";"), h && h !== "normal" && (u += "font-weight:" + h + ";"), l.style = u;
  65065. } else
  65066. l.style = "font: " + i;
  65067. return r.match(/\s/) && (l["xml:space"] = "preserve"), a && (l.x = a), o && (l.y = o), k3(l, t.transform), D3(l, n, t, e), R3(l, t), e.animation && WP(t, l, e), Yr("text", t.id + "", l, void 0, r);
  65068. }
  65069. }
  65070. function aZ(t, e) {
  65071. if (t instanceof Dt)
  65072. return efe(t, e);
  65073. if (t instanceof ci)
  65074. return SJe(t, e);
  65075. if (t instanceof Wg)
  65076. return xJe(t, e);
  65077. }
  65078. function wJe(t, e, n) {
  65079. var r = t.style;
  65080. if (pGe(r)) {
  65081. var i = vGe(t), a = n.shadowCache, o = a[i];
  65082. if (!o) {
  65083. var s = t.getGlobalScale(), l = s[0], u = s[1];
  65084. if (!l || !u)
  65085. return;
  65086. var c = r.shadowOffsetX || 0, f = r.shadowOffsetY || 0, d = r.shadowBlur, h = Zb(r.shadowColor), p = h.opacity, v = h.color, g = d / 2 / l, m = d / 2 / u, y = g + " " + m;
  65087. o = n.zrId + "-s" + n.shadowIdx++, n.defs[o] = Yr("filter", o, {
  65088. id: o,
  65089. x: "-100%",
  65090. y: "-100%",
  65091. width: "300%",
  65092. height: "300%"
  65093. }, [
  65094. Yr("feDropShadow", "", {
  65095. dx: c / l,
  65096. dy: f / u,
  65097. stdDeviation: y,
  65098. "flood-color": v,
  65099. "flood-opacity": p
  65100. })
  65101. ]), a[i] = o;
  65102. }
  65103. e.filter = cP(o);
  65104. }
  65105. }
  65106. function tfe(t, e, n, r) {
  65107. var i = t[n], a, o = {
  65108. gradientUnits: i.global ? "userSpaceOnUse" : "objectBoundingBox"
  65109. };
  65110. if (gse(i))
  65111. a = "linearGradient", o.x1 = i.x, o.y1 = i.y, o.x2 = i.x2, o.y2 = i.y2;
  65112. else if (mse(i))
  65113. a = "radialGradient", o.cx = dt(i.x, 0.5), o.cy = dt(i.y, 0.5), o.r = dt(i.r, 0.5);
  65114. else {
  65115. process.env.NODE_ENV !== "production" && qo("Illegal gradient type.");
  65116. return;
  65117. }
  65118. for (var s = i.colorStops, l = [], u = 0, c = s.length; u < c; ++u) {
  65119. var f = ck(s[u].offset) * 100 + "%", d = s[u].color, h = Zb(d), p = h.color, v = h.opacity, g = {
  65120. offset: f
  65121. };
  65122. g["stop-color"] = p, v < 1 && (g["stop-opacity"] = v), l.push(Yr("stop", u + "", g));
  65123. }
  65124. var m = Yr(a, "", o, l), y = I3(m), _ = r.gradientCache, O = _[y];
  65125. O || (O = r.zrId + "-g" + r.gradientIdx++, _[y] = O, o.id = O, r.defs[O] = Yr(a, O, o, l)), e[n] = cP(O);
  65126. }
  65127. function nfe(t, e, n, r) {
  65128. var i = t.style[n], a = t.getBoundingRect(), o = {}, s = i.repeat, l = s === "no-repeat", u = s === "repeat-x", c = s === "repeat-y", f;
  65129. if (vse(i)) {
  65130. var d = i.imageWidth, h = i.imageHeight, p = void 0, v = i.image;
  65131. if (Ve(v) ? p = v : Kce(v) ? p = v.src : Jce(v) && (p = v.toDataURL()), typeof Image > "u") {
  65132. var g = "Image width/height must been given explictly in svg-ssr renderer.";
  65133. at(d, g), at(h, g);
  65134. } else if (d == null || h == null) {
  65135. var m = function(T, E) {
  65136. if (T) {
  65137. var M = T.elm, R = d || E.width, N = h || E.height;
  65138. T.tag === "pattern" && (u ? (N = 1, R /= a.width) : c && (R = 1, N /= a.height)), T.attrs.width = R, T.attrs.height = N, M && (M.setAttribute("width", R), M.setAttribute("height", N));
  65139. }
  65140. }, y = I5(p, null, t, function(T) {
  65141. l || m(x, T), m(f, T);
  65142. });
  65143. y && y.width && y.height && (d = d || y.width, h = h || y.height);
  65144. }
  65145. f = Yr("image", "img", {
  65146. href: p,
  65147. width: d,
  65148. height: h
  65149. }), o.width = d, o.height = h;
  65150. } else i.svgElement && (f = ot(i.svgElement), o.width = i.svgWidth, o.height = i.svgHeight);
  65151. if (f) {
  65152. var _, O;
  65153. l ? _ = O = 1 : u ? (O = 1, _ = o.width / a.width) : c ? (_ = 1, O = o.height / a.height) : o.patternUnits = "userSpaceOnUse", _ != null && !isNaN(_) && (o.width = _), O != null && !isNaN(O) && (o.height = O);
  65154. var S = _se(i);
  65155. S && (o.patternTransform = S);
  65156. var x = Yr("pattern", "", o, [f]), C = I3(x), P = r.patternCache, $ = P[C];
  65157. $ || ($ = r.zrId + "-p" + r.patternIdx++, P[C] = $, o.id = $, x = r.defs[$] = Yr("pattern", $, o, [f])), e[n] = cP($);
  65158. }
  65159. }
  65160. function CJe(t, e, n) {
  65161. var r = n.clipPathCache, i = n.defs, a = r[t.id];
  65162. if (!a) {
  65163. a = n.zrId + "-c" + n.clipPathIdx++;
  65164. var o = {
  65165. id: a
  65166. };
  65167. r[t.id] = a, i[a] = Yr("clipPath", a, o, [efe(t, n)]);
  65168. }
  65169. e["clip-path"] = cP(a);
  65170. }
  65171. function oZ(t) {
  65172. return document.createTextNode(t);
  65173. }
  65174. function jd(t, e, n) {
  65175. t.insertBefore(e, n);
  65176. }
  65177. function sZ(t, e) {
  65178. t.removeChild(e);
  65179. }
  65180. function lZ(t, e) {
  65181. t.appendChild(e);
  65182. }
  65183. function rfe(t) {
  65184. return t.parentNode;
  65185. }
  65186. function ife(t) {
  65187. return t.nextSibling;
  65188. }
  65189. function zM(t, e) {
  65190. t.textContent = e;
  65191. }
  65192. var uZ = 58, TJe = 120, PJe = Yr("", "");
  65193. function rL(t) {
  65194. return t === void 0;
  65195. }
  65196. function Ol(t) {
  65197. return t !== void 0;
  65198. }
  65199. function $Je(t, e, n) {
  65200. for (var r = {}, i = e; i <= n; ++i) {
  65201. var a = t[i].key;
  65202. a !== void 0 && (process.env.NODE_ENV !== "production" && r[a] != null && console.error("Duplicate key " + a), r[a] = i);
  65203. }
  65204. return r;
  65205. }
  65206. function Oy(t, e) {
  65207. var n = t.key === e.key, r = t.tag === e.tag;
  65208. return r && n;
  65209. }
  65210. function i_(t) {
  65211. var e, n = t.children, r = t.tag;
  65212. if (Ol(r)) {
  65213. var i = t.elm = Xce(r);
  65214. if (L3(PJe, t), Se(n))
  65215. for (e = 0; e < n.length; ++e) {
  65216. var a = n[e];
  65217. a != null && lZ(i, i_(a));
  65218. }
  65219. else Ol(t.text) && !nt(t.text) && lZ(i, oZ(t.text));
  65220. } else
  65221. t.elm = oZ(t.text);
  65222. return t.elm;
  65223. }
  65224. function afe(t, e, n, r, i) {
  65225. for (; r <= i; ++r) {
  65226. var a = n[r];
  65227. a != null && jd(t, i_(a), e);
  65228. }
  65229. }
  65230. function eT(t, e, n, r) {
  65231. for (; n <= r; ++n) {
  65232. var i = e[n];
  65233. if (i != null)
  65234. if (Ol(i.tag)) {
  65235. var a = rfe(i.elm);
  65236. sZ(a, i.elm);
  65237. } else
  65238. sZ(t, i.elm);
  65239. }
  65240. }
  65241. function L3(t, e) {
  65242. var n, r = e.elm, i = t && t.attrs || {}, a = e.attrs || {};
  65243. if (i !== a) {
  65244. for (n in a) {
  65245. var o = a[n], s = i[n];
  65246. s !== o && (o === !0 ? r.setAttribute(n, "") : o === !1 ? r.removeAttribute(n) : n === "style" ? r.style.cssText = o : n.charCodeAt(0) !== TJe ? r.setAttribute(n, o) : n === "xmlns:xlink" || n === "xmlns" ? r.setAttributeNS(sJe, n, o) : n.charCodeAt(3) === uZ ? r.setAttributeNS(lJe, n, o) : n.charCodeAt(5) === uZ ? r.setAttributeNS(Uce, n, o) : r.setAttribute(n, o));
  65247. }
  65248. for (n in i)
  65249. n in a || r.removeAttribute(n);
  65250. }
  65251. }
  65252. function AJe(t, e, n) {
  65253. for (var r = 0, i = 0, a = e.length - 1, o = e[0], s = e[a], l = n.length - 1, u = n[0], c = n[l], f, d, h, p; r <= a && i <= l; )
  65254. o == null ? o = e[++r] : s == null ? s = e[--a] : u == null ? u = n[++i] : c == null ? c = n[--l] : Oy(o, u) ? (Sv(o, u), o = e[++r], u = n[++i]) : Oy(s, c) ? (Sv(s, c), s = e[--a], c = n[--l]) : Oy(o, c) ? (Sv(o, c), jd(t, o.elm, ife(s.elm)), o = e[++r], c = n[--l]) : Oy(s, u) ? (Sv(s, u), jd(t, s.elm, o.elm), s = e[--a], u = n[++i]) : (rL(f) && (f = $Je(e, r, a)), d = f[u.key], rL(d) ? jd(t, i_(u), o.elm) : (h = e[d], h.tag !== u.tag ? jd(t, i_(u), o.elm) : (Sv(h, u), e[d] = void 0, jd(t, h.elm, o.elm))), u = n[++i]);
  65255. (r <= a || i <= l) && (r > a ? (p = n[l + 1] == null ? null : n[l + 1].elm, afe(t, p, n, i, l)) : eT(t, e, r, a));
  65256. }
  65257. function Sv(t, e) {
  65258. var n = e.elm = t.elm, r = t.children, i = e.children;
  65259. t !== e && (L3(t, e), rL(e.text) ? Ol(r) && Ol(i) ? r !== i && AJe(n, r, i) : Ol(i) ? (Ol(t.text) && zM(n, ""), afe(n, null, i, 0, i.length - 1)) : Ol(r) ? eT(n, r, 0, r.length - 1) : Ol(t.text) && zM(n, "") : t.text !== e.text && (Ol(r) && eT(n, r, 0, r.length - 1), zM(n, e.text)));
  65260. }
  65261. function EJe(t, e) {
  65262. if (Oy(t, e))
  65263. Sv(t, e);
  65264. else {
  65265. var n = t.elm, r = rfe(n);
  65266. i_(e), r !== null && (jd(r, e.elm, ife(n)), eT(r, [t], 0, 0));
  65267. }
  65268. return e;
  65269. }
  65270. var MJe = 0, IJe = function() {
  65271. function t(e, n, r) {
  65272. if (this.type = "svg", this.refreshHover = cZ("refreshHover"), this.configLayer = cZ("configLayer"), this.storage = n, this._opts = r = _e({}, r), this.root = e, this._id = "zr" + MJe++, this._oldVNode = Kj(r.width, r.height), e && !r.ssr) {
  65273. var i = this._viewport = document.createElement("div");
  65274. i.style.cssText = "position:relative;overflow:hidden";
  65275. var a = this._svgDom = this._oldVNode.elm = Xce("svg");
  65276. L3(null, this._oldVNode), i.appendChild(a), e.appendChild(i);
  65277. }
  65278. this.resize(r.width, r.height);
  65279. }
  65280. return t.prototype.getType = function() {
  65281. return this.type;
  65282. }, t.prototype.getViewportRoot = function() {
  65283. return this._viewport;
  65284. }, t.prototype.getViewportRootOffset = function() {
  65285. var e = this.getViewportRoot();
  65286. if (e)
  65287. return {
  65288. offsetLeft: e.offsetLeft || 0,
  65289. offsetTop: e.offsetTop || 0
  65290. };
  65291. }, t.prototype.getSvgDom = function() {
  65292. return this._svgDom;
  65293. }, t.prototype.refresh = function() {
  65294. if (this.root) {
  65295. var e = this.renderToVNode({
  65296. willUpdate: !0
  65297. });
  65298. e.attrs.style = "position:absolute;left:0;top:0;user-select:none", EJe(this._oldVNode, e), this._oldVNode = e;
  65299. }
  65300. }, t.prototype.renderOneToVNode = function(e) {
  65301. return aZ(e, nL(this._id));
  65302. }, t.prototype.renderToVNode = function(e) {
  65303. e = e || {};
  65304. var n = this.storage.getDisplayList(!0), r = this._width, i = this._height, a = nL(this._id);
  65305. a.animation = e.animation, a.willUpdate = e.willUpdate, a.compress = e.compress, a.emphasis = e.emphasis;
  65306. var o = [], s = this._bgVNode = DJe(r, i, this._backgroundColor, a);
  65307. s && o.push(s);
  65308. var l = e.compress ? null : this._mainVNode = Yr("g", "main", {}, []);
  65309. this._paintList(n, a, l ? l.children : o), l && o.push(l);
  65310. var u = Ce(kt(a.defs), function(d) {
  65311. return a.defs[d];
  65312. });
  65313. if (u.length && o.push(Yr("defs", "defs", {}, u)), e.animation) {
  65314. var c = fJe(a.cssNodes, a.cssAnims, { newline: !0 });
  65315. if (c) {
  65316. var f = Yr("style", "stl", {}, [], c);
  65317. o.push(f);
  65318. }
  65319. }
  65320. return Kj(r, i, o, e.useViewBox);
  65321. }, t.prototype.renderToString = function(e) {
  65322. return e = e || {}, I3(this.renderToVNode({
  65323. animation: dt(e.cssAnimation, !0),
  65324. emphasis: dt(e.cssEmphasis, !0),
  65325. willUpdate: !1,
  65326. compress: !0,
  65327. useViewBox: dt(e.useViewBox, !0)
  65328. }), { newline: !0 });
  65329. }, t.prototype.setBackgroundColor = function(e) {
  65330. this._backgroundColor = e;
  65331. }, t.prototype.getSvgRoot = function() {
  65332. return this._mainVNode && this._mainVNode.elm;
  65333. }, t.prototype._paintList = function(e, n, r) {
  65334. for (var i = e.length, a = [], o = 0, s, l, u = 0, c = 0; c < i; c++) {
  65335. var f = e[c];
  65336. if (!f.invisible) {
  65337. var d = f.__clipPaths, h = d && d.length || 0, p = l && l.length || 0, v = void 0;
  65338. for (v = Math.max(h - 1, p - 1); v >= 0 && !(d && l && d[v] === l[v]); v--)
  65339. ;
  65340. for (var g = p - 1; g > v; g--)
  65341. o--, s = a[o - 1];
  65342. for (var m = v + 1; m < h; m++) {
  65343. var y = {};
  65344. CJe(d[m], y, n);
  65345. var _ = Yr("g", "clip-g-" + u++, y, []);
  65346. (s ? s.children : r).push(_), a[o++] = _, s = _;
  65347. }
  65348. l = d;
  65349. var O = aZ(f, n);
  65350. O && (s ? s.children : r).push(O);
  65351. }
  65352. }
  65353. }, t.prototype.resize = function(e, n) {
  65354. var r = this._opts, i = this.root, a = this._viewport;
  65355. if (e != null && (r.width = e), n != null && (r.height = n), i && a && (a.style.display = "none", e = Rv(i, 0, r), n = Rv(i, 1, r), a.style.display = ""), this._width !== e || this._height !== n) {
  65356. if (this._width = e, this._height = n, a) {
  65357. var o = a.style;
  65358. o.width = e + "px", o.height = n + "px";
  65359. }
  65360. if (w5(this._backgroundColor))
  65361. this.refresh();
  65362. else {
  65363. var s = this._svgDom;
  65364. s && (s.setAttribute("width", e), s.setAttribute("height", n));
  65365. var l = this._bgVNode && this._bgVNode.elm;
  65366. l && (l.setAttribute("width", e), l.setAttribute("height", n));
  65367. }
  65368. }
  65369. }, t.prototype.getWidth = function() {
  65370. return this._width;
  65371. }, t.prototype.getHeight = function() {
  65372. return this._height;
  65373. }, t.prototype.dispose = function() {
  65374. this.root && (this.root.innerHTML = ""), this._svgDom = this._viewport = this.storage = this._oldVNode = this._bgVNode = this._mainVNode = null;
  65375. }, t.prototype.clear = function() {
  65376. this._svgDom && (this._svgDom.innerHTML = null), this._oldVNode = null;
  65377. }, t.prototype.toDataURL = function(e) {
  65378. var n = this.renderToString(), r = "data:image/svg+xml;";
  65379. return e ? (n = mGe(n), n && r + "base64," + n) : r + "charset=UTF-8," + encodeURIComponent(n);
  65380. }, t;
  65381. }();
  65382. function cZ(t) {
  65383. return function() {
  65384. process.env.NODE_ENV !== "production" && qo('In SVG mode painter not support method "' + t + '"');
  65385. };
  65386. }
  65387. function DJe(t, e, n, r) {
  65388. var i;
  65389. if (n && n !== "none")
  65390. if (i = Yr("rect", "bg", {
  65391. width: t,
  65392. height: e,
  65393. x: "0",
  65394. y: "0"
  65395. }), yse(n))
  65396. tfe({ fill: n }, i.attrs, "fill", r);
  65397. else if (w5(n))
  65398. nfe({
  65399. style: {
  65400. fill: n
  65401. },
  65402. dirty: fr,
  65403. getBoundingRect: function() {
  65404. return { width: t, height: e };
  65405. }
  65406. }, i.attrs, "fill", r);
  65407. else {
  65408. var a = Zb(n), o = a.color, s = a.opacity;
  65409. i.attrs.fill = o, s < 1 && (i.attrs["fill-opacity"] = s);
  65410. }
  65411. return i;
  65412. }
  65413. function RJe(t) {
  65414. t.registerPainter("svg", IJe);
  65415. }
  65416. function fZ(t, e, n) {
  65417. var r = Hs.createCanvas(), i = e.getWidth(), a = e.getHeight(), o = r.style;
  65418. return o && (o.position = "absolute", o.left = "0", o.top = "0", o.width = i + "px", o.height = a + "px", r.setAttribute("data-zr-dom-id", t)), r.width = i * n, r.height = a * n, r;
  65419. }
  65420. var VM = function(t) {
  65421. le(e, t);
  65422. function e(n, r, i) {
  65423. var a = t.call(this) || this;
  65424. a.motionBlur = !1, a.lastFrameAlpha = 0.7, a.dpr = 1, a.virtual = !1, a.config = {}, a.incremental = !1, a.zlevel = 0, a.maxRepaintRectCount = 5, a.__dirty = !0, a.__firstTimePaint = !0, a.__used = !1, a.__drawIndex = 0, a.__startIndex = 0, a.__endIndex = 0, a.__prevStartIndex = null, a.__prevEndIndex = null;
  65425. var o;
  65426. i = i || $C, typeof n == "string" ? o = fZ(n, r, i) : nt(n) && (o = n, n = o.id), a.id = n, a.dom = o;
  65427. var s = o.style;
  65428. return s && (b5(o), o.onselectstart = function() {
  65429. return !1;
  65430. }, s.padding = "0", s.margin = "0", s.borderWidth = "0"), a.painter = r, a.dpr = i, a;
  65431. }
  65432. return e.prototype.getElementCount = function() {
  65433. return this.__endIndex - this.__startIndex;
  65434. }, e.prototype.afterBrush = function() {
  65435. this.__prevStartIndex = this.__startIndex, this.__prevEndIndex = this.__endIndex;
  65436. }, e.prototype.initContext = function() {
  65437. this.ctx = this.dom.getContext("2d"), this.ctx.dpr = this.dpr;
  65438. }, e.prototype.setUnpainted = function() {
  65439. this.__firstTimePaint = !0;
  65440. }, e.prototype.createBackBuffer = function() {
  65441. var n = this.dpr;
  65442. this.domBack = fZ("back-" + this.id, this.painter, n), this.ctxBack = this.domBack.getContext("2d"), n !== 1 && this.ctxBack.scale(n, n);
  65443. }, e.prototype.createRepaintRects = function(n, r, i, a) {
  65444. if (this.__firstTimePaint)
  65445. return this.__firstTimePaint = !1, null;
  65446. var o = [], s = this.maxRepaintRectCount, l = !1, u = new bt(0, 0, 0, 0);
  65447. function c(y) {
  65448. if (!(!y.isFinite() || y.isZero()))
  65449. if (o.length === 0) {
  65450. var _ = new bt(0, 0, 0, 0);
  65451. _.copy(y), o.push(_);
  65452. } else {
  65453. for (var O = !1, S = 1 / 0, x = 0, C = 0; C < o.length; ++C) {
  65454. var P = o[C];
  65455. if (P.intersect(y)) {
  65456. var $ = new bt(0, 0, 0, 0);
  65457. $.copy(P), $.union(y), o[C] = $, O = !0;
  65458. break;
  65459. } else if (l) {
  65460. u.copy(y), u.union(P);
  65461. var T = y.width * y.height, E = P.width * P.height, M = u.width * u.height, R = M - T - E;
  65462. R < S && (S = R, x = C);
  65463. }
  65464. }
  65465. if (l && (o[x].union(y), O = !0), !O) {
  65466. var _ = new bt(0, 0, 0, 0);
  65467. _.copy(y), o.push(_);
  65468. }
  65469. l || (l = o.length >= s);
  65470. }
  65471. }
  65472. for (var f = this.__startIndex; f < this.__endIndex; ++f) {
  65473. var d = n[f];
  65474. if (d) {
  65475. var h = d.shouldBePainted(i, a, !0, !0), p = d.__isRendered && (d.__dirty & to || !h) ? d.getPrevPaintRect() : null;
  65476. p && c(p);
  65477. var v = h && (d.__dirty & to || !d.__isRendered) ? d.getPaintRect() : null;
  65478. v && c(v);
  65479. }
  65480. }
  65481. for (var f = this.__prevStartIndex; f < this.__prevEndIndex; ++f) {
  65482. var d = r[f], h = d && d.shouldBePainted(i, a, !0, !0);
  65483. if (d && (!h || !d.__zr) && d.__isRendered) {
  65484. var p = d.getPrevPaintRect();
  65485. p && c(p);
  65486. }
  65487. }
  65488. var g;
  65489. do {
  65490. g = !1;
  65491. for (var f = 0; f < o.length; ) {
  65492. if (o[f].isZero()) {
  65493. o.splice(f, 1);
  65494. continue;
  65495. }
  65496. for (var m = f + 1; m < o.length; )
  65497. o[f].intersect(o[m]) ? (g = !0, o[f].union(o[m]), o.splice(m, 1)) : m++;
  65498. f++;
  65499. }
  65500. } while (g);
  65501. return this._paintRects = o, o;
  65502. }, e.prototype.debugGetPaintRects = function() {
  65503. return (this._paintRects || []).slice();
  65504. }, e.prototype.resize = function(n, r) {
  65505. var i = this.dpr, a = this.dom, o = a.style, s = this.domBack;
  65506. o && (o.width = n + "px", o.height = r + "px"), a.width = n * i, a.height = r * i, s && (s.width = n * i, s.height = r * i, i !== 1 && this.ctxBack.scale(i, i));
  65507. }, e.prototype.clear = function(n, r, i) {
  65508. var a = this.dom, o = this.ctx, s = a.width, l = a.height;
  65509. r = r || this.clearColor;
  65510. var u = this.motionBlur && !n, c = this.lastFrameAlpha, f = this.dpr, d = this;
  65511. u && (this.domBack || this.createBackBuffer(), this.ctxBack.globalCompositeOperation = "copy", this.ctxBack.drawImage(a, 0, 0, s / f, l / f));
  65512. var h = this.domBack;
  65513. function p(v, g, m, y) {
  65514. if (o.clearRect(v, g, m, y), r && r !== "transparent") {
  65515. var _ = void 0;
  65516. if (n1(r)) {
  65517. var O = r.global || r.__width === m && r.__height === y;
  65518. _ = O && r.__canvasGradient || jk(o, r, {
  65519. x: 0,
  65520. y: 0,
  65521. width: m,
  65522. height: y
  65523. }), r.__canvasGradient = _, r.__width = m, r.__height = y;
  65524. } else Xoe(r) && (r.scaleX = r.scaleX || f, r.scaleY = r.scaleY || f, _ = Zk(o, r, {
  65525. dirty: function() {
  65526. d.setUnpainted(), d.painter.refresh();
  65527. }
  65528. }));
  65529. o.save(), o.fillStyle = _ || r, o.fillRect(v, g, m, y), o.restore();
  65530. }
  65531. u && (o.save(), o.globalAlpha = c, o.drawImage(h, v, g, m, y), o.restore());
  65532. }
  65533. !i || u ? p(0, 0, s, l) : i.length && F(i, function(v) {
  65534. p(v.x * f, v.y * f, v.width * f, v.height * f);
  65535. });
  65536. }, e;
  65537. }(fs), dZ = 1e5, Ed = 314159, LS = 0.01, kJe = 1e-3;
  65538. function LJe(t) {
  65539. return t ? t.__builtin__ ? !0 : !(typeof t.resize != "function" || typeof t.refresh != "function") : !1;
  65540. }
  65541. function NJe(t, e) {
  65542. var n = document.createElement("div");
  65543. return n.style.cssText = [
  65544. "position:relative",
  65545. "width:" + t + "px",
  65546. "height:" + e + "px",
  65547. "padding:0",
  65548. "margin:0",
  65549. "border-width:0"
  65550. ].join(";") + ";", n;
  65551. }
  65552. var BJe = function() {
  65553. function t(e, n, r, i) {
  65554. this.type = "canvas", this._zlevelList = [], this._prevDisplayList = [], this._layers = {}, this._layerConfig = {}, this._needsManuallyCompositing = !1, this.type = "canvas";
  65555. var a = !e.nodeName || e.nodeName.toUpperCase() === "CANVAS";
  65556. this._opts = r = _e({}, r || {}), this.dpr = r.devicePixelRatio || $C, this._singleCanvas = a, this.root = e;
  65557. var o = e.style;
  65558. o && (b5(e), e.innerHTML = ""), this.storage = n;
  65559. var s = this._zlevelList;
  65560. this._prevDisplayList = [];
  65561. var l = this._layers;
  65562. if (a) {
  65563. var c = e, f = c.width, d = c.height;
  65564. r.width != null && (f = r.width), r.height != null && (d = r.height), this.dpr = r.devicePixelRatio || 1, c.width = f * this.dpr, c.height = d * this.dpr, this._width = f, this._height = d;
  65565. var h = new VM(c, this, this.dpr);
  65566. h.__builtin__ = !0, h.initContext(), l[Ed] = h, h.zlevel = Ed, s.push(Ed), this._domRoot = e;
  65567. } else {
  65568. this._width = Rv(e, 0, r), this._height = Rv(e, 1, r);
  65569. var u = this._domRoot = NJe(this._width, this._height);
  65570. e.appendChild(u);
  65571. }
  65572. }
  65573. return t.prototype.getType = function() {
  65574. return "canvas";
  65575. }, t.prototype.isSingleCanvas = function() {
  65576. return this._singleCanvas;
  65577. }, t.prototype.getViewportRoot = function() {
  65578. return this._domRoot;
  65579. }, t.prototype.getViewportRootOffset = function() {
  65580. var e = this.getViewportRoot();
  65581. if (e)
  65582. return {
  65583. offsetLeft: e.offsetLeft || 0,
  65584. offsetTop: e.offsetTop || 0
  65585. };
  65586. }, t.prototype.refresh = function(e) {
  65587. var n = this.storage.getDisplayList(!0), r = this._prevDisplayList, i = this._zlevelList;
  65588. this._redrawId = Math.random(), this._paintList(n, r, e, this._redrawId);
  65589. for (var a = 0; a < i.length; a++) {
  65590. var o = i[a], s = this._layers[o];
  65591. if (!s.__builtin__ && s.refresh) {
  65592. var l = a === 0 ? this._backgroundColor : null;
  65593. s.refresh(l);
  65594. }
  65595. }
  65596. return this._opts.useDirtyRect && (this._prevDisplayList = n.slice()), this;
  65597. }, t.prototype.refreshHover = function() {
  65598. this._paintHoverList(this.storage.getDisplayList(!1));
  65599. }, t.prototype._paintHoverList = function(e) {
  65600. var n = e.length, r = this._hoverlayer;
  65601. if (r && r.clear(), !!n) {
  65602. for (var i = {
  65603. inHover: !0,
  65604. viewWidth: this._width,
  65605. viewHeight: this._height
  65606. }, a, o = 0; o < n; o++) {
  65607. var s = e[o];
  65608. s.__inHover && (r || (r = this._hoverlayer = this.getLayer(dZ)), a || (a = r.ctx, a.save()), uh(a, s, i, o === n - 1));
  65609. }
  65610. a && a.restore();
  65611. }
  65612. }, t.prototype.getHoverLayer = function() {
  65613. return this.getLayer(dZ);
  65614. }, t.prototype.paintOne = function(e, n) {
  65615. d3(e, n);
  65616. }, t.prototype._paintList = function(e, n, r, i) {
  65617. if (this._redrawId === i) {
  65618. r = r || !1, this._updateLayerStatus(e);
  65619. var a = this._doPaintList(e, n, r), o = a.finished, s = a.needsRefreshHover;
  65620. if (this._needsManuallyCompositing && this._compositeManually(), s && this._paintHoverList(e), o)
  65621. this.eachLayer(function(u) {
  65622. u.afterBrush && u.afterBrush();
  65623. });
  65624. else {
  65625. var l = this;
  65626. SC(function() {
  65627. l._paintList(e, n, r, i);
  65628. });
  65629. }
  65630. }
  65631. }, t.prototype._compositeManually = function() {
  65632. var e = this.getLayer(Ed).ctx, n = this._domRoot.width, r = this._domRoot.height;
  65633. e.clearRect(0, 0, n, r), this.eachBuiltinLayer(function(i) {
  65634. i.virtual && e.drawImage(i.dom, 0, 0, n, r);
  65635. });
  65636. }, t.prototype._doPaintList = function(e, n, r) {
  65637. for (var i = this, a = [], o = this._opts.useDirtyRect, s = 0; s < this._zlevelList.length; s++) {
  65638. var l = this._zlevelList[s], u = this._layers[l];
  65639. u.__builtin__ && u !== this._hoverlayer && (u.__dirty || r) && a.push(u);
  65640. }
  65641. for (var c = !0, f = !1, d = function(v) {
  65642. var g = a[v], m = g.ctx, y = o && g.createRepaintRects(e, n, h._width, h._height), _ = r ? g.__startIndex : g.__drawIndex, O = !r && g.incremental && Date.now, S = O && Date.now(), x = g.zlevel === h._zlevelList[0] ? h._backgroundColor : null;
  65643. if (g.__startIndex === g.__endIndex)
  65644. g.clear(!1, x, y);
  65645. else if (_ === g.__startIndex) {
  65646. var C = e[_];
  65647. (!C.incremental || !C.notClear || r) && g.clear(!1, x, y);
  65648. }
  65649. _ === -1 && (console.error("For some unknown reason. drawIndex is -1"), _ = g.__startIndex);
  65650. var P, $ = function(R) {
  65651. var N = {
  65652. inHover: !1,
  65653. allClipped: !1,
  65654. prevEl: null,
  65655. viewWidth: i._width,
  65656. viewHeight: i._height
  65657. };
  65658. for (P = _; P < g.__endIndex; P++) {
  65659. var I = e[P];
  65660. if (I.__inHover && (f = !0), i._doPaintEl(I, g, o, R, N, P === g.__endIndex - 1), O) {
  65661. var B = Date.now() - S;
  65662. if (B > 15)
  65663. break;
  65664. }
  65665. }
  65666. N.prevElClipPaths && m.restore();
  65667. };
  65668. if (y)
  65669. if (y.length === 0)
  65670. P = g.__endIndex;
  65671. else
  65672. for (var T = h.dpr, E = 0; E < y.length; ++E) {
  65673. var M = y[E];
  65674. m.save(), m.beginPath(), m.rect(M.x * T, M.y * T, M.width * T, M.height * T), m.clip(), $(M), m.restore();
  65675. }
  65676. else
  65677. m.save(), $(), m.restore();
  65678. g.__drawIndex = P, g.__drawIndex < g.__endIndex && (c = !1);
  65679. }, h = this, p = 0; p < a.length; p++)
  65680. d(p);
  65681. return Gt.wxa && F(this._layers, function(v) {
  65682. v && v.ctx && v.ctx.draw && v.ctx.draw();
  65683. }), {
  65684. finished: c,
  65685. needsRefreshHover: f
  65686. };
  65687. }, t.prototype._doPaintEl = function(e, n, r, i, a, o) {
  65688. var s = n.ctx;
  65689. if (r) {
  65690. var l = e.getPaintRect();
  65691. (!i || l && l.intersect(i)) && (uh(s, e, a, o), e.setPrevPaintRect(l));
  65692. } else
  65693. uh(s, e, a, o);
  65694. }, t.prototype.getLayer = function(e, n) {
  65695. this._singleCanvas && !this._needsManuallyCompositing && (e = Ed);
  65696. var r = this._layers[e];
  65697. return r || (r = new VM("zr_" + e, this, this.dpr), r.zlevel = e, r.__builtin__ = !0, this._layerConfig[e] ? mt(r, this._layerConfig[e], !0) : this._layerConfig[e - LS] && mt(r, this._layerConfig[e - LS], !0), n && (r.virtual = n), this.insertLayer(e, r), r.initContext()), r;
  65698. }, t.prototype.insertLayer = function(e, n) {
  65699. var r = this._layers, i = this._zlevelList, a = i.length, o = this._domRoot, s = null, l = -1;
  65700. if (r[e]) {
  65701. process.env.NODE_ENV !== "production" && qo("ZLevel " + e + " has been used already");
  65702. return;
  65703. }
  65704. if (!LJe(n)) {
  65705. process.env.NODE_ENV !== "production" && qo("Layer of zlevel " + e + " is not valid");
  65706. return;
  65707. }
  65708. if (a > 0 && e > i[0]) {
  65709. for (l = 0; l < a - 1 && !(i[l] < e && i[l + 1] > e); l++)
  65710. ;
  65711. s = r[i[l]];
  65712. }
  65713. if (i.splice(l + 1, 0, e), r[e] = n, !n.virtual)
  65714. if (s) {
  65715. var u = s.dom;
  65716. u.nextSibling ? o.insertBefore(n.dom, u.nextSibling) : o.appendChild(n.dom);
  65717. } else
  65718. o.firstChild ? o.insertBefore(n.dom, o.firstChild) : o.appendChild(n.dom);
  65719. n.painter || (n.painter = this);
  65720. }, t.prototype.eachLayer = function(e, n) {
  65721. for (var r = this._zlevelList, i = 0; i < r.length; i++) {
  65722. var a = r[i];
  65723. e.call(n, this._layers[a], a);
  65724. }
  65725. }, t.prototype.eachBuiltinLayer = function(e, n) {
  65726. for (var r = this._zlevelList, i = 0; i < r.length; i++) {
  65727. var a = r[i], o = this._layers[a];
  65728. o.__builtin__ && e.call(n, o, a);
  65729. }
  65730. }, t.prototype.eachOtherLayer = function(e, n) {
  65731. for (var r = this._zlevelList, i = 0; i < r.length; i++) {
  65732. var a = r[i], o = this._layers[a];
  65733. o.__builtin__ || e.call(n, o, a);
  65734. }
  65735. }, t.prototype.getLayers = function() {
  65736. return this._layers;
  65737. }, t.prototype._updateLayerStatus = function(e) {
  65738. this.eachBuiltinLayer(function(f, d) {
  65739. f.__dirty = f.__used = !1;
  65740. });
  65741. function n(f) {
  65742. a && (a.__endIndex !== f && (a.__dirty = !0), a.__endIndex = f);
  65743. }
  65744. if (this._singleCanvas)
  65745. for (var r = 1; r < e.length; r++) {
  65746. var i = e[r];
  65747. if (i.zlevel !== e[r - 1].zlevel || i.incremental) {
  65748. this._needsManuallyCompositing = !0;
  65749. break;
  65750. }
  65751. }
  65752. var a = null, o = 0, s, l;
  65753. for (l = 0; l < e.length; l++) {
  65754. var i = e[l], u = i.zlevel, c = void 0;
  65755. s !== u && (s = u, o = 0), i.incremental ? (c = this.getLayer(u + kJe, this._needsManuallyCompositing), c.incremental = !0, o = 1) : c = this.getLayer(u + (o > 0 ? LS : 0), this._needsManuallyCompositing), c.__builtin__ || qo("ZLevel " + u + " has been used by unkown layer " + c.id), c !== a && (c.__used = !0, c.__startIndex !== l && (c.__dirty = !0), c.__startIndex = l, c.incremental ? c.__drawIndex = -1 : c.__drawIndex = l, n(l), a = c), i.__dirty & to && !i.__inHover && (c.__dirty = !0, c.incremental && c.__drawIndex < 0 && (c.__drawIndex = l));
  65756. }
  65757. n(l), this.eachBuiltinLayer(function(f, d) {
  65758. !f.__used && f.getElementCount() > 0 && (f.__dirty = !0, f.__startIndex = f.__endIndex = f.__drawIndex = 0), f.__dirty && f.__drawIndex < 0 && (f.__drawIndex = f.__startIndex);
  65759. });
  65760. }, t.prototype.clear = function() {
  65761. return this.eachBuiltinLayer(this._clearLayer), this;
  65762. }, t.prototype._clearLayer = function(e) {
  65763. e.clear();
  65764. }, t.prototype.setBackgroundColor = function(e) {
  65765. this._backgroundColor = e, F(this._layers, function(n) {
  65766. n.setUnpainted();
  65767. });
  65768. }, t.prototype.configLayer = function(e, n) {
  65769. if (n) {
  65770. var r = this._layerConfig;
  65771. r[e] ? mt(r[e], n, !0) : r[e] = n;
  65772. for (var i = 0; i < this._zlevelList.length; i++) {
  65773. var a = this._zlevelList[i];
  65774. if (a === e || a === e + LS) {
  65775. var o = this._layers[a];
  65776. mt(o, r[e], !0);
  65777. }
  65778. }
  65779. }
  65780. }, t.prototype.delLayer = function(e) {
  65781. var n = this._layers, r = this._zlevelList, i = n[e];
  65782. i && (i.dom.parentNode.removeChild(i.dom), delete n[e], r.splice(St(r, e), 1));
  65783. }, t.prototype.resize = function(e, n) {
  65784. if (this._domRoot.style) {
  65785. var r = this._domRoot;
  65786. r.style.display = "none";
  65787. var i = this._opts, a = this.root;
  65788. if (e != null && (i.width = e), n != null && (i.height = n), e = Rv(a, 0, i), n = Rv(a, 1, i), r.style.display = "", this._width !== e || n !== this._height) {
  65789. r.style.width = e + "px", r.style.height = n + "px";
  65790. for (var o in this._layers)
  65791. this._layers.hasOwnProperty(o) && this._layers[o].resize(e, n);
  65792. this.refresh(!0);
  65793. }
  65794. this._width = e, this._height = n;
  65795. } else {
  65796. if (e == null || n == null)
  65797. return;
  65798. this._width = e, this._height = n, this.getLayer(Ed).resize(e, n);
  65799. }
  65800. return this;
  65801. }, t.prototype.clearLayer = function(e) {
  65802. var n = this._layers[e];
  65803. n && n.clear();
  65804. }, t.prototype.dispose = function() {
  65805. this.root.innerHTML = "", this.root = this.storage = this._domRoot = this._layers = null;
  65806. }, t.prototype.getRenderedCanvas = function(e) {
  65807. if (e = e || {}, this._singleCanvas && !this._compositeManually)
  65808. return this._layers[Ed].dom;
  65809. var n = new VM("image", this, e.pixelRatio || this.dpr);
  65810. n.initContext(), n.clear(!1, e.backgroundColor || this._backgroundColor);
  65811. var r = n.ctx;
  65812. if (e.pixelRatio <= this.dpr) {
  65813. this.refresh();
  65814. var i = n.dom.width, a = n.dom.height;
  65815. this.eachLayer(function(f) {
  65816. f.__builtin__ ? r.drawImage(f.dom, 0, 0, i, a) : f.renderToCanvas && (r.save(), f.renderToCanvas(r), r.restore());
  65817. });
  65818. } else
  65819. for (var o = {
  65820. inHover: !1,
  65821. viewWidth: this._width,
  65822. viewHeight: this._height
  65823. }, s = this.storage.getDisplayList(!0), l = 0, u = s.length; l < u; l++) {
  65824. var c = s[l];
  65825. uh(r, c, o, l === u - 1);
  65826. }
  65827. return n.dom;
  65828. }, t.prototype.getWidth = function() {
  65829. return this._width;
  65830. }, t.prototype.getHeight = function() {
  65831. return this._height;
  65832. }, t;
  65833. }();
  65834. function zJe(t) {
  65835. t.registerPainter("canvas", BJe);
  65836. }
  65837. var VJe = (
  65838. /** @class */
  65839. function(t) {
  65840. le(e, t);
  65841. function e() {
  65842. var n = t !== null && t.apply(this, arguments) || this;
  65843. return n.type = e.type, n.hasSymbolVisual = !0, n;
  65844. }
  65845. return e.prototype.getInitialData = function(n) {
  65846. if (process.env.NODE_ENV !== "production") {
  65847. var r = n.coordinateSystem;
  65848. if (r !== "polar" && r !== "cartesian2d")
  65849. throw new Error("Line not support coordinateSystem besides cartesian and polar");
  65850. }
  65851. return Yl(null, this, {
  65852. useEncodeDefaulter: !0
  65853. });
  65854. }, e.prototype.getLegendIcon = function(n) {
  65855. var r = new ct(), i = wr("line", 0, n.itemHeight / 2, n.itemWidth, 0, n.lineStyle.stroke, !1);
  65856. r.add(i), i.setStyle(n.lineStyle);
  65857. var a = this.getData().getVisual("symbol"), o = this.getData().getVisual("symbolRotate"), s = a === "none" ? "circle" : a, l = n.itemHeight * 0.8, u = wr(s, (n.itemWidth - l) / 2, (n.itemHeight - l) / 2, l, l, n.itemStyle.fill);
  65858. r.add(u), u.setStyle(n.itemStyle);
  65859. var c = n.iconRotate === "inherit" ? o : n.iconRotate || 0;
  65860. return u.rotation = c * Math.PI / 180, u.setOrigin([n.itemWidth / 2, n.itemHeight / 2]), s.indexOf("empty") > -1 && (u.style.stroke = u.style.fill, u.style.fill = "#fff", u.style.lineWidth = 2), r;
  65861. }, e.type = "series.line", e.dependencies = ["grid", "polar"], e.defaultOption = {
  65862. // zlevel: 0,
  65863. z: 3,
  65864. coordinateSystem: "cartesian2d",
  65865. legendHoverLink: !0,
  65866. clip: !0,
  65867. label: {
  65868. position: "top"
  65869. },
  65870. // itemStyle: {
  65871. // },
  65872. endLabel: {
  65873. show: !1,
  65874. valueAnimation: !0,
  65875. distance: 8
  65876. },
  65877. lineStyle: {
  65878. width: 2,
  65879. type: "solid"
  65880. },
  65881. emphasis: {
  65882. scale: !0
  65883. },
  65884. // areaStyle: {
  65885. // origin of areaStyle. Valid values:
  65886. // `'auto'/null/undefined`: from axisLine to data
  65887. // `'start'`: from min to data
  65888. // `'end'`: from data to max
  65889. // origin: 'auto'
  65890. // },
  65891. // false, 'start', 'end', 'middle'
  65892. step: !1,
  65893. // Disabled if step is true
  65894. smooth: !1,
  65895. smoothMonotone: null,
  65896. symbol: "emptyCircle",
  65897. symbolSize: 4,
  65898. symbolRotate: null,
  65899. showSymbol: !0,
  65900. // `false`: follow the label interval strategy.
  65901. // `true`: show all symbols.
  65902. // `'auto'`: If possible, show all symbols, otherwise
  65903. // follow the label interval strategy.
  65904. showAllSymbol: "auto",
  65905. // Whether to connect break point.
  65906. connectNulls: !1,
  65907. // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.
  65908. sampling: "none",
  65909. animationEasing: "linear",
  65910. // Disable progressive
  65911. progressive: 0,
  65912. hoverLayerThreshold: 1 / 0,
  65913. universalTransition: {
  65914. divideShape: "clone"
  65915. },
  65916. triggerLineEvent: !1
  65917. }, e;
  65918. }(Tn)
  65919. );
  65920. function jg(t, e) {
  65921. var n = t.mapDimensionsAll("defaultedLabel"), r = n.length;
  65922. if (r === 1) {
  65923. var i = Hg(t, e, n[0]);
  65924. return i != null ? i + "" : null;
  65925. } else if (r) {
  65926. for (var a = [], o = 0; o < n.length; o++)
  65927. a.push(Hg(t, e, n[o]));
  65928. return a.join(" ");
  65929. }
  65930. }
  65931. function ofe(t, e) {
  65932. var n = t.mapDimensionsAll("defaultedLabel");
  65933. if (!Se(e))
  65934. return e + "";
  65935. for (var r = [], i = 0; i < n.length; i++) {
  65936. var a = t.getDimensionIndex(n[i]);
  65937. a >= 0 && r.push(e[a]);
  65938. }
  65939. return r.join(" ");
  65940. }
  65941. var m1 = (
  65942. /** @class */
  65943. function(t) {
  65944. le(e, t);
  65945. function e(n, r, i, a) {
  65946. var o = t.call(this) || this;
  65947. return o.updateData(n, r, i, a), o;
  65948. }
  65949. return e.prototype._createSymbol = function(n, r, i, a, o) {
  65950. this.removeAll();
  65951. var s = wr(n, -1, -1, 2, 2, null, o);
  65952. s.attr({
  65953. z2: 100,
  65954. culling: !0,
  65955. scaleX: a[0] / 2,
  65956. scaleY: a[1] / 2
  65957. }), s.drift = FJe, this._symbolType = n, this.add(s);
  65958. }, e.prototype.stopSymbolAnimation = function(n) {
  65959. this.childAt(0).stopAnimation(null, n);
  65960. }, e.prototype.getSymbolType = function() {
  65961. return this._symbolType;
  65962. }, e.prototype.getSymbolPath = function() {
  65963. return this.childAt(0);
  65964. }, e.prototype.highlight = function() {
  65965. Fu(this.childAt(0));
  65966. }, e.prototype.downplay = function() {
  65967. Wu(this.childAt(0));
  65968. }, e.prototype.setZ = function(n, r) {
  65969. var i = this.childAt(0);
  65970. i.zlevel = n, i.z = r;
  65971. }, e.prototype.setDraggable = function(n, r) {
  65972. var i = this.childAt(0);
  65973. i.draggable = n, i.cursor = !r && n ? "move" : i.cursor;
  65974. }, e.prototype.updateData = function(n, r, i, a) {
  65975. this.silent = !1;
  65976. var o = n.getItemVisual(r, "symbol") || "circle", s = n.hostModel, l = e.getSymbolSize(n, r), u = o !== this._symbolType, c = a && a.disableAnimation;
  65977. if (u) {
  65978. var f = n.getItemVisual(r, "symbolKeepAspect");
  65979. this._createSymbol(o, n, r, l, f);
  65980. } else {
  65981. var d = this.childAt(0);
  65982. d.silent = !1;
  65983. var h = {
  65984. scaleX: l[0] / 2,
  65985. scaleY: l[1] / 2
  65986. };
  65987. c ? d.attr(h) : tn(d, h, s, r), Zs(d);
  65988. }
  65989. if (this._updateCommon(n, r, l, i, a), u) {
  65990. var d = this.childAt(0);
  65991. if (!c) {
  65992. var h = {
  65993. scaleX: this._sizeX,
  65994. scaleY: this._sizeY,
  65995. style: {
  65996. // Always fadeIn. Because it has fadeOut animation when symbol is removed..
  65997. opacity: d.style.opacity
  65998. }
  65999. };
  66000. d.scaleX = d.scaleY = 0, d.style.opacity = 0, Vn(d, h, s, r);
  66001. }
  66002. }
  66003. c && this.childAt(0).stopAnimation("leave");
  66004. }, e.prototype._updateCommon = function(n, r, i, a, o) {
  66005. var s = this.childAt(0), l = n.hostModel, u, c, f, d, h, p, v, g, m;
  66006. if (a && (u = a.emphasisItemStyle, c = a.blurItemStyle, f = a.selectItemStyle, d = a.focus, h = a.blurScope, v = a.labelStatesModels, g = a.hoverScale, m = a.cursorStyle, p = a.emphasisDisabled), !a || n.hasItemOption) {
  66007. var y = a && a.itemModel ? a.itemModel : n.getItemModel(r), _ = y.getModel("emphasis");
  66008. u = _.getModel("itemStyle").getItemStyle(), f = y.getModel(["select", "itemStyle"]).getItemStyle(), c = y.getModel(["blur", "itemStyle"]).getItemStyle(), d = _.get("focus"), h = _.get("blurScope"), p = _.get("disabled"), v = ei(y), g = _.getShallow("scale"), m = y.getShallow("cursor");
  66009. }
  66010. var O = n.getItemVisual(r, "symbolRotate");
  66011. s.attr("rotation", (O || 0) * Math.PI / 180 || 0);
  66012. var S = mp(n.getItemVisual(r, "symbolOffset"), i);
  66013. S && (s.x = S[0], s.y = S[1]), m && s.attr("cursor", m);
  66014. var x = n.getItemVisual(r, "style"), C = x.fill;
  66015. if (s instanceof ci) {
  66016. var P = s.style;
  66017. s.useStyle(_e({
  66018. // TODO other properties like x, y ?
  66019. image: P.image,
  66020. x: P.x,
  66021. y: P.y,
  66022. width: P.width,
  66023. height: P.height
  66024. }, x));
  66025. } else
  66026. s.__isEmptyBrush ? s.useStyle(_e({}, x)) : s.useStyle(x), s.style.decal = null, s.setColor(C, o && o.symbolInnerColor), s.style.strokeNoScale = !0;
  66027. var $ = n.getItemVisual(r, "liftZ"), T = this._z2;
  66028. $ != null ? T == null && (this._z2 = s.z2, s.z2 += $) : T != null && (s.z2 = T, this._z2 = null);
  66029. var E = o && o.useNameLabel;
  66030. Ei(s, v, {
  66031. labelFetcher: l,
  66032. labelDataIndex: r,
  66033. defaultText: M,
  66034. inheritColor: C,
  66035. defaultOpacity: x.opacity
  66036. });
  66037. function M(I) {
  66038. return E ? n.getName(I) : jg(n, I);
  66039. }
  66040. this._sizeX = i[0] / 2, this._sizeY = i[1] / 2;
  66041. var R = s.ensureState("emphasis");
  66042. R.style = u, s.ensureState("select").style = f, s.ensureState("blur").style = c;
  66043. var N = g == null || g === !0 ? Math.max(1.1, 3 / this._sizeY) : isFinite(g) && g > 0 ? +g : 1;
  66044. R.scaleX = this._sizeX * N, R.scaleY = this._sizeY * N, this.setSymbolScale(1), ur(this, d, h, p);
  66045. }, e.prototype.setSymbolScale = function(n) {
  66046. this.scaleX = this.scaleY = n;
  66047. }, e.prototype.fadeOut = function(n, r, i) {
  66048. var a = this.childAt(0), o = ft(this).dataIndex, s = i && i.animation;
  66049. if (this.silent = a.silent = !0, i && i.fadeLabel) {
  66050. var l = a.getTextContent();
  66051. l && _f(l, {
  66052. style: {
  66053. opacity: 0
  66054. }
  66055. }, r, {
  66056. dataIndex: o,
  66057. removeOpt: s,
  66058. cb: function() {
  66059. a.removeTextContent();
  66060. }
  66061. });
  66062. } else
  66063. a.removeTextContent();
  66064. _f(a, {
  66065. style: {
  66066. opacity: 0
  66067. },
  66068. scaleX: 0,
  66069. scaleY: 0
  66070. }, r, {
  66071. dataIndex: o,
  66072. cb: n,
  66073. removeOpt: s
  66074. });
  66075. }, e.getSymbolSize = function(n, r) {
  66076. return Em(n.getItemVisual(r, "symbolSize"));
  66077. }, e;
  66078. }(ct)
  66079. );
  66080. function FJe(t, e) {
  66081. this.parent.drift(t, e);
  66082. }
  66083. function FM(t, e, n, r) {
  66084. return e && !isNaN(e[0]) && !isNaN(e[1]) && !(r.isIgnore && r.isIgnore(n)) && !(r.clipShape && !r.clipShape.contain(e[0], e[1])) && t.getItemVisual(n, "symbol") !== "none";
  66085. }
  66086. function hZ(t) {
  66087. return t != null && !nt(t) && (t = {
  66088. isIgnore: t
  66089. }), t || {};
  66090. }
  66091. function pZ(t) {
  66092. var e = t.hostModel, n = e.getModel("emphasis");
  66093. return {
  66094. emphasisItemStyle: n.getModel("itemStyle").getItemStyle(),
  66095. blurItemStyle: e.getModel(["blur", "itemStyle"]).getItemStyle(),
  66096. selectItemStyle: e.getModel(["select", "itemStyle"]).getItemStyle(),
  66097. focus: n.get("focus"),
  66098. blurScope: n.get("blurScope"),
  66099. emphasisDisabled: n.get("disabled"),
  66100. hoverScale: n.get("scale"),
  66101. labelStatesModels: ei(e),
  66102. cursorStyle: e.get("cursor")
  66103. };
  66104. }
  66105. var y1 = (
  66106. /** @class */
  66107. function() {
  66108. function t(e) {
  66109. this.group = new ct(), this._SymbolCtor = e || m1;
  66110. }
  66111. return t.prototype.updateData = function(e, n) {
  66112. this._progressiveEls = null, n = hZ(n);
  66113. var r = this.group, i = e.hostModel, a = this._data, o = this._SymbolCtor, s = n.disableAnimation, l = pZ(e), u = {
  66114. disableAnimation: s
  66115. }, c = n.getSymbolPoint || function(f) {
  66116. return e.getItemLayout(f);
  66117. };
  66118. a || r.removeAll(), e.diff(a).add(function(f) {
  66119. var d = c(f);
  66120. if (FM(e, d, f, n)) {
  66121. var h = new o(e, f, l, u);
  66122. h.setPosition(d), e.setItemGraphicEl(f, h), r.add(h);
  66123. }
  66124. }).update(function(f, d) {
  66125. var h = a.getItemGraphicEl(d), p = c(f);
  66126. if (!FM(e, p, f, n)) {
  66127. r.remove(h);
  66128. return;
  66129. }
  66130. var v = e.getItemVisual(f, "symbol") || "circle", g = h && h.getSymbolType && h.getSymbolType();
  66131. if (!h || g && g !== v)
  66132. r.remove(h), h = new o(e, f, l, u), h.setPosition(p);
  66133. else {
  66134. h.updateData(e, f, l, u);
  66135. var m = {
  66136. x: p[0],
  66137. y: p[1]
  66138. };
  66139. s ? h.attr(m) : tn(h, m, i);
  66140. }
  66141. r.add(h), e.setItemGraphicEl(f, h);
  66142. }).remove(function(f) {
  66143. var d = a.getItemGraphicEl(f);
  66144. d && d.fadeOut(function() {
  66145. r.remove(d);
  66146. }, i);
  66147. }).execute(), this._getSymbolPoint = c, this._data = e;
  66148. }, t.prototype.updateLayout = function() {
  66149. var e = this, n = this._data;
  66150. n && n.eachItemGraphicEl(function(r, i) {
  66151. var a = e._getSymbolPoint(i);
  66152. r.setPosition(a), r.markRedraw();
  66153. });
  66154. }, t.prototype.incrementalPrepareUpdate = function(e) {
  66155. this._seriesScope = pZ(e), this._data = null, this.group.removeAll();
  66156. }, t.prototype.incrementalUpdate = function(e, n, r) {
  66157. this._progressiveEls = [], r = hZ(r);
  66158. function i(l) {
  66159. l.isGroup || (l.incremental = !0, l.ensureState("emphasis").hoverLayer = !0);
  66160. }
  66161. for (var a = e.start; a < e.end; a++) {
  66162. var o = n.getItemLayout(a);
  66163. if (FM(n, o, a, r)) {
  66164. var s = new this._SymbolCtor(n, a, this._seriesScope);
  66165. s.traverse(i), s.setPosition(o), this.group.add(s), n.setItemGraphicEl(a, s), this._progressiveEls.push(s);
  66166. }
  66167. }
  66168. }, t.prototype.eachRendered = function(e) {
  66169. Nf(this._progressiveEls || this.group, e);
  66170. }, t.prototype.remove = function(e) {
  66171. var n = this.group, r = this._data;
  66172. r && e ? r.eachItemGraphicEl(function(i) {
  66173. i.fadeOut(function() {
  66174. n.remove(i);
  66175. }, r.hostModel);
  66176. }) : n.removeAll();
  66177. }, t;
  66178. }()
  66179. );
  66180. function sfe(t, e, n) {
  66181. var r = t.getBaseAxis(), i = t.getOtherAxis(r), a = WJe(i, n), o = r.dim, s = i.dim, l = e.mapDimension(s), u = e.mapDimension(o), c = s === "x" || s === "radius" ? 1 : 0, f = Ce(t.dimensions, function(p) {
  66182. return e.mapDimension(p);
  66183. }), d = !1, h = e.getCalculationInfo("stackResultDimension");
  66184. return Hu(
  66185. e,
  66186. f[0]
  66187. /* , dims[1] */
  66188. ) && (d = !0, f[0] = h), Hu(
  66189. e,
  66190. f[1]
  66191. /* , dims[0] */
  66192. ) && (d = !0, f[1] = h), {
  66193. dataDimsForPoint: f,
  66194. valueStart: a,
  66195. valueAxisDim: s,
  66196. baseAxisDim: o,
  66197. stacked: !!d,
  66198. valueDim: l,
  66199. baseDim: u,
  66200. baseDataOffset: c,
  66201. stackedOverDimension: e.getCalculationInfo("stackedOverDimension")
  66202. };
  66203. }
  66204. function WJe(t, e) {
  66205. var n = 0, r = t.scale.getExtent();
  66206. return e === "start" ? n = r[0] : e === "end" ? n = r[1] : Kt(e) && !isNaN(e) ? n = e : r[0] > 0 ? n = r[0] : r[1] < 0 && (n = r[1]), n;
  66207. }
  66208. function lfe(t, e, n, r) {
  66209. var i = NaN;
  66210. t.stacked && (i = n.get(n.getCalculationInfo("stackedOverDimension"), r)), isNaN(i) && (i = t.valueStart);
  66211. var a = t.baseDataOffset, o = [];
  66212. return o[a] = n.get(t.baseDim, r), o[1 - a] = i, e.dataToPoint(o);
  66213. }
  66214. function QJe(t, e) {
  66215. var n = [];
  66216. return e.diff(t).add(function(r) {
  66217. n.push({
  66218. cmd: "+",
  66219. idx: r
  66220. });
  66221. }).update(function(r, i) {
  66222. n.push({
  66223. cmd: "=",
  66224. idx: i,
  66225. idx1: r
  66226. });
  66227. }).remove(function(r) {
  66228. n.push({
  66229. cmd: "-",
  66230. idx: r
  66231. });
  66232. }).execute(), n;
  66233. }
  66234. function HJe(t, e, n, r, i, a, o, s) {
  66235. for (var l = QJe(t, e), u = [], c = [], f = [], d = [], h = [], p = [], v = [], g = sfe(i, e, o), m = t.getLayout("points") || [], y = e.getLayout("points") || [], _ = 0; _ < l.length; _++) {
  66236. var O = l[_], S = !0, x = void 0, C = void 0;
  66237. switch (O.cmd) {
  66238. case "=":
  66239. x = O.idx * 2, C = O.idx1 * 2;
  66240. var P = m[x], $ = m[x + 1], T = y[C], E = y[C + 1];
  66241. (isNaN(P) || isNaN($)) && (P = T, $ = E), u.push(P, $), c.push(T, E), f.push(n[x], n[x + 1]), d.push(r[C], r[C + 1]), v.push(e.getRawIndex(O.idx1));
  66242. break;
  66243. case "+":
  66244. var M = O.idx, R = g.dataDimsForPoint, N = i.dataToPoint([e.get(R[0], M), e.get(R[1], M)]);
  66245. C = M * 2, u.push(N[0], N[1]), c.push(y[C], y[C + 1]);
  66246. var I = lfe(g, i, e, M);
  66247. f.push(I[0], I[1]), d.push(r[C], r[C + 1]), v.push(e.getRawIndex(M));
  66248. break;
  66249. case "-":
  66250. S = !1;
  66251. }
  66252. S && (h.push(O), p.push(p.length));
  66253. }
  66254. p.sort(function(ue, ye) {
  66255. return v[ue] - v[ye];
  66256. });
  66257. for (var B = u.length, Q = Al(B), W = Al(B), H = Al(B), U = Al(B), j = [], _ = 0; _ < p.length; _++) {
  66258. var Y = p[_], ne = _ * 2, fe = Y * 2;
  66259. Q[ne] = u[fe], Q[ne + 1] = u[fe + 1], W[ne] = c[fe], W[ne + 1] = c[fe + 1], H[ne] = f[fe], H[ne + 1] = f[fe + 1], U[ne] = d[fe], U[ne + 1] = d[fe + 1], j[_] = h[Y];
  66260. }
  66261. return {
  66262. current: Q,
  66263. next: W,
  66264. stackedOnCurrent: H,
  66265. stackedOnNext: U,
  66266. status: j
  66267. };
  66268. }
  66269. var wc = Math.min, Cc = Math.max;
  66270. function $h(t, e) {
  66271. return isNaN(t) || isNaN(e);
  66272. }
  66273. function iL(t, e, n, r, i, a, o, s, l) {
  66274. for (var u, c, f, d, h, p, v = n, g = 0; g < r; g++) {
  66275. var m = e[v * 2], y = e[v * 2 + 1];
  66276. if (v >= i || v < 0)
  66277. break;
  66278. if ($h(m, y)) {
  66279. if (l) {
  66280. v += a;
  66281. continue;
  66282. }
  66283. break;
  66284. }
  66285. if (v === n)
  66286. t[a > 0 ? "moveTo" : "lineTo"](m, y), f = m, d = y;
  66287. else {
  66288. var _ = m - u, O = y - c;
  66289. if (_ * _ + O * O < 0.5) {
  66290. v += a;
  66291. continue;
  66292. }
  66293. if (o > 0) {
  66294. for (var S = v + a, x = e[S * 2], C = e[S * 2 + 1]; x === m && C === y && g < r; )
  66295. g++, S += a, v += a, x = e[S * 2], C = e[S * 2 + 1], m = e[v * 2], y = e[v * 2 + 1], _ = m - u, O = y - c;
  66296. var P = g + 1;
  66297. if (l)
  66298. for (; $h(x, C) && P < r; )
  66299. P++, S += a, x = e[S * 2], C = e[S * 2 + 1];
  66300. var $ = 0.5, T = 0, E = 0, M = void 0, R = void 0;
  66301. if (P >= r || $h(x, C))
  66302. h = m, p = y;
  66303. else {
  66304. T = x - u, E = C - c;
  66305. var N = m - u, I = x - m, B = y - c, Q = C - y, W = void 0, H = void 0;
  66306. if (s === "x") {
  66307. W = Math.abs(N), H = Math.abs(I);
  66308. var U = T > 0 ? 1 : -1;
  66309. h = m - U * W * o, p = y, M = m + U * H * o, R = y;
  66310. } else if (s === "y") {
  66311. W = Math.abs(B), H = Math.abs(Q);
  66312. var j = E > 0 ? 1 : -1;
  66313. h = m, p = y - j * W * o, M = m, R = y + j * H * o;
  66314. } else
  66315. W = Math.sqrt(N * N + B * B), H = Math.sqrt(I * I + Q * Q), $ = H / (H + W), h = m - T * o * (1 - $), p = y - E * o * (1 - $), M = m + T * o * $, R = y + E * o * $, M = wc(M, Cc(x, m)), R = wc(R, Cc(C, y)), M = Cc(M, wc(x, m)), R = Cc(R, wc(C, y)), T = M - m, E = R - y, h = m - T * W / H, p = y - E * W / H, h = wc(h, Cc(u, m)), p = wc(p, Cc(c, y)), h = Cc(h, wc(u, m)), p = Cc(p, wc(c, y)), T = m - h, E = y - p, M = m + T * H / W, R = y + E * H / W;
  66316. }
  66317. t.bezierCurveTo(f, d, h, p, m, y), f = M, d = R;
  66318. } else
  66319. t.lineTo(m, y);
  66320. }
  66321. u = m, c = y, v += a;
  66322. }
  66323. return g;
  66324. }
  66325. var ufe = (
  66326. /** @class */
  66327. /* @__PURE__ */ function() {
  66328. function t() {
  66329. this.smooth = 0, this.smoothConstraint = !0;
  66330. }
  66331. return t;
  66332. }()
  66333. ), GJe = (
  66334. /** @class */
  66335. function(t) {
  66336. le(e, t);
  66337. function e(n) {
  66338. var r = t.call(this, n) || this;
  66339. return r.type = "ec-polyline", r;
  66340. }
  66341. return e.prototype.getDefaultStyle = function() {
  66342. return {
  66343. stroke: "#000",
  66344. fill: null
  66345. };
  66346. }, e.prototype.getDefaultShape = function() {
  66347. return new ufe();
  66348. }, e.prototype.buildPath = function(n, r) {
  66349. var i = r.points, a = 0, o = i.length / 2;
  66350. if (r.connectNulls) {
  66351. for (; o > 0 && $h(i[o * 2 - 2], i[o * 2 - 1]); o--)
  66352. ;
  66353. for (; a < o && $h(i[a * 2], i[a * 2 + 1]); a++)
  66354. ;
  66355. }
  66356. for (; a < o; )
  66357. a += iL(n, i, a, o, o, 1, r.smooth, r.smoothMonotone, r.connectNulls) + 1;
  66358. }, e.prototype.getPointOn = function(n, r) {
  66359. this.path || (this.createPathProxy(), this.buildPath(this.path, this.shape));
  66360. for (var i = this.path, a = i.data, o = jl.CMD, s, l, u = r === "x", c = [], f = 0; f < a.length; ) {
  66361. var d = a[f++], h = void 0, p = void 0, v = void 0, g = void 0, m = void 0, y = void 0, _ = void 0;
  66362. switch (d) {
  66363. case o.M:
  66364. s = a[f++], l = a[f++];
  66365. break;
  66366. case o.L:
  66367. if (h = a[f++], p = a[f++], _ = u ? (n - s) / (h - s) : (n - l) / (p - l), _ <= 1 && _ >= 0) {
  66368. var O = u ? (p - l) * _ + l : (h - s) * _ + s;
  66369. return u ? [n, O] : [O, n];
  66370. }
  66371. s = h, l = p;
  66372. break;
  66373. case o.C:
  66374. h = a[f++], p = a[f++], v = a[f++], g = a[f++], m = a[f++], y = a[f++];
  66375. var S = u ? wC(s, h, v, m, n, c) : wC(l, p, g, y, n, c);
  66376. if (S > 0)
  66377. for (var x = 0; x < S; x++) {
  66378. var C = c[x];
  66379. if (C <= 1 && C >= 0) {
  66380. var O = u ? jr(l, p, g, y, C) : jr(s, h, v, m, C);
  66381. return u ? [n, O] : [O, n];
  66382. }
  66383. }
  66384. s = m, l = y;
  66385. break;
  66386. }
  66387. }
  66388. }, e;
  66389. }(Dt)
  66390. ), jJe = (
  66391. /** @class */
  66392. function(t) {
  66393. le(e, t);
  66394. function e() {
  66395. return t !== null && t.apply(this, arguments) || this;
  66396. }
  66397. return e;
  66398. }(ufe)
  66399. ), cfe = (
  66400. /** @class */
  66401. function(t) {
  66402. le(e, t);
  66403. function e(n) {
  66404. var r = t.call(this, n) || this;
  66405. return r.type = "ec-polygon", r;
  66406. }
  66407. return e.prototype.getDefaultShape = function() {
  66408. return new jJe();
  66409. }, e.prototype.buildPath = function(n, r) {
  66410. var i = r.points, a = r.stackedOnPoints, o = 0, s = i.length / 2, l = r.smoothMonotone;
  66411. if (r.connectNulls) {
  66412. for (; s > 0 && $h(i[s * 2 - 2], i[s * 2 - 1]); s--)
  66413. ;
  66414. for (; o < s && $h(i[o * 2], i[o * 2 + 1]); o++)
  66415. ;
  66416. }
  66417. for (; o < s; ) {
  66418. var u = iL(n, i, o, s, s, 1, r.smooth, l, r.connectNulls);
  66419. iL(n, a, o + u - 1, u, s, -1, r.stackedOnSmooth, l, r.connectNulls), o += u + 1, n.closePath();
  66420. }
  66421. }, e;
  66422. }(Dt)
  66423. );
  66424. function ffe(t, e, n, r, i) {
  66425. var a = t.getArea(), o = a.x, s = a.y, l = a.width, u = a.height, c = n.get(["lineStyle", "width"]) || 2;
  66426. o -= c / 2, s -= c / 2, l += c, u += c, l = Math.ceil(l), o !== Math.floor(o) && (o = Math.floor(o), l++);
  66427. var f = new Zt({
  66428. shape: {
  66429. x: o,
  66430. y: s,
  66431. width: l,
  66432. height: u
  66433. }
  66434. });
  66435. if (e) {
  66436. var d = t.getBaseAxis(), h = d.isHorizontal(), p = d.inverse;
  66437. h ? (p && (f.shape.x += l), f.shape.width = 0) : (p || (f.shape.y += u), f.shape.height = 0);
  66438. var v = qe(i) ? function(g) {
  66439. i(g, f);
  66440. } : null;
  66441. Vn(f, {
  66442. shape: {
  66443. width: l,
  66444. height: u,
  66445. x: o,
  66446. y: s
  66447. }
  66448. }, n, null, r, v);
  66449. }
  66450. return f;
  66451. }
  66452. function dfe(t, e, n) {
  66453. var r = t.getArea(), i = sr(r.r0, 1), a = sr(r.r, 1), o = new ha({
  66454. shape: {
  66455. cx: sr(t.cx, 1),
  66456. cy: sr(t.cy, 1),
  66457. r0: i,
  66458. r: a,
  66459. startAngle: r.startAngle,
  66460. endAngle: r.endAngle,
  66461. clockwise: r.clockwise
  66462. }
  66463. });
  66464. if (e) {
  66465. var s = t.getBaseAxis().dim === "angle";
  66466. s ? o.shape.endAngle = r.startAngle : o.shape.r = i, Vn(o, {
  66467. shape: {
  66468. endAngle: r.endAngle,
  66469. r: a
  66470. }
  66471. }, n);
  66472. }
  66473. return o;
  66474. }
  66475. function b1(t, e, n, r, i) {
  66476. if (t) {
  66477. if (t.type === "polar")
  66478. return dfe(t, e, n);
  66479. if (t.type === "cartesian2d")
  66480. return ffe(t, e, n, r, i);
  66481. } else return null;
  66482. return null;
  66483. }
  66484. function yp(t, e) {
  66485. return t.type === e;
  66486. }
  66487. function vZ(t, e) {
  66488. if (t.length === e.length) {
  66489. for (var n = 0; n < t.length; n++)
  66490. if (t[n] !== e[n])
  66491. return;
  66492. return !0;
  66493. }
  66494. }
  66495. function gZ(t) {
  66496. for (var e = 1 / 0, n = 1 / 0, r = -1 / 0, i = -1 / 0, a = 0; a < t.length; ) {
  66497. var o = t[a++], s = t[a++];
  66498. isNaN(o) || (e = Math.min(o, e), r = Math.max(o, r)), isNaN(s) || (n = Math.min(s, n), i = Math.max(s, i));
  66499. }
  66500. return [[e, n], [r, i]];
  66501. }
  66502. function mZ(t, e) {
  66503. var n = gZ(t), r = n[0], i = n[1], a = gZ(e), o = a[0], s = a[1];
  66504. return Math.max(Math.abs(r[0] - o[0]), Math.abs(r[1] - o[1]), Math.abs(i[0] - s[0]), Math.abs(i[1] - s[1]));
  66505. }
  66506. function yZ(t) {
  66507. return Kt(t) ? t : t ? 0.5 : 0;
  66508. }
  66509. function ZJe(t, e, n) {
  66510. if (!n.valueDim)
  66511. return [];
  66512. for (var r = e.count(), i = Al(r * 2), a = 0; a < r; a++) {
  66513. var o = lfe(n, t, e, a);
  66514. i[a * 2] = o[0], i[a * 2 + 1] = o[1];
  66515. }
  66516. return i;
  66517. }
  66518. function Tc(t, e, n, r) {
  66519. var i = e.getBaseAxis(), a = i.dim === "x" || i.dim === "radius" ? 0 : 1, o = [], s = 0, l = [], u = [], c = [], f = [];
  66520. if (r) {
  66521. for (s = 0; s < t.length; s += 2)
  66522. !isNaN(t[s]) && !isNaN(t[s + 1]) && f.push(t[s], t[s + 1]);
  66523. t = f;
  66524. }
  66525. for (s = 0; s < t.length - 2; s += 2)
  66526. switch (c[0] = t[s + 2], c[1] = t[s + 3], u[0] = t[s], u[1] = t[s + 1], o.push(u[0], u[1]), n) {
  66527. case "end":
  66528. l[a] = c[a], l[1 - a] = u[1 - a], o.push(l[0], l[1]);
  66529. break;
  66530. case "middle":
  66531. var d = (u[a] + c[a]) / 2, h = [];
  66532. l[a] = h[a] = d, l[1 - a] = u[1 - a], h[1 - a] = c[1 - a], o.push(l[0], l[1]), o.push(h[0], h[1]);
  66533. break;
  66534. default:
  66535. l[a] = u[a], l[1 - a] = c[1 - a], o.push(l[0], l[1]);
  66536. }
  66537. return o.push(t[s++], t[s++]), o;
  66538. }
  66539. function UJe(t, e) {
  66540. var n = [], r = t.length, i, a;
  66541. function o(c, f, d) {
  66542. var h = c.coord, p = (d - h) / (f.coord - h), v = x5(p, [c.color, f.color]);
  66543. return {
  66544. coord: d,
  66545. color: v
  66546. };
  66547. }
  66548. for (var s = 0; s < r; s++) {
  66549. var l = t[s], u = l.coord;
  66550. if (u < 0)
  66551. i = l;
  66552. else if (u > e) {
  66553. a ? n.push(o(a, l, e)) : i && n.push(o(i, l, 0), o(i, l, e));
  66554. break;
  66555. } else
  66556. i && (n.push(o(i, l, 0)), i = null), n.push(l), a = l;
  66557. }
  66558. return n;
  66559. }
  66560. function XJe(t, e, n) {
  66561. var r = t.getVisual("visualMeta");
  66562. if (!(!r || !r.length || !t.count())) {
  66563. if (e.type !== "cartesian2d") {
  66564. process.env.NODE_ENV !== "production" && console.warn("Visual map on line style is only supported on cartesian2d.");
  66565. return;
  66566. }
  66567. for (var i, a, o = r.length - 1; o >= 0; o--) {
  66568. var s = t.getDimensionInfo(r[o].dimension);
  66569. if (i = s && s.coordDim, i === "x" || i === "y") {
  66570. a = r[o];
  66571. break;
  66572. }
  66573. }
  66574. if (!a) {
  66575. process.env.NODE_ENV !== "production" && console.warn("Visual map on line style only support x or y dimension.");
  66576. return;
  66577. }
  66578. var l = e.getAxis(i), u = Ce(a.stops, function(_) {
  66579. return {
  66580. coord: l.toGlobalCoord(l.dataToCoord(_.value)),
  66581. color: _.color
  66582. };
  66583. }), c = u.length, f = a.outerColors.slice();
  66584. c && u[0].coord > u[c - 1].coord && (u.reverse(), f.reverse());
  66585. var d = UJe(u, i === "x" ? n.getWidth() : n.getHeight()), h = d.length;
  66586. if (!h && c)
  66587. return u[0].coord < 0 ? f[1] ? f[1] : u[c - 1].color : f[0] ? f[0] : u[0].color;
  66588. var p = 10, v = d[0].coord - p, g = d[h - 1].coord + p, m = g - v;
  66589. if (m < 1e-3)
  66590. return "transparent";
  66591. F(d, function(_) {
  66592. _.offset = (_.coord - v) / m;
  66593. }), d.push({
  66594. // NOTE: inRangeStopLen may still be 0 if stoplen is zero.
  66595. offset: h ? d[h - 1].offset : 0.5,
  66596. color: f[1] || "transparent"
  66597. }), d.unshift({
  66598. offset: h ? d[0].offset : 0.5,
  66599. color: f[0] || "transparent"
  66600. });
  66601. var y = new _m(0, 0, 0, 0, d, !0);
  66602. return y[i] = v, y[i + "2"] = g, y;
  66603. }
  66604. }
  66605. function YJe(t, e, n) {
  66606. var r = t.get("showAllSymbol"), i = r === "auto";
  66607. if (!(r && !i)) {
  66608. var a = n.getAxesByScale("ordinal")[0];
  66609. if (a && !(i && qJe(a, e))) {
  66610. var o = e.mapDimension(a.dim), s = {};
  66611. return F(a.getViewLabels(), function(l) {
  66612. var u = a.scale.getRawOrdinalNumber(l.tickValue);
  66613. s[u] = 1;
  66614. }), function(l) {
  66615. return !s.hasOwnProperty(e.get(o, l));
  66616. };
  66617. }
  66618. }
  66619. }
  66620. function qJe(t, e) {
  66621. var n = t.getExtent(), r = Math.abs(n[1] - n[0]) / t.scale.count();
  66622. isNaN(r) && (r = 0);
  66623. for (var i = e.count(), a = Math.max(1, Math.round(i / 5)), o = 0; o < i; o += a)
  66624. if (m1.getSymbolSize(
  66625. e,
  66626. o
  66627. // Only for cartesian, where `isHorizontal` exists.
  66628. )[t.isHorizontal() ? 1 : 0] * 1.5 > r)
  66629. return !1;
  66630. return !0;
  66631. }
  66632. function KJe(t, e) {
  66633. return isNaN(t) || isNaN(e);
  66634. }
  66635. function JJe(t) {
  66636. for (var e = t.length / 2; e > 0 && KJe(t[e * 2 - 2], t[e * 2 - 1]); e--)
  66637. ;
  66638. return e - 1;
  66639. }
  66640. function bZ(t, e) {
  66641. return [t[e * 2], t[e * 2 + 1]];
  66642. }
  66643. function eet(t, e, n) {
  66644. for (var r = t.length / 2, i = n === "x" ? 0 : 1, a, o, s = 0, l = -1, u = 0; u < r; u++)
  66645. if (o = t[u * 2 + i], !(isNaN(o) || isNaN(t[u * 2 + 1 - i]))) {
  66646. if (u === 0) {
  66647. a = o;
  66648. continue;
  66649. }
  66650. if (a <= e && o >= e || a >= e && o <= e) {
  66651. l = u;
  66652. break;
  66653. }
  66654. s = u, a = o;
  66655. }
  66656. return {
  66657. range: [s, l],
  66658. t: (e - a) / (o - a)
  66659. };
  66660. }
  66661. function hfe(t) {
  66662. if (t.get(["endLabel", "show"]))
  66663. return !0;
  66664. for (var e = 0; e < da.length; e++)
  66665. if (t.get([da[e], "endLabel", "show"]))
  66666. return !0;
  66667. return !1;
  66668. }
  66669. function WM(t, e, n, r) {
  66670. if (yp(e, "cartesian2d")) {
  66671. var i = r.getModel("endLabel"), a = i.get("valueAnimation"), o = r.getData(), s = {
  66672. lastFrameIndex: 0
  66673. }, l = hfe(r) ? function(h, p) {
  66674. t._endLabelOnDuring(h, p, o, s, a, i, e);
  66675. } : null, u = e.getBaseAxis().isHorizontal(), c = ffe(e, n, r, function() {
  66676. var h = t._endLabel;
  66677. h && n && s.originalX != null && h.attr({
  66678. x: s.originalX,
  66679. y: s.originalY
  66680. });
  66681. }, l);
  66682. if (!r.get("clip", !0)) {
  66683. var f = c.shape, d = Math.max(f.width, f.height);
  66684. u ? (f.y -= d, f.height += d * 2) : (f.x -= d, f.width += d * 2);
  66685. }
  66686. return l && l(1, c), c;
  66687. } else
  66688. return process.env.NODE_ENV !== "production" && r.get(["endLabel", "show"]) && console.warn("endLabel is not supported for lines in polar systems."), dfe(e, n, r);
  66689. }
  66690. function tet(t, e) {
  66691. var n = e.getBaseAxis(), r = n.isHorizontal(), i = n.inverse, a = r ? i ? "right" : "left" : "center", o = r ? "middle" : i ? "top" : "bottom";
  66692. return {
  66693. normal: {
  66694. align: t.get("align") || a,
  66695. verticalAlign: t.get("verticalAlign") || o
  66696. }
  66697. };
  66698. }
  66699. var net = (
  66700. /** @class */
  66701. function(t) {
  66702. le(e, t);
  66703. function e() {
  66704. return t !== null && t.apply(this, arguments) || this;
  66705. }
  66706. return e.prototype.init = function() {
  66707. var n = new ct(), r = new y1();
  66708. this.group.add(r.group), this._symbolDraw = r, this._lineGroup = n;
  66709. }, e.prototype.render = function(n, r, i) {
  66710. var a = this, o = n.coordinateSystem, s = this.group, l = n.getData(), u = n.getModel("lineStyle"), c = n.getModel("areaStyle"), f = l.getLayout("points") || [], d = o.type === "polar", h = this._coordSys, p = this._symbolDraw, v = this._polyline, g = this._polygon, m = this._lineGroup, y = !r.ssr && n.get("animation"), _ = !c.isEmpty(), O = c.get("origin"), S = sfe(o, l, O), x = _ && ZJe(o, l, S), C = n.get("showSymbol"), P = n.get("connectNulls"), $ = C && !d && YJe(n, l, o), T = this._data;
  66711. T && T.eachItemGraphicEl(function(ye, se) {
  66712. ye.__temp && (s.remove(ye), T.setItemGraphicEl(se, null));
  66713. }), C || p.remove(), s.add(m);
  66714. var E = d ? !1 : n.get("step"), M;
  66715. o && o.getArea && n.get("clip", !0) && (M = o.getArea(), M.width != null ? (M.x -= 0.1, M.y -= 0.1, M.width += 0.2, M.height += 0.2) : M.r0 && (M.r0 -= 0.5, M.r += 0.5)), this._clipShapeForSymbol = M;
  66716. var R = XJe(l, o, i) || l.getVisual("style")[l.getVisual("drawType")];
  66717. if (!(v && h.type === o.type && E === this._step))
  66718. C && p.updateData(l, {
  66719. isIgnore: $,
  66720. clipShape: M,
  66721. disableAnimation: !0,
  66722. getSymbolPoint: function(ye) {
  66723. return [f[ye * 2], f[ye * 2 + 1]];
  66724. }
  66725. }), y && this._initSymbolLabelAnimation(l, o, M), E && (f = Tc(f, o, E, P), x && (x = Tc(x, o, E, P))), v = this._newPolyline(f), _ ? g = this._newPolygon(f, x) : g && (m.remove(g), g = this._polygon = null), d || this._initOrUpdateEndLabel(n, o, Uh(R)), m.setClipPath(WM(this, o, !0, n));
  66726. else {
  66727. _ && !g ? g = this._newPolygon(f, x) : g && !_ && (m.remove(g), g = this._polygon = null), d || this._initOrUpdateEndLabel(n, o, Uh(R));
  66728. var N = m.getClipPath();
  66729. if (N) {
  66730. var I = WM(this, o, !1, n);
  66731. Vn(N, {
  66732. shape: I.shape
  66733. }, n);
  66734. } else
  66735. m.setClipPath(WM(this, o, !0, n));
  66736. C && p.updateData(l, {
  66737. isIgnore: $,
  66738. clipShape: M,
  66739. disableAnimation: !0,
  66740. getSymbolPoint: function(ye) {
  66741. return [f[ye * 2], f[ye * 2 + 1]];
  66742. }
  66743. }), (!vZ(this._stackedOnPoints, x) || !vZ(this._points, f)) && (y ? this._doUpdateAnimation(l, x, o, i, E, O, P) : (E && (f = Tc(f, o, E, P), x && (x = Tc(x, o, E, P))), v.setShape({
  66744. points: f
  66745. }), g && g.setShape({
  66746. points: f,
  66747. stackedOnPoints: x
  66748. })));
  66749. }
  66750. var B = n.getModel("emphasis"), Q = B.get("focus"), W = B.get("blurScope"), H = B.get("disabled");
  66751. if (v.useStyle(it(
  66752. // Use color in lineStyle first
  66753. u.getLineStyle(),
  66754. {
  66755. fill: "none",
  66756. stroke: R,
  66757. lineJoin: "bevel"
  66758. }
  66759. )), Ai(v, n, "lineStyle"), v.style.lineWidth > 0 && n.get(["emphasis", "lineStyle", "width"]) === "bolder") {
  66760. var U = v.getState("emphasis").style;
  66761. U.lineWidth = +v.style.lineWidth + 1;
  66762. }
  66763. ft(v).seriesIndex = n.seriesIndex, ur(v, Q, W, H);
  66764. var j = yZ(n.get("smooth")), Y = n.get("smoothMonotone");
  66765. if (v.setShape({
  66766. smooth: j,
  66767. smoothMonotone: Y,
  66768. connectNulls: P
  66769. }), g) {
  66770. var ne = l.getCalculationInfo("stackedOnSeries"), fe = 0;
  66771. g.useStyle(it(c.getAreaStyle(), {
  66772. fill: R,
  66773. opacity: 0.7,
  66774. lineJoin: "bevel",
  66775. decal: l.getVisual("style").decal
  66776. })), ne && (fe = yZ(ne.get("smooth"))), g.setShape({
  66777. smooth: j,
  66778. stackedOnSmooth: fe,
  66779. smoothMonotone: Y,
  66780. connectNulls: P
  66781. }), Ai(g, n, "areaStyle"), ft(g).seriesIndex = n.seriesIndex, ur(g, Q, W, H);
  66782. }
  66783. var ue = function(ye) {
  66784. a._changePolyState(ye);
  66785. };
  66786. l.eachItemGraphicEl(function(ye) {
  66787. ye && (ye.onHoverStateChange = ue);
  66788. }), this._polyline.onHoverStateChange = ue, this._data = l, this._coordSys = o, this._stackedOnPoints = x, this._points = f, this._step = E, this._valueOrigin = O, n.get("triggerLineEvent") && (this.packEventData(n, v), g && this.packEventData(n, g));
  66789. }, e.prototype.packEventData = function(n, r) {
  66790. ft(r).eventData = {
  66791. componentType: "series",
  66792. componentSubType: "line",
  66793. componentIndex: n.componentIndex,
  66794. seriesIndex: n.seriesIndex,
  66795. seriesName: n.name,
  66796. seriesType: "line"
  66797. };
  66798. }, e.prototype.highlight = function(n, r, i, a) {
  66799. var o = n.getData(), s = Gh(o, a);
  66800. if (this._changePolyState("emphasis"), !(s instanceof Array) && s != null && s >= 0) {
  66801. var l = o.getLayout("points"), u = o.getItemGraphicEl(s);
  66802. if (!u) {
  66803. var c = l[s * 2], f = l[s * 2 + 1];
  66804. if (isNaN(c) || isNaN(f) || this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(c, f))
  66805. return;
  66806. var d = n.get("zlevel") || 0, h = n.get("z") || 0;
  66807. u = new m1(o, s), u.x = c, u.y = f, u.setZ(d, h);
  66808. var p = u.getSymbolPath().getTextContent();
  66809. p && (p.zlevel = d, p.z = h, p.z2 = this._polyline.z2 + 1), u.__temp = !0, o.setItemGraphicEl(s, u), u.stopSymbolAnimation(!0), this.group.add(u);
  66810. }
  66811. u.highlight();
  66812. } else
  66813. _n.prototype.highlight.call(this, n, r, i, a);
  66814. }, e.prototype.downplay = function(n, r, i, a) {
  66815. var o = n.getData(), s = Gh(o, a);
  66816. if (this._changePolyState("normal"), s != null && s >= 0) {
  66817. var l = o.getItemGraphicEl(s);
  66818. l && (l.__temp ? (o.setItemGraphicEl(s, null), this.group.remove(l)) : l.downplay());
  66819. } else
  66820. _n.prototype.downplay.call(this, n, r, i, a);
  66821. }, e.prototype._changePolyState = function(n) {
  66822. var r = this._polygon;
  66823. IC(this._polyline, n), r && IC(r, n);
  66824. }, e.prototype._newPolyline = function(n) {
  66825. var r = this._polyline;
  66826. return r && this._lineGroup.remove(r), r = new GJe({
  66827. shape: {
  66828. points: n
  66829. },
  66830. segmentIgnoreThreshold: 2,
  66831. z2: 10
  66832. }), this._lineGroup.add(r), this._polyline = r, r;
  66833. }, e.prototype._newPolygon = function(n, r) {
  66834. var i = this._polygon;
  66835. return i && this._lineGroup.remove(i), i = new cfe({
  66836. shape: {
  66837. points: n,
  66838. stackedOnPoints: r
  66839. },
  66840. segmentIgnoreThreshold: 2
  66841. }), this._lineGroup.add(i), this._polygon = i, i;
  66842. }, e.prototype._initSymbolLabelAnimation = function(n, r, i) {
  66843. var a, o, s = r.getBaseAxis(), l = s.inverse;
  66844. r.type === "cartesian2d" ? (a = s.isHorizontal(), o = !1) : r.type === "polar" && (a = s.dim === "angle", o = !0);
  66845. var u = n.hostModel, c = u.get("animationDuration");
  66846. qe(c) && (c = c(null));
  66847. var f = u.get("animationDelay") || 0, d = qe(f) ? f(null) : f;
  66848. n.eachItemGraphicEl(function(h, p) {
  66849. var v = h;
  66850. if (v) {
  66851. var g = [h.x, h.y], m = void 0, y = void 0, _ = void 0;
  66852. if (i)
  66853. if (o) {
  66854. var O = i, S = r.pointToCoord(g);
  66855. a ? (m = O.startAngle, y = O.endAngle, _ = -S[1] / 180 * Math.PI) : (m = O.r0, y = O.r, _ = S[0]);
  66856. } else {
  66857. var x = i;
  66858. a ? (m = x.x, y = x.x + x.width, _ = h.x) : (m = x.y + x.height, y = x.y, _ = h.y);
  66859. }
  66860. var C = y === m ? 0 : (_ - m) / (y - m);
  66861. l && (C = 1 - C);
  66862. var P = qe(f) ? f(p) : c * C + d, $ = v.getSymbolPath(), T = $.getTextContent();
  66863. v.attr({
  66864. scaleX: 0,
  66865. scaleY: 0
  66866. }), v.animateTo({
  66867. scaleX: 1,
  66868. scaleY: 1
  66869. }, {
  66870. duration: 200,
  66871. setToFinal: !0,
  66872. delay: P
  66873. }), T && T.animateFrom({
  66874. style: {
  66875. opacity: 0
  66876. }
  66877. }, {
  66878. duration: 300,
  66879. delay: P
  66880. }), $.disableLabelAnimation = !0;
  66881. }
  66882. });
  66883. }, e.prototype._initOrUpdateEndLabel = function(n, r, i) {
  66884. var a = n.getModel("endLabel");
  66885. if (hfe(n)) {
  66886. var o = n.getData(), s = this._polyline, l = o.getLayout("points");
  66887. if (!l) {
  66888. s.removeTextContent(), this._endLabel = null;
  66889. return;
  66890. }
  66891. var u = this._endLabel;
  66892. u || (u = this._endLabel = new jt({
  66893. z2: 200
  66894. // should be higher than item symbol
  66895. }), u.ignoreClip = !0, s.setTextContent(this._endLabel), s.disableLabelAnimation = !0);
  66896. var c = JJe(l);
  66897. c >= 0 && (Ei(s, ei(n, "endLabel"), {
  66898. inheritColor: i,
  66899. labelFetcher: n,
  66900. labelDataIndex: c,
  66901. defaultText: function(f, d, h) {
  66902. return h != null ? ofe(o, h) : jg(o, f);
  66903. },
  66904. enableTextSetter: !0
  66905. }, tet(a, r)), s.textConfig.position = null);
  66906. } else this._endLabel && (this._polyline.removeTextContent(), this._endLabel = null);
  66907. }, e.prototype._endLabelOnDuring = function(n, r, i, a, o, s, l) {
  66908. var u = this._endLabel, c = this._polyline;
  66909. if (u) {
  66910. n < 1 && a.originalX == null && (a.originalX = u.x, a.originalY = u.y);
  66911. var f = i.getLayout("points"), d = i.hostModel, h = d.get("connectNulls"), p = s.get("precision"), v = s.get("distance") || 0, g = l.getBaseAxis(), m = g.isHorizontal(), y = g.inverse, _ = r.shape, O = y ? m ? _.x : _.y + _.height : m ? _.x + _.width : _.y, S = (m ? v : 0) * (y ? -1 : 1), x = (m ? 0 : -v) * (y ? -1 : 1), C = m ? "x" : "y", P = eet(f, O, C), $ = P.range, T = $[1] - $[0], E = void 0;
  66912. if (T >= 1) {
  66913. if (T > 1 && !h) {
  66914. var M = bZ(f, $[0]);
  66915. u.attr({
  66916. x: M[0] + S,
  66917. y: M[1] + x
  66918. }), o && (E = d.getRawValue($[0]));
  66919. } else {
  66920. var M = c.getPointOn(O, C);
  66921. M && u.attr({
  66922. x: M[0] + S,
  66923. y: M[1] + x
  66924. });
  66925. var R = d.getRawValue($[0]), N = d.getRawValue($[1]);
  66926. o && (E = Vse(i, p, R, N, P.t));
  66927. }
  66928. a.lastFrameIndex = $[0];
  66929. } else {
  66930. var I = n === 1 || a.lastFrameIndex > 0 ? $[0] : 0, M = bZ(f, I);
  66931. o && (E = d.getRawValue(I)), u.attr({
  66932. x: M[0] + S,
  66933. y: M[1] + x
  66934. });
  66935. }
  66936. if (o) {
  66937. var B = wm(u);
  66938. typeof B.setLabelText == "function" && B.setLabelText(E);
  66939. }
  66940. }
  66941. }, e.prototype._doUpdateAnimation = function(n, r, i, a, o, s, l) {
  66942. var u = this._polyline, c = this._polygon, f = n.hostModel, d = HJe(this._data, n, this._stackedOnPoints, r, this._coordSys, i, this._valueOrigin), h = d.current, p = d.stackedOnCurrent, v = d.next, g = d.stackedOnNext;
  66943. if (o && (h = Tc(d.current, i, o, l), p = Tc(d.stackedOnCurrent, i, o, l), v = Tc(d.next, i, o, l), g = Tc(d.stackedOnNext, i, o, l)), mZ(h, v) > 3e3 || c && mZ(p, g) > 3e3) {
  66944. u.stopAnimation(), u.setShape({
  66945. points: v
  66946. }), c && (c.stopAnimation(), c.setShape({
  66947. points: v,
  66948. stackedOnPoints: g
  66949. }));
  66950. return;
  66951. }
  66952. u.shape.__points = d.current, u.shape.points = h;
  66953. var m = {
  66954. shape: {
  66955. points: v
  66956. }
  66957. };
  66958. d.current !== h && (m.shape.__points = d.next), u.stopAnimation(), tn(u, m, f), c && (c.setShape({
  66959. // Reuse the points with polyline.
  66960. points: h,
  66961. stackedOnPoints: p
  66962. }), c.stopAnimation(), tn(c, {
  66963. shape: {
  66964. stackedOnPoints: g
  66965. }
  66966. }, f), u.shape.points !== c.shape.points && (c.shape.points = u.shape.points));
  66967. for (var y = [], _ = d.status, O = 0; O < _.length; O++) {
  66968. var S = _[O].cmd;
  66969. if (S === "=") {
  66970. var x = n.getItemGraphicEl(_[O].idx1);
  66971. x && y.push({
  66972. el: x,
  66973. ptIdx: O
  66974. // Index of points
  66975. });
  66976. }
  66977. }
  66978. u.animators && u.animators.length && u.animators[0].during(function() {
  66979. c && c.dirtyShape();
  66980. for (var C = u.shape.__points, P = 0; P < y.length; P++) {
  66981. var $ = y[P].el, T = y[P].ptIdx * 2;
  66982. $.x = C[T], $.y = C[T + 1], $.markRedraw();
  66983. }
  66984. });
  66985. }, e.prototype.remove = function(n) {
  66986. var r = this.group, i = this._data;
  66987. this._lineGroup.removeAll(), this._symbolDraw.remove(!0), i && i.eachItemGraphicEl(function(a, o) {
  66988. a.__temp && (r.remove(a), i.setItemGraphicEl(o, null));
  66989. }), this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null;
  66990. }, e.type = "line", e;
  66991. }(_n)
  66992. );
  66993. function _1(t, e) {
  66994. return {
  66995. seriesType: t,
  66996. plan: $m(),
  66997. reset: function(n) {
  66998. var r = n.getData(), i = n.coordinateSystem, a = n.pipelineContext, o = e || a.large;
  66999. if (i) {
  67000. var s = Ce(i.dimensions, function(h) {
  67001. return r.mapDimension(h);
  67002. }).slice(0, 2), l = s.length, u = r.getCalculationInfo("stackResultDimension");
  67003. Hu(r, s[0]) && (s[0] = u), Hu(r, s[1]) && (s[1] = u);
  67004. var c = r.getStore(), f = r.getDimensionIndex(s[0]), d = r.getDimensionIndex(s[1]);
  67005. return l && {
  67006. progress: function(h, p) {
  67007. for (var v = h.end - h.start, g = o && Al(v * l), m = [], y = [], _ = h.start, O = 0; _ < h.end; _++) {
  67008. var S = void 0;
  67009. if (l === 1) {
  67010. var x = c.get(f, _);
  67011. S = i.dataToPoint(x, null, y);
  67012. } else
  67013. m[0] = c.get(f, _), m[1] = c.get(d, _), S = i.dataToPoint(m, null, y);
  67014. o ? (g[O++] = S[0], g[O++] = S[1]) : p.setItemLayout(_, S.slice());
  67015. }
  67016. o && p.setLayout("points", g);
  67017. }
  67018. };
  67019. }
  67020. }
  67021. };
  67022. }
  67023. var ret = {
  67024. average: function(t) {
  67025. for (var e = 0, n = 0, r = 0; r < t.length; r++)
  67026. isNaN(t[r]) || (e += t[r], n++);
  67027. return n === 0 ? NaN : e / n;
  67028. },
  67029. sum: function(t) {
  67030. for (var e = 0, n = 0; n < t.length; n++)
  67031. e += t[n] || 0;
  67032. return e;
  67033. },
  67034. max: function(t) {
  67035. for (var e = -1 / 0, n = 0; n < t.length; n++)
  67036. t[n] > e && (e = t[n]);
  67037. return isFinite(e) ? e : NaN;
  67038. },
  67039. min: function(t) {
  67040. for (var e = 1 / 0, n = 0; n < t.length; n++)
  67041. t[n] < e && (e = t[n]);
  67042. return isFinite(e) ? e : NaN;
  67043. },
  67044. minmax: function(t) {
  67045. for (var e = -1 / 0, n = -1 / 0, r = 0; r < t.length; r++) {
  67046. var i = t[r], a = Math.abs(i);
  67047. a > e && (e = a, n = i);
  67048. }
  67049. return isFinite(n) ? n : NaN;
  67050. },
  67051. // TODO
  67052. // Median
  67053. nearest: function(t) {
  67054. return t[0];
  67055. }
  67056. }, iet = function(t) {
  67057. return Math.round(t.length / 2);
  67058. };
  67059. function pfe(t) {
  67060. return {
  67061. seriesType: t,
  67062. // FIXME:TS never used, so comment it
  67063. // modifyOutputEnd: true,
  67064. reset: function(e, n, r) {
  67065. var i = e.getData(), a = e.get("sampling"), o = e.coordinateSystem, s = i.count();
  67066. if (s > 10 && o.type === "cartesian2d" && a) {
  67067. var l = o.getBaseAxis(), u = o.getOtherAxis(l), c = l.getExtent(), f = r.getDevicePixelRatio(), d = Math.abs(c[1] - c[0]) * (f || 1), h = Math.round(s / d);
  67068. if (isFinite(h) && h > 1) {
  67069. a === "lttb" && e.setData(i.lttbDownSample(i.mapDimension(u.dim), 1 / h));
  67070. var p = void 0;
  67071. Ve(a) ? p = ret[a] : qe(a) && (p = a), p && e.setData(i.downSample(i.mapDimension(u.dim), 1 / h, p, iet));
  67072. }
  67073. }
  67074. }
  67075. };
  67076. }
  67077. function aet(t) {
  67078. t.registerChartView(net), t.registerSeriesModel(VJe), t.registerLayout(_1("line", !0)), t.registerVisual({
  67079. seriesType: "line",
  67080. reset: function(e) {
  67081. var n = e.getData(), r = e.getModel("lineStyle").getLineStyle();
  67082. r && !r.stroke && (r.stroke = n.getVisual("style").fill), n.setVisual("legendLineStyle", r);
  67083. }
  67084. }), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, pfe("line"));
  67085. }
  67086. var a_ = (
  67087. /** @class */
  67088. function(t) {
  67089. le(e, t);
  67090. function e() {
  67091. var n = t !== null && t.apply(this, arguments) || this;
  67092. return n.type = e.type, n;
  67093. }
  67094. return e.prototype.getInitialData = function(n, r) {
  67095. return Yl(null, this, {
  67096. useEncodeDefaulter: !0
  67097. });
  67098. }, e.prototype.getMarkerPosition = function(n, r, i) {
  67099. var a = this.coordinateSystem;
  67100. if (a && a.clampData) {
  67101. var o = a.clampData(n), s = a.dataToPoint(o);
  67102. if (i)
  67103. F(a.getAxes(), function(d, h) {
  67104. if (d.type === "category" && r != null) {
  67105. var p = d.getTicksCoords(), v = d.getTickModel().get("alignWithLabel"), g = o[h], m = r[h] === "x1" || r[h] === "y1";
  67106. if (m && !v && (g += 1), p.length < 2)
  67107. return;
  67108. if (p.length === 2) {
  67109. s[h] = d.toGlobalCoord(d.getExtent()[m ? 1 : 0]);
  67110. return;
  67111. }
  67112. for (var y = void 0, _ = void 0, O = 1, S = 0; S < p.length; S++) {
  67113. var x = p[S].coord, C = S === p.length - 1 ? p[S - 1].tickValue + O : p[S].tickValue;
  67114. if (C === g) {
  67115. _ = x;
  67116. break;
  67117. } else if (C < g)
  67118. y = x;
  67119. else if (y != null && C > g) {
  67120. _ = (x + y) / 2;
  67121. break;
  67122. }
  67123. S === 1 && (O = C - p[0].tickValue);
  67124. }
  67125. _ == null && (y ? y && (_ = p[p.length - 1].coord) : _ = p[0].coord), s[h] = d.toGlobalCoord(_);
  67126. }
  67127. });
  67128. else {
  67129. var l = this.getData(), u = l.getLayout("offset"), c = l.getLayout("size"), f = a.getBaseAxis().isHorizontal() ? 0 : 1;
  67130. s[f] += u + c / 2;
  67131. }
  67132. return s;
  67133. }
  67134. return [NaN, NaN];
  67135. }, e.type = "series.__base_bar__", e.defaultOption = {
  67136. // zlevel: 0,
  67137. z: 2,
  67138. coordinateSystem: "cartesian2d",
  67139. legendHoverLink: !0,
  67140. // stack: null
  67141. // Cartesian coordinate system
  67142. // xAxisIndex: 0,
  67143. // yAxisIndex: 0,
  67144. barMinHeight: 0,
  67145. barMinAngle: 0,
  67146. // cursor: null,
  67147. large: !1,
  67148. largeThreshold: 400,
  67149. progressive: 3e3,
  67150. progressiveChunkMode: "mod"
  67151. }, e;
  67152. }(Tn)
  67153. );
  67154. Tn.registerClass(a_);
  67155. var oet = (
  67156. /** @class */
  67157. function(t) {
  67158. le(e, t);
  67159. function e() {
  67160. var n = t !== null && t.apply(this, arguments) || this;
  67161. return n.type = e.type, n;
  67162. }
  67163. return e.prototype.getInitialData = function() {
  67164. return Yl(null, this, {
  67165. useEncodeDefaulter: !0,
  67166. createInvertedIndices: !!this.get("realtimeSort", !0) || null
  67167. });
  67168. }, e.prototype.getProgressive = function() {
  67169. return this.get("large") ? this.get("progressive") : !1;
  67170. }, e.prototype.getProgressiveThreshold = function() {
  67171. var n = this.get("progressiveThreshold"), r = this.get("largeThreshold");
  67172. return r > n && (n = r), n;
  67173. }, e.prototype.brushSelector = function(n, r, i) {
  67174. return i.rect(r.getItemLayout(n));
  67175. }, e.type = "series.bar", e.dependencies = ["grid", "polar"], e.defaultOption = Bf(a_.defaultOption, {
  67176. // If clipped
  67177. // Only available on cartesian2d
  67178. clip: !0,
  67179. roundCap: !1,
  67180. showBackground: !1,
  67181. backgroundStyle: {
  67182. color: "rgba(180, 180, 180, 0.2)",
  67183. borderColor: null,
  67184. borderWidth: 0,
  67185. borderType: "solid",
  67186. borderRadius: 0,
  67187. shadowBlur: 0,
  67188. shadowColor: null,
  67189. shadowOffsetX: 0,
  67190. shadowOffsetY: 0,
  67191. opacity: 1
  67192. },
  67193. select: {
  67194. itemStyle: {
  67195. borderColor: "#212121"
  67196. }
  67197. },
  67198. realtimeSort: !1
  67199. }), e;
  67200. }(a_)
  67201. ), set = (
  67202. /** @class */
  67203. /* @__PURE__ */ function() {
  67204. function t() {
  67205. this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0;
  67206. }
  67207. return t;
  67208. }()
  67209. ), tT = (
  67210. /** @class */
  67211. function(t) {
  67212. le(e, t);
  67213. function e(n) {
  67214. var r = t.call(this, n) || this;
  67215. return r.type = "sausage", r;
  67216. }
  67217. return e.prototype.getDefaultShape = function() {
  67218. return new set();
  67219. }, e.prototype.buildPath = function(n, r) {
  67220. var i = r.cx, a = r.cy, o = Math.max(r.r0 || 0, 0), s = Math.max(r.r, 0), l = (s - o) * 0.5, u = o + l, c = r.startAngle, f = r.endAngle, d = r.clockwise, h = Math.PI * 2, p = d ? f - c < h : c - f < h;
  67221. p || (c = f - (d ? h : -h));
  67222. var v = Math.cos(c), g = Math.sin(c), m = Math.cos(f), y = Math.sin(f);
  67223. p ? (n.moveTo(v * o + i, g * o + a), n.arc(v * u + i, g * u + a, l, -Math.PI + c, c, !d)) : n.moveTo(v * s + i, g * s + a), n.arc(i, a, s, c, f, !d), n.arc(m * u + i, y * u + a, l, f - Math.PI * 2, f - Math.PI, !d), o !== 0 && n.arc(i, a, o, f, c, d);
  67224. }, e;
  67225. }(Dt)
  67226. );
  67227. function uet(t, e) {
  67228. e = e || {};
  67229. var n = e.isRoundCap;
  67230. return function(r, i, a) {
  67231. var o = i.position;
  67232. if (!o || o instanceof Array)
  67233. return AC(r, i, a);
  67234. var s = t(o), l = i.distance != null ? i.distance : 5, u = this.shape, c = u.cx, f = u.cy, d = u.r, h = u.r0, p = (d + h) / 2, v = u.startAngle, g = u.endAngle, m = (v + g) / 2, y = n ? Math.abs(d - h) / 2 : 0, _ = Math.cos, O = Math.sin, S = c + d * _(v), x = f + d * O(v), C = "left", P = "top";
  67235. switch (s) {
  67236. case "startArc":
  67237. S = c + (h - l) * _(m), x = f + (h - l) * O(m), C = "center", P = "top";
  67238. break;
  67239. case "insideStartArc":
  67240. S = c + (h + l) * _(m), x = f + (h + l) * O(m), C = "center", P = "bottom";
  67241. break;
  67242. case "startAngle":
  67243. S = c + p * _(v) + NS(v, l + y, !1), x = f + p * O(v) + BS(v, l + y, !1), C = "right", P = "middle";
  67244. break;
  67245. case "insideStartAngle":
  67246. S = c + p * _(v) + NS(v, -l + y, !1), x = f + p * O(v) + BS(v, -l + y, !1), C = "left", P = "middle";
  67247. break;
  67248. case "middle":
  67249. S = c + p * _(m), x = f + p * O(m), C = "center", P = "middle";
  67250. break;
  67251. case "endArc":
  67252. S = c + (d + l) * _(m), x = f + (d + l) * O(m), C = "center", P = "bottom";
  67253. break;
  67254. case "insideEndArc":
  67255. S = c + (d - l) * _(m), x = f + (d - l) * O(m), C = "center", P = "top";
  67256. break;
  67257. case "endAngle":
  67258. S = c + p * _(g) + NS(g, l + y, !0), x = f + p * O(g) + BS(g, l + y, !0), C = "left", P = "middle";
  67259. break;
  67260. case "insideEndAngle":
  67261. S = c + p * _(g) + NS(g, -l + y, !0), x = f + p * O(g) + BS(g, -l + y, !0), C = "right", P = "middle";
  67262. break;
  67263. default:
  67264. return AC(r, i, a);
  67265. }
  67266. return r = r || {}, r.x = S, r.y = x, r.align = C, r.verticalAlign = P, r;
  67267. };
  67268. }
  67269. function cet(t, e, n, r) {
  67270. if (Kt(r)) {
  67271. t.setTextConfig({
  67272. rotation: r
  67273. });
  67274. return;
  67275. } else if (Se(e)) {
  67276. t.setTextConfig({
  67277. rotation: 0
  67278. });
  67279. return;
  67280. }
  67281. var i = t.shape, a = i.clockwise ? i.startAngle : i.endAngle, o = i.clockwise ? i.endAngle : i.startAngle, s = (a + o) / 2, l, u = n(e);
  67282. switch (u) {
  67283. case "startArc":
  67284. case "insideStartArc":
  67285. case "middle":
  67286. case "insideEndArc":
  67287. case "endArc":
  67288. l = s;
  67289. break;
  67290. case "startAngle":
  67291. case "insideStartAngle":
  67292. l = a;
  67293. break;
  67294. case "endAngle":
  67295. case "insideEndAngle":
  67296. l = o;
  67297. break;
  67298. default:
  67299. t.setTextConfig({
  67300. rotation: 0
  67301. });
  67302. return;
  67303. }
  67304. var c = Math.PI * 1.5 - l;
  67305. u === "middle" && c > Math.PI / 2 && c < Math.PI * 1.5 && (c -= Math.PI), t.setTextConfig({
  67306. rotation: c
  67307. });
  67308. }
  67309. function NS(t, e, n) {
  67310. return e * Math.sin(t) * (n ? -1 : 1);
  67311. }
  67312. function BS(t, e, n) {
  67313. return e * Math.cos(t) * (n ? 1 : -1);
  67314. }
  67315. function ch(t, e, n) {
  67316. var r = t.get("borderRadius");
  67317. if (r == null)
  67318. return n ? {
  67319. cornerRadius: 0
  67320. } : null;
  67321. Se(r) || (r = [r, r, r, r]);
  67322. var i = Math.abs(e.r || 0 - e.r0 || 0);
  67323. return {
  67324. cornerRadius: Ce(r, function(a) {
  67325. return js(a, i);
  67326. })
  67327. };
  67328. }
  67329. var QM = Math.max, HM = Math.min;
  67330. function fet(t, e) {
  67331. var n = t.getArea && t.getArea();
  67332. if (yp(t, "cartesian2d")) {
  67333. var r = t.getBaseAxis();
  67334. if (r.type !== "category" || !r.onBand) {
  67335. var i = e.getLayout("bandWidth");
  67336. r.isHorizontal() ? (n.x -= i, n.width += i * 2) : (n.y -= i, n.height += i * 2);
  67337. }
  67338. }
  67339. return n;
  67340. }
  67341. var det = (
  67342. /** @class */
  67343. function(t) {
  67344. le(e, t);
  67345. function e() {
  67346. var n = t.call(this) || this;
  67347. return n.type = e.type, n._isFirstFrame = !0, n;
  67348. }
  67349. return e.prototype.render = function(n, r, i, a) {
  67350. this._model = n, this._removeOnRenderedListener(i), this._updateDrawMode(n);
  67351. var o = n.get("coordinateSystem");
  67352. o === "cartesian2d" || o === "polar" ? (this._progressiveEls = null, this._isLargeDraw ? this._renderLarge(n, r, i) : this._renderNormal(n, r, i, a)) : process.env.NODE_ENV !== "production" && nr("Only cartesian2d and polar supported for bar.");
  67353. }, e.prototype.incrementalPrepareRender = function(n) {
  67354. this._clear(), this._updateDrawMode(n), this._updateLargeClip(n);
  67355. }, e.prototype.incrementalRender = function(n, r) {
  67356. this._progressiveEls = [], this._incrementalRenderLarge(n, r);
  67357. }, e.prototype.eachRendered = function(n) {
  67358. Nf(this._progressiveEls || this.group, n);
  67359. }, e.prototype._updateDrawMode = function(n) {
  67360. var r = n.pipelineContext.large;
  67361. (this._isLargeDraw == null || r !== this._isLargeDraw) && (this._isLargeDraw = r, this._clear());
  67362. }, e.prototype._renderNormal = function(n, r, i, a) {
  67363. var o = this.group, s = n.getData(), l = this._data, u = n.coordinateSystem, c = u.getBaseAxis(), f;
  67364. u.type === "cartesian2d" ? f = c.isHorizontal() : u.type === "polar" && (f = c.dim === "angle");
  67365. var d = n.isAnimationEnabled() ? n : null, h = het(n, u);
  67366. h && this._enableRealtimeSort(h, s, i);
  67367. var p = n.get("clip", !0) || h, v = fet(u, s);
  67368. o.removeClipPath();
  67369. var g = n.get("roundCap", !0), m = n.get("showBackground", !0), y = n.getModel("backgroundStyle"), _ = y.get("borderRadius") || 0, O = [], S = this._backgroundEls, x = a && a.isInitSort, C = a && a.type === "changeAxisOrder";
  67370. function P(E) {
  67371. var M = zS[u.type](s, E), R = _et(u, f, M);
  67372. return R.useStyle(y.getItemStyle()), u.type === "cartesian2d" ? R.setShape("r", _) : R.setShape("cornerRadius", _), O[E] = R, R;
  67373. }
  67374. s.diff(l).add(function(E) {
  67375. var M = s.getItemModel(E), R = zS[u.type](s, E, M);
  67376. if (m && P(E), !(!s.hasValue(E) || !wZ[u.type](R))) {
  67377. var N = !1;
  67378. p && (N = _Z[u.type](v, R));
  67379. var I = OZ[u.type](n, s, E, R, f, d, c.model, !1, g);
  67380. h && (I.forceLabelAnimation = !0), CZ(I, s, E, M, R, n, f, u.type === "polar"), x ? I.attr({
  67381. shape: R
  67382. }) : h ? SZ(h, d, I, R, E, f, !1, !1) : Vn(I, {
  67383. shape: R
  67384. }, n, E), s.setItemGraphicEl(E, I), o.add(I), I.ignore = N;
  67385. }
  67386. }).update(function(E, M) {
  67387. var R = s.getItemModel(E), N = zS[u.type](s, E, R);
  67388. if (m) {
  67389. var I = void 0;
  67390. S.length === 0 ? I = P(M) : (I = S[M], I.useStyle(y.getItemStyle()), u.type === "cartesian2d" ? I.setShape("r", _) : I.setShape("cornerRadius", _), O[E] = I);
  67391. var B = zS[u.type](s, E), Q = gfe(f, B, u);
  67392. tn(I, {
  67393. shape: Q
  67394. }, d, E);
  67395. }
  67396. var W = l.getItemGraphicEl(M);
  67397. if (!s.hasValue(E) || !wZ[u.type](N)) {
  67398. o.remove(W);
  67399. return;
  67400. }
  67401. var H = !1;
  67402. if (p && (H = _Z[u.type](v, N), H && o.remove(W)), W ? Zs(W) : W = OZ[u.type](n, s, E, N, f, d, c.model, !!W, g), h && (W.forceLabelAnimation = !0), C) {
  67403. var U = W.getTextContent();
  67404. if (U) {
  67405. var j = wm(U);
  67406. j.prevValue != null && (j.prevValue = j.value);
  67407. }
  67408. } else
  67409. CZ(W, s, E, R, N, n, f, u.type === "polar");
  67410. x ? W.attr({
  67411. shape: N
  67412. }) : h ? SZ(h, d, W, N, E, f, !0, C) : tn(W, {
  67413. shape: N
  67414. }, n, E, null), s.setItemGraphicEl(E, W), W.ignore = H, o.add(W);
  67415. }).remove(function(E) {
  67416. var M = l.getItemGraphicEl(E);
  67417. M && Xb(M, n, E);
  67418. }).execute();
  67419. var $ = this._backgroundGroup || (this._backgroundGroup = new ct());
  67420. $.removeAll();
  67421. for (var T = 0; T < O.length; ++T)
  67422. $.add(O[T]);
  67423. o.add($), this._backgroundEls = O, this._data = s;
  67424. }, e.prototype._renderLarge = function(n, r, i) {
  67425. this._clear(), PZ(n, this.group), this._updateLargeClip(n);
  67426. }, e.prototype._incrementalRenderLarge = function(n, r) {
  67427. this._removeBackground(), PZ(r, this.group, this._progressiveEls, !0);
  67428. }, e.prototype._updateLargeClip = function(n) {
  67429. var r = n.get("clip", !0) && b1(n.coordinateSystem, !1, n), i = this.group;
  67430. r ? i.setClipPath(r) : i.removeClipPath();
  67431. }, e.prototype._enableRealtimeSort = function(n, r, i) {
  67432. var a = this;
  67433. if (r.count()) {
  67434. var o = n.baseAxis;
  67435. if (this._isFirstFrame)
  67436. this._dispatchInitSort(r, n, i), this._isFirstFrame = !1;
  67437. else {
  67438. var s = function(l) {
  67439. var u = r.getItemGraphicEl(l), c = u && u.shape;
  67440. return c && // The result should be consistent with the initial sort by data value.
  67441. // Do not support the case that both positive and negative exist.
  67442. Math.abs(o.isHorizontal() ? c.height : c.width) || 0;
  67443. };
  67444. this._onRendered = function() {
  67445. a._updateSortWithinSameData(r, s, o, i);
  67446. }, i.getZr().on("rendered", this._onRendered);
  67447. }
  67448. }
  67449. }, e.prototype._dataSort = function(n, r, i) {
  67450. var a = [];
  67451. return n.each(n.mapDimension(r.dim), function(o, s) {
  67452. var l = i(s);
  67453. l = l ?? NaN, a.push({
  67454. dataIndex: s,
  67455. mappedValue: l,
  67456. ordinalNumber: o
  67457. });
  67458. }), a.sort(function(o, s) {
  67459. return s.mappedValue - o.mappedValue;
  67460. }), {
  67461. ordinalNumbers: Ce(a, function(o) {
  67462. return o.ordinalNumber;
  67463. })
  67464. };
  67465. }, e.prototype._isOrderChangedWithinSameData = function(n, r, i) {
  67466. for (var a = i.scale, o = n.mapDimension(i.dim), s = Number.MAX_VALUE, l = 0, u = a.getOrdinalMeta().categories.length; l < u; ++l) {
  67467. var c = n.rawIndexOf(o, a.getRawOrdinalNumber(l)), f = c < 0 ? Number.MIN_VALUE : r(n.indexOfRawIndex(c));
  67468. if (f > s)
  67469. return !0;
  67470. s = f;
  67471. }
  67472. return !1;
  67473. }, e.prototype._isOrderDifferentInView = function(n, r) {
  67474. for (var i = r.scale, a = i.getExtent(), o = Math.max(0, a[0]), s = Math.min(a[1], i.getOrdinalMeta().categories.length - 1); o <= s; ++o)
  67475. if (n.ordinalNumbers[o] !== i.getRawOrdinalNumber(o))
  67476. return !0;
  67477. }, e.prototype._updateSortWithinSameData = function(n, r, i, a) {
  67478. if (this._isOrderChangedWithinSameData(n, r, i)) {
  67479. var o = this._dataSort(n, i, r);
  67480. this._isOrderDifferentInView(o, i) && (this._removeOnRenderedListener(a), a.dispatchAction({
  67481. type: "changeAxisOrder",
  67482. componentType: i.dim + "Axis",
  67483. axisId: i.index,
  67484. sortInfo: o
  67485. }));
  67486. }
  67487. }, e.prototype._dispatchInitSort = function(n, r, i) {
  67488. var a = r.baseAxis, o = this._dataSort(n, a, function(s) {
  67489. return n.get(n.mapDimension(r.otherAxis.dim), s);
  67490. });
  67491. i.dispatchAction({
  67492. type: "changeAxisOrder",
  67493. componentType: a.dim + "Axis",
  67494. isInitSort: !0,
  67495. axisId: a.index,
  67496. sortInfo: o
  67497. });
  67498. }, e.prototype.remove = function(n, r) {
  67499. this._clear(this._model), this._removeOnRenderedListener(r);
  67500. }, e.prototype.dispose = function(n, r) {
  67501. this._removeOnRenderedListener(r);
  67502. }, e.prototype._removeOnRenderedListener = function(n) {
  67503. this._onRendered && (n.getZr().off("rendered", this._onRendered), this._onRendered = null);
  67504. }, e.prototype._clear = function(n) {
  67505. var r = this.group, i = this._data;
  67506. n && n.isAnimationEnabled() && i && !this._isLargeDraw ? (this._removeBackground(), this._backgroundEls = [], i.eachItemGraphicEl(function(a) {
  67507. Xb(a, n, ft(a).dataIndex);
  67508. })) : r.removeAll(), this._data = null, this._isFirstFrame = !0;
  67509. }, e.prototype._removeBackground = function() {
  67510. this.group.remove(this._backgroundGroup), this._backgroundGroup = null;
  67511. }, e.type = "bar", e;
  67512. }(_n)
  67513. ), _Z = {
  67514. cartesian2d: function(t, e) {
  67515. var n = e.width < 0 ? -1 : 1, r = e.height < 0 ? -1 : 1;
  67516. n < 0 && (e.x += e.width, e.width = -e.width), r < 0 && (e.y += e.height, e.height = -e.height);
  67517. var i = t.x + t.width, a = t.y + t.height, o = QM(e.x, t.x), s = HM(e.x + e.width, i), l = QM(e.y, t.y), u = HM(e.y + e.height, a), c = s < o, f = u < l;
  67518. return e.x = c && o > i ? s : o, e.y = f && l > a ? u : l, e.width = c ? 0 : s - o, e.height = f ? 0 : u - l, n < 0 && (e.x += e.width, e.width = -e.width), r < 0 && (e.y += e.height, e.height = -e.height), c || f;
  67519. },
  67520. polar: function(t, e) {
  67521. var n = e.r0 <= e.r ? 1 : -1;
  67522. if (n < 0) {
  67523. var r = e.r;
  67524. e.r = e.r0, e.r0 = r;
  67525. }
  67526. var i = HM(e.r, t.r), a = QM(e.r0, t.r0);
  67527. e.r = i, e.r0 = a;
  67528. var o = i - a < 0;
  67529. if (n < 0) {
  67530. var r = e.r;
  67531. e.r = e.r0, e.r0 = r;
  67532. }
  67533. return o;
  67534. }
  67535. }, OZ = {
  67536. cartesian2d: function(t, e, n, r, i, a, o, s, l) {
  67537. var u = new Zt({
  67538. shape: _e({}, r),
  67539. z2: 1
  67540. });
  67541. if (u.__dataIndex = n, u.name = "item", a) {
  67542. var c = u.shape, f = i ? "height" : "width";
  67543. c[f] = 0;
  67544. }
  67545. return u;
  67546. },
  67547. polar: function(t, e, n, r, i, a, o, s, l) {
  67548. var u = !i && l ? tT : ha, c = new u({
  67549. shape: r,
  67550. z2: 1
  67551. });
  67552. c.name = "item";
  67553. var f = vfe(i);
  67554. if (c.calculateTextPosition = uet(f, {
  67555. isRoundCap: u === tT
  67556. }), a) {
  67557. var d = c.shape, h = i ? "r" : "endAngle", p = {};
  67558. d[h] = i ? r.r0 : r.startAngle, p[h] = r[h], (s ? tn : Vn)(c, {
  67559. shape: p
  67560. // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue
  67561. }, a);
  67562. }
  67563. return c;
  67564. }
  67565. };
  67566. function het(t, e) {
  67567. var n = t.get("realtimeSort", !0), r = e.getBaseAxis();
  67568. if (process.env.NODE_ENV !== "production" && n && (r.type !== "category" && nr("`realtimeSort` will not work because this bar series is not based on a category axis."), e.type !== "cartesian2d" && nr("`realtimeSort` will not work because this bar series is not on cartesian2d.")), n && r.type === "category" && e.type === "cartesian2d")
  67569. return {
  67570. baseAxis: r,
  67571. otherAxis: e.getOtherAxis(r)
  67572. };
  67573. }
  67574. function SZ(t, e, n, r, i, a, o, s) {
  67575. var l, u;
  67576. a ? (u = {
  67577. x: r.x,
  67578. width: r.width
  67579. }, l = {
  67580. y: r.y,
  67581. height: r.height
  67582. }) : (u = {
  67583. y: r.y,
  67584. height: r.height
  67585. }, l = {
  67586. x: r.x,
  67587. width: r.width
  67588. }), s || (o ? tn : Vn)(n, {
  67589. shape: l
  67590. }, e, i, null);
  67591. var c = e ? t.baseAxis.model : null;
  67592. (o ? tn : Vn)(n, {
  67593. shape: u
  67594. }, c, i);
  67595. }
  67596. function xZ(t, e) {
  67597. for (var n = 0; n < e.length; n++)
  67598. if (!isFinite(t[e[n]]))
  67599. return !0;
  67600. return !1;
  67601. }
  67602. var pet = ["x", "y", "width", "height"], vet = ["cx", "cy", "r", "startAngle", "endAngle"], wZ = {
  67603. cartesian2d: function(t) {
  67604. return !xZ(t, pet);
  67605. },
  67606. polar: function(t) {
  67607. return !xZ(t, vet);
  67608. }
  67609. }, zS = {
  67610. // itemModel is only used to get borderWidth, which is not needed
  67611. // when calculating bar background layout.
  67612. cartesian2d: function(t, e, n) {
  67613. var r = t.getItemLayout(e), i = n ? met(n, r) : 0, a = r.width > 0 ? 1 : -1, o = r.height > 0 ? 1 : -1;
  67614. return {
  67615. x: r.x + a * i / 2,
  67616. y: r.y + o * i / 2,
  67617. width: r.width - a * i,
  67618. height: r.height - o * i
  67619. };
  67620. },
  67621. polar: function(t, e, n) {
  67622. var r = t.getItemLayout(e);
  67623. return {
  67624. cx: r.cx,
  67625. cy: r.cy,
  67626. r0: r.r0,
  67627. r: r.r,
  67628. startAngle: r.startAngle,
  67629. endAngle: r.endAngle,
  67630. clockwise: r.clockwise
  67631. };
  67632. }
  67633. };
  67634. function get(t) {
  67635. return t.startAngle != null && t.endAngle != null && t.startAngle === t.endAngle;
  67636. }
  67637. function vfe(t) {
  67638. return /* @__PURE__ */ function(e) {
  67639. var n = e ? "Arc" : "Angle";
  67640. return function(r) {
  67641. switch (r) {
  67642. case "start":
  67643. case "insideStart":
  67644. case "end":
  67645. case "insideEnd":
  67646. return r + n;
  67647. default:
  67648. return r;
  67649. }
  67650. };
  67651. }(t);
  67652. }
  67653. function CZ(t, e, n, r, i, a, o, s) {
  67654. var l = e.getItemVisual(n, "style");
  67655. if (s) {
  67656. if (!a.get("roundCap")) {
  67657. var c = t.shape, f = ch(r.getModel("itemStyle"), c, !0);
  67658. _e(c, f), t.setShape(c);
  67659. }
  67660. } else {
  67661. var u = r.get(["itemStyle", "borderRadius"]) || 0;
  67662. t.setShape("r", u);
  67663. }
  67664. t.useStyle(l);
  67665. var d = r.getShallow("cursor");
  67666. d && t.attr("cursor", d);
  67667. var h = s ? o ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : o ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left", p = ei(r);
  67668. Ei(t, p, {
  67669. labelFetcher: a,
  67670. labelDataIndex: n,
  67671. defaultText: jg(a.getData(), n),
  67672. inheritColor: l.fill,
  67673. defaultOpacity: l.opacity,
  67674. defaultOutsidePosition: h
  67675. });
  67676. var v = t.getTextContent();
  67677. if (s && v) {
  67678. var g = r.get(["label", "position"]);
  67679. t.textConfig.inside = g === "middle" ? !0 : null, cet(t, g === "outside" ? h : g, vfe(o), r.get(["label", "rotate"]));
  67680. }
  67681. Lle(v, p, a.getRawValue(n), function(y) {
  67682. return ofe(e, y);
  67683. });
  67684. var m = r.getModel(["emphasis"]);
  67685. ur(t, m.get("focus"), m.get("blurScope"), m.get("disabled")), Ai(t, r), get(i) && (t.style.fill = "none", t.style.stroke = "none", F(t.states, function(y) {
  67686. y.style && (y.style.fill = y.style.stroke = "none");
  67687. }));
  67688. }
  67689. function met(t, e) {
  67690. var n = t.get(["itemStyle", "borderColor"]);
  67691. if (!n || n === "none")
  67692. return 0;
  67693. var r = t.get(["itemStyle", "borderWidth"]) || 0, i = isNaN(e.width) ? Number.MAX_VALUE : Math.abs(e.width), a = isNaN(e.height) ? Number.MAX_VALUE : Math.abs(e.height);
  67694. return Math.min(r, i, a);
  67695. }
  67696. var yet = (
  67697. /** @class */
  67698. /* @__PURE__ */ function() {
  67699. function t() {
  67700. }
  67701. return t;
  67702. }()
  67703. ), TZ = (
  67704. /** @class */
  67705. function(t) {
  67706. le(e, t);
  67707. function e(n) {
  67708. var r = t.call(this, n) || this;
  67709. return r.type = "largeBar", r;
  67710. }
  67711. return e.prototype.getDefaultShape = function() {
  67712. return new yet();
  67713. }, e.prototype.buildPath = function(n, r) {
  67714. for (var i = r.points, a = this.baseDimIdx, o = 1 - this.baseDimIdx, s = [], l = [], u = this.barWidth, c = 0; c < i.length; c += 3)
  67715. l[a] = u, l[o] = i[c + 2], s[a] = i[c + a], s[o] = i[c + o], n.rect(s[0], s[1], l[0], l[1]);
  67716. }, e;
  67717. }(Dt)
  67718. );
  67719. function PZ(t, e, n, r) {
  67720. var i = t.getData(), a = i.getLayout("valueAxisHorizontal") ? 1 : 0, o = i.getLayout("largeDataIndices"), s = i.getLayout("size"), l = t.getModel("backgroundStyle"), u = i.getLayout("largeBackgroundPoints");
  67721. if (u) {
  67722. var c = new TZ({
  67723. shape: {
  67724. points: u
  67725. },
  67726. incremental: !!r,
  67727. silent: !0,
  67728. z2: 0
  67729. });
  67730. c.baseDimIdx = a, c.largeDataIndices = o, c.barWidth = s, c.useStyle(l.getItemStyle()), e.add(c), n && n.push(c);
  67731. }
  67732. var f = new TZ({
  67733. shape: {
  67734. points: i.getLayout("largePoints")
  67735. },
  67736. incremental: !!r,
  67737. ignoreCoarsePointer: !0,
  67738. z2: 1
  67739. });
  67740. f.baseDimIdx = a, f.largeDataIndices = o, f.barWidth = s, e.add(f), f.useStyle(i.getVisual("style")), ft(f).seriesIndex = t.seriesIndex, t.get("silent") || (f.on("mousedown", $Z), f.on("mousemove", $Z)), n && n.push(f);
  67741. }
  67742. var $Z = kP(function(t) {
  67743. var e = this, n = bet(e, t.offsetX, t.offsetY);
  67744. ft(e).dataIndex = n >= 0 ? n : null;
  67745. }, 30, !1);
  67746. function bet(t, e, n) {
  67747. for (var r = t.baseDimIdx, i = 1 - r, a = t.shape.points, o = t.largeDataIndices, s = [], l = [], u = t.barWidth, c = 0, f = a.length / 3; c < f; c++) {
  67748. var d = c * 3;
  67749. if (l[r] = u, l[i] = a[d + 2], s[r] = a[d + r], s[i] = a[d + i], l[i] < 0 && (s[i] += l[i], l[i] = -l[i]), e >= s[0] && e <= s[0] + l[0] && n >= s[1] && n <= s[1] + l[1])
  67750. return o[c];
  67751. }
  67752. return -1;
  67753. }
  67754. function gfe(t, e, n) {
  67755. if (yp(n, "cartesian2d")) {
  67756. var r = e, i = n.getArea();
  67757. return {
  67758. x: t ? r.x : i.x,
  67759. y: t ? i.y : r.y,
  67760. width: t ? r.width : i.width,
  67761. height: t ? i.height : r.height
  67762. };
  67763. } else {
  67764. var i = n.getArea(), a = e;
  67765. return {
  67766. cx: i.cx,
  67767. cy: i.cy,
  67768. r0: t ? i.r0 : a.r0,
  67769. r: t ? i.r : a.r,
  67770. startAngle: t ? a.startAngle : 0,
  67771. endAngle: t ? a.endAngle : Math.PI * 2
  67772. };
  67773. }
  67774. }
  67775. function _et(t, e, n) {
  67776. var r = t.type === "polar" ? ha : Zt;
  67777. return new r({
  67778. shape: gfe(e, n, t),
  67779. silent: !0,
  67780. z2: 0
  67781. });
  67782. }
  67783. function Oet(t) {
  67784. t.registerChartView(det), t.registerSeriesModel(oet), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, vt(Oce, "bar")), t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, Sce("bar")), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, pfe("bar")), t.registerAction({
  67785. type: "changeAxisOrder",
  67786. event: "changeAxisOrder",
  67787. update: "update"
  67788. }, function(e, n) {
  67789. var r = e.componentType || "series";
  67790. n.eachComponent({
  67791. mainType: r,
  67792. query: e
  67793. }, function(i) {
  67794. e.sortInfo && i.axis.setCategorySortInfo(e.sortInfo);
  67795. });
  67796. });
  67797. }
  67798. var AZ = Math.PI * 2, VS = Math.PI / 180;
  67799. function mfe(t, e) {
  67800. return Mr(t.getBoxLayoutParams(), {
  67801. width: e.getWidth(),
  67802. height: e.getHeight()
  67803. });
  67804. }
  67805. function yfe(t, e) {
  67806. var n = mfe(t, e), r = t.get("center"), i = t.get("radius");
  67807. Se(i) || (i = [0, i]);
  67808. var a = ze(n.width, e.getWidth()), o = ze(n.height, e.getHeight()), s = Math.min(a, o), l = ze(i[0], s / 2), u = ze(i[1], s / 2), c, f, d = t.coordinateSystem;
  67809. if (d) {
  67810. var h = d.dataToPoint(r);
  67811. c = h[0] || 0, f = h[1] || 0;
  67812. } else
  67813. Se(r) || (r = [r, r]), c = ze(r[0], a) + n.x, f = ze(r[1], o) + n.y;
  67814. return {
  67815. cx: c,
  67816. cy: f,
  67817. r0: l,
  67818. r: u
  67819. };
  67820. }
  67821. function xet(t, e, n) {
  67822. e.eachSeriesByType(t, function(r) {
  67823. var i = r.getData(), a = i.mapDimension("value"), o = mfe(r, n), s = yfe(r, n), l = s.cx, u = s.cy, c = s.r, f = s.r0, d = -r.get("startAngle") * VS, h = r.get("endAngle"), p = r.get("padAngle") * VS;
  67824. h = h === "auto" ? d - AZ : -h * VS;
  67825. var v = r.get("minAngle") * VS, g = v + p, m = 0;
  67826. i.each(a, function(Q) {
  67827. !isNaN(Q) && m++;
  67828. });
  67829. var y = i.getSum(a), _ = Math.PI / (y || m) * 2, O = r.get("clockwise"), S = r.get("roseType"), x = r.get("stillShowZeroSum"), C = i.getDataExtent(a);
  67830. C[0] = 0;
  67831. var P = O ? 1 : -1, $ = [d, h], T = P * p / 2;
  67832. D5($, !O), d = $[0], h = $[1];
  67833. var E = bfe(r);
  67834. E.startAngle = d, E.endAngle = h, E.clockwise = O;
  67835. var M = Math.abs(h - d), R = M, N = 0, I = d;
  67836. if (i.setLayout({
  67837. viewRect: o,
  67838. r: c
  67839. }), i.each(a, function(Q, W) {
  67840. var H;
  67841. if (isNaN(Q)) {
  67842. i.setItemLayout(W, {
  67843. angle: NaN,
  67844. startAngle: NaN,
  67845. endAngle: NaN,
  67846. clockwise: O,
  67847. cx: l,
  67848. cy: u,
  67849. r0: f,
  67850. r: S ? NaN : c
  67851. });
  67852. return;
  67853. }
  67854. S !== "area" ? H = y === 0 && x ? _ : Q * _ : H = M / m, H < g ? (H = g, R -= g) : N += Q;
  67855. var U = I + P * H, j = 0, Y = 0;
  67856. p > H ? (j = I + P * H / 2, Y = j) : (j = I + T, Y = U - T), i.setItemLayout(W, {
  67857. angle: H,
  67858. startAngle: j,
  67859. endAngle: Y,
  67860. clockwise: O,
  67861. cx: l,
  67862. cy: u,
  67863. r0: f,
  67864. r: S ? gn(Q, C, [f, c]) : c
  67865. }), I = U;
  67866. }), R < AZ && m)
  67867. if (R <= 1e-3) {
  67868. var B = M / m;
  67869. i.each(a, function(Q, W) {
  67870. if (!isNaN(Q)) {
  67871. var H = i.getItemLayout(W);
  67872. H.angle = B;
  67873. var U = 0, j = 0;
  67874. B < p ? (U = d + P * (W + 1 / 2) * B, j = U) : (U = d + P * W * B + T, j = d + P * (W + 1) * B - T), H.startAngle = U, H.endAngle = j;
  67875. }
  67876. });
  67877. } else
  67878. _ = R / N, I = d, i.each(a, function(Q, W) {
  67879. if (!isNaN(Q)) {
  67880. var H = i.getItemLayout(W), U = H.angle === g ? g : Q * _, j = 0, Y = 0;
  67881. U < p ? (j = I + P * U / 2, Y = j) : (j = I + T, Y = I + P * U - T), H.startAngle = j, H.endAngle = Y, I += P * U;
  67882. }
  67883. });
  67884. });
  67885. }
  67886. var bfe = Ut();
  67887. function O1(t) {
  67888. return {
  67889. seriesType: t,
  67890. reset: function(e, n) {
  67891. var r = n.findComponents({
  67892. mainType: "legend"
  67893. });
  67894. if (!(!r || !r.length)) {
  67895. var i = e.getData();
  67896. i.filterSelf(function(a) {
  67897. for (var o = i.getName(a), s = 0; s < r.length; s++)
  67898. if (!r[s].isSelected(o))
  67899. return !1;
  67900. return !0;
  67901. });
  67902. }
  67903. }
  67904. };
  67905. }
  67906. var wet = Math.PI / 180;
  67907. function EZ(t, e, n, r, i, a, o, s, l, u) {
  67908. if (t.length < 2)
  67909. return;
  67910. function c(v) {
  67911. for (var g = v.rB, m = g * g, y = 0; y < v.list.length; y++) {
  67912. var _ = v.list[y], O = Math.abs(_.label.y - n), S = r + _.len, x = S * S, C = Math.sqrt((1 - Math.abs(O * O / m)) * x), P = e + (C + _.len2) * i, $ = P - _.label.x, T = _.targetTextWidth - $ * i;
  67913. _fe(_, T, !0), _.label.x = P;
  67914. }
  67915. }
  67916. function f(v) {
  67917. for (var g = {
  67918. list: [],
  67919. maxY: 0
  67920. }, m = {
  67921. list: [],
  67922. maxY: 0
  67923. }, y = 0; y < v.length; y++)
  67924. if (v[y].labelAlignTo === "none") {
  67925. var _ = v[y], O = _.label.y > n ? m : g, S = Math.abs(_.label.y - n);
  67926. if (S >= O.maxY) {
  67927. var x = _.label.x - e - _.len2 * i, C = r + _.len, P = Math.abs(x) < C ? Math.sqrt(S * S / (1 - x * x / C / C)) : C;
  67928. O.rB = P, O.maxY = S;
  67929. }
  67930. O.list.push(_);
  67931. }
  67932. c(g), c(m);
  67933. }
  67934. for (var d = t.length, h = 0; h < d; h++)
  67935. if (t[h].position === "outer" && t[h].labelAlignTo === "labelLine") {
  67936. var p = t[h].label.x - u;
  67937. t[h].linePoints[1][0] += p, t[h].label.x = u;
  67938. }
  67939. Qce(t, l, l + o) && f(t);
  67940. }
  67941. function Cet(t, e, n, r, i, a, o, s) {
  67942. for (var l = [], u = [], c = Number.MAX_VALUE, f = -Number.MAX_VALUE, d = 0; d < t.length; d++) {
  67943. var h = t[d].label;
  67944. GM(t[d]) || (h.x < e ? (c = Math.min(c, h.x), l.push(t[d])) : (f = Math.max(f, h.x), u.push(t[d])));
  67945. }
  67946. for (var d = 0; d < t.length; d++) {
  67947. var p = t[d];
  67948. if (!GM(p) && p.linePoints) {
  67949. if (p.labelStyleWidth != null)
  67950. continue;
  67951. var h = p.label, v = p.linePoints, g = void 0;
  67952. p.labelAlignTo === "edge" ? h.x < e ? g = v[2][0] - p.labelDistance - o - p.edgeDistance : g = o + i - p.edgeDistance - v[2][0] - p.labelDistance : p.labelAlignTo === "labelLine" ? h.x < e ? g = c - o - p.bleedMargin : g = o + i - f - p.bleedMargin : h.x < e ? g = h.x - o - p.bleedMargin : g = o + i - h.x - p.bleedMargin, p.targetTextWidth = g, _fe(p, g);
  67953. }
  67954. }
  67955. EZ(u, e, n, r, 1, i, a, o, s, f), EZ(l, e, n, r, -1, i, a, o, s, c);
  67956. for (var d = 0; d < t.length; d++) {
  67957. var p = t[d];
  67958. if (!GM(p) && p.linePoints) {
  67959. var h = p.label, v = p.linePoints, m = p.labelAlignTo === "edge", y = h.style.padding, _ = y ? y[1] + y[3] : 0, O = h.style.backgroundColor ? 0 : _, S = p.rect.width + O, x = v[1][0] - v[2][0];
  67960. m ? h.x < e ? v[2][0] = o + p.edgeDistance + S + p.labelDistance : v[2][0] = o + i - p.edgeDistance - S - p.labelDistance : (h.x < e ? v[2][0] = h.x + p.labelDistance : v[2][0] = h.x - p.labelDistance, v[1][0] = v[2][0] + x), v[1][1] = v[2][1] = h.y;
  67961. }
  67962. }
  67963. }
  67964. function _fe(t, e, n) {
  67965. if (n === void 0 && (n = !1), t.labelStyleWidth == null) {
  67966. var r = t.label, i = r.style, a = t.rect, o = i.backgroundColor, s = i.padding, l = s ? s[1] + s[3] : 0, u = i.overflow, c = a.width + (o ? 0 : l);
  67967. if (e < c || n) {
  67968. var f = a.height;
  67969. if (u && u.match("break")) {
  67970. r.setStyle("backgroundColor", null), r.setStyle("width", e - l);
  67971. var d = r.getBoundingRect();
  67972. r.setStyle("width", Math.ceil(d.width)), r.setStyle("backgroundColor", o);
  67973. } else {
  67974. var h = e - l, p = e < c ? h : (
  67975. // Current available width is enough, but the text may have
  67976. // already been wrapped with a smaller available width.
  67977. n ? h > t.unconstrainedWidth ? null : h : null
  67978. );
  67979. r.setStyle("width", p);
  67980. }
  67981. var v = r.getBoundingRect();
  67982. a.width = v.width;
  67983. var g = (r.style.margin || 0) + 2.1;
  67984. a.height = v.height + g, a.y -= (a.height - f) / 2;
  67985. }
  67986. }
  67987. }
  67988. function GM(t) {
  67989. return t.position === "center";
  67990. }
  67991. function Tet(t) {
  67992. var e = t.getData(), n = [], r, i, a = !1, o = (t.get("minShowLabelAngle") || 0) * wet, s = e.getLayout("viewRect"), l = e.getLayout("r"), u = s.width, c = s.x, f = s.y, d = s.height;
  67993. function h(x) {
  67994. x.ignore = !0;
  67995. }
  67996. function p(x) {
  67997. if (!x.ignore)
  67998. return !0;
  67999. for (var C in x.states)
  68000. if (x.states[C].ignore === !1)
  68001. return !0;
  68002. return !1;
  68003. }
  68004. e.each(function(x) {
  68005. var C = e.getItemGraphicEl(x), P = C.shape, $ = C.getTextContent(), T = C.getTextGuideLine(), E = e.getItemModel(x), M = E.getModel("label"), R = M.get("position") || E.get(["emphasis", "label", "position"]), N = M.get("distanceToLabelLine"), I = M.get("alignTo"), B = ze(M.get("edgeDistance"), u), Q = M.get("bleedMargin"), W = E.getModel("labelLine"), H = W.get("length");
  68006. H = ze(H, u);
  68007. var U = W.get("length2");
  68008. if (U = ze(U, u), Math.abs(P.endAngle - P.startAngle) < o) {
  68009. F($.states, h), $.ignore = !0, T && (F(T.states, h), T.ignore = !0);
  68010. return;
  68011. }
  68012. if (p($)) {
  68013. var j = (P.startAngle + P.endAngle) / 2, Y = Math.cos(j), ne = Math.sin(j), fe, ue, ye, se;
  68014. r = P.cx, i = P.cy;
  68015. var he = R === "inside" || R === "inner";
  68016. if (R === "center")
  68017. fe = P.cx, ue = P.cy, se = "center";
  68018. else {
  68019. var re = (he ? (P.r + P.r0) / 2 * Y : P.r * Y) + r, q = (he ? (P.r + P.r0) / 2 * ne : P.r * ne) + i;
  68020. if (fe = re + Y * 3, ue = q + ne * 3, !he) {
  68021. var K = re + Y * (H + l - P.r), de = q + ne * (H + l - P.r), xe = K + (Y < 0 ? -1 : 1) * U, we = de;
  68022. I === "edge" ? fe = Y < 0 ? c + B : c + u - B : fe = xe + (Y < 0 ? -N : N), ue = we, ye = [[re, q], [K, de], [xe, we]];
  68023. }
  68024. se = he ? "center" : I === "edge" ? Y > 0 ? "right" : "left" : Y > 0 ? "left" : "right";
  68025. }
  68026. var He = Math.PI, je = 0, Be = M.get("rotate");
  68027. if (Kt(Be))
  68028. je = Be * (He / 180);
  68029. else if (R === "center")
  68030. je = 0;
  68031. else if (Be === "radial" || Be === !0) {
  68032. var Le = Y < 0 ? -j + He : -j;
  68033. je = Le;
  68034. } else if (Be === "tangential" && R !== "outside" && R !== "outer") {
  68035. var Pe = Math.atan2(Y, ne);
  68036. Pe < 0 && (Pe = He * 2 + Pe);
  68037. var Fe = ne > 0;
  68038. Fe && (Pe = He + Pe), je = Pe - He;
  68039. }
  68040. if (a = !!je, $.x = fe, $.y = ue, $.rotation = je, $.setStyle({
  68041. verticalAlign: "middle"
  68042. }), he) {
  68043. $.setStyle({
  68044. align: se
  68045. });
  68046. var It = $.states.select;
  68047. It && (It.x += $.x, It.y += $.y);
  68048. } else {
  68049. var Ye = $.getBoundingRect().clone();
  68050. Ye.applyTransform($.getComputedTransform());
  68051. var xt = ($.style.margin || 0) + 2.1;
  68052. Ye.y -= xt / 2, Ye.height += xt, n.push({
  68053. label: $,
  68054. labelLine: T,
  68055. position: R,
  68056. len: H,
  68057. len2: U,
  68058. minTurnAngle: W.get("minTurnAngle"),
  68059. maxSurfaceAngle: W.get("maxSurfaceAngle"),
  68060. surfaceNormal: new yt(Y, ne),
  68061. linePoints: ye,
  68062. textAlign: se,
  68063. labelDistance: N,
  68064. labelAlignTo: I,
  68065. edgeDistance: B,
  68066. bleedMargin: Q,
  68067. rect: Ye,
  68068. unconstrainedWidth: Ye.width,
  68069. labelStyleWidth: $.style.width
  68070. });
  68071. }
  68072. C.setTextConfig({
  68073. inside: he
  68074. });
  68075. }
  68076. }), !a && t.get("avoidLabelOverlap") && Cet(n, r, i, l, u, d, c, f);
  68077. for (var v = 0; v < n.length; v++) {
  68078. var g = n[v], m = g.label, y = g.labelLine, _ = isNaN(m.x) || isNaN(m.y);
  68079. if (m) {
  68080. m.setStyle({
  68081. align: g.textAlign
  68082. }), _ && (F(m.states, h), m.ignore = !0);
  68083. var O = m.states.select;
  68084. O && (O.x += m.x, O.y += m.y);
  68085. }
  68086. if (y) {
  68087. var S = g.linePoints;
  68088. _ || !S ? (F(y.states, h), y.ignore = !0) : (Vce(S, g.minTurnAngle), ZKe(S, g.surfaceNormal, g.maxSurfaceAngle), y.setShape({
  68089. points: S
  68090. }), m.__hostTarget.textGuideLineConfig = {
  68091. anchor: new yt(S[0][0], S[0][1])
  68092. });
  68093. }
  68094. }
  68095. }
  68096. var Pet = (
  68097. /** @class */
  68098. function(t) {
  68099. le(e, t);
  68100. function e(n, r, i) {
  68101. var a = t.call(this) || this;
  68102. a.z2 = 2;
  68103. var o = new jt();
  68104. return a.setTextContent(o), a.updateData(n, r, i, !0), a;
  68105. }
  68106. return e.prototype.updateData = function(n, r, i, a) {
  68107. var o = this, s = n.hostModel, l = n.getItemModel(r), u = l.getModel("emphasis"), c = n.getItemLayout(r), f = _e(ch(l.getModel("itemStyle"), c, !0), c);
  68108. if (isNaN(f.startAngle)) {
  68109. o.setShape(f);
  68110. return;
  68111. }
  68112. if (a) {
  68113. o.setShape(f);
  68114. var d = s.getShallow("animationType");
  68115. s.ecModel.ssr ? (Vn(o, {
  68116. scaleX: 0,
  68117. scaleY: 0
  68118. }, s, {
  68119. dataIndex: r,
  68120. isFrom: !0
  68121. }), o.originX = f.cx, o.originY = f.cy) : d === "scale" ? (o.shape.r = c.r0, Vn(o, {
  68122. shape: {
  68123. r: c.r
  68124. }
  68125. }, s, r)) : i != null ? (o.setShape({
  68126. startAngle: i,
  68127. endAngle: i
  68128. }), Vn(o, {
  68129. shape: {
  68130. startAngle: c.startAngle,
  68131. endAngle: c.endAngle
  68132. }
  68133. }, s, r)) : (o.shape.endAngle = c.startAngle, tn(o, {
  68134. shape: {
  68135. endAngle: c.endAngle
  68136. }
  68137. }, s, r));
  68138. } else
  68139. Zs(o), tn(o, {
  68140. shape: f
  68141. }, s, r);
  68142. o.useStyle(n.getItemVisual(r, "style")), Ai(o, l);
  68143. var h = (c.startAngle + c.endAngle) / 2, p = s.get("selectedOffset"), v = Math.cos(h) * p, g = Math.sin(h) * p, m = l.getShallow("cursor");
  68144. m && o.attr("cursor", m), this._updateLabel(s, n, r), o.ensureState("emphasis").shape = _e({
  68145. r: c.r + (u.get("scale") && u.get("scaleSize") || 0)
  68146. }, ch(u.getModel("itemStyle"), c)), _e(o.ensureState("select"), {
  68147. x: v,
  68148. y: g,
  68149. shape: ch(l.getModel(["select", "itemStyle"]), c)
  68150. }), _e(o.ensureState("blur"), {
  68151. shape: ch(l.getModel(["blur", "itemStyle"]), c)
  68152. });
  68153. var y = o.getTextGuideLine(), _ = o.getTextContent();
  68154. y && _e(y.ensureState("select"), {
  68155. x: v,
  68156. y: g
  68157. }), _e(_.ensureState("select"), {
  68158. x: v,
  68159. y: g
  68160. }), ur(this, u.get("focus"), u.get("blurScope"), u.get("disabled"));
  68161. }, e.prototype._updateLabel = function(n, r, i) {
  68162. var a = this, o = r.getItemModel(i), s = o.getModel("labelLine"), l = r.getItemVisual(i, "style"), u = l && l.fill, c = l && l.opacity;
  68163. Ei(a, ei(o), {
  68164. labelFetcher: r.hostModel,
  68165. labelDataIndex: i,
  68166. inheritColor: u,
  68167. defaultOpacity: c,
  68168. defaultText: n.getFormattedLabel(i, "normal") || r.getName(i)
  68169. });
  68170. var f = a.getTextContent();
  68171. a.setTextConfig({
  68172. // reset position, rotation
  68173. position: null,
  68174. rotation: null
  68175. }), f.attr({
  68176. z2: 10
  68177. });
  68178. var d = n.get(["label", "position"]);
  68179. if (d !== "outside" && d !== "outer")
  68180. a.removeTextGuideLine();
  68181. else {
  68182. var h = this.getTextGuideLine();
  68183. h || (h = new va(), this.setTextGuideLine(h)), A3(this, E3(o), {
  68184. stroke: u,
  68185. opacity: co(s.get(["lineStyle", "opacity"]), c, 1)
  68186. });
  68187. }
  68188. }, e;
  68189. }(ha)
  68190. ), $et = (
  68191. /** @class */
  68192. function(t) {
  68193. le(e, t);
  68194. function e() {
  68195. var n = t !== null && t.apply(this, arguments) || this;
  68196. return n.ignoreLabelLineUpdate = !0, n;
  68197. }
  68198. return e.prototype.render = function(n, r, i, a) {
  68199. var o = n.getData(), s = this._data, l = this.group, u;
  68200. if (!s && o.count() > 0) {
  68201. for (var c = o.getItemLayout(0), f = 1; isNaN(c && c.startAngle) && f < o.count(); ++f)
  68202. c = o.getItemLayout(f);
  68203. c && (u = c.startAngle);
  68204. }
  68205. if (this._emptyCircleSector && l.remove(this._emptyCircleSector), o.count() === 0 && n.get("showEmptyCircle")) {
  68206. var d = bfe(n), h = new ha({
  68207. shape: _e(yfe(n, i), d)
  68208. });
  68209. h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()), this._emptyCircleSector = h, l.add(h);
  68210. }
  68211. o.diff(s).add(function(p) {
  68212. var v = new Pet(o, p, u);
  68213. o.setItemGraphicEl(p, v), l.add(v);
  68214. }).update(function(p, v) {
  68215. var g = s.getItemGraphicEl(v);
  68216. g.updateData(o, p, u), g.off("click"), l.add(g), o.setItemGraphicEl(p, g);
  68217. }).remove(function(p) {
  68218. var v = s.getItemGraphicEl(p);
  68219. Xb(v, n, p);
  68220. }).execute(), Tet(n), n.get("animationTypeUpdate") !== "expansion" && (this._data = o);
  68221. }, e.prototype.dispose = function() {
  68222. }, e.prototype.containPoint = function(n, r) {
  68223. var i = r.getData(), a = i.getItemLayout(0);
  68224. if (a) {
  68225. var o = n[0] - a.cx, s = n[1] - a.cy, l = Math.sqrt(o * o + s * s);
  68226. return l <= a.r && l >= a.r0;
  68227. }
  68228. }, e.type = "pie", e;
  68229. }(_n)
  68230. );
  68231. function Rm(t, e, n) {
  68232. e = Se(e) && {
  68233. coordDimensions: e
  68234. } || _e({
  68235. encodeDefine: t.getEncode()
  68236. }, e);
  68237. var r = t.getSource(), i = Mm(r, e).dimensions, a = new Wi(i, t);
  68238. return a.initData(r, n), a;
  68239. }
  68240. var S1 = (
  68241. /** @class */
  68242. function() {
  68243. function t(e, n) {
  68244. this._getDataWithEncodedVisual = e, this._getRawData = n;
  68245. }
  68246. return t.prototype.getAllNames = function() {
  68247. var e = this._getRawData();
  68248. return e.mapArray(e.getName);
  68249. }, t.prototype.containName = function(e) {
  68250. var n = this._getRawData();
  68251. return n.indexOfName(e) >= 0;
  68252. }, t.prototype.indexOfName = function(e) {
  68253. var n = this._getDataWithEncodedVisual();
  68254. return n.indexOfName(e);
  68255. }, t.prototype.getItemVisual = function(e, n) {
  68256. var r = this._getDataWithEncodedVisual();
  68257. return r.getItemVisual(e, n);
  68258. }, t;
  68259. }()
  68260. ), Aet = Ut(), Eet = (
  68261. /** @class */
  68262. function(t) {
  68263. le(e, t);
  68264. function e() {
  68265. return t !== null && t.apply(this, arguments) || this;
  68266. }
  68267. return e.prototype.init = function(n) {
  68268. t.prototype.init.apply(this, arguments), this.legendVisualProvider = new S1(We(this.getData, this), We(this.getRawData, this)), this._defaultLabelLine(n);
  68269. }, e.prototype.mergeOption = function() {
  68270. t.prototype.mergeOption.apply(this, arguments);
  68271. }, e.prototype.getInitialData = function() {
  68272. return Rm(this, {
  68273. coordDimensions: ["value"],
  68274. encodeDefaulter: vt(n3, this)
  68275. });
  68276. }, e.prototype.getDataParams = function(n) {
  68277. var r = this.getData(), i = Aet(r), a = i.seats;
  68278. if (!a) {
  68279. var o = [];
  68280. r.each(r.mapDimension("value"), function(l) {
  68281. o.push(l);
  68282. }), a = i.seats = Mse(o, r.hostModel.get("percentPrecision"));
  68283. }
  68284. var s = t.prototype.getDataParams.call(this, n);
  68285. return s.percent = a[n] || 0, s.$vars.push("percent"), s;
  68286. }, e.prototype._defaultLabelLine = function(n) {
  68287. Hh(n, "labelLine", ["show"]);
  68288. var r = n.labelLine, i = n.emphasis.labelLine;
  68289. r.show = r.show && n.label.show, i.show = i.show && n.emphasis.label.show;
  68290. }, e.type = "series.pie", e.defaultOption = {
  68291. // zlevel: 0,
  68292. z: 2,
  68293. legendHoverLink: !0,
  68294. colorBy: "data",
  68295. // 默认全局居中
  68296. center: ["50%", "50%"],
  68297. radius: [0, "75%"],
  68298. // 默认顺时针
  68299. clockwise: !0,
  68300. startAngle: 90,
  68301. endAngle: "auto",
  68302. padAngle: 0,
  68303. // 最小角度改为0
  68304. minAngle: 0,
  68305. // If the angle of a sector less than `minShowLabelAngle`,
  68306. // the label will not be displayed.
  68307. minShowLabelAngle: 0,
  68308. // 选中时扇区偏移量
  68309. selectedOffset: 10,
  68310. // 选择模式,默认关闭,可选single,multiple
  68311. // selectedMode: false,
  68312. // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)
  68313. // roseType: null,
  68314. percentPrecision: 2,
  68315. // If still show when all data zero.
  68316. stillShowZeroSum: !0,
  68317. // cursor: null,
  68318. left: 0,
  68319. top: 0,
  68320. right: 0,
  68321. bottom: 0,
  68322. width: null,
  68323. height: null,
  68324. label: {
  68325. // color: 'inherit',
  68326. // If rotate around circle
  68327. rotate: 0,
  68328. show: !0,
  68329. overflow: "truncate",
  68330. // 'outer', 'inside', 'center'
  68331. position: "outer",
  68332. // 'none', 'labelLine', 'edge'. Works only when position is 'outer'
  68333. alignTo: "none",
  68334. // Closest distance between label and chart edge.
  68335. // Works only position is 'outer' and alignTo is 'edge'.
  68336. edgeDistance: "25%",
  68337. // Works only position is 'outer' and alignTo is not 'edge'.
  68338. bleedMargin: 10,
  68339. // Distance between text and label line.
  68340. distanceToLabelLine: 5
  68341. // formatter: 标签文本格式器,同 tooltip.formatter,不支持异步回调
  68342. // 默认使用全局文本样式,详见 textStyle
  68343. // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数
  68344. },
  68345. // Enabled when label.normal.position is 'outer'
  68346. labelLine: {
  68347. show: !0,
  68348. // 引导线两段中的第一段长度
  68349. length: 15,
  68350. // 引导线两段中的第二段长度
  68351. length2: 15,
  68352. smooth: !1,
  68353. minTurnAngle: 90,
  68354. maxSurfaceAngle: 90,
  68355. lineStyle: {
  68356. // color: 各异,
  68357. width: 1,
  68358. type: "solid"
  68359. }
  68360. },
  68361. itemStyle: {
  68362. borderWidth: 1,
  68363. borderJoin: "round"
  68364. },
  68365. showEmptyCircle: !0,
  68366. emptyCircleStyle: {
  68367. color: "lightgray",
  68368. opacity: 1
  68369. },
  68370. labelLayout: {
  68371. // Hide the overlapped label.
  68372. hideOverlap: !0
  68373. },
  68374. emphasis: {
  68375. scale: !0,
  68376. scaleSize: 5
  68377. },
  68378. // If use strategy to avoid label overlapping
  68379. avoidLabelOverlap: !0,
  68380. // Animation type. Valid values: expansion, scale
  68381. animationType: "expansion",
  68382. animationDuration: 1e3,
  68383. // Animation type when update. Valid values: transition, expansion
  68384. animationTypeUpdate: "transition",
  68385. animationEasingUpdate: "cubicInOut",
  68386. animationDurationUpdate: 500,
  68387. animationEasing: "cubicInOut"
  68388. }, e;
  68389. }(Tn)
  68390. );
  68391. function Met(t) {
  68392. return {
  68393. seriesType: t,
  68394. reset: function(e, n) {
  68395. var r = e.getData();
  68396. r.filterSelf(function(i) {
  68397. var a = r.mapDimension("value"), o = r.get(a, i);
  68398. return !(Kt(o) && !isNaN(o) && o < 0);
  68399. });
  68400. }
  68401. };
  68402. }
  68403. function Iet(t) {
  68404. t.registerChartView($et), t.registerSeriesModel(Eet), Bue("pie", t.registerAction), t.registerLayout(vt(xet, "pie")), t.registerProcessor(O1("pie")), t.registerProcessor(Met("pie"));
  68405. }
  68406. var Det = (
  68407. /** @class */
  68408. function(t) {
  68409. le(e, t);
  68410. function e() {
  68411. var n = t !== null && t.apply(this, arguments) || this;
  68412. return n.type = e.type, n.hasSymbolVisual = !0, n;
  68413. }
  68414. return e.prototype.getInitialData = function(n, r) {
  68415. return Yl(null, this, {
  68416. useEncodeDefaulter: !0
  68417. });
  68418. }, e.prototype.getProgressive = function() {
  68419. var n = this.option.progressive;
  68420. return n ?? (this.option.large ? 5e3 : this.get("progressive"));
  68421. }, e.prototype.getProgressiveThreshold = function() {
  68422. var n = this.option.progressiveThreshold;
  68423. return n ?? (this.option.large ? 1e4 : this.get("progressiveThreshold"));
  68424. }, e.prototype.brushSelector = function(n, r, i) {
  68425. return i.point(r.getItemLayout(n));
  68426. }, e.prototype.getZLevelKey = function() {
  68427. return this.getData().count() > this.getProgressiveThreshold() ? this.id : "";
  68428. }, e.type = "series.scatter", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
  68429. coordinateSystem: "cartesian2d",
  68430. // zlevel: 0,
  68431. z: 2,
  68432. legendHoverLink: !0,
  68433. symbolSize: 10,
  68434. // symbolRotate: null, // 图形旋转控制
  68435. large: !1,
  68436. // Available when large is true
  68437. largeThreshold: 2e3,
  68438. // cursor: null,
  68439. itemStyle: {
  68440. opacity: 0.8
  68441. // color: 各异
  68442. },
  68443. emphasis: {
  68444. scale: !0
  68445. },
  68446. // If clip the overflow graphics
  68447. // Works on cartesian / polar series
  68448. clip: !0,
  68449. select: {
  68450. itemStyle: {
  68451. borderColor: "#212121"
  68452. }
  68453. },
  68454. universalTransition: {
  68455. divideShape: "clone"
  68456. }
  68457. // progressive: null
  68458. }, e;
  68459. }(Tn)
  68460. ), Ofe = 4, Ret = (
  68461. /** @class */
  68462. /* @__PURE__ */ function() {
  68463. function t() {
  68464. }
  68465. return t;
  68466. }()
  68467. ), ket = (
  68468. /** @class */
  68469. function(t) {
  68470. le(e, t);
  68471. function e(n) {
  68472. var r = t.call(this, n) || this;
  68473. return r._off = 0, r.hoverDataIdx = -1, r;
  68474. }
  68475. return e.prototype.getDefaultShape = function() {
  68476. return new Ret();
  68477. }, e.prototype.reset = function() {
  68478. this.notClear = !1, this._off = 0;
  68479. }, e.prototype.buildPath = function(n, r) {
  68480. var i = r.points, a = r.size, o = this.symbolProxy, s = o.shape, l = n.getContext ? n.getContext() : n, u = l && a[0] < Ofe, c = this.softClipShape, f;
  68481. if (u) {
  68482. this._ctx = l;
  68483. return;
  68484. }
  68485. for (this._ctx = null, f = this._off; f < i.length; ) {
  68486. var d = i[f++], h = i[f++];
  68487. isNaN(d) || isNaN(h) || c && !c.contain(d, h) || (s.x = d - a[0] / 2, s.y = h - a[1] / 2, s.width = a[0], s.height = a[1], o.buildPath(n, s, !0));
  68488. }
  68489. this.incremental && (this._off = f, this.notClear = !0);
  68490. }, e.prototype.afterBrush = function() {
  68491. var n = this.shape, r = n.points, i = n.size, a = this._ctx, o = this.softClipShape, s;
  68492. if (a) {
  68493. for (s = this._off; s < r.length; ) {
  68494. var l = r[s++], u = r[s++];
  68495. isNaN(l) || isNaN(u) || o && !o.contain(l, u) || a.fillRect(l - i[0] / 2, u - i[1] / 2, i[0], i[1]);
  68496. }
  68497. this.incremental && (this._off = s, this.notClear = !0);
  68498. }
  68499. }, e.prototype.findDataIndex = function(n, r) {
  68500. for (var i = this.shape, a = i.points, o = i.size, s = Math.max(o[0], 4), l = Math.max(o[1], 4), u = a.length / 2 - 1; u >= 0; u--) {
  68501. var c = u * 2, f = a[c] - s / 2, d = a[c + 1] - l / 2;
  68502. if (n >= f && r >= d && n <= f + s && r <= d + l)
  68503. return u;
  68504. }
  68505. return -1;
  68506. }, e.prototype.contain = function(n, r) {
  68507. var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
  68508. if (n = i[0], r = i[1], a.contain(n, r)) {
  68509. var o = this.hoverDataIdx = this.findDataIndex(n, r);
  68510. return o >= 0;
  68511. }
  68512. return this.hoverDataIdx = -1, !1;
  68513. }, e.prototype.getBoundingRect = function() {
  68514. var n = this._rect;
  68515. if (!n) {
  68516. for (var r = this.shape, i = r.points, a = r.size, o = a[0], s = a[1], l = 1 / 0, u = 1 / 0, c = -1 / 0, f = -1 / 0, d = 0; d < i.length; ) {
  68517. var h = i[d++], p = i[d++];
  68518. l = Math.min(h, l), c = Math.max(h, c), u = Math.min(p, u), f = Math.max(p, f);
  68519. }
  68520. n = this._rect = new bt(l - o / 2, u - s / 2, c - l + o, f - u + s);
  68521. }
  68522. return n;
  68523. }, e;
  68524. }(Dt)
  68525. ), Let = (
  68526. /** @class */
  68527. function() {
  68528. function t() {
  68529. this.group = new ct();
  68530. }
  68531. return t.prototype.updateData = function(e, n) {
  68532. this._clear();
  68533. var r = this._create();
  68534. r.setShape({
  68535. points: e.getLayout("points")
  68536. }), this._setCommon(r, e, n);
  68537. }, t.prototype.updateLayout = function(e) {
  68538. var n = e.getLayout("points");
  68539. this.group.eachChild(function(r) {
  68540. if (r.startIndex != null) {
  68541. var i = (r.endIndex - r.startIndex) * 2, a = r.startIndex * 4 * 2;
  68542. n = new Float32Array(n.buffer, a, i);
  68543. }
  68544. r.setShape("points", n), r.reset();
  68545. });
  68546. }, t.prototype.incrementalPrepareUpdate = function(e) {
  68547. this._clear();
  68548. }, t.prototype.incrementalUpdate = function(e, n, r) {
  68549. var i = this._newAdded[0], a = n.getLayout("points"), o = i && i.shape.points;
  68550. if (o && o.length < 2e4) {
  68551. var s = o.length, l = new Float32Array(s + a.length);
  68552. l.set(o), l.set(a, s), i.endIndex = e.end, i.setShape({
  68553. points: l
  68554. });
  68555. } else {
  68556. this._newAdded = [];
  68557. var u = this._create();
  68558. u.startIndex = e.start, u.endIndex = e.end, u.incremental = !0, u.setShape({
  68559. points: a
  68560. }), this._setCommon(u, n, r);
  68561. }
  68562. }, t.prototype.eachRendered = function(e) {
  68563. this._newAdded[0] && e(this._newAdded[0]);
  68564. }, t.prototype._create = function() {
  68565. var e = new ket({
  68566. cursor: "default"
  68567. });
  68568. return e.ignoreCoarsePointer = !0, this.group.add(e), this._newAdded.push(e), e;
  68569. }, t.prototype._setCommon = function(e, n, r) {
  68570. var i = n.hostModel;
  68571. r = r || {};
  68572. var a = n.getVisual("symbolSize");
  68573. e.setShape("size", a instanceof Array ? a : [a, a]), e.softClipShape = r.clipShape || null, e.symbolProxy = wr(n.getVisual("symbol"), 0, 0, 0, 0), e.setColor = e.symbolProxy.setColor;
  68574. var o = e.shape.size[0] < Ofe;
  68575. e.useStyle(
  68576. // Draw shadow when doing fillRect is extremely slow.
  68577. i.getModel("itemStyle").getItemStyle(o ? ["color", "shadowBlur", "shadowColor"] : ["color"])
  68578. );
  68579. var s = n.getVisual("style"), l = s && s.fill;
  68580. l && e.setColor(l);
  68581. var u = ft(e);
  68582. u.seriesIndex = i.seriesIndex, e.on("mousemove", function(c) {
  68583. u.dataIndex = null;
  68584. var f = e.hoverDataIdx;
  68585. f >= 0 && (u.dataIndex = f + (e.startIndex || 0));
  68586. });
  68587. }, t.prototype.remove = function() {
  68588. this._clear();
  68589. }, t.prototype._clear = function() {
  68590. this._newAdded = [], this.group.removeAll();
  68591. }, t;
  68592. }()
  68593. ), Net = (
  68594. /** @class */
  68595. function(t) {
  68596. le(e, t);
  68597. function e() {
  68598. var n = t !== null && t.apply(this, arguments) || this;
  68599. return n.type = e.type, n;
  68600. }
  68601. return e.prototype.render = function(n, r, i) {
  68602. var a = n.getData(), o = this._updateSymbolDraw(a, n);
  68603. o.updateData(a, {
  68604. // TODO
  68605. // If this parameter should be a shape or a bounding volume
  68606. // shape will be more general.
  68607. // But bounding volume like bounding rect will be much faster in the contain calculation
  68608. clipShape: this._getClipShape(n)
  68609. }), this._finished = !0;
  68610. }, e.prototype.incrementalPrepareRender = function(n, r, i) {
  68611. var a = n.getData(), o = this._updateSymbolDraw(a, n);
  68612. o.incrementalPrepareUpdate(a), this._finished = !1;
  68613. }, e.prototype.incrementalRender = function(n, r, i) {
  68614. this._symbolDraw.incrementalUpdate(n, r.getData(), {
  68615. clipShape: this._getClipShape(r)
  68616. }), this._finished = n.end === r.getData().count();
  68617. }, e.prototype.updateTransform = function(n, r, i) {
  68618. var a = n.getData();
  68619. if (this.group.dirty(), !this._finished || a.count() > 1e4)
  68620. return {
  68621. update: !0
  68622. };
  68623. var o = _1("").reset(n, r, i);
  68624. o.progress && o.progress({
  68625. start: 0,
  68626. end: a.count(),
  68627. count: a.count()
  68628. }, a), this._symbolDraw.updateLayout(a);
  68629. }, e.prototype.eachRendered = function(n) {
  68630. this._symbolDraw && this._symbolDraw.eachRendered(n);
  68631. }, e.prototype._getClipShape = function(n) {
  68632. if (n.get("clip", !0)) {
  68633. var r = n.coordinateSystem;
  68634. return r && r.getArea && r.getArea(0.1);
  68635. }
  68636. }, e.prototype._updateSymbolDraw = function(n, r) {
  68637. var i = this._symbolDraw, a = r.pipelineContext, o = a.large;
  68638. return (!i || o !== this._isLargeDraw) && (i && i.remove(), i = this._symbolDraw = o ? new Let() : new y1(), this._isLargeDraw = o, this.group.removeAll()), this.group.add(i.group), i;
  68639. }, e.prototype.remove = function(n, r) {
  68640. this._symbolDraw && this._symbolDraw.remove(!0), this._symbolDraw = null;
  68641. }, e.prototype.dispose = function() {
  68642. }, e.type = "scatter", e;
  68643. }(_n)
  68644. ), Bet = (
  68645. /** @class */
  68646. function(t) {
  68647. le(e, t);
  68648. function e() {
  68649. return t !== null && t.apply(this, arguments) || this;
  68650. }
  68651. return e.type = "grid", e.dependencies = ["xAxis", "yAxis"], e.layoutMode = "box", e.defaultOption = {
  68652. show: !1,
  68653. // zlevel: 0,
  68654. z: 0,
  68655. left: "10%",
  68656. top: 60,
  68657. right: "10%",
  68658. bottom: 70,
  68659. // If grid size contain label
  68660. containLabel: !1,
  68661. // width: {totalWidth} - left - right,
  68662. // height: {totalHeight} - top - bottom,
  68663. backgroundColor: "rgba(0,0,0,0)",
  68664. borderWidth: 1,
  68665. borderColor: "#ccc"
  68666. }, e;
  68667. }(At)
  68668. ), aL = (
  68669. /** @class */
  68670. function(t) {
  68671. le(e, t);
  68672. function e() {
  68673. return t !== null && t.apply(this, arguments) || this;
  68674. }
  68675. return e.prototype.getCoordSysModel = function() {
  68676. return this.getReferringComponents("grid", Er).models[0];
  68677. }, e.type = "cartesian2dAxis", e;
  68678. }(At)
  68679. );
  68680. vr(aL, Dm);
  68681. var Sfe = {
  68682. show: !0,
  68683. // zlevel: 0,
  68684. z: 0,
  68685. // Inverse the axis.
  68686. inverse: !1,
  68687. // Axis name displayed.
  68688. name: "",
  68689. // 'start' | 'middle' | 'end'
  68690. nameLocation: "end",
  68691. // By degree. By default auto rotate by nameLocation.
  68692. nameRotate: null,
  68693. nameTruncate: {
  68694. maxWidth: null,
  68695. ellipsis: "...",
  68696. placeholder: "."
  68697. },
  68698. // Use global text style by default.
  68699. nameTextStyle: {},
  68700. // The gap between axisName and axisLine.
  68701. nameGap: 15,
  68702. // Default `false` to support tooltip.
  68703. silent: !1,
  68704. // Default `false` to avoid legacy user event listener fail.
  68705. triggerEvent: !1,
  68706. tooltip: {
  68707. show: !1
  68708. },
  68709. axisPointer: {},
  68710. axisLine: {
  68711. show: !0,
  68712. onZero: !0,
  68713. onZeroAxisIndex: null,
  68714. lineStyle: {
  68715. color: "#6E7079",
  68716. width: 1,
  68717. type: "solid"
  68718. },
  68719. // The arrow at both ends the the axis.
  68720. symbol: ["none", "none"],
  68721. symbolSize: [10, 15]
  68722. },
  68723. axisTick: {
  68724. show: !0,
  68725. // Whether axisTick is inside the grid or outside the grid.
  68726. inside: !1,
  68727. // The length of axisTick.
  68728. length: 5,
  68729. lineStyle: {
  68730. width: 1
  68731. }
  68732. },
  68733. axisLabel: {
  68734. show: !0,
  68735. // Whether axisLabel is inside the grid or outside the grid.
  68736. inside: !1,
  68737. rotate: 0,
  68738. // true | false | null/undefined (auto)
  68739. showMinLabel: null,
  68740. // true | false | null/undefined (auto)
  68741. showMaxLabel: null,
  68742. margin: 8,
  68743. // formatter: null,
  68744. fontSize: 12
  68745. },
  68746. splitLine: {
  68747. show: !0,
  68748. lineStyle: {
  68749. color: ["#E0E6F1"],
  68750. width: 1,
  68751. type: "solid"
  68752. }
  68753. },
  68754. splitArea: {
  68755. show: !1,
  68756. areaStyle: {
  68757. color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
  68758. }
  68759. }
  68760. }, zet = mt({
  68761. // The gap at both ends of the axis. For categoryAxis, boolean.
  68762. boundaryGap: !0,
  68763. // Set false to faster category collection.
  68764. deduplication: null,
  68765. // splitArea: {
  68766. // show: false
  68767. // },
  68768. splitLine: {
  68769. show: !1
  68770. },
  68771. axisTick: {
  68772. // If tick is align with label when boundaryGap is true
  68773. alignWithLabel: !1,
  68774. interval: "auto"
  68775. },
  68776. axisLabel: {
  68777. interval: "auto"
  68778. }
  68779. }, Sfe), N3 = mt({
  68780. boundaryGap: [0, 0],
  68781. axisLine: {
  68782. // Not shown when other axis is categoryAxis in cartesian
  68783. show: "auto"
  68784. },
  68785. axisTick: {
  68786. // Not shown when other axis is categoryAxis in cartesian
  68787. show: "auto"
  68788. },
  68789. // TODO
  68790. // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]
  68791. splitNumber: 5,
  68792. minorTick: {
  68793. // Minor tick, not available for cateogry axis.
  68794. show: !1,
  68795. // Split number of minor ticks. The value should be in range of (0, 100)
  68796. splitNumber: 5,
  68797. // Length of minor tick
  68798. length: 3,
  68799. // Line style
  68800. lineStyle: {
  68801. // Default to be same with axisTick
  68802. }
  68803. },
  68804. minorSplitLine: {
  68805. show: !1,
  68806. lineStyle: {
  68807. color: "#F4F7FD",
  68808. width: 1
  68809. }
  68810. }
  68811. }, Sfe), Vet = mt({
  68812. splitNumber: 6,
  68813. axisLabel: {
  68814. // To eliminate labels that are not nice
  68815. showMinLabel: !1,
  68816. showMaxLabel: !1,
  68817. rich: {
  68818. primary: {
  68819. fontWeight: "bold"
  68820. }
  68821. }
  68822. },
  68823. splitLine: {
  68824. show: !1
  68825. }
  68826. }, N3), Fet = it({
  68827. logBase: 10
  68828. }, N3);
  68829. const xfe = {
  68830. category: zet,
  68831. value: N3,
  68832. time: Vet,
  68833. log: Fet
  68834. };
  68835. var Wet = {
  68836. value: 1,
  68837. category: 1,
  68838. time: 1,
  68839. log: 1
  68840. };
  68841. function Zg(t, e, n, r) {
  68842. F(Wet, function(i, a) {
  68843. var o = mt(mt({}, xfe[a], !0), r, !0), s = (
  68844. /** @class */
  68845. function(l) {
  68846. le(u, l);
  68847. function u() {
  68848. var c = l !== null && l.apply(this, arguments) || this;
  68849. return c.type = e + "Axis." + a, c;
  68850. }
  68851. return u.prototype.mergeDefaultAndTheme = function(c, f) {
  68852. var d = qb(this), h = d ? Tm(c) : {}, p = f.getTheme();
  68853. mt(c, p.get(a + "Axis")), mt(c, this.getDefaultOption()), c.type = MZ(c), d && Of(c, h, d);
  68854. }, u.prototype.optionUpdated = function() {
  68855. var c = this.option;
  68856. c.type === "category" && (this.__ordinalMeta = qk.createByAxisModel(this));
  68857. }, u.prototype.getCategories = function(c) {
  68858. var f = this.option;
  68859. if (f.type === "category")
  68860. return c ? f.data : this.__ordinalMeta.categories;
  68861. }, u.prototype.getOrdinalMeta = function() {
  68862. return this.__ordinalMeta;
  68863. }, u.type = e + "Axis." + a, u.defaultOption = o, u;
  68864. }(n)
  68865. );
  68866. t.registerComponentModel(s);
  68867. }), t.registerSubTypeDefaulter(e + "Axis", MZ);
  68868. }
  68869. function MZ(t) {
  68870. return t.type || (t.data ? "category" : "value");
  68871. }
  68872. var Qet = (
  68873. /** @class */
  68874. function() {
  68875. function t(e) {
  68876. this.type = "cartesian", this._dimList = [], this._axes = {}, this.name = e || "";
  68877. }
  68878. return t.prototype.getAxis = function(e) {
  68879. return this._axes[e];
  68880. }, t.prototype.getAxes = function() {
  68881. return Ce(this._dimList, function(e) {
  68882. return this._axes[e];
  68883. }, this);
  68884. }, t.prototype.getAxesByScale = function(e) {
  68885. return e = e.toLowerCase(), yn(this.getAxes(), function(n) {
  68886. return n.scale.type === e;
  68887. });
  68888. }, t.prototype.addAxis = function(e) {
  68889. var n = e.dim;
  68890. this._axes[n] = e, this._dimList.push(n);
  68891. }, t;
  68892. }()
  68893. ), oL = ["x", "y"];
  68894. function IZ(t) {
  68895. return t.type === "interval" || t.type === "time";
  68896. }
  68897. var Het = (
  68898. /** @class */
  68899. function(t) {
  68900. le(e, t);
  68901. function e() {
  68902. var n = t !== null && t.apply(this, arguments) || this;
  68903. return n.type = "cartesian2d", n.dimensions = oL, n;
  68904. }
  68905. return e.prototype.calcAffineTransform = function() {
  68906. this._transform = this._invTransform = null;
  68907. var n = this.getAxis("x").scale, r = this.getAxis("y").scale;
  68908. if (!(!IZ(n) || !IZ(r))) {
  68909. var i = n.getExtent(), a = r.getExtent(), o = this.dataToPoint([i[0], a[0]]), s = this.dataToPoint([i[1], a[1]]), l = i[1] - i[0], u = a[1] - a[0];
  68910. if (!(!l || !u)) {
  68911. var c = (s[0] - o[0]) / l, f = (s[1] - o[1]) / u, d = o[0] - i[0] * c, h = o[1] - a[0] * f, p = this._transform = [c, 0, 0, f, d, h];
  68912. this._invTransform = dp([], p);
  68913. }
  68914. }
  68915. }, e.prototype.getBaseAxis = function() {
  68916. return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x");
  68917. }, e.prototype.containPoint = function(n) {
  68918. var r = this.getAxis("x"), i = this.getAxis("y");
  68919. return r.contain(r.toLocalCoord(n[0])) && i.contain(i.toLocalCoord(n[1]));
  68920. }, e.prototype.containData = function(n) {
  68921. return this.getAxis("x").containData(n[0]) && this.getAxis("y").containData(n[1]);
  68922. }, e.prototype.containZone = function(n, r) {
  68923. var i = this.dataToPoint(n), a = this.dataToPoint(r), o = this.getArea(), s = new bt(i[0], i[1], a[0] - i[0], a[1] - i[1]);
  68924. return o.intersect(s);
  68925. }, e.prototype.dataToPoint = function(n, r, i) {
  68926. i = i || [];
  68927. var a = n[0], o = n[1];
  68928. if (this._transform && a != null && isFinite(a) && o != null && isFinite(o))
  68929. return oi(i, n, this._transform);
  68930. var s = this.getAxis("x"), l = this.getAxis("y");
  68931. return i[0] = s.toGlobalCoord(s.dataToCoord(a, r)), i[1] = l.toGlobalCoord(l.dataToCoord(o, r)), i;
  68932. }, e.prototype.clampData = function(n, r) {
  68933. var i = this.getAxis("x").scale, a = this.getAxis("y").scale, o = i.getExtent(), s = a.getExtent(), l = i.parse(n[0]), u = a.parse(n[1]);
  68934. return r = r || [], r[0] = Math.min(Math.max(Math.min(o[0], o[1]), l), Math.max(o[0], o[1])), r[1] = Math.min(Math.max(Math.min(s[0], s[1]), u), Math.max(s[0], s[1])), r;
  68935. }, e.prototype.pointToData = function(n, r) {
  68936. var i = [];
  68937. if (this._invTransform)
  68938. return oi(i, n, this._invTransform);
  68939. var a = this.getAxis("x"), o = this.getAxis("y");
  68940. return i[0] = a.coordToData(a.toLocalCoord(n[0]), r), i[1] = o.coordToData(o.toLocalCoord(n[1]), r), i;
  68941. }, e.prototype.getOtherAxis = function(n) {
  68942. return this.getAxis(n.dim === "x" ? "y" : "x");
  68943. }, e.prototype.getArea = function(n) {
  68944. n = n || 0;
  68945. var r = this.getAxis("x").getGlobalExtent(), i = this.getAxis("y").getGlobalExtent(), a = Math.min(r[0], r[1]) - n, o = Math.min(i[0], i[1]) - n, s = Math.max(r[0], r[1]) - a + n, l = Math.max(i[0], i[1]) - o + n;
  68946. return new bt(a, o, s, l);
  68947. }, e;
  68948. }(Qet)
  68949. ), Get = (
  68950. /** @class */
  68951. function(t) {
  68952. le(e, t);
  68953. function e(n, r, i, a, o) {
  68954. var s = t.call(this, n, r, i) || this;
  68955. return s.index = 0, s.type = a || "value", s.position = o || "bottom", s;
  68956. }
  68957. return e.prototype.isHorizontal = function() {
  68958. var n = this.position;
  68959. return n === "top" || n === "bottom";
  68960. }, e.prototype.getGlobalExtent = function(n) {
  68961. var r = this.getExtent();
  68962. return r[0] = this.toGlobalCoord(r[0]), r[1] = this.toGlobalCoord(r[1]), n && r[0] > r[1] && r.reverse(), r;
  68963. }, e.prototype.pointToData = function(n, r) {
  68964. return this.coordToData(this.toLocalCoord(n[this.dim === "x" ? 0 : 1]), r);
  68965. }, e.prototype.setCategorySortInfo = function(n) {
  68966. if (this.type !== "category")
  68967. return !1;
  68968. this.model.option.categorySortInfo = n, this.scale.setSortInfo(n);
  68969. }, e;
  68970. }(vs)
  68971. );
  68972. function sL(t, e, n) {
  68973. n = n || {};
  68974. var r = t.coordinateSystem, i = e.axis, a = {}, o = i.getAxesOnZeroOf()[0], s = i.position, l = o ? "onZero" : s, u = i.dim, c = r.getRect(), f = [c.x, c.x + c.width, c.y, c.y + c.height], d = {
  68975. left: 0,
  68976. right: 1,
  68977. top: 0,
  68978. bottom: 1,
  68979. onZero: 2
  68980. }, h = e.get("offset") || 0, p = u === "x" ? [f[2] - h, f[3] + h] : [f[0] - h, f[1] + h];
  68981. if (o) {
  68982. var v = o.toGlobalCoord(o.dataToCoord(0));
  68983. p[d.onZero] = Math.max(Math.min(v, p[1]), p[0]);
  68984. }
  68985. a.position = [u === "y" ? p[d[l]] : f[0], u === "x" ? p[d[l]] : f[3]], a.rotation = Math.PI / 2 * (u === "x" ? 0 : 1);
  68986. var g = {
  68987. top: -1,
  68988. bottom: 1,
  68989. left: -1,
  68990. right: 1
  68991. };
  68992. a.labelDirection = a.tickDirection = a.nameDirection = g[s], a.labelOffset = o ? p[d[s]] - p[d.onZero] : 0, e.get(["axisTick", "inside"]) && (a.tickDirection = -a.tickDirection), Or(n.labelInside, e.get(["axisLabel", "inside"])) && (a.labelDirection = -a.labelDirection);
  68993. var m = e.get(["axisLabel", "rotate"]);
  68994. return a.labelRotate = l === "top" ? -m : m, a.z2 = 1, a;
  68995. }
  68996. function DZ(t) {
  68997. return t.get("coordinateSystem") === "cartesian2d";
  68998. }
  68999. function RZ(t) {
  69000. var e = {
  69001. xAxisModel: null,
  69002. yAxisModel: null
  69003. };
  69004. return F(e, function(n, r) {
  69005. var i = r.replace(/Model$/, ""), a = t.getReferringComponents(i, Er).models[0];
  69006. if (process.env.NODE_ENV !== "production" && !a)
  69007. throw new Error(i + ' "' + co(t.get(i + "Index"), t.get(i + "Id"), 0) + '" not found');
  69008. e[r] = a;
  69009. }), e;
  69010. }
  69011. var jM = Math.log;
  69012. function wfe(t, e, n) {
  69013. var r = Gu.prototype, i = r.getTicks.call(n), a = r.getTicks.call(n, !0), o = i.length - 1, s = r.getInterval.call(n), l = Pce(t, e), u = l.extent, c = l.fixMin, f = l.fixMax;
  69014. if (t.type === "log") {
  69015. var d = jM(t.base);
  69016. u = [jM(u[0]) / d, jM(u[1]) / d];
  69017. }
  69018. t.setExtent(u[0], u[1]), t.calcNiceExtent({
  69019. splitNumber: o,
  69020. fixMin: c,
  69021. fixMax: f
  69022. });
  69023. var h = r.getExtent.call(t);
  69024. c && (u[0] = h[0]), f && (u[1] = h[1]);
  69025. var p = r.getInterval.call(t), v = u[0], g = u[1];
  69026. if (c && f)
  69027. p = (g - v) / o;
  69028. else if (c)
  69029. for (g = u[0] + p * o; g < u[1] && isFinite(g) && isFinite(u[1]); )
  69030. p = MM(p), g = u[0] + p * o;
  69031. else if (f)
  69032. for (v = u[1] - p * o; v > u[0] && isFinite(v) && isFinite(u[0]); )
  69033. p = MM(p), v = u[1] - p * o;
  69034. else {
  69035. var m = t.getTicks().length - 1;
  69036. m > o && (p = MM(p));
  69037. var y = p * o;
  69038. g = Math.ceil(u[1] / p) * p, v = sr(g - y), v < 0 && u[0] >= 0 ? (v = 0, g = sr(y)) : g > 0 && u[1] <= 0 && (g = 0, v = -sr(y));
  69039. }
  69040. var _ = (i[0].value - a[0].value) / s, O = (i[o].value - a[o].value) / s;
  69041. if (r.setExtent.call(t, v + p * _, g + p * O), r.setInterval.call(t, p), (_ || O) && r.setNiceExtent.call(t, v + p, g - p), process.env.NODE_ENV !== "production") {
  69042. var S = r.getTicks.call(t);
  69043. S[1] && (!zqe(p) || EC(S[1].value) > EC(p)) && nr(
  69044. // eslint-disable-next-line
  69045. "The ticks may be not readable when set min: " + e.get("min") + ", max: " + e.get("max") + " and alignTicks: true"
  69046. );
  69047. }
  69048. }
  69049. var jet = (
  69050. /** @class */
  69051. function() {
  69052. function t(e, n, r) {
  69053. this.type = "grid", this._coordsMap = {}, this._coordsList = [], this._axesMap = {}, this._axesList = [], this.axisPointerEnabled = !0, this.dimensions = oL, this._initCartesian(e, n, r), this.model = e;
  69054. }
  69055. return t.prototype.getRect = function() {
  69056. return this._rect;
  69057. }, t.prototype.update = function(e, n) {
  69058. var r = this._axesMap;
  69059. this._updateScale(e, this.model);
  69060. function i(o) {
  69061. var s, l = kt(o), u = l.length;
  69062. if (u) {
  69063. for (var c = [], f = u - 1; f >= 0; f--) {
  69064. var d = +l[f], h = o[d], p = h.model, v = h.scale;
  69065. // Only value and log axis without interval support alignTicks.
  69066. Kk(v) && p.get("alignTicks") && p.get("interval") == null ? c.push(h) : (Xh(v, p), Kk(v) && (s = h));
  69067. }
  69068. c.length && (s || (s = c.pop(), Xh(s.scale, s.model)), F(c, function(g) {
  69069. wfe(g.scale, g.model, s.scale);
  69070. }));
  69071. }
  69072. }
  69073. i(r.x), i(r.y);
  69074. var a = {};
  69075. F(r.x, function(o) {
  69076. kZ(r, "y", o, a);
  69077. }), F(r.y, function(o) {
  69078. kZ(r, "x", o, a);
  69079. }), this.resize(this.model, n);
  69080. }, t.prototype.resize = function(e, n, r) {
  69081. var i = e.getBoxLayoutParams(), a = !r && e.get("containLabel"), o = Mr(i, {
  69082. width: n.getWidth(),
  69083. height: n.getHeight()
  69084. });
  69085. this._rect = o;
  69086. var s = this._axesList;
  69087. l(), a && (F(s, function(u) {
  69088. if (!u.model.get(["axisLabel", "inside"])) {
  69089. var c = uKe(u);
  69090. if (c) {
  69091. var f = u.isHorizontal() ? "height" : "width", d = u.model.get(["axisLabel", "margin"]);
  69092. o[f] -= c[f] + d, u.position === "top" ? o.y += c.height + d : u.position === "left" && (o.x += c.width + d);
  69093. }
  69094. }
  69095. }), l()), F(this._coordsList, function(u) {
  69096. u.calcAffineTransform();
  69097. });
  69098. function l() {
  69099. F(s, function(u) {
  69100. var c = u.isHorizontal(), f = c ? [0, o.width] : [0, o.height], d = u.inverse ? 1 : 0;
  69101. u.setExtent(f[d], f[1 - d]), Zet(u, c ? o.x : o.y);
  69102. });
  69103. }
  69104. }, t.prototype.getAxis = function(e, n) {
  69105. var r = this._axesMap[e];
  69106. if (r != null)
  69107. return r[n || 0];
  69108. }, t.prototype.getAxes = function() {
  69109. return this._axesList.slice();
  69110. }, t.prototype.getCartesian = function(e, n) {
  69111. if (e != null && n != null) {
  69112. var r = "x" + e + "y" + n;
  69113. return this._coordsMap[r];
  69114. }
  69115. nt(e) && (n = e.yAxisIndex, e = e.xAxisIndex);
  69116. for (var i = 0, a = this._coordsList; i < a.length; i++)
  69117. if (a[i].getAxis("x").index === e || a[i].getAxis("y").index === n)
  69118. return a[i];
  69119. }, t.prototype.getCartesians = function() {
  69120. return this._coordsList.slice();
  69121. }, t.prototype.convertToPixel = function(e, n, r) {
  69122. var i = this._findConvertTarget(n);
  69123. return i.cartesian ? i.cartesian.dataToPoint(r) : i.axis ? i.axis.toGlobalCoord(i.axis.dataToCoord(r)) : null;
  69124. }, t.prototype.convertFromPixel = function(e, n, r) {
  69125. var i = this._findConvertTarget(n);
  69126. return i.cartesian ? i.cartesian.pointToData(r) : i.axis ? i.axis.coordToData(i.axis.toLocalCoord(r)) : null;
  69127. }, t.prototype._findConvertTarget = function(e) {
  69128. var n = e.seriesModel, r = e.xAxisModel || n && n.getReferringComponents("xAxis", Er).models[0], i = e.yAxisModel || n && n.getReferringComponents("yAxis", Er).models[0], a = e.gridModel, o = this._coordsList, s, l;
  69129. if (n)
  69130. s = n.coordinateSystem, St(o, s) < 0 && (s = null);
  69131. else if (r && i)
  69132. s = this.getCartesian(r.componentIndex, i.componentIndex);
  69133. else if (r)
  69134. l = this.getAxis("x", r.componentIndex);
  69135. else if (i)
  69136. l = this.getAxis("y", i.componentIndex);
  69137. else if (a) {
  69138. var u = a.coordinateSystem;
  69139. u === this && (s = this._coordsList[0]);
  69140. }
  69141. return {
  69142. cartesian: s,
  69143. axis: l
  69144. };
  69145. }, t.prototype.containPoint = function(e) {
  69146. var n = this._coordsList[0];
  69147. if (n)
  69148. return n.containPoint(e);
  69149. }, t.prototype._initCartesian = function(e, n, r) {
  69150. var i = this, a = this, o = {
  69151. left: !1,
  69152. right: !1,
  69153. top: !1,
  69154. bottom: !1
  69155. }, s = {
  69156. x: {},
  69157. y: {}
  69158. }, l = {
  69159. x: 0,
  69160. y: 0
  69161. };
  69162. if (n.eachComponent("xAxis", u("x"), this), n.eachComponent("yAxis", u("y"), this), !l.x || !l.y) {
  69163. this._axesMap = {}, this._axesList = [];
  69164. return;
  69165. }
  69166. this._axesMap = s, F(s.x, function(c, f) {
  69167. F(s.y, function(d, h) {
  69168. var p = "x" + f + "y" + h, v = new Het(p);
  69169. v.master = i, v.model = e, i._coordsMap[p] = v, i._coordsList.push(v), v.addAxis(c), v.addAxis(d);
  69170. });
  69171. });
  69172. function u(c) {
  69173. return function(f, d) {
  69174. if (ZM(f, e)) {
  69175. var h = f.get("position");
  69176. c === "x" ? h !== "top" && h !== "bottom" && (h = o.bottom ? "top" : "bottom") : h !== "left" && h !== "right" && (h = o.left ? "right" : "left"), o[h] = !0;
  69177. var p = new Get(c, g1(f), [0, 0], f.get("type"), h), v = p.type === "category";
  69178. p.onBand = v && f.get("boundaryGap"), p.inverse = f.get("inverse"), f.axis = p, p.model = f, p.grid = a, p.index = d, a._axesList.push(p), s[c][d] = p, l[c]++;
  69179. }
  69180. };
  69181. }
  69182. }, t.prototype._updateScale = function(e, n) {
  69183. F(this._axesList, function(i) {
  69184. if (i.scale.setExtent(1 / 0, -1 / 0), i.type === "category") {
  69185. var a = i.model.get("categorySortInfo");
  69186. i.scale.setSortInfo(a);
  69187. }
  69188. }), e.eachSeries(function(i) {
  69189. if (DZ(i)) {
  69190. var a = RZ(i), o = a.xAxisModel, s = a.yAxisModel;
  69191. if (!ZM(o, n) || !ZM(s, n))
  69192. return;
  69193. var l = this.getCartesian(o.componentIndex, s.componentIndex), u = i.getData(), c = l.getAxis("x"), f = l.getAxis("y");
  69194. r(u, c), r(u, f);
  69195. }
  69196. }, this);
  69197. function r(i, a) {
  69198. F(qC(i, a.dim), function(o) {
  69199. a.scale.unionExtentFromData(i, o);
  69200. });
  69201. }
  69202. }, t.prototype.getTooltipAxes = function(e) {
  69203. var n = [], r = [];
  69204. return F(this.getCartesians(), function(i) {
  69205. var a = e != null && e !== "auto" ? i.getAxis(e) : i.getBaseAxis(), o = i.getOtherAxis(a);
  69206. St(n, a) < 0 && n.push(a), St(r, o) < 0 && r.push(o);
  69207. }), {
  69208. baseAxes: n,
  69209. otherAxes: r
  69210. };
  69211. }, t.create = function(e, n) {
  69212. var r = [];
  69213. return e.eachComponent("grid", function(i, a) {
  69214. var o = new t(i, e, n);
  69215. o.name = "grid_" + a, o.resize(i, n, !0), i.coordinateSystem = o, r.push(o);
  69216. }), e.eachSeries(function(i) {
  69217. if (DZ(i)) {
  69218. var a = RZ(i), o = a.xAxisModel, s = a.yAxisModel, l = o.getCoordSysModel();
  69219. if (process.env.NODE_ENV !== "production") {
  69220. if (!l)
  69221. throw new Error('Grid "' + co(o.get("gridIndex"), o.get("gridId"), 0) + '" not found');
  69222. if (o.getCoordSysModel() !== s.getCoordSysModel())
  69223. throw new Error("xAxis and yAxis must use the same grid");
  69224. }
  69225. var u = l.coordinateSystem;
  69226. i.coordinateSystem = u.getCartesian(o.componentIndex, s.componentIndex);
  69227. }
  69228. }), r;
  69229. }, t.dimensions = oL, t;
  69230. }()
  69231. );
  69232. function ZM(t, e) {
  69233. return t.getCoordSysModel() === e;
  69234. }
  69235. function kZ(t, e, n, r) {
  69236. n.getAxesOnZeroOf = function() {
  69237. return a ? [a] : [];
  69238. };
  69239. var i = t[e], a, o = n.model, s = o.get(["axisLine", "onZero"]), l = o.get(["axisLine", "onZeroAxisIndex"]);
  69240. if (!s)
  69241. return;
  69242. if (l != null)
  69243. LZ(i[l]) && (a = i[l]);
  69244. else
  69245. for (var u in i)
  69246. if (i.hasOwnProperty(u) && LZ(i[u]) && !r[c(i[u])]) {
  69247. a = i[u];
  69248. break;
  69249. }
  69250. a && (r[c(a)] = !0);
  69251. function c(f) {
  69252. return f.dim + "_" + f.index;
  69253. }
  69254. }
  69255. function LZ(t) {
  69256. return t && t.type !== "category" && t.type !== "time" && lKe(t);
  69257. }
  69258. function Zet(t, e) {
  69259. var n = t.getExtent(), r = n[0] + n[1];
  69260. t.toGlobalCoord = t.dim === "x" ? function(i) {
  69261. return i + e;
  69262. } : function(i) {
  69263. return r - i + e;
  69264. }, t.toLocalCoord = t.dim === "x" ? function(i) {
  69265. return i - e;
  69266. } : function(i) {
  69267. return r - i + e;
  69268. };
  69269. }
  69270. var jc = Math.PI, sa = (
  69271. /** @class */
  69272. function() {
  69273. function t(e, n) {
  69274. this.group = new ct(), this.opt = n, this.axisModel = e, it(n, {
  69275. labelOffset: 0,
  69276. nameDirection: 1,
  69277. tickDirection: 1,
  69278. labelDirection: 1,
  69279. silent: !0,
  69280. handleAutoShown: function() {
  69281. return !0;
  69282. }
  69283. });
  69284. var r = new ct({
  69285. x: n.position[0],
  69286. y: n.position[1],
  69287. rotation: n.rotation
  69288. });
  69289. r.updateTransform(), this._transformGroup = r;
  69290. }
  69291. return t.prototype.hasBuilder = function(e) {
  69292. return !!NZ[e];
  69293. }, t.prototype.add = function(e) {
  69294. NZ[e](this.opt, this.axisModel, this.group, this._transformGroup);
  69295. }, t.prototype.getGroup = function() {
  69296. return this.group;
  69297. }, t.innerTextLayout = function(e, n, r) {
  69298. var i = P5(n - e), a, o;
  69299. return Vg(i) ? (o = r > 0 ? "top" : "bottom", a = "center") : Vg(i - jc) ? (o = r > 0 ? "bottom" : "top", a = "center") : (o = "middle", i > 0 && i < jc ? a = r > 0 ? "right" : "left" : a = r > 0 ? "left" : "right"), {
  69300. rotation: i,
  69301. textAlign: a,
  69302. textVerticalAlign: o
  69303. };
  69304. }, t.makeAxisEventDataBase = function(e) {
  69305. var n = {
  69306. componentType: e.mainType,
  69307. componentIndex: e.componentIndex
  69308. };
  69309. return n[e.mainType + "Index"] = e.componentIndex, n;
  69310. }, t.isLabelSilent = function(e) {
  69311. var n = e.get("tooltip");
  69312. return e.get("silent") || !(e.get("triggerEvent") || n && n.show);
  69313. }, t;
  69314. }()
  69315. ), NZ = {
  69316. axisLine: function(t, e, n, r) {
  69317. var i = e.get(["axisLine", "show"]);
  69318. if (i === "auto" && t.handleAutoShown && (i = t.handleAutoShown("axisLine")), !!i) {
  69319. var a = e.axis.getExtent(), o = r.transform, s = [a[0], 0], l = [a[1], 0], u = s[0] > l[0];
  69320. o && (oi(s, s, o), oi(l, l, o));
  69321. var c = _e({
  69322. lineCap: "round"
  69323. }, e.getModel(["axisLine", "lineStyle"]).getLineStyle()), f = new Xr({
  69324. shape: {
  69325. x1: s[0],
  69326. y1: s[1],
  69327. x2: l[0],
  69328. y2: l[1]
  69329. },
  69330. style: c,
  69331. strokeContainThreshold: t.strokeContainThreshold || 5,
  69332. silent: !0,
  69333. z2: 1
  69334. });
  69335. Qg(f.shape, f.style.lineWidth), f.anid = "line", n.add(f);
  69336. var d = e.get(["axisLine", "symbol"]);
  69337. if (d != null) {
  69338. var h = e.get(["axisLine", "symbolSize"]);
  69339. Ve(d) && (d = [d, d]), (Ve(h) || Kt(h)) && (h = [h, h]);
  69340. var p = mp(e.get(["axisLine", "symbolOffset"]) || 0, h), v = h[0], g = h[1];
  69341. F([{
  69342. rotate: t.rotation + Math.PI / 2,
  69343. offset: p[0],
  69344. r: 0
  69345. }, {
  69346. rotate: t.rotation - Math.PI / 2,
  69347. offset: p[1],
  69348. r: Math.sqrt((s[0] - l[0]) * (s[0] - l[0]) + (s[1] - l[1]) * (s[1] - l[1]))
  69349. }], function(m, y) {
  69350. if (d[y] !== "none" && d[y] != null) {
  69351. var _ = wr(d[y], -v / 2, -g / 2, v, g, c.stroke, !0), O = m.r + m.offset, S = u ? l : s;
  69352. _.attr({
  69353. rotation: m.rotate,
  69354. x: S[0] + O * Math.cos(t.rotation),
  69355. y: S[1] - O * Math.sin(t.rotation),
  69356. silent: !0,
  69357. z2: 11
  69358. }), n.add(_);
  69359. }
  69360. });
  69361. }
  69362. }
  69363. },
  69364. axisTickLabel: function(t, e, n, r) {
  69365. var i = Yet(n, r, e, t), a = Ket(n, r, e, t);
  69366. if (Xet(e, a, i), qet(n, r, e, t.tickDirection), e.get(["axisLabel", "hideOverlap"])) {
  69367. var o = Fce(Ce(a, function(s) {
  69368. return {
  69369. label: s,
  69370. priority: s.z2,
  69371. defaultAttr: {
  69372. ignore: s.ignore
  69373. }
  69374. };
  69375. }));
  69376. Hce(o);
  69377. }
  69378. },
  69379. axisName: function(t, e, n, r) {
  69380. var i = Or(t.axisName, e.get("name"));
  69381. if (i) {
  69382. var a = e.get("nameLocation"), o = t.nameDirection, s = e.getModel("nameTextStyle"), l = e.get("nameGap") || 0, u = e.axis.getExtent(), c = u[0] > u[1] ? -1 : 1, f = [
  69383. a === "start" ? u[0] - c * l : a === "end" ? u[1] + c * l : (u[0] + u[1]) / 2,
  69384. // Reuse labelOffset.
  69385. zZ(a) ? t.labelOffset + o * l : 0
  69386. ], d, h = e.get("nameRotate");
  69387. h != null && (h = h * jc / 180);
  69388. var p;
  69389. zZ(a) ? d = sa.innerTextLayout(
  69390. t.rotation,
  69391. h ?? t.rotation,
  69392. // Adapt to axis.
  69393. o
  69394. ) : (d = Uet(t.rotation, a, h || 0, u), p = t.axisNameAvailableWidth, p != null && (p = Math.abs(p / Math.sin(d.rotation)), !isFinite(p) && (p = null)));
  69395. var v = s.getFont(), g = e.get("nameTruncate", !0) || {}, m = g.ellipsis, y = Or(t.nameTruncateMaxWidth, g.maxWidth, p), _ = new jt({
  69396. x: f[0],
  69397. y: f[1],
  69398. rotation: d.rotation,
  69399. silent: sa.isLabelSilent(e),
  69400. style: Mn(s, {
  69401. text: i,
  69402. font: v,
  69403. overflow: "truncate",
  69404. width: y,
  69405. ellipsis: m,
  69406. fill: s.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
  69407. align: s.get("align") || d.textAlign,
  69408. verticalAlign: s.get("verticalAlign") || d.textVerticalAlign
  69409. }),
  69410. z2: 1
  69411. });
  69412. if (xm({
  69413. el: _,
  69414. componentModel: e,
  69415. itemName: i
  69416. }), _.__fullText = i, _.anid = "name", e.get("triggerEvent")) {
  69417. var O = sa.makeAxisEventDataBase(e);
  69418. O.targetType = "axisName", O.name = i, ft(_).eventData = O;
  69419. }
  69420. r.add(_), _.updateTransform(), n.add(_), _.decomposeTransform();
  69421. }
  69422. }
  69423. };
  69424. function Uet(t, e, n, r) {
  69425. var i = P5(n - t), a, o, s = r[0] > r[1], l = e === "start" && !s || e !== "start" && s;
  69426. return Vg(i - jc / 2) ? (o = l ? "bottom" : "top", a = "center") : Vg(i - jc * 1.5) ? (o = l ? "top" : "bottom", a = "center") : (o = "middle", i < jc * 1.5 && i > jc / 2 ? a = l ? "left" : "right" : a = l ? "right" : "left"), {
  69427. rotation: i,
  69428. textAlign: a,
  69429. textVerticalAlign: o
  69430. };
  69431. }
  69432. function Xet(t, e, n) {
  69433. if (!$ce(t.axis)) {
  69434. var r = t.get(["axisLabel", "showMinLabel"]), i = t.get(["axisLabel", "showMaxLabel"]);
  69435. e = e || [], n = n || [];
  69436. var a = e[0], o = e[1], s = e[e.length - 1], l = e[e.length - 2], u = n[0], c = n[1], f = n[n.length - 1], d = n[n.length - 2];
  69437. r === !1 ? (Io(a), Io(u)) : BZ(a, o) && (r ? (Io(o), Io(c)) : (Io(a), Io(u))), i === !1 ? (Io(s), Io(f)) : BZ(l, s) && (i ? (Io(l), Io(d)) : (Io(s), Io(f)));
  69438. }
  69439. }
  69440. function Io(t) {
  69441. t && (t.ignore = !0);
  69442. }
  69443. function BZ(t, e) {
  69444. var n = t && t.getBoundingRect().clone(), r = e && e.getBoundingRect().clone();
  69445. if (!(!n || !r)) {
  69446. var i = i1([]);
  69447. return Lf(i, i, -t.rotation), n.applyTransform(Ll([], i, t.getLocalTransform())), r.applyTransform(Ll([], i, e.getLocalTransform())), n.intersect(r);
  69448. }
  69449. }
  69450. function zZ(t) {
  69451. return t === "middle" || t === "center";
  69452. }
  69453. function Cfe(t, e, n, r, i) {
  69454. for (var a = [], o = [], s = [], l = 0; l < t.length; l++) {
  69455. var u = t[l].coord;
  69456. o[0] = u, o[1] = 0, s[0] = u, s[1] = n, e && (oi(o, o, e), oi(s, s, e));
  69457. var c = new Xr({
  69458. shape: {
  69459. x1: o[0],
  69460. y1: o[1],
  69461. x2: s[0],
  69462. y2: s[1]
  69463. },
  69464. style: r,
  69465. z2: 2,
  69466. autoBatch: !0,
  69467. silent: !0
  69468. });
  69469. Qg(c.shape, c.style.lineWidth), c.anid = i + "_" + t[l].tickValue, a.push(c);
  69470. }
  69471. return a;
  69472. }
  69473. function Yet(t, e, n, r) {
  69474. var i = n.axis, a = n.getModel("axisTick"), o = a.get("show");
  69475. if (o === "auto" && r.handleAutoShown && (o = r.handleAutoShown("axisTick")), !(!o || i.scale.isBlank())) {
  69476. for (var s = a.getModel("lineStyle"), l = r.tickDirection * a.get("length"), u = i.getTicksCoords(), c = Cfe(u, e.transform, l, it(s.getLineStyle(), {
  69477. stroke: n.get(["axisLine", "lineStyle", "color"])
  69478. }), "ticks"), f = 0; f < c.length; f++)
  69479. t.add(c[f]);
  69480. return c;
  69481. }
  69482. }
  69483. function qet(t, e, n, r) {
  69484. var i = n.axis, a = n.getModel("minorTick");
  69485. if (!(!a.get("show") || i.scale.isBlank())) {
  69486. var o = i.getMinorTicksCoords();
  69487. if (o.length)
  69488. for (var s = a.getModel("lineStyle"), l = r * a.get("length"), u = it(s.getLineStyle(), it(n.getModel("axisTick").getLineStyle(), {
  69489. stroke: n.get(["axisLine", "lineStyle", "color"])
  69490. })), c = 0; c < o.length; c++)
  69491. for (var f = Cfe(o[c], e.transform, l, u, "minorticks_" + c), d = 0; d < f.length; d++)
  69492. t.add(f[d]);
  69493. }
  69494. }
  69495. function Ket(t, e, n, r) {
  69496. var i = n.axis, a = Or(r.axisLabelShow, n.get(["axisLabel", "show"]));
  69497. if (!(!a || i.scale.isBlank())) {
  69498. var o = n.getModel("axisLabel"), s = o.get("margin"), l = i.getViewLabels(), u = (Or(r.labelRotate, o.get("rotate")) || 0) * jc / 180, c = sa.innerTextLayout(r.rotation, u, r.labelDirection), f = n.getCategories && n.getCategories(!0), d = [], h = sa.isLabelSilent(n), p = n.get("triggerEvent");
  69499. return F(l, function(v, g) {
  69500. var m = i.scale.type === "ordinal" ? i.scale.getRawOrdinalNumber(v.tickValue) : v.tickValue, y = v.formattedLabel, _ = v.rawLabel, O = o;
  69501. if (f && f[m]) {
  69502. var S = f[m];
  69503. nt(S) && S.textStyle && (O = new wn(S.textStyle, o, n.ecModel));
  69504. }
  69505. var x = O.getTextColor() || n.get(["axisLine", "lineStyle", "color"]), C = i.dataToCoord(m), P = O.getShallow("align", !0) || c.textAlign, $ = dt(O.getShallow("alignMinLabel", !0), P), T = dt(O.getShallow("alignMaxLabel", !0), P), E = O.getShallow("verticalAlign", !0) || O.getShallow("baseline", !0) || c.textVerticalAlign, M = dt(O.getShallow("verticalAlignMinLabel", !0), E), R = dt(O.getShallow("verticalAlignMaxLabel", !0), E), N = new jt({
  69506. x: C,
  69507. y: r.labelOffset + r.labelDirection * s,
  69508. rotation: c.rotation,
  69509. silent: h,
  69510. z2: 10 + (v.level || 0),
  69511. style: Mn(O, {
  69512. text: y,
  69513. align: g === 0 ? $ : g === l.length - 1 ? T : P,
  69514. verticalAlign: g === 0 ? M : g === l.length - 1 ? R : E,
  69515. fill: qe(x) ? x(
  69516. // (1) In category axis with data zoom, tick is not the original
  69517. // index of axis.data. So tick should not be exposed to user
  69518. // in category axis.
  69519. // (2) Compatible with previous version, which always use formatted label as
  69520. // input. But in interval scale the formatted label is like '223,445', which
  69521. // maked user replace ','. So we modify it to return original val but remain
  69522. // it as 'string' to avoid error in replacing.
  69523. i.type === "category" ? _ : i.type === "value" ? m + "" : m,
  69524. g
  69525. ) : x
  69526. })
  69527. });
  69528. if (N.anid = "label_" + m, p) {
  69529. var I = sa.makeAxisEventDataBase(n);
  69530. I.targetType = "axisLabel", I.value = _, I.tickIndex = g, i.type === "category" && (I.dataIndex = m), ft(N).eventData = I;
  69531. }
  69532. e.add(N), N.updateTransform(), d.push(N), t.add(N), N.decomposeTransform();
  69533. }), d;
  69534. }
  69535. }
  69536. function Jet(t, e) {
  69537. var n = {
  69538. /**
  69539. * key: makeKey(axis.model)
  69540. * value: {
  69541. * axis,
  69542. * coordSys,
  69543. * axisPointerModel,
  69544. * triggerTooltip,
  69545. * triggerEmphasis,
  69546. * involveSeries,
  69547. * snap,
  69548. * seriesModels,
  69549. * seriesDataCount
  69550. * }
  69551. */
  69552. axesInfo: {},
  69553. seriesInvolved: !1,
  69554. /**
  69555. * key: makeKey(coordSys.model)
  69556. * value: Object: key makeKey(axis.model), value: axisInfo
  69557. */
  69558. coordSysAxesInfo: {},
  69559. coordSysMap: {}
  69560. };
  69561. return ett(n, t, e), n.seriesInvolved && ntt(n, t), n;
  69562. }
  69563. function ett(t, e, n) {
  69564. var r = e.getComponent("tooltip"), i = e.getComponent("axisPointer"), a = i.get("link", !0) || [], o = [];
  69565. F(n.getCoordinateSystems(), function(s) {
  69566. if (!s.axisPointerEnabled)
  69567. return;
  69568. var l = o_(s.model), u = t.coordSysAxesInfo[l] = {};
  69569. t.coordSysMap[l] = s;
  69570. var c = s.model, f = c.getModel("tooltip", r);
  69571. if (F(s.getAxes(), vt(v, !1, null)), s.getTooltipAxes && r && f.get("show")) {
  69572. var d = f.get("trigger") === "axis", h = f.get(["axisPointer", "type"]) === "cross", p = s.getTooltipAxes(f.get(["axisPointer", "axis"]));
  69573. (d || h) && F(p.baseAxes, vt(v, h ? "cross" : !0, d)), h && F(p.otherAxes, vt(v, "cross", !1));
  69574. }
  69575. function v(g, m, y) {
  69576. var _ = y.model.getModel("axisPointer", i), O = _.get("show");
  69577. if (!(!O || O === "auto" && !g && !lL(_))) {
  69578. m == null && (m = _.get("triggerTooltip")), _ = g ? ttt(y, f, i, e, g, m) : _;
  69579. var S = _.get("snap"), x = _.get("triggerEmphasis"), C = o_(y.model), P = m || S || y.type === "category", $ = t.axesInfo[C] = {
  69580. key: C,
  69581. axis: y,
  69582. coordSys: s,
  69583. axisPointerModel: _,
  69584. triggerTooltip: m,
  69585. triggerEmphasis: x,
  69586. involveSeries: P,
  69587. snap: S,
  69588. useHandle: lL(_),
  69589. seriesModels: [],
  69590. linkGroup: null
  69591. };
  69592. u[C] = $, t.seriesInvolved = t.seriesInvolved || P;
  69593. var T = rtt(a, y);
  69594. if (T != null) {
  69595. var E = o[T] || (o[T] = {
  69596. axesInfo: {}
  69597. });
  69598. E.axesInfo[C] = $, E.mapper = a[T].mapper, $.linkGroup = E;
  69599. }
  69600. }
  69601. }
  69602. });
  69603. }
  69604. function ttt(t, e, n, r, i, a) {
  69605. var o = e.getModel("axisPointer"), s = ["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"], l = {};
  69606. F(s, function(d) {
  69607. l[d] = ot(o.get(d));
  69608. }), l.snap = t.type !== "category" && !!a, o.get("type") === "cross" && (l.type = "line");
  69609. var u = l.label || (l.label = {});
  69610. if (u.show == null && (u.show = !1), i === "cross") {
  69611. var c = o.get(["label", "show"]);
  69612. if (u.show = c ?? !0, !a) {
  69613. var f = l.lineStyle = o.get("crossStyle");
  69614. f && it(u, f.textStyle);
  69615. }
  69616. }
  69617. return t.model.getModel("axisPointer", new wn(l, n, r));
  69618. }
  69619. function ntt(t, e) {
  69620. e.eachSeries(function(n) {
  69621. var r = n.coordinateSystem, i = n.get(["tooltip", "trigger"], !0), a = n.get(["tooltip", "show"], !0);
  69622. !r || i === "none" || i === !1 || i === "item" || a === !1 || n.get(["axisPointer", "show"], !0) === !1 || F(t.coordSysAxesInfo[o_(r.model)], function(o) {
  69623. var s = o.axis;
  69624. r.getAxis(s.dim) === s && (o.seriesModels.push(n), o.seriesDataCount == null && (o.seriesDataCount = 0), o.seriesDataCount += n.getData().count());
  69625. });
  69626. });
  69627. }
  69628. function rtt(t, e) {
  69629. for (var n = e.model, r = e.dim, i = 0; i < t.length; i++) {
  69630. var a = t[i] || {};
  69631. if (UM(a[r + "AxisId"], n.id) || UM(a[r + "AxisIndex"], n.componentIndex) || UM(a[r + "AxisName"], n.name))
  69632. return i;
  69633. }
  69634. }
  69635. function UM(t, e) {
  69636. return t === "all" || Se(t) && St(t, e) >= 0 || t === e;
  69637. }
  69638. function itt(t) {
  69639. var e = B3(t);
  69640. if (e) {
  69641. var n = e.axisPointerModel, r = e.axis.scale, i = n.option, a = n.get("status"), o = n.get("value");
  69642. o != null && (o = r.parse(o));
  69643. var s = lL(n);
  69644. a == null && (i.status = s ? "show" : "hide");
  69645. var l = r.getExtent().slice();
  69646. l[0] > l[1] && l.reverse(), // Pick a value on axis when initializing.
  69647. (o == null || o > l[1]) && (o = l[1]), o < l[0] && (o = l[0]), i.value = o, s && (i.status = e.axis.scale.isBlank() ? "hide" : "show");
  69648. }
  69649. }
  69650. function B3(t) {
  69651. var e = (t.ecModel.getComponent("axisPointer") || {}).coordSysAxesInfo;
  69652. return e && e.axesInfo[o_(t)];
  69653. }
  69654. function att(t) {
  69655. var e = B3(t);
  69656. return e && e.axisPointerModel;
  69657. }
  69658. function lL(t) {
  69659. return !!t.get(["handle", "show"]);
  69660. }
  69661. function o_(t) {
  69662. return t.type + "||" + t.id;
  69663. }
  69664. var XM = {}, bp = (
  69665. /** @class */
  69666. function(t) {
  69667. le(e, t);
  69668. function e() {
  69669. var n = t !== null && t.apply(this, arguments) || this;
  69670. return n.type = e.type, n;
  69671. }
  69672. return e.prototype.render = function(n, r, i, a) {
  69673. this.axisPointerClass && itt(n), t.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(n, i, !0);
  69674. }, e.prototype.updateAxisPointer = function(n, r, i, a) {
  69675. this._doUpdateAxisPointerClass(n, i, !1);
  69676. }, e.prototype.remove = function(n, r) {
  69677. var i = this._axisPointer;
  69678. i && i.remove(r);
  69679. }, e.prototype.dispose = function(n, r) {
  69680. this._disposeAxisPointer(r), t.prototype.dispose.apply(this, arguments);
  69681. }, e.prototype._doUpdateAxisPointerClass = function(n, r, i) {
  69682. var a = e.getAxisPointerClass(this.axisPointerClass);
  69683. if (a) {
  69684. var o = att(n);
  69685. o ? (this._axisPointer || (this._axisPointer = new a())).render(n, o, r, i) : this._disposeAxisPointer(r);
  69686. }
  69687. }, e.prototype._disposeAxisPointer = function(n) {
  69688. this._axisPointer && this._axisPointer.dispose(n), this._axisPointer = null;
  69689. }, e.registerAxisPointerClass = function(n, r) {
  69690. if (process.env.NODE_ENV !== "production" && XM[n])
  69691. throw new Error("axisPointer " + n + " exists");
  69692. XM[n] = r;
  69693. }, e.getAxisPointerClass = function(n) {
  69694. return n && XM[n];
  69695. }, e.type = "axis", e;
  69696. }(Ln)
  69697. ), uL = Ut();
  69698. function Tfe(t, e, n, r) {
  69699. var i = n.axis;
  69700. if (!i.scale.isBlank()) {
  69701. var a = n.getModel("splitArea"), o = a.getModel("areaStyle"), s = o.get("color"), l = r.coordinateSystem.getRect(), u = i.getTicksCoords({
  69702. tickModel: a,
  69703. clamp: !0
  69704. });
  69705. if (u.length) {
  69706. var c = s.length, f = uL(t).splitAreaColors, d = Ze(), h = 0;
  69707. if (f)
  69708. for (var p = 0; p < u.length; p++) {
  69709. var v = f.get(u[p].tickValue);
  69710. if (v != null) {
  69711. h = (v + (c - 1) * p) % c;
  69712. break;
  69713. }
  69714. }
  69715. var g = i.toGlobalCoord(u[0].coord), m = o.getAreaStyle();
  69716. s = Se(s) ? s : [s];
  69717. for (var p = 1; p < u.length; p++) {
  69718. var y = i.toGlobalCoord(u[p].coord), _ = void 0, O = void 0, S = void 0, x = void 0;
  69719. i.isHorizontal() ? (_ = g, O = l.y, S = y - _, x = l.height, g = _ + S) : (_ = l.x, O = g, S = l.width, x = y - O, g = O + x);
  69720. var C = u[p - 1].tickValue;
  69721. C != null && d.set(C, h), e.add(new Zt({
  69722. anid: C != null ? "area_" + C : null,
  69723. shape: {
  69724. x: _,
  69725. y: O,
  69726. width: S,
  69727. height: x
  69728. },
  69729. style: it({
  69730. fill: s[h]
  69731. }, m),
  69732. autoBatch: !0,
  69733. silent: !0
  69734. })), h = (h + 1) % c;
  69735. }
  69736. uL(t).splitAreaColors = d;
  69737. }
  69738. }
  69739. }
  69740. function Pfe(t) {
  69741. uL(t).splitAreaColors = null;
  69742. }
  69743. var ott = ["axisLine", "axisTickLabel", "axisName"], stt = ["splitArea", "splitLine", "minorSplitLine"], $fe = (
  69744. /** @class */
  69745. function(t) {
  69746. le(e, t);
  69747. function e() {
  69748. var n = t !== null && t.apply(this, arguments) || this;
  69749. return n.type = e.type, n.axisPointerClass = "CartesianAxisPointer", n;
  69750. }
  69751. return e.prototype.render = function(n, r, i, a) {
  69752. this.group.removeAll();
  69753. var o = this._axisGroup;
  69754. if (this._axisGroup = new ct(), this.group.add(this._axisGroup), !!n.get("show")) {
  69755. var s = n.getCoordSysModel(), l = sL(s, n), u = new sa(n, _e({
  69756. handleAutoShown: function(f) {
  69757. for (var d = s.coordinateSystem.getCartesians(), h = 0; h < d.length; h++)
  69758. if (Kk(d[h].getOtherAxis(n.axis).scale))
  69759. return !0;
  69760. return !1;
  69761. }
  69762. }, l));
  69763. F(ott, u.add, u), this._axisGroup.add(u.getGroup()), F(stt, function(f) {
  69764. n.get([f, "show"]) && ltt[f](this, this._axisGroup, n, s);
  69765. }, this);
  69766. var c = a && a.type === "changeAxisOrder" && a.isInitSort;
  69767. c || h1(o, this._axisGroup, n), t.prototype.render.call(this, n, r, i, a);
  69768. }
  69769. }, e.prototype.remove = function() {
  69770. Pfe(this);
  69771. }, e.type = "cartesianAxis", e;
  69772. }(bp)
  69773. ), ltt = {
  69774. splitLine: function(t, e, n, r) {
  69775. var i = n.axis;
  69776. if (!i.scale.isBlank()) {
  69777. var a = n.getModel("splitLine"), o = a.getModel("lineStyle"), s = o.get("color");
  69778. s = Se(s) ? s : [s];
  69779. for (var l = r.coordinateSystem.getRect(), u = i.isHorizontal(), c = 0, f = i.getTicksCoords({
  69780. tickModel: a
  69781. }), d = [], h = [], p = o.getLineStyle(), v = 0; v < f.length; v++) {
  69782. var g = i.toGlobalCoord(f[v].coord);
  69783. u ? (d[0] = g, d[1] = l.y, h[0] = g, h[1] = l.y + l.height) : (d[0] = l.x, d[1] = g, h[0] = l.x + l.width, h[1] = g);
  69784. var m = c++ % s.length, y = f[v].tickValue, _ = new Xr({
  69785. anid: y != null ? "line_" + f[v].tickValue : null,
  69786. autoBatch: !0,
  69787. shape: {
  69788. x1: d[0],
  69789. y1: d[1],
  69790. x2: h[0],
  69791. y2: h[1]
  69792. },
  69793. style: it({
  69794. stroke: s[m]
  69795. }, p),
  69796. silent: !0
  69797. });
  69798. Qg(_.shape, p.lineWidth), e.add(_);
  69799. }
  69800. }
  69801. },
  69802. minorSplitLine: function(t, e, n, r) {
  69803. var i = n.axis, a = n.getModel("minorSplitLine"), o = a.getModel("lineStyle"), s = r.coordinateSystem.getRect(), l = i.isHorizontal(), u = i.getMinorTicksCoords();
  69804. if (u.length)
  69805. for (var c = [], f = [], d = o.getLineStyle(), h = 0; h < u.length; h++)
  69806. for (var p = 0; p < u[h].length; p++) {
  69807. var v = i.toGlobalCoord(u[h][p].coord);
  69808. l ? (c[0] = v, c[1] = s.y, f[0] = v, f[1] = s.y + s.height) : (c[0] = s.x, c[1] = v, f[0] = s.x + s.width, f[1] = v);
  69809. var g = new Xr({
  69810. anid: "minor_line_" + u[h][p].tickValue,
  69811. autoBatch: !0,
  69812. shape: {
  69813. x1: c[0],
  69814. y1: c[1],
  69815. x2: f[0],
  69816. y2: f[1]
  69817. },
  69818. style: d,
  69819. silent: !0
  69820. });
  69821. Qg(g.shape, d.lineWidth), e.add(g);
  69822. }
  69823. },
  69824. splitArea: function(t, e, n, r) {
  69825. Tfe(t, e, n, r);
  69826. }
  69827. }, Afe = (
  69828. /** @class */
  69829. function(t) {
  69830. le(e, t);
  69831. function e() {
  69832. var n = t !== null && t.apply(this, arguments) || this;
  69833. return n.type = e.type, n;
  69834. }
  69835. return e.type = "xAxis", e;
  69836. }($fe)
  69837. ), utt = (
  69838. /** @class */
  69839. function(t) {
  69840. le(e, t);
  69841. function e() {
  69842. var n = t !== null && t.apply(this, arguments) || this;
  69843. return n.type = Afe.type, n;
  69844. }
  69845. return e.type = "yAxis", e;
  69846. }($fe)
  69847. ), ctt = (
  69848. /** @class */
  69849. function(t) {
  69850. le(e, t);
  69851. function e() {
  69852. var n = t !== null && t.apply(this, arguments) || this;
  69853. return n.type = "grid", n;
  69854. }
  69855. return e.prototype.render = function(n, r) {
  69856. this.group.removeAll(), n.get("show") && this.group.add(new Zt({
  69857. shape: n.coordinateSystem.getRect(),
  69858. style: it({
  69859. fill: n.get("backgroundColor")
  69860. }, n.getItemStyle()),
  69861. silent: !0,
  69862. z2: -1
  69863. }));
  69864. }, e.type = "grid", e;
  69865. }(Ln)
  69866. ), VZ = {
  69867. // gridIndex: 0,
  69868. // gridId: '',
  69869. offset: 0
  69870. };
  69871. function Efe(t) {
  69872. t.registerComponentView(ctt), t.registerComponentModel(Bet), t.registerCoordinateSystem("cartesian2d", jet), Zg(t, "x", aL, VZ), Zg(t, "y", aL, VZ), t.registerComponentView(Afe), t.registerComponentView(utt), t.registerPreprocessor(function(e) {
  69873. e.xAxis && e.yAxis && !e.grid && (e.grid = {});
  69874. });
  69875. }
  69876. function ftt(t) {
  69877. Mt(Efe), t.registerSeriesModel(Det), t.registerChartView(Net), t.registerLayout(_1("scatter"));
  69878. }
  69879. function dtt(t) {
  69880. t.eachSeriesByType("radar", function(e) {
  69881. var n = e.getData(), r = [], i = e.coordinateSystem;
  69882. if (i) {
  69883. var a = i.getIndicatorAxes();
  69884. F(a, function(o, s) {
  69885. n.each(n.mapDimension(a[s].dim), function(l, u) {
  69886. r[u] = r[u] || [];
  69887. var c = i.dataToPoint(l, s);
  69888. r[u][s] = FZ(c) ? c : WZ(i);
  69889. });
  69890. }), n.each(function(o) {
  69891. var s = Uoe(r[o], function(l) {
  69892. return FZ(l);
  69893. }) || WZ(i);
  69894. r[o].push(s.slice()), n.setItemLayout(o, r[o]);
  69895. });
  69896. }
  69897. });
  69898. }
  69899. function FZ(t) {
  69900. return !isNaN(t[0]) && !isNaN(t[1]);
  69901. }
  69902. function WZ(t) {
  69903. return [t.cx, t.cy];
  69904. }
  69905. function htt(t) {
  69906. var e = t.polar;
  69907. if (e) {
  69908. Se(e) || (e = [e]);
  69909. var n = [];
  69910. F(e, function(r, i) {
  69911. r.indicator ? (r.type && !r.shape && (r.shape = r.type), t.radar = t.radar || [], Se(t.radar) || (t.radar = [t.radar]), t.radar.push(r)) : n.push(r);
  69912. }), t.polar = n;
  69913. }
  69914. F(t.series, function(r) {
  69915. r && r.type === "radar" && r.polarIndex && (r.radarIndex = r.polarIndex);
  69916. });
  69917. }
  69918. var ptt = (
  69919. /** @class */
  69920. function(t) {
  69921. le(e, t);
  69922. function e() {
  69923. var n = t !== null && t.apply(this, arguments) || this;
  69924. return n.type = e.type, n;
  69925. }
  69926. return e.prototype.render = function(n, r, i) {
  69927. var a = n.coordinateSystem, o = this.group, s = n.getData(), l = this._data;
  69928. function u(d, h) {
  69929. var p = d.getItemVisual(h, "symbol") || "circle";
  69930. if (p !== "none") {
  69931. var v = Em(d.getItemVisual(h, "symbolSize")), g = wr(p, -1, -1, 2, 2), m = d.getItemVisual(h, "symbolRotate") || 0;
  69932. return g.attr({
  69933. style: {
  69934. strokeNoScale: !0
  69935. },
  69936. z2: 100,
  69937. scaleX: v[0] / 2,
  69938. scaleY: v[1] / 2,
  69939. rotation: m * Math.PI / 180 || 0
  69940. }), g;
  69941. }
  69942. }
  69943. function c(d, h, p, v, g, m) {
  69944. p.removeAll();
  69945. for (var y = 0; y < h.length - 1; y++) {
  69946. var _ = u(v, g);
  69947. _ && (_.__dimIdx = y, d[y] ? (_.setPosition(d[y]), hp[m ? "initProps" : "updateProps"](_, {
  69948. x: h[y][0],
  69949. y: h[y][1]
  69950. }, n, g)) : _.setPosition(h[y]), p.add(_));
  69951. }
  69952. }
  69953. function f(d) {
  69954. return Ce(d, function(h) {
  69955. return [a.cx, a.cy];
  69956. });
  69957. }
  69958. s.diff(l).add(function(d) {
  69959. var h = s.getItemLayout(d);
  69960. if (h) {
  69961. var p = new pa(), v = new va(), g = {
  69962. shape: {
  69963. points: h
  69964. }
  69965. };
  69966. p.shape.points = f(h), v.shape.points = f(h), Vn(p, g, n, d), Vn(v, g, n, d);
  69967. var m = new ct(), y = new ct();
  69968. m.add(v), m.add(p), m.add(y), c(v.shape.points, h, y, s, d, !0), s.setItemGraphicEl(d, m);
  69969. }
  69970. }).update(function(d, h) {
  69971. var p = l.getItemGraphicEl(h), v = p.childAt(0), g = p.childAt(1), m = p.childAt(2), y = {
  69972. shape: {
  69973. points: s.getItemLayout(d)
  69974. }
  69975. };
  69976. y.shape.points && (c(v.shape.points, y.shape.points, m, s, d, !1), Zs(g), Zs(v), tn(v, y, n), tn(g, y, n), s.setItemGraphicEl(d, p));
  69977. }).remove(function(d) {
  69978. o.remove(l.getItemGraphicEl(d));
  69979. }).execute(), s.eachItemGraphicEl(function(d, h) {
  69980. var p = s.getItemModel(h), v = d.childAt(0), g = d.childAt(1), m = d.childAt(2), y = s.getItemVisual(h, "style"), _ = y.fill;
  69981. o.add(d), v.useStyle(it(p.getModel("lineStyle").getLineStyle(), {
  69982. fill: "none",
  69983. stroke: _
  69984. })), Ai(v, p, "lineStyle"), Ai(g, p, "areaStyle");
  69985. var O = p.getModel("areaStyle"), S = O.isEmpty() && O.parentModel.isEmpty();
  69986. g.ignore = S, F(["emphasis", "select", "blur"], function(P) {
  69987. var $ = p.getModel([P, "areaStyle"]), T = $.isEmpty() && $.parentModel.isEmpty();
  69988. g.ensureState(P).ignore = T && S;
  69989. }), g.useStyle(it(O.getAreaStyle(), {
  69990. fill: _,
  69991. opacity: 0.7,
  69992. decal: y.decal
  69993. }));
  69994. var x = p.getModel("emphasis"), C = x.getModel("itemStyle").getItemStyle();
  69995. m.eachChild(function(P) {
  69996. if (P instanceof ci) {
  69997. var $ = P.style;
  69998. P.useStyle(_e({
  69999. // TODO other properties like x, y ?
  70000. image: $.image,
  70001. x: $.x,
  70002. y: $.y,
  70003. width: $.width,
  70004. height: $.height
  70005. }, y));
  70006. } else
  70007. P.useStyle(y), P.setColor(_), P.style.strokeNoScale = !0;
  70008. var T = P.ensureState("emphasis");
  70009. T.style = ot(C);
  70010. var E = s.getStore().get(s.getDimensionIndex(P.__dimIdx), h);
  70011. (E == null || isNaN(E)) && (E = ""), Ei(P, ei(p), {
  70012. labelFetcher: s.hostModel,
  70013. labelDataIndex: h,
  70014. labelDimIndex: P.__dimIdx,
  70015. defaultText: E,
  70016. inheritColor: _,
  70017. defaultOpacity: y.opacity
  70018. });
  70019. }), ur(d, x.get("focus"), x.get("blurScope"), x.get("disabled"));
  70020. }), this._data = s;
  70021. }, e.prototype.remove = function() {
  70022. this.group.removeAll(), this._data = null;
  70023. }, e.type = "radar", e;
  70024. }(_n)
  70025. ), vtt = (
  70026. /** @class */
  70027. function(t) {
  70028. le(e, t);
  70029. function e() {
  70030. var n = t !== null && t.apply(this, arguments) || this;
  70031. return n.type = e.type, n.hasSymbolVisual = !0, n;
  70032. }
  70033. return e.prototype.init = function(n) {
  70034. t.prototype.init.apply(this, arguments), this.legendVisualProvider = new S1(We(this.getData, this), We(this.getRawData, this));
  70035. }, e.prototype.getInitialData = function(n, r) {
  70036. return Rm(this, {
  70037. generateCoord: "indicator_",
  70038. generateCoordCount: 1 / 0
  70039. });
  70040. }, e.prototype.formatTooltip = function(n, r, i) {
  70041. var a = this.getData(), o = this.coordinateSystem, s = o.getIndicatorAxes(), l = this.getData().getName(n), u = l === "" ? this.name : l, c = Tue(this, n);
  70042. return ti("section", {
  70043. header: u,
  70044. sortBlocks: !0,
  70045. blocks: Ce(s, function(f) {
  70046. var d = a.get(a.mapDimension(f.dim), n);
  70047. return ti("nameValue", {
  70048. markerType: "subItem",
  70049. markerColor: c,
  70050. name: f.name,
  70051. value: d,
  70052. sortParam: d
  70053. });
  70054. })
  70055. });
  70056. }, e.prototype.getTooltipPosition = function(n) {
  70057. if (n != null) {
  70058. for (var r = this.getData(), i = this.coordinateSystem, a = r.getValues(Ce(i.dimensions, function(u) {
  70059. return r.mapDimension(u);
  70060. }), n), o = 0, s = a.length; o < s; o++)
  70061. if (!isNaN(a[o])) {
  70062. var l = i.getIndicatorAxes();
  70063. return i.coordToPoint(l[o].dataToCoord(a[o]), o);
  70064. }
  70065. }
  70066. }, e.type = "series.radar", e.dependencies = ["radar"], e.defaultOption = {
  70067. // zlevel: 0,
  70068. z: 2,
  70069. colorBy: "data",
  70070. coordinateSystem: "radar",
  70071. legendHoverLink: !0,
  70072. radarIndex: 0,
  70073. lineStyle: {
  70074. width: 2,
  70075. type: "solid",
  70076. join: "round"
  70077. },
  70078. label: {
  70079. position: "top"
  70080. },
  70081. // areaStyle: {
  70082. // },
  70083. // itemStyle: {}
  70084. symbolSize: 8
  70085. // symbolRotate: null
  70086. }, e;
  70087. }(Tn)
  70088. ), Q0 = xfe.value;
  70089. function FS(t, e) {
  70090. return it({
  70091. show: e
  70092. }, t);
  70093. }
  70094. var gtt = (
  70095. /** @class */
  70096. function(t) {
  70097. le(e, t);
  70098. function e() {
  70099. var n = t !== null && t.apply(this, arguments) || this;
  70100. return n.type = e.type, n;
  70101. }
  70102. return e.prototype.optionUpdated = function() {
  70103. var n = this.get("boundaryGap"), r = this.get("splitNumber"), i = this.get("scale"), a = this.get("axisLine"), o = this.get("axisTick"), s = this.get("axisLabel"), l = this.get("axisName"), u = this.get(["axisName", "show"]), c = this.get(["axisName", "formatter"]), f = this.get("axisNameGap"), d = this.get("triggerEvent"), h = Ce(this.get("indicator") || [], function(p) {
  70104. p.max != null && p.max > 0 && !p.min ? p.min = 0 : p.min != null && p.min < 0 && !p.max && (p.max = 0);
  70105. var v = l;
  70106. p.color != null && (v = it({
  70107. color: p.color
  70108. }, l));
  70109. var g = mt(ot(p), {
  70110. boundaryGap: n,
  70111. splitNumber: r,
  70112. scale: i,
  70113. axisLine: a,
  70114. axisTick: o,
  70115. // axisType: axisType,
  70116. axisLabel: s,
  70117. // Compatible with 2 and use text
  70118. name: p.text,
  70119. showName: u,
  70120. nameLocation: "end",
  70121. nameGap: f,
  70122. // min: 0,
  70123. nameTextStyle: v,
  70124. triggerEvent: d
  70125. }, !1);
  70126. if (Ve(c)) {
  70127. var m = g.name;
  70128. g.name = c.replace("{value}", m ?? "");
  70129. } else qe(c) && (g.name = c(g.name, g));
  70130. var y = new wn(g, null, this.ecModel);
  70131. return vr(y, Dm.prototype), y.mainType = "radar", y.componentIndex = this.componentIndex, y;
  70132. }, this);
  70133. this._indicatorModels = h;
  70134. }, e.prototype.getIndicatorModels = function() {
  70135. return this._indicatorModels;
  70136. }, e.type = "radar", e.defaultOption = {
  70137. // zlevel: 0,
  70138. z: 0,
  70139. center: ["50%", "50%"],
  70140. radius: "75%",
  70141. startAngle: 90,
  70142. axisName: {
  70143. show: !0
  70144. // formatter: null
  70145. // textStyle: {}
  70146. },
  70147. boundaryGap: [0, 0],
  70148. splitNumber: 5,
  70149. axisNameGap: 15,
  70150. scale: !1,
  70151. // Polygon or circle
  70152. shape: "polygon",
  70153. axisLine: mt({
  70154. lineStyle: {
  70155. color: "#bbb"
  70156. }
  70157. }, Q0.axisLine),
  70158. axisLabel: FS(Q0.axisLabel, !1),
  70159. axisTick: FS(Q0.axisTick, !1),
  70160. // axisType: 'value',
  70161. splitLine: FS(Q0.splitLine, !0),
  70162. splitArea: FS(Q0.splitArea, !0),
  70163. // {text, min, max}
  70164. indicator: []
  70165. }, e;
  70166. }(At)
  70167. ), mtt = ["axisLine", "axisTickLabel", "axisName"], ytt = (
  70168. /** @class */
  70169. function(t) {
  70170. le(e, t);
  70171. function e() {
  70172. var n = t !== null && t.apply(this, arguments) || this;
  70173. return n.type = e.type, n;
  70174. }
  70175. return e.prototype.render = function(n, r, i) {
  70176. var a = this.group;
  70177. a.removeAll(), this._buildAxes(n), this._buildSplitLineAndArea(n);
  70178. }, e.prototype._buildAxes = function(n) {
  70179. var r = n.coordinateSystem, i = r.getIndicatorAxes(), a = Ce(i, function(o) {
  70180. var s = o.model.get("showName") ? o.name : "", l = new sa(o.model, {
  70181. axisName: s,
  70182. position: [r.cx, r.cy],
  70183. rotation: o.angle,
  70184. labelDirection: -1,
  70185. tickDirection: -1,
  70186. nameDirection: 1
  70187. });
  70188. return l;
  70189. });
  70190. F(a, function(o) {
  70191. F(mtt, o.add, o), this.group.add(o.getGroup());
  70192. }, this);
  70193. }, e.prototype._buildSplitLineAndArea = function(n) {
  70194. var r = n.coordinateSystem, i = r.getIndicatorAxes();
  70195. if (!i.length)
  70196. return;
  70197. var a = n.get("shape"), o = n.getModel("splitLine"), s = n.getModel("splitArea"), l = o.getModel("lineStyle"), u = s.getModel("areaStyle"), c = o.get("show"), f = s.get("show"), d = l.get("color"), h = u.get("color"), p = Se(d) ? d : [d], v = Se(h) ? h : [h], g = [], m = [];
  70198. function y(I, B, Q) {
  70199. var W = Q % B.length;
  70200. return I[W] = I[W] || [], W;
  70201. }
  70202. if (a === "circle")
  70203. for (var _ = i[0].getTicksCoords(), O = r.cx, S = r.cy, x = 0; x < _.length; x++) {
  70204. if (c) {
  70205. var C = y(g, p, x);
  70206. g[C].push(new ic({
  70207. shape: {
  70208. cx: O,
  70209. cy: S,
  70210. r: _[x].coord
  70211. }
  70212. }));
  70213. }
  70214. if (f && x < _.length - 1) {
  70215. var C = y(m, v, x);
  70216. m[C].push(new c1({
  70217. shape: {
  70218. cx: O,
  70219. cy: S,
  70220. r0: _[x].coord,
  70221. r: _[x + 1].coord
  70222. }
  70223. }));
  70224. }
  70225. }
  70226. else
  70227. for (var P, $ = Ce(i, function(I, B) {
  70228. var Q = I.getTicksCoords();
  70229. return P = P == null ? Q.length - 1 : Math.min(Q.length - 1, P), Ce(Q, function(W) {
  70230. return r.coordToPoint(W.coord, B);
  70231. });
  70232. }), T = [], x = 0; x <= P; x++) {
  70233. for (var E = [], M = 0; M < i.length; M++)
  70234. E.push($[M][x]);
  70235. if (E[0] ? E.push(E[0].slice()) : process.env.NODE_ENV !== "production" && console.error("Can't draw value axis " + x), c) {
  70236. var C = y(g, p, x);
  70237. g[C].push(new va({
  70238. shape: {
  70239. points: E
  70240. }
  70241. }));
  70242. }
  70243. if (f && T) {
  70244. var C = y(m, v, x - 1);
  70245. m[C].push(new pa({
  70246. shape: {
  70247. points: E.concat(T)
  70248. }
  70249. }));
  70250. }
  70251. T = E.slice().reverse();
  70252. }
  70253. var R = l.getLineStyle(), N = u.getAreaStyle();
  70254. F(m, function(I, B) {
  70255. this.group.add(no(I, {
  70256. style: it({
  70257. stroke: "none",
  70258. fill: v[B % v.length]
  70259. }, N),
  70260. silent: !0
  70261. }));
  70262. }, this), F(g, function(I, B) {
  70263. this.group.add(no(I, {
  70264. style: it({
  70265. fill: "none",
  70266. stroke: p[B % p.length]
  70267. }, R),
  70268. silent: !0
  70269. }));
  70270. }, this);
  70271. }, e.type = "radar", e;
  70272. }(Ln)
  70273. ), btt = (
  70274. /** @class */
  70275. function(t) {
  70276. le(e, t);
  70277. function e(n, r, i) {
  70278. var a = t.call(this, n, r, i) || this;
  70279. return a.type = "value", a.angle = 0, a.name = "", a;
  70280. }
  70281. return e;
  70282. }(vs)
  70283. ), _tt = (
  70284. /** @class */
  70285. function() {
  70286. function t(e, n, r) {
  70287. this.dimensions = [], this._model = e, this._indicatorAxes = Ce(e.getIndicatorModels(), function(i, a) {
  70288. var o = "indicator_" + a, s = new btt(
  70289. o,
  70290. new Gu()
  70291. // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()
  70292. );
  70293. return s.name = i.get("name"), s.model = i, i.axis = s, this.dimensions.push(o), s;
  70294. }, this), this.resize(e, r);
  70295. }
  70296. return t.prototype.getIndicatorAxes = function() {
  70297. return this._indicatorAxes;
  70298. }, t.prototype.dataToPoint = function(e, n) {
  70299. var r = this._indicatorAxes[n];
  70300. return this.coordToPoint(r.dataToCoord(e), n);
  70301. }, t.prototype.coordToPoint = function(e, n) {
  70302. var r = this._indicatorAxes[n], i = r.angle, a = this.cx + e * Math.cos(i), o = this.cy - e * Math.sin(i);
  70303. return [a, o];
  70304. }, t.prototype.pointToData = function(e) {
  70305. var n = e[0] - this.cx, r = e[1] - this.cy, i = Math.sqrt(n * n + r * r);
  70306. n /= i, r /= i;
  70307. for (var a = Math.atan2(-r, n), o = 1 / 0, s, l = -1, u = 0; u < this._indicatorAxes.length; u++) {
  70308. var c = this._indicatorAxes[u], f = Math.abs(a - c.angle);
  70309. f < o && (s = c, l = u, o = f);
  70310. }
  70311. return [l, +(s && s.coordToData(i))];
  70312. }, t.prototype.resize = function(e, n) {
  70313. var r = e.get("center"), i = n.getWidth(), a = n.getHeight(), o = Math.min(i, a) / 2;
  70314. this.cx = ze(r[0], i), this.cy = ze(r[1], a), this.startAngle = e.get("startAngle") * Math.PI / 180;
  70315. var s = e.get("radius");
  70316. (Ve(s) || Kt(s)) && (s = [0, s]), this.r0 = ze(s[0], o), this.r = ze(s[1], o), F(this._indicatorAxes, function(l, u) {
  70317. l.setExtent(this.r0, this.r);
  70318. var c = this.startAngle + u * Math.PI * 2 / this._indicatorAxes.length;
  70319. c = Math.atan2(Math.sin(c), Math.cos(c)), l.angle = c;
  70320. }, this);
  70321. }, t.prototype.update = function(e, n) {
  70322. var r = this._indicatorAxes, i = this._model;
  70323. F(r, function(s) {
  70324. s.scale.setExtent(1 / 0, -1 / 0);
  70325. }), e.eachSeriesByType("radar", function(s, l) {
  70326. if (!(s.get("coordinateSystem") !== "radar" || e.getComponent("radar", s.get("radarIndex")) !== i)) {
  70327. var u = s.getData();
  70328. F(r, function(c) {
  70329. c.scale.unionExtentFromData(u, u.mapDimension(c.dim));
  70330. });
  70331. }
  70332. }, this);
  70333. var a = i.get("splitNumber"), o = new Gu();
  70334. o.setExtent(0, a), o.setInterval(1), F(r, function(s, l) {
  70335. wfe(s.scale, s.model, o);
  70336. });
  70337. }, t.prototype.convertToPixel = function(e, n, r) {
  70338. return console.warn("Not implemented."), null;
  70339. }, t.prototype.convertFromPixel = function(e, n, r) {
  70340. return console.warn("Not implemented."), null;
  70341. }, t.prototype.containPoint = function(e) {
  70342. return console.warn("Not implemented."), !1;
  70343. }, t.create = function(e, n) {
  70344. var r = [];
  70345. return e.eachComponent("radar", function(i) {
  70346. var a = new t(i, e, n);
  70347. r.push(a), i.coordinateSystem = a;
  70348. }), e.eachSeriesByType("radar", function(i) {
  70349. i.get("coordinateSystem") === "radar" && (i.coordinateSystem = r[i.get("radarIndex") || 0]);
  70350. }), r;
  70351. }, t.dimensions = [], t;
  70352. }()
  70353. );
  70354. function Ott(t) {
  70355. t.registerCoordinateSystem("radar", _tt), t.registerComponentModel(gtt), t.registerComponentView(ytt), t.registerVisual({
  70356. seriesType: "radar",
  70357. reset: function(e) {
  70358. var n = e.getData();
  70359. n.each(function(r) {
  70360. n.setItemVisual(r, "legendIcon", "roundRect");
  70361. }), n.setVisual("legendIcon", "roundRect");
  70362. }
  70363. });
  70364. }
  70365. function Stt(t) {
  70366. Mt(Ott), t.registerChartView(ptt), t.registerSeriesModel(vtt), t.registerLayout(dtt), t.registerProcessor(O1("radar")), t.registerPreprocessor(htt);
  70367. }
  70368. var QZ = "\0_ec_interaction_mutex";
  70369. function xtt(t, e, n) {
  70370. var r = z3(t);
  70371. r[e] = n;
  70372. }
  70373. function wtt(t, e, n) {
  70374. var r = z3(t), i = r[e];
  70375. i === n && (r[e] = null);
  70376. }
  70377. function HZ(t, e) {
  70378. return !!z3(t)[e];
  70379. }
  70380. function z3(t) {
  70381. return t[QZ] || (t[QZ] = {});
  70382. }
  70383. Js({
  70384. type: "takeGlobalCursor",
  70385. event: "globalCursorTaken",
  70386. update: "update"
  70387. }, fr);
  70388. var x1 = (
  70389. /** @class */
  70390. function(t) {
  70391. le(e, t);
  70392. function e(n) {
  70393. var r = t.call(this) || this;
  70394. r._zr = n;
  70395. var i = We(r._mousedownHandler, r), a = We(r._mousemoveHandler, r), o = We(r._mouseupHandler, r), s = We(r._mousewheelHandler, r), l = We(r._pinchHandler, r);
  70396. return r.enable = function(u, c) {
  70397. this.disable(), this._opt = it(ot(c) || {}, {
  70398. zoomOnMouseWheel: !0,
  70399. moveOnMouseMove: !0,
  70400. // By default, wheel do not trigger move.
  70401. moveOnMouseWheel: !1,
  70402. preventDefaultMouseMove: !0
  70403. }), u == null && (u = !0), (u === !0 || u === "move" || u === "pan") && (n.on("mousedown", i), n.on("mousemove", a), n.on("mouseup", o)), (u === !0 || u === "scale" || u === "zoom") && (n.on("mousewheel", s), n.on("pinch", l));
  70404. }, r.disable = function() {
  70405. n.off("mousedown", i), n.off("mousemove", a), n.off("mouseup", o), n.off("mousewheel", s), n.off("pinch", l);
  70406. }, r;
  70407. }
  70408. return e.prototype.isDragging = function() {
  70409. return this._dragging;
  70410. }, e.prototype.isPinching = function() {
  70411. return this._pinching;
  70412. }, e.prototype.setPointerChecker = function(n) {
  70413. this.pointerChecker = n;
  70414. }, e.prototype.dispose = function() {
  70415. this.disable();
  70416. }, e.prototype._mousedownHandler = function(n) {
  70417. if (!yH(n)) {
  70418. for (var r = n.target; r; ) {
  70419. if (r.draggable)
  70420. return;
  70421. r = r.__hostTarget || r.parent;
  70422. }
  70423. var i = n.offsetX, a = n.offsetY;
  70424. this.pointerChecker && this.pointerChecker(n, i, a) && (this._x = i, this._y = a, this._dragging = !0);
  70425. }
  70426. }, e.prototype._mousemoveHandler = function(n) {
  70427. if (!(!this._dragging || !mw("moveOnMouseMove", n, this._opt) || n.gestureEvent === "pinch" || HZ(this._zr, "globalPan"))) {
  70428. var r = n.offsetX, i = n.offsetY, a = this._x, o = this._y, s = r - a, l = i - o;
  70429. this._x = r, this._y = i, this._opt.preventDefaultMouseMove && Vu(n.event), Mfe(this, "pan", "moveOnMouseMove", n, {
  70430. dx: s,
  70431. dy: l,
  70432. oldX: a,
  70433. oldY: o,
  70434. newX: r,
  70435. newY: i,
  70436. isAvailableBehavior: null
  70437. });
  70438. }
  70439. }, e.prototype._mouseupHandler = function(n) {
  70440. yH(n) || (this._dragging = !1);
  70441. }, e.prototype._mousewheelHandler = function(n) {
  70442. var r = mw("zoomOnMouseWheel", n, this._opt), i = mw("moveOnMouseWheel", n, this._opt), a = n.wheelDelta, o = Math.abs(a), s = n.offsetX, l = n.offsetY;
  70443. if (!(a === 0 || !r && !i)) {
  70444. if (r) {
  70445. var u = o > 3 ? 1.4 : o > 1 ? 1.2 : 1.1, c = a > 0 ? u : 1 / u;
  70446. YM(this, "zoom", "zoomOnMouseWheel", n, {
  70447. scale: c,
  70448. originX: s,
  70449. originY: l,
  70450. isAvailableBehavior: null
  70451. });
  70452. }
  70453. if (i) {
  70454. var f = Math.abs(a), d = (a > 0 ? 1 : -1) * (f > 3 ? 0.4 : f > 1 ? 0.15 : 0.05);
  70455. YM(this, "scrollMove", "moveOnMouseWheel", n, {
  70456. scrollDelta: d,
  70457. originX: s,
  70458. originY: l,
  70459. isAvailableBehavior: null
  70460. });
  70461. }
  70462. }
  70463. }, e.prototype._pinchHandler = function(n) {
  70464. if (!HZ(this._zr, "globalPan")) {
  70465. var r = n.pinchScale > 1 ? 1.1 : 1 / 1.1;
  70466. YM(this, "zoom", null, n, {
  70467. scale: r,
  70468. originX: n.pinchX,
  70469. originY: n.pinchY,
  70470. isAvailableBehavior: null
  70471. });
  70472. }
  70473. }, e;
  70474. }(fs)
  70475. );
  70476. function YM(t, e, n, r, i) {
  70477. t.pointerChecker && t.pointerChecker(r, i.originX, i.originY) && (Vu(r.event), Mfe(t, e, n, r, i));
  70478. }
  70479. function Mfe(t, e, n, r, i) {
  70480. i.isAvailableBehavior = We(mw, null, n, r), t.trigger(e, i);
  70481. }
  70482. function mw(t, e, n) {
  70483. var r = n[t];
  70484. return !t || r && (!Ve(r) || e.event[r + "Key"]);
  70485. }
  70486. function V3(t, e, n) {
  70487. var r = t.target;
  70488. r.x += e, r.y += n, r.dirty();
  70489. }
  70490. function F3(t, e, n, r) {
  70491. var i = t.target, a = t.zoomLimit, o = t.zoom = t.zoom || 1;
  70492. if (o *= e, a) {
  70493. var s = a.min || 0, l = a.max || 1 / 0;
  70494. o = Math.max(Math.min(l, o), s);
  70495. }
  70496. var u = o / t.zoom;
  70497. t.zoom = o, i.x -= (n - i.x) * (u - 1), i.y -= (r - i.y) * (u - 1), i.scaleX *= u, i.scaleY *= u, i.dirty();
  70498. }
  70499. var Ctt = {
  70500. axisPointer: 1,
  70501. tooltip: 1,
  70502. brush: 1
  70503. };
  70504. function QP(t, e, n) {
  70505. var r = e.getComponentByElement(t.topTarget), i = r && r.coordinateSystem;
  70506. return r && r !== n && !Ctt.hasOwnProperty(r.mainType) && i && i.model !== n;
  70507. }
  70508. function Ife(t) {
  70509. if (Ve(t)) {
  70510. var e = new DOMParser();
  70511. t = e.parseFromString(t, "text/xml");
  70512. }
  70513. var n = t;
  70514. for (n.nodeType === 9 && (n = n.firstChild); n.nodeName.toLowerCase() !== "svg" || n.nodeType !== 1; )
  70515. n = n.nextSibling;
  70516. return n;
  70517. }
  70518. var qM, nT = {
  70519. fill: "fill",
  70520. stroke: "stroke",
  70521. "stroke-width": "lineWidth",
  70522. opacity: "opacity",
  70523. "fill-opacity": "fillOpacity",
  70524. "stroke-opacity": "strokeOpacity",
  70525. "stroke-dasharray": "lineDash",
  70526. "stroke-dashoffset": "lineDashOffset",
  70527. "stroke-linecap": "lineCap",
  70528. "stroke-linejoin": "lineJoin",
  70529. "stroke-miterlimit": "miterLimit",
  70530. "font-family": "fontFamily",
  70531. "font-size": "fontSize",
  70532. "font-style": "fontStyle",
  70533. "font-weight": "fontWeight",
  70534. "text-anchor": "textAlign",
  70535. visibility: "visibility",
  70536. display: "display"
  70537. }, GZ = kt(nT), rT = {
  70538. "alignment-baseline": "textBaseline",
  70539. "stop-color": "stopColor"
  70540. }, jZ = kt(rT), Ttt = function() {
  70541. function t() {
  70542. this._defs = {}, this._root = null;
  70543. }
  70544. return t.prototype.parse = function(e, n) {
  70545. n = n || {};
  70546. var r = Ife(e);
  70547. if (process.env.NODE_ENV !== "production" && !r)
  70548. throw new Error("Illegal svg");
  70549. this._defsUsePending = [];
  70550. var i = new ct();
  70551. this._root = i;
  70552. var a = [], o = r.getAttribute("viewBox") || "", s = parseFloat(r.getAttribute("width") || n.width), l = parseFloat(r.getAttribute("height") || n.height);
  70553. isNaN(s) && (s = null), isNaN(l) && (l = null), Xa(r, i, null, !0, !1);
  70554. for (var u = r.firstChild; u; )
  70555. this._parseNode(u, i, a, null, !1, !1), u = u.nextSibling;
  70556. Att(this._defs, this._defsUsePending), this._defsUsePending = [];
  70557. var c, f;
  70558. if (o) {
  70559. var d = HP(o);
  70560. d.length >= 4 && (c = {
  70561. x: parseFloat(d[0] || 0),
  70562. y: parseFloat(d[1] || 0),
  70563. width: parseFloat(d[2]),
  70564. height: parseFloat(d[3])
  70565. });
  70566. }
  70567. if (c && s != null && l != null && (f = Rfe(c, { x: 0, y: 0, width: s, height: l }), !n.ignoreViewBox)) {
  70568. var h = i;
  70569. i = new ct(), i.add(h), h.scaleX = h.scaleY = f.scale, h.x = f.x, h.y = f.y;
  70570. }
  70571. return !n.ignoreRootClip && s != null && l != null && i.setClipPath(new Zt({
  70572. shape: { x: 0, y: 0, width: s, height: l }
  70573. })), {
  70574. root: i,
  70575. width: s,
  70576. height: l,
  70577. viewBoxRect: c,
  70578. viewBoxTransform: f,
  70579. named: a
  70580. };
  70581. }, t.prototype._parseNode = function(e, n, r, i, a, o) {
  70582. var s = e.nodeName.toLowerCase(), l, u = i;
  70583. if (s === "defs" && (a = !0), s === "text" && (o = !0), s === "defs" || s === "switch")
  70584. l = n;
  70585. else {
  70586. if (!a) {
  70587. var c = qM[s];
  70588. if (c && Qe(qM, s)) {
  70589. l = c.call(this, e, n);
  70590. var f = e.getAttribute("name");
  70591. if (f) {
  70592. var d = {
  70593. name: f,
  70594. namedFrom: null,
  70595. svgNodeTagLower: s,
  70596. el: l
  70597. };
  70598. r.push(d), s === "g" && (u = d);
  70599. } else i && r.push({
  70600. name: i.name,
  70601. namedFrom: i,
  70602. svgNodeTagLower: s,
  70603. el: l
  70604. });
  70605. n.add(l);
  70606. }
  70607. }
  70608. var h = ZZ[s];
  70609. if (h && Qe(ZZ, s)) {
  70610. var p = h.call(this, e), v = e.getAttribute("id");
  70611. v && (this._defs[v] = p);
  70612. }
  70613. }
  70614. if (l && l.isGroup)
  70615. for (var g = e.firstChild; g; )
  70616. g.nodeType === 1 ? this._parseNode(g, l, r, u, a, o) : g.nodeType === 3 && o && this._parseText(g, l), g = g.nextSibling;
  70617. }, t.prototype._parseText = function(e, n) {
  70618. var r = new Wg({
  70619. style: {
  70620. text: e.textContent
  70621. },
  70622. silent: !0,
  70623. x: this._textX || 0,
  70624. y: this._textY || 0
  70625. });
  70626. Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), Ptt(r, n);
  70627. var i = r.style, a = i.fontSize;
  70628. a && a < 9 && (i.fontSize = 9, r.scaleX *= a / 9, r.scaleY *= a / 9);
  70629. var o = (i.fontSize || i.fontFamily) && [
  70630. i.fontStyle,
  70631. i.fontWeight,
  70632. (i.fontSize || 12) + "px",
  70633. i.fontFamily || "sans-serif"
  70634. ].join(" ");
  70635. i.font = o;
  70636. var s = r.getBoundingRect();
  70637. return this._textX += s.width, n.add(r), r;
  70638. }, t.internalField = function() {
  70639. qM = {
  70640. g: function(e, n) {
  70641. var r = new ct();
  70642. return Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), r;
  70643. },
  70644. rect: function(e, n) {
  70645. var r = new Zt();
  70646. return Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), r.setShape({
  70647. x: parseFloat(e.getAttribute("x") || "0"),
  70648. y: parseFloat(e.getAttribute("y") || "0"),
  70649. width: parseFloat(e.getAttribute("width") || "0"),
  70650. height: parseFloat(e.getAttribute("height") || "0")
  70651. }), r.silent = !0, r;
  70652. },
  70653. circle: function(e, n) {
  70654. var r = new ic();
  70655. return Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), r.setShape({
  70656. cx: parseFloat(e.getAttribute("cx") || "0"),
  70657. cy: parseFloat(e.getAttribute("cy") || "0"),
  70658. r: parseFloat(e.getAttribute("r") || "0")
  70659. }), r.silent = !0, r;
  70660. },
  70661. line: function(e, n) {
  70662. var r = new Xr();
  70663. return Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), r.setShape({
  70664. x1: parseFloat(e.getAttribute("x1") || "0"),
  70665. y1: parseFloat(e.getAttribute("y1") || "0"),
  70666. x2: parseFloat(e.getAttribute("x2") || "0"),
  70667. y2: parseFloat(e.getAttribute("y2") || "0")
  70668. }), r.silent = !0, r;
  70669. },
  70670. ellipse: function(e, n) {
  70671. var r = new OP();
  70672. return Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), r.setShape({
  70673. cx: parseFloat(e.getAttribute("cx") || "0"),
  70674. cy: parseFloat(e.getAttribute("cy") || "0"),
  70675. rx: parseFloat(e.getAttribute("rx") || "0"),
  70676. ry: parseFloat(e.getAttribute("ry") || "0")
  70677. }), r.silent = !0, r;
  70678. },
  70679. polygon: function(e, n) {
  70680. var r = e.getAttribute("points"), i;
  70681. r && (i = YZ(r));
  70682. var a = new pa({
  70683. shape: {
  70684. points: i || []
  70685. },
  70686. silent: !0
  70687. });
  70688. return Do(n, a), Xa(e, a, this._defsUsePending, !1, !1), a;
  70689. },
  70690. polyline: function(e, n) {
  70691. var r = e.getAttribute("points"), i;
  70692. r && (i = YZ(r));
  70693. var a = new va({
  70694. shape: {
  70695. points: i || []
  70696. },
  70697. silent: !0
  70698. });
  70699. return Do(n, a), Xa(e, a, this._defsUsePending, !1, !1), a;
  70700. },
  70701. image: function(e, n) {
  70702. var r = new ci();
  70703. return Do(n, r), Xa(e, r, this._defsUsePending, !1, !1), r.setStyle({
  70704. image: e.getAttribute("xlink:href") || e.getAttribute("href"),
  70705. x: +e.getAttribute("x"),
  70706. y: +e.getAttribute("y"),
  70707. width: +e.getAttribute("width"),
  70708. height: +e.getAttribute("height")
  70709. }), r.silent = !0, r;
  70710. },
  70711. text: function(e, n) {
  70712. var r = e.getAttribute("x") || "0", i = e.getAttribute("y") || "0", a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0";
  70713. this._textX = parseFloat(r) + parseFloat(a), this._textY = parseFloat(i) + parseFloat(o);
  70714. var s = new ct();
  70715. return Do(n, s), Xa(e, s, this._defsUsePending, !1, !0), s;
  70716. },
  70717. tspan: function(e, n) {
  70718. var r = e.getAttribute("x"), i = e.getAttribute("y");
  70719. r != null && (this._textX = parseFloat(r)), i != null && (this._textY = parseFloat(i));
  70720. var a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0", s = new ct();
  70721. return Do(n, s), Xa(e, s, this._defsUsePending, !1, !0), this._textX += parseFloat(a), this._textY += parseFloat(o), s;
  70722. },
  70723. path: function(e, n) {
  70724. var r = e.getAttribute("d") || "", i = vle(r);
  70725. return Do(n, i), Xa(e, i, this._defsUsePending, !1, !1), i.silent = !0, i;
  70726. }
  70727. };
  70728. }(), t;
  70729. }(), ZZ = {
  70730. lineargradient: function(t) {
  70731. var e = parseInt(t.getAttribute("x1") || "0", 10), n = parseInt(t.getAttribute("y1") || "0", 10), r = parseInt(t.getAttribute("x2") || "10", 10), i = parseInt(t.getAttribute("y2") || "0", 10), a = new _m(e, n, r, i);
  70732. return UZ(t, a), XZ(t, a), a;
  70733. },
  70734. radialgradient: function(t) {
  70735. var e = parseInt(t.getAttribute("cx") || "0", 10), n = parseInt(t.getAttribute("cy") || "0", 10), r = parseInt(t.getAttribute("r") || "0", 10), i = new V5(e, n, r);
  70736. return UZ(t, i), XZ(t, i), i;
  70737. }
  70738. };
  70739. function UZ(t, e) {
  70740. var n = t.getAttribute("gradientUnits");
  70741. n === "userSpaceOnUse" && (e.global = !0);
  70742. }
  70743. function XZ(t, e) {
  70744. for (var n = t.firstChild; n; ) {
  70745. if (n.nodeType === 1 && n.nodeName.toLocaleLowerCase() === "stop") {
  70746. var r = n.getAttribute("offset"), i = void 0;
  70747. r && r.indexOf("%") > 0 ? i = parseInt(r, 10) / 100 : r ? i = parseFloat(r) : i = 0;
  70748. var a = {};
  70749. Dfe(n, a, a);
  70750. var o = a.stopColor || n.getAttribute("stop-color") || "#000000";
  70751. e.colorStops.push({
  70752. offset: i,
  70753. color: o
  70754. });
  70755. }
  70756. n = n.nextSibling;
  70757. }
  70758. }
  70759. function Do(t, e) {
  70760. t && t.__inheritedStyle && (e.__inheritedStyle || (e.__inheritedStyle = {}), it(e.__inheritedStyle, t.__inheritedStyle));
  70761. }
  70762. function YZ(t) {
  70763. for (var e = HP(t), n = [], r = 0; r < e.length; r += 2) {
  70764. var i = parseFloat(e[r]), a = parseFloat(e[r + 1]);
  70765. n.push([i, a]);
  70766. }
  70767. return n;
  70768. }
  70769. function Xa(t, e, n, r, i) {
  70770. var a = e, o = a.__inheritedStyle = a.__inheritedStyle || {}, s = {};
  70771. t.nodeType === 1 && (Itt(t, e), Dfe(t, o, s), r || Dtt(t, o, s)), a.style = a.style || {}, o.fill != null && (a.style.fill = qZ(a, "fill", o.fill, n)), o.stroke != null && (a.style.stroke = qZ(a, "stroke", o.stroke, n)), F([
  70772. "lineWidth",
  70773. "opacity",
  70774. "fillOpacity",
  70775. "strokeOpacity",
  70776. "miterLimit",
  70777. "fontSize"
  70778. ], function(l) {
  70779. o[l] != null && (a.style[l] = parseFloat(o[l]));
  70780. }), F([
  70781. "lineDashOffset",
  70782. "lineCap",
  70783. "lineJoin",
  70784. "fontWeight",
  70785. "fontFamily",
  70786. "fontStyle",
  70787. "textAlign"
  70788. ], function(l) {
  70789. o[l] != null && (a.style[l] = o[l]);
  70790. }), i && (a.__selfStyle = s), o.lineDash && (a.style.lineDash = Ce(HP(o.lineDash), function(l) {
  70791. return parseFloat(l);
  70792. })), (o.visibility === "hidden" || o.visibility === "collapse") && (a.invisible = !0), o.display === "none" && (a.ignore = !0);
  70793. }
  70794. function Ptt(t, e) {
  70795. var n = e.__selfStyle;
  70796. if (n) {
  70797. var r = n.textBaseline, i = r;
  70798. !r || r === "auto" || r === "baseline" ? i = "alphabetic" : r === "before-edge" || r === "text-before-edge" ? i = "top" : r === "after-edge" || r === "text-after-edge" ? i = "bottom" : (r === "central" || r === "mathematical") && (i = "middle"), t.style.textBaseline = i;
  70799. }
  70800. var a = e.__inheritedStyle;
  70801. if (a) {
  70802. var o = a.textAlign, s = o;
  70803. o && (o === "middle" && (s = "center"), t.style.textAlign = s);
  70804. }
  70805. }
  70806. var $tt = /^url\(\s*#(.*?)\)/;
  70807. function qZ(t, e, n, r) {
  70808. var i = n && n.match($tt);
  70809. if (i) {
  70810. var a = Zo(i[1]);
  70811. r.push([t, e, a]);
  70812. return;
  70813. }
  70814. return n === "none" && (n = null), n;
  70815. }
  70816. function Att(t, e) {
  70817. for (var n = 0; n < e.length; n++) {
  70818. var r = e[n];
  70819. r[0].style[r[1]] = t[r[2]];
  70820. }
  70821. }
  70822. var Ett = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
  70823. function HP(t) {
  70824. return t.match(Ett) || [];
  70825. }
  70826. var Mtt = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g, KM = Math.PI / 180;
  70827. function Itt(t, e) {
  70828. var n = t.getAttribute("transform");
  70829. if (n) {
  70830. n = n.replace(/,/g, " ");
  70831. var r = [], i = null;
  70832. n.replace(Mtt, function(f, d, h) {
  70833. return r.push(d, h), "";
  70834. });
  70835. for (var a = r.length - 1; a > 0; a -= 2) {
  70836. var o = r[a], s = r[a - 1], l = HP(o);
  70837. switch (i = i || Na(), s) {
  70838. case "translate":
  70839. Gs(i, i, [parseFloat(l[0]), parseFloat(l[1] || "0")]);
  70840. break;
  70841. case "scale":
  70842. uP(i, i, [parseFloat(l[0]), parseFloat(l[1] || l[0])]);
  70843. break;
  70844. case "rotate":
  70845. Lf(i, i, -parseFloat(l[0]) * KM, [
  70846. parseFloat(l[1] || "0"),
  70847. parseFloat(l[2] || "0")
  70848. ]);
  70849. break;
  70850. case "skewX":
  70851. var u = Math.tan(parseFloat(l[0]) * KM);
  70852. Ll(i, [1, 0, u, 1, 0, 0], i);
  70853. break;
  70854. case "skewY":
  70855. var c = Math.tan(parseFloat(l[0]) * KM);
  70856. Ll(i, [1, c, 0, 1, 0, 0], i);
  70857. break;
  70858. case "matrix":
  70859. i[0] = parseFloat(l[0]), i[1] = parseFloat(l[1]), i[2] = parseFloat(l[2]), i[3] = parseFloat(l[3]), i[4] = parseFloat(l[4]), i[5] = parseFloat(l[5]);
  70860. break;
  70861. }
  70862. }
  70863. e.setLocalTransform(i);
  70864. }
  70865. }
  70866. var KZ = /([^\s:;]+)\s*:\s*([^:;]+)/g;
  70867. function Dfe(t, e, n) {
  70868. var r = t.getAttribute("style");
  70869. if (r) {
  70870. KZ.lastIndex = 0;
  70871. for (var i; (i = KZ.exec(r)) != null; ) {
  70872. var a = i[1], o = Qe(nT, a) ? nT[a] : null;
  70873. o && (e[o] = i[2]);
  70874. var s = Qe(rT, a) ? rT[a] : null;
  70875. s && (n[s] = i[2]);
  70876. }
  70877. }
  70878. }
  70879. function Dtt(t, e, n) {
  70880. for (var r = 0; r < GZ.length; r++) {
  70881. var i = GZ[r], a = t.getAttribute(i);
  70882. a != null && (e[nT[i]] = a);
  70883. }
  70884. for (var r = 0; r < jZ.length; r++) {
  70885. var i = jZ[r], a = t.getAttribute(i);
  70886. a != null && (n[rT[i]] = a);
  70887. }
  70888. }
  70889. function Rfe(t, e) {
  70890. var n = e.width / t.width, r = e.height / t.height, i = Math.min(n, r);
  70891. return {
  70892. scale: i,
  70893. x: -(t.x + t.width / 2) * i + (e.x + e.width / 2),
  70894. y: -(t.y + t.height / 2) * i + (e.y + e.height / 2)
  70895. };
  70896. }
  70897. function Rtt(t, e) {
  70898. var n = new Ttt();
  70899. return n.parse(t, e);
  70900. }
  70901. var ktt = Ze([
  70902. "rect",
  70903. "circle",
  70904. "line",
  70905. "ellipse",
  70906. "polygon",
  70907. "polyline",
  70908. "path",
  70909. // <text> <tspan> are also enabled because some SVG might paint text itself,
  70910. // but still need to trigger events or tooltip.
  70911. "text",
  70912. "tspan",
  70913. // <g> is also enabled because this case: if multiple tags share one name
  70914. // and need label displayed, every tags will display the name, which is not
  70915. // expected. So we can put them into a <g name="xxx">. Thereby only one label
  70916. // displayed and located based on the bounding rect of the <g>.
  70917. "g"
  70918. ]), Ltt = (
  70919. /** @class */
  70920. function() {
  70921. function t(e, n) {
  70922. this.type = "geoSVG", this._usedGraphicMap = Ze(), this._freedGraphics = [], this._mapName = e, this._parsedXML = Ife(n);
  70923. }
  70924. return t.prototype.load = function() {
  70925. var e = this._firstGraphic;
  70926. if (!e) {
  70927. e = this._firstGraphic = this._buildGraphic(this._parsedXML), this._freedGraphics.push(e), this._boundingRect = this._firstGraphic.boundingRect.clone();
  70928. var n = Btt(e.named), r = n.regions, i = n.regionsMap;
  70929. this._regions = r, this._regionsMap = i;
  70930. }
  70931. return {
  70932. boundingRect: this._boundingRect,
  70933. regions: this._regions,
  70934. regionsMap: this._regionsMap
  70935. };
  70936. }, t.prototype._buildGraphic = function(e) {
  70937. var n, r;
  70938. try {
  70939. n = e && Rtt(e, {
  70940. ignoreViewBox: !0,
  70941. ignoreRootClip: !0
  70942. }) || {}, r = n.root, at(r != null);
  70943. } catch (g) {
  70944. throw new Error(`Invalid svg format
  70945. ` + g.message);
  70946. }
  70947. var i = new ct();
  70948. i.add(r), i.isGeoSVGGraphicRoot = !0;
  70949. var a = n.width, o = n.height, s = n.viewBoxRect, l = this._boundingRect;
  70950. if (!l) {
  70951. var u = void 0, c = void 0, f = void 0, d = void 0;
  70952. if (a != null ? (u = 0, f = a) : s && (u = s.x, f = s.width), o != null ? (c = 0, d = o) : s && (c = s.y, d = s.height), u == null || c == null) {
  70953. var h = r.getBoundingRect();
  70954. u == null && (u = h.x, f = h.width), c == null && (c = h.y, d = h.height);
  70955. }
  70956. l = this._boundingRect = new bt(u, c, f, d);
  70957. }
  70958. if (s) {
  70959. var p = Rfe(s, l);
  70960. r.scaleX = r.scaleY = p.scale, r.x = p.x, r.y = p.y;
  70961. }
  70962. i.setClipPath(new Zt({
  70963. shape: l.plain()
  70964. }));
  70965. var v = [];
  70966. return F(n.named, function(g) {
  70967. ktt.get(g.svgNodeTagLower) != null && (v.push(g), Ntt(g.el));
  70968. }), {
  70969. root: i,
  70970. boundingRect: l,
  70971. named: v
  70972. };
  70973. }, t.prototype.useGraphic = function(e) {
  70974. var n = this._usedGraphicMap, r = n.get(e);
  70975. return r || (r = this._freedGraphics.pop() || this._buildGraphic(this._parsedXML), n.set(e, r), r);
  70976. }, t.prototype.freeGraphic = function(e) {
  70977. var n = this._usedGraphicMap, r = n.get(e);
  70978. r && (n.removeKey(e), this._freedGraphics.push(r));
  70979. }, t;
  70980. }()
  70981. );
  70982. function Ntt(t) {
  70983. t.silent = !1, t.isGroup && t.traverse(function(e) {
  70984. e.silent = !1;
  70985. });
  70986. }
  70987. function Btt(t) {
  70988. var e = [], n = Ze();
  70989. return F(t, function(r) {
  70990. if (r.namedFrom == null) {
  70991. var i = new OKe(r.name, r.el);
  70992. e.push(i), n.set(r.name, i);
  70993. }
  70994. }), {
  70995. regions: e,
  70996. regionsMap: n
  70997. };
  70998. }
  70999. var cL = [126, 25], JZ = "南海诸岛", Ld = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];
  71000. for (var Md = 0; Md < Ld.length; Md++)
  71001. for (var av = 0; av < Ld[Md].length; av++)
  71002. Ld[Md][av][0] /= 10.5, Ld[Md][av][1] /= -10.5 / 0.75, Ld[Md][av][0] += cL[0], Ld[Md][av][1] += cL[1];
  71003. function ztt(t, e) {
  71004. if (t === "china") {
  71005. for (var n = 0; n < e.length; n++)
  71006. if (e[n].name === JZ)
  71007. return;
  71008. e.push(new Ece(JZ, Ce(Ld, function(r) {
  71009. return {
  71010. type: "polygon",
  71011. exterior: r
  71012. };
  71013. }), cL));
  71014. }
  71015. }
  71016. var Vtt = {
  71017. 南海诸岛: [32, 80],
  71018. // 全国
  71019. 广东: [0, -10],
  71020. 香港: [10, 5],
  71021. 澳门: [-10, 10],
  71022. // '北京': [-10, 0],
  71023. 天津: [5, 5]
  71024. };
  71025. function Ftt(t, e) {
  71026. if (t === "china") {
  71027. var n = Vtt[e.name];
  71028. if (n) {
  71029. var r = e.getCenter();
  71030. r[0] += n[0] / 10.5, r[1] += -n[1] / (10.5 / 0.75), e.setCenter(r);
  71031. }
  71032. }
  71033. }
  71034. var Wtt = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];
  71035. function Qtt(t, e) {
  71036. t === "china" && e.name === "台湾" && e.geometries.push({
  71037. type: "polygon",
  71038. exterior: Wtt[0]
  71039. });
  71040. }
  71041. var Htt = "name", Gtt = (
  71042. /** @class */
  71043. function() {
  71044. function t(e, n, r) {
  71045. this.type = "geoJSON", this._parsedMap = Ze(), this._mapName = e, this._specialAreas = r, this._geoJSON = Ztt(n);
  71046. }
  71047. return t.prototype.load = function(e, n) {
  71048. n = n || Htt;
  71049. var r = this._parsedMap.get(n);
  71050. if (!r) {
  71051. var i = this._parseToRegions(n);
  71052. r = this._parsedMap.set(n, {
  71053. regions: i,
  71054. boundingRect: jtt(i)
  71055. });
  71056. }
  71057. var a = Ze(), o = [];
  71058. return F(r.regions, function(s) {
  71059. var l = s.name;
  71060. e && Qe(e, l) && (s = s.cloneShallow(l = e[l])), o.push(s), a.set(l, s);
  71061. }), {
  71062. regions: o,
  71063. boundingRect: r.boundingRect || new bt(0, 0, 0, 0),
  71064. regionsMap: a
  71065. };
  71066. }, t.prototype._parseToRegions = function(e) {
  71067. var n = this._mapName, r = this._geoJSON, i;
  71068. try {
  71069. i = r ? eL(r, e) : [];
  71070. } catch (a) {
  71071. throw new Error(`Invalid geoJson format
  71072. ` + a.message);
  71073. }
  71074. return ztt(n, i), F(i, function(a) {
  71075. var o = a.name;
  71076. Ftt(n, a), Qtt(n, a);
  71077. var s = this._specialAreas && this._specialAreas[o];
  71078. s && a.transformTo(s.left, s.top, s.width, s.height);
  71079. }, this), i;
  71080. }, t.prototype.getMapForUser = function() {
  71081. return {
  71082. // For backward compatibility, use geoJson
  71083. // PENDING: it has been returning them without clone.
  71084. // do we need to avoid outsite modification?
  71085. geoJson: this._geoJSON,
  71086. geoJSON: this._geoJSON,
  71087. specialAreas: this._specialAreas
  71088. };
  71089. }, t;
  71090. }()
  71091. );
  71092. function jtt(t) {
  71093. for (var e, n = 0; n < t.length; n++) {
  71094. var r = t[n].getBoundingRect();
  71095. e = e || r.clone(), e.union(r);
  71096. }
  71097. return e;
  71098. }
  71099. function Ztt(t) {
  71100. return Ve(t) ? typeof JSON < "u" && JSON.parse ? JSON.parse(t) : new Function("return (" + t + ");")() : t;
  71101. }
  71102. var H0 = Ze();
  71103. const ju = {
  71104. /**
  71105. * Compatible with previous `echarts.registerMap`.
  71106. *
  71107. * @usage
  71108. * ```js
  71109. *
  71110. * echarts.registerMap('USA', geoJson, specialAreas);
  71111. *
  71112. * echarts.registerMap('USA', {
  71113. * geoJson: geoJson,
  71114. * specialAreas: {...}
  71115. * });
  71116. * echarts.registerMap('USA', {
  71117. * geoJSON: geoJson,
  71118. * specialAreas: {...}
  71119. * });
  71120. *
  71121. * echarts.registerMap('airport', {
  71122. * svg: svg
  71123. * }
  71124. * ```
  71125. *
  71126. * Note:
  71127. * Do not support that register multiple geoJSON or SVG
  71128. * one map name. Because different geoJSON and SVG have
  71129. * different unit. It's not easy to make sure how those
  71130. * units are mapping/normalize.
  71131. * If intending to use multiple geoJSON or SVG, we can
  71132. * use multiple geo coordinate system.
  71133. */
  71134. registerMap: function(t, e, n) {
  71135. if (e.svg) {
  71136. var r = new Ltt(t, e.svg);
  71137. H0.set(t, r);
  71138. } else {
  71139. var i = e.geoJson || e.geoJSON;
  71140. i && !e.features ? n = e.specialAreas : i = e;
  71141. var r = new Gtt(t, i, n);
  71142. H0.set(t, r);
  71143. }
  71144. },
  71145. getGeoResource: function(t) {
  71146. return H0.get(t);
  71147. },
  71148. /**
  71149. * Only for exporting to users.
  71150. * **MUST NOT** used internally.
  71151. */
  71152. getMapForUser: function(t) {
  71153. var e = H0.get(t);
  71154. return e && e.type === "geoJSON" && e.getMapForUser();
  71155. },
  71156. load: function(t, e, n) {
  71157. var r = H0.get(t);
  71158. if (!r) {
  71159. process.env.NODE_ENV !== "production" && console.error("Map " + t + " not exists. The GeoJSON of the map must be provided.");
  71160. return;
  71161. }
  71162. return r.load(e, n);
  71163. }
  71164. };
  71165. var W3 = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"], Utt = Ze(W3), Xtt = Ze(W3.concat(["g"])), Ytt = Ze(W3.concat(["g"])), kfe = Ut();
  71166. function WS(t) {
  71167. var e = t.getItemStyle(), n = t.get("areaColor");
  71168. return n != null && (e.fill = n), e;
  71169. }
  71170. function eU(t) {
  71171. var e = t.style;
  71172. e && (e.stroke = e.stroke || e.fill, e.fill = null);
  71173. }
  71174. var Lfe = (
  71175. /** @class */
  71176. function() {
  71177. function t(e) {
  71178. var n = new ct();
  71179. this.uid = Cm("ec_map_draw"), this._controller = new x1(e.getZr()), this._controllerHost = {
  71180. target: n
  71181. }, this.group = n, n.add(this._regionsGroup = new ct()), n.add(this._svgGroup = new ct());
  71182. }
  71183. return t.prototype.draw = function(e, n, r, i, a) {
  71184. var o = e.mainType === "geo", s = e.getData && e.getData();
  71185. o && n.eachComponent({
  71186. mainType: "series",
  71187. subType: "map"
  71188. }, function(m) {
  71189. !s && m.getHostGeoModel() === e && (s = m.getData());
  71190. });
  71191. var l = e.coordinateSystem, u = this._regionsGroup, c = this.group, f = l.getTransformInfo(), d = f.raw, h = f.roam, p = !u.childAt(0) || a;
  71192. p ? (c.x = h.x, c.y = h.y, c.scaleX = h.scaleX, c.scaleY = h.scaleY, c.dirty()) : tn(c, h, e);
  71193. var v = s && s.getVisual("visualMeta") && s.getVisual("visualMeta").length > 0, g = {
  71194. api: r,
  71195. geo: l,
  71196. mapOrGeoModel: e,
  71197. data: s,
  71198. isVisualEncodedByVisualMap: v,
  71199. isGeo: o,
  71200. transformInfoRaw: d
  71201. };
  71202. l.resourceType === "geoJSON" ? this._buildGeoJSON(g) : l.resourceType === "geoSVG" && this._buildSVG(g), this._updateController(e, n, r), this._updateMapSelectHandler(e, u, r, i);
  71203. }, t.prototype._buildGeoJSON = function(e) {
  71204. var n = this._regionsGroupByName = Ze(), r = Ze(), i = this._regionsGroup, a = e.transformInfoRaw, o = e.mapOrGeoModel, s = e.data, l = e.geo.projection, u = l && l.stream;
  71205. function c(h, p) {
  71206. return p && (h = p(h)), h && [h[0] * a.scaleX + a.x, h[1] * a.scaleY + a.y];
  71207. }
  71208. function f(h) {
  71209. for (var p = [], v = !u && l && l.project, g = 0; g < h.length; ++g) {
  71210. var m = c(h[g], v);
  71211. m && p.push(m);
  71212. }
  71213. return p;
  71214. }
  71215. function d(h) {
  71216. return {
  71217. shape: {
  71218. points: f(h)
  71219. }
  71220. };
  71221. }
  71222. i.removeAll(), F(e.geo.regions, function(h) {
  71223. var p = h.name, v = n.get(p), g = r.get(p) || {}, m = g.dataIdx, y = g.regionModel;
  71224. v || (v = n.set(p, new ct()), i.add(v), m = s ? s.indexOfName(p) : null, y = e.isGeo ? o.getRegionModel(p) : s ? s.getItemModel(m) : null, r.set(p, {
  71225. dataIdx: m,
  71226. regionModel: y
  71227. }));
  71228. var _ = [], O = [];
  71229. F(h.geometries, function(C) {
  71230. if (C.type === "polygon") {
  71231. var P = [C.exterior].concat(C.interiors || []);
  71232. u && (P = oU(P, u)), F(P, function(T) {
  71233. _.push(new pa(d(T)));
  71234. });
  71235. } else {
  71236. var $ = C.points;
  71237. u && ($ = oU($, u, !0)), F($, function(T) {
  71238. O.push(new va(d(T)));
  71239. });
  71240. }
  71241. });
  71242. var S = c(h.getCenter(), l && l.project);
  71243. function x(C, P) {
  71244. if (C.length) {
  71245. var $ = new xP({
  71246. culling: !0,
  71247. segmentIgnoreThreshold: 1,
  71248. shape: {
  71249. paths: C
  71250. }
  71251. });
  71252. v.add($), tU(e, $, m, y), nU(e, $, p, y, o, m, S), P && (eU($), F($.states, eU));
  71253. }
  71254. }
  71255. x(_), x(O, !0);
  71256. }), n.each(function(h, p) {
  71257. var v = r.get(p), g = v.dataIdx, m = v.regionModel;
  71258. rU(e, h, p, m, o, g), iU(e, h, p, m, o), aU(e, h, p, m, o);
  71259. }, this);
  71260. }, t.prototype._buildSVG = function(e) {
  71261. var n = e.geo.map, r = e.transformInfoRaw;
  71262. this._svgGroup.x = r.x, this._svgGroup.y = r.y, this._svgGroup.scaleX = r.scaleX, this._svgGroup.scaleY = r.scaleY, this._svgResourceChanged(n) && (this._freeSVG(), this._useSVG(n));
  71263. var i = this._svgDispatcherMap = Ze(), a = !1;
  71264. F(this._svgGraphicRecord.named, function(o) {
  71265. var s = o.name, l = e.mapOrGeoModel, u = e.data, c = o.svgNodeTagLower, f = o.el, d = u ? u.indexOfName(s) : null, h = l.getRegionModel(s);
  71266. if (Utt.get(c) != null && f instanceof ls && tU(e, f, d, h), f instanceof ls && (f.culling = !0), f.z2EmphasisLift = 0, !o.namedFrom && (Ytt.get(c) != null && nU(e, f, s, h, l, d, null), rU(e, f, s, h, l, d), iU(e, f, s, h, l), Xtt.get(c) != null)) {
  71267. var p = aU(e, f, s, h, l);
  71268. p === "self" && (a = !0);
  71269. var v = i.get(s) || i.set(s, []);
  71270. v.push(f);
  71271. }
  71272. }, this), this._enableBlurEntireSVG(a, e);
  71273. }, t.prototype._enableBlurEntireSVG = function(e, n) {
  71274. if (e && n.isGeo) {
  71275. var r = n.mapOrGeoModel.getModel(["blur", "itemStyle"]).getItemStyle(), i = r.opacity;
  71276. this._svgGraphicRecord.root.traverse(function(a) {
  71277. if (!a.isGroup) {
  71278. Zh(a);
  71279. var o = a.ensureState("blur").style || {};
  71280. o.opacity == null && i != null && (o.opacity = i), a.ensureState("emphasis");
  71281. }
  71282. });
  71283. }
  71284. }, t.prototype.remove = function() {
  71285. this._regionsGroup.removeAll(), this._regionsGroupByName = null, this._svgGroup.removeAll(), this._freeSVG(), this._controller.dispose(), this._controllerHost = null;
  71286. }, t.prototype.findHighDownDispatchers = function(e, n) {
  71287. if (e == null)
  71288. return [];
  71289. var r = n.coordinateSystem;
  71290. if (r.resourceType === "geoJSON") {
  71291. var i = this._regionsGroupByName;
  71292. if (i) {
  71293. var a = i.get(e);
  71294. return a ? [a] : [];
  71295. }
  71296. } else if (r.resourceType === "geoSVG")
  71297. return this._svgDispatcherMap && this._svgDispatcherMap.get(e) || [];
  71298. }, t.prototype._svgResourceChanged = function(e) {
  71299. return this._svgMapName !== e;
  71300. }, t.prototype._useSVG = function(e) {
  71301. var n = ju.getGeoResource(e);
  71302. if (n && n.type === "geoSVG") {
  71303. var r = n.useGraphic(this.uid);
  71304. this._svgGroup.add(r.root), this._svgGraphicRecord = r, this._svgMapName = e;
  71305. }
  71306. }, t.prototype._freeSVG = function() {
  71307. var e = this._svgMapName;
  71308. if (e != null) {
  71309. var n = ju.getGeoResource(e);
  71310. n && n.type === "geoSVG" && n.freeGraphic(this.uid), this._svgGraphicRecord = null, this._svgDispatcherMap = null, this._svgGroup.removeAll(), this._svgMapName = null;
  71311. }
  71312. }, t.prototype._updateController = function(e, n, r) {
  71313. var i = e.coordinateSystem, a = this._controller, o = this._controllerHost;
  71314. o.zoomLimit = e.get("scaleLimit"), o.zoom = i.getZoom(), a.enable(e.get("roam") || !1);
  71315. var s = e.mainType;
  71316. function l() {
  71317. var u = {
  71318. type: "geoRoam",
  71319. componentType: s
  71320. };
  71321. return u[s + "Id"] = e.id, u;
  71322. }
  71323. a.off("pan").on("pan", function(u) {
  71324. this._mouseDownFlag = !1, V3(o, u.dx, u.dy), r.dispatchAction(_e(l(), {
  71325. dx: u.dx,
  71326. dy: u.dy,
  71327. animation: {
  71328. duration: 0
  71329. }
  71330. }));
  71331. }, this), a.off("zoom").on("zoom", function(u) {
  71332. this._mouseDownFlag = !1, F3(o, u.scale, u.originX, u.originY), r.dispatchAction(_e(l(), {
  71333. totalZoom: o.zoom,
  71334. zoom: u.scale,
  71335. originX: u.originX,
  71336. originY: u.originY,
  71337. animation: {
  71338. duration: 0
  71339. }
  71340. }));
  71341. }, this), a.setPointerChecker(function(u, c, f) {
  71342. return i.containPoint([c, f]) && !QP(u, r, e);
  71343. });
  71344. }, t.prototype.resetForLabelLayout = function() {
  71345. this.group.traverse(function(e) {
  71346. var n = e.getTextContent();
  71347. n && (n.ignore = kfe(n).ignore);
  71348. });
  71349. }, t.prototype._updateMapSelectHandler = function(e, n, r, i) {
  71350. var a = this;
  71351. n.off("mousedown"), n.off("click"), e.get("selectedMode") && (n.on("mousedown", function() {
  71352. a._mouseDownFlag = !0;
  71353. }), n.on("click", function(o) {
  71354. a._mouseDownFlag && (a._mouseDownFlag = !1);
  71355. }));
  71356. }, t;
  71357. }()
  71358. );
  71359. function tU(t, e, n, r) {
  71360. var i = r.getModel("itemStyle"), a = r.getModel(["emphasis", "itemStyle"]), o = r.getModel(["blur", "itemStyle"]), s = r.getModel(["select", "itemStyle"]), l = WS(i), u = WS(a), c = WS(s), f = WS(o), d = t.data;
  71361. if (d) {
  71362. var h = d.getItemVisual(n, "style"), p = d.getItemVisual(n, "decal");
  71363. t.isVisualEncodedByVisualMap && h.fill && (l.fill = h.fill), p && (l.decal = Gg(p, t.api));
  71364. }
  71365. e.setStyle(l), e.style.strokeNoScale = !0, e.ensureState("emphasis").style = u, e.ensureState("select").style = c, e.ensureState("blur").style = f, Zh(e);
  71366. }
  71367. function nU(t, e, n, r, i, a, o) {
  71368. var s = t.data, l = t.isGeo, u = s && isNaN(s.get(s.mapDimension("value"), a)), c = s && s.getItemLayout(a);
  71369. if (l || u || c && c.showLabel) {
  71370. var f = l ? n : a, d = void 0;
  71371. (!s || a >= 0) && (d = i);
  71372. var h = o ? {
  71373. normal: {
  71374. align: "center",
  71375. verticalAlign: "middle"
  71376. }
  71377. } : null;
  71378. Ei(e, ei(r), {
  71379. labelFetcher: d,
  71380. labelDataIndex: f,
  71381. defaultText: n
  71382. }, h);
  71383. var p = e.getTextContent();
  71384. if (p && (kfe(p).ignore = p.ignore, e.textConfig && o)) {
  71385. var v = e.getBoundingRect().clone();
  71386. e.textConfig.layoutRect = v, e.textConfig.position = [(o[0] - v.x) / v.width * 100 + "%", (o[1] - v.y) / v.height * 100 + "%"];
  71387. }
  71388. e.disableLabelAnimation = !0;
  71389. } else
  71390. e.removeTextContent(), e.removeTextConfig(), e.disableLabelAnimation = null;
  71391. }
  71392. function rU(t, e, n, r, i, a) {
  71393. t.data ? t.data.setItemGraphicEl(a, e) : ft(e).eventData = {
  71394. componentType: "geo",
  71395. componentIndex: i.componentIndex,
  71396. geoIndex: i.componentIndex,
  71397. name: n,
  71398. region: r && r.option || {}
  71399. };
  71400. }
  71401. function iU(t, e, n, r, i) {
  71402. t.data || xm({
  71403. el: e,
  71404. componentModel: i,
  71405. itemName: n,
  71406. // @ts-ignore FIXME:TS fix the "compatible with each other"?
  71407. itemTooltipOption: r.get("tooltip")
  71408. });
  71409. }
  71410. function aU(t, e, n, r, i) {
  71411. e.highDownSilentOnTouch = !!i.get("selectedMode");
  71412. var a = r.getModel("emphasis"), o = a.get("focus");
  71413. return ur(e, o, a.get("blurScope"), a.get("disabled")), t.isGeo && xZe(e, i, n), o;
  71414. }
  71415. function oU(t, e, n) {
  71416. var r = [], i;
  71417. function a() {
  71418. i = [];
  71419. }
  71420. function o() {
  71421. i.length && (r.push(i), i = []);
  71422. }
  71423. var s = e({
  71424. polygonStart: a,
  71425. polygonEnd: o,
  71426. lineStart: a,
  71427. lineEnd: o,
  71428. point: function(l, u) {
  71429. isFinite(l) && isFinite(u) && i.push([l, u]);
  71430. },
  71431. sphere: function() {
  71432. }
  71433. });
  71434. return !n && s.polygonStart(), F(t, function(l) {
  71435. s.lineStart();
  71436. for (var u = 0; u < l.length; u++)
  71437. s.point(l[u][0], l[u][1]);
  71438. s.lineEnd();
  71439. }), !n && s.polygonEnd(), r;
  71440. }
  71441. var qtt = (
  71442. /** @class */
  71443. function(t) {
  71444. le(e, t);
  71445. function e() {
  71446. var n = t !== null && t.apply(this, arguments) || this;
  71447. return n.type = e.type, n;
  71448. }
  71449. return e.prototype.render = function(n, r, i, a) {
  71450. if (!(a && a.type === "mapToggleSelect" && a.from === this.uid)) {
  71451. var o = this.group;
  71452. if (o.removeAll(), !n.getHostGeoModel()) {
  71453. if (this._mapDraw && a && a.type === "geoRoam" && this._mapDraw.resetForLabelLayout(), a && a.type === "geoRoam" && a.componentType === "series" && a.seriesId === n.id) {
  71454. var s = this._mapDraw;
  71455. s && o.add(s.group);
  71456. } else if (n.needsDrawMap) {
  71457. var s = this._mapDraw || new Lfe(i);
  71458. o.add(s.group), s.draw(n, r, i, this, a), this._mapDraw = s;
  71459. } else
  71460. this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
  71461. n.get("showLegendSymbol") && r.getComponent("legend") && this._renderSymbols(n, r, i);
  71462. }
  71463. }
  71464. }, e.prototype.remove = function() {
  71465. this._mapDraw && this._mapDraw.remove(), this._mapDraw = null, this.group.removeAll();
  71466. }, e.prototype.dispose = function() {
  71467. this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
  71468. }, e.prototype._renderSymbols = function(n, r, i) {
  71469. var a = n.originalData, o = this.group;
  71470. a.each(a.mapDimension("value"), function(s, l) {
  71471. if (!isNaN(s)) {
  71472. var u = a.getItemLayout(l);
  71473. if (!(!u || !u.point)) {
  71474. var c = u.point, f = u.offset, d = new ic({
  71475. style: {
  71476. // Because the special of map draw.
  71477. // Which needs statistic of multiple series and draw on one map.
  71478. // And each series also need a symbol with legend color
  71479. //
  71480. // Layout and visual are put one the different data
  71481. // TODO
  71482. fill: n.getData().getVisual("style").fill
  71483. },
  71484. shape: {
  71485. cx: c[0] + f * 9,
  71486. cy: c[1],
  71487. r: 3
  71488. },
  71489. silent: !0,
  71490. // Do not overlap the first series, on which labels are displayed.
  71491. z2: 8 + (f ? 0 : bm + 1)
  71492. });
  71493. if (!f) {
  71494. var h = n.mainSeries.getData(), p = a.getName(l), v = h.indexOfName(p), g = a.getItemModel(l), m = g.getModel("label"), y = h.getItemGraphicEl(v);
  71495. Ei(d, ei(g), {
  71496. labelFetcher: {
  71497. getFormattedLabel: function(_, O) {
  71498. return n.getFormattedLabel(v, O);
  71499. }
  71500. },
  71501. defaultText: p
  71502. }), d.disableLabelAnimation = !0, m.get("position") || d.setTextConfig({
  71503. position: "bottom"
  71504. }), y.onHoverStateChange = function(_) {
  71505. IC(d, _);
  71506. };
  71507. }
  71508. o.add(d);
  71509. }
  71510. }
  71511. });
  71512. }, e.type = "map", e;
  71513. }(_n)
  71514. ), Ktt = (
  71515. /** @class */
  71516. function(t) {
  71517. le(e, t);
  71518. function e() {
  71519. var n = t !== null && t.apply(this, arguments) || this;
  71520. return n.type = e.type, n.needsDrawMap = !1, n.seriesGroup = [], n.getTooltipPosition = function(r) {
  71521. if (r != null) {
  71522. var i = this.getData().getName(r), a = this.coordinateSystem, o = a.getRegion(i);
  71523. return o && a.dataToPoint(o.getCenter());
  71524. }
  71525. }, n;
  71526. }
  71527. return e.prototype.getInitialData = function(n) {
  71528. for (var r = Rm(this, {
  71529. coordDimensions: ["value"],
  71530. encodeDefaulter: vt(n3, this)
  71531. }), i = Ze(), a = [], o = 0, s = r.count(); o < s; o++) {
  71532. var l = r.getName(o);
  71533. i.set(l, !0);
  71534. }
  71535. var u = ju.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);
  71536. return F(u.regions, function(c) {
  71537. var f = c.name;
  71538. i.get(f) || a.push(f);
  71539. }), r.appendValues([], a), r;
  71540. }, e.prototype.getHostGeoModel = function() {
  71541. var n = this.option.geoIndex;
  71542. return n != null ? this.ecModel.getComponent("geo", n) : null;
  71543. }, e.prototype.getMapType = function() {
  71544. return (this.getHostGeoModel() || this).option.map;
  71545. }, e.prototype.getRawValue = function(n) {
  71546. var r = this.getData();
  71547. return r.get(r.mapDimension("value"), n);
  71548. }, e.prototype.getRegionModel = function(n) {
  71549. var r = this.getData();
  71550. return r.getItemModel(r.indexOfName(n));
  71551. }, e.prototype.formatTooltip = function(n, r, i) {
  71552. for (var a = this.getData(), o = this.getRawValue(n), s = a.getName(n), l = this.seriesGroup, u = [], c = 0; c < l.length; c++) {
  71553. var f = l[c].originalData.indexOfName(s), d = a.mapDimension("value");
  71554. isNaN(l[c].originalData.get(d, f)) || u.push(l[c].name);
  71555. }
  71556. return ti("section", {
  71557. header: u.join(", "),
  71558. noHeader: !u.length,
  71559. blocks: [ti("nameValue", {
  71560. name: s,
  71561. value: o
  71562. })]
  71563. });
  71564. }, e.prototype.setZoom = function(n) {
  71565. this.option.zoom = n;
  71566. }, e.prototype.setCenter = function(n) {
  71567. this.option.center = n;
  71568. }, e.prototype.getLegendIcon = function(n) {
  71569. var r = n.icon || "roundRect", i = wr(r, 0, 0, n.itemWidth, n.itemHeight, n.itemStyle.fill);
  71570. return i.setStyle(n.itemStyle), i.style.stroke = "none", r.indexOf("empty") > -1 && (i.style.stroke = i.style.fill, i.style.fill = "#fff", i.style.lineWidth = 2), i;
  71571. }, e.type = "series.map", e.dependencies = ["geo"], e.layoutMode = "box", e.defaultOption = {
  71572. // 一级层叠
  71573. // zlevel: 0,
  71574. // 二级层叠
  71575. z: 2,
  71576. coordinateSystem: "geo",
  71577. // map should be explicitly specified since ec3.
  71578. map: "",
  71579. // If `geoIndex` is not specified, a exclusive geo will be
  71580. // created. Otherwise use the specified geo component, and
  71581. // `map` and `mapType` are ignored.
  71582. // geoIndex: 0,
  71583. // 'center' | 'left' | 'right' | 'x%' | {number}
  71584. left: "center",
  71585. // 'center' | 'top' | 'bottom' | 'x%' | {number}
  71586. top: "center",
  71587. // right
  71588. // bottom
  71589. // width:
  71590. // height
  71591. // Aspect is width / height. Inited to be geoJson bbox aspect
  71592. // This parameter is used for scale this aspect
  71593. // Default value:
  71594. // for geoSVG source: 1,
  71595. // for geoJSON source: 0.75.
  71596. aspectScale: null,
  71597. // Layout with center and size
  71598. // If you want to put map in a fixed size box with right aspect ratio
  71599. // This two properties may be more convenient.
  71600. // layoutCenter: [50%, 50%]
  71601. // layoutSize: 100
  71602. showLegendSymbol: !0,
  71603. // Define left-top, right-bottom coords to control view
  71604. // For example, [ [180, 90], [-180, -90] ],
  71605. // higher priority than center and zoom
  71606. boundingCoords: null,
  71607. // Default on center of map
  71608. center: null,
  71609. zoom: 1,
  71610. scaleLimit: null,
  71611. selectedMode: !0,
  71612. label: {
  71613. show: !1,
  71614. color: "#000"
  71615. },
  71616. // scaleLimit: null,
  71617. itemStyle: {
  71618. borderWidth: 0.5,
  71619. borderColor: "#444",
  71620. areaColor: "#eee"
  71621. },
  71622. emphasis: {
  71623. label: {
  71624. show: !0,
  71625. color: "rgb(100,0,0)"
  71626. },
  71627. itemStyle: {
  71628. areaColor: "rgba(255,215,0,0.8)"
  71629. }
  71630. },
  71631. select: {
  71632. label: {
  71633. show: !0,
  71634. color: "rgb(100,0,0)"
  71635. },
  71636. itemStyle: {
  71637. color: "rgba(255,215,0,0.8)"
  71638. }
  71639. },
  71640. nameProperty: "name"
  71641. }, e;
  71642. }(Tn)
  71643. );
  71644. function Jtt(t, e) {
  71645. var n = {};
  71646. return F(t, function(r) {
  71647. r.each(r.mapDimension("value"), function(i, a) {
  71648. var o = "ec-" + r.getName(a);
  71649. n[o] = n[o] || [], isNaN(i) || n[o].push(i);
  71650. });
  71651. }), t[0].map(t[0].mapDimension("value"), function(r, i) {
  71652. for (var a = "ec-" + t[0].getName(i), o = 0, s = 1 / 0, l = -1 / 0, u = n[a].length, c = 0; c < u; c++)
  71653. s = Math.min(s, n[a][c]), l = Math.max(l, n[a][c]), o += n[a][c];
  71654. var f;
  71655. return e === "min" ? f = s : e === "max" ? f = l : e === "average" ? f = o / u : f = o, u === 0 ? NaN : f;
  71656. });
  71657. }
  71658. function ent(t) {
  71659. var e = {};
  71660. t.eachSeriesByType("map", function(n) {
  71661. var r = n.getHostGeoModel(), i = r ? "o" + r.id : "i" + n.getMapType();
  71662. (e[i] = e[i] || []).push(n);
  71663. }), F(e, function(n, r) {
  71664. for (var i = Jtt(Ce(n, function(o) {
  71665. return o.getData();
  71666. }), n[0].get("mapValueCalculation")), a = 0; a < n.length; a++)
  71667. n[a].originalData = n[a].getData();
  71668. for (var a = 0; a < n.length; a++)
  71669. n[a].seriesGroup = n, n[a].needsDrawMap = a === 0 && !n[a].getHostGeoModel(), n[a].setData(i.cloneShallow()), n[a].mainSeries = n[0];
  71670. });
  71671. }
  71672. function tnt(t) {
  71673. var e = {};
  71674. t.eachSeriesByType("map", function(n) {
  71675. var r = n.getMapType();
  71676. if (!(n.getHostGeoModel() || e[r])) {
  71677. var i = {};
  71678. F(n.seriesGroup, function(o) {
  71679. var s = o.coordinateSystem, l = o.originalData;
  71680. o.get("showLegendSymbol") && t.getComponent("legend") && l.each(l.mapDimension("value"), function(u, c) {
  71681. var f = l.getName(c), d = s.getRegion(f);
  71682. if (!(!d || isNaN(u))) {
  71683. var h = i[f] || 0, p = s.dataToPoint(d.getCenter());
  71684. i[f] = h + 1, l.setItemLayout(c, {
  71685. point: p,
  71686. offset: h
  71687. });
  71688. }
  71689. });
  71690. });
  71691. var a = n.getData();
  71692. a.each(function(o) {
  71693. var s = a.getName(o), l = a.getItemLayout(o) || {};
  71694. l.showLabel = !i[s], a.setItemLayout(o, l);
  71695. }), e[r] = !0;
  71696. }
  71697. });
  71698. }
  71699. var sU = oi, w1 = (
  71700. /** @class */
  71701. function(t) {
  71702. le(e, t);
  71703. function e(n) {
  71704. var r = t.call(this) || this;
  71705. return r.type = "view", r.dimensions = ["x", "y"], r._roamTransformable = new Pu(), r._rawTransformable = new Pu(), r.name = n, r;
  71706. }
  71707. return e.prototype.setBoundingRect = function(n, r, i, a) {
  71708. return this._rect = new bt(n, r, i, a), this._rect;
  71709. }, e.prototype.getBoundingRect = function() {
  71710. return this._rect;
  71711. }, e.prototype.setViewRect = function(n, r, i, a) {
  71712. this._transformTo(n, r, i, a), this._viewRect = new bt(n, r, i, a);
  71713. }, e.prototype._transformTo = function(n, r, i, a) {
  71714. var o = this.getBoundingRect(), s = this._rawTransformable;
  71715. s.transform = o.calculateTransform(new bt(n, r, i, a));
  71716. var l = s.parent;
  71717. s.parent = null, s.decomposeTransform(), s.parent = l, this._updateTransform();
  71718. }, e.prototype.setCenter = function(n, r) {
  71719. n && (this._center = [ze(n[0], r.getWidth()), ze(n[1], r.getHeight())], this._updateCenterAndZoom());
  71720. }, e.prototype.setZoom = function(n) {
  71721. n = n || 1;
  71722. var r = this.zoomLimit;
  71723. r && (r.max != null && (n = Math.min(r.max, n)), r.min != null && (n = Math.max(r.min, n))), this._zoom = n, this._updateCenterAndZoom();
  71724. }, e.prototype.getDefaultCenter = function() {
  71725. var n = this.getBoundingRect(), r = n.x + n.width / 2, i = n.y + n.height / 2;
  71726. return [r, i];
  71727. }, e.prototype.getCenter = function() {
  71728. return this._center || this.getDefaultCenter();
  71729. }, e.prototype.getZoom = function() {
  71730. return this._zoom || 1;
  71731. }, e.prototype.getRoamTransform = function() {
  71732. return this._roamTransformable.getLocalTransform();
  71733. }, e.prototype._updateCenterAndZoom = function() {
  71734. var n = this._rawTransformable.getLocalTransform(), r = this._roamTransformable, i = this.getDefaultCenter(), a = this.getCenter(), o = this.getZoom();
  71735. a = oi([], a, n), i = oi([], i, n), r.originX = a[0], r.originY = a[1], r.x = i[0] - a[0], r.y = i[1] - a[1], r.scaleX = r.scaleY = o, this._updateTransform();
  71736. }, e.prototype._updateTransform = function() {
  71737. var n = this._roamTransformable, r = this._rawTransformable;
  71738. r.parent = n, n.updateTransform(), r.updateTransform(), lP(this.transform || (this.transform = []), r.transform || Na()), this._rawTransform = r.getLocalTransform(), this.invTransform = this.invTransform || [], dp(this.invTransform, this.transform), this.decomposeTransform();
  71739. }, e.prototype.getTransformInfo = function() {
  71740. var n = this._rawTransformable, r = this._roamTransformable, i = new Pu();
  71741. return i.transform = r.transform, i.decomposeTransform(), {
  71742. roam: {
  71743. x: i.x,
  71744. y: i.y,
  71745. scaleX: i.scaleX,
  71746. scaleY: i.scaleY
  71747. },
  71748. raw: {
  71749. x: n.x,
  71750. y: n.y,
  71751. scaleX: n.scaleX,
  71752. scaleY: n.scaleY
  71753. }
  71754. };
  71755. }, e.prototype.getViewRect = function() {
  71756. return this._viewRect;
  71757. }, e.prototype.getViewRectAfterRoam = function() {
  71758. var n = this.getBoundingRect().clone();
  71759. return n.applyTransform(this.transform), n;
  71760. }, e.prototype.dataToPoint = function(n, r, i) {
  71761. var a = r ? this._rawTransform : this.transform;
  71762. return i = i || [], a ? sU(i, n, a) : ki(i, n);
  71763. }, e.prototype.pointToData = function(n) {
  71764. var r = this.invTransform;
  71765. return r ? sU([], n, r) : [n[0], n[1]];
  71766. }, e.prototype.convertToPixel = function(n, r, i) {
  71767. var a = lU(r);
  71768. return a === this ? a.dataToPoint(i) : null;
  71769. }, e.prototype.convertFromPixel = function(n, r, i) {
  71770. var a = lU(r);
  71771. return a === this ? a.pointToData(i) : null;
  71772. }, e.prototype.containPoint = function(n) {
  71773. return this.getViewRectAfterRoam().contain(n[0], n[1]);
  71774. }, e.dimensions = ["x", "y"], e;
  71775. }(Pu)
  71776. );
  71777. function lU(t) {
  71778. var e = t.seriesModel;
  71779. return e ? e.coordinateSystem : null;
  71780. }
  71781. var nnt = {
  71782. geoJSON: {
  71783. aspectScale: 0.75,
  71784. invertLongitute: !0
  71785. },
  71786. geoSVG: {
  71787. aspectScale: 1,
  71788. invertLongitute: !1
  71789. }
  71790. }, Nfe = ["lng", "lat"], Bfe = (
  71791. /** @class */
  71792. function(t) {
  71793. le(e, t);
  71794. function e(n, r, i) {
  71795. var a = t.call(this, n) || this;
  71796. a.dimensions = Nfe, a.type = "geo", a._nameCoordMap = Ze(), a.map = r;
  71797. var o = i.projection, s = ju.load(r, i.nameMap, i.nameProperty), l = ju.getGeoResource(r), u = a.resourceType = l ? l.type : null, c = a.regions = s.regions, f = nnt[l.type];
  71798. a._regionsMap = s.regionsMap, a.regions = s.regions, process.env.NODE_ENV !== "production" && o && (u === "geoSVG" && (process.env.NODE_ENV !== "production" && nr("Map " + r + " with SVG source can't use projection. Only GeoJSON source supports projection."), o = null), o.project && o.unproject || (process.env.NODE_ENV !== "production" && nr("project and unproject must be both provided in the projeciton."), o = null)), a.projection = o;
  71799. var d;
  71800. if (o)
  71801. for (var h = 0; h < c.length; h++) {
  71802. var p = c[h].getBoundingRect(o);
  71803. d = d || p.clone(), d.union(p);
  71804. }
  71805. else
  71806. d = s.boundingRect;
  71807. return a.setBoundingRect(d.x, d.y, d.width, d.height), a.aspectScale = o ? 1 : dt(i.aspectScale, f.aspectScale), a._invertLongitute = o ? !1 : f.invertLongitute, a;
  71808. }
  71809. return e.prototype._transformTo = function(n, r, i, a) {
  71810. var o = this.getBoundingRect(), s = this._invertLongitute;
  71811. o = o.clone(), s && (o.y = -o.y - o.height);
  71812. var l = this._rawTransformable;
  71813. l.transform = o.calculateTransform(new bt(n, r, i, a));
  71814. var u = l.parent;
  71815. l.parent = null, l.decomposeTransform(), l.parent = u, s && (l.scaleY = -l.scaleY), this._updateTransform();
  71816. }, e.prototype.getRegion = function(n) {
  71817. return this._regionsMap.get(n);
  71818. }, e.prototype.getRegionByCoord = function(n) {
  71819. for (var r = this.regions, i = 0; i < r.length; i++) {
  71820. var a = r[i];
  71821. if (a.type === "geoJSON" && a.contain(n))
  71822. return r[i];
  71823. }
  71824. }, e.prototype.addGeoCoord = function(n, r) {
  71825. this._nameCoordMap.set(n, r);
  71826. }, e.prototype.getGeoCoord = function(n) {
  71827. var r = this._regionsMap.get(n);
  71828. return this._nameCoordMap.get(n) || r && r.getCenter();
  71829. }, e.prototype.dataToPoint = function(n, r, i) {
  71830. if (Ve(n) && (n = this.getGeoCoord(n)), n) {
  71831. var a = this.projection;
  71832. return a && (n = a.project(n)), n && this.projectedToPoint(n, r, i);
  71833. }
  71834. }, e.prototype.pointToData = function(n) {
  71835. var r = this.projection;
  71836. return r && (n = r.unproject(n)), n && this.pointToProjected(n);
  71837. }, e.prototype.pointToProjected = function(n) {
  71838. return t.prototype.pointToData.call(this, n);
  71839. }, e.prototype.projectedToPoint = function(n, r, i) {
  71840. return t.prototype.dataToPoint.call(this, n, r, i);
  71841. }, e.prototype.convertToPixel = function(n, r, i) {
  71842. var a = uU(r);
  71843. return a === this ? a.dataToPoint(i) : null;
  71844. }, e.prototype.convertFromPixel = function(n, r, i) {
  71845. var a = uU(r);
  71846. return a === this ? a.pointToData(i) : null;
  71847. }, e;
  71848. }(w1)
  71849. );
  71850. vr(Bfe, w1);
  71851. function uU(t) {
  71852. var e = t.geoModel, n = t.seriesModel;
  71853. return e ? e.coordinateSystem : n ? n.coordinateSystem || (n.getReferringComponents("geo", Er).models[0] || {}).coordinateSystem : null;
  71854. }
  71855. const cU = Bfe;
  71856. function fU(t, e) {
  71857. var n = t.get("boundingCoords");
  71858. if (n != null) {
  71859. var r = n[0], i = n[1];
  71860. if (!(isFinite(r[0]) && isFinite(r[1]) && isFinite(i[0]) && isFinite(i[1])))
  71861. process.env.NODE_ENV !== "production" && console.error("Invalid boundingCoords");
  71862. else {
  71863. var a = this.projection;
  71864. if (a) {
  71865. var o = r[0], s = r[1], l = i[0], u = i[1];
  71866. r = [1 / 0, 1 / 0], i = [-1 / 0, -1 / 0];
  71867. var c = function(x, C, P, $) {
  71868. for (var T = P - x, E = $ - C, M = 0; M <= 100; M++) {
  71869. var R = M / 100, N = a.project([x + T * R, C + E * R]);
  71870. Cu(r, r, N), Tu(i, i, N);
  71871. }
  71872. };
  71873. c(o, s, l, s), c(l, s, l, u), c(l, u, o, u), c(o, u, l, s);
  71874. }
  71875. this.setBoundingRect(r[0], r[1], i[0] - r[0], i[1] - r[1]);
  71876. }
  71877. }
  71878. var f = this.getBoundingRect(), d = t.get("layoutCenter"), h = t.get("layoutSize"), p = e.getWidth(), v = e.getHeight(), g = f.width / f.height * this.aspectScale, m = !1, y, _;
  71879. d && h && (y = [ze(d[0], p), ze(d[1], v)], _ = ze(h, Math.min(p, v)), !isNaN(y[0]) && !isNaN(y[1]) && !isNaN(_) ? m = !0 : process.env.NODE_ENV !== "production" && console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));
  71880. var O;
  71881. if (m)
  71882. O = {}, g > 1 ? (O.width = _, O.height = _ / g) : (O.height = _, O.width = _ * g), O.y = y[1] - O.height / 2, O.x = y[0] - O.width / 2;
  71883. else {
  71884. var S = t.getBoxLayoutParams();
  71885. S.aspect = g, O = Mr(S, {
  71886. width: p,
  71887. height: v
  71888. });
  71889. }
  71890. this.setViewRect(O.x, O.y, O.width, O.height), this.setCenter(t.get("center"), e), this.setZoom(t.get("zoom"));
  71891. }
  71892. function rnt(t, e) {
  71893. F(e.get("geoCoord"), function(n, r) {
  71894. t.addGeoCoord(r, n);
  71895. });
  71896. }
  71897. var int = (
  71898. /** @class */
  71899. function() {
  71900. function t() {
  71901. this.dimensions = Nfe;
  71902. }
  71903. return t.prototype.create = function(e, n) {
  71904. var r = [];
  71905. function i(o) {
  71906. return {
  71907. nameProperty: o.get("nameProperty"),
  71908. aspectScale: o.get("aspectScale"),
  71909. projection: o.get("projection")
  71910. };
  71911. }
  71912. e.eachComponent("geo", function(o, s) {
  71913. var l = o.get("map"), u = new cU(l + s, l, _e({
  71914. nameMap: o.get("nameMap")
  71915. }, i(o)));
  71916. u.zoomLimit = o.get("scaleLimit"), r.push(u), o.coordinateSystem = u, u.model = o, u.resize = fU, u.resize(o, n);
  71917. }), e.eachSeries(function(o) {
  71918. var s = o.get("coordinateSystem");
  71919. if (s === "geo") {
  71920. var l = o.get("geoIndex") || 0;
  71921. o.coordinateSystem = r[l];
  71922. }
  71923. });
  71924. var a = {};
  71925. return e.eachSeriesByType("map", function(o) {
  71926. if (!o.getHostGeoModel()) {
  71927. var s = o.getMapType();
  71928. a[s] = a[s] || [], a[s].push(o);
  71929. }
  71930. }), F(a, function(o, s) {
  71931. var l = Ce(o, function(c) {
  71932. return c.get("nameMap");
  71933. }), u = new cU(s, s, _e({
  71934. nameMap: aP(l)
  71935. }, i(o[0])));
  71936. u.zoomLimit = Or.apply(null, Ce(o, function(c) {
  71937. return c.get("scaleLimit");
  71938. })), r.push(u), u.resize = fU, u.resize(o[0], n), F(o, function(c) {
  71939. c.coordinateSystem = u, rnt(u, c);
  71940. });
  71941. }), r;
  71942. }, t.prototype.getFilledRegions = function(e, n, r, i) {
  71943. for (var a = (e || []).slice(), o = Ze(), s = 0; s < a.length; s++)
  71944. o.set(a[s].name, a[s]);
  71945. var l = ju.load(n, r, i);
  71946. return F(l.regions, function(u) {
  71947. var c = u.name;
  71948. !o.get(c) && a.push({
  71949. name: c
  71950. });
  71951. }), a;
  71952. }, t;
  71953. }()
  71954. ), zfe = new int(), ant = (
  71955. /** @class */
  71956. function(t) {
  71957. le(e, t);
  71958. function e() {
  71959. var n = t !== null && t.apply(this, arguments) || this;
  71960. return n.type = e.type, n;
  71961. }
  71962. return e.prototype.init = function(n, r, i) {
  71963. var a = ju.getGeoResource(n.map);
  71964. if (a && a.type === "geoJSON") {
  71965. var o = n.itemStyle = n.itemStyle || {};
  71966. "color" in o || (o.color = "#eee");
  71967. }
  71968. this.mergeDefaultAndTheme(n, i), Hh(n, "label", ["show"]);
  71969. }, e.prototype.optionUpdated = function() {
  71970. var n = this, r = this.option;
  71971. r.regions = zfe.getFilledRegions(r.regions, r.map, r.nameMap, r.nameProperty);
  71972. var i = {};
  71973. this._optionModelMap = os(r.regions || [], function(a, o) {
  71974. var s = o.name;
  71975. return s && (a.set(s, new wn(o, n, n.ecModel)), o.selected && (i[s] = !0)), a;
  71976. }, Ze()), r.selectedMap || (r.selectedMap = i);
  71977. }, e.prototype.getRegionModel = function(n) {
  71978. return this._optionModelMap.get(n) || new wn(null, this, this.ecModel);
  71979. }, e.prototype.getFormattedLabel = function(n, r) {
  71980. var i = this.getRegionModel(n), a = r === "normal" ? i.get(["label", "formatter"]) : i.get(["emphasis", "label", "formatter"]), o = {
  71981. name: n
  71982. };
  71983. if (qe(a))
  71984. return o.status = r, a(o);
  71985. if (Ve(a))
  71986. return a.replace("{a}", n ?? "");
  71987. }, e.prototype.setZoom = function(n) {
  71988. this.option.zoom = n;
  71989. }, e.prototype.setCenter = function(n) {
  71990. this.option.center = n;
  71991. }, e.prototype.select = function(n) {
  71992. var r = this.option, i = r.selectedMode;
  71993. if (i) {
  71994. i !== "multiple" && (r.selectedMap = null);
  71995. var a = r.selectedMap || (r.selectedMap = {});
  71996. a[n] = !0;
  71997. }
  71998. }, e.prototype.unSelect = function(n) {
  71999. var r = this.option.selectedMap;
  72000. r && (r[n] = !1);
  72001. }, e.prototype.toggleSelected = function(n) {
  72002. this[this.isSelected(n) ? "unSelect" : "select"](n);
  72003. }, e.prototype.isSelected = function(n) {
  72004. var r = this.option.selectedMap;
  72005. return !!(r && r[n]);
  72006. }, e.type = "geo", e.layoutMode = "box", e.defaultOption = {
  72007. // zlevel: 0,
  72008. z: 0,
  72009. show: !0,
  72010. left: "center",
  72011. top: "center",
  72012. // Default value:
  72013. // for geoSVG source: 1,
  72014. // for geoJSON source: 0.75.
  72015. aspectScale: null,
  72016. // /// Layout with center and size
  72017. // If you want to put map in a fixed size box with right aspect ratio
  72018. // This two properties may be more convenient
  72019. // layoutCenter: [50%, 50%]
  72020. // layoutSize: 100
  72021. silent: !1,
  72022. // Map type
  72023. map: "",
  72024. // Define left-top, right-bottom coords to control view
  72025. // For example, [ [180, 90], [-180, -90] ]
  72026. boundingCoords: null,
  72027. // Default on center of map
  72028. center: null,
  72029. zoom: 1,
  72030. scaleLimit: null,
  72031. // selectedMode: false
  72032. label: {
  72033. show: !1,
  72034. color: "#000"
  72035. },
  72036. itemStyle: {
  72037. borderWidth: 0.5,
  72038. borderColor: "#444"
  72039. // Default color:
  72040. // + geoJSON: #eee
  72041. // + geoSVG: null (use SVG original `fill`)
  72042. // color: '#eee'
  72043. },
  72044. emphasis: {
  72045. label: {
  72046. show: !0,
  72047. color: "rgb(100,0,0)"
  72048. },
  72049. itemStyle: {
  72050. color: "rgba(255,215,0,0.8)"
  72051. }
  72052. },
  72053. select: {
  72054. label: {
  72055. show: !0,
  72056. color: "rgb(100,0,0)"
  72057. },
  72058. itemStyle: {
  72059. color: "rgba(255,215,0,0.8)"
  72060. }
  72061. },
  72062. regions: []
  72063. // tooltip: {
  72064. // show: false
  72065. // }
  72066. }, e;
  72067. }(At)
  72068. );
  72069. function dU(t, e) {
  72070. return t.pointToProjected ? t.pointToProjected(e) : t.pointToData(e);
  72071. }
  72072. function Q3(t, e, n, r) {
  72073. var i = t.getZoom(), a = t.getCenter(), o = e.zoom, s = t.projectedToPoint ? t.projectedToPoint(a) : t.dataToPoint(a);
  72074. if (e.dx != null && e.dy != null && (s[0] -= e.dx, s[1] -= e.dy, t.setCenter(dU(t, s), r)), o != null) {
  72075. if (n) {
  72076. var l = n.min || 0, u = n.max || 1 / 0;
  72077. o = Math.max(Math.min(i * o, u), l) / i;
  72078. }
  72079. t.scaleX *= o, t.scaleY *= o;
  72080. var c = (e.originX - t.x) * (o - 1), f = (e.originY - t.y) * (o - 1);
  72081. t.x -= c, t.y -= f, t.updateTransform(), t.setCenter(dU(t, s), r), t.setZoom(o * i);
  72082. }
  72083. return {
  72084. center: t.getCenter(),
  72085. zoom: t.getZoom()
  72086. };
  72087. }
  72088. var ont = (
  72089. /** @class */
  72090. function(t) {
  72091. le(e, t);
  72092. function e() {
  72093. var n = t !== null && t.apply(this, arguments) || this;
  72094. return n.type = e.type, n.focusBlurEnabled = !0, n;
  72095. }
  72096. return e.prototype.init = function(n, r) {
  72097. this._api = r;
  72098. }, e.prototype.render = function(n, r, i, a) {
  72099. if (this._model = n, !n.get("show")) {
  72100. this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
  72101. return;
  72102. }
  72103. this._mapDraw || (this._mapDraw = new Lfe(i));
  72104. var o = this._mapDraw;
  72105. o.draw(n, r, i, this, a), o.group.on("click", this._handleRegionClick, this), o.group.silent = n.get("silent"), this.group.add(o.group), this.updateSelectStatus(n, r, i);
  72106. }, e.prototype._handleRegionClick = function(n) {
  72107. var r;
  72108. sh(n.target, function(i) {
  72109. return (r = ft(i).eventData) != null;
  72110. }, !0), r && this._api.dispatchAction({
  72111. type: "geoToggleSelect",
  72112. geoId: this._model.id,
  72113. name: r.name
  72114. });
  72115. }, e.prototype.updateSelectStatus = function(n, r, i) {
  72116. var a = this;
  72117. this._mapDraw.group.traverse(function(o) {
  72118. var s = ft(o).eventData;
  72119. if (s)
  72120. return a._model.isSelected(s.name) ? i.enterSelect(o) : i.leaveSelect(o), !0;
  72121. });
  72122. }, e.prototype.findHighDownDispatchers = function(n) {
  72123. return this._mapDraw && this._mapDraw.findHighDownDispatchers(n, this._model);
  72124. }, e.prototype.dispose = function() {
  72125. this._mapDraw && this._mapDraw.remove();
  72126. }, e.type = "geo", e;
  72127. }(Ln)
  72128. );
  72129. function snt(t, e, n) {
  72130. ju.registerMap(t, e, n);
  72131. }
  72132. function Vfe(t) {
  72133. t.registerCoordinateSystem("geo", zfe), t.registerComponentModel(ant), t.registerComponentView(ont), t.registerImpl("registerMap", snt), t.registerImpl("getMap", function(n) {
  72134. return ju.getMapForUser(n);
  72135. });
  72136. function e(n, r) {
  72137. r.update = "geo:updateSelectStatus", t.registerAction(r, function(i, a) {
  72138. var o = {}, s = [];
  72139. return a.eachComponent({
  72140. mainType: "geo",
  72141. query: i
  72142. }, function(l) {
  72143. l[n](i.name);
  72144. var u = l.coordinateSystem;
  72145. F(u.regions, function(f) {
  72146. o[f.name] = l.isSelected(f.name) || !1;
  72147. });
  72148. var c = [];
  72149. F(o, function(f, d) {
  72150. o[d] && c.push(d);
  72151. }), s.push({
  72152. geoIndex: l.componentIndex,
  72153. // Use singular, the same naming convention as the event `selectchanged`.
  72154. name: c
  72155. });
  72156. }), {
  72157. selected: o,
  72158. allSelected: s,
  72159. name: i.name
  72160. };
  72161. });
  72162. }
  72163. e("toggleSelected", {
  72164. type: "geoToggleSelect",
  72165. event: "geoselectchanged"
  72166. }), e("select", {
  72167. type: "geoSelect",
  72168. event: "geoselected"
  72169. }), e("unSelect", {
  72170. type: "geoUnSelect",
  72171. event: "geounselected"
  72172. }), t.registerAction({
  72173. type: "geoRoam",
  72174. event: "geoRoam",
  72175. update: "updateTransform"
  72176. }, function(n, r, i) {
  72177. var a = n.componentType || "series";
  72178. r.eachComponent({
  72179. mainType: a,
  72180. query: n
  72181. }, function(o) {
  72182. var s = o.coordinateSystem;
  72183. if (s.type === "geo") {
  72184. var l = Q3(s, n, o.get("scaleLimit"), i);
  72185. o.setCenter && o.setCenter(l.center), o.setZoom && o.setZoom(l.zoom), a === "series" && F(o.seriesGroup, function(u) {
  72186. u.setCenter(l.center), u.setZoom(l.zoom);
  72187. });
  72188. }
  72189. });
  72190. });
  72191. }
  72192. function lnt(t) {
  72193. Mt(Vfe), t.registerChartView(qtt), t.registerSeriesModel(Ktt), t.registerLayout(tnt), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, ent), Bue("map", t.registerAction);
  72194. }
  72195. function unt(t) {
  72196. var e = t;
  72197. e.hierNode = {
  72198. defaultAncestor: null,
  72199. ancestor: e,
  72200. prelim: 0,
  72201. modifier: 0,
  72202. change: 0,
  72203. shift: 0,
  72204. i: 0,
  72205. thread: null
  72206. };
  72207. for (var n = [e], r, i; r = n.pop(); )
  72208. if (i = r.children, r.isExpand && i.length)
  72209. for (var a = i.length, o = a - 1; o >= 0; o--) {
  72210. var s = i[o];
  72211. s.hierNode = {
  72212. defaultAncestor: null,
  72213. ancestor: s,
  72214. prelim: 0,
  72215. modifier: 0,
  72216. change: 0,
  72217. shift: 0,
  72218. i: o,
  72219. thread: null
  72220. }, n.push(s);
  72221. }
  72222. }
  72223. function cnt(t, e) {
  72224. var n = t.isExpand ? t.children : [], r = t.parentNode.children, i = t.hierNode.i ? r[t.hierNode.i - 1] : null;
  72225. if (n.length) {
  72226. hnt(t);
  72227. var a = (n[0].hierNode.prelim + n[n.length - 1].hierNode.prelim) / 2;
  72228. i ? (t.hierNode.prelim = i.hierNode.prelim + e(t, i), t.hierNode.modifier = t.hierNode.prelim - a) : t.hierNode.prelim = a;
  72229. } else i && (t.hierNode.prelim = i.hierNode.prelim + e(t, i));
  72230. t.parentNode.hierNode.defaultAncestor = pnt(t, i, t.parentNode.hierNode.defaultAncestor || r[0], e);
  72231. }
  72232. function fnt(t) {
  72233. var e = t.hierNode.prelim + t.parentNode.hierNode.modifier;
  72234. t.setLayout({
  72235. x: e
  72236. }, !0), t.hierNode.modifier += t.parentNode.hierNode.modifier;
  72237. }
  72238. function hU(t) {
  72239. return arguments.length ? t : mnt;
  72240. }
  72241. function Sy(t, e) {
  72242. return t -= Math.PI / 2, {
  72243. x: e * Math.cos(t),
  72244. y: e * Math.sin(t)
  72245. };
  72246. }
  72247. function dnt(t, e) {
  72248. return Mr(t.getBoxLayoutParams(), {
  72249. width: e.getWidth(),
  72250. height: e.getHeight()
  72251. });
  72252. }
  72253. function hnt(t) {
  72254. for (var e = t.children, n = e.length, r = 0, i = 0; --n >= 0; ) {
  72255. var a = e[n];
  72256. a.hierNode.prelim += r, a.hierNode.modifier += r, i += a.hierNode.change, r += a.hierNode.shift + i;
  72257. }
  72258. }
  72259. function pnt(t, e, n, r) {
  72260. if (e) {
  72261. for (var i = t, a = t, o = a.parentNode.children[0], s = e, l = i.hierNode.modifier, u = a.hierNode.modifier, c = o.hierNode.modifier, f = s.hierNode.modifier; s = JM(s), a = eI(a), s && a; ) {
  72262. i = JM(i), o = eI(o), i.hierNode.ancestor = t;
  72263. var d = s.hierNode.prelim + f - a.hierNode.prelim - u + r(s, a);
  72264. d > 0 && (gnt(vnt(s, t, n), t, d), u += d, l += d), f += s.hierNode.modifier, u += a.hierNode.modifier, l += i.hierNode.modifier, c += o.hierNode.modifier;
  72265. }
  72266. s && !JM(i) && (i.hierNode.thread = s, i.hierNode.modifier += f - l), a && !eI(o) && (o.hierNode.thread = a, o.hierNode.modifier += u - c, n = t);
  72267. }
  72268. return n;
  72269. }
  72270. function JM(t) {
  72271. var e = t.children;
  72272. return e.length && t.isExpand ? e[e.length - 1] : t.hierNode.thread;
  72273. }
  72274. function eI(t) {
  72275. var e = t.children;
  72276. return e.length && t.isExpand ? e[0] : t.hierNode.thread;
  72277. }
  72278. function vnt(t, e, n) {
  72279. return t.hierNode.ancestor.parentNode === e.parentNode ? t.hierNode.ancestor : n;
  72280. }
  72281. function gnt(t, e, n) {
  72282. var r = n / (e.hierNode.i - t.hierNode.i);
  72283. e.hierNode.change -= r, e.hierNode.shift += n, e.hierNode.modifier += n, e.hierNode.prelim += n, t.hierNode.change += r;
  72284. }
  72285. function mnt(t, e) {
  72286. return t.parentNode === e.parentNode ? 1 : 2;
  72287. }
  72288. var ynt = (
  72289. /** @class */
  72290. /* @__PURE__ */ function() {
  72291. function t() {
  72292. this.parentPoint = [], this.childPoints = [];
  72293. }
  72294. return t;
  72295. }()
  72296. ), bnt = (
  72297. /** @class */
  72298. function(t) {
  72299. le(e, t);
  72300. function e(n) {
  72301. return t.call(this, n) || this;
  72302. }
  72303. return e.prototype.getDefaultStyle = function() {
  72304. return {
  72305. stroke: "#000",
  72306. fill: null
  72307. };
  72308. }, e.prototype.getDefaultShape = function() {
  72309. return new ynt();
  72310. }, e.prototype.buildPath = function(n, r) {
  72311. var i = r.childPoints, a = i.length, o = r.parentPoint, s = i[0], l = i[a - 1];
  72312. if (a === 1) {
  72313. n.moveTo(o[0], o[1]), n.lineTo(s[0], s[1]);
  72314. return;
  72315. }
  72316. var u = r.orient, c = u === "TB" || u === "BT" ? 0 : 1, f = 1 - c, d = ze(r.forkPosition, 1), h = [];
  72317. h[c] = o[c], h[f] = o[f] + (l[f] - o[f]) * d, n.moveTo(o[0], o[1]), n.lineTo(h[0], h[1]), n.moveTo(s[0], s[1]), h[c] = s[c], n.lineTo(h[0], h[1]), h[c] = l[c], n.lineTo(h[0], h[1]), n.lineTo(l[0], l[1]);
  72318. for (var p = 1; p < a - 1; p++) {
  72319. var v = i[p];
  72320. n.moveTo(v[0], v[1]), h[c] = v[c], n.lineTo(h[0], h[1]);
  72321. }
  72322. }, e;
  72323. }(Dt)
  72324. ), _nt = (
  72325. /** @class */
  72326. function(t) {
  72327. le(e, t);
  72328. function e() {
  72329. var n = t !== null && t.apply(this, arguments) || this;
  72330. return n.type = e.type, n._mainGroup = new ct(), n;
  72331. }
  72332. return e.prototype.init = function(n, r) {
  72333. this._controller = new x1(r.getZr()), this._controllerHost = {
  72334. target: this.group
  72335. }, this.group.add(this._mainGroup);
  72336. }, e.prototype.render = function(n, r, i) {
  72337. var a = n.getData(), o = n.layoutInfo, s = this._mainGroup, l = n.get("layout");
  72338. l === "radial" ? (s.x = o.x + o.width / 2, s.y = o.y + o.height / 2) : (s.x = o.x, s.y = o.y), this._updateViewCoordSys(n, i), this._updateController(n, r, i);
  72339. var u = this._data;
  72340. a.diff(u).add(function(c) {
  72341. pU(a, c) && vU(a, c, null, s, n);
  72342. }).update(function(c, f) {
  72343. var d = u.getItemGraphicEl(f);
  72344. if (!pU(a, c)) {
  72345. d && mU(u, f, d, s, n);
  72346. return;
  72347. }
  72348. vU(a, c, d, s, n);
  72349. }).remove(function(c) {
  72350. var f = u.getItemGraphicEl(c);
  72351. f && mU(u, c, f, s, n);
  72352. }).execute(), this._nodeScaleRatio = n.get("nodeScaleRatio"), this._updateNodeAndLinkScale(n), n.get("expandAndCollapse") === !0 && a.eachItemGraphicEl(function(c, f) {
  72353. c.off("click").on("click", function() {
  72354. i.dispatchAction({
  72355. type: "treeExpandAndCollapse",
  72356. seriesId: n.id,
  72357. dataIndex: f
  72358. });
  72359. });
  72360. }), this._data = a;
  72361. }, e.prototype._updateViewCoordSys = function(n, r) {
  72362. var i = n.getData(), a = [];
  72363. i.each(function(f) {
  72364. var d = i.getItemLayout(f);
  72365. d && !isNaN(d.x) && !isNaN(d.y) && a.push([+d.x, +d.y]);
  72366. });
  72367. var o = [], s = [];
  72368. yP(a, o, s);
  72369. var l = this._min, u = this._max;
  72370. s[0] - o[0] === 0 && (o[0] = l ? l[0] : o[0] - 1, s[0] = u ? u[0] : s[0] + 1), s[1] - o[1] === 0 && (o[1] = l ? l[1] : o[1] - 1, s[1] = u ? u[1] : s[1] + 1);
  72371. var c = n.coordinateSystem = new w1();
  72372. c.zoomLimit = n.get("scaleLimit"), c.setBoundingRect(o[0], o[1], s[0] - o[0], s[1] - o[1]), c.setCenter(n.get("center"), r), c.setZoom(n.get("zoom")), this.group.attr({
  72373. x: c.x,
  72374. y: c.y,
  72375. scaleX: c.scaleX,
  72376. scaleY: c.scaleY
  72377. }), this._min = o, this._max = s;
  72378. }, e.prototype._updateController = function(n, r, i) {
  72379. var a = this, o = this._controller, s = this._controllerHost, l = this.group;
  72380. o.setPointerChecker(function(u, c, f) {
  72381. var d = l.getBoundingRect();
  72382. return d.applyTransform(l.transform), d.contain(c, f) && !QP(u, i, n);
  72383. }), o.enable(n.get("roam")), s.zoomLimit = n.get("scaleLimit"), s.zoom = n.coordinateSystem.getZoom(), o.off("pan").off("zoom").on("pan", function(u) {
  72384. V3(s, u.dx, u.dy), i.dispatchAction({
  72385. seriesId: n.id,
  72386. type: "treeRoam",
  72387. dx: u.dx,
  72388. dy: u.dy
  72389. });
  72390. }).on("zoom", function(u) {
  72391. F3(s, u.scale, u.originX, u.originY), i.dispatchAction({
  72392. seriesId: n.id,
  72393. type: "treeRoam",
  72394. zoom: u.scale,
  72395. originX: u.originX,
  72396. originY: u.originY
  72397. }), a._updateNodeAndLinkScale(n), i.updateLabelLayout();
  72398. });
  72399. }, e.prototype._updateNodeAndLinkScale = function(n) {
  72400. var r = n.getData(), i = this._getNodeGlobalScale(n);
  72401. r.eachItemGraphicEl(function(a, o) {
  72402. a.setSymbolScale(i);
  72403. });
  72404. }, e.prototype._getNodeGlobalScale = function(n) {
  72405. var r = n.coordinateSystem;
  72406. if (r.type !== "view")
  72407. return 1;
  72408. var i = this._nodeScaleRatio, a = r.scaleX || 1, o = r.getZoom(), s = (o - 1) * i + 1;
  72409. return s / a;
  72410. }, e.prototype.dispose = function() {
  72411. this._controller && this._controller.dispose(), this._controllerHost = null;
  72412. }, e.prototype.remove = function() {
  72413. this._mainGroup.removeAll(), this._data = null;
  72414. }, e.type = "tree", e;
  72415. }(_n)
  72416. );
  72417. function pU(t, e) {
  72418. var n = t.getItemLayout(e);
  72419. return n && !isNaN(n.x) && !isNaN(n.y);
  72420. }
  72421. function vU(t, e, n, r, i) {
  72422. var a = !n, o = t.tree.getNodeByDataIndex(e), s = o.getModel(), l = o.getVisual("style").fill, u = o.isExpand === !1 && o.children.length !== 0 ? l : "#fff", c = t.tree.root, f = o.parentNode === c ? o : o.parentNode || o, d = t.getItemGraphicEl(f.dataIndex), h = f.getLayout(), p = d ? {
  72423. x: d.__oldX,
  72424. y: d.__oldY,
  72425. rawX: d.__radialOldRawX,
  72426. rawY: d.__radialOldRawY
  72427. } : h, v = o.getLayout();
  72428. a ? (n = new m1(t, e, null, {
  72429. symbolInnerColor: u,
  72430. useNameLabel: !0
  72431. }), n.x = p.x, n.y = p.y) : n.updateData(t, e, null, {
  72432. symbolInnerColor: u,
  72433. useNameLabel: !0
  72434. }), n.__radialOldRawX = n.__radialRawX, n.__radialOldRawY = n.__radialRawY, n.__radialRawX = v.rawX, n.__radialRawY = v.rawY, r.add(n), t.setItemGraphicEl(e, n), n.__oldX = n.x, n.__oldY = n.y, tn(n, {
  72435. x: v.x,
  72436. y: v.y
  72437. }, i);
  72438. var g = n.getSymbolPath();
  72439. if (i.get("layout") === "radial") {
  72440. var m = c.children[0], y = m.getLayout(), _ = m.children.length, O = void 0, S = void 0;
  72441. if (v.x === y.x && o.isExpand === !0 && m.children.length) {
  72442. var x = {
  72443. x: (m.children[0].getLayout().x + m.children[_ - 1].getLayout().x) / 2,
  72444. y: (m.children[0].getLayout().y + m.children[_ - 1].getLayout().y) / 2
  72445. };
  72446. O = Math.atan2(x.y - y.y, x.x - y.x), O < 0 && (O = Math.PI * 2 + O), S = x.x < y.x, S && (O = O - Math.PI);
  72447. } else
  72448. O = Math.atan2(v.y - y.y, v.x - y.x), O < 0 && (O = Math.PI * 2 + O), o.children.length === 0 || o.children.length !== 0 && o.isExpand === !1 ? (S = v.x < y.x, S && (O = O - Math.PI)) : (S = v.x > y.x, S || (O = O - Math.PI));
  72449. var C = S ? "left" : "right", P = s.getModel("label"), $ = P.get("rotate"), T = $ * (Math.PI / 180), E = g.getTextContent();
  72450. E && (g.setTextConfig({
  72451. position: P.get("position") || C,
  72452. rotation: $ == null ? -O : T,
  72453. origin: "center"
  72454. }), E.setStyle("verticalAlign", "middle"));
  72455. }
  72456. var M = s.get(["emphasis", "focus"]), R = M === "relative" ? Fb(o.getAncestorsIndices(), o.getDescendantIndices()) : M === "ancestor" ? o.getAncestorsIndices() : M === "descendant" ? o.getDescendantIndices() : null;
  72457. R && (ft(n).focus = R), Ont(i, o, c, n, p, h, v, r), n.__edge && (n.onHoverStateChange = function(N) {
  72458. if (N !== "blur") {
  72459. var I = o.parentNode && t.getItemGraphicEl(o.parentNode.dataIndex);
  72460. I && I.hoverState === u1 || IC(n.__edge, N);
  72461. }
  72462. });
  72463. }
  72464. function Ont(t, e, n, r, i, a, o, s) {
  72465. var l = e.getModel(), u = t.get("edgeShape"), c = t.get("layout"), f = t.getOrient(), d = t.get(["lineStyle", "curveness"]), h = t.get("edgeForkPosition"), p = l.getModel("lineStyle").getLineStyle(), v = r.__edge;
  72466. if (u === "curve")
  72467. e.parentNode && e.parentNode !== n && (v || (v = r.__edge = new f1({
  72468. shape: fL(c, f, d, i, i)
  72469. })), tn(v, {
  72470. shape: fL(c, f, d, a, o)
  72471. }, t));
  72472. else if (u === "polyline") {
  72473. if (c === "orthogonal") {
  72474. if (e !== n && e.children && e.children.length !== 0 && e.isExpand === !0) {
  72475. for (var g = e.children, m = [], y = 0; y < g.length; y++) {
  72476. var _ = g[y].getLayout();
  72477. m.push([_.x, _.y]);
  72478. }
  72479. v || (v = r.__edge = new bnt({
  72480. shape: {
  72481. parentPoint: [o.x, o.y],
  72482. childPoints: [[o.x, o.y]],
  72483. orient: f,
  72484. forkPosition: h
  72485. }
  72486. })), tn(v, {
  72487. shape: {
  72488. parentPoint: [o.x, o.y],
  72489. childPoints: m
  72490. }
  72491. }, t);
  72492. }
  72493. } else if (process.env.NODE_ENV !== "production")
  72494. throw new Error("The polyline edgeShape can only be used in orthogonal layout");
  72495. }
  72496. v && !(u === "polyline" && !e.isExpand) && (v.useStyle(it({
  72497. strokeNoScale: !0,
  72498. fill: null
  72499. }, p)), Ai(v, l, "lineStyle"), Zh(v), s.add(v));
  72500. }
  72501. function gU(t, e, n, r, i) {
  72502. var a = e.tree.root, o = Ffe(a, t), s = o.source, l = o.sourceLayout, u = e.getItemGraphicEl(t.dataIndex);
  72503. if (u) {
  72504. var c = e.getItemGraphicEl(s.dataIndex), f = c.__edge, d = u.__edge || (s.isExpand === !1 || s.children.length === 1 ? f : void 0), h = r.get("edgeShape"), p = r.get("layout"), v = r.get("orient"), g = r.get(["lineStyle", "curveness"]);
  72505. d && (h === "curve" ? _f(d, {
  72506. shape: fL(p, v, g, l, l),
  72507. style: {
  72508. opacity: 0
  72509. }
  72510. }, r, {
  72511. cb: function() {
  72512. n.remove(d);
  72513. },
  72514. removeOpt: i
  72515. }) : h === "polyline" && r.get("layout") === "orthogonal" && _f(d, {
  72516. shape: {
  72517. parentPoint: [l.x, l.y],
  72518. childPoints: [[l.x, l.y]]
  72519. },
  72520. style: {
  72521. opacity: 0
  72522. }
  72523. }, r, {
  72524. cb: function() {
  72525. n.remove(d);
  72526. },
  72527. removeOpt: i
  72528. }));
  72529. }
  72530. }
  72531. function Ffe(t, e) {
  72532. for (var n = e.parentNode === t ? e : e.parentNode || e, r; r = n.getLayout(), r == null; )
  72533. n = n.parentNode === t ? n : n.parentNode || n;
  72534. return {
  72535. source: n,
  72536. sourceLayout: r
  72537. };
  72538. }
  72539. function mU(t, e, n, r, i) {
  72540. var a = t.tree.getNodeByDataIndex(e), o = t.tree.root, s = Ffe(o, a).sourceLayout, l = {
  72541. duration: i.get("animationDurationUpdate"),
  72542. easing: i.get("animationEasingUpdate")
  72543. };
  72544. _f(n, {
  72545. x: s.x + 1,
  72546. y: s.y + 1
  72547. }, i, {
  72548. cb: function() {
  72549. r.remove(n), t.setItemGraphicEl(e, null);
  72550. },
  72551. removeOpt: l
  72552. }), n.fadeOut(null, t.hostModel, {
  72553. fadeLabel: !0,
  72554. animation: l
  72555. }), a.children.forEach(function(u) {
  72556. gU(u, t, r, i, l);
  72557. }), gU(a, t, r, i, l);
  72558. }
  72559. function fL(t, e, n, r, i) {
  72560. var a, o, s, l, u, c, f, d;
  72561. if (t === "radial") {
  72562. u = r.rawX, f = r.rawY, c = i.rawX, d = i.rawY;
  72563. var h = Sy(u, f), p = Sy(u, f + (d - f) * n), v = Sy(c, d + (f - d) * n), g = Sy(c, d);
  72564. return {
  72565. x1: h.x || 0,
  72566. y1: h.y || 0,
  72567. x2: g.x || 0,
  72568. y2: g.y || 0,
  72569. cpx1: p.x || 0,
  72570. cpy1: p.y || 0,
  72571. cpx2: v.x || 0,
  72572. cpy2: v.y || 0
  72573. };
  72574. } else
  72575. u = r.x, f = r.y, c = i.x, d = i.y, (e === "LR" || e === "RL") && (a = u + (c - u) * n, o = f, s = c + (u - c) * n, l = d), (e === "TB" || e === "BT") && (a = u, o = f + (d - f) * n, s = c, l = d + (f - d) * n);
  72576. return {
  72577. x1: u,
  72578. y1: f,
  72579. x2: c,
  72580. y2: d,
  72581. cpx1: a,
  72582. cpy1: o,
  72583. cpx2: s,
  72584. cpy2: l
  72585. };
  72586. }
  72587. var Ko = Ut();
  72588. function Wfe(t) {
  72589. var e = t.mainData, n = t.datas;
  72590. n || (n = {
  72591. main: e
  72592. }, t.datasAttr = {
  72593. main: "data"
  72594. }), t.datas = t.mainData = null, Qfe(e, n, t), F(n, function(r) {
  72595. F(e.TRANSFERABLE_METHODS, function(i) {
  72596. r.wrapMethod(i, vt(Snt, t));
  72597. });
  72598. }), e.wrapMethod("cloneShallow", vt(wnt, t)), F(e.CHANGABLE_METHODS, function(r) {
  72599. e.wrapMethod(r, vt(xnt, t));
  72600. }), at(n[e.dataType] === e);
  72601. }
  72602. function Snt(t, e) {
  72603. if (Pnt(this)) {
  72604. var n = _e({}, Ko(this).datas);
  72605. n[this.dataType] = e, Qfe(e, n, t);
  72606. } else
  72607. H3(e, this.dataType, Ko(this).mainData, t);
  72608. return e;
  72609. }
  72610. function xnt(t, e) {
  72611. return t.struct && t.struct.update(), e;
  72612. }
  72613. function wnt(t, e) {
  72614. return F(Ko(e).datas, function(n, r) {
  72615. n !== e && H3(n.cloneShallow(), r, e, t);
  72616. }), e;
  72617. }
  72618. function Cnt(t) {
  72619. var e = Ko(this).mainData;
  72620. return t == null || e == null ? e : Ko(e).datas[t];
  72621. }
  72622. function Tnt() {
  72623. var t = Ko(this).mainData;
  72624. return t == null ? [{
  72625. data: t
  72626. }] : Ce(kt(Ko(t).datas), function(e) {
  72627. return {
  72628. type: e,
  72629. data: Ko(t).datas[e]
  72630. };
  72631. });
  72632. }
  72633. function Pnt(t) {
  72634. return Ko(t).mainData === t;
  72635. }
  72636. function Qfe(t, e, n) {
  72637. Ko(t).datas = {}, F(e, function(r, i) {
  72638. H3(r, i, t, n);
  72639. });
  72640. }
  72641. function H3(t, e, n, r) {
  72642. Ko(n).datas[e] = t, Ko(t).mainData = n, t.dataType = e, r.struct && (t[r.structAttr] = r.struct, r.struct[r.datasAttr[e]] = t), t.getLinkedData = Cnt, t.getLinkedDataAll = Tnt;
  72643. }
  72644. var $nt = (
  72645. /** @class */
  72646. function() {
  72647. function t(e, n) {
  72648. this.depth = 0, this.height = 0, this.dataIndex = -1, this.children = [], this.viewChildren = [], this.isExpand = !1, this.name = e || "", this.hostTree = n;
  72649. }
  72650. return t.prototype.isRemoved = function() {
  72651. return this.dataIndex < 0;
  72652. }, t.prototype.eachNode = function(e, n, r) {
  72653. qe(e) && (r = n, n = e, e = null), e = e || {}, Ve(e) && (e = {
  72654. order: e
  72655. });
  72656. var i = e.order || "preorder", a = this[e.attr || "children"], o;
  72657. i === "preorder" && (o = n.call(r, this));
  72658. for (var s = 0; !o && s < a.length; s++)
  72659. a[s].eachNode(e, n, r);
  72660. i === "postorder" && n.call(r, this);
  72661. }, t.prototype.updateDepthAndHeight = function(e) {
  72662. var n = 0;
  72663. this.depth = e;
  72664. for (var r = 0; r < this.children.length; r++) {
  72665. var i = this.children[r];
  72666. i.updateDepthAndHeight(e + 1), i.height > n && (n = i.height);
  72667. }
  72668. this.height = n + 1;
  72669. }, t.prototype.getNodeById = function(e) {
  72670. if (this.getId() === e)
  72671. return this;
  72672. for (var n = 0, r = this.children, i = r.length; n < i; n++) {
  72673. var a = r[n].getNodeById(e);
  72674. if (a)
  72675. return a;
  72676. }
  72677. }, t.prototype.contains = function(e) {
  72678. if (e === this)
  72679. return !0;
  72680. for (var n = 0, r = this.children, i = r.length; n < i; n++) {
  72681. var a = r[n].contains(e);
  72682. if (a)
  72683. return a;
  72684. }
  72685. }, t.prototype.getAncestors = function(e) {
  72686. for (var n = [], r = e ? this : this.parentNode; r; )
  72687. n.push(r), r = r.parentNode;
  72688. return n.reverse(), n;
  72689. }, t.prototype.getAncestorsIndices = function() {
  72690. for (var e = [], n = this; n; )
  72691. e.push(n.dataIndex), n = n.parentNode;
  72692. return e.reverse(), e;
  72693. }, t.prototype.getDescendantIndices = function() {
  72694. var e = [];
  72695. return this.eachNode(function(n) {
  72696. e.push(n.dataIndex);
  72697. }), e;
  72698. }, t.prototype.getValue = function(e) {
  72699. var n = this.hostTree.data;
  72700. return n.getStore().get(n.getDimensionIndex(e || "value"), this.dataIndex);
  72701. }, t.prototype.setLayout = function(e, n) {
  72702. this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, e, n);
  72703. }, t.prototype.getLayout = function() {
  72704. return this.hostTree.data.getItemLayout(this.dataIndex);
  72705. }, t.prototype.getModel = function(e) {
  72706. if (!(this.dataIndex < 0)) {
  72707. var n = this.hostTree, r = n.data.getItemModel(this.dataIndex);
  72708. return r.getModel(e);
  72709. }
  72710. }, t.prototype.getLevelModel = function() {
  72711. return (this.hostTree.levelModels || [])[this.depth];
  72712. }, t.prototype.setVisual = function(e, n) {
  72713. this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, e, n);
  72714. }, t.prototype.getVisual = function(e) {
  72715. return this.hostTree.data.getItemVisual(this.dataIndex, e);
  72716. }, t.prototype.getRawIndex = function() {
  72717. return this.hostTree.data.getRawIndex(this.dataIndex);
  72718. }, t.prototype.getId = function() {
  72719. return this.hostTree.data.getId(this.dataIndex);
  72720. }, t.prototype.getChildIndex = function() {
  72721. if (this.parentNode) {
  72722. for (var e = this.parentNode.children, n = 0; n < e.length; ++n)
  72723. if (e[n] === this)
  72724. return n;
  72725. return -1;
  72726. }
  72727. return -1;
  72728. }, t.prototype.isAncestorOf = function(e) {
  72729. for (var n = e.parentNode; n; ) {
  72730. if (n === this)
  72731. return !0;
  72732. n = n.parentNode;
  72733. }
  72734. return !1;
  72735. }, t.prototype.isDescendantOf = function(e) {
  72736. return e !== this && e.isAncestorOf(this);
  72737. }, t;
  72738. }()
  72739. ), G3 = (
  72740. /** @class */
  72741. function() {
  72742. function t(e) {
  72743. this.type = "tree", this._nodes = [], this.hostModel = e;
  72744. }
  72745. return t.prototype.eachNode = function(e, n, r) {
  72746. this.root.eachNode(e, n, r);
  72747. }, t.prototype.getNodeByDataIndex = function(e) {
  72748. var n = this.data.getRawIndex(e);
  72749. return this._nodes[n];
  72750. }, t.prototype.getNodeById = function(e) {
  72751. return this.root.getNodeById(e);
  72752. }, t.prototype.update = function() {
  72753. for (var e = this.data, n = this._nodes, r = 0, i = n.length; r < i; r++)
  72754. n[r].dataIndex = -1;
  72755. for (var r = 0, i = e.count(); r < i; r++)
  72756. n[e.getRawIndex(r)].dataIndex = r;
  72757. }, t.prototype.clearLayouts = function() {
  72758. this.data.clearItemLayouts();
  72759. }, t.createTree = function(e, n, r) {
  72760. var i = new t(n), a = [], o = 1;
  72761. s(e);
  72762. function s(c, f) {
  72763. var d = c.value;
  72764. o = Math.max(o, Se(d) ? d.length : 1), a.push(c);
  72765. var h = new $nt(Br(c.name, ""), i);
  72766. f ? Ant(h, f) : i.root = h, i._nodes.push(h);
  72767. var p = c.children;
  72768. if (p)
  72769. for (var v = 0; v < p.length; v++)
  72770. s(p[v], h);
  72771. }
  72772. i.root.updateDepthAndHeight(0);
  72773. var l = Mm(a, {
  72774. coordDimensions: ["value"],
  72775. dimensionsCount: o
  72776. }).dimensions, u = new Wi(l, n);
  72777. return u.initData(a), r && r(u), Wfe({
  72778. mainData: u,
  72779. struct: i,
  72780. structAttr: "tree"
  72781. }), i.update(), i;
  72782. }, t;
  72783. }()
  72784. );
  72785. function Ant(t, e) {
  72786. var n = e.children;
  72787. t.parentNode !== e && (n.push(t), t.parentNode = e);
  72788. }
  72789. function s_(t, e, n) {
  72790. if (t && St(e, t.type) >= 0) {
  72791. var r = n.getData().tree.root, i = t.targetNode;
  72792. if (Ve(i) && (i = r.getNodeById(i)), i && r.contains(i))
  72793. return {
  72794. node: i
  72795. };
  72796. var a = t.targetNodeId;
  72797. if (a != null && (i = r.getNodeById(a)))
  72798. return {
  72799. node: i
  72800. };
  72801. }
  72802. }
  72803. function Hfe(t) {
  72804. for (var e = []; t; )
  72805. t = t.parentNode, t && e.push(t);
  72806. return e.reverse();
  72807. }
  72808. function j3(t, e) {
  72809. var n = Hfe(t);
  72810. return St(n, e) >= 0;
  72811. }
  72812. function GP(t, e) {
  72813. for (var n = []; t; ) {
  72814. var r = t.dataIndex;
  72815. n.push({
  72816. name: t.name,
  72817. dataIndex: r,
  72818. value: e.getRawValue(r)
  72819. }), t = t.parentNode;
  72820. }
  72821. return n.reverse(), n;
  72822. }
  72823. var Ent = (
  72824. /** @class */
  72825. function(t) {
  72826. le(e, t);
  72827. function e() {
  72828. var n = t !== null && t.apply(this, arguments) || this;
  72829. return n.hasSymbolVisual = !0, n.ignoreStyleOnData = !0, n;
  72830. }
  72831. return e.prototype.getInitialData = function(n) {
  72832. var r = {
  72833. name: n.name,
  72834. children: n.data
  72835. }, i = n.leaves || {}, a = new wn(i, this, this.ecModel), o = G3.createTree(r, this, s);
  72836. function s(f) {
  72837. f.wrapMethod("getItemModel", function(d, h) {
  72838. var p = o.getNodeByDataIndex(h);
  72839. return p && p.children.length && p.isExpand || (d.parentModel = a), d;
  72840. });
  72841. }
  72842. var l = 0;
  72843. o.eachNode("preorder", function(f) {
  72844. f.depth > l && (l = f.depth);
  72845. });
  72846. var u = n.expandAndCollapse, c = u && n.initialTreeDepth >= 0 ? n.initialTreeDepth : l;
  72847. return o.root.eachNode("preorder", function(f) {
  72848. var d = f.hostTree.data.getRawDataItem(f.dataIndex);
  72849. f.isExpand = d && d.collapsed != null ? !d.collapsed : f.depth <= c;
  72850. }), o.data;
  72851. }, e.prototype.getOrient = function() {
  72852. var n = this.get("orient");
  72853. return n === "horizontal" ? n = "LR" : n === "vertical" && (n = "TB"), n;
  72854. }, e.prototype.setZoom = function(n) {
  72855. this.option.zoom = n;
  72856. }, e.prototype.setCenter = function(n) {
  72857. this.option.center = n;
  72858. }, e.prototype.formatTooltip = function(n, r, i) {
  72859. for (var a = this.getData().tree, o = a.root.children[0], s = a.getNodeByDataIndex(n), l = s.getValue(), u = s.name; s && s !== o; )
  72860. u = s.parentNode.name + "." + u, s = s.parentNode;
  72861. return ti("nameValue", {
  72862. name: u,
  72863. value: l,
  72864. noValue: isNaN(l) || l == null
  72865. });
  72866. }, e.prototype.getDataParams = function(n) {
  72867. var r = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(n);
  72868. return r.treeAncestors = GP(i, this), r.collapsed = !i.isExpand, r;
  72869. }, e.type = "series.tree", e.layoutMode = "box", e.defaultOption = {
  72870. // zlevel: 0,
  72871. z: 2,
  72872. coordinateSystem: "view",
  72873. // the position of the whole view
  72874. left: "12%",
  72875. top: "12%",
  72876. right: "12%",
  72877. bottom: "12%",
  72878. // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
  72879. layout: "orthogonal",
  72880. // value can be 'polyline'
  72881. edgeShape: "curve",
  72882. edgeForkPosition: "50%",
  72883. // true | false | 'move' | 'scale', see module:component/helper/RoamController.
  72884. roam: !1,
  72885. // Symbol size scale ratio in roam
  72886. nodeScaleRatio: 0.4,
  72887. // Default on center of graph
  72888. center: null,
  72889. zoom: 1,
  72890. orient: "LR",
  72891. symbol: "emptyCircle",
  72892. symbolSize: 7,
  72893. expandAndCollapse: !0,
  72894. initialTreeDepth: 2,
  72895. lineStyle: {
  72896. color: "#ccc",
  72897. width: 1.5,
  72898. curveness: 0.5
  72899. },
  72900. itemStyle: {
  72901. color: "lightsteelblue",
  72902. // borderColor: '#c23531',
  72903. borderWidth: 1.5
  72904. },
  72905. label: {
  72906. show: !0
  72907. },
  72908. animationEasing: "linear",
  72909. animationDuration: 700,
  72910. animationDurationUpdate: 500
  72911. }, e;
  72912. }(Tn)
  72913. );
  72914. function Mnt(t, e, n) {
  72915. for (var r = [t], i = [], a; a = r.pop(); )
  72916. if (i.push(a), a.isExpand) {
  72917. var o = a.children;
  72918. if (o.length)
  72919. for (var s = 0; s < o.length; s++)
  72920. r.push(o[s]);
  72921. }
  72922. for (; a = i.pop(); )
  72923. e(a, n);
  72924. }
  72925. function G0(t, e) {
  72926. for (var n = [t], r; r = n.pop(); )
  72927. if (e(r), r.isExpand) {
  72928. var i = r.children;
  72929. if (i.length)
  72930. for (var a = i.length - 1; a >= 0; a--)
  72931. n.push(i[a]);
  72932. }
  72933. }
  72934. function Int(t, e) {
  72935. t.eachSeriesByType("tree", function(n) {
  72936. Dnt(n, e);
  72937. });
  72938. }
  72939. function Dnt(t, e) {
  72940. var n = dnt(t, e);
  72941. t.layoutInfo = n;
  72942. var r = t.get("layout"), i = 0, a = 0, o = null;
  72943. r === "radial" ? (i = 2 * Math.PI, a = Math.min(n.height, n.width) / 2, o = hU(function(_, O) {
  72944. return (_.parentNode === O.parentNode ? 1 : 2) / _.depth;
  72945. })) : (i = n.width, a = n.height, o = hU());
  72946. var s = t.getData().tree.root, l = s.children[0];
  72947. if (l) {
  72948. unt(s), Mnt(l, cnt, o), s.hierNode.modifier = -l.hierNode.prelim, G0(l, fnt);
  72949. var u = l, c = l, f = l;
  72950. G0(l, function(_) {
  72951. var O = _.getLayout().x;
  72952. O < u.getLayout().x && (u = _), O > c.getLayout().x && (c = _), _.depth > f.depth && (f = _);
  72953. });
  72954. var d = u === c ? 1 : o(u, c) / 2, h = d - u.getLayout().x, p = 0, v = 0, g = 0, m = 0;
  72955. if (r === "radial")
  72956. p = i / (c.getLayout().x + d + h), v = a / (f.depth - 1 || 1), G0(l, function(_) {
  72957. g = (_.getLayout().x + h) * p, m = (_.depth - 1) * v;
  72958. var O = Sy(g, m);
  72959. _.setLayout({
  72960. x: O.x,
  72961. y: O.y,
  72962. rawX: g,
  72963. rawY: m
  72964. }, !0);
  72965. });
  72966. else {
  72967. var y = t.getOrient();
  72968. y === "RL" || y === "LR" ? (v = a / (c.getLayout().x + d + h), p = i / (f.depth - 1 || 1), G0(l, function(_) {
  72969. m = (_.getLayout().x + h) * v, g = y === "LR" ? (_.depth - 1) * p : i - (_.depth - 1) * p, _.setLayout({
  72970. x: g,
  72971. y: m
  72972. }, !0);
  72973. })) : (y === "TB" || y === "BT") && (p = i / (c.getLayout().x + d + h), v = a / (f.depth - 1 || 1), G0(l, function(_) {
  72974. g = (_.getLayout().x + h) * p, m = y === "TB" ? (_.depth - 1) * v : a - (_.depth - 1) * v, _.setLayout({
  72975. x: g,
  72976. y: m
  72977. }, !0);
  72978. }));
  72979. }
  72980. }
  72981. }
  72982. function Rnt(t) {
  72983. t.eachSeriesByType("tree", function(e) {
  72984. var n = e.getData(), r = n.tree;
  72985. r.eachNode(function(i) {
  72986. var a = i.getModel(), o = a.getModel("itemStyle").getItemStyle(), s = n.ensureUniqueItemVisual(i.dataIndex, "style");
  72987. _e(s, o);
  72988. });
  72989. });
  72990. }
  72991. function knt(t) {
  72992. t.registerAction({
  72993. type: "treeExpandAndCollapse",
  72994. event: "treeExpandAndCollapse",
  72995. update: "update"
  72996. }, function(e, n) {
  72997. n.eachComponent({
  72998. mainType: "series",
  72999. subType: "tree",
  73000. query: e
  73001. }, function(r) {
  73002. var i = e.dataIndex, a = r.getData().tree, o = a.getNodeByDataIndex(i);
  73003. o.isExpand = !o.isExpand;
  73004. });
  73005. }), t.registerAction({
  73006. type: "treeRoam",
  73007. event: "treeRoam",
  73008. // Here we set 'none' instead of 'update', because roam action
  73009. // just need to update the transform matrix without having to recalculate
  73010. // the layout. So don't need to go through the whole update process, such
  73011. // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.
  73012. update: "none"
  73013. }, function(e, n, r) {
  73014. n.eachComponent({
  73015. mainType: "series",
  73016. subType: "tree",
  73017. query: e
  73018. }, function(i) {
  73019. var a = i.coordinateSystem, o = Q3(a, e, void 0, r);
  73020. i.setCenter && i.setCenter(o.center), i.setZoom && i.setZoom(o.zoom);
  73021. });
  73022. });
  73023. }
  73024. function Lnt(t) {
  73025. t.registerChartView(_nt), t.registerSeriesModel(Ent), t.registerLayout(Int), t.registerVisual(Rnt), knt(t);
  73026. }
  73027. var yU = ["treemapZoomToNode", "treemapRender", "treemapMove"];
  73028. function Nnt(t) {
  73029. for (var e = 0; e < yU.length; e++)
  73030. t.registerAction({
  73031. type: yU[e],
  73032. update: "updateView"
  73033. }, fr);
  73034. t.registerAction({
  73035. type: "treemapRootToNode",
  73036. update: "updateView"
  73037. }, function(n, r) {
  73038. r.eachComponent({
  73039. mainType: "series",
  73040. subType: "treemap",
  73041. query: n
  73042. }, i);
  73043. function i(a, o) {
  73044. var s = ["treemapZoomToNode", "treemapRootToNode"], l = s_(n, s, a);
  73045. if (l) {
  73046. var u = a.getViewRoot();
  73047. u && (n.direction = j3(u, l.node) ? "rollUp" : "drillDown"), a.resetViewRoot(l.node);
  73048. }
  73049. }
  73050. });
  73051. }
  73052. function Gfe(t) {
  73053. var e = t.getData(), n = e.tree, r = {};
  73054. n.eachNode(function(i) {
  73055. for (var a = i; a && a.depth > 1; )
  73056. a = a.parentNode;
  73057. var o = zk(t.ecModel, a.name || a.dataIndex + "", r);
  73058. i.setVisual("decal", o);
  73059. });
  73060. }
  73061. var Bnt = (
  73062. /** @class */
  73063. function(t) {
  73064. le(e, t);
  73065. function e() {
  73066. var n = t !== null && t.apply(this, arguments) || this;
  73067. return n.type = e.type, n.preventUsingHoverLayer = !0, n;
  73068. }
  73069. return e.prototype.getInitialData = function(n, r) {
  73070. var i = {
  73071. name: n.name,
  73072. children: n.data
  73073. };
  73074. jfe(i);
  73075. var a = n.levels || [], o = this.designatedVisualItemStyle = {}, s = new wn({
  73076. itemStyle: o
  73077. }, this, r);
  73078. a = n.levels = znt(a, r);
  73079. var l = Ce(a || [], function(f) {
  73080. return new wn(f, s, r);
  73081. }, this), u = G3.createTree(i, this, c);
  73082. function c(f) {
  73083. f.wrapMethod("getItemModel", function(d, h) {
  73084. var p = u.getNodeByDataIndex(h), v = p ? l[p.depth] : null;
  73085. return d.parentModel = v || s, d;
  73086. });
  73087. }
  73088. return u.data;
  73089. }, e.prototype.optionUpdated = function() {
  73090. this.resetViewRoot();
  73091. }, e.prototype.formatTooltip = function(n, r, i) {
  73092. var a = this.getData(), o = this.getRawValue(n), s = a.getName(n);
  73093. return ti("nameValue", {
  73094. name: s,
  73095. value: o
  73096. });
  73097. }, e.prototype.getDataParams = function(n) {
  73098. var r = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(n);
  73099. return r.treeAncestors = GP(i, this), r.treePathInfo = r.treeAncestors, r;
  73100. }, e.prototype.setLayoutInfo = function(n) {
  73101. this.layoutInfo = this.layoutInfo || {}, _e(this.layoutInfo, n);
  73102. }, e.prototype.mapIdToIndex = function(n) {
  73103. var r = this._idIndexMap;
  73104. r || (r = this._idIndexMap = Ze(), this._idIndexMapCount = 0);
  73105. var i = r.get(n);
  73106. return i == null && r.set(n, i = this._idIndexMapCount++), i;
  73107. }, e.prototype.getViewRoot = function() {
  73108. return this._viewRoot;
  73109. }, e.prototype.resetViewRoot = function(n) {
  73110. n ? this._viewRoot = n : n = this._viewRoot;
  73111. var r = this.getRawData().tree.root;
  73112. (!n || n !== r && !r.contains(n)) && (this._viewRoot = r);
  73113. }, e.prototype.enableAriaDecal = function() {
  73114. Gfe(this);
  73115. }, e.type = "series.treemap", e.layoutMode = "box", e.defaultOption = {
  73116. // Disable progressive rendering
  73117. progressive: 0,
  73118. // size: ['80%', '80%'], // deprecated, compatible with ec2.
  73119. left: "center",
  73120. top: "middle",
  73121. width: "80%",
  73122. height: "80%",
  73123. sort: !0,
  73124. clipWindow: "origin",
  73125. squareRatio: 0.5 * (1 + Math.sqrt(5)),
  73126. leafDepth: null,
  73127. drillDownIcon: "▶",
  73128. // to align specialized icon. ▷▶❒❐▼✚
  73129. zoomToNodeRatio: 0.32 * 0.32,
  73130. scaleLimit: null,
  73131. roam: !0,
  73132. nodeClick: "zoomToNode",
  73133. animation: !0,
  73134. animationDurationUpdate: 900,
  73135. animationEasing: "quinticInOut",
  73136. breadcrumb: {
  73137. show: !0,
  73138. height: 22,
  73139. left: "center",
  73140. top: "bottom",
  73141. // right
  73142. // bottom
  73143. emptyItemWidth: 25,
  73144. itemStyle: {
  73145. color: "rgba(0,0,0,0.7)",
  73146. textStyle: {
  73147. color: "#fff"
  73148. }
  73149. },
  73150. emphasis: {
  73151. itemStyle: {
  73152. color: "rgba(0,0,0,0.9)"
  73153. // '#5793f3',
  73154. }
  73155. }
  73156. },
  73157. label: {
  73158. show: !0,
  73159. // Do not use textDistance, for ellipsis rect just the same as treemap node rect.
  73160. distance: 0,
  73161. padding: 5,
  73162. position: "inside",
  73163. // formatter: null,
  73164. color: "#fff",
  73165. overflow: "truncate"
  73166. // align
  73167. // verticalAlign
  73168. },
  73169. upperLabel: {
  73170. show: !1,
  73171. position: [0, "50%"],
  73172. height: 20,
  73173. // formatter: null,
  73174. // color: '#fff',
  73175. overflow: "truncate",
  73176. // align: null,
  73177. verticalAlign: "middle"
  73178. },
  73179. itemStyle: {
  73180. color: null,
  73181. colorAlpha: null,
  73182. colorSaturation: null,
  73183. borderWidth: 0,
  73184. gapWidth: 0,
  73185. borderColor: "#fff",
  73186. borderColorSaturation: null
  73187. // If specified, borderColor will be ineffective, and the
  73188. // border color is evaluated by color of current node and
  73189. // borderColorSaturation.
  73190. },
  73191. emphasis: {
  73192. upperLabel: {
  73193. show: !0,
  73194. position: [0, "50%"],
  73195. overflow: "truncate",
  73196. verticalAlign: "middle"
  73197. }
  73198. },
  73199. visualDimension: 0,
  73200. visualMin: null,
  73201. visualMax: null,
  73202. color: [],
  73203. // level[n].color (if necessary).
  73204. // + Specify color list of each level. level[0].color would be global
  73205. // color list if not specified. (see method `setDefault`).
  73206. // + But set as a empty array to forbid fetch color from global palette
  73207. // when using nodeModel.get('color'), otherwise nodes on deep level
  73208. // will always has color palette set and are not able to inherit color
  73209. // from parent node.
  73210. // + TreemapSeries.color can not be set as 'none', otherwise effect
  73211. // legend color fetching (see seriesColor.js).
  73212. colorAlpha: null,
  73213. colorSaturation: null,
  73214. colorMappingBy: "index",
  73215. visibleMin: 10,
  73216. // be rendered. Only works when sort is 'asc' or 'desc'.
  73217. childrenVisibleMin: null,
  73218. // grandchildren will not show.
  73219. // Why grandchildren? If not grandchildren but children,
  73220. // some siblings show children and some not,
  73221. // the appearance may be mess and not consistent,
  73222. levels: []
  73223. // Each item: {
  73224. // visibleMin, itemStyle, visualDimension, label
  73225. // }
  73226. }, e;
  73227. }(Tn)
  73228. );
  73229. function jfe(t) {
  73230. var e = 0;
  73231. F(t.children, function(r) {
  73232. jfe(r);
  73233. var i = r.value;
  73234. Se(i) && (i = i[0]), e += i;
  73235. });
  73236. var n = t.value;
  73237. Se(n) && (n = n[0]), (n == null || isNaN(n)) && (n = e), n < 0 && (n = 0), Se(t.value) ? t.value[0] = n : t.value = n;
  73238. }
  73239. function znt(t, e) {
  73240. var n = Cn(e.get("color")), r = Cn(e.get(["aria", "decal", "decals"]));
  73241. if (n) {
  73242. t = t || [];
  73243. var i, a;
  73244. F(t, function(s) {
  73245. var l = new wn(s), u = l.get("color"), c = l.get("decal");
  73246. (l.get(["itemStyle", "color"]) || u && u !== "none") && (i = !0), (l.get(["itemStyle", "decal"]) || c && c !== "none") && (a = !0);
  73247. });
  73248. var o = t[0] || (t[0] = {});
  73249. return i || (o.color = n.slice()), !a && r && (o.decal = r.slice()), t;
  73250. }
  73251. }
  73252. var Vnt = 8, bU = 8, tI = 5, Fnt = (
  73253. /** @class */
  73254. function() {
  73255. function t(e) {
  73256. this.group = new ct(), e.add(this.group);
  73257. }
  73258. return t.prototype.render = function(e, n, r, i) {
  73259. var a = e.getModel("breadcrumb"), o = this.group;
  73260. if (o.removeAll(), !(!a.get("show") || !r)) {
  73261. var s = a.getModel("itemStyle"), l = a.getModel("emphasis"), u = s.getModel("textStyle"), c = l.getModel(["itemStyle", "textStyle"]), f = {
  73262. pos: {
  73263. left: a.get("left"),
  73264. right: a.get("right"),
  73265. top: a.get("top"),
  73266. bottom: a.get("bottom")
  73267. },
  73268. box: {
  73269. width: n.getWidth(),
  73270. height: n.getHeight()
  73271. },
  73272. emptyItemWidth: a.get("emptyItemWidth"),
  73273. totalWidth: 0,
  73274. renderList: []
  73275. };
  73276. this._prepare(r, f, u), this._renderContent(e, f, s, l, u, c, i), MP(o, f.pos, f.box);
  73277. }
  73278. }, t.prototype._prepare = function(e, n, r) {
  73279. for (var i = e; i; i = i.parentNode) {
  73280. var a = Br(i.getModel().get("name"), ""), o = r.getTextRect(a), s = Math.max(o.width + Vnt * 2, n.emptyItemWidth);
  73281. n.totalWidth += s + bU, n.renderList.push({
  73282. node: i,
  73283. text: a,
  73284. width: s
  73285. });
  73286. }
  73287. }, t.prototype._renderContent = function(e, n, r, i, a, o, s) {
  73288. for (var l = 0, u = n.emptyItemWidth, c = e.get(["breadcrumb", "height"]), f = $Ue(n.pos, n.box), d = n.totalWidth, h = n.renderList, p = i.getModel("itemStyle").getItemStyle(), v = h.length - 1; v >= 0; v--) {
  73289. var g = h[v], m = g.node, y = g.width, _ = g.text;
  73290. d > f.width && (d -= y - u, y = u, _ = null);
  73291. var O = new pa({
  73292. shape: {
  73293. points: Wnt(l, 0, y, c, v === h.length - 1, v === 0)
  73294. },
  73295. style: it(r.getItemStyle(), {
  73296. lineJoin: "bevel"
  73297. }),
  73298. textContent: new jt({
  73299. style: Mn(a, {
  73300. text: _
  73301. })
  73302. }),
  73303. textConfig: {
  73304. position: "inside"
  73305. },
  73306. z2: bm * 1e4,
  73307. onclick: vt(s, m)
  73308. });
  73309. O.disableLabelAnimation = !0, O.getTextContent().ensureState("emphasis").style = Mn(o, {
  73310. text: _
  73311. }), O.ensureState("emphasis").style = p, ur(O, i.get("focus"), i.get("blurScope"), i.get("disabled")), this.group.add(O), Qnt(O, e, m), l += y + bU;
  73312. }
  73313. }, t.prototype.remove = function() {
  73314. this.group.removeAll();
  73315. }, t;
  73316. }()
  73317. );
  73318. function Wnt(t, e, n, r, i, a) {
  73319. var o = [[i ? t : t - tI, e], [t + n, e], [t + n, e + r], [i ? t : t - tI, e + r]];
  73320. return !a && o.splice(2, 0, [t + n + tI, e + r / 2]), !i && o.push([t, e + r / 2]), o;
  73321. }
  73322. function Qnt(t, e, n) {
  73323. ft(t).eventData = {
  73324. componentType: "series",
  73325. componentSubType: "treemap",
  73326. componentIndex: e.componentIndex,
  73327. seriesIndex: e.seriesIndex,
  73328. seriesName: e.name,
  73329. seriesType: "treemap",
  73330. selfType: "breadcrumb",
  73331. nodeData: {
  73332. dataIndex: n && n.dataIndex,
  73333. name: n && n.name
  73334. },
  73335. treePathInfo: n && GP(n, e)
  73336. };
  73337. }
  73338. var Hnt = (
  73339. /** @class */
  73340. function() {
  73341. function t() {
  73342. this._storage = [], this._elExistsMap = {};
  73343. }
  73344. return t.prototype.add = function(e, n, r, i, a) {
  73345. return this._elExistsMap[e.id] ? !1 : (this._elExistsMap[e.id] = !0, this._storage.push({
  73346. el: e,
  73347. target: n,
  73348. duration: r,
  73349. delay: i,
  73350. easing: a
  73351. }), !0);
  73352. }, t.prototype.finished = function(e) {
  73353. return this._finishedCallback = e, this;
  73354. }, t.prototype.start = function() {
  73355. for (var e = this, n = this._storage.length, r = function() {
  73356. n--, n <= 0 && (e._storage.length = 0, e._elExistsMap = {}, e._finishedCallback && e._finishedCallback());
  73357. }, i = 0, a = this._storage.length; i < a; i++) {
  73358. var o = this._storage[i];
  73359. o.el.animateTo(o.target, {
  73360. duration: o.duration,
  73361. delay: o.delay,
  73362. easing: o.easing,
  73363. setToFinal: !0,
  73364. done: r,
  73365. aborted: r
  73366. });
  73367. }
  73368. return this;
  73369. }, t;
  73370. }()
  73371. );
  73372. function Gnt() {
  73373. return new Hnt();
  73374. }
  73375. var dL = ct, _U = Zt, OU = 3, SU = "label", xU = "upperLabel", jnt = bm * 10, Znt = bm * 2, Unt = bm * 3, Nd = jh([
  73376. ["fill", "color"],
  73377. // `borderColor` and `borderWidth` has been occupied,
  73378. // so use `stroke` to indicate the stroke of the rect.
  73379. ["stroke", "strokeColor"],
  73380. ["lineWidth", "strokeWidth"],
  73381. ["shadowBlur"],
  73382. ["shadowOffsetX"],
  73383. ["shadowOffsetY"],
  73384. ["shadowColor"]
  73385. // Option decal is in `DecalObject` but style.decal is in `PatternObject`.
  73386. // So do not transfer decal directly.
  73387. ]), wU = function(t) {
  73388. var e = Nd(t);
  73389. return e.stroke = e.fill = e.lineWidth = null, e;
  73390. }, iT = Ut(), Xnt = (
  73391. /** @class */
  73392. function(t) {
  73393. le(e, t);
  73394. function e() {
  73395. var n = t !== null && t.apply(this, arguments) || this;
  73396. return n.type = e.type, n._state = "ready", n._storage = j0(), n;
  73397. }
  73398. return e.prototype.render = function(n, r, i, a) {
  73399. var o = r.findComponents({
  73400. mainType: "series",
  73401. subType: "treemap",
  73402. query: a
  73403. });
  73404. if (!(St(o, n) < 0)) {
  73405. this.seriesModel = n, this.api = i, this.ecModel = r;
  73406. var s = ["treemapZoomToNode", "treemapRootToNode"], l = s_(a, s, n), u = a && a.type, c = n.layoutInfo, f = !this._oldTree, d = this._storage, h = u === "treemapRootToNode" && l && d ? {
  73407. rootNodeGroup: d.nodeGroup[l.node.getRawIndex()],
  73408. direction: a.direction
  73409. } : null, p = this._giveContainerGroup(c), v = n.get("animation"), g = this._doRender(p, n, h);
  73410. v && !f && (!u || u === "treemapZoomToNode" || u === "treemapRootToNode") ? this._doAnimation(p, g, n, h) : g.renderFinally(), this._resetController(i), this._renderBreadcrumb(n, i, l);
  73411. }
  73412. }, e.prototype._giveContainerGroup = function(n) {
  73413. var r = this._containerGroup;
  73414. return r || (r = this._containerGroup = new dL(), this._initEvents(r), this.group.add(r)), r.x = n.x, r.y = n.y, r;
  73415. }, e.prototype._doRender = function(n, r, i) {
  73416. var a = r.getData().tree, o = this._oldTree, s = j0(), l = j0(), u = this._storage, c = [];
  73417. function f(y, _, O, S) {
  73418. return Ynt(r, l, u, i, s, c, y, _, O, S);
  73419. }
  73420. v(a.root ? [a.root] : [], o && o.root ? [o.root] : [], n, a === o || !o, 0);
  73421. var d = g(u);
  73422. if (this._oldTree = a, this._storage = l, this._controllerHost) {
  73423. var h = this.seriesModel.layoutInfo, p = a.root.getLayout();
  73424. p.width === h.width && p.height === h.height && (this._controllerHost.zoom = 1);
  73425. }
  73426. return {
  73427. lastsForAnimation: s,
  73428. willDeleteEls: d,
  73429. renderFinally: m
  73430. };
  73431. function v(y, _, O, S, x) {
  73432. S ? (_ = y, F(y, function($, T) {
  73433. !$.isRemoved() && P(T, T);
  73434. })) : new Qu(_, y, C, C).add(P).update(P).remove(vt(P, null)).execute();
  73435. function C($) {
  73436. return $.getId();
  73437. }
  73438. function P($, T) {
  73439. var E = $ != null ? y[$] : null, M = T != null ? _[T] : null, R = f(E, M, O, x);
  73440. R && v(E && E.viewChildren || [], M && M.viewChildren || [], R, S, x + 1);
  73441. }
  73442. }
  73443. function g(y) {
  73444. var _ = j0();
  73445. return y && F(y, function(O, S) {
  73446. var x = _[S];
  73447. F(O, function(C) {
  73448. C && (x.push(C), iT(C).willDelete = !0);
  73449. });
  73450. }), _;
  73451. }
  73452. function m() {
  73453. F(d, function(y) {
  73454. F(y, function(_) {
  73455. _.parent && _.parent.remove(_);
  73456. });
  73457. }), F(c, function(y) {
  73458. y.invisible = !0, y.dirty();
  73459. });
  73460. }
  73461. }, e.prototype._doAnimation = function(n, r, i, a) {
  73462. var o = i.get("animationDurationUpdate"), s = i.get("animationEasing"), l = (qe(o) ? 0 : o) || 0, u = (qe(s) ? null : s) || "cubicOut", c = Gnt();
  73463. F(r.willDeleteEls, function(f, d) {
  73464. F(f, function(h, p) {
  73465. if (!h.invisible) {
  73466. var v = h.parent, g, m = iT(v);
  73467. if (a && a.direction === "drillDown")
  73468. g = v === a.rootNodeGroup ? {
  73469. shape: {
  73470. x: 0,
  73471. y: 0,
  73472. width: m.nodeWidth,
  73473. height: m.nodeHeight
  73474. },
  73475. style: {
  73476. opacity: 0
  73477. }
  73478. } : {
  73479. style: {
  73480. opacity: 0
  73481. }
  73482. };
  73483. else {
  73484. var y = 0, _ = 0;
  73485. m.willDelete || (y = m.nodeWidth / 2, _ = m.nodeHeight / 2), g = d === "nodeGroup" ? {
  73486. x: y,
  73487. y: _,
  73488. style: {
  73489. opacity: 0
  73490. }
  73491. } : {
  73492. shape: {
  73493. x: y,
  73494. y: _,
  73495. width: 0,
  73496. height: 0
  73497. },
  73498. style: {
  73499. opacity: 0
  73500. }
  73501. };
  73502. }
  73503. g && c.add(h, g, l, 0, u);
  73504. }
  73505. });
  73506. }), F(this._storage, function(f, d) {
  73507. F(f, function(h, p) {
  73508. var v = r.lastsForAnimation[d][p], g = {};
  73509. v && (h instanceof ct ? v.oldX != null && (g.x = h.x, g.y = h.y, h.x = v.oldX, h.y = v.oldY) : (v.oldShape && (g.shape = _e({}, h.shape), h.setShape(v.oldShape)), v.fadein ? (h.setStyle("opacity", 0), g.style = {
  73510. opacity: 1
  73511. }) : h.style.opacity !== 1 && (g.style = {
  73512. opacity: 1
  73513. })), c.add(h, g, l, 0, u));
  73514. });
  73515. }, this), this._state = "animating", c.finished(We(function() {
  73516. this._state = "ready", r.renderFinally();
  73517. }, this)).start();
  73518. }, e.prototype._resetController = function(n) {
  73519. var r = this._controller, i = this._controllerHost;
  73520. i || (this._controllerHost = {
  73521. target: this.group
  73522. }, i = this._controllerHost), r || (r = this._controller = new x1(n.getZr()), r.enable(this.seriesModel.get("roam")), i.zoomLimit = this.seriesModel.get("scaleLimit"), i.zoom = this.seriesModel.get("zoom"), r.on("pan", We(this._onPan, this)), r.on("zoom", We(this._onZoom, this)));
  73523. var a = new bt(0, 0, n.getWidth(), n.getHeight());
  73524. r.setPointerChecker(function(o, s, l) {
  73525. return a.contain(s, l);
  73526. });
  73527. }, e.prototype._clearController = function() {
  73528. var n = this._controller;
  73529. this._controllerHost = null, n && (n.dispose(), n = null);
  73530. }, e.prototype._onPan = function(n) {
  73531. if (this._state !== "animating" && (Math.abs(n.dx) > OU || Math.abs(n.dy) > OU)) {
  73532. var r = this.seriesModel.getData().tree.root;
  73533. if (!r)
  73534. return;
  73535. var i = r.getLayout();
  73536. if (!i)
  73537. return;
  73538. this.api.dispatchAction({
  73539. type: "treemapMove",
  73540. from: this.uid,
  73541. seriesId: this.seriesModel.id,
  73542. rootRect: {
  73543. x: i.x + n.dx,
  73544. y: i.y + n.dy,
  73545. width: i.width,
  73546. height: i.height
  73547. }
  73548. });
  73549. }
  73550. }, e.prototype._onZoom = function(n) {
  73551. var r = n.originX, i = n.originY, a = n.scale;
  73552. if (this._state !== "animating") {
  73553. var o = this.seriesModel.getData().tree.root;
  73554. if (!o)
  73555. return;
  73556. var s = o.getLayout();
  73557. if (!s)
  73558. return;
  73559. var l = new bt(s.x, s.y, s.width, s.height), u = null, c = this._controllerHost;
  73560. u = c.zoomLimit;
  73561. var f = c.zoom = c.zoom || 1;
  73562. if (f *= a, u) {
  73563. var d = u.min || 0, h = u.max || 1 / 0;
  73564. f = Math.max(Math.min(h, f), d);
  73565. }
  73566. var p = f / c.zoom;
  73567. c.zoom = f;
  73568. var v = this.seriesModel.layoutInfo;
  73569. r -= v.x, i -= v.y;
  73570. var g = Na();
  73571. Gs(g, g, [-r, -i]), uP(g, g, [p, p]), Gs(g, g, [r, i]), l.applyTransform(g), this.api.dispatchAction({
  73572. type: "treemapRender",
  73573. from: this.uid,
  73574. seriesId: this.seriesModel.id,
  73575. rootRect: {
  73576. x: l.x,
  73577. y: l.y,
  73578. width: l.width,
  73579. height: l.height
  73580. }
  73581. });
  73582. }
  73583. }, e.prototype._initEvents = function(n) {
  73584. var r = this;
  73585. n.on("click", function(i) {
  73586. if (r._state === "ready") {
  73587. var a = r.seriesModel.get("nodeClick", !0);
  73588. if (a) {
  73589. var o = r.findTarget(i.offsetX, i.offsetY);
  73590. if (o) {
  73591. var s = o.node;
  73592. if (s.getLayout().isLeafRoot)
  73593. r._rootToNode(o);
  73594. else if (a === "zoomToNode")
  73595. r._zoomToNode(o);
  73596. else if (a === "link") {
  73597. var l = s.hostTree.data.getItemModel(s.dataIndex), u = l.get("link", !0), c = l.get("target", !0) || "blank";
  73598. u && BC(u, c);
  73599. }
  73600. }
  73601. }
  73602. }
  73603. }, this);
  73604. }, e.prototype._renderBreadcrumb = function(n, r, i) {
  73605. var a = this;
  73606. i || (i = n.get("leafDepth", !0) != null ? {
  73607. node: n.getViewRoot()
  73608. } : this.findTarget(r.getWidth() / 2, r.getHeight() / 2), i || (i = {
  73609. node: n.getData().tree.root
  73610. })), (this._breadcrumb || (this._breadcrumb = new Fnt(this.group))).render(n, r, i.node, function(o) {
  73611. a._state !== "animating" && (j3(n.getViewRoot(), o) ? a._rootToNode({
  73612. node: o
  73613. }) : a._zoomToNode({
  73614. node: o
  73615. }));
  73616. });
  73617. }, e.prototype.remove = function() {
  73618. this._clearController(), this._containerGroup && this._containerGroup.removeAll(), this._storage = j0(), this._state = "ready", this._breadcrumb && this._breadcrumb.remove();
  73619. }, e.prototype.dispose = function() {
  73620. this._clearController();
  73621. }, e.prototype._zoomToNode = function(n) {
  73622. this.api.dispatchAction({
  73623. type: "treemapZoomToNode",
  73624. from: this.uid,
  73625. seriesId: this.seriesModel.id,
  73626. targetNode: n.node
  73627. });
  73628. }, e.prototype._rootToNode = function(n) {
  73629. this.api.dispatchAction({
  73630. type: "treemapRootToNode",
  73631. from: this.uid,
  73632. seriesId: this.seriesModel.id,
  73633. targetNode: n.node
  73634. });
  73635. }, e.prototype.findTarget = function(n, r) {
  73636. var i, a = this.seriesModel.getViewRoot();
  73637. return a.eachNode({
  73638. attr: "viewChildren",
  73639. order: "preorder"
  73640. }, function(o) {
  73641. var s = this._storage.background[o.getRawIndex()];
  73642. if (s) {
  73643. var l = s.transformCoordToLocal(n, r), u = s.shape;
  73644. if (u.x <= l[0] && l[0] <= u.x + u.width && u.y <= l[1] && l[1] <= u.y + u.height)
  73645. i = {
  73646. node: o,
  73647. offsetX: l[0],
  73648. offsetY: l[1]
  73649. };
  73650. else
  73651. return !1;
  73652. }
  73653. }, this), i;
  73654. }, e.type = "treemap", e;
  73655. }(_n)
  73656. );
  73657. function j0() {
  73658. return {
  73659. nodeGroup: [],
  73660. background: [],
  73661. content: []
  73662. };
  73663. }
  73664. function Ynt(t, e, n, r, i, a, o, s, l, u) {
  73665. if (!o)
  73666. return;
  73667. var c = o.getLayout(), f = t.getData(), d = o.getModel();
  73668. if (f.setItemGraphicEl(o.dataIndex, null), !c || !c.isInView)
  73669. return;
  73670. var h = c.width, p = c.height, v = c.borderWidth, g = c.invisible, m = o.getRawIndex(), y = s && s.getRawIndex(), _ = o.viewChildren, O = c.upperHeight, S = _ && _.length, x = d.getModel("itemStyle"), C = d.getModel(["emphasis", "itemStyle"]), P = d.getModel(["blur", "itemStyle"]), $ = d.getModel(["select", "itemStyle"]), T = x.get("borderRadius") || 0, E = fe("nodeGroup", dL);
  73671. if (!E)
  73672. return;
  73673. if (l.add(E), E.x = c.x || 0, E.y = c.y || 0, E.markRedraw(), iT(E).nodeWidth = h, iT(E).nodeHeight = p, c.isAboveViewRoot)
  73674. return E;
  73675. var M = fe("background", _U, u, Znt);
  73676. M && H(E, M, S && c.upperLabelHeight);
  73677. var R = d.getModel("emphasis"), N = R.get("focus"), I = R.get("blurScope"), B = R.get("disabled"), Q = N === "ancestor" ? o.getAncestorsIndices() : N === "descendant" ? o.getDescendantIndices() : N;
  73678. if (S)
  73679. bf(E) && ah(E, !1), M && (ah(M, !B), f.setItemGraphicEl(o.dataIndex, M), Ek(M, Q, I));
  73680. else {
  73681. var W = fe("content", _U, u, Unt);
  73682. W && U(E, W), M.disableMorphing = !0, M && bf(M) && ah(M, !1), ah(E, !B), f.setItemGraphicEl(o.dataIndex, E), Ek(E, Q, I);
  73683. }
  73684. return E;
  73685. function H(se, he, re) {
  73686. var q = ft(he);
  73687. if (q.dataIndex = o.dataIndex, q.seriesIndex = t.seriesIndex, he.setShape({
  73688. x: 0,
  73689. y: 0,
  73690. width: h,
  73691. height: p,
  73692. r: T
  73693. }), g)
  73694. j(he);
  73695. else {
  73696. he.invisible = !1;
  73697. var K = o.getVisual("style"), de = K.stroke, xe = wU(x);
  73698. xe.fill = de;
  73699. var we = Nd(C);
  73700. we.fill = C.get("borderColor");
  73701. var He = Nd(P);
  73702. He.fill = P.get("borderColor");
  73703. var je = Nd($);
  73704. if (je.fill = $.get("borderColor"), re) {
  73705. var Be = h - 2 * v;
  73706. Y(
  73707. // PENDING: convert ZRColor to ColorString for text.
  73708. he,
  73709. de,
  73710. K.opacity,
  73711. {
  73712. x: v,
  73713. y: 0,
  73714. width: Be,
  73715. height: O
  73716. }
  73717. );
  73718. } else
  73719. he.removeTextContent();
  73720. he.setStyle(xe), he.ensureState("emphasis").style = we, he.ensureState("blur").style = He, he.ensureState("select").style = je, Zh(he);
  73721. }
  73722. se.add(he);
  73723. }
  73724. function U(se, he) {
  73725. var re = ft(he);
  73726. re.dataIndex = o.dataIndex, re.seriesIndex = t.seriesIndex;
  73727. var q = Math.max(h - 2 * v, 0), K = Math.max(p - 2 * v, 0);
  73728. if (he.culling = !0, he.setShape({
  73729. x: v,
  73730. y: v,
  73731. width: q,
  73732. height: K,
  73733. r: T
  73734. }), g)
  73735. j(he);
  73736. else {
  73737. he.invisible = !1;
  73738. var de = o.getVisual("style"), xe = de.fill, we = wU(x);
  73739. we.fill = xe, we.decal = de.decal;
  73740. var He = Nd(C), je = Nd(P), Be = Nd($);
  73741. Y(he, xe, de.opacity, null), he.setStyle(we), he.ensureState("emphasis").style = He, he.ensureState("blur").style = je, he.ensureState("select").style = Be, Zh(he);
  73742. }
  73743. se.add(he);
  73744. }
  73745. function j(se) {
  73746. !se.invisible && a.push(se);
  73747. }
  73748. function Y(se, he, re, q) {
  73749. var K = d.getModel(q ? xU : SU), de = Br(d.get("name"), null), xe = K.getShallow("show");
  73750. Ei(se, ei(d, q ? xU : SU), {
  73751. defaultText: xe ? de : null,
  73752. inheritColor: he,
  73753. defaultOpacity: re,
  73754. labelFetcher: t,
  73755. labelDataIndex: o.dataIndex
  73756. });
  73757. var we = se.getTextContent();
  73758. if (we) {
  73759. var He = we.style, je = sP(He.padding || 0);
  73760. q && (se.setTextConfig({
  73761. layoutRect: q
  73762. }), we.disableLabelLayout = !0), we.beforeUpdate = function() {
  73763. var Le = Math.max((q ? q.width : se.shape.width) - je[1] - je[3], 0), Pe = Math.max((q ? q.height : se.shape.height) - je[0] - je[2], 0);
  73764. (He.width !== Le || He.height !== Pe) && we.setStyle({
  73765. width: Le,
  73766. height: Pe
  73767. });
  73768. }, He.truncateMinChar = 2, He.lineOverflow = "truncate", ne(He, q, c);
  73769. var Be = we.getState("emphasis");
  73770. ne(Be ? Be.style : null, q, c);
  73771. }
  73772. }
  73773. function ne(se, he, re) {
  73774. var q = se ? se.text : null;
  73775. if (!he && re.isLeafRoot && q != null) {
  73776. var K = t.get("drillDownIcon", !0);
  73777. se.text = K ? K + " " + q : q;
  73778. }
  73779. }
  73780. function fe(se, he, re, q) {
  73781. var K = y != null && n[se][y], de = i[se];
  73782. return K ? (n[se][y] = null, ue(de, K)) : g || (K = new he(), K instanceof ls && (K.z2 = qnt(re, q)), ye(de, K)), e[se][m] = K;
  73783. }
  73784. function ue(se, he) {
  73785. var re = se[m] = {};
  73786. he instanceof dL ? (re.oldX = he.x, re.oldY = he.y) : re.oldShape = _e({}, he.shape);
  73787. }
  73788. function ye(se, he) {
  73789. var re = se[m] = {}, q = o.parentNode, K = he instanceof ct;
  73790. if (q && (!r || r.direction === "drillDown")) {
  73791. var de = 0, xe = 0, we = i.background[q.getRawIndex()];
  73792. !r && we && we.oldShape && (de = we.oldShape.width, xe = we.oldShape.height), K ? (re.oldX = 0, re.oldY = xe) : re.oldShape = {
  73793. x: de,
  73794. y: xe,
  73795. width: 0,
  73796. height: 0
  73797. };
  73798. }
  73799. re.fadein = !K;
  73800. }
  73801. }
  73802. function qnt(t, e) {
  73803. return t * jnt + e;
  73804. }
  73805. var l_ = F, Knt = nt, aT = -1, Kr = (
  73806. /** @class */
  73807. function() {
  73808. function t(e) {
  73809. var n = e.mappingMethod, r = e.type, i = this.option = ot(e);
  73810. this.type = r, this.mappingMethod = n, this._normalizeData = trt[n];
  73811. var a = t.visualHandlers[r];
  73812. this.applyVisual = a.applyVisual, this.getColorMapper = a.getColorMapper, this._normalizedToVisual = a._normalizedToVisual[n], n === "piecewise" ? (nI(i), Jnt(i)) : n === "category" ? i.categories ? ert(i) : nI(i, !0) : (at(n !== "linear" || i.dataExtent), nI(i));
  73813. }
  73814. return t.prototype.mapValueToVisual = function(e) {
  73815. var n = this._normalizeData(e);
  73816. return this._normalizedToVisual(n, e);
  73817. }, t.prototype.getNormalizer = function() {
  73818. return We(this._normalizeData, this);
  73819. }, t.listVisualTypes = function() {
  73820. return kt(t.visualHandlers);
  73821. }, t.isValidType = function(e) {
  73822. return t.visualHandlers.hasOwnProperty(e);
  73823. }, t.eachVisual = function(e, n, r) {
  73824. nt(e) ? F(e, n, r) : n.call(r, e);
  73825. }, t.mapVisual = function(e, n, r) {
  73826. var i, a = Se(e) ? [] : nt(e) ? {} : (i = !0, null);
  73827. return t.eachVisual(e, function(o, s) {
  73828. var l = n.call(r, o, s);
  73829. i ? a = l : a[s] = l;
  73830. }), a;
  73831. }, t.retrieveVisuals = function(e) {
  73832. var n = {}, r;
  73833. return e && l_(t.visualHandlers, function(i, a) {
  73834. e.hasOwnProperty(a) && (n[a] = e[a], r = !0);
  73835. }), r ? n : null;
  73836. }, t.prepareVisualTypes = function(e) {
  73837. if (Se(e))
  73838. e = e.slice();
  73839. else if (Knt(e)) {
  73840. var n = [];
  73841. l_(e, function(r, i) {
  73842. n.push(i);
  73843. }), e = n;
  73844. } else
  73845. return [];
  73846. return e.sort(function(r, i) {
  73847. return i === "color" && r !== "color" && r.indexOf("color") === 0 ? 1 : -1;
  73848. }), e;
  73849. }, t.dependsOn = function(e, n) {
  73850. return n === "color" ? !!(e && e.indexOf(n) === 0) : e === n;
  73851. }, t.findPieceIndex = function(e, n, r) {
  73852. for (var i, a = 1 / 0, o = 0, s = n.length; o < s; o++) {
  73853. var l = n[o].value;
  73854. if (l != null) {
  73855. if (l === e || Ve(l) && l === e + "")
  73856. return o;
  73857. r && d(l, o);
  73858. }
  73859. }
  73860. for (var o = 0, s = n.length; o < s; o++) {
  73861. var u = n[o], c = u.interval, f = u.close;
  73862. if (c) {
  73863. if (c[0] === -1 / 0) {
  73864. if (HS(f[1], e, c[1]))
  73865. return o;
  73866. } else if (c[1] === 1 / 0) {
  73867. if (HS(f[0], c[0], e))
  73868. return o;
  73869. } else if (HS(f[0], c[0], e) && HS(f[1], e, c[1]))
  73870. return o;
  73871. r && d(c[0], o), r && d(c[1], o);
  73872. }
  73873. }
  73874. if (r)
  73875. return e === 1 / 0 ? n.length - 1 : e === -1 / 0 ? 0 : i;
  73876. function d(h, p) {
  73877. var v = Math.abs(h - e);
  73878. v < a && (a = v, i = p);
  73879. }
  73880. }, t.visualHandlers = {
  73881. color: {
  73882. applyVisual: Z0("color"),
  73883. getColorMapper: function() {
  73884. var e = this.option;
  73885. return We(e.mappingMethod === "category" ? function(n, r) {
  73886. return !r && (n = this._normalizeData(n)), xy.call(this, n);
  73887. } : function(n, r, i) {
  73888. var a = !!i;
  73889. return !r && (n = this._normalizeData(n)), i = Ky(n, e.parsedVisual, i), a ? i : Bs(i, "rgba");
  73890. }, this);
  73891. },
  73892. _normalizedToVisual: {
  73893. linear: function(e) {
  73894. return Bs(Ky(e, this.option.parsedVisual), "rgba");
  73895. },
  73896. category: xy,
  73897. piecewise: function(e, n) {
  73898. var r = pL.call(this, n);
  73899. return r == null && (r = Bs(Ky(e, this.option.parsedVisual), "rgba")), r;
  73900. },
  73901. fixed: Bd
  73902. }
  73903. },
  73904. colorHue: QS(function(e, n) {
  73905. return Yv(e, n);
  73906. }),
  73907. colorSaturation: QS(function(e, n) {
  73908. return Yv(e, null, n);
  73909. }),
  73910. colorLightness: QS(function(e, n) {
  73911. return Yv(e, null, null, n);
  73912. }),
  73913. colorAlpha: QS(function(e, n) {
  73914. return Gb(e, n);
  73915. }),
  73916. decal: {
  73917. applyVisual: Z0("decal"),
  73918. _normalizedToVisual: {
  73919. linear: null,
  73920. category: xy,
  73921. piecewise: null,
  73922. fixed: null
  73923. }
  73924. },
  73925. opacity: {
  73926. applyVisual: Z0("opacity"),
  73927. _normalizedToVisual: hL([0, 1])
  73928. },
  73929. liftZ: {
  73930. applyVisual: Z0("liftZ"),
  73931. _normalizedToVisual: {
  73932. linear: Bd,
  73933. category: Bd,
  73934. piecewise: Bd,
  73935. fixed: Bd
  73936. }
  73937. },
  73938. symbol: {
  73939. applyVisual: function(e, n, r) {
  73940. var i = this.mapValueToVisual(e);
  73941. r("symbol", i);
  73942. },
  73943. _normalizedToVisual: {
  73944. linear: CU,
  73945. category: xy,
  73946. piecewise: function(e, n) {
  73947. var r = pL.call(this, n);
  73948. return r == null && (r = CU.call(this, e)), r;
  73949. },
  73950. fixed: Bd
  73951. }
  73952. },
  73953. symbolSize: {
  73954. applyVisual: Z0("symbolSize"),
  73955. _normalizedToVisual: hL([0, 1])
  73956. }
  73957. }, t;
  73958. }()
  73959. );
  73960. function Jnt(t) {
  73961. var e = t.pieceList;
  73962. t.hasSpecialVisual = !1, F(e, function(n, r) {
  73963. n.originIndex = r, n.visual != null && (t.hasSpecialVisual = !0);
  73964. });
  73965. }
  73966. function ert(t) {
  73967. var e = t.categories, n = t.categoryMap = {}, r = t.visual;
  73968. if (l_(e, function(o, s) {
  73969. n[o] = s;
  73970. }), !Se(r)) {
  73971. var i = [];
  73972. nt(r) ? l_(r, function(o, s) {
  73973. var l = n[s];
  73974. i[l ?? aT] = o;
  73975. }) : i[aT] = r, r = Zfe(t, i);
  73976. }
  73977. for (var a = e.length - 1; a >= 0; a--)
  73978. r[a] == null && (delete n[e[a]], e.pop());
  73979. }
  73980. function nI(t, e) {
  73981. var n = t.visual, r = [];
  73982. nt(n) ? l_(n, function(a) {
  73983. r.push(a);
  73984. }) : n != null && r.push(n);
  73985. var i = {
  73986. color: 1,
  73987. symbol: 1
  73988. };
  73989. !e && r.length === 1 && !i.hasOwnProperty(t.type) && (r[1] = r[0]), Zfe(t, r);
  73990. }
  73991. function QS(t) {
  73992. return {
  73993. applyVisual: function(e, n, r) {
  73994. var i = this.mapValueToVisual(e);
  73995. r("color", t(n("color"), i));
  73996. },
  73997. _normalizedToVisual: hL([0, 1])
  73998. };
  73999. }
  74000. function CU(t) {
  74001. var e = this.option.visual;
  74002. return e[Math.round(gn(t, [0, 1], [0, e.length - 1], !0))] || {};
  74003. }
  74004. function Z0(t) {
  74005. return function(e, n, r) {
  74006. r(t, this.mapValueToVisual(e));
  74007. };
  74008. }
  74009. function xy(t) {
  74010. var e = this.option.visual;
  74011. return e[this.option.loop && t !== aT ? t % e.length : t];
  74012. }
  74013. function Bd() {
  74014. return this.option.visual[0];
  74015. }
  74016. function hL(t) {
  74017. return {
  74018. linear: function(e) {
  74019. return gn(e, t, this.option.visual, !0);
  74020. },
  74021. category: xy,
  74022. piecewise: function(e, n) {
  74023. var r = pL.call(this, n);
  74024. return r == null && (r = gn(e, t, this.option.visual, !0)), r;
  74025. },
  74026. fixed: Bd
  74027. };
  74028. }
  74029. function pL(t) {
  74030. var e = this.option, n = e.pieceList;
  74031. if (e.hasSpecialVisual) {
  74032. var r = Kr.findPieceIndex(t, n), i = n[r];
  74033. if (i && i.visual)
  74034. return i.visual[this.type];
  74035. }
  74036. }
  74037. function Zfe(t, e) {
  74038. return t.visual = e, t.type === "color" && (t.parsedVisual = Ce(e, function(n) {
  74039. var r = oa(n);
  74040. return !r && process.env.NODE_ENV !== "production" && nr("'" + n + "' is an illegal color, fallback to '#000000'", !0), r || [0, 0, 0, 1];
  74041. })), e;
  74042. }
  74043. var trt = {
  74044. linear: function(t) {
  74045. return gn(t, this.option.dataExtent, [0, 1], !0);
  74046. },
  74047. piecewise: function(t) {
  74048. var e = this.option.pieceList, n = Kr.findPieceIndex(t, e, !0);
  74049. if (n != null)
  74050. return gn(n, [0, e.length - 1], [0, 1], !0);
  74051. },
  74052. category: function(t) {
  74053. var e = this.option.categories ? this.option.categoryMap[t] : t;
  74054. return e ?? aT;
  74055. },
  74056. fixed: fr
  74057. };
  74058. function HS(t, e, n) {
  74059. return t ? e <= n : e < n;
  74060. }
  74061. var nrt = "itemStyle", Ufe = Ut();
  74062. const rrt = {
  74063. seriesType: "treemap",
  74064. reset: function(t) {
  74065. var e = t.getData().tree, n = e.root;
  74066. n.isRemoved() || Xfe(
  74067. n,
  74068. // Visual should calculate from tree root but not view root.
  74069. {},
  74070. t.getViewRoot().getAncestors(),
  74071. t
  74072. );
  74073. }
  74074. };
  74075. function Xfe(t, e, n, r) {
  74076. var i = t.getModel(), a = t.getLayout(), o = t.hostTree.data;
  74077. if (!(!a || a.invisible || !a.isInView)) {
  74078. var s = i.getModel(nrt), l = irt(s, e, r), u = o.ensureUniqueItemVisual(t.dataIndex, "style"), c = s.get("borderColor"), f = s.get("borderColorSaturation"), d;
  74079. f != null && (d = TU(l), c = art(f, d)), u.stroke = c;
  74080. var h = t.viewChildren;
  74081. if (!h || !h.length)
  74082. d = TU(l), u.fill = d;
  74083. else {
  74084. var p = ort(t, i, a, s, l, h);
  74085. F(h, function(v, g) {
  74086. if (v.depth >= n.length || v === n[v.depth]) {
  74087. var m = srt(i, l, v, g, p, r);
  74088. Xfe(v, m, n, r);
  74089. }
  74090. });
  74091. }
  74092. }
  74093. }
  74094. function irt(t, e, n) {
  74095. var r = _e({}, e), i = n.designatedVisualItemStyle;
  74096. return F(["color", "colorAlpha", "colorSaturation"], function(a) {
  74097. i[a] = e[a];
  74098. var o = t.get(a);
  74099. i[a] = null, o != null && (r[a] = o);
  74100. }), r;
  74101. }
  74102. function TU(t) {
  74103. var e = rI(t, "color");
  74104. if (e) {
  74105. var n = rI(t, "colorAlpha"), r = rI(t, "colorSaturation");
  74106. return r && (e = Yv(e, null, null, r)), n && (e = Gb(e, n)), e;
  74107. }
  74108. }
  74109. function art(t, e) {
  74110. return e != null ? Yv(e, null, null, t) : null;
  74111. }
  74112. function rI(t, e) {
  74113. var n = t[e];
  74114. if (n != null && n !== "none")
  74115. return n;
  74116. }
  74117. function ort(t, e, n, r, i, a) {
  74118. if (!(!a || !a.length)) {
  74119. var o = iI(e, "color") || i.color != null && i.color !== "none" && (iI(e, "colorAlpha") || iI(e, "colorSaturation"));
  74120. if (o) {
  74121. var s = e.get("visualMin"), l = e.get("visualMax"), u = n.dataExtent.slice();
  74122. s != null && s < u[0] && (u[0] = s), l != null && l > u[1] && (u[1] = l);
  74123. var c = e.get("colorMappingBy"), f = {
  74124. type: o.name,
  74125. dataExtent: u,
  74126. visual: o.range
  74127. };
  74128. f.type === "color" && (c === "index" || c === "id") ? (f.mappingMethod = "category", f.loop = !0) : f.mappingMethod = "linear";
  74129. var d = new Kr(f);
  74130. return Ufe(d).drColorMappingBy = c, d;
  74131. }
  74132. }
  74133. }
  74134. function iI(t, e) {
  74135. var n = t.get(e);
  74136. return Se(n) && n.length ? {
  74137. name: e,
  74138. range: n
  74139. } : null;
  74140. }
  74141. function srt(t, e, n, r, i, a) {
  74142. var o = _e({}, e);
  74143. if (i) {
  74144. var s = i.type, l = s === "color" && Ufe(i).drColorMappingBy, u = l === "index" ? r : l === "id" ? a.mapIdToIndex(n.getId()) : n.getValue(t.get("visualDimension"));
  74145. o[s] = i.mapValueToVisual(u);
  74146. }
  74147. return o;
  74148. }
  74149. var u_ = Math.max, oT = Math.min, PU = Or, Z3 = F, Yfe = ["itemStyle", "borderWidth"], lrt = ["itemStyle", "gapWidth"], urt = ["upperLabel", "show"], crt = ["upperLabel", "height"];
  74150. const frt = {
  74151. seriesType: "treemap",
  74152. reset: function(t, e, n, r) {
  74153. var i = n.getWidth(), a = n.getHeight(), o = t.option, s = Mr(t.getBoxLayoutParams(), {
  74154. width: n.getWidth(),
  74155. height: n.getHeight()
  74156. }), l = o.size || [], u = ze(PU(s.width, l[0]), i), c = ze(PU(s.height, l[1]), a), f = r && r.type, d = ["treemapZoomToNode", "treemapRootToNode"], h = s_(r, d, t), p = f === "treemapRender" || f === "treemapMove" ? r.rootRect : null, v = t.getViewRoot(), g = Hfe(v);
  74157. if (f !== "treemapMove") {
  74158. var m = f === "treemapZoomToNode" ? mrt(t, h, v, u, c) : p ? [p.width, p.height] : [u, c], y = o.sort;
  74159. y && y !== "asc" && y !== "desc" && (y = "desc");
  74160. var _ = {
  74161. squareRatio: o.squareRatio,
  74162. sort: y,
  74163. leafDepth: o.leafDepth
  74164. };
  74165. v.hostTree.clearLayouts();
  74166. var O = {
  74167. x: 0,
  74168. y: 0,
  74169. width: m[0],
  74170. height: m[1],
  74171. area: m[0] * m[1]
  74172. };
  74173. v.setLayout(O), qfe(v, _, !1, 0), O = v.getLayout(), Z3(g, function(x, C) {
  74174. var P = (g[C + 1] || v).getValue();
  74175. x.setLayout(_e({
  74176. dataExtent: [P, P],
  74177. borderWidth: 0,
  74178. upperHeight: 0
  74179. }, O));
  74180. });
  74181. }
  74182. var S = t.getData().tree.root;
  74183. S.setLayout(yrt(s, p, h), !0), t.setLayoutInfo(s), Kfe(
  74184. S,
  74185. // Transform to base element coordinate system.
  74186. new bt(-s.x, -s.y, i, a),
  74187. g,
  74188. v,
  74189. 0
  74190. );
  74191. }
  74192. };
  74193. function qfe(t, e, n, r) {
  74194. var i, a;
  74195. if (!t.isRemoved()) {
  74196. var o = t.getLayout();
  74197. i = o.width, a = o.height;
  74198. var s = t.getModel(), l = s.get(Yfe), u = s.get(lrt) / 2, c = Jfe(s), f = Math.max(l, c), d = l - u, h = f - u;
  74199. t.setLayout({
  74200. borderWidth: l,
  74201. upperHeight: f,
  74202. upperLabelHeight: c
  74203. }, !0), i = u_(i - 2 * d, 0), a = u_(a - d - h, 0);
  74204. var p = i * a, v = drt(t, s, p, e, n, r);
  74205. if (v.length) {
  74206. var g = {
  74207. x: d,
  74208. y: h,
  74209. width: i,
  74210. height: a
  74211. }, m = oT(i, a), y = 1 / 0, _ = [];
  74212. _.area = 0;
  74213. for (var O = 0, S = v.length; O < S; ) {
  74214. var x = v[O];
  74215. _.push(x), _.area += x.getLayout().area;
  74216. var C = grt(_, m, e.squareRatio);
  74217. C <= y ? (O++, y = C) : (_.area -= _.pop().getLayout().area, $U(_, m, g, u, !1), m = oT(g.width, g.height), _.length = _.area = 0, y = 1 / 0);
  74218. }
  74219. if (_.length && $U(_, m, g, u, !0), !n) {
  74220. var P = s.get("childrenVisibleMin");
  74221. P != null && p < P && (n = !0);
  74222. }
  74223. for (var O = 0, S = v.length; O < S; O++)
  74224. qfe(v[O], e, n, r + 1);
  74225. }
  74226. }
  74227. }
  74228. function drt(t, e, n, r, i, a) {
  74229. var o = t.children || [], s = r.sort;
  74230. s !== "asc" && s !== "desc" && (s = null);
  74231. var l = r.leafDepth != null && r.leafDepth <= a;
  74232. if (i && !l)
  74233. return t.viewChildren = [];
  74234. o = yn(o, function(h) {
  74235. return !h.isRemoved();
  74236. }), prt(o, s);
  74237. var u = vrt(e, o, s);
  74238. if (u.sum === 0)
  74239. return t.viewChildren = [];
  74240. if (u.sum = hrt(e, n, u.sum, s, o), u.sum === 0)
  74241. return t.viewChildren = [];
  74242. for (var c = 0, f = o.length; c < f; c++) {
  74243. var d = o[c].getValue() / u.sum * n;
  74244. o[c].setLayout({
  74245. area: d
  74246. });
  74247. }
  74248. return l && (o.length && t.setLayout({
  74249. isLeafRoot: !0
  74250. }, !0), o.length = 0), t.viewChildren = o, t.setLayout({
  74251. dataExtent: u.dataExtent
  74252. }, !0), o;
  74253. }
  74254. function hrt(t, e, n, r, i) {
  74255. if (!r)
  74256. return n;
  74257. for (var a = t.get("visibleMin"), o = i.length, s = o, l = o - 1; l >= 0; l--) {
  74258. var u = i[r === "asc" ? o - l - 1 : l].getValue();
  74259. u / n * e < a && (s = l, n -= u);
  74260. }
  74261. return r === "asc" ? i.splice(0, o - s) : i.splice(s, o - s), n;
  74262. }
  74263. function prt(t, e) {
  74264. return e && t.sort(function(n, r) {
  74265. var i = e === "asc" ? n.getValue() - r.getValue() : r.getValue() - n.getValue();
  74266. return i === 0 ? e === "asc" ? n.dataIndex - r.dataIndex : r.dataIndex - n.dataIndex : i;
  74267. }), t;
  74268. }
  74269. function vrt(t, e, n) {
  74270. for (var r = 0, i = 0, a = e.length; i < a; i++)
  74271. r += e[i].getValue();
  74272. var o = t.get("visualDimension"), s;
  74273. return !e || !e.length ? s = [NaN, NaN] : o === "value" && n ? (s = [e[e.length - 1].getValue(), e[0].getValue()], n === "asc" && s.reverse()) : (s = [1 / 0, -1 / 0], Z3(e, function(l) {
  74274. var u = l.getValue(o);
  74275. u < s[0] && (s[0] = u), u > s[1] && (s[1] = u);
  74276. })), {
  74277. sum: r,
  74278. dataExtent: s
  74279. };
  74280. }
  74281. function grt(t, e, n) {
  74282. for (var r = 0, i = 1 / 0, a = 0, o = void 0, s = t.length; a < s; a++)
  74283. o = t[a].getLayout().area, o && (o < i && (i = o), o > r && (r = o));
  74284. var l = t.area * t.area, u = e * e * n;
  74285. return l ? u_(u * r / l, l / (u * i)) : 1 / 0;
  74286. }
  74287. function $U(t, e, n, r, i) {
  74288. var a = e === n.width ? 0 : 1, o = 1 - a, s = ["x", "y"], l = ["width", "height"], u = n[s[a]], c = e ? t.area / e : 0;
  74289. (i || c > n[l[o]]) && (c = n[l[o]]);
  74290. for (var f = 0, d = t.length; f < d; f++) {
  74291. var h = t[f], p = {}, v = c ? h.getLayout().area / c : 0, g = p[l[o]] = u_(c - 2 * r, 0), m = n[s[a]] + n[l[a]] - u, y = f === d - 1 || m < v ? m : v, _ = p[l[a]] = u_(y - 2 * r, 0);
  74292. p[s[o]] = n[s[o]] + oT(r, g / 2), p[s[a]] = u + oT(r, _ / 2), u += y, h.setLayout(p, !0);
  74293. }
  74294. n[s[o]] += c, n[l[o]] -= c;
  74295. }
  74296. function mrt(t, e, n, r, i) {
  74297. var a = (e || {}).node, o = [r, i];
  74298. if (!a || a === n)
  74299. return o;
  74300. for (var s, l = r * i, u = l * t.option.zoomToNodeRatio; s = a.parentNode; ) {
  74301. for (var c = 0, f = s.children, d = 0, h = f.length; d < h; d++)
  74302. c += f[d].getValue();
  74303. var p = a.getValue();
  74304. if (p === 0)
  74305. return o;
  74306. u *= c / p;
  74307. var v = s.getModel(), g = v.get(Yfe), m = Math.max(g, Jfe(v));
  74308. u += 4 * g * g + (3 * g + m) * Math.pow(u, 0.5), u > Ok && (u = Ok), a = s;
  74309. }
  74310. u < l && (u = l);
  74311. var y = Math.pow(u / l, 0.5);
  74312. return [r * y, i * y];
  74313. }
  74314. function yrt(t, e, n) {
  74315. if (e)
  74316. return {
  74317. x: e.x,
  74318. y: e.y
  74319. };
  74320. var r = {
  74321. x: 0,
  74322. y: 0
  74323. };
  74324. if (!n)
  74325. return r;
  74326. var i = n.node, a = i.getLayout();
  74327. if (!a)
  74328. return r;
  74329. for (var o = [a.width / 2, a.height / 2], s = i; s; ) {
  74330. var l = s.getLayout();
  74331. o[0] += l.x, o[1] += l.y, s = s.parentNode;
  74332. }
  74333. return {
  74334. x: t.width / 2 - o[0],
  74335. y: t.height / 2 - o[1]
  74336. };
  74337. }
  74338. function Kfe(t, e, n, r, i) {
  74339. var a = t.getLayout(), o = n[i], s = o && o === t;
  74340. if (!(o && !s || i === n.length && t !== r)) {
  74341. t.setLayout({
  74342. // isInView means: viewRoot sub tree + viewAbovePath
  74343. isInView: !0,
  74344. // invisible only means: outside view clip so that the node can not
  74345. // see but still layout for animation preparation but not render.
  74346. invisible: !s && !e.intersect(a),
  74347. isAboveViewRoot: s
  74348. }, !0);
  74349. var l = new bt(e.x - a.x, e.y - a.y, e.width, e.height);
  74350. Z3(t.viewChildren || [], function(u) {
  74351. Kfe(u, l, n, r, i + 1);
  74352. });
  74353. }
  74354. }
  74355. function Jfe(t) {
  74356. return t.get(urt) ? t.get(crt) : 0;
  74357. }
  74358. function brt(t) {
  74359. t.registerSeriesModel(Bnt), t.registerChartView(Xnt), t.registerVisual(rrt), t.registerLayout(frt), Nnt(t);
  74360. }
  74361. function _rt(t) {
  74362. var e = t.findComponents({
  74363. mainType: "legend"
  74364. });
  74365. !e || !e.length || t.eachSeriesByType("graph", function(n) {
  74366. var r = n.getCategoriesData(), i = n.getGraph(), a = i.data, o = r.mapArray(r.getName);
  74367. a.filterSelf(function(s) {
  74368. var l = a.getItemModel(s), u = l.getShallow("category");
  74369. if (u != null) {
  74370. Kt(u) && (u = o[u]);
  74371. for (var c = 0; c < e.length; c++)
  74372. if (!e[c].isSelected(u))
  74373. return !1;
  74374. }
  74375. return !0;
  74376. });
  74377. });
  74378. }
  74379. function Ort(t) {
  74380. var e = {};
  74381. t.eachSeriesByType("graph", function(n) {
  74382. var r = n.getCategoriesData(), i = n.getData(), a = {};
  74383. r.each(function(o) {
  74384. var s = r.getName(o);
  74385. a["ec-" + s] = o;
  74386. var l = r.getItemModel(o), u = l.getModel("itemStyle").getItemStyle();
  74387. u.fill || (u.fill = n.getColorFromPalette(s, e)), r.setItemVisual(o, "style", u);
  74388. for (var c = ["symbol", "symbolSize", "symbolKeepAspect"], f = 0; f < c.length; f++) {
  74389. var d = l.getShallow(c[f], !0);
  74390. d != null && r.setItemVisual(o, c[f], d);
  74391. }
  74392. }), r.count() && i.each(function(o) {
  74393. var s = i.getItemModel(o), l = s.getShallow("category");
  74394. if (l != null) {
  74395. Ve(l) && (l = a["ec-" + l]);
  74396. var u = r.getItemVisual(l, "style"), c = i.ensureUniqueItemVisual(o, "style");
  74397. _e(c, u);
  74398. for (var f = ["symbol", "symbolSize", "symbolKeepAspect"], d = 0; d < f.length; d++)
  74399. i.setItemVisual(o, f[d], r.getItemVisual(l, f[d]));
  74400. }
  74401. });
  74402. });
  74403. }
  74404. function GS(t) {
  74405. return t instanceof Array || (t = [t, t]), t;
  74406. }
  74407. function Srt(t) {
  74408. t.eachSeriesByType("graph", function(e) {
  74409. var n = e.getGraph(), r = e.getEdgeData(), i = GS(e.get("edgeSymbol")), a = GS(e.get("edgeSymbolSize"));
  74410. r.setVisual("fromSymbol", i && i[0]), r.setVisual("toSymbol", i && i[1]), r.setVisual("fromSymbolSize", a && a[0]), r.setVisual("toSymbolSize", a && a[1]), r.setVisual("style", e.getModel("lineStyle").getLineStyle()), r.each(function(o) {
  74411. var s = r.getItemModel(o), l = n.getEdgeByIndex(o), u = GS(s.getShallow("symbol", !0)), c = GS(s.getShallow("symbolSize", !0)), f = s.getModel("lineStyle").getLineStyle(), d = r.ensureUniqueItemVisual(o, "style");
  74412. switch (_e(d, f), d.stroke) {
  74413. case "source": {
  74414. var h = l.node1.getVisual("style");
  74415. d.stroke = h && h.fill;
  74416. break;
  74417. }
  74418. case "target": {
  74419. var h = l.node2.getVisual("style");
  74420. d.stroke = h && h.fill;
  74421. break;
  74422. }
  74423. }
  74424. u[0] && l.setVisual("fromSymbol", u[0]), u[1] && l.setVisual("toSymbol", u[1]), c[0] && l.setVisual("fromSymbolSize", c[0]), c[1] && l.setVisual("toSymbolSize", c[1]);
  74425. });
  74426. });
  74427. }
  74428. var vL = "-->", jP = function(t) {
  74429. return t.get("autoCurveness") || null;
  74430. }, ede = function(t, e) {
  74431. var n = jP(t), r = 20, i = [];
  74432. if (Kt(n))
  74433. r = n;
  74434. else if (Se(n)) {
  74435. t.__curvenessList = n;
  74436. return;
  74437. }
  74438. e > r && (r = e);
  74439. var a = r % 2 ? r + 2 : r + 3;
  74440. i = [];
  74441. for (var o = 0; o < a; o++)
  74442. i.push((o % 2 ? o + 1 : o) / 10 * (o % 2 ? -1 : 1));
  74443. t.__curvenessList = i;
  74444. }, c_ = function(t, e, n) {
  74445. var r = [t.id, t.dataIndex].join("."), i = [e.id, e.dataIndex].join(".");
  74446. return [n.uid, r, i].join(vL);
  74447. }, tde = function(t) {
  74448. var e = t.split(vL);
  74449. return [e[0], e[2], e[1]].join(vL);
  74450. }, xrt = function(t, e) {
  74451. var n = c_(t.node1, t.node2, e);
  74452. return e.__edgeMap[n];
  74453. }, wrt = function(t, e) {
  74454. var n = gL(c_(t.node1, t.node2, e), e), r = gL(c_(t.node2, t.node1, e), e);
  74455. return n + r;
  74456. }, gL = function(t, e) {
  74457. var n = e.__edgeMap;
  74458. return n[t] ? n[t].length : 0;
  74459. };
  74460. function Crt(t) {
  74461. jP(t) && (t.__curvenessList = [], t.__edgeMap = {}, ede(t));
  74462. }
  74463. function Trt(t, e, n, r) {
  74464. if (jP(n)) {
  74465. var i = c_(t, e, n), a = n.__edgeMap, o = a[tde(i)];
  74466. a[i] && !o ? a[i].isForward = !0 : o && a[i] && (o.isForward = !0, a[i].isForward = !1), a[i] = a[i] || [], a[i].push(r);
  74467. }
  74468. }
  74469. function U3(t, e, n, r) {
  74470. var i = jP(e), a = Se(i);
  74471. if (!i)
  74472. return null;
  74473. var o = xrt(t, e);
  74474. if (!o)
  74475. return null;
  74476. for (var s = -1, l = 0; l < o.length; l++)
  74477. if (o[l] === n) {
  74478. s = l;
  74479. break;
  74480. }
  74481. var u = wrt(t, e);
  74482. ede(e, u), t.lineStyle = t.lineStyle || {};
  74483. var c = c_(t.node1, t.node2, e), f = e.__curvenessList, d = a || u % 2 ? 0 : 1;
  74484. if (o.isForward)
  74485. return f[d + s];
  74486. var h = tde(c), p = gL(h, e), v = f[s + p + d];
  74487. return r ? a ? i && i[0] === 0 ? (p + d) % 2 ? v : -v : ((p % 2 ? 0 : 1) + d) % 2 ? v : -v : (p + d) % 2 ? v : -v : f[s + p + d];
  74488. }
  74489. function nde(t) {
  74490. var e = t.coordinateSystem;
  74491. if (!(e && e.type !== "view")) {
  74492. var n = t.getGraph();
  74493. n.eachNode(function(r) {
  74494. var i = r.getModel();
  74495. r.setLayout([+i.get("x"), +i.get("y")]);
  74496. }), X3(n, t);
  74497. }
  74498. }
  74499. function X3(t, e) {
  74500. t.eachEdge(function(n, r) {
  74501. var i = co(n.getModel().get(["lineStyle", "curveness"]), -U3(n, e, r, !0), 0), a = kl(n.node1.getLayout()), o = kl(n.node2.getLayout()), s = [a, o];
  74502. +i && s.push([(a[0] + o[0]) / 2 - (a[1] - o[1]) * i, (a[1] + o[1]) / 2 - (o[0] - a[0]) * i]), n.setLayout(s);
  74503. });
  74504. }
  74505. function Prt(t, e) {
  74506. t.eachSeriesByType("graph", function(n) {
  74507. var r = n.get("layout"), i = n.coordinateSystem;
  74508. if (i && i.type !== "view") {
  74509. var a = n.getData(), o = [];
  74510. F(i.dimensions, function(d) {
  74511. o = o.concat(a.mapDimensionsAll(d));
  74512. });
  74513. for (var s = 0; s < a.count(); s++) {
  74514. for (var l = [], u = !1, c = 0; c < o.length; c++) {
  74515. var f = a.get(o[c], s);
  74516. isNaN(f) || (u = !0), l.push(f);
  74517. }
  74518. u ? a.setItemLayout(s, i.dataToPoint(l)) : a.setItemLayout(s, [NaN, NaN]);
  74519. }
  74520. X3(a.graph, n);
  74521. } else (!r || r === "none") && nde(n);
  74522. });
  74523. }
  74524. function wy(t) {
  74525. var e = t.coordinateSystem;
  74526. if (e.type !== "view")
  74527. return 1;
  74528. var n = t.option.nodeScaleRatio, r = e.scaleX, i = e.getZoom(), a = (i - 1) * n + 1;
  74529. return a / r;
  74530. }
  74531. function Cy(t) {
  74532. var e = t.getVisual("symbolSize");
  74533. return e instanceof Array && (e = (e[0] + e[1]) / 2), +e;
  74534. }
  74535. var AU = Math.PI, aI = [];
  74536. function Y3(t, e, n, r) {
  74537. var i = t.coordinateSystem;
  74538. if (!(i && i.type !== "view")) {
  74539. var a = i.getBoundingRect(), o = t.getData(), s = o.graph, l = a.width / 2 + a.x, u = a.height / 2 + a.y, c = Math.min(a.width, a.height) / 2, f = o.count();
  74540. if (o.setLayout({
  74541. cx: l,
  74542. cy: u
  74543. }), !!f) {
  74544. if (n) {
  74545. var d = i.pointToData(r), h = d[0], p = d[1], v = [h - l, p - u];
  74546. fp(v, v), Xy(v, v, c), n.setLayout([l + v[0], u + v[1]], !0);
  74547. var g = t.get(["circular", "rotateLabel"]);
  74548. rde(n, g, l, u);
  74549. }
  74550. $rt[e](t, s, o, c, l, u, f), s.eachEdge(function(m, y) {
  74551. var _ = co(m.getModel().get(["lineStyle", "curveness"]), U3(m, t, y), 0), O = kl(m.node1.getLayout()), S = kl(m.node2.getLayout()), x, C = (O[0] + S[0]) / 2, P = (O[1] + S[1]) / 2;
  74552. +_ && (_ *= 3, x = [l * _ + C * (1 - _), u * _ + P * (1 - _)]), m.setLayout([O, S, x]);
  74553. });
  74554. }
  74555. }
  74556. }
  74557. var $rt = {
  74558. value: function(t, e, n, r, i, a, o) {
  74559. var s = 0, l = n.getSum("value"), u = Math.PI * 2 / (l || o);
  74560. e.eachNode(function(c) {
  74561. var f = c.getValue("value"), d = u * (l ? f : 1) / 2;
  74562. s += d, c.setLayout([r * Math.cos(s) + i, r * Math.sin(s) + a]), s += d;
  74563. });
  74564. },
  74565. symbolSize: function(t, e, n, r, i, a, o) {
  74566. var s = 0;
  74567. aI.length = o;
  74568. var l = wy(t);
  74569. e.eachNode(function(f) {
  74570. var d = Cy(f);
  74571. isNaN(d) && (d = 2), d < 0 && (d = 0), d *= l;
  74572. var h = Math.asin(d / 2 / r);
  74573. isNaN(h) && (h = AU / 2), aI[f.dataIndex] = h, s += h * 2;
  74574. });
  74575. var u = (2 * AU - s) / o / 2, c = 0;
  74576. e.eachNode(function(f) {
  74577. var d = u + aI[f.dataIndex];
  74578. c += d, (!f.getLayout() || !f.getLayout().fixed) && f.setLayout([r * Math.cos(c) + i, r * Math.sin(c) + a]), c += d;
  74579. });
  74580. }
  74581. };
  74582. function rde(t, e, n, r) {
  74583. var i = t.getGraphicEl();
  74584. if (i) {
  74585. var a = t.getModel(), o = a.get(["label", "rotate"]) || 0, s = i.getSymbolPath();
  74586. if (e) {
  74587. var l = t.getLayout(), u = Math.atan2(l[1] - r, l[0] - n);
  74588. u < 0 && (u = Math.PI * 2 + u);
  74589. var c = l[0] < n;
  74590. c && (u = u - Math.PI);
  74591. var f = c ? "left" : "right";
  74592. s.setTextConfig({
  74593. rotation: -u,
  74594. position: f,
  74595. origin: "center"
  74596. });
  74597. var d = s.ensureState("emphasis");
  74598. _e(d.textConfig || (d.textConfig = {}), {
  74599. position: f
  74600. });
  74601. } else
  74602. s.setTextConfig({
  74603. rotation: o *= Math.PI / 180
  74604. });
  74605. }
  74606. }
  74607. function Art(t) {
  74608. t.eachSeriesByType("graph", function(e) {
  74609. e.get("layout") === "circular" && Y3(e, "symbolSize");
  74610. });
  74611. }
  74612. var ov = _C;
  74613. function Ert(t, e, n) {
  74614. for (var r = t, i = e, a = n.rect, o = a.width, s = a.height, l = [a.x + o / 2, a.y + s / 2], u = n.gravity == null ? 0.1 : n.gravity, c = 0; c < r.length; c++) {
  74615. var f = r[c];
  74616. f.p || (f.p = kf(o * (Math.random() - 0.5) + l[0], s * (Math.random() - 0.5) + l[1])), f.pp = kl(f.p), f.edges = null;
  74617. }
  74618. var d = n.friction == null ? 0.6 : n.friction, h = d, p, v;
  74619. return {
  74620. warmUp: function() {
  74621. h = d * 0.8;
  74622. },
  74623. setFixed: function(g) {
  74624. r[g].fixed = !0;
  74625. },
  74626. setUnfixed: function(g) {
  74627. r[g].fixed = !1;
  74628. },
  74629. /**
  74630. * Before step hook
  74631. */
  74632. beforeStep: function(g) {
  74633. p = g;
  74634. },
  74635. /**
  74636. * After step hook
  74637. */
  74638. afterStep: function(g) {
  74639. v = g;
  74640. },
  74641. /**
  74642. * Some formulas were originally copied from "d3.js"
  74643. * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js
  74644. * with some modifications made for this project.
  74645. * See the license statement at the head of this file.
  74646. */
  74647. step: function(g) {
  74648. p && p(r, i);
  74649. for (var m = [], y = r.length, _ = 0; _ < i.length; _++) {
  74650. var O = i[_];
  74651. if (!O.ignoreForceLayout) {
  74652. var S = O.n1, x = O.n2;
  74653. Wc(m, x.p, S.p);
  74654. var C = Wb(m) - O.d, P = x.w / (S.w + x.w);
  74655. isNaN(P) && (P = 0), fp(m, m), !S.fixed && ov(S.p, S.p, m, P * C * h), !x.fixed && ov(x.p, x.p, m, -(1 - P) * C * h);
  74656. }
  74657. }
  74658. for (var _ = 0; _ < y; _++) {
  74659. var $ = r[_];
  74660. $.fixed || (Wc(m, l, $.p), ov($.p, $.p, m, u * h));
  74661. }
  74662. for (var _ = 0; _ < y; _++)
  74663. for (var S = r[_], T = _ + 1; T < y; T++) {
  74664. var x = r[T];
  74665. Wc(m, x.p, S.p);
  74666. var C = Wb(m);
  74667. C === 0 && (Joe(m, Math.random() - 0.5, Math.random() - 0.5), C = 1);
  74668. var E = (S.rep + x.rep) / C / C;
  74669. !S.fixed && ov(S.pp, S.pp, m, E), !x.fixed && ov(x.pp, x.pp, m, -E);
  74670. }
  74671. for (var M = [], _ = 0; _ < y; _++) {
  74672. var $ = r[_];
  74673. $.fixed || (Wc(M, $.p, $.pp), ov($.p, $.p, M, h), ki($.pp, $.p));
  74674. }
  74675. h = h * 0.992;
  74676. var R = h < 0.01;
  74677. v && v(r, i, R), g && g(R);
  74678. }
  74679. };
  74680. }
  74681. function Mrt(t) {
  74682. t.eachSeriesByType("graph", function(e) {
  74683. var n = e.coordinateSystem;
  74684. if (!(n && n.type !== "view"))
  74685. if (e.get("layout") === "force") {
  74686. var r = e.preservedPoints || {}, i = e.getGraph(), a = i.data, o = i.edgeData, s = e.getModel("force"), l = s.get("initLayout");
  74687. e.preservedPoints ? a.each(function(_) {
  74688. var O = a.getId(_);
  74689. a.setItemLayout(_, r[O] || [NaN, NaN]);
  74690. }) : !l || l === "none" ? nde(e) : l === "circular" && Y3(e, "value");
  74691. var u = a.getDataExtent("value"), c = o.getDataExtent("value"), f = s.get("repulsion"), d = s.get("edgeLength"), h = Se(f) ? f : [f, f], p = Se(d) ? d : [d, d];
  74692. p = [p[1], p[0]];
  74693. var v = a.mapArray("value", function(_, O) {
  74694. var S = a.getItemLayout(O), x = gn(_, u, h);
  74695. return isNaN(x) && (x = (h[0] + h[1]) / 2), {
  74696. w: x,
  74697. rep: x,
  74698. fixed: a.getItemModel(O).get("fixed"),
  74699. p: !S || isNaN(S[0]) || isNaN(S[1]) ? null : S
  74700. };
  74701. }), g = o.mapArray("value", function(_, O) {
  74702. var S = i.getEdgeByIndex(O), x = gn(_, c, p);
  74703. isNaN(x) && (x = (p[0] + p[1]) / 2);
  74704. var C = S.getModel(), P = co(S.getModel().get(["lineStyle", "curveness"]), -U3(S, e, O, !0), 0);
  74705. return {
  74706. n1: v[S.node1.dataIndex],
  74707. n2: v[S.node2.dataIndex],
  74708. d: x,
  74709. curveness: P,
  74710. ignoreForceLayout: C.get("ignoreForceLayout")
  74711. };
  74712. }), m = n.getBoundingRect(), y = Ert(v, g, {
  74713. rect: m,
  74714. gravity: s.get("gravity"),
  74715. friction: s.get("friction")
  74716. });
  74717. y.beforeStep(function(_, O) {
  74718. for (var S = 0, x = _.length; S < x; S++)
  74719. _[S].fixed && ki(_[S].p, i.getNodeByIndex(S).getLayout());
  74720. }), y.afterStep(function(_, O, S) {
  74721. for (var x = 0, C = _.length; x < C; x++)
  74722. _[x].fixed || i.getNodeByIndex(x).setLayout(_[x].p), r[a.getId(x)] = _[x].p;
  74723. for (var x = 0, C = O.length; x < C; x++) {
  74724. var P = O[x], $ = i.getEdgeByIndex(x), T = P.n1.p, E = P.n2.p, M = $.getLayout();
  74725. M = M ? M.slice() : [], M[0] = M[0] || [], M[1] = M[1] || [], ki(M[0], T), ki(M[1], E), +P.curveness && (M[2] = [(T[0] + E[0]) / 2 - (T[1] - E[1]) * P.curveness, (T[1] + E[1]) / 2 - (E[0] - T[0]) * P.curveness]), $.setLayout(M);
  74726. }
  74727. }), e.forceLayout = y, e.preservedPoints = r, y.step();
  74728. } else
  74729. e.forceLayout = null;
  74730. });
  74731. }
  74732. function Irt(t, e, n) {
  74733. var r = _e(t.getBoxLayoutParams(), {
  74734. aspect: n
  74735. });
  74736. return Mr(r, {
  74737. width: e.getWidth(),
  74738. height: e.getHeight()
  74739. });
  74740. }
  74741. function Drt(t, e) {
  74742. var n = [];
  74743. return t.eachSeriesByType("graph", function(r) {
  74744. var i = r.get("coordinateSystem");
  74745. if (!i || i === "view") {
  74746. var a = r.getData(), o = a.mapArray(function(g) {
  74747. var m = a.getItemModel(g);
  74748. return [+m.get("x"), +m.get("y")];
  74749. }), s = [], l = [];
  74750. yP(o, s, l), l[0] - s[0] === 0 && (l[0] += 1, s[0] -= 1), l[1] - s[1] === 0 && (l[1] += 1, s[1] -= 1);
  74751. var u = (l[0] - s[0]) / (l[1] - s[1]), c = Irt(r, e, u);
  74752. isNaN(u) && (s = [c.x, c.y], l = [c.x + c.width, c.y + c.height]);
  74753. var f = l[0] - s[0], d = l[1] - s[1], h = c.width, p = c.height, v = r.coordinateSystem = new w1();
  74754. v.zoomLimit = r.get("scaleLimit"), v.setBoundingRect(s[0], s[1], f, d), v.setViewRect(c.x, c.y, h, p), v.setCenter(r.get("center"), e), v.setZoom(r.get("zoom")), n.push(v);
  74755. }
  74756. }), n;
  74757. }
  74758. var EU = Xr.prototype, oI = f1.prototype, ide = (
  74759. /** @class */
  74760. /* @__PURE__ */ function() {
  74761. function t() {
  74762. this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
  74763. }
  74764. return t;
  74765. }()
  74766. );
  74767. (function(t) {
  74768. le(e, t);
  74769. function e() {
  74770. return t !== null && t.apply(this, arguments) || this;
  74771. }
  74772. return e;
  74773. })(ide);
  74774. function sI(t) {
  74775. return isNaN(+t.cpx1) || isNaN(+t.cpy1);
  74776. }
  74777. var Rrt = (
  74778. /** @class */
  74779. function(t) {
  74780. le(e, t);
  74781. function e(n) {
  74782. var r = t.call(this, n) || this;
  74783. return r.type = "ec-line", r;
  74784. }
  74785. return e.prototype.getDefaultStyle = function() {
  74786. return {
  74787. stroke: "#000",
  74788. fill: null
  74789. };
  74790. }, e.prototype.getDefaultShape = function() {
  74791. return new ide();
  74792. }, e.prototype.buildPath = function(n, r) {
  74793. sI(r) ? EU.buildPath.call(this, n, r) : oI.buildPath.call(this, n, r);
  74794. }, e.prototype.pointAt = function(n) {
  74795. return sI(this.shape) ? EU.pointAt.call(this, n) : oI.pointAt.call(this, n);
  74796. }, e.prototype.tangentAt = function(n) {
  74797. var r = this.shape, i = sI(r) ? [r.x2 - r.x1, r.y2 - r.y1] : oI.tangentAt.call(this, n);
  74798. return fp(i, i);
  74799. }, e;
  74800. }(Dt)
  74801. ), lI = ["fromSymbol", "toSymbol"];
  74802. function MU(t) {
  74803. return "_" + t + "Type";
  74804. }
  74805. function IU(t, e, n) {
  74806. var r = e.getItemVisual(n, t);
  74807. if (!r || r === "none")
  74808. return r;
  74809. var i = e.getItemVisual(n, t + "Size"), a = e.getItemVisual(n, t + "Rotate"), o = e.getItemVisual(n, t + "Offset"), s = e.getItemVisual(n, t + "KeepAspect"), l = Em(i), u = mp(o || 0, l);
  74810. return r + l + u + (a || "") + (s || "");
  74811. }
  74812. function DU(t, e, n) {
  74813. var r = e.getItemVisual(n, t);
  74814. if (!(!r || r === "none")) {
  74815. var i = e.getItemVisual(n, t + "Size"), a = e.getItemVisual(n, t + "Rotate"), o = e.getItemVisual(n, t + "Offset"), s = e.getItemVisual(n, t + "KeepAspect"), l = Em(i), u = mp(o || 0, l), c = wr(r, -l[0] / 2 + u[0], -l[1] / 2 + u[1], l[0], l[1], null, s);
  74816. return c.__specifiedRotation = a == null || isNaN(a) ? void 0 : +a * Math.PI / 180 || 0, c.name = t, c;
  74817. }
  74818. }
  74819. function krt(t) {
  74820. var e = new Rrt({
  74821. name: "line",
  74822. subPixelOptimize: !0
  74823. });
  74824. return mL(e.shape, t), e;
  74825. }
  74826. function mL(t, e) {
  74827. t.x1 = e[0][0], t.y1 = e[0][1], t.x2 = e[1][0], t.y2 = e[1][1], t.percent = 1;
  74828. var n = e[2];
  74829. n ? (t.cpx1 = n[0], t.cpy1 = n[1]) : (t.cpx1 = NaN, t.cpy1 = NaN);
  74830. }
  74831. var q3 = (
  74832. /** @class */
  74833. function(t) {
  74834. le(e, t);
  74835. function e(n, r, i) {
  74836. var a = t.call(this) || this;
  74837. return a._createLine(n, r, i), a;
  74838. }
  74839. return e.prototype._createLine = function(n, r, i) {
  74840. var a = n.hostModel, o = n.getItemLayout(r), s = krt(o);
  74841. s.shape.percent = 0, Vn(s, {
  74842. shape: {
  74843. percent: 1
  74844. }
  74845. }, a, r), this.add(s), F(lI, function(l) {
  74846. var u = DU(l, n, r);
  74847. this.add(u), this[MU(l)] = IU(l, n, r);
  74848. }, this), this._updateCommonStl(n, r, i);
  74849. }, e.prototype.updateData = function(n, r, i) {
  74850. var a = n.hostModel, o = this.childOfName("line"), s = n.getItemLayout(r), l = {
  74851. shape: {}
  74852. };
  74853. mL(l.shape, s), tn(o, l, a, r), F(lI, function(u) {
  74854. var c = IU(u, n, r), f = MU(u);
  74855. if (this[f] !== c) {
  74856. this.remove(this.childOfName(u));
  74857. var d = DU(u, n, r);
  74858. this.add(d);
  74859. }
  74860. this[f] = c;
  74861. }, this), this._updateCommonStl(n, r, i);
  74862. }, e.prototype.getLinePath = function() {
  74863. return this.childAt(0);
  74864. }, e.prototype._updateCommonStl = function(n, r, i) {
  74865. var a = n.hostModel, o = this.childOfName("line"), s = i && i.emphasisLineStyle, l = i && i.blurLineStyle, u = i && i.selectLineStyle, c = i && i.labelStatesModels, f = i && i.emphasisDisabled, d = i && i.focus, h = i && i.blurScope;
  74866. if (!i || n.hasItemOption) {
  74867. var p = n.getItemModel(r), v = p.getModel("emphasis");
  74868. s = v.getModel("lineStyle").getLineStyle(), l = p.getModel(["blur", "lineStyle"]).getLineStyle(), u = p.getModel(["select", "lineStyle"]).getLineStyle(), f = v.get("disabled"), d = v.get("focus"), h = v.get("blurScope"), c = ei(p);
  74869. }
  74870. var g = n.getItemVisual(r, "style"), m = g.stroke;
  74871. o.useStyle(g), o.style.fill = null, o.style.strokeNoScale = !0, o.ensureState("emphasis").style = s, o.ensureState("blur").style = l, o.ensureState("select").style = u, F(lI, function(x) {
  74872. var C = this.childOfName(x);
  74873. if (C) {
  74874. C.setColor(m), C.style.opacity = g.opacity;
  74875. for (var P = 0; P < da.length; P++) {
  74876. var $ = da[P], T = o.getState($);
  74877. if (T) {
  74878. var E = T.style || {}, M = C.ensureState($), R = M.style || (M.style = {});
  74879. E.stroke != null && (R[C.__isEmptyBrush ? "stroke" : "fill"] = E.stroke), E.opacity != null && (R.opacity = E.opacity);
  74880. }
  74881. }
  74882. C.markRedraw();
  74883. }
  74884. }, this);
  74885. var y = a.getRawValue(r);
  74886. Ei(this, c, {
  74887. labelDataIndex: r,
  74888. labelFetcher: {
  74889. getFormattedLabel: function(x, C) {
  74890. return a.getFormattedLabel(x, C, n.dataType);
  74891. }
  74892. },
  74893. inheritColor: m || "#000",
  74894. defaultOpacity: g.opacity,
  74895. defaultText: (y == null ? n.getName(r) : isFinite(y) ? sr(y) : y) + ""
  74896. });
  74897. var _ = this.getTextContent();
  74898. if (_) {
  74899. var O = c.normal;
  74900. _.__align = _.style.align, _.__verticalAlign = _.style.verticalAlign, _.__position = O.get("position") || "middle";
  74901. var S = O.get("distance");
  74902. Se(S) || (S = [S, S]), _.__labelDistance = S;
  74903. }
  74904. this.setTextConfig({
  74905. position: null,
  74906. local: !0,
  74907. inside: !1
  74908. // Can't be inside for stroke element.
  74909. }), ur(this, d, h, f);
  74910. }, e.prototype.highlight = function() {
  74911. Fu(this);
  74912. }, e.prototype.downplay = function() {
  74913. Wu(this);
  74914. }, e.prototype.updateLayout = function(n, r) {
  74915. this.setLinePoints(n.getItemLayout(r));
  74916. }, e.prototype.setLinePoints = function(n) {
  74917. var r = this.childOfName("line");
  74918. mL(r.shape, n), r.dirty();
  74919. }, e.prototype.beforeUpdate = function() {
  74920. var n = this, r = n.childOfName("fromSymbol"), i = n.childOfName("toSymbol"), a = n.getTextContent();
  74921. if (!r && !i && (!a || a.ignore))
  74922. return;
  74923. for (var o = 1, s = this.parent; s; )
  74924. s.scaleX && (o /= s.scaleX), s = s.parent;
  74925. var l = n.childOfName("line");
  74926. if (!this.__dirty && !l.__dirty)
  74927. return;
  74928. var u = l.shape.percent, c = l.pointAt(0), f = l.pointAt(u), d = Wc([], f, c);
  74929. fp(d, d);
  74930. function h(T, E) {
  74931. var M = T.__specifiedRotation;
  74932. if (M == null) {
  74933. var R = l.tangentAt(E);
  74934. T.attr("rotation", (E === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(R[1], R[0]));
  74935. } else
  74936. T.attr("rotation", M);
  74937. }
  74938. if (r && (r.setPosition(c), h(r, 0), r.scaleX = r.scaleY = o * u, r.markRedraw()), i && (i.setPosition(f), h(i, 1), i.scaleX = i.scaleY = o * u, i.markRedraw()), a && !a.ignore) {
  74939. a.x = a.y = 0, a.originX = a.originY = 0;
  74940. var p = void 0, v = void 0, g = a.__labelDistance, m = g[0] * o, y = g[1] * o, _ = u / 2, O = l.tangentAt(_), S = [O[1], -O[0]], x = l.pointAt(_);
  74941. S[1] > 0 && (S[0] = -S[0], S[1] = -S[1]);
  74942. var C = O[0] < 0 ? -1 : 1;
  74943. if (a.__position !== "start" && a.__position !== "end") {
  74944. var P = -Math.atan2(O[1], O[0]);
  74945. f[0] < c[0] && (P = Math.PI + P), a.rotation = P;
  74946. }
  74947. var $ = void 0;
  74948. switch (a.__position) {
  74949. case "insideStartTop":
  74950. case "insideMiddleTop":
  74951. case "insideEndTop":
  74952. case "middle":
  74953. $ = -y, v = "bottom";
  74954. break;
  74955. case "insideStartBottom":
  74956. case "insideMiddleBottom":
  74957. case "insideEndBottom":
  74958. $ = y, v = "top";
  74959. break;
  74960. default:
  74961. $ = 0, v = "middle";
  74962. }
  74963. switch (a.__position) {
  74964. case "end":
  74965. a.x = d[0] * m + f[0], a.y = d[1] * y + f[1], p = d[0] > 0.8 ? "left" : d[0] < -0.8 ? "right" : "center", v = d[1] > 0.8 ? "top" : d[1] < -0.8 ? "bottom" : "middle";
  74966. break;
  74967. case "start":
  74968. a.x = -d[0] * m + c[0], a.y = -d[1] * y + c[1], p = d[0] > 0.8 ? "right" : d[0] < -0.8 ? "left" : "center", v = d[1] > 0.8 ? "bottom" : d[1] < -0.8 ? "top" : "middle";
  74969. break;
  74970. case "insideStartTop":
  74971. case "insideStart":
  74972. case "insideStartBottom":
  74973. a.x = m * C + c[0], a.y = c[1] + $, p = O[0] < 0 ? "right" : "left", a.originX = -m * C, a.originY = -$;
  74974. break;
  74975. case "insideMiddleTop":
  74976. case "insideMiddle":
  74977. case "insideMiddleBottom":
  74978. case "middle":
  74979. a.x = x[0], a.y = x[1] + $, p = "center", a.originY = -$;
  74980. break;
  74981. case "insideEndTop":
  74982. case "insideEnd":
  74983. case "insideEndBottom":
  74984. a.x = -m * C + f[0], a.y = f[1] + $, p = O[0] >= 0 ? "right" : "left", a.originX = m * C, a.originY = -$;
  74985. break;
  74986. }
  74987. a.scaleX = a.scaleY = o, a.setStyle({
  74988. // Use the user specified text align and baseline first
  74989. verticalAlign: a.__verticalAlign || v,
  74990. align: a.__align || p
  74991. });
  74992. }
  74993. }, e;
  74994. }(ct)
  74995. ), K3 = (
  74996. /** @class */
  74997. function() {
  74998. function t(e) {
  74999. this.group = new ct(), this._LineCtor = e || q3;
  75000. }
  75001. return t.prototype.updateData = function(e) {
  75002. var n = this;
  75003. this._progressiveEls = null;
  75004. var r = this, i = r.group, a = r._lineData;
  75005. r._lineData = e, a || i.removeAll();
  75006. var o = RU(e);
  75007. e.diff(a).add(function(s) {
  75008. n._doAdd(e, s, o);
  75009. }).update(function(s, l) {
  75010. n._doUpdate(a, e, l, s, o);
  75011. }).remove(function(s) {
  75012. i.remove(a.getItemGraphicEl(s));
  75013. }).execute();
  75014. }, t.prototype.updateLayout = function() {
  75015. var e = this._lineData;
  75016. e && e.eachItemGraphicEl(function(n, r) {
  75017. n.updateLayout(e, r);
  75018. }, this);
  75019. }, t.prototype.incrementalPrepareUpdate = function(e) {
  75020. this._seriesScope = RU(e), this._lineData = null, this.group.removeAll();
  75021. }, t.prototype.incrementalUpdate = function(e, n) {
  75022. this._progressiveEls = [];
  75023. function r(s) {
  75024. !s.isGroup && !Lrt(s) && (s.incremental = !0, s.ensureState("emphasis").hoverLayer = !0);
  75025. }
  75026. for (var i = e.start; i < e.end; i++) {
  75027. var a = n.getItemLayout(i);
  75028. if (uI(a)) {
  75029. var o = new this._LineCtor(n, i, this._seriesScope);
  75030. o.traverse(r), this.group.add(o), n.setItemGraphicEl(i, o), this._progressiveEls.push(o);
  75031. }
  75032. }
  75033. }, t.prototype.remove = function() {
  75034. this.group.removeAll();
  75035. }, t.prototype.eachRendered = function(e) {
  75036. Nf(this._progressiveEls || this.group, e);
  75037. }, t.prototype._doAdd = function(e, n, r) {
  75038. var i = e.getItemLayout(n);
  75039. if (uI(i)) {
  75040. var a = new this._LineCtor(e, n, r);
  75041. e.setItemGraphicEl(n, a), this.group.add(a);
  75042. }
  75043. }, t.prototype._doUpdate = function(e, n, r, i, a) {
  75044. var o = e.getItemGraphicEl(r);
  75045. if (!uI(n.getItemLayout(i))) {
  75046. this.group.remove(o);
  75047. return;
  75048. }
  75049. o ? o.updateData(n, i, a) : o = new this._LineCtor(n, i, a), n.setItemGraphicEl(i, o), this.group.add(o);
  75050. }, t;
  75051. }()
  75052. );
  75053. function Lrt(t) {
  75054. return t.animators && t.animators.length > 0;
  75055. }
  75056. function RU(t) {
  75057. var e = t.hostModel, n = e.getModel("emphasis");
  75058. return {
  75059. lineStyle: e.getModel("lineStyle").getLineStyle(),
  75060. emphasisLineStyle: n.getModel(["lineStyle"]).getLineStyle(),
  75061. blurLineStyle: e.getModel(["blur", "lineStyle"]).getLineStyle(),
  75062. selectLineStyle: e.getModel(["select", "lineStyle"]).getLineStyle(),
  75063. emphasisDisabled: n.get("disabled"),
  75064. blurScope: n.get("blurScope"),
  75065. focus: n.get("focus"),
  75066. labelStatesModels: ei(e)
  75067. };
  75068. }
  75069. function kU(t) {
  75070. return isNaN(t[0]) || isNaN(t[1]);
  75071. }
  75072. function uI(t) {
  75073. return t && !kU(t[0]) && !kU(t[1]);
  75074. }
  75075. var cI = [], fI = [], dI = [], sv = ii, hI = nf, LU = Math.abs;
  75076. function NU(t, e, n) {
  75077. for (var r = t[0], i = t[1], a = t[2], o = 1 / 0, s, l = n * n, u = 0.1, c = 0.1; c <= 0.9; c += 0.1) {
  75078. cI[0] = sv(r[0], i[0], a[0], c), cI[1] = sv(r[1], i[1], a[1], c);
  75079. var f = LU(hI(cI, e) - l);
  75080. f < o && (o = f, s = c);
  75081. }
  75082. for (var d = 0; d < 32; d++) {
  75083. var h = s + u;
  75084. fI[0] = sv(r[0], i[0], a[0], s), fI[1] = sv(r[1], i[1], a[1], s), dI[0] = sv(r[0], i[0], a[0], h), dI[1] = sv(r[1], i[1], a[1], h);
  75085. var f = hI(fI, e) - l;
  75086. if (LU(f) < 0.01)
  75087. break;
  75088. var p = hI(dI, e) - l;
  75089. u /= 2, f < 0 ? p >= 0 ? s = s + u : s = s - u : p >= 0 ? s = s - u : s = s + u;
  75090. }
  75091. return s;
  75092. }
  75093. function pI(t, e) {
  75094. var n = [], r = Qb, i = [[], [], []], a = [[], []], o = [];
  75095. e /= 2, t.eachEdge(function(s, l) {
  75096. var u = s.getLayout(), c = s.getVisual("fromSymbol"), f = s.getVisual("toSymbol");
  75097. u.__original || (u.__original = [kl(u[0]), kl(u[1])], u[2] && u.__original.push(kl(u[2])));
  75098. var d = u.__original;
  75099. if (u[2] != null) {
  75100. if (ki(i[0], d[0]), ki(i[1], d[2]), ki(i[2], d[1]), c && c !== "none") {
  75101. var h = Cy(s.node1), p = NU(i, d[0], h * e);
  75102. r(i[0][0], i[1][0], i[2][0], p, n), i[0][0] = n[3], i[1][0] = n[4], r(i[0][1], i[1][1], i[2][1], p, n), i[0][1] = n[3], i[1][1] = n[4];
  75103. }
  75104. if (f && f !== "none") {
  75105. var h = Cy(s.node2), p = NU(i, d[1], h * e);
  75106. r(i[0][0], i[1][0], i[2][0], p, n), i[1][0] = n[1], i[2][0] = n[2], r(i[0][1], i[1][1], i[2][1], p, n), i[1][1] = n[1], i[2][1] = n[2];
  75107. }
  75108. ki(u[0], i[0]), ki(u[1], i[2]), ki(u[2], i[1]);
  75109. } else {
  75110. if (ki(a[0], d[0]), ki(a[1], d[1]), Wc(o, a[1], a[0]), fp(o, o), c && c !== "none") {
  75111. var h = Cy(s.node1);
  75112. _C(a[0], a[0], o, h * e);
  75113. }
  75114. if (f && f !== "none") {
  75115. var h = Cy(s.node2);
  75116. _C(a[1], a[1], o, -h * e);
  75117. }
  75118. ki(u[0], a[0]), ki(u[1], a[1]);
  75119. }
  75120. });
  75121. }
  75122. function BU(t) {
  75123. return t.type === "view";
  75124. }
  75125. var Nrt = (
  75126. /** @class */
  75127. function(t) {
  75128. le(e, t);
  75129. function e() {
  75130. var n = t !== null && t.apply(this, arguments) || this;
  75131. return n.type = e.type, n;
  75132. }
  75133. return e.prototype.init = function(n, r) {
  75134. var i = new y1(), a = new K3(), o = this.group;
  75135. this._controller = new x1(r.getZr()), this._controllerHost = {
  75136. target: o
  75137. }, o.add(i.group), o.add(a.group), this._symbolDraw = i, this._lineDraw = a, this._firstRender = !0;
  75138. }, e.prototype.render = function(n, r, i) {
  75139. var a = this, o = n.coordinateSystem;
  75140. this._model = n;
  75141. var s = this._symbolDraw, l = this._lineDraw, u = this.group;
  75142. if (BU(o)) {
  75143. var c = {
  75144. x: o.x,
  75145. y: o.y,
  75146. scaleX: o.scaleX,
  75147. scaleY: o.scaleY
  75148. };
  75149. this._firstRender ? u.attr(c) : tn(u, c, n);
  75150. }
  75151. pI(n.getGraph(), wy(n));
  75152. var f = n.getData();
  75153. s.updateData(f);
  75154. var d = n.getEdgeData();
  75155. l.updateData(d), this._updateNodeAndLinkScale(), this._updateController(n, r, i), clearTimeout(this._layoutTimeout);
  75156. var h = n.forceLayout, p = n.get(["force", "layoutAnimation"]);
  75157. h && this._startForceLayoutIteration(h, p);
  75158. var v = n.get("layout");
  75159. f.graph.eachNode(function(_) {
  75160. var O = _.dataIndex, S = _.getGraphicEl(), x = _.getModel();
  75161. if (S) {
  75162. S.off("drag").off("dragend");
  75163. var C = x.get("draggable");
  75164. C && S.on("drag", function($) {
  75165. switch (v) {
  75166. case "force":
  75167. h.warmUp(), !a._layouting && a._startForceLayoutIteration(h, p), h.setFixed(O), f.setItemLayout(O, [S.x, S.y]);
  75168. break;
  75169. case "circular":
  75170. f.setItemLayout(O, [S.x, S.y]), _.setLayout({
  75171. fixed: !0
  75172. }, !0), Y3(n, "symbolSize", _, [$.offsetX, $.offsetY]), a.updateLayout(n);
  75173. break;
  75174. case "none":
  75175. default:
  75176. f.setItemLayout(O, [S.x, S.y]), X3(n.getGraph(), n), a.updateLayout(n);
  75177. break;
  75178. }
  75179. }).on("dragend", function() {
  75180. h && h.setUnfixed(O);
  75181. }), S.setDraggable(C, !!x.get("cursor"));
  75182. var P = x.get(["emphasis", "focus"]);
  75183. P === "adjacency" && (ft(S).focus = _.getAdjacentDataIndices());
  75184. }
  75185. }), f.graph.eachEdge(function(_) {
  75186. var O = _.getGraphicEl(), S = _.getModel().get(["emphasis", "focus"]);
  75187. O && S === "adjacency" && (ft(O).focus = {
  75188. edge: [_.dataIndex],
  75189. node: [_.node1.dataIndex, _.node2.dataIndex]
  75190. });
  75191. });
  75192. var g = n.get("layout") === "circular" && n.get(["circular", "rotateLabel"]), m = f.getLayout("cx"), y = f.getLayout("cy");
  75193. f.graph.eachNode(function(_) {
  75194. rde(_, g, m, y);
  75195. }), this._firstRender = !1;
  75196. }, e.prototype.dispose = function() {
  75197. this.remove(), this._controller && this._controller.dispose(), this._controllerHost = null;
  75198. }, e.prototype._startForceLayoutIteration = function(n, r) {
  75199. var i = this;
  75200. (function a() {
  75201. n.step(function(o) {
  75202. i.updateLayout(i._model), (i._layouting = !o) && (r ? i._layoutTimeout = setTimeout(a, 16) : a());
  75203. });
  75204. })();
  75205. }, e.prototype._updateController = function(n, r, i) {
  75206. var a = this, o = this._controller, s = this._controllerHost, l = this.group;
  75207. if (o.setPointerChecker(function(u, c, f) {
  75208. var d = l.getBoundingRect();
  75209. return d.applyTransform(l.transform), d.contain(c, f) && !QP(u, i, n);
  75210. }), !BU(n.coordinateSystem)) {
  75211. o.disable();
  75212. return;
  75213. }
  75214. o.enable(n.get("roam")), s.zoomLimit = n.get("scaleLimit"), s.zoom = n.coordinateSystem.getZoom(), o.off("pan").off("zoom").on("pan", function(u) {
  75215. V3(s, u.dx, u.dy), i.dispatchAction({
  75216. seriesId: n.id,
  75217. type: "graphRoam",
  75218. dx: u.dx,
  75219. dy: u.dy
  75220. });
  75221. }).on("zoom", function(u) {
  75222. F3(s, u.scale, u.originX, u.originY), i.dispatchAction({
  75223. seriesId: n.id,
  75224. type: "graphRoam",
  75225. zoom: u.scale,
  75226. originX: u.originX,
  75227. originY: u.originY
  75228. }), a._updateNodeAndLinkScale(), pI(n.getGraph(), wy(n)), a._lineDraw.updateLayout(), i.updateLabelLayout();
  75229. });
  75230. }, e.prototype._updateNodeAndLinkScale = function() {
  75231. var n = this._model, r = n.getData(), i = wy(n);
  75232. r.eachItemGraphicEl(function(a, o) {
  75233. a && a.setSymbolScale(i);
  75234. });
  75235. }, e.prototype.updateLayout = function(n) {
  75236. pI(n.getGraph(), wy(n)), this._symbolDraw.updateLayout(), this._lineDraw.updateLayout();
  75237. }, e.prototype.remove = function() {
  75238. clearTimeout(this._layoutTimeout), this._layouting = !1, this._layoutTimeout = null, this._symbolDraw && this._symbolDraw.remove(), this._lineDraw && this._lineDraw.remove();
  75239. }, e.type = "graph", e;
  75240. }(_n)
  75241. );
  75242. function lv(t) {
  75243. return "_EC_" + t;
  75244. }
  75245. var Brt = (
  75246. /** @class */
  75247. function() {
  75248. function t(e) {
  75249. this.type = "graph", this.nodes = [], this.edges = [], this._nodesMap = {}, this._edgesMap = {}, this._directed = e || !1;
  75250. }
  75251. return t.prototype.isDirected = function() {
  75252. return this._directed;
  75253. }, t.prototype.addNode = function(e, n) {
  75254. e = e == null ? "" + n : "" + e;
  75255. var r = this._nodesMap;
  75256. if (r[lv(e)]) {
  75257. process.env.NODE_ENV !== "production" && console.error("Graph nodes have duplicate name or id");
  75258. return;
  75259. }
  75260. var i = new zd(e, n);
  75261. return i.hostGraph = this, this.nodes.push(i), r[lv(e)] = i, i;
  75262. }, t.prototype.getNodeByIndex = function(e) {
  75263. var n = this.data.getRawIndex(e);
  75264. return this.nodes[n];
  75265. }, t.prototype.getNodeById = function(e) {
  75266. return this._nodesMap[lv(e)];
  75267. }, t.prototype.addEdge = function(e, n, r) {
  75268. var i = this._nodesMap, a = this._edgesMap;
  75269. if (Kt(e) && (e = this.nodes[e]), Kt(n) && (n = this.nodes[n]), e instanceof zd || (e = i[lv(e)]), n instanceof zd || (n = i[lv(n)]), !(!e || !n)) {
  75270. var o = e.id + "-" + n.id, s = new ade(e, n, r);
  75271. return s.hostGraph = this, this._directed && (e.outEdges.push(s), n.inEdges.push(s)), e.edges.push(s), e !== n && n.edges.push(s), this.edges.push(s), a[o] = s, s;
  75272. }
  75273. }, t.prototype.getEdgeByIndex = function(e) {
  75274. var n = this.edgeData.getRawIndex(e);
  75275. return this.edges[n];
  75276. }, t.prototype.getEdge = function(e, n) {
  75277. e instanceof zd && (e = e.id), n instanceof zd && (n = n.id);
  75278. var r = this._edgesMap;
  75279. return this._directed ? r[e + "-" + n] : r[e + "-" + n] || r[n + "-" + e];
  75280. }, t.prototype.eachNode = function(e, n) {
  75281. for (var r = this.nodes, i = r.length, a = 0; a < i; a++)
  75282. r[a].dataIndex >= 0 && e.call(n, r[a], a);
  75283. }, t.prototype.eachEdge = function(e, n) {
  75284. for (var r = this.edges, i = r.length, a = 0; a < i; a++)
  75285. r[a].dataIndex >= 0 && r[a].node1.dataIndex >= 0 && r[a].node2.dataIndex >= 0 && e.call(n, r[a], a);
  75286. }, t.prototype.breadthFirstTraverse = function(e, n, r, i) {
  75287. if (n instanceof zd || (n = this._nodesMap[lv(n)]), !!n) {
  75288. for (var a = r === "out" ? "outEdges" : r === "in" ? "inEdges" : "edges", o = 0; o < this.nodes.length; o++)
  75289. this.nodes[o].__visited = !1;
  75290. if (!e.call(i, n, null))
  75291. for (var s = [n]; s.length; )
  75292. for (var l = s.shift(), u = l[a], o = 0; o < u.length; o++) {
  75293. var c = u[o], f = c.node1 === l ? c.node2 : c.node1;
  75294. if (!f.__visited) {
  75295. if (e.call(i, f, l))
  75296. return;
  75297. s.push(f), f.__visited = !0;
  75298. }
  75299. }
  75300. }
  75301. }, t.prototype.update = function() {
  75302. for (var e = this.data, n = this.edgeData, r = this.nodes, i = this.edges, a = 0, o = r.length; a < o; a++)
  75303. r[a].dataIndex = -1;
  75304. for (var a = 0, o = e.count(); a < o; a++)
  75305. r[e.getRawIndex(a)].dataIndex = a;
  75306. n.filterSelf(function(s) {
  75307. var l = i[n.getRawIndex(s)];
  75308. return l.node1.dataIndex >= 0 && l.node2.dataIndex >= 0;
  75309. });
  75310. for (var a = 0, o = i.length; a < o; a++)
  75311. i[a].dataIndex = -1;
  75312. for (var a = 0, o = n.count(); a < o; a++)
  75313. i[n.getRawIndex(a)].dataIndex = a;
  75314. }, t.prototype.clone = function() {
  75315. for (var e = new t(this._directed), n = this.nodes, r = this.edges, i = 0; i < n.length; i++)
  75316. e.addNode(n[i].id, n[i].dataIndex);
  75317. for (var i = 0; i < r.length; i++) {
  75318. var a = r[i];
  75319. e.addEdge(a.node1.id, a.node2.id, a.dataIndex);
  75320. }
  75321. return e;
  75322. }, t;
  75323. }()
  75324. ), zd = (
  75325. /** @class */
  75326. function() {
  75327. function t(e, n) {
  75328. this.inEdges = [], this.outEdges = [], this.edges = [], this.dataIndex = -1, this.id = e ?? "", this.dataIndex = n ?? -1;
  75329. }
  75330. return t.prototype.degree = function() {
  75331. return this.edges.length;
  75332. }, t.prototype.inDegree = function() {
  75333. return this.inEdges.length;
  75334. }, t.prototype.outDegree = function() {
  75335. return this.outEdges.length;
  75336. }, t.prototype.getModel = function(e) {
  75337. if (!(this.dataIndex < 0)) {
  75338. var n = this.hostGraph, r = n.data.getItemModel(this.dataIndex);
  75339. return r.getModel(e);
  75340. }
  75341. }, t.prototype.getAdjacentDataIndices = function() {
  75342. for (var e = {
  75343. edge: [],
  75344. node: []
  75345. }, n = 0; n < this.edges.length; n++) {
  75346. var r = this.edges[n];
  75347. r.dataIndex < 0 || (e.edge.push(r.dataIndex), e.node.push(r.node1.dataIndex, r.node2.dataIndex));
  75348. }
  75349. return e;
  75350. }, t.prototype.getTrajectoryDataIndices = function() {
  75351. for (var e = Ze(), n = Ze(), r = 0; r < this.edges.length; r++) {
  75352. var i = this.edges[r];
  75353. if (!(i.dataIndex < 0)) {
  75354. e.set(i.dataIndex, !0);
  75355. for (var a = [i.node1], o = [i.node2], s = 0; s < a.length; ) {
  75356. var l = a[s];
  75357. s++, n.set(l.dataIndex, !0);
  75358. for (var u = 0; u < l.inEdges.length; u++)
  75359. e.set(l.inEdges[u].dataIndex, !0), a.push(l.inEdges[u].node1);
  75360. }
  75361. for (s = 0; s < o.length; ) {
  75362. var c = o[s];
  75363. s++, n.set(c.dataIndex, !0);
  75364. for (var u = 0; u < c.outEdges.length; u++)
  75365. e.set(c.outEdges[u].dataIndex, !0), o.push(c.outEdges[u].node2);
  75366. }
  75367. }
  75368. }
  75369. return {
  75370. edge: e.keys(),
  75371. node: n.keys()
  75372. };
  75373. }, t;
  75374. }()
  75375. ), ade = (
  75376. /** @class */
  75377. function() {
  75378. function t(e, n, r) {
  75379. this.dataIndex = -1, this.node1 = e, this.node2 = n, this.dataIndex = r ?? -1;
  75380. }
  75381. return t.prototype.getModel = function(e) {
  75382. if (!(this.dataIndex < 0)) {
  75383. var n = this.hostGraph, r = n.edgeData.getItemModel(this.dataIndex);
  75384. return r.getModel(e);
  75385. }
  75386. }, t.prototype.getAdjacentDataIndices = function() {
  75387. return {
  75388. edge: [this.dataIndex],
  75389. node: [this.node1.dataIndex, this.node2.dataIndex]
  75390. };
  75391. }, t.prototype.getTrajectoryDataIndices = function() {
  75392. var e = Ze(), n = Ze();
  75393. e.set(this.dataIndex, !0);
  75394. for (var r = [this.node1], i = [this.node2], a = 0; a < r.length; ) {
  75395. var o = r[a];
  75396. a++, n.set(o.dataIndex, !0);
  75397. for (var s = 0; s < o.inEdges.length; s++)
  75398. e.set(o.inEdges[s].dataIndex, !0), r.push(o.inEdges[s].node1);
  75399. }
  75400. for (a = 0; a < i.length; ) {
  75401. var l = i[a];
  75402. a++, n.set(l.dataIndex, !0);
  75403. for (var s = 0; s < l.outEdges.length; s++)
  75404. e.set(l.outEdges[s].dataIndex, !0), i.push(l.outEdges[s].node2);
  75405. }
  75406. return {
  75407. edge: e.keys(),
  75408. node: n.keys()
  75409. };
  75410. }, t;
  75411. }()
  75412. );
  75413. function ode(t, e) {
  75414. return {
  75415. /**
  75416. * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.
  75417. */
  75418. getValue: function(n) {
  75419. var r = this[t][e];
  75420. return r.getStore().get(r.getDimensionIndex(n || "value"), this.dataIndex);
  75421. },
  75422. // TODO: TYPE stricter type.
  75423. setVisual: function(n, r) {
  75424. this.dataIndex >= 0 && this[t][e].setItemVisual(this.dataIndex, n, r);
  75425. },
  75426. getVisual: function(n) {
  75427. return this[t][e].getItemVisual(this.dataIndex, n);
  75428. },
  75429. setLayout: function(n, r) {
  75430. this.dataIndex >= 0 && this[t][e].setItemLayout(this.dataIndex, n, r);
  75431. },
  75432. getLayout: function() {
  75433. return this[t][e].getItemLayout(this.dataIndex);
  75434. },
  75435. getGraphicEl: function() {
  75436. return this[t][e].getItemGraphicEl(this.dataIndex);
  75437. },
  75438. getRawIndex: function() {
  75439. return this[t][e].getRawIndex(this.dataIndex);
  75440. }
  75441. };
  75442. }
  75443. vr(zd, ode("hostGraph", "data"));
  75444. vr(ade, ode("hostGraph", "edgeData"));
  75445. function sde(t, e, n, r, i) {
  75446. for (var a = new Brt(r), o = 0; o < t.length; o++)
  75447. a.addNode(Or(
  75448. // Id, name, dataIndex
  75449. t[o].id,
  75450. t[o].name,
  75451. o
  75452. ), o);
  75453. for (var s = [], l = [], u = 0, o = 0; o < e.length; o++) {
  75454. var c = e[o], f = c.source, d = c.target;
  75455. a.addEdge(f, d, u) && (l.push(c), s.push(Or(Br(c.id, null), f + " > " + d)), u++);
  75456. }
  75457. var h = n.get("coordinateSystem"), p;
  75458. if (h === "cartesian2d" || h === "polar")
  75459. p = Yl(t, n);
  75460. else {
  75461. var v = gp.get(h), g = v ? v.dimensions || [] : [];
  75462. St(g, "value") < 0 && g.concat(["value"]);
  75463. var m = Mm(t, {
  75464. coordDimensions: g,
  75465. encodeDefine: n.getEncode()
  75466. }).dimensions;
  75467. p = new Wi(m, n), p.initData(t);
  75468. }
  75469. var y = new Wi(["value"], n);
  75470. return y.initData(l, s), i && i(p, y), Wfe({
  75471. mainData: p,
  75472. struct: a,
  75473. structAttr: "graph",
  75474. datas: {
  75475. node: p,
  75476. edge: y
  75477. },
  75478. datasAttr: {
  75479. node: "data",
  75480. edge: "edgeData"
  75481. }
  75482. }), a.update(), a;
  75483. }
  75484. var zrt = (
  75485. /** @class */
  75486. function(t) {
  75487. le(e, t);
  75488. function e() {
  75489. var n = t !== null && t.apply(this, arguments) || this;
  75490. return n.type = e.type, n.hasSymbolVisual = !0, n;
  75491. }
  75492. return e.prototype.init = function(n) {
  75493. t.prototype.init.apply(this, arguments);
  75494. var r = this;
  75495. function i() {
  75496. return r._categoriesData;
  75497. }
  75498. this.legendVisualProvider = new S1(i, i), this.fillDataTextStyle(n.edges || n.links), this._updateCategoriesData();
  75499. }, e.prototype.mergeOption = function(n) {
  75500. t.prototype.mergeOption.apply(this, arguments), this.fillDataTextStyle(n.edges || n.links), this._updateCategoriesData();
  75501. }, e.prototype.mergeDefaultAndTheme = function(n) {
  75502. t.prototype.mergeDefaultAndTheme.apply(this, arguments), Hh(n, "edgeLabel", ["show"]);
  75503. }, e.prototype.getInitialData = function(n, r) {
  75504. var i = n.edges || n.links || [], a = n.data || n.nodes || [], o = this;
  75505. if (a && i) {
  75506. Crt(this);
  75507. var s = sde(a, i, this, !0, l);
  75508. return F(s.edges, function(u) {
  75509. Trt(u.node1, u.node2, this, u.dataIndex);
  75510. }, this), s.data;
  75511. }
  75512. function l(u, c) {
  75513. u.wrapMethod("getItemModel", function(p) {
  75514. var v = o._categoriesModels, g = p.getShallow("category"), m = v[g];
  75515. return m && (m.parentModel = p.parentModel, p.parentModel = m), p;
  75516. });
  75517. var f = wn.prototype.getModel;
  75518. function d(p, v) {
  75519. var g = f.call(this, p, v);
  75520. return g.resolveParentPath = h, g;
  75521. }
  75522. c.wrapMethod("getItemModel", function(p) {
  75523. return p.resolveParentPath = h, p.getModel = d, p;
  75524. });
  75525. function h(p) {
  75526. if (p && (p[0] === "label" || p[1] === "label")) {
  75527. var v = p.slice();
  75528. return p[0] === "label" ? v[0] = "edgeLabel" : p[1] === "label" && (v[1] = "edgeLabel"), v;
  75529. }
  75530. return p;
  75531. }
  75532. }
  75533. }, e.prototype.getGraph = function() {
  75534. return this.getData().graph;
  75535. }, e.prototype.getEdgeData = function() {
  75536. return this.getGraph().edgeData;
  75537. }, e.prototype.getCategoriesData = function() {
  75538. return this._categoriesData;
  75539. }, e.prototype.formatTooltip = function(n, r, i) {
  75540. if (i === "edge") {
  75541. var a = this.getData(), o = this.getDataParams(n, i), s = a.graph.getEdgeByIndex(n), l = a.getName(s.node1.dataIndex), u = a.getName(s.node2.dataIndex), c = [];
  75542. return l != null && c.push(l), u != null && c.push(u), ti("nameValue", {
  75543. name: c.join(" > "),
  75544. value: o.value,
  75545. noValue: o.value == null
  75546. });
  75547. }
  75548. var f = $ue({
  75549. series: this,
  75550. dataIndex: n,
  75551. multipleSeries: r
  75552. });
  75553. return f;
  75554. }, e.prototype._updateCategoriesData = function() {
  75555. var n = Ce(this.option.categories || [], function(i) {
  75556. return i.value != null ? i : _e({
  75557. value: 0
  75558. }, i);
  75559. }), r = new Wi(["value"], this);
  75560. r.initData(n), this._categoriesData = r, this._categoriesModels = r.mapArray(function(i) {
  75561. return r.getItemModel(i);
  75562. });
  75563. }, e.prototype.setZoom = function(n) {
  75564. this.option.zoom = n;
  75565. }, e.prototype.setCenter = function(n) {
  75566. this.option.center = n;
  75567. }, e.prototype.isAnimationEnabled = function() {
  75568. return t.prototype.isAnimationEnabled.call(this) && !(this.get("layout") === "force" && this.get(["force", "layoutAnimation"]));
  75569. }, e.type = "series.graph", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
  75570. // zlevel: 0,
  75571. z: 2,
  75572. coordinateSystem: "view",
  75573. // Default option for all coordinate systems
  75574. // xAxisIndex: 0,
  75575. // yAxisIndex: 0,
  75576. // polarIndex: 0,
  75577. // geoIndex: 0,
  75578. legendHoverLink: !0,
  75579. layout: null,
  75580. // Configuration of circular layout
  75581. circular: {
  75582. rotateLabel: !1
  75583. },
  75584. // Configuration of force directed layout
  75585. force: {
  75586. initLayout: null,
  75587. // Node repulsion. Can be an array to represent range.
  75588. repulsion: [0, 50],
  75589. gravity: 0.1,
  75590. // Initial friction
  75591. friction: 0.6,
  75592. // Edge length. Can be an array to represent range.
  75593. edgeLength: 30,
  75594. layoutAnimation: !0
  75595. },
  75596. left: "center",
  75597. top: "center",
  75598. // right: null,
  75599. // bottom: null,
  75600. // width: '80%',
  75601. // height: '80%',
  75602. symbol: "circle",
  75603. symbolSize: 10,
  75604. edgeSymbol: ["none", "none"],
  75605. edgeSymbolSize: 10,
  75606. edgeLabel: {
  75607. position: "middle",
  75608. distance: 5
  75609. },
  75610. draggable: !1,
  75611. roam: !1,
  75612. // Default on center of graph
  75613. center: null,
  75614. zoom: 1,
  75615. // Symbol size scale ratio in roam
  75616. nodeScaleRatio: 0.6,
  75617. // cursor: null,
  75618. // categories: [],
  75619. // data: []
  75620. // Or
  75621. // nodes: []
  75622. //
  75623. // links: []
  75624. // Or
  75625. // edges: []
  75626. label: {
  75627. show: !1,
  75628. formatter: "{b}"
  75629. },
  75630. itemStyle: {},
  75631. lineStyle: {
  75632. color: "#aaa",
  75633. width: 1,
  75634. opacity: 0.5
  75635. },
  75636. emphasis: {
  75637. scale: !0,
  75638. label: {
  75639. show: !0
  75640. }
  75641. },
  75642. select: {
  75643. itemStyle: {
  75644. borderColor: "#212121"
  75645. }
  75646. }
  75647. }, e;
  75648. }(Tn)
  75649. ), Vrt = {
  75650. type: "graphRoam",
  75651. event: "graphRoam",
  75652. update: "none"
  75653. };
  75654. function Frt(t) {
  75655. t.registerChartView(Nrt), t.registerSeriesModel(zrt), t.registerProcessor(_rt), t.registerVisual(Ort), t.registerVisual(Srt), t.registerLayout(Prt), t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT, Art), t.registerLayout(Mrt), t.registerCoordinateSystem("graphView", {
  75656. dimensions: w1.dimensions,
  75657. create: Drt
  75658. }), t.registerAction({
  75659. type: "focusNodeAdjacency",
  75660. event: "focusNodeAdjacency",
  75661. update: "series:focusNodeAdjacency"
  75662. }, fr), t.registerAction({
  75663. type: "unfocusNodeAdjacency",
  75664. event: "unfocusNodeAdjacency",
  75665. update: "series:unfocusNodeAdjacency"
  75666. }, fr), t.registerAction(Vrt, function(e, n, r) {
  75667. n.eachComponent({
  75668. mainType: "series",
  75669. query: e
  75670. }, function(i) {
  75671. var a = i.coordinateSystem, o = Q3(a, e, void 0, r);
  75672. i.setCenter && i.setCenter(o.center), i.setZoom && i.setZoom(o.zoom);
  75673. });
  75674. });
  75675. }
  75676. var Wrt = (
  75677. /** @class */
  75678. /* @__PURE__ */ function() {
  75679. function t() {
  75680. this.angle = 0, this.width = 10, this.r = 10, this.x = 0, this.y = 0;
  75681. }
  75682. return t;
  75683. }()
  75684. ), Qrt = (
  75685. /** @class */
  75686. function(t) {
  75687. le(e, t);
  75688. function e(n) {
  75689. var r = t.call(this, n) || this;
  75690. return r.type = "pointer", r;
  75691. }
  75692. return e.prototype.getDefaultShape = function() {
  75693. return new Wrt();
  75694. }, e.prototype.buildPath = function(n, r) {
  75695. var i = Math.cos, a = Math.sin, o = r.r, s = r.width, l = r.angle, u = r.x - i(l) * s * (s >= o / 3 ? 1 : 2), c = r.y - a(l) * s * (s >= o / 3 ? 1 : 2);
  75696. l = r.angle - Math.PI / 2, n.moveTo(u, c), n.lineTo(r.x + i(l) * s, r.y + a(l) * s), n.lineTo(r.x + i(r.angle) * o, r.y + a(r.angle) * o), n.lineTo(r.x - i(l) * s, r.y - a(l) * s), n.lineTo(u, c);
  75697. }, e;
  75698. }(Dt)
  75699. );
  75700. function Hrt(t, e) {
  75701. var n = t.get("center"), r = e.getWidth(), i = e.getHeight(), a = Math.min(r, i), o = ze(n[0], e.getWidth()), s = ze(n[1], e.getHeight()), l = ze(t.get("radius"), a / 2);
  75702. return {
  75703. cx: o,
  75704. cy: s,
  75705. r: l
  75706. };
  75707. }
  75708. function jS(t, e) {
  75709. var n = t == null ? "" : t + "";
  75710. return e && (Ve(e) ? n = e.replace("{value}", n) : qe(e) && (n = e(t))), n;
  75711. }
  75712. var Grt = (
  75713. /** @class */
  75714. function(t) {
  75715. le(e, t);
  75716. function e() {
  75717. var n = t !== null && t.apply(this, arguments) || this;
  75718. return n.type = e.type, n;
  75719. }
  75720. return e.prototype.render = function(n, r, i) {
  75721. this.group.removeAll();
  75722. var a = n.get(["axisLine", "lineStyle", "color"]), o = Hrt(n, i);
  75723. this._renderMain(n, r, i, a, o), this._data = n.getData();
  75724. }, e.prototype.dispose = function() {
  75725. }, e.prototype._renderMain = function(n, r, i, a, o) {
  75726. var s = this.group, l = n.get("clockwise"), u = -n.get("startAngle") / 180 * Math.PI, c = -n.get("endAngle") / 180 * Math.PI, f = n.getModel("axisLine"), d = f.get("roundCap"), h = d ? tT : ha, p = f.get("show"), v = f.getModel("lineStyle"), g = v.get("width"), m = [u, c];
  75727. D5(m, !l), u = m[0], c = m[1];
  75728. for (var y = c - u, _ = u, O = [], S = 0; p && S < a.length; S++) {
  75729. var x = Math.min(Math.max(a[S][0], 0), 1);
  75730. c = u + y * x;
  75731. var C = new h({
  75732. shape: {
  75733. startAngle: _,
  75734. endAngle: c,
  75735. cx: o.cx,
  75736. cy: o.cy,
  75737. clockwise: l,
  75738. r0: o.r - g,
  75739. r: o.r
  75740. },
  75741. silent: !0
  75742. });
  75743. C.setStyle({
  75744. fill: a[S][1]
  75745. }), C.setStyle(v.getLineStyle(
  75746. // Because we use sector to simulate arc
  75747. // so the properties for stroking are useless
  75748. ["color", "width"]
  75749. )), O.push(C), _ = c;
  75750. }
  75751. O.reverse(), F(O, function($) {
  75752. return s.add($);
  75753. });
  75754. var P = function($) {
  75755. if ($ <= 0)
  75756. return a[0][1];
  75757. var T;
  75758. for (T = 0; T < a.length; T++)
  75759. if (a[T][0] >= $ && (T === 0 ? 0 : a[T - 1][0]) < $)
  75760. return a[T][1];
  75761. return a[T - 1][1];
  75762. };
  75763. this._renderTicks(n, r, i, P, o, u, c, l, g), this._renderTitleAndDetail(n, r, i, P, o), this._renderAnchor(n, o), this._renderPointer(n, r, i, P, o, u, c, l, g);
  75764. }, e.prototype._renderTicks = function(n, r, i, a, o, s, l, u, c) {
  75765. for (var f = this.group, d = o.cx, h = o.cy, p = o.r, v = +n.get("min"), g = +n.get("max"), m = n.getModel("splitLine"), y = n.getModel("axisTick"), _ = n.getModel("axisLabel"), O = n.get("splitNumber"), S = y.get("splitNumber"), x = ze(m.get("length"), p), C = ze(y.get("length"), p), P = s, $ = (l - s) / O, T = $ / S, E = m.getModel("lineStyle").getLineStyle(), M = y.getModel("lineStyle").getLineStyle(), R = m.get("distance"), N, I, B = 0; B <= O; B++) {
  75766. if (N = Math.cos(P), I = Math.sin(P), m.get("show")) {
  75767. var Q = R ? R + c : c, W = new Xr({
  75768. shape: {
  75769. x1: N * (p - Q) + d,
  75770. y1: I * (p - Q) + h,
  75771. x2: N * (p - x - Q) + d,
  75772. y2: I * (p - x - Q) + h
  75773. },
  75774. style: E,
  75775. silent: !0
  75776. });
  75777. E.stroke === "auto" && W.setStyle({
  75778. stroke: a(B / O)
  75779. }), f.add(W);
  75780. }
  75781. if (_.get("show")) {
  75782. var Q = _.get("distance") + R, H = jS(sr(B / O * (g - v) + v), _.get("formatter")), U = a(B / O), j = N * (p - x - Q) + d, Y = I * (p - x - Q) + h, ne = _.get("rotate"), fe = 0;
  75783. ne === "radial" ? (fe = -P + 2 * Math.PI, fe > Math.PI / 2 && (fe += Math.PI)) : ne === "tangential" ? fe = -P - Math.PI / 2 : Kt(ne) && (fe = ne * Math.PI / 180), fe === 0 ? f.add(new jt({
  75784. style: Mn(_, {
  75785. text: H,
  75786. x: j,
  75787. y: Y,
  75788. verticalAlign: I < -0.8 ? "top" : I > 0.8 ? "bottom" : "middle",
  75789. align: N < -0.4 ? "left" : N > 0.4 ? "right" : "center"
  75790. }, {
  75791. inheritColor: U
  75792. }),
  75793. silent: !0
  75794. })) : f.add(new jt({
  75795. style: Mn(_, {
  75796. text: H,
  75797. x: j,
  75798. y: Y,
  75799. verticalAlign: "middle",
  75800. align: "center"
  75801. }, {
  75802. inheritColor: U
  75803. }),
  75804. silent: !0,
  75805. originX: j,
  75806. originY: Y,
  75807. rotation: fe
  75808. }));
  75809. }
  75810. if (y.get("show") && B !== O) {
  75811. var Q = y.get("distance");
  75812. Q = Q ? Q + c : c;
  75813. for (var ue = 0; ue <= S; ue++) {
  75814. N = Math.cos(P), I = Math.sin(P);
  75815. var ye = new Xr({
  75816. shape: {
  75817. x1: N * (p - Q) + d,
  75818. y1: I * (p - Q) + h,
  75819. x2: N * (p - C - Q) + d,
  75820. y2: I * (p - C - Q) + h
  75821. },
  75822. silent: !0,
  75823. style: M
  75824. });
  75825. M.stroke === "auto" && ye.setStyle({
  75826. stroke: a((B + ue / S) / O)
  75827. }), f.add(ye), P += T;
  75828. }
  75829. P -= T;
  75830. } else
  75831. P += $;
  75832. }
  75833. }, e.prototype._renderPointer = function(n, r, i, a, o, s, l, u, c) {
  75834. var f = this.group, d = this._data, h = this._progressEls, p = [], v = n.get(["pointer", "show"]), g = n.getModel("progress"), m = g.get("show"), y = n.getData(), _ = y.mapDimension("value"), O = +n.get("min"), S = +n.get("max"), x = [O, S], C = [s, l];
  75835. function P(T, E) {
  75836. var M = y.getItemModel(T), R = M.getModel("pointer"), N = ze(R.get("width"), o.r), I = ze(R.get("length"), o.r), B = n.get(["pointer", "icon"]), Q = R.get("offsetCenter"), W = ze(Q[0], o.r), H = ze(Q[1], o.r), U = R.get("keepAspect"), j;
  75837. return B ? j = wr(B, W - N / 2, H - I, N, I, null, U) : j = new Qrt({
  75838. shape: {
  75839. angle: -Math.PI / 2,
  75840. width: N,
  75841. r: I,
  75842. x: W,
  75843. y: H
  75844. }
  75845. }), j.rotation = -(E + Math.PI / 2), j.x = o.cx, j.y = o.cy, j;
  75846. }
  75847. function $(T, E) {
  75848. var M = g.get("roundCap"), R = M ? tT : ha, N = g.get("overlap"), I = N ? g.get("width") : c / y.count(), B = N ? o.r - I : o.r - (T + 1) * I, Q = N ? o.r : o.r - T * I, W = new R({
  75849. shape: {
  75850. startAngle: s,
  75851. endAngle: E,
  75852. cx: o.cx,
  75853. cy: o.cy,
  75854. clockwise: u,
  75855. r0: B,
  75856. r: Q
  75857. }
  75858. });
  75859. return N && (W.z2 = S - y.get(_, T) % S), W;
  75860. }
  75861. (m || v) && (y.diff(d).add(function(T) {
  75862. var E = y.get(_, T);
  75863. if (v) {
  75864. var M = P(T, s);
  75865. Vn(M, {
  75866. rotation: -((isNaN(+E) ? C[0] : gn(E, x, C, !0)) + Math.PI / 2)
  75867. }, n), f.add(M), y.setItemGraphicEl(T, M);
  75868. }
  75869. if (m) {
  75870. var R = $(T, s), N = g.get("clip");
  75871. Vn(R, {
  75872. shape: {
  75873. endAngle: gn(E, x, C, N)
  75874. }
  75875. }, n), f.add(R), Pk(n.seriesIndex, y.dataType, T, R), p[T] = R;
  75876. }
  75877. }).update(function(T, E) {
  75878. var M = y.get(_, T);
  75879. if (v) {
  75880. var R = d.getItemGraphicEl(E), N = R ? R.rotation : s, I = P(T, N);
  75881. I.rotation = N, tn(I, {
  75882. rotation: -((isNaN(+M) ? C[0] : gn(M, x, C, !0)) + Math.PI / 2)
  75883. }, n), f.add(I), y.setItemGraphicEl(T, I);
  75884. }
  75885. if (m) {
  75886. var B = h[E], Q = B ? B.shape.endAngle : s, W = $(T, Q), H = g.get("clip");
  75887. tn(W, {
  75888. shape: {
  75889. endAngle: gn(M, x, C, H)
  75890. }
  75891. }, n), f.add(W), Pk(n.seriesIndex, y.dataType, T, W), p[T] = W;
  75892. }
  75893. }).execute(), y.each(function(T) {
  75894. var E = y.getItemModel(T), M = E.getModel("emphasis"), R = M.get("focus"), N = M.get("blurScope"), I = M.get("disabled");
  75895. if (v) {
  75896. var B = y.getItemGraphicEl(T), Q = y.getItemVisual(T, "style"), W = Q.fill;
  75897. if (B instanceof ci) {
  75898. var H = B.style;
  75899. B.useStyle(_e({
  75900. image: H.image,
  75901. x: H.x,
  75902. y: H.y,
  75903. width: H.width,
  75904. height: H.height
  75905. }, Q));
  75906. } else
  75907. B.useStyle(Q), B.type !== "pointer" && B.setColor(W);
  75908. B.setStyle(E.getModel(["pointer", "itemStyle"]).getItemStyle()), B.style.fill === "auto" && B.setStyle("fill", a(gn(y.get(_, T), x, [0, 1], !0))), B.z2EmphasisLift = 0, Ai(B, E), ur(B, R, N, I);
  75909. }
  75910. if (m) {
  75911. var U = p[T];
  75912. U.useStyle(y.getItemVisual(T, "style")), U.setStyle(E.getModel(["progress", "itemStyle"]).getItemStyle()), U.z2EmphasisLift = 0, Ai(U, E), ur(U, R, N, I);
  75913. }
  75914. }), this._progressEls = p);
  75915. }, e.prototype._renderAnchor = function(n, r) {
  75916. var i = n.getModel("anchor"), a = i.get("show");
  75917. if (a) {
  75918. var o = i.get("size"), s = i.get("icon"), l = i.get("offsetCenter"), u = i.get("keepAspect"), c = wr(s, r.cx - o / 2 + ze(l[0], r.r), r.cy - o / 2 + ze(l[1], r.r), o, o, null, u);
  75919. c.z2 = i.get("showAbove") ? 1 : 0, c.setStyle(i.getModel("itemStyle").getItemStyle()), this.group.add(c);
  75920. }
  75921. }, e.prototype._renderTitleAndDetail = function(n, r, i, a, o) {
  75922. var s = this, l = n.getData(), u = l.mapDimension("value"), c = +n.get("min"), f = +n.get("max"), d = new ct(), h = [], p = [], v = n.isAnimationEnabled(), g = n.get(["pointer", "showAbove"]);
  75923. l.diff(this._data).add(function(m) {
  75924. h[m] = new jt({
  75925. silent: !0
  75926. }), p[m] = new jt({
  75927. silent: !0
  75928. });
  75929. }).update(function(m, y) {
  75930. h[m] = s._titleEls[y], p[m] = s._detailEls[y];
  75931. }).execute(), l.each(function(m) {
  75932. var y = l.getItemModel(m), _ = l.get(u, m), O = new ct(), S = a(gn(_, [c, f], [0, 1], !0)), x = y.getModel("title");
  75933. if (x.get("show")) {
  75934. var C = x.get("offsetCenter"), P = o.cx + ze(C[0], o.r), $ = o.cy + ze(C[1], o.r), T = h[m];
  75935. T.attr({
  75936. z2: g ? 0 : 2,
  75937. style: Mn(x, {
  75938. x: P,
  75939. y: $,
  75940. text: l.getName(m),
  75941. align: "center",
  75942. verticalAlign: "middle"
  75943. }, {
  75944. inheritColor: S
  75945. })
  75946. }), O.add(T);
  75947. }
  75948. var E = y.getModel("detail");
  75949. if (E.get("show")) {
  75950. var M = E.get("offsetCenter"), R = o.cx + ze(M[0], o.r), N = o.cy + ze(M[1], o.r), I = ze(E.get("width"), o.r), B = ze(E.get("height"), o.r), Q = n.get(["progress", "show"]) ? l.getItemVisual(m, "style").fill : S, T = p[m], W = E.get("formatter");
  75951. T.attr({
  75952. z2: g ? 0 : 2,
  75953. style: Mn(E, {
  75954. x: R,
  75955. y: N,
  75956. text: jS(_, W),
  75957. width: isNaN(I) ? null : I,
  75958. height: isNaN(B) ? null : B,
  75959. align: "center",
  75960. verticalAlign: "middle"
  75961. }, {
  75962. inheritColor: Q
  75963. })
  75964. }), Lle(T, {
  75965. normal: E
  75966. }, _, function(U) {
  75967. return jS(U, W);
  75968. }), v && Nle(T, m, l, n, {
  75969. getFormattedLabel: function(U, j, Y, ne, fe, ue) {
  75970. return jS(ue ? ue.interpolatedValue : _, W);
  75971. }
  75972. }), O.add(T);
  75973. }
  75974. d.add(O);
  75975. }), this.group.add(d), this._titleEls = h, this._detailEls = p;
  75976. }, e.type = "gauge", e;
  75977. }(_n)
  75978. ), jrt = (
  75979. /** @class */
  75980. function(t) {
  75981. le(e, t);
  75982. function e() {
  75983. var n = t !== null && t.apply(this, arguments) || this;
  75984. return n.type = e.type, n.visualStyleAccessPath = "itemStyle", n;
  75985. }
  75986. return e.prototype.getInitialData = function(n, r) {
  75987. return Rm(this, ["value"]);
  75988. }, e.type = "series.gauge", e.defaultOption = {
  75989. // zlevel: 0,
  75990. z: 2,
  75991. colorBy: "data",
  75992. // 默认全局居中
  75993. center: ["50%", "50%"],
  75994. legendHoverLink: !0,
  75995. radius: "75%",
  75996. startAngle: 225,
  75997. endAngle: -45,
  75998. clockwise: !0,
  75999. // 最小值
  76000. min: 0,
  76001. // 最大值
  76002. max: 100,
  76003. // 分割段数,默认为10
  76004. splitNumber: 10,
  76005. // 坐标轴线
  76006. axisLine: {
  76007. // 默认显示,属性show控制显示与否
  76008. show: !0,
  76009. roundCap: !1,
  76010. lineStyle: {
  76011. color: [[1, "#E6EBF8"]],
  76012. width: 10
  76013. }
  76014. },
  76015. // 坐标轴线
  76016. progress: {
  76017. // 默认显示,属性show控制显示与否
  76018. show: !1,
  76019. overlap: !0,
  76020. width: 10,
  76021. roundCap: !1,
  76022. clip: !0
  76023. },
  76024. // 分隔线
  76025. splitLine: {
  76026. // 默认显示,属性show控制显示与否
  76027. show: !0,
  76028. // 属性length控制线长
  76029. length: 10,
  76030. distance: 10,
  76031. // 属性lineStyle(详见lineStyle)控制线条样式
  76032. lineStyle: {
  76033. color: "#63677A",
  76034. width: 3,
  76035. type: "solid"
  76036. }
  76037. },
  76038. // 坐标轴小标记
  76039. axisTick: {
  76040. // 属性show控制显示与否,默认不显示
  76041. show: !0,
  76042. // 每份split细分多少段
  76043. splitNumber: 5,
  76044. // 属性length控制线长
  76045. length: 6,
  76046. distance: 10,
  76047. // 属性lineStyle控制线条样式
  76048. lineStyle: {
  76049. color: "#63677A",
  76050. width: 1,
  76051. type: "solid"
  76052. }
  76053. },
  76054. axisLabel: {
  76055. show: !0,
  76056. distance: 15,
  76057. // formatter: null,
  76058. color: "#464646",
  76059. fontSize: 12,
  76060. rotate: 0
  76061. },
  76062. pointer: {
  76063. icon: null,
  76064. offsetCenter: [0, 0],
  76065. show: !0,
  76066. showAbove: !0,
  76067. length: "60%",
  76068. width: 6,
  76069. keepAspect: !1
  76070. },
  76071. anchor: {
  76072. show: !1,
  76073. showAbove: !1,
  76074. size: 6,
  76075. icon: "circle",
  76076. offsetCenter: [0, 0],
  76077. keepAspect: !1,
  76078. itemStyle: {
  76079. color: "#fff",
  76080. borderWidth: 0,
  76081. borderColor: "#5470c6"
  76082. }
  76083. },
  76084. title: {
  76085. show: !0,
  76086. // x, y,单位px
  76087. offsetCenter: [0, "20%"],
  76088. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  76089. color: "#464646",
  76090. fontSize: 16,
  76091. valueAnimation: !1
  76092. },
  76093. detail: {
  76094. show: !0,
  76095. backgroundColor: "rgba(0,0,0,0)",
  76096. borderWidth: 0,
  76097. borderColor: "#ccc",
  76098. width: 100,
  76099. height: null,
  76100. padding: [5, 10],
  76101. // x, y,单位px
  76102. offsetCenter: [0, "40%"],
  76103. // formatter: null,
  76104. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  76105. color: "#464646",
  76106. fontSize: 30,
  76107. fontWeight: "bold",
  76108. lineHeight: 30,
  76109. valueAnimation: !1
  76110. }
  76111. }, e;
  76112. }(Tn)
  76113. );
  76114. function Zrt(t) {
  76115. t.registerChartView(Grt), t.registerSeriesModel(jrt);
  76116. }
  76117. var Urt = ["itemStyle", "opacity"], Xrt = (
  76118. /** @class */
  76119. function(t) {
  76120. le(e, t);
  76121. function e(n, r) {
  76122. var i = t.call(this) || this, a = i, o = new va(), s = new jt();
  76123. return a.setTextContent(s), i.setTextGuideLine(o), i.updateData(n, r, !0), i;
  76124. }
  76125. return e.prototype.updateData = function(n, r, i) {
  76126. var a = this, o = n.hostModel, s = n.getItemModel(r), l = n.getItemLayout(r), u = s.getModel("emphasis"), c = s.get(Urt);
  76127. c = c ?? 1, i || Zs(a), a.useStyle(n.getItemVisual(r, "style")), a.style.lineJoin = "round", i ? (a.setShape({
  76128. points: l.points
  76129. }), a.style.opacity = 0, Vn(a, {
  76130. style: {
  76131. opacity: c
  76132. }
  76133. }, o, r)) : tn(a, {
  76134. style: {
  76135. opacity: c
  76136. },
  76137. shape: {
  76138. points: l.points
  76139. }
  76140. }, o, r), Ai(a, s), this._updateLabel(n, r), ur(this, u.get("focus"), u.get("blurScope"), u.get("disabled"));
  76141. }, e.prototype._updateLabel = function(n, r) {
  76142. var i = this, a = this.getTextGuideLine(), o = i.getTextContent(), s = n.hostModel, l = n.getItemModel(r), u = n.getItemLayout(r), c = u.label, f = n.getItemVisual(r, "style"), d = f.fill;
  76143. Ei(
  76144. // position will not be used in setLabelStyle
  76145. o,
  76146. ei(l),
  76147. {
  76148. labelFetcher: n.hostModel,
  76149. labelDataIndex: r,
  76150. defaultOpacity: f.opacity,
  76151. defaultText: n.getName(r)
  76152. },
  76153. {
  76154. normal: {
  76155. align: c.textAlign,
  76156. verticalAlign: c.verticalAlign
  76157. }
  76158. }
  76159. ), i.setTextConfig({
  76160. local: !0,
  76161. inside: !!c.inside,
  76162. insideStroke: d,
  76163. // insideFill: 'auto',
  76164. outsideFill: d
  76165. });
  76166. var h = c.linePoints;
  76167. a.setShape({
  76168. points: h
  76169. }), i.textGuideLineConfig = {
  76170. anchor: h ? new yt(h[0][0], h[0][1]) : null
  76171. }, tn(o, {
  76172. style: {
  76173. x: c.x,
  76174. y: c.y
  76175. }
  76176. }, s, r), o.attr({
  76177. rotation: c.rotation,
  76178. originX: c.x,
  76179. originY: c.y,
  76180. z2: 10
  76181. }), A3(i, E3(l), {
  76182. // Default use item visual color
  76183. stroke: d
  76184. });
  76185. }, e;
  76186. }(pa)
  76187. ), Yrt = (
  76188. /** @class */
  76189. function(t) {
  76190. le(e, t);
  76191. function e() {
  76192. var n = t !== null && t.apply(this, arguments) || this;
  76193. return n.type = e.type, n.ignoreLabelLineUpdate = !0, n;
  76194. }
  76195. return e.prototype.render = function(n, r, i) {
  76196. var a = n.getData(), o = this._data, s = this.group;
  76197. a.diff(o).add(function(l) {
  76198. var u = new Xrt(a, l);
  76199. a.setItemGraphicEl(l, u), s.add(u);
  76200. }).update(function(l, u) {
  76201. var c = o.getItemGraphicEl(u);
  76202. c.updateData(a, l), s.add(c), a.setItemGraphicEl(l, c);
  76203. }).remove(function(l) {
  76204. var u = o.getItemGraphicEl(l);
  76205. Xb(u, n, l);
  76206. }).execute(), this._data = a;
  76207. }, e.prototype.remove = function() {
  76208. this.group.removeAll(), this._data = null;
  76209. }, e.prototype.dispose = function() {
  76210. }, e.type = "funnel", e;
  76211. }(_n)
  76212. ), qrt = (
  76213. /** @class */
  76214. function(t) {
  76215. le(e, t);
  76216. function e() {
  76217. var n = t !== null && t.apply(this, arguments) || this;
  76218. return n.type = e.type, n;
  76219. }
  76220. return e.prototype.init = function(n) {
  76221. t.prototype.init.apply(this, arguments), this.legendVisualProvider = new S1(We(this.getData, this), We(this.getRawData, this)), this._defaultLabelLine(n);
  76222. }, e.prototype.getInitialData = function(n, r) {
  76223. return Rm(this, {
  76224. coordDimensions: ["value"],
  76225. encodeDefaulter: vt(n3, this)
  76226. });
  76227. }, e.prototype._defaultLabelLine = function(n) {
  76228. Hh(n, "labelLine", ["show"]);
  76229. var r = n.labelLine, i = n.emphasis.labelLine;
  76230. r.show = r.show && n.label.show, i.show = i.show && n.emphasis.label.show;
  76231. }, e.prototype.getDataParams = function(n) {
  76232. var r = this.getData(), i = t.prototype.getDataParams.call(this, n), a = r.mapDimension("value"), o = r.getSum(a);
  76233. return i.percent = o ? +(r.get(a, n) / o * 100).toFixed(2) : 0, i.$vars.push("percent"), i;
  76234. }, e.type = "series.funnel", e.defaultOption = {
  76235. // zlevel: 0, // 一级层叠
  76236. z: 2,
  76237. legendHoverLink: !0,
  76238. colorBy: "data",
  76239. left: 80,
  76240. top: 60,
  76241. right: 80,
  76242. bottom: 60,
  76243. // width: {totalWidth} - left - right,
  76244. // height: {totalHeight} - top - bottom,
  76245. // 默认取数据最小最大值
  76246. // min: 0,
  76247. // max: 100,
  76248. minSize: "0%",
  76249. maxSize: "100%",
  76250. sort: "descending",
  76251. orient: "vertical",
  76252. gap: 0,
  76253. funnelAlign: "center",
  76254. label: {
  76255. show: !0,
  76256. position: "outer"
  76257. // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
  76258. },
  76259. labelLine: {
  76260. show: !0,
  76261. length: 20,
  76262. lineStyle: {
  76263. // color: 各异,
  76264. width: 1
  76265. }
  76266. },
  76267. itemStyle: {
  76268. // color: 各异,
  76269. borderColor: "#fff",
  76270. borderWidth: 1
  76271. },
  76272. emphasis: {
  76273. label: {
  76274. show: !0
  76275. }
  76276. },
  76277. select: {
  76278. itemStyle: {
  76279. borderColor: "#212121"
  76280. }
  76281. }
  76282. }, e;
  76283. }(Tn)
  76284. );
  76285. function Krt(t, e) {
  76286. return Mr(t.getBoxLayoutParams(), {
  76287. width: e.getWidth(),
  76288. height: e.getHeight()
  76289. });
  76290. }
  76291. function Jrt(t, e) {
  76292. for (var n = t.mapDimension("value"), r = t.mapArray(n, function(l) {
  76293. return l;
  76294. }), i = [], a = e === "ascending", o = 0, s = t.count(); o < s; o++)
  76295. i[o] = o;
  76296. return qe(e) ? i.sort(e) : e !== "none" && i.sort(function(l, u) {
  76297. return a ? r[l] - r[u] : r[u] - r[l];
  76298. }), i;
  76299. }
  76300. function eit(t) {
  76301. var e = t.hostModel, n = e.get("orient");
  76302. t.each(function(r) {
  76303. var i = t.getItemModel(r), a = i.getModel("label"), o = a.get("position"), s = i.getModel("labelLine"), l = t.getItemLayout(r), u = l.points, c = o === "inner" || o === "inside" || o === "center" || o === "insideLeft" || o === "insideRight", f, d, h, p;
  76304. if (c)
  76305. o === "insideLeft" ? (d = (u[0][0] + u[3][0]) / 2 + 5, h = (u[0][1] + u[3][1]) / 2, f = "left") : o === "insideRight" ? (d = (u[1][0] + u[2][0]) / 2 - 5, h = (u[1][1] + u[2][1]) / 2, f = "right") : (d = (u[0][0] + u[1][0] + u[2][0] + u[3][0]) / 4, h = (u[0][1] + u[1][1] + u[2][1] + u[3][1]) / 4, f = "center"), p = [[d, h], [d, h]];
  76306. else {
  76307. var v = void 0, g = void 0, m = void 0, y = void 0, _ = s.get("length");
  76308. process.env.NODE_ENV !== "production" && (n === "vertical" && ["top", "bottom"].indexOf(o) > -1 && (o = "left", console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")), n === "horizontal" && ["left", "right"].indexOf(o) > -1 && (o = "bottom", console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))), o === "left" ? (v = (u[3][0] + u[0][0]) / 2, g = (u[3][1] + u[0][1]) / 2, m = v - _, d = m - 5, f = "right") : o === "right" ? (v = (u[1][0] + u[2][0]) / 2, g = (u[1][1] + u[2][1]) / 2, m = v + _, d = m + 5, f = "left") : o === "top" ? (v = (u[3][0] + u[0][0]) / 2, g = (u[3][1] + u[0][1]) / 2, y = g - _, h = y - 5, f = "center") : o === "bottom" ? (v = (u[1][0] + u[2][0]) / 2, g = (u[1][1] + u[2][1]) / 2, y = g + _, h = y + 5, f = "center") : o === "rightTop" ? (v = n === "horizontal" ? u[3][0] : u[1][0], g = n === "horizontal" ? u[3][1] : u[1][1], n === "horizontal" ? (y = g - _, h = y - 5, f = "center") : (m = v + _, d = m + 5, f = "top")) : o === "rightBottom" ? (v = u[2][0], g = u[2][1], n === "horizontal" ? (y = g + _, h = y + 5, f = "center") : (m = v + _, d = m + 5, f = "bottom")) : o === "leftTop" ? (v = u[0][0], g = n === "horizontal" ? u[0][1] : u[1][1], n === "horizontal" ? (y = g - _, h = y - 5, f = "center") : (m = v - _, d = m - 5, f = "right")) : o === "leftBottom" ? (v = n === "horizontal" ? u[1][0] : u[3][0], g = n === "horizontal" ? u[1][1] : u[2][1], n === "horizontal" ? (y = g + _, h = y + 5, f = "center") : (m = v - _, d = m - 5, f = "right")) : (v = (u[1][0] + u[2][0]) / 2, g = (u[1][1] + u[2][1]) / 2, n === "horizontal" ? (y = g + _, h = y + 5, f = "center") : (m = v + _, d = m + 5, f = "left")), n === "horizontal" ? (m = v, d = m) : (y = g, h = y), p = [[v, g], [m, y]];
  76309. }
  76310. l.label = {
  76311. linePoints: p,
  76312. x: d,
  76313. y: h,
  76314. verticalAlign: "middle",
  76315. textAlign: f,
  76316. inside: c
  76317. };
  76318. });
  76319. }
  76320. function tit(t, e) {
  76321. t.eachSeriesByType("funnel", function(n) {
  76322. var r = n.getData(), i = r.mapDimension("value"), a = n.get("sort"), o = Krt(n, e), s = n.get("orient"), l = o.width, u = o.height, c = Jrt(r, a), f = o.x, d = o.y, h = s === "horizontal" ? [ze(n.get("minSize"), u), ze(n.get("maxSize"), u)] : [ze(n.get("minSize"), l), ze(n.get("maxSize"), l)], p = r.getDataExtent(i), v = n.get("min"), g = n.get("max");
  76323. v == null && (v = Math.min(p[0], 0)), g == null && (g = p[1]);
  76324. var m = n.get("funnelAlign"), y = n.get("gap"), _ = s === "horizontal" ? l : u, O = (_ - y * (r.count() - 1)) / r.count(), S = function(N, I) {
  76325. if (s === "horizontal") {
  76326. var B = r.get(i, N) || 0, Q = gn(B, [v, g], h, !0), W = void 0;
  76327. switch (m) {
  76328. case "top":
  76329. W = d;
  76330. break;
  76331. case "center":
  76332. W = d + (u - Q) / 2;
  76333. break;
  76334. case "bottom":
  76335. W = d + (u - Q);
  76336. break;
  76337. }
  76338. return [[I, W], [I, W + Q]];
  76339. }
  76340. var H = r.get(i, N) || 0, U = gn(H, [v, g], h, !0), j;
  76341. switch (m) {
  76342. case "left":
  76343. j = f;
  76344. break;
  76345. case "center":
  76346. j = f + (l - U) / 2;
  76347. break;
  76348. case "right":
  76349. j = f + l - U;
  76350. break;
  76351. }
  76352. return [[j, I], [j + U, I]];
  76353. };
  76354. a === "ascending" && (O = -O, y = -y, s === "horizontal" ? f += l : d += u, c = c.reverse());
  76355. for (var x = 0; x < c.length; x++) {
  76356. var C = c[x], P = c[x + 1], $ = r.getItemModel(C);
  76357. if (s === "horizontal") {
  76358. var T = $.get(["itemStyle", "width"]);
  76359. T == null ? T = O : (T = ze(T, l), a === "ascending" && (T = -T));
  76360. var E = S(C, f), M = S(P, f + T);
  76361. f += T + y, r.setItemLayout(C, {
  76362. points: E.concat(M.slice().reverse())
  76363. });
  76364. } else {
  76365. var R = $.get(["itemStyle", "height"]);
  76366. R == null ? R = O : (R = ze(R, u), a === "ascending" && (R = -R));
  76367. var E = S(C, d), M = S(P, d + R);
  76368. d += R + y, r.setItemLayout(C, {
  76369. points: E.concat(M.slice().reverse())
  76370. });
  76371. }
  76372. }
  76373. eit(r);
  76374. });
  76375. }
  76376. function nit(t) {
  76377. t.registerChartView(Yrt), t.registerSeriesModel(qrt), t.registerLayout(tit), t.registerProcessor(O1("funnel"));
  76378. }
  76379. var rit = 0.3, iit = (
  76380. /** @class */
  76381. function(t) {
  76382. le(e, t);
  76383. function e() {
  76384. var n = t !== null && t.apply(this, arguments) || this;
  76385. return n.type = e.type, n._dataGroup = new ct(), n._initialized = !1, n;
  76386. }
  76387. return e.prototype.init = function() {
  76388. this.group.add(this._dataGroup);
  76389. }, e.prototype.render = function(n, r, i, a) {
  76390. this._progressiveEls = null;
  76391. var o = this._dataGroup, s = n.getData(), l = this._data, u = n.coordinateSystem, c = u.dimensions, f = VU(n);
  76392. s.diff(l).add(d).update(h).remove(p).execute();
  76393. function d(g) {
  76394. var m = zU(s, o, g, c, u);
  76395. vI(m, s, g, f);
  76396. }
  76397. function h(g, m) {
  76398. var y = l.getItemGraphicEl(m), _ = lde(s, g, c, u);
  76399. s.setItemGraphicEl(g, y), tn(y, {
  76400. shape: {
  76401. points: _
  76402. }
  76403. }, n, g), Zs(y), vI(y, s, g, f);
  76404. }
  76405. function p(g) {
  76406. var m = l.getItemGraphicEl(g);
  76407. o.remove(m);
  76408. }
  76409. if (!this._initialized) {
  76410. this._initialized = !0;
  76411. var v = ait(u, n, function() {
  76412. setTimeout(function() {
  76413. o.removeClipPath();
  76414. });
  76415. });
  76416. o.setClipPath(v);
  76417. }
  76418. this._data = s;
  76419. }, e.prototype.incrementalPrepareRender = function(n, r, i) {
  76420. this._initialized = !0, this._data = null, this._dataGroup.removeAll();
  76421. }, e.prototype.incrementalRender = function(n, r, i) {
  76422. for (var a = r.getData(), o = r.coordinateSystem, s = o.dimensions, l = VU(r), u = this._progressiveEls = [], c = n.start; c < n.end; c++) {
  76423. var f = zU(a, this._dataGroup, c, s, o);
  76424. f.incremental = !0, vI(f, a, c, l), u.push(f);
  76425. }
  76426. }, e.prototype.remove = function() {
  76427. this._dataGroup && this._dataGroup.removeAll(), this._data = null;
  76428. }, e.type = "parallel", e;
  76429. }(_n)
  76430. );
  76431. function ait(t, e, n) {
  76432. var r = t.model, i = t.getRect(), a = new Zt({
  76433. shape: {
  76434. x: i.x,
  76435. y: i.y,
  76436. width: i.width,
  76437. height: i.height
  76438. }
  76439. }), o = r.get("layout") === "horizontal" ? "width" : "height";
  76440. return a.setShape(o, 0), Vn(a, {
  76441. shape: {
  76442. width: i.width,
  76443. height: i.height
  76444. }
  76445. }, e, n), a;
  76446. }
  76447. function lde(t, e, n, r) {
  76448. for (var i = [], a = 0; a < n.length; a++) {
  76449. var o = n[a], s = t.get(t.mapDimension(o), e);
  76450. oit(s, r.getAxis(o).type) || i.push(r.dataToPoint(s, o));
  76451. }
  76452. return i;
  76453. }
  76454. function zU(t, e, n, r, i) {
  76455. var a = lde(t, n, r, i), o = new va({
  76456. shape: {
  76457. points: a
  76458. },
  76459. // silent: true,
  76460. z2: 10
  76461. });
  76462. return e.add(o), t.setItemGraphicEl(n, o), o;
  76463. }
  76464. function VU(t) {
  76465. var e = t.get("smooth", !0);
  76466. return e === !0 && (e = rit), e = Gl(e), mf(e) && (e = 0), {
  76467. smooth: e
  76468. };
  76469. }
  76470. function vI(t, e, n, r) {
  76471. t.useStyle(e.getItemVisual(n, "style")), t.style.fill = null, t.setShape("smooth", r.smooth);
  76472. var i = e.getItemModel(n), a = i.getModel("emphasis");
  76473. Ai(t, i, "lineStyle"), ur(t, a.get("focus"), a.get("blurScope"), a.get("disabled"));
  76474. }
  76475. function oit(t, e) {
  76476. return e === "category" ? t == null : t == null || isNaN(t);
  76477. }
  76478. var sit = (
  76479. /** @class */
  76480. function(t) {
  76481. le(e, t);
  76482. function e() {
  76483. var n = t !== null && t.apply(this, arguments) || this;
  76484. return n.type = e.type, n.visualStyleAccessPath = "lineStyle", n.visualDrawType = "stroke", n;
  76485. }
  76486. return e.prototype.getInitialData = function(n, r) {
  76487. return Yl(null, this, {
  76488. useEncodeDefaulter: We(lit, null, this)
  76489. });
  76490. }, e.prototype.getRawIndicesByActiveState = function(n) {
  76491. var r = this.coordinateSystem, i = this.getData(), a = [];
  76492. return r.eachActiveState(i, function(o, s) {
  76493. n === o && a.push(i.getRawIndex(s));
  76494. }), a;
  76495. }, e.type = "series.parallel", e.dependencies = ["parallel"], e.defaultOption = {
  76496. // zlevel: 0,
  76497. z: 2,
  76498. coordinateSystem: "parallel",
  76499. parallelIndex: 0,
  76500. label: {
  76501. show: !1
  76502. },
  76503. inactiveOpacity: 0.05,
  76504. activeOpacity: 1,
  76505. lineStyle: {
  76506. width: 1,
  76507. opacity: 0.45,
  76508. type: "solid"
  76509. },
  76510. emphasis: {
  76511. label: {
  76512. show: !1
  76513. }
  76514. },
  76515. progressive: 500,
  76516. smooth: !1,
  76517. animationEasing: "linear"
  76518. }, e;
  76519. }(Tn)
  76520. );
  76521. function lit(t) {
  76522. var e = t.ecModel.getComponent("parallel", t.get("parallelIndex"));
  76523. if (e) {
  76524. var n = {};
  76525. return F(e.dimensions, function(r) {
  76526. var i = uit(r);
  76527. n[r] = i;
  76528. }), n;
  76529. }
  76530. }
  76531. function uit(t) {
  76532. return +t.replace("dim", "");
  76533. }
  76534. var cit = ["lineStyle", "opacity"], fit = {
  76535. seriesType: "parallel",
  76536. reset: function(t, e) {
  76537. var n = t.coordinateSystem, r = {
  76538. normal: t.get(["lineStyle", "opacity"]),
  76539. active: t.get("activeOpacity"),
  76540. inactive: t.get("inactiveOpacity")
  76541. };
  76542. return {
  76543. progress: function(i, a) {
  76544. n.eachActiveState(a, function(o, s) {
  76545. var l = r[o];
  76546. if (o === "normal" && a.hasItemOption) {
  76547. var u = a.getItemModel(s).get(cit, !0);
  76548. u != null && (l = u);
  76549. }
  76550. var c = a.ensureUniqueItemVisual(s, "style");
  76551. c.opacity = l;
  76552. }, i.start, i.end);
  76553. }
  76554. };
  76555. }
  76556. };
  76557. function dit(t) {
  76558. hit(t), pit(t);
  76559. }
  76560. function hit(t) {
  76561. if (!t.parallel) {
  76562. var e = !1;
  76563. F(t.series, function(n) {
  76564. n && n.type === "parallel" && (e = !0);
  76565. }), e && (t.parallel = [{}]);
  76566. }
  76567. }
  76568. function pit(t) {
  76569. var e = Cn(t.parallelAxis);
  76570. F(e, function(n) {
  76571. if (nt(n)) {
  76572. var r = n.parallelIndex || 0, i = Cn(t.parallel)[r];
  76573. i && i.parallelAxisDefault && mt(n, i.parallelAxisDefault, !1);
  76574. }
  76575. });
  76576. }
  76577. var vit = 5, git = (
  76578. /** @class */
  76579. function(t) {
  76580. le(e, t);
  76581. function e() {
  76582. var n = t !== null && t.apply(this, arguments) || this;
  76583. return n.type = e.type, n;
  76584. }
  76585. return e.prototype.render = function(n, r, i) {
  76586. this._model = n, this._api = i, this._handlers || (this._handlers = {}, F(mit, function(a, o) {
  76587. i.getZr().on(o, this._handlers[o] = We(a, this));
  76588. }, this)), Am(this, "_throttledDispatchExpand", n.get("axisExpandRate"), "fixRate");
  76589. }, e.prototype.dispose = function(n, r) {
  76590. Jb(this, "_throttledDispatchExpand"), F(this._handlers, function(i, a) {
  76591. r.getZr().off(a, i);
  76592. }), this._handlers = null;
  76593. }, e.prototype._throttledDispatchExpand = function(n) {
  76594. this._dispatchExpand(n);
  76595. }, e.prototype._dispatchExpand = function(n) {
  76596. n && this._api.dispatchAction(_e({
  76597. type: "parallelAxisExpand"
  76598. }, n));
  76599. }, e.type = "parallel", e;
  76600. }(Ln)
  76601. ), mit = {
  76602. mousedown: function(t) {
  76603. gI(this, "click") && (this._mouseDownPoint = [t.offsetX, t.offsetY]);
  76604. },
  76605. mouseup: function(t) {
  76606. var e = this._mouseDownPoint;
  76607. if (gI(this, "click") && e) {
  76608. var n = [t.offsetX, t.offsetY], r = Math.pow(e[0] - n[0], 2) + Math.pow(e[1] - n[1], 2);
  76609. if (r > vit)
  76610. return;
  76611. var i = this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]);
  76612. i.behavior !== "none" && this._dispatchExpand({
  76613. axisExpandWindow: i.axisExpandWindow
  76614. });
  76615. }
  76616. this._mouseDownPoint = null;
  76617. },
  76618. mousemove: function(t) {
  76619. if (!(this._mouseDownPoint || !gI(this, "mousemove"))) {
  76620. var e = this._model, n = e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]), r = n.behavior;
  76621. r === "jump" && this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")), this._throttledDispatchExpand(r === "none" ? null : {
  76622. axisExpandWindow: n.axisExpandWindow,
  76623. // Jumping uses animation, and sliding suppresses animation.
  76624. animation: r === "jump" ? null : {
  76625. duration: 0
  76626. // Disable animation.
  76627. }
  76628. });
  76629. }
  76630. }
  76631. };
  76632. function gI(t, e) {
  76633. var n = t._model;
  76634. return n.get("axisExpandable") && n.get("axisExpandTriggerOn") === e;
  76635. }
  76636. var yit = (
  76637. /** @class */
  76638. function(t) {
  76639. le(e, t);
  76640. function e() {
  76641. var n = t !== null && t.apply(this, arguments) || this;
  76642. return n.type = e.type, n;
  76643. }
  76644. return e.prototype.init = function() {
  76645. t.prototype.init.apply(this, arguments), this.mergeOption({});
  76646. }, e.prototype.mergeOption = function(n) {
  76647. var r = this.option;
  76648. n && mt(r, n, !0), this._initDimensions();
  76649. }, e.prototype.contains = function(n, r) {
  76650. var i = n.get("parallelIndex");
  76651. return i != null && r.getComponent("parallel", i) === this;
  76652. }, e.prototype.setAxisExpand = function(n) {
  76653. F(["axisExpandable", "axisExpandCenter", "axisExpandCount", "axisExpandWidth", "axisExpandWindow"], function(r) {
  76654. n.hasOwnProperty(r) && (this.option[r] = n[r]);
  76655. }, this);
  76656. }, e.prototype._initDimensions = function() {
  76657. var n = this.dimensions = [], r = this.parallelAxisIndex = [], i = yn(this.ecModel.queryComponents({
  76658. mainType: "parallelAxis"
  76659. }), function(a) {
  76660. return (a.get("parallelIndex") || 0) === this.componentIndex;
  76661. }, this);
  76662. F(i, function(a) {
  76663. n.push("dim" + a.get("dim")), r.push(a.componentIndex);
  76664. });
  76665. }, e.type = "parallel", e.dependencies = ["parallelAxis"], e.layoutMode = "box", e.defaultOption = {
  76666. // zlevel: 0,
  76667. z: 0,
  76668. left: 80,
  76669. top: 60,
  76670. right: 80,
  76671. bottom: 60,
  76672. // width: {totalWidth} - left - right,
  76673. // height: {totalHeight} - top - bottom,
  76674. layout: "horizontal",
  76675. // FIXME
  76676. // naming?
  76677. axisExpandable: !1,
  76678. axisExpandCenter: null,
  76679. axisExpandCount: 0,
  76680. axisExpandWidth: 50,
  76681. axisExpandRate: 17,
  76682. axisExpandDebounce: 50,
  76683. // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.
  76684. // Do not doc to user until necessary.
  76685. axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],
  76686. axisExpandTriggerOn: "click",
  76687. parallelAxisDefault: null
  76688. }, e;
  76689. }(At)
  76690. ), bit = (
  76691. /** @class */
  76692. function(t) {
  76693. le(e, t);
  76694. function e(n, r, i, a, o) {
  76695. var s = t.call(this, n, r, i) || this;
  76696. return s.type = a || "value", s.axisIndex = o, s;
  76697. }
  76698. return e.prototype.isHorizontal = function() {
  76699. return this.coordinateSystem.getModel().get("layout") !== "horizontal";
  76700. }, e;
  76701. }(vs)
  76702. );
  76703. function _p(t, e, n, r, i, a) {
  76704. t = t || 0;
  76705. var o = n[1] - n[0];
  76706. if (i != null && (i = uv(i, [0, o])), a != null && (a = Math.max(a, i ?? 0)), r === "all") {
  76707. var s = Math.abs(e[1] - e[0]);
  76708. s = uv(s, [0, o]), i = a = uv(s, [i, a]), r = 0;
  76709. }
  76710. e[0] = uv(e[0], n), e[1] = uv(e[1], n);
  76711. var l = mI(e, r);
  76712. e[r] += t;
  76713. var u = i || 0, c = n.slice();
  76714. l.sign < 0 ? c[0] += u : c[1] -= u, e[r] = uv(e[r], c);
  76715. var f;
  76716. return f = mI(e, r), i != null && (f.sign !== l.sign || f.span < i) && (e[1 - r] = e[r] + l.sign * i), f = mI(e, r), a != null && f.span > a && (e[1 - r] = e[r] + f.sign * a), e;
  76717. }
  76718. function mI(t, e) {
  76719. var n = t[e] - t[1 - e];
  76720. return {
  76721. span: Math.abs(n),
  76722. sign: n > 0 ? -1 : n < 0 ? 1 : e ? -1 : 1
  76723. };
  76724. }
  76725. function uv(t, e) {
  76726. return Math.min(e[1] != null ? e[1] : 1 / 0, Math.max(e[0] != null ? e[0] : -1 / 0, t));
  76727. }
  76728. var yI = F, ude = Math.min, cde = Math.max, FU = Math.floor, _it = Math.ceil, WU = sr, Oit = Math.PI, Sit = (
  76729. /** @class */
  76730. function() {
  76731. function t(e, n, r) {
  76732. this.type = "parallel", this._axesMap = Ze(), this._axesLayout = {}, this.dimensions = e.dimensions, this._model = e, this._init(e, n, r);
  76733. }
  76734. return t.prototype._init = function(e, n, r) {
  76735. var i = e.dimensions, a = e.parallelAxisIndex;
  76736. yI(i, function(o, s) {
  76737. var l = a[s], u = n.getComponent("parallelAxis", l), c = this._axesMap.set(o, new bit(o, g1(u), [0, 0], u.get("type"), l)), f = c.type === "category";
  76738. c.onBand = f && u.get("boundaryGap"), c.inverse = u.get("inverse"), u.axis = c, c.model = u, c.coordinateSystem = u.coordinateSystem = this;
  76739. }, this);
  76740. }, t.prototype.update = function(e, n) {
  76741. this._updateAxesFromSeries(this._model, e);
  76742. }, t.prototype.containPoint = function(e) {
  76743. var n = this._makeLayoutInfo(), r = n.axisBase, i = n.layoutBase, a = n.pixelDimIndex, o = e[1 - a], s = e[a];
  76744. return o >= r && o <= r + n.axisLength && s >= i && s <= i + n.layoutLength;
  76745. }, t.prototype.getModel = function() {
  76746. return this._model;
  76747. }, t.prototype._updateAxesFromSeries = function(e, n) {
  76748. n.eachSeries(function(r) {
  76749. if (e.contains(r, n)) {
  76750. var i = r.getData();
  76751. yI(this.dimensions, function(a) {
  76752. var o = this._axesMap.get(a);
  76753. o.scale.unionExtentFromData(i, i.mapDimension(a)), Xh(o.scale, o.model);
  76754. }, this);
  76755. }
  76756. }, this);
  76757. }, t.prototype.resize = function(e, n) {
  76758. this._rect = Mr(e.getBoxLayoutParams(), {
  76759. width: n.getWidth(),
  76760. height: n.getHeight()
  76761. }), this._layoutAxes();
  76762. }, t.prototype.getRect = function() {
  76763. return this._rect;
  76764. }, t.prototype._makeLayoutInfo = function() {
  76765. var e = this._model, n = this._rect, r = ["x", "y"], i = ["width", "height"], a = e.get("layout"), o = a === "horizontal" ? 0 : 1, s = n[i[o]], l = [0, s], u = this.dimensions.length, c = ZS(e.get("axisExpandWidth"), l), f = ZS(e.get("axisExpandCount") || 0, [0, u]), d = e.get("axisExpandable") && u > 3 && u > f && f > 1 && c > 0 && s > 0, h = e.get("axisExpandWindow"), p;
  76766. if (h)
  76767. p = ZS(h[1] - h[0], l), h[1] = h[0] + p;
  76768. else {
  76769. p = ZS(c * (f - 1), l);
  76770. var v = e.get("axisExpandCenter") || FU(u / 2);
  76771. h = [c * v - p / 2], h[1] = h[0] + p;
  76772. }
  76773. var g = (s - p) / (u - f);
  76774. g < 3 && (g = 0);
  76775. var m = [FU(WU(h[0] / c, 1)) + 1, _it(WU(h[1] / c, 1)) - 1], y = g / c * h[0];
  76776. return {
  76777. layout: a,
  76778. pixelDimIndex: o,
  76779. layoutBase: n[r[o]],
  76780. layoutLength: s,
  76781. axisBase: n[r[1 - o]],
  76782. axisLength: n[i[1 - o]],
  76783. axisExpandable: d,
  76784. axisExpandWidth: c,
  76785. axisCollapseWidth: g,
  76786. axisExpandWindow: h,
  76787. axisCount: u,
  76788. winInnerIndices: m,
  76789. axisExpandWindow0Pos: y
  76790. };
  76791. }, t.prototype._layoutAxes = function() {
  76792. var e = this._rect, n = this._axesMap, r = this.dimensions, i = this._makeLayoutInfo(), a = i.layout;
  76793. n.each(function(o) {
  76794. var s = [0, i.axisLength], l = o.inverse ? 1 : 0;
  76795. o.setExtent(s[l], s[1 - l]);
  76796. }), yI(r, function(o, s) {
  76797. var l = (i.axisExpandable ? wit : xit)(s, i), u = {
  76798. horizontal: {
  76799. x: l.position,
  76800. y: i.axisLength
  76801. },
  76802. vertical: {
  76803. x: 0,
  76804. y: l.position
  76805. }
  76806. }, c = {
  76807. horizontal: Oit / 2,
  76808. vertical: 0
  76809. }, f = [u[a].x + e.x, u[a].y + e.y], d = c[a], h = Na();
  76810. Lf(h, h, d), Gs(h, h, f), this._axesLayout[o] = {
  76811. position: f,
  76812. rotation: d,
  76813. transform: h,
  76814. axisNameAvailableWidth: l.axisNameAvailableWidth,
  76815. axisLabelShow: l.axisLabelShow,
  76816. nameTruncateMaxWidth: l.nameTruncateMaxWidth,
  76817. tickDirection: 1,
  76818. labelDirection: 1
  76819. };
  76820. }, this);
  76821. }, t.prototype.getAxis = function(e) {
  76822. return this._axesMap.get(e);
  76823. }, t.prototype.dataToPoint = function(e, n) {
  76824. return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e), n);
  76825. }, t.prototype.eachActiveState = function(e, n, r, i) {
  76826. r == null && (r = 0), i == null && (i = e.count());
  76827. var a = this._axesMap, o = this.dimensions, s = [], l = [];
  76828. F(o, function(g) {
  76829. s.push(e.mapDimension(g)), l.push(a.get(g).model);
  76830. });
  76831. for (var u = this.hasAxisBrushed(), c = r; c < i; c++) {
  76832. var f = void 0;
  76833. if (!u)
  76834. f = "normal";
  76835. else {
  76836. f = "active";
  76837. for (var d = e.getValues(s, c), h = 0, p = o.length; h < p; h++) {
  76838. var v = l[h].getActiveState(d[h]);
  76839. if (v === "inactive") {
  76840. f = "inactive";
  76841. break;
  76842. }
  76843. }
  76844. }
  76845. n(f, c);
  76846. }
  76847. }, t.prototype.hasAxisBrushed = function() {
  76848. for (var e = this.dimensions, n = this._axesMap, r = !1, i = 0, a = e.length; i < a; i++)
  76849. n.get(e[i]).model.getActiveState() !== "normal" && (r = !0);
  76850. return r;
  76851. }, t.prototype.axisCoordToPoint = function(e, n) {
  76852. var r = this._axesLayout[n];
  76853. return zs([e, 0], r.transform);
  76854. }, t.prototype.getAxisLayout = function(e) {
  76855. return ot(this._axesLayout[e]);
  76856. }, t.prototype.getSlidedAxisExpandWindow = function(e) {
  76857. var n = this._makeLayoutInfo(), r = n.pixelDimIndex, i = n.axisExpandWindow.slice(), a = i[1] - i[0], o = [0, n.axisExpandWidth * (n.axisCount - 1)];
  76858. if (!this.containPoint(e))
  76859. return {
  76860. behavior: "none",
  76861. axisExpandWindow: i
  76862. };
  76863. var s = e[r] - n.layoutBase - n.axisExpandWindow0Pos, l, u = "slide", c = n.axisCollapseWidth, f = this._model.get("axisExpandSlideTriggerArea"), d = f[0] != null;
  76864. if (c)
  76865. d && c && s < a * f[0] ? (u = "jump", l = s - a * f[2]) : d && c && s > a * (1 - f[0]) ? (u = "jump", l = s - a * (1 - f[2])) : (l = s - a * f[1]) >= 0 && (l = s - a * (1 - f[1])) <= 0 && (l = 0), l *= n.axisExpandWidth / c, l ? _p(l, i, o, "all") : u = "none";
  76866. else {
  76867. var h = i[1] - i[0], p = o[1] * s / h;
  76868. i = [cde(0, p - h / 2)], i[1] = ude(o[1], i[0] + h), i[0] = i[1] - h;
  76869. }
  76870. return {
  76871. axisExpandWindow: i,
  76872. behavior: u
  76873. };
  76874. }, t;
  76875. }()
  76876. );
  76877. function ZS(t, e) {
  76878. return ude(cde(t, e[0]), e[1]);
  76879. }
  76880. function xit(t, e) {
  76881. var n = e.layoutLength / (e.axisCount - 1);
  76882. return {
  76883. position: n * t,
  76884. axisNameAvailableWidth: n,
  76885. axisLabelShow: !0
  76886. };
  76887. }
  76888. function wit(t, e) {
  76889. var n = e.layoutLength, r = e.axisExpandWidth, i = e.axisCount, a = e.axisCollapseWidth, o = e.winInnerIndices, s, l = a, u = !1, c;
  76890. return t < o[0] ? (s = t * a, c = a) : t <= o[1] ? (s = e.axisExpandWindow0Pos + t * r - e.axisExpandWindow[0], l = r, u = !0) : (s = n - (i - 1 - t) * a, c = a), {
  76891. position: s,
  76892. axisNameAvailableWidth: l,
  76893. axisLabelShow: u,
  76894. nameTruncateMaxWidth: c
  76895. };
  76896. }
  76897. function Cit(t, e) {
  76898. var n = [];
  76899. return t.eachComponent("parallel", function(r, i) {
  76900. var a = new Sit(r, t, e);
  76901. a.name = "parallel_" + i, a.resize(r, e), r.coordinateSystem = a, a.model = r, n.push(a);
  76902. }), t.eachSeries(function(r) {
  76903. if (r.get("coordinateSystem") === "parallel") {
  76904. var i = r.getReferringComponents("parallel", Er).models[0];
  76905. r.coordinateSystem = i.coordinateSystem;
  76906. }
  76907. }), n;
  76908. }
  76909. var Tit = {
  76910. create: Cit
  76911. }, yL = (
  76912. /** @class */
  76913. function(t) {
  76914. le(e, t);
  76915. function e() {
  76916. var n = t !== null && t.apply(this, arguments) || this;
  76917. return n.type = e.type, n.activeIntervals = [], n;
  76918. }
  76919. return e.prototype.getAreaSelectStyle = function() {
  76920. return jh([
  76921. ["fill", "color"],
  76922. ["lineWidth", "borderWidth"],
  76923. ["stroke", "borderColor"],
  76924. ["width", "width"],
  76925. ["opacity", "opacity"]
  76926. // Option decal is in `DecalObject` but style.decal is in `PatternObject`.
  76927. // So do not transfer decal directly.
  76928. ])(this.getModel("areaSelectStyle"));
  76929. }, e.prototype.setActiveIntervals = function(n) {
  76930. var r = this.activeIntervals = ot(n);
  76931. if (r)
  76932. for (var i = r.length - 1; i >= 0; i--)
  76933. ao(r[i]);
  76934. }, e.prototype.getActiveState = function(n) {
  76935. var r = this.activeIntervals;
  76936. if (!r.length)
  76937. return "normal";
  76938. if (n == null || isNaN(+n))
  76939. return "inactive";
  76940. if (r.length === 1) {
  76941. var i = r[0];
  76942. if (i[0] <= n && n <= i[1])
  76943. return "active";
  76944. } else
  76945. for (var a = 0, o = r.length; a < o; a++)
  76946. if (r[a][0] <= n && n <= r[a][1])
  76947. return "active";
  76948. return "inactive";
  76949. }, e;
  76950. }(At)
  76951. );
  76952. vr(yL, Dm);
  76953. var Yh = !0, f_ = Math.min, Ug = Math.max, Pit = Math.pow, $it = 1e4, Ait = 6, Eit = 6, QU = "globalPan", Mit = {
  76954. w: [0, 0],
  76955. e: [0, 1],
  76956. n: [1, 0],
  76957. s: [1, 1]
  76958. }, Iit = {
  76959. w: "ew",
  76960. e: "ew",
  76961. n: "ns",
  76962. s: "ns",
  76963. ne: "nesw",
  76964. sw: "nesw",
  76965. nw: "nwse",
  76966. se: "nwse"
  76967. }, HU = {
  76968. brushStyle: {
  76969. lineWidth: 2,
  76970. stroke: "rgba(210,219,238,0.3)",
  76971. fill: "#D2DBEE"
  76972. },
  76973. transformable: !0,
  76974. brushMode: "single",
  76975. removeOnClick: !1
  76976. }, Dit = 0, J3 = (
  76977. /** @class */
  76978. function(t) {
  76979. le(e, t);
  76980. function e(n) {
  76981. var r = t.call(this) || this;
  76982. return r._track = [], r._covers = [], r._handlers = {}, process.env.NODE_ENV !== "production" && at(n), r._zr = n, r.group = new ct(), r._uid = "brushController_" + Dit++, F(Vit, function(i, a) {
  76983. this._handlers[a] = We(i, this);
  76984. }, r), r;
  76985. }
  76986. return e.prototype.enableBrush = function(n) {
  76987. return process.env.NODE_ENV !== "production" && at(this._mounted), this._brushType && this._doDisableBrush(), n.brushType && this._doEnableBrush(n), this;
  76988. }, e.prototype._doEnableBrush = function(n) {
  76989. var r = this._zr;
  76990. this._enableGlobalPan || xtt(r, QU, this._uid), F(this._handlers, function(i, a) {
  76991. r.on(a, i);
  76992. }), this._brushType = n.brushType, this._brushOption = mt(ot(HU), n, !0);
  76993. }, e.prototype._doDisableBrush = function() {
  76994. var n = this._zr;
  76995. wtt(n, QU, this._uid), F(this._handlers, function(r, i) {
  76996. n.off(i, r);
  76997. }), this._brushType = this._brushOption = null;
  76998. }, e.prototype.setPanels = function(n) {
  76999. if (n && n.length) {
  77000. var r = this._panels = {};
  77001. F(n, function(i) {
  77002. r[i.panelId] = ot(i);
  77003. });
  77004. } else
  77005. this._panels = null;
  77006. return this;
  77007. }, e.prototype.mount = function(n) {
  77008. n = n || {}, process.env.NODE_ENV !== "production" && (this._mounted = !0), this._enableGlobalPan = n.enableGlobalPan;
  77009. var r = this.group;
  77010. return this._zr.add(r), r.attr({
  77011. x: n.x || 0,
  77012. y: n.y || 0,
  77013. rotation: n.rotation || 0,
  77014. scaleX: n.scaleX || 1,
  77015. scaleY: n.scaleY || 1
  77016. }), this._transform = r.getLocalTransform(), this;
  77017. }, e.prototype.updateCovers = function(n) {
  77018. process.env.NODE_ENV !== "production" && at(this._mounted), n = Ce(n, function(d) {
  77019. return mt(ot(HU), d, !0);
  77020. });
  77021. var r = "\0-brush-index-", i = this._covers, a = this._covers = [], o = this, s = this._creatingCover;
  77022. return new Qu(i, n, u, l).add(c).update(c).remove(f).execute(), this;
  77023. function l(d, h) {
  77024. return (d.id != null ? d.id : r + h) + "-" + d.brushType;
  77025. }
  77026. function u(d, h) {
  77027. return l(d.__brushOption, h);
  77028. }
  77029. function c(d, h) {
  77030. var p = n[d];
  77031. if (h != null && i[h] === s)
  77032. a[d] = i[h];
  77033. else {
  77034. var v = a[d] = h != null ? (i[h].__brushOption = p, i[h]) : dde(o, fde(o, p));
  77035. e6(o, v);
  77036. }
  77037. }
  77038. function f(d) {
  77039. i[d] !== s && o.group.remove(i[d]);
  77040. }
  77041. }, e.prototype.unmount = function() {
  77042. if (!(process.env.NODE_ENV !== "production" && !this._mounted))
  77043. return this.enableBrush(!1), bL(this), this._zr.remove(this.group), process.env.NODE_ENV !== "production" && (this._mounted = !1), this;
  77044. }, e.prototype.dispose = function() {
  77045. this.unmount(), this.off();
  77046. }, e;
  77047. }(fs)
  77048. );
  77049. function fde(t, e) {
  77050. var n = ZP[e.brushType].createCover(t, e);
  77051. return n.__brushOption = e, pde(n, e), t.group.add(n), n;
  77052. }
  77053. function dde(t, e) {
  77054. var n = t6(e);
  77055. return n.endCreating && (n.endCreating(t, e), pde(e, e.__brushOption)), e;
  77056. }
  77057. function hde(t, e) {
  77058. var n = e.__brushOption;
  77059. t6(e).updateCoverShape(t, e, n.range, n);
  77060. }
  77061. function pde(t, e) {
  77062. var n = e.z;
  77063. n == null && (n = $it), t.traverse(function(r) {
  77064. r.z = n, r.z2 = n;
  77065. });
  77066. }
  77067. function e6(t, e) {
  77068. t6(e).updateCommon(t, e), hde(t, e);
  77069. }
  77070. function t6(t) {
  77071. return ZP[t.__brushOption.brushType];
  77072. }
  77073. function n6(t, e, n) {
  77074. var r = t._panels;
  77075. if (!r)
  77076. return Yh;
  77077. var i, a = t._transform;
  77078. return F(r, function(o) {
  77079. o.isTargetByCursor(e, n, a) && (i = o);
  77080. }), i;
  77081. }
  77082. function vde(t, e) {
  77083. var n = t._panels;
  77084. if (!n)
  77085. return Yh;
  77086. var r = e.__brushOption.panelId;
  77087. return r != null ? n[r] : Yh;
  77088. }
  77089. function bL(t) {
  77090. var e = t._covers, n = e.length;
  77091. return F(e, function(r) {
  77092. t.group.remove(r);
  77093. }, t), e.length = 0, !!n;
  77094. }
  77095. function qh(t, e) {
  77096. var n = Ce(t._covers, function(r) {
  77097. var i = r.__brushOption, a = ot(i.range);
  77098. return {
  77099. brushType: i.brushType,
  77100. panelId: i.panelId,
  77101. range: a
  77102. };
  77103. });
  77104. t.trigger("brush", {
  77105. areas: n,
  77106. isEnd: !!e.isEnd,
  77107. removeOnClick: !!e.removeOnClick
  77108. });
  77109. }
  77110. function Rit(t) {
  77111. var e = t._track;
  77112. if (!e.length)
  77113. return !1;
  77114. var n = e[e.length - 1], r = e[0], i = n[0] - r[0], a = n[1] - r[1], o = Pit(i * i + a * a, 0.5);
  77115. return o > Ait;
  77116. }
  77117. function gde(t) {
  77118. var e = t.length - 1;
  77119. return e < 0 && (e = 0), [t[0], t[e]];
  77120. }
  77121. function mde(t, e, n, r) {
  77122. var i = new ct();
  77123. return i.add(new Zt({
  77124. name: "main",
  77125. style: r6(n),
  77126. silent: !0,
  77127. draggable: !0,
  77128. cursor: "move",
  77129. drift: vt(GU, t, e, i, ["n", "s", "w", "e"]),
  77130. ondragend: vt(qh, e, {
  77131. isEnd: !0
  77132. })
  77133. })), F(r, function(a) {
  77134. i.add(new Zt({
  77135. name: a.join(""),
  77136. style: {
  77137. opacity: 0
  77138. },
  77139. draggable: !0,
  77140. silent: !0,
  77141. invisible: !0,
  77142. drift: vt(GU, t, e, i, a),
  77143. ondragend: vt(qh, e, {
  77144. isEnd: !0
  77145. })
  77146. }));
  77147. }), i;
  77148. }
  77149. function yde(t, e, n, r) {
  77150. var i = r.brushStyle.lineWidth || 0, a = Ug(i, Eit), o = n[0][0], s = n[1][0], l = o - i / 2, u = s - i / 2, c = n[0][1], f = n[1][1], d = c - a + i / 2, h = f - a + i / 2, p = c - o, v = f - s, g = p + i, m = v + i;
  77151. gu(t, e, "main", o, s, p, v), r.transformable && (gu(t, e, "w", l, u, a, m), gu(t, e, "e", d, u, a, m), gu(t, e, "n", l, u, g, a), gu(t, e, "s", l, h, g, a), gu(t, e, "nw", l, u, a, a), gu(t, e, "ne", d, u, a, a), gu(t, e, "sw", l, h, a, a), gu(t, e, "se", d, h, a, a));
  77152. }
  77153. function _L(t, e) {
  77154. var n = e.__brushOption, r = n.transformable, i = e.childAt(0);
  77155. i.useStyle(r6(n)), i.attr({
  77156. silent: !r,
  77157. cursor: r ? "move" : "default"
  77158. }), F([["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]], function(a) {
  77159. var o = e.childOfName(a.join("")), s = a.length === 1 ? OL(t, a[0]) : Lit(t, a);
  77160. o && o.attr({
  77161. silent: !r,
  77162. invisible: !r,
  77163. cursor: r ? Iit[s] + "-resize" : null
  77164. });
  77165. });
  77166. }
  77167. function gu(t, e, n, r, i, a, o) {
  77168. var s = e.childOfName(n);
  77169. s && s.setShape(Bit(i6(t, e, [[r, i], [r + a, i + o]])));
  77170. }
  77171. function r6(t) {
  77172. return it({
  77173. strokeNoScale: !0
  77174. }, t.brushStyle);
  77175. }
  77176. function bde(t, e, n, r) {
  77177. var i = [f_(t, n), f_(e, r)], a = [Ug(t, n), Ug(e, r)];
  77178. return [
  77179. [i[0], a[0]],
  77180. [i[1], a[1]]
  77181. // y range
  77182. ];
  77183. }
  77184. function kit(t) {
  77185. return of(t.group);
  77186. }
  77187. function OL(t, e) {
  77188. var n = {
  77189. w: "left",
  77190. e: "right",
  77191. n: "top",
  77192. s: "bottom"
  77193. }, r = {
  77194. left: "w",
  77195. right: "e",
  77196. top: "n",
  77197. bottom: "s"
  77198. }, i = CP(n[e], kit(t));
  77199. return r[i];
  77200. }
  77201. function Lit(t, e) {
  77202. var n = [OL(t, e[0]), OL(t, e[1])];
  77203. return (n[0] === "e" || n[0] === "w") && n.reverse(), n.join("");
  77204. }
  77205. function GU(t, e, n, r, i, a) {
  77206. var o = n.__brushOption, s = t.toRectRange(o.range), l = _de(e, i, a);
  77207. F(r, function(u) {
  77208. var c = Mit[u];
  77209. s[c[0]][c[1]] += l[c[0]];
  77210. }), o.range = t.fromRectRange(bde(s[0][0], s[1][0], s[0][1], s[1][1])), e6(e, n), qh(e, {
  77211. isEnd: !1
  77212. });
  77213. }
  77214. function Nit(t, e, n, r) {
  77215. var i = e.__brushOption.range, a = _de(t, n, r);
  77216. F(i, function(o) {
  77217. o[0] += a[0], o[1] += a[1];
  77218. }), e6(t, e), qh(t, {
  77219. isEnd: !1
  77220. });
  77221. }
  77222. function _de(t, e, n) {
  77223. var r = t.group, i = r.transformCoordToLocal(e, n), a = r.transformCoordToLocal(0, 0);
  77224. return [i[0] - a[0], i[1] - a[1]];
  77225. }
  77226. function i6(t, e, n) {
  77227. var r = vde(t, e);
  77228. return r && r !== Yh ? r.clipPath(n, t._transform) : ot(n);
  77229. }
  77230. function Bit(t) {
  77231. var e = f_(t[0][0], t[1][0]), n = f_(t[0][1], t[1][1]), r = Ug(t[0][0], t[1][0]), i = Ug(t[0][1], t[1][1]);
  77232. return {
  77233. x: e,
  77234. y: n,
  77235. width: r - e,
  77236. height: i - n
  77237. };
  77238. }
  77239. function zit(t, e, n) {
  77240. if (
  77241. // Check active
  77242. !(!t._brushType || Fit(t, e.offsetX, e.offsetY))
  77243. ) {
  77244. var r = t._zr, i = t._covers, a = n6(t, e, n);
  77245. if (!t._dragging)
  77246. for (var o = 0; o < i.length; o++) {
  77247. var s = i[o].__brushOption;
  77248. if (a && (a === Yh || s.panelId === a.panelId) && ZP[s.brushType].contain(i[o], n[0], n[1]))
  77249. return;
  77250. }
  77251. a && r.setCursorStyle("crosshair");
  77252. }
  77253. }
  77254. function SL(t) {
  77255. var e = t.event;
  77256. e.preventDefault && e.preventDefault();
  77257. }
  77258. function xL(t, e, n) {
  77259. return t.childOfName("main").contain(e, n);
  77260. }
  77261. function Ode(t, e, n, r) {
  77262. var i = t._creatingCover, a = t._creatingPanel, o = t._brushOption, s;
  77263. if (t._track.push(n.slice()), Rit(t) || i) {
  77264. if (a && !i) {
  77265. o.brushMode === "single" && bL(t);
  77266. var l = ot(o);
  77267. l.brushType = jU(l.brushType, a), l.panelId = a === Yh ? null : a.panelId, i = t._creatingCover = fde(t, l), t._covers.push(i);
  77268. }
  77269. if (i) {
  77270. var u = ZP[jU(t._brushType, a)], c = i.__brushOption;
  77271. c.range = u.getCreatingRange(i6(t, i, t._track)), r && (dde(t, i), u.updateCommon(t, i)), hde(t, i), s = {
  77272. isEnd: r
  77273. };
  77274. }
  77275. } else r && o.brushMode === "single" && o.removeOnClick && n6(t, e, n) && bL(t) && (s = {
  77276. isEnd: r,
  77277. removeOnClick: !0
  77278. });
  77279. return s;
  77280. }
  77281. function jU(t, e) {
  77282. return t === "auto" ? (process.env.NODE_ENV !== "production" && at(e && e.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"'), e.defaultBrushType) : t;
  77283. }
  77284. var Vit = {
  77285. mousedown: function(t) {
  77286. if (this._dragging)
  77287. ZU(this, t);
  77288. else if (!t.target || !t.target.draggable) {
  77289. SL(t);
  77290. var e = this.group.transformCoordToLocal(t.offsetX, t.offsetY);
  77291. this._creatingCover = null;
  77292. var n = this._creatingPanel = n6(this, t, e);
  77293. n && (this._dragging = !0, this._track = [e.slice()]);
  77294. }
  77295. },
  77296. mousemove: function(t) {
  77297. var e = t.offsetX, n = t.offsetY, r = this.group.transformCoordToLocal(e, n);
  77298. if (zit(this, t, r), this._dragging) {
  77299. SL(t);
  77300. var i = Ode(this, t, r, !1);
  77301. i && qh(this, i);
  77302. }
  77303. },
  77304. mouseup: function(t) {
  77305. ZU(this, t);
  77306. }
  77307. };
  77308. function ZU(t, e) {
  77309. if (t._dragging) {
  77310. SL(e);
  77311. var n = e.offsetX, r = e.offsetY, i = t.group.transformCoordToLocal(n, r), a = Ode(t, e, i, !0);
  77312. t._dragging = !1, t._track = [], t._creatingCover = null, a && qh(t, a);
  77313. }
  77314. }
  77315. function Fit(t, e, n) {
  77316. var r = t._zr;
  77317. return e < 0 || e > r.getWidth() || n < 0 || n > r.getHeight();
  77318. }
  77319. var ZP = {
  77320. lineX: UU(0),
  77321. lineY: UU(1),
  77322. rect: {
  77323. createCover: function(t, e) {
  77324. function n(r) {
  77325. return r;
  77326. }
  77327. return mde({
  77328. toRectRange: n,
  77329. fromRectRange: n
  77330. }, t, e, [["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]]);
  77331. },
  77332. getCreatingRange: function(t) {
  77333. var e = gde(t);
  77334. return bde(e[1][0], e[1][1], e[0][0], e[0][1]);
  77335. },
  77336. updateCoverShape: function(t, e, n, r) {
  77337. yde(t, e, n, r);
  77338. },
  77339. updateCommon: _L,
  77340. contain: xL
  77341. },
  77342. polygon: {
  77343. createCover: function(t, e) {
  77344. var n = new ct();
  77345. return n.add(new va({
  77346. name: "main",
  77347. style: r6(e),
  77348. silent: !0
  77349. })), n;
  77350. },
  77351. getCreatingRange: function(t) {
  77352. return t;
  77353. },
  77354. endCreating: function(t, e) {
  77355. e.remove(e.childAt(0)), e.add(new pa({
  77356. name: "main",
  77357. draggable: !0,
  77358. drift: vt(Nit, t, e),
  77359. ondragend: vt(qh, t, {
  77360. isEnd: !0
  77361. })
  77362. }));
  77363. },
  77364. updateCoverShape: function(t, e, n, r) {
  77365. e.childAt(0).setShape({
  77366. points: i6(t, e, n)
  77367. });
  77368. },
  77369. updateCommon: _L,
  77370. contain: xL
  77371. }
  77372. };
  77373. function UU(t) {
  77374. return {
  77375. createCover: function(e, n) {
  77376. return mde({
  77377. toRectRange: function(r) {
  77378. var i = [r, [0, 100]];
  77379. return t && i.reverse(), i;
  77380. },
  77381. fromRectRange: function(r) {
  77382. return r[t];
  77383. }
  77384. }, e, n, [[["w"], ["e"]], [["n"], ["s"]]][t]);
  77385. },
  77386. getCreatingRange: function(e) {
  77387. var n = gde(e), r = f_(n[0][t], n[1][t]), i = Ug(n[0][t], n[1][t]);
  77388. return [r, i];
  77389. },
  77390. updateCoverShape: function(e, n, r, i) {
  77391. var a, o = vde(e, n);
  77392. if (o !== Yh && o.getLinearBrushOtherExtent)
  77393. a = o.getLinearBrushOtherExtent(t);
  77394. else {
  77395. var s = e._zr;
  77396. a = [0, [s.getWidth(), s.getHeight()][1 - t]];
  77397. }
  77398. var l = [r, a];
  77399. t && l.reverse(), yde(e, n, l, i);
  77400. },
  77401. updateCommon: _L,
  77402. contain: xL
  77403. };
  77404. }
  77405. function Sde(t) {
  77406. return t = a6(t), function(e) {
  77407. return H5(e, t);
  77408. };
  77409. }
  77410. function xde(t, e) {
  77411. return t = a6(t), function(n) {
  77412. var r = e ?? n, i = r ? t.width : t.height, a = r ? t.x : t.y;
  77413. return [a, a + (i || 0)];
  77414. };
  77415. }
  77416. function wde(t, e, n) {
  77417. var r = a6(t);
  77418. return function(i, a) {
  77419. return r.contain(a[0], a[1]) && !QP(i, e, n);
  77420. };
  77421. }
  77422. function a6(t) {
  77423. return bt.create(t);
  77424. }
  77425. var Wit = ["axisLine", "axisTickLabel", "axisName"], Qit = (
  77426. /** @class */
  77427. function(t) {
  77428. le(e, t);
  77429. function e() {
  77430. var n = t !== null && t.apply(this, arguments) || this;
  77431. return n.type = e.type, n;
  77432. }
  77433. return e.prototype.init = function(n, r) {
  77434. t.prototype.init.apply(this, arguments), (this._brushController = new J3(r.getZr())).on("brush", We(this._onBrush, this));
  77435. }, e.prototype.render = function(n, r, i, a) {
  77436. if (!Hit(n, r, a)) {
  77437. this.axisModel = n, this.api = i, this.group.removeAll();
  77438. var o = this._axisGroup;
  77439. if (this._axisGroup = new ct(), this.group.add(this._axisGroup), !!n.get("show")) {
  77440. var s = jit(n, r), l = s.coordinateSystem, u = n.getAreaSelectStyle(), c = u.width, f = n.axis.dim, d = l.getAxisLayout(f), h = _e({
  77441. strokeContainThreshold: c
  77442. }, d), p = new sa(n, h);
  77443. F(Wit, p.add, p), this._axisGroup.add(p.getGroup()), this._refreshBrushController(h, u, n, s, c, i), h1(o, this._axisGroup, n);
  77444. }
  77445. }
  77446. }, e.prototype._refreshBrushController = function(n, r, i, a, o, s) {
  77447. var l = i.axis.getExtent(), u = l[1] - l[0], c = Math.min(30, Math.abs(u) * 0.1), f = bt.create({
  77448. x: l[0],
  77449. y: -o / 2,
  77450. width: u,
  77451. height: o
  77452. });
  77453. f.x -= c, f.width += 2 * c, this._brushController.mount({
  77454. enableGlobalPan: !0,
  77455. rotation: n.rotation,
  77456. x: n.position[0],
  77457. y: n.position[1]
  77458. }).setPanels([{
  77459. panelId: "pl",
  77460. clipPath: Sde(f),
  77461. isTargetByCursor: wde(f, s, a),
  77462. getLinearBrushOtherExtent: xde(f, 0)
  77463. }]).enableBrush({
  77464. brushType: "lineX",
  77465. brushStyle: r,
  77466. removeOnClick: !0
  77467. }).updateCovers(Git(i));
  77468. }, e.prototype._onBrush = function(n) {
  77469. var r = n.areas, i = this.axisModel, a = i.axis, o = Ce(r, function(s) {
  77470. return [a.coordToData(s.range[0], !0), a.coordToData(s.range[1], !0)];
  77471. });
  77472. (!i.option.realtime === n.isEnd || n.removeOnClick) && this.api.dispatchAction({
  77473. type: "axisAreaSelect",
  77474. parallelAxisId: i.id,
  77475. intervals: o
  77476. });
  77477. }, e.prototype.dispose = function() {
  77478. this._brushController.dispose();
  77479. }, e.type = "parallelAxis", e;
  77480. }(Ln)
  77481. );
  77482. function Hit(t, e, n) {
  77483. return n && n.type === "axisAreaSelect" && e.findComponents({
  77484. mainType: "parallelAxis",
  77485. query: n
  77486. })[0] === t;
  77487. }
  77488. function Git(t) {
  77489. var e = t.axis;
  77490. return Ce(t.activeIntervals, function(n) {
  77491. return {
  77492. brushType: "lineX",
  77493. panelId: "pl",
  77494. range: [e.dataToCoord(n[0], !0), e.dataToCoord(n[1], !0)]
  77495. };
  77496. });
  77497. }
  77498. function jit(t, e) {
  77499. return e.getComponent("parallel", t.get("parallelIndex"));
  77500. }
  77501. var Zit = {
  77502. type: "axisAreaSelect",
  77503. event: "axisAreaSelected"
  77504. // update: 'updateVisual'
  77505. };
  77506. function Uit(t) {
  77507. t.registerAction(Zit, function(e, n) {
  77508. n.eachComponent({
  77509. mainType: "parallelAxis",
  77510. query: e
  77511. }, function(r) {
  77512. r.axis.model.setActiveIntervals(e.intervals);
  77513. });
  77514. }), t.registerAction("parallelAxisExpand", function(e, n) {
  77515. n.eachComponent({
  77516. mainType: "parallel",
  77517. query: e
  77518. }, function(r) {
  77519. r.setAxisExpand(e);
  77520. });
  77521. });
  77522. }
  77523. var Xit = {
  77524. type: "value",
  77525. areaSelectStyle: {
  77526. width: 20,
  77527. borderWidth: 1,
  77528. borderColor: "rgba(160,197,232)",
  77529. color: "rgba(160,197,232)",
  77530. opacity: 0.3
  77531. },
  77532. realtime: !0,
  77533. z: 10
  77534. };
  77535. function Cde(t) {
  77536. t.registerComponentView(git), t.registerComponentModel(yit), t.registerCoordinateSystem("parallel", Tit), t.registerPreprocessor(dit), t.registerComponentModel(yL), t.registerComponentView(Qit), Zg(t, "parallel", yL, Xit), Uit(t);
  77537. }
  77538. function Yit(t) {
  77539. Mt(Cde), t.registerChartView(iit), t.registerSeriesModel(sit), t.registerVisual(t.PRIORITY.VISUAL.BRUSH, fit);
  77540. }
  77541. var qit = (
  77542. /** @class */
  77543. /* @__PURE__ */ function() {
  77544. function t() {
  77545. this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.cpx2 = 0, this.cpy2 = 0, this.extent = 0;
  77546. }
  77547. return t;
  77548. }()
  77549. ), Kit = (
  77550. /** @class */
  77551. function(t) {
  77552. le(e, t);
  77553. function e(n) {
  77554. return t.call(this, n) || this;
  77555. }
  77556. return e.prototype.getDefaultShape = function() {
  77557. return new qit();
  77558. }, e.prototype.buildPath = function(n, r) {
  77559. var i = r.extent;
  77560. n.moveTo(r.x1, r.y1), n.bezierCurveTo(r.cpx1, r.cpy1, r.cpx2, r.cpy2, r.x2, r.y2), r.orient === "vertical" ? (n.lineTo(r.x2 + i, r.y2), n.bezierCurveTo(r.cpx2 + i, r.cpy2, r.cpx1 + i, r.cpy1, r.x1 + i, r.y1)) : (n.lineTo(r.x2, r.y2 + i), n.bezierCurveTo(r.cpx2, r.cpy2 + i, r.cpx1, r.cpy1 + i, r.x1, r.y1 + i)), n.closePath();
  77561. }, e.prototype.highlight = function() {
  77562. Fu(this);
  77563. }, e.prototype.downplay = function() {
  77564. Wu(this);
  77565. }, e;
  77566. }(Dt)
  77567. ), Jit = (
  77568. /** @class */
  77569. function(t) {
  77570. le(e, t);
  77571. function e() {
  77572. var n = t !== null && t.apply(this, arguments) || this;
  77573. return n.type = e.type, n._focusAdjacencyDisabled = !1, n;
  77574. }
  77575. return e.prototype.render = function(n, r, i) {
  77576. var a = this, o = n.getGraph(), s = this.group, l = n.layoutInfo, u = l.width, c = l.height, f = n.getData(), d = n.getData("edge"), h = n.get("orient");
  77577. this._model = n, s.removeAll(), s.x = l.x, s.y = l.y, o.eachEdge(function(p) {
  77578. var v = new Kit(), g = ft(v);
  77579. g.dataIndex = p.dataIndex, g.seriesIndex = n.seriesIndex, g.dataType = "edge";
  77580. var m = p.getModel(), y = m.getModel("lineStyle"), _ = y.get("curveness"), O = p.node1.getLayout(), S = p.node1.getModel(), x = S.get("localX"), C = S.get("localY"), P = p.node2.getLayout(), $ = p.node2.getModel(), T = $.get("localX"), E = $.get("localY"), M = p.getLayout(), R, N, I, B, Q, W, H, U;
  77581. v.shape.extent = Math.max(1, M.dy), v.shape.orient = h, h === "vertical" ? (R = (x != null ? x * u : O.x) + M.sy, N = (C != null ? C * c : O.y) + O.dy, I = (T != null ? T * u : P.x) + M.ty, B = E != null ? E * c : P.y, Q = R, W = N * (1 - _) + B * _, H = I, U = N * _ + B * (1 - _)) : (R = (x != null ? x * u : O.x) + O.dx, N = (C != null ? C * c : O.y) + M.sy, I = T != null ? T * u : P.x, B = (E != null ? E * c : P.y) + M.ty, Q = R * (1 - _) + I * _, W = N, H = R * _ + I * (1 - _), U = B), v.setShape({
  77582. x1: R,
  77583. y1: N,
  77584. x2: I,
  77585. y2: B,
  77586. cpx1: Q,
  77587. cpy1: W,
  77588. cpx2: H,
  77589. cpy2: U
  77590. }), v.useStyle(y.getItemStyle()), XU(v.style, h, p);
  77591. var j = "" + m.get("value"), Y = ei(m, "edgeLabel");
  77592. Ei(v, Y, {
  77593. labelFetcher: {
  77594. getFormattedLabel: function(ue, ye, se, he, re, q) {
  77595. return n.getFormattedLabel(
  77596. ue,
  77597. ye,
  77598. "edge",
  77599. he,
  77600. // ensure edgeLabel formatter is provided
  77601. // to prevent the inheritance from `label.formatter` of the series
  77602. co(re, Y.normal && Y.normal.get("formatter"), j),
  77603. q
  77604. );
  77605. }
  77606. },
  77607. labelDataIndex: p.dataIndex,
  77608. defaultText: j
  77609. }), v.setTextConfig({
  77610. position: "inside"
  77611. });
  77612. var ne = m.getModel("emphasis");
  77613. Ai(v, m, "lineStyle", function(ue) {
  77614. var ye = ue.getItemStyle();
  77615. return XU(ye, h, p), ye;
  77616. }), s.add(v), d.setItemGraphicEl(p.dataIndex, v);
  77617. var fe = ne.get("focus");
  77618. ur(v, fe === "adjacency" ? p.getAdjacentDataIndices() : fe === "trajectory" ? p.getTrajectoryDataIndices() : fe, ne.get("blurScope"), ne.get("disabled"));
  77619. }), o.eachNode(function(p) {
  77620. var v = p.getLayout(), g = p.getModel(), m = g.get("localX"), y = g.get("localY"), _ = g.getModel("emphasis"), O = g.get(["itemStyle", "borderRadius"]) || 0, S = new Zt({
  77621. shape: {
  77622. x: m != null ? m * u : v.x,
  77623. y: y != null ? y * c : v.y,
  77624. width: v.dx,
  77625. height: v.dy,
  77626. r: O
  77627. },
  77628. style: g.getModel("itemStyle").getItemStyle(),
  77629. z2: 10
  77630. });
  77631. Ei(S, ei(g), {
  77632. labelFetcher: {
  77633. getFormattedLabel: function(C, P) {
  77634. return n.getFormattedLabel(C, P, "node");
  77635. }
  77636. },
  77637. labelDataIndex: p.dataIndex,
  77638. defaultText: p.id
  77639. }), S.disableLabelAnimation = !0, S.setStyle("fill", p.getVisual("color")), S.setStyle("decal", p.getVisual("style").decal), Ai(S, g), s.add(S), f.setItemGraphicEl(p.dataIndex, S), ft(S).dataType = "node";
  77640. var x = _.get("focus");
  77641. ur(S, x === "adjacency" ? p.getAdjacentDataIndices() : x === "trajectory" ? p.getTrajectoryDataIndices() : x, _.get("blurScope"), _.get("disabled"));
  77642. }), f.eachItemGraphicEl(function(p, v) {
  77643. var g = f.getItemModel(v);
  77644. g.get("draggable") && (p.drift = function(m, y) {
  77645. a._focusAdjacencyDisabled = !0, this.shape.x += m, this.shape.y += y, this.dirty(), i.dispatchAction({
  77646. type: "dragNode",
  77647. seriesId: n.id,
  77648. dataIndex: f.getRawIndex(v),
  77649. localX: this.shape.x / u,
  77650. localY: this.shape.y / c
  77651. });
  77652. }, p.ondragend = function() {
  77653. a._focusAdjacencyDisabled = !1;
  77654. }, p.draggable = !0, p.cursor = "move");
  77655. }), !this._data && n.isAnimationEnabled() && s.setClipPath(eat(s.getBoundingRect(), n, function() {
  77656. s.removeClipPath();
  77657. })), this._data = n.getData();
  77658. }, e.prototype.dispose = function() {
  77659. }, e.type = "sankey", e;
  77660. }(_n)
  77661. );
  77662. function XU(t, e, n) {
  77663. switch (t.fill) {
  77664. case "source":
  77665. t.fill = n.node1.getVisual("color"), t.decal = n.node1.getVisual("style").decal;
  77666. break;
  77667. case "target":
  77668. t.fill = n.node2.getVisual("color"), t.decal = n.node2.getVisual("style").decal;
  77669. break;
  77670. case "gradient":
  77671. var r = n.node1.getVisual("color"), i = n.node2.getVisual("color");
  77672. Ve(r) && Ve(i) && (t.fill = new _m(0, 0, +(e === "horizontal"), +(e === "vertical"), [{
  77673. color: r,
  77674. offset: 0
  77675. }, {
  77676. color: i,
  77677. offset: 1
  77678. }]));
  77679. }
  77680. }
  77681. function eat(t, e, n) {
  77682. var r = new Zt({
  77683. shape: {
  77684. x: t.x - 10,
  77685. y: t.y - 10,
  77686. width: 0,
  77687. height: t.height + 20
  77688. }
  77689. });
  77690. return Vn(r, {
  77691. shape: {
  77692. width: t.width + 20
  77693. }
  77694. }, e, n), r;
  77695. }
  77696. var tat = (
  77697. /** @class */
  77698. function(t) {
  77699. le(e, t);
  77700. function e() {
  77701. var n = t !== null && t.apply(this, arguments) || this;
  77702. return n.type = e.type, n;
  77703. }
  77704. return e.prototype.getInitialData = function(n, r) {
  77705. var i = n.edges || n.links, a = n.data || n.nodes, o = n.levels;
  77706. this.levelModels = [];
  77707. for (var s = this.levelModels, l = 0; l < o.length; l++)
  77708. if (o[l].depth != null && o[l].depth >= 0)
  77709. s[o[l].depth] = new wn(o[l], this, r);
  77710. else if (process.env.NODE_ENV !== "production")
  77711. throw new Error("levels[i].depth is mandatory and should be natural number");
  77712. if (a && i) {
  77713. var u = sde(a, i, this, !0, c);
  77714. return u.data;
  77715. }
  77716. function c(f, d) {
  77717. f.wrapMethod("getItemModel", function(h, p) {
  77718. var v = h.parentModel, g = v.getData().getItemLayout(p);
  77719. if (g) {
  77720. var m = g.depth, y = v.levelModels[m];
  77721. y && (h.parentModel = y);
  77722. }
  77723. return h;
  77724. }), d.wrapMethod("getItemModel", function(h, p) {
  77725. var v = h.parentModel, g = v.getGraph().getEdgeByIndex(p), m = g.node1.getLayout();
  77726. if (m) {
  77727. var y = m.depth, _ = v.levelModels[y];
  77728. _ && (h.parentModel = _);
  77729. }
  77730. return h;
  77731. });
  77732. }
  77733. }, e.prototype.setNodePosition = function(n, r) {
  77734. var i = this.option.data || this.option.nodes, a = i[n];
  77735. a.localX = r[0], a.localY = r[1];
  77736. }, e.prototype.getGraph = function() {
  77737. return this.getData().graph;
  77738. }, e.prototype.getEdgeData = function() {
  77739. return this.getGraph().edgeData;
  77740. }, e.prototype.formatTooltip = function(n, r, i) {
  77741. function a(h) {
  77742. return isNaN(h) || h == null;
  77743. }
  77744. if (i === "edge") {
  77745. var o = this.getDataParams(n, i), s = o.data, l = o.value, u = s.source + " -- " + s.target;
  77746. return ti("nameValue", {
  77747. name: u,
  77748. value: l,
  77749. noValue: a(l)
  77750. });
  77751. } else {
  77752. var c = this.getGraph().getNodeByIndex(n), f = c.getLayout().value, d = this.getDataParams(n, i).data.name;
  77753. return ti("nameValue", {
  77754. name: d != null ? d + "" : null,
  77755. value: f,
  77756. noValue: a(f)
  77757. });
  77758. }
  77759. }, e.prototype.optionUpdated = function() {
  77760. }, e.prototype.getDataParams = function(n, r) {
  77761. var i = t.prototype.getDataParams.call(this, n, r);
  77762. if (i.value == null && r === "node") {
  77763. var a = this.getGraph().getNodeByIndex(n), o = a.getLayout().value;
  77764. i.value = o;
  77765. }
  77766. return i;
  77767. }, e.type = "series.sankey", e.defaultOption = {
  77768. // zlevel: 0,
  77769. z: 2,
  77770. coordinateSystem: "view",
  77771. left: "5%",
  77772. top: "5%",
  77773. right: "20%",
  77774. bottom: "5%",
  77775. orient: "horizontal",
  77776. nodeWidth: 20,
  77777. nodeGap: 8,
  77778. draggable: !0,
  77779. layoutIterations: 32,
  77780. label: {
  77781. show: !0,
  77782. position: "right",
  77783. fontSize: 12
  77784. },
  77785. edgeLabel: {
  77786. show: !1,
  77787. fontSize: 12
  77788. },
  77789. levels: [],
  77790. nodeAlign: "justify",
  77791. lineStyle: {
  77792. color: "#314656",
  77793. opacity: 0.2,
  77794. curveness: 0.5
  77795. },
  77796. emphasis: {
  77797. label: {
  77798. show: !0
  77799. },
  77800. lineStyle: {
  77801. opacity: 0.5
  77802. }
  77803. },
  77804. select: {
  77805. itemStyle: {
  77806. borderColor: "#212121"
  77807. }
  77808. },
  77809. animationEasing: "linear",
  77810. animationDuration: 1e3
  77811. }, e;
  77812. }(Tn)
  77813. );
  77814. function nat(t, e) {
  77815. t.eachSeriesByType("sankey", function(n) {
  77816. var r = n.get("nodeWidth"), i = n.get("nodeGap"), a = rat(n, e);
  77817. n.layoutInfo = a;
  77818. var o = a.width, s = a.height, l = n.getGraph(), u = l.nodes, c = l.edges;
  77819. aat(u);
  77820. var f = yn(u, function(v) {
  77821. return v.getLayout().value === 0;
  77822. }), d = f.length !== 0 ? 0 : n.get("layoutIterations"), h = n.get("orient"), p = n.get("nodeAlign");
  77823. iat(u, c, r, i, o, s, d, h, p);
  77824. });
  77825. }
  77826. function rat(t, e) {
  77827. return Mr(t.getBoxLayoutParams(), {
  77828. width: e.getWidth(),
  77829. height: e.getHeight()
  77830. });
  77831. }
  77832. function iat(t, e, n, r, i, a, o, s, l) {
  77833. oat(t, e, n, i, a, s, l), cat(t, e, a, i, r, o, s), bat(t, s);
  77834. }
  77835. function aat(t) {
  77836. F(t, function(e) {
  77837. var n = lf(e.outEdges, sT), r = lf(e.inEdges, sT), i = e.getValue() || 0, a = Math.max(n, r, i);
  77838. e.setLayout({
  77839. value: a
  77840. }, !0);
  77841. });
  77842. }
  77843. function oat(t, e, n, r, i, a, o) {
  77844. for (var s = [], l = [], u = [], c = [], f = 0, d = 0; d < e.length; d++)
  77845. s[d] = 1;
  77846. for (var d = 0; d < t.length; d++)
  77847. l[d] = t[d].inEdges.length, l[d] === 0 && u.push(t[d]);
  77848. for (var h = -1; u.length; ) {
  77849. for (var p = 0; p < u.length; p++) {
  77850. var v = u[p], g = v.hostGraph.data.getRawDataItem(v.dataIndex), m = g.depth != null && g.depth >= 0;
  77851. m && g.depth > h && (h = g.depth), v.setLayout({
  77852. depth: m ? g.depth : f
  77853. }, !0), a === "vertical" ? v.setLayout({
  77854. dy: n
  77855. }, !0) : v.setLayout({
  77856. dx: n
  77857. }, !0);
  77858. for (var y = 0; y < v.outEdges.length; y++) {
  77859. var _ = v.outEdges[y], O = e.indexOf(_);
  77860. s[O] = 0;
  77861. var S = _.node2, x = t.indexOf(S);
  77862. --l[x] === 0 && c.indexOf(S) < 0 && c.push(S);
  77863. }
  77864. }
  77865. ++f, u = c, c = [];
  77866. }
  77867. for (var d = 0; d < s.length; d++)
  77868. if (s[d] === 1)
  77869. throw new Error("Sankey is a DAG, the original data has cycle!");
  77870. var C = h > f - 1 ? h : f - 1;
  77871. o && o !== "left" && sat(t, o, a, C);
  77872. var P = a === "vertical" ? (i - n) / C : (r - n) / C;
  77873. uat(t, P, a);
  77874. }
  77875. function Tde(t) {
  77876. var e = t.hostGraph.data.getRawDataItem(t.dataIndex);
  77877. return e.depth != null && e.depth >= 0;
  77878. }
  77879. function sat(t, e, n, r) {
  77880. if (e === "right") {
  77881. for (var i = [], a = t, o = 0; a.length; ) {
  77882. for (var s = 0; s < a.length; s++) {
  77883. var l = a[s];
  77884. l.setLayout({
  77885. skNodeHeight: o
  77886. }, !0);
  77887. for (var u = 0; u < l.inEdges.length; u++) {
  77888. var c = l.inEdges[u];
  77889. i.indexOf(c.node1) < 0 && i.push(c.node1);
  77890. }
  77891. }
  77892. a = i, i = [], ++o;
  77893. }
  77894. F(t, function(f) {
  77895. Tde(f) || f.setLayout({
  77896. depth: Math.max(0, r - f.getLayout().skNodeHeight)
  77897. }, !0);
  77898. });
  77899. } else e === "justify" && lat(t, r);
  77900. }
  77901. function lat(t, e) {
  77902. F(t, function(n) {
  77903. !Tde(n) && !n.outEdges.length && n.setLayout({
  77904. depth: e
  77905. }, !0);
  77906. });
  77907. }
  77908. function uat(t, e, n) {
  77909. F(t, function(r) {
  77910. var i = r.getLayout().depth * e;
  77911. n === "vertical" ? r.setLayout({
  77912. y: i
  77913. }, !0) : r.setLayout({
  77914. x: i
  77915. }, !0);
  77916. });
  77917. }
  77918. function cat(t, e, n, r, i, a, o) {
  77919. var s = fat(t, o);
  77920. dat(s, e, n, r, i, o), bI(s, i, n, r, o);
  77921. for (var l = 1; a > 0; a--)
  77922. l *= 0.99, hat(s, l, o), bI(s, i, n, r, o), yat(s, l, o), bI(s, i, n, r, o);
  77923. }
  77924. function fat(t, e) {
  77925. var n = [], r = e === "vertical" ? "y" : "x", i = xk(t, function(a) {
  77926. return a.getLayout()[r];
  77927. });
  77928. return i.keys.sort(function(a, o) {
  77929. return a - o;
  77930. }), F(i.keys, function(a) {
  77931. n.push(i.buckets.get(a));
  77932. }), n;
  77933. }
  77934. function dat(t, e, n, r, i, a) {
  77935. var o = 1 / 0;
  77936. F(t, function(s) {
  77937. var l = s.length, u = 0;
  77938. F(s, function(f) {
  77939. u += f.getLayout().value;
  77940. });
  77941. var c = a === "vertical" ? (r - (l - 1) * i) / u : (n - (l - 1) * i) / u;
  77942. c < o && (o = c);
  77943. }), F(t, function(s) {
  77944. F(s, function(l, u) {
  77945. var c = l.getLayout().value * o;
  77946. a === "vertical" ? (l.setLayout({
  77947. x: u
  77948. }, !0), l.setLayout({
  77949. dx: c
  77950. }, !0)) : (l.setLayout({
  77951. y: u
  77952. }, !0), l.setLayout({
  77953. dy: c
  77954. }, !0));
  77955. });
  77956. }), F(e, function(s) {
  77957. var l = +s.getValue() * o;
  77958. s.setLayout({
  77959. dy: l
  77960. }, !0);
  77961. });
  77962. }
  77963. function bI(t, e, n, r, i) {
  77964. var a = i === "vertical" ? "x" : "y";
  77965. F(t, function(o) {
  77966. o.sort(function(v, g) {
  77967. return v.getLayout()[a] - g.getLayout()[a];
  77968. });
  77969. for (var s, l, u, c = 0, f = o.length, d = i === "vertical" ? "dx" : "dy", h = 0; h < f; h++)
  77970. l = o[h], u = c - l.getLayout()[a], u > 0 && (s = l.getLayout()[a] + u, i === "vertical" ? l.setLayout({
  77971. x: s
  77972. }, !0) : l.setLayout({
  77973. y: s
  77974. }, !0)), c = l.getLayout()[a] + l.getLayout()[d] + e;
  77975. var p = i === "vertical" ? r : n;
  77976. if (u = c - e - p, u > 0) {
  77977. s = l.getLayout()[a] - u, i === "vertical" ? l.setLayout({
  77978. x: s
  77979. }, !0) : l.setLayout({
  77980. y: s
  77981. }, !0), c = s;
  77982. for (var h = f - 2; h >= 0; --h)
  77983. l = o[h], u = l.getLayout()[a] + l.getLayout()[d] + e - c, u > 0 && (s = l.getLayout()[a] - u, i === "vertical" ? l.setLayout({
  77984. x: s
  77985. }, !0) : l.setLayout({
  77986. y: s
  77987. }, !0)), c = l.getLayout()[a];
  77988. }
  77989. });
  77990. }
  77991. function hat(t, e, n) {
  77992. F(t.slice().reverse(), function(r) {
  77993. F(r, function(i) {
  77994. if (i.outEdges.length) {
  77995. var a = lf(i.outEdges, pat, n) / lf(i.outEdges, sT);
  77996. if (isNaN(a)) {
  77997. var o = i.outEdges.length;
  77998. a = o ? lf(i.outEdges, vat, n) / o : 0;
  77999. }
  78000. if (n === "vertical") {
  78001. var s = i.getLayout().x + (a - Sf(i, n)) * e;
  78002. i.setLayout({
  78003. x: s
  78004. }, !0);
  78005. } else {
  78006. var l = i.getLayout().y + (a - Sf(i, n)) * e;
  78007. i.setLayout({
  78008. y: l
  78009. }, !0);
  78010. }
  78011. }
  78012. });
  78013. });
  78014. }
  78015. function pat(t, e) {
  78016. return Sf(t.node2, e) * t.getValue();
  78017. }
  78018. function vat(t, e) {
  78019. return Sf(t.node2, e);
  78020. }
  78021. function gat(t, e) {
  78022. return Sf(t.node1, e) * t.getValue();
  78023. }
  78024. function mat(t, e) {
  78025. return Sf(t.node1, e);
  78026. }
  78027. function Sf(t, e) {
  78028. return e === "vertical" ? t.getLayout().x + t.getLayout().dx / 2 : t.getLayout().y + t.getLayout().dy / 2;
  78029. }
  78030. function sT(t) {
  78031. return t.getValue();
  78032. }
  78033. function lf(t, e, n) {
  78034. for (var r = 0, i = t.length, a = -1; ++a < i; ) {
  78035. var o = +e(t[a], n);
  78036. isNaN(o) || (r += o);
  78037. }
  78038. return r;
  78039. }
  78040. function yat(t, e, n) {
  78041. F(t, function(r) {
  78042. F(r, function(i) {
  78043. if (i.inEdges.length) {
  78044. var a = lf(i.inEdges, gat, n) / lf(i.inEdges, sT);
  78045. if (isNaN(a)) {
  78046. var o = i.inEdges.length;
  78047. a = o ? lf(i.inEdges, mat, n) / o : 0;
  78048. }
  78049. if (n === "vertical") {
  78050. var s = i.getLayout().x + (a - Sf(i, n)) * e;
  78051. i.setLayout({
  78052. x: s
  78053. }, !0);
  78054. } else {
  78055. var l = i.getLayout().y + (a - Sf(i, n)) * e;
  78056. i.setLayout({
  78057. y: l
  78058. }, !0);
  78059. }
  78060. }
  78061. });
  78062. });
  78063. }
  78064. function bat(t, e) {
  78065. var n = e === "vertical" ? "x" : "y";
  78066. F(t, function(r) {
  78067. r.outEdges.sort(function(i, a) {
  78068. return i.node2.getLayout()[n] - a.node2.getLayout()[n];
  78069. }), r.inEdges.sort(function(i, a) {
  78070. return i.node1.getLayout()[n] - a.node1.getLayout()[n];
  78071. });
  78072. }), F(t, function(r) {
  78073. var i = 0, a = 0;
  78074. F(r.outEdges, function(o) {
  78075. o.setLayout({
  78076. sy: i
  78077. }, !0), i += o.getLayout().dy;
  78078. }), F(r.inEdges, function(o) {
  78079. o.setLayout({
  78080. ty: a
  78081. }, !0), a += o.getLayout().dy;
  78082. });
  78083. });
  78084. }
  78085. function _at(t) {
  78086. t.eachSeriesByType("sankey", function(e) {
  78087. var n = e.getGraph(), r = n.nodes, i = n.edges;
  78088. if (r.length) {
  78089. var a = 1 / 0, o = -1 / 0;
  78090. F(r, function(s) {
  78091. var l = s.getLayout().value;
  78092. l < a && (a = l), l > o && (o = l);
  78093. }), F(r, function(s) {
  78094. var l = new Kr({
  78095. type: "color",
  78096. mappingMethod: "linear",
  78097. dataExtent: [a, o],
  78098. visual: e.get("color")
  78099. }), u = l.mapValueToVisual(s.getLayout().value), c = s.getModel().get(["itemStyle", "color"]);
  78100. c != null ? (s.setVisual("color", c), s.setVisual("style", {
  78101. fill: c
  78102. })) : (s.setVisual("color", u), s.setVisual("style", {
  78103. fill: u
  78104. }));
  78105. });
  78106. }
  78107. i.length && F(i, function(s) {
  78108. var l = s.getModel().get("lineStyle");
  78109. s.setVisual("style", l);
  78110. });
  78111. });
  78112. }
  78113. function Oat(t) {
  78114. t.registerChartView(Jit), t.registerSeriesModel(tat), t.registerLayout(nat), t.registerVisual(_at), t.registerAction({
  78115. type: "dragNode",
  78116. event: "dragnode",
  78117. // here can only use 'update' now, other value is not support in echarts.
  78118. update: "update"
  78119. }, function(e, n) {
  78120. n.eachComponent({
  78121. mainType: "series",
  78122. subType: "sankey",
  78123. query: e
  78124. }, function(r) {
  78125. r.setNodePosition(e.dataIndex, [e.localX, e.localY]);
  78126. });
  78127. });
  78128. }
  78129. var Pde = (
  78130. /** @class */
  78131. function() {
  78132. function t() {
  78133. }
  78134. return t.prototype.getInitialData = function(e, n) {
  78135. var r, i = n.getComponent("xAxis", this.get("xAxisIndex")), a = n.getComponent("yAxis", this.get("yAxisIndex")), o = i.get("type"), s = a.get("type"), l;
  78136. o === "category" ? (e.layout = "horizontal", r = i.getOrdinalMeta(), l = !0) : s === "category" ? (e.layout = "vertical", r = a.getOrdinalMeta(), l = !0) : e.layout = e.layout || "horizontal";
  78137. var u = ["x", "y"], c = e.layout === "horizontal" ? 0 : 1, f = this._baseAxisDim = u[c], d = u[1 - c], h = [i, a], p = h[c].get("type"), v = h[1 - c].get("type"), g = e.data;
  78138. if (g && l) {
  78139. var m = [];
  78140. F(g, function(O, S) {
  78141. var x;
  78142. Se(O) ? (x = O.slice(), O.unshift(S)) : Se(O.value) ? (x = _e({}, O), x.value = x.value.slice(), O.value.unshift(S)) : x = O, m.push(x);
  78143. }), e.data = m;
  78144. }
  78145. var y = this.defaultValueDimensions, _ = [{
  78146. name: f,
  78147. type: YC(p),
  78148. ordinalMeta: r,
  78149. otherDims: {
  78150. tooltip: !1,
  78151. itemName: 0
  78152. },
  78153. dimsDef: ["base"]
  78154. }, {
  78155. name: d,
  78156. type: YC(v),
  78157. dimsDef: y.slice()
  78158. }];
  78159. return Rm(this, {
  78160. coordDimensions: _,
  78161. dimensionsCount: y.length + 1,
  78162. encodeDefaulter: vt(tue, _, this)
  78163. });
  78164. }, t.prototype.getBaseAxis = function() {
  78165. var e = this._baseAxisDim;
  78166. return this.ecModel.getComponent(e + "Axis", this.get(e + "AxisIndex")).axis;
  78167. }, t;
  78168. }()
  78169. ), $de = (
  78170. /** @class */
  78171. function(t) {
  78172. le(e, t);
  78173. function e() {
  78174. var n = t !== null && t.apply(this, arguments) || this;
  78175. return n.type = e.type, n.defaultValueDimensions = [{
  78176. name: "min",
  78177. defaultTooltip: !0
  78178. }, {
  78179. name: "Q1",
  78180. defaultTooltip: !0
  78181. }, {
  78182. name: "median",
  78183. defaultTooltip: !0
  78184. }, {
  78185. name: "Q3",
  78186. defaultTooltip: !0
  78187. }, {
  78188. name: "max",
  78189. defaultTooltip: !0
  78190. }], n.visualDrawType = "stroke", n;
  78191. }
  78192. return e.type = "series.boxplot", e.dependencies = ["xAxis", "yAxis", "grid"], e.defaultOption = {
  78193. // zlevel: 0,
  78194. z: 2,
  78195. coordinateSystem: "cartesian2d",
  78196. legendHoverLink: !0,
  78197. layout: null,
  78198. boxWidth: [7, 50],
  78199. itemStyle: {
  78200. color: "#fff",
  78201. borderWidth: 1
  78202. },
  78203. emphasis: {
  78204. scale: !0,
  78205. itemStyle: {
  78206. borderWidth: 2,
  78207. shadowBlur: 5,
  78208. shadowOffsetX: 1,
  78209. shadowOffsetY: 1,
  78210. shadowColor: "rgba(0,0,0,0.2)"
  78211. }
  78212. },
  78213. animationDuration: 800
  78214. }, e;
  78215. }(Tn)
  78216. );
  78217. vr($de, Pde, !0);
  78218. var Sat = (
  78219. /** @class */
  78220. function(t) {
  78221. le(e, t);
  78222. function e() {
  78223. var n = t !== null && t.apply(this, arguments) || this;
  78224. return n.type = e.type, n;
  78225. }
  78226. return e.prototype.render = function(n, r, i) {
  78227. var a = n.getData(), o = this.group, s = this._data;
  78228. this._data || o.removeAll();
  78229. var l = n.get("layout") === "horizontal" ? 1 : 0;
  78230. a.diff(s).add(function(u) {
  78231. if (a.hasValue(u)) {
  78232. var c = a.getItemLayout(u), f = YU(c, a, u, l, !0);
  78233. a.setItemGraphicEl(u, f), o.add(f);
  78234. }
  78235. }).update(function(u, c) {
  78236. var f = s.getItemGraphicEl(c);
  78237. if (!a.hasValue(u)) {
  78238. o.remove(f);
  78239. return;
  78240. }
  78241. var d = a.getItemLayout(u);
  78242. f ? (Zs(f), Ade(d, f, a, u)) : f = YU(d, a, u, l), o.add(f), a.setItemGraphicEl(u, f);
  78243. }).remove(function(u) {
  78244. var c = s.getItemGraphicEl(u);
  78245. c && o.remove(c);
  78246. }).execute(), this._data = a;
  78247. }, e.prototype.remove = function(n) {
  78248. var r = this.group, i = this._data;
  78249. this._data = null, i && i.eachItemGraphicEl(function(a) {
  78250. a && r.remove(a);
  78251. });
  78252. }, e.type = "boxplot", e;
  78253. }(_n)
  78254. ), xat = (
  78255. /** @class */
  78256. /* @__PURE__ */ function() {
  78257. function t() {
  78258. }
  78259. return t;
  78260. }()
  78261. ), wat = (
  78262. /** @class */
  78263. function(t) {
  78264. le(e, t);
  78265. function e(n) {
  78266. var r = t.call(this, n) || this;
  78267. return r.type = "boxplotBoxPath", r;
  78268. }
  78269. return e.prototype.getDefaultShape = function() {
  78270. return new xat();
  78271. }, e.prototype.buildPath = function(n, r) {
  78272. var i = r.points, a = 0;
  78273. for (n.moveTo(i[a][0], i[a][1]), a++; a < 4; a++)
  78274. n.lineTo(i[a][0], i[a][1]);
  78275. for (n.closePath(); a < i.length; a++)
  78276. n.moveTo(i[a][0], i[a][1]), a++, n.lineTo(i[a][0], i[a][1]);
  78277. }, e;
  78278. }(Dt)
  78279. );
  78280. function YU(t, e, n, r, i) {
  78281. var a = t.ends, o = new wat({
  78282. shape: {
  78283. points: i ? Cat(a, r, t) : a
  78284. }
  78285. });
  78286. return Ade(t, o, e, n, i), o;
  78287. }
  78288. function Ade(t, e, n, r, i) {
  78289. var a = n.hostModel, o = hp[i ? "initProps" : "updateProps"];
  78290. o(e, {
  78291. shape: {
  78292. points: t.ends
  78293. }
  78294. }, a, r), e.useStyle(n.getItemVisual(r, "style")), e.style.strokeNoScale = !0, e.z2 = 100;
  78295. var s = n.getItemModel(r), l = s.getModel("emphasis");
  78296. Ai(e, s), ur(e, l.get("focus"), l.get("blurScope"), l.get("disabled"));
  78297. }
  78298. function Cat(t, e, n) {
  78299. return Ce(t, function(r) {
  78300. return r = r.slice(), r[e] = n.initBaseline, r;
  78301. });
  78302. }
  78303. var ub = F;
  78304. function Tat(t) {
  78305. var e = Pat(t);
  78306. ub(e, function(n) {
  78307. var r = n.seriesModels;
  78308. r.length && ($at(n), ub(r, function(i, a) {
  78309. Aat(i, n.boxOffsetList[a], n.boxWidthList[a]);
  78310. }));
  78311. });
  78312. }
  78313. function Pat(t) {
  78314. var e = [], n = [];
  78315. return t.eachSeriesByType("boxplot", function(r) {
  78316. var i = r.getBaseAxis(), a = St(n, i);
  78317. a < 0 && (a = n.length, n[a] = i, e[a] = {
  78318. axis: i,
  78319. seriesModels: []
  78320. }), e[a].seriesModels.push(r);
  78321. }), e;
  78322. }
  78323. function $at(t) {
  78324. var e = t.axis, n = t.seriesModels, r = n.length, i = t.boxWidthList = [], a = t.boxOffsetList = [], o = [], s;
  78325. if (e.type === "category")
  78326. s = e.getBandWidth();
  78327. else {
  78328. var l = 0;
  78329. ub(n, function(p) {
  78330. l = Math.max(l, p.getData().count());
  78331. });
  78332. var u = e.getExtent();
  78333. s = Math.abs(u[1] - u[0]) / l;
  78334. }
  78335. ub(n, function(p) {
  78336. var v = p.get("boxWidth");
  78337. Se(v) || (v = [v, v]), o.push([ze(v[0], s) || 0, ze(v[1], s) || 0]);
  78338. });
  78339. var c = s * 0.8 - 2, f = c / r * 0.3, d = (c - f * (r - 1)) / r, h = d / 2 - c / 2;
  78340. ub(n, function(p, v) {
  78341. a.push(h), h += f + d, i.push(Math.min(Math.max(d, o[v][0]), o[v][1]));
  78342. });
  78343. }
  78344. function Aat(t, e, n) {
  78345. var r = t.coordinateSystem, i = t.getData(), a = n / 2, o = t.get("layout") === "horizontal" ? 0 : 1, s = 1 - o, l = ["x", "y"], u = i.mapDimension(l[o]), c = i.mapDimensionsAll(l[s]);
  78346. if (u == null || c.length < 5)
  78347. return;
  78348. for (var f = 0; f < i.count(); f++) {
  78349. var d = i.get(u, f), h = _(d, c[2], f), p = _(d, c[0], f), v = _(d, c[1], f), g = _(d, c[3], f), m = _(d, c[4], f), y = [];
  78350. O(y, v, !1), O(y, g, !0), y.push(p, v, m, g), S(y, p), S(y, m), S(y, h), i.setItemLayout(f, {
  78351. initBaseline: h[s],
  78352. ends: y
  78353. });
  78354. }
  78355. function _(x, C, P) {
  78356. var $ = i.get(C, P), T = [];
  78357. T[o] = x, T[s] = $;
  78358. var E;
  78359. return isNaN(x) || isNaN($) ? E = [NaN, NaN] : (E = r.dataToPoint(T), E[o] += e), E;
  78360. }
  78361. function O(x, C, P) {
  78362. var $ = C.slice(), T = C.slice();
  78363. $[o] += a, T[o] -= a, P ? x.push($, T) : x.push(T, $);
  78364. }
  78365. function S(x, C) {
  78366. var P = C.slice(), $ = C.slice();
  78367. P[o] -= a, $[o] += a, x.push(P, $);
  78368. }
  78369. }
  78370. function Eat(t, e) {
  78371. e = e || {};
  78372. for (var n = [], r = [], i = e.boundIQR, a = i === "none" || i === 0, o = 0; o < t.length; o++) {
  78373. var s = ao(t[o].slice()), l = uw(s, 0.25), u = uw(s, 0.5), c = uw(s, 0.75), f = s[0], d = s[s.length - 1], h = (i ?? 1.5) * (c - l), p = a ? f : Math.max(f, l - h), v = a ? d : Math.min(d, c + h), g = e.itemNameFormatter, m = qe(g) ? g({
  78374. value: o
  78375. }) : Ve(g) ? g.replace("{value}", o + "") : o + "";
  78376. n.push([m, p, l, u, c, v]);
  78377. for (var y = 0; y < s.length; y++) {
  78378. var _ = s[y];
  78379. if (_ < p || _ > v) {
  78380. var O = [m, _];
  78381. r.push(O);
  78382. }
  78383. }
  78384. }
  78385. return {
  78386. boxData: n,
  78387. outliers: r
  78388. };
  78389. }
  78390. var Mat = {
  78391. type: "echarts:boxplot",
  78392. transform: function(e) {
  78393. var n = e.upstream;
  78394. if (n.sourceFormat !== Hi) {
  78395. var r = "";
  78396. process.env.NODE_ENV !== "production" && (r = fa("source data is not applicable for this boxplot transform. Expect number[][].")), fn(r);
  78397. }
  78398. var i = Eat(n.getRawData(), e.config);
  78399. return [{
  78400. dimensions: ["ItemName", "Low", "Q1", "Q2", "Q3", "High"],
  78401. data: i.boxData
  78402. }, {
  78403. data: i.outliers
  78404. }];
  78405. }
  78406. };
  78407. function Iat(t) {
  78408. t.registerSeriesModel($de), t.registerChartView(Sat), t.registerLayout(Tat), t.registerTransform(Mat);
  78409. }
  78410. var Dat = ["color", "borderColor"], Rat = (
  78411. /** @class */
  78412. function(t) {
  78413. le(e, t);
  78414. function e() {
  78415. var n = t !== null && t.apply(this, arguments) || this;
  78416. return n.type = e.type, n;
  78417. }
  78418. return e.prototype.render = function(n, r, i) {
  78419. this.group.removeClipPath(), this._progressiveEls = null, this._updateDrawMode(n), this._isLargeDraw ? this._renderLarge(n) : this._renderNormal(n);
  78420. }, e.prototype.incrementalPrepareRender = function(n, r, i) {
  78421. this._clear(), this._updateDrawMode(n);
  78422. }, e.prototype.incrementalRender = function(n, r, i, a) {
  78423. this._progressiveEls = [], this._isLargeDraw ? this._incrementalRenderLarge(n, r) : this._incrementalRenderNormal(n, r);
  78424. }, e.prototype.eachRendered = function(n) {
  78425. Nf(this._progressiveEls || this.group, n);
  78426. }, e.prototype._updateDrawMode = function(n) {
  78427. var r = n.pipelineContext.large;
  78428. (this._isLargeDraw == null || r !== this._isLargeDraw) && (this._isLargeDraw = r, this._clear());
  78429. }, e.prototype._renderNormal = function(n) {
  78430. var r = n.getData(), i = this._data, a = this.group, o = r.getLayout("isSimpleBox"), s = n.get("clip", !0), l = n.coordinateSystem, u = l.getArea && l.getArea();
  78431. this._data || a.removeAll(), r.diff(i).add(function(c) {
  78432. if (r.hasValue(c)) {
  78433. var f = r.getItemLayout(c);
  78434. if (s && qU(u, f))
  78435. return;
  78436. var d = _I(f, c, !0);
  78437. Vn(d, {
  78438. shape: {
  78439. points: f.ends
  78440. }
  78441. }, n, c), OI(d, r, c, o), a.add(d), r.setItemGraphicEl(c, d);
  78442. }
  78443. }).update(function(c, f) {
  78444. var d = i.getItemGraphicEl(f);
  78445. if (!r.hasValue(c)) {
  78446. a.remove(d);
  78447. return;
  78448. }
  78449. var h = r.getItemLayout(c);
  78450. if (s && qU(u, h)) {
  78451. a.remove(d);
  78452. return;
  78453. }
  78454. d ? (tn(d, {
  78455. shape: {
  78456. points: h.ends
  78457. }
  78458. }, n, c), Zs(d)) : d = _I(h), OI(d, r, c, o), a.add(d), r.setItemGraphicEl(c, d);
  78459. }).remove(function(c) {
  78460. var f = i.getItemGraphicEl(c);
  78461. f && a.remove(f);
  78462. }).execute(), this._data = r;
  78463. }, e.prototype._renderLarge = function(n) {
  78464. this._clear(), KU(n, this.group);
  78465. var r = n.get("clip", !0) ? b1(n.coordinateSystem, !1, n) : null;
  78466. r ? this.group.setClipPath(r) : this.group.removeClipPath();
  78467. }, e.prototype._incrementalRenderNormal = function(n, r) {
  78468. for (var i = r.getData(), a = i.getLayout("isSimpleBox"), o; (o = n.next()) != null; ) {
  78469. var s = i.getItemLayout(o), l = _I(s);
  78470. OI(l, i, o, a), l.incremental = !0, this.group.add(l), this._progressiveEls.push(l);
  78471. }
  78472. }, e.prototype._incrementalRenderLarge = function(n, r) {
  78473. KU(r, this.group, this._progressiveEls, !0);
  78474. }, e.prototype.remove = function(n) {
  78475. this._clear();
  78476. }, e.prototype._clear = function() {
  78477. this.group.removeAll(), this._data = null;
  78478. }, e.type = "candlestick", e;
  78479. }(_n)
  78480. ), kat = (
  78481. /** @class */
  78482. /* @__PURE__ */ function() {
  78483. function t() {
  78484. }
  78485. return t;
  78486. }()
  78487. ), Lat = (
  78488. /** @class */
  78489. function(t) {
  78490. le(e, t);
  78491. function e(n) {
  78492. var r = t.call(this, n) || this;
  78493. return r.type = "normalCandlestickBox", r;
  78494. }
  78495. return e.prototype.getDefaultShape = function() {
  78496. return new kat();
  78497. }, e.prototype.buildPath = function(n, r) {
  78498. var i = r.points;
  78499. this.__simpleBox ? (n.moveTo(i[4][0], i[4][1]), n.lineTo(i[6][0], i[6][1])) : (n.moveTo(i[0][0], i[0][1]), n.lineTo(i[1][0], i[1][1]), n.lineTo(i[2][0], i[2][1]), n.lineTo(i[3][0], i[3][1]), n.closePath(), n.moveTo(i[4][0], i[4][1]), n.lineTo(i[5][0], i[5][1]), n.moveTo(i[6][0], i[6][1]), n.lineTo(i[7][0], i[7][1]));
  78500. }, e;
  78501. }(Dt)
  78502. );
  78503. function _I(t, e, n) {
  78504. var r = t.ends;
  78505. return new Lat({
  78506. shape: {
  78507. points: n ? Nat(r, t) : r
  78508. },
  78509. z2: 100
  78510. });
  78511. }
  78512. function qU(t, e) {
  78513. for (var n = !0, r = 0; r < e.ends.length; r++)
  78514. if (t.contain(e.ends[r][0], e.ends[r][1])) {
  78515. n = !1;
  78516. break;
  78517. }
  78518. return n;
  78519. }
  78520. function OI(t, e, n, r) {
  78521. var i = e.getItemModel(n);
  78522. t.useStyle(e.getItemVisual(n, "style")), t.style.strokeNoScale = !0, t.__simpleBox = r, Ai(t, i);
  78523. }
  78524. function Nat(t, e) {
  78525. return Ce(t, function(n) {
  78526. return n = n.slice(), n[1] = e.initBaseline, n;
  78527. });
  78528. }
  78529. var Bat = (
  78530. /** @class */
  78531. /* @__PURE__ */ function() {
  78532. function t() {
  78533. }
  78534. return t;
  78535. }()
  78536. ), SI = (
  78537. /** @class */
  78538. function(t) {
  78539. le(e, t);
  78540. function e(n) {
  78541. var r = t.call(this, n) || this;
  78542. return r.type = "largeCandlestickBox", r;
  78543. }
  78544. return e.prototype.getDefaultShape = function() {
  78545. return new Bat();
  78546. }, e.prototype.buildPath = function(n, r) {
  78547. for (var i = r.points, a = 0; a < i.length; )
  78548. if (this.__sign === i[a++]) {
  78549. var o = i[a++];
  78550. n.moveTo(o, i[a++]), n.lineTo(o, i[a++]);
  78551. } else
  78552. a += 3;
  78553. }, e;
  78554. }(Dt)
  78555. );
  78556. function KU(t, e, n, r) {
  78557. var i = t.getData(), a = i.getLayout("largePoints"), o = new SI({
  78558. shape: {
  78559. points: a
  78560. },
  78561. __sign: 1,
  78562. ignoreCoarsePointer: !0
  78563. });
  78564. e.add(o);
  78565. var s = new SI({
  78566. shape: {
  78567. points: a
  78568. },
  78569. __sign: -1,
  78570. ignoreCoarsePointer: !0
  78571. });
  78572. e.add(s);
  78573. var l = new SI({
  78574. shape: {
  78575. points: a
  78576. },
  78577. __sign: 0,
  78578. ignoreCoarsePointer: !0
  78579. });
  78580. e.add(l), xI(1, o, t), xI(-1, s, t), xI(0, l, t), r && (o.incremental = !0, s.incremental = !0), n && n.push(o, s);
  78581. }
  78582. function xI(t, e, n, r) {
  78583. var i = n.get(["itemStyle", t > 0 ? "borderColor" : "borderColor0"]) || n.get(["itemStyle", t > 0 ? "color" : "color0"]);
  78584. t === 0 && (i = n.get(["itemStyle", "borderColorDoji"]));
  78585. var a = n.getModel("itemStyle").getItemStyle(Dat);
  78586. e.useStyle(a), e.style.fill = null, e.style.stroke = i;
  78587. }
  78588. var Ede = (
  78589. /** @class */
  78590. function(t) {
  78591. le(e, t);
  78592. function e() {
  78593. var n = t !== null && t.apply(this, arguments) || this;
  78594. return n.type = e.type, n.defaultValueDimensions = [{
  78595. name: "open",
  78596. defaultTooltip: !0
  78597. }, {
  78598. name: "close",
  78599. defaultTooltip: !0
  78600. }, {
  78601. name: "lowest",
  78602. defaultTooltip: !0
  78603. }, {
  78604. name: "highest",
  78605. defaultTooltip: !0
  78606. }], n;
  78607. }
  78608. return e.prototype.getShadowDim = function() {
  78609. return "open";
  78610. }, e.prototype.brushSelector = function(n, r, i) {
  78611. var a = r.getItemLayout(n);
  78612. return a && i.rect(a.brushRect);
  78613. }, e.type = "series.candlestick", e.dependencies = ["xAxis", "yAxis", "grid"], e.defaultOption = {
  78614. // zlevel: 0,
  78615. z: 2,
  78616. coordinateSystem: "cartesian2d",
  78617. legendHoverLink: !0,
  78618. // xAxisIndex: 0,
  78619. // yAxisIndex: 0,
  78620. layout: null,
  78621. clip: !0,
  78622. itemStyle: {
  78623. color: "#eb5454",
  78624. color0: "#47b262",
  78625. borderColor: "#eb5454",
  78626. borderColor0: "#47b262",
  78627. borderColorDoji: null,
  78628. // borderColor: '#d24040',
  78629. // borderColor0: '#398f4f',
  78630. borderWidth: 1
  78631. },
  78632. emphasis: {
  78633. scale: !0,
  78634. itemStyle: {
  78635. borderWidth: 2
  78636. }
  78637. },
  78638. barMaxWidth: null,
  78639. barMinWidth: null,
  78640. barWidth: null,
  78641. large: !0,
  78642. largeThreshold: 600,
  78643. progressive: 3e3,
  78644. progressiveThreshold: 1e4,
  78645. progressiveChunkMode: "mod",
  78646. animationEasing: "linear",
  78647. animationDuration: 300
  78648. }, e;
  78649. }(Tn)
  78650. );
  78651. vr(Ede, Pde, !0);
  78652. function zat(t) {
  78653. !t || !Se(t.series) || F(t.series, function(e) {
  78654. nt(e) && e.type === "k" && (e.type = "candlestick");
  78655. });
  78656. }
  78657. var Vat = ["itemStyle", "borderColor"], Fat = ["itemStyle", "borderColor0"], Wat = ["itemStyle", "borderColorDoji"], Qat = ["itemStyle", "color"], Hat = ["itemStyle", "color0"], Gat = {
  78658. seriesType: "candlestick",
  78659. plan: $m(),
  78660. // For legend.
  78661. performRawSeries: !0,
  78662. reset: function(t, e) {
  78663. function n(a, o) {
  78664. return o.get(a > 0 ? Qat : Hat);
  78665. }
  78666. function r(a, o) {
  78667. return o.get(a === 0 ? Wat : a > 0 ? Vat : Fat);
  78668. }
  78669. if (!e.isSeriesFiltered(t)) {
  78670. var i = t.pipelineContext.large;
  78671. return !i && {
  78672. progress: function(a, o) {
  78673. for (var s; (s = a.next()) != null; ) {
  78674. var l = o.getItemModel(s), u = o.getItemLayout(s).sign, c = l.getItemStyle();
  78675. c.fill = n(u, l), c.stroke = r(u, l) || c.fill;
  78676. var f = o.ensureUniqueItemVisual(s, "style");
  78677. _e(f, c);
  78678. }
  78679. }
  78680. };
  78681. }
  78682. }
  78683. }, jat = {
  78684. seriesType: "candlestick",
  78685. plan: $m(),
  78686. reset: function(t) {
  78687. var e = t.coordinateSystem, n = t.getData(), r = Zat(t, n), i = 0, a = 1, o = ["x", "y"], s = n.getDimensionIndex(n.mapDimension(o[i])), l = Ce(n.mapDimensionsAll(o[a]), n.getDimensionIndex, n), u = l[0], c = l[1], f = l[2], d = l[3];
  78688. if (n.setLayout({
  78689. candleWidth: r,
  78690. // The value is experimented visually.
  78691. isSimpleBox: r <= 1.3
  78692. }), s < 0 || l.length < 4)
  78693. return;
  78694. return {
  78695. progress: t.pipelineContext.large ? p : h
  78696. };
  78697. function h(v, g) {
  78698. for (var m, y = g.getStore(); (m = v.next()) != null; ) {
  78699. var _ = y.get(s, m), O = y.get(u, m), S = y.get(c, m), x = y.get(f, m), C = y.get(d, m), P = Math.min(O, S), $ = Math.max(O, S), T = Q(P, _), E = Q($, _), M = Q(x, _), R = Q(C, _), N = [];
  78700. W(N, E, 0), W(N, T, 1), N.push(U(R), U(E), U(M), U(T));
  78701. var I = g.getItemModel(m), B = !!I.get(["itemStyle", "borderColorDoji"]);
  78702. g.setItemLayout(m, {
  78703. sign: JU(y, m, O, S, c, B),
  78704. initBaseline: O > S ? E[a] : T[a],
  78705. ends: N,
  78706. brushRect: H(x, C, _)
  78707. });
  78708. }
  78709. function Q(j, Y) {
  78710. var ne = [];
  78711. return ne[i] = Y, ne[a] = j, isNaN(Y) || isNaN(j) ? [NaN, NaN] : e.dataToPoint(ne);
  78712. }
  78713. function W(j, Y, ne) {
  78714. var fe = Y.slice(), ue = Y.slice();
  78715. fe[i] = dw(fe[i] + r / 2, 1, !1), ue[i] = dw(ue[i] - r / 2, 1, !0), ne ? j.push(fe, ue) : j.push(ue, fe);
  78716. }
  78717. function H(j, Y, ne) {
  78718. var fe = Q(j, ne), ue = Q(Y, ne);
  78719. return fe[i] -= r / 2, ue[i] -= r / 2, {
  78720. x: fe[0],
  78721. y: fe[1],
  78722. width: r,
  78723. height: ue[1] - fe[1]
  78724. };
  78725. }
  78726. function U(j) {
  78727. return j[i] = dw(j[i], 1), j;
  78728. }
  78729. }
  78730. function p(v, g) {
  78731. for (var m = Al(v.count * 4), y = 0, _, O = [], S = [], x, C = g.getStore(), P = !!t.get(["itemStyle", "borderColorDoji"]); (x = v.next()) != null; ) {
  78732. var $ = C.get(s, x), T = C.get(u, x), E = C.get(c, x), M = C.get(f, x), R = C.get(d, x);
  78733. if (isNaN($) || isNaN(M) || isNaN(R)) {
  78734. m[y++] = NaN, y += 3;
  78735. continue;
  78736. }
  78737. m[y++] = JU(C, x, T, E, c, P), O[i] = $, O[a] = M, _ = e.dataToPoint(O, null, S), m[y++] = _ ? _[0] : NaN, m[y++] = _ ? _[1] : NaN, O[a] = R, _ = e.dataToPoint(O, null, S), m[y++] = _ ? _[1] : NaN;
  78738. }
  78739. g.setLayout("largePoints", m);
  78740. }
  78741. }
  78742. };
  78743. function JU(t, e, n, r, i, a) {
  78744. var o;
  78745. return n > r ? o = -1 : n < r ? o = 1 : o = a ? 0 : e > 0 ? t.get(i, e - 1) <= r ? 1 : -1 : 1, o;
  78746. }
  78747. function Zat(t, e) {
  78748. var n = t.getBaseAxis(), r, i = n.type === "category" ? n.getBandWidth() : (r = n.getExtent(), Math.abs(r[1] - r[0]) / e.count()), a = ze(dt(t.get("barMaxWidth"), i), i), o = ze(dt(t.get("barMinWidth"), 1), i), s = t.get("barWidth");
  78749. return s != null ? ze(s, i) : Math.max(Math.min(i / 2, a), o);
  78750. }
  78751. function Uat(t) {
  78752. t.registerChartView(Rat), t.registerSeriesModel(Ede), t.registerPreprocessor(zat), t.registerVisual(Gat), t.registerLayout(jat);
  78753. }
  78754. function eX(t, e) {
  78755. var n = e.rippleEffectColor || e.color;
  78756. t.eachChild(function(r) {
  78757. r.attr({
  78758. z: e.z,
  78759. zlevel: e.zlevel,
  78760. style: {
  78761. stroke: e.brushType === "stroke" ? n : null,
  78762. fill: e.brushType === "fill" ? n : null
  78763. }
  78764. });
  78765. });
  78766. }
  78767. var Xat = (
  78768. /** @class */
  78769. function(t) {
  78770. le(e, t);
  78771. function e(n, r) {
  78772. var i = t.call(this) || this, a = new m1(n, r), o = new ct();
  78773. return i.add(a), i.add(o), i.updateData(n, r), i;
  78774. }
  78775. return e.prototype.stopEffectAnimation = function() {
  78776. this.childAt(1).removeAll();
  78777. }, e.prototype.startEffectAnimation = function(n) {
  78778. for (var r = n.symbolType, i = n.color, a = n.rippleNumber, o = this.childAt(1), s = 0; s < a; s++) {
  78779. var l = wr(r, -1, -1, 2, 2, i);
  78780. l.attr({
  78781. style: {
  78782. strokeNoScale: !0
  78783. },
  78784. z2: 99,
  78785. silent: !0,
  78786. scaleX: 0.5,
  78787. scaleY: 0.5
  78788. });
  78789. var u = -s / a * n.period + n.effectOffset;
  78790. l.animate("", !0).when(n.period, {
  78791. scaleX: n.rippleScale / 2,
  78792. scaleY: n.rippleScale / 2
  78793. }).delay(u).start(), l.animateStyle(!0).when(n.period, {
  78794. opacity: 0
  78795. }).delay(u).start(), o.add(l);
  78796. }
  78797. eX(o, n);
  78798. }, e.prototype.updateEffectAnimation = function(n) {
  78799. for (var r = this._effectCfg, i = this.childAt(1), a = ["symbolType", "period", "rippleScale", "rippleNumber"], o = 0; o < a.length; o++) {
  78800. var s = a[o];
  78801. if (r[s] !== n[s]) {
  78802. this.stopEffectAnimation(), this.startEffectAnimation(n);
  78803. return;
  78804. }
  78805. }
  78806. eX(i, n);
  78807. }, e.prototype.highlight = function() {
  78808. Fu(this);
  78809. }, e.prototype.downplay = function() {
  78810. Wu(this);
  78811. }, e.prototype.getSymbolType = function() {
  78812. var n = this.childAt(0);
  78813. return n && n.getSymbolType();
  78814. }, e.prototype.updateData = function(n, r) {
  78815. var i = this, a = n.hostModel;
  78816. this.childAt(0).updateData(n, r);
  78817. var o = this.childAt(1), s = n.getItemModel(r), l = n.getItemVisual(r, "symbol"), u = Em(n.getItemVisual(r, "symbolSize")), c = n.getItemVisual(r, "style"), f = c && c.fill, d = s.getModel("emphasis");
  78818. o.setScale(u), o.traverse(function(g) {
  78819. g.setStyle("fill", f);
  78820. });
  78821. var h = mp(n.getItemVisual(r, "symbolOffset"), u);
  78822. h && (o.x = h[0], o.y = h[1]);
  78823. var p = n.getItemVisual(r, "symbolRotate");
  78824. o.rotation = (p || 0) * Math.PI / 180 || 0;
  78825. var v = {};
  78826. v.showEffectOn = a.get("showEffectOn"), v.rippleScale = s.get(["rippleEffect", "scale"]), v.brushType = s.get(["rippleEffect", "brushType"]), v.period = s.get(["rippleEffect", "period"]) * 1e3, v.effectOffset = r / n.count(), v.z = a.getShallow("z") || 0, v.zlevel = a.getShallow("zlevel") || 0, v.symbolType = l, v.color = f, v.rippleEffectColor = s.get(["rippleEffect", "color"]), v.rippleNumber = s.get(["rippleEffect", "number"]), v.showEffectOn === "render" ? (this._effectCfg ? this.updateEffectAnimation(v) : this.startEffectAnimation(v), this._effectCfg = v) : (this._effectCfg = null, this.stopEffectAnimation(), this.onHoverStateChange = function(g) {
  78827. g === "emphasis" ? v.showEffectOn !== "render" && i.startEffectAnimation(v) : g === "normal" && v.showEffectOn !== "render" && i.stopEffectAnimation();
  78828. }), this._effectCfg = v, ur(this, d.get("focus"), d.get("blurScope"), d.get("disabled"));
  78829. }, e.prototype.fadeOut = function(n) {
  78830. n && n();
  78831. }, e;
  78832. }(ct)
  78833. ), Yat = (
  78834. /** @class */
  78835. function(t) {
  78836. le(e, t);
  78837. function e() {
  78838. var n = t !== null && t.apply(this, arguments) || this;
  78839. return n.type = e.type, n;
  78840. }
  78841. return e.prototype.init = function() {
  78842. this._symbolDraw = new y1(Xat);
  78843. }, e.prototype.render = function(n, r, i) {
  78844. var a = n.getData(), o = this._symbolDraw;
  78845. o.updateData(a, {
  78846. clipShape: this._getClipShape(n)
  78847. }), this.group.add(o.group);
  78848. }, e.prototype._getClipShape = function(n) {
  78849. var r = n.coordinateSystem, i = r && r.getArea && r.getArea();
  78850. return n.get("clip", !0) ? i : null;
  78851. }, e.prototype.updateTransform = function(n, r, i) {
  78852. var a = n.getData();
  78853. this.group.dirty();
  78854. var o = _1("").reset(n, r, i);
  78855. o.progress && o.progress({
  78856. start: 0,
  78857. end: a.count(),
  78858. count: a.count()
  78859. }, a), this._symbolDraw.updateLayout();
  78860. }, e.prototype._updateGroupTransform = function(n) {
  78861. var r = n.coordinateSystem;
  78862. r && r.getRoamTransform && (this.group.transform = nse(r.getRoamTransform()), this.group.decomposeTransform());
  78863. }, e.prototype.remove = function(n, r) {
  78864. this._symbolDraw && this._symbolDraw.remove(!0);
  78865. }, e.type = "effectScatter", e;
  78866. }(_n)
  78867. ), qat = (
  78868. /** @class */
  78869. function(t) {
  78870. le(e, t);
  78871. function e() {
  78872. var n = t !== null && t.apply(this, arguments) || this;
  78873. return n.type = e.type, n.hasSymbolVisual = !0, n;
  78874. }
  78875. return e.prototype.getInitialData = function(n, r) {
  78876. return Yl(null, this, {
  78877. useEncodeDefaulter: !0
  78878. });
  78879. }, e.prototype.brushSelector = function(n, r, i) {
  78880. return i.point(r.getItemLayout(n));
  78881. }, e.type = "series.effectScatter", e.dependencies = ["grid", "polar"], e.defaultOption = {
  78882. coordinateSystem: "cartesian2d",
  78883. // zlevel: 0,
  78884. z: 2,
  78885. legendHoverLink: !0,
  78886. effectType: "ripple",
  78887. progressive: 0,
  78888. // When to show the effect, option: 'render'|'emphasis'
  78889. showEffectOn: "render",
  78890. clip: !0,
  78891. // Ripple effect config
  78892. rippleEffect: {
  78893. period: 4,
  78894. // Scale of ripple
  78895. scale: 2.5,
  78896. // Brush type can be fill or stroke
  78897. brushType: "fill",
  78898. // Ripple number
  78899. number: 3
  78900. },
  78901. universalTransition: {
  78902. divideShape: "clone"
  78903. },
  78904. // Cartesian coordinate system
  78905. // xAxisIndex: 0,
  78906. // yAxisIndex: 0,
  78907. // Polar coordinate system
  78908. // polarIndex: 0,
  78909. // Geo coordinate system
  78910. // geoIndex: 0,
  78911. // symbol: null, // 图形类型
  78912. symbolSize: 10
  78913. // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
  78914. // symbolRotate: null, // 图形旋转控制
  78915. // itemStyle: {
  78916. // opacity: 1
  78917. // }
  78918. }, e;
  78919. }(Tn)
  78920. );
  78921. function Kat(t) {
  78922. t.registerChartView(Yat), t.registerSeriesModel(qat), t.registerLayout(_1("effectScatter"));
  78923. }
  78924. var Mde = (
  78925. /** @class */
  78926. function(t) {
  78927. le(e, t);
  78928. function e(n, r, i) {
  78929. var a = t.call(this) || this;
  78930. return a.add(a.createLine(n, r, i)), a._updateEffectSymbol(n, r), a;
  78931. }
  78932. return e.prototype.createLine = function(n, r, i) {
  78933. return new q3(n, r, i);
  78934. }, e.prototype._updateEffectSymbol = function(n, r) {
  78935. var i = n.getItemModel(r), a = i.getModel("effect"), o = a.get("symbolSize"), s = a.get("symbol");
  78936. Se(o) || (o = [o, o]);
  78937. var l = n.getItemVisual(r, "style"), u = a.get("color") || l && l.stroke, c = this.childAt(1);
  78938. this._symbolType !== s && (this.remove(c), c = wr(s, -0.5, -0.5, 1, 1, u), c.z2 = 100, c.culling = !0, this.add(c)), c && (c.setStyle("shadowColor", u), c.setStyle(a.getItemStyle(["color"])), c.scaleX = o[0], c.scaleY = o[1], c.setColor(u), this._symbolType = s, this._symbolScale = o, this._updateEffectAnimation(n, a, r));
  78939. }, e.prototype._updateEffectAnimation = function(n, r, i) {
  78940. var a = this.childAt(1);
  78941. if (a) {
  78942. var o = n.getItemLayout(i), s = r.get("period") * 1e3, l = r.get("loop"), u = r.get("roundTrip"), c = r.get("constantSpeed"), f = Or(r.get("delay"), function(h) {
  78943. return h / n.count() * s / 3;
  78944. });
  78945. if (a.ignore = !0, this._updateAnimationPoints(a, o), c > 0 && (s = this._getLineLength(a) / c * 1e3), s !== this._period || l !== this._loop || u !== this._roundTrip) {
  78946. a.stopAnimation();
  78947. var d = void 0;
  78948. qe(f) ? d = f(i) : d = f, a.__t > 0 && (d = -s * a.__t), this._animateSymbol(a, s, d, l, u);
  78949. }
  78950. this._period = s, this._loop = l, this._roundTrip = u;
  78951. }
  78952. }, e.prototype._animateSymbol = function(n, r, i, a, o) {
  78953. if (r > 0) {
  78954. n.__t = 0;
  78955. var s = this, l = n.animate("", a).when(o ? r * 2 : r, {
  78956. __t: o ? 2 : 1
  78957. }).delay(i).during(function() {
  78958. s._updateSymbolPosition(n);
  78959. });
  78960. a || l.done(function() {
  78961. s.remove(n);
  78962. }), l.start();
  78963. }
  78964. }, e.prototype._getLineLength = function(n) {
  78965. return wu(n.__p1, n.__cp1) + wu(n.__cp1, n.__p2);
  78966. }, e.prototype._updateAnimationPoints = function(n, r) {
  78967. n.__p1 = r[0], n.__p2 = r[1], n.__cp1 = r[2] || [(r[0][0] + r[1][0]) / 2, (r[0][1] + r[1][1]) / 2];
  78968. }, e.prototype.updateData = function(n, r, i) {
  78969. this.childAt(0).updateData(n, r, i), this._updateEffectSymbol(n, r);
  78970. }, e.prototype._updateSymbolPosition = function(n) {
  78971. var r = n.__p1, i = n.__p2, a = n.__cp1, o = n.__t < 1 ? n.__t : 2 - n.__t, s = [n.x, n.y], l = s.slice(), u = ii, c = sk;
  78972. s[0] = u(r[0], a[0], i[0], o), s[1] = u(r[1], a[1], i[1], o);
  78973. var f = n.__t < 1 ? c(r[0], a[0], i[0], o) : c(i[0], a[0], r[0], 1 - o), d = n.__t < 1 ? c(r[1], a[1], i[1], o) : c(i[1], a[1], r[1], 1 - o);
  78974. n.rotation = -Math.atan2(d, f) - Math.PI / 2, (this._symbolType === "line" || this._symbolType === "rect" || this._symbolType === "roundRect") && (n.__lastT !== void 0 && n.__lastT < n.__t ? (n.scaleY = wu(l, s) * 1.05, o === 1 && (s[0] = l[0] + (s[0] - l[0]) / 2, s[1] = l[1] + (s[1] - l[1]) / 2)) : n.__lastT === 1 ? n.scaleY = 2 * wu(r, s) : n.scaleY = this._symbolScale[1]), n.__lastT = n.__t, n.ignore = !1, n.x = s[0], n.y = s[1];
  78975. }, e.prototype.updateLayout = function(n, r) {
  78976. this.childAt(0).updateLayout(n, r);
  78977. var i = n.getItemModel(r).getModel("effect");
  78978. this._updateEffectAnimation(n, i, r);
  78979. }, e;
  78980. }(ct)
  78981. ), Ide = (
  78982. /** @class */
  78983. function(t) {
  78984. le(e, t);
  78985. function e(n, r, i) {
  78986. var a = t.call(this) || this;
  78987. return a._createPolyline(n, r, i), a;
  78988. }
  78989. return e.prototype._createPolyline = function(n, r, i) {
  78990. var a = n.getItemLayout(r), o = new va({
  78991. shape: {
  78992. points: a
  78993. }
  78994. });
  78995. this.add(o), this._updateCommonStl(n, r, i);
  78996. }, e.prototype.updateData = function(n, r, i) {
  78997. var a = n.hostModel, o = this.childAt(0), s = {
  78998. shape: {
  78999. points: n.getItemLayout(r)
  79000. }
  79001. };
  79002. tn(o, s, a, r), this._updateCommonStl(n, r, i);
  79003. }, e.prototype._updateCommonStl = function(n, r, i) {
  79004. var a = this.childAt(0), o = n.getItemModel(r), s = i && i.emphasisLineStyle, l = i && i.focus, u = i && i.blurScope, c = i && i.emphasisDisabled;
  79005. if (!i || n.hasItemOption) {
  79006. var f = o.getModel("emphasis");
  79007. s = f.getModel("lineStyle").getLineStyle(), c = f.get("disabled"), l = f.get("focus"), u = f.get("blurScope");
  79008. }
  79009. a.useStyle(n.getItemVisual(r, "style")), a.style.fill = null, a.style.strokeNoScale = !0;
  79010. var d = a.ensureState("emphasis");
  79011. d.style = s, ur(this, l, u, c);
  79012. }, e.prototype.updateLayout = function(n, r) {
  79013. var i = this.childAt(0);
  79014. i.setShape("points", n.getItemLayout(r));
  79015. }, e;
  79016. }(ct)
  79017. ), Jat = (
  79018. /** @class */
  79019. function(t) {
  79020. le(e, t);
  79021. function e() {
  79022. var n = t !== null && t.apply(this, arguments) || this;
  79023. return n._lastFrame = 0, n._lastFramePercent = 0, n;
  79024. }
  79025. return e.prototype.createLine = function(n, r, i) {
  79026. return new Ide(n, r, i);
  79027. }, e.prototype._updateAnimationPoints = function(n, r) {
  79028. this._points = r;
  79029. for (var i = [0], a = 0, o = 1; o < r.length; o++) {
  79030. var s = r[o - 1], l = r[o];
  79031. a += wu(s, l), i.push(a);
  79032. }
  79033. if (a === 0) {
  79034. this._length = 0;
  79035. return;
  79036. }
  79037. for (var o = 0; o < i.length; o++)
  79038. i[o] /= a;
  79039. this._offsets = i, this._length = a;
  79040. }, e.prototype._getLineLength = function() {
  79041. return this._length;
  79042. }, e.prototype._updateSymbolPosition = function(n) {
  79043. var r = n.__t < 1 ? n.__t : 2 - n.__t, i = this._points, a = this._offsets, o = i.length;
  79044. if (a) {
  79045. var s = this._lastFrame, l;
  79046. if (r < this._lastFramePercent) {
  79047. var u = Math.min(s + 1, o - 1);
  79048. for (l = u; l >= 0 && !(a[l] <= r); l--)
  79049. ;
  79050. l = Math.min(l, o - 2);
  79051. } else {
  79052. for (l = s; l < o && !(a[l] > r); l++)
  79053. ;
  79054. l = Math.min(l - 1, o - 2);
  79055. }
  79056. var c = (r - a[l]) / (a[l + 1] - a[l]), f = i[l], d = i[l + 1];
  79057. n.x = f[0] * (1 - c) + c * d[0], n.y = f[1] * (1 - c) + c * d[1];
  79058. var h = n.__t < 1 ? d[0] - f[0] : f[0] - d[0], p = n.__t < 1 ? d[1] - f[1] : f[1] - d[1];
  79059. n.rotation = -Math.atan2(p, h) - Math.PI / 2, this._lastFrame = l, this._lastFramePercent = r, n.ignore = !1;
  79060. }
  79061. }, e;
  79062. }(Mde)
  79063. ), eot = (
  79064. /** @class */
  79065. /* @__PURE__ */ function() {
  79066. function t() {
  79067. this.polyline = !1, this.curveness = 0, this.segs = [];
  79068. }
  79069. return t;
  79070. }()
  79071. ), tot = (
  79072. /** @class */
  79073. function(t) {
  79074. le(e, t);
  79075. function e(n) {
  79076. var r = t.call(this, n) || this;
  79077. return r._off = 0, r.hoverDataIdx = -1, r;
  79078. }
  79079. return e.prototype.reset = function() {
  79080. this.notClear = !1, this._off = 0;
  79081. }, e.prototype.getDefaultStyle = function() {
  79082. return {
  79083. stroke: "#000",
  79084. fill: null
  79085. };
  79086. }, e.prototype.getDefaultShape = function() {
  79087. return new eot();
  79088. }, e.prototype.buildPath = function(n, r) {
  79089. var i = r.segs, a = r.curveness, o;
  79090. if (r.polyline)
  79091. for (o = this._off; o < i.length; ) {
  79092. var s = i[o++];
  79093. if (s > 0) {
  79094. n.moveTo(i[o++], i[o++]);
  79095. for (var l = 1; l < s; l++)
  79096. n.lineTo(i[o++], i[o++]);
  79097. }
  79098. }
  79099. else
  79100. for (o = this._off; o < i.length; ) {
  79101. var u = i[o++], c = i[o++], f = i[o++], d = i[o++];
  79102. if (n.moveTo(u, c), a > 0) {
  79103. var h = (u + f) / 2 - (c - d) * a, p = (c + d) / 2 - (f - u) * a;
  79104. n.quadraticCurveTo(h, p, f, d);
  79105. } else
  79106. n.lineTo(f, d);
  79107. }
  79108. this.incremental && (this._off = o, this.notClear = !0);
  79109. }, e.prototype.findDataIndex = function(n, r) {
  79110. var i = this.shape, a = i.segs, o = i.curveness, s = this.style.lineWidth;
  79111. if (i.polyline)
  79112. for (var l = 0, u = 0; u < a.length; ) {
  79113. var c = a[u++];
  79114. if (c > 0)
  79115. for (var f = a[u++], d = a[u++], h = 1; h < c; h++) {
  79116. var p = a[u++], v = a[u++];
  79117. if (Mc(f, d, p, v, s, n, r))
  79118. return l;
  79119. }
  79120. l++;
  79121. }
  79122. else
  79123. for (var l = 0, u = 0; u < a.length; ) {
  79124. var f = a[u++], d = a[u++], p = a[u++], v = a[u++];
  79125. if (o > 0) {
  79126. var g = (f + p) / 2 - (d - v) * o, m = (d + v) / 2 - (p - f) * o;
  79127. if (Zse(f, d, g, m, p, v, s, n, r))
  79128. return l;
  79129. } else if (Mc(f, d, p, v, s, n, r))
  79130. return l;
  79131. l++;
  79132. }
  79133. return -1;
  79134. }, e.prototype.contain = function(n, r) {
  79135. var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
  79136. if (n = i[0], r = i[1], a.contain(n, r)) {
  79137. var o = this.hoverDataIdx = this.findDataIndex(n, r);
  79138. return o >= 0;
  79139. }
  79140. return this.hoverDataIdx = -1, !1;
  79141. }, e.prototype.getBoundingRect = function() {
  79142. var n = this._rect;
  79143. if (!n) {
  79144. for (var r = this.shape, i = r.segs, a = 1 / 0, o = 1 / 0, s = -1 / 0, l = -1 / 0, u = 0; u < i.length; ) {
  79145. var c = i[u++], f = i[u++];
  79146. a = Math.min(c, a), s = Math.max(c, s), o = Math.min(f, o), l = Math.max(f, l);
  79147. }
  79148. n = this._rect = new bt(a, o, s, l);
  79149. }
  79150. return n;
  79151. }, e;
  79152. }(Dt)
  79153. ), not = (
  79154. /** @class */
  79155. function() {
  79156. function t() {
  79157. this.group = new ct();
  79158. }
  79159. return t.prototype.updateData = function(e) {
  79160. this._clear();
  79161. var n = this._create();
  79162. n.setShape({
  79163. segs: e.getLayout("linesPoints")
  79164. }), this._setCommon(n, e);
  79165. }, t.prototype.incrementalPrepareUpdate = function(e) {
  79166. this.group.removeAll(), this._clear();
  79167. }, t.prototype.incrementalUpdate = function(e, n) {
  79168. var r = this._newAdded[0], i = n.getLayout("linesPoints"), a = r && r.shape.segs;
  79169. if (a && a.length < 2e4) {
  79170. var o = a.length, s = new Float32Array(o + i.length);
  79171. s.set(a), s.set(i, o), r.setShape({
  79172. segs: s
  79173. });
  79174. } else {
  79175. this._newAdded = [];
  79176. var l = this._create();
  79177. l.incremental = !0, l.setShape({
  79178. segs: i
  79179. }), this._setCommon(l, n), l.__startIndex = e.start;
  79180. }
  79181. }, t.prototype.remove = function() {
  79182. this._clear();
  79183. }, t.prototype.eachRendered = function(e) {
  79184. this._newAdded[0] && e(this._newAdded[0]);
  79185. }, t.prototype._create = function() {
  79186. var e = new tot({
  79187. cursor: "default",
  79188. ignoreCoarsePointer: !0
  79189. });
  79190. return this._newAdded.push(e), this.group.add(e), e;
  79191. }, t.prototype._setCommon = function(e, n, r) {
  79192. var i = n.hostModel;
  79193. e.setShape({
  79194. polyline: i.get("polyline"),
  79195. curveness: i.get(["lineStyle", "curveness"])
  79196. }), e.useStyle(i.getModel("lineStyle").getLineStyle()), e.style.strokeNoScale = !0;
  79197. var a = n.getVisual("style");
  79198. a && a.stroke && e.setStyle("stroke", a.stroke), e.setStyle("fill", null);
  79199. var o = ft(e);
  79200. o.seriesIndex = i.seriesIndex, e.on("mousemove", function(s) {
  79201. o.dataIndex = null;
  79202. var l = e.hoverDataIdx;
  79203. l > 0 && (o.dataIndex = l + e.__startIndex);
  79204. });
  79205. }, t.prototype._clear = function() {
  79206. this._newAdded = [], this.group.removeAll();
  79207. }, t;
  79208. }()
  79209. ), Dde = {
  79210. seriesType: "lines",
  79211. plan: $m(),
  79212. reset: function(t) {
  79213. var e = t.coordinateSystem;
  79214. if (!e) {
  79215. process.env.NODE_ENV !== "production" && $i("The lines series must have a coordinate system.");
  79216. return;
  79217. }
  79218. var n = t.get("polyline"), r = t.pipelineContext.large;
  79219. return {
  79220. progress: function(i, a) {
  79221. var o = [];
  79222. if (r) {
  79223. var s = void 0, l = i.end - i.start;
  79224. if (n) {
  79225. for (var u = 0, c = i.start; c < i.end; c++)
  79226. u += t.getLineCoordsCount(c);
  79227. s = new Float32Array(l + u * 2);
  79228. } else
  79229. s = new Float32Array(l * 4);
  79230. for (var f = 0, d = [], c = i.start; c < i.end; c++) {
  79231. var h = t.getLineCoords(c, o);
  79232. n && (s[f++] = h);
  79233. for (var p = 0; p < h; p++)
  79234. d = e.dataToPoint(o[p], !1, d), s[f++] = d[0], s[f++] = d[1];
  79235. }
  79236. a.setLayout("linesPoints", s);
  79237. } else
  79238. for (var c = i.start; c < i.end; c++) {
  79239. var v = a.getItemModel(c), h = t.getLineCoords(c, o), g = [];
  79240. if (n)
  79241. for (var m = 0; m < h; m++)
  79242. g.push(e.dataToPoint(o[m]));
  79243. else {
  79244. g[0] = e.dataToPoint(o[0]), g[1] = e.dataToPoint(o[1]);
  79245. var y = v.get(["lineStyle", "curveness"]);
  79246. +y && (g[2] = [(g[0][0] + g[1][0]) / 2 - (g[0][1] - g[1][1]) * y, (g[0][1] + g[1][1]) / 2 - (g[1][0] - g[0][0]) * y]);
  79247. }
  79248. a.setItemLayout(c, g);
  79249. }
  79250. }
  79251. };
  79252. }
  79253. }, rot = (
  79254. /** @class */
  79255. function(t) {
  79256. le(e, t);
  79257. function e() {
  79258. var n = t !== null && t.apply(this, arguments) || this;
  79259. return n.type = e.type, n;
  79260. }
  79261. return e.prototype.render = function(n, r, i) {
  79262. var a = n.getData(), o = this._updateLineDraw(a, n), s = n.get("zlevel"), l = n.get(["effect", "trailLength"]), u = i.getZr(), c = u.painter.getType() === "svg";
  79263. c || u.painter.getLayer(s).clear(!0), this._lastZlevel != null && !c && u.configLayer(this._lastZlevel, {
  79264. motionBlur: !1
  79265. }), this._showEffect(n) && l > 0 && (c ? process.env.NODE_ENV !== "production" && console.warn("SVG render mode doesn't support lines with trail effect") : u.configLayer(s, {
  79266. motionBlur: !0,
  79267. lastFrameAlpha: Math.max(Math.min(l / 10 + 0.9, 1), 0)
  79268. })), o.updateData(a);
  79269. var f = n.get("clip", !0) && b1(n.coordinateSystem, !1, n);
  79270. f ? this.group.setClipPath(f) : this.group.removeClipPath(), this._lastZlevel = s, this._finished = !0;
  79271. }, e.prototype.incrementalPrepareRender = function(n, r, i) {
  79272. var a = n.getData(), o = this._updateLineDraw(a, n);
  79273. o.incrementalPrepareUpdate(a), this._clearLayer(i), this._finished = !1;
  79274. }, e.prototype.incrementalRender = function(n, r, i) {
  79275. this._lineDraw.incrementalUpdate(n, r.getData()), this._finished = n.end === r.getData().count();
  79276. }, e.prototype.eachRendered = function(n) {
  79277. this._lineDraw && this._lineDraw.eachRendered(n);
  79278. }, e.prototype.updateTransform = function(n, r, i) {
  79279. var a = n.getData(), o = n.pipelineContext;
  79280. if (!this._finished || o.large || o.progressiveRender)
  79281. return {
  79282. update: !0
  79283. };
  79284. var s = Dde.reset(n, r, i);
  79285. s.progress && s.progress({
  79286. start: 0,
  79287. end: a.count(),
  79288. count: a.count()
  79289. }, a), this._lineDraw.updateLayout(), this._clearLayer(i);
  79290. }, e.prototype._updateLineDraw = function(n, r) {
  79291. var i = this._lineDraw, a = this._showEffect(r), o = !!r.get("polyline"), s = r.pipelineContext, l = s.large;
  79292. return process.env.NODE_ENV !== "production" && a && l && console.warn("Large lines not support effect"), (!i || a !== this._hasEffet || o !== this._isPolyline || l !== this._isLargeDraw) && (i && i.remove(), i = this._lineDraw = l ? new not() : new K3(o ? a ? Jat : Ide : a ? Mde : q3), this._hasEffet = a, this._isPolyline = o, this._isLargeDraw = l), this.group.add(i.group), i;
  79293. }, e.prototype._showEffect = function(n) {
  79294. return !!n.get(["effect", "show"]);
  79295. }, e.prototype._clearLayer = function(n) {
  79296. var r = n.getZr(), i = r.painter.getType() === "svg";
  79297. !i && this._lastZlevel != null && r.painter.getLayer(this._lastZlevel).clear(!0);
  79298. }, e.prototype.remove = function(n, r) {
  79299. this._lineDraw && this._lineDraw.remove(), this._lineDraw = null, this._clearLayer(r);
  79300. }, e.prototype.dispose = function(n, r) {
  79301. this.remove(n, r);
  79302. }, e.type = "lines", e;
  79303. }(_n)
  79304. ), iot = typeof Uint32Array > "u" ? Array : Uint32Array, aot = typeof Float64Array > "u" ? Array : Float64Array;
  79305. function tX(t) {
  79306. var e = t.data;
  79307. e && e[0] && e[0][0] && e[0][0].coord && (process.env.NODE_ENV !== "production" && console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"), t.data = Ce(e, function(n) {
  79308. var r = [n[0].coord, n[1].coord], i = {
  79309. coords: r
  79310. };
  79311. return n[0].name && (i.fromName = n[0].name), n[1].name && (i.toName = n[1].name), aP([i, n[0], n[1]]);
  79312. }));
  79313. }
  79314. var oot = (
  79315. /** @class */
  79316. function(t) {
  79317. le(e, t);
  79318. function e() {
  79319. var n = t !== null && t.apply(this, arguments) || this;
  79320. return n.type = e.type, n.visualStyleAccessPath = "lineStyle", n.visualDrawType = "stroke", n;
  79321. }
  79322. return e.prototype.init = function(n) {
  79323. n.data = n.data || [], tX(n);
  79324. var r = this._processFlatCoordsArray(n.data);
  79325. this._flatCoords = r.flatCoords, this._flatCoordsOffset = r.flatCoordsOffset, r.flatCoords && (n.data = new Float32Array(r.count)), t.prototype.init.apply(this, arguments);
  79326. }, e.prototype.mergeOption = function(n) {
  79327. if (tX(n), n.data) {
  79328. var r = this._processFlatCoordsArray(n.data);
  79329. this._flatCoords = r.flatCoords, this._flatCoordsOffset = r.flatCoordsOffset, r.flatCoords && (n.data = new Float32Array(r.count));
  79330. }
  79331. t.prototype.mergeOption.apply(this, arguments);
  79332. }, e.prototype.appendData = function(n) {
  79333. var r = this._processFlatCoordsArray(n.data);
  79334. r.flatCoords && (this._flatCoords ? (this._flatCoords = Fb(this._flatCoords, r.flatCoords), this._flatCoordsOffset = Fb(this._flatCoordsOffset, r.flatCoordsOffset)) : (this._flatCoords = r.flatCoords, this._flatCoordsOffset = r.flatCoordsOffset), n.data = new Float32Array(r.count)), this.getRawData().appendData(n.data);
  79335. }, e.prototype._getCoordsFromItemModel = function(n) {
  79336. var r = this.getData().getItemModel(n), i = r.option instanceof Array ? r.option : r.getShallow("coords");
  79337. if (process.env.NODE_ENV !== "production" && !(i instanceof Array && i.length > 0 && i[0] instanceof Array))
  79338. throw new Error("Invalid coords " + JSON.stringify(i) + ". Lines must have 2d coords array in data item.");
  79339. return i;
  79340. }, e.prototype.getLineCoordsCount = function(n) {
  79341. return this._flatCoordsOffset ? this._flatCoordsOffset[n * 2 + 1] : this._getCoordsFromItemModel(n).length;
  79342. }, e.prototype.getLineCoords = function(n, r) {
  79343. if (this._flatCoordsOffset) {
  79344. for (var i = this._flatCoordsOffset[n * 2], a = this._flatCoordsOffset[n * 2 + 1], o = 0; o < a; o++)
  79345. r[o] = r[o] || [], r[o][0] = this._flatCoords[i + o * 2], r[o][1] = this._flatCoords[i + o * 2 + 1];
  79346. return a;
  79347. } else {
  79348. for (var s = this._getCoordsFromItemModel(n), o = 0; o < s.length; o++)
  79349. r[o] = r[o] || [], r[o][0] = s[o][0], r[o][1] = s[o][1];
  79350. return s.length;
  79351. }
  79352. }, e.prototype._processFlatCoordsArray = function(n) {
  79353. var r = 0;
  79354. if (this._flatCoords && (r = this._flatCoords.length), Kt(n[0])) {
  79355. for (var i = n.length, a = new iot(i), o = new aot(i), s = 0, l = 0, u = 0, c = 0; c < i; ) {
  79356. u++;
  79357. var f = n[c++];
  79358. a[l++] = s + r, a[l++] = f;
  79359. for (var d = 0; d < f; d++) {
  79360. var h = n[c++], p = n[c++];
  79361. if (o[s++] = h, o[s++] = p, c > i && process.env.NODE_ENV !== "production")
  79362. throw new Error("Invalid data format.");
  79363. }
  79364. }
  79365. return {
  79366. flatCoordsOffset: new Uint32Array(a.buffer, 0, l),
  79367. flatCoords: o,
  79368. count: u
  79369. };
  79370. }
  79371. return {
  79372. flatCoordsOffset: null,
  79373. flatCoords: null,
  79374. count: n.length
  79375. };
  79376. }, e.prototype.getInitialData = function(n, r) {
  79377. if (process.env.NODE_ENV !== "production") {
  79378. var i = gp.get(n.coordinateSystem);
  79379. if (!i)
  79380. throw new Error("Unknown coordinate system " + n.coordinateSystem);
  79381. }
  79382. var a = new Wi(["value"], this);
  79383. return a.hasItemOption = !1, a.initData(n.data, [], function(o, s, l, u) {
  79384. if (o instanceof Array)
  79385. return NaN;
  79386. a.hasItemOption = !0;
  79387. var c = o.value;
  79388. if (c != null)
  79389. return c instanceof Array ? c[u] : c;
  79390. }), a;
  79391. }, e.prototype.formatTooltip = function(n, r, i) {
  79392. var a = this.getData(), o = a.getItemModel(n), s = o.get("name");
  79393. if (s)
  79394. return s;
  79395. var l = o.get("fromName"), u = o.get("toName"), c = [];
  79396. return l != null && c.push(l), u != null && c.push(u), ti("nameValue", {
  79397. name: c.join(" > ")
  79398. });
  79399. }, e.prototype.preventIncremental = function() {
  79400. return !!this.get(["effect", "show"]);
  79401. }, e.prototype.getProgressive = function() {
  79402. var n = this.option.progressive;
  79403. return n ?? (this.option.large ? 1e4 : this.get("progressive"));
  79404. }, e.prototype.getProgressiveThreshold = function() {
  79405. var n = this.option.progressiveThreshold;
  79406. return n ?? (this.option.large ? 2e4 : this.get("progressiveThreshold"));
  79407. }, e.prototype.getZLevelKey = function() {
  79408. var n = this.getModel("effect"), r = n.get("trailLength");
  79409. return this.getData().count() > this.getProgressiveThreshold() ? this.id : n.get("show") && r > 0 ? r + "" : "";
  79410. }, e.type = "series.lines", e.dependencies = ["grid", "polar", "geo", "calendar"], e.defaultOption = {
  79411. coordinateSystem: "geo",
  79412. // zlevel: 0,
  79413. z: 2,
  79414. legendHoverLink: !0,
  79415. // Cartesian coordinate system
  79416. xAxisIndex: 0,
  79417. yAxisIndex: 0,
  79418. symbol: ["none", "none"],
  79419. symbolSize: [10, 10],
  79420. // Geo coordinate system
  79421. geoIndex: 0,
  79422. effect: {
  79423. show: !1,
  79424. period: 4,
  79425. constantSpeed: 0,
  79426. symbol: "circle",
  79427. symbolSize: 3,
  79428. loop: !0,
  79429. trailLength: 0.2
  79430. },
  79431. large: !1,
  79432. // Available when large is true
  79433. largeThreshold: 2e3,
  79434. polyline: !1,
  79435. clip: !0,
  79436. label: {
  79437. show: !1,
  79438. position: "end"
  79439. // distance: 5,
  79440. // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
  79441. },
  79442. lineStyle: {
  79443. opacity: 0.5
  79444. }
  79445. }, e;
  79446. }(Tn)
  79447. );
  79448. function US(t) {
  79449. return t instanceof Array || (t = [t, t]), t;
  79450. }
  79451. var sot = {
  79452. seriesType: "lines",
  79453. reset: function(t) {
  79454. var e = US(t.get("symbol")), n = US(t.get("symbolSize")), r = t.getData();
  79455. r.setVisual("fromSymbol", e && e[0]), r.setVisual("toSymbol", e && e[1]), r.setVisual("fromSymbolSize", n && n[0]), r.setVisual("toSymbolSize", n && n[1]);
  79456. function i(a, o) {
  79457. var s = a.getItemModel(o), l = US(s.getShallow("symbol", !0)), u = US(s.getShallow("symbolSize", !0));
  79458. l[0] && a.setItemVisual(o, "fromSymbol", l[0]), l[1] && a.setItemVisual(o, "toSymbol", l[1]), u[0] && a.setItemVisual(o, "fromSymbolSize", u[0]), u[1] && a.setItemVisual(o, "toSymbolSize", u[1]);
  79459. }
  79460. return {
  79461. dataEach: r.hasItemOption ? i : null
  79462. };
  79463. }
  79464. };
  79465. function lot(t) {
  79466. t.registerChartView(rot), t.registerSeriesModel(oot), t.registerLayout(Dde), t.registerVisual(sot);
  79467. }
  79468. var uot = 256, cot = (
  79469. /** @class */
  79470. function() {
  79471. function t() {
  79472. this.blurSize = 30, this.pointSize = 20, this.maxOpacity = 1, this.minOpacity = 0, this._gradientPixels = {
  79473. inRange: null,
  79474. outOfRange: null
  79475. };
  79476. var e = Hs.createCanvas();
  79477. this.canvas = e;
  79478. }
  79479. return t.prototype.update = function(e, n, r, i, a, o) {
  79480. var s = this._getBrush(), l = this._getGradient(a, "inRange"), u = this._getGradient(a, "outOfRange"), c = this.pointSize + this.blurSize, f = this.canvas, d = f.getContext("2d"), h = e.length;
  79481. f.width = n, f.height = r;
  79482. for (var p = 0; p < h; ++p) {
  79483. var v = e[p], g = v[0], m = v[1], y = v[2], _ = i(y);
  79484. d.globalAlpha = _, d.drawImage(s, g - c, m - c);
  79485. }
  79486. if (!f.width || !f.height)
  79487. return f;
  79488. for (var O = d.getImageData(0, 0, f.width, f.height), S = O.data, x = 0, C = S.length, P = this.minOpacity, $ = this.maxOpacity, T = $ - P; x < C; ) {
  79489. var _ = S[x + 3] / 256, E = Math.floor(_ * (uot - 1)) * 4;
  79490. if (_ > 0) {
  79491. var M = o(_) ? l : u;
  79492. _ > 0 && (_ = _ * T + P), S[x++] = M[E], S[x++] = M[E + 1], S[x++] = M[E + 2], S[x++] = M[E + 3] * _ * 256;
  79493. } else
  79494. x += 4;
  79495. }
  79496. return d.putImageData(O, 0, 0), f;
  79497. }, t.prototype._getBrush = function() {
  79498. var e = this._brushCanvas || (this._brushCanvas = Hs.createCanvas()), n = this.pointSize + this.blurSize, r = n * 2;
  79499. e.width = r, e.height = r;
  79500. var i = e.getContext("2d");
  79501. return i.clearRect(0, 0, r, r), i.shadowOffsetX = r, i.shadowBlur = this.blurSize, i.shadowColor = "#000", i.beginPath(), i.arc(-n, n, this.pointSize, 0, Math.PI * 2, !0), i.closePath(), i.fill(), e;
  79502. }, t.prototype._getGradient = function(e, n) {
  79503. for (var r = this._gradientPixels, i = r[n] || (r[n] = new Uint8ClampedArray(256 * 4)), a = [0, 0, 0, 0], o = 0, s = 0; s < 256; s++)
  79504. e[n](s / 255, !0, a), i[o++] = a[0], i[o++] = a[1], i[o++] = a[2], i[o++] = a[3];
  79505. return i;
  79506. }, t;
  79507. }()
  79508. );
  79509. function fot(t, e, n) {
  79510. var r = t[1] - t[0];
  79511. e = Ce(e, function(o) {
  79512. return {
  79513. interval: [(o.interval[0] - t[0]) / r, (o.interval[1] - t[0]) / r]
  79514. };
  79515. });
  79516. var i = e.length, a = 0;
  79517. return function(o) {
  79518. var s;
  79519. for (s = a; s < i; s++) {
  79520. var l = e[s].interval;
  79521. if (l[0] <= o && o <= l[1]) {
  79522. a = s;
  79523. break;
  79524. }
  79525. }
  79526. if (s === i)
  79527. for (s = a - 1; s >= 0; s--) {
  79528. var l = e[s].interval;
  79529. if (l[0] <= o && o <= l[1]) {
  79530. a = s;
  79531. break;
  79532. }
  79533. }
  79534. return s >= 0 && s < i && n[s];
  79535. };
  79536. }
  79537. function dot(t, e) {
  79538. var n = t[1] - t[0];
  79539. return e = [(e[0] - t[0]) / n, (e[1] - t[0]) / n], function(r) {
  79540. return r >= e[0] && r <= e[1];
  79541. };
  79542. }
  79543. function nX(t) {
  79544. var e = t.dimensions;
  79545. return e[0] === "lng" && e[1] === "lat";
  79546. }
  79547. var hot = (
  79548. /** @class */
  79549. function(t) {
  79550. le(e, t);
  79551. function e() {
  79552. var n = t !== null && t.apply(this, arguments) || this;
  79553. return n.type = e.type, n;
  79554. }
  79555. return e.prototype.render = function(n, r, i) {
  79556. var a;
  79557. if (r.eachComponent("visualMap", function(s) {
  79558. s.eachTargetSeries(function(l) {
  79559. l === n && (a = s);
  79560. });
  79561. }), process.env.NODE_ENV !== "production" && !a)
  79562. throw new Error("Heatmap must use with visualMap");
  79563. this._progressiveEls = null, this.group.removeAll();
  79564. var o = n.coordinateSystem;
  79565. o.type === "cartesian2d" || o.type === "calendar" ? this._renderOnCartesianAndCalendar(n, i, 0, n.getData().count()) : nX(o) && this._renderOnGeo(o, n, a, i);
  79566. }, e.prototype.incrementalPrepareRender = function(n, r, i) {
  79567. this.group.removeAll();
  79568. }, e.prototype.incrementalRender = function(n, r, i, a) {
  79569. var o = r.coordinateSystem;
  79570. o && (nX(o) ? this.render(r, i, a) : (this._progressiveEls = [], this._renderOnCartesianAndCalendar(r, a, n.start, n.end, !0)));
  79571. }, e.prototype.eachRendered = function(n) {
  79572. Nf(this._progressiveEls || this.group, n);
  79573. }, e.prototype._renderOnCartesianAndCalendar = function(n, r, i, a, o) {
  79574. var s = n.coordinateSystem, l = yp(s, "cartesian2d"), u, c, f, d;
  79575. if (l) {
  79576. var h = s.getAxis("x"), p = s.getAxis("y");
  79577. if (process.env.NODE_ENV !== "production") {
  79578. if (!(h.type === "category" && p.type === "category"))
  79579. throw new Error("Heatmap on cartesian must have two category axes");
  79580. if (!(h.onBand && p.onBand))
  79581. throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");
  79582. }
  79583. u = h.getBandWidth() + 0.5, c = p.getBandWidth() + 0.5, f = h.scale.getExtent(), d = p.scale.getExtent();
  79584. }
  79585. for (var v = this.group, g = n.getData(), m = n.getModel(["emphasis", "itemStyle"]).getItemStyle(), y = n.getModel(["blur", "itemStyle"]).getItemStyle(), _ = n.getModel(["select", "itemStyle"]).getItemStyle(), O = n.get(["itemStyle", "borderRadius"]), S = ei(n), x = n.getModel("emphasis"), C = x.get("focus"), P = x.get("blurScope"), $ = x.get("disabled"), T = l ? [g.mapDimension("x"), g.mapDimension("y"), g.mapDimension("value")] : [g.mapDimension("time"), g.mapDimension("value")], E = i; E < a; E++) {
  79586. var M = void 0, R = g.getItemVisual(E, "style");
  79587. if (l) {
  79588. var N = g.get(T[0], E), I = g.get(T[1], E);
  79589. if (isNaN(g.get(T[2], E)) || isNaN(N) || isNaN(I) || N < f[0] || N > f[1] || I < d[0] || I > d[1])
  79590. continue;
  79591. var B = s.dataToPoint([N, I]);
  79592. M = new Zt({
  79593. shape: {
  79594. x: B[0] - u / 2,
  79595. y: B[1] - c / 2,
  79596. width: u,
  79597. height: c
  79598. },
  79599. style: R
  79600. });
  79601. } else {
  79602. if (isNaN(g.get(T[1], E)))
  79603. continue;
  79604. M = new Zt({
  79605. z2: 1,
  79606. shape: s.dataToRect([g.get(T[0], E)]).contentShape,
  79607. style: R
  79608. });
  79609. }
  79610. if (g.hasItemOption) {
  79611. var Q = g.getItemModel(E), W = Q.getModel("emphasis");
  79612. m = W.getModel("itemStyle").getItemStyle(), y = Q.getModel(["blur", "itemStyle"]).getItemStyle(), _ = Q.getModel(["select", "itemStyle"]).getItemStyle(), O = Q.get(["itemStyle", "borderRadius"]), C = W.get("focus"), P = W.get("blurScope"), $ = W.get("disabled"), S = ei(Q);
  79613. }
  79614. M.shape.r = O;
  79615. var H = n.getRawValue(E), U = "-";
  79616. H && H[2] != null && (U = H[2] + ""), Ei(M, S, {
  79617. labelFetcher: n,
  79618. labelDataIndex: E,
  79619. defaultOpacity: R.opacity,
  79620. defaultText: U
  79621. }), M.ensureState("emphasis").style = m, M.ensureState("blur").style = y, M.ensureState("select").style = _, ur(M, C, P, $), M.incremental = o, o && (M.states.emphasis.hoverLayer = !0), v.add(M), g.setItemGraphicEl(E, M), this._progressiveEls && this._progressiveEls.push(M);
  79622. }
  79623. }, e.prototype._renderOnGeo = function(n, r, i, a) {
  79624. var o = i.targetVisuals.inRange, s = i.targetVisuals.outOfRange, l = r.getData(), u = this._hmLayer || this._hmLayer || new cot();
  79625. u.blurSize = r.get("blurSize"), u.pointSize = r.get("pointSize"), u.minOpacity = r.get("minOpacity"), u.maxOpacity = r.get("maxOpacity");
  79626. var c = n.getViewRect().clone(), f = n.getRoamTransform();
  79627. c.applyTransform(f);
  79628. var d = Math.max(c.x, 0), h = Math.max(c.y, 0), p = Math.min(c.width + c.x, a.getWidth()), v = Math.min(c.height + c.y, a.getHeight()), g = p - d, m = v - h, y = [l.mapDimension("lng"), l.mapDimension("lat"), l.mapDimension("value")], _ = l.mapArray(y, function(C, P, $) {
  79629. var T = n.dataToPoint([C, P]);
  79630. return T[0] -= d, T[1] -= h, T.push($), T;
  79631. }), O = i.getExtent(), S = i.type === "visualMap.continuous" ? dot(O, i.option.range) : fot(O, i.getPieceList(), i.option.selected);
  79632. u.update(_, g, m, o.color.getNormalizer(), {
  79633. inRange: o.color.getColorMapper(),
  79634. outOfRange: s.color.getColorMapper()
  79635. }, S);
  79636. var x = new ci({
  79637. style: {
  79638. width: g,
  79639. height: m,
  79640. x: d,
  79641. y: h,
  79642. image: u.canvas
  79643. },
  79644. silent: !0
  79645. });
  79646. this.group.add(x);
  79647. }, e.type = "heatmap", e;
  79648. }(_n)
  79649. ), pot = (
  79650. /** @class */
  79651. function(t) {
  79652. le(e, t);
  79653. function e() {
  79654. var n = t !== null && t.apply(this, arguments) || this;
  79655. return n.type = e.type, n;
  79656. }
  79657. return e.prototype.getInitialData = function(n, r) {
  79658. return Yl(null, this, {
  79659. generateCoord: "value"
  79660. });
  79661. }, e.prototype.preventIncremental = function() {
  79662. var n = gp.get(this.get("coordinateSystem"));
  79663. if (n && n.dimensions)
  79664. return n.dimensions[0] === "lng" && n.dimensions[1] === "lat";
  79665. }, e.type = "series.heatmap", e.dependencies = ["grid", "geo", "calendar"], e.defaultOption = {
  79666. coordinateSystem: "cartesian2d",
  79667. // zlevel: 0,
  79668. z: 2,
  79669. // Cartesian coordinate system
  79670. // xAxisIndex: 0,
  79671. // yAxisIndex: 0,
  79672. // Geo coordinate system
  79673. geoIndex: 0,
  79674. blurSize: 30,
  79675. pointSize: 20,
  79676. maxOpacity: 1,
  79677. minOpacity: 0,
  79678. select: {
  79679. itemStyle: {
  79680. borderColor: "#212121"
  79681. }
  79682. }
  79683. }, e;
  79684. }(Tn)
  79685. );
  79686. function vot(t) {
  79687. t.registerChartView(hot), t.registerSeriesModel(pot);
  79688. }
  79689. var got = ["itemStyle", "borderWidth"], rX = [{
  79690. xy: "x",
  79691. wh: "width",
  79692. index: 0,
  79693. posDesc: ["left", "right"]
  79694. }, {
  79695. xy: "y",
  79696. wh: "height",
  79697. index: 1,
  79698. posDesc: ["top", "bottom"]
  79699. }], wI = new ic(), mot = (
  79700. /** @class */
  79701. function(t) {
  79702. le(e, t);
  79703. function e() {
  79704. var n = t !== null && t.apply(this, arguments) || this;
  79705. return n.type = e.type, n;
  79706. }
  79707. return e.prototype.render = function(n, r, i) {
  79708. var a = this.group, o = n.getData(), s = this._data, l = n.coordinateSystem, u = l.getBaseAxis(), c = u.isHorizontal(), f = l.master.getRect(), d = {
  79709. ecSize: {
  79710. width: i.getWidth(),
  79711. height: i.getHeight()
  79712. },
  79713. seriesModel: n,
  79714. coordSys: l,
  79715. coordSysExtent: [[f.x, f.x + f.width], [f.y, f.y + f.height]],
  79716. isHorizontal: c,
  79717. valueDim: rX[+c],
  79718. categoryDim: rX[1 - +c]
  79719. };
  79720. o.diff(s).add(function(p) {
  79721. if (o.hasValue(p)) {
  79722. var v = aX(o, p), g = iX(o, p, v, d), m = oX(o, d, g);
  79723. o.setItemGraphicEl(p, m), a.add(m), lX(m, d, g);
  79724. }
  79725. }).update(function(p, v) {
  79726. var g = s.getItemGraphicEl(v);
  79727. if (!o.hasValue(p)) {
  79728. a.remove(g);
  79729. return;
  79730. }
  79731. var m = aX(o, p), y = iX(o, p, m, d), _ = zde(o, y);
  79732. g && _ !== g.__pictorialShapeStr && (a.remove(g), o.setItemGraphicEl(p, null), g = null), g ? wot(g, d, y) : g = oX(o, d, y, !0), o.setItemGraphicEl(p, g), g.__pictorialSymbolMeta = y, a.add(g), lX(g, d, y);
  79733. }).remove(function(p) {
  79734. var v = s.getItemGraphicEl(p);
  79735. v && sX(s, p, v.__pictorialSymbolMeta.animationModel, v);
  79736. }).execute();
  79737. var h = n.get("clip", !0) ? b1(n.coordinateSystem, !1, n) : null;
  79738. return h ? a.setClipPath(h) : a.removeClipPath(), this._data = o, this.group;
  79739. }, e.prototype.remove = function(n, r) {
  79740. var i = this.group, a = this._data;
  79741. n.get("animation") ? a && a.eachItemGraphicEl(function(o) {
  79742. sX(a, ft(o).dataIndex, n, o);
  79743. }) : i.removeAll();
  79744. }, e.type = "pictorialBar", e;
  79745. }(_n)
  79746. );
  79747. function iX(t, e, n, r) {
  79748. var i = t.getItemLayout(e), a = n.get("symbolRepeat"), o = n.get("symbolClip"), s = n.get("symbolPosition") || "start", l = n.get("symbolRotate"), u = (l || 0) * Math.PI / 180 || 0, c = n.get("symbolPatternSize") || 2, f = n.isAnimationEnabled(), d = {
  79749. dataIndex: e,
  79750. layout: i,
  79751. itemModel: n,
  79752. symbolType: t.getItemVisual(e, "symbol") || "circle",
  79753. style: t.getItemVisual(e, "style"),
  79754. symbolClip: o,
  79755. symbolRepeat: a,
  79756. symbolRepeatDirection: n.get("symbolRepeatDirection"),
  79757. symbolPatternSize: c,
  79758. rotation: u,
  79759. animationModel: f ? n : null,
  79760. hoverScale: f && n.get(["emphasis", "scale"]),
  79761. z2: n.getShallow("z", !0) || 0
  79762. };
  79763. yot(n, a, i, r, d), bot(t, e, i, a, o, d.boundingLength, d.pxSign, c, r, d), _ot(n, d.symbolScale, u, r, d);
  79764. var h = d.symbolSize, p = mp(n.get("symbolOffset"), h);
  79765. return Oot(n, h, i, a, o, p, s, d.valueLineWidth, d.boundingLength, d.repeatCutLength, r, d), d;
  79766. }
  79767. function yot(t, e, n, r, i) {
  79768. var a = r.valueDim, o = t.get("symbolBoundingData"), s = r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()), l = s.toGlobalCoord(s.dataToCoord(0)), u = 1 - +(n[a.wh] <= 0), c;
  79769. if (Se(o)) {
  79770. var f = [CI(s, o[0]) - l, CI(s, o[1]) - l];
  79771. f[1] < f[0] && f.reverse(), c = f[u];
  79772. } else o != null ? c = CI(s, o) - l : e ? c = r.coordSysExtent[a.index][u] - l : c = n[a.wh];
  79773. i.boundingLength = c, e && (i.repeatCutLength = n[a.wh]), i.pxSign = c > 0 ? 1 : -1;
  79774. }
  79775. function CI(t, e) {
  79776. return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)));
  79777. }
  79778. function bot(t, e, n, r, i, a, o, s, l, u) {
  79779. var c = l.valueDim, f = l.categoryDim, d = Math.abs(n[f.wh]), h = t.getItemVisual(e, "symbolSize"), p;
  79780. Se(h) ? p = h.slice() : h == null ? p = ["100%", "100%"] : p = [h, h], p[f.index] = ze(p[f.index], d), p[c.index] = ze(p[c.index], r ? d : Math.abs(a)), u.symbolSize = p;
  79781. var v = u.symbolScale = [p[0] / s, p[1] / s];
  79782. v[c.index] *= (l.isHorizontal ? -1 : 1) * o;
  79783. }
  79784. function _ot(t, e, n, r, i) {
  79785. var a = t.get(got) || 0;
  79786. a && (wI.attr({
  79787. scaleX: e[0],
  79788. scaleY: e[1],
  79789. rotation: n
  79790. }), wI.updateTransform(), a /= wI.getLineScale(), a *= e[r.valueDim.index]), i.valueLineWidth = a || 0;
  79791. }
  79792. function Oot(t, e, n, r, i, a, o, s, l, u, c, f) {
  79793. var d = c.categoryDim, h = c.valueDim, p = f.pxSign, v = Math.max(e[h.index] + s, 0), g = v;
  79794. if (r) {
  79795. var m = Math.abs(l), y = Or(t.get("symbolMargin"), "15%") + "", _ = !1;
  79796. y.lastIndexOf("!") === y.length - 1 && (_ = !0, y = y.slice(0, y.length - 1));
  79797. var O = ze(y, e[h.index]), S = Math.max(v + O * 2, 0), x = _ ? 0 : O * 2, C = hP(r), P = C ? r : uX((m + x) / S), $ = m - P * v;
  79798. O = $ / 2 / (_ ? P : Math.max(P - 1, 1)), S = v + O * 2, x = _ ? 0 : O * 2, !C && r !== "fixed" && (P = u ? uX((Math.abs(u) + x) / S) : 0), g = P * S - x, f.repeatTimes = P, f.symbolMargin = O;
  79799. }
  79800. var T = p * (g / 2), E = f.pathPosition = [];
  79801. E[d.index] = n[d.wh] / 2, E[h.index] = o === "start" ? T : o === "end" ? l - T : l / 2, a && (E[0] += a[0], E[1] += a[1]);
  79802. var M = f.bundlePosition = [];
  79803. M[d.index] = n[d.xy], M[h.index] = n[h.xy];
  79804. var R = f.barRectShape = _e({}, n);
  79805. R[h.wh] = p * Math.max(Math.abs(n[h.wh]), Math.abs(E[h.index] + T)), R[d.wh] = n[d.wh];
  79806. var N = f.clipShape = {};
  79807. N[d.xy] = -n[d.xy], N[d.wh] = c.ecSize[d.wh], N[h.xy] = 0, N[h.wh] = n[h.wh];
  79808. }
  79809. function Rde(t) {
  79810. var e = t.symbolPatternSize, n = wr(
  79811. // Consider texture img, make a big size.
  79812. t.symbolType,
  79813. -e / 2,
  79814. -e / 2,
  79815. e,
  79816. e
  79817. );
  79818. return n.attr({
  79819. culling: !0
  79820. }), n.type !== "image" && n.setStyle({
  79821. strokeNoScale: !0
  79822. }), n;
  79823. }
  79824. function kde(t, e, n, r) {
  79825. var i = t.__pictorialBundle, a = n.symbolSize, o = n.valueLineWidth, s = n.pathPosition, l = e.valueDim, u = n.repeatTimes || 0, c = 0, f = a[e.valueDim.index] + o + n.symbolMargin * 2;
  79826. for (o6(t, function(v) {
  79827. v.__pictorialAnimationIndex = c, v.__pictorialRepeatTimes = u, c < u ? tg(v, null, p(c), n, r) : tg(v, null, {
  79828. scaleX: 0,
  79829. scaleY: 0
  79830. }, n, r, function() {
  79831. i.remove(v);
  79832. }), c++;
  79833. }); c < u; c++) {
  79834. var d = Rde(n);
  79835. d.__pictorialAnimationIndex = c, d.__pictorialRepeatTimes = u, i.add(d);
  79836. var h = p(c);
  79837. tg(d, {
  79838. x: h.x,
  79839. y: h.y,
  79840. scaleX: 0,
  79841. scaleY: 0
  79842. }, {
  79843. scaleX: h.scaleX,
  79844. scaleY: h.scaleY,
  79845. rotation: h.rotation
  79846. }, n, r);
  79847. }
  79848. function p(v) {
  79849. var g = s.slice(), m = n.pxSign, y = v;
  79850. return (n.symbolRepeatDirection === "start" ? m > 0 : m < 0) && (y = u - 1 - v), g[l.index] = f * (y - u / 2 + 0.5) + s[l.index], {
  79851. x: g[0],
  79852. y: g[1],
  79853. scaleX: n.symbolScale[0],
  79854. scaleY: n.symbolScale[1],
  79855. rotation: n.rotation
  79856. };
  79857. }
  79858. }
  79859. function Lde(t, e, n, r) {
  79860. var i = t.__pictorialBundle, a = t.__pictorialMainPath;
  79861. a ? tg(a, null, {
  79862. x: n.pathPosition[0],
  79863. y: n.pathPosition[1],
  79864. scaleX: n.symbolScale[0],
  79865. scaleY: n.symbolScale[1],
  79866. rotation: n.rotation
  79867. }, n, r) : (a = t.__pictorialMainPath = Rde(n), i.add(a), tg(a, {
  79868. x: n.pathPosition[0],
  79869. y: n.pathPosition[1],
  79870. scaleX: 0,
  79871. scaleY: 0,
  79872. rotation: n.rotation
  79873. }, {
  79874. scaleX: n.symbolScale[0],
  79875. scaleY: n.symbolScale[1]
  79876. }, n, r));
  79877. }
  79878. function Nde(t, e, n) {
  79879. var r = _e({}, e.barRectShape), i = t.__pictorialBarRect;
  79880. i ? tg(i, null, {
  79881. shape: r
  79882. }, e, n) : (i = t.__pictorialBarRect = new Zt({
  79883. z2: 2,
  79884. shape: r,
  79885. silent: !0,
  79886. style: {
  79887. stroke: "transparent",
  79888. fill: "transparent",
  79889. lineWidth: 0
  79890. }
  79891. }), i.disableMorphing = !0, t.add(i));
  79892. }
  79893. function Bde(t, e, n, r) {
  79894. if (n.symbolClip) {
  79895. var i = t.__pictorialClipPath, a = _e({}, n.clipShape), o = e.valueDim, s = n.animationModel, l = n.dataIndex;
  79896. if (i)
  79897. tn(i, {
  79898. shape: a
  79899. }, s, l);
  79900. else {
  79901. a[o.wh] = 0, i = new Zt({
  79902. shape: a
  79903. }), t.__pictorialBundle.setClipPath(i), t.__pictorialClipPath = i;
  79904. var u = {};
  79905. u[o.wh] = n.clipShape[o.wh], hp[r ? "updateProps" : "initProps"](i, {
  79906. shape: u
  79907. }, s, l);
  79908. }
  79909. }
  79910. }
  79911. function aX(t, e) {
  79912. var n = t.getItemModel(e);
  79913. return n.getAnimationDelayParams = Sot, n.isAnimationEnabled = xot, n;
  79914. }
  79915. function Sot(t) {
  79916. return {
  79917. index: t.__pictorialAnimationIndex,
  79918. count: t.__pictorialRepeatTimes
  79919. };
  79920. }
  79921. function xot() {
  79922. return this.parentModel.isAnimationEnabled() && !!this.getShallow("animation");
  79923. }
  79924. function oX(t, e, n, r) {
  79925. var i = new ct(), a = new ct();
  79926. return i.add(a), i.__pictorialBundle = a, a.x = n.bundlePosition[0], a.y = n.bundlePosition[1], n.symbolRepeat ? kde(i, e, n) : Lde(i, e, n), Nde(i, n, r), Bde(i, e, n, r), i.__pictorialShapeStr = zde(t, n), i.__pictorialSymbolMeta = n, i;
  79927. }
  79928. function wot(t, e, n) {
  79929. var r = n.animationModel, i = n.dataIndex, a = t.__pictorialBundle;
  79930. tn(a, {
  79931. x: n.bundlePosition[0],
  79932. y: n.bundlePosition[1]
  79933. }, r, i), n.symbolRepeat ? kde(t, e, n, !0) : Lde(t, e, n, !0), Nde(t, n, !0), Bde(t, e, n, !0);
  79934. }
  79935. function sX(t, e, n, r) {
  79936. var i = r.__pictorialBarRect;
  79937. i && i.removeTextContent();
  79938. var a = [];
  79939. o6(r, function(o) {
  79940. a.push(o);
  79941. }), r.__pictorialMainPath && a.push(r.__pictorialMainPath), r.__pictorialClipPath && (n = null), F(a, function(o) {
  79942. _f(o, {
  79943. scaleX: 0,
  79944. scaleY: 0
  79945. }, n, e, function() {
  79946. r.parent && r.parent.remove(r);
  79947. });
  79948. }), t.setItemGraphicEl(e, null);
  79949. }
  79950. function zde(t, e) {
  79951. return [t.getItemVisual(e.dataIndex, "symbol") || "none", !!e.symbolRepeat, !!e.symbolClip].join(":");
  79952. }
  79953. function o6(t, e, n) {
  79954. F(t.__pictorialBundle.children(), function(r) {
  79955. r !== t.__pictorialBarRect && e.call(n, r);
  79956. });
  79957. }
  79958. function tg(t, e, n, r, i, a) {
  79959. e && t.attr(e), r.symbolClip && !i ? n && t.attr(n) : n && hp[i ? "updateProps" : "initProps"](t, n, r.animationModel, r.dataIndex, a);
  79960. }
  79961. function lX(t, e, n) {
  79962. var r = n.dataIndex, i = n.itemModel, a = i.getModel("emphasis"), o = a.getModel("itemStyle").getItemStyle(), s = i.getModel(["blur", "itemStyle"]).getItemStyle(), l = i.getModel(["select", "itemStyle"]).getItemStyle(), u = i.getShallow("cursor"), c = a.get("focus"), f = a.get("blurScope"), d = a.get("scale");
  79963. o6(t, function(v) {
  79964. if (v instanceof ci) {
  79965. var g = v.style;
  79966. v.useStyle(_e({
  79967. // TODO other properties like dx, dy ?
  79968. image: g.image,
  79969. x: g.x,
  79970. y: g.y,
  79971. width: g.width,
  79972. height: g.height
  79973. }, n.style));
  79974. } else
  79975. v.useStyle(n.style);
  79976. var m = v.ensureState("emphasis");
  79977. m.style = o, d && (m.scaleX = v.scaleX * 1.1, m.scaleY = v.scaleY * 1.1), v.ensureState("blur").style = s, v.ensureState("select").style = l, u && (v.cursor = u), v.z2 = n.z2;
  79978. });
  79979. var h = e.valueDim.posDesc[+(n.boundingLength > 0)], p = t.__pictorialBarRect;
  79980. p.ignoreClip = !0, Ei(p, ei(i), {
  79981. labelFetcher: e.seriesModel,
  79982. labelDataIndex: r,
  79983. defaultText: jg(e.seriesModel.getData(), r),
  79984. inheritColor: n.style.fill,
  79985. defaultOpacity: n.style.opacity,
  79986. defaultOutsidePosition: h
  79987. }), ur(t, c, f, a.get("disabled"));
  79988. }
  79989. function uX(t) {
  79990. var e = Math.round(t);
  79991. return Math.abs(t - e) < 1e-4 ? e : Math.ceil(t);
  79992. }
  79993. var Cot = (
  79994. /** @class */
  79995. function(t) {
  79996. le(e, t);
  79997. function e() {
  79998. var n = t !== null && t.apply(this, arguments) || this;
  79999. return n.type = e.type, n.hasSymbolVisual = !0, n.defaultSymbol = "roundRect", n;
  80000. }
  80001. return e.prototype.getInitialData = function(n) {
  80002. return n.stack = null, t.prototype.getInitialData.apply(this, arguments);
  80003. }, e.type = "series.pictorialBar", e.dependencies = ["grid"], e.defaultOption = Bf(a_.defaultOption, {
  80004. symbol: "circle",
  80005. symbolSize: null,
  80006. symbolRotate: null,
  80007. symbolPosition: null,
  80008. symbolOffset: null,
  80009. symbolMargin: null,
  80010. symbolRepeat: !1,
  80011. symbolRepeatDirection: "end",
  80012. symbolClip: !1,
  80013. symbolBoundingData: null,
  80014. symbolPatternSize: 400,
  80015. barGap: "-100%",
  80016. // Pictorial bar do not clip by default because in many cases
  80017. // xAxis and yAxis are not displayed and it's expected not to clip
  80018. clip: !1,
  80019. // z can be set in data item, which is z2 actually.
  80020. // Disable progressive
  80021. progressive: 0,
  80022. emphasis: {
  80023. // By default pictorialBar do not hover scale. Hover scale is not suitable
  80024. // for the case that both has foreground and background.
  80025. scale: !1
  80026. },
  80027. select: {
  80028. itemStyle: {
  80029. borderColor: "#212121"
  80030. }
  80031. }
  80032. }), e;
  80033. }(a_)
  80034. );
  80035. function Tot(t) {
  80036. t.registerChartView(mot), t.registerSeriesModel(Cot), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, vt(Oce, "pictorialBar")), t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, Sce("pictorialBar"));
  80037. }
  80038. var Pot = (
  80039. /** @class */
  80040. function(t) {
  80041. le(e, t);
  80042. function e() {
  80043. var n = t !== null && t.apply(this, arguments) || this;
  80044. return n.type = e.type, n._layers = [], n;
  80045. }
  80046. return e.prototype.render = function(n, r, i) {
  80047. var a = n.getData(), o = this, s = this.group, l = n.getLayerSeries(), u = a.getLayout("layoutInfo"), c = u.rect, f = u.boundaryGap;
  80048. s.x = 0, s.y = c.y + f[0];
  80049. function d(g) {
  80050. return g.name;
  80051. }
  80052. var h = new Qu(this._layersSeries || [], l, d, d), p = [];
  80053. h.add(We(v, this, "add")).update(We(v, this, "update")).remove(We(v, this, "remove")).execute();
  80054. function v(g, m, y) {
  80055. var _ = o._layers;
  80056. if (g === "remove") {
  80057. s.remove(_[m]);
  80058. return;
  80059. }
  80060. for (var O = [], S = [], x, C = l[m].indices, P = 0; P < C.length; P++) {
  80061. var $ = a.getItemLayout(C[P]), T = $.x, E = $.y0, M = $.y;
  80062. O.push(T, E), S.push(T, E + M), x = a.getItemVisual(C[P], "style");
  80063. }
  80064. var R, N = a.getItemLayout(C[0]), I = n.getModel("label"), B = I.get("margin"), Q = n.getModel("emphasis");
  80065. if (g === "add") {
  80066. var W = p[m] = new ct();
  80067. R = new cfe({
  80068. shape: {
  80069. points: O,
  80070. stackedOnPoints: S,
  80071. smooth: 0.4,
  80072. stackedOnSmooth: 0.4,
  80073. smoothConstraint: !1
  80074. },
  80075. z2: 0
  80076. }), W.add(R), s.add(W), n.isAnimationEnabled() && R.setClipPath($ot(R.getBoundingRect(), n, function() {
  80077. R.removeClipPath();
  80078. }));
  80079. } else {
  80080. var W = _[y];
  80081. R = W.childAt(0), s.add(W), p[m] = W, tn(R, {
  80082. shape: {
  80083. points: O,
  80084. stackedOnPoints: S
  80085. }
  80086. }, n), Zs(R);
  80087. }
  80088. Ei(R, ei(n), {
  80089. labelDataIndex: C[P - 1],
  80090. defaultText: a.getName(C[P - 1]),
  80091. inheritColor: x.fill
  80092. }, {
  80093. normal: {
  80094. verticalAlign: "middle"
  80095. // align: 'right'
  80096. }
  80097. }), R.setTextConfig({
  80098. position: null,
  80099. local: !0
  80100. });
  80101. var H = R.getTextContent();
  80102. H && (H.x = N.x - B, H.y = N.y0 + N.y / 2), R.useStyle(x), a.setItemGraphicEl(m, R), Ai(R, n), ur(R, Q.get("focus"), Q.get("blurScope"), Q.get("disabled"));
  80103. }
  80104. this._layersSeries = l, this._layers = p;
  80105. }, e.type = "themeRiver", e;
  80106. }(_n)
  80107. );
  80108. function $ot(t, e, n) {
  80109. var r = new Zt({
  80110. shape: {
  80111. x: t.x - 10,
  80112. y: t.y - 10,
  80113. width: 0,
  80114. height: t.height + 20
  80115. }
  80116. });
  80117. return Vn(r, {
  80118. shape: {
  80119. x: t.x - 50,
  80120. width: t.width + 100,
  80121. height: t.height + 20
  80122. }
  80123. }, e, n), r;
  80124. }
  80125. var TI = 2, Aot = (
  80126. /** @class */
  80127. function(t) {
  80128. le(e, t);
  80129. function e() {
  80130. var n = t !== null && t.apply(this, arguments) || this;
  80131. return n.type = e.type, n;
  80132. }
  80133. return e.prototype.init = function(n) {
  80134. t.prototype.init.apply(this, arguments), this.legendVisualProvider = new S1(We(this.getData, this), We(this.getRawData, this));
  80135. }, e.prototype.fixData = function(n) {
  80136. var r = n.length, i = {}, a = xk(n, function(d) {
  80137. return i.hasOwnProperty(d[0] + "") || (i[d[0] + ""] = -1), d[2];
  80138. }), o = [];
  80139. a.buckets.each(function(d, h) {
  80140. o.push({
  80141. name: h,
  80142. dataList: d
  80143. });
  80144. });
  80145. for (var s = o.length, l = 0; l < s; ++l) {
  80146. for (var u = o[l].name, c = 0; c < o[l].dataList.length; ++c) {
  80147. var f = o[l].dataList[c][0] + "";
  80148. i[f] = l;
  80149. }
  80150. for (var f in i)
  80151. i.hasOwnProperty(f) && i[f] !== l && (i[f] = l, n[r] = [f, 0, u], r++);
  80152. }
  80153. return n;
  80154. }, e.prototype.getInitialData = function(n, r) {
  80155. for (var i = this.getReferringComponents("singleAxis", Er).models[0], a = i.get("type"), o = yn(n.data, function(p) {
  80156. return p[2] !== void 0;
  80157. }), s = this.fixData(o || []), l = [], u = this.nameMap = Ze(), c = 0, f = 0; f < s.length; ++f)
  80158. l.push(s[f][TI]), u.get(s[f][TI]) || (u.set(s[f][TI], c), c++);
  80159. var d = Mm(s, {
  80160. coordDimensions: ["single"],
  80161. dimensionsDefine: [{
  80162. name: "time",
  80163. type: YC(a)
  80164. }, {
  80165. name: "value",
  80166. type: "float"
  80167. }, {
  80168. name: "name",
  80169. type: "ordinal"
  80170. }],
  80171. encodeDefine: {
  80172. single: 0,
  80173. value: 1,
  80174. itemName: 2
  80175. }
  80176. }).dimensions, h = new Wi(d, this);
  80177. return h.initData(s), h;
  80178. }, e.prototype.getLayerSeries = function() {
  80179. for (var n = this.getData(), r = n.count(), i = [], a = 0; a < r; ++a)
  80180. i[a] = a;
  80181. var o = n.mapDimension("single"), s = xk(i, function(u) {
  80182. return n.get("name", u);
  80183. }), l = [];
  80184. return s.buckets.each(function(u, c) {
  80185. u.sort(function(f, d) {
  80186. return n.get(o, f) - n.get(o, d);
  80187. }), l.push({
  80188. name: c,
  80189. indices: u
  80190. });
  80191. }), l;
  80192. }, e.prototype.getAxisTooltipData = function(n, r, i) {
  80193. Se(n) || (n = n ? [n] : []);
  80194. for (var a = this.getData(), o = this.getLayerSeries(), s = [], l = o.length, u, c = 0; c < l; ++c) {
  80195. for (var f = Number.MAX_VALUE, d = -1, h = o[c].indices.length, p = 0; p < h; ++p) {
  80196. var v = a.get(n[0], o[c].indices[p]), g = Math.abs(v - r);
  80197. g <= f && (u = v, f = g, d = o[c].indices[p]);
  80198. }
  80199. s.push(d);
  80200. }
  80201. return {
  80202. dataIndices: s,
  80203. nestestValue: u
  80204. };
  80205. }, e.prototype.formatTooltip = function(n, r, i) {
  80206. var a = this.getData(), o = a.getName(n), s = a.get(a.mapDimension("value"), n);
  80207. return ti("nameValue", {
  80208. name: o,
  80209. value: s
  80210. });
  80211. }, e.type = "series.themeRiver", e.dependencies = ["singleAxis"], e.defaultOption = {
  80212. // zlevel: 0,
  80213. z: 2,
  80214. colorBy: "data",
  80215. coordinateSystem: "singleAxis",
  80216. // gap in axis's orthogonal orientation
  80217. boundaryGap: ["10%", "10%"],
  80218. // legendHoverLink: true,
  80219. singleAxisIndex: 0,
  80220. animationEasing: "linear",
  80221. label: {
  80222. margin: 4,
  80223. show: !0,
  80224. position: "left",
  80225. fontSize: 11
  80226. },
  80227. emphasis: {
  80228. label: {
  80229. show: !0
  80230. }
  80231. }
  80232. }, e;
  80233. }(Tn)
  80234. );
  80235. function Eot(t, e) {
  80236. t.eachSeriesByType("themeRiver", function(n) {
  80237. var r = n.getData(), i = n.coordinateSystem, a = {}, o = i.getRect();
  80238. a.rect = o;
  80239. var s = n.get("boundaryGap"), l = i.getAxis();
  80240. if (a.boundaryGap = s, l.orient === "horizontal") {
  80241. s[0] = ze(s[0], o.height), s[1] = ze(s[1], o.height);
  80242. var u = o.height - s[0] - s[1];
  80243. cX(r, n, u);
  80244. } else {
  80245. s[0] = ze(s[0], o.width), s[1] = ze(s[1], o.width);
  80246. var c = o.width - s[0] - s[1];
  80247. cX(r, n, c);
  80248. }
  80249. r.setLayout("layoutInfo", a);
  80250. });
  80251. }
  80252. function cX(t, e, n) {
  80253. if (t.count())
  80254. for (var r = e.coordinateSystem, i = e.getLayerSeries(), a = t.mapDimension("single"), o = t.mapDimension("value"), s = Ce(i, function(g) {
  80255. return Ce(g.indices, function(m) {
  80256. var y = r.dataToPoint(t.get(a, m));
  80257. return y[1] = t.get(o, m), y;
  80258. });
  80259. }), l = Mot(s), u = l.y0, c = n / l.max, f = i.length, d = i[0].indices.length, h, p = 0; p < d; ++p) {
  80260. h = u[p] * c, t.setItemLayout(i[0].indices[p], {
  80261. layerIndex: 0,
  80262. x: s[0][p][0],
  80263. y0: h,
  80264. y: s[0][p][1] * c
  80265. });
  80266. for (var v = 1; v < f; ++v)
  80267. h += s[v - 1][p][1] * c, t.setItemLayout(i[v].indices[p], {
  80268. layerIndex: v,
  80269. x: s[v][p][0],
  80270. y0: h,
  80271. y: s[v][p][1] * c
  80272. });
  80273. }
  80274. }
  80275. function Mot(t) {
  80276. for (var e = t.length, n = t[0].length, r = [], i = [], a = 0, o = 0; o < n; ++o) {
  80277. for (var s = 0, l = 0; l < e; ++l)
  80278. s += t[l][o][1];
  80279. s > a && (a = s), r.push(s);
  80280. }
  80281. for (var u = 0; u < n; ++u)
  80282. i[u] = (a - r[u]) / 2;
  80283. a = 0;
  80284. for (var c = 0; c < n; ++c) {
  80285. var f = r[c] + i[c];
  80286. f > a && (a = f);
  80287. }
  80288. return {
  80289. y0: i,
  80290. max: a
  80291. };
  80292. }
  80293. function Iot(t) {
  80294. t.registerChartView(Pot), t.registerSeriesModel(Aot), t.registerLayout(Eot), t.registerProcessor(O1("themeRiver"));
  80295. }
  80296. var Dot = 2, Rot = 4, fX = (
  80297. /** @class */
  80298. function(t) {
  80299. le(e, t);
  80300. function e(n, r, i, a) {
  80301. var o = t.call(this) || this;
  80302. o.z2 = Dot, o.textConfig = {
  80303. inside: !0
  80304. }, ft(o).seriesIndex = r.seriesIndex;
  80305. var s = new jt({
  80306. z2: Rot,
  80307. silent: n.getModel().get(["label", "silent"])
  80308. });
  80309. return o.setTextContent(s), o.updateData(!0, n, r, i, a), o;
  80310. }
  80311. return e.prototype.updateData = function(n, r, i, a, o) {
  80312. this.node = r, r.piece = this, i = i || this._seriesModel, a = a || this._ecModel;
  80313. var s = this;
  80314. ft(s).dataIndex = r.dataIndex;
  80315. var l = r.getModel(), u = l.getModel("emphasis"), c = r.getLayout(), f = _e({}, c);
  80316. f.label = null;
  80317. var d = r.getVisual("style");
  80318. d.lineJoin = "bevel";
  80319. var h = r.getVisual("decal");
  80320. h && (d.decal = Gg(h, o));
  80321. var p = ch(l.getModel("itemStyle"), f, !0);
  80322. _e(f, p), F(da, function(y) {
  80323. var _ = s.ensureState(y), O = l.getModel([y, "itemStyle"]);
  80324. _.style = O.getItemStyle();
  80325. var S = ch(O, f);
  80326. S && (_.shape = S);
  80327. }), n ? (s.setShape(f), s.shape.r = c.r0, Vn(s, {
  80328. shape: {
  80329. r: c.r
  80330. }
  80331. }, i, r.dataIndex)) : (tn(s, {
  80332. shape: f
  80333. }, i), Zs(s)), s.useStyle(d), this._updateLabel(i);
  80334. var v = l.getShallow("cursor");
  80335. v && s.attr("cursor", v), this._seriesModel = i || this._seriesModel, this._ecModel = a || this._ecModel;
  80336. var g = u.get("focus"), m = g === "ancestor" ? r.getAncestorsIndices() : g === "descendant" ? r.getDescendantIndices() : g;
  80337. ur(this, m, u.get("blurScope"), u.get("disabled"));
  80338. }, e.prototype._updateLabel = function(n) {
  80339. var r = this, i = this.node.getModel(), a = i.getModel("label"), o = this.node.getLayout(), s = o.endAngle - o.startAngle, l = (o.startAngle + o.endAngle) / 2, u = Math.cos(l), c = Math.sin(l), f = this, d = f.getTextContent(), h = this.node.dataIndex, p = a.get("minAngle") / 180 * Math.PI, v = a.get("show") && !(p != null && Math.abs(s) < p);
  80340. d.ignore = !v, F(Ub, function(m) {
  80341. var y = m === "normal" ? i.getModel("label") : i.getModel([m, "label"]), _ = m === "normal", O = _ ? d : d.ensureState(m), S = n.getFormattedLabel(h, m);
  80342. _ && (S = S || r.node.name), O.style = Mn(y, {}, null, m !== "normal", !0), S && (O.style.text = S);
  80343. var x = y.get("show");
  80344. x != null && !_ && (O.ignore = !x);
  80345. var C = g(y, "position"), P = _ ? f : f.states[m], $ = P.style.fill;
  80346. P.textConfig = {
  80347. outsideFill: y.get("color") === "inherit" ? $ : null,
  80348. inside: C !== "outside"
  80349. };
  80350. var T, E = g(y, "distance") || 0, M = g(y, "align"), R = g(y, "rotate"), N = Math.PI * 0.5, I = Math.PI * 1.5, B = oo(R === "tangential" ? Math.PI / 2 - l : l), Q = B > N && !Vg(B - N) && B < I;
  80351. C === "outside" ? (T = o.r + E, M = Q ? "right" : "left") : !M || M === "center" ? (s === 2 * Math.PI && o.r0 === 0 ? T = 0 : T = (o.r + o.r0) / 2, M = "center") : M === "left" ? (T = o.r0 + E, M = Q ? "right" : "left") : M === "right" && (T = o.r - E, M = Q ? "left" : "right"), O.style.align = M, O.style.verticalAlign = g(y, "verticalAlign") || "middle", O.x = T * u + o.cx, O.y = T * c + o.cy;
  80352. var W = 0;
  80353. R === "radial" ? W = oo(-l) + (Q ? Math.PI : 0) : R === "tangential" ? W = oo(Math.PI / 2 - l) + (Q ? Math.PI : 0) : Kt(R) && (W = R * Math.PI / 180), O.rotation = oo(W);
  80354. });
  80355. function g(m, y) {
  80356. var _ = m.get(y);
  80357. return _ ?? a.get(y);
  80358. }
  80359. d.dirtyStyle();
  80360. }, e;
  80361. }(ha)
  80362. ), wL = "sunburstRootToNode", dX = "sunburstHighlight", kot = "sunburstUnhighlight";
  80363. function Lot(t) {
  80364. t.registerAction({
  80365. type: wL,
  80366. update: "updateView"
  80367. }, function(e, n) {
  80368. n.eachComponent({
  80369. mainType: "series",
  80370. subType: "sunburst",
  80371. query: e
  80372. }, r);
  80373. function r(i, a) {
  80374. var o = s_(e, [wL], i);
  80375. if (o) {
  80376. var s = i.getViewRoot();
  80377. s && (e.direction = j3(s, o.node) ? "rollUp" : "drillDown"), i.resetViewRoot(o.node);
  80378. }
  80379. }
  80380. }), t.registerAction({
  80381. type: dX,
  80382. update: "none"
  80383. }, function(e, n, r) {
  80384. e = _e({}, e), n.eachComponent({
  80385. mainType: "series",
  80386. subType: "sunburst",
  80387. query: e
  80388. }, i);
  80389. function i(a) {
  80390. var o = s_(e, [dX], a);
  80391. o && (e.dataIndex = o.node.dataIndex);
  80392. }
  80393. process.env.NODE_ENV !== "production" && _r("sunburstHighlight", "highlight"), r.dispatchAction(_e(e, {
  80394. type: "highlight"
  80395. }));
  80396. }), t.registerAction({
  80397. type: kot,
  80398. update: "updateView"
  80399. }, function(e, n, r) {
  80400. e = _e({}, e), process.env.NODE_ENV !== "production" && _r("sunburstUnhighlight", "downplay"), r.dispatchAction(_e(e, {
  80401. type: "downplay"
  80402. }));
  80403. });
  80404. }
  80405. var Not = (
  80406. /** @class */
  80407. function(t) {
  80408. le(e, t);
  80409. function e() {
  80410. var n = t !== null && t.apply(this, arguments) || this;
  80411. return n.type = e.type, n;
  80412. }
  80413. return e.prototype.render = function(n, r, i, a) {
  80414. var o = this;
  80415. this.seriesModel = n, this.api = i, this.ecModel = r;
  80416. var s = n.getData(), l = s.tree.root, u = n.getViewRoot(), c = this.group, f = n.get("renderLabelForZeroData"), d = [];
  80417. u.eachNode(function(y) {
  80418. d.push(y);
  80419. });
  80420. var h = this._oldChildren || [];
  80421. p(d, h), m(l, u), this._initEvents(), this._oldChildren = d;
  80422. function p(y, _) {
  80423. if (y.length === 0 && _.length === 0)
  80424. return;
  80425. new Qu(_, y, O, O).add(S).update(S).remove(vt(S, null)).execute();
  80426. function O(x) {
  80427. return x.getId();
  80428. }
  80429. function S(x, C) {
  80430. var P = x == null ? null : y[x], $ = C == null ? null : _[C];
  80431. v(P, $);
  80432. }
  80433. }
  80434. function v(y, _) {
  80435. if (!f && y && !y.getValue() && (y = null), y !== l && _ !== l) {
  80436. if (_ && _.piece)
  80437. y ? (_.piece.updateData(!1, y, n, r, i), s.setItemGraphicEl(y.dataIndex, _.piece)) : g(_);
  80438. else if (y) {
  80439. var O = new fX(y, n, r, i);
  80440. c.add(O), s.setItemGraphicEl(y.dataIndex, O);
  80441. }
  80442. }
  80443. }
  80444. function g(y) {
  80445. y && y.piece && (c.remove(y.piece), y.piece = null);
  80446. }
  80447. function m(y, _) {
  80448. _.depth > 0 ? (o.virtualPiece ? o.virtualPiece.updateData(!1, y, n, r, i) : (o.virtualPiece = new fX(y, n, r, i), c.add(o.virtualPiece)), _.piece.off("click"), o.virtualPiece.on("click", function(O) {
  80449. o._rootToNode(_.parentNode);
  80450. })) : o.virtualPiece && (c.remove(o.virtualPiece), o.virtualPiece = null);
  80451. }
  80452. }, e.prototype._initEvents = function() {
  80453. var n = this;
  80454. this.group.off("click"), this.group.on("click", function(r) {
  80455. var i = !1, a = n.seriesModel.getViewRoot();
  80456. a.eachNode(function(o) {
  80457. if (!i && o.piece && o.piece === r.target) {
  80458. var s = o.getModel().get("nodeClick");
  80459. if (s === "rootToNode")
  80460. n._rootToNode(o);
  80461. else if (s === "link") {
  80462. var l = o.getModel(), u = l.get("link");
  80463. if (u) {
  80464. var c = l.get("target", !0) || "_blank";
  80465. BC(u, c);
  80466. }
  80467. }
  80468. i = !0;
  80469. }
  80470. });
  80471. });
  80472. }, e.prototype._rootToNode = function(n) {
  80473. n !== this.seriesModel.getViewRoot() && this.api.dispatchAction({
  80474. type: wL,
  80475. from: this.uid,
  80476. seriesId: this.seriesModel.id,
  80477. targetNode: n
  80478. });
  80479. }, e.prototype.containPoint = function(n, r) {
  80480. var i = r.getData(), a = i.getItemLayout(0);
  80481. if (a) {
  80482. var o = n[0] - a.cx, s = n[1] - a.cy, l = Math.sqrt(o * o + s * s);
  80483. return l <= a.r && l >= a.r0;
  80484. }
  80485. }, e.type = "sunburst", e;
  80486. }(_n)
  80487. ), Bot = (
  80488. /** @class */
  80489. function(t) {
  80490. le(e, t);
  80491. function e() {
  80492. var n = t !== null && t.apply(this, arguments) || this;
  80493. return n.type = e.type, n.ignoreStyleOnData = !0, n;
  80494. }
  80495. return e.prototype.getInitialData = function(n, r) {
  80496. var i = {
  80497. name: n.name,
  80498. children: n.data
  80499. };
  80500. Vde(i);
  80501. var a = this._levelModels = Ce(n.levels || [], function(l) {
  80502. return new wn(l, this, r);
  80503. }, this), o = G3.createTree(i, this, s);
  80504. function s(l) {
  80505. l.wrapMethod("getItemModel", function(u, c) {
  80506. var f = o.getNodeByDataIndex(c), d = a[f.depth];
  80507. return d && (u.parentModel = d), u;
  80508. });
  80509. }
  80510. return o.data;
  80511. }, e.prototype.optionUpdated = function() {
  80512. this.resetViewRoot();
  80513. }, e.prototype.getDataParams = function(n) {
  80514. var r = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(n);
  80515. return r.treePathInfo = GP(i, this), r;
  80516. }, e.prototype.getLevelModel = function(n) {
  80517. return this._levelModels && this._levelModels[n.depth];
  80518. }, e.prototype.getViewRoot = function() {
  80519. return this._viewRoot;
  80520. }, e.prototype.resetViewRoot = function(n) {
  80521. n ? this._viewRoot = n : n = this._viewRoot;
  80522. var r = this.getRawData().tree.root;
  80523. (!n || n !== r && !r.contains(n)) && (this._viewRoot = r);
  80524. }, e.prototype.enableAriaDecal = function() {
  80525. Gfe(this);
  80526. }, e.type = "series.sunburst", e.defaultOption = {
  80527. // zlevel: 0,
  80528. z: 2,
  80529. // 默认全局居中
  80530. center: ["50%", "50%"],
  80531. radius: [0, "75%"],
  80532. // 默认顺时针
  80533. clockwise: !0,
  80534. startAngle: 90,
  80535. // 最小角度改为0
  80536. minAngle: 0,
  80537. // If still show when all data zero.
  80538. stillShowZeroSum: !0,
  80539. // 'rootToNode', 'link', or false
  80540. nodeClick: "rootToNode",
  80541. renderLabelForZeroData: !1,
  80542. label: {
  80543. // could be: 'radial', 'tangential', or 'none'
  80544. rotate: "radial",
  80545. show: !0,
  80546. opacity: 1,
  80547. // 'left' is for inner side of inside, and 'right' is for outer
  80548. // side for inside
  80549. align: "center",
  80550. position: "inside",
  80551. distance: 5,
  80552. silent: !0
  80553. },
  80554. itemStyle: {
  80555. borderWidth: 1,
  80556. borderColor: "white",
  80557. borderType: "solid",
  80558. shadowBlur: 0,
  80559. shadowColor: "rgba(0, 0, 0, 0.2)",
  80560. shadowOffsetX: 0,
  80561. shadowOffsetY: 0,
  80562. opacity: 1
  80563. },
  80564. emphasis: {
  80565. focus: "descendant"
  80566. },
  80567. blur: {
  80568. itemStyle: {
  80569. opacity: 0.2
  80570. },
  80571. label: {
  80572. opacity: 0.1
  80573. }
  80574. },
  80575. // Animation type can be expansion, scale.
  80576. animationType: "expansion",
  80577. animationDuration: 1e3,
  80578. animationDurationUpdate: 500,
  80579. data: [],
  80580. /**
  80581. * Sort order.
  80582. *
  80583. * Valid values: 'desc', 'asc', null, or callback function.
  80584. * 'desc' and 'asc' for descend and ascendant order;
  80585. * null for not sorting;
  80586. * example of callback function:
  80587. * function(nodeA, nodeB) {
  80588. * return nodeA.getValue() - nodeB.getValue();
  80589. * }
  80590. */
  80591. sort: "desc"
  80592. }, e;
  80593. }(Tn)
  80594. );
  80595. function Vde(t) {
  80596. var e = 0;
  80597. F(t.children, function(r) {
  80598. Vde(r);
  80599. var i = r.value;
  80600. Se(i) && (i = i[0]), e += i;
  80601. });
  80602. var n = t.value;
  80603. Se(n) && (n = n[0]), (n == null || isNaN(n)) && (n = e), n < 0 && (n = 0), Se(t.value) ? t.value[0] = n : t.value = n;
  80604. }
  80605. var hX = Math.PI / 180;
  80606. function zot(t, e, n) {
  80607. e.eachSeriesByType(t, function(r) {
  80608. var i = r.get("center"), a = r.get("radius");
  80609. Se(a) || (a = [0, a]), Se(i) || (i = [i, i]);
  80610. var o = n.getWidth(), s = n.getHeight(), l = Math.min(o, s), u = ze(i[0], o), c = ze(i[1], s), f = ze(a[0], l / 2), d = ze(a[1], l / 2), h = -r.get("startAngle") * hX, p = r.get("minAngle") * hX, v = r.getData().tree.root, g = r.getViewRoot(), m = g.depth, y = r.get("sort");
  80611. y != null && Fde(g, y);
  80612. var _ = 0;
  80613. F(g.children, function(B) {
  80614. !isNaN(B.getValue()) && _++;
  80615. });
  80616. var O = g.getValue(), S = Math.PI / (O || _) * 2, x = g.depth > 0, C = g.height - (x ? -1 : 1), P = (d - f) / (C || 1), $ = r.get("clockwise"), T = r.get("stillShowZeroSum"), E = $ ? 1 : -1, M = function(B, Q) {
  80617. if (B) {
  80618. var W = Q;
  80619. if (B !== v) {
  80620. var H = B.getValue(), U = O === 0 && T ? S : H * S;
  80621. U < p && (U = p), W = Q + E * U;
  80622. var j = B.depth - m - (x ? -1 : 1), Y = f + P * j, ne = f + P * (j + 1), fe = r.getLevelModel(B);
  80623. if (fe) {
  80624. var ue = fe.get("r0", !0), ye = fe.get("r", !0), se = fe.get("radius", !0);
  80625. se != null && (ue = se[0], ye = se[1]), ue != null && (Y = ze(ue, l / 2)), ye != null && (ne = ze(ye, l / 2));
  80626. }
  80627. B.setLayout({
  80628. angle: U,
  80629. startAngle: Q,
  80630. endAngle: W,
  80631. clockwise: $,
  80632. cx: u,
  80633. cy: c,
  80634. r0: Y,
  80635. r: ne
  80636. });
  80637. }
  80638. if (B.children && B.children.length) {
  80639. var he = 0;
  80640. F(B.children, function(re) {
  80641. he += M(re, Q + he);
  80642. });
  80643. }
  80644. return W - Q;
  80645. }
  80646. };
  80647. if (x) {
  80648. var R = f, N = f + P, I = Math.PI * 2;
  80649. v.setLayout({
  80650. angle: I,
  80651. startAngle: h,
  80652. endAngle: h + I,
  80653. clockwise: $,
  80654. cx: u,
  80655. cy: c,
  80656. r0: R,
  80657. r: N
  80658. });
  80659. }
  80660. M(g, h);
  80661. });
  80662. }
  80663. function Fde(t, e) {
  80664. var n = t.children || [];
  80665. t.children = Vot(n, e), n.length && F(t.children, function(r) {
  80666. Fde(r, e);
  80667. });
  80668. }
  80669. function Vot(t, e) {
  80670. if (qe(e)) {
  80671. var n = Ce(t, function(i, a) {
  80672. var o = i.getValue();
  80673. return {
  80674. params: {
  80675. depth: i.depth,
  80676. height: i.height,
  80677. dataIndex: i.dataIndex,
  80678. getValue: function() {
  80679. return o;
  80680. }
  80681. },
  80682. index: a
  80683. };
  80684. });
  80685. return n.sort(function(i, a) {
  80686. return e(i.params, a.params);
  80687. }), Ce(n, function(i) {
  80688. return t[i.index];
  80689. });
  80690. } else {
  80691. var r = e === "asc";
  80692. return t.sort(function(i, a) {
  80693. var o = (i.getValue() - a.getValue()) * (r ? 1 : -1);
  80694. return o === 0 ? (i.dataIndex - a.dataIndex) * (r ? -1 : 1) : o;
  80695. });
  80696. }
  80697. }
  80698. function Fot(t) {
  80699. var e = {};
  80700. function n(r, i, a) {
  80701. for (var o = r; o && o.depth > 1; )
  80702. o = o.parentNode;
  80703. var s = i.getColorFromPalette(o.name || o.dataIndex + "", e);
  80704. return r.depth > 1 && Ve(s) && (s = CC(s, (r.depth - 1) / (a - 1) * 0.5)), s;
  80705. }
  80706. t.eachSeriesByType("sunburst", function(r) {
  80707. var i = r.getData(), a = i.tree;
  80708. a.eachNode(function(o) {
  80709. var s = o.getModel(), l = s.getModel("itemStyle").getItemStyle();
  80710. l.fill || (l.fill = n(o, r, a.root.height));
  80711. var u = i.ensureUniqueItemVisual(o.dataIndex, "style");
  80712. _e(u, l);
  80713. });
  80714. });
  80715. }
  80716. function Wot(t) {
  80717. t.registerChartView(Not), t.registerSeriesModel(Bot), t.registerLayout(vt(zot, "sunburst")), t.registerProcessor(vt(O1, "sunburst")), t.registerVisual(Fot), Lot(t);
  80718. }
  80719. var pX = {
  80720. color: "fill",
  80721. borderColor: "stroke"
  80722. }, Qot = {
  80723. symbol: 1,
  80724. symbolSize: 1,
  80725. symbolKeepAspect: 1,
  80726. legendIcon: 1,
  80727. visualMeta: 1,
  80728. liftZ: 1,
  80729. decal: 1
  80730. }, Iu = Ut(), Hot = (
  80731. /** @class */
  80732. function(t) {
  80733. le(e, t);
  80734. function e() {
  80735. var n = t !== null && t.apply(this, arguments) || this;
  80736. return n.type = e.type, n;
  80737. }
  80738. return e.prototype.optionUpdated = function() {
  80739. this.currentZLevel = this.get("zlevel", !0), this.currentZ = this.get("z", !0);
  80740. }, e.prototype.getInitialData = function(n, r) {
  80741. return Yl(null, this);
  80742. }, e.prototype.getDataParams = function(n, r, i) {
  80743. var a = t.prototype.getDataParams.call(this, n, r);
  80744. return i && (a.info = Iu(i).info), a;
  80745. }, e.type = "series.custom", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
  80746. coordinateSystem: "cartesian2d",
  80747. // zlevel: 0,
  80748. z: 2,
  80749. legendHoverLink: !0,
  80750. // Custom series will not clip by default.
  80751. // Some case will use custom series to draw label
  80752. // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight
  80753. clip: !1
  80754. // Cartesian coordinate system
  80755. // xAxisIndex: 0,
  80756. // yAxisIndex: 0,
  80757. // Polar coordinate system
  80758. // polarIndex: 0,
  80759. // Geo coordinate system
  80760. // geoIndex: 0,
  80761. }, e;
  80762. }(Tn)
  80763. );
  80764. function Got(t, e) {
  80765. return e = e || [0, 0], Ce(["x", "y"], function(n, r) {
  80766. var i = this.getAxis(n), a = e[r], o = t[r] / 2;
  80767. return i.type === "category" ? i.getBandWidth() : Math.abs(i.dataToCoord(a - o) - i.dataToCoord(a + o));
  80768. }, this);
  80769. }
  80770. function jot(t) {
  80771. var e = t.master.getRect();
  80772. return {
  80773. coordSys: {
  80774. // The name exposed to user is always 'cartesian2d' but not 'grid'.
  80775. type: "cartesian2d",
  80776. x: e.x,
  80777. y: e.y,
  80778. width: e.width,
  80779. height: e.height
  80780. },
  80781. api: {
  80782. coord: function(n) {
  80783. return t.dataToPoint(n);
  80784. },
  80785. size: We(Got, t)
  80786. }
  80787. };
  80788. }
  80789. function Zot(t, e) {
  80790. return e = e || [0, 0], Ce([0, 1], function(n) {
  80791. var r = e[n], i = t[n] / 2, a = [], o = [];
  80792. return a[n] = r - i, o[n] = r + i, a[1 - n] = o[1 - n] = e[1 - n], Math.abs(this.dataToPoint(a)[n] - this.dataToPoint(o)[n]);
  80793. }, this);
  80794. }
  80795. function Uot(t) {
  80796. var e = t.getBoundingRect();
  80797. return {
  80798. coordSys: {
  80799. type: "geo",
  80800. x: e.x,
  80801. y: e.y,
  80802. width: e.width,
  80803. height: e.height,
  80804. zoom: t.getZoom()
  80805. },
  80806. api: {
  80807. coord: function(n) {
  80808. return t.dataToPoint(n);
  80809. },
  80810. size: We(Zot, t)
  80811. }
  80812. };
  80813. }
  80814. function Xot(t, e) {
  80815. var n = this.getAxis(), r = e instanceof Array ? e[0] : e, i = (t instanceof Array ? t[0] : t) / 2;
  80816. return n.type === "category" ? n.getBandWidth() : Math.abs(n.dataToCoord(r - i) - n.dataToCoord(r + i));
  80817. }
  80818. function Yot(t) {
  80819. var e = t.getRect();
  80820. return {
  80821. coordSys: {
  80822. type: "singleAxis",
  80823. x: e.x,
  80824. y: e.y,
  80825. width: e.width,
  80826. height: e.height
  80827. },
  80828. api: {
  80829. coord: function(n) {
  80830. return t.dataToPoint(n);
  80831. },
  80832. size: We(Xot, t)
  80833. }
  80834. };
  80835. }
  80836. function qot(t, e) {
  80837. return e = e || [0, 0], Ce(["Radius", "Angle"], function(n, r) {
  80838. var i = "get" + n + "Axis", a = this[i](), o = e[r], s = t[r] / 2, l = a.type === "category" ? a.getBandWidth() : Math.abs(a.dataToCoord(o - s) - a.dataToCoord(o + s));
  80839. return n === "Angle" && (l = l * Math.PI / 180), l;
  80840. }, this);
  80841. }
  80842. function Kot(t) {
  80843. var e = t.getRadiusAxis(), n = t.getAngleAxis(), r = e.getExtent();
  80844. return r[0] > r[1] && r.reverse(), {
  80845. coordSys: {
  80846. type: "polar",
  80847. cx: t.cx,
  80848. cy: t.cy,
  80849. r: r[1],
  80850. r0: r[0]
  80851. },
  80852. api: {
  80853. coord: function(i) {
  80854. var a = e.dataToRadius(i[0]), o = n.dataToAngle(i[1]), s = t.coordToPoint([a, o]);
  80855. return s.push(a, o * Math.PI / 180), s;
  80856. },
  80857. size: We(qot, t)
  80858. }
  80859. };
  80860. }
  80861. function Jot(t) {
  80862. var e = t.getRect(), n = t.getRangeInfo();
  80863. return {
  80864. coordSys: {
  80865. type: "calendar",
  80866. x: e.x,
  80867. y: e.y,
  80868. width: e.width,
  80869. height: e.height,
  80870. cellWidth: t.getCellWidth(),
  80871. cellHeight: t.getCellHeight(),
  80872. rangeInfo: {
  80873. start: n.start,
  80874. end: n.end,
  80875. weeks: n.weeks,
  80876. dayCount: n.allDay
  80877. }
  80878. },
  80879. api: {
  80880. coord: function(r, i) {
  80881. return t.dataToPoint(r, i);
  80882. }
  80883. }
  80884. };
  80885. }
  80886. var vX = {};
  80887. function Wde(t, e, n, r) {
  80888. return t && (t.legacy || t.legacy !== !1 && !n && !r && e !== "tspan" && (e === "text" || Qe(t, "text")));
  80889. }
  80890. function Qde(t, e, n) {
  80891. var r = t, i, a, o;
  80892. if (e === "text")
  80893. o = r;
  80894. else {
  80895. o = {}, Qe(r, "text") && (o.text = r.text), Qe(r, "rich") && (o.rich = r.rich), Qe(r, "textFill") && (o.fill = r.textFill), Qe(r, "textStroke") && (o.stroke = r.textStroke), Qe(r, "fontFamily") && (o.fontFamily = r.fontFamily), Qe(r, "fontSize") && (o.fontSize = r.fontSize), Qe(r, "fontStyle") && (o.fontStyle = r.fontStyle), Qe(r, "fontWeight") && (o.fontWeight = r.fontWeight), a = {
  80896. type: "text",
  80897. style: o,
  80898. // ec4 does not support rectText trigger.
  80899. // And when text position is different in normal and emphasis
  80900. // => hover text trigger emphasis;
  80901. // => text position changed, leave mouse pointer immediately;
  80902. // That might cause incorrect state.
  80903. silent: !0
  80904. }, i = {};
  80905. var s = Qe(r, "textPosition");
  80906. n ? i.position = s ? r.textPosition : "inside" : s && (i.position = r.textPosition), Qe(r, "textPosition") && (i.position = r.textPosition), Qe(r, "textOffset") && (i.offset = r.textOffset), Qe(r, "textRotation") && (i.rotation = r.textRotation), Qe(r, "textDistance") && (i.distance = r.textDistance);
  80907. }
  80908. return gX(o, t), F(o.rich, function(l) {
  80909. gX(l, l);
  80910. }), {
  80911. textConfig: i,
  80912. textContent: a
  80913. };
  80914. }
  80915. function gX(t, e) {
  80916. e && (e.font = e.textFont || e.font, Qe(e, "textStrokeWidth") && (t.lineWidth = e.textStrokeWidth), Qe(e, "textAlign") && (t.align = e.textAlign), Qe(e, "textVerticalAlign") && (t.verticalAlign = e.textVerticalAlign), Qe(e, "textLineHeight") && (t.lineHeight = e.textLineHeight), Qe(e, "textWidth") && (t.width = e.textWidth), Qe(e, "textHeight") && (t.height = e.textHeight), Qe(e, "textBackgroundColor") && (t.backgroundColor = e.textBackgroundColor), Qe(e, "textPadding") && (t.padding = e.textPadding), Qe(e, "textBorderColor") && (t.borderColor = e.textBorderColor), Qe(e, "textBorderWidth") && (t.borderWidth = e.textBorderWidth), Qe(e, "textBorderRadius") && (t.borderRadius = e.textBorderRadius), Qe(e, "textBoxShadowColor") && (t.shadowColor = e.textBoxShadowColor), Qe(e, "textBoxShadowBlur") && (t.shadowBlur = e.textBoxShadowBlur), Qe(e, "textBoxShadowOffsetX") && (t.shadowOffsetX = e.textBoxShadowOffsetX), Qe(e, "textBoxShadowOffsetY") && (t.shadowOffsetY = e.textBoxShadowOffsetY));
  80917. }
  80918. function mX(t, e, n) {
  80919. var r = t;
  80920. r.textPosition = r.textPosition || n.position || "inside", n.offset != null && (r.textOffset = n.offset), n.rotation != null && (r.textRotation = n.rotation), n.distance != null && (r.textDistance = n.distance);
  80921. var i = r.textPosition.indexOf("inside") >= 0, a = t.fill || "#000";
  80922. yX(r, e);
  80923. var o = r.textFill == null;
  80924. return i ? o && (r.textFill = n.insideFill || "#fff", !r.textStroke && n.insideStroke && (r.textStroke = n.insideStroke), !r.textStroke && (r.textStroke = a), r.textStrokeWidth == null && (r.textStrokeWidth = 2)) : (o && (r.textFill = t.fill || n.outsideFill || "#000"), !r.textStroke && n.outsideStroke && (r.textStroke = n.outsideStroke)), r.text = e.text, r.rich = e.rich, F(e.rich, function(s) {
  80925. yX(s, s);
  80926. }), r;
  80927. }
  80928. function yX(t, e) {
  80929. e && (Qe(e, "fill") && (t.textFill = e.fill), Qe(e, "stroke") && (t.textStroke = e.fill), Qe(e, "lineWidth") && (t.textStrokeWidth = e.lineWidth), Qe(e, "font") && (t.font = e.font), Qe(e, "fontStyle") && (t.fontStyle = e.fontStyle), Qe(e, "fontWeight") && (t.fontWeight = e.fontWeight), Qe(e, "fontSize") && (t.fontSize = e.fontSize), Qe(e, "fontFamily") && (t.fontFamily = e.fontFamily), Qe(e, "align") && (t.textAlign = e.align), Qe(e, "verticalAlign") && (t.textVerticalAlign = e.verticalAlign), Qe(e, "lineHeight") && (t.textLineHeight = e.lineHeight), Qe(e, "width") && (t.textWidth = e.width), Qe(e, "height") && (t.textHeight = e.height), Qe(e, "backgroundColor") && (t.textBackgroundColor = e.backgroundColor), Qe(e, "padding") && (t.textPadding = e.padding), Qe(e, "borderColor") && (t.textBorderColor = e.borderColor), Qe(e, "borderWidth") && (t.textBorderWidth = e.borderWidth), Qe(e, "borderRadius") && (t.textBorderRadius = e.borderRadius), Qe(e, "shadowColor") && (t.textBoxShadowColor = e.shadowColor), Qe(e, "shadowBlur") && (t.textBoxShadowBlur = e.shadowBlur), Qe(e, "shadowOffsetX") && (t.textBoxShadowOffsetX = e.shadowOffsetX), Qe(e, "shadowOffsetY") && (t.textBoxShadowOffsetY = e.shadowOffsetY), Qe(e, "textShadowColor") && (t.textShadowColor = e.textShadowColor), Qe(e, "textShadowBlur") && (t.textShadowBlur = e.textShadowBlur), Qe(e, "textShadowOffsetX") && (t.textShadowOffsetX = e.textShadowOffsetX), Qe(e, "textShadowOffsetY") && (t.textShadowOffsetY = e.textShadowOffsetY));
  80930. }
  80931. function bX(t, e) {
  80932. if (process.env.NODE_ENV !== "production") {
  80933. var n = t + "^_^" + e;
  80934. vX[n] || (console.warn('[ECharts] DEPRECATED: "' + t + '" has been deprecated. ' + e), vX[n] = !0);
  80935. }
  80936. }
  80937. var Hde = {
  80938. position: ["x", "y"],
  80939. scale: ["scaleX", "scaleY"],
  80940. origin: ["originX", "originY"]
  80941. }, _X = kt(Hde), lT = os(Hl, function(t, e) {
  80942. return t[e] = 1, t;
  80943. }, {}), OX = Hl.join(", "), uT = ["", "style", "shape", "extra"], Xg = Ut();
  80944. function s6(t, e, n, r, i) {
  80945. var a = t + "Animation", o = Om(t, r, i) || {}, s = Xg(e).userDuring;
  80946. return o.duration > 0 && (o.during = s ? We(ist, {
  80947. el: e,
  80948. userDuring: s
  80949. }) : null, o.setToFinal = !0, o.scope = t), _e(o, n[a]), o;
  80950. }
  80951. function yw(t, e, n, r) {
  80952. r = r || {};
  80953. var i = r.dataIndex, a = r.isInit, o = r.clearStyle, s = n.isAnimationEnabled(), l = Xg(t), u = e.style;
  80954. l.userDuring = e.during;
  80955. var c = {}, f = {};
  80956. if (ost(t, e, f), xX("shape", e, f), xX("extra", e, f), !a && s && (ast(t, e, c), SX("shape", t, e, c), SX("extra", t, e, c), sst(t, e, u, c)), f.style = u, est(t, f, o), nst(t, e), s)
  80957. if (a) {
  80958. var d = {};
  80959. F(uT, function(p) {
  80960. var v = p ? e[p] : e;
  80961. v && v.enterFrom && (p && (d[p] = d[p] || {}), _e(p ? d[p] : d, v.enterFrom));
  80962. });
  80963. var h = s6("enter", t, e, n, i);
  80964. h.duration > 0 && t.animateFrom(d, h);
  80965. } else
  80966. tst(t, e, i || 0, n, c);
  80967. Gde(t, e), u ? t.dirty() : t.markRedraw();
  80968. }
  80969. function Gde(t, e) {
  80970. for (var n = Xg(t).leaveToProps, r = 0; r < uT.length; r++) {
  80971. var i = uT[r], a = i ? e[i] : e;
  80972. a && a.leaveTo && (n || (n = Xg(t).leaveToProps = {}), i && (n[i] = n[i] || {}), _e(i ? n[i] : n, a.leaveTo));
  80973. }
  80974. }
  80975. function UP(t, e, n, r) {
  80976. if (t) {
  80977. var i = t.parent, a = Xg(t).leaveToProps;
  80978. if (a) {
  80979. var o = s6("update", t, e, n, 0);
  80980. o.done = function() {
  80981. i.remove(t);
  80982. }, t.animateTo(a, o);
  80983. } else
  80984. i.remove(t);
  80985. }
  80986. }
  80987. function Ah(t) {
  80988. return t === "all";
  80989. }
  80990. function est(t, e, n) {
  80991. var r = e.style;
  80992. if (!t.isGroup && r) {
  80993. if (n) {
  80994. t.useStyle({});
  80995. for (var i = t.animators, a = 0; a < i.length; a++) {
  80996. var o = i[a];
  80997. o.targetName === "style" && o.changeTarget(t.style);
  80998. }
  80999. }
  81000. t.setStyle(r);
  81001. }
  81002. e && (e.style = null, e && t.attr(e), e.style = r);
  81003. }
  81004. function tst(t, e, n, r, i) {
  81005. if (i) {
  81006. var a = s6("update", t, e, r, n);
  81007. a.duration > 0 && t.animateFrom(i, a);
  81008. }
  81009. }
  81010. function nst(t, e) {
  81011. Qe(e, "silent") && (t.silent = e.silent), Qe(e, "ignore") && (t.ignore = e.ignore), t instanceof ls && Qe(e, "invisible") && (t.invisible = e.invisible), t instanceof Dt && Qe(e, "autoBatch") && (t.autoBatch = e.autoBatch);
  81012. }
  81013. var gl = {}, rst = {
  81014. // Usually other props do not need to be changed in animation during.
  81015. setTransform: function(t, e) {
  81016. return process.env.NODE_ENV !== "production" && at(Qe(lT, t), "Only " + OX + " available in `setTransform`."), gl.el[t] = e, this;
  81017. },
  81018. getTransform: function(t) {
  81019. return process.env.NODE_ENV !== "production" && at(Qe(lT, t), "Only " + OX + " available in `getTransform`."), gl.el[t];
  81020. },
  81021. setShape: function(t, e) {
  81022. process.env.NODE_ENV !== "production" && cv(t);
  81023. var n = gl.el, r = n.shape || (n.shape = {});
  81024. return r[t] = e, n.dirtyShape && n.dirtyShape(), this;
  81025. },
  81026. getShape: function(t) {
  81027. process.env.NODE_ENV !== "production" && cv(t);
  81028. var e = gl.el.shape;
  81029. if (e)
  81030. return e[t];
  81031. },
  81032. setStyle: function(t, e) {
  81033. process.env.NODE_ENV !== "production" && cv(t);
  81034. var n = gl.el, r = n.style;
  81035. return r && (process.env.NODE_ENV !== "production" && mf(e) && nr("style." + t + " must not be assigned with NaN."), r[t] = e, n.dirtyStyle && n.dirtyStyle()), this;
  81036. },
  81037. getStyle: function(t) {
  81038. process.env.NODE_ENV !== "production" && cv(t);
  81039. var e = gl.el.style;
  81040. if (e)
  81041. return e[t];
  81042. },
  81043. setExtra: function(t, e) {
  81044. process.env.NODE_ENV !== "production" && cv(t);
  81045. var n = gl.el.extra || (gl.el.extra = {});
  81046. return n[t] = e, this;
  81047. },
  81048. getExtra: function(t) {
  81049. process.env.NODE_ENV !== "production" && cv(t);
  81050. var e = gl.el.extra;
  81051. if (e)
  81052. return e[t];
  81053. }
  81054. };
  81055. function cv(t) {
  81056. if (process.env.NODE_ENV !== "production" && (t === "transition" || t === "enterFrom" || t === "leaveTo"))
  81057. throw new Error('key must not be "' + t + '"');
  81058. }
  81059. function ist() {
  81060. var t = this, e = t.el;
  81061. if (e) {
  81062. var n = Xg(e).userDuring, r = t.userDuring;
  81063. if (n !== r) {
  81064. t.el = t.userDuring = null;
  81065. return;
  81066. }
  81067. gl.el = e, r(rst);
  81068. }
  81069. }
  81070. function SX(t, e, n, r) {
  81071. var i = n[t];
  81072. if (i) {
  81073. var a = e[t], o;
  81074. if (a) {
  81075. var s = n.transition, l = i.transition;
  81076. if (l)
  81077. if (!o && (o = r[t] = {}), Ah(l))
  81078. _e(o, a);
  81079. else
  81080. for (var u = Cn(l), c = 0; c < u.length; c++) {
  81081. var f = u[c], d = a[f];
  81082. o[f] = d;
  81083. }
  81084. else if (Ah(s) || St(s, t) >= 0) {
  81085. !o && (o = r[t] = {});
  81086. for (var h = kt(a), c = 0; c < h.length; c++) {
  81087. var f = h[c], d = a[f];
  81088. lst(i[f], d) && (o[f] = d);
  81089. }
  81090. }
  81091. }
  81092. }
  81093. }
  81094. function xX(t, e, n) {
  81095. var r = e[t];
  81096. if (r)
  81097. for (var i = n[t] = {}, a = kt(r), o = 0; o < a.length; o++) {
  81098. var s = a[o];
  81099. i[s] = Jy(r[s]);
  81100. }
  81101. }
  81102. function ast(t, e, n) {
  81103. for (var r = e.transition, i = Ah(r) ? Hl : Cn(r || []), a = 0; a < i.length; a++) {
  81104. var o = i[a];
  81105. if (!(o === "style" || o === "shape" || o === "extra")) {
  81106. var s = t[o];
  81107. process.env.NODE_ENV !== "production" && jde(o, "el.transition"), n[o] = s;
  81108. }
  81109. }
  81110. }
  81111. function ost(t, e, n) {
  81112. for (var r = 0; r < _X.length; r++) {
  81113. var i = _X[r], a = Hde[i], o = e[i];
  81114. o && (n[a[0]] = o[0], n[a[1]] = o[1]);
  81115. }
  81116. for (var r = 0; r < Hl.length; r++) {
  81117. var s = Hl[r];
  81118. e[s] != null && (n[s] = e[s]);
  81119. }
  81120. }
  81121. function sst(t, e, n, r) {
  81122. if (n) {
  81123. var i = t.style, a;
  81124. if (i) {
  81125. var o = n.transition, s = e.transition;
  81126. if (o && !Ah(o)) {
  81127. var l = Cn(o);
  81128. !a && (a = r.style = {});
  81129. for (var u = 0; u < l.length; u++) {
  81130. var c = l[u], f = i[c];
  81131. a[c] = f;
  81132. }
  81133. } else if (t.getAnimationStyleProps && (Ah(s) || Ah(o) || St(s, "style") >= 0)) {
  81134. var d = t.getAnimationStyleProps(), h = d ? d.style : null;
  81135. if (h) {
  81136. !a && (a = r.style = {});
  81137. for (var p = kt(n), u = 0; u < p.length; u++) {
  81138. var c = p[u];
  81139. if (h[c]) {
  81140. var f = i[c];
  81141. a[c] = f;
  81142. }
  81143. }
  81144. }
  81145. }
  81146. }
  81147. }
  81148. }
  81149. function lst(t, e) {
  81150. return Pi(t) ? t !== e : t != null && isFinite(t);
  81151. }
  81152. var jde;
  81153. process.env.NODE_ENV !== "production" && (jde = function(t, e) {
  81154. Qe(lT, t) || nr("Prop `" + t + "` is not a permitted in `" + e + "`. Only `" + kt(lT).join("`, `") + "` are permitted.");
  81155. });
  81156. var Zde = Ut(), ust = ["percent", "easing", "shape", "style", "extra"];
  81157. function Ude(t) {
  81158. t.stopAnimation("keyframe"), t.attr(Zde(t));
  81159. }
  81160. function cT(t, e, n) {
  81161. if (!(!n.isAnimationEnabled() || !e)) {
  81162. if (Se(e)) {
  81163. F(e, function(s) {
  81164. cT(t, s, n);
  81165. });
  81166. return;
  81167. }
  81168. var r = e.keyframes, i = e.duration;
  81169. if (n && i == null) {
  81170. var a = Om("enter", n, 0);
  81171. i = a && a.duration;
  81172. }
  81173. if (!(!r || !i)) {
  81174. var o = Zde(t);
  81175. F(uT, function(s) {
  81176. if (!(s && !t[s])) {
  81177. var l, u = !1;
  81178. r.sort(function(c, f) {
  81179. return c.percent - f.percent;
  81180. }), F(r, function(c) {
  81181. var f = t.animators, d = s ? c[s] : c;
  81182. if (process.env.NODE_ENV !== "production" && c.percent >= 1 && (u = !0), !!d) {
  81183. var h = kt(d);
  81184. if (s || (h = yn(h, function(g) {
  81185. return St(ust, g) < 0;
  81186. })), !!h.length) {
  81187. l || (l = t.animate(s, e.loop, !0), l.scope = "keyframe");
  81188. for (var p = 0; p < f.length; p++)
  81189. f[p] !== l && f[p].targetName === l.targetName && f[p].stopTracks(h);
  81190. s && (o[s] = o[s] || {});
  81191. var v = s ? o[s] : o;
  81192. F(h, function(g) {
  81193. v[g] = ((s ? t[s] : t) || {})[g];
  81194. }), l.whenWithKeys(i * c.percent, d, h, c.easing);
  81195. }
  81196. }
  81197. }), l && (process.env.NODE_ENV !== "production" && (u || nr("End frame with percent: 1 is missing in the keyframeAnimation.", !0)), l.delay(e.delay || 0).duration(i).start(e.easing));
  81198. }
  81199. });
  81200. }
  81201. }
  81202. }
  81203. var Du = "emphasis", Zc = "normal", l6 = "blur", u6 = "select", xf = [Zc, Du, l6, u6], PI = {
  81204. normal: ["itemStyle"],
  81205. emphasis: [Du, "itemStyle"],
  81206. blur: [l6, "itemStyle"],
  81207. select: [u6, "itemStyle"]
  81208. }, $I = {
  81209. normal: ["label"],
  81210. emphasis: [Du, "label"],
  81211. blur: [l6, "label"],
  81212. select: [u6, "label"]
  81213. }, cst = ["x", "y"], fst = "e\0\0", Ro = {
  81214. normal: {},
  81215. emphasis: {},
  81216. blur: {},
  81217. select: {}
  81218. }, wX = {
  81219. cartesian2d: jot,
  81220. geo: Uot,
  81221. single: Yot,
  81222. polar: Kot,
  81223. calendar: Jot
  81224. };
  81225. function fT(t) {
  81226. return t instanceof Dt;
  81227. }
  81228. function CL(t) {
  81229. return t instanceof ls;
  81230. }
  81231. function dst(t, e) {
  81232. e.copyTransform(t), CL(e) && CL(t) && (e.setStyle(t.style), e.z = t.z, e.z2 = t.z2, e.zlevel = t.zlevel, e.invisible = t.invisible, e.ignore = t.ignore, fT(e) && fT(t) && e.setShape(t.shape));
  81233. }
  81234. var hst = (
  81235. /** @class */
  81236. function(t) {
  81237. le(e, t);
  81238. function e() {
  81239. var n = t !== null && t.apply(this, arguments) || this;
  81240. return n.type = e.type, n;
  81241. }
  81242. return e.prototype.render = function(n, r, i, a) {
  81243. this._progressiveEls = null;
  81244. var o = this._data, s = n.getData(), l = this.group, u = CX(n, s, r, i);
  81245. o || l.removeAll(), s.diff(o).add(function(f) {
  81246. AI(i, null, f, u(f, a), n, l, s);
  81247. }).remove(function(f) {
  81248. var d = o.getItemGraphicEl(f);
  81249. d && UP(d, Iu(d).option, n);
  81250. }).update(function(f, d) {
  81251. var h = o.getItemGraphicEl(d);
  81252. AI(i, h, f, u(f, a), n, l, s);
  81253. }).execute();
  81254. var c = n.get("clip", !0) ? b1(n.coordinateSystem, !1, n) : null;
  81255. c ? l.setClipPath(c) : l.removeClipPath(), this._data = s;
  81256. }, e.prototype.incrementalPrepareRender = function(n, r, i) {
  81257. this.group.removeAll(), this._data = null;
  81258. }, e.prototype.incrementalRender = function(n, r, i, a, o) {
  81259. var s = r.getData(), l = CX(r, s, i, a), u = this._progressiveEls = [];
  81260. function c(h) {
  81261. h.isGroup || (h.incremental = !0, h.ensureState("emphasis").hoverLayer = !0);
  81262. }
  81263. for (var f = n.start; f < n.end; f++) {
  81264. var d = AI(null, null, f, l(f, o), r, this.group, s);
  81265. d && (d.traverse(c), u.push(d));
  81266. }
  81267. }, e.prototype.eachRendered = function(n) {
  81268. Nf(this._progressiveEls || this.group, n);
  81269. }, e.prototype.filterForExposedEvent = function(n, r, i, a) {
  81270. var o = r.element;
  81271. if (o == null || i.name === o)
  81272. return !0;
  81273. for (; (i = i.__hostTarget || i.parent) && i !== this.group; )
  81274. if (i.name === o)
  81275. return !0;
  81276. return !1;
  81277. }, e.type = "custom", e;
  81278. }(_n)
  81279. );
  81280. function c6(t) {
  81281. var e = t.type, n;
  81282. if (e === "path") {
  81283. var r = t.shape, i = r.width != null && r.height != null ? {
  81284. x: r.x || 0,
  81285. y: r.y || 0,
  81286. width: r.width,
  81287. height: r.height
  81288. } : null, a = qde(r);
  81289. n = d1(a, null, i, r.layout || "center"), Iu(n).customPathData = a;
  81290. } else if (e === "image")
  81291. n = new ci({}), Iu(n).customImagePath = t.style.image;
  81292. else if (e === "text")
  81293. n = new jt({});
  81294. else if (e === "group")
  81295. n = new ct();
  81296. else {
  81297. if (e === "compoundPath")
  81298. throw new Error('"compoundPath" is not supported yet.');
  81299. var o = wP(e);
  81300. if (!o) {
  81301. var s = "";
  81302. process.env.NODE_ENV !== "production" && (s = 'graphic type "' + e + '" can not be found.'), fn(s);
  81303. }
  81304. n = new o();
  81305. }
  81306. return Iu(n).customGraphicType = e, n.name = t.name, n.z2EmphasisLift = 1, n.z2SelectLift = 1, n;
  81307. }
  81308. function f6(t, e, n, r, i, a, o) {
  81309. Ude(e);
  81310. var s = i && i.normal.cfg;
  81311. s && e.setTextConfig(s), r && r.transition == null && (r.transition = cst);
  81312. var l = r && r.style;
  81313. if (l) {
  81314. if (e.type === "text") {
  81315. var u = l;
  81316. Qe(u, "textFill") && (u.fill = u.textFill), Qe(u, "textStroke") && (u.stroke = u.textStroke);
  81317. }
  81318. var c = void 0, f = fT(e) ? l.decal : null;
  81319. t && f && (f.dirty = !0, c = Gg(f, t)), l.__decalPattern = c;
  81320. }
  81321. if (CL(e) && l) {
  81322. var c = l.__decalPattern;
  81323. c && (l.decal = c);
  81324. }
  81325. yw(e, r, a, {
  81326. dataIndex: n,
  81327. isInit: o,
  81328. clearStyle: !0
  81329. }), cT(e, r.keyframeAnimation, a);
  81330. }
  81331. function Xde(t, e, n, r, i) {
  81332. var a = e.isGroup ? null : e, o = i && i[t].cfg;
  81333. if (a) {
  81334. var s = a.ensureState(t);
  81335. if (r === !1) {
  81336. var l = a.getState(t);
  81337. l && (l.style = null);
  81338. } else
  81339. s.style = r || null;
  81340. o && (s.textConfig = o), Zh(a);
  81341. }
  81342. }
  81343. function pst(t, e, n) {
  81344. if (!t.isGroup) {
  81345. var r = t, i = n.currentZ, a = n.currentZLevel;
  81346. r.z = i, r.zlevel = a;
  81347. var o = e.z2;
  81348. o != null && (r.z2 = o || 0);
  81349. for (var s = 0; s < xf.length; s++)
  81350. vst(r, e, xf[s]);
  81351. }
  81352. }
  81353. function vst(t, e, n) {
  81354. var r = n === Zc, i = r ? e : dT(e, n), a = i ? i.z2 : null, o;
  81355. a != null && (o = r ? t : t.ensureState(n), o.z2 = a || 0);
  81356. }
  81357. function CX(t, e, n, r) {
  81358. var i = t.get("renderItem"), a = t.coordinateSystem, o = {};
  81359. a && (process.env.NODE_ENV !== "production" && (at(i, "series.render is required."), at(a.prepareCustoms || wX[a.type], "This coordSys does not support custom series.")), o = a.prepareCustoms ? a.prepareCustoms(a) : wX[a.type](a));
  81360. for (var s = it({
  81361. getWidth: r.getWidth,
  81362. getHeight: r.getHeight,
  81363. getZr: r.getZr,
  81364. getDevicePixelRatio: r.getDevicePixelRatio,
  81365. value: O,
  81366. style: x,
  81367. ordinalRawValue: S,
  81368. styleEmphasis: C,
  81369. visual: T,
  81370. barLayout: E,
  81371. currentSeriesIndices: M,
  81372. font: R
  81373. }, o.api || {}), l = {
  81374. // The life cycle of context: current round of rendering.
  81375. // The global life cycle is probably not necessary, because
  81376. // user can store global status by themselves.
  81377. context: {},
  81378. seriesId: t.id,
  81379. seriesName: t.name,
  81380. seriesIndex: t.seriesIndex,
  81381. coordSys: o.coordSys,
  81382. dataInsideLength: e.count(),
  81383. encode: gst(t.getData())
  81384. }, u, c, f = {}, d = {}, h = {}, p = {}, v = 0; v < xf.length; v++) {
  81385. var g = xf[v];
  81386. h[g] = t.getModel(PI[g]), p[g] = t.getModel($I[g]);
  81387. }
  81388. function m(N) {
  81389. return N === u ? c || (c = e.getItemModel(N)) : e.getItemModel(N);
  81390. }
  81391. function y(N, I) {
  81392. return e.hasItemOption ? N === u ? f[I] || (f[I] = m(N).getModel(PI[I])) : m(N).getModel(PI[I]) : h[I];
  81393. }
  81394. function _(N, I) {
  81395. return e.hasItemOption ? N === u ? d[I] || (d[I] = m(N).getModel($I[I])) : m(N).getModel($I[I]) : p[I];
  81396. }
  81397. return function(N, I) {
  81398. return u = N, c = null, f = {}, d = {}, i && i(it({
  81399. dataIndexInside: N,
  81400. dataIndex: e.getRawIndex(N),
  81401. // Can be used for optimization when zoom or roam.
  81402. actionType: I ? I.type : null
  81403. }, l), s);
  81404. };
  81405. function O(N, I) {
  81406. return I == null && (I = u), e.getStore().get(e.getDimensionIndex(N || 0), I);
  81407. }
  81408. function S(N, I) {
  81409. I == null && (I = u), N = N || 0;
  81410. var B = e.getDimensionInfo(N);
  81411. if (!B) {
  81412. var Q = e.getDimensionIndex(N);
  81413. return Q >= 0 ? e.getStore().get(Q, I) : void 0;
  81414. }
  81415. var W = e.get(B.name, I), H = B && B.ordinalMeta;
  81416. return H ? H.categories[W] : W;
  81417. }
  81418. function x(N, I) {
  81419. process.env.NODE_ENV !== "production" && bX("api.style", "Please write literal style directly instead."), I == null && (I = u);
  81420. var B = e.getItemVisual(I, "style"), Q = B && B.fill, W = B && B.opacity, H = y(I, Zc).getItemStyle();
  81421. Q != null && (H.fill = Q), W != null && (H.opacity = W);
  81422. var U = {
  81423. inheritColor: Ve(Q) ? Q : "#000"
  81424. }, j = _(I, Zc), Y = Mn(j, null, U, !1, !0);
  81425. Y.text = j.getShallow("show") ? dt(t.getFormattedLabel(I, Zc), jg(e, I)) : null;
  81426. var ne = LC(j, U, !1);
  81427. return $(N, H), H = mX(H, Y, ne), N && P(H, N), H.legacy = !0, H;
  81428. }
  81429. function C(N, I) {
  81430. process.env.NODE_ENV !== "production" && bX("api.styleEmphasis", "Please write literal style directly instead."), I == null && (I = u);
  81431. var B = y(I, Du).getItemStyle(), Q = _(I, Du), W = Mn(Q, null, null, !0, !0);
  81432. W.text = Q.getShallow("show") ? co(t.getFormattedLabel(I, Du), t.getFormattedLabel(I, Zc), jg(e, I)) : null;
  81433. var H = LC(Q, null, !0);
  81434. return $(N, B), B = mX(B, W, H), N && P(B, N), B.legacy = !0, B;
  81435. }
  81436. function P(N, I) {
  81437. for (var B in I)
  81438. Qe(I, B) && (N[B] = I[B]);
  81439. }
  81440. function $(N, I) {
  81441. N && (N.textFill && (I.textFill = N.textFill), N.textPosition && (I.textPosition = N.textPosition));
  81442. }
  81443. function T(N, I) {
  81444. if (I == null && (I = u), Qe(pX, N)) {
  81445. var B = e.getItemVisual(I, "style");
  81446. return B ? B[pX[N]] : null;
  81447. }
  81448. if (Qe(Qot, N))
  81449. return e.getItemVisual(I, N);
  81450. }
  81451. function E(N) {
  81452. if (a.type === "cartesian2d") {
  81453. var I = a.getBaseAxis();
  81454. return Qqe(it({
  81455. axis: I
  81456. }, N));
  81457. }
  81458. }
  81459. function M() {
  81460. return n.getCurrentSeriesIndices();
  81461. }
  81462. function R(N) {
  81463. return G5(N, n);
  81464. }
  81465. }
  81466. function gst(t) {
  81467. var e = {};
  81468. return F(t.dimensions, function(n) {
  81469. var r = t.getDimensionInfo(n);
  81470. if (!r.isExtraCoord) {
  81471. var i = r.coordDim, a = e[i] = e[i] || [];
  81472. a[r.coordDimIndex] = t.getDimensionIndex(n);
  81473. }
  81474. }), e;
  81475. }
  81476. function AI(t, e, n, r, i, a, o) {
  81477. if (!r) {
  81478. a.remove(e);
  81479. return;
  81480. }
  81481. var s = d6(t, e, n, r, i, a);
  81482. return s && o.setItemGraphicEl(n, s), s && ur(s, r.focus, r.blurScope, r.emphasisDisabled), s;
  81483. }
  81484. function d6(t, e, n, r, i, a) {
  81485. process.env.NODE_ENV !== "production" && at(r, "should not have an null/undefined element setting");
  81486. var o = -1, s = e;
  81487. e && Yde(e, r, i) && (o = St(a.childrenRef(), e), e = null);
  81488. var l = !e, u = e;
  81489. u ? u.clearStates() : (u = c6(r), s && dst(s, u)), r.morph === !1 ? u.disableMorphing = !0 : u.disableMorphing && (u.disableMorphing = !1), Ro.normal.cfg = Ro.normal.conOpt = Ro.emphasis.cfg = Ro.emphasis.conOpt = Ro.blur.cfg = Ro.blur.conOpt = Ro.select.cfg = Ro.select.conOpt = null, Ro.isLegacy = !1, yst(u, n, r, i, l, Ro), mst(u, n, r, i, l), f6(t, u, n, r, Ro, i, l), Qe(r, "info") && (Iu(u).info = r.info);
  81490. for (var c = 0; c < xf.length; c++) {
  81491. var f = xf[c];
  81492. if (f !== Zc) {
  81493. var d = dT(r, f), h = h6(r, d, f);
  81494. Xde(f, u, d, h, Ro);
  81495. }
  81496. }
  81497. return pst(u, r, i), r.type === "group" && bst(t, u, n, r, i), o >= 0 ? a.replaceAt(u, o) : a.add(u), u;
  81498. }
  81499. function Yde(t, e, n) {
  81500. var r = Iu(t), i = e.type, a = e.shape, o = e.style;
  81501. return (
  81502. // Always create new if universal transition is enabled.
  81503. // Because we do transition after render. It needs to know what old element is. Replacement will loose it.
  81504. n.isUniversalTransitionEnabled() || i != null && i !== r.customGraphicType || i === "path" && xst(a) && qde(a) !== r.customPathData || i === "image" && Qe(o, "image") && o.image !== r.customImagePath
  81505. );
  81506. }
  81507. function mst(t, e, n, r, i) {
  81508. var a = n.clipPath;
  81509. if (a === !1)
  81510. t && t.getClipPath() && t.removeClipPath();
  81511. else if (a) {
  81512. var o = t.getClipPath();
  81513. o && Yde(o, a, r) && (o = null), o || (o = c6(a), process.env.NODE_ENV !== "production" && at(fT(o), "Only any type of `path` can be used in `clipPath`, rather than " + o.type + "."), t.setClipPath(o)), f6(null, o, e, a, null, r, i);
  81514. }
  81515. }
  81516. function yst(t, e, n, r, i, a) {
  81517. if (!t.isGroup) {
  81518. TX(n, null, a), TX(n, Du, a);
  81519. var o = a.normal.conOpt, s = a.emphasis.conOpt, l = a.blur.conOpt, u = a.select.conOpt;
  81520. if (o != null || s != null || u != null || l != null) {
  81521. var c = t.getTextContent();
  81522. if (o === !1)
  81523. c && t.removeTextContent();
  81524. else {
  81525. o = a.normal.conOpt = o || {
  81526. type: "text"
  81527. }, c ? c.clearStates() : (c = c6(o), t.setTextContent(c)), f6(null, c, e, o, null, r, i);
  81528. for (var f = o && o.style, d = 0; d < xf.length; d++) {
  81529. var h = xf[d];
  81530. if (h !== Zc) {
  81531. var p = a[h].conOpt;
  81532. Xde(h, c, p, h6(o, p, h), null);
  81533. }
  81534. }
  81535. f ? c.dirty() : c.markRedraw();
  81536. }
  81537. }
  81538. }
  81539. }
  81540. function TX(t, e, n) {
  81541. var r = e ? dT(t, e) : t, i = e ? h6(t, r, Du) : t.style, a = t.type, o = r ? r.textConfig : null, s = t.textContent, l = s ? e ? dT(s, e) : s : null;
  81542. if (i && // Because emphasis style has little info to detect legacy,
  81543. // if normal is legacy, emphasis is trade as legacy.
  81544. (n.isLegacy || Wde(i, a, !!o, !!l))) {
  81545. n.isLegacy = !0;
  81546. var u = Qde(i, a, !e);
  81547. !o && u.textConfig && (o = u.textConfig), !l && u.textContent && (l = u.textContent);
  81548. }
  81549. if (!e && l) {
  81550. var c = l;
  81551. !c.type && (c.type = "text"), process.env.NODE_ENV !== "production" && at(c.type === "text", 'textContent.type must be "text"');
  81552. }
  81553. var f = e ? n[e] : n.normal;
  81554. f.cfg = o, f.conOpt = l;
  81555. }
  81556. function dT(t, e) {
  81557. return e ? t ? t[e] : null : t;
  81558. }
  81559. function h6(t, e, n) {
  81560. var r = e && e.style;
  81561. return r == null && n === Du && t && (r = t.styleEmphasis), r;
  81562. }
  81563. function bst(t, e, n, r, i) {
  81564. var a = r.children, o = a ? a.length : 0, s = r.$mergeChildren, l = s === "byName" || r.diffChildrenByName, u = s === !1;
  81565. if (!(!o && !l && !u)) {
  81566. if (l) {
  81567. Ost({
  81568. api: t,
  81569. oldChildren: e.children() || [],
  81570. newChildren: a || [],
  81571. dataIndex: n,
  81572. seriesModel: i,
  81573. group: e
  81574. });
  81575. return;
  81576. }
  81577. u && e.removeAll();
  81578. for (var c = 0; c < o; c++) {
  81579. var f = a[c], d = e.childAt(c);
  81580. f ? (f.ignore == null && (f.ignore = !1), d6(t, d, n, f, i, e)) : (process.env.NODE_ENV !== "production" && at(d, "renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."), d.ignore = !0);
  81581. }
  81582. for (var h = e.childCount() - 1; h >= c; h--) {
  81583. var p = e.childAt(h);
  81584. _st(e, p, i);
  81585. }
  81586. }
  81587. }
  81588. function _st(t, e, n) {
  81589. e && UP(e, Iu(t).option, n);
  81590. }
  81591. function Ost(t) {
  81592. new Qu(t.oldChildren, t.newChildren, PX, PX, t).add($X).update($X).remove(Sst).execute();
  81593. }
  81594. function PX(t, e) {
  81595. var n = t && t.name;
  81596. return n ?? fst + e;
  81597. }
  81598. function $X(t, e) {
  81599. var n = this.context, r = t != null ? n.newChildren[t] : null, i = e != null ? n.oldChildren[e] : null;
  81600. d6(n.api, i, n.dataIndex, r, n.seriesModel, n.group);
  81601. }
  81602. function Sst(t) {
  81603. var e = this.context, n = e.oldChildren[t];
  81604. n && UP(n, Iu(n).option, e.seriesModel);
  81605. }
  81606. function qde(t) {
  81607. return t && (t.pathData || t.d);
  81608. }
  81609. function xst(t) {
  81610. return t && (Qe(t, "pathData") || Qe(t, "d"));
  81611. }
  81612. function wst(t) {
  81613. t.registerChartView(hst), t.registerSeriesModel(Hot);
  81614. }
  81615. var Zd = Ut(), AX = ot, EI = We, p6 = (
  81616. /** @class */
  81617. function() {
  81618. function t() {
  81619. this._dragging = !1, this.animationThreshold = 15;
  81620. }
  81621. return t.prototype.render = function(e, n, r, i) {
  81622. var a = n.get("value"), o = n.get("status");
  81623. if (this._axisModel = e, this._axisPointerModel = n, this._api = r, !(!i && this._lastValue === a && this._lastStatus === o)) {
  81624. this._lastValue = a, this._lastStatus = o;
  81625. var s = this._group, l = this._handle;
  81626. if (!o || o === "hide") {
  81627. s && s.hide(), l && l.hide();
  81628. return;
  81629. }
  81630. s && s.show(), l && l.show();
  81631. var u = {};
  81632. this.makeElOption(u, a, e, n, r);
  81633. var c = u.graphicKey;
  81634. c !== this._lastGraphicKey && this.clear(r), this._lastGraphicKey = c;
  81635. var f = this._moveAnimation = this.determineAnimation(e, n);
  81636. if (!s)
  81637. s = this._group = new ct(), this.createPointerEl(s, u, e, n), this.createLabelEl(s, u, e, n), r.getZr().add(s);
  81638. else {
  81639. var d = vt(EX, n, f);
  81640. this.updatePointerEl(s, u, d), this.updateLabelEl(s, u, d, n);
  81641. }
  81642. IX(s, n, !0), this._renderHandle(a);
  81643. }
  81644. }, t.prototype.remove = function(e) {
  81645. this.clear(e);
  81646. }, t.prototype.dispose = function(e) {
  81647. this.clear(e);
  81648. }, t.prototype.determineAnimation = function(e, n) {
  81649. var r = n.get("animation"), i = e.axis, a = i.type === "category", o = n.get("snap");
  81650. if (!o && !a)
  81651. return !1;
  81652. if (r === "auto" || r == null) {
  81653. var s = this.animationThreshold;
  81654. if (a && i.getBandWidth() > s)
  81655. return !0;
  81656. if (o) {
  81657. var l = B3(e).seriesDataCount, u = i.getExtent();
  81658. return Math.abs(u[0] - u[1]) / l > s;
  81659. }
  81660. return !1;
  81661. }
  81662. return r === !0;
  81663. }, t.prototype.makeElOption = function(e, n, r, i, a) {
  81664. }, t.prototype.createPointerEl = function(e, n, r, i) {
  81665. var a = n.pointer;
  81666. if (a) {
  81667. var o = Zd(e).pointerEl = new hp[a.type](AX(n.pointer));
  81668. e.add(o);
  81669. }
  81670. }, t.prototype.createLabelEl = function(e, n, r, i) {
  81671. if (n.label) {
  81672. var a = Zd(e).labelEl = new jt(AX(n.label));
  81673. e.add(a), MX(a, i);
  81674. }
  81675. }, t.prototype.updatePointerEl = function(e, n, r) {
  81676. var i = Zd(e).pointerEl;
  81677. i && n.pointer && (i.setStyle(n.pointer.style), r(i, {
  81678. shape: n.pointer.shape
  81679. }));
  81680. }, t.prototype.updateLabelEl = function(e, n, r, i) {
  81681. var a = Zd(e).labelEl;
  81682. a && (a.setStyle(n.label.style), r(a, {
  81683. // Consider text length change in vertical axis, animation should
  81684. // be used on shape, otherwise the effect will be weird.
  81685. // TODOTODO
  81686. // shape: elOption.label.shape,
  81687. x: n.label.x,
  81688. y: n.label.y
  81689. }), MX(a, i));
  81690. }, t.prototype._renderHandle = function(e) {
  81691. if (!(this._dragging || !this.updateHandleTransform)) {
  81692. var n = this._axisPointerModel, r = this._api.getZr(), i = this._handle, a = n.getModel("handle"), o = n.get("status");
  81693. if (!a.get("show") || !o || o === "hide") {
  81694. i && r.remove(i), this._handle = null;
  81695. return;
  81696. }
  81697. var s;
  81698. this._handle || (s = !0, i = this._handle = Sm(a.get("icon"), {
  81699. cursor: "move",
  81700. draggable: !0,
  81701. onmousemove: function(u) {
  81702. Vu(u.event);
  81703. },
  81704. onmousedown: EI(this._onHandleDragMove, this, 0, 0),
  81705. drift: EI(this._onHandleDragMove, this),
  81706. ondragend: EI(this._onHandleDragEnd, this)
  81707. }), r.add(i)), IX(i, n, !1), i.setStyle(a.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]));
  81708. var l = a.get("size");
  81709. Se(l) || (l = [l, l]), i.scaleX = l[0] / 2, i.scaleY = l[1] / 2, Am(this, "_doDispatchAxisPointer", a.get("throttle") || 0, "fixRate"), this._moveHandleToValue(e, s);
  81710. }
  81711. }, t.prototype._moveHandleToValue = function(e, n) {
  81712. EX(this._axisPointerModel, !n && this._moveAnimation, this._handle, MI(this.getHandleTransform(e, this._axisModel, this._axisPointerModel)));
  81713. }, t.prototype._onHandleDragMove = function(e, n) {
  81714. var r = this._handle;
  81715. if (r) {
  81716. this._dragging = !0;
  81717. var i = this.updateHandleTransform(MI(r), [e, n], this._axisModel, this._axisPointerModel);
  81718. this._payloadInfo = i, r.stopAnimation(), r.attr(MI(i)), Zd(r).lastProp = null, this._doDispatchAxisPointer();
  81719. }
  81720. }, t.prototype._doDispatchAxisPointer = function() {
  81721. var e = this._handle;
  81722. if (e) {
  81723. var n = this._payloadInfo, r = this._axisModel;
  81724. this._api.dispatchAction({
  81725. type: "updateAxisPointer",
  81726. x: n.cursorPoint[0],
  81727. y: n.cursorPoint[1],
  81728. tooltipOption: n.tooltipOption,
  81729. axesInfo: [{
  81730. axisDim: r.axis.dim,
  81731. axisIndex: r.componentIndex
  81732. }]
  81733. });
  81734. }
  81735. }, t.prototype._onHandleDragEnd = function() {
  81736. this._dragging = !1;
  81737. var e = this._handle;
  81738. if (e) {
  81739. var n = this._axisPointerModel.get("value");
  81740. this._moveHandleToValue(n), this._api.dispatchAction({
  81741. type: "hideTip"
  81742. });
  81743. }
  81744. }, t.prototype.clear = function(e) {
  81745. this._lastValue = null, this._lastStatus = null;
  81746. var n = e.getZr(), r = this._group, i = this._handle;
  81747. n && r && (this._lastGraphicKey = null, r && n.remove(r), i && n.remove(i), this._group = null, this._handle = null, this._payloadInfo = null), Jb(this, "_doDispatchAxisPointer");
  81748. }, t.prototype.doClear = function() {
  81749. }, t.prototype.buildLabel = function(e, n, r) {
  81750. return r = r || 0, {
  81751. x: e[r],
  81752. y: e[1 - r],
  81753. width: n[r],
  81754. height: n[1 - r]
  81755. };
  81756. }, t;
  81757. }()
  81758. );
  81759. function EX(t, e, n, r) {
  81760. Kde(Zd(n).lastProp, r) || (Zd(n).lastProp = r, e ? tn(n, r, t) : (n.stopAnimation(), n.attr(r)));
  81761. }
  81762. function Kde(t, e) {
  81763. if (nt(t) && nt(e)) {
  81764. var n = !0;
  81765. return F(e, function(r, i) {
  81766. n = n && Kde(t[i], r);
  81767. }), !!n;
  81768. } else
  81769. return t === e;
  81770. }
  81771. function MX(t, e) {
  81772. t[e.get(["label", "show"]) ? "show" : "hide"]();
  81773. }
  81774. function MI(t) {
  81775. return {
  81776. x: t.x || 0,
  81777. y: t.y || 0,
  81778. rotation: t.rotation || 0
  81779. };
  81780. }
  81781. function IX(t, e, n) {
  81782. var r = e.get("z"), i = e.get("zlevel");
  81783. t && t.traverse(function(a) {
  81784. a.type !== "group" && (r != null && (a.z = r), i != null && (a.zlevel = i), a.silent = n);
  81785. });
  81786. }
  81787. function v6(t) {
  81788. var e = t.get("type"), n = t.getModel(e + "Style"), r;
  81789. return e === "line" ? (r = n.getLineStyle(), r.fill = null) : e === "shadow" && (r = n.getAreaStyle(), r.stroke = null), r;
  81790. }
  81791. function Jde(t, e, n, r, i) {
  81792. var a = n.get("value"), o = ehe(a, e.axis, e.ecModel, n.get("seriesDataIndices"), {
  81793. precision: n.get(["label", "precision"]),
  81794. formatter: n.get(["label", "formatter"])
  81795. }), s = n.getModel("label"), l = vp(s.get("padding") || 0), u = s.getFont(), c = o1(o, u), f = i.position, d = c.width + l[1] + l[3], h = c.height + l[0] + l[2], p = i.align;
  81796. p === "right" && (f[0] -= d), p === "center" && (f[0] -= d / 2);
  81797. var v = i.verticalAlign;
  81798. v === "bottom" && (f[1] -= h), v === "middle" && (f[1] -= h / 2), Cst(f, d, h, r);
  81799. var g = s.get("backgroundColor");
  81800. (!g || g === "auto") && (g = e.get(["axisLine", "lineStyle", "color"])), t.label = {
  81801. // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},
  81802. x: f[0],
  81803. y: f[1],
  81804. style: Mn(s, {
  81805. text: o,
  81806. font: u,
  81807. fill: s.getTextColor(),
  81808. padding: l,
  81809. backgroundColor: g
  81810. }),
  81811. // Label should be over axisPointer.
  81812. z2: 10
  81813. };
  81814. }
  81815. function Cst(t, e, n, r) {
  81816. var i = r.getWidth(), a = r.getHeight();
  81817. t[0] = Math.min(t[0] + e, i) - e, t[1] = Math.min(t[1] + n, a) - n, t[0] = Math.max(t[0], 0), t[1] = Math.max(t[1], 0);
  81818. }
  81819. function ehe(t, e, n, r, i) {
  81820. t = e.scale.parse(t);
  81821. var a = e.scale.getLabel({
  81822. value: t
  81823. }, {
  81824. // If `precision` is set, width can be fixed (like '12.00500'), which
  81825. // helps to debounce when when moving label.
  81826. precision: i.precision
  81827. }), o = i.formatter;
  81828. if (o) {
  81829. var s = {
  81830. value: P3(e, {
  81831. value: t
  81832. }),
  81833. axisDimension: e.dim,
  81834. axisIndex: e.index,
  81835. seriesData: []
  81836. };
  81837. F(r, function(l) {
  81838. var u = n.getSeriesByIndex(l.seriesIndex), c = l.dataIndexInside, f = u && u.getDataParams(c);
  81839. f && s.seriesData.push(f);
  81840. }), Ve(o) ? a = o.replace("{value}", a) : qe(o) && (a = o(s));
  81841. }
  81842. return a;
  81843. }
  81844. function g6(t, e, n) {
  81845. var r = Na();
  81846. return Lf(r, r, n.rotation), Gs(r, r, n.position), zs([t.dataToCoord(e), (n.labelOffset || 0) + (n.labelDirection || 1) * (n.labelMargin || 0)], r);
  81847. }
  81848. function the(t, e, n, r, i, a) {
  81849. var o = sa.innerTextLayout(n.rotation, 0, n.labelDirection);
  81850. n.labelMargin = i.get(["label", "margin"]), Jde(e, r, i, a, {
  81851. position: g6(r.axis, t, n),
  81852. align: o.textAlign,
  81853. verticalAlign: o.textVerticalAlign
  81854. });
  81855. }
  81856. function m6(t, e, n) {
  81857. return n = n || 0, {
  81858. x1: t[n],
  81859. y1: t[1 - n],
  81860. x2: e[n],
  81861. y2: e[1 - n]
  81862. };
  81863. }
  81864. function nhe(t, e, n) {
  81865. return n = n || 0, {
  81866. x: t[n],
  81867. y: t[1 - n],
  81868. width: e[n],
  81869. height: e[1 - n]
  81870. };
  81871. }
  81872. function DX(t, e, n, r, i, a) {
  81873. return {
  81874. cx: t,
  81875. cy: e,
  81876. r0: n,
  81877. r,
  81878. startAngle: i,
  81879. endAngle: a,
  81880. clockwise: !0
  81881. };
  81882. }
  81883. var Tst = (
  81884. /** @class */
  81885. function(t) {
  81886. le(e, t);
  81887. function e() {
  81888. return t !== null && t.apply(this, arguments) || this;
  81889. }
  81890. return e.prototype.makeElOption = function(n, r, i, a, o) {
  81891. var s = i.axis, l = s.grid, u = a.get("type"), c = RX(l, s).getOtherAxis(s).getGlobalExtent(), f = s.toGlobalCoord(s.dataToCoord(r, !0));
  81892. if (u && u !== "none") {
  81893. var d = v6(a), h = Pst[u](s, f, c);
  81894. h.style = d, n.graphicKey = h.type, n.pointer = h;
  81895. }
  81896. var p = sL(l.model, i);
  81897. the(
  81898. // @ts-ignore
  81899. r,
  81900. n,
  81901. p,
  81902. i,
  81903. a,
  81904. o
  81905. );
  81906. }, e.prototype.getHandleTransform = function(n, r, i) {
  81907. var a = sL(r.axis.grid.model, r, {
  81908. labelInside: !1
  81909. });
  81910. a.labelMargin = i.get(["handle", "margin"]);
  81911. var o = g6(r.axis, n, a);
  81912. return {
  81913. x: o[0],
  81914. y: o[1],
  81915. rotation: a.rotation + (a.labelDirection < 0 ? Math.PI : 0)
  81916. };
  81917. }, e.prototype.updateHandleTransform = function(n, r, i, a) {
  81918. var o = i.axis, s = o.grid, l = o.getGlobalExtent(!0), u = RX(s, o).getOtherAxis(o).getGlobalExtent(), c = o.dim === "x" ? 0 : 1, f = [n.x, n.y];
  81919. f[c] += r[c], f[c] = Math.min(l[1], f[c]), f[c] = Math.max(l[0], f[c]);
  81920. var d = (u[1] + u[0]) / 2, h = [d, d];
  81921. h[c] = f[c];
  81922. var p = [{
  81923. verticalAlign: "middle"
  81924. }, {
  81925. align: "center"
  81926. }];
  81927. return {
  81928. x: f[0],
  81929. y: f[1],
  81930. rotation: n.rotation,
  81931. cursorPoint: h,
  81932. tooltipOption: p[c]
  81933. };
  81934. }, e;
  81935. }(p6)
  81936. );
  81937. function RX(t, e) {
  81938. var n = {};
  81939. return n[e.dim + "AxisIndex"] = e.index, t.getCartesian(n);
  81940. }
  81941. var Pst = {
  81942. line: function(t, e, n) {
  81943. var r = m6([e, n[0]], [e, n[1]], kX(t));
  81944. return {
  81945. type: "Line",
  81946. subPixelOptimize: !0,
  81947. shape: r
  81948. };
  81949. },
  81950. shadow: function(t, e, n) {
  81951. var r = Math.max(1, t.getBandWidth()), i = n[1] - n[0];
  81952. return {
  81953. type: "Rect",
  81954. shape: nhe([e - r / 2, n[0]], [r, i], kX(t))
  81955. };
  81956. }
  81957. };
  81958. function kX(t) {
  81959. return t.dim === "x" ? 0 : 1;
  81960. }
  81961. var $st = (
  81962. /** @class */
  81963. function(t) {
  81964. le(e, t);
  81965. function e() {
  81966. var n = t !== null && t.apply(this, arguments) || this;
  81967. return n.type = e.type, n;
  81968. }
  81969. return e.type = "axisPointer", e.defaultOption = {
  81970. // 'auto' means that show when triggered by tooltip or handle.
  81971. show: "auto",
  81972. // zlevel: 0,
  81973. z: 50,
  81974. type: "line",
  81975. // axispointer triggered by tootip determine snap automatically,
  81976. // see `modelHelper`.
  81977. snap: !1,
  81978. triggerTooltip: !0,
  81979. triggerEmphasis: !0,
  81980. value: null,
  81981. status: null,
  81982. link: [],
  81983. // Do not set 'auto' here, otherwise global animation: false
  81984. // will not effect at this axispointer.
  81985. animation: null,
  81986. animationDurationUpdate: 200,
  81987. lineStyle: {
  81988. color: "#B9BEC9",
  81989. width: 1,
  81990. type: "dashed"
  81991. },
  81992. shadowStyle: {
  81993. color: "rgba(210,219,238,0.2)"
  81994. },
  81995. label: {
  81996. show: !0,
  81997. formatter: null,
  81998. precision: "auto",
  81999. margin: 3,
  82000. color: "#fff",
  82001. padding: [5, 7, 5, 7],
  82002. backgroundColor: "auto",
  82003. borderColor: null,
  82004. borderWidth: 0,
  82005. borderRadius: 3
  82006. },
  82007. handle: {
  82008. show: !1,
  82009. // eslint-disable-next-line
  82010. icon: "M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",
  82011. size: 45,
  82012. // handle margin is from symbol center to axis, which is stable when circular move.
  82013. margin: 50,
  82014. // color: '#1b8bbd'
  82015. // color: '#2f4554'
  82016. color: "#333",
  82017. shadowBlur: 3,
  82018. shadowColor: "#aaa",
  82019. shadowOffsetX: 0,
  82020. shadowOffsetY: 2,
  82021. // For mobile performance
  82022. throttle: 40
  82023. }
  82024. }, e;
  82025. }(At)
  82026. ), $u = Ut(), Ast = F;
  82027. function rhe(t, e, n) {
  82028. if (!Gt.node) {
  82029. var r = e.getZr();
  82030. $u(r).records || ($u(r).records = {}), Est(r, e);
  82031. var i = $u(r).records[t] || ($u(r).records[t] = {});
  82032. i.handler = n;
  82033. }
  82034. }
  82035. function Est(t, e) {
  82036. if ($u(t).initialized)
  82037. return;
  82038. $u(t).initialized = !0, n("click", vt(LX, "click")), n("mousemove", vt(LX, "mousemove")), n("globalout", Ist);
  82039. function n(r, i) {
  82040. t.on(r, function(a) {
  82041. var o = Dst(e);
  82042. Ast($u(t).records, function(s) {
  82043. s && i(s, a, o.dispatchAction);
  82044. }), Mst(o.pendings, e);
  82045. });
  82046. }
  82047. }
  82048. function Mst(t, e) {
  82049. var n = t.showTip.length, r = t.hideTip.length, i;
  82050. n ? i = t.showTip[n - 1] : r && (i = t.hideTip[r - 1]), i && (i.dispatchAction = null, e.dispatchAction(i));
  82051. }
  82052. function Ist(t, e, n) {
  82053. t.handler("leave", null, n);
  82054. }
  82055. function LX(t, e, n, r) {
  82056. e.handler(t, n, r);
  82057. }
  82058. function Dst(t) {
  82059. var e = {
  82060. showTip: [],
  82061. hideTip: []
  82062. }, n = function(r) {
  82063. var i = e[r.type];
  82064. i ? i.push(r) : (r.dispatchAction = n, t.dispatchAction(r));
  82065. };
  82066. return {
  82067. dispatchAction: n,
  82068. pendings: e
  82069. };
  82070. }
  82071. function TL(t, e) {
  82072. if (!Gt.node) {
  82073. var n = e.getZr(), r = ($u(n).records || {})[t];
  82074. r && ($u(n).records[t] = null);
  82075. }
  82076. }
  82077. var Rst = (
  82078. /** @class */
  82079. function(t) {
  82080. le(e, t);
  82081. function e() {
  82082. var n = t !== null && t.apply(this, arguments) || this;
  82083. return n.type = e.type, n;
  82084. }
  82085. return e.prototype.render = function(n, r, i) {
  82086. var a = r.getComponent("tooltip"), o = n.get("triggerOn") || a && a.get("triggerOn") || "mousemove|click";
  82087. rhe("axisPointer", i, function(s, l, u) {
  82088. o !== "none" && (s === "leave" || o.indexOf(s) >= 0) && u({
  82089. type: "updateAxisPointer",
  82090. currTrigger: s,
  82091. x: l && l.offsetX,
  82092. y: l && l.offsetY
  82093. });
  82094. });
  82095. }, e.prototype.remove = function(n, r) {
  82096. TL("axisPointer", r);
  82097. }, e.prototype.dispose = function(n, r) {
  82098. TL("axisPointer", r);
  82099. }, e.type = "axisPointer", e;
  82100. }(Ln)
  82101. );
  82102. function ihe(t, e) {
  82103. var n = [], r = t.seriesIndex, i;
  82104. if (r == null || !(i = e.getSeriesByIndex(r)))
  82105. return {
  82106. point: []
  82107. };
  82108. var a = i.getData(), o = Gh(a, t);
  82109. if (o == null || o < 0 || Se(o))
  82110. return {
  82111. point: []
  82112. };
  82113. var s = a.getItemGraphicEl(o), l = i.coordinateSystem;
  82114. if (i.getTooltipPosition)
  82115. n = i.getTooltipPosition(o) || [];
  82116. else if (l && l.dataToPoint)
  82117. if (t.isStacked) {
  82118. var u = l.getBaseAxis(), c = l.getOtherAxis(u), f = c.dim, d = u.dim, h = f === "x" || f === "radius" ? 1 : 0, p = a.mapDimension(d), v = [];
  82119. v[h] = a.get(p, o), v[1 - h] = a.get(a.getCalculationInfo("stackResultDimension"), o), n = l.dataToPoint(v) || [];
  82120. } else
  82121. n = l.dataToPoint(a.getValues(Ce(l.dimensions, function(m) {
  82122. return a.mapDimension(m);
  82123. }), o)) || [];
  82124. else if (s) {
  82125. var g = s.getBoundingRect().clone();
  82126. g.applyTransform(s.transform), n = [g.x + g.width / 2, g.y + g.height / 2];
  82127. }
  82128. return {
  82129. point: n,
  82130. el: s
  82131. };
  82132. }
  82133. var NX = Ut();
  82134. function kst(t, e, n) {
  82135. var r = t.currTrigger, i = [t.x, t.y], a = t, o = t.dispatchAction || We(n.dispatchAction, n), s = e.getComponent("axisPointer").coordSysAxesInfo;
  82136. if (s) {
  82137. bw(i) && (i = ihe({
  82138. seriesIndex: a.seriesIndex,
  82139. // Do not use dataIndexInside from other ec instance.
  82140. // FIXME: auto detect it?
  82141. dataIndex: a.dataIndex
  82142. }, e).point);
  82143. var l = bw(i), u = a.axesInfo, c = s.axesInfo, f = r === "leave" || bw(i), d = {}, h = {}, p = {
  82144. list: [],
  82145. map: {}
  82146. }, v = {
  82147. showPointer: vt(Nst, h),
  82148. showTooltip: vt(Bst, p)
  82149. };
  82150. F(s.coordSysMap, function(m, y) {
  82151. var _ = l || m.containPoint(i);
  82152. F(s.coordSysAxesInfo[y], function(O, S) {
  82153. var x = O.axis, C = Wst(u, O);
  82154. if (!f && _ && (!u || C)) {
  82155. var P = C && C.value;
  82156. P == null && !l && (P = x.pointToData(i)), P != null && BX(O, P, v, !1, d);
  82157. }
  82158. });
  82159. });
  82160. var g = {};
  82161. return F(c, function(m, y) {
  82162. var _ = m.linkGroup;
  82163. _ && !h[y] && F(_.axesInfo, function(O, S) {
  82164. var x = h[S];
  82165. if (O !== m && x) {
  82166. var C = x.value;
  82167. _.mapper && (C = m.axis.scale.parse(_.mapper(C, zX(O), zX(m)))), g[m.key] = C;
  82168. }
  82169. });
  82170. }), F(g, function(m, y) {
  82171. BX(c[y], m, v, !0, d);
  82172. }), zst(h, c, d), Vst(p, i, t, o), Fst(c, o, n), d;
  82173. }
  82174. }
  82175. function BX(t, e, n, r, i) {
  82176. var a = t.axis;
  82177. if (!(a.scale.isBlank() || !a.containData(e))) {
  82178. if (!t.involveSeries) {
  82179. n.showPointer(t, e);
  82180. return;
  82181. }
  82182. var o = Lst(e, t), s = o.payloadBatch, l = o.snapToValue;
  82183. s[0] && i.seriesIndex == null && _e(i, s[0]), !r && t.snap && a.containData(l) && l != null && (e = l), n.showPointer(t, e, s), n.showTooltip(t, o, l);
  82184. }
  82185. }
  82186. function Lst(t, e) {
  82187. var n = e.axis, r = n.dim, i = t, a = [], o = Number.MAX_VALUE, s = -1;
  82188. return F(e.seriesModels, function(l, u) {
  82189. var c = l.getData().mapDimensionsAll(r), f, d;
  82190. if (l.getAxisTooltipData) {
  82191. var h = l.getAxisTooltipData(c, t, n);
  82192. d = h.dataIndices, f = h.nestestValue;
  82193. } else {
  82194. if (d = l.getData().indicesOfNearest(
  82195. c[0],
  82196. t,
  82197. // Add a threshold to avoid find the wrong dataIndex
  82198. // when data length is not same.
  82199. // false,
  82200. n.type === "category" ? 0.5 : null
  82201. ), !d.length)
  82202. return;
  82203. f = l.getData().get(c[0], d[0]);
  82204. }
  82205. if (!(f == null || !isFinite(f))) {
  82206. var p = t - f, v = Math.abs(p);
  82207. v <= o && ((v < o || p >= 0 && s < 0) && (o = v, s = p, i = f, a.length = 0), F(d, function(g) {
  82208. a.push({
  82209. seriesIndex: l.seriesIndex,
  82210. dataIndexInside: g,
  82211. dataIndex: l.getData().getRawIndex(g)
  82212. });
  82213. }));
  82214. }
  82215. }), {
  82216. payloadBatch: a,
  82217. snapToValue: i
  82218. };
  82219. }
  82220. function Nst(t, e, n, r) {
  82221. t[e.key] = {
  82222. value: n,
  82223. payloadBatch: r
  82224. };
  82225. }
  82226. function Bst(t, e, n, r) {
  82227. var i = n.payloadBatch, a = e.axis, o = a.model, s = e.axisPointerModel;
  82228. if (!(!e.triggerTooltip || !i.length)) {
  82229. var l = e.coordSys.model, u = o_(l), c = t.map[u];
  82230. c || (c = t.map[u] = {
  82231. coordSysId: l.id,
  82232. coordSysIndex: l.componentIndex,
  82233. coordSysType: l.type,
  82234. coordSysMainType: l.mainType,
  82235. dataByAxis: []
  82236. }, t.list.push(c)), c.dataByAxis.push({
  82237. axisDim: a.dim,
  82238. axisIndex: o.componentIndex,
  82239. axisType: o.type,
  82240. axisId: o.id,
  82241. value: r,
  82242. // Caustion: viewHelper.getValueLabel is actually on "view stage", which
  82243. // depends that all models have been updated. So it should not be performed
  82244. // here. Considering axisPointerModel used here is volatile, which is hard
  82245. // to be retrieve in TooltipView, we prepare parameters here.
  82246. valueLabelOpt: {
  82247. precision: s.get(["label", "precision"]),
  82248. formatter: s.get(["label", "formatter"])
  82249. },
  82250. seriesDataIndices: i.slice()
  82251. });
  82252. }
  82253. }
  82254. function zst(t, e, n) {
  82255. var r = n.axesInfo = [];
  82256. F(e, function(i, a) {
  82257. var o = i.axisPointerModel.option, s = t[a];
  82258. s ? (!i.useHandle && (o.status = "show"), o.value = s.value, o.seriesDataIndices = (s.payloadBatch || []).slice()) : !i.useHandle && (o.status = "hide"), o.status === "show" && r.push({
  82259. axisDim: i.axis.dim,
  82260. axisIndex: i.axis.model.componentIndex,
  82261. value: o.value
  82262. });
  82263. });
  82264. }
  82265. function Vst(t, e, n, r) {
  82266. if (bw(e) || !t.list.length) {
  82267. r({
  82268. type: "hideTip"
  82269. });
  82270. return;
  82271. }
  82272. var i = ((t.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
  82273. r({
  82274. type: "showTip",
  82275. escapeConnect: !0,
  82276. x: e[0],
  82277. y: e[1],
  82278. tooltipOption: n.tooltipOption,
  82279. position: n.position,
  82280. dataIndexInside: i.dataIndexInside,
  82281. dataIndex: i.dataIndex,
  82282. seriesIndex: i.seriesIndex,
  82283. dataByCoordSys: t.list
  82284. });
  82285. }
  82286. function Fst(t, e, n) {
  82287. var r = n.getZr(), i = "axisPointerLastHighlights", a = NX(r)[i] || {}, o = NX(r)[i] = {};
  82288. F(t, function(u, c) {
  82289. var f = u.axisPointerModel.option;
  82290. f.status === "show" && u.triggerEmphasis && F(f.seriesDataIndices, function(d) {
  82291. var h = d.seriesIndex + " | " + d.dataIndex;
  82292. o[h] = d;
  82293. });
  82294. });
  82295. var s = [], l = [];
  82296. F(a, function(u, c) {
  82297. !o[c] && l.push(u);
  82298. }), F(o, function(u, c) {
  82299. !a[c] && s.push(u);
  82300. }), l.length && n.dispatchAction({
  82301. type: "downplay",
  82302. escapeConnect: !0,
  82303. // Not blur others when highlight in axisPointer.
  82304. notBlur: !0,
  82305. batch: l
  82306. }), s.length && n.dispatchAction({
  82307. type: "highlight",
  82308. escapeConnect: !0,
  82309. // Not blur others when highlight in axisPointer.
  82310. notBlur: !0,
  82311. batch: s
  82312. });
  82313. }
  82314. function Wst(t, e) {
  82315. for (var n = 0; n < (t || []).length; n++) {
  82316. var r = t[n];
  82317. if (e.axis.dim === r.axisDim && e.axis.model.componentIndex === r.axisIndex)
  82318. return r;
  82319. }
  82320. }
  82321. function zX(t) {
  82322. var e = t.axis.model, n = {}, r = n.axisDim = t.axis.dim;
  82323. return n.axisIndex = n[r + "AxisIndex"] = e.componentIndex, n.axisName = n[r + "AxisName"] = e.name, n.axisId = n[r + "AxisId"] = e.id, n;
  82324. }
  82325. function bw(t) {
  82326. return !t || t[0] == null || isNaN(t[0]) || t[1] == null || isNaN(t[1]);
  82327. }
  82328. function C1(t) {
  82329. bp.registerAxisPointerClass("CartesianAxisPointer", Tst), t.registerComponentModel($st), t.registerComponentView(Rst), t.registerPreprocessor(function(e) {
  82330. if (e) {
  82331. (!e.axisPointer || e.axisPointer.length === 0) && (e.axisPointer = {});
  82332. var n = e.axisPointer.link;
  82333. n && !Se(n) && (e.axisPointer.link = [n]);
  82334. }
  82335. }), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, function(e, n) {
  82336. e.getComponent("axisPointer").coordSysAxesInfo = Jet(e, n);
  82337. }), t.registerAction({
  82338. type: "updateAxisPointer",
  82339. event: "updateAxisPointer",
  82340. update: ":updateAxisPointer"
  82341. }, kst);
  82342. }
  82343. function Qst(t) {
  82344. Mt(Efe), Mt(C1);
  82345. }
  82346. var Hst = (
  82347. /** @class */
  82348. function(t) {
  82349. le(e, t);
  82350. function e() {
  82351. return t !== null && t.apply(this, arguments) || this;
  82352. }
  82353. return e.prototype.makeElOption = function(n, r, i, a, o) {
  82354. var s = i.axis;
  82355. s.dim === "angle" && (this.animationThreshold = Math.PI / 18);
  82356. var l = s.polar, u = l.getOtherAxis(s), c = u.getExtent(), f = s.dataToCoord(r), d = a.get("type");
  82357. if (d && d !== "none") {
  82358. var h = v6(a), p = jst[d](s, l, f, c);
  82359. p.style = h, n.graphicKey = p.type, n.pointer = p;
  82360. }
  82361. var v = a.get(["label", "margin"]), g = Gst(r, i, a, l, v);
  82362. Jde(n, i, a, o, g);
  82363. }, e;
  82364. }(p6)
  82365. );
  82366. function Gst(t, e, n, r, i) {
  82367. var a = e.axis, o = a.dataToCoord(t), s = r.getAngleAxis().getExtent()[0];
  82368. s = s / 180 * Math.PI;
  82369. var l = r.getRadiusAxis().getExtent(), u, c, f;
  82370. if (a.dim === "radius") {
  82371. var d = Na();
  82372. Lf(d, d, s), Gs(d, d, [r.cx, r.cy]), u = zs([o, -i], d);
  82373. var h = e.getModel("axisLabel").get("rotate") || 0, p = sa.innerTextLayout(s, h * Math.PI / 180, -1);
  82374. c = p.textAlign, f = p.textVerticalAlign;
  82375. } else {
  82376. var v = l[1];
  82377. u = r.coordToPoint([v + i, o]);
  82378. var g = r.cx, m = r.cy;
  82379. c = Math.abs(u[0] - g) / v < 0.3 ? "center" : u[0] > g ? "left" : "right", f = Math.abs(u[1] - m) / v < 0.3 ? "middle" : u[1] > m ? "top" : "bottom";
  82380. }
  82381. return {
  82382. position: u,
  82383. align: c,
  82384. verticalAlign: f
  82385. };
  82386. }
  82387. var jst = {
  82388. line: function(t, e, n, r) {
  82389. return t.dim === "angle" ? {
  82390. type: "Line",
  82391. shape: m6(e.coordToPoint([r[0], n]), e.coordToPoint([r[1], n]))
  82392. } : {
  82393. type: "Circle",
  82394. shape: {
  82395. cx: e.cx,
  82396. cy: e.cy,
  82397. r: n
  82398. }
  82399. };
  82400. },
  82401. shadow: function(t, e, n, r) {
  82402. var i = Math.max(1, t.getBandWidth()), a = Math.PI / 180;
  82403. return t.dim === "angle" ? {
  82404. type: "Sector",
  82405. shape: DX(
  82406. e.cx,
  82407. e.cy,
  82408. r[0],
  82409. r[1],
  82410. // In ECharts y is negative if angle is positive
  82411. (-n - i / 2) * a,
  82412. (-n + i / 2) * a
  82413. )
  82414. } : {
  82415. type: "Sector",
  82416. shape: DX(e.cx, e.cy, n - i / 2, n + i / 2, 0, Math.PI * 2)
  82417. };
  82418. }
  82419. }, Zst = (
  82420. /** @class */
  82421. function(t) {
  82422. le(e, t);
  82423. function e() {
  82424. var n = t !== null && t.apply(this, arguments) || this;
  82425. return n.type = e.type, n;
  82426. }
  82427. return e.prototype.findAxisModel = function(n) {
  82428. var r, i = this.ecModel;
  82429. return i.eachComponent(n, function(a) {
  82430. a.getCoordSysModel() === this && (r = a);
  82431. }, this), r;
  82432. }, e.type = "polar", e.dependencies = ["radiusAxis", "angleAxis"], e.defaultOption = {
  82433. // zlevel: 0,
  82434. z: 0,
  82435. center: ["50%", "50%"],
  82436. radius: "80%"
  82437. }, e;
  82438. }(At)
  82439. ), y6 = (
  82440. /** @class */
  82441. function(t) {
  82442. le(e, t);
  82443. function e() {
  82444. return t !== null && t.apply(this, arguments) || this;
  82445. }
  82446. return e.prototype.getCoordSysModel = function() {
  82447. return this.getReferringComponents("polar", Er).models[0];
  82448. }, e.type = "polarAxis", e;
  82449. }(At)
  82450. );
  82451. vr(y6, Dm);
  82452. var Ust = (
  82453. /** @class */
  82454. function(t) {
  82455. le(e, t);
  82456. function e() {
  82457. var n = t !== null && t.apply(this, arguments) || this;
  82458. return n.type = e.type, n;
  82459. }
  82460. return e.type = "angleAxis", e;
  82461. }(y6)
  82462. ), Xst = (
  82463. /** @class */
  82464. function(t) {
  82465. le(e, t);
  82466. function e() {
  82467. var n = t !== null && t.apply(this, arguments) || this;
  82468. return n.type = e.type, n;
  82469. }
  82470. return e.type = "radiusAxis", e;
  82471. }(y6)
  82472. ), b6 = (
  82473. /** @class */
  82474. function(t) {
  82475. le(e, t);
  82476. function e(n, r) {
  82477. return t.call(this, "radius", n, r) || this;
  82478. }
  82479. return e.prototype.pointToData = function(n, r) {
  82480. return this.polar.pointToData(n, r)[this.dim === "radius" ? 0 : 1];
  82481. }, e;
  82482. }(vs)
  82483. );
  82484. b6.prototype.dataToRadius = vs.prototype.dataToCoord;
  82485. b6.prototype.radiusToData = vs.prototype.coordToData;
  82486. var Yst = Ut(), _6 = (
  82487. /** @class */
  82488. function(t) {
  82489. le(e, t);
  82490. function e(n, r) {
  82491. return t.call(this, "angle", n, r || [0, 360]) || this;
  82492. }
  82493. return e.prototype.pointToData = function(n, r) {
  82494. return this.polar.pointToData(n, r)[this.dim === "radius" ? 0 : 1];
  82495. }, e.prototype.calculateCategoryInterval = function() {
  82496. var n = this, r = n.getLabelModel(), i = n.scale, a = i.getExtent(), o = i.count();
  82497. if (a[1] - a[0] < 1)
  82498. return 0;
  82499. var s = a[0], l = n.dataToCoord(s + 1) - n.dataToCoord(s), u = Math.abs(l), c = o1(s == null ? "" : s + "", r.getFont(), "center", "top"), f = Math.max(c.height, 7), d = f / u;
  82500. isNaN(d) && (d = 1 / 0);
  82501. var h = Math.max(0, Math.floor(d)), p = Yst(n.model), v = p.lastAutoInterval, g = p.lastTickCount;
  82502. return v != null && g != null && Math.abs(v - h) <= 1 && Math.abs(g - o) <= 1 && v > h ? h = v : (p.lastTickCount = o, p.lastAutoInterval = h), h;
  82503. }, e;
  82504. }(vs)
  82505. );
  82506. _6.prototype.dataToAngle = vs.prototype.dataToCoord;
  82507. _6.prototype.angleToData = vs.prototype.coordToData;
  82508. var ahe = ["radius", "angle"], qst = (
  82509. /** @class */
  82510. function() {
  82511. function t(e) {
  82512. this.dimensions = ahe, this.type = "polar", this.cx = 0, this.cy = 0, this._radiusAxis = new b6(), this._angleAxis = new _6(), this.axisPointerEnabled = !0, this.name = e || "", this._radiusAxis.polar = this._angleAxis.polar = this;
  82513. }
  82514. return t.prototype.containPoint = function(e) {
  82515. var n = this.pointToCoord(e);
  82516. return this._radiusAxis.contain(n[0]) && this._angleAxis.contain(n[1]);
  82517. }, t.prototype.containData = function(e) {
  82518. return this._radiusAxis.containData(e[0]) && this._angleAxis.containData(e[1]);
  82519. }, t.prototype.getAxis = function(e) {
  82520. var n = "_" + e + "Axis";
  82521. return this[n];
  82522. }, t.prototype.getAxes = function() {
  82523. return [this._radiusAxis, this._angleAxis];
  82524. }, t.prototype.getAxesByScale = function(e) {
  82525. var n = [], r = this._angleAxis, i = this._radiusAxis;
  82526. return r.scale.type === e && n.push(r), i.scale.type === e && n.push(i), n;
  82527. }, t.prototype.getAngleAxis = function() {
  82528. return this._angleAxis;
  82529. }, t.prototype.getRadiusAxis = function() {
  82530. return this._radiusAxis;
  82531. }, t.prototype.getOtherAxis = function(e) {
  82532. var n = this._angleAxis;
  82533. return e === n ? this._radiusAxis : n;
  82534. }, t.prototype.getBaseAxis = function() {
  82535. return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAngleAxis();
  82536. }, t.prototype.getTooltipAxes = function(e) {
  82537. var n = e != null && e !== "auto" ? this.getAxis(e) : this.getBaseAxis();
  82538. return {
  82539. baseAxes: [n],
  82540. otherAxes: [this.getOtherAxis(n)]
  82541. };
  82542. }, t.prototype.dataToPoint = function(e, n) {
  82543. return this.coordToPoint([this._radiusAxis.dataToRadius(e[0], n), this._angleAxis.dataToAngle(e[1], n)]);
  82544. }, t.prototype.pointToData = function(e, n) {
  82545. var r = this.pointToCoord(e);
  82546. return [this._radiusAxis.radiusToData(r[0], n), this._angleAxis.angleToData(r[1], n)];
  82547. }, t.prototype.pointToCoord = function(e) {
  82548. var n = e[0] - this.cx, r = e[1] - this.cy, i = this.getAngleAxis(), a = i.getExtent(), o = Math.min(a[0], a[1]), s = Math.max(a[0], a[1]);
  82549. i.inverse ? o = s - 360 : s = o + 360;
  82550. var l = Math.sqrt(n * n + r * r);
  82551. n /= l, r /= l;
  82552. for (var u = Math.atan2(-r, n) / Math.PI * 180, c = u < o ? 1 : -1; u < o || u > s; )
  82553. u += c * 360;
  82554. return [l, u];
  82555. }, t.prototype.coordToPoint = function(e) {
  82556. var n = e[0], r = e[1] / 180 * Math.PI, i = Math.cos(r) * n + this.cx, a = -Math.sin(r) * n + this.cy;
  82557. return [i, a];
  82558. }, t.prototype.getArea = function() {
  82559. var e = this.getAngleAxis(), n = this.getRadiusAxis(), r = n.getExtent().slice();
  82560. r[0] > r[1] && r.reverse();
  82561. var i = e.getExtent(), a = Math.PI / 180;
  82562. return {
  82563. cx: this.cx,
  82564. cy: this.cy,
  82565. r0: r[0],
  82566. r: r[1],
  82567. startAngle: -i[0] * a,
  82568. endAngle: -i[1] * a,
  82569. clockwise: e.inverse,
  82570. contain: function(o, s) {
  82571. var l = o - this.cx, u = s - this.cy, c = l * l + u * u - 1e-4, f = this.r, d = this.r0;
  82572. return c <= f * f && c >= d * d;
  82573. }
  82574. };
  82575. }, t.prototype.convertToPixel = function(e, n, r) {
  82576. var i = VX(n);
  82577. return i === this ? this.dataToPoint(r) : null;
  82578. }, t.prototype.convertFromPixel = function(e, n, r) {
  82579. var i = VX(n);
  82580. return i === this ? this.pointToData(r) : null;
  82581. }, t;
  82582. }()
  82583. );
  82584. function VX(t) {
  82585. var e = t.seriesModel, n = t.polarModel;
  82586. return n && n.coordinateSystem || e && e.coordinateSystem;
  82587. }
  82588. const Kst = qst;
  82589. function Jst(t, e, n) {
  82590. var r = e.get("center"), i = n.getWidth(), a = n.getHeight();
  82591. t.cx = ze(r[0], i), t.cy = ze(r[1], a);
  82592. var o = t.getRadiusAxis(), s = Math.min(i, a) / 2, l = e.get("radius");
  82593. l == null ? l = [0, "100%"] : Se(l) || (l = [0, l]);
  82594. var u = [ze(l[0], s), ze(l[1], s)];
  82595. o.inverse ? o.setExtent(u[1], u[0]) : o.setExtent(u[0], u[1]);
  82596. }
  82597. function elt(t, e) {
  82598. var n = this, r = n.getAngleAxis(), i = n.getRadiusAxis();
  82599. if (r.scale.setExtent(1 / 0, -1 / 0), i.scale.setExtent(1 / 0, -1 / 0), t.eachSeries(function(s) {
  82600. if (s.coordinateSystem === n) {
  82601. var l = s.getData();
  82602. F(qC(l, "radius"), function(u) {
  82603. i.scale.unionExtentFromData(l, u);
  82604. }), F(qC(l, "angle"), function(u) {
  82605. r.scale.unionExtentFromData(l, u);
  82606. });
  82607. }
  82608. }), Xh(r.scale, r.model), Xh(i.scale, i.model), r.type === "category" && !r.onBand) {
  82609. var a = r.getExtent(), o = 360 / r.scale.count();
  82610. r.inverse ? a[1] += o : a[1] -= o, r.setExtent(a[0], a[1]);
  82611. }
  82612. }
  82613. function tlt(t) {
  82614. return t.mainType === "angleAxis";
  82615. }
  82616. function FX(t, e) {
  82617. var n;
  82618. if (t.type = e.get("type"), t.scale = g1(e), t.onBand = e.get("boundaryGap") && t.type === "category", t.inverse = e.get("inverse"), tlt(e)) {
  82619. t.inverse = t.inverse !== e.get("clockwise");
  82620. var r = e.get("startAngle"), i = (n = e.get("endAngle")) !== null && n !== void 0 ? n : r + (t.inverse ? -360 : 360);
  82621. t.setExtent(r, i);
  82622. }
  82623. e.axis = t, t.model = e;
  82624. }
  82625. var nlt = {
  82626. dimensions: ahe,
  82627. create: function(t, e) {
  82628. var n = [];
  82629. return t.eachComponent("polar", function(r, i) {
  82630. var a = new Kst(i + "");
  82631. a.update = elt;
  82632. var o = a.getRadiusAxis(), s = a.getAngleAxis(), l = r.findAxisModel("radiusAxis"), u = r.findAxisModel("angleAxis");
  82633. FX(o, l), FX(s, u), Jst(a, r, e), n.push(a), r.coordinateSystem = a, a.model = r;
  82634. }), t.eachSeries(function(r) {
  82635. if (r.get("coordinateSystem") === "polar") {
  82636. var i = r.getReferringComponents("polar", Er).models[0];
  82637. if (process.env.NODE_ENV !== "production" && !i)
  82638. throw new Error('Polar "' + Or(r.get("polarIndex"), r.get("polarId"), 0) + '" not found');
  82639. r.coordinateSystem = i.coordinateSystem;
  82640. }
  82641. }), n;
  82642. }
  82643. }, rlt = ["axisLine", "axisLabel", "axisTick", "minorTick", "splitLine", "minorSplitLine", "splitArea"];
  82644. function XS(t, e, n) {
  82645. e[1] > e[0] && (e = e.slice().reverse());
  82646. var r = t.coordToPoint([e[0], n]), i = t.coordToPoint([e[1], n]);
  82647. return {
  82648. x1: r[0],
  82649. y1: r[1],
  82650. x2: i[0],
  82651. y2: i[1]
  82652. };
  82653. }
  82654. function YS(t) {
  82655. var e = t.getRadiusAxis();
  82656. return e.inverse ? 0 : 1;
  82657. }
  82658. function WX(t) {
  82659. var e = t[0], n = t[t.length - 1];
  82660. e && n && Math.abs(Math.abs(e.coord - n.coord) - 360) < 1e-4 && t.pop();
  82661. }
  82662. var ilt = (
  82663. /** @class */
  82664. function(t) {
  82665. le(e, t);
  82666. function e() {
  82667. var n = t !== null && t.apply(this, arguments) || this;
  82668. return n.type = e.type, n.axisPointerClass = "PolarAxisPointer", n;
  82669. }
  82670. return e.prototype.render = function(n, r) {
  82671. if (this.group.removeAll(), !!n.get("show")) {
  82672. var i = n.axis, a = i.polar, o = a.getRadiusAxis().getExtent(), s = i.getTicksCoords(), l = i.getMinorTicksCoords(), u = Ce(i.getViewLabels(), function(c) {
  82673. c = ot(c);
  82674. var f = i.scale, d = f.type === "ordinal" ? f.getRawOrdinalNumber(c.tickValue) : c.tickValue;
  82675. return c.coord = i.dataToCoord(d), c;
  82676. });
  82677. WX(u), WX(s), F(rlt, function(c) {
  82678. n.get([c, "show"]) && (!i.scale.isBlank() || c === "axisLine") && alt[c](this.group, n, a, s, l, o, u);
  82679. }, this);
  82680. }
  82681. }, e.type = "angleAxis", e;
  82682. }(bp)
  82683. ), alt = {
  82684. axisLine: function(t, e, n, r, i, a) {
  82685. var o = e.getModel(["axisLine", "lineStyle"]), s = n.getAngleAxis(), l = Math.PI / 180, u = s.getExtent(), c = YS(n), f = c ? 0 : 1, d, h = Math.abs(u[1] - u[0]) === 360 ? "Circle" : "Arc";
  82686. a[f] === 0 ? d = new hp[h]({
  82687. shape: {
  82688. cx: n.cx,
  82689. cy: n.cy,
  82690. r: a[c],
  82691. startAngle: -u[0] * l,
  82692. endAngle: -u[1] * l,
  82693. clockwise: s.inverse
  82694. },
  82695. style: o.getLineStyle(),
  82696. z2: 1,
  82697. silent: !0
  82698. }) : d = new c1({
  82699. shape: {
  82700. cx: n.cx,
  82701. cy: n.cy,
  82702. r: a[c],
  82703. r0: a[f]
  82704. },
  82705. style: o.getLineStyle(),
  82706. z2: 1,
  82707. silent: !0
  82708. }), d.style.fill = null, t.add(d);
  82709. },
  82710. axisTick: function(t, e, n, r, i, a) {
  82711. var o = e.getModel("axisTick"), s = (o.get("inside") ? -1 : 1) * o.get("length"), l = a[YS(n)], u = Ce(r, function(c) {
  82712. return new Xr({
  82713. shape: XS(n, [l, l + s], c.coord)
  82714. });
  82715. });
  82716. t.add(no(u, {
  82717. style: it(o.getModel("lineStyle").getLineStyle(), {
  82718. stroke: e.get(["axisLine", "lineStyle", "color"])
  82719. })
  82720. }));
  82721. },
  82722. minorTick: function(t, e, n, r, i, a) {
  82723. if (i.length) {
  82724. for (var o = e.getModel("axisTick"), s = e.getModel("minorTick"), l = (o.get("inside") ? -1 : 1) * s.get("length"), u = a[YS(n)], c = [], f = 0; f < i.length; f++)
  82725. for (var d = 0; d < i[f].length; d++)
  82726. c.push(new Xr({
  82727. shape: XS(n, [u, u + l], i[f][d].coord)
  82728. }));
  82729. t.add(no(c, {
  82730. style: it(s.getModel("lineStyle").getLineStyle(), it(o.getLineStyle(), {
  82731. stroke: e.get(["axisLine", "lineStyle", "color"])
  82732. }))
  82733. }));
  82734. }
  82735. },
  82736. axisLabel: function(t, e, n, r, i, a, o) {
  82737. var s = e.getCategories(!0), l = e.getModel("axisLabel"), u = l.get("margin"), c = e.get("triggerEvent");
  82738. F(o, function(f, d) {
  82739. var h = l, p = f.tickValue, v = a[YS(n)], g = n.coordToPoint([v + u, f.coord]), m = n.cx, y = n.cy, _ = Math.abs(g[0] - m) / v < 0.3 ? "center" : g[0] > m ? "left" : "right", O = Math.abs(g[1] - y) / v < 0.3 ? "middle" : g[1] > y ? "top" : "bottom";
  82740. if (s && s[p]) {
  82741. var S = s[p];
  82742. nt(S) && S.textStyle && (h = new wn(S.textStyle, l, l.ecModel));
  82743. }
  82744. var x = new jt({
  82745. silent: sa.isLabelSilent(e),
  82746. style: Mn(h, {
  82747. x: g[0],
  82748. y: g[1],
  82749. fill: h.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
  82750. text: f.formattedLabel,
  82751. align: _,
  82752. verticalAlign: O
  82753. })
  82754. });
  82755. if (t.add(x), c) {
  82756. var C = sa.makeAxisEventDataBase(e);
  82757. C.targetType = "axisLabel", C.value = f.rawLabel, ft(x).eventData = C;
  82758. }
  82759. }, this);
  82760. },
  82761. splitLine: function(t, e, n, r, i, a) {
  82762. var o = e.getModel("splitLine"), s = o.getModel("lineStyle"), l = s.get("color"), u = 0;
  82763. l = l instanceof Array ? l : [l];
  82764. for (var c = [], f = 0; f < r.length; f++) {
  82765. var d = u++ % l.length;
  82766. c[d] = c[d] || [], c[d].push(new Xr({
  82767. shape: XS(n, a, r[f].coord)
  82768. }));
  82769. }
  82770. for (var f = 0; f < c.length; f++)
  82771. t.add(no(c[f], {
  82772. style: it({
  82773. stroke: l[f % l.length]
  82774. }, s.getLineStyle()),
  82775. silent: !0,
  82776. z: e.get("z")
  82777. }));
  82778. },
  82779. minorSplitLine: function(t, e, n, r, i, a) {
  82780. if (i.length) {
  82781. for (var o = e.getModel("minorSplitLine"), s = o.getModel("lineStyle"), l = [], u = 0; u < i.length; u++)
  82782. for (var c = 0; c < i[u].length; c++)
  82783. l.push(new Xr({
  82784. shape: XS(n, a, i[u][c].coord)
  82785. }));
  82786. t.add(no(l, {
  82787. style: s.getLineStyle(),
  82788. silent: !0,
  82789. z: e.get("z")
  82790. }));
  82791. }
  82792. },
  82793. splitArea: function(t, e, n, r, i, a) {
  82794. if (r.length) {
  82795. var o = e.getModel("splitArea"), s = o.getModel("areaStyle"), l = s.get("color"), u = 0;
  82796. l = l instanceof Array ? l : [l];
  82797. for (var c = [], f = Math.PI / 180, d = -r[0].coord * f, h = Math.min(a[0], a[1]), p = Math.max(a[0], a[1]), v = e.get("clockwise"), g = 1, m = r.length; g <= m; g++) {
  82798. var y = g === m ? r[0].coord : r[g].coord, _ = u++ % l.length;
  82799. c[_] = c[_] || [], c[_].push(new ha({
  82800. shape: {
  82801. cx: n.cx,
  82802. cy: n.cy,
  82803. r0: h,
  82804. r: p,
  82805. startAngle: d,
  82806. endAngle: -y * f,
  82807. clockwise: v
  82808. },
  82809. silent: !0
  82810. })), d = -y * f;
  82811. }
  82812. for (var g = 0; g < c.length; g++)
  82813. t.add(no(c[g], {
  82814. style: it({
  82815. fill: l[g % l.length]
  82816. }, s.getAreaStyle()),
  82817. silent: !0
  82818. }));
  82819. }
  82820. }
  82821. }, olt = ["axisLine", "axisTickLabel", "axisName"], slt = ["splitLine", "splitArea", "minorSplitLine"], llt = (
  82822. /** @class */
  82823. function(t) {
  82824. le(e, t);
  82825. function e() {
  82826. var n = t !== null && t.apply(this, arguments) || this;
  82827. return n.type = e.type, n.axisPointerClass = "PolarAxisPointer", n;
  82828. }
  82829. return e.prototype.render = function(n, r) {
  82830. if (this.group.removeAll(), !!n.get("show")) {
  82831. var i = this._axisGroup, a = this._axisGroup = new ct();
  82832. this.group.add(a);
  82833. var o = n.axis, s = o.polar, l = s.getAngleAxis(), u = o.getTicksCoords(), c = o.getMinorTicksCoords(), f = l.getExtent()[0], d = o.getExtent(), h = clt(s, n, f), p = new sa(n, h);
  82834. F(olt, p.add, p), a.add(p.getGroup()), h1(i, a, n), F(slt, function(v) {
  82835. n.get([v, "show"]) && !o.scale.isBlank() && ult[v](this.group, n, s, f, d, u, c);
  82836. }, this);
  82837. }
  82838. }, e.type = "radiusAxis", e;
  82839. }(bp)
  82840. ), ult = {
  82841. splitLine: function(t, e, n, r, i, a) {
  82842. var o = e.getModel("splitLine"), s = o.getModel("lineStyle"), l = s.get("color"), u = 0, c = n.getAngleAxis(), f = Math.PI / 180, d = c.getExtent(), h = Math.abs(d[1] - d[0]) === 360 ? "Circle" : "Arc";
  82843. l = l instanceof Array ? l : [l];
  82844. for (var p = [], v = 0; v < a.length; v++) {
  82845. var g = u++ % l.length;
  82846. p[g] = p[g] || [], p[g].push(new hp[h]({
  82847. shape: {
  82848. cx: n.cx,
  82849. cy: n.cy,
  82850. // ensure circle radius >= 0
  82851. r: Math.max(a[v].coord, 0),
  82852. startAngle: -d[0] * f,
  82853. endAngle: -d[1] * f,
  82854. clockwise: c.inverse
  82855. }
  82856. }));
  82857. }
  82858. for (var v = 0; v < p.length; v++)
  82859. t.add(no(p[v], {
  82860. style: it({
  82861. stroke: l[v % l.length],
  82862. fill: null
  82863. }, s.getLineStyle()),
  82864. silent: !0
  82865. }));
  82866. },
  82867. minorSplitLine: function(t, e, n, r, i, a, o) {
  82868. if (o.length) {
  82869. for (var s = e.getModel("minorSplitLine"), l = s.getModel("lineStyle"), u = [], c = 0; c < o.length; c++)
  82870. for (var f = 0; f < o[c].length; f++)
  82871. u.push(new ic({
  82872. shape: {
  82873. cx: n.cx,
  82874. cy: n.cy,
  82875. r: o[c][f].coord
  82876. }
  82877. }));
  82878. t.add(no(u, {
  82879. style: it({
  82880. fill: null
  82881. }, l.getLineStyle()),
  82882. silent: !0
  82883. }));
  82884. }
  82885. },
  82886. splitArea: function(t, e, n, r, i, a) {
  82887. if (a.length) {
  82888. var o = e.getModel("splitArea"), s = o.getModel("areaStyle"), l = s.get("color"), u = 0;
  82889. l = l instanceof Array ? l : [l];
  82890. for (var c = [], f = a[0].coord, d = 1; d < a.length; d++) {
  82891. var h = u++ % l.length;
  82892. c[h] = c[h] || [], c[h].push(new ha({
  82893. shape: {
  82894. cx: n.cx,
  82895. cy: n.cy,
  82896. r0: f,
  82897. r: a[d].coord,
  82898. startAngle: 0,
  82899. endAngle: Math.PI * 2
  82900. },
  82901. silent: !0
  82902. })), f = a[d].coord;
  82903. }
  82904. for (var d = 0; d < c.length; d++)
  82905. t.add(no(c[d], {
  82906. style: it({
  82907. fill: l[d % l.length]
  82908. }, s.getAreaStyle()),
  82909. silent: !0
  82910. }));
  82911. }
  82912. }
  82913. };
  82914. function clt(t, e, n) {
  82915. return {
  82916. position: [t.cx, t.cy],
  82917. rotation: n / 180 * Math.PI,
  82918. labelDirection: -1,
  82919. tickDirection: -1,
  82920. nameDirection: 1,
  82921. labelRotate: e.getModel("axisLabel").get("rotate"),
  82922. // Over splitLine and splitArea
  82923. z2: 1
  82924. };
  82925. }
  82926. function ohe(t) {
  82927. return t.get("stack") || "__ec_stack_" + t.seriesIndex;
  82928. }
  82929. function she(t, e) {
  82930. return e.dim + t.model.componentIndex;
  82931. }
  82932. function flt(t, e, n) {
  82933. var r = {}, i = dlt(yn(e.getSeriesByType(t), function(a) {
  82934. return !e.isSeriesFiltered(a) && a.coordinateSystem && a.coordinateSystem.type === "polar";
  82935. }));
  82936. e.eachSeriesByType(t, function(a) {
  82937. if (a.coordinateSystem.type === "polar") {
  82938. var o = a.getData(), s = a.coordinateSystem, l = s.getBaseAxis(), u = she(s, l), c = ohe(a), f = i[u][c], d = f.offset, h = f.width, p = s.getOtherAxis(l), v = a.coordinateSystem.cx, g = a.coordinateSystem.cy, m = a.get("barMinHeight") || 0, y = a.get("barMinAngle") || 0;
  82939. r[c] = r[c] || [];
  82940. for (var _ = o.mapDimension(p.dim), O = o.mapDimension(l.dim), S = Hu(
  82941. o,
  82942. _
  82943. /* , baseDim */
  82944. ), x = l.dim !== "radius" || !a.get("roundCap", !0), C = p.model, P = C.get("startValue"), $ = p.dataToCoord(P || 0), T = 0, E = o.count(); T < E; T++) {
  82945. var M = o.get(_, T), R = o.get(O, T), N = M >= 0 ? "p" : "n", I = $;
  82946. S && (r[c][R] || (r[c][R] = {
  82947. p: $,
  82948. n: $
  82949. // Negative stack
  82950. }), I = r[c][R][N]);
  82951. var B = void 0, Q = void 0, W = void 0, H = void 0;
  82952. if (p.dim === "radius") {
  82953. var U = p.dataToCoord(M) - $, j = l.dataToCoord(R);
  82954. Math.abs(U) < m && (U = (U < 0 ? -1 : 1) * m), B = I, Q = I + U, W = j - d, H = W - h, S && (r[c][R][N] = Q);
  82955. } else {
  82956. var Y = p.dataToCoord(M, x) - $, ne = l.dataToCoord(R);
  82957. Math.abs(Y) < y && (Y = (Y < 0 ? -1 : 1) * y), B = ne + d, Q = B + h, W = I, H = I + Y, S && (r[c][R][N] = H);
  82958. }
  82959. o.setItemLayout(T, {
  82960. cx: v,
  82961. cy: g,
  82962. r0: B,
  82963. r: Q,
  82964. // Consider that positive angle is anti-clockwise,
  82965. // while positive radian of sector is clockwise
  82966. startAngle: -W * Math.PI / 180,
  82967. endAngle: -H * Math.PI / 180,
  82968. /**
  82969. * Keep the same logic with bar in catesion: use end value to
  82970. * control direction. Notice that if clockwise is true (by
  82971. * default), the sector will always draw clockwisely, no matter
  82972. * whether endAngle is greater or less than startAngle.
  82973. */
  82974. clockwise: W >= H
  82975. });
  82976. }
  82977. }
  82978. });
  82979. }
  82980. function dlt(t) {
  82981. var e = {};
  82982. F(t, function(r, i) {
  82983. var a = r.getData(), o = r.coordinateSystem, s = o.getBaseAxis(), l = she(o, s), u = s.getExtent(), c = s.type === "category" ? s.getBandWidth() : Math.abs(u[1] - u[0]) / a.count(), f = e[l] || {
  82984. bandWidth: c,
  82985. remainedWidth: c,
  82986. autoWidthCount: 0,
  82987. categoryGap: "20%",
  82988. gap: "30%",
  82989. stacks: {}
  82990. }, d = f.stacks;
  82991. e[l] = f;
  82992. var h = ohe(r);
  82993. d[h] || f.autoWidthCount++, d[h] = d[h] || {
  82994. width: 0,
  82995. maxWidth: 0
  82996. };
  82997. var p = ze(r.get("barWidth"), c), v = ze(r.get("barMaxWidth"), c), g = r.get("barGap"), m = r.get("barCategoryGap");
  82998. p && !d[h].width && (p = Math.min(f.remainedWidth, p), d[h].width = p, f.remainedWidth -= p), v && (d[h].maxWidth = v), g != null && (f.gap = g), m != null && (f.categoryGap = m);
  82999. });
  83000. var n = {};
  83001. return F(e, function(r, i) {
  83002. n[i] = {};
  83003. var a = r.stacks, o = r.bandWidth, s = ze(r.categoryGap, o), l = ze(r.gap, 1), u = r.remainedWidth, c = r.autoWidthCount, f = (u - s) / (c + (c - 1) * l);
  83004. f = Math.max(f, 0), F(a, function(v, g) {
  83005. var m = v.maxWidth;
  83006. m && m < f && (m = Math.min(m, u), v.width && (m = Math.min(m, v.width)), u -= m, v.width = m, c--);
  83007. }), f = (u - s) / (c + (c - 1) * l), f = Math.max(f, 0);
  83008. var d = 0, h;
  83009. F(a, function(v, g) {
  83010. v.width || (v.width = f), h = v, d += v.width * (1 + l);
  83011. }), h && (d -= h.width * l);
  83012. var p = -d / 2;
  83013. F(a, function(v, g) {
  83014. n[i][g] = n[i][g] || {
  83015. offset: p,
  83016. width: v.width
  83017. }, p += v.width * (1 + l);
  83018. });
  83019. }), n;
  83020. }
  83021. var hlt = {
  83022. startAngle: 90,
  83023. clockwise: !0,
  83024. splitNumber: 12,
  83025. axisLabel: {
  83026. rotate: 0
  83027. }
  83028. }, plt = {
  83029. splitNumber: 5
  83030. }, vlt = (
  83031. /** @class */
  83032. function(t) {
  83033. le(e, t);
  83034. function e() {
  83035. var n = t !== null && t.apply(this, arguments) || this;
  83036. return n.type = e.type, n;
  83037. }
  83038. return e.type = "polar", e;
  83039. }(Ln)
  83040. );
  83041. function glt(t) {
  83042. Mt(C1), bp.registerAxisPointerClass("PolarAxisPointer", Hst), t.registerCoordinateSystem("polar", nlt), t.registerComponentModel(Zst), t.registerComponentView(vlt), Zg(t, "angle", Ust, hlt), Zg(t, "radius", Xst, plt), t.registerComponentView(ilt), t.registerComponentView(llt), t.registerLayout(vt(flt, "bar"));
  83043. }
  83044. function PL(t, e) {
  83045. e = e || {};
  83046. var n = t.coordinateSystem, r = t.axis, i = {}, a = r.position, o = r.orient, s = n.getRect(), l = [s.x, s.x + s.width, s.y, s.y + s.height], u = {
  83047. horizontal: {
  83048. top: l[2],
  83049. bottom: l[3]
  83050. },
  83051. vertical: {
  83052. left: l[0],
  83053. right: l[1]
  83054. }
  83055. };
  83056. i.position = [o === "vertical" ? u.vertical[a] : l[0], o === "horizontal" ? u.horizontal[a] : l[3]];
  83057. var c = {
  83058. horizontal: 0,
  83059. vertical: 1
  83060. };
  83061. i.rotation = Math.PI / 2 * c[o];
  83062. var f = {
  83063. top: -1,
  83064. bottom: 1,
  83065. right: 1,
  83066. left: -1
  83067. };
  83068. i.labelDirection = i.tickDirection = i.nameDirection = f[a], t.get(["axisTick", "inside"]) && (i.tickDirection = -i.tickDirection), Or(e.labelInside, t.get(["axisLabel", "inside"])) && (i.labelDirection = -i.labelDirection);
  83069. var d = e.rotate;
  83070. return d == null && (d = t.get(["axisLabel", "rotate"])), i.labelRotation = a === "top" ? -d : d, i.z2 = 1, i;
  83071. }
  83072. var mlt = ["axisLine", "axisTickLabel", "axisName"], ylt = ["splitArea", "splitLine"], blt = (
  83073. /** @class */
  83074. function(t) {
  83075. le(e, t);
  83076. function e() {
  83077. var n = t !== null && t.apply(this, arguments) || this;
  83078. return n.type = e.type, n.axisPointerClass = "SingleAxisPointer", n;
  83079. }
  83080. return e.prototype.render = function(n, r, i, a) {
  83081. var o = this.group;
  83082. o.removeAll();
  83083. var s = this._axisGroup;
  83084. this._axisGroup = new ct();
  83085. var l = PL(n), u = new sa(n, l);
  83086. F(mlt, u.add, u), o.add(this._axisGroup), o.add(u.getGroup()), F(ylt, function(c) {
  83087. n.get([c, "show"]) && _lt[c](this, this.group, this._axisGroup, n);
  83088. }, this), h1(s, this._axisGroup, n), t.prototype.render.call(this, n, r, i, a);
  83089. }, e.prototype.remove = function() {
  83090. Pfe(this);
  83091. }, e.type = "singleAxis", e;
  83092. }(bp)
  83093. ), _lt = {
  83094. splitLine: function(t, e, n, r) {
  83095. var i = r.axis;
  83096. if (!i.scale.isBlank()) {
  83097. var a = r.getModel("splitLine"), o = a.getModel("lineStyle"), s = o.get("color");
  83098. s = s instanceof Array ? s : [s];
  83099. for (var l = o.get("width"), u = r.coordinateSystem.getRect(), c = i.isHorizontal(), f = [], d = 0, h = i.getTicksCoords({
  83100. tickModel: a
  83101. }), p = [], v = [], g = 0; g < h.length; ++g) {
  83102. var m = i.toGlobalCoord(h[g].coord);
  83103. c ? (p[0] = m, p[1] = u.y, v[0] = m, v[1] = u.y + u.height) : (p[0] = u.x, p[1] = m, v[0] = u.x + u.width, v[1] = m);
  83104. var y = new Xr({
  83105. shape: {
  83106. x1: p[0],
  83107. y1: p[1],
  83108. x2: v[0],
  83109. y2: v[1]
  83110. },
  83111. silent: !0
  83112. });
  83113. Qg(y.shape, l);
  83114. var _ = d++ % s.length;
  83115. f[_] = f[_] || [], f[_].push(y);
  83116. }
  83117. for (var O = o.getLineStyle(["color"]), g = 0; g < f.length; ++g)
  83118. e.add(no(f[g], {
  83119. style: it({
  83120. stroke: s[g % s.length]
  83121. }, O),
  83122. silent: !0
  83123. }));
  83124. }
  83125. },
  83126. splitArea: function(t, e, n, r) {
  83127. Tfe(t, n, r, r);
  83128. }
  83129. }, _w = (
  83130. /** @class */
  83131. function(t) {
  83132. le(e, t);
  83133. function e() {
  83134. var n = t !== null && t.apply(this, arguments) || this;
  83135. return n.type = e.type, n;
  83136. }
  83137. return e.prototype.getCoordSysModel = function() {
  83138. return this;
  83139. }, e.type = "singleAxis", e.layoutMode = "box", e.defaultOption = {
  83140. left: "5%",
  83141. top: "5%",
  83142. right: "5%",
  83143. bottom: "5%",
  83144. type: "value",
  83145. position: "bottom",
  83146. orient: "horizontal",
  83147. axisLine: {
  83148. show: !0,
  83149. lineStyle: {
  83150. width: 1,
  83151. type: "solid"
  83152. }
  83153. },
  83154. // Single coordinate system and single axis is the,
  83155. // which is used as the parent tooltip model.
  83156. // same model, so we set default tooltip show as true.
  83157. tooltip: {
  83158. show: !0
  83159. },
  83160. axisTick: {
  83161. show: !0,
  83162. length: 6,
  83163. lineStyle: {
  83164. width: 1
  83165. }
  83166. },
  83167. axisLabel: {
  83168. show: !0,
  83169. interval: "auto"
  83170. },
  83171. splitLine: {
  83172. show: !0,
  83173. lineStyle: {
  83174. type: "dashed",
  83175. opacity: 0.2
  83176. }
  83177. }
  83178. }, e;
  83179. }(At)
  83180. );
  83181. vr(_w, Dm.prototype);
  83182. var Olt = (
  83183. /** @class */
  83184. function(t) {
  83185. le(e, t);
  83186. function e(n, r, i, a, o) {
  83187. var s = t.call(this, n, r, i) || this;
  83188. return s.type = a || "value", s.position = o || "bottom", s;
  83189. }
  83190. return e.prototype.isHorizontal = function() {
  83191. var n = this.position;
  83192. return n === "top" || n === "bottom";
  83193. }, e.prototype.pointToData = function(n, r) {
  83194. return this.coordinateSystem.pointToData(n)[0];
  83195. }, e;
  83196. }(vs)
  83197. ), lhe = ["single"], Slt = (
  83198. /** @class */
  83199. function() {
  83200. function t(e, n, r) {
  83201. this.type = "single", this.dimension = "single", this.dimensions = lhe, this.axisPointerEnabled = !0, this.model = e, this._init(e, n, r);
  83202. }
  83203. return t.prototype._init = function(e, n, r) {
  83204. var i = this.dimension, a = new Olt(i, g1(e), [0, 0], e.get("type"), e.get("position")), o = a.type === "category";
  83205. a.onBand = o && e.get("boundaryGap"), a.inverse = e.get("inverse"), a.orient = e.get("orient"), e.axis = a, a.model = e, a.coordinateSystem = this, this._axis = a;
  83206. }, t.prototype.update = function(e, n) {
  83207. e.eachSeries(function(r) {
  83208. if (r.coordinateSystem === this) {
  83209. var i = r.getData();
  83210. F(i.mapDimensionsAll(this.dimension), function(a) {
  83211. this._axis.scale.unionExtentFromData(i, a);
  83212. }, this), Xh(this._axis.scale, this._axis.model);
  83213. }
  83214. }, this);
  83215. }, t.prototype.resize = function(e, n) {
  83216. this._rect = Mr({
  83217. left: e.get("left"),
  83218. top: e.get("top"),
  83219. right: e.get("right"),
  83220. bottom: e.get("bottom"),
  83221. width: e.get("width"),
  83222. height: e.get("height")
  83223. }, {
  83224. width: n.getWidth(),
  83225. height: n.getHeight()
  83226. }), this._adjustAxis();
  83227. }, t.prototype.getRect = function() {
  83228. return this._rect;
  83229. }, t.prototype._adjustAxis = function() {
  83230. var e = this._rect, n = this._axis, r = n.isHorizontal(), i = r ? [0, e.width] : [0, e.height], a = n.inverse ? 1 : 0;
  83231. n.setExtent(i[a], i[1 - a]), this._updateAxisTransform(n, r ? e.x : e.y);
  83232. }, t.prototype._updateAxisTransform = function(e, n) {
  83233. var r = e.getExtent(), i = r[0] + r[1], a = e.isHorizontal();
  83234. e.toGlobalCoord = a ? function(o) {
  83235. return o + n;
  83236. } : function(o) {
  83237. return i - o + n;
  83238. }, e.toLocalCoord = a ? function(o) {
  83239. return o - n;
  83240. } : function(o) {
  83241. return i - o + n;
  83242. };
  83243. }, t.prototype.getAxis = function() {
  83244. return this._axis;
  83245. }, t.prototype.getBaseAxis = function() {
  83246. return this._axis;
  83247. }, t.prototype.getAxes = function() {
  83248. return [this._axis];
  83249. }, t.prototype.getTooltipAxes = function() {
  83250. return {
  83251. baseAxes: [this.getAxis()],
  83252. // Empty otherAxes
  83253. otherAxes: []
  83254. };
  83255. }, t.prototype.containPoint = function(e) {
  83256. var n = this.getRect(), r = this.getAxis(), i = r.orient;
  83257. return i === "horizontal" ? r.contain(r.toLocalCoord(e[0])) && e[1] >= n.y && e[1] <= n.y + n.height : r.contain(r.toLocalCoord(e[1])) && e[0] >= n.y && e[0] <= n.y + n.height;
  83258. }, t.prototype.pointToData = function(e) {
  83259. var n = this.getAxis();
  83260. return [n.coordToData(n.toLocalCoord(e[n.orient === "horizontal" ? 0 : 1]))];
  83261. }, t.prototype.dataToPoint = function(e) {
  83262. var n = this.getAxis(), r = this.getRect(), i = [], a = n.orient === "horizontal" ? 0 : 1;
  83263. return e instanceof Array && (e = e[0]), i[a] = n.toGlobalCoord(n.dataToCoord(+e)), i[1 - a] = a === 0 ? r.y + r.height / 2 : r.x + r.width / 2, i;
  83264. }, t.prototype.convertToPixel = function(e, n, r) {
  83265. var i = QX(n);
  83266. return i === this ? this.dataToPoint(r) : null;
  83267. }, t.prototype.convertFromPixel = function(e, n, r) {
  83268. var i = QX(n);
  83269. return i === this ? this.pointToData(r) : null;
  83270. }, t;
  83271. }()
  83272. );
  83273. function QX(t) {
  83274. var e = t.seriesModel, n = t.singleAxisModel;
  83275. return n && n.coordinateSystem || e && e.coordinateSystem;
  83276. }
  83277. function xlt(t, e) {
  83278. var n = [];
  83279. return t.eachComponent("singleAxis", function(r, i) {
  83280. var a = new Slt(r, t, e);
  83281. a.name = "single_" + i, a.resize(r, e), r.coordinateSystem = a, n.push(a);
  83282. }), t.eachSeries(function(r) {
  83283. if (r.get("coordinateSystem") === "singleAxis") {
  83284. var i = r.getReferringComponents("singleAxis", Er).models[0];
  83285. r.coordinateSystem = i && i.coordinateSystem;
  83286. }
  83287. }), n;
  83288. }
  83289. var wlt = {
  83290. create: xlt,
  83291. dimensions: lhe
  83292. }, HX = ["x", "y"], Clt = ["width", "height"], Tlt = (
  83293. /** @class */
  83294. function(t) {
  83295. le(e, t);
  83296. function e() {
  83297. return t !== null && t.apply(this, arguments) || this;
  83298. }
  83299. return e.prototype.makeElOption = function(n, r, i, a, o) {
  83300. var s = i.axis, l = s.coordinateSystem, u = II(l, 1 - hT(s)), c = l.dataToPoint(r)[0], f = a.get("type");
  83301. if (f && f !== "none") {
  83302. var d = v6(a), h = Plt[f](s, c, u);
  83303. h.style = d, n.graphicKey = h.type, n.pointer = h;
  83304. }
  83305. var p = PL(i);
  83306. the(
  83307. // @ts-ignore
  83308. r,
  83309. n,
  83310. p,
  83311. i,
  83312. a,
  83313. o
  83314. );
  83315. }, e.prototype.getHandleTransform = function(n, r, i) {
  83316. var a = PL(r, {
  83317. labelInside: !1
  83318. });
  83319. a.labelMargin = i.get(["handle", "margin"]);
  83320. var o = g6(r.axis, n, a);
  83321. return {
  83322. x: o[0],
  83323. y: o[1],
  83324. rotation: a.rotation + (a.labelDirection < 0 ? Math.PI : 0)
  83325. };
  83326. }, e.prototype.updateHandleTransform = function(n, r, i, a) {
  83327. var o = i.axis, s = o.coordinateSystem, l = hT(o), u = II(s, l), c = [n.x, n.y];
  83328. c[l] += r[l], c[l] = Math.min(u[1], c[l]), c[l] = Math.max(u[0], c[l]);
  83329. var f = II(s, 1 - l), d = (f[1] + f[0]) / 2, h = [d, d];
  83330. return h[l] = c[l], {
  83331. x: c[0],
  83332. y: c[1],
  83333. rotation: n.rotation,
  83334. cursorPoint: h,
  83335. tooltipOption: {
  83336. verticalAlign: "middle"
  83337. }
  83338. };
  83339. }, e;
  83340. }(p6)
  83341. ), Plt = {
  83342. line: function(t, e, n) {
  83343. var r = m6([e, n[0]], [e, n[1]], hT(t));
  83344. return {
  83345. type: "Line",
  83346. subPixelOptimize: !0,
  83347. shape: r
  83348. };
  83349. },
  83350. shadow: function(t, e, n) {
  83351. var r = t.getBandWidth(), i = n[1] - n[0];
  83352. return {
  83353. type: "Rect",
  83354. shape: nhe([e - r / 2, n[0]], [r, i], hT(t))
  83355. };
  83356. }
  83357. };
  83358. function hT(t) {
  83359. return t.isHorizontal() ? 0 : 1;
  83360. }
  83361. function II(t, e) {
  83362. var n = t.getRect();
  83363. return [n[HX[e]], n[HX[e]] + n[Clt[e]]];
  83364. }
  83365. var $lt = (
  83366. /** @class */
  83367. function(t) {
  83368. le(e, t);
  83369. function e() {
  83370. var n = t !== null && t.apply(this, arguments) || this;
  83371. return n.type = e.type, n;
  83372. }
  83373. return e.type = "single", e;
  83374. }(Ln)
  83375. );
  83376. function Alt(t) {
  83377. Mt(C1), bp.registerAxisPointerClass("SingleAxisPointer", Tlt), t.registerComponentView($lt), t.registerComponentView(blt), t.registerComponentModel(_w), Zg(t, "single", _w, _w.defaultOption), t.registerCoordinateSystem("single", wlt);
  83378. }
  83379. var Elt = (
  83380. /** @class */
  83381. function(t) {
  83382. le(e, t);
  83383. function e() {
  83384. var n = t !== null && t.apply(this, arguments) || this;
  83385. return n.type = e.type, n;
  83386. }
  83387. return e.prototype.init = function(n, r, i) {
  83388. var a = Tm(n);
  83389. t.prototype.init.apply(this, arguments), GX(n, a);
  83390. }, e.prototype.mergeOption = function(n) {
  83391. t.prototype.mergeOption.apply(this, arguments), GX(this.option, n);
  83392. }, e.prototype.getCellSize = function() {
  83393. return this.option.cellSize;
  83394. }, e.type = "calendar", e.defaultOption = {
  83395. // zlevel: 0,
  83396. z: 2,
  83397. left: 80,
  83398. top: 60,
  83399. cellSize: 20,
  83400. // horizontal vertical
  83401. orient: "horizontal",
  83402. // month separate line style
  83403. splitLine: {
  83404. show: !0,
  83405. lineStyle: {
  83406. color: "#000",
  83407. width: 1,
  83408. type: "solid"
  83409. }
  83410. },
  83411. // rect style temporarily unused emphasis
  83412. itemStyle: {
  83413. color: "#fff",
  83414. borderWidth: 1,
  83415. borderColor: "#ccc"
  83416. },
  83417. // week text style
  83418. dayLabel: {
  83419. show: !0,
  83420. firstDay: 0,
  83421. // start end
  83422. position: "start",
  83423. margin: "50%",
  83424. color: "#000"
  83425. },
  83426. // month text style
  83427. monthLabel: {
  83428. show: !0,
  83429. // start end
  83430. position: "start",
  83431. margin: 5,
  83432. // center or left
  83433. align: "center",
  83434. formatter: null,
  83435. color: "#000"
  83436. },
  83437. // year text style
  83438. yearLabel: {
  83439. show: !0,
  83440. // top bottom left right
  83441. position: null,
  83442. margin: 30,
  83443. formatter: null,
  83444. color: "#ccc",
  83445. fontFamily: "sans-serif",
  83446. fontWeight: "bolder",
  83447. fontSize: 20
  83448. }
  83449. }, e;
  83450. }(At)
  83451. );
  83452. function GX(t, e) {
  83453. var n = t.cellSize, r;
  83454. Se(n) ? r = n : r = t.cellSize = [n, n], r.length === 1 && (r[1] = r[0]);
  83455. var i = Ce([0, 1], function(a) {
  83456. return AUe(e, a) && (r[a] = "auto"), r[a] != null && r[a] !== "auto";
  83457. });
  83458. Of(t, e, {
  83459. type: "box",
  83460. ignoreSize: i
  83461. });
  83462. }
  83463. var Mlt = (
  83464. /** @class */
  83465. function(t) {
  83466. le(e, t);
  83467. function e() {
  83468. var n = t !== null && t.apply(this, arguments) || this;
  83469. return n.type = e.type, n;
  83470. }
  83471. return e.prototype.render = function(n, r, i) {
  83472. var a = this.group;
  83473. a.removeAll();
  83474. var o = n.coordinateSystem, s = o.getRangeInfo(), l = o.getOrient(), u = r.getLocaleModel();
  83475. this._renderDayRect(n, s, a), this._renderLines(n, s, l, a), this._renderYearText(n, s, l, a), this._renderMonthText(n, u, l, a), this._renderWeekText(n, u, s, l, a);
  83476. }, e.prototype._renderDayRect = function(n, r, i) {
  83477. for (var a = n.coordinateSystem, o = n.getModel("itemStyle").getItemStyle(), s = a.getCellWidth(), l = a.getCellHeight(), u = r.start.time; u <= r.end.time; u = a.getNextNDay(u, 1).time) {
  83478. var c = a.dataToRect([u], !1).tl, f = new Zt({
  83479. shape: {
  83480. x: c[0],
  83481. y: c[1],
  83482. width: s,
  83483. height: l
  83484. },
  83485. cursor: "default",
  83486. style: o
  83487. });
  83488. i.add(f);
  83489. }
  83490. }, e.prototype._renderLines = function(n, r, i, a) {
  83491. var o = this, s = n.coordinateSystem, l = n.getModel(["splitLine", "lineStyle"]).getLineStyle(), u = n.get(["splitLine", "show"]), c = l.lineWidth;
  83492. this._tlpoints = [], this._blpoints = [], this._firstDayOfMonth = [], this._firstDayPoints = [];
  83493. for (var f = r.start, d = 0; f.time <= r.end.time; d++) {
  83494. p(f.formatedDate), d === 0 && (f = s.getDateInfo(r.start.y + "-" + r.start.m));
  83495. var h = f.date;
  83496. h.setMonth(h.getMonth() + 1), f = s.getDateInfo(h);
  83497. }
  83498. p(s.getNextNDay(r.end.time, 1).formatedDate);
  83499. function p(v) {
  83500. o._firstDayOfMonth.push(s.getDateInfo(v)), o._firstDayPoints.push(s.dataToRect([v], !1).tl);
  83501. var g = o._getLinePointsOfOneWeek(n, v, i);
  83502. o._tlpoints.push(g[0]), o._blpoints.push(g[g.length - 1]), u && o._drawSplitline(g, l, a);
  83503. }
  83504. u && this._drawSplitline(o._getEdgesPoints(o._tlpoints, c, i), l, a), u && this._drawSplitline(o._getEdgesPoints(o._blpoints, c, i), l, a);
  83505. }, e.prototype._getEdgesPoints = function(n, r, i) {
  83506. var a = [n[0].slice(), n[n.length - 1].slice()], o = i === "horizontal" ? 0 : 1;
  83507. return a[0][o] = a[0][o] - r / 2, a[1][o] = a[1][o] + r / 2, a;
  83508. }, e.prototype._drawSplitline = function(n, r, i) {
  83509. var a = new va({
  83510. z2: 20,
  83511. shape: {
  83512. points: n
  83513. },
  83514. style: r
  83515. });
  83516. i.add(a);
  83517. }, e.prototype._getLinePointsOfOneWeek = function(n, r, i) {
  83518. for (var a = n.coordinateSystem, o = a.getDateInfo(r), s = [], l = 0; l < 7; l++) {
  83519. var u = a.getNextNDay(o.time, l), c = a.dataToRect([u.time], !1);
  83520. s[2 * u.day] = c.tl, s[2 * u.day + 1] = c[i === "horizontal" ? "bl" : "tr"];
  83521. }
  83522. return s;
  83523. }, e.prototype._formatterLabel = function(n, r) {
  83524. return Ve(n) && n ? CUe(n, r) : qe(n) ? n(r) : r.nameMap;
  83525. }, e.prototype._yearTextPositionControl = function(n, r, i, a, o) {
  83526. var s = r[0], l = r[1], u = ["center", "bottom"];
  83527. a === "bottom" ? (l += o, u = ["center", "top"]) : a === "left" ? s -= o : a === "right" ? (s += o, u = ["center", "top"]) : l -= o;
  83528. var c = 0;
  83529. return (a === "left" || a === "right") && (c = Math.PI / 2), {
  83530. rotation: c,
  83531. x: s,
  83532. y: l,
  83533. style: {
  83534. align: u[0],
  83535. verticalAlign: u[1]
  83536. }
  83537. };
  83538. }, e.prototype._renderYearText = function(n, r, i, a) {
  83539. var o = n.getModel("yearLabel");
  83540. if (o.get("show")) {
  83541. var s = o.get("margin"), l = o.get("position");
  83542. l || (l = i !== "horizontal" ? "top" : "left");
  83543. var u = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]], c = (u[0][0] + u[1][0]) / 2, f = (u[0][1] + u[1][1]) / 2, d = i === "horizontal" ? 0 : 1, h = {
  83544. top: [c, u[d][1]],
  83545. bottom: [c, u[1 - d][1]],
  83546. left: [u[1 - d][0], f],
  83547. right: [u[d][0], f]
  83548. }, p = r.start.y;
  83549. +r.end.y > +r.start.y && (p = p + "-" + r.end.y);
  83550. var v = o.get("formatter"), g = {
  83551. start: r.start.y,
  83552. end: r.end.y,
  83553. nameMap: p
  83554. }, m = this._formatterLabel(v, g), y = new jt({
  83555. z2: 30,
  83556. style: Mn(o, {
  83557. text: m
  83558. })
  83559. });
  83560. y.attr(this._yearTextPositionControl(y, h[l], i, l, s)), a.add(y);
  83561. }
  83562. }, e.prototype._monthTextPositionControl = function(n, r, i, a, o) {
  83563. var s = "left", l = "top", u = n[0], c = n[1];
  83564. return i === "horizontal" ? (c = c + o, r && (s = "center"), a === "start" && (l = "bottom")) : (u = u + o, r && (l = "middle"), a === "start" && (s = "right")), {
  83565. x: u,
  83566. y: c,
  83567. align: s,
  83568. verticalAlign: l
  83569. };
  83570. }, e.prototype._renderMonthText = function(n, r, i, a) {
  83571. var o = n.getModel("monthLabel");
  83572. if (o.get("show")) {
  83573. var s = o.get("nameMap"), l = o.get("margin"), u = o.get("position"), c = o.get("align"), f = [this._tlpoints, this._blpoints];
  83574. (!s || Ve(s)) && (s && (r = kk(s) || r), s = r.get(["time", "monthAbbr"]) || []);
  83575. var d = u === "start" ? 0 : 1, h = i === "horizontal" ? 0 : 1;
  83576. l = u === "start" ? -l : l;
  83577. for (var p = c === "center", v = 0; v < f[d].length - 1; v++) {
  83578. var g = f[d][v].slice(), m = this._firstDayOfMonth[v];
  83579. if (p) {
  83580. var y = this._firstDayPoints[v];
  83581. g[h] = (y[h] + f[0][v + 1][h]) / 2;
  83582. }
  83583. var _ = o.get("formatter"), O = s[+m.m - 1], S = {
  83584. yyyy: m.y,
  83585. yy: (m.y + "").slice(2),
  83586. MM: m.m,
  83587. M: +m.m,
  83588. nameMap: O
  83589. }, x = this._formatterLabel(_, S), C = new jt({
  83590. z2: 30,
  83591. style: _e(Mn(o, {
  83592. text: x
  83593. }), this._monthTextPositionControl(g, p, i, u, l))
  83594. });
  83595. a.add(C);
  83596. }
  83597. }
  83598. }, e.prototype._weekTextPositionControl = function(n, r, i, a, o) {
  83599. var s = "center", l = "middle", u = n[0], c = n[1], f = i === "start";
  83600. return r === "horizontal" ? (u = u + a + (f ? 1 : -1) * o[0] / 2, s = f ? "right" : "left") : (c = c + a + (f ? 1 : -1) * o[1] / 2, l = f ? "bottom" : "top"), {
  83601. x: u,
  83602. y: c,
  83603. align: s,
  83604. verticalAlign: l
  83605. };
  83606. }, e.prototype._renderWeekText = function(n, r, i, a, o) {
  83607. var s = n.getModel("dayLabel");
  83608. if (s.get("show")) {
  83609. var l = n.coordinateSystem, u = s.get("position"), c = s.get("nameMap"), f = s.get("margin"), d = l.getFirstDayOfWeek();
  83610. if (!c || Ve(c)) {
  83611. c && (r = kk(c) || r);
  83612. var h = r.get(["time", "dayOfWeekShort"]);
  83613. c = h || Ce(r.get(["time", "dayOfWeekAbbr"]), function(S) {
  83614. return S[0];
  83615. });
  83616. }
  83617. var p = l.getNextNDay(i.end.time, 7 - i.lweek).time, v = [l.getCellWidth(), l.getCellHeight()];
  83618. f = ze(f, Math.min(v[1], v[0])), u === "start" && (p = l.getNextNDay(i.start.time, -(7 + i.fweek)).time, f = -f);
  83619. for (var g = 0; g < 7; g++) {
  83620. var m = l.getNextNDay(p, g), y = l.dataToRect([m.time], !1).center, _ = g;
  83621. _ = Math.abs((g + d) % 7);
  83622. var O = new jt({
  83623. z2: 30,
  83624. style: _e(Mn(s, {
  83625. text: c[_]
  83626. }), this._weekTextPositionControl(y, a, u, f, v))
  83627. });
  83628. o.add(O);
  83629. }
  83630. }
  83631. }, e.type = "calendar", e;
  83632. }(Ln)
  83633. ), DI = 864e5, Ilt = (
  83634. /** @class */
  83635. function() {
  83636. function t(e, n, r) {
  83637. this.type = "calendar", this.dimensions = t.dimensions, this.getDimensionsInfo = t.getDimensionsInfo, this._model = e;
  83638. }
  83639. return t.getDimensionsInfo = function() {
  83640. return [{
  83641. name: "time",
  83642. type: "time"
  83643. }, "value"];
  83644. }, t.prototype.getRangeInfo = function() {
  83645. return this._rangeInfo;
  83646. }, t.prototype.getModel = function() {
  83647. return this._model;
  83648. }, t.prototype.getRect = function() {
  83649. return this._rect;
  83650. }, t.prototype.getCellWidth = function() {
  83651. return this._sw;
  83652. }, t.prototype.getCellHeight = function() {
  83653. return this._sh;
  83654. }, t.prototype.getOrient = function() {
  83655. return this._orient;
  83656. }, t.prototype.getFirstDayOfWeek = function() {
  83657. return this._firstDayOfWeek;
  83658. }, t.prototype.getDateInfo = function(e) {
  83659. e = go(e);
  83660. var n = e.getFullYear(), r = e.getMonth() + 1, i = r < 10 ? "0" + r : "" + r, a = e.getDate(), o = a < 10 ? "0" + a : "" + a, s = e.getDay();
  83661. return s = Math.abs((s + 7 - this.getFirstDayOfWeek()) % 7), {
  83662. y: n + "",
  83663. m: i,
  83664. d: o,
  83665. day: s,
  83666. time: e.getTime(),
  83667. formatedDate: n + "-" + i + "-" + o,
  83668. date: e
  83669. };
  83670. }, t.prototype.getNextNDay = function(e, n) {
  83671. return n = n || 0, n === 0 ? this.getDateInfo(e) : (e = new Date(this.getDateInfo(e).time), e.setDate(e.getDate() + n), this.getDateInfo(e));
  83672. }, t.prototype.update = function(e, n) {
  83673. this._firstDayOfWeek = +this._model.getModel("dayLabel").get("firstDay"), this._orient = this._model.get("orient"), this._lineWidth = this._model.getModel("itemStyle").getItemStyle().lineWidth || 0, this._rangeInfo = this._getRangeInfo(this._initRangeOption());
  83674. var r = this._rangeInfo.weeks || 1, i = ["width", "height"], a = this._model.getCellSize().slice(), o = this._model.getBoxLayoutParams(), s = this._orient === "horizontal" ? [r, 7] : [7, r];
  83675. F([0, 1], function(f) {
  83676. c(a, f) && (o[i[f]] = a[f] * s[f]);
  83677. });
  83678. var l = {
  83679. width: n.getWidth(),
  83680. height: n.getHeight()
  83681. }, u = this._rect = Mr(o, l);
  83682. F([0, 1], function(f) {
  83683. c(a, f) || (a[f] = u[i[f]] / s[f]);
  83684. });
  83685. function c(f, d) {
  83686. return f[d] != null && f[d] !== "auto";
  83687. }
  83688. this._sw = a[0], this._sh = a[1];
  83689. }, t.prototype.dataToPoint = function(e, n) {
  83690. Se(e) && (e = e[0]), n == null && (n = !0);
  83691. var r = this.getDateInfo(e), i = this._rangeInfo, a = r.formatedDate;
  83692. if (n && !(r.time >= i.start.time && r.time < i.end.time + DI))
  83693. return [NaN, NaN];
  83694. var o = r.day, s = this._getRangeInfo([i.start.time, a]).nthWeek;
  83695. return this._orient === "vertical" ? [this._rect.x + o * this._sw + this._sw / 2, this._rect.y + s * this._sh + this._sh / 2] : [this._rect.x + s * this._sw + this._sw / 2, this._rect.y + o * this._sh + this._sh / 2];
  83696. }, t.prototype.pointToData = function(e) {
  83697. var n = this.pointToDate(e);
  83698. return n && n.time;
  83699. }, t.prototype.dataToRect = function(e, n) {
  83700. var r = this.dataToPoint(e, n);
  83701. return {
  83702. contentShape: {
  83703. x: r[0] - (this._sw - this._lineWidth) / 2,
  83704. y: r[1] - (this._sh - this._lineWidth) / 2,
  83705. width: this._sw - this._lineWidth,
  83706. height: this._sh - this._lineWidth
  83707. },
  83708. center: r,
  83709. tl: [r[0] - this._sw / 2, r[1] - this._sh / 2],
  83710. tr: [r[0] + this._sw / 2, r[1] - this._sh / 2],
  83711. br: [r[0] + this._sw / 2, r[1] + this._sh / 2],
  83712. bl: [r[0] - this._sw / 2, r[1] + this._sh / 2]
  83713. };
  83714. }, t.prototype.pointToDate = function(e) {
  83715. var n = Math.floor((e[0] - this._rect.x) / this._sw) + 1, r = Math.floor((e[1] - this._rect.y) / this._sh) + 1, i = this._rangeInfo.range;
  83716. return this._orient === "vertical" ? this._getDateByWeeksAndDay(r, n - 1, i) : this._getDateByWeeksAndDay(n, r - 1, i);
  83717. }, t.prototype.convertToPixel = function(e, n, r) {
  83718. var i = jX(n);
  83719. return i === this ? i.dataToPoint(r) : null;
  83720. }, t.prototype.convertFromPixel = function(e, n, r) {
  83721. var i = jX(n);
  83722. return i === this ? i.pointToData(r) : null;
  83723. }, t.prototype.containPoint = function(e) {
  83724. return console.warn("Not implemented."), !1;
  83725. }, t.prototype._initRangeOption = function() {
  83726. var e = this._model.get("range"), n;
  83727. if (Se(e) && e.length === 1 && (e = e[0]), Se(e))
  83728. n = e;
  83729. else {
  83730. var r = e.toString();
  83731. if (/^\d{4}$/.test(r) && (n = [r + "-01-01", r + "-12-31"]), /^\d{4}[\/|-]\d{1,2}$/.test(r)) {
  83732. var i = this.getDateInfo(r), a = i.date;
  83733. a.setMonth(a.getMonth() + 1);
  83734. var o = this.getNextNDay(a, -1);
  83735. n = [i.formatedDate, o.formatedDate];
  83736. }
  83737. /^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r) && (n = [r, r]);
  83738. }
  83739. if (!n)
  83740. return process.env.NODE_ENV !== "production" && qo("Invalid date range."), e;
  83741. var s = this._getRangeInfo(n);
  83742. return s.start.time > s.end.time && n.reverse(), n;
  83743. }, t.prototype._getRangeInfo = function(e) {
  83744. var n = [this.getDateInfo(e[0]), this.getDateInfo(e[1])], r;
  83745. n[0].time > n[1].time && (r = !0, n.reverse());
  83746. var i = Math.floor(n[1].time / DI) - Math.floor(n[0].time / DI) + 1, a = new Date(n[0].time), o = a.getDate(), s = n[1].date.getDate();
  83747. a.setDate(o + i - 1);
  83748. var l = a.getDate();
  83749. if (l !== s)
  83750. for (var u = a.getTime() - n[1].time > 0 ? 1 : -1; (l = a.getDate()) !== s && (a.getTime() - n[1].time) * u > 0; )
  83751. i -= u, a.setDate(l - u);
  83752. var c = Math.floor((i + n[0].day + 6) / 7), f = r ? -c + 1 : c - 1;
  83753. return r && n.reverse(), {
  83754. range: [n[0].formatedDate, n[1].formatedDate],
  83755. start: n[0],
  83756. end: n[1],
  83757. allDay: i,
  83758. weeks: c,
  83759. // From 0.
  83760. nthWeek: f,
  83761. fweek: n[0].day,
  83762. lweek: n[1].day
  83763. };
  83764. }, t.prototype._getDateByWeeksAndDay = function(e, n, r) {
  83765. var i = this._getRangeInfo(r);
  83766. if (e > i.weeks || e === 0 && n < i.fweek || e === i.weeks && n > i.lweek)
  83767. return null;
  83768. var a = (e - 1) * 7 - i.fweek + n, o = new Date(i.start.time);
  83769. return o.setDate(+i.start.d + a), this.getDateInfo(o);
  83770. }, t.create = function(e, n) {
  83771. var r = [];
  83772. return e.eachComponent("calendar", function(i) {
  83773. var a = new t(i);
  83774. r.push(a), i.coordinateSystem = a;
  83775. }), e.eachSeries(function(i) {
  83776. i.get("coordinateSystem") === "calendar" && (i.coordinateSystem = r[i.get("calendarIndex") || 0]);
  83777. }), r;
  83778. }, t.dimensions = ["time", "value"], t;
  83779. }()
  83780. );
  83781. function jX(t) {
  83782. var e = t.calendarModel, n = t.seriesModel, r = e ? e.coordinateSystem : n ? n.coordinateSystem : null;
  83783. return r;
  83784. }
  83785. function Dlt(t) {
  83786. t.registerComponentModel(Elt), t.registerComponentView(Mlt), t.registerCoordinateSystem("calendar", Ilt);
  83787. }
  83788. function Rlt(t, e) {
  83789. var n = t.existing;
  83790. if (e.id = t.keyInfo.id, !e.type && n && (e.type = n.type), e.parentId == null) {
  83791. var r = e.parentOption;
  83792. r ? e.parentId = r.id : n && (e.parentId = n.parentId);
  83793. }
  83794. e.parentOption = null;
  83795. }
  83796. function ZX(t, e) {
  83797. var n;
  83798. return F(e, function(r) {
  83799. t[r] != null && t[r] !== "auto" && (n = !0);
  83800. }), n;
  83801. }
  83802. function klt(t, e, n) {
  83803. var r = _e({}, n), i = t[e], a = n.$action || "merge";
  83804. if (a === "merge")
  83805. if (i) {
  83806. if (process.env.NODE_ENV !== "production") {
  83807. var o = n.type;
  83808. at(!o || i.type === o, 'Please set $action: "replace" to change `type`');
  83809. }
  83810. mt(i, r, !0), Of(i, r, {
  83811. ignoreSize: !0
  83812. }), qle(n, i), qS(n, i), qS(n, i, "shape"), qS(n, i, "style"), qS(n, i, "extra"), n.clipPath = i.clipPath;
  83813. } else
  83814. t[e] = r;
  83815. else a === "replace" ? t[e] = r : a === "remove" && i && (t[e] = null);
  83816. }
  83817. var uhe = ["transition", "enterFrom", "leaveTo"], Llt = uhe.concat(["enterAnimation", "updateAnimation", "leaveAnimation"]);
  83818. function qS(t, e, n) {
  83819. if (n && (!t[n] && e[n] && (t[n] = {}), t = t[n], e = e[n]), !(!t || !e))
  83820. for (var r = n ? uhe : Llt, i = 0; i < r.length; i++) {
  83821. var a = r[i];
  83822. t[a] == null && e[a] != null && (t[a] = e[a]);
  83823. }
  83824. }
  83825. function Nlt(t, e) {
  83826. if (t && (t.hv = e.hv = [
  83827. // Rigid body, don't care about `width`.
  83828. ZX(e, ["left", "right"]),
  83829. // Rigid body, don't care about `height`.
  83830. ZX(e, ["top", "bottom"])
  83831. ], t.type === "group")) {
  83832. var n = t, r = e;
  83833. n.width == null && (n.width = r.width = 0), n.height == null && (n.height = r.height = 0);
  83834. }
  83835. }
  83836. var Blt = (
  83837. /** @class */
  83838. function(t) {
  83839. le(e, t);
  83840. function e() {
  83841. var n = t !== null && t.apply(this, arguments) || this;
  83842. return n.type = e.type, n.preventAutoZ = !0, n;
  83843. }
  83844. return e.prototype.mergeOption = function(n, r) {
  83845. var i = this.option.elements;
  83846. this.option.elements = null, t.prototype.mergeOption.call(this, n, r), this.option.elements = i;
  83847. }, e.prototype.optionUpdated = function(n, r) {
  83848. var i = this.option, a = (r ? i : n).elements, o = i.elements = r ? [] : i.elements, s = [];
  83849. this._flatten(a, s, null);
  83850. var l = Nse(o, s, "normalMerge"), u = this._elOptionsToUpdate = [];
  83851. F(l, function(c, f) {
  83852. var d = c.newOption;
  83853. process.env.NODE_ENV !== "production" && at(nt(d) || c.existing, "Empty graphic option definition"), d && (u.push(d), Rlt(c, d), klt(o, f, d), Nlt(o[f], d));
  83854. }, this), i.elements = yn(o, function(c) {
  83855. return c && delete c.$action, c != null;
  83856. });
  83857. }, e.prototype._flatten = function(n, r, i) {
  83858. F(n, function(a) {
  83859. if (a) {
  83860. i && (a.parentOption = i), r.push(a);
  83861. var o = a.children;
  83862. o && o.length && this._flatten(o, r, a), delete a.children;
  83863. }
  83864. }, this);
  83865. }, e.prototype.useElOptionsToUpdate = function() {
  83866. var n = this._elOptionsToUpdate;
  83867. return this._elOptionsToUpdate = null, n;
  83868. }, e.type = "graphic", e.defaultOption = {
  83869. elements: []
  83870. // parentId: null
  83871. }, e;
  83872. }(At)
  83873. ), UX = {
  83874. // Reserved but not supported in graphic component.
  83875. path: null,
  83876. compoundPath: null,
  83877. // Supported in graphic component.
  83878. group: ct,
  83879. image: ci,
  83880. text: jt
  83881. }, Vo = Ut(), zlt = (
  83882. /** @class */
  83883. function(t) {
  83884. le(e, t);
  83885. function e() {
  83886. var n = t !== null && t.apply(this, arguments) || this;
  83887. return n.type = e.type, n;
  83888. }
  83889. return e.prototype.init = function() {
  83890. this._elMap = Ze();
  83891. }, e.prototype.render = function(n, r, i) {
  83892. n !== this._lastGraphicModel && this._clear(), this._lastGraphicModel = n, this._updateElements(n), this._relocate(n, i);
  83893. }, e.prototype._updateElements = function(n) {
  83894. var r = n.useElOptionsToUpdate();
  83895. if (r) {
  83896. var i = this._elMap, a = this.group, o = n.get("z"), s = n.get("zlevel");
  83897. F(r, function(l) {
  83898. var u = Br(l.id, null), c = u != null ? i.get(u) : null, f = Br(l.parentId, null), d = f != null ? i.get(f) : a, h = l.type, p = l.style;
  83899. h === "text" && p && l.hv && l.hv[1] && (p.textVerticalAlign = p.textBaseline = p.verticalAlign = p.align = null);
  83900. var v = l.textContent, g = l.textConfig;
  83901. if (p && Wde(p, h, !!g, !!v)) {
  83902. var m = Qde(p, h, !0);
  83903. !g && m.textConfig && (g = l.textConfig = m.textConfig), !v && m.textContent && (v = m.textContent);
  83904. }
  83905. var y = Vlt(l);
  83906. process.env.NODE_ENV !== "production" && c && at(d === c.parent, "Changing parent is not supported.");
  83907. var _ = l.$action || "merge", O = _ === "merge", S = _ === "replace";
  83908. if (O) {
  83909. var x = !c, C = c;
  83910. x ? C = XX(u, d, l.type, i) : (C && (Vo(C).isNew = !1), Ude(C)), C && (yw(C, y, n, {
  83911. isInit: x
  83912. }), YX(C, l, o, s));
  83913. } else if (S) {
  83914. Ow(c, l, i, n);
  83915. var P = XX(u, d, l.type, i);
  83916. P && (yw(P, y, n, {
  83917. isInit: !0
  83918. }), YX(P, l, o, s));
  83919. } else _ === "remove" && (Gde(c, l), Ow(c, l, i, n));
  83920. var $ = i.get(u);
  83921. if ($ && v)
  83922. if (O) {
  83923. var T = $.getTextContent();
  83924. T ? T.attr(v) : $.setTextContent(new jt(v));
  83925. } else S && $.setTextContent(new jt(v));
  83926. if ($) {
  83927. var E = l.clipPath;
  83928. if (E) {
  83929. var M = E.type, R = void 0, x = !1;
  83930. if (O) {
  83931. var N = $.getClipPath();
  83932. x = !N || Vo(N).type !== M, R = x ? $L(M) : N;
  83933. } else S && (x = !0, R = $L(M));
  83934. $.setClipPath(R), yw(R, E, n, {
  83935. isInit: x
  83936. }), cT(R, E.keyframeAnimation, n);
  83937. }
  83938. var I = Vo($);
  83939. $.setTextConfig(g), I.option = l, Flt($, n, l), xm({
  83940. el: $,
  83941. componentModel: n,
  83942. itemName: $.name,
  83943. itemTooltipOption: l.tooltip
  83944. }), cT($, l.keyframeAnimation, n);
  83945. }
  83946. });
  83947. }
  83948. }, e.prototype._relocate = function(n, r) {
  83949. for (var i = n.option.elements, a = this.group, o = this._elMap, s = r.getWidth(), l = r.getHeight(), u = ["x", "y"], c = 0; c < i.length; c++) {
  83950. var f = i[c], d = Br(f.id, null), h = d != null ? o.get(d) : null;
  83951. if (!(!h || !h.isGroup)) {
  83952. var p = h.parent, v = p === a, g = Vo(h), m = Vo(p);
  83953. g.width = ze(g.option.width, v ? s : m.width) || 0, g.height = ze(g.option.height, v ? l : m.height) || 0;
  83954. }
  83955. }
  83956. for (var c = i.length - 1; c >= 0; c--) {
  83957. var f = i[c], d = Br(f.id, null), h = d != null ? o.get(d) : null;
  83958. if (h) {
  83959. var p = h.parent, m = Vo(p), y = p === a ? {
  83960. width: s,
  83961. height: l
  83962. } : {
  83963. width: m.width,
  83964. height: m.height
  83965. }, _ = {}, O = MP(h, f, y, null, {
  83966. hv: f.hv,
  83967. boundingMode: f.bounding
  83968. }, _);
  83969. if (!Vo(h).isNew && O) {
  83970. for (var S = f.transition, x = {}, C = 0; C < u.length; C++) {
  83971. var P = u[C], $ = _[P];
  83972. S && (Ah(S) || St(S, P) >= 0) ? x[P] = $ : h[P] = $;
  83973. }
  83974. tn(h, x, n, 0);
  83975. } else
  83976. h.attr(_);
  83977. }
  83978. }
  83979. }, e.prototype._clear = function() {
  83980. var n = this, r = this._elMap;
  83981. r.each(function(i) {
  83982. Ow(i, Vo(i).option, r, n._lastGraphicModel);
  83983. }), this._elMap = Ze();
  83984. }, e.prototype.dispose = function() {
  83985. this._clear();
  83986. }, e.type = "graphic", e;
  83987. }(Ln)
  83988. );
  83989. function $L(t) {
  83990. process.env.NODE_ENV !== "production" && at(t, "graphic type MUST be set");
  83991. var e = Qe(UX, t) ? UX[t] : wP(t);
  83992. process.env.NODE_ENV !== "production" && at(e, "graphic type " + t + " can not be found");
  83993. var n = new e({});
  83994. return Vo(n).type = t, n;
  83995. }
  83996. function XX(t, e, n, r) {
  83997. var i = $L(n);
  83998. return e.add(i), r.set(t, i), Vo(i).id = t, Vo(i).isNew = !0, i;
  83999. }
  84000. function Ow(t, e, n, r) {
  84001. var i = t && t.parent;
  84002. i && (t.type === "group" && t.traverse(function(a) {
  84003. Ow(a, e, n, r);
  84004. }), UP(t, e, r), n.removeKey(Vo(t).id));
  84005. }
  84006. function YX(t, e, n, r) {
  84007. t.isGroup || F([
  84008. ["cursor", ls.prototype.cursor],
  84009. // We should not support configure z and zlevel in the element level.
  84010. // But seems we didn't limit it previously. So here still use it to avoid breaking.
  84011. ["zlevel", r || 0],
  84012. ["z", n || 0],
  84013. // z2 must not be null/undefined, otherwise sort error may occur.
  84014. ["z2", 0]
  84015. ], function(i) {
  84016. var a = i[0];
  84017. Qe(e, a) ? t[a] = dt(e[a], i[1]) : t[a] == null && (t[a] = i[1]);
  84018. }), F(kt(e), function(i) {
  84019. if (i.indexOf("on") === 0) {
  84020. var a = e[i];
  84021. t[i] = qe(a) ? a : null;
  84022. }
  84023. }), Qe(e, "draggable") && (t.draggable = e.draggable), e.name != null && (t.name = e.name), e.id != null && (t.id = e.id);
  84024. }
  84025. function Vlt(t) {
  84026. return t = _e({}, t), F(["id", "parentId", "$action", "hv", "bounding", "textContent", "clipPath"].concat(Yle), function(e) {
  84027. delete t[e];
  84028. }), t;
  84029. }
  84030. function Flt(t, e, n) {
  84031. var r = ft(t).eventData;
  84032. !t.silent && !t.ignore && !r && (r = ft(t).eventData = {
  84033. componentType: "graphic",
  84034. componentIndex: e.componentIndex,
  84035. name: t.name
  84036. }), r && (r.info = n.info);
  84037. }
  84038. function Wlt(t) {
  84039. t.registerComponentModel(Blt), t.registerComponentView(zlt), t.registerPreprocessor(function(e) {
  84040. var n = e.graphic;
  84041. Se(n) ? !n[0] || !n[0].elements ? e.graphic = [{
  84042. elements: n
  84043. }] : e.graphic = [e.graphic[0]] : n && !n.elements && (e.graphic = [{
  84044. elements: [n]
  84045. }]);
  84046. });
  84047. }
  84048. var qX = ["x", "y", "radius", "angle", "single"], Qlt = ["cartesian2d", "polar", "singleAxis"];
  84049. function Hlt(t) {
  84050. var e = t.get("coordinateSystem");
  84051. return St(Qlt, e) >= 0;
  84052. }
  84053. function Uc(t) {
  84054. return process.env.NODE_ENV !== "production" && at(t), t + "Axis";
  84055. }
  84056. function Glt(t, e) {
  84057. var n = Ze(), r = [], i = Ze();
  84058. t.eachComponent({
  84059. mainType: "dataZoom",
  84060. query: e
  84061. }, function(c) {
  84062. i.get(c.uid) || s(c);
  84063. });
  84064. var a;
  84065. do
  84066. a = !1, t.eachComponent("dataZoom", o);
  84067. while (a);
  84068. function o(c) {
  84069. !i.get(c.uid) && l(c) && (s(c), a = !0);
  84070. }
  84071. function s(c) {
  84072. i.set(c.uid, !0), r.push(c), u(c);
  84073. }
  84074. function l(c) {
  84075. var f = !1;
  84076. return c.eachTargetAxis(function(d, h) {
  84077. var p = n.get(d);
  84078. p && p[h] && (f = !0);
  84079. }), f;
  84080. }
  84081. function u(c) {
  84082. c.eachTargetAxis(function(f, d) {
  84083. (n.get(f) || n.set(f, []))[d] = !0;
  84084. });
  84085. }
  84086. return r;
  84087. }
  84088. function che(t) {
  84089. var e = t.ecModel, n = {
  84090. infoList: [],
  84091. infoMap: Ze()
  84092. };
  84093. return t.eachTargetAxis(function(r, i) {
  84094. var a = e.getComponent(Uc(r), i);
  84095. if (a) {
  84096. var o = a.getCoordSysModel();
  84097. if (o) {
  84098. var s = o.uid, l = n.infoMap.get(s);
  84099. l || (l = {
  84100. model: o,
  84101. axisModels: []
  84102. }, n.infoList.push(l), n.infoMap.set(s, l)), l.axisModels.push(a);
  84103. }
  84104. }
  84105. }), n;
  84106. }
  84107. var RI = (
  84108. /** @class */
  84109. function() {
  84110. function t() {
  84111. this.indexList = [], this.indexMap = [];
  84112. }
  84113. return t.prototype.add = function(e) {
  84114. this.indexMap[e] || (this.indexList.push(e), this.indexMap[e] = !0);
  84115. }, t;
  84116. }()
  84117. ), d_ = (
  84118. /** @class */
  84119. function(t) {
  84120. le(e, t);
  84121. function e() {
  84122. var n = t !== null && t.apply(this, arguments) || this;
  84123. return n.type = e.type, n._autoThrottle = !0, n._noTarget = !0, n._rangePropMode = ["percent", "percent"], n;
  84124. }
  84125. return e.prototype.init = function(n, r, i) {
  84126. var a = KX(n);
  84127. this.settledOption = a, this.mergeDefaultAndTheme(n, i), this._doInit(a);
  84128. }, e.prototype.mergeOption = function(n) {
  84129. var r = KX(n);
  84130. mt(this.option, n, !0), mt(this.settledOption, r, !0), this._doInit(r);
  84131. }, e.prototype._doInit = function(n) {
  84132. var r = this.option;
  84133. this._setDefaultThrottle(n), this._updateRangeUse(n);
  84134. var i = this.settledOption;
  84135. F([["start", "startValue"], ["end", "endValue"]], function(a, o) {
  84136. this._rangePropMode[o] === "value" && (r[a[0]] = i[a[0]] = null);
  84137. }, this), this._resetTarget();
  84138. }, e.prototype._resetTarget = function() {
  84139. var n = this.get("orient", !0), r = this._targetAxisInfoMap = Ze(), i = this._fillSpecifiedTargetAxis(r);
  84140. i ? this._orient = n || this._makeAutoOrientByTargetAxis() : (this._orient = n || "horizontal", this._fillAutoTargetAxisByOrient(r, this._orient)), this._noTarget = !0, r.each(function(a) {
  84141. a.indexList.length && (this._noTarget = !1);
  84142. }, this);
  84143. }, e.prototype._fillSpecifiedTargetAxis = function(n) {
  84144. var r = !1;
  84145. return F(qX, function(i) {
  84146. var a = this.getReferringComponents(Uc(i), dje);
  84147. if (a.specified) {
  84148. r = !0;
  84149. var o = new RI();
  84150. F(a.models, function(s) {
  84151. o.add(s.componentIndex);
  84152. }), n.set(i, o);
  84153. }
  84154. }, this), r;
  84155. }, e.prototype._fillAutoTargetAxisByOrient = function(n, r) {
  84156. var i = this.ecModel, a = !0;
  84157. if (a) {
  84158. var o = r === "vertical" ? "y" : "x", s = i.findComponents({
  84159. mainType: o + "Axis"
  84160. });
  84161. l(s, o);
  84162. }
  84163. if (a) {
  84164. var s = i.findComponents({
  84165. mainType: "singleAxis",
  84166. filter: function(c) {
  84167. return c.get("orient", !0) === r;
  84168. }
  84169. });
  84170. l(s, "single");
  84171. }
  84172. function l(u, c) {
  84173. var f = u[0];
  84174. if (f) {
  84175. var d = new RI();
  84176. if (d.add(f.componentIndex), n.set(c, d), a = !1, c === "x" || c === "y") {
  84177. var h = f.getReferringComponents("grid", Er).models[0];
  84178. h && F(u, function(p) {
  84179. f.componentIndex !== p.componentIndex && h === p.getReferringComponents("grid", Er).models[0] && d.add(p.componentIndex);
  84180. });
  84181. }
  84182. }
  84183. }
  84184. a && F(qX, function(u) {
  84185. if (a) {
  84186. var c = i.findComponents({
  84187. mainType: Uc(u),
  84188. filter: function(d) {
  84189. return d.get("type", !0) === "category";
  84190. }
  84191. });
  84192. if (c[0]) {
  84193. var f = new RI();
  84194. f.add(c[0].componentIndex), n.set(u, f), a = !1;
  84195. }
  84196. }
  84197. }, this);
  84198. }, e.prototype._makeAutoOrientByTargetAxis = function() {
  84199. var n;
  84200. return this.eachTargetAxis(function(r) {
  84201. !n && (n = r);
  84202. }, this), n === "y" ? "vertical" : "horizontal";
  84203. }, e.prototype._setDefaultThrottle = function(n) {
  84204. if (n.hasOwnProperty("throttle") && (this._autoThrottle = !1), this._autoThrottle) {
  84205. var r = this.ecModel.option;
  84206. this.option.throttle = r.animation && r.animationDurationUpdate > 0 ? 100 : 20;
  84207. }
  84208. }, e.prototype._updateRangeUse = function(n) {
  84209. var r = this._rangePropMode, i = this.get("rangeMode");
  84210. F([["start", "startValue"], ["end", "endValue"]], function(a, o) {
  84211. var s = n[a[0]] != null, l = n[a[1]] != null;
  84212. s && !l ? r[o] = "percent" : !s && l ? r[o] = "value" : i ? r[o] = i[o] : s && (r[o] = "percent");
  84213. });
  84214. }, e.prototype.noTarget = function() {
  84215. return this._noTarget;
  84216. }, e.prototype.getFirstTargetAxisModel = function() {
  84217. var n;
  84218. return this.eachTargetAxis(function(r, i) {
  84219. n == null && (n = this.ecModel.getComponent(Uc(r), i));
  84220. }, this), n;
  84221. }, e.prototype.eachTargetAxis = function(n, r) {
  84222. this._targetAxisInfoMap.each(function(i, a) {
  84223. F(i.indexList, function(o) {
  84224. n.call(r, a, o);
  84225. });
  84226. });
  84227. }, e.prototype.getAxisProxy = function(n, r) {
  84228. var i = this.getAxisModel(n, r);
  84229. if (i)
  84230. return i.__dzAxisProxy;
  84231. }, e.prototype.getAxisModel = function(n, r) {
  84232. process.env.NODE_ENV !== "production" && at(n && r != null);
  84233. var i = this._targetAxisInfoMap.get(n);
  84234. if (i && i.indexMap[r])
  84235. return this.ecModel.getComponent(Uc(n), r);
  84236. }, e.prototype.setRawRange = function(n) {
  84237. var r = this.option, i = this.settledOption;
  84238. F([["start", "startValue"], ["end", "endValue"]], function(a) {
  84239. (n[a[0]] != null || n[a[1]] != null) && (r[a[0]] = i[a[0]] = n[a[0]], r[a[1]] = i[a[1]] = n[a[1]]);
  84240. }, this), this._updateRangeUse(n);
  84241. }, e.prototype.setCalculatedRange = function(n) {
  84242. var r = this.option;
  84243. F(["start", "startValue", "end", "endValue"], function(i) {
  84244. r[i] = n[i];
  84245. });
  84246. }, e.prototype.getPercentRange = function() {
  84247. var n = this.findRepresentativeAxisProxy();
  84248. if (n)
  84249. return n.getDataPercentWindow();
  84250. }, e.prototype.getValueRange = function(n, r) {
  84251. if (n == null && r == null) {
  84252. var i = this.findRepresentativeAxisProxy();
  84253. if (i)
  84254. return i.getDataValueWindow();
  84255. } else
  84256. return this.getAxisProxy(n, r).getDataValueWindow();
  84257. }, e.prototype.findRepresentativeAxisProxy = function(n) {
  84258. if (n)
  84259. return n.__dzAxisProxy;
  84260. for (var r, i = this._targetAxisInfoMap.keys(), a = 0; a < i.length; a++)
  84261. for (var o = i[a], s = this._targetAxisInfoMap.get(o), l = 0; l < s.indexList.length; l++) {
  84262. var u = this.getAxisProxy(o, s.indexList[l]);
  84263. if (u.hostedBy(this))
  84264. return u;
  84265. r || (r = u);
  84266. }
  84267. return r;
  84268. }, e.prototype.getRangePropMode = function() {
  84269. return this._rangePropMode.slice();
  84270. }, e.prototype.getOrient = function() {
  84271. return process.env.NODE_ENV !== "production" && at(this._orient), this._orient;
  84272. }, e.type = "dataZoom", e.dependencies = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "series", "toolbox"], e.defaultOption = {
  84273. // zlevel: 0,
  84274. z: 4,
  84275. filterMode: "filter",
  84276. start: 0,
  84277. end: 100
  84278. }, e;
  84279. }(At)
  84280. );
  84281. function KX(t) {
  84282. var e = {};
  84283. return F(["start", "end", "startValue", "endValue", "throttle"], function(n) {
  84284. t.hasOwnProperty(n) && (e[n] = t[n]);
  84285. }), e;
  84286. }
  84287. var jlt = (
  84288. /** @class */
  84289. function(t) {
  84290. le(e, t);
  84291. function e() {
  84292. var n = t !== null && t.apply(this, arguments) || this;
  84293. return n.type = e.type, n;
  84294. }
  84295. return e.type = "dataZoom.select", e;
  84296. }(d_)
  84297. ), O6 = (
  84298. /** @class */
  84299. function(t) {
  84300. le(e, t);
  84301. function e() {
  84302. var n = t !== null && t.apply(this, arguments) || this;
  84303. return n.type = e.type, n;
  84304. }
  84305. return e.prototype.render = function(n, r, i, a) {
  84306. this.dataZoomModel = n, this.ecModel = r, this.api = i;
  84307. }, e.type = "dataZoom", e;
  84308. }(Ln)
  84309. ), Zlt = (
  84310. /** @class */
  84311. function(t) {
  84312. le(e, t);
  84313. function e() {
  84314. var n = t !== null && t.apply(this, arguments) || this;
  84315. return n.type = e.type, n;
  84316. }
  84317. return e.type = "dataZoom.select", e;
  84318. }(O6)
  84319. ), xv = F, JX = ao, Ult = (
  84320. /** @class */
  84321. function() {
  84322. function t(e, n, r, i) {
  84323. this._dimName = e, this._axisIndex = n, this.ecModel = i, this._dataZoomModel = r;
  84324. }
  84325. return t.prototype.hostedBy = function(e) {
  84326. return this._dataZoomModel === e;
  84327. }, t.prototype.getDataValueWindow = function() {
  84328. return this._valueWindow.slice();
  84329. }, t.prototype.getDataPercentWindow = function() {
  84330. return this._percentWindow.slice();
  84331. }, t.prototype.getTargetSeriesModels = function() {
  84332. var e = [];
  84333. return this.ecModel.eachSeries(function(n) {
  84334. if (Hlt(n)) {
  84335. var r = Uc(this._dimName), i = n.getReferringComponents(r, Er).models[0];
  84336. i && this._axisIndex === i.componentIndex && e.push(n);
  84337. }
  84338. }, this), e;
  84339. }, t.prototype.getAxisModel = function() {
  84340. return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex);
  84341. }, t.prototype.getMinMaxSpan = function() {
  84342. return ot(this._minMaxSpan);
  84343. }, t.prototype.calculateDataWindow = function(e) {
  84344. var n = this._dataExtent, r = this.getAxisModel(), i = r.axis.scale, a = this._dataZoomModel.getRangePropMode(), o = [0, 100], s = [], l = [], u;
  84345. xv(["start", "end"], function(d, h) {
  84346. var p = e[d], v = e[d + "Value"];
  84347. a[h] === "percent" ? (p == null && (p = o[h]), v = i.parse(gn(p, o, n))) : (u = !0, v = v == null ? n[h] : i.parse(v), p = gn(v, n, o)), l[h] = v == null || isNaN(v) ? n[h] : v, s[h] = p == null || isNaN(p) ? o[h] : p;
  84348. }), JX(l), JX(s);
  84349. var c = this._minMaxSpan;
  84350. u ? f(l, s, n, o, !1) : f(s, l, o, n, !0);
  84351. function f(d, h, p, v, g) {
  84352. var m = g ? "Span" : "ValueSpan";
  84353. _p(0, d, p, "all", c["min" + m], c["max" + m]);
  84354. for (var y = 0; y < 2; y++)
  84355. h[y] = gn(d[y], p, v, !0), g && (h[y] = i.parse(h[y]));
  84356. }
  84357. return {
  84358. valueWindow: l,
  84359. percentWindow: s
  84360. };
  84361. }, t.prototype.reset = function(e) {
  84362. if (e === this._dataZoomModel) {
  84363. var n = this.getTargetSeriesModels();
  84364. this._dataExtent = Xlt(this, this._dimName, n), this._updateMinMaxSpan();
  84365. var r = this.calculateDataWindow(e.settledOption);
  84366. this._valueWindow = r.valueWindow, this._percentWindow = r.percentWindow, this._setAxisModel();
  84367. }
  84368. }, t.prototype.filterData = function(e, n) {
  84369. if (e !== this._dataZoomModel)
  84370. return;
  84371. var r = this._dimName, i = this.getTargetSeriesModels(), a = e.get("filterMode"), o = this._valueWindow;
  84372. if (a === "none")
  84373. return;
  84374. xv(i, function(l) {
  84375. var u = l.getData(), c = u.mapDimensionsAll(r);
  84376. if (c.length) {
  84377. if (a === "weakFilter") {
  84378. var f = u.getStore(), d = Ce(c, function(h) {
  84379. return u.getDimensionIndex(h);
  84380. }, u);
  84381. u.filterSelf(function(h) {
  84382. for (var p, v, g, m = 0; m < c.length; m++) {
  84383. var y = f.get(d[m], h), _ = !isNaN(y), O = y < o[0], S = y > o[1];
  84384. if (_ && !O && !S)
  84385. return !0;
  84386. _ && (g = !0), O && (p = !0), S && (v = !0);
  84387. }
  84388. return g && p && v;
  84389. });
  84390. } else
  84391. xv(c, function(h) {
  84392. if (a === "empty")
  84393. l.setData(u = u.map(h, function(v) {
  84394. return s(v) ? v : NaN;
  84395. }));
  84396. else {
  84397. var p = {};
  84398. p[h] = o, u.selectRange(p);
  84399. }
  84400. });
  84401. xv(c, function(h) {
  84402. u.setApproximateExtent(o, h);
  84403. });
  84404. }
  84405. });
  84406. function s(l) {
  84407. return l >= o[0] && l <= o[1];
  84408. }
  84409. }, t.prototype._updateMinMaxSpan = function() {
  84410. var e = this._minMaxSpan = {}, n = this._dataZoomModel, r = this._dataExtent;
  84411. xv(["min", "max"], function(i) {
  84412. var a = n.get(i + "Span"), o = n.get(i + "ValueSpan");
  84413. o != null && (o = this.getAxisModel().axis.scale.parse(o)), o != null ? a = gn(r[0] + o, r, [0, 100], !0) : a != null && (o = gn(a, [0, 100], r, !0) - r[0]), e[i + "Span"] = a, e[i + "ValueSpan"] = o;
  84414. }, this);
  84415. }, t.prototype._setAxisModel = function() {
  84416. var e = this.getAxisModel(), n = this._percentWindow, r = this._valueWindow;
  84417. if (n) {
  84418. var i = T5(r, [0, 500]);
  84419. i = Math.min(i, 20);
  84420. var a = e.axis.scale.rawExtentInfo;
  84421. n[0] !== 0 && a.setDeterminedMinMax("min", +r[0].toFixed(i)), n[1] !== 100 && a.setDeterminedMinMax("max", +r[1].toFixed(i)), a.freeze();
  84422. }
  84423. }, t;
  84424. }()
  84425. );
  84426. function Xlt(t, e, n) {
  84427. var r = [1 / 0, -1 / 0];
  84428. xv(n, function(o) {
  84429. fKe(r, o.getData(), e);
  84430. });
  84431. var i = t.getAxisModel(), a = Tce(i.axis.scale, i, r).calculate();
  84432. return [a.min, a.max];
  84433. }
  84434. var Ylt = {
  84435. // `dataZoomProcessor` will only be performed in needed series. Consider if
  84436. // there is a line series and a pie series, it is better not to update the
  84437. // line series if only pie series is needed to be updated.
  84438. getTargetSeries: function(t) {
  84439. function e(i) {
  84440. t.eachComponent("dataZoom", function(a) {
  84441. a.eachTargetAxis(function(o, s) {
  84442. var l = t.getComponent(Uc(o), s);
  84443. i(o, s, l, a);
  84444. });
  84445. });
  84446. }
  84447. e(function(i, a, o, s) {
  84448. o.__dzAxisProxy = null;
  84449. });
  84450. var n = [];
  84451. e(function(i, a, o, s) {
  84452. o.__dzAxisProxy || (o.__dzAxisProxy = new Ult(i, a, s, t), n.push(o.__dzAxisProxy));
  84453. });
  84454. var r = Ze();
  84455. return F(n, function(i) {
  84456. F(i.getTargetSeriesModels(), function(a) {
  84457. r.set(a.uid, a);
  84458. });
  84459. }), r;
  84460. },
  84461. // Consider appendData, where filter should be performed. Because data process is
  84462. // in block mode currently, it is not need to worry about that the overallProgress
  84463. // execute every frame.
  84464. overallReset: function(t, e) {
  84465. t.eachComponent("dataZoom", function(n) {
  84466. n.eachTargetAxis(function(r, i) {
  84467. n.getAxisProxy(r, i).reset(n);
  84468. }), n.eachTargetAxis(function(r, i) {
  84469. n.getAxisProxy(r, i).filterData(n, e);
  84470. });
  84471. }), t.eachComponent("dataZoom", function(n) {
  84472. var r = n.findRepresentativeAxisProxy();
  84473. if (r) {
  84474. var i = r.getDataPercentWindow(), a = r.getDataValueWindow();
  84475. n.setCalculatedRange({
  84476. start: i[0],
  84477. end: i[1],
  84478. startValue: a[0],
  84479. endValue: a[1]
  84480. });
  84481. }
  84482. });
  84483. }
  84484. };
  84485. function qlt(t) {
  84486. t.registerAction("dataZoom", function(e, n) {
  84487. var r = Glt(n, e);
  84488. F(r, function(i) {
  84489. i.setRawRange({
  84490. start: e.start,
  84491. end: e.end,
  84492. startValue: e.startValue,
  84493. endValue: e.endValue
  84494. });
  84495. });
  84496. });
  84497. }
  84498. var eY = !1;
  84499. function S6(t) {
  84500. eY || (eY = !0, t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, Ylt), qlt(t), t.registerSubTypeDefaulter("dataZoom", function() {
  84501. return "slider";
  84502. }));
  84503. }
  84504. function Klt(t) {
  84505. t.registerComponentModel(jlt), t.registerComponentView(Zlt), S6(t);
  84506. }
  84507. var Ho = (
  84508. /** @class */
  84509. /* @__PURE__ */ function() {
  84510. function t() {
  84511. }
  84512. return t;
  84513. }()
  84514. ), fhe = {};
  84515. function wv(t, e) {
  84516. fhe[t] = e;
  84517. }
  84518. function dhe(t) {
  84519. return fhe[t];
  84520. }
  84521. var Jlt = (
  84522. /** @class */
  84523. function(t) {
  84524. le(e, t);
  84525. function e() {
  84526. var n = t !== null && t.apply(this, arguments) || this;
  84527. return n.type = e.type, n;
  84528. }
  84529. return e.prototype.optionUpdated = function() {
  84530. t.prototype.optionUpdated.apply(this, arguments);
  84531. var n = this.ecModel;
  84532. F(this.option.feature, function(r, i) {
  84533. var a = dhe(i);
  84534. a && (a.getDefaultOption && (a.defaultOption = a.getDefaultOption(n)), mt(r, a.defaultOption));
  84535. });
  84536. }, e.type = "toolbox", e.layoutMode = {
  84537. type: "box",
  84538. ignoreSize: !0
  84539. }, e.defaultOption = {
  84540. show: !0,
  84541. z: 6,
  84542. // zlevel: 0,
  84543. orient: "horizontal",
  84544. left: "right",
  84545. top: "top",
  84546. // right
  84547. // bottom
  84548. backgroundColor: "transparent",
  84549. borderColor: "#ccc",
  84550. borderRadius: 0,
  84551. borderWidth: 0,
  84552. padding: 5,
  84553. itemSize: 15,
  84554. itemGap: 8,
  84555. showTitle: !0,
  84556. iconStyle: {
  84557. borderColor: "#666",
  84558. color: "none"
  84559. },
  84560. emphasis: {
  84561. iconStyle: {
  84562. borderColor: "#3E98C5"
  84563. }
  84564. },
  84565. // textStyle: {},
  84566. // feature
  84567. tooltip: {
  84568. show: !1,
  84569. position: "bottom"
  84570. }
  84571. }, e;
  84572. }(At)
  84573. );
  84574. function eut(t, e, n) {
  84575. var r = e.getBoxLayoutParams(), i = e.get("padding"), a = {
  84576. width: n.getWidth(),
  84577. height: n.getHeight()
  84578. }, o = Mr(r, a, i);
  84579. Th(e.get("orient"), t, e.get("itemGap"), o.width, o.height), MP(t, r, a, i);
  84580. }
  84581. function hhe(t, e) {
  84582. var n = vp(e.get("padding")), r = e.getItemStyle(["color", "opacity"]);
  84583. return r.fill = e.get("backgroundColor"), t = new Zt({
  84584. shape: {
  84585. x: t.x - n[3],
  84586. y: t.y - n[0],
  84587. width: t.width + n[1] + n[3],
  84588. height: t.height + n[0] + n[2],
  84589. r: e.get("borderRadius")
  84590. },
  84591. style: r,
  84592. silent: !0,
  84593. z2: -1
  84594. }), t;
  84595. }
  84596. var tut = (
  84597. /** @class */
  84598. function(t) {
  84599. le(e, t);
  84600. function e() {
  84601. return t !== null && t.apply(this, arguments) || this;
  84602. }
  84603. return e.prototype.render = function(n, r, i, a) {
  84604. var o = this.group;
  84605. if (o.removeAll(), !n.get("show"))
  84606. return;
  84607. var s = +n.get("itemSize"), l = n.get("orient") === "vertical", u = n.get("feature") || {}, c = this._features || (this._features = {}), f = [];
  84608. F(u, function(p, v) {
  84609. f.push(v);
  84610. }), new Qu(this._featureNames || [], f).add(d).update(d).remove(vt(d, null)).execute(), this._featureNames = f;
  84611. function d(p, v) {
  84612. var g = f[p], m = f[v], y = u[g], _ = new wn(y, n, n.ecModel), O;
  84613. if (a && a.newTitle != null && a.featureName === g && (y.title = a.newTitle), g && !m) {
  84614. if (nut(g))
  84615. O = {
  84616. onclick: _.option.onclick,
  84617. featureName: g
  84618. };
  84619. else {
  84620. var S = dhe(g);
  84621. if (!S)
  84622. return;
  84623. O = new S();
  84624. }
  84625. c[g] = O;
  84626. } else if (O = c[m], !O)
  84627. return;
  84628. O.uid = Cm("toolbox-feature"), O.model = _, O.ecModel = r, O.api = i;
  84629. var x = O instanceof Ho;
  84630. if (!g && m) {
  84631. x && O.dispose && O.dispose(r, i);
  84632. return;
  84633. }
  84634. if (!_.get("show") || x && O.unusable) {
  84635. x && O.remove && O.remove(r, i);
  84636. return;
  84637. }
  84638. h(_, O, g), _.setIconStatus = function(C, P) {
  84639. var $ = this.option, T = this.iconPaths;
  84640. $.iconStatus = $.iconStatus || {}, $.iconStatus[C] = P, T[C] && (P === "emphasis" ? Fu : Wu)(T[C]);
  84641. }, O instanceof Ho && O.render && O.render(_, r, i, a);
  84642. }
  84643. function h(p, v, g) {
  84644. var m = p.getModel("iconStyle"), y = p.getModel(["emphasis", "iconStyle"]), _ = v instanceof Ho && v.getIcons ? v.getIcons() : p.get("icon"), O = p.get("title") || {}, S, x;
  84645. Ve(_) ? (S = {}, S[g] = _) : S = _, Ve(O) ? (x = {}, x[g] = O) : x = O;
  84646. var C = p.iconPaths = {};
  84647. F(S, function(P, $) {
  84648. var T = Sm(P, {}, {
  84649. x: -s / 2,
  84650. y: -s / 2,
  84651. width: s,
  84652. height: s
  84653. });
  84654. T.setStyle(m.getItemStyle());
  84655. var E = T.ensureState("emphasis");
  84656. E.style = y.getItemStyle();
  84657. var M = new jt({
  84658. style: {
  84659. text: x[$],
  84660. align: y.get("textAlign"),
  84661. borderRadius: y.get("textBorderRadius"),
  84662. padding: y.get("textPadding"),
  84663. fill: null,
  84664. font: G5({
  84665. fontStyle: y.get("textFontStyle"),
  84666. fontFamily: y.get("textFontFamily"),
  84667. fontSize: y.get("textFontSize"),
  84668. fontWeight: y.get("textFontWeight")
  84669. }, r)
  84670. },
  84671. ignore: !0
  84672. });
  84673. T.setTextContent(M), xm({
  84674. el: T,
  84675. componentModel: n,
  84676. itemName: $,
  84677. formatterParamsExtra: {
  84678. title: x[$]
  84679. }
  84680. }), T.__title = x[$], T.on("mouseover", function() {
  84681. var R = y.getItemStyle(), N = l ? n.get("right") == null && n.get("left") !== "right" ? "right" : "left" : n.get("bottom") == null && n.get("top") !== "bottom" ? "bottom" : "top";
  84682. M.setStyle({
  84683. fill: y.get("textFill") || R.fill || R.stroke || "#000",
  84684. backgroundColor: y.get("textBackgroundColor")
  84685. }), T.setTextConfig({
  84686. position: y.get("textPosition") || N
  84687. }), M.ignore = !n.get("showTitle"), i.enterEmphasis(this);
  84688. }).on("mouseout", function() {
  84689. p.get(["iconStatus", $]) !== "emphasis" && i.leaveEmphasis(this), M.hide();
  84690. }), (p.get(["iconStatus", $]) === "emphasis" ? Fu : Wu)(T), o.add(T), T.on("click", We(v.onclick, v, r, i, $)), C[$] = T;
  84691. });
  84692. }
  84693. eut(o, n, i), o.add(hhe(o.getBoundingRect(), n)), l || o.eachChild(function(p) {
  84694. var v = p.__title, g = p.ensureState("emphasis"), m = g.textConfig || (g.textConfig = {}), y = p.getTextContent(), _ = y && y.ensureState("emphasis");
  84695. if (_ && !qe(_) && v) {
  84696. var O = _.style || (_.style = {}), S = o1(v, jt.makeFont(O)), x = p.x + o.x, C = p.y + o.y + s, P = !1;
  84697. C + S.height > i.getHeight() && (m.position = "top", P = !0);
  84698. var $ = P ? -5 - S.height : s + 10;
  84699. x + S.width / 2 > i.getWidth() ? (m.position = ["100%", $], O.align = "right") : x - S.width / 2 < 0 && (m.position = [0, $], O.align = "left");
  84700. }
  84701. });
  84702. }, e.prototype.updateView = function(n, r, i, a) {
  84703. F(this._features, function(o) {
  84704. o instanceof Ho && o.updateView && o.updateView(o.model, r, i, a);
  84705. });
  84706. }, e.prototype.remove = function(n, r) {
  84707. F(this._features, function(i) {
  84708. i instanceof Ho && i.remove && i.remove(n, r);
  84709. }), this.group.removeAll();
  84710. }, e.prototype.dispose = function(n, r) {
  84711. F(this._features, function(i) {
  84712. i instanceof Ho && i.dispose && i.dispose(n, r);
  84713. });
  84714. }, e.type = "toolbox", e;
  84715. }(Ln)
  84716. );
  84717. function nut(t) {
  84718. return t.indexOf("my") === 0;
  84719. }
  84720. var rut = (
  84721. /** @class */
  84722. function(t) {
  84723. le(e, t);
  84724. function e() {
  84725. return t !== null && t.apply(this, arguments) || this;
  84726. }
  84727. return e.prototype.onclick = function(n, r) {
  84728. var i = this.model, a = i.get("name") || n.get("title.0.text") || "echarts", o = r.getZr().painter.getType() === "svg", s = o ? "svg" : i.get("type", !0) || "png", l = r.getConnectedDataURL({
  84729. type: s,
  84730. backgroundColor: i.get("backgroundColor", !0) || n.get("backgroundColor") || "#fff",
  84731. connectedBackgroundColor: i.get("connectedBackgroundColor"),
  84732. excludeComponents: i.get("excludeComponents"),
  84733. pixelRatio: i.get("pixelRatio")
  84734. }), u = Gt.browser;
  84735. if (typeof MouseEvent == "function" && (u.newEdge || !u.ie && !u.edge)) {
  84736. var c = document.createElement("a");
  84737. c.download = a + "." + s, c.target = "_blank", c.href = l;
  84738. var f = new MouseEvent("click", {
  84739. // some micro front-end framework, window maybe is a Proxy
  84740. view: document.defaultView,
  84741. bubbles: !0,
  84742. cancelable: !1
  84743. });
  84744. c.dispatchEvent(f);
  84745. } else if (window.navigator.msSaveOrOpenBlob || o) {
  84746. var d = l.split(","), h = d[0].indexOf("base64") > -1, p = o ? decodeURIComponent(d[1]) : d[1];
  84747. h && (p = window.atob(p));
  84748. var v = a + "." + s;
  84749. if (window.navigator.msSaveOrOpenBlob) {
  84750. for (var g = p.length, m = new Uint8Array(g); g--; )
  84751. m[g] = p.charCodeAt(g);
  84752. var y = new Blob([m]);
  84753. window.navigator.msSaveOrOpenBlob(y, v);
  84754. } else {
  84755. var _ = document.createElement("iframe");
  84756. document.body.appendChild(_);
  84757. var O = _.contentWindow, S = O.document;
  84758. S.open("image/svg+xml", "replace"), S.write(p), S.close(), O.focus(), S.execCommand("SaveAs", !0, v), document.body.removeChild(_);
  84759. }
  84760. } else {
  84761. var x = i.get("lang"), C = '<body style="margin:0;"><img src="' + l + '" style="max-width:100%;" title="' + (x && x[0] || "") + '" /></body>', P = window.open();
  84762. P.document.write(C), P.document.title = a;
  84763. }
  84764. }, e.getDefaultOption = function(n) {
  84765. var r = {
  84766. show: !0,
  84767. icon: "M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",
  84768. title: n.getLocaleModel().get(["toolbox", "saveAsImage", "title"]),
  84769. type: "png",
  84770. // Default use option.backgroundColor
  84771. // backgroundColor: '#fff',
  84772. connectedBackgroundColor: "#fff",
  84773. name: "",
  84774. excludeComponents: ["toolbox"],
  84775. // use current pixel ratio of device by default
  84776. // pixelRatio: 1,
  84777. lang: n.getLocaleModel().get(["toolbox", "saveAsImage", "lang"])
  84778. };
  84779. return r;
  84780. }, e;
  84781. }(Ho)
  84782. ), tY = "__ec_magicType_stack__", iut = [["line", "bar"], ["stack"]], aut = (
  84783. /** @class */
  84784. function(t) {
  84785. le(e, t);
  84786. function e() {
  84787. return t !== null && t.apply(this, arguments) || this;
  84788. }
  84789. return e.prototype.getIcons = function() {
  84790. var n = this.model, r = n.get("icon"), i = {};
  84791. return F(n.get("type"), function(a) {
  84792. r[a] && (i[a] = r[a]);
  84793. }), i;
  84794. }, e.getDefaultOption = function(n) {
  84795. var r = {
  84796. show: !0,
  84797. type: [],
  84798. // Icon group
  84799. icon: {
  84800. line: "M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",
  84801. bar: "M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",
  84802. // eslint-disable-next-line
  84803. stack: "M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"
  84804. // jshint ignore:line
  84805. },
  84806. // `line`, `bar`, `stack`, `tiled`
  84807. title: n.getLocaleModel().get(["toolbox", "magicType", "title"]),
  84808. option: {},
  84809. seriesIndex: {}
  84810. };
  84811. return r;
  84812. }, e.prototype.onclick = function(n, r, i) {
  84813. var a = this.model, o = a.get(["seriesIndex", i]);
  84814. if (nY[i]) {
  84815. var s = {
  84816. series: []
  84817. }, l = function(f) {
  84818. var d = f.subType, h = f.id, p = nY[i](d, h, f, a);
  84819. p && (it(p, f.option), s.series.push(p));
  84820. var v = f.coordinateSystem;
  84821. if (v && v.type === "cartesian2d" && (i === "line" || i === "bar")) {
  84822. var g = v.getAxesByScale("ordinal")[0];
  84823. if (g) {
  84824. var m = g.dim, y = m + "Axis", _ = f.getReferringComponents(y, Er).models[0], O = _.componentIndex;
  84825. s[y] = s[y] || [];
  84826. for (var S = 0; S <= O; S++)
  84827. s[y][O] = s[y][O] || {};
  84828. s[y][O].boundaryGap = i === "bar";
  84829. }
  84830. }
  84831. };
  84832. F(iut, function(f) {
  84833. St(f, i) >= 0 && F(f, function(d) {
  84834. a.setIconStatus(d, "normal");
  84835. });
  84836. }), a.setIconStatus(i, "emphasis"), n.eachComponent({
  84837. mainType: "series",
  84838. query: o == null ? null : {
  84839. seriesIndex: o
  84840. }
  84841. }, l);
  84842. var u, c = i;
  84843. i === "stack" && (u = mt({
  84844. stack: a.option.title.tiled,
  84845. tiled: a.option.title.stack
  84846. }, a.option.title), a.get(["iconStatus", i]) !== "emphasis" && (c = "tiled")), r.dispatchAction({
  84847. type: "changeMagicType",
  84848. currentType: c,
  84849. newOption: s,
  84850. newTitle: u,
  84851. featureName: "magicType"
  84852. });
  84853. }
  84854. }, e;
  84855. }(Ho)
  84856. ), nY = {
  84857. line: function(t, e, n, r) {
  84858. if (t === "bar")
  84859. return mt({
  84860. id: e,
  84861. type: "line",
  84862. // Preserve data related option
  84863. data: n.get("data"),
  84864. stack: n.get("stack"),
  84865. markPoint: n.get("markPoint"),
  84866. markLine: n.get("markLine")
  84867. }, r.get(["option", "line"]) || {}, !0);
  84868. },
  84869. bar: function(t, e, n, r) {
  84870. if (t === "line")
  84871. return mt({
  84872. id: e,
  84873. type: "bar",
  84874. // Preserve data related option
  84875. data: n.get("data"),
  84876. stack: n.get("stack"),
  84877. markPoint: n.get("markPoint"),
  84878. markLine: n.get("markLine")
  84879. }, r.get(["option", "bar"]) || {}, !0);
  84880. },
  84881. stack: function(t, e, n, r) {
  84882. var i = n.get("stack") === tY;
  84883. if (t === "line" || t === "bar")
  84884. return r.setIconStatus("stack", i ? "normal" : "emphasis"), mt({
  84885. id: e,
  84886. stack: i ? "" : tY
  84887. }, r.get(["option", "stack"]) || {}, !0);
  84888. }
  84889. };
  84890. Js({
  84891. type: "changeMagicType",
  84892. event: "magicTypeChanged",
  84893. update: "prepareAndUpdate"
  84894. }, function(t, e) {
  84895. e.mergeOption(t.newOption);
  84896. });
  84897. var XP = new Array(60).join("-"), Yg = " ";
  84898. function out(t) {
  84899. var e = {}, n = [], r = [];
  84900. return t.eachRawSeries(function(i) {
  84901. var a = i.coordinateSystem;
  84902. if (a && (a.type === "cartesian2d" || a.type === "polar")) {
  84903. var o = a.getBaseAxis();
  84904. if (o.type === "category") {
  84905. var s = o.dim + "_" + o.index;
  84906. e[s] || (e[s] = {
  84907. categoryAxis: o,
  84908. valueAxis: a.getOtherAxis(o),
  84909. series: []
  84910. }, r.push({
  84911. axisDim: o.dim,
  84912. axisIndex: o.index
  84913. })), e[s].series.push(i);
  84914. } else
  84915. n.push(i);
  84916. } else
  84917. n.push(i);
  84918. }), {
  84919. seriesGroupByCategoryAxis: e,
  84920. other: n,
  84921. meta: r
  84922. };
  84923. }
  84924. function sut(t) {
  84925. var e = [];
  84926. return F(t, function(n, r) {
  84927. var i = n.categoryAxis, a = n.valueAxis, o = a.dim, s = [" "].concat(Ce(n.series, function(h) {
  84928. return h.name;
  84929. })), l = [i.model.getCategories()];
  84930. F(n.series, function(h) {
  84931. var p = h.getRawData();
  84932. l.push(h.getRawData().mapArray(p.mapDimension(o), function(v) {
  84933. return v;
  84934. }));
  84935. });
  84936. for (var u = [s.join(Yg)], c = 0; c < l[0].length; c++) {
  84937. for (var f = [], d = 0; d < l.length; d++)
  84938. f.push(l[d][c]);
  84939. u.push(f.join(Yg));
  84940. }
  84941. e.push(u.join(`
  84942. `));
  84943. }), e.join(`
  84944. ` + XP + `
  84945. `);
  84946. }
  84947. function lut(t) {
  84948. return Ce(t, function(e) {
  84949. var n = e.getRawData(), r = [e.name], i = [];
  84950. return n.each(n.dimensions, function() {
  84951. for (var a = arguments.length, o = arguments[a - 1], s = n.getName(o), l = 0; l < a - 1; l++)
  84952. i[l] = arguments[l];
  84953. r.push((s ? s + Yg : "") + i.join(Yg));
  84954. }), r.join(`
  84955. `);
  84956. }).join(`
  84957. ` + XP + `
  84958. `);
  84959. }
  84960. function uut(t) {
  84961. var e = out(t);
  84962. return {
  84963. value: yn([sut(e.seriesGroupByCategoryAxis), lut(e.other)], function(n) {
  84964. return !!n.replace(/[\n\t\s]/g, "");
  84965. }).join(`
  84966. ` + XP + `
  84967. `),
  84968. meta: e.meta
  84969. };
  84970. }
  84971. function pT(t) {
  84972. return t.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
  84973. }
  84974. function cut(t) {
  84975. var e = t.slice(0, t.indexOf(`
  84976. `));
  84977. if (e.indexOf(Yg) >= 0)
  84978. return !0;
  84979. }
  84980. var AL = new RegExp("[" + Yg + "]+", "g");
  84981. function fut(t) {
  84982. for (var e = t.split(/\n+/g), n = pT(e.shift()).split(AL), r = [], i = Ce(n, function(l) {
  84983. return {
  84984. name: l,
  84985. data: []
  84986. };
  84987. }), a = 0; a < e.length; a++) {
  84988. var o = pT(e[a]).split(AL);
  84989. r.push(o.shift());
  84990. for (var s = 0; s < o.length; s++)
  84991. i[s] && (i[s].data[a] = o[s]);
  84992. }
  84993. return {
  84994. series: i,
  84995. categories: r
  84996. };
  84997. }
  84998. function dut(t) {
  84999. for (var e = t.split(/\n+/g), n = pT(e.shift()), r = [], i = 0; i < e.length; i++) {
  85000. var a = pT(e[i]);
  85001. if (a) {
  85002. var o = a.split(AL), s = "", l = void 0, u = !1;
  85003. isNaN(o[0]) ? (u = !0, s = o[0], o = o.slice(1), r[i] = {
  85004. name: s,
  85005. value: []
  85006. }, l = r[i].value) : l = r[i] = [];
  85007. for (var c = 0; c < o.length; c++)
  85008. l.push(+o[c]);
  85009. l.length === 1 && (u ? r[i].value = l[0] : r[i] = l[0]);
  85010. }
  85011. }
  85012. return {
  85013. name: n,
  85014. data: r
  85015. };
  85016. }
  85017. function hut(t, e) {
  85018. var n = t.split(new RegExp(`
  85019. *` + XP + `
  85020. *`, "g")), r = {
  85021. series: []
  85022. };
  85023. return F(n, function(i, a) {
  85024. if (cut(i)) {
  85025. var o = fut(i), s = e[a], l = s.axisDim + "Axis";
  85026. s && (r[l] = r[l] || [], r[l][s.axisIndex] = {
  85027. data: o.categories
  85028. }, r.series = r.series.concat(o.series));
  85029. } else {
  85030. var o = dut(i);
  85031. r.series.push(o);
  85032. }
  85033. }), r;
  85034. }
  85035. var put = (
  85036. /** @class */
  85037. function(t) {
  85038. le(e, t);
  85039. function e() {
  85040. return t !== null && t.apply(this, arguments) || this;
  85041. }
  85042. return e.prototype.onclick = function(n, r) {
  85043. setTimeout(function() {
  85044. r.dispatchAction({
  85045. type: "hideTip"
  85046. });
  85047. });
  85048. var i = r.getDom(), a = this.model;
  85049. this._dom && i.removeChild(this._dom);
  85050. var o = document.createElement("div");
  85051. o.style.cssText = "position:absolute;top:0;bottom:0;left:0;right:0;padding:5px", o.style.backgroundColor = a.get("backgroundColor") || "#fff";
  85052. var s = document.createElement("h4"), l = a.get("lang") || [];
  85053. s.innerHTML = l[0] || a.get("title"), s.style.cssText = "margin:10px 20px", s.style.color = a.get("textColor");
  85054. var u = document.createElement("div"), c = document.createElement("textarea");
  85055. u.style.cssText = "overflow:auto";
  85056. var f = a.get("optionToContent"), d = a.get("contentToOption"), h = uut(n);
  85057. if (qe(f)) {
  85058. var p = f(r.getOption());
  85059. Ve(p) ? u.innerHTML = p : gf(p) && u.appendChild(p);
  85060. } else {
  85061. c.readOnly = a.get("readOnly");
  85062. var v = c.style;
  85063. v.cssText = "display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none", v.color = a.get("textColor"), v.borderColor = a.get("textareaBorderColor"), v.backgroundColor = a.get("textareaColor"), c.value = h.value, u.appendChild(c);
  85064. }
  85065. var g = h.meta, m = document.createElement("div");
  85066. m.style.cssText = "position:absolute;bottom:5px;left:0;right:0";
  85067. var y = "float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px", _ = document.createElement("div"), O = document.createElement("div");
  85068. y += ";background-color:" + a.get("buttonColor"), y += ";color:" + a.get("buttonTextColor");
  85069. var S = this;
  85070. function x() {
  85071. i.removeChild(o), S._dom = null;
  85072. }
  85073. ok(_, "click", x), ok(O, "click", function() {
  85074. if (d == null && f != null || d != null && f == null) {
  85075. process.env.NODE_ENV !== "production" && nr("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."), x();
  85076. return;
  85077. }
  85078. var C;
  85079. try {
  85080. qe(d) ? C = d(u, r.getOption()) : C = hut(c.value, g);
  85081. } catch (P) {
  85082. throw x(), new Error("Data view format error " + P);
  85083. }
  85084. C && r.dispatchAction({
  85085. type: "changeDataView",
  85086. newOption: C
  85087. }), x();
  85088. }), _.innerHTML = l[1], O.innerHTML = l[2], O.style.cssText = _.style.cssText = y, !a.get("readOnly") && m.appendChild(O), m.appendChild(_), o.appendChild(s), o.appendChild(u), o.appendChild(m), u.style.height = i.clientHeight - 80 + "px", i.appendChild(o), this._dom = o;
  85089. }, e.prototype.remove = function(n, r) {
  85090. this._dom && r.getDom().removeChild(this._dom);
  85091. }, e.prototype.dispose = function(n, r) {
  85092. this.remove(n, r);
  85093. }, e.getDefaultOption = function(n) {
  85094. var r = {
  85095. show: !0,
  85096. readOnly: !1,
  85097. optionToContent: null,
  85098. contentToOption: null,
  85099. // eslint-disable-next-line
  85100. icon: "M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",
  85101. title: n.getLocaleModel().get(["toolbox", "dataView", "title"]),
  85102. lang: n.getLocaleModel().get(["toolbox", "dataView", "lang"]),
  85103. backgroundColor: "#fff",
  85104. textColor: "#000",
  85105. textareaColor: "#fff",
  85106. textareaBorderColor: "#333",
  85107. buttonColor: "#c23531",
  85108. buttonTextColor: "#fff"
  85109. };
  85110. return r;
  85111. }, e;
  85112. }(Ho)
  85113. );
  85114. function vut(t, e) {
  85115. return Ce(t, function(n, r) {
  85116. var i = e && e[r];
  85117. if (nt(i) && !Se(i)) {
  85118. var a = nt(n) && !Se(n);
  85119. a || (n = {
  85120. value: n
  85121. });
  85122. var o = i.name != null && n.name == null;
  85123. return n = it(n, i), o && delete n.name, n;
  85124. } else
  85125. return n;
  85126. });
  85127. }
  85128. Js({
  85129. type: "changeDataView",
  85130. event: "dataViewChanged",
  85131. update: "prepareAndUpdate"
  85132. }, function(t, e) {
  85133. var n = [];
  85134. F(t.newOption.series, function(r) {
  85135. var i = e.getSeriesByName(r.name)[0];
  85136. if (!i)
  85137. n.push(_e({
  85138. // Default is scatter
  85139. type: "scatter"
  85140. }, r));
  85141. else {
  85142. var a = i.get("data");
  85143. n.push({
  85144. name: r.name,
  85145. data: vut(r.data, a)
  85146. });
  85147. }
  85148. }), e.mergeOption(it({
  85149. series: n
  85150. }, t.newOption));
  85151. });
  85152. var phe = F, vhe = Ut();
  85153. function gut(t, e) {
  85154. var n = x6(t);
  85155. phe(e, function(r, i) {
  85156. for (var a = n.length - 1; a >= 0; a--) {
  85157. var o = n[a];
  85158. if (o[i])
  85159. break;
  85160. }
  85161. if (a < 0) {
  85162. var s = t.queryComponents({
  85163. mainType: "dataZoom",
  85164. subType: "select",
  85165. id: i
  85166. })[0];
  85167. if (s) {
  85168. var l = s.getPercentRange();
  85169. n[0][i] = {
  85170. dataZoomId: i,
  85171. start: l[0],
  85172. end: l[1]
  85173. };
  85174. }
  85175. }
  85176. }), n.push(e);
  85177. }
  85178. function mut(t) {
  85179. var e = x6(t), n = e[e.length - 1];
  85180. e.length > 1 && e.pop();
  85181. var r = {};
  85182. return phe(n, function(i, a) {
  85183. for (var o = e.length - 1; o >= 0; o--)
  85184. if (i = e[o][a], i) {
  85185. r[a] = i;
  85186. break;
  85187. }
  85188. }), r;
  85189. }
  85190. function yut(t) {
  85191. vhe(t).snapshots = null;
  85192. }
  85193. function but(t) {
  85194. return x6(t).length;
  85195. }
  85196. function x6(t) {
  85197. var e = vhe(t);
  85198. return e.snapshots || (e.snapshots = [{}]), e.snapshots;
  85199. }
  85200. var _ut = (
  85201. /** @class */
  85202. function(t) {
  85203. le(e, t);
  85204. function e() {
  85205. return t !== null && t.apply(this, arguments) || this;
  85206. }
  85207. return e.prototype.onclick = function(n, r) {
  85208. yut(n), r.dispatchAction({
  85209. type: "restore",
  85210. from: this.uid
  85211. });
  85212. }, e.getDefaultOption = function(n) {
  85213. var r = {
  85214. show: !0,
  85215. // eslint-disable-next-line
  85216. icon: "M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",
  85217. title: n.getLocaleModel().get(["toolbox", "restore", "title"])
  85218. };
  85219. return r;
  85220. }, e;
  85221. }(Ho)
  85222. );
  85223. Js({
  85224. type: "restore",
  85225. event: "restore",
  85226. update: "prepareAndUpdate"
  85227. }, function(t, e) {
  85228. e.resetOption("recreate");
  85229. });
  85230. var Out = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"], w6 = (
  85231. /** @class */
  85232. function() {
  85233. function t(e, n, r) {
  85234. var i = this;
  85235. this._targetInfoList = [];
  85236. var a = rY(n, e);
  85237. F(Sut, function(o, s) {
  85238. (!r || !r.include || St(r.include, s) >= 0) && o(a, i._targetInfoList);
  85239. });
  85240. }
  85241. return t.prototype.setOutputRanges = function(e, n) {
  85242. return this.matchOutputRanges(e, n, function(r, i, a) {
  85243. if ((r.coordRanges || (r.coordRanges = [])).push(i), !r.coordRange) {
  85244. r.coordRange = i;
  85245. var o = kI[r.brushType](0, a, i);
  85246. r.__rangeOffset = {
  85247. offset: sY[r.brushType](o.values, r.range, [1, 1]),
  85248. xyMinMax: o.xyMinMax
  85249. };
  85250. }
  85251. }), e;
  85252. }, t.prototype.matchOutputRanges = function(e, n, r) {
  85253. F(e, function(i) {
  85254. var a = this.findTargetInfo(i, n);
  85255. a && a !== !0 && F(a.coordSyses, function(o) {
  85256. var s = kI[i.brushType](1, o, i.range, !0);
  85257. r(i, s.values, o, n);
  85258. });
  85259. }, this);
  85260. }, t.prototype.setInputRanges = function(e, n) {
  85261. F(e, function(r) {
  85262. var i = this.findTargetInfo(r, n);
  85263. if (process.env.NODE_ENV !== "production" && (at(!i || i === !0 || r.coordRange, "coordRange must be specified when coord index specified."), at(!i || i !== !0 || r.range, "range must be specified in global brush.")), r.range = r.range || [], i && i !== !0) {
  85264. r.panelId = i.panelId;
  85265. var a = kI[r.brushType](0, i.coordSys, r.coordRange), o = r.__rangeOffset;
  85266. r.range = o ? sY[r.brushType](a.values, o.offset, xut(a.xyMinMax, o.xyMinMax)) : a.values;
  85267. }
  85268. }, this);
  85269. }, t.prototype.makePanelOpts = function(e, n) {
  85270. return Ce(this._targetInfoList, function(r) {
  85271. var i = r.getPanelRect();
  85272. return {
  85273. panelId: r.panelId,
  85274. defaultBrushType: n ? n(r) : null,
  85275. clipPath: Sde(i),
  85276. isTargetByCursor: wde(i, e, r.coordSysModel),
  85277. getLinearBrushOtherExtent: xde(i)
  85278. };
  85279. });
  85280. }, t.prototype.controlSeries = function(e, n, r) {
  85281. var i = this.findTargetInfo(e, r);
  85282. return i === !0 || i && St(i.coordSyses, n.coordinateSystem) >= 0;
  85283. }, t.prototype.findTargetInfo = function(e, n) {
  85284. for (var r = this._targetInfoList, i = rY(n, e), a = 0; a < r.length; a++) {
  85285. var o = r[a], s = e.panelId;
  85286. if (s) {
  85287. if (o.panelId === s)
  85288. return o;
  85289. } else
  85290. for (var l = 0; l < iY.length; l++)
  85291. if (iY[l](i, o))
  85292. return o;
  85293. }
  85294. return !0;
  85295. }, t;
  85296. }()
  85297. );
  85298. function EL(t) {
  85299. return t[0] > t[1] && t.reverse(), t;
  85300. }
  85301. function rY(t, e) {
  85302. return tb(t, e, {
  85303. includeMainTypes: Out
  85304. });
  85305. }
  85306. var Sut = {
  85307. grid: function(t, e) {
  85308. var n = t.xAxisModels, r = t.yAxisModels, i = t.gridModels, a = Ze(), o = {}, s = {};
  85309. !n && !r && !i || (F(n, function(l) {
  85310. var u = l.axis.grid.model;
  85311. a.set(u.id, u), o[u.id] = !0;
  85312. }), F(r, function(l) {
  85313. var u = l.axis.grid.model;
  85314. a.set(u.id, u), s[u.id] = !0;
  85315. }), F(i, function(l) {
  85316. a.set(l.id, l), o[l.id] = !0, s[l.id] = !0;
  85317. }), a.each(function(l) {
  85318. var u = l.coordinateSystem, c = [];
  85319. F(u.getCartesians(), function(f, d) {
  85320. (St(n, f.getAxis("x").model) >= 0 || St(r, f.getAxis("y").model) >= 0) && c.push(f);
  85321. }), e.push({
  85322. panelId: "grid--" + l.id,
  85323. gridModel: l,
  85324. coordSysModel: l,
  85325. // Use the first one as the representitive coordSys.
  85326. coordSys: c[0],
  85327. coordSyses: c,
  85328. getPanelRect: aY.grid,
  85329. xAxisDeclared: o[l.id],
  85330. yAxisDeclared: s[l.id]
  85331. });
  85332. }));
  85333. },
  85334. geo: function(t, e) {
  85335. F(t.geoModels, function(n) {
  85336. var r = n.coordinateSystem;
  85337. e.push({
  85338. panelId: "geo--" + n.id,
  85339. geoModel: n,
  85340. coordSysModel: n,
  85341. coordSys: r,
  85342. coordSyses: [r],
  85343. getPanelRect: aY.geo
  85344. });
  85345. });
  85346. }
  85347. }, iY = [
  85348. // grid
  85349. function(t, e) {
  85350. var n = t.xAxisModel, r = t.yAxisModel, i = t.gridModel;
  85351. return !i && n && (i = n.axis.grid.model), !i && r && (i = r.axis.grid.model), i && i === e.gridModel;
  85352. },
  85353. // geo
  85354. function(t, e) {
  85355. var n = t.geoModel;
  85356. return n && n === e.geoModel;
  85357. }
  85358. ], aY = {
  85359. grid: function() {
  85360. return this.coordSys.master.getRect().clone();
  85361. },
  85362. geo: function() {
  85363. var t = this.coordSys, e = t.getBoundingRect().clone();
  85364. return e.applyTransform(of(t)), e;
  85365. }
  85366. }, kI = {
  85367. lineX: vt(oY, 0),
  85368. lineY: vt(oY, 1),
  85369. rect: function(t, e, n, r) {
  85370. var i = t ? e.pointToData([n[0][0], n[1][0]], r) : e.dataToPoint([n[0][0], n[1][0]], r), a = t ? e.pointToData([n[0][1], n[1][1]], r) : e.dataToPoint([n[0][1], n[1][1]], r), o = [EL([i[0], a[0]]), EL([i[1], a[1]])];
  85371. return {
  85372. values: o,
  85373. xyMinMax: o
  85374. };
  85375. },
  85376. polygon: function(t, e, n, r) {
  85377. var i = [[1 / 0, -1 / 0], [1 / 0, -1 / 0]], a = Ce(n, function(o) {
  85378. var s = t ? e.pointToData(o, r) : e.dataToPoint(o, r);
  85379. return i[0][0] = Math.min(i[0][0], s[0]), i[1][0] = Math.min(i[1][0], s[1]), i[0][1] = Math.max(i[0][1], s[0]), i[1][1] = Math.max(i[1][1], s[1]), s;
  85380. });
  85381. return {
  85382. values: a,
  85383. xyMinMax: i
  85384. };
  85385. }
  85386. };
  85387. function oY(t, e, n, r) {
  85388. process.env.NODE_ENV !== "production" && at(n.type === "cartesian2d", "lineX/lineY brush is available only in cartesian2d.");
  85389. var i = n.getAxis(["x", "y"][t]), a = EL(Ce([0, 1], function(s) {
  85390. return e ? i.coordToData(i.toLocalCoord(r[s]), !0) : i.toGlobalCoord(i.dataToCoord(r[s]));
  85391. })), o = [];
  85392. return o[t] = a, o[1 - t] = [NaN, NaN], {
  85393. values: a,
  85394. xyMinMax: o
  85395. };
  85396. }
  85397. var sY = {
  85398. lineX: vt(lY, 0),
  85399. lineY: vt(lY, 1),
  85400. rect: function(t, e, n) {
  85401. return [[t[0][0] - n[0] * e[0][0], t[0][1] - n[0] * e[0][1]], [t[1][0] - n[1] * e[1][0], t[1][1] - n[1] * e[1][1]]];
  85402. },
  85403. polygon: function(t, e, n) {
  85404. return Ce(t, function(r, i) {
  85405. return [r[0] - n[0] * e[i][0], r[1] - n[1] * e[i][1]];
  85406. });
  85407. }
  85408. };
  85409. function lY(t, e, n, r) {
  85410. return [e[0] - r[t] * n[0], e[1] - r[t] * n[1]];
  85411. }
  85412. function xut(t, e) {
  85413. var n = uY(t), r = uY(e), i = [n[0] / r[0], n[1] / r[1]];
  85414. return isNaN(i[0]) && (i[0] = 1), isNaN(i[1]) && (i[1] = 1), i;
  85415. }
  85416. function uY(t) {
  85417. return t ? [t[0][1] - t[0][0], t[1][1] - t[1][0]] : [NaN, NaN];
  85418. }
  85419. var ML = F, wut = sje("toolbox-dataZoom_"), Cut = (
  85420. /** @class */
  85421. function(t) {
  85422. le(e, t);
  85423. function e() {
  85424. return t !== null && t.apply(this, arguments) || this;
  85425. }
  85426. return e.prototype.render = function(n, r, i, a) {
  85427. this._brushController || (this._brushController = new J3(i.getZr()), this._brushController.on("brush", We(this._onBrush, this)).mount()), $ut(n, r, this, a, i), Put(n, r);
  85428. }, e.prototype.onclick = function(n, r, i) {
  85429. Tut[i].call(this);
  85430. }, e.prototype.remove = function(n, r) {
  85431. this._brushController && this._brushController.unmount();
  85432. }, e.prototype.dispose = function(n, r) {
  85433. this._brushController && this._brushController.dispose();
  85434. }, e.prototype._onBrush = function(n) {
  85435. var r = n.areas;
  85436. if (!n.isEnd || !r.length)
  85437. return;
  85438. var i = {}, a = this.ecModel;
  85439. this._brushController.updateCovers([]);
  85440. var o = new w6(C6(this.model), a, {
  85441. include: ["grid"]
  85442. });
  85443. o.matchOutputRanges(r, a, function(u, c, f) {
  85444. if (f.type === "cartesian2d") {
  85445. var d = u.brushType;
  85446. d === "rect" ? (s("x", f, c[0]), s("y", f, c[1])) : s({
  85447. lineX: "x",
  85448. lineY: "y"
  85449. }[d], f, c);
  85450. }
  85451. }), gut(a, i), this._dispatchZoomAction(i);
  85452. function s(u, c, f) {
  85453. var d = c.getAxis(u), h = d.model, p = l(u, h, a), v = p.findRepresentativeAxisProxy(h).getMinMaxSpan();
  85454. (v.minValueSpan != null || v.maxValueSpan != null) && (f = _p(0, f.slice(), d.scale.getExtent(), 0, v.minValueSpan, v.maxValueSpan)), p && (i[p.id] = {
  85455. dataZoomId: p.id,
  85456. startValue: f[0],
  85457. endValue: f[1]
  85458. });
  85459. }
  85460. function l(u, c, f) {
  85461. var d;
  85462. return f.eachComponent({
  85463. mainType: "dataZoom",
  85464. subType: "select"
  85465. }, function(h) {
  85466. var p = h.getAxisModel(u, c.componentIndex);
  85467. p && (d = h);
  85468. }), d;
  85469. }
  85470. }, e.prototype._dispatchZoomAction = function(n) {
  85471. var r = [];
  85472. ML(n, function(i, a) {
  85473. r.push(ot(i));
  85474. }), r.length && this.api.dispatchAction({
  85475. type: "dataZoom",
  85476. from: this.uid,
  85477. batch: r
  85478. });
  85479. }, e.getDefaultOption = function(n) {
  85480. var r = {
  85481. show: !0,
  85482. filterMode: "filter",
  85483. // Icon group
  85484. icon: {
  85485. zoom: "M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",
  85486. back: "M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"
  85487. },
  85488. // `zoom`, `back`
  85489. title: n.getLocaleModel().get(["toolbox", "dataZoom", "title"]),
  85490. brushStyle: {
  85491. borderWidth: 0,
  85492. color: "rgba(210,219,238,0.2)"
  85493. }
  85494. };
  85495. return r;
  85496. }, e;
  85497. }(Ho)
  85498. ), Tut = {
  85499. zoom: function() {
  85500. var t = !this._isZoomActive;
  85501. this.api.dispatchAction({
  85502. type: "takeGlobalCursor",
  85503. key: "dataZoomSelect",
  85504. dataZoomSelectActive: t
  85505. });
  85506. },
  85507. back: function() {
  85508. this._dispatchZoomAction(mut(this.ecModel));
  85509. }
  85510. };
  85511. function C6(t) {
  85512. var e = {
  85513. xAxisIndex: t.get("xAxisIndex", !0),
  85514. yAxisIndex: t.get("yAxisIndex", !0),
  85515. xAxisId: t.get("xAxisId", !0),
  85516. yAxisId: t.get("yAxisId", !0)
  85517. };
  85518. return e.xAxisIndex == null && e.xAxisId == null && (e.xAxisIndex = "all"), e.yAxisIndex == null && e.yAxisId == null && (e.yAxisIndex = "all"), e;
  85519. }
  85520. function Put(t, e) {
  85521. t.setIconStatus("back", but(e) > 1 ? "emphasis" : "normal");
  85522. }
  85523. function $ut(t, e, n, r, i) {
  85524. var a = n._isZoomActive;
  85525. r && r.type === "takeGlobalCursor" && (a = r.key === "dataZoomSelect" ? r.dataZoomSelectActive : !1), n._isZoomActive = a, t.setIconStatus("zoom", a ? "emphasis" : "normal");
  85526. var o = new w6(C6(t), e, {
  85527. include: ["grid"]
  85528. }), s = o.makePanelOpts(i, function(l) {
  85529. return l.xAxisDeclared && !l.yAxisDeclared ? "lineX" : !l.xAxisDeclared && l.yAxisDeclared ? "lineY" : "rect";
  85530. });
  85531. n._brushController.setPanels(s).enableBrush(a && s.length ? {
  85532. brushType: "auto",
  85533. brushStyle: t.getModel("brushStyle").getItemStyle()
  85534. } : !1);
  85535. }
  85536. kUe("dataZoom", function(t) {
  85537. var e = t.getComponent("toolbox", 0), n = ["feature", "dataZoom"];
  85538. if (!e || e.get(n) == null)
  85539. return;
  85540. var r = e.getModel(n), i = [], a = C6(r), o = tb(t, a);
  85541. ML(o.xAxisModels, function(l) {
  85542. return s(l, "xAxis", "xAxisIndex");
  85543. }), ML(o.yAxisModels, function(l) {
  85544. return s(l, "yAxis", "yAxisIndex");
  85545. });
  85546. function s(l, u, c) {
  85547. var f = l.componentIndex, d = {
  85548. type: "select",
  85549. $fromToolbox: !0,
  85550. // Default to be filter
  85551. filterMode: r.get("filterMode", !0) || "filter",
  85552. // Id for merge mapping.
  85553. id: wut + u + f
  85554. };
  85555. d[c] = f, i.push(d);
  85556. }
  85557. return i;
  85558. });
  85559. function Aut(t) {
  85560. t.registerComponentModel(Jlt), t.registerComponentView(tut), wv("saveAsImage", rut), wv("magicType", aut), wv("dataView", put), wv("dataZoom", Cut), wv("restore", _ut), Mt(Klt);
  85561. }
  85562. var Eut = (
  85563. /** @class */
  85564. function(t) {
  85565. le(e, t);
  85566. function e() {
  85567. var n = t !== null && t.apply(this, arguments) || this;
  85568. return n.type = e.type, n;
  85569. }
  85570. return e.type = "tooltip", e.dependencies = ["axisPointer"], e.defaultOption = {
  85571. // zlevel: 0,
  85572. z: 60,
  85573. show: !0,
  85574. // tooltip main content
  85575. showContent: !0,
  85576. // 'trigger' only works on coordinate system.
  85577. // 'item' | 'axis' | 'none'
  85578. trigger: "item",
  85579. // 'click' | 'mousemove' | 'none'
  85580. triggerOn: "mousemove|click",
  85581. alwaysShowContent: !1,
  85582. displayMode: "single",
  85583. renderMode: "auto",
  85584. // whether restraint content inside viewRect.
  85585. // If renderMode: 'richText', default true.
  85586. // If renderMode: 'html', defaut false (for backward compat).
  85587. confine: null,
  85588. showDelay: 0,
  85589. hideDelay: 100,
  85590. // Animation transition time, unit is second
  85591. transitionDuration: 0.4,
  85592. enterable: !1,
  85593. backgroundColor: "#fff",
  85594. // box shadow
  85595. shadowBlur: 10,
  85596. shadowColor: "rgba(0, 0, 0, .2)",
  85597. shadowOffsetX: 1,
  85598. shadowOffsetY: 2,
  85599. // tooltip border radius, unit is px, default is 4
  85600. borderRadius: 4,
  85601. // tooltip border width, unit is px, default is 0 (no border)
  85602. borderWidth: 1,
  85603. // Tooltip inside padding, default is 5 for all direction
  85604. // Array is allowed to set up, right, bottom, left, same with css
  85605. // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.
  85606. padding: null,
  85607. // Extra css text
  85608. extraCssText: "",
  85609. // axis indicator, trigger by axis
  85610. axisPointer: {
  85611. // default is line
  85612. // legal values: 'line' | 'shadow' | 'cross'
  85613. type: "line",
  85614. // Valid when type is line, appoint tooltip line locate on which line. Optional
  85615. // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'
  85616. // default is 'auto', chose the axis which type is category.
  85617. // for multiply y axis, cartesian coord chose x axis, polar chose angle axis
  85618. axis: "auto",
  85619. animation: "auto",
  85620. animationDurationUpdate: 200,
  85621. animationEasingUpdate: "exponentialOut",
  85622. crossStyle: {
  85623. color: "#999",
  85624. width: 1,
  85625. type: "dashed",
  85626. // TODO formatter
  85627. textStyle: {}
  85628. }
  85629. // lineStyle and shadowStyle should not be specified here,
  85630. // otherwise it will always override those styles on option.axisPointer.
  85631. },
  85632. textStyle: {
  85633. color: "#666",
  85634. fontSize: 14
  85635. }
  85636. }, e;
  85637. }(At)
  85638. );
  85639. function ghe(t) {
  85640. var e = t.get("confine");
  85641. return e != null ? !!e : t.get("renderMode") === "richText";
  85642. }
  85643. function mhe(t) {
  85644. if (Gt.domSupported) {
  85645. for (var e = document.documentElement.style, n = 0, r = t.length; n < r; n++)
  85646. if (t[n] in e)
  85647. return t[n];
  85648. }
  85649. }
  85650. var yhe = mhe(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]), Mut = mhe(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]);
  85651. function bhe(t, e) {
  85652. if (!t)
  85653. return e;
  85654. e = J5(e, !0);
  85655. var n = t.indexOf(e);
  85656. return t = n === -1 ? e : "-" + t.slice(0, n) + "-" + e, t.toLowerCase();
  85657. }
  85658. function Iut(t, e) {
  85659. var n = t.currentStyle || document.defaultView && document.defaultView.getComputedStyle(t);
  85660. return n ? n[e] : null;
  85661. }
  85662. var Dut = bhe(Mut, "transition"), T6 = bhe(yhe, "transform"), Rut = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (Gt.transform3dSupported ? "will-change:transform;" : "");
  85663. function kut(t) {
  85664. return t = t === "left" ? "right" : t === "right" ? "left" : t === "top" ? "bottom" : "top", t;
  85665. }
  85666. function Lut(t, e, n) {
  85667. if (!Ve(n) || n === "inside")
  85668. return "";
  85669. var r = t.get("backgroundColor"), i = t.get("borderWidth");
  85670. e = Uh(e);
  85671. var a = kut(n), o = Math.max(Math.round(i) * 1.5, 6), s = "", l = T6 + ":", u;
  85672. St(["left", "right"], a) > -1 ? (s += "top:50%", l += "translateY(-50%) rotate(" + (u = a === "left" ? -225 : -45) + "deg)") : (s += "left:50%", l += "translateX(-50%) rotate(" + (u = a === "top" ? 225 : 45) + "deg)");
  85673. var c = u * Math.PI / 180, f = o + i, d = f * Math.abs(Math.cos(c)) + f * Math.abs(Math.sin(c)), h = Math.round(((d - Math.SQRT2 * i) / 2 + Math.SQRT2 * i - (d - f) / 2) * 100) / 100;
  85674. s += ";" + a + ":-" + h + "px";
  85675. var p = e + " solid " + i + "px;", v = ["position:absolute;width:" + o + "px;height:" + o + "px;z-index:-1;", s + ";" + l + ";", "border-bottom:" + p, "border-right:" + p, "background-color:" + r + ";"];
  85676. return '<div style="' + v.join("") + '"></div>';
  85677. }
  85678. function Nut(t, e) {
  85679. var n = "cubic-bezier(0.23,1,0.32,1)", r = " " + t / 2 + "s " + n, i = "opacity" + r + ",visibility" + r;
  85680. return e || (r = " " + t + "s " + n, i += Gt.transformSupported ? "," + T6 + r : ",left" + r + ",top" + r), Dut + ":" + i;
  85681. }
  85682. function cY(t, e, n) {
  85683. var r = t.toFixed(0) + "px", i = e.toFixed(0) + "px";
  85684. if (!Gt.transformSupported)
  85685. return n ? "top:" + i + ";left:" + r + ";" : [["top", i], ["left", r]];
  85686. var a = Gt.transform3dSupported, o = "translate" + (a ? "3d" : "") + "(" + r + "," + i + (a ? ",0" : "") + ")";
  85687. return n ? "top:0;left:0;" + T6 + ":" + o + ";" : [["top", 0], ["left", 0], [yhe, o]];
  85688. }
  85689. function But(t) {
  85690. var e = [], n = t.get("fontSize"), r = t.getTextColor();
  85691. r && e.push("color:" + r), e.push("font:" + t.getFont()), n && e.push("line-height:" + Math.round(n * 3 / 2) + "px");
  85692. var i = t.get("textShadowColor"), a = t.get("textShadowBlur") || 0, o = t.get("textShadowOffsetX") || 0, s = t.get("textShadowOffsetY") || 0;
  85693. return i && a && e.push("text-shadow:" + o + "px " + s + "px " + a + "px " + i), F(["decoration", "align"], function(l) {
  85694. var u = t.get(l);
  85695. u && e.push("text-" + l + ":" + u);
  85696. }), e.join(";");
  85697. }
  85698. function zut(t, e, n) {
  85699. var r = [], i = t.get("transitionDuration"), a = t.get("backgroundColor"), o = t.get("shadowBlur"), s = t.get("shadowColor"), l = t.get("shadowOffsetX"), u = t.get("shadowOffsetY"), c = t.getModel("textStyle"), f = Pue(t, "html"), d = l + "px " + u + "px " + o + "px " + s;
  85700. return r.push("box-shadow:" + d), e && i && r.push(Nut(i, n)), a && r.push("background-color:" + a), F(["width", "color", "radius"], function(h) {
  85701. var p = "border-" + h, v = J5(p), g = t.get(v);
  85702. g != null && r.push(p + ":" + g + (h === "color" ? "" : "px"));
  85703. }), r.push(But(c)), f != null && r.push("padding:" + vp(f).join("px ") + "px"), r.join(";") + ";";
  85704. }
  85705. function fY(t, e, n, r, i) {
  85706. var a = e && e.painter;
  85707. if (n) {
  85708. var o = a && a.getViewportRoot();
  85709. o && EHe(t, o, n, r, i);
  85710. } else {
  85711. t[0] = r, t[1] = i;
  85712. var s = a && a.getViewportRootOffset();
  85713. s && (t[0] += s.offsetLeft, t[1] += s.offsetTop);
  85714. }
  85715. t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight();
  85716. }
  85717. var Vut = (
  85718. /** @class */
  85719. function() {
  85720. function t(e, n) {
  85721. if (this._show = !1, this._styleCoord = [0, 0, 0, 0], this._enterable = !0, this._alwaysShowContent = !1, this._firstShow = !0, this._longHide = !0, Gt.wxa)
  85722. return null;
  85723. var r = document.createElement("div");
  85724. r.domBelongToZr = !0, this.el = r;
  85725. var i = this._zr = e.getZr(), a = n.appendTo, o = a && (Ve(a) ? document.querySelector(a) : gf(a) ? a : qe(a) && a(e.getDom()));
  85726. fY(this._styleCoord, i, o, e.getWidth() / 2, e.getHeight() / 2), (o || e.getDom()).appendChild(r), this._api = e, this._container = o;
  85727. var s = this;
  85728. r.onmouseenter = function() {
  85729. s._enterable && (clearTimeout(s._hideTimeout), s._show = !0), s._inContent = !0;
  85730. }, r.onmousemove = function(l) {
  85731. if (l = l || window.event, !s._enterable) {
  85732. var u = i.handler, c = i.painter.getViewportRoot();
  85733. No(c, l, !0), u.dispatch("mousemove", l);
  85734. }
  85735. }, r.onmouseleave = function() {
  85736. s._inContent = !1, s._enterable && s._show && s.hideLater(s._hideDelay);
  85737. };
  85738. }
  85739. return t.prototype.update = function(e) {
  85740. if (!this._container) {
  85741. var n = this._api.getDom(), r = Iut(n, "position"), i = n.style;
  85742. i.position !== "absolute" && r !== "absolute" && (i.position = "relative");
  85743. }
  85744. var a = e.get("alwaysShowContent");
  85745. a && this._moveIfResized(), this._alwaysShowContent = a, this.el.className = e.get("className") || "";
  85746. }, t.prototype.show = function(e, n) {
  85747. clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
  85748. var r = this.el, i = r.style, a = this._styleCoord;
  85749. r.innerHTML ? i.cssText = Rut + zut(e, !this._firstShow, this._longHide) + cY(a[0], a[1], !0) + ("border-color:" + Uh(n) + ";") + (e.get("extraCssText") || "") + (";pointer-events:" + (this._enterable ? "auto" : "none")) : i.display = "none", this._show = !0, this._firstShow = !1, this._longHide = !1;
  85750. }, t.prototype.setContent = function(e, n, r, i, a) {
  85751. var o = this.el;
  85752. if (e == null) {
  85753. o.innerHTML = "";
  85754. return;
  85755. }
  85756. var s = "";
  85757. if (Ve(a) && r.get("trigger") === "item" && !ghe(r) && (s = Lut(r, i, a)), Ve(e))
  85758. o.innerHTML = e + s;
  85759. else if (e) {
  85760. o.innerHTML = "", Se(e) || (e = [e]);
  85761. for (var l = 0; l < e.length; l++)
  85762. gf(e[l]) && e[l].parentNode !== o && o.appendChild(e[l]);
  85763. if (s && o.childNodes.length) {
  85764. var u = document.createElement("div");
  85765. u.innerHTML = s, o.appendChild(u);
  85766. }
  85767. }
  85768. }, t.prototype.setEnterable = function(e) {
  85769. this._enterable = e;
  85770. }, t.prototype.getSize = function() {
  85771. var e = this.el;
  85772. return [e.offsetWidth, e.offsetHeight];
  85773. }, t.prototype.moveTo = function(e, n) {
  85774. var r = this._styleCoord;
  85775. if (fY(r, this._zr, this._container, e, n), r[0] != null && r[1] != null) {
  85776. var i = this.el.style, a = cY(r[0], r[1]);
  85777. F(a, function(o) {
  85778. i[o[0]] = o[1];
  85779. });
  85780. }
  85781. }, t.prototype._moveIfResized = function() {
  85782. var e = this._styleCoord[2], n = this._styleCoord[3];
  85783. this.moveTo(e * this._zr.getWidth(), n * this._zr.getHeight());
  85784. }, t.prototype.hide = function() {
  85785. var e = this, n = this.el.style;
  85786. n.visibility = "hidden", n.opacity = "0", Gt.transform3dSupported && (n.willChange = ""), this._show = !1, this._longHideTimeout = setTimeout(function() {
  85787. return e._longHide = !0;
  85788. }, 500);
  85789. }, t.prototype.hideLater = function(e) {
  85790. this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (e ? (this._hideDelay = e, this._show = !1, this._hideTimeout = setTimeout(We(this.hide, this), e)) : this.hide());
  85791. }, t.prototype.isShow = function() {
  85792. return this._show;
  85793. }, t.prototype.dispose = function() {
  85794. clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
  85795. var e = this.el.parentNode;
  85796. e && e.removeChild(this.el), this.el = this._container = null;
  85797. }, t;
  85798. }()
  85799. ), Fut = (
  85800. /** @class */
  85801. function() {
  85802. function t(e) {
  85803. this._show = !1, this._styleCoord = [0, 0, 0, 0], this._alwaysShowContent = !1, this._enterable = !0, this._zr = e.getZr(), hY(this._styleCoord, this._zr, e.getWidth() / 2, e.getHeight() / 2);
  85804. }
  85805. return t.prototype.update = function(e) {
  85806. var n = e.get("alwaysShowContent");
  85807. n && this._moveIfResized(), this._alwaysShowContent = n;
  85808. }, t.prototype.show = function() {
  85809. this._hideTimeout && clearTimeout(this._hideTimeout), this.el.show(), this._show = !0;
  85810. }, t.prototype.setContent = function(e, n, r, i, a) {
  85811. var o = this;
  85812. nt(e) && fn(process.env.NODE_ENV !== "production" ? "Passing DOM nodes as content is not supported in richText tooltip!" : ""), this.el && this._zr.remove(this.el);
  85813. var s = r.getModel("textStyle");
  85814. this.el = new jt({
  85815. style: {
  85816. rich: n.richTextStyles,
  85817. text: e,
  85818. lineHeight: 22,
  85819. borderWidth: 1,
  85820. borderColor: i,
  85821. textShadowColor: s.get("textShadowColor"),
  85822. fill: r.get(["textStyle", "color"]),
  85823. padding: Pue(r, "richText"),
  85824. verticalAlign: "top",
  85825. align: "left"
  85826. },
  85827. z: r.get("z")
  85828. }), F(["backgroundColor", "borderRadius", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"], function(u) {
  85829. o.el.style[u] = r.get(u);
  85830. }), F(["textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], function(u) {
  85831. o.el.style[u] = s.get(u) || 0;
  85832. }), this._zr.add(this.el);
  85833. var l = this;
  85834. this.el.on("mouseover", function() {
  85835. l._enterable && (clearTimeout(l._hideTimeout), l._show = !0), l._inContent = !0;
  85836. }), this.el.on("mouseout", function() {
  85837. l._enterable && l._show && l.hideLater(l._hideDelay), l._inContent = !1;
  85838. });
  85839. }, t.prototype.setEnterable = function(e) {
  85840. this._enterable = e;
  85841. }, t.prototype.getSize = function() {
  85842. var e = this.el, n = this.el.getBoundingRect(), r = dY(e.style);
  85843. return [n.width + r.left + r.right, n.height + r.top + r.bottom];
  85844. }, t.prototype.moveTo = function(e, n) {
  85845. var r = this.el;
  85846. if (r) {
  85847. var i = this._styleCoord;
  85848. hY(i, this._zr, e, n), e = i[0], n = i[1];
  85849. var a = r.style, o = Ec(a.borderWidth || 0), s = dY(a);
  85850. r.x = e + o + s.left, r.y = n + o + s.top, r.markRedraw();
  85851. }
  85852. }, t.prototype._moveIfResized = function() {
  85853. var e = this._styleCoord[2], n = this._styleCoord[3];
  85854. this.moveTo(e * this._zr.getWidth(), n * this._zr.getHeight());
  85855. }, t.prototype.hide = function() {
  85856. this.el && this.el.hide(), this._show = !1;
  85857. }, t.prototype.hideLater = function(e) {
  85858. this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (e ? (this._hideDelay = e, this._show = !1, this._hideTimeout = setTimeout(We(this.hide, this), e)) : this.hide());
  85859. }, t.prototype.isShow = function() {
  85860. return this._show;
  85861. }, t.prototype.dispose = function() {
  85862. this._zr.remove(this.el);
  85863. }, t;
  85864. }()
  85865. );
  85866. function Ec(t) {
  85867. return Math.max(0, t);
  85868. }
  85869. function dY(t) {
  85870. var e = Ec(t.shadowBlur || 0), n = Ec(t.shadowOffsetX || 0), r = Ec(t.shadowOffsetY || 0);
  85871. return {
  85872. left: Ec(e - n),
  85873. right: Ec(e + n),
  85874. top: Ec(e - r),
  85875. bottom: Ec(e + r)
  85876. };
  85877. }
  85878. function hY(t, e, n, r) {
  85879. t[0] = n, t[1] = r, t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight();
  85880. }
  85881. var Wut = new Zt({
  85882. shape: {
  85883. x: -1,
  85884. y: -1,
  85885. width: 2,
  85886. height: 2
  85887. }
  85888. }), Qut = (
  85889. /** @class */
  85890. function(t) {
  85891. le(e, t);
  85892. function e() {
  85893. var n = t !== null && t.apply(this, arguments) || this;
  85894. return n.type = e.type, n;
  85895. }
  85896. return e.prototype.init = function(n, r) {
  85897. if (!(Gt.node || !r.getDom())) {
  85898. var i = n.getComponent("tooltip"), a = this._renderMode = pje(i.get("renderMode"));
  85899. this._tooltipContent = a === "richText" ? new Fut(r) : new Vut(r, {
  85900. appendTo: i.get("appendToBody", !0) ? "body" : i.get("appendTo", !0)
  85901. });
  85902. }
  85903. }, e.prototype.render = function(n, r, i) {
  85904. if (!(Gt.node || !i.getDom())) {
  85905. this.group.removeAll(), this._tooltipModel = n, this._ecModel = r, this._api = i;
  85906. var a = this._tooltipContent;
  85907. a.update(n), a.setEnterable(n.get("enterable")), this._initGlobalListener(), this._keepShow(), this._renderMode !== "richText" && n.get("transitionDuration") ? Am(this, "_updatePosition", 50, "fixRate") : Jb(this, "_updatePosition");
  85908. }
  85909. }, e.prototype._initGlobalListener = function() {
  85910. var n = this._tooltipModel, r = n.get("triggerOn");
  85911. rhe("itemTooltip", this._api, We(function(i, a, o) {
  85912. r !== "none" && (r.indexOf(i) >= 0 ? this._tryShow(a, o) : i === "leave" && this._hide(o));
  85913. }, this));
  85914. }, e.prototype._keepShow = function() {
  85915. var n = this._tooltipModel, r = this._ecModel, i = this._api, a = n.get("triggerOn");
  85916. if (this._lastX != null && this._lastY != null && a !== "none" && a !== "click") {
  85917. var o = this;
  85918. clearTimeout(this._refreshUpdateTimeout), this._refreshUpdateTimeout = setTimeout(function() {
  85919. !i.isDisposed() && o.manuallyShowTip(n, r, i, {
  85920. x: o._lastX,
  85921. y: o._lastY,
  85922. dataByCoordSys: o._lastDataByCoordSys
  85923. });
  85924. });
  85925. }
  85926. }, e.prototype.manuallyShowTip = function(n, r, i, a) {
  85927. if (!(a.from === this.uid || Gt.node || !i.getDom())) {
  85928. var o = pY(a, i);
  85929. this._ticket = "";
  85930. var s = a.dataByCoordSys, l = Zut(a, r, i);
  85931. if (l) {
  85932. var u = l.el.getBoundingRect().clone();
  85933. u.applyTransform(l.el.transform), this._tryShow({
  85934. offsetX: u.x + u.width / 2,
  85935. offsetY: u.y + u.height / 2,
  85936. target: l.el,
  85937. position: a.position,
  85938. // When manully trigger, the mouse is not on the el, so we'd better to
  85939. // position tooltip on the bottom of the el and display arrow is possible.
  85940. positionDefault: "bottom"
  85941. }, o);
  85942. } else if (a.tooltip && a.x != null && a.y != null) {
  85943. var c = Wut;
  85944. c.x = a.x, c.y = a.y, c.update(), ft(c).tooltipConfig = {
  85945. name: null,
  85946. option: a.tooltip
  85947. }, this._tryShow({
  85948. offsetX: a.x,
  85949. offsetY: a.y,
  85950. target: c
  85951. }, o);
  85952. } else if (s)
  85953. this._tryShow({
  85954. offsetX: a.x,
  85955. offsetY: a.y,
  85956. position: a.position,
  85957. dataByCoordSys: s,
  85958. tooltipOption: a.tooltipOption
  85959. }, o);
  85960. else if (a.seriesIndex != null) {
  85961. if (this._manuallyAxisShowTip(n, r, i, a))
  85962. return;
  85963. var f = ihe(a, r), d = f.point[0], h = f.point[1];
  85964. d != null && h != null && this._tryShow({
  85965. offsetX: d,
  85966. offsetY: h,
  85967. target: f.el,
  85968. position: a.position,
  85969. // When manully trigger, the mouse is not on the el, so we'd better to
  85970. // position tooltip on the bottom of the el and display arrow is possible.
  85971. positionDefault: "bottom"
  85972. }, o);
  85973. } else a.x != null && a.y != null && (i.dispatchAction({
  85974. type: "updateAxisPointer",
  85975. x: a.x,
  85976. y: a.y
  85977. }), this._tryShow({
  85978. offsetX: a.x,
  85979. offsetY: a.y,
  85980. position: a.position,
  85981. target: i.getZr().findHover(a.x, a.y).target
  85982. }, o));
  85983. }
  85984. }, e.prototype.manuallyHideTip = function(n, r, i, a) {
  85985. var o = this._tooltipContent;
  85986. this._tooltipModel && o.hideLater(this._tooltipModel.get("hideDelay")), this._lastX = this._lastY = this._lastDataByCoordSys = null, a.from !== this.uid && this._hide(pY(a, i));
  85987. }, e.prototype._manuallyAxisShowTip = function(n, r, i, a) {
  85988. var o = a.seriesIndex, s = a.dataIndex, l = r.getComponent("axisPointer").coordSysAxesInfo;
  85989. if (!(o == null || s == null || l == null)) {
  85990. var u = r.getSeriesByIndex(o);
  85991. if (u) {
  85992. var c = u.getData(), f = U0([c.getItemModel(s), u, (u.coordinateSystem || {}).model], this._tooltipModel);
  85993. if (f.get("trigger") === "axis")
  85994. return i.dispatchAction({
  85995. type: "updateAxisPointer",
  85996. seriesIndex: o,
  85997. dataIndex: s,
  85998. position: a.position
  85999. }), !0;
  86000. }
  86001. }
  86002. }, e.prototype._tryShow = function(n, r) {
  86003. var i = n.target, a = this._tooltipModel;
  86004. if (a) {
  86005. this._lastX = n.offsetX, this._lastY = n.offsetY;
  86006. var o = n.dataByCoordSys;
  86007. if (o && o.length)
  86008. this._showAxisTooltip(o, n);
  86009. else if (i) {
  86010. var s = ft(i);
  86011. if (s.ssrType === "legend")
  86012. return;
  86013. this._lastDataByCoordSys = null;
  86014. var l, u;
  86015. sh(i, function(c) {
  86016. if (ft(c).dataIndex != null)
  86017. return l = c, !0;
  86018. if (ft(c).tooltipConfig != null)
  86019. return u = c, !0;
  86020. }, !0), l ? this._showSeriesItemTooltip(n, l, r) : u ? this._showComponentItemTooltip(n, u, r) : this._hide(r);
  86021. } else
  86022. this._lastDataByCoordSys = null, this._hide(r);
  86023. }
  86024. }, e.prototype._showOrMove = function(n, r) {
  86025. var i = n.get("showDelay");
  86026. r = We(r, this), clearTimeout(this._showTimout), i > 0 ? this._showTimout = setTimeout(r, i) : r();
  86027. }, e.prototype._showAxisTooltip = function(n, r) {
  86028. var i = this._ecModel, a = this._tooltipModel, o = [r.offsetX, r.offsetY], s = U0([r.tooltipOption], a), l = this._renderMode, u = [], c = ti("section", {
  86029. blocks: [],
  86030. noHeader: !0
  86031. }), f = [], d = new bM();
  86032. F(n, function(y) {
  86033. F(y.dataByAxis, function(_) {
  86034. var O = i.getComponent(_.axisDim + "Axis", _.axisIndex), S = _.value;
  86035. if (!(!O || S == null)) {
  86036. var x = ehe(S, O.axis, i, _.seriesDataIndices, _.valueLabelOpt), C = ti("section", {
  86037. header: x,
  86038. noHeader: !Zo(x),
  86039. sortBlocks: !0,
  86040. blocks: []
  86041. });
  86042. c.blocks.push(C), F(_.seriesDataIndices, function(P) {
  86043. var $ = i.getSeriesByIndex(P.seriesIndex), T = P.dataIndexInside, E = $.getDataParams(T);
  86044. if (!(E.dataIndex < 0)) {
  86045. E.axisDim = _.axisDim, E.axisIndex = _.axisIndex, E.axisType = _.axisType, E.axisId = _.axisId, E.axisValue = P3(O.axis, {
  86046. value: S
  86047. }), E.axisValueLabel = x, E.marker = d.makeTooltipMarker("item", Uh(E.color), l);
  86048. var M = qG($.formatTooltip(T, !0, null)), R = M.frag;
  86049. if (R) {
  86050. var N = U0([$], a).get("valueFormatter");
  86051. C.blocks.push(N ? _e({
  86052. valueFormatter: N
  86053. }, R) : R);
  86054. }
  86055. M.text && f.push(M.text), u.push(E);
  86056. }
  86057. });
  86058. }
  86059. });
  86060. }), c.blocks.reverse(), f.reverse();
  86061. var h = r.position, p = s.get("order"), v = rj(c, d, l, p, i.get("useUTC"), s.get("textStyle"));
  86062. v && f.unshift(v);
  86063. var g = l === "richText" ? `
  86064. ` : "<br/>", m = f.join(g);
  86065. this._showOrMove(s, function() {
  86066. this._updateContentNotChangedOnAxis(n, u) ? this._updatePosition(s, h, o[0], o[1], this._tooltipContent, u) : this._showTooltipContent(s, m, u, Math.random() + "", o[0], o[1], h, null, d);
  86067. });
  86068. }, e.prototype._showSeriesItemTooltip = function(n, r, i) {
  86069. var a = this._ecModel, o = ft(r), s = o.seriesIndex, l = a.getSeriesByIndex(s), u = o.dataModel || l, c = o.dataIndex, f = o.dataType, d = u.getData(f), h = this._renderMode, p = n.positionDefault, v = U0([d.getItemModel(c), u, l && (l.coordinateSystem || {}).model], this._tooltipModel, p ? {
  86070. position: p
  86071. } : null), g = v.get("trigger");
  86072. if (!(g != null && g !== "item")) {
  86073. var m = u.getDataParams(c, f), y = new bM();
  86074. m.marker = y.makeTooltipMarker("item", Uh(m.color), h);
  86075. var _ = qG(u.formatTooltip(c, !1, f)), O = v.get("order"), S = v.get("valueFormatter"), x = _.frag, C = x ? rj(S ? _e({
  86076. valueFormatter: S
  86077. }, x) : x, y, h, O, a.get("useUTC"), v.get("textStyle")) : _.text, P = "item_" + u.name + "_" + c;
  86078. this._showOrMove(v, function() {
  86079. this._showTooltipContent(v, C, m, P, n.offsetX, n.offsetY, n.position, n.target, y);
  86080. }), i({
  86081. type: "showTip",
  86082. dataIndexInside: c,
  86083. dataIndex: d.getRawIndex(c),
  86084. seriesIndex: s,
  86085. from: this.uid
  86086. });
  86087. }
  86088. }, e.prototype._showComponentItemTooltip = function(n, r, i) {
  86089. var a = this._renderMode === "html", o = ft(r), s = o.tooltipConfig, l = s.option || {}, u = l.encodeHTMLContent;
  86090. if (Ve(l)) {
  86091. var c = l;
  86092. l = {
  86093. content: c,
  86094. // Fixed formatter
  86095. formatter: c
  86096. }, u = !0;
  86097. }
  86098. u && a && l.content && (l = ot(l), l.content = ta(l.content));
  86099. var f = [l], d = this._ecModel.getComponent(o.componentMainType, o.componentIndex);
  86100. d && f.push(d), f.push({
  86101. formatter: l.content
  86102. });
  86103. var h = n.positionDefault, p = U0(f, this._tooltipModel, h ? {
  86104. position: h
  86105. } : null), v = p.get("content"), g = Math.random() + "", m = new bM();
  86106. this._showOrMove(p, function() {
  86107. var y = ot(p.get("formatterParams") || {});
  86108. this._showTooltipContent(p, v, y, g, n.offsetX, n.offsetY, n.position, r, m);
  86109. }), i({
  86110. type: "showTip",
  86111. from: this.uid
  86112. });
  86113. }, e.prototype._showTooltipContent = function(n, r, i, a, o, s, l, u, c) {
  86114. if (this._ticket = "", !(!n.get("showContent") || !n.get("show"))) {
  86115. var f = this._tooltipContent;
  86116. f.setEnterable(n.get("enterable"));
  86117. var d = n.get("formatter");
  86118. l = l || n.get("position");
  86119. var h = r, p = this._getNearestPoint([o, s], i, n.get("trigger"), n.get("borderColor")), v = p.color;
  86120. if (d)
  86121. if (Ve(d)) {
  86122. var g = n.ecModel.get("useUTC"), m = Se(i) ? i[0] : i, y = m && m.axisType && m.axisType.indexOf("time") >= 0;
  86123. h = d, y && (h = p1(m.axisValue, h, g)), h = e3(h, i, !0);
  86124. } else if (qe(d)) {
  86125. var _ = We(function(O, S) {
  86126. O === this._ticket && (f.setContent(S, c, n, v, l), this._updatePosition(n, l, o, s, f, i, u));
  86127. }, this);
  86128. this._ticket = a, h = d(i, a, _);
  86129. } else
  86130. h = d;
  86131. f.setContent(h, c, n, v, l), f.show(n, v), this._updatePosition(n, l, o, s, f, i, u);
  86132. }
  86133. }, e.prototype._getNearestPoint = function(n, r, i, a) {
  86134. if (i === "axis" || Se(r))
  86135. return {
  86136. color: a || (this._renderMode === "html" ? "#fff" : "none")
  86137. };
  86138. if (!Se(r))
  86139. return {
  86140. color: a || r.color || r.borderColor
  86141. };
  86142. }, e.prototype._updatePosition = function(n, r, i, a, o, s, l) {
  86143. var u = this._api.getWidth(), c = this._api.getHeight();
  86144. r = r || n.get("position");
  86145. var f = o.getSize(), d = n.get("align"), h = n.get("verticalAlign"), p = l && l.getBoundingRect().clone();
  86146. if (l && p.applyTransform(l.transform), qe(r) && (r = r([i, a], s, o.el, p, {
  86147. viewSize: [u, c],
  86148. contentSize: f.slice()
  86149. })), Se(r))
  86150. i = ze(r[0], u), a = ze(r[1], c);
  86151. else if (nt(r)) {
  86152. var v = r;
  86153. v.width = f[0], v.height = f[1];
  86154. var g = Mr(v, {
  86155. width: u,
  86156. height: c
  86157. });
  86158. i = g.x, a = g.y, d = null, h = null;
  86159. } else if (Ve(r) && l) {
  86160. var m = jut(r, p, f, n.get("borderWidth"));
  86161. i = m[0], a = m[1];
  86162. } else {
  86163. var m = Hut(i, a, o, u, c, d ? null : 20, h ? null : 20);
  86164. i = m[0], a = m[1];
  86165. }
  86166. if (d && (i -= vY(d) ? f[0] / 2 : d === "right" ? f[0] : 0), h && (a -= vY(h) ? f[1] / 2 : h === "bottom" ? f[1] : 0), ghe(n)) {
  86167. var m = Gut(i, a, o, u, c);
  86168. i = m[0], a = m[1];
  86169. }
  86170. o.moveTo(i, a);
  86171. }, e.prototype._updateContentNotChangedOnAxis = function(n, r) {
  86172. var i = this._lastDataByCoordSys, a = this._cbParamsList, o = !!i && i.length === n.length;
  86173. return o && F(i, function(s, l) {
  86174. var u = s.dataByAxis || [], c = n[l] || {}, f = c.dataByAxis || [];
  86175. o = o && u.length === f.length, o && F(u, function(d, h) {
  86176. var p = f[h] || {}, v = d.seriesDataIndices || [], g = p.seriesDataIndices || [];
  86177. o = o && d.value === p.value && d.axisType === p.axisType && d.axisId === p.axisId && v.length === g.length, o && F(v, function(m, y) {
  86178. var _ = g[y];
  86179. o = o && m.seriesIndex === _.seriesIndex && m.dataIndex === _.dataIndex;
  86180. }), a && F(d.seriesDataIndices, function(m) {
  86181. var y = m.seriesIndex, _ = r[y], O = a[y];
  86182. _ && O && O.data !== _.data && (o = !1);
  86183. });
  86184. });
  86185. }), this._lastDataByCoordSys = n, this._cbParamsList = r, !!o;
  86186. }, e.prototype._hide = function(n) {
  86187. this._lastDataByCoordSys = null, n({
  86188. type: "hideTip",
  86189. from: this.uid
  86190. });
  86191. }, e.prototype.dispose = function(n, r) {
  86192. Gt.node || !r.getDom() || (Jb(this, "_updatePosition"), this._tooltipContent.dispose(), TL("itemTooltip", r));
  86193. }, e.type = "tooltip", e;
  86194. }(Ln)
  86195. );
  86196. function U0(t, e, n) {
  86197. var r = e.ecModel, i;
  86198. n ? (i = new wn(n, r, r), i = new wn(e.option, i, r)) : i = e;
  86199. for (var a = t.length - 1; a >= 0; a--) {
  86200. var o = t[a];
  86201. o && (o instanceof wn && (o = o.get("tooltip", !0)), Ve(o) && (o = {
  86202. formatter: o
  86203. }), o && (i = new wn(o, i, r)));
  86204. }
  86205. return i;
  86206. }
  86207. function pY(t, e) {
  86208. return t.dispatchAction || We(e.dispatchAction, e);
  86209. }
  86210. function Hut(t, e, n, r, i, a, o) {
  86211. var s = n.getSize(), l = s[0], u = s[1];
  86212. return a != null && (t + l + a + 2 > r ? t -= l + a : t += a), o != null && (e + u + o > i ? e -= u + o : e += o), [t, e];
  86213. }
  86214. function Gut(t, e, n, r, i) {
  86215. var a = n.getSize(), o = a[0], s = a[1];
  86216. return t = Math.min(t + o, r) - o, e = Math.min(e + s, i) - s, t = Math.max(t, 0), e = Math.max(e, 0), [t, e];
  86217. }
  86218. function jut(t, e, n, r) {
  86219. var i = n[0], a = n[1], o = Math.ceil(Math.SQRT2 * r) + 8, s = 0, l = 0, u = e.width, c = e.height;
  86220. switch (t) {
  86221. case "inside":
  86222. s = e.x + u / 2 - i / 2, l = e.y + c / 2 - a / 2;
  86223. break;
  86224. case "top":
  86225. s = e.x + u / 2 - i / 2, l = e.y - a - o;
  86226. break;
  86227. case "bottom":
  86228. s = e.x + u / 2 - i / 2, l = e.y + c + o;
  86229. break;
  86230. case "left":
  86231. s = e.x - i - o, l = e.y + c / 2 - a / 2;
  86232. break;
  86233. case "right":
  86234. s = e.x + u + o, l = e.y + c / 2 - a / 2;
  86235. }
  86236. return [s, l];
  86237. }
  86238. function vY(t) {
  86239. return t === "center" || t === "middle";
  86240. }
  86241. function Zut(t, e, n) {
  86242. var r = E5(t).queryOptionMap, i = r.keys()[0];
  86243. if (!(!i || i === "series")) {
  86244. var a = l1(e, i, r.get(i), {
  86245. useDefault: !1,
  86246. enableAll: !1,
  86247. enableNone: !1
  86248. }), o = a.models[0];
  86249. if (o) {
  86250. var s = n.getViewOfComponentModel(o), l;
  86251. if (s.group.traverse(function(u) {
  86252. var c = ft(u).tooltipConfig;
  86253. if (c && c.name === t.name)
  86254. return l = u, !0;
  86255. }), l)
  86256. return {
  86257. componentMainType: i,
  86258. componentIndex: o.componentIndex,
  86259. el: l
  86260. };
  86261. }
  86262. }
  86263. }
  86264. function Uut(t) {
  86265. Mt(C1), t.registerComponentModel(Eut), t.registerComponentView(Qut), t.registerAction({
  86266. type: "showTip",
  86267. event: "showTip",
  86268. update: "tooltip:manuallyShowTip"
  86269. }, fr), t.registerAction({
  86270. type: "hideTip",
  86271. event: "hideTip",
  86272. update: "tooltip:manuallyHideTip"
  86273. }, fr);
  86274. }
  86275. var Xut = ["rect", "polygon", "keep", "clear"];
  86276. function Yut(t, e) {
  86277. var n = Cn(t ? t.brush : []);
  86278. if (n.length) {
  86279. var r = [];
  86280. F(n, function(l) {
  86281. var u = l.hasOwnProperty("toolbox") ? l.toolbox : [];
  86282. u instanceof Array && (r = r.concat(u));
  86283. });
  86284. var i = t && t.toolbox;
  86285. Se(i) && (i = i[0]), i || (i = {
  86286. feature: {}
  86287. }, t.toolbox = [i]);
  86288. var a = i.feature || (i.feature = {}), o = a.brush || (a.brush = {}), s = o.type || (o.type = []);
  86289. s.push.apply(s, r), qut(s), e && !s.length && s.push.apply(s, Xut);
  86290. }
  86291. }
  86292. function qut(t) {
  86293. var e = {};
  86294. F(t, function(n) {
  86295. e[n] = 1;
  86296. }), t.length = 0, F(e, function(n, r) {
  86297. t.push(r);
  86298. });
  86299. }
  86300. var gY = F;
  86301. function mY(t) {
  86302. if (t) {
  86303. for (var e in t)
  86304. if (t.hasOwnProperty(e))
  86305. return !0;
  86306. }
  86307. }
  86308. function IL(t, e, n) {
  86309. var r = {};
  86310. return gY(e, function(a) {
  86311. var o = r[a] = i();
  86312. gY(t[a], function(s, l) {
  86313. if (Kr.isValidType(l)) {
  86314. var u = {
  86315. type: l,
  86316. visual: s
  86317. };
  86318. n && n(u, a), o[l] = new Kr(u), l === "opacity" && (u = ot(u), u.type = "colorAlpha", o.__hidden.__alphaForOpacity = new Kr(u));
  86319. }
  86320. });
  86321. }), r;
  86322. function i() {
  86323. var a = function() {
  86324. };
  86325. a.prototype.__hidden = a.prototype;
  86326. var o = new a();
  86327. return o;
  86328. }
  86329. }
  86330. function _he(t, e, n) {
  86331. var r;
  86332. F(n, function(i) {
  86333. e.hasOwnProperty(i) && mY(e[i]) && (r = !0);
  86334. }), r && F(n, function(i) {
  86335. e.hasOwnProperty(i) && mY(e[i]) ? t[i] = ot(e[i]) : delete t[i];
  86336. });
  86337. }
  86338. function Kut(t, e, n, r, i, a) {
  86339. var o = {};
  86340. F(t, function(f) {
  86341. var d = Kr.prepareVisualTypes(e[f]);
  86342. o[f] = d;
  86343. });
  86344. var s;
  86345. function l(f) {
  86346. return c3(n, s, f);
  86347. }
  86348. function u(f, d) {
  86349. Nue(n, s, f, d);
  86350. }
  86351. n.each(c);
  86352. function c(f, d) {
  86353. s = f;
  86354. var h = n.getRawDataItem(s);
  86355. if (!(h && h.visualMap === !1))
  86356. for (var p = r.call(i, f), v = e[p], g = o[p], m = 0, y = g.length; m < y; m++) {
  86357. var _ = g[m];
  86358. v[_] && v[_].applyVisual(f, l, u);
  86359. }
  86360. }
  86361. }
  86362. function Jut(t, e, n, r) {
  86363. var i = {};
  86364. return F(t, function(a) {
  86365. var o = Kr.prepareVisualTypes(e[a]);
  86366. i[a] = o;
  86367. }), {
  86368. progress: function(o, s) {
  86369. var l;
  86370. r != null && (l = s.getDimensionIndex(r));
  86371. function u(S) {
  86372. return c3(s, f, S);
  86373. }
  86374. function c(S, x) {
  86375. Nue(s, f, S, x);
  86376. }
  86377. for (var f, d = s.getStore(); (f = o.next()) != null; ) {
  86378. var h = s.getRawDataItem(f);
  86379. if (!(h && h.visualMap === !1))
  86380. for (var p = r != null ? d.get(l, f) : f, v = n(p), g = e[v], m = i[v], y = 0, _ = m.length; y < _; y++) {
  86381. var O = m[y];
  86382. g[O] && g[O].applyVisual(p, u, c);
  86383. }
  86384. }
  86385. }
  86386. };
  86387. }
  86388. function ect(t) {
  86389. var e = t.brushType, n = {
  86390. point: function(r) {
  86391. return yY[e].point(r, n, t);
  86392. },
  86393. rect: function(r) {
  86394. return yY[e].rect(r, n, t);
  86395. }
  86396. };
  86397. return n;
  86398. }
  86399. var yY = {
  86400. lineX: bY(0),
  86401. lineY: bY(1),
  86402. rect: {
  86403. point: function(t, e, n) {
  86404. return t && n.boundingRect.contain(t[0], t[1]);
  86405. },
  86406. rect: function(t, e, n) {
  86407. return t && n.boundingRect.intersect(t);
  86408. }
  86409. },
  86410. polygon: {
  86411. point: function(t, e, n) {
  86412. return t && n.boundingRect.contain(t[0], t[1]) && Gd(n.range, t[0], t[1]);
  86413. },
  86414. rect: function(t, e, n) {
  86415. var r = n.range;
  86416. if (!t || r.length <= 1)
  86417. return !1;
  86418. var i = t.x, a = t.y, o = t.width, s = t.height, l = r[0];
  86419. if (Gd(r, i, a) || Gd(r, i + o, a) || Gd(r, i, a + s) || Gd(r, i + o, a + s) || bt.create(t).contain(l[0], l[1]) || yy(i, a, i + o, a, r) || yy(i, a, i, a + s, r) || yy(i + o, a, i + o, a + s, r) || yy(i, a + s, i + o, a + s, r))
  86420. return !0;
  86421. }
  86422. }
  86423. };
  86424. function bY(t) {
  86425. var e = ["x", "y"], n = ["width", "height"];
  86426. return {
  86427. point: function(r, i, a) {
  86428. if (r) {
  86429. var o = a.range, s = r[t];
  86430. return X0(s, o);
  86431. }
  86432. },
  86433. rect: function(r, i, a) {
  86434. if (r) {
  86435. var o = a.range, s = [r[e[t]], r[e[t]] + r[n[t]]];
  86436. return s[1] < s[0] && s.reverse(), X0(s[0], o) || X0(s[1], o) || X0(o[0], s) || X0(o[1], s);
  86437. }
  86438. }
  86439. };
  86440. }
  86441. function X0(t, e) {
  86442. return e[0] <= t && t <= e[1];
  86443. }
  86444. var _Y = ["inBrush", "outOfBrush"], LI = "__ecBrushSelect", DL = "__ecInBrushSelectEvent";
  86445. function Ohe(t) {
  86446. t.eachComponent({
  86447. mainType: "brush"
  86448. }, function(e) {
  86449. var n = e.brushTargetManager = new w6(e.option, t);
  86450. n.setInputRanges(e.areas, t);
  86451. });
  86452. }
  86453. function tct(t, e, n) {
  86454. var r = [], i, a;
  86455. t.eachComponent({
  86456. mainType: "brush"
  86457. }, function(o) {
  86458. n && n.type === "takeGlobalCursor" && o.setBrushOption(n.key === "brush" ? n.brushOption : {
  86459. brushType: !1
  86460. });
  86461. }), Ohe(t), t.eachComponent({
  86462. mainType: "brush"
  86463. }, function(o, s) {
  86464. var l = {
  86465. brushId: o.id,
  86466. brushIndex: s,
  86467. brushName: o.name,
  86468. areas: ot(o.areas),
  86469. selected: []
  86470. };
  86471. r.push(l);
  86472. var u = o.option, c = u.brushLink, f = [], d = [], h = [], p = !1;
  86473. s || (i = u.throttleType, a = u.throttleDelay);
  86474. var v = Ce(o.areas, function(S) {
  86475. var x = act[S.brushType], C = it({
  86476. boundingRect: x ? x(S) : void 0
  86477. }, S);
  86478. return C.selectors = ect(C), C;
  86479. }), g = IL(o.option, _Y, function(S) {
  86480. S.mappingMethod = "fixed";
  86481. });
  86482. Se(c) && F(c, function(S) {
  86483. f[S] = 1;
  86484. });
  86485. function m(S) {
  86486. return c === "all" || !!f[S];
  86487. }
  86488. function y(S) {
  86489. return !!S.length;
  86490. }
  86491. t.eachSeries(function(S, x) {
  86492. var C = h[x] = [];
  86493. S.subType === "parallel" ? _(S, x) : O(S, x, C);
  86494. });
  86495. function _(S, x) {
  86496. var C = S.coordinateSystem;
  86497. p = p || C.hasAxisBrushed(), m(x) && C.eachActiveState(S.getData(), function(P, $) {
  86498. P === "active" && (d[$] = 1);
  86499. });
  86500. }
  86501. function O(S, x, C) {
  86502. if (!(!S.brushSelector || ict(o, x)) && (F(v, function($) {
  86503. o.brushTargetManager.controlSeries($, S, t) && C.push($), p = p || y(C);
  86504. }), m(x) && y(C))) {
  86505. var P = S.getData();
  86506. P.each(function($) {
  86507. OY(S, C, P, $) && (d[$] = 1);
  86508. });
  86509. }
  86510. }
  86511. t.eachSeries(function(S, x) {
  86512. var C = {
  86513. seriesId: S.id,
  86514. seriesIndex: x,
  86515. seriesName: S.name,
  86516. dataIndex: []
  86517. };
  86518. l.selected.push(C);
  86519. var P = h[x], $ = S.getData(), T = m(x) ? function(E) {
  86520. return d[E] ? (C.dataIndex.push($.getRawIndex(E)), "inBrush") : "outOfBrush";
  86521. } : function(E) {
  86522. return OY(S, P, $, E) ? (C.dataIndex.push($.getRawIndex(E)), "inBrush") : "outOfBrush";
  86523. };
  86524. (m(x) ? p : y(P)) && Kut(_Y, g, $, T);
  86525. });
  86526. }), nct(e, i, a, r, n);
  86527. }
  86528. function nct(t, e, n, r, i) {
  86529. if (i) {
  86530. var a = t.getZr();
  86531. if (!a[DL]) {
  86532. a[LI] || (a[LI] = rct);
  86533. var o = Am(a, LI, n, e);
  86534. o(t, r);
  86535. }
  86536. }
  86537. }
  86538. function rct(t, e) {
  86539. if (!t.isDisposed()) {
  86540. var n = t.getZr();
  86541. n[DL] = !0, t.dispatchAction({
  86542. type: "brushSelect",
  86543. batch: e
  86544. }), n[DL] = !1;
  86545. }
  86546. }
  86547. function OY(t, e, n, r) {
  86548. for (var i = 0, a = e.length; i < a; i++) {
  86549. var o = e[i];
  86550. if (t.brushSelector(r, n, o.selectors, o))
  86551. return !0;
  86552. }
  86553. }
  86554. function ict(t, e) {
  86555. var n = t.option.seriesIndex;
  86556. return n != null && n !== "all" && (Se(n) ? St(n, e) < 0 : e !== n);
  86557. }
  86558. var act = {
  86559. rect: function(t) {
  86560. return SY(t.range);
  86561. },
  86562. polygon: function(t) {
  86563. for (var e, n = t.range, r = 0, i = n.length; r < i; r++) {
  86564. e = e || [[1 / 0, -1 / 0], [1 / 0, -1 / 0]];
  86565. var a = n[r];
  86566. a[0] < e[0][0] && (e[0][0] = a[0]), a[0] > e[0][1] && (e[0][1] = a[0]), a[1] < e[1][0] && (e[1][0] = a[1]), a[1] > e[1][1] && (e[1][1] = a[1]);
  86567. }
  86568. return e && SY(e);
  86569. }
  86570. };
  86571. function SY(t) {
  86572. return new bt(t[0][0], t[1][0], t[0][1] - t[0][0], t[1][1] - t[1][0]);
  86573. }
  86574. var oct = (
  86575. /** @class */
  86576. function(t) {
  86577. le(e, t);
  86578. function e() {
  86579. var n = t !== null && t.apply(this, arguments) || this;
  86580. return n.type = e.type, n;
  86581. }
  86582. return e.prototype.init = function(n, r) {
  86583. this.ecModel = n, this.api = r, this.model, (this._brushController = new J3(r.getZr())).on("brush", We(this._onBrush, this)).mount();
  86584. }, e.prototype.render = function(n, r, i, a) {
  86585. this.model = n, this._updateController(n, r, i, a);
  86586. }, e.prototype.updateTransform = function(n, r, i, a) {
  86587. Ohe(r), this._updateController(n, r, i, a);
  86588. }, e.prototype.updateVisual = function(n, r, i, a) {
  86589. this.updateTransform(n, r, i, a);
  86590. }, e.prototype.updateView = function(n, r, i, a) {
  86591. this._updateController(n, r, i, a);
  86592. }, e.prototype._updateController = function(n, r, i, a) {
  86593. (!a || a.$from !== n.id) && this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice());
  86594. }, e.prototype.dispose = function() {
  86595. this._brushController.dispose();
  86596. }, e.prototype._onBrush = function(n) {
  86597. var r = this.model.id, i = this.model.brushTargetManager.setOutputRanges(n.areas, this.ecModel);
  86598. (!n.isEnd || n.removeOnClick) && this.api.dispatchAction({
  86599. type: "brush",
  86600. brushId: r,
  86601. areas: ot(i),
  86602. $from: r
  86603. }), n.isEnd && this.api.dispatchAction({
  86604. type: "brushEnd",
  86605. brushId: r,
  86606. areas: ot(i),
  86607. $from: r
  86608. });
  86609. }, e.type = "brush", e;
  86610. }(Ln)
  86611. ), sct = "#ddd", lct = (
  86612. /** @class */
  86613. function(t) {
  86614. le(e, t);
  86615. function e() {
  86616. var n = t !== null && t.apply(this, arguments) || this;
  86617. return n.type = e.type, n.areas = [], n.brushOption = {}, n;
  86618. }
  86619. return e.prototype.optionUpdated = function(n, r) {
  86620. var i = this.option;
  86621. !r && _he(i, n, ["inBrush", "outOfBrush"]);
  86622. var a = i.inBrush = i.inBrush || {};
  86623. i.outOfBrush = i.outOfBrush || {
  86624. color: sct
  86625. }, a.hasOwnProperty("liftZ") || (a.liftZ = 5);
  86626. }, e.prototype.setAreas = function(n) {
  86627. process.env.NODE_ENV !== "production" && (at(Se(n)), F(n, function(r) {
  86628. at(r.brushType, "Illegal areas");
  86629. })), n && (this.areas = Ce(n, function(r) {
  86630. return xY(this.option, r);
  86631. }, this));
  86632. }, e.prototype.setBrushOption = function(n) {
  86633. this.brushOption = xY(this.option, n), this.brushType = this.brushOption.brushType;
  86634. }, e.type = "brush", e.dependencies = ["geo", "grid", "xAxis", "yAxis", "parallel", "series"], e.defaultOption = {
  86635. seriesIndex: "all",
  86636. brushType: "rect",
  86637. brushMode: "single",
  86638. transformable: !0,
  86639. brushStyle: {
  86640. borderWidth: 1,
  86641. color: "rgba(210,219,238,0.3)",
  86642. borderColor: "#D2DBEE"
  86643. },
  86644. throttleType: "fixRate",
  86645. throttleDelay: 0,
  86646. removeOnClick: !0,
  86647. z: 1e4
  86648. }, e;
  86649. }(At)
  86650. );
  86651. function xY(t, e) {
  86652. return mt({
  86653. brushType: t.brushType,
  86654. brushMode: t.brushMode,
  86655. transformable: t.transformable,
  86656. brushStyle: new wn(t.brushStyle).getItemStyle(),
  86657. removeOnClick: t.removeOnClick,
  86658. z: t.z
  86659. }, e, !0);
  86660. }
  86661. var uct = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], cct = (
  86662. /** @class */
  86663. function(t) {
  86664. le(e, t);
  86665. function e() {
  86666. return t !== null && t.apply(this, arguments) || this;
  86667. }
  86668. return e.prototype.render = function(n, r, i) {
  86669. var a, o, s;
  86670. r.eachComponent({
  86671. mainType: "brush"
  86672. }, function(l) {
  86673. a = l.brushType, o = l.brushOption.brushMode || "single", s = s || !!l.areas.length;
  86674. }), this._brushType = a, this._brushMode = o, F(n.get("type", !0), function(l) {
  86675. n.setIconStatus(l, (l === "keep" ? o === "multiple" : l === "clear" ? s : l === a) ? "emphasis" : "normal");
  86676. });
  86677. }, e.prototype.updateView = function(n, r, i) {
  86678. this.render(n, r, i);
  86679. }, e.prototype.getIcons = function() {
  86680. var n = this.model, r = n.get("icon", !0), i = {};
  86681. return F(n.get("type", !0), function(a) {
  86682. r[a] && (i[a] = r[a]);
  86683. }), i;
  86684. }, e.prototype.onclick = function(n, r, i) {
  86685. var a = this._brushType, o = this._brushMode;
  86686. i === "clear" ? (r.dispatchAction({
  86687. type: "axisAreaSelect",
  86688. intervals: []
  86689. }), r.dispatchAction({
  86690. type: "brush",
  86691. command: "clear",
  86692. // Clear all areas of all brush components.
  86693. areas: []
  86694. })) : r.dispatchAction({
  86695. type: "takeGlobalCursor",
  86696. key: "brush",
  86697. brushOption: {
  86698. brushType: i === "keep" ? a : a === i ? !1 : i,
  86699. brushMode: i === "keep" ? o === "multiple" ? "single" : "multiple" : o
  86700. }
  86701. });
  86702. }, e.getDefaultOption = function(n) {
  86703. var r = {
  86704. show: !0,
  86705. type: uct.slice(),
  86706. icon: {
  86707. /* eslint-disable */
  86708. rect: "M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",
  86709. polygon: "M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",
  86710. lineX: "M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",
  86711. lineY: "M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",
  86712. keep: "M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",
  86713. clear: "M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"
  86714. // jshint ignore:line
  86715. /* eslint-enable */
  86716. },
  86717. // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`
  86718. title: n.getLocaleModel().get(["toolbox", "brush", "title"])
  86719. };
  86720. return r;
  86721. }, e;
  86722. }(Ho)
  86723. );
  86724. function fct(t) {
  86725. t.registerComponentView(oct), t.registerComponentModel(lct), t.registerPreprocessor(Yut), t.registerVisual(t.PRIORITY.VISUAL.BRUSH, tct), t.registerAction({
  86726. type: "brush",
  86727. event: "brush",
  86728. update: "updateVisual"
  86729. }, function(e, n) {
  86730. n.eachComponent({
  86731. mainType: "brush",
  86732. query: e
  86733. }, function(r) {
  86734. r.setAreas(e.areas);
  86735. });
  86736. }), t.registerAction({
  86737. type: "brushSelect",
  86738. event: "brushSelected",
  86739. update: "none"
  86740. }, fr), t.registerAction({
  86741. type: "brushEnd",
  86742. event: "brushEnd",
  86743. update: "none"
  86744. }, fr), wv("brush", cct);
  86745. }
  86746. var dct = (
  86747. /** @class */
  86748. function(t) {
  86749. le(e, t);
  86750. function e() {
  86751. var n = t !== null && t.apply(this, arguments) || this;
  86752. return n.type = e.type, n.layoutMode = {
  86753. type: "box",
  86754. ignoreSize: !0
  86755. }, n;
  86756. }
  86757. return e.type = "title", e.defaultOption = {
  86758. // zlevel: 0,
  86759. z: 6,
  86760. show: !0,
  86761. text: "",
  86762. target: "blank",
  86763. subtext: "",
  86764. subtarget: "blank",
  86765. left: 0,
  86766. top: 0,
  86767. backgroundColor: "rgba(0,0,0,0)",
  86768. borderColor: "#ccc",
  86769. borderWidth: 0,
  86770. padding: 5,
  86771. itemGap: 10,
  86772. textStyle: {
  86773. fontSize: 18,
  86774. fontWeight: "bold",
  86775. color: "#464646"
  86776. },
  86777. subtextStyle: {
  86778. fontSize: 12,
  86779. color: "#6E7079"
  86780. }
  86781. }, e;
  86782. }(At)
  86783. ), hct = (
  86784. /** @class */
  86785. function(t) {
  86786. le(e, t);
  86787. function e() {
  86788. var n = t !== null && t.apply(this, arguments) || this;
  86789. return n.type = e.type, n;
  86790. }
  86791. return e.prototype.render = function(n, r, i) {
  86792. if (this.group.removeAll(), !!n.get("show")) {
  86793. var a = this.group, o = n.getModel("textStyle"), s = n.getModel("subtextStyle"), l = n.get("textAlign"), u = dt(n.get("textBaseline"), n.get("textVerticalAlign")), c = new jt({
  86794. style: Mn(o, {
  86795. text: n.get("text"),
  86796. fill: o.getTextColor()
  86797. }, {
  86798. disableBox: !0
  86799. }),
  86800. z2: 10
  86801. }), f = c.getBoundingRect(), d = n.get("subtext"), h = new jt({
  86802. style: Mn(s, {
  86803. text: d,
  86804. fill: s.getTextColor(),
  86805. y: f.height + n.get("itemGap"),
  86806. verticalAlign: "top"
  86807. }, {
  86808. disableBox: !0
  86809. }),
  86810. z2: 10
  86811. }), p = n.get("link"), v = n.get("sublink"), g = n.get("triggerEvent", !0);
  86812. c.silent = !p && !g, h.silent = !v && !g, p && c.on("click", function() {
  86813. BC(p, "_" + n.get("target"));
  86814. }), v && h.on("click", function() {
  86815. BC(v, "_" + n.get("subtarget"));
  86816. }), ft(c).eventData = ft(h).eventData = g ? {
  86817. componentType: "title",
  86818. componentIndex: n.componentIndex
  86819. } : null, a.add(c), d && a.add(h);
  86820. var m = a.getBoundingRect(), y = n.getBoxLayoutParams();
  86821. y.width = m.width, y.height = m.height;
  86822. var _ = Mr(y, {
  86823. width: i.getWidth(),
  86824. height: i.getHeight()
  86825. }, n.get("padding"));
  86826. l || (l = n.get("left") || n.get("right"), l === "middle" && (l = "center"), l === "right" ? _.x += _.width : l === "center" && (_.x += _.width / 2)), u || (u = n.get("top") || n.get("bottom"), u === "center" && (u = "middle"), u === "bottom" ? _.y += _.height : u === "middle" && (_.y += _.height / 2), u = u || "top"), a.x = _.x, a.y = _.y, a.markRedraw();
  86827. var O = {
  86828. align: l,
  86829. verticalAlign: u
  86830. };
  86831. c.setStyle(O), h.setStyle(O), m = a.getBoundingRect();
  86832. var S = _.margin, x = n.getItemStyle(["color", "opacity"]);
  86833. x.fill = n.get("backgroundColor");
  86834. var C = new Zt({
  86835. shape: {
  86836. x: m.x - S[3],
  86837. y: m.y - S[0],
  86838. width: m.width + S[1] + S[3],
  86839. height: m.height + S[0] + S[2],
  86840. r: n.get("borderRadius")
  86841. },
  86842. style: x,
  86843. subPixelOptimize: !0,
  86844. silent: !0
  86845. });
  86846. a.add(C);
  86847. }
  86848. }, e.type = "title", e;
  86849. }(Ln)
  86850. );
  86851. function pct(t) {
  86852. t.registerComponentModel(dct), t.registerComponentView(hct);
  86853. }
  86854. var wY = (
  86855. /** @class */
  86856. function(t) {
  86857. le(e, t);
  86858. function e() {
  86859. var n = t !== null && t.apply(this, arguments) || this;
  86860. return n.type = e.type, n.layoutMode = "box", n;
  86861. }
  86862. return e.prototype.init = function(n, r, i) {
  86863. this.mergeDefaultAndTheme(n, i), this._initData();
  86864. }, e.prototype.mergeOption = function(n) {
  86865. t.prototype.mergeOption.apply(this, arguments), this._initData();
  86866. }, e.prototype.setCurrentIndex = function(n) {
  86867. n == null && (n = this.option.currentIndex);
  86868. var r = this._data.count();
  86869. this.option.loop ? n = (n % r + r) % r : (n >= r && (n = r - 1), n < 0 && (n = 0)), this.option.currentIndex = n;
  86870. }, e.prototype.getCurrentIndex = function() {
  86871. return this.option.currentIndex;
  86872. }, e.prototype.isIndexMax = function() {
  86873. return this.getCurrentIndex() >= this._data.count() - 1;
  86874. }, e.prototype.setPlayState = function(n) {
  86875. this.option.autoPlay = !!n;
  86876. }, e.prototype.getPlayState = function() {
  86877. return !!this.option.autoPlay;
  86878. }, e.prototype._initData = function() {
  86879. var n = this.option, r = n.data || [], i = n.axisType, a = this._names = [], o;
  86880. i === "category" ? (o = [], F(r, function(u, c) {
  86881. var f = Br(ym(u), ""), d;
  86882. nt(u) ? (d = ot(u), d.value = c) : d = c, o.push(d), a.push(f);
  86883. })) : o = r;
  86884. var s = {
  86885. category: "ordinal",
  86886. time: "time",
  86887. value: "number"
  86888. }[i] || "number", l = this._data = new Wi([{
  86889. name: "value",
  86890. type: s
  86891. }], this);
  86892. l.initData(o, a);
  86893. }, e.prototype.getData = function() {
  86894. return this._data;
  86895. }, e.prototype.getCategories = function() {
  86896. if (this.get("axisType") === "category")
  86897. return this._names.slice();
  86898. }, e.type = "timeline", e.defaultOption = {
  86899. // zlevel: 0, // 一级层叠
  86900. z: 4,
  86901. show: !0,
  86902. axisType: "time",
  86903. realtime: !0,
  86904. left: "20%",
  86905. top: null,
  86906. right: "20%",
  86907. bottom: 0,
  86908. width: null,
  86909. height: 40,
  86910. padding: 5,
  86911. controlPosition: "left",
  86912. autoPlay: !1,
  86913. rewind: !1,
  86914. loop: !0,
  86915. playInterval: 2e3,
  86916. currentIndex: 0,
  86917. itemStyle: {},
  86918. label: {
  86919. color: "#000"
  86920. },
  86921. data: []
  86922. }, e;
  86923. }(At)
  86924. ), She = (
  86925. /** @class */
  86926. function(t) {
  86927. le(e, t);
  86928. function e() {
  86929. var n = t !== null && t.apply(this, arguments) || this;
  86930. return n.type = e.type, n;
  86931. }
  86932. return e.type = "timeline.slider", e.defaultOption = Bf(wY.defaultOption, {
  86933. backgroundColor: "rgba(0,0,0,0)",
  86934. borderColor: "#ccc",
  86935. borderWidth: 0,
  86936. orient: "horizontal",
  86937. inverse: !1,
  86938. tooltip: {
  86939. trigger: "item"
  86940. // data item may also have tootip attr.
  86941. },
  86942. symbol: "circle",
  86943. symbolSize: 12,
  86944. lineStyle: {
  86945. show: !0,
  86946. width: 2,
  86947. color: "#DAE1F5"
  86948. },
  86949. label: {
  86950. position: "auto",
  86951. // When using number, label position is not
  86952. // restricted by viewRect.
  86953. // positive: right/bottom, negative: left/top
  86954. show: !0,
  86955. interval: "auto",
  86956. rotate: 0,
  86957. // formatter: null,
  86958. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  86959. color: "#A4B1D7"
  86960. },
  86961. itemStyle: {
  86962. color: "#A4B1D7",
  86963. borderWidth: 1
  86964. },
  86965. checkpointStyle: {
  86966. symbol: "circle",
  86967. symbolSize: 15,
  86968. color: "#316bf3",
  86969. borderColor: "#fff",
  86970. borderWidth: 2,
  86971. shadowBlur: 2,
  86972. shadowOffsetX: 1,
  86973. shadowOffsetY: 1,
  86974. shadowColor: "rgba(0, 0, 0, 0.3)",
  86975. // borderColor: 'rgba(194,53,49, 0.5)',
  86976. animation: !0,
  86977. animationDuration: 300,
  86978. animationEasing: "quinticInOut"
  86979. },
  86980. controlStyle: {
  86981. show: !0,
  86982. showPlayBtn: !0,
  86983. showPrevBtn: !0,
  86984. showNextBtn: !0,
  86985. itemSize: 24,
  86986. itemGap: 12,
  86987. position: "left",
  86988. playIcon: "path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",
  86989. stopIcon: "path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",
  86990. // eslint-disable-next-line max-len
  86991. nextIcon: "M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",
  86992. // eslint-disable-next-line max-len
  86993. prevIcon: "M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",
  86994. prevBtnSize: 18,
  86995. nextBtnSize: 18,
  86996. color: "#A4B1D7",
  86997. borderColor: "#A4B1D7",
  86998. borderWidth: 1
  86999. },
  87000. emphasis: {
  87001. label: {
  87002. show: !0,
  87003. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  87004. color: "#6f778d"
  87005. },
  87006. itemStyle: {
  87007. color: "#316BF3"
  87008. },
  87009. controlStyle: {
  87010. color: "#316BF3",
  87011. borderColor: "#316BF3",
  87012. borderWidth: 2
  87013. }
  87014. },
  87015. progress: {
  87016. lineStyle: {
  87017. color: "#316BF3"
  87018. },
  87019. itemStyle: {
  87020. color: "#316BF3"
  87021. },
  87022. label: {
  87023. color: "#6f778d"
  87024. }
  87025. },
  87026. data: []
  87027. }), e;
  87028. }(wY)
  87029. );
  87030. vr(She, DP.prototype);
  87031. var vct = (
  87032. /** @class */
  87033. function(t) {
  87034. le(e, t);
  87035. function e() {
  87036. var n = t !== null && t.apply(this, arguments) || this;
  87037. return n.type = e.type, n;
  87038. }
  87039. return e.type = "timeline", e;
  87040. }(Ln)
  87041. ), gct = (
  87042. /** @class */
  87043. function(t) {
  87044. le(e, t);
  87045. function e(n, r, i, a) {
  87046. var o = t.call(this, n, r, i) || this;
  87047. return o.type = a || "value", o;
  87048. }
  87049. return e.prototype.getLabelModel = function() {
  87050. return this.model.getModel("label");
  87051. }, e.prototype.isHorizontal = function() {
  87052. return this.model.get("orient") === "horizontal";
  87053. }, e;
  87054. }(vs)
  87055. ), NI = Math.PI, CY = Ut(), mct = (
  87056. /** @class */
  87057. function(t) {
  87058. le(e, t);
  87059. function e() {
  87060. var n = t !== null && t.apply(this, arguments) || this;
  87061. return n.type = e.type, n;
  87062. }
  87063. return e.prototype.init = function(n, r) {
  87064. this.api = r;
  87065. }, e.prototype.render = function(n, r, i) {
  87066. if (this.model = n, this.api = i, this.ecModel = r, this.group.removeAll(), n.get("show", !0)) {
  87067. var a = this._layout(n, i), o = this._createGroup("_mainGroup"), s = this._createGroup("_labelGroup"), l = this._axis = this._createAxis(a, n);
  87068. n.formatTooltip = function(u) {
  87069. var c = l.scale.getLabel({
  87070. value: u
  87071. });
  87072. return ti("nameValue", {
  87073. noName: !0,
  87074. value: c
  87075. });
  87076. }, F(["AxisLine", "AxisTick", "Control", "CurrentPointer"], function(u) {
  87077. this["_render" + u](a, o, l, n);
  87078. }, this), this._renderAxisLabel(a, s, l, n), this._position(a, n);
  87079. }
  87080. this._doPlayStop(), this._updateTicksStatus();
  87081. }, e.prototype.remove = function() {
  87082. this._clearTimer(), this.group.removeAll();
  87083. }, e.prototype.dispose = function() {
  87084. this._clearTimer();
  87085. }, e.prototype._layout = function(n, r) {
  87086. var i = n.get(["label", "position"]), a = n.get("orient"), o = bct(n, r), s;
  87087. i == null || i === "auto" ? s = a === "horizontal" ? o.y + o.height / 2 < r.getHeight() / 2 ? "-" : "+" : o.x + o.width / 2 < r.getWidth() / 2 ? "+" : "-" : Ve(i) ? s = {
  87088. horizontal: {
  87089. top: "-",
  87090. bottom: "+"
  87091. },
  87092. vertical: {
  87093. left: "-",
  87094. right: "+"
  87095. }
  87096. }[a][i] : s = i;
  87097. var l = {
  87098. horizontal: "center",
  87099. vertical: s >= 0 || s === "+" ? "left" : "right"
  87100. }, u = {
  87101. horizontal: s >= 0 || s === "+" ? "top" : "bottom",
  87102. vertical: "middle"
  87103. }, c = {
  87104. horizontal: 0,
  87105. vertical: NI / 2
  87106. }, f = a === "vertical" ? o.height : o.width, d = n.getModel("controlStyle"), h = d.get("show", !0), p = h ? d.get("itemSize") : 0, v = h ? d.get("itemGap") : 0, g = p + v, m = n.get(["label", "rotate"]) || 0;
  87107. m = m * NI / 180;
  87108. var y, _, O, S = d.get("position", !0), x = h && d.get("showPlayBtn", !0), C = h && d.get("showPrevBtn", !0), P = h && d.get("showNextBtn", !0), $ = 0, T = f;
  87109. S === "left" || S === "bottom" ? (x && (y = [0, 0], $ += g), C && (_ = [$, 0], $ += g), P && (O = [T - p, 0], T -= g)) : (x && (y = [T - p, 0], T -= g), C && (_ = [0, 0], $ += g), P && (O = [T - p, 0], T -= g));
  87110. var E = [$, T];
  87111. return n.get("inverse") && E.reverse(), {
  87112. viewRect: o,
  87113. mainLength: f,
  87114. orient: a,
  87115. rotation: c[a],
  87116. labelRotation: m,
  87117. labelPosOpt: s,
  87118. labelAlign: n.get(["label", "align"]) || l[a],
  87119. labelBaseline: n.get(["label", "verticalAlign"]) || n.get(["label", "baseline"]) || u[a],
  87120. // Based on mainGroup.
  87121. playPosition: y,
  87122. prevBtnPosition: _,
  87123. nextBtnPosition: O,
  87124. axisExtent: E,
  87125. controlSize: p,
  87126. controlGap: v
  87127. };
  87128. }, e.prototype._position = function(n, r) {
  87129. var i = this._mainGroup, a = this._labelGroup, o = n.viewRect;
  87130. if (n.orient === "vertical") {
  87131. var s = Na(), l = o.x, u = o.y + o.height;
  87132. Gs(s, s, [-l, -u]), Lf(s, s, -NI / 2), Gs(s, s, [l, u]), o = o.clone(), o.applyTransform(s);
  87133. }
  87134. var c = y(o), f = y(i.getBoundingRect()), d = y(a.getBoundingRect()), h = [i.x, i.y], p = [a.x, a.y];
  87135. p[0] = h[0] = c[0][0];
  87136. var v = n.labelPosOpt;
  87137. if (v == null || Ve(v)) {
  87138. var g = v === "+" ? 0 : 1;
  87139. _(h, f, c, 1, g), _(p, d, c, 1, 1 - g);
  87140. } else {
  87141. var g = v >= 0 ? 0 : 1;
  87142. _(h, f, c, 1, g), p[1] = h[1] + v;
  87143. }
  87144. i.setPosition(h), a.setPosition(p), i.rotation = a.rotation = n.rotation, m(i), m(a);
  87145. function m(O) {
  87146. O.originX = c[0][0] - O.x, O.originY = c[1][0] - O.y;
  87147. }
  87148. function y(O) {
  87149. return [[O.x, O.x + O.width], [O.y, O.y + O.height]];
  87150. }
  87151. function _(O, S, x, C, P) {
  87152. O[C] += x[C][P] - S[C][P];
  87153. }
  87154. }, e.prototype._createAxis = function(n, r) {
  87155. var i = r.getData(), a = r.get("axisType"), o = yct(r, a);
  87156. o.getTicks = function() {
  87157. return i.mapArray(["value"], function(u) {
  87158. return {
  87159. value: u
  87160. };
  87161. });
  87162. };
  87163. var s = i.getDataExtent("value");
  87164. o.setExtent(s[0], s[1]), o.calcNiceTicks();
  87165. var l = new gct("value", o, n.axisExtent, a);
  87166. return l.model = r, l;
  87167. }, e.prototype._createGroup = function(n) {
  87168. var r = this[n] = new ct();
  87169. return this.group.add(r), r;
  87170. }, e.prototype._renderAxisLine = function(n, r, i, a) {
  87171. var o = i.getExtent();
  87172. if (a.get(["lineStyle", "show"])) {
  87173. var s = new Xr({
  87174. shape: {
  87175. x1: o[0],
  87176. y1: 0,
  87177. x2: o[1],
  87178. y2: 0
  87179. },
  87180. style: _e({
  87181. lineCap: "round"
  87182. }, a.getModel("lineStyle").getLineStyle()),
  87183. silent: !0,
  87184. z2: 1
  87185. });
  87186. r.add(s);
  87187. var l = this._progressLine = new Xr({
  87188. shape: {
  87189. x1: o[0],
  87190. x2: this._currentPointer ? this._currentPointer.x : o[0],
  87191. y1: 0,
  87192. y2: 0
  87193. },
  87194. style: it({
  87195. lineCap: "round",
  87196. lineWidth: s.style.lineWidth
  87197. }, a.getModel(["progress", "lineStyle"]).getLineStyle()),
  87198. silent: !0,
  87199. z2: 1
  87200. });
  87201. r.add(l);
  87202. }
  87203. }, e.prototype._renderAxisTick = function(n, r, i, a) {
  87204. var o = this, s = a.getData(), l = i.scale.getTicks();
  87205. this._tickSymbols = [], F(l, function(u) {
  87206. var c = i.dataToCoord(u.value), f = s.getItemModel(u.value), d = f.getModel("itemStyle"), h = f.getModel(["emphasis", "itemStyle"]), p = f.getModel(["progress", "itemStyle"]), v = {
  87207. x: c,
  87208. y: 0,
  87209. onclick: We(o._changeTimeline, o, u.value)
  87210. }, g = TY(f, d, r, v);
  87211. g.ensureState("emphasis").style = h.getItemStyle(), g.ensureState("progress").style = p.getItemStyle(), af(g);
  87212. var m = ft(g);
  87213. f.get("tooltip") ? (m.dataIndex = u.value, m.dataModel = a) : m.dataIndex = m.dataModel = null, o._tickSymbols.push(g);
  87214. });
  87215. }, e.prototype._renderAxisLabel = function(n, r, i, a) {
  87216. var o = this, s = i.getLabelModel();
  87217. if (s.get("show")) {
  87218. var l = a.getData(), u = i.getViewLabels();
  87219. this._tickLabels = [], F(u, function(c) {
  87220. var f = c.tickValue, d = l.getItemModel(f), h = d.getModel("label"), p = d.getModel(["emphasis", "label"]), v = d.getModel(["progress", "label"]), g = i.dataToCoord(c.tickValue), m = new jt({
  87221. x: g,
  87222. y: 0,
  87223. rotation: n.labelRotation - n.rotation,
  87224. onclick: We(o._changeTimeline, o, f),
  87225. silent: !1,
  87226. style: Mn(h, {
  87227. text: c.formattedLabel,
  87228. align: n.labelAlign,
  87229. verticalAlign: n.labelBaseline
  87230. })
  87231. });
  87232. m.ensureState("emphasis").style = Mn(p), m.ensureState("progress").style = Mn(v), r.add(m), af(m), CY(m).dataIndex = f, o._tickLabels.push(m);
  87233. });
  87234. }
  87235. }, e.prototype._renderControl = function(n, r, i, a) {
  87236. var o = n.controlSize, s = n.rotation, l = a.getModel("controlStyle").getItemStyle(), u = a.getModel(["emphasis", "controlStyle"]).getItemStyle(), c = a.getPlayState(), f = a.get("inverse", !0);
  87237. d(n.nextBtnPosition, "next", We(this._changeTimeline, this, f ? "-" : "+")), d(n.prevBtnPosition, "prev", We(this._changeTimeline, this, f ? "+" : "-")), d(n.playPosition, c ? "stop" : "play", We(this._handlePlayClick, this, !c), !0);
  87238. function d(h, p, v, g) {
  87239. if (h) {
  87240. var m = js(dt(a.get(["controlStyle", p + "BtnSize"]), o), o), y = [0, -m / 2, m, m], _ = _ct(a, p + "Icon", y, {
  87241. x: h[0],
  87242. y: h[1],
  87243. originX: o / 2,
  87244. originY: 0,
  87245. rotation: g ? -s : 0,
  87246. rectHover: !0,
  87247. style: l,
  87248. onclick: v
  87249. });
  87250. _.ensureState("emphasis").style = u, r.add(_), af(_);
  87251. }
  87252. }
  87253. }, e.prototype._renderCurrentPointer = function(n, r, i, a) {
  87254. var o = a.getData(), s = a.getCurrentIndex(), l = o.getItemModel(s).getModel("checkpointStyle"), u = this, c = {
  87255. onCreate: function(f) {
  87256. f.draggable = !0, f.drift = We(u._handlePointerDrag, u), f.ondragend = We(u._handlePointerDragend, u), PY(f, u._progressLine, s, i, a, !0);
  87257. },
  87258. onUpdate: function(f) {
  87259. PY(f, u._progressLine, s, i, a);
  87260. }
  87261. };
  87262. this._currentPointer = TY(l, l, this._mainGroup, {}, this._currentPointer, c);
  87263. }, e.prototype._handlePlayClick = function(n) {
  87264. this._clearTimer(), this.api.dispatchAction({
  87265. type: "timelinePlayChange",
  87266. playState: n,
  87267. from: this.uid
  87268. });
  87269. }, e.prototype._handlePointerDrag = function(n, r, i) {
  87270. this._clearTimer(), this._pointerChangeTimeline([i.offsetX, i.offsetY]);
  87271. }, e.prototype._handlePointerDragend = function(n) {
  87272. this._pointerChangeTimeline([n.offsetX, n.offsetY], !0);
  87273. }, e.prototype._pointerChangeTimeline = function(n, r) {
  87274. var i = this._toAxisCoord(n)[0], a = this._axis, o = ao(a.getExtent().slice());
  87275. i > o[1] && (i = o[1]), i < o[0] && (i = o[0]), this._currentPointer.x = i, this._currentPointer.markRedraw();
  87276. var s = this._progressLine;
  87277. s && (s.shape.x2 = i, s.dirty());
  87278. var l = this._findNearestTick(i), u = this.model;
  87279. (r || l !== u.getCurrentIndex() && u.get("realtime")) && this._changeTimeline(l);
  87280. }, e.prototype._doPlayStop = function() {
  87281. var n = this;
  87282. this._clearTimer(), this.model.getPlayState() && (this._timer = setTimeout(function() {
  87283. var r = n.model;
  87284. n._changeTimeline(r.getCurrentIndex() + (r.get("rewind", !0) ? -1 : 1));
  87285. }, this.model.get("playInterval")));
  87286. }, e.prototype._toAxisCoord = function(n) {
  87287. var r = this._mainGroup.getLocalTransform();
  87288. return zs(n, r, !0);
  87289. }, e.prototype._findNearestTick = function(n) {
  87290. var r = this.model.getData(), i = 1 / 0, a, o = this._axis;
  87291. return r.each(["value"], function(s, l) {
  87292. var u = o.dataToCoord(s), c = Math.abs(u - n);
  87293. c < i && (i = c, a = l);
  87294. }), a;
  87295. }, e.prototype._clearTimer = function() {
  87296. this._timer && (clearTimeout(this._timer), this._timer = null);
  87297. }, e.prototype._changeTimeline = function(n) {
  87298. var r = this.model.getCurrentIndex();
  87299. n === "+" ? n = r + 1 : n === "-" && (n = r - 1), this.api.dispatchAction({
  87300. type: "timelineChange",
  87301. currentIndex: n,
  87302. from: this.uid
  87303. });
  87304. }, e.prototype._updateTicksStatus = function() {
  87305. var n = this.model.getCurrentIndex(), r = this._tickSymbols, i = this._tickLabels;
  87306. if (r)
  87307. for (var a = 0; a < r.length; a++)
  87308. r && r[a] && r[a].toggleState("progress", a < n);
  87309. if (i)
  87310. for (var a = 0; a < i.length; a++)
  87311. i && i[a] && i[a].toggleState("progress", CY(i[a]).dataIndex <= n);
  87312. }, e.type = "timeline.slider", e;
  87313. }(vct)
  87314. );
  87315. function yct(t, e) {
  87316. if (e = e || t.get("type"), e)
  87317. switch (e) {
  87318. case "category":
  87319. return new FP({
  87320. ordinalMeta: t.getCategories(),
  87321. extent: [1 / 0, -1 / 0]
  87322. });
  87323. case "time":
  87324. return new C3({
  87325. locale: t.ecModel.getLocaleModel(),
  87326. useUTC: t.ecModel.get("useUTC")
  87327. });
  87328. default:
  87329. return new Gu();
  87330. }
  87331. }
  87332. function bct(t, e) {
  87333. return Mr(t.getBoxLayoutParams(), {
  87334. width: e.getWidth(),
  87335. height: e.getHeight()
  87336. }, t.get("padding"));
  87337. }
  87338. function _ct(t, e, n, r) {
  87339. var i = r.style, a = Sm(t.get(["controlStyle", e]), r || {}, new bt(n[0], n[1], n[2], n[3]));
  87340. return i && a.setStyle(i), a;
  87341. }
  87342. function TY(t, e, n, r, i, a) {
  87343. var o = e.get("color");
  87344. if (i)
  87345. i.setColor(o), n.add(i), a && a.onUpdate(i);
  87346. else {
  87347. var s = t.get("symbol");
  87348. i = wr(s, -1, -1, 2, 2, o), i.setStyle("strokeNoScale", !0), n.add(i), a && a.onCreate(i);
  87349. }
  87350. var l = e.getItemStyle(["color"]);
  87351. i.setStyle(l), r = mt({
  87352. rectHover: !0,
  87353. z2: 100
  87354. }, r, !0);
  87355. var u = Em(t.get("symbolSize"));
  87356. r.scaleX = u[0] / 2, r.scaleY = u[1] / 2;
  87357. var c = mp(t.get("symbolOffset"), u);
  87358. c && (r.x = (r.x || 0) + c[0], r.y = (r.y || 0) + c[1]);
  87359. var f = t.get("symbolRotate");
  87360. return r.rotation = (f || 0) * Math.PI / 180 || 0, i.attr(r), i.updateTransform(), i;
  87361. }
  87362. function PY(t, e, n, r, i, a) {
  87363. if (!t.dragging) {
  87364. var o = i.getModel("checkpointStyle"), s = r.dataToCoord(i.getData().get("value", n));
  87365. if (a || !o.get("animation", !0))
  87366. t.attr({
  87367. x: s,
  87368. y: 0
  87369. }), e && e.attr({
  87370. shape: {
  87371. x2: s
  87372. }
  87373. });
  87374. else {
  87375. var l = {
  87376. duration: o.get("animationDuration", !0),
  87377. easing: o.get("animationEasing", !0)
  87378. };
  87379. t.stopAnimation(null, !0), t.animateTo({
  87380. x: s,
  87381. y: 0
  87382. }, l), e && e.animateTo({
  87383. shape: {
  87384. x2: s
  87385. }
  87386. }, l);
  87387. }
  87388. }
  87389. }
  87390. function Oct(t) {
  87391. t.registerAction({
  87392. type: "timelineChange",
  87393. event: "timelineChanged",
  87394. update: "prepareAndUpdate"
  87395. }, function(e, n, r) {
  87396. var i = n.getComponent("timeline");
  87397. return i && e.currentIndex != null && (i.setCurrentIndex(e.currentIndex), !i.get("loop", !0) && i.isIndexMax() && i.getPlayState() && (i.setPlayState(!1), r.dispatchAction({
  87398. type: "timelinePlayChange",
  87399. playState: !1,
  87400. from: e.from
  87401. }))), n.resetOption("timeline", {
  87402. replaceMerge: i.get("replaceMerge", !0)
  87403. }), it({
  87404. currentIndex: i.option.currentIndex
  87405. }, e);
  87406. }), t.registerAction({
  87407. type: "timelinePlayChange",
  87408. event: "timelinePlayChanged",
  87409. update: "update"
  87410. }, function(e, n) {
  87411. var r = n.getComponent("timeline");
  87412. r && e.playState != null && r.setPlayState(e.playState);
  87413. });
  87414. }
  87415. function Sct(t) {
  87416. var e = t && t.timeline;
  87417. Se(e) || (e = e ? [e] : []), F(e, function(n) {
  87418. n && xct(n);
  87419. });
  87420. }
  87421. function xct(t) {
  87422. var e = t.type, n = {
  87423. number: "value",
  87424. time: "time"
  87425. };
  87426. if (n[e] && (t.axisType = n[e], delete t.type), $Y(t), Ud(t, "controlPosition")) {
  87427. var r = t.controlStyle || (t.controlStyle = {});
  87428. Ud(r, "position") || (r.position = t.controlPosition), r.position === "none" && !Ud(r, "show") && (r.show = !1, delete r.position), delete t.controlPosition;
  87429. }
  87430. F(t.data || [], function(i) {
  87431. nt(i) && !Se(i) && (!Ud(i, "value") && Ud(i, "name") && (i.value = i.name), $Y(i));
  87432. });
  87433. }
  87434. function $Y(t) {
  87435. var e = t.itemStyle || (t.itemStyle = {}), n = e.emphasis || (e.emphasis = {}), r = t.label || t.label || {}, i = r.normal || (r.normal = {}), a = {
  87436. normal: 1,
  87437. emphasis: 1
  87438. };
  87439. F(r, function(o, s) {
  87440. !a[s] && !Ud(i, s) && (i[s] = o);
  87441. }), n.label && !Ud(r, "emphasis") && (r.emphasis = n.label, delete n.label);
  87442. }
  87443. function Ud(t, e) {
  87444. return t.hasOwnProperty(e);
  87445. }
  87446. function wct(t) {
  87447. t.registerComponentModel(She), t.registerComponentView(mct), t.registerSubTypeDefaulter("timeline", function() {
  87448. return "slider";
  87449. }), Oct(t), t.registerPreprocessor(Sct);
  87450. }
  87451. function P6(t, e) {
  87452. if (!t)
  87453. return !1;
  87454. for (var n = Se(t) ? t : [t], r = 0; r < n.length; r++)
  87455. if (n[r] && n[r][e])
  87456. return !0;
  87457. return !1;
  87458. }
  87459. function KS(t) {
  87460. Hh(t, "label", ["show"]);
  87461. }
  87462. var JS = Ut(), Zu = (
  87463. /** @class */
  87464. function(t) {
  87465. le(e, t);
  87466. function e() {
  87467. var n = t !== null && t.apply(this, arguments) || this;
  87468. return n.type = e.type, n.createdBySelf = !1, n;
  87469. }
  87470. return e.prototype.init = function(n, r, i) {
  87471. if (process.env.NODE_ENV !== "production" && this.type === "marker")
  87472. throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");
  87473. this.mergeDefaultAndTheme(n, i), this._mergeOption(n, i, !1, !0);
  87474. }, e.prototype.isAnimationEnabled = function() {
  87475. if (Gt.node)
  87476. return !1;
  87477. var n = this.__hostSeries;
  87478. return this.getShallow("animation") && n && n.isAnimationEnabled();
  87479. }, e.prototype.mergeOption = function(n, r) {
  87480. this._mergeOption(n, r, !1, !1);
  87481. }, e.prototype._mergeOption = function(n, r, i, a) {
  87482. var o = this.mainType;
  87483. i || r.eachSeries(function(s) {
  87484. var l = s.get(this.mainType, !0), u = JS(s)[o];
  87485. if (!l || !l.data) {
  87486. JS(s)[o] = null;
  87487. return;
  87488. }
  87489. u ? u._mergeOption(l, r, !0) : (a && KS(l), F(l.data, function(c) {
  87490. c instanceof Array ? (KS(c[0]), KS(c[1])) : KS(c);
  87491. }), u = this.createMarkerModelFromSeries(l, this, r), _e(u, {
  87492. mainType: this.mainType,
  87493. // Use the same series index and name
  87494. seriesIndex: s.seriesIndex,
  87495. name: s.name,
  87496. createdBySelf: !0
  87497. }), u.__hostSeries = s), JS(s)[o] = u;
  87498. }, this);
  87499. }, e.prototype.formatTooltip = function(n, r, i) {
  87500. var a = this.getData(), o = this.getRawValue(n), s = a.getName(n);
  87501. return ti("section", {
  87502. header: this.name,
  87503. blocks: [ti("nameValue", {
  87504. name: s,
  87505. value: o,
  87506. noName: !s,
  87507. noValue: o == null
  87508. })]
  87509. });
  87510. }, e.prototype.getData = function() {
  87511. return this._data;
  87512. }, e.prototype.setData = function(n) {
  87513. this._data = n;
  87514. }, e.prototype.getDataParams = function(n, r) {
  87515. var i = DP.prototype.getDataParams.call(this, n, r), a = this.__hostSeries;
  87516. return a && (i.seriesId = a.id, i.seriesName = a.name, i.seriesType = a.subType), i;
  87517. }, e.getMarkerModelFromSeries = function(n, r) {
  87518. return JS(n)[r];
  87519. }, e.type = "marker", e.dependencies = ["series", "grid", "polar", "geo"], e;
  87520. }(At)
  87521. );
  87522. vr(Zu, DP.prototype);
  87523. var Cct = (
  87524. /** @class */
  87525. function(t) {
  87526. le(e, t);
  87527. function e() {
  87528. var n = t !== null && t.apply(this, arguments) || this;
  87529. return n.type = e.type, n;
  87530. }
  87531. return e.prototype.createMarkerModelFromSeries = function(n, r, i) {
  87532. return new e(n, r, i);
  87533. }, e.type = "markPoint", e.defaultOption = {
  87534. // zlevel: 0,
  87535. z: 5,
  87536. symbol: "pin",
  87537. symbolSize: 50,
  87538. // symbolRotate: 0,
  87539. // symbolOffset: [0, 0]
  87540. tooltip: {
  87541. trigger: "item"
  87542. },
  87543. label: {
  87544. show: !0,
  87545. position: "inside"
  87546. },
  87547. itemStyle: {
  87548. borderWidth: 2
  87549. },
  87550. emphasis: {
  87551. label: {
  87552. show: !0
  87553. }
  87554. }
  87555. }, e;
  87556. }(Zu)
  87557. );
  87558. function RL(t) {
  87559. return !(isNaN(parseFloat(t.x)) && isNaN(parseFloat(t.y)));
  87560. }
  87561. function Tct(t) {
  87562. return !isNaN(parseFloat(t.x)) && !isNaN(parseFloat(t.y));
  87563. }
  87564. function ex(t, e, n, r, i, a) {
  87565. var o = [], s = Hu(
  87566. e,
  87567. r
  87568. /* , otherDataDim */
  87569. ), l = s ? e.getCalculationInfo("stackResultDimension") : r, u = $6(e, l, t), c = e.indicesOfNearest(l, u)[0];
  87570. o[i] = e.get(n, c), o[a] = e.get(l, c);
  87571. var f = e.get(r, c), d = Ms(e.get(r, c));
  87572. return d = Math.min(d, 20), d >= 0 && (o[a] = +o[a].toFixed(d)), [o, f];
  87573. }
  87574. var BI = {
  87575. min: vt(ex, "min"),
  87576. max: vt(ex, "max"),
  87577. average: vt(ex, "average"),
  87578. median: vt(ex, "median")
  87579. };
  87580. function h_(t, e) {
  87581. if (e) {
  87582. var n = t.getData(), r = t.coordinateSystem, i = r && r.dimensions;
  87583. if (!Tct(e) && !Se(e.coord) && Se(i)) {
  87584. var a = xhe(e, n, r, t);
  87585. if (e = ot(e), e.type && BI[e.type] && a.baseAxis && a.valueAxis) {
  87586. var o = St(i, a.baseAxis.dim), s = St(i, a.valueAxis.dim), l = BI[e.type](n, a.baseDataDim, a.valueDataDim, o, s);
  87587. e.coord = l[0], e.value = l[1];
  87588. } else
  87589. e.coord = [e.xAxis != null ? e.xAxis : e.radiusAxis, e.yAxis != null ? e.yAxis : e.angleAxis];
  87590. }
  87591. if (e.coord == null || !Se(i))
  87592. e.coord = [];
  87593. else
  87594. for (var u = e.coord, c = 0; c < 2; c++)
  87595. BI[u[c]] && (u[c] = $6(n, n.mapDimension(i[c]), u[c]));
  87596. return e;
  87597. }
  87598. }
  87599. function xhe(t, e, n, r) {
  87600. var i = {};
  87601. return t.valueIndex != null || t.valueDim != null ? (i.valueDataDim = t.valueIndex != null ? e.getDimension(t.valueIndex) : t.valueDim, i.valueAxis = n.getAxis(Pct(r, i.valueDataDim)), i.baseAxis = n.getOtherAxis(i.valueAxis), i.baseDataDim = e.mapDimension(i.baseAxis.dim)) : (i.baseAxis = r.getBaseAxis(), i.valueAxis = n.getOtherAxis(i.baseAxis), i.baseDataDim = e.mapDimension(i.baseAxis.dim), i.valueDataDim = e.mapDimension(i.valueAxis.dim)), i;
  87602. }
  87603. function Pct(t, e) {
  87604. var n = t.getData().getDimensionInfo(e);
  87605. return n && n.coordDim;
  87606. }
  87607. function p_(t, e) {
  87608. return t && t.containData && e.coord && !RL(e) ? t.containData(e.coord) : !0;
  87609. }
  87610. function $ct(t, e, n) {
  87611. return t && t.containZone && e.coord && n.coord && !RL(e) && !RL(n) ? t.containZone(e.coord, n.coord) : !0;
  87612. }
  87613. function whe(t, e) {
  87614. return t ? function(n, r, i, a) {
  87615. var o = a < 2 ? n.coord && n.coord[a] : n.value;
  87616. return sf(o, e[a]);
  87617. } : function(n, r, i, a) {
  87618. return sf(n.value, e[a]);
  87619. };
  87620. }
  87621. function $6(t, e, n) {
  87622. if (n === "average") {
  87623. var r = 0, i = 0;
  87624. return t.each(e, function(a, o) {
  87625. isNaN(a) || (r += a, i++);
  87626. }), r / i;
  87627. } else return n === "median" ? t.getMedian(e) : t.getDataExtent(e)[n === "max" ? 1 : 0];
  87628. }
  87629. var zI = Ut(), A6 = (
  87630. /** @class */
  87631. function(t) {
  87632. le(e, t);
  87633. function e() {
  87634. var n = t !== null && t.apply(this, arguments) || this;
  87635. return n.type = e.type, n;
  87636. }
  87637. return e.prototype.init = function() {
  87638. this.markerGroupMap = Ze();
  87639. }, e.prototype.render = function(n, r, i) {
  87640. var a = this, o = this.markerGroupMap;
  87641. o.each(function(s) {
  87642. zI(s).keep = !1;
  87643. }), r.eachSeries(function(s) {
  87644. var l = Zu.getMarkerModelFromSeries(s, a.type);
  87645. l && a.renderSeries(s, l, r, i);
  87646. }), o.each(function(s) {
  87647. !zI(s).keep && a.group.remove(s.group);
  87648. });
  87649. }, e.prototype.markKeep = function(n) {
  87650. zI(n).keep = !0;
  87651. }, e.prototype.toggleBlurSeries = function(n, r) {
  87652. var i = this;
  87653. F(n, function(a) {
  87654. var o = Zu.getMarkerModelFromSeries(a, i.type);
  87655. if (o) {
  87656. var s = o.getData();
  87657. s.eachItemGraphicEl(function(l) {
  87658. l && (r ? ole(l) : N5(l));
  87659. });
  87660. }
  87661. });
  87662. }, e.type = "marker", e;
  87663. }(Ln)
  87664. );
  87665. function AY(t, e, n) {
  87666. var r = e.coordinateSystem;
  87667. t.each(function(i) {
  87668. var a = t.getItemModel(i), o, s = ze(a.get("x"), n.getWidth()), l = ze(a.get("y"), n.getHeight());
  87669. if (!isNaN(s) && !isNaN(l))
  87670. o = [s, l];
  87671. else if (e.getMarkerPosition)
  87672. o = e.getMarkerPosition(t.getValues(t.dimensions, i));
  87673. else if (r) {
  87674. var u = t.get(r.dimensions[0], i), c = t.get(r.dimensions[1], i);
  87675. o = r.dataToPoint([u, c]);
  87676. }
  87677. isNaN(s) || (o[0] = s), isNaN(l) || (o[1] = l), t.setItemLayout(i, o);
  87678. });
  87679. }
  87680. var Act = (
  87681. /** @class */
  87682. function(t) {
  87683. le(e, t);
  87684. function e() {
  87685. var n = t !== null && t.apply(this, arguments) || this;
  87686. return n.type = e.type, n;
  87687. }
  87688. return e.prototype.updateTransform = function(n, r, i) {
  87689. r.eachSeries(function(a) {
  87690. var o = Zu.getMarkerModelFromSeries(a, "markPoint");
  87691. o && (AY(o.getData(), a, i), this.markerGroupMap.get(a.id).updateLayout());
  87692. }, this);
  87693. }, e.prototype.renderSeries = function(n, r, i, a) {
  87694. var o = n.coordinateSystem, s = n.id, l = n.getData(), u = this.markerGroupMap, c = u.get(s) || u.set(s, new y1()), f = Ect(o, n, r);
  87695. r.setData(f), AY(r.getData(), n, a), f.each(function(d) {
  87696. var h = f.getItemModel(d), p = h.getShallow("symbol"), v = h.getShallow("symbolSize"), g = h.getShallow("symbolRotate"), m = h.getShallow("symbolOffset"), y = h.getShallow("symbolKeepAspect");
  87697. if (qe(p) || qe(v) || qe(g) || qe(m)) {
  87698. var _ = r.getRawValue(d), O = r.getDataParams(d);
  87699. qe(p) && (p = p(_, O)), qe(v) && (v = v(_, O)), qe(g) && (g = g(_, O)), qe(m) && (m = m(_, O));
  87700. }
  87701. var S = h.getModel("itemStyle").getItemStyle(), x = v1(l, "color");
  87702. S.fill || (S.fill = x), f.setItemVisual(d, {
  87703. symbol: p,
  87704. symbolSize: v,
  87705. symbolRotate: g,
  87706. symbolOffset: m,
  87707. symbolKeepAspect: y,
  87708. style: S
  87709. });
  87710. }), c.updateData(f), this.group.add(c.group), f.eachItemGraphicEl(function(d) {
  87711. d.traverse(function(h) {
  87712. ft(h).dataModel = r;
  87713. });
  87714. }), this.markKeep(c), c.group.silent = r.get("silent") || n.get("silent");
  87715. }, e.type = "markPoint", e;
  87716. }(A6)
  87717. );
  87718. function Ect(t, e, n) {
  87719. var r;
  87720. t ? r = Ce(t && t.dimensions, function(s) {
  87721. var l = e.getData().getDimensionInfo(e.getData().mapDimension(s)) || {};
  87722. return _e(_e({}, l), {
  87723. name: s,
  87724. // DON'T use ordinalMeta to parse and collect ordinal.
  87725. ordinalMeta: null
  87726. });
  87727. }) : r = [{
  87728. name: "value",
  87729. type: "float"
  87730. }];
  87731. var i = new Wi(r, n), a = Ce(n.get("data"), vt(h_, e));
  87732. t && (a = yn(a, vt(p_, t)));
  87733. var o = whe(!!t, r);
  87734. return i.initData(a, null, o), i;
  87735. }
  87736. function Mct(t) {
  87737. t.registerComponentModel(Cct), t.registerComponentView(Act), t.registerPreprocessor(function(e) {
  87738. P6(e.series, "markPoint") && (e.markPoint = e.markPoint || {});
  87739. });
  87740. }
  87741. var Ict = (
  87742. /** @class */
  87743. function(t) {
  87744. le(e, t);
  87745. function e() {
  87746. var n = t !== null && t.apply(this, arguments) || this;
  87747. return n.type = e.type, n;
  87748. }
  87749. return e.prototype.createMarkerModelFromSeries = function(n, r, i) {
  87750. return new e(n, r, i);
  87751. }, e.type = "markLine", e.defaultOption = {
  87752. // zlevel: 0,
  87753. z: 5,
  87754. symbol: ["circle", "arrow"],
  87755. symbolSize: [8, 16],
  87756. // symbolRotate: 0,
  87757. symbolOffset: 0,
  87758. precision: 2,
  87759. tooltip: {
  87760. trigger: "item"
  87761. },
  87762. label: {
  87763. show: !0,
  87764. position: "end",
  87765. distance: 5
  87766. },
  87767. lineStyle: {
  87768. type: "dashed"
  87769. },
  87770. emphasis: {
  87771. label: {
  87772. show: !0
  87773. },
  87774. lineStyle: {
  87775. width: 3
  87776. }
  87777. },
  87778. animationEasing: "linear"
  87779. }, e;
  87780. }(Zu)
  87781. ), tx = Ut(), Dct = function(t, e, n, r) {
  87782. var i = t.getData(), a;
  87783. if (Se(r))
  87784. a = r;
  87785. else {
  87786. var o = r.type;
  87787. if (o === "min" || o === "max" || o === "average" || o === "median" || r.xAxis != null || r.yAxis != null) {
  87788. var s = void 0, l = void 0;
  87789. if (r.yAxis != null || r.xAxis != null)
  87790. s = e.getAxis(r.yAxis != null ? "y" : "x"), l = Or(r.yAxis, r.xAxis);
  87791. else {
  87792. var u = xhe(r, i, e, t);
  87793. s = u.valueAxis;
  87794. var c = S3(i, u.valueDataDim);
  87795. l = $6(i, c, o);
  87796. }
  87797. var f = s.dim === "x" ? 0 : 1, d = 1 - f, h = ot(r), p = {
  87798. coord: []
  87799. };
  87800. h.type = null, h.coord = [], h.coord[d] = -1 / 0, p.coord[d] = 1 / 0;
  87801. var v = n.get("precision");
  87802. v >= 0 && Kt(l) && (l = +l.toFixed(Math.min(v, 20))), h.coord[f] = p.coord[f] = l, a = [h, p, {
  87803. type: o,
  87804. valueIndex: r.valueIndex,
  87805. // Force to use the value of calculated value.
  87806. value: l
  87807. }];
  87808. } else
  87809. process.env.NODE_ENV !== "production" && qo("Invalid markLine data."), a = [];
  87810. }
  87811. var g = [h_(t, a[0]), h_(t, a[1]), _e({}, a[2])];
  87812. return g[2].type = g[2].type || null, mt(g[2], g[0]), mt(g[2], g[1]), g;
  87813. };
  87814. function vT(t) {
  87815. return !isNaN(t) && !isFinite(t);
  87816. }
  87817. function EY(t, e, n, r) {
  87818. var i = 1 - t, a = r.dimensions[t];
  87819. return vT(e[i]) && vT(n[i]) && e[t] === n[t] && r.getAxis(a).containData(e[t]);
  87820. }
  87821. function Rct(t, e) {
  87822. if (t.type === "cartesian2d") {
  87823. var n = e[0].coord, r = e[1].coord;
  87824. if (n && r && (EY(1, n, r, t) || EY(0, n, r, t)))
  87825. return !0;
  87826. }
  87827. return p_(t, e[0]) && p_(t, e[1]);
  87828. }
  87829. function VI(t, e, n, r, i) {
  87830. var a = r.coordinateSystem, o = t.getItemModel(e), s, l = ze(o.get("x"), i.getWidth()), u = ze(o.get("y"), i.getHeight());
  87831. if (!isNaN(l) && !isNaN(u))
  87832. s = [l, u];
  87833. else {
  87834. if (r.getMarkerPosition)
  87835. s = r.getMarkerPosition(t.getValues(t.dimensions, e));
  87836. else {
  87837. var c = a.dimensions, f = t.get(c[0], e), d = t.get(c[1], e);
  87838. s = a.dataToPoint([f, d]);
  87839. }
  87840. if (yp(a, "cartesian2d")) {
  87841. var h = a.getAxis("x"), p = a.getAxis("y"), c = a.dimensions;
  87842. vT(t.get(c[0], e)) ? s[0] = h.toGlobalCoord(h.getExtent()[n ? 0 : 1]) : vT(t.get(c[1], e)) && (s[1] = p.toGlobalCoord(p.getExtent()[n ? 0 : 1]));
  87843. }
  87844. isNaN(l) || (s[0] = l), isNaN(u) || (s[1] = u);
  87845. }
  87846. t.setItemLayout(e, s);
  87847. }
  87848. var kct = (
  87849. /** @class */
  87850. function(t) {
  87851. le(e, t);
  87852. function e() {
  87853. var n = t !== null && t.apply(this, arguments) || this;
  87854. return n.type = e.type, n;
  87855. }
  87856. return e.prototype.updateTransform = function(n, r, i) {
  87857. r.eachSeries(function(a) {
  87858. var o = Zu.getMarkerModelFromSeries(a, "markLine");
  87859. if (o) {
  87860. var s = o.getData(), l = tx(o).from, u = tx(o).to;
  87861. l.each(function(c) {
  87862. VI(l, c, !0, a, i), VI(u, c, !1, a, i);
  87863. }), s.each(function(c) {
  87864. s.setItemLayout(c, [l.getItemLayout(c), u.getItemLayout(c)]);
  87865. }), this.markerGroupMap.get(a.id).updateLayout();
  87866. }
  87867. }, this);
  87868. }, e.prototype.renderSeries = function(n, r, i, a) {
  87869. var o = n.coordinateSystem, s = n.id, l = n.getData(), u = this.markerGroupMap, c = u.get(s) || u.set(s, new K3());
  87870. this.group.add(c.group);
  87871. var f = Lct(o, n, r), d = f.from, h = f.to, p = f.line;
  87872. tx(r).from = d, tx(r).to = h, r.setData(p);
  87873. var v = r.get("symbol"), g = r.get("symbolSize"), m = r.get("symbolRotate"), y = r.get("symbolOffset");
  87874. Se(v) || (v = [v, v]), Se(g) || (g = [g, g]), Se(m) || (m = [m, m]), Se(y) || (y = [y, y]), f.from.each(function(O) {
  87875. _(d, O, !0), _(h, O, !1);
  87876. }), p.each(function(O) {
  87877. var S = p.getItemModel(O).getModel("lineStyle").getLineStyle();
  87878. p.setItemLayout(O, [d.getItemLayout(O), h.getItemLayout(O)]), S.stroke == null && (S.stroke = d.getItemVisual(O, "style").fill), p.setItemVisual(O, {
  87879. fromSymbolKeepAspect: d.getItemVisual(O, "symbolKeepAspect"),
  87880. fromSymbolOffset: d.getItemVisual(O, "symbolOffset"),
  87881. fromSymbolRotate: d.getItemVisual(O, "symbolRotate"),
  87882. fromSymbolSize: d.getItemVisual(O, "symbolSize"),
  87883. fromSymbol: d.getItemVisual(O, "symbol"),
  87884. toSymbolKeepAspect: h.getItemVisual(O, "symbolKeepAspect"),
  87885. toSymbolOffset: h.getItemVisual(O, "symbolOffset"),
  87886. toSymbolRotate: h.getItemVisual(O, "symbolRotate"),
  87887. toSymbolSize: h.getItemVisual(O, "symbolSize"),
  87888. toSymbol: h.getItemVisual(O, "symbol"),
  87889. style: S
  87890. });
  87891. }), c.updateData(p), f.line.eachItemGraphicEl(function(O) {
  87892. ft(O).dataModel = r, O.traverse(function(S) {
  87893. ft(S).dataModel = r;
  87894. });
  87895. });
  87896. function _(O, S, x) {
  87897. var C = O.getItemModel(S);
  87898. VI(O, S, x, n, a);
  87899. var P = C.getModel("itemStyle").getItemStyle();
  87900. P.fill == null && (P.fill = v1(l, "color")), O.setItemVisual(S, {
  87901. symbolKeepAspect: C.get("symbolKeepAspect"),
  87902. // `0` should be considered as a valid value, so use `retrieve2` instead of `||`
  87903. symbolOffset: dt(C.get("symbolOffset", !0), y[x ? 0 : 1]),
  87904. symbolRotate: dt(C.get("symbolRotate", !0), m[x ? 0 : 1]),
  87905. // TODO: when 2d array is supported, it should ignore parent
  87906. symbolSize: dt(C.get("symbolSize"), g[x ? 0 : 1]),
  87907. symbol: dt(C.get("symbol", !0), v[x ? 0 : 1]),
  87908. style: P
  87909. });
  87910. }
  87911. this.markKeep(c), c.group.silent = r.get("silent") || n.get("silent");
  87912. }, e.type = "markLine", e;
  87913. }(A6)
  87914. );
  87915. function Lct(t, e, n) {
  87916. var r;
  87917. t ? r = Ce(t && t.dimensions, function(u) {
  87918. var c = e.getData().getDimensionInfo(e.getData().mapDimension(u)) || {};
  87919. return _e(_e({}, c), {
  87920. name: u,
  87921. // DON'T use ordinalMeta to parse and collect ordinal.
  87922. ordinalMeta: null
  87923. });
  87924. }) : r = [{
  87925. name: "value",
  87926. type: "float"
  87927. }];
  87928. var i = new Wi(r, n), a = new Wi(r, n), o = new Wi([], n), s = Ce(n.get("data"), vt(Dct, e, t, n));
  87929. t && (s = yn(s, vt(Rct, t)));
  87930. var l = whe(!!t, r);
  87931. return i.initData(Ce(s, function(u) {
  87932. return u[0];
  87933. }), null, l), a.initData(Ce(s, function(u) {
  87934. return u[1];
  87935. }), null, l), o.initData(Ce(s, function(u) {
  87936. return u[2];
  87937. })), o.hasItemOption = !0, {
  87938. from: i,
  87939. to: a,
  87940. line: o
  87941. };
  87942. }
  87943. function Nct(t) {
  87944. t.registerComponentModel(Ict), t.registerComponentView(kct), t.registerPreprocessor(function(e) {
  87945. P6(e.series, "markLine") && (e.markLine = e.markLine || {});
  87946. });
  87947. }
  87948. var Bct = (
  87949. /** @class */
  87950. function(t) {
  87951. le(e, t);
  87952. function e() {
  87953. var n = t !== null && t.apply(this, arguments) || this;
  87954. return n.type = e.type, n;
  87955. }
  87956. return e.prototype.createMarkerModelFromSeries = function(n, r, i) {
  87957. return new e(n, r, i);
  87958. }, e.type = "markArea", e.defaultOption = {
  87959. // zlevel: 0,
  87960. // PENDING
  87961. z: 1,
  87962. tooltip: {
  87963. trigger: "item"
  87964. },
  87965. // markArea should fixed on the coordinate system
  87966. animation: !1,
  87967. label: {
  87968. show: !0,
  87969. position: "top"
  87970. },
  87971. itemStyle: {
  87972. // color and borderColor default to use color from series
  87973. // color: 'auto'
  87974. // borderColor: 'auto'
  87975. borderWidth: 0
  87976. },
  87977. emphasis: {
  87978. label: {
  87979. show: !0,
  87980. position: "top"
  87981. }
  87982. }
  87983. }, e;
  87984. }(Zu)
  87985. ), nx = Ut(), zct = function(t, e, n, r) {
  87986. var i = r[0], a = r[1];
  87987. if (!(!i || !a)) {
  87988. var o = h_(t, i), s = h_(t, a), l = o.coord, u = s.coord;
  87989. l[0] = Or(l[0], -1 / 0), l[1] = Or(l[1], -1 / 0), u[0] = Or(u[0], 1 / 0), u[1] = Or(u[1], 1 / 0);
  87990. var c = aP([{}, o, s]);
  87991. return c.coord = [o.coord, s.coord], c.x0 = o.x, c.y0 = o.y, c.x1 = s.x, c.y1 = s.y, c;
  87992. }
  87993. };
  87994. function gT(t) {
  87995. return !isNaN(t) && !isFinite(t);
  87996. }
  87997. function MY(t, e, n, r) {
  87998. var i = 1 - t;
  87999. return gT(e[i]) && gT(n[i]);
  88000. }
  88001. function Vct(t, e) {
  88002. var n = e.coord[0], r = e.coord[1], i = {
  88003. coord: n,
  88004. x: e.x0,
  88005. y: e.y0
  88006. }, a = {
  88007. coord: r,
  88008. x: e.x1,
  88009. y: e.y1
  88010. };
  88011. return yp(t, "cartesian2d") ? n && r && (MY(1, n, r) || MY(0, n, r)) ? !0 : $ct(t, i, a) : p_(t, i) || p_(t, a);
  88012. }
  88013. function IY(t, e, n, r, i) {
  88014. var a = r.coordinateSystem, o = t.getItemModel(e), s, l = ze(o.get(n[0]), i.getWidth()), u = ze(o.get(n[1]), i.getHeight());
  88015. if (!isNaN(l) && !isNaN(u))
  88016. s = [l, u];
  88017. else {
  88018. if (r.getMarkerPosition) {
  88019. var c = t.getValues(["x0", "y0"], e), f = t.getValues(["x1", "y1"], e), d = a.clampData(c), h = a.clampData(f), p = [];
  88020. n[0] === "x0" ? p[0] = d[0] > h[0] ? f[0] : c[0] : p[0] = d[0] > h[0] ? c[0] : f[0], n[1] === "y0" ? p[1] = d[1] > h[1] ? f[1] : c[1] : p[1] = d[1] > h[1] ? c[1] : f[1], s = r.getMarkerPosition(p, n, !0);
  88021. } else {
  88022. var v = t.get(n[0], e), g = t.get(n[1], e), m = [v, g];
  88023. a.clampData && a.clampData(m, m), s = a.dataToPoint(m, !0);
  88024. }
  88025. if (yp(a, "cartesian2d")) {
  88026. var y = a.getAxis("x"), _ = a.getAxis("y"), v = t.get(n[0], e), g = t.get(n[1], e);
  88027. gT(v) ? s[0] = y.toGlobalCoord(y.getExtent()[n[0] === "x0" ? 0 : 1]) : gT(g) && (s[1] = _.toGlobalCoord(_.getExtent()[n[1] === "y0" ? 0 : 1]));
  88028. }
  88029. isNaN(l) || (s[0] = l), isNaN(u) || (s[1] = u);
  88030. }
  88031. return s;
  88032. }
  88033. var DY = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], Fct = (
  88034. /** @class */
  88035. function(t) {
  88036. le(e, t);
  88037. function e() {
  88038. var n = t !== null && t.apply(this, arguments) || this;
  88039. return n.type = e.type, n;
  88040. }
  88041. return e.prototype.updateTransform = function(n, r, i) {
  88042. r.eachSeries(function(a) {
  88043. var o = Zu.getMarkerModelFromSeries(a, "markArea");
  88044. if (o) {
  88045. var s = o.getData();
  88046. s.each(function(l) {
  88047. var u = Ce(DY, function(f) {
  88048. return IY(s, l, f, a, i);
  88049. });
  88050. s.setItemLayout(l, u);
  88051. var c = s.getItemGraphicEl(l);
  88052. c.setShape("points", u);
  88053. });
  88054. }
  88055. }, this);
  88056. }, e.prototype.renderSeries = function(n, r, i, a) {
  88057. var o = n.coordinateSystem, s = n.id, l = n.getData(), u = this.markerGroupMap, c = u.get(s) || u.set(s, {
  88058. group: new ct()
  88059. });
  88060. this.group.add(c.group), this.markKeep(c);
  88061. var f = Wct(o, n, r);
  88062. r.setData(f), f.each(function(d) {
  88063. var h = Ce(DY, function(P) {
  88064. return IY(f, d, P, n, a);
  88065. }), p = o.getAxis("x").scale, v = o.getAxis("y").scale, g = p.getExtent(), m = v.getExtent(), y = [p.parse(f.get("x0", d)), p.parse(f.get("x1", d))], _ = [v.parse(f.get("y0", d)), v.parse(f.get("y1", d))];
  88066. ao(y), ao(_);
  88067. var O = !(g[0] > y[1] || g[1] < y[0] || m[0] > _[1] || m[1] < _[0]), S = !O;
  88068. f.setItemLayout(d, {
  88069. points: h,
  88070. allClipped: S
  88071. });
  88072. var x = f.getItemModel(d).getModel("itemStyle").getItemStyle(), C = v1(l, "color");
  88073. x.fill || (x.fill = C, Ve(x.fill) && (x.fill = Gb(x.fill, 0.4))), x.stroke || (x.stroke = C), f.setItemVisual(d, "style", x);
  88074. }), f.diff(nx(c).data).add(function(d) {
  88075. var h = f.getItemLayout(d);
  88076. if (!h.allClipped) {
  88077. var p = new pa({
  88078. shape: {
  88079. points: h.points
  88080. }
  88081. });
  88082. f.setItemGraphicEl(d, p), c.group.add(p);
  88083. }
  88084. }).update(function(d, h) {
  88085. var p = nx(c).data.getItemGraphicEl(h), v = f.getItemLayout(d);
  88086. v.allClipped ? p && c.group.remove(p) : (p ? tn(p, {
  88087. shape: {
  88088. points: v.points
  88089. }
  88090. }, r, d) : p = new pa({
  88091. shape: {
  88092. points: v.points
  88093. }
  88094. }), f.setItemGraphicEl(d, p), c.group.add(p));
  88095. }).remove(function(d) {
  88096. var h = nx(c).data.getItemGraphicEl(d);
  88097. c.group.remove(h);
  88098. }).execute(), f.eachItemGraphicEl(function(d, h) {
  88099. var p = f.getItemModel(h), v = f.getItemVisual(h, "style");
  88100. d.useStyle(f.getItemVisual(h, "style")), Ei(d, ei(p), {
  88101. labelFetcher: r,
  88102. labelDataIndex: h,
  88103. defaultText: f.getName(h) || "",
  88104. inheritColor: Ve(v.fill) ? Gb(v.fill, 1) : "#000"
  88105. }), Ai(d, p), ur(d, null, null, p.get(["emphasis", "disabled"])), ft(d).dataModel = r;
  88106. }), nx(c).data = f, c.group.silent = r.get("silent") || n.get("silent");
  88107. }, e.type = "markArea", e;
  88108. }(A6)
  88109. );
  88110. function Wct(t, e, n) {
  88111. var r, i, a = ["x0", "y0", "x1", "y1"];
  88112. if (t) {
  88113. var o = Ce(t && t.dimensions, function(u) {
  88114. var c = e.getData(), f = c.getDimensionInfo(c.mapDimension(u)) || {};
  88115. return _e(_e({}, f), {
  88116. name: u,
  88117. // DON'T use ordinalMeta to parse and collect ordinal.
  88118. ordinalMeta: null
  88119. });
  88120. });
  88121. i = Ce(a, function(u, c) {
  88122. return {
  88123. name: u,
  88124. type: o[c % 2].type
  88125. };
  88126. }), r = new Wi(i, n);
  88127. } else
  88128. i = [{
  88129. name: "value",
  88130. type: "float"
  88131. }], r = new Wi(i, n);
  88132. var s = Ce(n.get("data"), vt(zct, e, t, n));
  88133. t && (s = yn(s, vt(Vct, t)));
  88134. var l = t ? function(u, c, f, d) {
  88135. var h = u.coord[Math.floor(d / 2)][d % 2];
  88136. return sf(h, i[d]);
  88137. } : function(u, c, f, d) {
  88138. return sf(u.value, i[d]);
  88139. };
  88140. return r.initData(s, null, l), r.hasItemOption = !0, r;
  88141. }
  88142. function Qct(t) {
  88143. t.registerComponentModel(Bct), t.registerComponentView(Fct), t.registerPreprocessor(function(e) {
  88144. P6(e.series, "markArea") && (e.markArea = e.markArea || {});
  88145. });
  88146. }
  88147. var Hct = function(t, e) {
  88148. if (e === "all")
  88149. return {
  88150. type: "all",
  88151. title: t.getLocaleModel().get(["legend", "selector", "all"])
  88152. };
  88153. if (e === "inverse")
  88154. return {
  88155. type: "inverse",
  88156. title: t.getLocaleModel().get(["legend", "selector", "inverse"])
  88157. };
  88158. }, kL = (
  88159. /** @class */
  88160. function(t) {
  88161. le(e, t);
  88162. function e() {
  88163. var n = t !== null && t.apply(this, arguments) || this;
  88164. return n.type = e.type, n.layoutMode = {
  88165. type: "box",
  88166. // legend.width/height are maxWidth/maxHeight actually,
  88167. // whereas real width/height is calculated by its content.
  88168. // (Setting {left: 10, right: 10} does not make sense).
  88169. // So consider the case:
  88170. // `setOption({legend: {left: 10});`
  88171. // then `setOption({legend: {right: 10});`
  88172. // The previous `left` should be cleared by setting `ignoreSize`.
  88173. ignoreSize: !0
  88174. }, n;
  88175. }
  88176. return e.prototype.init = function(n, r, i) {
  88177. this.mergeDefaultAndTheme(n, i), n.selected = n.selected || {}, this._updateSelector(n);
  88178. }, e.prototype.mergeOption = function(n, r) {
  88179. t.prototype.mergeOption.call(this, n, r), this._updateSelector(n);
  88180. }, e.prototype._updateSelector = function(n) {
  88181. var r = n.selector, i = this.ecModel;
  88182. r === !0 && (r = n.selector = ["all", "inverse"]), Se(r) && F(r, function(a, o) {
  88183. Ve(a) && (a = {
  88184. type: a
  88185. }), r[o] = mt(a, Hct(i, a.type));
  88186. });
  88187. }, e.prototype.optionUpdated = function() {
  88188. this._updateData(this.ecModel);
  88189. var n = this._data;
  88190. if (n[0] && this.get("selectedMode") === "single") {
  88191. for (var r = !1, i = 0; i < n.length; i++) {
  88192. var a = n[i].get("name");
  88193. if (this.isSelected(a)) {
  88194. this.select(a), r = !0;
  88195. break;
  88196. }
  88197. }
  88198. !r && this.select(n[0].get("name"));
  88199. }
  88200. }, e.prototype._updateData = function(n) {
  88201. var r = [], i = [];
  88202. n.eachRawSeries(function(l) {
  88203. var u = l.name;
  88204. i.push(u);
  88205. var c;
  88206. if (l.legendVisualProvider) {
  88207. var f = l.legendVisualProvider, d = f.getAllNames();
  88208. n.isSeriesFiltered(l) || (i = i.concat(d)), d.length ? r = r.concat(d) : c = !0;
  88209. } else
  88210. c = !0;
  88211. c && A5(l) && r.push(l.name);
  88212. }), this._availableNames = i;
  88213. var a = this.get("data") || r, o = Ze(), s = Ce(a, function(l) {
  88214. return (Ve(l) || Kt(l)) && (l = {
  88215. name: l
  88216. }), o.get(l.name) ? null : (o.set(l.name, !0), new wn(l, this, this.ecModel));
  88217. }, this);
  88218. this._data = yn(s, function(l) {
  88219. return !!l;
  88220. });
  88221. }, e.prototype.getData = function() {
  88222. return this._data;
  88223. }, e.prototype.select = function(n) {
  88224. var r = this.option.selected, i = this.get("selectedMode");
  88225. if (i === "single") {
  88226. var a = this._data;
  88227. F(a, function(o) {
  88228. r[o.get("name")] = !1;
  88229. });
  88230. }
  88231. r[n] = !0;
  88232. }, e.prototype.unSelect = function(n) {
  88233. this.get("selectedMode") !== "single" && (this.option.selected[n] = !1);
  88234. }, e.prototype.toggleSelected = function(n) {
  88235. var r = this.option.selected;
  88236. r.hasOwnProperty(n) || (r[n] = !0), this[r[n] ? "unSelect" : "select"](n);
  88237. }, e.prototype.allSelect = function() {
  88238. var n = this._data, r = this.option.selected;
  88239. F(n, function(i) {
  88240. r[i.get("name", !0)] = !0;
  88241. });
  88242. }, e.prototype.inverseSelect = function() {
  88243. var n = this._data, r = this.option.selected;
  88244. F(n, function(i) {
  88245. var a = i.get("name", !0);
  88246. r.hasOwnProperty(a) || (r[a] = !0), r[a] = !r[a];
  88247. });
  88248. }, e.prototype.isSelected = function(n) {
  88249. var r = this.option.selected;
  88250. return !(r.hasOwnProperty(n) && !r[n]) && St(this._availableNames, n) >= 0;
  88251. }, e.prototype.getOrient = function() {
  88252. return this.get("orient") === "vertical" ? {
  88253. index: 1,
  88254. name: "vertical"
  88255. } : {
  88256. index: 0,
  88257. name: "horizontal"
  88258. };
  88259. }, e.type = "legend.plain", e.dependencies = ["series"], e.defaultOption = {
  88260. // zlevel: 0,
  88261. z: 4,
  88262. show: !0,
  88263. orient: "horizontal",
  88264. left: "center",
  88265. // right: 'center',
  88266. top: 0,
  88267. // bottom: null,
  88268. align: "auto",
  88269. backgroundColor: "rgba(0,0,0,0)",
  88270. borderColor: "#ccc",
  88271. borderRadius: 0,
  88272. borderWidth: 0,
  88273. padding: 5,
  88274. itemGap: 10,
  88275. itemWidth: 25,
  88276. itemHeight: 14,
  88277. symbolRotate: "inherit",
  88278. symbolKeepAspect: !0,
  88279. inactiveColor: "#ccc",
  88280. inactiveBorderColor: "#ccc",
  88281. inactiveBorderWidth: "auto",
  88282. itemStyle: {
  88283. color: "inherit",
  88284. opacity: "inherit",
  88285. borderColor: "inherit",
  88286. borderWidth: "auto",
  88287. borderCap: "inherit",
  88288. borderJoin: "inherit",
  88289. borderDashOffset: "inherit",
  88290. borderMiterLimit: "inherit"
  88291. },
  88292. lineStyle: {
  88293. width: "auto",
  88294. color: "inherit",
  88295. inactiveColor: "#ccc",
  88296. inactiveWidth: 2,
  88297. opacity: "inherit",
  88298. type: "inherit",
  88299. cap: "inherit",
  88300. join: "inherit",
  88301. dashOffset: "inherit",
  88302. miterLimit: "inherit"
  88303. },
  88304. textStyle: {
  88305. color: "#333"
  88306. },
  88307. selectedMode: !0,
  88308. selector: !1,
  88309. selectorLabel: {
  88310. show: !0,
  88311. borderRadius: 10,
  88312. padding: [3, 5, 3, 5],
  88313. fontSize: 12,
  88314. fontFamily: "sans-serif",
  88315. color: "#666",
  88316. borderWidth: 1,
  88317. borderColor: "#666"
  88318. },
  88319. emphasis: {
  88320. selectorLabel: {
  88321. show: !0,
  88322. color: "#eee",
  88323. backgroundColor: "#666"
  88324. }
  88325. },
  88326. selectorPosition: "auto",
  88327. selectorItemGap: 7,
  88328. selectorButtonGap: 10,
  88329. tooltip: {
  88330. show: !1
  88331. }
  88332. }, e;
  88333. }(At)
  88334. ), fv = vt, LL = F, rx = ct, Che = (
  88335. /** @class */
  88336. function(t) {
  88337. le(e, t);
  88338. function e() {
  88339. var n = t !== null && t.apply(this, arguments) || this;
  88340. return n.type = e.type, n.newlineDisabled = !1, n;
  88341. }
  88342. return e.prototype.init = function() {
  88343. this.group.add(this._contentGroup = new rx()), this.group.add(this._selectorGroup = new rx()), this._isFirstRender = !0;
  88344. }, e.prototype.getContentGroup = function() {
  88345. return this._contentGroup;
  88346. }, e.prototype.getSelectorGroup = function() {
  88347. return this._selectorGroup;
  88348. }, e.prototype.render = function(n, r, i) {
  88349. var a = this._isFirstRender;
  88350. if (this._isFirstRender = !1, this.resetInner(), !!n.get("show", !0)) {
  88351. var o = n.get("align"), s = n.get("orient");
  88352. (!o || o === "auto") && (o = n.get("left") === "right" && s === "vertical" ? "right" : "left");
  88353. var l = n.get("selector", !0), u = n.get("selectorPosition", !0);
  88354. l && (!u || u === "auto") && (u = s === "horizontal" ? "end" : "start"), this.renderInner(o, n, r, i, l, s, u);
  88355. var c = n.getBoxLayoutParams(), f = {
  88356. width: i.getWidth(),
  88357. height: i.getHeight()
  88358. }, d = n.get("padding"), h = Mr(c, f, d), p = this.layoutInner(n, o, h, a, l, u), v = Mr(it({
  88359. width: p.width,
  88360. height: p.height
  88361. }, c), f, d);
  88362. this.group.x = v.x - p.x, this.group.y = v.y - p.y, this.group.markRedraw(), this.group.add(this._backgroundEl = hhe(p, n));
  88363. }
  88364. }, e.prototype.resetInner = function() {
  88365. this.getContentGroup().removeAll(), this._backgroundEl && this.group.remove(this._backgroundEl), this.getSelectorGroup().removeAll();
  88366. }, e.prototype.renderInner = function(n, r, i, a, o, s, l) {
  88367. var u = this.getContentGroup(), c = Ze(), f = r.get("selectedMode"), d = [];
  88368. i.eachRawSeries(function(h) {
  88369. !h.get("legendHoverLink") && d.push(h.id);
  88370. }), LL(r.getData(), function(h, p) {
  88371. var v = h.get("name");
  88372. if (!this.newlineDisabled && (v === "" || v === `
  88373. `)) {
  88374. var g = new rx();
  88375. g.newline = !0, u.add(g);
  88376. return;
  88377. }
  88378. var m = i.getSeriesByName(v)[0];
  88379. if (!c.get(v)) {
  88380. if (m) {
  88381. var y = m.getData(), _ = y.getVisual("legendLineStyle") || {}, O = y.getVisual("legendIcon"), S = y.getVisual("style"), x = this._createItem(m, v, p, h, r, n, _, S, O, f, a);
  88382. x.on("click", fv(RY, v, null, a, d)).on("mouseover", fv(NL, m.name, null, a, d)).on("mouseout", fv(BL, m.name, null, a, d)), i.ssr && x.eachChild(function(C) {
  88383. var P = ft(C);
  88384. P.seriesIndex = m.seriesIndex, P.dataIndex = p, P.ssrType = "legend";
  88385. }), c.set(v, !0);
  88386. } else
  88387. i.eachRawSeries(function(C) {
  88388. if (!c.get(v) && C.legendVisualProvider) {
  88389. var P = C.legendVisualProvider;
  88390. if (!P.containName(v))
  88391. return;
  88392. var $ = P.indexOfName(v), T = P.getItemVisual($, "style"), E = P.getItemVisual($, "legendIcon"), M = oa(T.fill);
  88393. M && M[3] === 0 && (M[3] = 0.2, T = _e(_e({}, T), {
  88394. fill: Bs(M, "rgba")
  88395. }));
  88396. var R = this._createItem(C, v, p, h, r, n, {}, T, E, f, a);
  88397. R.on("click", fv(RY, null, v, a, d)).on("mouseover", fv(NL, null, v, a, d)).on("mouseout", fv(BL, null, v, a, d)), i.ssr && R.eachChild(function(N) {
  88398. var I = ft(N);
  88399. I.seriesIndex = C.seriesIndex, I.dataIndex = p, I.ssrType = "legend";
  88400. }), c.set(v, !0);
  88401. }
  88402. }, this);
  88403. process.env.NODE_ENV !== "production" && (c.get(v) || console.warn(v + " series not exists. Legend data should be same with series name or data name."));
  88404. }
  88405. }, this), o && this._createSelector(o, r, a, s, l);
  88406. }, e.prototype._createSelector = function(n, r, i, a, o) {
  88407. var s = this.getSelectorGroup();
  88408. LL(n, function(u) {
  88409. var c = u.type, f = new jt({
  88410. style: {
  88411. x: 0,
  88412. y: 0,
  88413. align: "center",
  88414. verticalAlign: "middle"
  88415. },
  88416. onclick: function() {
  88417. i.dispatchAction({
  88418. type: c === "all" ? "legendAllSelect" : "legendInverseSelect"
  88419. });
  88420. }
  88421. });
  88422. s.add(f);
  88423. var d = r.getModel("selectorLabel"), h = r.getModel(["emphasis", "selectorLabel"]);
  88424. Ei(f, {
  88425. normal: d,
  88426. emphasis: h
  88427. }, {
  88428. defaultText: u.title
  88429. }), af(f);
  88430. });
  88431. }, e.prototype._createItem = function(n, r, i, a, o, s, l, u, c, f, d) {
  88432. var h = n.visualDrawType, p = o.get("itemWidth"), v = o.get("itemHeight"), g = o.isSelected(r), m = a.get("symbolRotate"), y = a.get("symbolKeepAspect"), _ = a.get("icon");
  88433. c = _ || c || "roundRect";
  88434. var O = Gct(c, a, l, u, h, g, d), S = new rx(), x = a.getModel("textStyle");
  88435. if (qe(n.getLegendIcon) && (!_ || _ === "inherit"))
  88436. S.add(n.getLegendIcon({
  88437. itemWidth: p,
  88438. itemHeight: v,
  88439. icon: c,
  88440. iconRotate: m,
  88441. itemStyle: O.itemStyle,
  88442. lineStyle: O.lineStyle,
  88443. symbolKeepAspect: y
  88444. }));
  88445. else {
  88446. var C = _ === "inherit" && n.getData().getVisual("symbol") ? m === "inherit" ? n.getData().getVisual("symbolRotate") : m : 0;
  88447. S.add(jct({
  88448. itemWidth: p,
  88449. itemHeight: v,
  88450. icon: c,
  88451. iconRotate: C,
  88452. itemStyle: O.itemStyle,
  88453. lineStyle: O.lineStyle,
  88454. symbolKeepAspect: y
  88455. }));
  88456. }
  88457. var P = s === "left" ? p + 5 : -5, $ = s, T = o.get("formatter"), E = r;
  88458. Ve(T) && T ? E = T.replace("{name}", r ?? "") : qe(T) && (E = T(r));
  88459. var M = g ? x.getTextColor() : a.get("inactiveColor");
  88460. S.add(new jt({
  88461. style: Mn(x, {
  88462. text: E,
  88463. x: P,
  88464. y: v / 2,
  88465. fill: M,
  88466. align: $,
  88467. verticalAlign: "middle"
  88468. }, {
  88469. inheritColor: M
  88470. })
  88471. }));
  88472. var R = new Zt({
  88473. shape: S.getBoundingRect(),
  88474. style: {
  88475. // Cannot use 'invisible' because SVG SSR will miss the node
  88476. fill: "transparent"
  88477. }
  88478. }), N = a.getModel("tooltip");
  88479. return N.get("show") && xm({
  88480. el: R,
  88481. componentModel: o,
  88482. itemName: r,
  88483. itemTooltipOption: N.option
  88484. }), S.add(R), S.eachChild(function(I) {
  88485. I.silent = !0;
  88486. }), R.silent = !f, this.getContentGroup().add(S), af(S), S.__legendDataIndex = i, S;
  88487. }, e.prototype.layoutInner = function(n, r, i, a, o, s) {
  88488. var l = this.getContentGroup(), u = this.getSelectorGroup();
  88489. Th(n.get("orient"), l, n.get("itemGap"), i.width, i.height);
  88490. var c = l.getBoundingRect(), f = [-c.x, -c.y];
  88491. if (u.markRedraw(), l.markRedraw(), o) {
  88492. Th(
  88493. // Buttons in selectorGroup always layout horizontally
  88494. "horizontal",
  88495. u,
  88496. n.get("selectorItemGap", !0)
  88497. );
  88498. var d = u.getBoundingRect(), h = [-d.x, -d.y], p = n.get("selectorButtonGap", !0), v = n.getOrient().index, g = v === 0 ? "width" : "height", m = v === 0 ? "height" : "width", y = v === 0 ? "y" : "x";
  88499. s === "end" ? h[v] += c[g] + p : f[v] += d[g] + p, h[1 - v] += c[m] / 2 - d[m] / 2, u.x = h[0], u.y = h[1], l.x = f[0], l.y = f[1];
  88500. var _ = {
  88501. x: 0,
  88502. y: 0
  88503. };
  88504. return _[g] = c[g] + p + d[g], _[m] = Math.max(c[m], d[m]), _[y] = Math.min(0, d[y] + h[1 - v]), _;
  88505. } else
  88506. return l.x = f[0], l.y = f[1], this.group.getBoundingRect();
  88507. }, e.prototype.remove = function() {
  88508. this.getContentGroup().removeAll(), this._isFirstRender = !0;
  88509. }, e.type = "legend.plain", e;
  88510. }(Ln)
  88511. );
  88512. function Gct(t, e, n, r, i, a, o) {
  88513. function s(g, m) {
  88514. g.lineWidth === "auto" && (g.lineWidth = m.lineWidth > 0 ? 2 : 0), LL(g, function(y, _) {
  88515. g[_] === "inherit" && (g[_] = m[_]);
  88516. });
  88517. }
  88518. var l = e.getModel("itemStyle"), u = l.getItemStyle(), c = t.lastIndexOf("empty", 0) === 0 ? "fill" : "stroke", f = l.getShallow("decal");
  88519. u.decal = !f || f === "inherit" ? r.decal : Gg(f, o), u.fill === "inherit" && (u.fill = r[i]), u.stroke === "inherit" && (u.stroke = r[c]), u.opacity === "inherit" && (u.opacity = (i === "fill" ? r : n).opacity), s(u, r);
  88520. var d = e.getModel("lineStyle"), h = d.getLineStyle();
  88521. if (s(h, n), u.fill === "auto" && (u.fill = r.fill), u.stroke === "auto" && (u.stroke = r.fill), h.stroke === "auto" && (h.stroke = r.fill), !a) {
  88522. var p = e.get("inactiveBorderWidth"), v = u[c];
  88523. u.lineWidth = p === "auto" ? r.lineWidth > 0 && v ? 2 : 0 : u.lineWidth, u.fill = e.get("inactiveColor"), u.stroke = e.get("inactiveBorderColor"), h.stroke = d.get("inactiveColor"), h.lineWidth = d.get("inactiveWidth");
  88524. }
  88525. return {
  88526. itemStyle: u,
  88527. lineStyle: h
  88528. };
  88529. }
  88530. function jct(t) {
  88531. var e = t.icon || "roundRect", n = wr(e, 0, 0, t.itemWidth, t.itemHeight, t.itemStyle.fill, t.symbolKeepAspect);
  88532. return n.setStyle(t.itemStyle), n.rotation = (t.iconRotate || 0) * Math.PI / 180, n.setOrigin([t.itemWidth / 2, t.itemHeight / 2]), e.indexOf("empty") > -1 && (n.style.stroke = n.style.fill, n.style.fill = "#fff", n.style.lineWidth = 2), n;
  88533. }
  88534. function RY(t, e, n, r) {
  88535. BL(t, e, n, r), n.dispatchAction({
  88536. type: "legendToggleSelect",
  88537. name: t ?? e
  88538. }), NL(t, e, n, r);
  88539. }
  88540. function The(t) {
  88541. for (var e = t.getZr().storage.getDisplayList(), n, r = 0, i = e.length; r < i && !(n = e[r].states.emphasis); )
  88542. r++;
  88543. return n && n.hoverLayer;
  88544. }
  88545. function NL(t, e, n, r) {
  88546. The(n) || n.dispatchAction({
  88547. type: "highlight",
  88548. seriesName: t,
  88549. name: e,
  88550. excludeSeriesId: r
  88551. });
  88552. }
  88553. function BL(t, e, n, r) {
  88554. The(n) || n.dispatchAction({
  88555. type: "downplay",
  88556. seriesName: t,
  88557. name: e,
  88558. excludeSeriesId: r
  88559. });
  88560. }
  88561. function Zct(t) {
  88562. var e = t.findComponents({
  88563. mainType: "legend"
  88564. });
  88565. e && e.length && t.filterSeries(function(n) {
  88566. for (var r = 0; r < e.length; r++)
  88567. if (!e[r].isSelected(n.name))
  88568. return !1;
  88569. return !0;
  88570. });
  88571. }
  88572. function Y0(t, e, n) {
  88573. var r = {}, i = t === "toggleSelected", a;
  88574. return n.eachComponent("legend", function(o) {
  88575. i && a != null ? o[a ? "select" : "unSelect"](e.name) : t === "allSelect" || t === "inverseSelect" ? o[t]() : (o[t](e.name), a = o.isSelected(e.name));
  88576. var s = o.getData();
  88577. F(s, function(l) {
  88578. var u = l.get("name");
  88579. if (!(u === `
  88580. ` || u === "")) {
  88581. var c = o.isSelected(u);
  88582. r.hasOwnProperty(u) ? r[u] = r[u] && c : r[u] = c;
  88583. }
  88584. });
  88585. }), t === "allSelect" || t === "inverseSelect" ? {
  88586. selected: r
  88587. } : {
  88588. name: e.name,
  88589. selected: r
  88590. };
  88591. }
  88592. function Uct(t) {
  88593. t.registerAction("legendToggleSelect", "legendselectchanged", vt(Y0, "toggleSelected")), t.registerAction("legendAllSelect", "legendselectall", vt(Y0, "allSelect")), t.registerAction("legendInverseSelect", "legendinverseselect", vt(Y0, "inverseSelect")), t.registerAction("legendSelect", "legendselected", vt(Y0, "select")), t.registerAction("legendUnSelect", "legendunselected", vt(Y0, "unSelect"));
  88594. }
  88595. function Phe(t) {
  88596. t.registerComponentModel(kL), t.registerComponentView(Che), t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER, Zct), t.registerSubTypeDefaulter("legend", function() {
  88597. return "plain";
  88598. }), Uct(t);
  88599. }
  88600. var Xct = (
  88601. /** @class */
  88602. function(t) {
  88603. le(e, t);
  88604. function e() {
  88605. var n = t !== null && t.apply(this, arguments) || this;
  88606. return n.type = e.type, n;
  88607. }
  88608. return e.prototype.setScrollDataIndex = function(n) {
  88609. this.option.scrollDataIndex = n;
  88610. }, e.prototype.init = function(n, r, i) {
  88611. var a = Tm(n);
  88612. t.prototype.init.call(this, n, r, i), kY(this, n, a);
  88613. }, e.prototype.mergeOption = function(n, r) {
  88614. t.prototype.mergeOption.call(this, n, r), kY(this, this.option, n);
  88615. }, e.type = "legend.scroll", e.defaultOption = Bf(kL.defaultOption, {
  88616. scrollDataIndex: 0,
  88617. pageButtonItemGap: 5,
  88618. pageButtonGap: null,
  88619. pageButtonPosition: "end",
  88620. pageFormatter: "{current}/{total}",
  88621. pageIcons: {
  88622. horizontal: ["M0,0L12,-10L12,10z", "M0,0L-12,-10L-12,10z"],
  88623. vertical: ["M0,0L20,0L10,-20z", "M0,0L20,0L10,20z"]
  88624. },
  88625. pageIconColor: "#2f4554",
  88626. pageIconInactiveColor: "#aaa",
  88627. pageIconSize: 15,
  88628. pageTextStyle: {
  88629. color: "#333"
  88630. },
  88631. animationDurationUpdate: 800
  88632. }), e;
  88633. }(kL)
  88634. );
  88635. function kY(t, e, n) {
  88636. var r = t.getOrient(), i = [1, 1];
  88637. i[r.index] = 0, Of(e, n, {
  88638. type: "box",
  88639. ignoreSize: !!i
  88640. });
  88641. }
  88642. var LY = ct, FI = ["width", "height"], WI = ["x", "y"], Yct = (
  88643. /** @class */
  88644. function(t) {
  88645. le(e, t);
  88646. function e() {
  88647. var n = t !== null && t.apply(this, arguments) || this;
  88648. return n.type = e.type, n.newlineDisabled = !0, n._currentIndex = 0, n;
  88649. }
  88650. return e.prototype.init = function() {
  88651. t.prototype.init.call(this), this.group.add(this._containerGroup = new LY()), this._containerGroup.add(this.getContentGroup()), this.group.add(this._controllerGroup = new LY());
  88652. }, e.prototype.resetInner = function() {
  88653. t.prototype.resetInner.call(this), this._controllerGroup.removeAll(), this._containerGroup.removeClipPath(), this._containerGroup.__rectSize = null;
  88654. }, e.prototype.renderInner = function(n, r, i, a, o, s, l) {
  88655. var u = this;
  88656. t.prototype.renderInner.call(this, n, r, i, a, o, s, l);
  88657. var c = this._controllerGroup, f = r.get("pageIconSize", !0), d = Se(f) ? f : [f, f];
  88658. p("pagePrev", 0);
  88659. var h = r.getModel("pageTextStyle");
  88660. c.add(new jt({
  88661. name: "pageText",
  88662. style: {
  88663. // Placeholder to calculate a proper layout.
  88664. text: "xx/xx",
  88665. fill: h.getTextColor(),
  88666. font: h.getFont(),
  88667. verticalAlign: "middle",
  88668. align: "center"
  88669. },
  88670. silent: !0
  88671. })), p("pageNext", 1);
  88672. function p(v, g) {
  88673. var m = v + "DataIndex", y = Sm(r.get("pageIcons", !0)[r.getOrient().name][g], {
  88674. // Buttons will be created in each render, so we do not need
  88675. // to worry about avoiding using legendModel kept in scope.
  88676. onclick: We(u._pageGo, u, m, r, a)
  88677. }, {
  88678. x: -d[0] / 2,
  88679. y: -d[1] / 2,
  88680. width: d[0],
  88681. height: d[1]
  88682. });
  88683. y.name = v, c.add(y);
  88684. }
  88685. }, e.prototype.layoutInner = function(n, r, i, a, o, s) {
  88686. var l = this.getSelectorGroup(), u = n.getOrient().index, c = FI[u], f = WI[u], d = FI[1 - u], h = WI[1 - u];
  88687. o && Th(
  88688. // Buttons in selectorGroup always layout horizontally
  88689. "horizontal",
  88690. l,
  88691. n.get("selectorItemGap", !0)
  88692. );
  88693. var p = n.get("selectorButtonGap", !0), v = l.getBoundingRect(), g = [-v.x, -v.y], m = ot(i);
  88694. o && (m[c] = i[c] - v[c] - p);
  88695. var y = this._layoutContentAndController(n, a, m, u, c, d, h, f);
  88696. if (o) {
  88697. if (s === "end")
  88698. g[u] += y[c] + p;
  88699. else {
  88700. var _ = v[c] + p;
  88701. g[u] -= _, y[f] -= _;
  88702. }
  88703. y[c] += v[c] + p, g[1 - u] += y[h] + y[d] / 2 - v[d] / 2, y[d] = Math.max(y[d], v[d]), y[h] = Math.min(y[h], v[h] + g[1 - u]), l.x = g[0], l.y = g[1], l.markRedraw();
  88704. }
  88705. return y;
  88706. }, e.prototype._layoutContentAndController = function(n, r, i, a, o, s, l, u) {
  88707. var c = this.getContentGroup(), f = this._containerGroup, d = this._controllerGroup;
  88708. Th(n.get("orient"), c, n.get("itemGap"), a ? i.width : null, a ? null : i.height), Th(
  88709. // Buttons in controller are layout always horizontally.
  88710. "horizontal",
  88711. d,
  88712. n.get("pageButtonItemGap", !0)
  88713. );
  88714. var h = c.getBoundingRect(), p = d.getBoundingRect(), v = this._showController = h[o] > i[o], g = [-h.x, -h.y];
  88715. r || (g[a] = c[u]);
  88716. var m = [0, 0], y = [-p.x, -p.y], _ = dt(n.get("pageButtonGap", !0), n.get("itemGap", !0));
  88717. if (v) {
  88718. var O = n.get("pageButtonPosition", !0);
  88719. O === "end" ? y[a] += i[o] - p[o] : m[a] += p[o] + _;
  88720. }
  88721. y[1 - a] += h[s] / 2 - p[s] / 2, c.setPosition(g), f.setPosition(m), d.setPosition(y);
  88722. var S = {
  88723. x: 0,
  88724. y: 0
  88725. };
  88726. if (S[o] = v ? i[o] : h[o], S[s] = Math.max(h[s], p[s]), S[l] = Math.min(0, p[l] + y[1 - a]), f.__rectSize = i[o], v) {
  88727. var x = {
  88728. x: 0,
  88729. y: 0
  88730. };
  88731. x[o] = Math.max(i[o] - p[o] - _, 0), x[s] = S[s], f.setClipPath(new Zt({
  88732. shape: x
  88733. })), f.__rectSize = x[o];
  88734. } else
  88735. d.eachChild(function(P) {
  88736. P.attr({
  88737. invisible: !0,
  88738. silent: !0
  88739. });
  88740. });
  88741. var C = this._getPageInfo(n);
  88742. return C.pageIndex != null && tn(
  88743. c,
  88744. {
  88745. x: C.contentPosition[0],
  88746. y: C.contentPosition[1]
  88747. },
  88748. // When switch from "show controller" to "not show controller", view should be
  88749. // updated immediately without animation, otherwise causes weird effect.
  88750. v ? n : null
  88751. ), this._updatePageInfoView(n, C), S;
  88752. }, e.prototype._pageGo = function(n, r, i) {
  88753. var a = this._getPageInfo(r)[n];
  88754. a != null && i.dispatchAction({
  88755. type: "legendScroll",
  88756. scrollDataIndex: a,
  88757. legendId: r.id
  88758. });
  88759. }, e.prototype._updatePageInfoView = function(n, r) {
  88760. var i = this._controllerGroup;
  88761. F(["pagePrev", "pageNext"], function(c) {
  88762. var f = c + "DataIndex", d = r[f] != null, h = i.childOfName(c);
  88763. h && (h.setStyle("fill", d ? n.get("pageIconColor", !0) : n.get("pageIconInactiveColor", !0)), h.cursor = d ? "pointer" : "default");
  88764. });
  88765. var a = i.childOfName("pageText"), o = n.get("pageFormatter"), s = r.pageIndex, l = s != null ? s + 1 : 0, u = r.pageCount;
  88766. a && o && a.setStyle("text", Ve(o) ? o.replace("{current}", l == null ? "" : l + "").replace("{total}", u == null ? "" : u + "") : o({
  88767. current: l,
  88768. total: u
  88769. }));
  88770. }, e.prototype._getPageInfo = function(n) {
  88771. var r = n.get("scrollDataIndex", !0), i = this.getContentGroup(), a = this._containerGroup.__rectSize, o = n.getOrient().index, s = FI[o], l = WI[o], u = this._findTargetItemIndex(r), c = i.children(), f = c[u], d = c.length, h = d ? 1 : 0, p = {
  88772. contentPosition: [i.x, i.y],
  88773. pageCount: h,
  88774. pageIndex: h - 1,
  88775. pagePrevDataIndex: null,
  88776. pageNextDataIndex: null
  88777. };
  88778. if (!f)
  88779. return p;
  88780. var v = O(f);
  88781. p.contentPosition[o] = -v.s;
  88782. for (var g = u + 1, m = v, y = v, _ = null; g <= d; ++g)
  88783. _ = O(c[g]), // Half of the last item is out of the window.
  88784. (!_ && y.e > m.s + a || _ && !S(_, m.s)) && (y.i > m.i ? m = y : m = _, m && (p.pageNextDataIndex == null && (p.pageNextDataIndex = m.i), ++p.pageCount)), y = _;
  88785. for (var g = u - 1, m = v, y = v, _ = null; g >= -1; --g)
  88786. _ = O(c[g]), // If the the end item does not intersect with the window started
  88787. // from the current item, a page can be settled.
  88788. (!_ || !S(y, _.s)) && m.i < y.i && (y = m, p.pagePrevDataIndex == null && (p.pagePrevDataIndex = m.i), ++p.pageCount, ++p.pageIndex), m = _;
  88789. return p;
  88790. function O(x) {
  88791. if (x) {
  88792. var C = x.getBoundingRect(), P = C[l] + x[l];
  88793. return {
  88794. s: P,
  88795. e: P + C[s],
  88796. i: x.__legendDataIndex
  88797. };
  88798. }
  88799. }
  88800. function S(x, C) {
  88801. return x.e >= C && x.s <= C + a;
  88802. }
  88803. }, e.prototype._findTargetItemIndex = function(n) {
  88804. if (!this._showController)
  88805. return 0;
  88806. var r, i = this.getContentGroup(), a;
  88807. return i.eachChild(function(o, s) {
  88808. var l = o.__legendDataIndex;
  88809. a == null && l != null && (a = s), l === n && (r = s);
  88810. }), r ?? a;
  88811. }, e.type = "legend.scroll", e;
  88812. }(Che)
  88813. );
  88814. function qct(t) {
  88815. t.registerAction("legendScroll", "legendscroll", function(e, n) {
  88816. var r = e.scrollDataIndex;
  88817. r != null && n.eachComponent({
  88818. mainType: "legend",
  88819. subType: "scroll",
  88820. query: e
  88821. }, function(i) {
  88822. i.setScrollDataIndex(r);
  88823. });
  88824. });
  88825. }
  88826. function Kct(t) {
  88827. Mt(Phe), t.registerComponentModel(Xct), t.registerComponentView(Yct), qct(t);
  88828. }
  88829. function Jct(t) {
  88830. Mt(Phe), Mt(Kct);
  88831. }
  88832. var eft = (
  88833. /** @class */
  88834. function(t) {
  88835. le(e, t);
  88836. function e() {
  88837. var n = t !== null && t.apply(this, arguments) || this;
  88838. return n.type = e.type, n;
  88839. }
  88840. return e.type = "dataZoom.inside", e.defaultOption = Bf(d_.defaultOption, {
  88841. disabled: !1,
  88842. zoomLock: !1,
  88843. zoomOnMouseWheel: !0,
  88844. moveOnMouseMove: !0,
  88845. moveOnMouseWheel: !1,
  88846. preventDefaultMouseMove: !0
  88847. }), e;
  88848. }(d_)
  88849. ), E6 = Ut();
  88850. function tft(t, e, n) {
  88851. E6(t).coordSysRecordMap.each(function(r) {
  88852. var i = r.dataZoomInfoMap.get(e.uid);
  88853. i && (i.getRange = n);
  88854. });
  88855. }
  88856. function nft(t, e) {
  88857. for (var n = E6(t).coordSysRecordMap, r = n.keys(), i = 0; i < r.length; i++) {
  88858. var a = r[i], o = n.get(a), s = o.dataZoomInfoMap;
  88859. if (s) {
  88860. var l = e.uid, u = s.get(l);
  88861. u && (s.removeKey(l), s.keys().length || $he(n, o));
  88862. }
  88863. }
  88864. }
  88865. function $he(t, e) {
  88866. if (e) {
  88867. t.removeKey(e.model.uid);
  88868. var n = e.controller;
  88869. n && n.dispose();
  88870. }
  88871. }
  88872. function rft(t, e) {
  88873. var n = {
  88874. model: e,
  88875. containsPoint: vt(aft, e),
  88876. dispatchAction: vt(ift, t),
  88877. dataZoomInfoMap: null,
  88878. controller: null
  88879. }, r = n.controller = new x1(t.getZr());
  88880. return F(["pan", "zoom", "scrollMove"], function(i) {
  88881. r.on(i, function(a) {
  88882. var o = [];
  88883. n.dataZoomInfoMap.each(function(s) {
  88884. if (a.isAvailableBehavior(s.model.option)) {
  88885. var l = (s.getRange || {})[i], u = l && l(s.dzReferCoordSysInfo, n.model.mainType, n.controller, a);
  88886. !s.model.get("disabled", !0) && u && o.push({
  88887. dataZoomId: s.model.id,
  88888. start: u[0],
  88889. end: u[1]
  88890. });
  88891. }
  88892. }), o.length && n.dispatchAction(o);
  88893. });
  88894. }), n;
  88895. }
  88896. function ift(t, e) {
  88897. t.isDisposed() || t.dispatchAction({
  88898. type: "dataZoom",
  88899. animation: {
  88900. easing: "cubicOut",
  88901. duration: 100
  88902. },
  88903. batch: e
  88904. });
  88905. }
  88906. function aft(t, e, n, r) {
  88907. return t.coordinateSystem.containPoint([n, r]);
  88908. }
  88909. function oft(t) {
  88910. var e, n = "type_", r = {
  88911. type_true: 2,
  88912. type_move: 1,
  88913. type_false: 0,
  88914. type_undefined: -1
  88915. }, i = !0;
  88916. return t.each(function(a) {
  88917. var o = a.model, s = o.get("disabled", !0) ? !1 : o.get("zoomLock", !0) ? "move" : !0;
  88918. r[n + s] > r[n + e] && (e = s), i = i && o.get("preventDefaultMouseMove", !0);
  88919. }), {
  88920. controlType: e,
  88921. opt: {
  88922. // RoamController will enable all of these functionalities,
  88923. // and the final behavior is determined by its event listener
  88924. // provided by each inside zoom.
  88925. zoomOnMouseWheel: !0,
  88926. moveOnMouseMove: !0,
  88927. moveOnMouseWheel: !0,
  88928. preventDefaultMouseMove: !!i
  88929. }
  88930. };
  88931. }
  88932. function sft(t) {
  88933. t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, function(e, n) {
  88934. var r = E6(n), i = r.coordSysRecordMap || (r.coordSysRecordMap = Ze());
  88935. i.each(function(a) {
  88936. a.dataZoomInfoMap = null;
  88937. }), e.eachComponent({
  88938. mainType: "dataZoom",
  88939. subType: "inside"
  88940. }, function(a) {
  88941. var o = che(a);
  88942. F(o.infoList, function(s) {
  88943. var l = s.model.uid, u = i.get(l) || i.set(l, rft(n, s.model)), c = u.dataZoomInfoMap || (u.dataZoomInfoMap = Ze());
  88944. c.set(a.uid, {
  88945. dzReferCoordSysInfo: s,
  88946. model: a,
  88947. getRange: null
  88948. });
  88949. });
  88950. }), i.each(function(a) {
  88951. var o = a.controller, s, l = a.dataZoomInfoMap;
  88952. if (l) {
  88953. var u = l.keys()[0];
  88954. u != null && (s = l.get(u));
  88955. }
  88956. if (!s) {
  88957. $he(i, a);
  88958. return;
  88959. }
  88960. var c = oft(l);
  88961. o.enable(c.controlType, c.opt), o.setPointerChecker(a.containsPoint), Am(a, "dispatchAction", s.model.get("throttle", !0), "fixRate");
  88962. });
  88963. });
  88964. }
  88965. var lft = (
  88966. /** @class */
  88967. function(t) {
  88968. le(e, t);
  88969. function e() {
  88970. var n = t !== null && t.apply(this, arguments) || this;
  88971. return n.type = "dataZoom.inside", n;
  88972. }
  88973. return e.prototype.render = function(n, r, i) {
  88974. if (t.prototype.render.apply(this, arguments), n.noTarget()) {
  88975. this._clear();
  88976. return;
  88977. }
  88978. this.range = n.getPercentRange(), tft(i, n, {
  88979. pan: We(QI.pan, this),
  88980. zoom: We(QI.zoom, this),
  88981. scrollMove: We(QI.scrollMove, this)
  88982. });
  88983. }, e.prototype.dispose = function() {
  88984. this._clear(), t.prototype.dispose.apply(this, arguments);
  88985. }, e.prototype._clear = function() {
  88986. nft(this.api, this.dataZoomModel), this.range = null;
  88987. }, e.type = "dataZoom.inside", e;
  88988. }(O6)
  88989. ), QI = {
  88990. zoom: function(t, e, n, r) {
  88991. var i = this.range, a = i.slice(), o = t.axisModels[0];
  88992. if (o) {
  88993. var s = HI[e](null, [r.originX, r.originY], o, n, t), l = (s.signal > 0 ? s.pixelStart + s.pixelLength - s.pixel : s.pixel - s.pixelStart) / s.pixelLength * (a[1] - a[0]) + a[0], u = Math.max(1 / r.scale, 0);
  88994. a[0] = (a[0] - l) * u + l, a[1] = (a[1] - l) * u + l;
  88995. var c = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
  88996. if (_p(0, a, [0, 100], 0, c.minSpan, c.maxSpan), this.range = a, i[0] !== a[0] || i[1] !== a[1])
  88997. return a;
  88998. }
  88999. },
  89000. pan: NY(function(t, e, n, r, i, a) {
  89001. var o = HI[r]([a.oldX, a.oldY], [a.newX, a.newY], e, i, n);
  89002. return o.signal * (t[1] - t[0]) * o.pixel / o.pixelLength;
  89003. }),
  89004. scrollMove: NY(function(t, e, n, r, i, a) {
  89005. var o = HI[r]([0, 0], [a.scrollDelta, a.scrollDelta], e, i, n);
  89006. return o.signal * (t[1] - t[0]) * a.scrollDelta;
  89007. })
  89008. };
  89009. function NY(t) {
  89010. return function(e, n, r, i) {
  89011. var a = this.range, o = a.slice(), s = e.axisModels[0];
  89012. if (s) {
  89013. var l = t(o, s, e, n, r, i);
  89014. if (_p(l, o, [0, 100], "all"), this.range = o, a[0] !== o[0] || a[1] !== o[1])
  89015. return o;
  89016. }
  89017. };
  89018. }
  89019. var HI = {
  89020. grid: function(t, e, n, r, i) {
  89021. var a = n.axis, o = {}, s = i.model.coordinateSystem.getRect();
  89022. return t = t || [0, 0], a.dim === "x" ? (o.pixel = e[0] - t[0], o.pixelLength = s.width, o.pixelStart = s.x, o.signal = a.inverse ? 1 : -1) : (o.pixel = e[1] - t[1], o.pixelLength = s.height, o.pixelStart = s.y, o.signal = a.inverse ? -1 : 1), o;
  89023. },
  89024. polar: function(t, e, n, r, i) {
  89025. var a = n.axis, o = {}, s = i.model.coordinateSystem, l = s.getRadiusAxis().getExtent(), u = s.getAngleAxis().getExtent();
  89026. return t = t ? s.pointToCoord(t) : [0, 0], e = s.pointToCoord(e), n.mainType === "radiusAxis" ? (o.pixel = e[0] - t[0], o.pixelLength = l[1] - l[0], o.pixelStart = l[0], o.signal = a.inverse ? 1 : -1) : (o.pixel = e[1] - t[1], o.pixelLength = u[1] - u[0], o.pixelStart = u[0], o.signal = a.inverse ? -1 : 1), o;
  89027. },
  89028. singleAxis: function(t, e, n, r, i) {
  89029. var a = n.axis, o = i.model.coordinateSystem.getRect(), s = {};
  89030. return t = t || [0, 0], a.orient === "horizontal" ? (s.pixel = e[0] - t[0], s.pixelLength = o.width, s.pixelStart = o.x, s.signal = a.inverse ? 1 : -1) : (s.pixel = e[1] - t[1], s.pixelLength = o.height, s.pixelStart = o.y, s.signal = a.inverse ? -1 : 1), s;
  89031. }
  89032. };
  89033. function Ahe(t) {
  89034. S6(t), t.registerComponentModel(eft), t.registerComponentView(lft), sft(t);
  89035. }
  89036. var uft = (
  89037. /** @class */
  89038. function(t) {
  89039. le(e, t);
  89040. function e() {
  89041. var n = t !== null && t.apply(this, arguments) || this;
  89042. return n.type = e.type, n;
  89043. }
  89044. return e.type = "dataZoom.slider", e.layoutMode = "box", e.defaultOption = Bf(d_.defaultOption, {
  89045. show: !0,
  89046. // deault value can only be drived in view stage.
  89047. right: "ph",
  89048. top: "ph",
  89049. width: "ph",
  89050. height: "ph",
  89051. left: null,
  89052. bottom: null,
  89053. borderColor: "#d2dbee",
  89054. borderRadius: 3,
  89055. backgroundColor: "rgba(47,69,84,0)",
  89056. // dataBackgroundColor: '#ddd',
  89057. dataBackground: {
  89058. lineStyle: {
  89059. color: "#d2dbee",
  89060. width: 0.5
  89061. },
  89062. areaStyle: {
  89063. color: "#d2dbee",
  89064. opacity: 0.2
  89065. }
  89066. },
  89067. selectedDataBackground: {
  89068. lineStyle: {
  89069. color: "#8fb0f7",
  89070. width: 0.5
  89071. },
  89072. areaStyle: {
  89073. color: "#8fb0f7",
  89074. opacity: 0.2
  89075. }
  89076. },
  89077. // Color of selected window.
  89078. fillerColor: "rgba(135,175,274,0.2)",
  89079. handleIcon: "path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
  89080. // Percent of the slider height
  89081. handleSize: "100%",
  89082. handleStyle: {
  89083. color: "#fff",
  89084. borderColor: "#ACB8D1"
  89085. },
  89086. moveHandleSize: 7,
  89087. moveHandleIcon: "path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",
  89088. moveHandleStyle: {
  89089. color: "#D2DBEE",
  89090. opacity: 0.7
  89091. },
  89092. showDetail: !0,
  89093. showDataShadow: "auto",
  89094. realtime: !0,
  89095. zoomLock: !1,
  89096. textStyle: {
  89097. color: "#6E7079"
  89098. },
  89099. brushSelect: !0,
  89100. brushStyle: {
  89101. color: "rgba(135,175,274,0.15)"
  89102. },
  89103. emphasis: {
  89104. handleStyle: {
  89105. borderColor: "#8FB0F7"
  89106. },
  89107. moveHandleStyle: {
  89108. color: "#8FB0F7"
  89109. }
  89110. }
  89111. }), e;
  89112. }(d_)
  89113. ), q0 = Zt, BY = 7, cft = 1, GI = 30, fft = 7, K0 = "horizontal", zY = "vertical", dft = 5, hft = ["line", "bar", "candlestick", "scatter"], pft = {
  89114. easing: "cubicOut",
  89115. duration: 100,
  89116. delay: 0
  89117. }, vft = (
  89118. /** @class */
  89119. function(t) {
  89120. le(e, t);
  89121. function e() {
  89122. var n = t !== null && t.apply(this, arguments) || this;
  89123. return n.type = e.type, n._displayables = {}, n;
  89124. }
  89125. return e.prototype.init = function(n, r) {
  89126. this.api = r, this._onBrush = We(this._onBrush, this), this._onBrushEnd = We(this._onBrushEnd, this);
  89127. }, e.prototype.render = function(n, r, i, a) {
  89128. if (t.prototype.render.apply(this, arguments), Am(this, "_dispatchZoomAction", n.get("throttle"), "fixRate"), this._orient = n.getOrient(), n.get("show") === !1) {
  89129. this.group.removeAll();
  89130. return;
  89131. }
  89132. if (n.noTarget()) {
  89133. this._clear(), this.group.removeAll();
  89134. return;
  89135. }
  89136. (!a || a.type !== "dataZoom" || a.from !== this.uid) && this._buildView(), this._updateView();
  89137. }, e.prototype.dispose = function() {
  89138. this._clear(), t.prototype.dispose.apply(this, arguments);
  89139. }, e.prototype._clear = function() {
  89140. Jb(this, "_dispatchZoomAction");
  89141. var n = this.api.getZr();
  89142. n.off("mousemove", this._onBrush), n.off("mouseup", this._onBrushEnd);
  89143. }, e.prototype._buildView = function() {
  89144. var n = this.group;
  89145. n.removeAll(), this._brushing = !1, this._displayables.brushRect = null, this._resetLocation(), this._resetInterval();
  89146. var r = this._displayables.sliderGroup = new ct();
  89147. this._renderBackground(), this._renderHandle(), this._renderDataShadow(), n.add(r), this._positionGroup();
  89148. }, e.prototype._resetLocation = function() {
  89149. var n = this.dataZoomModel, r = this.api, i = n.get("brushSelect"), a = i ? fft : 0, o = this._findCoordRect(), s = {
  89150. width: r.getWidth(),
  89151. height: r.getHeight()
  89152. }, l = this._orient === K0 ? {
  89153. // Why using 'right', because right should be used in vertical,
  89154. // and it is better to be consistent for dealing with position param merge.
  89155. right: s.width - o.x - o.width,
  89156. top: s.height - GI - BY - a,
  89157. width: o.width,
  89158. height: GI
  89159. } : {
  89160. right: BY,
  89161. top: o.y,
  89162. width: GI,
  89163. height: o.height
  89164. }, u = Tm(n.option);
  89165. F(["right", "top", "width", "height"], function(f) {
  89166. u[f] === "ph" && (u[f] = l[f]);
  89167. });
  89168. var c = Mr(u, s);
  89169. this._location = {
  89170. x: c.x,
  89171. y: c.y
  89172. }, this._size = [c.width, c.height], this._orient === zY && this._size.reverse();
  89173. }, e.prototype._positionGroup = function() {
  89174. var n = this.group, r = this._location, i = this._orient, a = this.dataZoomModel.getFirstTargetAxisModel(), o = a && a.get("inverse"), s = this._displayables.sliderGroup, l = (this._dataShadowInfo || {}).otherAxisInverse;
  89175. s.attr(i === K0 && !o ? {
  89176. scaleY: l ? 1 : -1,
  89177. scaleX: 1
  89178. } : i === K0 && o ? {
  89179. scaleY: l ? 1 : -1,
  89180. scaleX: -1
  89181. } : i === zY && !o ? {
  89182. scaleY: l ? -1 : 1,
  89183. scaleX: 1,
  89184. rotation: Math.PI / 2
  89185. } : {
  89186. scaleY: l ? -1 : 1,
  89187. scaleX: -1,
  89188. rotation: Math.PI / 2
  89189. });
  89190. var u = n.getBoundingRect([s]);
  89191. n.x = r.x - u.x, n.y = r.y - u.y, n.markRedraw();
  89192. }, e.prototype._getViewExtent = function() {
  89193. return [0, this._size[0]];
  89194. }, e.prototype._renderBackground = function() {
  89195. var n = this.dataZoomModel, r = this._size, i = this._displayables.sliderGroup, a = n.get("brushSelect");
  89196. i.add(new q0({
  89197. silent: !0,
  89198. shape: {
  89199. x: 0,
  89200. y: 0,
  89201. width: r[0],
  89202. height: r[1]
  89203. },
  89204. style: {
  89205. fill: n.get("backgroundColor")
  89206. },
  89207. z2: -40
  89208. }));
  89209. var o = new q0({
  89210. shape: {
  89211. x: 0,
  89212. y: 0,
  89213. width: r[0],
  89214. height: r[1]
  89215. },
  89216. style: {
  89217. fill: "transparent"
  89218. },
  89219. z2: 0,
  89220. onclick: We(this._onClickPanel, this)
  89221. }), s = this.api.getZr();
  89222. a ? (o.on("mousedown", this._onBrushStart, this), o.cursor = "crosshair", s.on("mousemove", this._onBrush), s.on("mouseup", this._onBrushEnd)) : (s.off("mousemove", this._onBrush), s.off("mouseup", this._onBrushEnd)), i.add(o);
  89223. }, e.prototype._renderDataShadow = function() {
  89224. var n = this._dataShadowInfo = this._prepareDataShadowInfo();
  89225. if (this._displayables.dataShadowSegs = [], !n)
  89226. return;
  89227. var r = this._size, i = this._shadowSize || [], a = n.series, o = a.getRawData(), s = a.getShadowDim && a.getShadowDim(), l = s && o.getDimensionInfo(s) ? a.getShadowDim() : n.otherDim;
  89228. if (l == null)
  89229. return;
  89230. var u = this._shadowPolygonPts, c = this._shadowPolylinePts;
  89231. if (o !== this._shadowData || l !== this._shadowDim || r[0] !== i[0] || r[1] !== i[1]) {
  89232. var f = o.getDataExtent(l), d = (f[1] - f[0]) * 0.3;
  89233. f = [f[0] - d, f[1] + d];
  89234. var h = [0, r[1]], p = [0, r[0]], v = [[r[0], 0], [0, 0]], g = [], m = p[1] / (o.count() - 1), y = 0, _ = Math.round(o.count() / r[0]), O;
  89235. o.each([l], function($, T) {
  89236. if (_ > 0 && T % _) {
  89237. y += m;
  89238. return;
  89239. }
  89240. var E = $ == null || isNaN($) || $ === "", M = E ? 0 : gn($, f, h, !0);
  89241. E && !O && T ? (v.push([v[v.length - 1][0], 0]), g.push([g[g.length - 1][0], 0])) : !E && O && (v.push([y, 0]), g.push([y, 0])), v.push([y, M]), g.push([y, M]), y += m, O = E;
  89242. }), u = this._shadowPolygonPts = v, c = this._shadowPolylinePts = g;
  89243. }
  89244. this._shadowData = o, this._shadowDim = l, this._shadowSize = [r[0], r[1]];
  89245. var S = this.dataZoomModel;
  89246. function x($) {
  89247. var T = S.getModel($ ? "selectedDataBackground" : "dataBackground"), E = new ct(), M = new pa({
  89248. shape: {
  89249. points: u
  89250. },
  89251. segmentIgnoreThreshold: 1,
  89252. style: T.getModel("areaStyle").getAreaStyle(),
  89253. silent: !0,
  89254. z2: -20
  89255. }), R = new va({
  89256. shape: {
  89257. points: c
  89258. },
  89259. segmentIgnoreThreshold: 1,
  89260. style: T.getModel("lineStyle").getLineStyle(),
  89261. silent: !0,
  89262. z2: -19
  89263. });
  89264. return E.add(M), E.add(R), E;
  89265. }
  89266. for (var C = 0; C < 3; C++) {
  89267. var P = x(C === 1);
  89268. this._displayables.sliderGroup.add(P), this._displayables.dataShadowSegs.push(P);
  89269. }
  89270. }, e.prototype._prepareDataShadowInfo = function() {
  89271. var n = this.dataZoomModel, r = n.get("showDataShadow");
  89272. if (r !== !1) {
  89273. var i, a = this.ecModel;
  89274. return n.eachTargetAxis(function(o, s) {
  89275. var l = n.getAxisProxy(o, s).getTargetSeriesModels();
  89276. F(l, function(u) {
  89277. if (!i && !(r !== !0 && St(hft, u.get("type")) < 0)) {
  89278. var c = a.getComponent(Uc(o), s).axis, f = gft(o), d, h = u.coordinateSystem;
  89279. f != null && h.getOtherAxis && (d = h.getOtherAxis(c).inverse), f = u.getData().mapDimension(f), i = {
  89280. thisAxis: c,
  89281. series: u,
  89282. thisDim: o,
  89283. otherDim: f,
  89284. otherAxisInverse: d
  89285. };
  89286. }
  89287. }, this);
  89288. }, this), i;
  89289. }
  89290. }, e.prototype._renderHandle = function() {
  89291. var n = this.group, r = this._displayables, i = r.handles = [null, null], a = r.handleLabels = [null, null], o = this._displayables.sliderGroup, s = this._size, l = this.dataZoomModel, u = this.api, c = l.get("borderRadius") || 0, f = l.get("brushSelect"), d = r.filler = new q0({
  89292. silent: f,
  89293. style: {
  89294. fill: l.get("fillerColor")
  89295. },
  89296. textConfig: {
  89297. position: "inside"
  89298. }
  89299. });
  89300. o.add(d), o.add(new q0({
  89301. silent: !0,
  89302. subPixelOptimize: !0,
  89303. shape: {
  89304. x: 0,
  89305. y: 0,
  89306. width: s[0],
  89307. height: s[1],
  89308. r: c
  89309. },
  89310. style: {
  89311. // deprecated option
  89312. stroke: l.get("dataBackgroundColor") || l.get("borderColor"),
  89313. lineWidth: cft,
  89314. fill: "rgba(0,0,0,0)"
  89315. }
  89316. })), F([0, 1], function(_) {
  89317. var O = l.get("handleIcon");
  89318. !WC[O] && O.indexOf("path://") < 0 && O.indexOf("image://") < 0 && (O = "path://" + O, process.env.NODE_ENV !== "production" && ss("handleIcon now needs 'path://' prefix when using a path string"));
  89319. var S = wr(O, -1, 0, 2, 2, null, !0);
  89320. S.attr({
  89321. cursor: VY(this._orient),
  89322. draggable: !0,
  89323. drift: We(this._onDragMove, this, _),
  89324. ondragend: We(this._onDragEnd, this),
  89325. onmouseover: We(this._showDataInfo, this, !0),
  89326. onmouseout: We(this._showDataInfo, this, !1),
  89327. z2: 5
  89328. });
  89329. var x = S.getBoundingRect(), C = l.get("handleSize");
  89330. this._handleHeight = ze(C, this._size[1]), this._handleWidth = x.width / x.height * this._handleHeight, S.setStyle(l.getModel("handleStyle").getItemStyle()), S.style.strokeNoScale = !0, S.rectHover = !0, S.ensureState("emphasis").style = l.getModel(["emphasis", "handleStyle"]).getItemStyle(), af(S);
  89331. var P = l.get("handleColor");
  89332. P != null && (S.style.fill = P), o.add(i[_] = S);
  89333. var $ = l.getModel("textStyle");
  89334. n.add(a[_] = new jt({
  89335. silent: !0,
  89336. invisible: !0,
  89337. style: Mn($, {
  89338. x: 0,
  89339. y: 0,
  89340. text: "",
  89341. verticalAlign: "middle",
  89342. align: "center",
  89343. fill: $.getTextColor(),
  89344. font: $.getFont()
  89345. }),
  89346. z2: 10
  89347. }));
  89348. }, this);
  89349. var h = d;
  89350. if (f) {
  89351. var p = ze(l.get("moveHandleSize"), s[1]), v = r.moveHandle = new Zt({
  89352. style: l.getModel("moveHandleStyle").getItemStyle(),
  89353. silent: !0,
  89354. shape: {
  89355. r: [0, 0, 2, 2],
  89356. y: s[1] - 0.5,
  89357. height: p
  89358. }
  89359. }), g = p * 0.8, m = r.moveHandleIcon = wr(l.get("moveHandleIcon"), -g / 2, -g / 2, g, g, "#fff", !0);
  89360. m.silent = !0, m.y = s[1] + p / 2 - 0.5, v.ensureState("emphasis").style = l.getModel(["emphasis", "moveHandleStyle"]).getItemStyle();
  89361. var y = Math.min(s[1] / 2, Math.max(p, 10));
  89362. h = r.moveZone = new Zt({
  89363. invisible: !0,
  89364. shape: {
  89365. y: s[1] - y,
  89366. height: p + y
  89367. }
  89368. }), h.on("mouseover", function() {
  89369. u.enterEmphasis(v);
  89370. }).on("mouseout", function() {
  89371. u.leaveEmphasis(v);
  89372. }), o.add(v), o.add(m), o.add(h);
  89373. }
  89374. h.attr({
  89375. draggable: !0,
  89376. cursor: VY(this._orient),
  89377. drift: We(this._onDragMove, this, "all"),
  89378. ondragstart: We(this._showDataInfo, this, !0),
  89379. ondragend: We(this._onDragEnd, this),
  89380. onmouseover: We(this._showDataInfo, this, !0),
  89381. onmouseout: We(this._showDataInfo, this, !1)
  89382. });
  89383. }, e.prototype._resetInterval = function() {
  89384. var n = this._range = this.dataZoomModel.getPercentRange(), r = this._getViewExtent();
  89385. this._handleEnds = [gn(n[0], [0, 100], r, !0), gn(n[1], [0, 100], r, !0)];
  89386. }, e.prototype._updateInterval = function(n, r) {
  89387. var i = this.dataZoomModel, a = this._handleEnds, o = this._getViewExtent(), s = i.findRepresentativeAxisProxy().getMinMaxSpan(), l = [0, 100];
  89388. _p(r, a, o, i.get("zoomLock") ? "all" : n, s.minSpan != null ? gn(s.minSpan, l, o, !0) : null, s.maxSpan != null ? gn(s.maxSpan, l, o, !0) : null);
  89389. var u = this._range, c = this._range = ao([gn(a[0], o, l, !0), gn(a[1], o, l, !0)]);
  89390. return !u || u[0] !== c[0] || u[1] !== c[1];
  89391. }, e.prototype._updateView = function(n) {
  89392. var r = this._displayables, i = this._handleEnds, a = ao(i.slice()), o = this._size;
  89393. F([0, 1], function(h) {
  89394. var p = r.handles[h], v = this._handleHeight;
  89395. p.attr({
  89396. scaleX: v / 2,
  89397. scaleY: v / 2,
  89398. // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.
  89399. // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.
  89400. x: i[h] + (h ? -1 : 1),
  89401. y: o[1] / 2 - v / 2
  89402. });
  89403. }, this), r.filler.setShape({
  89404. x: a[0],
  89405. y: 0,
  89406. width: a[1] - a[0],
  89407. height: o[1]
  89408. });
  89409. var s = {
  89410. x: a[0],
  89411. width: a[1] - a[0]
  89412. };
  89413. r.moveHandle && (r.moveHandle.setShape(s), r.moveZone.setShape(s), r.moveZone.getBoundingRect(), r.moveHandleIcon && r.moveHandleIcon.attr("x", s.x + s.width / 2));
  89414. for (var l = r.dataShadowSegs, u = [0, a[0], a[1], o[0]], c = 0; c < l.length; c++) {
  89415. var f = l[c], d = f.getClipPath();
  89416. d || (d = new Zt(), f.setClipPath(d)), d.setShape({
  89417. x: u[c],
  89418. y: 0,
  89419. width: u[c + 1] - u[c],
  89420. height: o[1]
  89421. });
  89422. }
  89423. this._updateDataInfo(n);
  89424. }, e.prototype._updateDataInfo = function(n) {
  89425. var r = this.dataZoomModel, i = this._displayables, a = i.handleLabels, o = this._orient, s = ["", ""];
  89426. if (r.get("showDetail")) {
  89427. var l = r.findRepresentativeAxisProxy();
  89428. if (l) {
  89429. var u = l.getAxisModel().axis, c = this._range, f = n ? l.calculateDataWindow({
  89430. start: c[0],
  89431. end: c[1]
  89432. }).valueWindow : l.getDataValueWindow();
  89433. s = [this._formatLabel(f[0], u), this._formatLabel(f[1], u)];
  89434. }
  89435. }
  89436. var d = ao(this._handleEnds.slice());
  89437. h.call(this, 0), h.call(this, 1);
  89438. function h(p) {
  89439. var v = of(i.handles[p].parent, this.group), g = CP(p === 0 ? "right" : "left", v), m = this._handleWidth / 2 + dft, y = zs([d[p] + (p === 0 ? -m : m), this._size[1] / 2], v);
  89440. a[p].setStyle({
  89441. x: y[0],
  89442. y: y[1],
  89443. verticalAlign: o === K0 ? "middle" : g,
  89444. align: o === K0 ? g : "center",
  89445. text: s[p]
  89446. });
  89447. }
  89448. }, e.prototype._formatLabel = function(n, r) {
  89449. var i = this.dataZoomModel, a = i.get("labelFormatter"), o = i.get("labelPrecision");
  89450. (o == null || o === "auto") && (o = r.getPixelPrecision());
  89451. var s = n == null || isNaN(n) ? "" : r.type === "category" || r.type === "time" ? r.scale.getLabel({
  89452. value: Math.round(n)
  89453. }) : n.toFixed(Math.min(o, 20));
  89454. return qe(a) ? a(n, s) : Ve(a) ? a.replace("{value}", s) : s;
  89455. }, e.prototype._showDataInfo = function(n) {
  89456. n = this._dragging || n;
  89457. var r = this._displayables, i = r.handleLabels;
  89458. i[0].attr("invisible", !n), i[1].attr("invisible", !n), r.moveHandle && this.api[n ? "enterEmphasis" : "leaveEmphasis"](r.moveHandle, 1);
  89459. }, e.prototype._onDragMove = function(n, r, i, a) {
  89460. this._dragging = !0, Vu(a.event);
  89461. var o = this._displayables.sliderGroup.getLocalTransform(), s = zs([r, i], o, !0), l = this._updateInterval(n, s[0]), u = this.dataZoomModel.get("realtime");
  89462. this._updateView(!u), l && u && this._dispatchZoomAction(!0);
  89463. }, e.prototype._onDragEnd = function() {
  89464. this._dragging = !1, this._showDataInfo(!1);
  89465. var n = this.dataZoomModel.get("realtime");
  89466. !n && this._dispatchZoomAction(!1);
  89467. }, e.prototype._onClickPanel = function(n) {
  89468. var r = this._size, i = this._displayables.sliderGroup.transformCoordToLocal(n.offsetX, n.offsetY);
  89469. if (!(i[0] < 0 || i[0] > r[0] || i[1] < 0 || i[1] > r[1])) {
  89470. var a = this._handleEnds, o = (a[0] + a[1]) / 2, s = this._updateInterval("all", i[0] - o);
  89471. this._updateView(), s && this._dispatchZoomAction(!1);
  89472. }
  89473. }, e.prototype._onBrushStart = function(n) {
  89474. var r = n.offsetX, i = n.offsetY;
  89475. this._brushStart = new yt(r, i), this._brushing = !0, this._brushStartTime = +/* @__PURE__ */ new Date();
  89476. }, e.prototype._onBrushEnd = function(n) {
  89477. if (this._brushing) {
  89478. var r = this._displayables.brushRect;
  89479. if (this._brushing = !1, !!r) {
  89480. r.attr("ignore", !0);
  89481. var i = r.shape, a = +/* @__PURE__ */ new Date();
  89482. if (!(a - this._brushStartTime < 200 && Math.abs(i.width) < 5)) {
  89483. var o = this._getViewExtent(), s = [0, 100];
  89484. this._range = ao([gn(i.x, o, s, !0), gn(i.x + i.width, o, s, !0)]), this._handleEnds = [i.x, i.x + i.width], this._updateView(), this._dispatchZoomAction(!1);
  89485. }
  89486. }
  89487. }
  89488. }, e.prototype._onBrush = function(n) {
  89489. this._brushing && (Vu(n.event), this._updateBrushRect(n.offsetX, n.offsetY));
  89490. }, e.prototype._updateBrushRect = function(n, r) {
  89491. var i = this._displayables, a = this.dataZoomModel, o = i.brushRect;
  89492. o || (o = i.brushRect = new q0({
  89493. silent: !0,
  89494. style: a.getModel("brushStyle").getItemStyle()
  89495. }), i.sliderGroup.add(o)), o.attr("ignore", !1);
  89496. var s = this._brushStart, l = this._displayables.sliderGroup, u = l.transformCoordToLocal(n, r), c = l.transformCoordToLocal(s.x, s.y), f = this._size;
  89497. u[0] = Math.max(Math.min(f[0], u[0]), 0), o.setShape({
  89498. x: c[0],
  89499. y: 0,
  89500. width: u[0] - c[0],
  89501. height: f[1]
  89502. });
  89503. }, e.prototype._dispatchZoomAction = function(n) {
  89504. var r = this._range;
  89505. this.api.dispatchAction({
  89506. type: "dataZoom",
  89507. from: this.uid,
  89508. dataZoomId: this.dataZoomModel.id,
  89509. animation: n ? pft : null,
  89510. start: r[0],
  89511. end: r[1]
  89512. });
  89513. }, e.prototype._findCoordRect = function() {
  89514. var n, r = che(this.dataZoomModel).infoList;
  89515. if (!n && r.length) {
  89516. var i = r[0].model.coordinateSystem;
  89517. n = i.getRect && i.getRect();
  89518. }
  89519. if (!n) {
  89520. var a = this.api.getWidth(), o = this.api.getHeight();
  89521. n = {
  89522. x: a * 0.2,
  89523. y: o * 0.2,
  89524. width: a * 0.6,
  89525. height: o * 0.6
  89526. };
  89527. }
  89528. return n;
  89529. }, e.type = "dataZoom.slider", e;
  89530. }(O6)
  89531. );
  89532. function gft(t) {
  89533. var e = {
  89534. x: "y",
  89535. y: "x",
  89536. radius: "angle",
  89537. angle: "radius"
  89538. };
  89539. return e[t];
  89540. }
  89541. function VY(t) {
  89542. return t === "vertical" ? "ns-resize" : "ew-resize";
  89543. }
  89544. function Ehe(t) {
  89545. t.registerComponentModel(uft), t.registerComponentView(vft), S6(t);
  89546. }
  89547. function mft(t) {
  89548. Mt(Ahe), Mt(Ehe);
  89549. }
  89550. var Mhe = {
  89551. /**
  89552. * @public
  89553. */
  89554. get: function(t, e, n) {
  89555. var r = ot((yft[t] || {})[e]);
  89556. return n && Se(r) ? r[r.length - 1] : r;
  89557. }
  89558. }, yft = {
  89559. color: {
  89560. active: ["#006edd", "#e0ffff"],
  89561. inactive: ["rgba(0,0,0,0)"]
  89562. },
  89563. colorHue: {
  89564. active: [0, 360],
  89565. inactive: [0, 0]
  89566. },
  89567. colorSaturation: {
  89568. active: [0.3, 1],
  89569. inactive: [0, 0]
  89570. },
  89571. colorLightness: {
  89572. active: [0.9, 0.5],
  89573. inactive: [0, 0]
  89574. },
  89575. colorAlpha: {
  89576. active: [0.3, 1],
  89577. inactive: [0, 0]
  89578. },
  89579. opacity: {
  89580. active: [0.3, 1],
  89581. inactive: [0, 0]
  89582. },
  89583. symbol: {
  89584. active: ["circle", "roundRect", "diamond"],
  89585. inactive: ["none"]
  89586. },
  89587. symbolSize: {
  89588. active: [10, 50],
  89589. inactive: [0, 0]
  89590. }
  89591. }, FY = Kr.mapVisual, bft = Kr.eachVisual, _ft = Se, WY = F, Oft = ao, Sft = gn, mT = (
  89592. /** @class */
  89593. function(t) {
  89594. le(e, t);
  89595. function e() {
  89596. var n = t !== null && t.apply(this, arguments) || this;
  89597. return n.type = e.type, n.stateList = ["inRange", "outOfRange"], n.replacableOptionKeys = ["inRange", "outOfRange", "target", "controller", "color"], n.layoutMode = {
  89598. type: "box",
  89599. ignoreSize: !0
  89600. }, n.dataBound = [-1 / 0, 1 / 0], n.targetVisuals = {}, n.controllerVisuals = {}, n;
  89601. }
  89602. return e.prototype.init = function(n, r, i) {
  89603. this.mergeDefaultAndTheme(n, i);
  89604. }, e.prototype.optionUpdated = function(n, r) {
  89605. var i = this.option;
  89606. !r && _he(i, n, this.replacableOptionKeys), this.textStyleModel = this.getModel("textStyle"), this.resetItemSize(), this.completeVisualOption();
  89607. }, e.prototype.resetVisual = function(n) {
  89608. var r = this.stateList;
  89609. n = We(n, this), this.controllerVisuals = IL(this.option.controller, r, n), this.targetVisuals = IL(this.option.target, r, n);
  89610. }, e.prototype.getItemSymbol = function() {
  89611. return null;
  89612. }, e.prototype.getTargetSeriesIndices = function() {
  89613. var n = this.option.seriesIndex, r = [];
  89614. return n == null || n === "all" ? this.ecModel.eachSeries(function(i, a) {
  89615. r.push(a);
  89616. }) : r = Cn(n), r;
  89617. }, e.prototype.eachTargetSeries = function(n, r) {
  89618. F(this.getTargetSeriesIndices(), function(i) {
  89619. var a = this.ecModel.getSeriesByIndex(i);
  89620. a && n.call(r, a);
  89621. }, this);
  89622. }, e.prototype.isTargetSeries = function(n) {
  89623. var r = !1;
  89624. return this.eachTargetSeries(function(i) {
  89625. i === n && (r = !0);
  89626. }), r;
  89627. }, e.prototype.formatValueText = function(n, r, i) {
  89628. var a = this.option, o = a.precision, s = this.dataBound, l = a.formatter, u;
  89629. i = i || ["<", ">"], Se(n) && (n = n.slice(), u = !0);
  89630. var c = r ? n : u ? [f(n[0]), f(n[1])] : f(n);
  89631. if (Ve(l))
  89632. return l.replace("{value}", u ? c[0] : c).replace("{value2}", u ? c[1] : c);
  89633. if (qe(l))
  89634. return u ? l(n[0], n[1]) : l(n);
  89635. if (u)
  89636. return n[0] === s[0] ? i[0] + " " + c[1] : n[1] === s[1] ? i[1] + " " + c[0] : c[0] + " - " + c[1];
  89637. return c;
  89638. function f(d) {
  89639. return d === s[0] ? "min" : d === s[1] ? "max" : (+d).toFixed(Math.min(o, 20));
  89640. }
  89641. }, e.prototype.resetExtent = function() {
  89642. var n = this.option, r = Oft([n.min, n.max]);
  89643. this._dataExtent = r;
  89644. }, e.prototype.getDataDimensionIndex = function(n) {
  89645. var r = this.option.dimension;
  89646. if (r != null)
  89647. return n.getDimensionIndex(r);
  89648. for (var i = n.dimensions, a = i.length - 1; a >= 0; a--) {
  89649. var o = i[a], s = n.getDimensionInfo(o);
  89650. if (!s.isCalculationCoord)
  89651. return s.storeDimIndex;
  89652. }
  89653. }, e.prototype.getExtent = function() {
  89654. return this._dataExtent.slice();
  89655. }, e.prototype.completeVisualOption = function() {
  89656. var n = this.ecModel, r = this.option, i = {
  89657. inRange: r.inRange,
  89658. outOfRange: r.outOfRange
  89659. }, a = r.target || (r.target = {}), o = r.controller || (r.controller = {});
  89660. mt(a, i), mt(o, i);
  89661. var s = this.isCategory();
  89662. l.call(this, a), l.call(this, o), u.call(this, a, "inRange", "outOfRange"), c.call(this, o);
  89663. function l(f) {
  89664. _ft(r.color) && !f.inRange && (f.inRange = {
  89665. color: r.color.slice().reverse()
  89666. }), f.inRange = f.inRange || {
  89667. color: n.get("gradientColor")
  89668. };
  89669. }
  89670. function u(f, d, h) {
  89671. var p = f[d], v = f[h];
  89672. p && !v && (v = f[h] = {}, WY(p, function(g, m) {
  89673. if (Kr.isValidType(m)) {
  89674. var y = Mhe.get(m, "inactive", s);
  89675. y != null && (v[m] = y, m === "color" && !v.hasOwnProperty("opacity") && !v.hasOwnProperty("colorAlpha") && (v.opacity = [0, 0]));
  89676. }
  89677. }));
  89678. }
  89679. function c(f) {
  89680. var d = (f.inRange || {}).symbol || (f.outOfRange || {}).symbol, h = (f.inRange || {}).symbolSize || (f.outOfRange || {}).symbolSize, p = this.get("inactiveColor"), v = this.getItemSymbol(), g = v || "roundRect";
  89681. WY(this.stateList, function(m) {
  89682. var y = this.itemSize, _ = f[m];
  89683. _ || (_ = f[m] = {
  89684. color: s ? p : [p]
  89685. }), _.symbol == null && (_.symbol = d && ot(d) || (s ? g : [g])), _.symbolSize == null && (_.symbolSize = h && ot(h) || (s ? y[0] : [y[0], y[0]])), _.symbol = FY(_.symbol, function(x) {
  89686. return x === "none" ? g : x;
  89687. });
  89688. var O = _.symbolSize;
  89689. if (O != null) {
  89690. var S = -1 / 0;
  89691. bft(O, function(x) {
  89692. x > S && (S = x);
  89693. }), _.symbolSize = FY(O, function(x) {
  89694. return Sft(x, [0, S], [0, y[0]], !0);
  89695. });
  89696. }
  89697. }, this);
  89698. }
  89699. }, e.prototype.resetItemSize = function() {
  89700. this.itemSize = [parseFloat(this.get("itemWidth")), parseFloat(this.get("itemHeight"))];
  89701. }, e.prototype.isCategory = function() {
  89702. return !!this.option.categories;
  89703. }, e.prototype.setSelected = function(n) {
  89704. }, e.prototype.getSelected = function() {
  89705. return null;
  89706. }, e.prototype.getValueState = function(n) {
  89707. return null;
  89708. }, e.prototype.getVisualMeta = function(n) {
  89709. return null;
  89710. }, e.type = "visualMap", e.dependencies = ["series"], e.defaultOption = {
  89711. show: !0,
  89712. // zlevel: 0,
  89713. z: 4,
  89714. seriesIndex: "all",
  89715. min: 0,
  89716. max: 200,
  89717. left: 0,
  89718. right: null,
  89719. top: null,
  89720. bottom: 0,
  89721. itemWidth: null,
  89722. itemHeight: null,
  89723. inverse: !1,
  89724. orient: "vertical",
  89725. backgroundColor: "rgba(0,0,0,0)",
  89726. borderColor: "#ccc",
  89727. contentColor: "#5793f3",
  89728. inactiveColor: "#aaa",
  89729. borderWidth: 0,
  89730. padding: 5,
  89731. // 接受数组分别设定上右下左边距,同css
  89732. textGap: 10,
  89733. precision: 0,
  89734. textStyle: {
  89735. color: "#333"
  89736. // 值域文字颜色
  89737. }
  89738. }, e;
  89739. }(At)
  89740. ), QY = [20, 140], xft = (
  89741. /** @class */
  89742. function(t) {
  89743. le(e, t);
  89744. function e() {
  89745. var n = t !== null && t.apply(this, arguments) || this;
  89746. return n.type = e.type, n;
  89747. }
  89748. return e.prototype.optionUpdated = function(n, r) {
  89749. t.prototype.optionUpdated.apply(this, arguments), this.resetExtent(), this.resetVisual(function(i) {
  89750. i.mappingMethod = "linear", i.dataExtent = this.getExtent();
  89751. }), this._resetRange();
  89752. }, e.prototype.resetItemSize = function() {
  89753. t.prototype.resetItemSize.apply(this, arguments);
  89754. var n = this.itemSize;
  89755. (n[0] == null || isNaN(n[0])) && (n[0] = QY[0]), (n[1] == null || isNaN(n[1])) && (n[1] = QY[1]);
  89756. }, e.prototype._resetRange = function() {
  89757. var n = this.getExtent(), r = this.option.range;
  89758. !r || r.auto ? (n.auto = 1, this.option.range = n) : Se(r) && (r[0] > r[1] && r.reverse(), r[0] = Math.max(r[0], n[0]), r[1] = Math.min(r[1], n[1]));
  89759. }, e.prototype.completeVisualOption = function() {
  89760. t.prototype.completeVisualOption.apply(this, arguments), F(this.stateList, function(n) {
  89761. var r = this.option.controller[n].symbolSize;
  89762. r && r[0] !== r[1] && (r[0] = r[1] / 3);
  89763. }, this);
  89764. }, e.prototype.setSelected = function(n) {
  89765. this.option.range = n.slice(), this._resetRange();
  89766. }, e.prototype.getSelected = function() {
  89767. var n = this.getExtent(), r = ao((this.get("range") || []).slice());
  89768. return r[0] > n[1] && (r[0] = n[1]), r[1] > n[1] && (r[1] = n[1]), r[0] < n[0] && (r[0] = n[0]), r[1] < n[0] && (r[1] = n[0]), r;
  89769. }, e.prototype.getValueState = function(n) {
  89770. var r = this.option.range, i = this.getExtent();
  89771. return (r[0] <= i[0] || r[0] <= n) && (r[1] >= i[1] || n <= r[1]) ? "inRange" : "outOfRange";
  89772. }, e.prototype.findTargetDataIndices = function(n) {
  89773. var r = [];
  89774. return this.eachTargetSeries(function(i) {
  89775. var a = [], o = i.getData();
  89776. o.each(this.getDataDimensionIndex(o), function(s, l) {
  89777. n[0] <= s && s <= n[1] && a.push(l);
  89778. }, this), r.push({
  89779. seriesId: i.id,
  89780. dataIndex: a
  89781. });
  89782. }, this), r;
  89783. }, e.prototype.getVisualMeta = function(n) {
  89784. var r = HY(this, "outOfRange", this.getExtent()), i = HY(this, "inRange", this.option.range.slice()), a = [];
  89785. function o(h, p) {
  89786. a.push({
  89787. value: h,
  89788. color: n(h, p)
  89789. });
  89790. }
  89791. for (var s = 0, l = 0, u = i.length, c = r.length; l < c && (!i.length || r[l] <= i[0]); l++)
  89792. r[l] < i[s] && o(r[l], "outOfRange");
  89793. for (var f = 1; s < u; s++, f = 0)
  89794. f && a.length && o(i[s], "outOfRange"), o(i[s], "inRange");
  89795. for (var f = 1; l < c; l++)
  89796. (!i.length || i[i.length - 1] < r[l]) && (f && (a.length && o(a[a.length - 1].value, "outOfRange"), f = 0), o(r[l], "outOfRange"));
  89797. var d = a.length;
  89798. return {
  89799. stops: a,
  89800. outerColors: [d ? a[0].color : "transparent", d ? a[d - 1].color : "transparent"]
  89801. };
  89802. }, e.type = "visualMap.continuous", e.defaultOption = Bf(mT.defaultOption, {
  89803. align: "auto",
  89804. calculable: !1,
  89805. hoverLink: !0,
  89806. realtime: !0,
  89807. handleIcon: "path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",
  89808. handleSize: "120%",
  89809. handleStyle: {
  89810. borderColor: "#fff",
  89811. borderWidth: 1
  89812. },
  89813. indicatorIcon: "circle",
  89814. indicatorSize: "50%",
  89815. indicatorStyle: {
  89816. borderColor: "#fff",
  89817. borderWidth: 2,
  89818. shadowBlur: 2,
  89819. shadowOffsetX: 1,
  89820. shadowOffsetY: 1,
  89821. shadowColor: "rgba(0,0,0,0.2)"
  89822. }
  89823. // emphasis: {
  89824. // handleStyle: {
  89825. // shadowBlur: 3,
  89826. // shadowOffsetX: 1,
  89827. // shadowOffsetY: 1,
  89828. // shadowColor: 'rgba(0,0,0,0.2)'
  89829. // }
  89830. // }
  89831. }), e;
  89832. }(mT)
  89833. );
  89834. function HY(t, e, n) {
  89835. if (n[0] === n[1])
  89836. return n.slice();
  89837. for (var r = 200, i = (n[1] - n[0]) / r, a = n[0], o = [], s = 0; s <= r && a < n[1]; s++)
  89838. o.push(a), a += i;
  89839. return o.push(n[1]), o;
  89840. }
  89841. var Ihe = (
  89842. /** @class */
  89843. function(t) {
  89844. le(e, t);
  89845. function e() {
  89846. var n = t !== null && t.apply(this, arguments) || this;
  89847. return n.type = e.type, n.autoPositionValues = {
  89848. left: 1,
  89849. right: 1,
  89850. top: 1,
  89851. bottom: 1
  89852. }, n;
  89853. }
  89854. return e.prototype.init = function(n, r) {
  89855. this.ecModel = n, this.api = r;
  89856. }, e.prototype.render = function(n, r, i, a) {
  89857. if (this.visualMapModel = n, n.get("show") === !1) {
  89858. this.group.removeAll();
  89859. return;
  89860. }
  89861. this.doRender(n, r, i, a);
  89862. }, e.prototype.renderBackground = function(n) {
  89863. var r = this.visualMapModel, i = vp(r.get("padding") || 0), a = n.getBoundingRect();
  89864. n.add(new Zt({
  89865. z2: -1,
  89866. silent: !0,
  89867. shape: {
  89868. x: a.x - i[3],
  89869. y: a.y - i[0],
  89870. width: a.width + i[3] + i[1],
  89871. height: a.height + i[0] + i[2]
  89872. },
  89873. style: {
  89874. fill: r.get("backgroundColor"),
  89875. stroke: r.get("borderColor"),
  89876. lineWidth: r.get("borderWidth")
  89877. }
  89878. }));
  89879. }, e.prototype.getControllerVisual = function(n, r, i) {
  89880. i = i || {};
  89881. var a = i.forceState, o = this.visualMapModel, s = {};
  89882. if (r === "color") {
  89883. var l = o.get("contentColor");
  89884. s.color = l;
  89885. }
  89886. function u(h) {
  89887. return s[h];
  89888. }
  89889. function c(h, p) {
  89890. s[h] = p;
  89891. }
  89892. var f = o.controllerVisuals[a || o.getValueState(n)], d = Kr.prepareVisualTypes(f);
  89893. return F(d, function(h) {
  89894. var p = f[h];
  89895. i.convertOpacityToAlpha && h === "opacity" && (h = "colorAlpha", p = f.__alphaForOpacity), Kr.dependsOn(h, r) && p && p.applyVisual(n, u, c);
  89896. }), s[r];
  89897. }, e.prototype.positionGroup = function(n) {
  89898. var r = this.visualMapModel, i = this.api;
  89899. MP(n, r.getBoxLayoutParams(), {
  89900. width: i.getWidth(),
  89901. height: i.getHeight()
  89902. });
  89903. }, e.prototype.doRender = function(n, r, i, a) {
  89904. }, e.type = "visualMap", e;
  89905. }(Ln)
  89906. ), GY = [["left", "right", "width"], ["top", "bottom", "height"]];
  89907. function Dhe(t, e, n) {
  89908. var r = t.option, i = r.align;
  89909. if (i != null && i !== "auto")
  89910. return i;
  89911. for (var a = {
  89912. width: e.getWidth(),
  89913. height: e.getHeight()
  89914. }, o = r.orient === "horizontal" ? 1 : 0, s = GY[o], l = [0, null, 10], u = {}, c = 0; c < 3; c++)
  89915. u[GY[1 - o][c]] = l[c], u[s[c]] = c === 2 ? n[0] : r[s[c]];
  89916. var f = [["x", "width", 3], ["y", "height", 0]][o], d = Mr(u, a, r.padding);
  89917. return s[(d.margin[f[2]] || 0) + d[f[0]] + d[f[1]] * 0.5 < a[f[1]] * 0.5 ? 0 : 1];
  89918. }
  89919. function Sw(t, e) {
  89920. return F(t || [], function(n) {
  89921. n.dataIndex != null && (n.dataIndexInside = n.dataIndex, n.dataIndex = null), n.highlightKey = "visualMap" + (e ? e.componentIndex : "");
  89922. }), t;
  89923. }
  89924. var ml = gn, wft = F, jY = Math.min, jI = Math.max, Cft = 12, Tft = 6, Pft = (
  89925. /** @class */
  89926. function(t) {
  89927. le(e, t);
  89928. function e() {
  89929. var n = t !== null && t.apply(this, arguments) || this;
  89930. return n.type = e.type, n._shapes = {}, n._dataInterval = [], n._handleEnds = [], n._hoverLinkDataIndices = [], n;
  89931. }
  89932. return e.prototype.init = function(n, r) {
  89933. t.prototype.init.call(this, n, r), this._hoverLinkFromSeriesMouseOver = We(this._hoverLinkFromSeriesMouseOver, this), this._hideIndicator = We(this._hideIndicator, this);
  89934. }, e.prototype.doRender = function(n, r, i, a) {
  89935. (!a || a.type !== "selectDataRange" || a.from !== this.uid) && this._buildView();
  89936. }, e.prototype._buildView = function() {
  89937. this.group.removeAll();
  89938. var n = this.visualMapModel, r = this.group;
  89939. this._orient = n.get("orient"), this._useHandle = n.get("calculable"), this._resetInterval(), this._renderBar(r);
  89940. var i = n.get("text");
  89941. this._renderEndsText(r, i, 0), this._renderEndsText(r, i, 1), this._updateView(!0), this.renderBackground(r), this._updateView(), this._enableHoverLinkToSeries(), this._enableHoverLinkFromSeries(), this.positionGroup(r);
  89942. }, e.prototype._renderEndsText = function(n, r, i) {
  89943. if (r) {
  89944. var a = r[1 - i];
  89945. a = a != null ? a + "" : "";
  89946. var o = this.visualMapModel, s = o.get("textGap"), l = o.itemSize, u = this._shapes.mainGroup, c = this._applyTransform([l[0] / 2, i === 0 ? -s : l[1] + s], u), f = this._applyTransform(i === 0 ? "bottom" : "top", u), d = this._orient, h = this.visualMapModel.textStyleModel;
  89947. this.group.add(new jt({
  89948. style: Mn(h, {
  89949. x: c[0],
  89950. y: c[1],
  89951. verticalAlign: d === "horizontal" ? "middle" : f,
  89952. align: d === "horizontal" ? f : "center",
  89953. text: a
  89954. })
  89955. }));
  89956. }
  89957. }, e.prototype._renderBar = function(n) {
  89958. var r = this.visualMapModel, i = this._shapes, a = r.itemSize, o = this._orient, s = this._useHandle, l = Dhe(r, this.api, a), u = i.mainGroup = this._createBarGroup(l), c = new ct();
  89959. u.add(c), c.add(i.outOfRange = ZY()), c.add(i.inRange = ZY(null, s ? XY(this._orient) : null, We(this._dragHandle, this, "all", !1), We(this._dragHandle, this, "all", !0))), c.setClipPath(new Zt({
  89960. shape: {
  89961. x: 0,
  89962. y: 0,
  89963. width: a[0],
  89964. height: a[1],
  89965. r: 3
  89966. }
  89967. }));
  89968. var f = r.textStyleModel.getTextRect("国"), d = jI(f.width, f.height);
  89969. s && (i.handleThumbs = [], i.handleLabels = [], i.handleLabelPoints = [], this._createHandle(r, u, 0, a, d, o), this._createHandle(r, u, 1, a, d, o)), this._createIndicator(r, u, a, d, o), n.add(u);
  89970. }, e.prototype._createHandle = function(n, r, i, a, o, s) {
  89971. var l = We(this._dragHandle, this, i, !1), u = We(this._dragHandle, this, i, !0), c = js(n.get("handleSize"), a[0]), f = wr(n.get("handleIcon"), -c / 2, -c / 2, c, c, null, !0), d = XY(this._orient);
  89972. f.attr({
  89973. cursor: d,
  89974. draggable: !0,
  89975. drift: l,
  89976. ondragend: u,
  89977. onmousemove: function(m) {
  89978. Vu(m.event);
  89979. }
  89980. }), f.x = a[0] / 2, f.useStyle(n.getModel("handleStyle").getItemStyle()), f.setStyle({
  89981. strokeNoScale: !0,
  89982. strokeFirst: !0
  89983. }), f.style.lineWidth *= 2, f.ensureState("emphasis").style = n.getModel(["emphasis", "handleStyle"]).getItemStyle(), ah(f, !0), r.add(f);
  89984. var h = this.visualMapModel.textStyleModel, p = new jt({
  89985. cursor: d,
  89986. draggable: !0,
  89987. drift: l,
  89988. onmousemove: function(m) {
  89989. Vu(m.event);
  89990. },
  89991. ondragend: u,
  89992. style: Mn(h, {
  89993. x: 0,
  89994. y: 0,
  89995. text: ""
  89996. })
  89997. });
  89998. p.ensureState("blur").style = {
  89999. opacity: 0.1
  90000. }, p.stateTransition = {
  90001. duration: 200
  90002. }, this.group.add(p);
  90003. var v = [c, 0], g = this._shapes;
  90004. g.handleThumbs[i] = f, g.handleLabelPoints[i] = v, g.handleLabels[i] = p;
  90005. }, e.prototype._createIndicator = function(n, r, i, a, o) {
  90006. var s = js(n.get("indicatorSize"), i[0]), l = wr(n.get("indicatorIcon"), -s / 2, -s / 2, s, s, null, !0);
  90007. l.attr({
  90008. cursor: "move",
  90009. invisible: !0,
  90010. silent: !0,
  90011. x: i[0] / 2
  90012. });
  90013. var u = n.getModel("indicatorStyle").getItemStyle();
  90014. if (l instanceof ci) {
  90015. var c = l.style;
  90016. l.useStyle(_e({
  90017. // TODO other properties like x, y ?
  90018. image: c.image,
  90019. x: c.x,
  90020. y: c.y,
  90021. width: c.width,
  90022. height: c.height
  90023. }, u));
  90024. } else
  90025. l.useStyle(u);
  90026. r.add(l);
  90027. var f = this.visualMapModel.textStyleModel, d = new jt({
  90028. silent: !0,
  90029. invisible: !0,
  90030. style: Mn(f, {
  90031. x: 0,
  90032. y: 0,
  90033. text: ""
  90034. })
  90035. });
  90036. this.group.add(d);
  90037. var h = [(o === "horizontal" ? a / 2 : Tft) + i[0] / 2, 0], p = this._shapes;
  90038. p.indicator = l, p.indicatorLabel = d, p.indicatorLabelPoint = h, this._firstShowIndicator = !0;
  90039. }, e.prototype._dragHandle = function(n, r, i, a) {
  90040. if (this._useHandle) {
  90041. if (this._dragging = !r, !r) {
  90042. var o = this._applyTransform([i, a], this._shapes.mainGroup, !0);
  90043. this._updateInterval(n, o[1]), this._hideIndicator(), this._updateView();
  90044. }
  90045. r === !this.visualMapModel.get("realtime") && this.api.dispatchAction({
  90046. type: "selectDataRange",
  90047. from: this.uid,
  90048. visualMapId: this.visualMapModel.id,
  90049. selected: this._dataInterval.slice()
  90050. }), r ? !this._hovering && this._clearHoverLinkToSeries() : UY(this.visualMapModel) && this._doHoverLinkToSeries(this._handleEnds[n], !1);
  90051. }
  90052. }, e.prototype._resetInterval = function() {
  90053. var n = this.visualMapModel, r = this._dataInterval = n.getSelected(), i = n.getExtent(), a = [0, n.itemSize[1]];
  90054. this._handleEnds = [ml(r[0], i, a, !0), ml(r[1], i, a, !0)];
  90055. }, e.prototype._updateInterval = function(n, r) {
  90056. r = r || 0;
  90057. var i = this.visualMapModel, a = this._handleEnds, o = [0, i.itemSize[1]];
  90058. _p(
  90059. r,
  90060. a,
  90061. o,
  90062. n,
  90063. // cross is forbidden
  90064. 0
  90065. );
  90066. var s = i.getExtent();
  90067. this._dataInterval = [ml(a[0], o, s, !0), ml(a[1], o, s, !0)];
  90068. }, e.prototype._updateView = function(n) {
  90069. var r = this.visualMapModel, i = r.getExtent(), a = this._shapes, o = [0, r.itemSize[1]], s = n ? o : this._handleEnds, l = this._createBarVisual(this._dataInterval, i, s, "inRange"), u = this._createBarVisual(i, i, o, "outOfRange");
  90070. a.inRange.setStyle({
  90071. fill: l.barColor
  90072. // opacity: visualInRange.opacity
  90073. }).setShape("points", l.barPoints), a.outOfRange.setStyle({
  90074. fill: u.barColor
  90075. // opacity: visualOutOfRange.opacity
  90076. }).setShape("points", u.barPoints), this._updateHandle(s, l);
  90077. }, e.prototype._createBarVisual = function(n, r, i, a) {
  90078. var o = {
  90079. forceState: a,
  90080. convertOpacityToAlpha: !0
  90081. }, s = this._makeColorGradient(n, o), l = [this.getControllerVisual(n[0], "symbolSize", o), this.getControllerVisual(n[1], "symbolSize", o)], u = this._createBarPoints(i, l);
  90082. return {
  90083. barColor: new _m(0, 0, 0, 1, s),
  90084. barPoints: u,
  90085. handlesColor: [s[0].color, s[s.length - 1].color]
  90086. };
  90087. }, e.prototype._makeColorGradient = function(n, r) {
  90088. var i = 100, a = [], o = (n[1] - n[0]) / i;
  90089. a.push({
  90090. color: this.getControllerVisual(n[0], "color", r),
  90091. offset: 0
  90092. });
  90093. for (var s = 1; s < i; s++) {
  90094. var l = n[0] + o * s;
  90095. if (l > n[1])
  90096. break;
  90097. a.push({
  90098. color: this.getControllerVisual(l, "color", r),
  90099. offset: s / i
  90100. });
  90101. }
  90102. return a.push({
  90103. color: this.getControllerVisual(n[1], "color", r),
  90104. offset: 1
  90105. }), a;
  90106. }, e.prototype._createBarPoints = function(n, r) {
  90107. var i = this.visualMapModel.itemSize;
  90108. return [[i[0] - r[0], n[0]], [i[0], n[0]], [i[0], n[1]], [i[0] - r[1], n[1]]];
  90109. }, e.prototype._createBarGroup = function(n) {
  90110. var r = this._orient, i = this.visualMapModel.get("inverse");
  90111. return new ct(r === "horizontal" && !i ? {
  90112. scaleX: n === "bottom" ? 1 : -1,
  90113. rotation: Math.PI / 2
  90114. } : r === "horizontal" && i ? {
  90115. scaleX: n === "bottom" ? -1 : 1,
  90116. rotation: -Math.PI / 2
  90117. } : r === "vertical" && !i ? {
  90118. scaleX: n === "left" ? 1 : -1,
  90119. scaleY: -1
  90120. } : {
  90121. scaleX: n === "left" ? 1 : -1
  90122. });
  90123. }, e.prototype._updateHandle = function(n, r) {
  90124. if (this._useHandle) {
  90125. var i = this._shapes, a = this.visualMapModel, o = i.handleThumbs, s = i.handleLabels, l = a.itemSize, u = a.getExtent();
  90126. wft([0, 1], function(c) {
  90127. var f = o[c];
  90128. f.setStyle("fill", r.handlesColor[c]), f.y = n[c];
  90129. var d = ml(n[c], [0, l[1]], u, !0), h = this.getControllerVisual(d, "symbolSize");
  90130. f.scaleX = f.scaleY = h / l[0], f.x = l[0] - h / 2;
  90131. var p = zs(i.handleLabelPoints[c], of(f, this.group));
  90132. s[c].setStyle({
  90133. x: p[0],
  90134. y: p[1],
  90135. text: a.formatValueText(this._dataInterval[c]),
  90136. verticalAlign: "middle",
  90137. align: this._orient === "vertical" ? this._applyTransform("left", i.mainGroup) : "center"
  90138. });
  90139. }, this);
  90140. }
  90141. }, e.prototype._showIndicator = function(n, r, i, a) {
  90142. var o = this.visualMapModel, s = o.getExtent(), l = o.itemSize, u = [0, l[1]], c = this._shapes, f = c.indicator;
  90143. if (f) {
  90144. f.attr("invisible", !1);
  90145. var d = {
  90146. convertOpacityToAlpha: !0
  90147. }, h = this.getControllerVisual(n, "color", d), p = this.getControllerVisual(n, "symbolSize"), v = ml(n, s, u, !0), g = l[0] - p / 2, m = {
  90148. x: f.x,
  90149. y: f.y
  90150. };
  90151. f.y = v, f.x = g;
  90152. var y = zs(c.indicatorLabelPoint, of(f, this.group)), _ = c.indicatorLabel;
  90153. _.attr("invisible", !1);
  90154. var O = this._applyTransform("left", c.mainGroup), S = this._orient, x = S === "horizontal";
  90155. _.setStyle({
  90156. text: (i || "") + o.formatValueText(r),
  90157. verticalAlign: x ? O : "middle",
  90158. align: x ? "center" : O
  90159. });
  90160. var C = {
  90161. x: g,
  90162. y: v,
  90163. style: {
  90164. fill: h
  90165. }
  90166. }, P = {
  90167. style: {
  90168. x: y[0],
  90169. y: y[1]
  90170. }
  90171. };
  90172. if (o.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {
  90173. var $ = {
  90174. duration: 100,
  90175. easing: "cubicInOut",
  90176. additive: !0
  90177. };
  90178. f.x = m.x, f.y = m.y, f.animateTo(C, $), _.animateTo(P, $);
  90179. } else
  90180. f.attr(C), _.attr(P);
  90181. this._firstShowIndicator = !1;
  90182. var T = this._shapes.handleLabels;
  90183. if (T)
  90184. for (var E = 0; E < T.length; E++)
  90185. this.api.enterBlur(T[E]);
  90186. }
  90187. }, e.prototype._enableHoverLinkToSeries = function() {
  90188. var n = this;
  90189. this._shapes.mainGroup.on("mousemove", function(r) {
  90190. if (n._hovering = !0, !n._dragging) {
  90191. var i = n.visualMapModel.itemSize, a = n._applyTransform([r.offsetX, r.offsetY], n._shapes.mainGroup, !0, !0);
  90192. a[1] = jY(jI(0, a[1]), i[1]), n._doHoverLinkToSeries(a[1], 0 <= a[0] && a[0] <= i[0]);
  90193. }
  90194. }).on("mouseout", function() {
  90195. n._hovering = !1, !n._dragging && n._clearHoverLinkToSeries();
  90196. });
  90197. }, e.prototype._enableHoverLinkFromSeries = function() {
  90198. var n = this.api.getZr();
  90199. this.visualMapModel.option.hoverLink ? (n.on("mouseover", this._hoverLinkFromSeriesMouseOver, this), n.on("mouseout", this._hideIndicator, this)) : this._clearHoverLinkFromSeries();
  90200. }, e.prototype._doHoverLinkToSeries = function(n, r) {
  90201. var i = this.visualMapModel, a = i.itemSize;
  90202. if (i.option.hoverLink) {
  90203. var o = [0, a[1]], s = i.getExtent();
  90204. n = jY(jI(o[0], n), o[1]);
  90205. var l = $ft(i, s, o), u = [n - l, n + l], c = ml(n, o, s, !0), f = [ml(u[0], o, s, !0), ml(u[1], o, s, !0)];
  90206. u[0] < o[0] && (f[0] = -1 / 0), u[1] > o[1] && (f[1] = 1 / 0), r && (f[0] === -1 / 0 ? this._showIndicator(c, f[1], "< ", l) : f[1] === 1 / 0 ? this._showIndicator(c, f[0], "> ", l) : this._showIndicator(c, c, "≈ ", l));
  90207. var d = this._hoverLinkDataIndices, h = [];
  90208. (r || UY(i)) && (h = this._hoverLinkDataIndices = i.findTargetDataIndices(f));
  90209. var p = cje(d, h);
  90210. this._dispatchHighDown("downplay", Sw(p[0], i)), this._dispatchHighDown("highlight", Sw(p[1], i));
  90211. }
  90212. }, e.prototype._hoverLinkFromSeriesMouseOver = function(n) {
  90213. var r;
  90214. if (sh(n.target, function(l) {
  90215. var u = ft(l);
  90216. if (u.dataIndex != null)
  90217. return r = u, !0;
  90218. }, !0), !!r) {
  90219. var i = this.ecModel.getSeriesByIndex(r.seriesIndex), a = this.visualMapModel;
  90220. if (a.isTargetSeries(i)) {
  90221. var o = i.getData(r.dataType), s = o.getStore().get(a.getDataDimensionIndex(o), r.dataIndex);
  90222. isNaN(s) || this._showIndicator(s, s);
  90223. }
  90224. }
  90225. }, e.prototype._hideIndicator = function() {
  90226. var n = this._shapes;
  90227. n.indicator && n.indicator.attr("invisible", !0), n.indicatorLabel && n.indicatorLabel.attr("invisible", !0);
  90228. var r = this._shapes.handleLabels;
  90229. if (r)
  90230. for (var i = 0; i < r.length; i++)
  90231. this.api.leaveBlur(r[i]);
  90232. }, e.prototype._clearHoverLinkToSeries = function() {
  90233. this._hideIndicator();
  90234. var n = this._hoverLinkDataIndices;
  90235. this._dispatchHighDown("downplay", Sw(n, this.visualMapModel)), n.length = 0;
  90236. }, e.prototype._clearHoverLinkFromSeries = function() {
  90237. this._hideIndicator();
  90238. var n = this.api.getZr();
  90239. n.off("mouseover", this._hoverLinkFromSeriesMouseOver), n.off("mouseout", this._hideIndicator);
  90240. }, e.prototype._applyTransform = function(n, r, i, a) {
  90241. var o = of(r, a ? null : this.group);
  90242. return Se(n) ? zs(n, o, i) : CP(n, o, i);
  90243. }, e.prototype._dispatchHighDown = function(n, r) {
  90244. r && r.length && this.api.dispatchAction({
  90245. type: n,
  90246. batch: r
  90247. });
  90248. }, e.prototype.dispose = function() {
  90249. this._clearHoverLinkFromSeries(), this._clearHoverLinkToSeries();
  90250. }, e.type = "visualMap.continuous", e;
  90251. }(Ihe)
  90252. );
  90253. function ZY(t, e, n, r) {
  90254. return new pa({
  90255. shape: {
  90256. points: t
  90257. },
  90258. draggable: !!n,
  90259. cursor: e,
  90260. drift: n,
  90261. onmousemove: function(i) {
  90262. Vu(i.event);
  90263. },
  90264. ondragend: r
  90265. });
  90266. }
  90267. function $ft(t, e, n) {
  90268. var r = Cft / 2, i = t.get("hoverLinkDataSize");
  90269. return i && (r = ml(i, e, n, !0) / 2), r;
  90270. }
  90271. function UY(t) {
  90272. var e = t.get("hoverLinkOnHandle");
  90273. return !!(e ?? t.get("realtime"));
  90274. }
  90275. function XY(t) {
  90276. return t === "vertical" ? "ns-resize" : "ew-resize";
  90277. }
  90278. var Aft = {
  90279. type: "selectDataRange",
  90280. event: "dataRangeSelected",
  90281. // FIXME use updateView appears wrong
  90282. update: "update"
  90283. }, Eft = function(t, e) {
  90284. e.eachComponent({
  90285. mainType: "visualMap",
  90286. query: t
  90287. }, function(n) {
  90288. n.setSelected(t.selected);
  90289. });
  90290. }, Mft = [
  90291. {
  90292. createOnAllSeries: !0,
  90293. reset: function(t, e) {
  90294. var n = [];
  90295. return e.eachComponent("visualMap", function(r) {
  90296. var i = t.pipelineContext;
  90297. !r.isTargetSeries(t) || i && i.large || n.push(Jut(r.stateList, r.targetVisuals, We(r.getValueState, r), r.getDataDimensionIndex(t.getData())));
  90298. }), n;
  90299. }
  90300. },
  90301. // Only support color.
  90302. {
  90303. createOnAllSeries: !0,
  90304. reset: function(t, e) {
  90305. var n = t.getData(), r = [];
  90306. e.eachComponent("visualMap", function(i) {
  90307. if (i.isTargetSeries(t)) {
  90308. var a = i.getVisualMeta(We(Ift, null, t, i)) || {
  90309. stops: [],
  90310. outerColors: []
  90311. }, o = i.getDataDimensionIndex(n);
  90312. o >= 0 && (a.dimension = o, r.push(a));
  90313. }
  90314. }), t.getData().setVisual("visualMeta", r);
  90315. }
  90316. }
  90317. ];
  90318. function Ift(t, e, n, r) {
  90319. for (var i = e.targetVisuals[r], a = Kr.prepareVisualTypes(i), o = {
  90320. color: v1(t.getData(), "color")
  90321. // default color.
  90322. }, s = 0, l = a.length; s < l; s++) {
  90323. var u = a[s], c = i[u === "opacity" ? "__alphaForOpacity" : u];
  90324. c && c.applyVisual(n, f, d);
  90325. }
  90326. return o.color;
  90327. function f(h) {
  90328. return o[h];
  90329. }
  90330. function d(h, p) {
  90331. o[h] = p;
  90332. }
  90333. }
  90334. var YY = F;
  90335. function Dft(t) {
  90336. var e = t && t.visualMap;
  90337. Se(e) || (e = e ? [e] : []), YY(e, function(n) {
  90338. if (n) {
  90339. dv(n, "splitList") && !dv(n, "pieces") && (n.pieces = n.splitList, delete n.splitList);
  90340. var r = n.pieces;
  90341. r && Se(r) && YY(r, function(i) {
  90342. nt(i) && (dv(i, "start") && !dv(i, "min") && (i.min = i.start), dv(i, "end") && !dv(i, "max") && (i.max = i.end));
  90343. });
  90344. }
  90345. });
  90346. }
  90347. function dv(t, e) {
  90348. return t && t.hasOwnProperty && t.hasOwnProperty(e);
  90349. }
  90350. var qY = !1;
  90351. function Rhe(t) {
  90352. qY || (qY = !0, t.registerSubTypeDefaulter("visualMap", function(e) {
  90353. return !e.categories && (!(e.pieces ? e.pieces.length > 0 : e.splitNumber > 0) || e.calculable) ? "continuous" : "piecewise";
  90354. }), t.registerAction(Aft, Eft), F(Mft, function(e) {
  90355. t.registerVisual(t.PRIORITY.VISUAL.COMPONENT, e);
  90356. }), t.registerPreprocessor(Dft));
  90357. }
  90358. function khe(t) {
  90359. t.registerComponentModel(xft), t.registerComponentView(Pft), Rhe(t);
  90360. }
  90361. var Rft = (
  90362. /** @class */
  90363. function(t) {
  90364. le(e, t);
  90365. function e() {
  90366. var n = t !== null && t.apply(this, arguments) || this;
  90367. return n.type = e.type, n._pieceList = [], n;
  90368. }
  90369. return e.prototype.optionUpdated = function(n, r) {
  90370. t.prototype.optionUpdated.apply(this, arguments), this.resetExtent();
  90371. var i = this._mode = this._determineMode();
  90372. this._pieceList = [], kft[this._mode].call(this, this._pieceList), this._resetSelected(n, r);
  90373. var a = this.option.categories;
  90374. this.resetVisual(function(o, s) {
  90375. i === "categories" ? (o.mappingMethod = "category", o.categories = ot(a)) : (o.dataExtent = this.getExtent(), o.mappingMethod = "piecewise", o.pieceList = Ce(this._pieceList, function(l) {
  90376. return l = ot(l), s !== "inRange" && (l.visual = null), l;
  90377. }));
  90378. });
  90379. }, e.prototype.completeVisualOption = function() {
  90380. var n = this.option, r = {}, i = Kr.listVisualTypes(), a = this.isCategory();
  90381. F(n.pieces, function(s) {
  90382. F(i, function(l) {
  90383. s.hasOwnProperty(l) && (r[l] = 1);
  90384. });
  90385. }), F(r, function(s, l) {
  90386. var u = !1;
  90387. F(this.stateList, function(c) {
  90388. u = u || o(n, c, l) || o(n.target, c, l);
  90389. }, this), !u && F(this.stateList, function(c) {
  90390. (n[c] || (n[c] = {}))[l] = Mhe.get(l, c === "inRange" ? "active" : "inactive", a);
  90391. });
  90392. }, this);
  90393. function o(s, l, u) {
  90394. return s && s[l] && s[l].hasOwnProperty(u);
  90395. }
  90396. t.prototype.completeVisualOption.apply(this, arguments);
  90397. }, e.prototype._resetSelected = function(n, r) {
  90398. var i = this.option, a = this._pieceList, o = (r ? i : n).selected || {};
  90399. if (i.selected = o, F(a, function(l, u) {
  90400. var c = this.getSelectedMapKey(l);
  90401. o.hasOwnProperty(c) || (o[c] = !0);
  90402. }, this), i.selectedMode === "single") {
  90403. var s = !1;
  90404. F(a, function(l, u) {
  90405. var c = this.getSelectedMapKey(l);
  90406. o[c] && (s ? o[c] = !1 : s = !0);
  90407. }, this);
  90408. }
  90409. }, e.prototype.getItemSymbol = function() {
  90410. return this.get("itemSymbol");
  90411. }, e.prototype.getSelectedMapKey = function(n) {
  90412. return this._mode === "categories" ? n.value + "" : n.index + "";
  90413. }, e.prototype.getPieceList = function() {
  90414. return this._pieceList;
  90415. }, e.prototype._determineMode = function() {
  90416. var n = this.option;
  90417. return n.pieces && n.pieces.length > 0 ? "pieces" : this.option.categories ? "categories" : "splitNumber";
  90418. }, e.prototype.setSelected = function(n) {
  90419. this.option.selected = ot(n);
  90420. }, e.prototype.getValueState = function(n) {
  90421. var r = Kr.findPieceIndex(n, this._pieceList);
  90422. return r != null && this.option.selected[this.getSelectedMapKey(this._pieceList[r])] ? "inRange" : "outOfRange";
  90423. }, e.prototype.findTargetDataIndices = function(n) {
  90424. var r = [], i = this._pieceList;
  90425. return this.eachTargetSeries(function(a) {
  90426. var o = [], s = a.getData();
  90427. s.each(this.getDataDimensionIndex(s), function(l, u) {
  90428. var c = Kr.findPieceIndex(l, i);
  90429. c === n && o.push(u);
  90430. }, this), r.push({
  90431. seriesId: a.id,
  90432. dataIndex: o
  90433. });
  90434. }, this), r;
  90435. }, e.prototype.getRepresentValue = function(n) {
  90436. var r;
  90437. if (this.isCategory())
  90438. r = n.value;
  90439. else if (n.value != null)
  90440. r = n.value;
  90441. else {
  90442. var i = n.interval || [];
  90443. r = i[0] === -1 / 0 && i[1] === 1 / 0 ? 0 : (i[0] + i[1]) / 2;
  90444. }
  90445. return r;
  90446. }, e.prototype.getVisualMeta = function(n) {
  90447. if (this.isCategory())
  90448. return;
  90449. var r = [], i = ["", ""], a = this;
  90450. function o(c, f) {
  90451. var d = a.getRepresentValue({
  90452. interval: c
  90453. });
  90454. f || (f = a.getValueState(d));
  90455. var h = n(d, f);
  90456. c[0] === -1 / 0 ? i[0] = h : c[1] === 1 / 0 ? i[1] = h : r.push({
  90457. value: c[0],
  90458. color: h
  90459. }, {
  90460. value: c[1],
  90461. color: h
  90462. });
  90463. }
  90464. var s = this._pieceList.slice();
  90465. if (!s.length)
  90466. s.push({
  90467. interval: [-1 / 0, 1 / 0]
  90468. });
  90469. else {
  90470. var l = s[0].interval[0];
  90471. l !== -1 / 0 && s.unshift({
  90472. interval: [-1 / 0, l]
  90473. }), l = s[s.length - 1].interval[1], l !== 1 / 0 && s.push({
  90474. interval: [l, 1 / 0]
  90475. });
  90476. }
  90477. var u = -1 / 0;
  90478. return F(s, function(c) {
  90479. var f = c.interval;
  90480. f && (f[0] > u && o([u, f[0]], "outOfRange"), o(f.slice()), u = f[1]);
  90481. }, this), {
  90482. stops: r,
  90483. outerColors: i
  90484. };
  90485. }, e.type = "visualMap.piecewise", e.defaultOption = Bf(mT.defaultOption, {
  90486. selected: null,
  90487. minOpen: !1,
  90488. maxOpen: !1,
  90489. align: "auto",
  90490. itemWidth: 20,
  90491. itemHeight: 14,
  90492. itemSymbol: "roundRect",
  90493. pieces: null,
  90494. categories: null,
  90495. splitNumber: 5,
  90496. selectedMode: "multiple",
  90497. itemGap: 10,
  90498. hoverLink: !0
  90499. // Enable hover highlight.
  90500. }), e;
  90501. }(mT)
  90502. ), kft = {
  90503. splitNumber: function(t) {
  90504. var e = this.option, n = Math.min(e.precision, 20), r = this.getExtent(), i = e.splitNumber;
  90505. i = Math.max(parseInt(i, 10), 1), e.splitNumber = i;
  90506. for (var a = (r[1] - r[0]) / i; +a.toFixed(n) !== a && n < 5; )
  90507. n++;
  90508. e.precision = n, a = +a.toFixed(n), e.minOpen && t.push({
  90509. interval: [-1 / 0, r[0]],
  90510. close: [0, 0]
  90511. });
  90512. for (var o = 0, s = r[0]; o < i; s += a, o++) {
  90513. var l = o === i - 1 ? r[1] : s + a;
  90514. t.push({
  90515. interval: [s, l],
  90516. close: [1, 1]
  90517. });
  90518. }
  90519. e.maxOpen && t.push({
  90520. interval: [r[1], 1 / 0],
  90521. close: [0, 0]
  90522. }), Sk(t), F(t, function(u, c) {
  90523. u.index = c, u.text = this.formatValueText(u.interval);
  90524. }, this);
  90525. },
  90526. categories: function(t) {
  90527. var e = this.option;
  90528. F(e.categories, function(n) {
  90529. t.push({
  90530. text: this.formatValueText(n, !0),
  90531. value: n
  90532. });
  90533. }, this), KY(e, t);
  90534. },
  90535. pieces: function(t) {
  90536. var e = this.option;
  90537. F(e.pieces, function(n, r) {
  90538. nt(n) || (n = {
  90539. value: n
  90540. });
  90541. var i = {
  90542. text: "",
  90543. index: r
  90544. };
  90545. if (n.label != null && (i.text = n.label), n.hasOwnProperty("value")) {
  90546. var a = i.value = n.value;
  90547. i.interval = [a, a], i.close = [1, 1];
  90548. } else {
  90549. for (var o = i.interval = [], s = i.close = [0, 0], l = [1, 0, 1], u = [-1 / 0, 1 / 0], c = [], f = 0; f < 2; f++) {
  90550. for (var d = [["gte", "gt", "min"], ["lte", "lt", "max"]][f], h = 0; h < 3 && o[f] == null; h++)
  90551. o[f] = n[d[h]], s[f] = l[h], c[f] = h === 2;
  90552. o[f] == null && (o[f] = u[f]);
  90553. }
  90554. c[0] && o[1] === 1 / 0 && (s[0] = 0), c[1] && o[0] === -1 / 0 && (s[1] = 0), process.env.NODE_ENV !== "production" && o[0] > o[1] && console.warn("Piece " + r + "is illegal: " + o + " lower bound should not greater then uppper bound."), o[0] === o[1] && s[0] && s[1] && (i.value = o[0]);
  90555. }
  90556. i.visual = Kr.retrieveVisuals(n), t.push(i);
  90557. }, this), KY(e, t), Sk(t), F(t, function(n) {
  90558. var r = n.close, i = [["<", "≤"][r[1]], [">", "≥"][r[0]]];
  90559. n.text = n.text || this.formatValueText(n.value != null ? n.value : n.interval, !1, i);
  90560. }, this);
  90561. }
  90562. };
  90563. function KY(t, e) {
  90564. var n = t.inverse;
  90565. (t.orient === "vertical" ? !n : n) && e.reverse();
  90566. }
  90567. var Lft = (
  90568. /** @class */
  90569. function(t) {
  90570. le(e, t);
  90571. function e() {
  90572. var n = t !== null && t.apply(this, arguments) || this;
  90573. return n.type = e.type, n;
  90574. }
  90575. return e.prototype.doRender = function() {
  90576. var n = this.group;
  90577. n.removeAll();
  90578. var r = this.visualMapModel, i = r.get("textGap"), a = r.textStyleModel, o = a.getFont(), s = a.getTextColor(), l = this._getItemAlign(), u = r.itemSize, c = this._getViewData(), f = c.endsText, d = Or(r.get("showLabel", !0), !f);
  90579. f && this._renderEndsText(n, f[0], u, d, l), F(c.viewPieceList, function(h) {
  90580. var p = h.piece, v = new ct();
  90581. v.onclick = We(this._onItemClick, this, p), this._enableHoverLink(v, h.indexInModelPieceList);
  90582. var g = r.getRepresentValue(p);
  90583. if (this._createItemSymbol(v, g, [0, 0, u[0], u[1]]), d) {
  90584. var m = this.visualMapModel.getValueState(g);
  90585. v.add(new jt({
  90586. style: {
  90587. x: l === "right" ? -i : u[0] + i,
  90588. y: u[1] / 2,
  90589. text: p.text,
  90590. verticalAlign: "middle",
  90591. align: l,
  90592. font: o,
  90593. fill: s,
  90594. opacity: m === "outOfRange" ? 0.5 : 1
  90595. }
  90596. }));
  90597. }
  90598. n.add(v);
  90599. }, this), f && this._renderEndsText(n, f[1], u, d, l), Th(r.get("orient"), n, r.get("itemGap")), this.renderBackground(n), this.positionGroup(n);
  90600. }, e.prototype._enableHoverLink = function(n, r) {
  90601. var i = this;
  90602. n.on("mouseover", function() {
  90603. return a("highlight");
  90604. }).on("mouseout", function() {
  90605. return a("downplay");
  90606. });
  90607. var a = function(o) {
  90608. var s = i.visualMapModel;
  90609. s.option.hoverLink && i.api.dispatchAction({
  90610. type: o,
  90611. batch: Sw(s.findTargetDataIndices(r), s)
  90612. });
  90613. };
  90614. }, e.prototype._getItemAlign = function() {
  90615. var n = this.visualMapModel, r = n.option;
  90616. if (r.orient === "vertical")
  90617. return Dhe(n, this.api, n.itemSize);
  90618. var i = r.align;
  90619. return (!i || i === "auto") && (i = "left"), i;
  90620. }, e.prototype._renderEndsText = function(n, r, i, a, o) {
  90621. if (r) {
  90622. var s = new ct(), l = this.visualMapModel.textStyleModel;
  90623. s.add(new jt({
  90624. style: Mn(l, {
  90625. x: a ? o === "right" ? i[0] : 0 : i[0] / 2,
  90626. y: i[1] / 2,
  90627. verticalAlign: "middle",
  90628. align: a ? o : "center",
  90629. text: r
  90630. })
  90631. })), n.add(s);
  90632. }
  90633. }, e.prototype._getViewData = function() {
  90634. var n = this.visualMapModel, r = Ce(n.getPieceList(), function(s, l) {
  90635. return {
  90636. piece: s,
  90637. indexInModelPieceList: l
  90638. };
  90639. }), i = n.get("text"), a = n.get("orient"), o = n.get("inverse");
  90640. return (a === "horizontal" ? o : !o) ? r.reverse() : i && (i = i.slice().reverse()), {
  90641. viewPieceList: r,
  90642. endsText: i
  90643. };
  90644. }, e.prototype._createItemSymbol = function(n, r, i) {
  90645. n.add(wr(
  90646. // symbol will be string
  90647. this.getControllerVisual(r, "symbol"),
  90648. i[0],
  90649. i[1],
  90650. i[2],
  90651. i[3],
  90652. // color will be string
  90653. this.getControllerVisual(r, "color")
  90654. ));
  90655. }, e.prototype._onItemClick = function(n) {
  90656. var r = this.visualMapModel, i = r.option, a = i.selectedMode;
  90657. if (a) {
  90658. var o = ot(i.selected), s = r.getSelectedMapKey(n);
  90659. a === "single" || a === !0 ? (o[s] = !0, F(o, function(l, u) {
  90660. o[u] = u === s;
  90661. })) : o[s] = !o[s], this.api.dispatchAction({
  90662. type: "selectDataRange",
  90663. from: this.uid,
  90664. visualMapId: this.visualMapModel.id,
  90665. selected: o
  90666. });
  90667. }
  90668. }, e.type = "visualMap.piecewise", e;
  90669. }(Ihe)
  90670. );
  90671. function Lhe(t) {
  90672. t.registerComponentModel(Rft), t.registerComponentView(Lft), Rhe(t);
  90673. }
  90674. function Nft(t) {
  90675. Mt(khe), Mt(Lhe);
  90676. }
  90677. var Bft = {
  90678. label: {
  90679. enabled: !0
  90680. },
  90681. decal: {
  90682. show: !1
  90683. }
  90684. }, JY = Ut(), zft = {};
  90685. function Vft(t, e) {
  90686. var n = t.getModel("aria");
  90687. if (!n.get("enabled"))
  90688. return;
  90689. var r = ot(Bft);
  90690. mt(r.label, t.getLocaleModel().get("aria"), !1), mt(n.option, r, !1), i(), a();
  90691. function i() {
  90692. var u = n.getModel("decal"), c = u.get("show");
  90693. if (c) {
  90694. var f = Ze();
  90695. t.eachSeries(function(d) {
  90696. if (!d.isColorBySeries()) {
  90697. var h = f.get(d.type);
  90698. h || (h = {}, f.set(d.type, h)), JY(d).scope = h;
  90699. }
  90700. }), t.eachRawSeries(function(d) {
  90701. if (t.isSeriesFiltered(d))
  90702. return;
  90703. if (qe(d.enableAriaDecal)) {
  90704. d.enableAriaDecal();
  90705. return;
  90706. }
  90707. var h = d.getData();
  90708. if (d.isColorBySeries()) {
  90709. var y = zk(d.ecModel, d.name, zft, t.getSeriesCount()), _ = h.getVisual("decal");
  90710. h.setVisual("decal", O(_, y));
  90711. } else {
  90712. var p = d.getRawData(), v = {}, g = JY(d).scope;
  90713. h.each(function(S) {
  90714. var x = h.getRawIndex(S);
  90715. v[x] = S;
  90716. });
  90717. var m = p.count();
  90718. p.each(function(S) {
  90719. var x = v[S], C = p.getName(S) || S + "", P = zk(d.ecModel, C, g, m), $ = h.getItemVisual(x, "decal");
  90720. h.setItemVisual(x, "decal", O($, P));
  90721. });
  90722. }
  90723. function O(S, x) {
  90724. var C = S ? _e(_e({}, x), S) : x;
  90725. return C.dirty = !0, C;
  90726. }
  90727. });
  90728. }
  90729. }
  90730. function a() {
  90731. var u = e.getZr().dom;
  90732. if (u) {
  90733. var c = t.getLocaleModel().get("aria"), f = n.getModel("label");
  90734. if (f.option = it(f.option, c), !!f.get("enabled")) {
  90735. if (f.get("description")) {
  90736. u.setAttribute("aria-label", f.get("description"));
  90737. return;
  90738. }
  90739. var d = t.getSeriesCount(), h = f.get(["data", "maxCount"]) || 10, p = f.get(["series", "maxCount"]) || 10, v = Math.min(d, p), g;
  90740. if (!(d < 1)) {
  90741. var m = s();
  90742. if (m) {
  90743. var y = f.get(["general", "withTitle"]);
  90744. g = o(y, {
  90745. title: m
  90746. });
  90747. } else
  90748. g = f.get(["general", "withoutTitle"]);
  90749. var _ = [], O = d > 1 ? f.get(["series", "multiple", "prefix"]) : f.get(["series", "single", "prefix"]);
  90750. g += o(O, {
  90751. seriesCount: d
  90752. }), t.eachSeries(function(P, $) {
  90753. if ($ < v) {
  90754. var T = void 0, E = P.get("name"), M = E ? "withName" : "withoutName";
  90755. T = d > 1 ? f.get(["series", "multiple", M]) : f.get(["series", "single", M]), T = o(T, {
  90756. seriesId: P.seriesIndex,
  90757. seriesName: P.get("name"),
  90758. seriesType: l(P.subType)
  90759. });
  90760. var R = P.getData();
  90761. if (R.count() > h) {
  90762. var N = f.get(["data", "partialData"]);
  90763. T += o(N, {
  90764. displayCnt: h
  90765. });
  90766. } else
  90767. T += f.get(["data", "allData"]);
  90768. for (var I = f.get(["data", "separator", "middle"]), B = f.get(["data", "separator", "end"]), Q = [], W = 0; W < R.count(); W++)
  90769. if (W < h) {
  90770. var H = R.getName(W), U = R.getValues(W), j = f.get(["data", H ? "withName" : "withoutName"]);
  90771. Q.push(o(j, {
  90772. name: H,
  90773. value: U.join(I)
  90774. }));
  90775. }
  90776. T += Q.join(I) + B, _.push(T);
  90777. }
  90778. });
  90779. var S = f.getModel(["series", "multiple", "separator"]), x = S.get("middle"), C = S.get("end");
  90780. g += _.join(x) + C, u.setAttribute("aria-label", g);
  90781. }
  90782. }
  90783. }
  90784. }
  90785. function o(u, c) {
  90786. if (!Ve(u))
  90787. return u;
  90788. var f = u;
  90789. return F(c, function(d, h) {
  90790. f = f.replace(new RegExp("\\{\\s*" + h + "\\s*\\}", "g"), d);
  90791. }), f;
  90792. }
  90793. function s() {
  90794. var u = t.get("title");
  90795. return u && u.length && (u = u[0]), u && u.text;
  90796. }
  90797. function l(u) {
  90798. var c = t.getLocaleModel().get(["series", "typeNames"]);
  90799. return c[u] || c.chart;
  90800. }
  90801. }
  90802. function Fft(t) {
  90803. if (!(!t || !t.aria)) {
  90804. var e = t.aria;
  90805. e.show != null && (e.enabled = e.show), e.label = e.label || {}, F(["description", "general", "series", "data"], function(n) {
  90806. e[n] != null && (e.label[n] = e[n]);
  90807. });
  90808. }
  90809. }
  90810. function Wft(t) {
  90811. t.registerPreprocessor(Fft), t.registerVisual(t.PRIORITY.VISUAL.ARIA, Vft);
  90812. }
  90813. var eq = {
  90814. value: "eq",
  90815. // PENDING: not good for literal semantic?
  90816. "<": "lt",
  90817. "<=": "lte",
  90818. ">": "gt",
  90819. ">=": "gte",
  90820. "=": "eq",
  90821. "!=": "ne",
  90822. "<>": "ne"
  90823. // Might be misleading for sake of the difference between '==' and '===',
  90824. // so don't support them.
  90825. // '==': 'eq',
  90826. // '===': 'seq',
  90827. // '!==': 'sne'
  90828. // PENDING: Whether support some common alias "ge", "le", "neq"?
  90829. // ge: 'gte',
  90830. // le: 'lte',
  90831. // neq: 'ne',
  90832. }, Qft = (
  90833. /** @class */
  90834. function() {
  90835. function t(e) {
  90836. var n = this._condVal = Ve(e) ? new RegExp(e) : y5(e) ? e : null;
  90837. if (n == null) {
  90838. var r = "";
  90839. process.env.NODE_ENV !== "production" && (r = fa("Illegal regexp", e, "in")), fn(r);
  90840. }
  90841. }
  90842. return t.prototype.evaluate = function(e) {
  90843. var n = typeof e;
  90844. return Ve(n) ? this._condVal.test(e) : Kt(n) ? this._condVal.test(e + "") : !1;
  90845. }, t;
  90846. }()
  90847. ), Hft = (
  90848. /** @class */
  90849. function() {
  90850. function t() {
  90851. }
  90852. return t.prototype.evaluate = function() {
  90853. return this.value;
  90854. }, t;
  90855. }()
  90856. ), Gft = (
  90857. /** @class */
  90858. function() {
  90859. function t() {
  90860. }
  90861. return t.prototype.evaluate = function() {
  90862. for (var e = this.children, n = 0; n < e.length; n++)
  90863. if (!e[n].evaluate())
  90864. return !1;
  90865. return !0;
  90866. }, t;
  90867. }()
  90868. ), jft = (
  90869. /** @class */
  90870. function() {
  90871. function t() {
  90872. }
  90873. return t.prototype.evaluate = function() {
  90874. for (var e = this.children, n = 0; n < e.length; n++)
  90875. if (e[n].evaluate())
  90876. return !0;
  90877. return !1;
  90878. }, t;
  90879. }()
  90880. ), Zft = (
  90881. /** @class */
  90882. function() {
  90883. function t() {
  90884. }
  90885. return t.prototype.evaluate = function() {
  90886. return !this.child.evaluate();
  90887. }, t;
  90888. }()
  90889. ), Uft = (
  90890. /** @class */
  90891. function() {
  90892. function t() {
  90893. }
  90894. return t.prototype.evaluate = function() {
  90895. for (var e = !!this.valueParser, n = this.getValue, r = n(this.valueGetterParam), i = e ? this.valueParser(r) : null, a = 0; a < this.subCondList.length; a++)
  90896. if (!this.subCondList[a].evaluate(e ? i : r))
  90897. return !1;
  90898. return !0;
  90899. }, t;
  90900. }()
  90901. );
  90902. function M6(t, e) {
  90903. if (t === !0 || t === !1) {
  90904. var n = new Hft();
  90905. return n.value = t, n;
  90906. }
  90907. var r = "";
  90908. return Nhe(t) || (process.env.NODE_ENV !== "production" && (r = fa("Illegal config. Expect a plain object but actually", t)), fn(r)), t.and ? tq("and", t, e) : t.or ? tq("or", t, e) : t.not ? Xft(t, e) : Yft(t, e);
  90909. }
  90910. function tq(t, e, n) {
  90911. var r = e[t], i = "";
  90912. process.env.NODE_ENV !== "production" && (i = fa('"and"/"or" condition should only be `' + t + ": [...]` and must not be empty array.", "Illegal condition:", e)), Se(r) || fn(i), r.length || fn(i);
  90913. var a = t === "and" ? new Gft() : new jft();
  90914. return a.children = Ce(r, function(o) {
  90915. return M6(o, n);
  90916. }), a.children.length || fn(i), a;
  90917. }
  90918. function Xft(t, e) {
  90919. var n = t.not, r = "";
  90920. process.env.NODE_ENV !== "production" && (r = fa('"not" condition should only be `not: {}`.', "Illegal condition:", t)), Nhe(n) || fn(r);
  90921. var i = new Zft();
  90922. return i.child = M6(n, e), i.child || fn(r), i;
  90923. }
  90924. function Yft(t, e) {
  90925. for (var n = "", r = e.prepareGetValue(t), i = [], a = kt(t), o = t.parser, s = o ? pue(o) : null, l = 0; l < a.length; l++) {
  90926. var u = a[l];
  90927. if (!(u === "parser" || e.valueGetterAttrMap.get(u))) {
  90928. var c = Qe(eq, u) ? eq[u] : u, f = t[u], d = s ? s(f) : f, h = yXe(c, d) || c === "reg" && new Qft(d);
  90929. h || (process.env.NODE_ENV !== "production" && (n = fa('Illegal relational operation: "' + u + '" in condition:', t)), fn(n)), i.push(h);
  90930. }
  90931. }
  90932. i.length || (process.env.NODE_ENV !== "production" && (n = fa("Relational condition must have at least one operator.", "Illegal condition:", t)), fn(n));
  90933. var p = new Uft();
  90934. return p.valueGetterParam = r, p.valueParser = s, p.getValue = e.getValue, p.subCondList = i, p;
  90935. }
  90936. function Nhe(t) {
  90937. return nt(t) && !Pi(t);
  90938. }
  90939. var qft = (
  90940. /** @class */
  90941. function() {
  90942. function t(e, n) {
  90943. this._cond = M6(e, n);
  90944. }
  90945. return t.prototype.evaluate = function() {
  90946. return this._cond.evaluate();
  90947. }, t;
  90948. }()
  90949. );
  90950. function Kft(t, e) {
  90951. return new qft(t, e);
  90952. }
  90953. var Jft = {
  90954. type: "echarts:filter",
  90955. // PENDING: enhance to filter by index rather than create new data
  90956. transform: function(t) {
  90957. for (var e = t.upstream, n, r = Kft(t.config, {
  90958. valueGetterAttrMap: Ze({
  90959. dimension: !0
  90960. }),
  90961. prepareGetValue: function(s) {
  90962. var l = "", u = s.dimension;
  90963. Qe(s, "dimension") || (process.env.NODE_ENV !== "production" && (l = fa('Relation condition must has prop "dimension" specified.', "Illegal condition:", s)), fn(l));
  90964. var c = e.getDimensionInfo(u);
  90965. return c || (process.env.NODE_ENV !== "production" && (l = fa("Can not find dimension info via: " + u + `.
  90966. `, "Existing dimensions: ", e.cloneAllDimensionInfo(), `.
  90967. `, "Illegal condition:", s, `.
  90968. `)), fn(l)), {
  90969. dimIdx: c.index
  90970. };
  90971. },
  90972. getValue: function(s) {
  90973. return e.retrieveValueFromItem(n, s.dimIdx);
  90974. }
  90975. }), i = [], a = 0, o = e.count(); a < o; a++)
  90976. n = e.getRawDataItem(a), r.evaluate() && i.push(n);
  90977. return {
  90978. data: i
  90979. };
  90980. }
  90981. }, zL = "";
  90982. process.env.NODE_ENV !== "production" && (zL = ["Valid config is like:", '{ dimension: "age", order: "asc" }', 'or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));
  90983. var edt = {
  90984. type: "echarts:sort",
  90985. transform: function(t) {
  90986. var e = t.upstream, n = t.config, r = "", i = Cn(n);
  90987. i.length || (process.env.NODE_ENV !== "production" && (r = "Empty `config` in sort transform."), fn(r));
  90988. var a = [];
  90989. F(i, function(c) {
  90990. var f = c.dimension, d = c.order, h = c.parser, p = c.incomparable;
  90991. if (f == null && (process.env.NODE_ENV !== "production" && (r = 'Sort transform config must has "dimension" specified.' + zL), fn(r)), d !== "asc" && d !== "desc" && (process.env.NODE_ENV !== "production" && (r = 'Sort transform config must has "order" specified.' + zL), fn(r)), p && p !== "min" && p !== "max") {
  90992. var v = "";
  90993. process.env.NODE_ENV !== "production" && (v = 'incomparable must be "min" or "max" rather than "' + p + '".'), fn(v);
  90994. }
  90995. if (d !== "asc" && d !== "desc") {
  90996. var g = "";
  90997. process.env.NODE_ENV !== "production" && (g = 'order must be "asc" or "desc" rather than "' + d + '".'), fn(g);
  90998. }
  90999. var m = e.getDimensionInfo(f);
  91000. m || (process.env.NODE_ENV !== "production" && (r = fa("Can not find dimension info via: " + f + `.
  91001. `, "Existing dimensions: ", e.cloneAllDimensionInfo(), `.
  91002. `, "Illegal config:", c, `.
  91003. `)), fn(r));
  91004. var y = h ? pue(h) : null;
  91005. h && !y && (process.env.NODE_ENV !== "production" && (r = fa("Invalid parser name " + h + `.
  91006. `, "Illegal config:", c, `.
  91007. `)), fn(r)), a.push({
  91008. dimIdx: m.index,
  91009. parser: y,
  91010. comparator: new gue(d, p)
  91011. });
  91012. });
  91013. var o = e.sourceFormat;
  91014. o !== Hi && o !== ps && (process.env.NODE_ENV !== "production" && (r = 'sourceFormat "' + o + '" is not supported yet'), fn(r));
  91015. for (var s = [], l = 0, u = e.count(); l < u; l++)
  91016. s.push(e.getRawDataItem(l));
  91017. return s.sort(function(c, f) {
  91018. for (var d = 0; d < a.length; d++) {
  91019. var h = a[d], p = e.retrieveValueFromItem(c, h.dimIdx), v = e.retrieveValueFromItem(f, h.dimIdx);
  91020. h.parser && (p = h.parser(p), v = h.parser(v));
  91021. var g = h.comparator.evaluate(p, v);
  91022. if (g !== 0)
  91023. return g;
  91024. }
  91025. return 0;
  91026. }), {
  91027. data: s
  91028. };
  91029. }
  91030. };
  91031. function tdt(t) {
  91032. t.registerTransform(Jft), t.registerTransform(edt);
  91033. }
  91034. var ndt = (
  91035. /** @class */
  91036. function(t) {
  91037. le(e, t);
  91038. function e() {
  91039. var n = t !== null && t.apply(this, arguments) || this;
  91040. return n.type = "dataset", n;
  91041. }
  91042. return e.prototype.init = function(n, r, i) {
  91043. t.prototype.init.call(this, n, r, i), this._sourceManager = new _ue(this), tj(this);
  91044. }, e.prototype.mergeOption = function(n, r) {
  91045. t.prototype.mergeOption.call(this, n, r), tj(this);
  91046. }, e.prototype.optionUpdated = function() {
  91047. this._sourceManager.dirty();
  91048. }, e.prototype.getSourceManager = function() {
  91049. return this._sourceManager;
  91050. }, e.type = "dataset", e.defaultOption = {
  91051. seriesLayoutBy: Nl
  91052. }, e;
  91053. }(At)
  91054. ), rdt = (
  91055. /** @class */
  91056. function(t) {
  91057. le(e, t);
  91058. function e() {
  91059. var n = t !== null && t.apply(this, arguments) || this;
  91060. return n.type = "dataset", n;
  91061. }
  91062. return e.type = "dataset", e;
  91063. }(Ln)
  91064. );
  91065. function idt(t) {
  91066. t.registerComponentModel(ndt), t.registerComponentView(rdt);
  91067. }
  91068. var fl = jl.CMD;
  91069. function kv(t, e) {
  91070. return Math.abs(t - e) < 1e-5;
  91071. }
  91072. function VL(t) {
  91073. var e = t.data, n = t.len(), r = [], i, a = 0, o = 0, s = 0, l = 0;
  91074. function u(R, N) {
  91075. i && i.length > 2 && r.push(i), i = [R, N];
  91076. }
  91077. function c(R, N, I, B) {
  91078. kv(R, I) && kv(N, B) || i.push(R, N, I, B, I, B);
  91079. }
  91080. function f(R, N, I, B, Q, W) {
  91081. var H = Math.abs(N - R), U = Math.tan(H / 4) * 4 / 3, j = N < R ? -1 : 1, Y = Math.cos(R), ne = Math.sin(R), fe = Math.cos(N), ue = Math.sin(N), ye = Y * Q + I, se = ne * W + B, he = fe * Q + I, re = ue * W + B, q = Q * U * j, K = W * U * j;
  91082. i.push(ye - q * ne, se + K * Y, he + q * ue, re - K * fe, he, re);
  91083. }
  91084. for (var d, h, p, v, g = 0; g < n; ) {
  91085. var m = e[g++], y = g === 1;
  91086. switch (y && (a = e[g], o = e[g + 1], s = a, l = o, (m === fl.L || m === fl.C || m === fl.Q) && (i = [s, l])), m) {
  91087. case fl.M:
  91088. a = s = e[g++], o = l = e[g++], u(s, l);
  91089. break;
  91090. case fl.L:
  91091. d = e[g++], h = e[g++], c(a, o, d, h), a = d, o = h;
  91092. break;
  91093. case fl.C:
  91094. i.push(e[g++], e[g++], e[g++], e[g++], a = e[g++], o = e[g++]);
  91095. break;
  91096. case fl.Q:
  91097. d = e[g++], h = e[g++], p = e[g++], v = e[g++], i.push(a + 2 / 3 * (d - a), o + 2 / 3 * (h - o), p + 2 / 3 * (d - p), v + 2 / 3 * (h - v), p, v), a = p, o = v;
  91098. break;
  91099. case fl.A:
  91100. var _ = e[g++], O = e[g++], S = e[g++], x = e[g++], C = e[g++], P = e[g++] + C;
  91101. g += 1;
  91102. var $ = !e[g++];
  91103. d = Math.cos(C) * S + _, h = Math.sin(C) * x + O, y ? (s = d, l = h, u(s, l)) : c(a, o, d, h), a = Math.cos(P) * S + _, o = Math.sin(P) * x + O;
  91104. for (var T = ($ ? -1 : 1) * Math.PI / 2, E = C; $ ? E > P : E < P; E += T) {
  91105. var M = $ ? Math.max(E + T, P) : Math.min(E + T, P);
  91106. f(E, M, _, O, S, x);
  91107. }
  91108. break;
  91109. case fl.R:
  91110. s = a = e[g++], l = o = e[g++], d = s + e[g++], h = l + e[g++], u(d, l), c(d, l, d, h), c(d, h, s, h), c(s, h, s, l), c(s, l, d, l);
  91111. break;
  91112. case fl.Z:
  91113. i && c(a, o, s, l), a = s, o = l;
  91114. break;
  91115. }
  91116. }
  91117. return i && i.length > 2 && r.push(i), r;
  91118. }
  91119. function FL(t, e, n, r, i, a, o, s, l, u) {
  91120. if (kv(t, n) && kv(e, r) && kv(i, o) && kv(a, s)) {
  91121. l.push(o, s);
  91122. return;
  91123. }
  91124. var c = 2 / u, f = c * c, d = o - t, h = s - e, p = Math.sqrt(d * d + h * h);
  91125. d /= p, h /= p;
  91126. var v = n - t, g = r - e, m = i - o, y = a - s, _ = v * v + g * g, O = m * m + y * y;
  91127. if (_ < f && O < f) {
  91128. l.push(o, s);
  91129. return;
  91130. }
  91131. var S = d * v + h * g, x = -d * m - h * y, C = _ - S * S, P = O - x * x;
  91132. if (C < f && S >= 0 && P < f && x >= 0) {
  91133. l.push(o, s);
  91134. return;
  91135. }
  91136. var $ = [], T = [];
  91137. yf(t, n, i, o, 0.5, $), yf(e, r, a, s, 0.5, T), FL($[0], T[0], $[1], T[1], $[2], T[2], $[3], T[3], l, u), FL($[4], T[4], $[5], T[5], $[6], T[6], $[7], T[7], l, u);
  91138. }
  91139. function adt(t, e) {
  91140. var n = VL(t), r = [];
  91141. e = e || 1;
  91142. for (var i = 0; i < n.length; i++) {
  91143. var a = n[i], o = [], s = a[0], l = a[1];
  91144. o.push(s, l);
  91145. for (var u = 2; u < a.length; ) {
  91146. var c = a[u++], f = a[u++], d = a[u++], h = a[u++], p = a[u++], v = a[u++];
  91147. FL(s, l, c, f, d, h, p, v, o, e), s = p, l = v;
  91148. }
  91149. r.push(o);
  91150. }
  91151. return r;
  91152. }
  91153. function Bhe(t, e, n) {
  91154. var r = t[e], i = t[1 - e], a = Math.abs(r / i), o = Math.ceil(Math.sqrt(a * n)), s = Math.floor(n / o);
  91155. s === 0 && (s = 1, o = n);
  91156. for (var l = [], u = 0; u < o; u++)
  91157. l.push(s);
  91158. var c = o * s, f = n - c;
  91159. if (f > 0)
  91160. for (var u = 0; u < f; u++)
  91161. l[u % o] += 1;
  91162. return l;
  91163. }
  91164. function nq(t, e, n) {
  91165. for (var r = t.r0, i = t.r, a = t.startAngle, o = t.endAngle, s = Math.abs(o - a), l = s * i, u = i - r, c = l > Math.abs(u), f = Bhe([l, u], c ? 0 : 1, e), d = (c ? s : u) / f.length, h = 0; h < f.length; h++)
  91166. for (var p = (c ? u : s) / f[h], v = 0; v < f[h]; v++) {
  91167. var g = {};
  91168. c ? (g.startAngle = a + d * h, g.endAngle = a + d * (h + 1), g.r0 = r + p * v, g.r = r + p * (v + 1)) : (g.startAngle = a + p * v, g.endAngle = a + p * (v + 1), g.r0 = r + d * h, g.r = r + d * (h + 1)), g.clockwise = t.clockwise, g.cx = t.cx, g.cy = t.cy, n.push(g);
  91169. }
  91170. }
  91171. function odt(t, e, n) {
  91172. for (var r = t.width, i = t.height, a = r > i, o = Bhe([r, i], a ? 0 : 1, e), s = a ? "width" : "height", l = a ? "height" : "width", u = a ? "x" : "y", c = a ? "y" : "x", f = t[s] / o.length, d = 0; d < o.length; d++)
  91173. for (var h = t[l] / o[d], p = 0; p < o[d]; p++) {
  91174. var v = {};
  91175. v[u] = d * f, v[c] = p * h, v[s] = f, v[l] = h, v.x += t.x, v.y += t.y, n.push(v);
  91176. }
  91177. }
  91178. function rq(t, e, n, r) {
  91179. return t * r - n * e;
  91180. }
  91181. function sdt(t, e, n, r, i, a, o, s) {
  91182. var l = n - t, u = r - e, c = o - i, f = s - a, d = rq(c, f, l, u);
  91183. if (Math.abs(d) < 1e-6)
  91184. return null;
  91185. var h = t - i, p = e - a, v = rq(h, p, c, f) / d;
  91186. return v < 0 || v > 1 ? null : new yt(v * l + t, v * u + e);
  91187. }
  91188. function ldt(t, e, n) {
  91189. var r = new yt();
  91190. yt.sub(r, n, e), r.normalize();
  91191. var i = new yt();
  91192. yt.sub(i, t, e);
  91193. var a = i.dot(r);
  91194. return a;
  91195. }
  91196. function hv(t, e) {
  91197. var n = t[t.length - 1];
  91198. n && n[0] === e[0] && n[1] === e[1] || t.push(e);
  91199. }
  91200. function udt(t, e, n) {
  91201. for (var r = t.length, i = [], a = 0; a < r; a++) {
  91202. var o = t[a], s = t[(a + 1) % r], l = sdt(o[0], o[1], s[0], s[1], e.x, e.y, n.x, n.y);
  91203. l && i.push({
  91204. projPt: ldt(l, e, n),
  91205. pt: l,
  91206. idx: a
  91207. });
  91208. }
  91209. if (i.length < 2)
  91210. return [{ points: t }, { points: t }];
  91211. i.sort(function(g, m) {
  91212. return g.projPt - m.projPt;
  91213. });
  91214. var u = i[0], c = i[i.length - 1];
  91215. if (c.idx < u.idx) {
  91216. var f = u;
  91217. u = c, c = f;
  91218. }
  91219. for (var d = [u.pt.x, u.pt.y], h = [c.pt.x, c.pt.y], p = [d], v = [h], a = u.idx + 1; a <= c.idx; a++)
  91220. hv(p, t[a].slice());
  91221. hv(p, h), hv(p, d);
  91222. for (var a = c.idx + 1; a <= u.idx + r; a++)
  91223. hv(v, t[a % r].slice());
  91224. return hv(v, d), hv(v, h), [{
  91225. points: p
  91226. }, {
  91227. points: v
  91228. }];
  91229. }
  91230. function iq(t) {
  91231. var e = t.points, n = [], r = [];
  91232. yP(e, n, r);
  91233. var i = new bt(n[0], n[1], r[0] - n[0], r[1] - n[1]), a = i.width, o = i.height, s = i.x, l = i.y, u = new yt(), c = new yt();
  91234. return a > o ? (u.x = c.x = s + a / 2, u.y = l, c.y = l + o) : (u.y = c.y = l + o / 2, u.x = s, c.x = s + a), udt(e, u, c);
  91235. }
  91236. function yT(t, e, n, r) {
  91237. if (n === 1)
  91238. r.push(e);
  91239. else {
  91240. var i = Math.floor(n / 2), a = t(e);
  91241. yT(t, a[0], i, r), yT(t, a[1], n - i, r);
  91242. }
  91243. return r;
  91244. }
  91245. function cdt(t, e) {
  91246. for (var n = [], r = 0; r < e; r++)
  91247. n.push(z5(t));
  91248. return n;
  91249. }
  91250. function fdt(t, e) {
  91251. e.setStyle(t.style), e.z = t.z, e.z2 = t.z2, e.zlevel = t.zlevel;
  91252. }
  91253. function ddt(t) {
  91254. for (var e = [], n = 0; n < t.length; )
  91255. e.push([t[n++], t[n++]]);
  91256. return e;
  91257. }
  91258. function hdt(t, e) {
  91259. var n = [], r = t.shape, i;
  91260. switch (t.type) {
  91261. case "rect":
  91262. odt(r, e, n), i = Zt;
  91263. break;
  91264. case "sector":
  91265. nq(r, e, n), i = ha;
  91266. break;
  91267. case "circle":
  91268. nq({
  91269. r0: 0,
  91270. r: r.r,
  91271. startAngle: 0,
  91272. endAngle: Math.PI * 2,
  91273. cx: r.cx,
  91274. cy: r.cy
  91275. }, e, n), i = ha;
  91276. break;
  91277. default:
  91278. var a = t.getComputedTransform(), o = a ? Math.sqrt(Math.max(a[0] * a[0] + a[1] * a[1], a[2] * a[2] + a[3] * a[3])) : 1, s = Ce(adt(t.getUpdatedPathProxy(), o), function(m) {
  91279. return ddt(m);
  91280. }), l = s.length;
  91281. if (l === 0)
  91282. yT(iq, {
  91283. points: s[0]
  91284. }, e, n);
  91285. else if (l === e)
  91286. for (var u = 0; u < l; u++)
  91287. n.push({
  91288. points: s[u]
  91289. });
  91290. else {
  91291. var c = 0, f = Ce(s, function(m) {
  91292. var y = [], _ = [];
  91293. yP(m, y, _);
  91294. var O = (_[1] - y[1]) * (_[0] - y[0]);
  91295. return c += O, { poly: m, area: O };
  91296. });
  91297. f.sort(function(m, y) {
  91298. return y.area - m.area;
  91299. });
  91300. for (var d = e, u = 0; u < l; u++) {
  91301. var h = f[u];
  91302. if (d <= 0)
  91303. break;
  91304. var p = u === l - 1 ? d : Math.ceil(h.area / c * e);
  91305. p < 0 || (yT(iq, {
  91306. points: h.poly
  91307. }, p, n), d -= p);
  91308. }
  91309. }
  91310. i = pa;
  91311. break;
  91312. }
  91313. if (!i)
  91314. return cdt(t, e);
  91315. for (var v = [], u = 0; u < n.length; u++) {
  91316. var g = new i();
  91317. g.setShape(n[u]), fdt(t, g), v.push(g);
  91318. }
  91319. return v;
  91320. }
  91321. function pdt(t, e) {
  91322. var n = t.length, r = e.length;
  91323. if (n === r)
  91324. return [t, e];
  91325. for (var i = [], a = [], o = n < r ? t : e, s = Math.min(n, r), l = Math.abs(r - n) / 6, u = (s - 2) / 6, c = Math.ceil(l / u) + 1, f = [o[0], o[1]], d = l, h = 2; h < s; ) {
  91326. var p = o[h - 2], v = o[h - 1], g = o[h++], m = o[h++], y = o[h++], _ = o[h++], O = o[h++], S = o[h++];
  91327. if (d <= 0) {
  91328. f.push(g, m, y, _, O, S);
  91329. continue;
  91330. }
  91331. for (var x = Math.min(d, c - 1) + 1, C = 1; C <= x; C++) {
  91332. var P = C / x;
  91333. yf(p, g, y, O, P, i), yf(v, m, _, S, P, a), p = i[3], v = a[3], f.push(i[1], a[1], i[2], a[2], p, v), g = i[5], m = a[5], y = i[6], _ = a[6];
  91334. }
  91335. d -= x - 1;
  91336. }
  91337. return o === t ? [f, e] : [t, f];
  91338. }
  91339. function aq(t, e) {
  91340. for (var n = t.length, r = t[n - 2], i = t[n - 1], a = [], o = 0; o < e.length; )
  91341. a[o++] = r, a[o++] = i;
  91342. return a;
  91343. }
  91344. function vdt(t, e) {
  91345. for (var n, r, i, a = [], o = [], s = 0; s < Math.max(t.length, e.length); s++) {
  91346. var l = t[s], u = e[s], c = void 0, f = void 0;
  91347. l ? u ? (n = pdt(l, u), c = n[0], f = n[1], r = c, i = f) : (f = aq(i || l, l), c = l) : (c = aq(r || u, u), f = u), a.push(c), o.push(f);
  91348. }
  91349. return [a, o];
  91350. }
  91351. function oq(t) {
  91352. for (var e = 0, n = 0, r = 0, i = t.length, a = 0, o = i - 2; a < i; o = a, a += 2) {
  91353. var s = t[o], l = t[o + 1], u = t[a], c = t[a + 1], f = s * c - u * l;
  91354. e += f, n += (s + u) * f, r += (l + c) * f;
  91355. }
  91356. return e === 0 ? [t[0] || 0, t[1] || 0] : [n / e / 3, r / e / 3, e];
  91357. }
  91358. function gdt(t, e, n, r) {
  91359. for (var i = (t.length - 2) / 6, a = 1 / 0, o = 0, s = t.length, l = s - 2, u = 0; u < i; u++) {
  91360. for (var c = u * 6, f = 0, d = 0; d < s; d += 2) {
  91361. var h = d === 0 ? c : (c + d - 2) % l + 2, p = t[h] - n[0], v = t[h + 1] - n[1], g = e[d] - r[0], m = e[d + 1] - r[1], y = g - p, _ = m - v;
  91362. f += y * y + _ * _;
  91363. }
  91364. f < a && (a = f, o = u);
  91365. }
  91366. return o;
  91367. }
  91368. function mdt(t) {
  91369. for (var e = [], n = t.length, r = 0; r < n; r += 2)
  91370. e[r] = t[n - r - 2], e[r + 1] = t[n - r - 1];
  91371. return e;
  91372. }
  91373. function ydt(t, e, n, r) {
  91374. for (var i = [], a, o = 0; o < t.length; o++) {
  91375. var s = t[o], l = e[o], u = oq(s), c = oq(l);
  91376. a == null && (a = u[2] < 0 != c[2] < 0);
  91377. var f = [], d = [], h = 0, p = 1 / 0, v = [], g = s.length;
  91378. a && (s = mdt(s));
  91379. for (var m = gdt(s, l, u, c) * 6, y = g - 2, _ = 0; _ < y; _ += 2) {
  91380. var O = (m + _) % y + 2;
  91381. f[_ + 2] = s[O] - u[0], f[_ + 3] = s[O + 1] - u[1];
  91382. }
  91383. f[0] = s[m] - u[0], f[1] = s[m + 1] - u[1];
  91384. for (var S = r / n, x = -r / 2; x <= r / 2; x += S) {
  91385. for (var C = Math.sin(x), P = Math.cos(x), $ = 0, _ = 0; _ < s.length; _ += 2) {
  91386. var T = f[_], E = f[_ + 1], M = l[_] - c[0], R = l[_ + 1] - c[1], N = M * P - R * C, I = M * C + R * P;
  91387. v[_] = N, v[_ + 1] = I;
  91388. var B = N - T, Q = I - E;
  91389. $ += B * B + Q * Q;
  91390. }
  91391. if ($ < p) {
  91392. p = $, h = x;
  91393. for (var W = 0; W < v.length; W++)
  91394. d[W] = v[W];
  91395. }
  91396. }
  91397. i.push({
  91398. from: f,
  91399. to: d,
  91400. fromCp: u,
  91401. toCp: c,
  91402. rotation: -h
  91403. });
  91404. }
  91405. return i;
  91406. }
  91407. function bT(t) {
  91408. return t.__isCombineMorphing;
  91409. }
  91410. var zhe = "__mOriginal_";
  91411. function _T(t, e, n) {
  91412. var r = zhe + e, i = t[r] || t[e];
  91413. t[r] || (t[r] = t[e]);
  91414. var a = n.replace, o = n.after, s = n.before;
  91415. t[e] = function() {
  91416. var l = arguments, u;
  91417. return s && s.apply(this, l), a ? u = a.apply(this, l) : u = i.apply(this, l), o && o.apply(this, l), u;
  91418. };
  91419. }
  91420. function cb(t, e) {
  91421. var n = zhe + e;
  91422. t[n] && (t[e] = t[n], t[n] = null);
  91423. }
  91424. function sq(t, e) {
  91425. for (var n = 0; n < t.length; n++)
  91426. for (var r = t[n], i = 0; i < r.length; ) {
  91427. var a = r[i], o = r[i + 1];
  91428. r[i++] = e[0] * a + e[2] * o + e[4], r[i++] = e[1] * a + e[3] * o + e[5];
  91429. }
  91430. }
  91431. function Vhe(t, e) {
  91432. var n = t.getUpdatedPathProxy(), r = e.getUpdatedPathProxy(), i = vdt(VL(n), VL(r)), a = i[0], o = i[1], s = t.getComputedTransform(), l = e.getComputedTransform();
  91433. function u() {
  91434. this.transform = null;
  91435. }
  91436. s && sq(a, s), l && sq(o, l), _T(e, "updateTransform", { replace: u }), e.transform = null;
  91437. var c = ydt(a, o, 10, Math.PI), f = [];
  91438. _T(e, "buildPath", { replace: function(d) {
  91439. for (var h = e.__morphT, p = 1 - h, v = [], g = 0; g < c.length; g++) {
  91440. var m = c[g], y = m.from, _ = m.to, O = m.rotation * h, S = m.fromCp, x = m.toCp, C = Math.sin(O), P = Math.cos(O);
  91441. Yy(v, S, x, h);
  91442. for (var $ = 0; $ < y.length; $ += 2) {
  91443. var T = y[$], E = y[$ + 1], M = _[$], R = _[$ + 1], N = T * p + M * h, I = E * p + R * h;
  91444. f[$] = N * P - I * C + v[0], f[$ + 1] = N * C + I * P + v[1];
  91445. }
  91446. var B = f[0], Q = f[1];
  91447. d.moveTo(B, Q);
  91448. for (var $ = 2; $ < y.length; ) {
  91449. var M = f[$++], R = f[$++], W = f[$++], H = f[$++], U = f[$++], j = f[$++];
  91450. B === M && Q === R && W === U && H === j ? d.lineTo(U, j) : d.bezierCurveTo(M, R, W, H, U, j), B = U, Q = j;
  91451. }
  91452. }
  91453. } });
  91454. }
  91455. function I6(t, e, n) {
  91456. if (!t || !e)
  91457. return e;
  91458. var r = n.done, i = n.during;
  91459. Vhe(t, e), e.__morphT = 0;
  91460. function a() {
  91461. cb(e, "buildPath"), cb(e, "updateTransform"), e.__morphT = -1, e.createPathProxy(), e.dirtyShape();
  91462. }
  91463. return e.animateTo({
  91464. __morphT: 1
  91465. }, it({
  91466. during: function(o) {
  91467. e.dirtyShape(), i && i(o);
  91468. },
  91469. done: function() {
  91470. a(), r && r();
  91471. }
  91472. }, n)), e;
  91473. }
  91474. function bdt(t, e, n, r, i, a) {
  91475. var o = 16;
  91476. t = i === n ? 0 : Math.round(32767 * (t - n) / (i - n)), e = a === r ? 0 : Math.round(32767 * (e - r) / (a - r));
  91477. for (var s = 0, l, u = (1 << o) / 2; u > 0; u /= 2) {
  91478. var c = 0, f = 0;
  91479. (t & u) > 0 && (c = 1), (e & u) > 0 && (f = 1), s += u * u * (3 * c ^ f), f === 0 && (c === 1 && (t = u - 1 - t, e = u - 1 - e), l = t, t = e, e = l);
  91480. }
  91481. return s;
  91482. }
  91483. function OT(t) {
  91484. var e = 1 / 0, n = 1 / 0, r = -1 / 0, i = -1 / 0, a = Ce(t, function(s) {
  91485. var l = s.getBoundingRect(), u = s.getComputedTransform(), c = l.x + l.width / 2 + (u ? u[4] : 0), f = l.y + l.height / 2 + (u ? u[5] : 0);
  91486. return e = Math.min(c, e), n = Math.min(f, n), r = Math.max(c, r), i = Math.max(f, i), [c, f];
  91487. }), o = Ce(a, function(s, l) {
  91488. return {
  91489. cp: s,
  91490. z: bdt(s[0], s[1], e, n, r, i),
  91491. path: t[l]
  91492. };
  91493. });
  91494. return o.sort(function(s, l) {
  91495. return s.z - l.z;
  91496. }).map(function(s) {
  91497. return s.path;
  91498. });
  91499. }
  91500. function Fhe(t) {
  91501. return hdt(t.path, t.count);
  91502. }
  91503. function WL() {
  91504. return {
  91505. fromIndividuals: [],
  91506. toIndividuals: [],
  91507. count: 0
  91508. };
  91509. }
  91510. function _dt(t, e, n) {
  91511. var r = [];
  91512. function i(S) {
  91513. for (var x = 0; x < S.length; x++) {
  91514. var C = S[x];
  91515. bT(C) ? i(C.childrenRef()) : C instanceof Dt && r.push(C);
  91516. }
  91517. }
  91518. i(t);
  91519. var a = r.length;
  91520. if (!a)
  91521. return WL();
  91522. var o = n.dividePath || Fhe, s = o({
  91523. path: e,
  91524. count: a
  91525. });
  91526. if (s.length !== a)
  91527. return console.error("Invalid morphing: unmatched splitted path"), WL();
  91528. r = OT(r), s = OT(s);
  91529. for (var l = n.done, u = n.during, c = n.individualDelay, f = new Pu(), d = 0; d < a; d++) {
  91530. var h = r[d], p = s[d];
  91531. p.parent = e, p.copyTransform(f), c || Vhe(h, p);
  91532. }
  91533. e.__isCombineMorphing = !0, e.childrenRef = function() {
  91534. return s;
  91535. };
  91536. function v(S) {
  91537. for (var x = 0; x < s.length; x++)
  91538. s[x].addSelfToZr(S);
  91539. }
  91540. _T(e, "addSelfToZr", {
  91541. after: function(S) {
  91542. v(S);
  91543. }
  91544. }), _T(e, "removeSelfFromZr", {
  91545. after: function(S) {
  91546. for (var x = 0; x < s.length; x++)
  91547. s[x].removeSelfFromZr(S);
  91548. }
  91549. });
  91550. function g() {
  91551. e.__isCombineMorphing = !1, e.__morphT = -1, e.childrenRef = null, cb(e, "addSelfToZr"), cb(e, "removeSelfFromZr");
  91552. }
  91553. var m = s.length;
  91554. if (c)
  91555. for (var y = m, _ = function() {
  91556. y--, y === 0 && (g(), l && l());
  91557. }, d = 0; d < m; d++) {
  91558. var O = c ? it({
  91559. delay: (n.delay || 0) + c(d, m, r[d], s[d]),
  91560. done: _
  91561. }, n) : n;
  91562. I6(r[d], s[d], O);
  91563. }
  91564. else
  91565. e.__morphT = 0, e.animateTo({
  91566. __morphT: 1
  91567. }, it({
  91568. during: function(S) {
  91569. for (var x = 0; x < m; x++) {
  91570. var C = s[x];
  91571. C.__morphT = e.__morphT, C.dirtyShape();
  91572. }
  91573. u && u(S);
  91574. },
  91575. done: function() {
  91576. g();
  91577. for (var S = 0; S < t.length; S++)
  91578. cb(t[S], "updateTransform");
  91579. l && l();
  91580. }
  91581. }, n));
  91582. return e.__zr && v(e.__zr), {
  91583. fromIndividuals: r,
  91584. toIndividuals: s,
  91585. count: m
  91586. };
  91587. }
  91588. function Odt(t, e, n) {
  91589. var r = e.length, i = [], a = n.dividePath || Fhe;
  91590. function o(h) {
  91591. for (var p = 0; p < h.length; p++) {
  91592. var v = h[p];
  91593. bT(v) ? o(v.childrenRef()) : v instanceof Dt && i.push(v);
  91594. }
  91595. }
  91596. if (bT(t)) {
  91597. o(t.childrenRef());
  91598. var s = i.length;
  91599. if (s < r)
  91600. for (var l = 0, u = s; u < r; u++)
  91601. i.push(z5(i[l++ % s]));
  91602. i.length = r;
  91603. } else {
  91604. i = a({ path: t, count: r });
  91605. for (var c = t.getComputedTransform(), u = 0; u < i.length; u++)
  91606. i[u].setLocalTransform(c);
  91607. if (i.length !== r)
  91608. return console.error("Invalid morphing: unmatched splitted path"), WL();
  91609. }
  91610. i = OT(i), e = OT(e);
  91611. for (var f = n.individualDelay, u = 0; u < r; u++) {
  91612. var d = f ? it({
  91613. delay: (n.delay || 0) + f(u, r, i[u], e[u])
  91614. }, n) : n;
  91615. I6(i[u], e[u], d);
  91616. }
  91617. return {
  91618. fromIndividuals: i,
  91619. toIndividuals: e,
  91620. count: e.length
  91621. };
  91622. }
  91623. function lq(t) {
  91624. return Se(t[0]);
  91625. }
  91626. function uq(t, e) {
  91627. for (var n = [], r = t.length, i = 0; i < r; i++)
  91628. n.push({
  91629. one: t[i],
  91630. many: []
  91631. });
  91632. for (var i = 0; i < e.length; i++) {
  91633. var a = e[i].length, o = void 0;
  91634. for (o = 0; o < a; o++)
  91635. n[o % r].many.push(e[i][o]);
  91636. }
  91637. for (var s = 0, i = r - 1; i >= 0; i--)
  91638. if (!n[i].many.length) {
  91639. var l = n[s].many;
  91640. if (l.length <= 1)
  91641. if (s)
  91642. s = 0;
  91643. else
  91644. return n;
  91645. var a = l.length, u = Math.ceil(a / 2);
  91646. n[i].many = l.slice(u, a), n[s].many = l.slice(0, u), s++;
  91647. }
  91648. return n;
  91649. }
  91650. var Sdt = {
  91651. clone: function(t) {
  91652. for (var e = [], n = 1 - Math.pow(1 - t.path.style.opacity, 1 / t.count), r = 0; r < t.count; r++) {
  91653. var i = z5(t.path);
  91654. i.setStyle("opacity", n), e.push(i);
  91655. }
  91656. return e;
  91657. },
  91658. // Use the default divider
  91659. split: null
  91660. };
  91661. function ZI(t, e, n, r, i, a) {
  91662. if (!t.length || !e.length)
  91663. return;
  91664. var o = Om("update", r, i);
  91665. if (!(o && o.duration > 0))
  91666. return;
  91667. var s = r.getModel("universalTransition").get("delay"), l = Object.assign({
  91668. // Need to setToFinal so the further calculation based on the style can be correct.
  91669. // Like emphasis color.
  91670. setToFinal: !0
  91671. }, o), u, c;
  91672. lq(t) && (u = t, c = e), lq(e) && (u = e, c = t);
  91673. function f(m, y, _, O, S) {
  91674. var x = m.many, C = m.one;
  91675. if (x.length === 1 && !S) {
  91676. var P = y ? x[0] : C, $ = y ? C : x[0];
  91677. if (bT(P))
  91678. f({
  91679. many: [P],
  91680. one: $
  91681. }, !0, _, O, !0);
  91682. else {
  91683. var T = s ? it({
  91684. delay: s(_, O)
  91685. }, l) : l;
  91686. I6(P, $, T), a(P, $, P, $, T);
  91687. }
  91688. } else
  91689. for (var E = it({
  91690. dividePath: Sdt[n],
  91691. individualDelay: s && function(Q, W, H, U) {
  91692. return s(Q + _, O);
  91693. }
  91694. }, l), M = y ? _dt(x, C, E) : Odt(C, x, E), R = M.fromIndividuals, N = M.toIndividuals, I = R.length, B = 0; B < I; B++) {
  91695. var T = s ? it({
  91696. delay: s(B, I)
  91697. }, l) : l;
  91698. a(R[B], N[B], y ? x[B] : m.one, y ? m.one : x[B], T);
  91699. }
  91700. }
  91701. for (var d = u ? u === t : t.length > e.length, h = u ? uq(c, u) : uq(d ? e : t, [d ? t : e]), p = 0, v = 0; v < h.length; v++)
  91702. p += h[v].many.length;
  91703. for (var g = 0, v = 0; v < h.length; v++)
  91704. f(h[v], d, g, p), g += h[v].many.length;
  91705. }
  91706. function Vd(t) {
  91707. if (!t)
  91708. return [];
  91709. if (Se(t)) {
  91710. for (var e = [], n = 0; n < t.length; n++)
  91711. e.push(Vd(t[n]));
  91712. return e;
  91713. }
  91714. var r = [];
  91715. return t.traverse(function(i) {
  91716. i instanceof Dt && !i.disableMorphing && !i.invisible && !i.ignore && r.push(i);
  91717. }), r;
  91718. }
  91719. var Whe = 1e4, xdt = 0, cq = 1, fq = 2, wdt = Ut();
  91720. function Cdt(t, e) {
  91721. for (var n = t.dimensions, r = 0; r < n.length; r++) {
  91722. var i = t.getDimensionInfo(n[r]);
  91723. if (i && i.otherDims[e] === 0)
  91724. return n[r];
  91725. }
  91726. }
  91727. function Tdt(t, e, n) {
  91728. var r = t.getDimensionInfo(n), i = r && r.ordinalMeta;
  91729. if (r) {
  91730. var a = t.get(r.name, e);
  91731. return i && i.categories[a] || a + "";
  91732. }
  91733. }
  91734. function dq(t, e, n, r) {
  91735. var i = r ? "itemChildGroupId" : "itemGroupId", a = Cdt(t, i);
  91736. if (a) {
  91737. var o = Tdt(t, e, a);
  91738. return o;
  91739. }
  91740. var s = t.getRawDataItem(e), l = r ? "childGroupId" : "groupId";
  91741. if (s && s[l])
  91742. return s[l] + "";
  91743. if (!r)
  91744. return n || t.getId(e);
  91745. }
  91746. function hq(t) {
  91747. var e = [];
  91748. return F(t, function(n) {
  91749. var r = n.data, i = n.dataGroupId;
  91750. if (r.count() > Whe) {
  91751. process.env.NODE_ENV !== "production" && nr("Universal transition is disabled on large data > 10k.");
  91752. return;
  91753. }
  91754. for (var a = r.getIndices(), o = 0; o < a.length; o++)
  91755. e.push({
  91756. data: r,
  91757. groupId: dq(r, o, i, !1),
  91758. childGroupId: dq(r, o, i, !0),
  91759. divide: n.divide,
  91760. dataIndex: o
  91761. });
  91762. }), e;
  91763. }
  91764. function UI(t, e, n) {
  91765. t.traverse(function(r) {
  91766. r instanceof Dt && Vn(r, {
  91767. style: {
  91768. opacity: 0
  91769. }
  91770. }, e, {
  91771. dataIndex: n,
  91772. isFrom: !0
  91773. });
  91774. });
  91775. }
  91776. function XI(t) {
  91777. if (t.parent) {
  91778. var e = t.getComputedTransform();
  91779. t.setLocalTransform(e), t.parent.remove(t);
  91780. }
  91781. }
  91782. function pv(t) {
  91783. t.stopAnimation(), t.isGroup && t.traverse(function(e) {
  91784. e.stopAnimation();
  91785. });
  91786. }
  91787. function Pdt(t, e, n) {
  91788. var r = Om("update", n, e);
  91789. r && t.traverse(function(i) {
  91790. if (i instanceof ls) {
  91791. var a = eUe(i);
  91792. a && i.animateFrom({
  91793. style: a
  91794. }, r);
  91795. }
  91796. });
  91797. }
  91798. function $dt(t, e) {
  91799. var n = t.length;
  91800. if (n !== e.length)
  91801. return !1;
  91802. for (var r = 0; r < n; r++) {
  91803. var i = t[r], a = e[r];
  91804. if (i.data.getId(i.dataIndex) !== a.data.getId(a.dataIndex))
  91805. return !1;
  91806. }
  91807. return !0;
  91808. }
  91809. function Qhe(t, e, n) {
  91810. var r = hq(t), i = hq(e);
  91811. function a(_, O, S, x, C) {
  91812. (S || _) && O.animateFrom({
  91813. style: S && S !== _ ? _e(_e({}, S.style), _.style) : _.style
  91814. }, C);
  91815. }
  91816. var o = !1, s = xdt, l = Ze(), u = Ze();
  91817. r.forEach(function(_) {
  91818. _.groupId && l.set(_.groupId, !0), _.childGroupId && u.set(_.childGroupId, !0);
  91819. });
  91820. for (var c = 0; c < i.length; c++) {
  91821. var f = i[c].groupId;
  91822. if (u.get(f)) {
  91823. s = cq;
  91824. break;
  91825. }
  91826. var d = i[c].childGroupId;
  91827. if (d && l.get(d)) {
  91828. s = fq;
  91829. break;
  91830. }
  91831. }
  91832. function h(_, O) {
  91833. return function(S) {
  91834. var x = S.data, C = S.dataIndex;
  91835. return O ? x.getId(C) : _ ? s === cq ? S.childGroupId : S.groupId : s === fq ? S.childGroupId : S.groupId;
  91836. };
  91837. }
  91838. var p = $dt(r, i), v = {};
  91839. if (!p)
  91840. for (var c = 0; c < i.length; c++) {
  91841. var g = i[c], m = g.data.getItemGraphicEl(g.dataIndex);
  91842. m && (v[m.id] = !0);
  91843. }
  91844. function y(_, O) {
  91845. var S = r[O], x = i[_], C = x.data.hostModel, P = S.data.getItemGraphicEl(S.dataIndex), $ = x.data.getItemGraphicEl(x.dataIndex);
  91846. if (P === $) {
  91847. $ && Pdt($, x.dataIndex, C);
  91848. return;
  91849. }
  91850. // We can't use the elements that already being morphed
  91851. P && v[P.id] || $ && (pv($), P ? (pv(P), XI(P), o = !0, ZI(Vd(P), Vd($), x.divide, C, _, a)) : UI($, C, _));
  91852. }
  91853. new Qu(r, i, h(!0, p), h(!1, p), null, "multiple").update(y).updateManyToOne(function(_, O) {
  91854. var S = i[_], x = S.data, C = x.hostModel, P = x.getItemGraphicEl(S.dataIndex), $ = yn(Ce(O, function(T) {
  91855. return r[T].data.getItemGraphicEl(r[T].dataIndex);
  91856. }), function(T) {
  91857. return T && T !== P && !v[T.id];
  91858. });
  91859. P && (pv(P), $.length ? (F($, function(T) {
  91860. pv(T), XI(T);
  91861. }), o = !0, ZI(Vd($), Vd(P), S.divide, C, _, a)) : UI(P, C, S.dataIndex));
  91862. }).updateOneToMany(function(_, O) {
  91863. var S = r[O], x = S.data.getItemGraphicEl(S.dataIndex);
  91864. if (!(x && v[x.id])) {
  91865. var C = yn(Ce(_, function($) {
  91866. return i[$].data.getItemGraphicEl(i[$].dataIndex);
  91867. }), function($) {
  91868. return $ && $ !== x;
  91869. }), P = i[_[0]].data.hostModel;
  91870. C.length && (F(C, function($) {
  91871. return pv($);
  91872. }), x ? (pv(x), XI(x), o = !0, ZI(
  91873. Vd(x),
  91874. Vd(C),
  91875. S.divide,
  91876. // Use divide on old.
  91877. P,
  91878. _[0],
  91879. a
  91880. )) : F(C, function($) {
  91881. return UI($, P, _[0]);
  91882. }));
  91883. }
  91884. }).updateManyToMany(function(_, O) {
  91885. new Qu(O, _, function(S) {
  91886. return r[S].data.getId(r[S].dataIndex);
  91887. }, function(S) {
  91888. return i[S].data.getId(i[S].dataIndex);
  91889. }).update(function(S, x) {
  91890. y(_[S], O[x]);
  91891. }).execute();
  91892. }).execute(), o && F(e, function(_) {
  91893. var O = _.data, S = O.hostModel, x = S && n.getViewOfSeriesModel(S), C = Om("update", S, 0);
  91894. x && S.isAnimationEnabled() && C && C.duration > 0 && x.group.traverse(function(P) {
  91895. P instanceof Dt && !P.animators.length && P.animateFrom({
  91896. style: {
  91897. opacity: 0
  91898. }
  91899. }, C);
  91900. });
  91901. });
  91902. }
  91903. function pq(t) {
  91904. var e = t.getModel("universalTransition").get("seriesKey");
  91905. return e || t.id;
  91906. }
  91907. function vq(t) {
  91908. return Se(t) ? t.sort().join(",") : t;
  91909. }
  91910. function Ic(t) {
  91911. if (t.hostModel)
  91912. return t.hostModel.getModel("universalTransition").get("divideShape");
  91913. }
  91914. function Adt(t, e) {
  91915. var n = Ze(), r = Ze(), i = Ze();
  91916. F(t.oldSeries, function(o, s) {
  91917. var l = t.oldDataGroupIds[s], u = t.oldData[s], c = pq(o), f = vq(c);
  91918. r.set(f, {
  91919. dataGroupId: l,
  91920. data: u
  91921. }), Se(c) && F(c, function(d) {
  91922. i.set(d, {
  91923. key: f,
  91924. dataGroupId: l,
  91925. data: u
  91926. });
  91927. });
  91928. });
  91929. function a(o) {
  91930. n.get(o) && nr("Duplicated seriesKey in universalTransition " + o);
  91931. }
  91932. return F(e.updatedSeries, function(o) {
  91933. if (o.isUniversalTransitionEnabled() && o.isAnimationEnabled()) {
  91934. var s = o.get("dataGroupId"), l = o.getData(), u = pq(o), c = vq(u), f = r.get(c);
  91935. if (f)
  91936. process.env.NODE_ENV !== "production" && a(c), n.set(c, {
  91937. oldSeries: [{
  91938. dataGroupId: f.dataGroupId,
  91939. divide: Ic(f.data),
  91940. data: f.data
  91941. }],
  91942. newSeries: [{
  91943. dataGroupId: s,
  91944. divide: Ic(l),
  91945. data: l
  91946. }]
  91947. });
  91948. else if (Se(u)) {
  91949. process.env.NODE_ENV !== "production" && a(c);
  91950. var d = [];
  91951. F(u, function(v) {
  91952. var g = r.get(v);
  91953. g.data && d.push({
  91954. dataGroupId: g.dataGroupId,
  91955. divide: Ic(g.data),
  91956. data: g.data
  91957. });
  91958. }), d.length && n.set(c, {
  91959. oldSeries: d,
  91960. newSeries: [{
  91961. dataGroupId: s,
  91962. data: l,
  91963. divide: Ic(l)
  91964. }]
  91965. });
  91966. } else {
  91967. var h = i.get(u);
  91968. if (h) {
  91969. var p = n.get(h.key);
  91970. p || (p = {
  91971. oldSeries: [{
  91972. dataGroupId: h.dataGroupId,
  91973. data: h.data,
  91974. divide: Ic(h.data)
  91975. }],
  91976. newSeries: []
  91977. }, n.set(h.key, p)), p.newSeries.push({
  91978. dataGroupId: s,
  91979. data: l,
  91980. divide: Ic(l)
  91981. });
  91982. }
  91983. }
  91984. }
  91985. }), n;
  91986. }
  91987. function gq(t, e) {
  91988. for (var n = 0; n < t.length; n++) {
  91989. var r = e.seriesIndex != null && e.seriesIndex === t[n].seriesIndex || e.seriesId != null && e.seriesId === t[n].id;
  91990. if (r)
  91991. return n;
  91992. }
  91993. }
  91994. function Edt(t, e, n, r) {
  91995. var i = [], a = [];
  91996. F(Cn(t.from), function(o) {
  91997. var s = gq(e.oldSeries, o);
  91998. s >= 0 && i.push({
  91999. dataGroupId: e.oldDataGroupIds[s],
  92000. data: e.oldData[s],
  92001. // TODO can specify divideShape in transition.
  92002. divide: Ic(e.oldData[s]),
  92003. groupIdDim: o.dimension
  92004. });
  92005. }), F(Cn(t.to), function(o) {
  92006. var s = gq(n.updatedSeries, o);
  92007. if (s >= 0) {
  92008. var l = n.updatedSeries[s].getData();
  92009. a.push({
  92010. dataGroupId: e.oldDataGroupIds[s],
  92011. data: l,
  92012. divide: Ic(l),
  92013. groupIdDim: o.dimension
  92014. });
  92015. }
  92016. }), i.length > 0 && a.length > 0 && Qhe(i, a, r);
  92017. }
  92018. function Mdt(t) {
  92019. t.registerUpdateLifecycle("series:beforeupdate", function(e, n, r) {
  92020. F(Cn(r.seriesTransition), function(i) {
  92021. F(Cn(i.to), function(a) {
  92022. for (var o = r.updatedSeries, s = 0; s < o.length; s++)
  92023. (a.seriesIndex != null && a.seriesIndex === o[s].seriesIndex || a.seriesId != null && a.seriesId === o[s].id) && (o[s][vw] = !0);
  92024. });
  92025. });
  92026. }), t.registerUpdateLifecycle("series:transition", function(e, n, r) {
  92027. var i = wdt(n);
  92028. if (i.oldSeries && r.updatedSeries && r.optionChanged) {
  92029. var a = r.seriesTransition;
  92030. if (a)
  92031. F(Cn(a), function(h) {
  92032. Edt(h, i, r, n);
  92033. });
  92034. else {
  92035. var o = Adt(i, r);
  92036. F(o.keys(), function(h) {
  92037. var p = o.get(h);
  92038. Qhe(p.oldSeries, p.newSeries, n);
  92039. });
  92040. }
  92041. F(r.updatedSeries, function(h) {
  92042. h[vw] && (h[vw] = !1);
  92043. });
  92044. }
  92045. for (var s = e.getSeries(), l = i.oldSeries = [], u = i.oldDataGroupIds = [], c = i.oldData = [], f = 0; f < s.length; f++) {
  92046. var d = s[f].getData();
  92047. d.count() < Whe && (l.push(s[f]), u.push(s[f].get("dataGroupId")), c.push(d));
  92048. }
  92049. });
  92050. }
  92051. Mt([zJe]);
  92052. Mt([RJe]);
  92053. Mt([aet, Oet, Iet, ftt, Stt, lnt, Lnt, brt, Frt, Zrt, nit, Yit, Oat, Iat, Uat, Kat, lot, vot, Tot, Iot, Wot, wst]);
  92054. Mt(Qst);
  92055. Mt(glt);
  92056. Mt(Vfe);
  92057. Mt(Alt);
  92058. Mt(Cde);
  92059. Mt(Dlt);
  92060. Mt(Wlt);
  92061. Mt(Aut);
  92062. Mt(Uut);
  92063. Mt(C1);
  92064. Mt(fct);
  92065. Mt(pct);
  92066. Mt(wct);
  92067. Mt(Mct);
  92068. Mt(Nct);
  92069. Mt(Qct);
  92070. Mt(Jct);
  92071. Mt(mft);
  92072. Mt(Ahe);
  92073. Mt(Ehe);
  92074. Mt(Nft);
  92075. Mt(khe);
  92076. Mt(Lhe);
  92077. Mt(Wft);
  92078. Mt(tdt);
  92079. Mt(idt);
  92080. Mt(Mdt);
  92081. Mt(eJe);
  92082. const Idt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  92083. __proto__: null,
  92084. Axis: vs,
  92085. ChartView: _n,
  92086. ComponentModel: At,
  92087. ComponentView: Ln,
  92088. List: Wi,
  92089. Model: wn,
  92090. PRIORITY: Uue,
  92091. SeriesModel: Tn,
  92092. color: cGe,
  92093. connect: oqe,
  92094. dataTool: hqe,
  92095. dependencies: QYe,
  92096. disConnect: sqe,
  92097. disconnect: rce,
  92098. dispose: lqe,
  92099. env: Gt,
  92100. extendChartView: FKe,
  92101. extendComponentModel: BKe,
  92102. extendComponentView: zKe,
  92103. extendSeriesModel: VKe,
  92104. format: TKe,
  92105. getCoordinateSystemDimensions: cqe,
  92106. getInstanceByDom: g3,
  92107. getInstanceById: uqe,
  92108. getMap: dqe,
  92109. graphic: CKe,
  92110. helper: mKe,
  92111. init: nce,
  92112. innerDrawElementOnCanvas: d3,
  92113. matrix: FHe,
  92114. number: xKe,
  92115. parseGeoJSON: eL,
  92116. parseGeoJson: eL,
  92117. registerAction: Js,
  92118. registerCoordinateSystem: oce,
  92119. registerLayout: sce,
  92120. registerLoading: O3,
  92121. registerLocale: U5,
  92122. registerMap: lce,
  92123. registerPostInit: ice,
  92124. registerPostUpdate: ace,
  92125. registerPreprocessor: y3,
  92126. registerProcessor: b3,
  92127. registerTheme: m3,
  92128. registerTransform: uce,
  92129. registerUpdateLifecycle: NP,
  92130. registerVisual: zf,
  92131. setCanvasCreator: fqe,
  92132. setPlatformAPI: Goe,
  92133. throttle: kP,
  92134. time: wKe,
  92135. use: Mt,
  92136. util: PKe,
  92137. vector: PHe,
  92138. version: WYe,
  92139. zrUtil: _He,
  92140. zrender: jGe
  92141. }, Symbol.toStringTag, { value: "Module" }));
  92142. function Ddt(t) {
  92143. return Tee() ? (im(t), !0) : !1;
  92144. }
  92145. function ST(t) {
  92146. return typeof t == "function" ? t() : z(t);
  92147. }
  92148. const Rdt = typeof window < "u" && typeof document < "u";
  92149. typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
  92150. const kdt = Object.prototype.toString, Ldt = (t) => kdt.call(t) === "[object Object]", QL = () => {
  92151. };
  92152. function Ndt(t, e) {
  92153. function n(...r) {
  92154. return new Promise((i, a) => {
  92155. Promise.resolve(t(() => e.apply(this, r), { fn: e, thisArg: this, args: r })).then(i).catch(a);
  92156. });
  92157. }
  92158. return n;
  92159. }
  92160. function Bdt(t, e = {}) {
  92161. let n, r, i = QL;
  92162. const a = (s) => {
  92163. clearTimeout(s), i(), i = QL;
  92164. };
  92165. return (s) => {
  92166. const l = ST(t), u = ST(e.maxWait);
  92167. return n && a(n), l <= 0 || u !== void 0 && u <= 0 ? (r && (a(r), r = null), Promise.resolve(s())) : new Promise((c, f) => {
  92168. i = e.rejectOnCancel ? f : c, u && !r && (r = setTimeout(() => {
  92169. n && a(n), r = null, c(s());
  92170. }, u)), n = setTimeout(() => {
  92171. r && a(r), r = null, c(s());
  92172. }, l);
  92173. });
  92174. };
  92175. }
  92176. function zdt(t) {
  92177. return In();
  92178. }
  92179. function Vdt(t, e = 200, n = {}) {
  92180. return Ndt(
  92181. Bdt(e, n),
  92182. t
  92183. );
  92184. }
  92185. function Fdt(t, e) {
  92186. zdt() && qu(t, e);
  92187. }
  92188. function Wdt(t) {
  92189. var e;
  92190. const n = ST(t);
  92191. return (e = n == null ? void 0 : n.$el) != null ? e : n;
  92192. }
  92193. const Qdt = Rdt ? window : void 0;
  92194. function Hdt(...t) {
  92195. let e, n, r, i;
  92196. if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, r, i] = t, e = Qdt) : [e, n, r, i] = t, !e)
  92197. return QL;
  92198. Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
  92199. const a = [], o = () => {
  92200. a.forEach((c) => c()), a.length = 0;
  92201. }, s = (c, f, d, h) => (c.addEventListener(f, d, h), () => c.removeEventListener(f, d, h)), l = me(
  92202. () => [Wdt(e), ST(i)],
  92203. ([c, f]) => {
  92204. if (o(), !c)
  92205. return;
  92206. const d = Ldt(f) ? { ...f } : f;
  92207. a.push(
  92208. ...n.flatMap((h) => r.map((p) => s(c, h, p, d)))
  92209. );
  92210. },
  92211. { immediate: !0, flush: "post" }
  92212. ), u = () => {
  92213. l(), o();
  92214. };
  92215. return Ddt(u), u;
  92216. }
  92217. function Gdt(t, e = "default") {
  92218. let n = null, r = s;
  92219. const i = ee({});
  92220. let a;
  92221. const o = V(() => i.value);
  92222. r = Vdt(s, 200);
  92223. function s() {
  92224. n == null || n.resize({
  92225. animation: {
  92226. duration: 300,
  92227. easing: "quadraticIn"
  92228. }
  92229. });
  92230. }
  92231. function l(f = e) {
  92232. const d = z(t);
  92233. if (!d || !z(d))
  92234. return;
  92235. n = nce(d, f), a = Hdt(window, "resize", r);
  92236. }
  92237. function u(f, d = !1) {
  92238. return i.value = f, new Promise((h) => {
  92239. var p;
  92240. ((p = z(t)) == null ? void 0 : p.offsetHeight) === 0 && setTimeout(() => {
  92241. u(z(o)), h(null);
  92242. }, 30), Bt(() => {
  92243. setTimeout(() => {
  92244. !n && (l("default"), !n) || (d && (n == null || n.clear()), n == null || n.setOption(z(o)), h(null));
  92245. }, 30);
  92246. });
  92247. });
  92248. }
  92249. me(
  92250. () => e,
  92251. (f) => {
  92252. n && (n.dispose(), l(f), u(i.value));
  92253. }
  92254. ), Fdt(() => {
  92255. n && (a(), n.dispose(), n = null);
  92256. });
  92257. function c() {
  92258. return n || l("default"), n;
  92259. }
  92260. return {
  92261. setOptions: u,
  92262. resize: s,
  92263. echarts: Idt,
  92264. getInstance: c
  92265. };
  92266. }
  92267. const D6 = /* @__PURE__ */ ae({
  92268. __name: "Charts",
  92269. props: {
  92270. echartsOptions: {},
  92271. width: {},
  92272. height: {},
  92273. loading: { type: Boolean }
  92274. },
  92275. setup(t) {
  92276. const e = t, n = ee(null), { setOptions: r, resize: i } = Gdt(n), a = ff(Ql, {
  92277. style: {
  92278. fontSize: "24px"
  92279. }
  92280. });
  92281. return me(
  92282. () => [e.width, e.height],
  92283. u$e(async () => {
  92284. i();
  92285. }, 200)
  92286. ), me(
  92287. () => e,
  92288. async () => {
  92289. await Bt();
  92290. const { echartsOptions: o } = e;
  92291. r(o);
  92292. },
  92293. {
  92294. immediate: !0,
  92295. deep: !0
  92296. }
  92297. ), (o, s) => (be(), Je(z(Zy), {
  92298. spinning: o.loading,
  92299. indicator: z(a)
  92300. }, {
  92301. default: ke(() => [
  92302. tt("div", {
  92303. ref_key: "chartRef",
  92304. ref: n,
  92305. style: dr({ width: o.width + "px", height: o.height + "px" })
  92306. }, null, 4)
  92307. ]),
  92308. _: 1
  92309. }, 8, ["spinning", "indicator"]));
  92310. }
  92311. });
  92312. function R6(t) {
  92313. return pte(t, k9e);
  92314. }
  92315. const k6 = {
  92316. type: Object,
  92317. default: () => ({
  92318. sourceType: kr.STATIC,
  92319. data: [],
  92320. url: "",
  92321. method: "GET",
  92322. params: {},
  92323. headers: {},
  92324. refreshTime: 0,
  92325. dataProcess: () => []
  92326. })
  92327. }, jdt = (t, e) => new Promise((n, r) => {
  92328. const i = new Blob([`
  92329. self.onmessage = function(e) {
  92330. self.postMessage((${t}).call(null, e.data));
  92331. }
  92332. `], { type: "application/javascript" }), a = new Worker(URL.createObjectURL(i));
  92333. a.postMessage(JSON.parse(e)), a.onmessage = (o) => {
  92334. a.terminate(), n(o.data);
  92335. }, a.onerror = (o) => {
  92336. a.terminate(), r(o);
  92337. };
  92338. }), L6 = {
  92339. width: {
  92340. type: Number,
  92341. default: 400
  92342. },
  92343. height: {
  92344. type: Number,
  92345. default: 260
  92346. },
  92347. dataSource: k6,
  92348. // 标题
  92349. title: {
  92350. type: Object
  92351. },
  92352. // 图例
  92353. legend: {
  92354. type: Object
  92355. },
  92356. // 背景
  92357. backgroundColor: {
  92358. type: String
  92359. },
  92360. // 边框
  92361. grid: {
  92362. type: Object
  92363. },
  92364. // 提示框
  92365. tooltip: {
  92366. type: Object
  92367. },
  92368. // x轴数据
  92369. xAxis: {
  92370. type: Object
  92371. },
  92372. // y轴数据
  92373. yAxis: {
  92374. type: Object
  92375. },
  92376. // 折线
  92377. series: {
  92378. type: Array
  92379. },
  92380. // 系列设置
  92381. seriesExtend: {
  92382. type: Object,
  92383. default: () => Hhe
  92384. }
  92385. }, Zdt = [], Hhe = {
  92386. lineStyle: {
  92387. type: "solid",
  92388. width: 1
  92389. },
  92390. symbol: "rect",
  92391. symbolSize: 4,
  92392. symbolRotate: 0,
  92393. smooth: !1,
  92394. step: !1
  92395. }, Udt = R6({
  92396. title: {
  92397. text: "折线图标题"
  92398. },
  92399. xAxis: {
  92400. data: ["轴标签A", "轴标签B", "轴标签C", "轴标签D"]
  92401. },
  92402. series: Zdt,
  92403. seriesExtend: Hhe
  92404. }), Xdt = {
  92405. container: {
  92406. props: {
  92407. width: 400,
  92408. height: 260
  92409. }
  92410. },
  92411. props: {
  92412. // 数据源
  92413. dataSource: {
  92414. sourceType: kr.STATIC,
  92415. data: {
  92416. xData: ["轴标签A", "轴标签B", "轴标签C", "轴标签D"],
  92417. series: [
  92418. {
  92419. type: "line",
  92420. name: "系列1",
  92421. data: [89.3, 92.1, 94.4, 85.4]
  92422. },
  92423. {
  92424. type: "line",
  92425. name: "系列2",
  92426. data: [95.8, 89.4, 91.2, 76.9]
  92427. }
  92428. ]
  92429. },
  92430. url: location.origin + "/mock/api/get/example/line",
  92431. method: "POST",
  92432. params: {},
  92433. headers: {},
  92434. refreshTime: 0,
  92435. dataProcess: `
  92436. (res) => {
  92437. // 取出列表
  92438. const data = res.data;
  92439. // x轴数据
  92440. const xData = data.map((item) => item.name);
  92441. // 系列数据
  92442. const series = [
  92443. { type: 'line', name: '苹果', data: data.map(item => item.apple) },
  92444. { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) },
  92445. { type: 'line', name: '小米', data: data.map(item => item.mi) },
  92446. ];
  92447. // 返回图表数据
  92448. return { xData, series };
  92449. }
  92450. `
  92451. },
  92452. ...Udt
  92453. }
  92454. }, Ghe = (t, { manual: e, ready: n = !0, refreshDeps: r = [], refreshDepsAction: i }) => {
  92455. const a = ee(!1);
  92456. return Vt(() => {
  92457. !e && t.options.refreshDeps !== !0 && (a.value = z(n));
  92458. }), r instanceof Array ? me(
  92459. [a, ...r],
  92460. ([o]) => {
  92461. o && !e && o && (i ? i() : t.refresh());
  92462. },
  92463. {
  92464. deep: !0,
  92465. immediate: !1
  92466. }
  92467. ) : me(a, (o) => {
  92468. !e && o && (i ? i() : t.refresh());
  92469. }), {
  92470. name: "autoRunPlugin",
  92471. onBefore: () => {
  92472. if (!z(n))
  92473. return {
  92474. stopNow: !0
  92475. };
  92476. }
  92477. };
  92478. };
  92479. Ghe.onInit = ({ ready: t = !0, manual: e }) => ({
  92480. loading: !e && z(t)
  92481. });
  92482. const xw = /* @__PURE__ */ new Map(), Ydt = (t, e, n) => {
  92483. const r = xw.get(t);
  92484. r != null && r.timer && clearTimeout(r.timer);
  92485. let i;
  92486. e > -1 && (i = setTimeout(() => {
  92487. xw.delete(t);
  92488. }, e)), xw.set(t, {
  92489. ...n,
  92490. timer: i
  92491. });
  92492. }, qdt = (t) => xw.get(t), ww = /* @__PURE__ */ new Map(), Kdt = (t) => ww.get(t), Jdt = (t, e) => {
  92493. ww.set(t, e), e.then((n) => (ww.delete(t), n)).catch((n) => {
  92494. throw ww.delete(t), n;
  92495. });
  92496. }, Xd = {}, eht = [], tht = (t, e) => {
  92497. Xd[t] && (Xd[t].forEach((n) => n(e)), eht.forEach((n) => n({
  92498. type: t,
  92499. data: e
  92500. })));
  92501. }, YI = (t, e) => (Xd[t] || (Xd[t] = []), Xd[t].push(e), function() {
  92502. const r = Xd[t].indexOf(e);
  92503. Xd[t].splice(r, 1);
  92504. }), nht = (t, {
  92505. cacheKey: e,
  92506. cacheTime: n = 5 * 60 * 1e3,
  92507. staleTime: r = 0,
  92508. setCache: i,
  92509. getCache: a
  92510. }) => {
  92511. const o = ee(), s = ee(), l = (c, f) => {
  92512. i ? i(f) : Ydt(c, n, f), tht(c, f.data);
  92513. }, u = (c, f = []) => a ? a(f) : qdt(c);
  92514. return Vt(() => {
  92515. if (!e)
  92516. return;
  92517. const c = u(e);
  92518. c && Object.hasOwnProperty.call(c, "data") && (t.state.data = c.data, t.state.params = c.params, (r === -1 || (/* @__PURE__ */ new Date()).getTime() - c.time <= r) && (t.state.loading = !1)), o.value = YI(e, (f) => {
  92519. t.setState({ data: f });
  92520. });
  92521. }), im(() => {
  92522. var c;
  92523. (c = o.value) == null || c.call(o);
  92524. }), e ? {
  92525. name: "cachePlugin",
  92526. onBefore: (c) => {
  92527. const f = u(e, c);
  92528. return !f || !Object.hasOwnProperty.call(f, "data") ? {} : r === -1 || (/* @__PURE__ */ new Date()).getTime() - f.time <= r ? {
  92529. loading: !1,
  92530. data: f == null ? void 0 : f.data,
  92531. returnNow: !0
  92532. } : {
  92533. data: f == null ? void 0 : f.data
  92534. };
  92535. },
  92536. onRequest: (c, f) => {
  92537. let d = Kdt(e);
  92538. return d && d !== s.value ? { servicePromise: d } : (d = c(...f), s.value = d, Jdt(e, d), { servicePromise: d });
  92539. },
  92540. onSuccess: (c, f) => {
  92541. var d;
  92542. e && ((d = o.value) == null || d.call(o), l(e, {
  92543. data: c,
  92544. params: f,
  92545. time: (/* @__PURE__ */ new Date()).getTime()
  92546. }), o.value = YI(e, (h) => {
  92547. t.setState({ data: h });
  92548. }));
  92549. },
  92550. onMutate: (c) => {
  92551. var f;
  92552. e && ((f = o.value) == null || f.call(o), l(e, {
  92553. data: c,
  92554. params: t.state.params,
  92555. time: (/* @__PURE__ */ new Date()).getTime()
  92556. }), o.value = YI(e, (d) => {
  92557. t.setState({ data: d });
  92558. }));
  92559. }
  92560. } : {};
  92561. };
  92562. function rht(t) {
  92563. var e = typeof t;
  92564. return t != null && (e == "object" || e == "function");
  92565. }
  92566. var el = rht, iht = typeof Su == "object" && Su && Su.Object === Object && Su, jhe = iht, aht = jhe, oht = typeof self == "object" && self && self.Object === Object && self, sht = aht || oht || Function("return this")(), tl = sht, lht = tl, uht = function() {
  92567. return lht.Date.now();
  92568. }, cht = uht, fht = /\s/;
  92569. function dht(t) {
  92570. for (var e = t.length; e-- && fht.test(t.charAt(e)); )
  92571. ;
  92572. return e;
  92573. }
  92574. var hht = dht, pht = hht, vht = /^\s+/;
  92575. function ght(t) {
  92576. return t && t.slice(0, pht(t) + 1).replace(vht, "");
  92577. }
  92578. var mht = ght, yht = tl, bht = yht.Symbol, YP = bht, mq = YP, Zhe = Object.prototype, _ht = Zhe.hasOwnProperty, Oht = Zhe.toString, J0 = mq ? mq.toStringTag : void 0;
  92579. function Sht(t) {
  92580. var e = _ht.call(t, J0), n = t[J0];
  92581. try {
  92582. t[J0] = void 0;
  92583. var r = !0;
  92584. } catch {
  92585. }
  92586. var i = Oht.call(t);
  92587. return r && (e ? t[J0] = n : delete t[J0]), i;
  92588. }
  92589. var xht = Sht, wht = Object.prototype, Cht = wht.toString;
  92590. function Tht(t) {
  92591. return Cht.call(t);
  92592. }
  92593. var Pht = Tht, yq = YP, $ht = xht, Aht = Pht, Eht = "[object Null]", Mht = "[object Undefined]", bq = yq ? yq.toStringTag : void 0;
  92594. function Iht(t) {
  92595. return t == null ? t === void 0 ? Mht : Eht : bq && bq in Object(t) ? $ht(t) : Aht(t);
  92596. }
  92597. var km = Iht;
  92598. function Dht(t) {
  92599. return t != null && typeof t == "object";
  92600. }
  92601. var Vf = Dht, Rht = km, kht = Vf, Lht = "[object Symbol]";
  92602. function Nht(t) {
  92603. return typeof t == "symbol" || kht(t) && Rht(t) == Lht;
  92604. }
  92605. var Bht = Nht, zht = mht, _q = el, Vht = Bht, Oq = NaN, Fht = /^[-+]0x[0-9a-f]+$/i, Wht = /^0b[01]+$/i, Qht = /^0o[0-7]+$/i, Hht = parseInt;
  92606. function Ght(t) {
  92607. if (typeof t == "number")
  92608. return t;
  92609. if (Vht(t))
  92610. return Oq;
  92611. if (_q(t)) {
  92612. var e = typeof t.valueOf == "function" ? t.valueOf() : t;
  92613. t = _q(e) ? e + "" : e;
  92614. }
  92615. if (typeof t != "string")
  92616. return t === 0 ? t : +t;
  92617. t = zht(t);
  92618. var n = Wht.test(t);
  92619. return n || Qht.test(t) ? Hht(t.slice(2), n ? 2 : 8) : Fht.test(t) ? Oq : +t;
  92620. }
  92621. var jht = Ght, Zht = el, qI = cht, Sq = jht, Uht = "Expected a function", Xht = Math.max, Yht = Math.min;
  92622. function qht(t, e, n) {
  92623. var r, i, a, o, s, l, u = 0, c = !1, f = !1, d = !0;
  92624. if (typeof t != "function")
  92625. throw new TypeError(Uht);
  92626. e = Sq(e) || 0, Zht(n) && (c = !!n.leading, f = "maxWait" in n, a = f ? Xht(Sq(n.maxWait) || 0, e) : a, d = "trailing" in n ? !!n.trailing : d);
  92627. function h(x) {
  92628. var C = r, P = i;
  92629. return r = i = void 0, u = x, o = t.apply(P, C), o;
  92630. }
  92631. function p(x) {
  92632. return u = x, s = setTimeout(m, e), c ? h(x) : o;
  92633. }
  92634. function v(x) {
  92635. var C = x - l, P = x - u, $ = e - C;
  92636. return f ? Yht($, a - P) : $;
  92637. }
  92638. function g(x) {
  92639. var C = x - l, P = x - u;
  92640. return l === void 0 || C >= e || C < 0 || f && P >= a;
  92641. }
  92642. function m() {
  92643. var x = qI();
  92644. if (g(x))
  92645. return y(x);
  92646. s = setTimeout(m, v(x));
  92647. }
  92648. function y(x) {
  92649. return s = void 0, d && r ? h(x) : (r = i = void 0, o);
  92650. }
  92651. function _() {
  92652. s !== void 0 && clearTimeout(s), u = 0, r = l = i = s = void 0;
  92653. }
  92654. function O() {
  92655. return s === void 0 ? o : y(qI());
  92656. }
  92657. function S() {
  92658. var x = qI(), C = g(x);
  92659. if (r = arguments, i = this, l = x, C) {
  92660. if (s === void 0)
  92661. return p(l);
  92662. if (f)
  92663. return clearTimeout(s), s = setTimeout(m, e), h(l);
  92664. }
  92665. return s === void 0 && (s = setTimeout(m, e)), o;
  92666. }
  92667. return S.cancel = _, S.flush = O, S;
  92668. }
  92669. var Uhe = qht;
  92670. const Kht = /* @__PURE__ */ g2(Uhe), Jht = (t, { debounceWait: e, debounceLeading: n, debounceTrailing: r, debounceMaxWait: i }) => {
  92671. const a = ee(), o = V(() => {
  92672. const s = {}, l = z(n), u = z(r), c = z(i);
  92673. return l !== void 0 && (s.leading = l), u !== void 0 && (s.trailing = u), c !== void 0 && (s.maxWait = c), s;
  92674. });
  92675. return Vt((s) => {
  92676. if (z(e)) {
  92677. const l = t.runAsync.bind(t);
  92678. a.value = Kht(
  92679. (u) => {
  92680. u();
  92681. },
  92682. z(e),
  92683. o.value
  92684. ), t.runAsync = (...u) => new Promise((c, f) => {
  92685. var d;
  92686. (d = a.value) == null || d.call(a, () => {
  92687. l(...u).then(c).catch(f);
  92688. });
  92689. }), s(() => {
  92690. var u;
  92691. (u = a.value) == null || u.cancel(), t.runAsync = l;
  92692. });
  92693. }
  92694. }), z(e) ? {
  92695. name: "debouncePlugin",
  92696. onCancel: () => {
  92697. var s;
  92698. (s = a.value) == null || s.cancel();
  92699. }
  92700. } : {};
  92701. };
  92702. var ept = Object.defineProperty, tpt = (t, e, n) => e in t ? ept(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, xq = (t, e, n) => (tpt(t, typeof e != "symbol" ? e + "" : e, n), n);
  92703. class npt {
  92704. constructor() {
  92705. xq(this, "table", {}), xq(this, "hashTable", {});
  92706. }
  92707. insert(e) {
  92708. const n = Symbol(e);
  92709. return this.table[e] = !0, this.hashTable[n] = e, n;
  92710. }
  92711. find(e) {
  92712. return this.hashTable[e];
  92713. }
  92714. }
  92715. new npt();
  92716. function rpt(t) {
  92717. const n = t.toString().match(/^function\s+([^\s(]+)/);
  92718. return n ? n[1] : "";
  92719. }
  92720. function ipt(t) {
  92721. const e = t.toString(), n = /([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/, r = e.match(n);
  92722. return r ? r[1].trim() : "";
  92723. }
  92724. var apt = Object.defineProperty, opt = (t, e, n) => e in t ? apt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, wq = (t, e, n) => (opt(t, typeof e != "symbol" ? e + "" : e, n), n);
  92725. class spt {
  92726. constructor() {
  92727. wq(this, "requestInstances", /* @__PURE__ */ new Map()), wq(this, "listeners", []);
  92728. }
  92729. emit(e) {
  92730. this.listeners.forEach((n) => n(e));
  92731. }
  92732. subscribe(e) {
  92733. return this.listeners.push(e), () => {
  92734. const n = this.listeners.indexOf(e);
  92735. this.listeners.splice(n, 1);
  92736. };
  92737. }
  92738. insert(e, n) {
  92739. this.requestInstances.set(e, { ...n }), this.emit({
  92740. key: e,
  92741. ...n
  92742. });
  92743. }
  92744. update(e, n) {
  92745. this.has(e) && this.requestInstances.set(e, { ...this.requestInstances.get(e), ...n });
  92746. }
  92747. has(e) {
  92748. return this.requestInstances.has(e);
  92749. }
  92750. reset(e) {
  92751. if (this.requestInstances.has(e)) {
  92752. const n = this.requestInstances.get(e);
  92753. this.requestInstances.clear(), this.insert(e, n);
  92754. } else
  92755. this.requestInstances.clear();
  92756. }
  92757. getAll() {
  92758. return this.requestInstances;
  92759. }
  92760. }
  92761. const Sa = new spt(), lpt = (t, { ready: e = !0, debugKey: n, ...r }) => {
  92762. const i = () => {
  92763. if (n && !Sa.has(n)) {
  92764. const o = t.serviceRef.value.toString().includes("function") ? rpt(t.serviceRef.value.toString()) : ipt(t.serviceRef.value.toString());
  92765. Sa.insert(n, {
  92766. instance: t,
  92767. requestName: o,
  92768. time: Date.now()
  92769. });
  92770. }
  92771. }, a = V(
  92772. () => Object.fromEntries(
  92773. Object.entries({ ready: e, ...r }).map(([o, s]) => [o, z(s)])
  92774. )
  92775. );
  92776. return Vt(() => {
  92777. n && Sa.has(n) && Sa.emit({
  92778. ...t,
  92779. options: { ...t.options, ...a.value }
  92780. });
  92781. }), {
  92782. name: "devtoolsPlugin",
  92783. onBefore: (o) => {
  92784. i(), n && Sa.has(n) && Sa.emit({
  92785. ...t.state,
  92786. key: n,
  92787. params: o,
  92788. loading: !0,
  92789. time: Date.now(),
  92790. type: "pending"
  92791. });
  92792. },
  92793. onSuccess(o, s) {
  92794. i(), n && Sa.has(n) && Sa.emit({
  92795. ...t.state,
  92796. key: n,
  92797. data: o,
  92798. params: s,
  92799. loading: !1,
  92800. time: Date.now(),
  92801. type: "done"
  92802. });
  92803. },
  92804. onCancel() {
  92805. i(), n && Sa.has(n) && Sa.emit({
  92806. ...t.state,
  92807. key: n,
  92808. loading: !1,
  92809. time: Date.now(),
  92810. type: "cancel"
  92811. });
  92812. },
  92813. onError(o, s) {
  92814. i(), n && Sa.has(n) && Sa.emit({
  92815. ...t.state,
  92816. key: n,
  92817. params: s,
  92818. loading: !1,
  92819. error: o,
  92820. time: Date.now(),
  92821. type: "error"
  92822. });
  92823. },
  92824. onMutate(o) {
  92825. i(), n && Sa.has(n) && Sa.emit({
  92826. ...t.state,
  92827. key: n,
  92828. data: o,
  92829. loading: !1,
  92830. time: Date.now(),
  92831. type: "mutate"
  92832. });
  92833. }
  92834. };
  92835. }, upt = (t, { loadingDelay: e }) => {
  92836. const n = ee(), r = () => {
  92837. n.value && (clearTimeout(z(n.value)), n.value = void 0);
  92838. };
  92839. return {
  92840. name: "loadingDelayPlugin",
  92841. onFinally: () => {
  92842. r();
  92843. const i = z(e);
  92844. i && (t.setState({
  92845. loading: !0
  92846. }), n.value = setTimeout(() => {
  92847. t.setState({
  92848. loading: !1
  92849. });
  92850. }, i));
  92851. },
  92852. onError: () => {
  92853. r();
  92854. }
  92855. };
  92856. };
  92857. function N6() {
  92858. return !!(typeof window < "u" && window.document && window.document.createElement);
  92859. }
  92860. const cpt = !!(typeof window < "u" && window.document && window.document.createElement);
  92861. function B6() {
  92862. return N6() ? document.visibilityState !== "hidden" : !0;
  92863. }
  92864. const fb = [];
  92865. function fpt(t) {
  92866. return fb.push(t), function() {
  92867. const n = fb.indexOf(t);
  92868. fb.splice(n, 1);
  92869. };
  92870. }
  92871. if (N6()) {
  92872. const t = () => {
  92873. if (B6())
  92874. for (let e = 0; e < fb.length; e++) {
  92875. const n = fb[e];
  92876. n();
  92877. }
  92878. };
  92879. window.addEventListener("visibilitychange", t, !1);
  92880. }
  92881. const dpt = (t, { pollingInterval: e, pollingWhenHidden: n = !0, pollingErrorRetryCount: r = -1 }) => {
  92882. let i;
  92883. const a = ee(), o = ee(0), s = () => {
  92884. var l;
  92885. i && clearTimeout(i), (l = a.value) == null || l.call(a);
  92886. };
  92887. return Vt(() => {
  92888. z(e) || s();
  92889. }), z(e) ? {
  92890. name: "pollingPlugin",
  92891. onBefore: () => {
  92892. s();
  92893. },
  92894. onError: () => {
  92895. o.value += 1;
  92896. },
  92897. onSuccess: () => {
  92898. o.value = 0;
  92899. },
  92900. onFinally: () => {
  92901. r === -1 || r !== -1 && o.value <= r ? i = setTimeout(() => {
  92902. !n && !B6() ? a.value = fpt(() => {
  92903. t.refresh();
  92904. }) : t.refresh();
  92905. }, z(e)) : o.value = 0;
  92906. },
  92907. onCancel: () => {
  92908. s();
  92909. }
  92910. } : {};
  92911. };
  92912. function hpt(t, e) {
  92913. let n = !1;
  92914. return (...r) => {
  92915. n || (n = !0, t(...r), setTimeout(() => {
  92916. n = !1;
  92917. }, e));
  92918. };
  92919. }
  92920. function ppt() {
  92921. return N6() && typeof navigator.onLine < "u" ? navigator.onLine : !0;
  92922. }
  92923. const db = [];
  92924. function vpt(t) {
  92925. return db.push(t), function() {
  92926. const n = db.indexOf(t);
  92927. n > -1 && db.splice(n, 1);
  92928. };
  92929. }
  92930. if (cpt) {
  92931. const t = () => {
  92932. if (!(!B6() || !ppt()))
  92933. for (let e = 0; e < db.length; e++) {
  92934. const n = db[e];
  92935. n();
  92936. }
  92937. };
  92938. window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1);
  92939. }
  92940. const gpt = (t, { refreshOnWindowFocus: e, focusTimespan: n = 5e3 }) => {
  92941. const r = ee(), i = () => {
  92942. var a;
  92943. (a = r.value) == null || a.call(r);
  92944. };
  92945. return Vt((a) => {
  92946. if (z(e)) {
  92947. const o = hpt(
  92948. t.refresh.bind(t),
  92949. z(n)
  92950. );
  92951. r.value = vpt(() => {
  92952. o();
  92953. });
  92954. }
  92955. a(() => {
  92956. i();
  92957. });
  92958. }), im(() => {
  92959. i();
  92960. }), {
  92961. name: "refreshOnWindowFocusPlugin"
  92962. };
  92963. }, mpt = (t, { retryInterval: e, retryCount: n }) => {
  92964. const r = ee(), i = ee(0), a = ee(!1);
  92965. return n ? {
  92966. name: "retryPlugin",
  92967. onBefore: () => {
  92968. a.value || (i.value = 0), a.value = !1, r.value && clearTimeout(r.value);
  92969. },
  92970. onSuccess: () => {
  92971. i.value = 0;
  92972. },
  92973. onError: () => {
  92974. if (i.value += 1, n === -1 || i.value <= n) {
  92975. const o = e ?? Math.min(1e3 * 2 ** i.value, 3e4);
  92976. r.value = setTimeout(() => {
  92977. a.value = !0, t.refresh();
  92978. }, o);
  92979. } else
  92980. i.value = 0;
  92981. },
  92982. onCancel: () => {
  92983. i.value = 0, r.value && clearTimeout(r.value);
  92984. }
  92985. } : {};
  92986. };
  92987. var ypt = Uhe, bpt = el, _pt = "Expected a function";
  92988. function Opt(t, e, n) {
  92989. var r = !0, i = !0;
  92990. if (typeof t != "function")
  92991. throw new TypeError(_pt);
  92992. return bpt(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), ypt(t, e, {
  92993. leading: r,
  92994. maxWait: e,
  92995. trailing: i
  92996. });
  92997. }
  92998. var Spt = Opt;
  92999. const xpt = /* @__PURE__ */ g2(Spt), wpt = (t, { throttleWait: e, throttleLeading: n, throttleTrailing: r }) => {
  93000. const i = V(() => {
  93001. const o = {};
  93002. return z(n) !== void 0 && (o.leading = z(n)), z(r) !== void 0 && (o.trailing = z(r)), o;
  93003. }), a = V(
  93004. () => xpt(
  93005. (o) => {
  93006. o();
  93007. },
  93008. z(e),
  93009. i.value
  93010. )
  93011. );
  93012. return Vt((o) => {
  93013. if (z(e)) {
  93014. const s = t.runAsync.bind(t);
  93015. t.runAsync = (...l) => new Promise((u, c) => {
  93016. var f;
  93017. (f = a.value) == null || f.call(a, () => {
  93018. s(...l).then(u).catch(c);
  93019. });
  93020. }), o(() => {
  93021. var l;
  93022. t.runAsync = s, (l = a.value) == null || l.cancel();
  93023. });
  93024. }
  93025. }), z(e) ? {
  93026. name: "throttlePlugin",
  93027. onCancel: () => {
  93028. var o;
  93029. (o = a.value) == null || o.cancel();
  93030. }
  93031. } : {};
  93032. }, Cq = (t) => typeof t == "function", Cpt = (t) => typeof t == "boolean";
  93033. var Tpt = Object.defineProperty, Ppt = (t, e, n) => e in t ? Tpt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ix = (t, e, n) => (Ppt(t, typeof e != "symbol" ? e + "" : e, n), n);
  93034. class $pt {
  93035. constructor(e, n, r, i = {}) {
  93036. ix(this, "pluginImpls"), ix(this, "count", 0), ix(this, "state", {
  93037. loading: !1,
  93038. params: void 0,
  93039. data: void 0,
  93040. error: void 0
  93041. }), ix(this, "previousValidData"), this.serviceRef = e, this.options = n, this.setUpdateData = r, this.initState = i, this.state = {
  93042. ...this.state,
  93043. loading: !n.manual,
  93044. ...i
  93045. };
  93046. }
  93047. setState(e = {}) {
  93048. this.state = {
  93049. ...this.state,
  93050. ...e
  93051. }, this.setUpdateData(this.state);
  93052. }
  93053. setData(e, n) {
  93054. console.warn("Please use 'setFetchState' instead of 'setData'"), n instanceof Array ? n.forEach((r) => {
  93055. this.state[r] = e, this.setUpdateData(e, r);
  93056. }) : (this.state[n] = e, this.setUpdateData(e, n));
  93057. }
  93058. setFetchState(e, n) {
  93059. n instanceof Array ? n.forEach((r) => {
  93060. this.state[r] = e, this.setUpdateData(e, r);
  93061. }) : (this.state[n] = e, this.setUpdateData(e, n));
  93062. }
  93063. runPluginHandler(e, ...n) {
  93064. var r, i, a;
  93065. const o = (a = (i = (r = this.pluginImpls) == null ? void 0 : r.map((s) => {
  93066. var l;
  93067. return (l = s[e]) == null ? void 0 : l.call(s, ...n);
  93068. })) != null ? i : []) == null ? void 0 : a.filter(Boolean);
  93069. return Object.assign({}, ...o);
  93070. }
  93071. async runAsync(...e) {
  93072. var n, r, i, a, o, s, l, u, c, f, d;
  93073. this.count += 1;
  93074. const h = this.count, { stopNow: p = !1, returnNow: v = !1, ...g } = this.runPluginHandler(
  93075. "onBefore",
  93076. e
  93077. );
  93078. if (p)
  93079. return new Promise(() => {
  93080. });
  93081. if (this.setState({
  93082. loading: !0,
  93083. params: e,
  93084. ...g
  93085. }), v)
  93086. return Promise.resolve(g.data);
  93087. try {
  93088. (r = (n = this.options).onBefore) == null || r.call(n, e);
  93089. } catch (m) {
  93090. return this.setState({
  93091. error: m,
  93092. loading: !1
  93093. }), (a = (i = this.options).onError) == null || a.call(i, m, e), this.runPluginHandler("onError", m, e), new Promise(() => {
  93094. });
  93095. }
  93096. try {
  93097. let { servicePromise: m } = this.runPluginHandler("onRequest", this.serviceRef.value, e);
  93098. const y = (O) => {
  93099. var S, x, C, P;
  93100. if (h !== this.count)
  93101. return new Promise(() => {
  93102. });
  93103. const $ = this.options.formatResult ? this.options.formatResult(O) : O;
  93104. return this.setState({
  93105. data: $,
  93106. error: void 0,
  93107. loading: !1
  93108. }), (x = (S = this.options).onSuccess) == null || x.call(S, $, e), this.runPluginHandler("onSuccess", $, e), this.previousValidData = $, (P = (C = this.options).onFinally) == null || P.call(C, e, $, void 0), h === this.count && this.runPluginHandler("onFinally", e, $, void 0), $;
  93109. };
  93110. m || (m = this.serviceRef.value(...e));
  93111. const _ = await m;
  93112. return y(_);
  93113. } catch (m) {
  93114. if (h !== this.count)
  93115. return new Promise(() => {
  93116. });
  93117. throw this.setState({
  93118. error: m,
  93119. loading: !1
  93120. }), (s = (o = this.options).onError) == null || s.call(o, m, e), this.runPluginHandler("onError", m, e), (Cq((l = this.options) == null ? void 0 : l.rollbackOnError) && ((u = this.options) != null && u.rollbackOnError(e)) || Cpt((c = this.options) == null ? void 0 : c.rollbackOnError) && this.options.rollbackOnError) && this.setState({
  93121. data: this.previousValidData
  93122. }), (d = (f = this.options).onFinally) == null || d.call(f, e, void 0, m), h === this.count && this.runPluginHandler("onFinally", e, void 0, m), m;
  93123. }
  93124. }
  93125. run(...e) {
  93126. this.runAsync(...e).catch((n) => {
  93127. this.options.onError || console.error(n);
  93128. });
  93129. }
  93130. cancel() {
  93131. this.count += 1, this.setState({
  93132. loading: !1
  93133. }), this.runPluginHandler("onCancel");
  93134. }
  93135. refresh() {
  93136. this.run(...this.state.params || []);
  93137. }
  93138. refreshAsync() {
  93139. return this.runAsync(...this.state.params || []);
  93140. }
  93141. mutate(e) {
  93142. const n = Cq(e) ? e(this.state.data) : e;
  93143. this.runPluginHandler("onMutate", n), this.setState({
  93144. data: n
  93145. });
  93146. }
  93147. }
  93148. const Apt = Symbol(
  93149. "USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY"
  93150. );
  93151. function Ept(t) {
  93152. return Object.keys(t).filter((n) => ["data", "loading", "params", "error"].includes(n)).length === 4;
  93153. }
  93154. function Mpt(t, e = {}, n = []) {
  93155. const r = et(
  93156. Apt,
  93157. {}
  93158. ), { initialData: i = void 0, manual: a = !1, ready: o = !0, ...s } = {
  93159. ...r ?? {},
  93160. ...e ?? {}
  93161. }, l = {
  93162. manual: a,
  93163. ready: o,
  93164. initialData: i,
  93165. ...s
  93166. }, u = ee(t), c = zn({
  93167. data: i,
  93168. loading: !1,
  93169. params: void 0,
  93170. error: void 0
  93171. }), f = (v, g) => {
  93172. g ? c[g] = v : Ept(v) && (c.data = v.data, c.loading = v.loading, c.error = v.error, c.params = v.params);
  93173. }, d = n.map((v) => {
  93174. var g;
  93175. return (g = v == null ? void 0 : v.onInit) == null ? void 0 : g.call(v, l);
  93176. }).filter(Boolean), h = new $pt(
  93177. u,
  93178. l,
  93179. f,
  93180. Object.assign({}, ...d, c)
  93181. );
  93182. h.options = l, h.pluginImpls = n.map((v) => v(h, l));
  93183. const p = V(() => Vs(o) ? o.value : o);
  93184. if (Vt(() => {
  93185. if (!a) {
  93186. const v = h.state.params || e.defaultParams || [];
  93187. p.value && h.options.refreshDeps === !0 && u.value && h.run(...v);
  93188. }
  93189. }), !a && h.options.refreshDeps !== !0) {
  93190. const v = h.state.params || e.defaultParams || [];
  93191. z(o) && h.run(...v);
  93192. }
  93193. return im(() => {
  93194. h.cancel();
  93195. }), {
  93196. ...k_(c),
  93197. cancel: h.cancel.bind(h),
  93198. refresh: h.refresh.bind(h),
  93199. refreshAsync: h.refreshAsync.bind(h),
  93200. run: h.run.bind(h),
  93201. runAsync: h.runAsync.bind(h),
  93202. mutate: h.mutate.bind(h)
  93203. };
  93204. }
  93205. const Ipt = (t, e) => function(r, i = {}, a = []) {
  93206. let o = t;
  93207. const s = e || [];
  93208. for (let l = s.length; l--; )
  93209. o = s[l](o);
  93210. return o(r, i, a);
  93211. };
  93212. function Dpt(t, e, n) {
  93213. var r;
  93214. const i = (r = [
  93215. process.env.NODE_ENV === "development" ? lpt : null,
  93216. Jht,
  93217. upt,
  93218. dpt,
  93219. gpt,
  93220. wpt,
  93221. Ghe,
  93222. nht,
  93223. mpt
  93224. ]) == null ? void 0 : r.filter(Boolean);
  93225. return Ipt(Mpt, e == null ? void 0 : e.use)(t, e, [
  93226. ...i
  93227. ]);
  93228. }
  93229. /*! js-cookie v3.0.5 | MIT */
  93230. function ax(t) {
  93231. for (var e = 1; e < arguments.length; e++) {
  93232. var n = arguments[e];
  93233. for (var r in n)
  93234. t[r] = n[r];
  93235. }
  93236. return t;
  93237. }
  93238. var Rpt = {
  93239. read: function(t) {
  93240. return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
  93241. },
  93242. write: function(t) {
  93243. return encodeURIComponent(t).replace(
  93244. /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
  93245. decodeURIComponent
  93246. );
  93247. }
  93248. };
  93249. function HL(t, e) {
  93250. function n(i, a, o) {
  93251. if (!(typeof document > "u")) {
  93252. o = ax({}, e, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
  93253. var s = "";
  93254. for (var l in o)
  93255. o[l] && (s += "; " + l, o[l] !== !0 && (s += "=" + o[l].split(";")[0]));
  93256. return document.cookie = i + "=" + t.write(a, i) + s;
  93257. }
  93258. }
  93259. function r(i) {
  93260. if (!(typeof document > "u" || arguments.length && !i)) {
  93261. for (var a = document.cookie ? document.cookie.split("; ") : [], o = {}, s = 0; s < a.length; s++) {
  93262. var l = a[s].split("="), u = l.slice(1).join("=");
  93263. try {
  93264. var c = decodeURIComponent(l[0]);
  93265. if (o[c] = t.read(u, c), i === c)
  93266. break;
  93267. } catch {
  93268. }
  93269. }
  93270. return i ? o[i] : o;
  93271. }
  93272. }
  93273. return Object.create(
  93274. {
  93275. set: n,
  93276. get: r,
  93277. remove: function(i, a) {
  93278. n(
  93279. i,
  93280. "",
  93281. ax({}, a, {
  93282. expires: -1
  93283. })
  93284. );
  93285. },
  93286. withAttributes: function(i) {
  93287. return HL(this.converter, ax({}, this.attributes, i));
  93288. },
  93289. withConverter: function(i) {
  93290. return HL(ax({}, this.converter, i), this.attributes);
  93291. }
  93292. },
  93293. {
  93294. attributes: { value: Object.freeze(e) },
  93295. converter: { value: Object.freeze(t) }
  93296. }
  93297. );
  93298. }
  93299. HL(Rpt, { path: "/" });
  93300. function kpt() {
  93301. this.__data__ = [], this.size = 0;
  93302. }
  93303. var Lpt = kpt;
  93304. function Npt(t, e) {
  93305. return t === e || t !== t && e !== e;
  93306. }
  93307. var qP = Npt, Bpt = qP;
  93308. function zpt(t, e) {
  93309. for (var n = t.length; n--; )
  93310. if (Bpt(t[n][0], e))
  93311. return n;
  93312. return -1;
  93313. }
  93314. var KP = zpt, Vpt = KP, Fpt = Array.prototype, Wpt = Fpt.splice;
  93315. function Qpt(t) {
  93316. var e = this.__data__, n = Vpt(e, t);
  93317. if (n < 0)
  93318. return !1;
  93319. var r = e.length - 1;
  93320. return n == r ? e.pop() : Wpt.call(e, n, 1), --this.size, !0;
  93321. }
  93322. var Hpt = Qpt, Gpt = KP;
  93323. function jpt(t) {
  93324. var e = this.__data__, n = Gpt(e, t);
  93325. return n < 0 ? void 0 : e[n][1];
  93326. }
  93327. var Zpt = jpt, Upt = KP;
  93328. function Xpt(t) {
  93329. return Upt(this.__data__, t) > -1;
  93330. }
  93331. var Ypt = Xpt, qpt = KP;
  93332. function Kpt(t, e) {
  93333. var n = this.__data__, r = qpt(n, t);
  93334. return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
  93335. }
  93336. var Jpt = Kpt, evt = Lpt, tvt = Hpt, nvt = Zpt, rvt = Ypt, ivt = Jpt;
  93337. function Lm(t) {
  93338. var e = -1, n = t == null ? 0 : t.length;
  93339. for (this.clear(); ++e < n; ) {
  93340. var r = t[e];
  93341. this.set(r[0], r[1]);
  93342. }
  93343. }
  93344. Lm.prototype.clear = evt;
  93345. Lm.prototype.delete = tvt;
  93346. Lm.prototype.get = nvt;
  93347. Lm.prototype.has = rvt;
  93348. Lm.prototype.set = ivt;
  93349. var JP = Lm, avt = JP;
  93350. function ovt() {
  93351. this.__data__ = new avt(), this.size = 0;
  93352. }
  93353. var svt = ovt;
  93354. function lvt(t) {
  93355. var e = this.__data__, n = e.delete(t);
  93356. return this.size = e.size, n;
  93357. }
  93358. var uvt = lvt;
  93359. function cvt(t) {
  93360. return this.__data__.get(t);
  93361. }
  93362. var fvt = cvt;
  93363. function dvt(t) {
  93364. return this.__data__.has(t);
  93365. }
  93366. var hvt = dvt, pvt = km, vvt = el, gvt = "[object AsyncFunction]", mvt = "[object Function]", yvt = "[object GeneratorFunction]", bvt = "[object Proxy]";
  93367. function _vt(t) {
  93368. if (!vvt(t))
  93369. return !1;
  93370. var e = pvt(t);
  93371. return e == mvt || e == yvt || e == gvt || e == bvt;
  93372. }
  93373. var z6 = _vt, Ovt = tl, Svt = Ovt["__core-js_shared__"], xvt = Svt, KI = xvt, Tq = function() {
  93374. var t = /[^.]+$/.exec(KI && KI.keys && KI.keys.IE_PROTO || "");
  93375. return t ? "Symbol(src)_1." + t : "";
  93376. }();
  93377. function wvt(t) {
  93378. return !!Tq && Tq in t;
  93379. }
  93380. var Cvt = wvt, Tvt = Function.prototype, Pvt = Tvt.toString;
  93381. function $vt(t) {
  93382. if (t != null) {
  93383. try {
  93384. return Pvt.call(t);
  93385. } catch {
  93386. }
  93387. try {
  93388. return t + "";
  93389. } catch {
  93390. }
  93391. }
  93392. return "";
  93393. }
  93394. var Xhe = $vt, Avt = z6, Evt = Cvt, Mvt = el, Ivt = Xhe, Dvt = /[\\^$.*+?()[\]{}|]/g, Rvt = /^\[object .+?Constructor\]$/, kvt = Function.prototype, Lvt = Object.prototype, Nvt = kvt.toString, Bvt = Lvt.hasOwnProperty, zvt = RegExp(
  93395. "^" + Nvt.call(Bvt).replace(Dvt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  93396. );
  93397. function Vvt(t) {
  93398. if (!Mvt(t) || Evt(t))
  93399. return !1;
  93400. var e = Avt(t) ? zvt : Rvt;
  93401. return e.test(Ivt(t));
  93402. }
  93403. var Fvt = Vvt;
  93404. function Wvt(t, e) {
  93405. return t == null ? void 0 : t[e];
  93406. }
  93407. var Qvt = Wvt, Hvt = Fvt, Gvt = Qvt;
  93408. function jvt(t, e) {
  93409. var n = Gvt(t, e);
  93410. return Hvt(n) ? n : void 0;
  93411. }
  93412. var Op = jvt, Zvt = Op, Uvt = tl, Xvt = Zvt(Uvt, "Map"), V6 = Xvt, Yvt = Op, qvt = Yvt(Object, "create"), e$ = qvt, Pq = e$;
  93413. function Kvt() {
  93414. this.__data__ = Pq ? Pq(null) : {}, this.size = 0;
  93415. }
  93416. var Jvt = Kvt;
  93417. function egt(t) {
  93418. var e = this.has(t) && delete this.__data__[t];
  93419. return this.size -= e ? 1 : 0, e;
  93420. }
  93421. var tgt = egt, ngt = e$, rgt = "__lodash_hash_undefined__", igt = Object.prototype, agt = igt.hasOwnProperty;
  93422. function ogt(t) {
  93423. var e = this.__data__;
  93424. if (ngt) {
  93425. var n = e[t];
  93426. return n === rgt ? void 0 : n;
  93427. }
  93428. return agt.call(e, t) ? e[t] : void 0;
  93429. }
  93430. var sgt = ogt, lgt = e$, ugt = Object.prototype, cgt = ugt.hasOwnProperty;
  93431. function fgt(t) {
  93432. var e = this.__data__;
  93433. return lgt ? e[t] !== void 0 : cgt.call(e, t);
  93434. }
  93435. var dgt = fgt, hgt = e$, pgt = "__lodash_hash_undefined__";
  93436. function vgt(t, e) {
  93437. var n = this.__data__;
  93438. return this.size += this.has(t) ? 0 : 1, n[t] = hgt && e === void 0 ? pgt : e, this;
  93439. }
  93440. var ggt = vgt, mgt = Jvt, ygt = tgt, bgt = sgt, _gt = dgt, Ogt = ggt;
  93441. function Nm(t) {
  93442. var e = -1, n = t == null ? 0 : t.length;
  93443. for (this.clear(); ++e < n; ) {
  93444. var r = t[e];
  93445. this.set(r[0], r[1]);
  93446. }
  93447. }
  93448. Nm.prototype.clear = mgt;
  93449. Nm.prototype.delete = ygt;
  93450. Nm.prototype.get = bgt;
  93451. Nm.prototype.has = _gt;
  93452. Nm.prototype.set = Ogt;
  93453. var Sgt = Nm, $q = Sgt, xgt = JP, wgt = V6;
  93454. function Cgt() {
  93455. this.size = 0, this.__data__ = {
  93456. hash: new $q(),
  93457. map: new (wgt || xgt)(),
  93458. string: new $q()
  93459. };
  93460. }
  93461. var Tgt = Cgt;
  93462. function Pgt(t) {
  93463. var e = typeof t;
  93464. return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
  93465. }
  93466. var $gt = Pgt, Agt = $gt;
  93467. function Egt(t, e) {
  93468. var n = t.__data__;
  93469. return Agt(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
  93470. }
  93471. var t$ = Egt, Mgt = t$;
  93472. function Igt(t) {
  93473. var e = Mgt(this, t).delete(t);
  93474. return this.size -= e ? 1 : 0, e;
  93475. }
  93476. var Dgt = Igt, Rgt = t$;
  93477. function kgt(t) {
  93478. return Rgt(this, t).get(t);
  93479. }
  93480. var Lgt = kgt, Ngt = t$;
  93481. function Bgt(t) {
  93482. return Ngt(this, t).has(t);
  93483. }
  93484. var zgt = Bgt, Vgt = t$;
  93485. function Fgt(t, e) {
  93486. var n = Vgt(this, t), r = n.size;
  93487. return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
  93488. }
  93489. var Wgt = Fgt, Qgt = Tgt, Hgt = Dgt, Ggt = Lgt, jgt = zgt, Zgt = Wgt;
  93490. function Bm(t) {
  93491. var e = -1, n = t == null ? 0 : t.length;
  93492. for (this.clear(); ++e < n; ) {
  93493. var r = t[e];
  93494. this.set(r[0], r[1]);
  93495. }
  93496. }
  93497. Bm.prototype.clear = Qgt;
  93498. Bm.prototype.delete = Hgt;
  93499. Bm.prototype.get = Ggt;
  93500. Bm.prototype.has = jgt;
  93501. Bm.prototype.set = Zgt;
  93502. var Yhe = Bm, Ugt = JP, Xgt = V6, Ygt = Yhe, qgt = 200;
  93503. function Kgt(t, e) {
  93504. var n = this.__data__;
  93505. if (n instanceof Ugt) {
  93506. var r = n.__data__;
  93507. if (!Xgt || r.length < qgt - 1)
  93508. return r.push([t, e]), this.size = ++n.size, this;
  93509. n = this.__data__ = new Ygt(r);
  93510. }
  93511. return n.set(t, e), this.size = n.size, this;
  93512. }
  93513. var Jgt = Kgt, emt = JP, tmt = svt, nmt = uvt, rmt = fvt, imt = hvt, amt = Jgt;
  93514. function zm(t) {
  93515. var e = this.__data__ = new emt(t);
  93516. this.size = e.size;
  93517. }
  93518. zm.prototype.clear = tmt;
  93519. zm.prototype.delete = nmt;
  93520. zm.prototype.get = rmt;
  93521. zm.prototype.has = imt;
  93522. zm.prototype.set = amt;
  93523. var qhe = zm;
  93524. function omt(t, e) {
  93525. for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
  93526. ;
  93527. return t;
  93528. }
  93529. var smt = omt, lmt = Op, umt = function() {
  93530. try {
  93531. var t = lmt(Object, "defineProperty");
  93532. return t({}, "", {}), t;
  93533. } catch {
  93534. }
  93535. }(), Khe = umt, Aq = Khe;
  93536. function cmt(t, e, n) {
  93537. e == "__proto__" && Aq ? Aq(t, e, {
  93538. configurable: !0,
  93539. enumerable: !0,
  93540. value: n,
  93541. writable: !0
  93542. }) : t[e] = n;
  93543. }
  93544. var F6 = cmt, fmt = F6, dmt = qP, hmt = Object.prototype, pmt = hmt.hasOwnProperty;
  93545. function vmt(t, e, n) {
  93546. var r = t[e];
  93547. (!(pmt.call(t, e) && dmt(r, n)) || n === void 0 && !(e in t)) && fmt(t, e, n);
  93548. }
  93549. var Jhe = vmt, gmt = Jhe, mmt = F6;
  93550. function ymt(t, e, n, r) {
  93551. var i = !n;
  93552. n || (n = {});
  93553. for (var a = -1, o = e.length; ++a < o; ) {
  93554. var s = e[a], l = r ? r(n[s], t[s], s, n, t) : void 0;
  93555. l === void 0 && (l = t[s]), i ? mmt(n, s, l) : gmt(n, s, l);
  93556. }
  93557. return n;
  93558. }
  93559. var T1 = ymt;
  93560. function bmt(t, e) {
  93561. for (var n = -1, r = Array(t); ++n < t; )
  93562. r[n] = e(n);
  93563. return r;
  93564. }
  93565. var _mt = bmt, Omt = km, Smt = Vf, xmt = "[object Arguments]";
  93566. function wmt(t) {
  93567. return Smt(t) && Omt(t) == xmt;
  93568. }
  93569. var Cmt = wmt, Eq = Cmt, Tmt = Vf, epe = Object.prototype, Pmt = epe.hasOwnProperty, $mt = epe.propertyIsEnumerable, Amt = Eq(/* @__PURE__ */ function() {
  93570. return arguments;
  93571. }()) ? Eq : function(t) {
  93572. return Tmt(t) && Pmt.call(t, "callee") && !$mt.call(t, "callee");
  93573. }, tpe = Amt, Emt = Array.isArray, n$ = Emt, xT = { exports: {} };
  93574. function Mmt() {
  93575. return !1;
  93576. }
  93577. var Imt = Mmt;
  93578. xT.exports;
  93579. (function(t, e) {
  93580. var n = tl, r = Imt, i = e && !e.nodeType && e, a = i && !0 && t && !t.nodeType && t, o = a && a.exports === i, s = o ? n.Buffer : void 0, l = s ? s.isBuffer : void 0, u = l || r;
  93581. t.exports = u;
  93582. })(xT, xT.exports);
  93583. var W6 = xT.exports, Dmt = 9007199254740991, Rmt = /^(?:0|[1-9]\d*)$/;
  93584. function kmt(t, e) {
  93585. var n = typeof t;
  93586. return e = e ?? Dmt, !!e && (n == "number" || n != "symbol" && Rmt.test(t)) && t > -1 && t % 1 == 0 && t < e;
  93587. }
  93588. var npe = kmt, Lmt = 9007199254740991;
  93589. function Nmt(t) {
  93590. return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Lmt;
  93591. }
  93592. var rpe = Nmt, Bmt = km, zmt = rpe, Vmt = Vf, Fmt = "[object Arguments]", Wmt = "[object Array]", Qmt = "[object Boolean]", Hmt = "[object Date]", Gmt = "[object Error]", jmt = "[object Function]", Zmt = "[object Map]", Umt = "[object Number]", Xmt = "[object Object]", Ymt = "[object RegExp]", qmt = "[object Set]", Kmt = "[object String]", Jmt = "[object WeakMap]", e0t = "[object ArrayBuffer]", t0t = "[object DataView]", n0t = "[object Float32Array]", r0t = "[object Float64Array]", i0t = "[object Int8Array]", a0t = "[object Int16Array]", o0t = "[object Int32Array]", s0t = "[object Uint8Array]", l0t = "[object Uint8ClampedArray]", u0t = "[object Uint16Array]", c0t = "[object Uint32Array]", Jn = {};
  93593. Jn[n0t] = Jn[r0t] = Jn[i0t] = Jn[a0t] = Jn[o0t] = Jn[s0t] = Jn[l0t] = Jn[u0t] = Jn[c0t] = !0;
  93594. Jn[Fmt] = Jn[Wmt] = Jn[e0t] = Jn[Qmt] = Jn[t0t] = Jn[Hmt] = Jn[Gmt] = Jn[jmt] = Jn[Zmt] = Jn[Umt] = Jn[Xmt] = Jn[Ymt] = Jn[qmt] = Jn[Kmt] = Jn[Jmt] = !1;
  93595. function f0t(t) {
  93596. return Vmt(t) && zmt(t.length) && !!Jn[Bmt(t)];
  93597. }
  93598. var d0t = f0t;
  93599. function h0t(t) {
  93600. return function(e) {
  93601. return t(e);
  93602. };
  93603. }
  93604. var Q6 = h0t, wT = { exports: {} };
  93605. wT.exports;
  93606. (function(t, e) {
  93607. var n = jhe, r = e && !e.nodeType && e, i = r && !0 && t && !t.nodeType && t, a = i && i.exports === r, o = a && n.process, s = function() {
  93608. try {
  93609. var l = i && i.require && i.require("util").types;
  93610. return l || o && o.binding && o.binding("util");
  93611. } catch {
  93612. }
  93613. }();
  93614. t.exports = s;
  93615. })(wT, wT.exports);
  93616. var H6 = wT.exports, p0t = d0t, v0t = Q6, Mq = H6, Iq = Mq && Mq.isTypedArray, g0t = Iq ? v0t(Iq) : p0t, ipe = g0t, m0t = _mt, y0t = tpe, b0t = n$, _0t = W6, O0t = npe, S0t = ipe, x0t = Object.prototype, w0t = x0t.hasOwnProperty;
  93617. function C0t(t, e) {
  93618. var n = b0t(t), r = !n && y0t(t), i = !n && !r && _0t(t), a = !n && !r && !i && S0t(t), o = n || r || i || a, s = o ? m0t(t.length, String) : [], l = s.length;
  93619. for (var u in t)
  93620. (e || w0t.call(t, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
  93621. (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  93622. i && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  93623. a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
  93624. O0t(u, l))) && s.push(u);
  93625. return s;
  93626. }
  93627. var ape = C0t, T0t = Object.prototype;
  93628. function P0t(t) {
  93629. var e = t && t.constructor, n = typeof e == "function" && e.prototype || T0t;
  93630. return t === n;
  93631. }
  93632. var G6 = P0t;
  93633. function $0t(t, e) {
  93634. return function(n) {
  93635. return t(e(n));
  93636. };
  93637. }
  93638. var ope = $0t, A0t = ope, E0t = A0t(Object.keys, Object), M0t = E0t, I0t = G6, D0t = M0t, R0t = Object.prototype, k0t = R0t.hasOwnProperty;
  93639. function L0t(t) {
  93640. if (!I0t(t))
  93641. return D0t(t);
  93642. var e = [];
  93643. for (var n in Object(t))
  93644. k0t.call(t, n) && n != "constructor" && e.push(n);
  93645. return e;
  93646. }
  93647. var N0t = L0t, B0t = z6, z0t = rpe;
  93648. function V0t(t) {
  93649. return t != null && z0t(t.length) && !B0t(t);
  93650. }
  93651. var r$ = V0t, F0t = ape, W0t = N0t, Q0t = r$;
  93652. function H0t(t) {
  93653. return Q0t(t) ? F0t(t) : W0t(t);
  93654. }
  93655. var j6 = H0t, G0t = T1, j0t = j6;
  93656. function Z0t(t, e) {
  93657. return t && G0t(e, j0t(e), t);
  93658. }
  93659. var U0t = Z0t;
  93660. function X0t(t) {
  93661. var e = [];
  93662. if (t != null)
  93663. for (var n in Object(t))
  93664. e.push(n);
  93665. return e;
  93666. }
  93667. var Y0t = X0t, q0t = el, K0t = G6, J0t = Y0t, eyt = Object.prototype, tyt = eyt.hasOwnProperty;
  93668. function nyt(t) {
  93669. if (!q0t(t))
  93670. return J0t(t);
  93671. var e = K0t(t), n = [];
  93672. for (var r in t)
  93673. r == "constructor" && (e || !tyt.call(t, r)) || n.push(r);
  93674. return n;
  93675. }
  93676. var ryt = nyt, iyt = ape, ayt = ryt, oyt = r$;
  93677. function syt(t) {
  93678. return oyt(t) ? iyt(t, !0) : ayt(t);
  93679. }
  93680. var P1 = syt, lyt = T1, uyt = P1;
  93681. function cyt(t, e) {
  93682. return t && lyt(e, uyt(e), t);
  93683. }
  93684. var fyt = cyt, CT = { exports: {} };
  93685. CT.exports;
  93686. (function(t, e) {
  93687. var n = tl, r = e && !e.nodeType && e, i = r && !0 && t && !t.nodeType && t, a = i && i.exports === r, o = a ? n.Buffer : void 0, s = o ? o.allocUnsafe : void 0;
  93688. function l(u, c) {
  93689. if (c)
  93690. return u.slice();
  93691. var f = u.length, d = s ? s(f) : new u.constructor(f);
  93692. return u.copy(d), d;
  93693. }
  93694. t.exports = l;
  93695. })(CT, CT.exports);
  93696. var spe = CT.exports;
  93697. function dyt(t, e) {
  93698. var n = -1, r = t.length;
  93699. for (e || (e = Array(r)); ++n < r; )
  93700. e[n] = t[n];
  93701. return e;
  93702. }
  93703. var lpe = dyt;
  93704. function hyt(t, e) {
  93705. for (var n = -1, r = t == null ? 0 : t.length, i = 0, a = []; ++n < r; ) {
  93706. var o = t[n];
  93707. e(o, n, t) && (a[i++] = o);
  93708. }
  93709. return a;
  93710. }
  93711. var pyt = hyt;
  93712. function vyt() {
  93713. return [];
  93714. }
  93715. var upe = vyt, gyt = pyt, myt = upe, yyt = Object.prototype, byt = yyt.propertyIsEnumerable, Dq = Object.getOwnPropertySymbols, _yt = Dq ? function(t) {
  93716. return t == null ? [] : (t = Object(t), gyt(Dq(t), function(e) {
  93717. return byt.call(t, e);
  93718. }));
  93719. } : myt, Z6 = _yt, Oyt = T1, Syt = Z6;
  93720. function xyt(t, e) {
  93721. return Oyt(t, Syt(t), e);
  93722. }
  93723. var wyt = xyt;
  93724. function Cyt(t, e) {
  93725. for (var n = -1, r = e.length, i = t.length; ++n < r; )
  93726. t[i + n] = e[n];
  93727. return t;
  93728. }
  93729. var cpe = Cyt, Tyt = ope, Pyt = Tyt(Object.getPrototypeOf, Object), U6 = Pyt, $yt = cpe, Ayt = U6, Eyt = Z6, Myt = upe, Iyt = Object.getOwnPropertySymbols, Dyt = Iyt ? function(t) {
  93730. for (var e = []; t; )
  93731. $yt(e, Eyt(t)), t = Ayt(t);
  93732. return e;
  93733. } : Myt, fpe = Dyt, Ryt = T1, kyt = fpe;
  93734. function Lyt(t, e) {
  93735. return Ryt(t, kyt(t), e);
  93736. }
  93737. var Nyt = Lyt, Byt = cpe, zyt = n$;
  93738. function Vyt(t, e, n) {
  93739. var r = e(t);
  93740. return zyt(t) ? r : Byt(r, n(t));
  93741. }
  93742. var dpe = Vyt, Fyt = dpe, Wyt = Z6, Qyt = j6;
  93743. function Hyt(t) {
  93744. return Fyt(t, Qyt, Wyt);
  93745. }
  93746. var Gyt = Hyt, jyt = dpe, Zyt = fpe, Uyt = P1;
  93747. function Xyt(t) {
  93748. return jyt(t, Uyt, Zyt);
  93749. }
  93750. var Yyt = Xyt, qyt = Op, Kyt = tl, Jyt = qyt(Kyt, "DataView"), ebt = Jyt, tbt = Op, nbt = tl, rbt = tbt(nbt, "Promise"), ibt = rbt, abt = Op, obt = tl, sbt = abt(obt, "Set"), lbt = sbt, ubt = Op, cbt = tl, fbt = ubt(cbt, "WeakMap"), dbt = fbt, GL = ebt, jL = V6, ZL = ibt, UL = lbt, XL = dbt, hpe = km, Vm = Xhe, Rq = "[object Map]", hbt = "[object Object]", kq = "[object Promise]", Lq = "[object Set]", Nq = "[object WeakMap]", Bq = "[object DataView]", pbt = Vm(GL), vbt = Vm(jL), gbt = Vm(ZL), mbt = Vm(UL), ybt = Vm(XL), Fd = hpe;
  93751. (GL && Fd(new GL(new ArrayBuffer(1))) != Bq || jL && Fd(new jL()) != Rq || ZL && Fd(ZL.resolve()) != kq || UL && Fd(new UL()) != Lq || XL && Fd(new XL()) != Nq) && (Fd = function(t) {
  93752. var e = hpe(t), n = e == hbt ? t.constructor : void 0, r = n ? Vm(n) : "";
  93753. if (r)
  93754. switch (r) {
  93755. case pbt:
  93756. return Bq;
  93757. case vbt:
  93758. return Rq;
  93759. case gbt:
  93760. return kq;
  93761. case mbt:
  93762. return Lq;
  93763. case ybt:
  93764. return Nq;
  93765. }
  93766. return e;
  93767. });
  93768. var X6 = Fd, bbt = Object.prototype, _bt = bbt.hasOwnProperty;
  93769. function Obt(t) {
  93770. var e = t.length, n = new t.constructor(e);
  93771. return e && typeof t[0] == "string" && _bt.call(t, "index") && (n.index = t.index, n.input = t.input), n;
  93772. }
  93773. var Sbt = Obt, xbt = tl, wbt = xbt.Uint8Array, Cbt = wbt, zq = Cbt;
  93774. function Tbt(t) {
  93775. var e = new t.constructor(t.byteLength);
  93776. return new zq(e).set(new zq(t)), e;
  93777. }
  93778. var Y6 = Tbt, Pbt = Y6;
  93779. function $bt(t, e) {
  93780. var n = e ? Pbt(t.buffer) : t.buffer;
  93781. return new t.constructor(n, t.byteOffset, t.byteLength);
  93782. }
  93783. var Abt = $bt, Ebt = /\w*$/;
  93784. function Mbt(t) {
  93785. var e = new t.constructor(t.source, Ebt.exec(t));
  93786. return e.lastIndex = t.lastIndex, e;
  93787. }
  93788. var Ibt = Mbt, Vq = YP, Fq = Vq ? Vq.prototype : void 0, Wq = Fq ? Fq.valueOf : void 0;
  93789. function Dbt(t) {
  93790. return Wq ? Object(Wq.call(t)) : {};
  93791. }
  93792. var Rbt = Dbt, kbt = Y6;
  93793. function Lbt(t, e) {
  93794. var n = e ? kbt(t.buffer) : t.buffer;
  93795. return new t.constructor(n, t.byteOffset, t.length);
  93796. }
  93797. var ppe = Lbt, Nbt = Y6, Bbt = Abt, zbt = Ibt, Vbt = Rbt, Fbt = ppe, Wbt = "[object Boolean]", Qbt = "[object Date]", Hbt = "[object Map]", Gbt = "[object Number]", jbt = "[object RegExp]", Zbt = "[object Set]", Ubt = "[object String]", Xbt = "[object Symbol]", Ybt = "[object ArrayBuffer]", qbt = "[object DataView]", Kbt = "[object Float32Array]", Jbt = "[object Float64Array]", e_t = "[object Int8Array]", t_t = "[object Int16Array]", n_t = "[object Int32Array]", r_t = "[object Uint8Array]", i_t = "[object Uint8ClampedArray]", a_t = "[object Uint16Array]", o_t = "[object Uint32Array]";
  93798. function s_t(t, e, n) {
  93799. var r = t.constructor;
  93800. switch (e) {
  93801. case Ybt:
  93802. return Nbt(t);
  93803. case Wbt:
  93804. case Qbt:
  93805. return new r(+t);
  93806. case qbt:
  93807. return Bbt(t, n);
  93808. case Kbt:
  93809. case Jbt:
  93810. case e_t:
  93811. case t_t:
  93812. case n_t:
  93813. case r_t:
  93814. case i_t:
  93815. case a_t:
  93816. case o_t:
  93817. return Fbt(t, n);
  93818. case Hbt:
  93819. return new r();
  93820. case Gbt:
  93821. case Ubt:
  93822. return new r(t);
  93823. case jbt:
  93824. return zbt(t);
  93825. case Zbt:
  93826. return new r();
  93827. case Xbt:
  93828. return Vbt(t);
  93829. }
  93830. }
  93831. var l_t = s_t, u_t = el, Qq = Object.create, c_t = /* @__PURE__ */ function() {
  93832. function t() {
  93833. }
  93834. return function(e) {
  93835. if (!u_t(e))
  93836. return {};
  93837. if (Qq)
  93838. return Qq(e);
  93839. t.prototype = e;
  93840. var n = new t();
  93841. return t.prototype = void 0, n;
  93842. };
  93843. }(), f_t = c_t, d_t = f_t, h_t = U6, p_t = G6;
  93844. function v_t(t) {
  93845. return typeof t.constructor == "function" && !p_t(t) ? d_t(h_t(t)) : {};
  93846. }
  93847. var vpe = v_t, g_t = X6, m_t = Vf, y_t = "[object Map]";
  93848. function b_t(t) {
  93849. return m_t(t) && g_t(t) == y_t;
  93850. }
  93851. var __t = b_t, O_t = __t, S_t = Q6, Hq = H6, Gq = Hq && Hq.isMap, x_t = Gq ? S_t(Gq) : O_t, w_t = x_t, C_t = X6, T_t = Vf, P_t = "[object Set]";
  93852. function $_t(t) {
  93853. return T_t(t) && C_t(t) == P_t;
  93854. }
  93855. var A_t = $_t, E_t = A_t, M_t = Q6, jq = H6, Zq = jq && jq.isSet, I_t = Zq ? M_t(Zq) : E_t, D_t = I_t, R_t = qhe, k_t = smt, L_t = Jhe, N_t = U0t, B_t = fyt, z_t = spe, V_t = lpe, F_t = wyt, W_t = Nyt, Q_t = Gyt, H_t = Yyt, G_t = X6, j_t = Sbt, Z_t = l_t, U_t = vpe, X_t = n$, Y_t = W6, q_t = w_t, K_t = el, J_t = D_t, e1t = j6, t1t = P1, n1t = 1, r1t = 2, i1t = 4, gpe = "[object Arguments]", a1t = "[object Array]", o1t = "[object Boolean]", s1t = "[object Date]", l1t = "[object Error]", mpe = "[object Function]", u1t = "[object GeneratorFunction]", c1t = "[object Map]", f1t = "[object Number]", ype = "[object Object]", d1t = "[object RegExp]", h1t = "[object Set]", p1t = "[object String]", v1t = "[object Symbol]", g1t = "[object WeakMap]", m1t = "[object ArrayBuffer]", y1t = "[object DataView]", b1t = "[object Float32Array]", _1t = "[object Float64Array]", O1t = "[object Int8Array]", S1t = "[object Int16Array]", x1t = "[object Int32Array]", w1t = "[object Uint8Array]", C1t = "[object Uint8ClampedArray]", T1t = "[object Uint16Array]", P1t = "[object Uint32Array]", Un = {};
  93856. Un[gpe] = Un[a1t] = Un[m1t] = Un[y1t] = Un[o1t] = Un[s1t] = Un[b1t] = Un[_1t] = Un[O1t] = Un[S1t] = Un[x1t] = Un[c1t] = Un[f1t] = Un[ype] = Un[d1t] = Un[h1t] = Un[p1t] = Un[v1t] = Un[w1t] = Un[C1t] = Un[T1t] = Un[P1t] = !0;
  93857. Un[l1t] = Un[mpe] = Un[g1t] = !1;
  93858. function Cw(t, e, n, r, i, a) {
  93859. var o, s = e & n1t, l = e & r1t, u = e & i1t;
  93860. if (n && (o = i ? n(t, r, i, a) : n(t)), o !== void 0)
  93861. return o;
  93862. if (!K_t(t))
  93863. return t;
  93864. var c = X_t(t);
  93865. if (c) {
  93866. if (o = j_t(t), !s)
  93867. return V_t(t, o);
  93868. } else {
  93869. var f = G_t(t), d = f == mpe || f == u1t;
  93870. if (Y_t(t))
  93871. return z_t(t, s);
  93872. if (f == ype || f == gpe || d && !i) {
  93873. if (o = l || d ? {} : U_t(t), !s)
  93874. return l ? W_t(t, B_t(o, t)) : F_t(t, N_t(o, t));
  93875. } else {
  93876. if (!Un[f])
  93877. return i ? t : {};
  93878. o = Z_t(t, f, s);
  93879. }
  93880. }
  93881. a || (a = new R_t());
  93882. var h = a.get(t);
  93883. if (h)
  93884. return h;
  93885. a.set(t, o), J_t(t) ? t.forEach(function(g) {
  93886. o.add(Cw(g, e, n, g, t, a));
  93887. }) : q_t(t) && t.forEach(function(g, m) {
  93888. o.set(m, Cw(g, e, n, m, t, a));
  93889. });
  93890. var p = u ? l ? H_t : Q_t : l ? t1t : e1t, v = c ? void 0 : p(t);
  93891. return k_t(v || t, function(g, m) {
  93892. v && (m = g, g = t[m]), L_t(o, m, Cw(g, e, n, m, t, a));
  93893. }), o;
  93894. }
  93895. var $1t = Cw, A1t = $1t, E1t = 1, M1t = 4;
  93896. function I1t(t) {
  93897. return A1t(t, E1t | M1t);
  93898. }
  93899. var D1t = I1t;
  93900. const Uq = /* @__PURE__ */ g2(D1t);
  93901. var R1t = Object.defineProperty, k1t = (t, e, n) => e in t ? R1t(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Id = (t, e, n) => (k1t(t, typeof e != "symbol" ? e + "" : e, n), n);
  93902. class L1t {
  93903. constructor() {
  93904. Id(this, "subscriptions", /* @__PURE__ */ new Map()), Id(this, "emitEffectCache", /* @__PURE__ */ new Map()), Id(this, "useSubscription", (e, n) => {
  93905. const r = ee();
  93906. Vt((i) => {
  93907. var a, o;
  93908. r.value = n;
  93909. function s(u) {
  93910. r.value && r.value(u);
  93911. }
  93912. const l = (o = (a = this.subscriptions) == null ? void 0 : a.get(e)) != null ? o : [];
  93913. l.push(s), this.subscriptions.set(e, l), this.emitEffect(e), i(() => {
  93914. this.subscriptions.delete(e);
  93915. });
  93916. });
  93917. }), Id(this, "emit", (e, ...n) => {
  93918. if (typeof e == "string" || typeof e == "number") {
  93919. const r = this.subscriptions.get(e);
  93920. r == null || r.forEach((i) => {
  93921. i == null || i({
  93922. params: Uq(n),
  93923. event: e
  93924. });
  93925. }), this.emitEffectCache.set(e, {
  93926. params: Uq(n),
  93927. event: e
  93928. });
  93929. } else
  93930. throw new TypeError("event must be string or number !");
  93931. }), Id(this, "emitEffect", (e) => {
  93932. const n = this.emitEffectCache.get(e), r = this.subscriptions.get(e);
  93933. n && (r == null || r.forEach((i) => {
  93934. i == null || i({
  93935. ...n
  93936. });
  93937. }));
  93938. }), Id(this, "removeListener", (e) => {
  93939. this.subscriptions.delete(e);
  93940. }), Id(this, "clear", () => {
  93941. this.subscriptions.clear();
  93942. }), this.clear();
  93943. }
  93944. }
  93945. new L1t();
  93946. var N1t = { exports: {} };
  93947. /*!
  93948. * screenfull
  93949. * v5.2.0 - 2021-11-03
  93950. * (c) Sindre Sorhus; MIT License
  93951. */
  93952. (function(t) {
  93953. (function() {
  93954. var e = typeof window < "u" && typeof window.document < "u" ? window.document : {}, n = t.exports, r = function() {
  93955. for (var o, s = [
  93956. [
  93957. "requestFullscreen",
  93958. "exitFullscreen",
  93959. "fullscreenElement",
  93960. "fullscreenEnabled",
  93961. "fullscreenchange",
  93962. "fullscreenerror"
  93963. ],
  93964. // New WebKit
  93965. [
  93966. "webkitRequestFullscreen",
  93967. "webkitExitFullscreen",
  93968. "webkitFullscreenElement",
  93969. "webkitFullscreenEnabled",
  93970. "webkitfullscreenchange",
  93971. "webkitfullscreenerror"
  93972. ],
  93973. // Old WebKit
  93974. [
  93975. "webkitRequestFullScreen",
  93976. "webkitCancelFullScreen",
  93977. "webkitCurrentFullScreenElement",
  93978. "webkitCancelFullScreen",
  93979. "webkitfullscreenchange",
  93980. "webkitfullscreenerror"
  93981. ],
  93982. [
  93983. "mozRequestFullScreen",
  93984. "mozCancelFullScreen",
  93985. "mozFullScreenElement",
  93986. "mozFullScreenEnabled",
  93987. "mozfullscreenchange",
  93988. "mozfullscreenerror"
  93989. ],
  93990. [
  93991. "msRequestFullscreen",
  93992. "msExitFullscreen",
  93993. "msFullscreenElement",
  93994. "msFullscreenEnabled",
  93995. "MSFullscreenChange",
  93996. "MSFullscreenError"
  93997. ]
  93998. ], l = 0, u = s.length, c = {}; l < u; l++)
  93999. if (o = s[l], o && o[1] in e) {
  94000. for (l = 0; l < o.length; l++)
  94001. c[s[0][l]] = o[l];
  94002. return c;
  94003. }
  94004. return !1;
  94005. }(), i = {
  94006. change: r.fullscreenchange,
  94007. error: r.fullscreenerror
  94008. }, a = {
  94009. request: function(o, s) {
  94010. return new Promise((function(l, u) {
  94011. var c = (function() {
  94012. this.off("change", c), l();
  94013. }).bind(this);
  94014. this.on("change", c), o = o || e.documentElement;
  94015. var f = o[r.requestFullscreen](s);
  94016. f instanceof Promise && f.then(c).catch(u);
  94017. }).bind(this));
  94018. },
  94019. exit: function() {
  94020. return new Promise((function(o, s) {
  94021. if (!this.isFullscreen) {
  94022. o();
  94023. return;
  94024. }
  94025. var l = (function() {
  94026. this.off("change", l), o();
  94027. }).bind(this);
  94028. this.on("change", l);
  94029. var u = e[r.exitFullscreen]();
  94030. u instanceof Promise && u.then(l).catch(s);
  94031. }).bind(this));
  94032. },
  94033. toggle: function(o, s) {
  94034. return this.isFullscreen ? this.exit() : this.request(o, s);
  94035. },
  94036. onchange: function(o) {
  94037. this.on("change", o);
  94038. },
  94039. onerror: function(o) {
  94040. this.on("error", o);
  94041. },
  94042. on: function(o, s) {
  94043. var l = i[o];
  94044. l && e.addEventListener(l, s, !1);
  94045. },
  94046. off: function(o, s) {
  94047. var l = i[o];
  94048. l && e.removeEventListener(l, s, !1);
  94049. },
  94050. raw: r
  94051. };
  94052. if (!r) {
  94053. n ? t.exports = { isEnabled: !1 } : window.screenfull = { isEnabled: !1 };
  94054. return;
  94055. }
  94056. Object.defineProperties(a, {
  94057. isFullscreen: {
  94058. get: function() {
  94059. return !!e[r.fullscreenElement];
  94060. }
  94061. },
  94062. element: {
  94063. enumerable: !0,
  94064. get: function() {
  94065. return e[r.fullscreenElement];
  94066. }
  94067. },
  94068. isEnabled: {
  94069. enumerable: !0,
  94070. get: function() {
  94071. return !!e[r.fullscreenEnabled];
  94072. }
  94073. }
  94074. }), n ? t.exports = a : window.screenfull = a;
  94075. })();
  94076. })(N1t);
  94077. var B1t = "__lodash_hash_undefined__";
  94078. function z1t(t) {
  94079. return this.__data__.set(t, B1t), this;
  94080. }
  94081. var V1t = z1t;
  94082. function F1t(t) {
  94083. return this.__data__.has(t);
  94084. }
  94085. var W1t = F1t, Q1t = Yhe, H1t = V1t, G1t = W1t;
  94086. function YL(t) {
  94087. var e = -1, n = t == null ? 0 : t.length;
  94088. for (this.__data__ = new Q1t(); ++e < n; )
  94089. this.add(t[e]);
  94090. }
  94091. YL.prototype.add = YL.prototype.push = H1t;
  94092. YL.prototype.has = G1t;
  94093. var Xq = YP, Yq = Xq ? Xq.prototype : void 0;
  94094. Yq && Yq.valueOf;
  94095. var j1t = F6, Z1t = qP;
  94096. function U1t(t, e, n) {
  94097. (n !== void 0 && !Z1t(t[e], n) || n === void 0 && !(e in t)) && j1t(t, e, n);
  94098. }
  94099. var bpe = U1t;
  94100. function X1t(t) {
  94101. return function(e, n, r) {
  94102. for (var i = -1, a = Object(e), o = r(e), s = o.length; s--; ) {
  94103. var l = o[t ? s : ++i];
  94104. if (n(a[l], l, a) === !1)
  94105. break;
  94106. }
  94107. return e;
  94108. };
  94109. }
  94110. var Y1t = X1t, q1t = Y1t, K1t = q1t(), J1t = K1t, eOt = r$, tOt = Vf;
  94111. function nOt(t) {
  94112. return tOt(t) && eOt(t);
  94113. }
  94114. var rOt = nOt, iOt = km, aOt = U6, oOt = Vf, sOt = "[object Object]", lOt = Function.prototype, uOt = Object.prototype, _pe = lOt.toString, cOt = uOt.hasOwnProperty, fOt = _pe.call(Object);
  94115. function dOt(t) {
  94116. if (!oOt(t) || iOt(t) != sOt)
  94117. return !1;
  94118. var e = aOt(t);
  94119. if (e === null)
  94120. return !0;
  94121. var n = cOt.call(e, "constructor") && e.constructor;
  94122. return typeof n == "function" && n instanceof n && _pe.call(n) == fOt;
  94123. }
  94124. var hOt = dOt;
  94125. function pOt(t, e) {
  94126. if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
  94127. return t[e];
  94128. }
  94129. var Ope = pOt, vOt = T1, gOt = P1;
  94130. function mOt(t) {
  94131. return vOt(t, gOt(t));
  94132. }
  94133. var yOt = mOt, qq = bpe, bOt = spe, _Ot = ppe, OOt = lpe, SOt = vpe, Kq = tpe, Jq = n$, xOt = rOt, wOt = W6, COt = z6, TOt = el, POt = hOt, $Ot = ipe, eK = Ope, AOt = yOt;
  94134. function EOt(t, e, n, r, i, a, o) {
  94135. var s = eK(t, n), l = eK(e, n), u = o.get(l);
  94136. if (u) {
  94137. qq(t, n, u);
  94138. return;
  94139. }
  94140. var c = a ? a(s, l, n + "", t, e, o) : void 0, f = c === void 0;
  94141. if (f) {
  94142. var d = Jq(l), h = !d && wOt(l), p = !d && !h && $Ot(l);
  94143. c = l, d || h || p ? Jq(s) ? c = s : xOt(s) ? c = OOt(s) : h ? (f = !1, c = bOt(l, !0)) : p ? (f = !1, c = _Ot(l, !0)) : c = [] : POt(l) || Kq(l) ? (c = s, Kq(s) ? c = AOt(s) : (!TOt(s) || COt(s)) && (c = SOt(l))) : f = !1;
  94144. }
  94145. f && (o.set(l, c), i(c, l, r, a, o), o.delete(l)), qq(t, n, c);
  94146. }
  94147. var MOt = EOt, IOt = qhe, DOt = bpe, ROt = J1t, kOt = MOt, LOt = el, NOt = P1, BOt = Ope;
  94148. function Spe(t, e, n, r, i) {
  94149. t !== e && ROt(e, function(a, o) {
  94150. if (i || (i = new IOt()), LOt(a))
  94151. kOt(t, e, o, n, Spe, r, i);
  94152. else {
  94153. var s = r ? r(BOt(t, o), a, o + "", t, e, i) : void 0;
  94154. s === void 0 && (s = a), DOt(t, o, s);
  94155. }
  94156. }, NOt);
  94157. }
  94158. var zOt = Spe;
  94159. function VOt(t) {
  94160. return t;
  94161. }
  94162. var xpe = VOt;
  94163. function FOt(t, e, n) {
  94164. switch (n.length) {
  94165. case 0:
  94166. return t.call(e);
  94167. case 1:
  94168. return t.call(e, n[0]);
  94169. case 2:
  94170. return t.call(e, n[0], n[1]);
  94171. case 3:
  94172. return t.call(e, n[0], n[1], n[2]);
  94173. }
  94174. return t.apply(e, n);
  94175. }
  94176. var WOt = FOt, QOt = WOt, tK = Math.max;
  94177. function HOt(t, e, n) {
  94178. return e = tK(e === void 0 ? t.length - 1 : e, 0), function() {
  94179. for (var r = arguments, i = -1, a = tK(r.length - e, 0), o = Array(a); ++i < a; )
  94180. o[i] = r[e + i];
  94181. i = -1;
  94182. for (var s = Array(e + 1); ++i < e; )
  94183. s[i] = r[i];
  94184. return s[e] = n(o), QOt(t, this, s);
  94185. };
  94186. }
  94187. var GOt = HOt;
  94188. function jOt(t) {
  94189. return function() {
  94190. return t;
  94191. };
  94192. }
  94193. var ZOt = jOt, UOt = ZOt, nK = Khe, XOt = xpe, YOt = nK ? function(t, e) {
  94194. return nK(t, "toString", {
  94195. configurable: !0,
  94196. enumerable: !1,
  94197. value: UOt(e),
  94198. writable: !0
  94199. });
  94200. } : XOt, qOt = YOt, KOt = 800, JOt = 16, eSt = Date.now;
  94201. function tSt(t) {
  94202. var e = 0, n = 0;
  94203. return function() {
  94204. var r = eSt(), i = JOt - (r - n);
  94205. if (n = r, i > 0) {
  94206. if (++e >= KOt)
  94207. return arguments[0];
  94208. } else
  94209. e = 0;
  94210. return t.apply(void 0, arguments);
  94211. };
  94212. }
  94213. var nSt = tSt, rSt = qOt, iSt = nSt, aSt = iSt(rSt), oSt = aSt, sSt = xpe, lSt = GOt, uSt = oSt;
  94214. function cSt(t, e) {
  94215. return uSt(lSt(t, e, sSt), t + "");
  94216. }
  94217. var fSt = cSt, dSt = qP, hSt = r$, pSt = npe, vSt = el;
  94218. function gSt(t, e, n) {
  94219. if (!vSt(n))
  94220. return !1;
  94221. var r = typeof e;
  94222. return (r == "number" ? hSt(n) && pSt(e, n.length) : r == "string" && e in n) ? dSt(n[e], t) : !1;
  94223. }
  94224. var mSt = gSt, ySt = fSt, bSt = mSt;
  94225. function _St(t) {
  94226. return ySt(function(e, n) {
  94227. var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
  94228. for (a = t.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && bSt(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), e = Object(e); ++r < i; ) {
  94229. var s = n[r];
  94230. s && t(e, s, r, a);
  94231. }
  94232. return e;
  94233. });
  94234. }
  94235. var OSt = _St, SSt = zOt, xSt = OSt;
  94236. xSt(function(t, e, n) {
  94237. SSt(t, e, n);
  94238. });
  94239. const q6 = (t) => {
  94240. var h, p, v;
  94241. const e = t.dataSource || {}, n = ee(), r = ee(), i = ee((h = e == null ? void 0 : e.data) == null ? void 0 : h.series), a = V(() => async () => await fetch(t.dataSource.url, {
  94242. method: t.dataSource.method
  94243. }).then((g) => g.json())), { run: o, refresh: s, cancel: l, data: u, loading: c } = Dpt(a.value, {
  94244. defaultParams: t.dataSource.params,
  94245. manual: !0,
  94246. cacheKey: t.dataSource.url,
  94247. cacheTime: (((p = t.dataSource) == null ? void 0 : p.refreshTime) || 0) * 1e3,
  94248. pollingInterval: (((v = t.dataSource) == null ? void 0 : v.refreshTime) || 0) * 1e3,
  94249. // 刷新时间
  94250. onError: (g) => {
  94251. console.error(g), Wh.error(t.dataSource.url + "请求失败");
  94252. }
  94253. });
  94254. t.dataSource.sourceType === kr.API && o(), me(
  94255. () => u.value,
  94256. async (g) => {
  94257. if (g && t.dataSource.sourceType === kr.API) {
  94258. let m = g;
  94259. t.dataSource.dataProcess && (m = await jdt(t.dataSource.dataProcess, JSON.stringify(g))), n.value = m.xAxis || m.xData ? { data: m.xData } : n.value, r.value = m.yAxis || m.yData ? { data: m.yData } : r.value, i.value = m.series;
  94260. }
  94261. },
  94262. {
  94263. deep: !0
  94264. }
  94265. ), me(
  94266. () => [
  94267. t.dataSource.sourceType,
  94268. t.dataSource.method,
  94269. t.dataSource.data
  94270. ],
  94271. () => {
  94272. if (t.dataSource.sourceType === kr.API && s(), t.dataSource.sourceType === kr.STATIC) {
  94273. l();
  94274. const g = t.dataSource || {}, { xData: m, yData: y, series: _ } = (g == null ? void 0 : g.data) || {};
  94275. m && (n.value = { data: m }), y && (r.value = { data: y }), i.value = _;
  94276. }
  94277. if ([kr.BASIC_PATH, kr.VIEW_CODE].includes(t.dataSource.sourceType)) {
  94278. const g = t.dataSource || {}, m = {
  94279. viewCode: g.viewCode,
  94280. basicPath: g.basicPath,
  94281. items: "",
  94282. filter: "",
  94283. key: "",
  94284. isOne: ""
  94285. };
  94286. window.mabp.$doLoadComponentData(m).then(function(y) {
  94287. i.value = y.data;
  94288. });
  94289. }
  94290. },
  94291. {
  94292. deep: !0
  94293. }
  94294. );
  94295. const f = (g) => {
  94296. var S, x, C, P;
  94297. let m = 34, y = 20, _ = 30, O = 20;
  94298. return !Array.isArray(g.title) && ((S = g.title) != null && S.show) && (O += 20), !Array.isArray(g.legend) && ((x = g.legend) != null && x.show) && (g.legend.left === "center" && g.legend.top !== "auto" && (O += 20), g.legend.left === "center" && g.legend.bottom !== "auto" && (m += 20), g.legend.top === "center" && g.legend.left !== "auto" && (_ += 70), g.legend.top === "center" && g.legend.right !== "auto" && (y += 50)), !Array.isArray(g.xAxis) && ((C = g.xAxis) != null && C.name) && (m += 20), !Array.isArray(g.yAxis) && ((P = g.yAxis) != null && P.name) && (_ += 20), {
  94299. bottom: m,
  94300. left: _,
  94301. right: y,
  94302. top: O
  94303. };
  94304. };
  94305. return {
  94306. options: V(() => {
  94307. var _, O;
  94308. const g = mte(t, [
  94309. "width",
  94310. "height",
  94311. "dataSource"
  94312. ]);
  94313. !Array.isArray(g.title) && !((_ = g.title) != null && _.show) && !Array.isArray(g.legend) && g.legend && (g.legend.top = 12);
  94314. const m = (g == null ? void 0 : g.label) || {}, y = pte(
  94315. {
  94316. xAxis: n.value,
  94317. yAxis: r.value,
  94318. series: (O = i.value) == null ? void 0 : O.map((S) => {
  94319. const x = g.seriesExtend || {};
  94320. return {
  94321. ...m,
  94322. ...S,
  94323. ...x
  94324. };
  94325. }),
  94326. grid: f(g)
  94327. },
  94328. g
  94329. );
  94330. return console.log("option result:", y), y;
  94331. }),
  94332. loading: c
  94333. };
  94334. }, wSt = ae({
  94335. name: "DBasicLine",
  94336. components: { Charts: D6 },
  94337. props: L6,
  94338. setup(t) {
  94339. const { options: e, loading: n } = q6(t);
  94340. return {
  94341. options: e,
  94342. loading: n
  94343. };
  94344. }
  94345. });
  94346. function CSt(t, e, n, r, i, a) {
  94347. const o = br("Charts");
  94348. return be(), Je(o, {
  94349. width: t.width,
  94350. height: t.height,
  94351. "echarts-options": t.options,
  94352. loading: t.loading
  94353. }, null, 8, ["width", "height", "echarts-options", "loading"]);
  94354. }
  94355. const ng = /* @__PURE__ */ ui(wSt, [["render", CSt]]);
  94356. class xn {
  94357. /**
  94358. Get the line description around the given position.
  94359. */
  94360. lineAt(e) {
  94361. if (e < 0 || e > this.length)
  94362. throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);
  94363. return this.lineInner(e, !1, 1, 0);
  94364. }
  94365. /**
  94366. Get the description for the given (1-based) line number.
  94367. */
  94368. line(e) {
  94369. if (e < 1 || e > this.lines)
  94370. throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);
  94371. return this.lineInner(e, !0, 1, 0);
  94372. }
  94373. /**
  94374. Replace a range of the text with the given content.
  94375. */
  94376. replace(e, n, r) {
  94377. [e, n] = qg(this, e, n);
  94378. let i = [];
  94379. return this.decompose(
  94380. 0,
  94381. e,
  94382. i,
  94383. 2
  94384. /* Open.To */
  94385. ), r.length && r.decompose(
  94386. 0,
  94387. r.length,
  94388. i,
  94389. 3
  94390. /* Open.To */
  94391. ), this.decompose(
  94392. n,
  94393. this.length,
  94394. i,
  94395. 1
  94396. /* Open.From */
  94397. ), Cl.from(i, this.length - (n - e) + r.length);
  94398. }
  94399. /**
  94400. Append another document to this one.
  94401. */
  94402. append(e) {
  94403. return this.replace(this.length, this.length, e);
  94404. }
  94405. /**
  94406. Retrieve the text between the given points.
  94407. */
  94408. slice(e, n = this.length) {
  94409. [e, n] = qg(this, e, n);
  94410. let r = [];
  94411. return this.decompose(e, n, r, 0), Cl.from(r, n - e);
  94412. }
  94413. /**
  94414. Test whether this text is equal to another instance.
  94415. */
  94416. eq(e) {
  94417. if (e == this)
  94418. return !0;
  94419. if (e.length != this.length || e.lines != this.lines)
  94420. return !1;
  94421. let n = this.scanIdentical(e, 1), r = this.length - this.scanIdentical(e, -1), i = new hb(this), a = new hb(e);
  94422. for (let o = n, s = n; ; ) {
  94423. if (i.next(o), a.next(o), o = 0, i.lineBreak != a.lineBreak || i.done != a.done || i.value != a.value)
  94424. return !1;
  94425. if (s += i.value.length, i.done || s >= r)
  94426. return !0;
  94427. }
  94428. }
  94429. /**
  94430. Iterate over the text. When `dir` is `-1`, iteration happens
  94431. from end to start. This will return lines and the breaks between
  94432. them as separate strings.
  94433. */
  94434. iter(e = 1) {
  94435. return new hb(this, e);
  94436. }
  94437. /**
  94438. Iterate over a range of the text. When `from` > `to`, the
  94439. iterator will run in reverse.
  94440. */
  94441. iterRange(e, n = this.length) {
  94442. return new wpe(this, e, n);
  94443. }
  94444. /**
  94445. Return a cursor that iterates over the given range of lines,
  94446. _without_ returning the line breaks between, and yielding empty
  94447. strings for empty lines.
  94448. When `from` and `to` are given, they should be 1-based line numbers.
  94449. */
  94450. iterLines(e, n) {
  94451. let r;
  94452. if (e == null)
  94453. r = this.iter();
  94454. else {
  94455. n == null && (n = this.lines + 1);
  94456. let i = this.line(e).from;
  94457. r = this.iterRange(i, Math.max(i, n == this.lines + 1 ? this.length : n <= 1 ? 0 : this.line(n - 1).to));
  94458. }
  94459. return new Cpe(r);
  94460. }
  94461. /**
  94462. Return the document as a string, using newline characters to
  94463. separate lines.
  94464. */
  94465. toString() {
  94466. return this.sliceString(0);
  94467. }
  94468. /**
  94469. Convert the document to an array of lines (which can be
  94470. deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).
  94471. */
  94472. toJSON() {
  94473. let e = [];
  94474. return this.flatten(e), e;
  94475. }
  94476. /**
  94477. @internal
  94478. */
  94479. constructor() {
  94480. }
  94481. /**
  94482. Create a `Text` instance for the given array of lines.
  94483. */
  94484. static of(e) {
  94485. if (e.length == 0)
  94486. throw new RangeError("A document must have at least one line");
  94487. return e.length == 1 && !e[0] ? xn.empty : e.length <= 32 ? new $r(e) : Cl.from($r.split(e, []));
  94488. }
  94489. }
  94490. class $r extends xn {
  94491. constructor(e, n = TSt(e)) {
  94492. super(), this.text = e, this.length = n;
  94493. }
  94494. get lines() {
  94495. return this.text.length;
  94496. }
  94497. get children() {
  94498. return null;
  94499. }
  94500. lineInner(e, n, r, i) {
  94501. for (let a = 0; ; a++) {
  94502. let o = this.text[a], s = i + o.length;
  94503. if ((n ? r : s) >= e)
  94504. return new PSt(i, s, r, o);
  94505. i = s + 1, r++;
  94506. }
  94507. }
  94508. decompose(e, n, r, i) {
  94509. let a = e <= 0 && n >= this.length ? this : new $r(rK(this.text, e, n), Math.min(n, this.length) - Math.max(0, e));
  94510. if (i & 1) {
  94511. let o = r.pop(), s = Tw(a.text, o.text.slice(), 0, a.length);
  94512. if (s.length <= 32)
  94513. r.push(new $r(s, o.length + a.length));
  94514. else {
  94515. let l = s.length >> 1;
  94516. r.push(new $r(s.slice(0, l)), new $r(s.slice(l)));
  94517. }
  94518. } else
  94519. r.push(a);
  94520. }
  94521. replace(e, n, r) {
  94522. if (!(r instanceof $r))
  94523. return super.replace(e, n, r);
  94524. [e, n] = qg(this, e, n);
  94525. let i = Tw(this.text, Tw(r.text, rK(this.text, 0, e)), n), a = this.length + r.length - (n - e);
  94526. return i.length <= 32 ? new $r(i, a) : Cl.from($r.split(i, []), a);
  94527. }
  94528. sliceString(e, n = this.length, r = `
  94529. `) {
  94530. [e, n] = qg(this, e, n);
  94531. let i = "";
  94532. for (let a = 0, o = 0; a <= n && o < this.text.length; o++) {
  94533. let s = this.text[o], l = a + s.length;
  94534. a > e && o && (i += r), e < l && n > a && (i += s.slice(Math.max(0, e - a), n - a)), a = l + 1;
  94535. }
  94536. return i;
  94537. }
  94538. flatten(e) {
  94539. for (let n of this.text)
  94540. e.push(n);
  94541. }
  94542. scanIdentical() {
  94543. return 0;
  94544. }
  94545. static split(e, n) {
  94546. let r = [], i = -1;
  94547. for (let a of e)
  94548. r.push(a), i += a.length + 1, r.length == 32 && (n.push(new $r(r, i)), r = [], i = -1);
  94549. return i > -1 && n.push(new $r(r, i)), n;
  94550. }
  94551. }
  94552. class Cl extends xn {
  94553. constructor(e, n) {
  94554. super(), this.children = e, this.length = n, this.lines = 0;
  94555. for (let r of e)
  94556. this.lines += r.lines;
  94557. }
  94558. lineInner(e, n, r, i) {
  94559. for (let a = 0; ; a++) {
  94560. let o = this.children[a], s = i + o.length, l = r + o.lines - 1;
  94561. if ((n ? l : s) >= e)
  94562. return o.lineInner(e, n, r, i);
  94563. i = s + 1, r = l + 1;
  94564. }
  94565. }
  94566. decompose(e, n, r, i) {
  94567. for (let a = 0, o = 0; o <= n && a < this.children.length; a++) {
  94568. let s = this.children[a], l = o + s.length;
  94569. if (e <= l && n >= o) {
  94570. let u = i & ((o <= e ? 1 : 0) | (l >= n ? 2 : 0));
  94571. o >= e && l <= n && !u ? r.push(s) : s.decompose(e - o, n - o, r, u);
  94572. }
  94573. o = l + 1;
  94574. }
  94575. }
  94576. replace(e, n, r) {
  94577. if ([e, n] = qg(this, e, n), r.lines < this.lines)
  94578. for (let i = 0, a = 0; i < this.children.length; i++) {
  94579. let o = this.children[i], s = a + o.length;
  94580. if (e >= a && n <= s) {
  94581. let l = o.replace(e - a, n - a, r), u = this.lines - o.lines + l.lines;
  94582. if (l.lines < u >> 4 && l.lines > u >> 6) {
  94583. let c = this.children.slice();
  94584. return c[i] = l, new Cl(c, this.length - (n - e) + r.length);
  94585. }
  94586. return super.replace(a, s, l);
  94587. }
  94588. a = s + 1;
  94589. }
  94590. return super.replace(e, n, r);
  94591. }
  94592. sliceString(e, n = this.length, r = `
  94593. `) {
  94594. [e, n] = qg(this, e, n);
  94595. let i = "";
  94596. for (let a = 0, o = 0; a < this.children.length && o <= n; a++) {
  94597. let s = this.children[a], l = o + s.length;
  94598. o > e && a && (i += r), e < l && n > o && (i += s.sliceString(e - o, n - o, r)), o = l + 1;
  94599. }
  94600. return i;
  94601. }
  94602. flatten(e) {
  94603. for (let n of this.children)
  94604. n.flatten(e);
  94605. }
  94606. scanIdentical(e, n) {
  94607. if (!(e instanceof Cl))
  94608. return 0;
  94609. let r = 0, [i, a, o, s] = n > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1];
  94610. for (; ; i += n, a += n) {
  94611. if (i == o || a == s)
  94612. return r;
  94613. let l = this.children[i], u = e.children[a];
  94614. if (l != u)
  94615. return r + l.scanIdentical(u, n);
  94616. r += l.length + 1;
  94617. }
  94618. }
  94619. static from(e, n = e.reduce((r, i) => r + i.length + 1, -1)) {
  94620. let r = 0;
  94621. for (let h of e)
  94622. r += h.lines;
  94623. if (r < 32) {
  94624. let h = [];
  94625. for (let p of e)
  94626. p.flatten(h);
  94627. return new $r(h, n);
  94628. }
  94629. let i = Math.max(
  94630. 32,
  94631. r >> 5
  94632. /* Tree.BranchShift */
  94633. ), a = i << 1, o = i >> 1, s = [], l = 0, u = -1, c = [];
  94634. function f(h) {
  94635. let p;
  94636. if (h.lines > a && h instanceof Cl)
  94637. for (let v of h.children)
  94638. f(v);
  94639. else h.lines > o && (l > o || !l) ? (d(), s.push(h)) : h instanceof $r && l && (p = c[c.length - 1]) instanceof $r && h.lines + p.lines <= 32 ? (l += h.lines, u += h.length + 1, c[c.length - 1] = new $r(p.text.concat(h.text), p.length + 1 + h.length)) : (l + h.lines > i && d(), l += h.lines, u += h.length + 1, c.push(h));
  94640. }
  94641. function d() {
  94642. l != 0 && (s.push(c.length == 1 ? c[0] : Cl.from(c, u)), u = -1, l = c.length = 0);
  94643. }
  94644. for (let h of e)
  94645. f(h);
  94646. return d(), s.length == 1 ? s[0] : new Cl(s, n);
  94647. }
  94648. }
  94649. xn.empty = /* @__PURE__ */ new $r([""], 0);
  94650. function TSt(t) {
  94651. let e = -1;
  94652. for (let n of t)
  94653. e += n.length + 1;
  94654. return e;
  94655. }
  94656. function Tw(t, e, n = 0, r = 1e9) {
  94657. for (let i = 0, a = 0, o = !0; a < t.length && i <= r; a++) {
  94658. let s = t[a], l = i + s.length;
  94659. l >= n && (l > r && (s = s.slice(0, r - i)), i < n && (s = s.slice(n - i)), o ? (e[e.length - 1] += s, o = !1) : e.push(s)), i = l + 1;
  94660. }
  94661. return e;
  94662. }
  94663. function rK(t, e, n) {
  94664. return Tw(t, [""], e, n);
  94665. }
  94666. class hb {
  94667. constructor(e, n = 1) {
  94668. this.dir = n, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [n > 0 ? 1 : (e instanceof $r ? e.text.length : e.children.length) << 1];
  94669. }
  94670. nextInner(e, n) {
  94671. for (this.done = this.lineBreak = !1; ; ) {
  94672. let r = this.nodes.length - 1, i = this.nodes[r], a = this.offsets[r], o = a >> 1, s = i instanceof $r ? i.text.length : i.children.length;
  94673. if (o == (n > 0 ? s : 0)) {
  94674. if (r == 0)
  94675. return this.done = !0, this.value = "", this;
  94676. n > 0 && this.offsets[r - 1]++, this.nodes.pop(), this.offsets.pop();
  94677. } else if ((a & 1) == (n > 0 ? 0 : 1)) {
  94678. if (this.offsets[r] += n, e == 0)
  94679. return this.lineBreak = !0, this.value = `
  94680. `, this;
  94681. e--;
  94682. } else if (i instanceof $r) {
  94683. let l = i.text[o + (n < 0 ? -1 : 0)];
  94684. if (this.offsets[r] += n, l.length > Math.max(0, e))
  94685. return this.value = e == 0 ? l : n > 0 ? l.slice(e) : l.slice(0, l.length - e), this;
  94686. e -= l.length;
  94687. } else {
  94688. let l = i.children[o + (n < 0 ? -1 : 0)];
  94689. e > l.length ? (e -= l.length, this.offsets[r] += n) : (n < 0 && this.offsets[r]--, this.nodes.push(l), this.offsets.push(n > 0 ? 1 : (l instanceof $r ? l.text.length : l.children.length) << 1));
  94690. }
  94691. }
  94692. }
  94693. next(e = 0) {
  94694. return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir);
  94695. }
  94696. }
  94697. class wpe {
  94698. constructor(e, n, r) {
  94699. this.value = "", this.done = !1, this.cursor = new hb(e, n > r ? -1 : 1), this.pos = n > r ? e.length : 0, this.from = Math.min(n, r), this.to = Math.max(n, r);
  94700. }
  94701. nextInner(e, n) {
  94702. if (n < 0 ? this.pos <= this.from : this.pos >= this.to)
  94703. return this.value = "", this.done = !0, this;
  94704. e += Math.max(0, n < 0 ? this.pos - this.to : this.from - this.pos);
  94705. let r = n < 0 ? this.pos - this.from : this.to - this.pos;
  94706. e > r && (e = r), r -= e;
  94707. let { value: i } = this.cursor.next(e);
  94708. return this.pos += (i.length + e) * n, this.value = i.length <= r ? i : n < 0 ? i.slice(i.length - r) : i.slice(0, r), this.done = !this.value, this;
  94709. }
  94710. next(e = 0) {
  94711. return e < 0 ? e = Math.max(e, this.from - this.pos) : e > 0 && (e = Math.min(e, this.to - this.pos)), this.nextInner(e, this.cursor.dir);
  94712. }
  94713. get lineBreak() {
  94714. return this.cursor.lineBreak && this.value != "";
  94715. }
  94716. }
  94717. class Cpe {
  94718. constructor(e) {
  94719. this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1;
  94720. }
  94721. next(e = 0) {
  94722. let { done: n, lineBreak: r, value: i } = this.inner.next(e);
  94723. return n && this.afterBreak ? (this.value = "", this.afterBreak = !1) : n ? (this.done = !0, this.value = "") : r ? this.afterBreak ? this.value = "" : (this.afterBreak = !0, this.next()) : (this.value = i, this.afterBreak = !1), this;
  94724. }
  94725. get lineBreak() {
  94726. return !1;
  94727. }
  94728. }
  94729. typeof Symbol < "u" && (xn.prototype[Symbol.iterator] = function() {
  94730. return this.iter();
  94731. }, hb.prototype[Symbol.iterator] = wpe.prototype[Symbol.iterator] = Cpe.prototype[Symbol.iterator] = function() {
  94732. return this;
  94733. });
  94734. class PSt {
  94735. /**
  94736. @internal
  94737. */
  94738. constructor(e, n, r, i) {
  94739. this.from = e, this.to = n, this.number = r, this.text = i;
  94740. }
  94741. /**
  94742. The length of the line (not including any line break after it).
  94743. */
  94744. get length() {
  94745. return this.to - this.from;
  94746. }
  94747. }
  94748. function qg(t, e, n) {
  94749. return e = Math.max(0, Math.min(t.length, e)), [e, Math.max(e, Math.min(t.length, n))];
  94750. }
  94751. let rg = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1);
  94752. for (let t = 1; t < rg.length; t++)
  94753. rg[t] += rg[t - 1];
  94754. function $St(t) {
  94755. for (let e = 1; e < rg.length; e += 2)
  94756. if (rg[e] > t)
  94757. return rg[e - 1] <= t;
  94758. return !1;
  94759. }
  94760. function iK(t) {
  94761. return t >= 127462 && t <= 127487;
  94762. }
  94763. const aK = 8205;
  94764. function wi(t, e, n = !0, r = !0) {
  94765. return (n ? Tpe : ASt)(t, e, r);
  94766. }
  94767. function Tpe(t, e, n) {
  94768. if (e == t.length)
  94769. return e;
  94770. e && Ppe(t.charCodeAt(e)) && $pe(t.charCodeAt(e - 1)) && e--;
  94771. let r = bi(t, e);
  94772. for (e += jo(r); e < t.length; ) {
  94773. let i = bi(t, e);
  94774. if (r == aK || i == aK || n && $St(i))
  94775. e += jo(i), r = i;
  94776. else if (iK(i)) {
  94777. let a = 0, o = e - 2;
  94778. for (; o >= 0 && iK(bi(t, o)); )
  94779. a++, o -= 2;
  94780. if (a % 2 == 0)
  94781. break;
  94782. e += 2;
  94783. } else
  94784. break;
  94785. }
  94786. return e;
  94787. }
  94788. function ASt(t, e, n) {
  94789. for (; e > 0; ) {
  94790. let r = Tpe(t, e - 2, n);
  94791. if (r < e)
  94792. return r;
  94793. e--;
  94794. }
  94795. return 0;
  94796. }
  94797. function Ppe(t) {
  94798. return t >= 56320 && t < 57344;
  94799. }
  94800. function $pe(t) {
  94801. return t >= 55296 && t < 56320;
  94802. }
  94803. function bi(t, e) {
  94804. let n = t.charCodeAt(e);
  94805. if (!$pe(n) || e + 1 == t.length)
  94806. return n;
  94807. let r = t.charCodeAt(e + 1);
  94808. return Ppe(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n;
  94809. }
  94810. function K6(t) {
  94811. return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
  94812. }
  94813. function jo(t) {
  94814. return t < 65536 ? 1 : 2;
  94815. }
  94816. const qL = /\r\n?|\n/;
  94817. var Oi = /* @__PURE__ */ function(t) {
  94818. return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t;
  94819. }(Oi || (Oi = {}));
  94820. class Bl {
  94821. // Sections are encoded as pairs of integers. The first is the
  94822. // length in the current document, and the second is -1 for
  94823. // unaffected sections, and the length of the replacement content
  94824. // otherwise. So an insertion would be (0, n>0), a deletion (n>0,
  94825. // 0), and a replacement two positive numbers.
  94826. /**
  94827. @internal
  94828. */
  94829. constructor(e) {
  94830. this.sections = e;
  94831. }
  94832. /**
  94833. The length of the document before the change.
  94834. */
  94835. get length() {
  94836. let e = 0;
  94837. for (let n = 0; n < this.sections.length; n += 2)
  94838. e += this.sections[n];
  94839. return e;
  94840. }
  94841. /**
  94842. The length of the document after the change.
  94843. */
  94844. get newLength() {
  94845. let e = 0;
  94846. for (let n = 0; n < this.sections.length; n += 2) {
  94847. let r = this.sections[n + 1];
  94848. e += r < 0 ? this.sections[n] : r;
  94849. }
  94850. return e;
  94851. }
  94852. /**
  94853. False when there are actual changes in this set.
  94854. */
  94855. get empty() {
  94856. return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0;
  94857. }
  94858. /**
  94859. Iterate over the unchanged parts left by these changes. `posA`
  94860. provides the position of the range in the old document, `posB`
  94861. the new position in the changed document.
  94862. */
  94863. iterGaps(e) {
  94864. for (let n = 0, r = 0, i = 0; n < this.sections.length; ) {
  94865. let a = this.sections[n++], o = this.sections[n++];
  94866. o < 0 ? (e(r, i, a), i += a) : i += o, r += a;
  94867. }
  94868. }
  94869. /**
  94870. Iterate over the ranges changed by these changes. (See
  94871. [`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a
  94872. variant that also provides you with the inserted text.)
  94873. `fromA`/`toA` provides the extent of the change in the starting
  94874. document, `fromB`/`toB` the extent of the replacement in the
  94875. changed document.
  94876. When `individual` is true, adjacent changes (which are kept
  94877. separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are
  94878. reported separately.
  94879. */
  94880. iterChangedRanges(e, n = !1) {
  94881. KL(this, e, n);
  94882. }
  94883. /**
  94884. Get a description of the inverted form of these changes.
  94885. */
  94886. get invertedDesc() {
  94887. let e = [];
  94888. for (let n = 0; n < this.sections.length; ) {
  94889. let r = this.sections[n++], i = this.sections[n++];
  94890. i < 0 ? e.push(r, i) : e.push(i, r);
  94891. }
  94892. return new Bl(e);
  94893. }
  94894. /**
  94895. Compute the combined effect of applying another set of changes
  94896. after this one. The length of the document after this set should
  94897. match the length before `other`.
  94898. */
  94899. composeDesc(e) {
  94900. return this.empty ? e : e.empty ? this : Ape(this, e);
  94901. }
  94902. /**
  94903. Map this description, which should start with the same document
  94904. as `other`, over another set of changes, so that it can be
  94905. applied after it. When `before` is true, map as if the changes
  94906. in `other` happened before the ones in `this`.
  94907. */
  94908. mapDesc(e, n = !1) {
  94909. return e.empty ? this : JL(this, e, n);
  94910. }
  94911. mapPos(e, n = -1, r = Oi.Simple) {
  94912. let i = 0, a = 0;
  94913. for (let o = 0; o < this.sections.length; ) {
  94914. let s = this.sections[o++], l = this.sections[o++], u = i + s;
  94915. if (l < 0) {
  94916. if (u > e)
  94917. return a + (e - i);
  94918. a += s;
  94919. } else {
  94920. if (r != Oi.Simple && u >= e && (r == Oi.TrackDel && i < e && u > e || r == Oi.TrackBefore && i < e || r == Oi.TrackAfter && u > e))
  94921. return null;
  94922. if (u > e || u == e && n < 0 && !s)
  94923. return e == i || n < 0 ? a : a + l;
  94924. a += l;
  94925. }
  94926. i = u;
  94927. }
  94928. if (e > i)
  94929. throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);
  94930. return a;
  94931. }
  94932. /**
  94933. Check whether these changes touch a given range. When one of the
  94934. changes entirely covers the range, the string `"cover"` is
  94935. returned.
  94936. */
  94937. touchesRange(e, n = e) {
  94938. for (let r = 0, i = 0; r < this.sections.length && i <= n; ) {
  94939. let a = this.sections[r++], o = this.sections[r++], s = i + a;
  94940. if (o >= 0 && i <= n && s >= e)
  94941. return i < e && s > n ? "cover" : !0;
  94942. i = s;
  94943. }
  94944. return !1;
  94945. }
  94946. /**
  94947. @internal
  94948. */
  94949. toString() {
  94950. let e = "";
  94951. for (let n = 0; n < this.sections.length; ) {
  94952. let r = this.sections[n++], i = this.sections[n++];
  94953. e += (e ? " " : "") + r + (i >= 0 ? ":" + i : "");
  94954. }
  94955. return e;
  94956. }
  94957. /**
  94958. Serialize this change desc to a JSON-representable value.
  94959. */
  94960. toJSON() {
  94961. return this.sections;
  94962. }
  94963. /**
  94964. Create a change desc from its JSON representation (as produced
  94965. by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON).
  94966. */
  94967. static fromJSON(e) {
  94968. if (!Array.isArray(e) || e.length % 2 || e.some((n) => typeof n != "number"))
  94969. throw new RangeError("Invalid JSON representation of ChangeDesc");
  94970. return new Bl(e);
  94971. }
  94972. /**
  94973. @internal
  94974. */
  94975. static create(e) {
  94976. return new Bl(e);
  94977. }
  94978. }
  94979. class Zr extends Bl {
  94980. constructor(e, n) {
  94981. super(e), this.inserted = n;
  94982. }
  94983. /**
  94984. Apply the changes to a document, returning the modified
  94985. document.
  94986. */
  94987. apply(e) {
  94988. if (this.length != e.length)
  94989. throw new RangeError("Applying change set to a document with the wrong length");
  94990. return KL(this, (n, r, i, a, o) => e = e.replace(i, i + (r - n), o), !1), e;
  94991. }
  94992. mapDesc(e, n = !1) {
  94993. return JL(this, e, n, !0);
  94994. }
  94995. /**
  94996. Given the document as it existed _before_ the changes, return a
  94997. change set that represents the inverse of this set, which could
  94998. be used to go from the document created by the changes back to
  94999. the document as it existed before the changes.
  95000. */
  95001. invert(e) {
  95002. let n = this.sections.slice(), r = [];
  95003. for (let i = 0, a = 0; i < n.length; i += 2) {
  95004. let o = n[i], s = n[i + 1];
  95005. if (s >= 0) {
  95006. n[i] = s, n[i + 1] = o;
  95007. let l = i >> 1;
  95008. for (; r.length < l; )
  95009. r.push(xn.empty);
  95010. r.push(o ? e.slice(a, a + o) : xn.empty);
  95011. }
  95012. a += o;
  95013. }
  95014. return new Zr(n, r);
  95015. }
  95016. /**
  95017. Combine two subsequent change sets into a single set. `other`
  95018. must start in the document produced by `this`. If `this` goes
  95019. `docA` → `docB` and `other` represents `docB` → `docC`, the
  95020. returned value will represent the change `docA` → `docC`.
  95021. */
  95022. compose(e) {
  95023. return this.empty ? e : e.empty ? this : Ape(this, e, !0);
  95024. }
  95025. /**
  95026. Given another change set starting in the same document, maps this
  95027. change set over the other, producing a new change set that can be
  95028. applied to the document produced by applying `other`. When
  95029. `before` is `true`, order changes as if `this` comes before
  95030. `other`, otherwise (the default) treat `other` as coming first.
  95031. Given two changes `A` and `B`, `A.compose(B.map(A))` and
  95032. `B.compose(A.map(B, true))` will produce the same document. This
  95033. provides a basic form of [operational
  95034. transformation](https://en.wikipedia.org/wiki/Operational_transformation),
  95035. and can be used for collaborative editing.
  95036. */
  95037. map(e, n = !1) {
  95038. return e.empty ? this : JL(this, e, n, !0);
  95039. }
  95040. /**
  95041. Iterate over the changed ranges in the document, calling `f` for
  95042. each, with the range in the original document (`fromA`-`toA`)
  95043. and the range that replaces it in the new document
  95044. (`fromB`-`toB`).
  95045. When `individual` is true, adjacent changes are reported
  95046. separately.
  95047. */
  95048. iterChanges(e, n = !1) {
  95049. KL(this, e, n);
  95050. }
  95051. /**
  95052. Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
  95053. set.
  95054. */
  95055. get desc() {
  95056. return Bl.create(this.sections);
  95057. }
  95058. /**
  95059. @internal
  95060. */
  95061. filter(e) {
  95062. let n = [], r = [], i = [], a = new v_(this);
  95063. e: for (let o = 0, s = 0; ; ) {
  95064. let l = o == e.length ? 1e9 : e[o++];
  95065. for (; s < l || s == l && a.len == 0; ) {
  95066. if (a.done)
  95067. break e;
  95068. let c = Math.min(a.len, l - s);
  95069. Ni(i, c, -1);
  95070. let f = a.ins == -1 ? -1 : a.off == 0 ? a.ins : 0;
  95071. Ni(n, c, f), f > 0 && Xc(r, n, a.text), a.forward(c), s += c;
  95072. }
  95073. let u = e[o++];
  95074. for (; s < u; ) {
  95075. if (a.done)
  95076. break e;
  95077. let c = Math.min(a.len, u - s);
  95078. Ni(n, c, -1), Ni(i, c, a.ins == -1 ? -1 : a.off == 0 ? a.ins : 0), a.forward(c), s += c;
  95079. }
  95080. }
  95081. return {
  95082. changes: new Zr(n, r),
  95083. filtered: Bl.create(i)
  95084. };
  95085. }
  95086. /**
  95087. Serialize this change set to a JSON-representable value.
  95088. */
  95089. toJSON() {
  95090. let e = [];
  95091. for (let n = 0; n < this.sections.length; n += 2) {
  95092. let r = this.sections[n], i = this.sections[n + 1];
  95093. i < 0 ? e.push(r) : i == 0 ? e.push([r]) : e.push([r].concat(this.inserted[n >> 1].toJSON()));
  95094. }
  95095. return e;
  95096. }
  95097. /**
  95098. Create a change set for the given changes, for a document of the
  95099. given length, using `lineSep` as line separator.
  95100. */
  95101. static of(e, n, r) {
  95102. let i = [], a = [], o = 0, s = null;
  95103. function l(c = !1) {
  95104. if (!c && !i.length)
  95105. return;
  95106. o < n && Ni(i, n - o, -1);
  95107. let f = new Zr(i, a);
  95108. s = s ? s.compose(f.map(s)) : f, i = [], a = [], o = 0;
  95109. }
  95110. function u(c) {
  95111. if (Array.isArray(c))
  95112. for (let f of c)
  95113. u(f);
  95114. else if (c instanceof Zr) {
  95115. if (c.length != n)
  95116. throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);
  95117. l(), s = s ? s.compose(c.map(s)) : c;
  95118. } else {
  95119. let { from: f, to: d = f, insert: h } = c;
  95120. if (f > d || f < 0 || d > n)
  95121. throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);
  95122. let p = h ? typeof h == "string" ? xn.of(h.split(r || qL)) : h : xn.empty, v = p.length;
  95123. if (f == d && v == 0)
  95124. return;
  95125. f < o && l(), f > o && Ni(i, f - o, -1), Ni(i, d - f, v), Xc(a, i, p), o = d;
  95126. }
  95127. }
  95128. return u(e), l(!s), s;
  95129. }
  95130. /**
  95131. Create an empty changeset of the given length.
  95132. */
  95133. static empty(e) {
  95134. return new Zr(e ? [e, -1] : [], []);
  95135. }
  95136. /**
  95137. Create a changeset from its JSON representation (as produced by
  95138. [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON).
  95139. */
  95140. static fromJSON(e) {
  95141. if (!Array.isArray(e))
  95142. throw new RangeError("Invalid JSON representation of ChangeSet");
  95143. let n = [], r = [];
  95144. for (let i = 0; i < e.length; i++) {
  95145. let a = e[i];
  95146. if (typeof a == "number")
  95147. n.push(a, -1);
  95148. else {
  95149. if (!Array.isArray(a) || typeof a[0] != "number" || a.some((o, s) => s && typeof o != "string"))
  95150. throw new RangeError("Invalid JSON representation of ChangeSet");
  95151. if (a.length == 1)
  95152. n.push(a[0], 0);
  95153. else {
  95154. for (; r.length < i; )
  95155. r.push(xn.empty);
  95156. r[i] = xn.of(a.slice(1)), n.push(a[0], r[i].length);
  95157. }
  95158. }
  95159. }
  95160. return new Zr(n, r);
  95161. }
  95162. /**
  95163. @internal
  95164. */
  95165. static createSet(e, n) {
  95166. return new Zr(e, n);
  95167. }
  95168. }
  95169. function Ni(t, e, n, r = !1) {
  95170. if (e == 0 && n <= 0)
  95171. return;
  95172. let i = t.length - 2;
  95173. i >= 0 && n <= 0 && n == t[i + 1] ? t[i] += e : e == 0 && t[i] == 0 ? t[i + 1] += n : r ? (t[i] += e, t[i + 1] += n) : t.push(e, n);
  95174. }
  95175. function Xc(t, e, n) {
  95176. if (n.length == 0)
  95177. return;
  95178. let r = e.length - 2 >> 1;
  95179. if (r < t.length)
  95180. t[t.length - 1] = t[t.length - 1].append(n);
  95181. else {
  95182. for (; t.length < r; )
  95183. t.push(xn.empty);
  95184. t.push(n);
  95185. }
  95186. }
  95187. function KL(t, e, n) {
  95188. let r = t.inserted;
  95189. for (let i = 0, a = 0, o = 0; o < t.sections.length; ) {
  95190. let s = t.sections[o++], l = t.sections[o++];
  95191. if (l < 0)
  95192. i += s, a += s;
  95193. else {
  95194. let u = i, c = a, f = xn.empty;
  95195. for (; u += s, c += l, l && r && (f = f.append(r[o - 2 >> 1])), !(n || o == t.sections.length || t.sections[o + 1] < 0); )
  95196. s = t.sections[o++], l = t.sections[o++];
  95197. e(i, u, a, c, f), i = u, a = c;
  95198. }
  95199. }
  95200. }
  95201. function JL(t, e, n, r = !1) {
  95202. let i = [], a = r ? [] : null, o = new v_(t), s = new v_(e);
  95203. for (let l = -1; ; )
  95204. if (o.ins == -1 && s.ins == -1) {
  95205. let u = Math.min(o.len, s.len);
  95206. Ni(i, u, -1), o.forward(u), s.forward(u);
  95207. } else if (s.ins >= 0 && (o.ins < 0 || l == o.i || o.off == 0 && (s.len < o.len || s.len == o.len && !n))) {
  95208. let u = s.len;
  95209. for (Ni(i, s.ins, -1); u; ) {
  95210. let c = Math.min(o.len, u);
  95211. o.ins >= 0 && l < o.i && o.len <= c && (Ni(i, 0, o.ins), a && Xc(a, i, o.text), l = o.i), o.forward(c), u -= c;
  95212. }
  95213. s.next();
  95214. } else if (o.ins >= 0) {
  95215. let u = 0, c = o.len;
  95216. for (; c; )
  95217. if (s.ins == -1) {
  95218. let f = Math.min(c, s.len);
  95219. u += f, c -= f, s.forward(f);
  95220. } else if (s.ins == 0 && s.len < c)
  95221. c -= s.len, s.next();
  95222. else
  95223. break;
  95224. Ni(i, u, l < o.i ? o.ins : 0), a && l < o.i && Xc(a, i, o.text), l = o.i, o.forward(o.len - c);
  95225. } else {
  95226. if (o.done && s.done)
  95227. return a ? Zr.createSet(i, a) : Bl.create(i);
  95228. throw new Error("Mismatched change set lengths");
  95229. }
  95230. }
  95231. function Ape(t, e, n = !1) {
  95232. let r = [], i = n ? [] : null, a = new v_(t), o = new v_(e);
  95233. for (let s = !1; ; ) {
  95234. if (a.done && o.done)
  95235. return i ? Zr.createSet(r, i) : Bl.create(r);
  95236. if (a.ins == 0)
  95237. Ni(r, a.len, 0, s), a.next();
  95238. else if (o.len == 0 && !o.done)
  95239. Ni(r, 0, o.ins, s), i && Xc(i, r, o.text), o.next();
  95240. else {
  95241. if (a.done || o.done)
  95242. throw new Error("Mismatched change set lengths");
  95243. {
  95244. let l = Math.min(a.len2, o.len), u = r.length;
  95245. if (a.ins == -1) {
  95246. let c = o.ins == -1 ? -1 : o.off ? 0 : o.ins;
  95247. Ni(r, l, c, s), i && c && Xc(i, r, o.text);
  95248. } else o.ins == -1 ? (Ni(r, a.off ? 0 : a.len, l, s), i && Xc(i, r, a.textBit(l))) : (Ni(r, a.off ? 0 : a.len, o.off ? 0 : o.ins, s), i && !o.off && Xc(i, r, o.text));
  95249. s = (a.ins > l || o.ins >= 0 && o.len > l) && (s || r.length > u), a.forward2(l), o.forward(l);
  95250. }
  95251. }
  95252. }
  95253. }
  95254. class v_ {
  95255. constructor(e) {
  95256. this.set = e, this.i = 0, this.next();
  95257. }
  95258. next() {
  95259. let { sections: e } = this.set;
  95260. this.i < e.length ? (this.len = e[this.i++], this.ins = e[this.i++]) : (this.len = 0, this.ins = -2), this.off = 0;
  95261. }
  95262. get done() {
  95263. return this.ins == -2;
  95264. }
  95265. get len2() {
  95266. return this.ins < 0 ? this.len : this.ins;
  95267. }
  95268. get text() {
  95269. let { inserted: e } = this.set, n = this.i - 2 >> 1;
  95270. return n >= e.length ? xn.empty : e[n];
  95271. }
  95272. textBit(e) {
  95273. let { inserted: n } = this.set, r = this.i - 2 >> 1;
  95274. return r >= n.length && !e ? xn.empty : n[r].slice(this.off, e == null ? void 0 : this.off + e);
  95275. }
  95276. forward(e) {
  95277. e == this.len ? this.next() : (this.len -= e, this.off += e);
  95278. }
  95279. forward2(e) {
  95280. this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e);
  95281. }
  95282. }
  95283. class fh {
  95284. constructor(e, n, r) {
  95285. this.from = e, this.to = n, this.flags = r;
  95286. }
  95287. /**
  95288. The anchor of the range—the side that doesn't move when you
  95289. extend it.
  95290. */
  95291. get anchor() {
  95292. return this.flags & 32 ? this.to : this.from;
  95293. }
  95294. /**
  95295. The head of the range, which is moved when the range is
  95296. [extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend).
  95297. */
  95298. get head() {
  95299. return this.flags & 32 ? this.from : this.to;
  95300. }
  95301. /**
  95302. True when `anchor` and `head` are at the same position.
  95303. */
  95304. get empty() {
  95305. return this.from == this.to;
  95306. }
  95307. /**
  95308. If this is a cursor that is explicitly associated with the
  95309. character on one of its sides, this returns the side. -1 means
  95310. the character before its position, 1 the character after, and 0
  95311. means no association.
  95312. */
  95313. get assoc() {
  95314. return this.flags & 8 ? -1 : this.flags & 16 ? 1 : 0;
  95315. }
  95316. /**
  95317. The bidirectional text level associated with this cursor, if
  95318. any.
  95319. */
  95320. get bidiLevel() {
  95321. let e = this.flags & 7;
  95322. return e == 7 ? null : e;
  95323. }
  95324. /**
  95325. The goal column (stored vertical offset) associated with a
  95326. cursor. This is used to preserve the vertical position when
  95327. [moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across
  95328. lines of different length.
  95329. */
  95330. get goalColumn() {
  95331. let e = this.flags >> 6;
  95332. return e == 16777215 ? void 0 : e;
  95333. }
  95334. /**
  95335. Map this range through a change, producing a valid range in the
  95336. updated document.
  95337. */
  95338. map(e, n = -1) {
  95339. let r, i;
  95340. return this.empty ? r = i = e.mapPos(this.from, n) : (r = e.mapPos(this.from, 1), i = e.mapPos(this.to, -1)), r == this.from && i == this.to ? this : new fh(r, i, this.flags);
  95341. }
  95342. /**
  95343. Extend this range to cover at least `from` to `to`.
  95344. */
  95345. extend(e, n = e) {
  95346. if (e <= this.anchor && n >= this.anchor)
  95347. return De.range(e, n);
  95348. let r = Math.abs(e - this.anchor) > Math.abs(n - this.anchor) ? e : n;
  95349. return De.range(this.anchor, r);
  95350. }
  95351. /**
  95352. Compare this range to another range.
  95353. */
  95354. eq(e, n = !1) {
  95355. return this.anchor == e.anchor && this.head == e.head && (!n || !this.empty || this.assoc == e.assoc);
  95356. }
  95357. /**
  95358. Return a JSON-serializable object representing the range.
  95359. */
  95360. toJSON() {
  95361. return { anchor: this.anchor, head: this.head };
  95362. }
  95363. /**
  95364. Convert a JSON representation of a range to a `SelectionRange`
  95365. instance.
  95366. */
  95367. static fromJSON(e) {
  95368. if (!e || typeof e.anchor != "number" || typeof e.head != "number")
  95369. throw new RangeError("Invalid JSON representation for SelectionRange");
  95370. return De.range(e.anchor, e.head);
  95371. }
  95372. /**
  95373. @internal
  95374. */
  95375. static create(e, n, r) {
  95376. return new fh(e, n, r);
  95377. }
  95378. }
  95379. class De {
  95380. constructor(e, n) {
  95381. this.ranges = e, this.mainIndex = n;
  95382. }
  95383. /**
  95384. Map a selection through a change. Used to adjust the selection
  95385. position for changes.
  95386. */
  95387. map(e, n = -1) {
  95388. return e.empty ? this : De.create(this.ranges.map((r) => r.map(e, n)), this.mainIndex);
  95389. }
  95390. /**
  95391. Compare this selection to another selection. By default, ranges
  95392. are compared only by position. When `includeAssoc` is true,
  95393. cursor ranges must also have the same
  95394. [`assoc`](https://codemirror.net/6/docs/ref/#state.SelectionRange.assoc) value.
  95395. */
  95396. eq(e, n = !1) {
  95397. if (this.ranges.length != e.ranges.length || this.mainIndex != e.mainIndex)
  95398. return !1;
  95399. for (let r = 0; r < this.ranges.length; r++)
  95400. if (!this.ranges[r].eq(e.ranges[r], n))
  95401. return !1;
  95402. return !0;
  95403. }
  95404. /**
  95405. Get the primary selection range. Usually, you should make sure
  95406. your code applies to _all_ ranges, by using methods like
  95407. [`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange).
  95408. */
  95409. get main() {
  95410. return this.ranges[this.mainIndex];
  95411. }
  95412. /**
  95413. Make sure the selection only has one range. Returns a selection
  95414. holding only the main range from this selection.
  95415. */
  95416. asSingle() {
  95417. return this.ranges.length == 1 ? this : new De([this.main], 0);
  95418. }
  95419. /**
  95420. Extend this selection with an extra range.
  95421. */
  95422. addRange(e, n = !0) {
  95423. return De.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1);
  95424. }
  95425. /**
  95426. Replace a given range with another range, and then normalize the
  95427. selection to merge and sort ranges if necessary.
  95428. */
  95429. replaceRange(e, n = this.mainIndex) {
  95430. let r = this.ranges.slice();
  95431. return r[n] = e, De.create(r, this.mainIndex);
  95432. }
  95433. /**
  95434. Convert this selection to an object that can be serialized to
  95435. JSON.
  95436. */
  95437. toJSON() {
  95438. return { ranges: this.ranges.map((e) => e.toJSON()), main: this.mainIndex };
  95439. }
  95440. /**
  95441. Create a selection from a JSON representation.
  95442. */
  95443. static fromJSON(e) {
  95444. if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length)
  95445. throw new RangeError("Invalid JSON representation for EditorSelection");
  95446. return new De(e.ranges.map((n) => fh.fromJSON(n)), e.main);
  95447. }
  95448. /**
  95449. Create a selection holding a single range.
  95450. */
  95451. static single(e, n = e) {
  95452. return new De([De.range(e, n)], 0);
  95453. }
  95454. /**
  95455. Sort and merge the given set of ranges, creating a valid
  95456. selection.
  95457. */
  95458. static create(e, n = 0) {
  95459. if (e.length == 0)
  95460. throw new RangeError("A selection needs at least one range");
  95461. for (let r = 0, i = 0; i < e.length; i++) {
  95462. let a = e[i];
  95463. if (a.empty ? a.from <= r : a.from < r)
  95464. return De.normalized(e.slice(), n);
  95465. r = a.to;
  95466. }
  95467. return new De(e, n);
  95468. }
  95469. /**
  95470. Create a cursor selection range at the given position. You can
  95471. safely ignore the optional arguments in most situations.
  95472. */
  95473. static cursor(e, n = 0, r, i) {
  95474. return fh.create(e, e, (n == 0 ? 0 : n < 0 ? 8 : 16) | (r == null ? 7 : Math.min(6, r)) | (i ?? 16777215) << 6);
  95475. }
  95476. /**
  95477. Create a selection range.
  95478. */
  95479. static range(e, n, r, i) {
  95480. let a = (r ?? 16777215) << 6 | (i == null ? 7 : Math.min(6, i));
  95481. return n < e ? fh.create(n, e, 48 | a) : fh.create(e, n, (n > e ? 8 : 0) | a);
  95482. }
  95483. /**
  95484. @internal
  95485. */
  95486. static normalized(e, n = 0) {
  95487. let r = e[n];
  95488. e.sort((i, a) => i.from - a.from), n = e.indexOf(r);
  95489. for (let i = 1; i < e.length; i++) {
  95490. let a = e[i], o = e[i - 1];
  95491. if (a.empty ? a.from <= o.to : a.from < o.to) {
  95492. let s = o.from, l = Math.max(a.to, o.to);
  95493. i <= n && n--, e.splice(--i, 2, a.anchor > a.head ? De.range(l, s) : De.range(s, l));
  95494. }
  95495. }
  95496. return new De(e, n);
  95497. }
  95498. }
  95499. function Epe(t, e) {
  95500. for (let n of t.ranges)
  95501. if (n.to > e)
  95502. throw new RangeError("Selection points outside of document");
  95503. }
  95504. let J6 = 0;
  95505. class ut {
  95506. constructor(e, n, r, i, a) {
  95507. this.combine = e, this.compareInput = n, this.compare = r, this.isStatic = i, this.id = J6++, this.default = e([]), this.extensions = typeof a == "function" ? a(this) : a;
  95508. }
  95509. /**
  95510. Returns a facet reader for this facet, which can be used to
  95511. [read](https://codemirror.net/6/docs/ref/#state.EditorState.facet) it but not to define values for it.
  95512. */
  95513. get reader() {
  95514. return this;
  95515. }
  95516. /**
  95517. Define a new facet.
  95518. */
  95519. static define(e = {}) {
  95520. return new ut(e.combine || ((n) => n), e.compareInput || ((n, r) => n === r), e.compare || (e.combine ? (n, r) => n === r : eB), !!e.static, e.enables);
  95521. }
  95522. /**
  95523. Returns an extension that adds the given value to this facet.
  95524. */
  95525. of(e) {
  95526. return new Pw([], this, 0, e);
  95527. }
  95528. /**
  95529. Create an extension that computes a value for the facet from a
  95530. state. You must take care to declare the parts of the state that
  95531. this value depends on, since your function is only called again
  95532. for a new state when one of those parts changed.
  95533. In cases where your value depends only on a single field, you'll
  95534. want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead.
  95535. */
  95536. compute(e, n) {
  95537. if (this.isStatic)
  95538. throw new Error("Can't compute a static facet");
  95539. return new Pw(e, this, 1, n);
  95540. }
  95541. /**
  95542. Create an extension that computes zero or more values for this
  95543. facet from a state.
  95544. */
  95545. computeN(e, n) {
  95546. if (this.isStatic)
  95547. throw new Error("Can't compute a static facet");
  95548. return new Pw(e, this, 2, n);
  95549. }
  95550. from(e, n) {
  95551. return n || (n = (r) => r), this.compute([e], (r) => n(r.field(e)));
  95552. }
  95553. }
  95554. function eB(t, e) {
  95555. return t == e || t.length == e.length && t.every((n, r) => n === e[r]);
  95556. }
  95557. class Pw {
  95558. constructor(e, n, r, i) {
  95559. this.dependencies = e, this.facet = n, this.type = r, this.value = i, this.id = J6++;
  95560. }
  95561. dynamicSlot(e) {
  95562. var n;
  95563. let r = this.value, i = this.facet.compareInput, a = this.id, o = e[a] >> 1, s = this.type == 2, l = !1, u = !1, c = [];
  95564. for (let f of this.dependencies)
  95565. f == "doc" ? l = !0 : f == "selection" ? u = !0 : ((n = e[f.id]) !== null && n !== void 0 ? n : 1) & 1 || c.push(e[f.id]);
  95566. return {
  95567. create(f) {
  95568. return f.values[o] = r(f), 1;
  95569. },
  95570. update(f, d) {
  95571. if (l && d.docChanged || u && (d.docChanged || d.selection) || e4(f, c)) {
  95572. let h = r(f);
  95573. if (s ? !oK(h, f.values[o], i) : !i(h, f.values[o]))
  95574. return f.values[o] = h, 1;
  95575. }
  95576. return 0;
  95577. },
  95578. reconfigure: (f, d) => {
  95579. let h, p = d.config.address[a];
  95580. if (p != null) {
  95581. let v = PT(d, p);
  95582. if (this.dependencies.every((g) => g instanceof ut ? d.facet(g) === f.facet(g) : g instanceof fi ? d.field(g, !1) == f.field(g, !1) : !0) || (s ? oK(h = r(f), v, i) : i(h = r(f), v)))
  95583. return f.values[o] = v, 0;
  95584. } else
  95585. h = r(f);
  95586. return f.values[o] = h, 1;
  95587. }
  95588. };
  95589. }
  95590. }
  95591. function oK(t, e, n) {
  95592. if (t.length != e.length)
  95593. return !1;
  95594. for (let r = 0; r < t.length; r++)
  95595. if (!n(t[r], e[r]))
  95596. return !1;
  95597. return !0;
  95598. }
  95599. function e4(t, e) {
  95600. let n = !1;
  95601. for (let r of e)
  95602. pb(t, r) & 1 && (n = !0);
  95603. return n;
  95604. }
  95605. function ESt(t, e, n) {
  95606. let r = n.map((l) => t[l.id]), i = n.map((l) => l.type), a = r.filter((l) => !(l & 1)), o = t[e.id] >> 1;
  95607. function s(l) {
  95608. let u = [];
  95609. for (let c = 0; c < r.length; c++) {
  95610. let f = PT(l, r[c]);
  95611. if (i[c] == 2)
  95612. for (let d of f)
  95613. u.push(d);
  95614. else
  95615. u.push(f);
  95616. }
  95617. return e.combine(u);
  95618. }
  95619. return {
  95620. create(l) {
  95621. for (let u of r)
  95622. pb(l, u);
  95623. return l.values[o] = s(l), 1;
  95624. },
  95625. update(l, u) {
  95626. if (!e4(l, a))
  95627. return 0;
  95628. let c = s(l);
  95629. return e.compare(c, l.values[o]) ? 0 : (l.values[o] = c, 1);
  95630. },
  95631. reconfigure(l, u) {
  95632. let c = e4(l, r), f = u.config.facets[e.id], d = u.facet(e);
  95633. if (f && !c && eB(n, f))
  95634. return l.values[o] = d, 0;
  95635. let h = s(l);
  95636. return e.compare(h, d) ? (l.values[o] = d, 0) : (l.values[o] = h, 1);
  95637. }
  95638. };
  95639. }
  95640. const sK = /* @__PURE__ */ ut.define({ static: !0 });
  95641. class fi {
  95642. constructor(e, n, r, i, a) {
  95643. this.id = e, this.createF = n, this.updateF = r, this.compareF = i, this.spec = a, this.provides = void 0;
  95644. }
  95645. /**
  95646. Define a state field.
  95647. */
  95648. static define(e) {
  95649. let n = new fi(J6++, e.create, e.update, e.compare || ((r, i) => r === i), e);
  95650. return e.provide && (n.provides = e.provide(n)), n;
  95651. }
  95652. create(e) {
  95653. let n = e.facet(sK).find((r) => r.field == this);
  95654. return ((n == null ? void 0 : n.create) || this.createF)(e);
  95655. }
  95656. /**
  95657. @internal
  95658. */
  95659. slot(e) {
  95660. let n = e[this.id] >> 1;
  95661. return {
  95662. create: (r) => (r.values[n] = this.create(r), 1),
  95663. update: (r, i) => {
  95664. let a = r.values[n], o = this.updateF(a, i);
  95665. return this.compareF(a, o) ? 0 : (r.values[n] = o, 1);
  95666. },
  95667. reconfigure: (r, i) => i.config.address[this.id] != null ? (r.values[n] = i.field(this), 0) : (r.values[n] = this.create(r), 1)
  95668. };
  95669. }
  95670. /**
  95671. Returns an extension that enables this field and overrides the
  95672. way it is initialized. Can be useful when you need to provide a
  95673. non-default starting value for the field.
  95674. */
  95675. init(e) {
  95676. return [this, sK.of({ field: this, create: e })];
  95677. }
  95678. /**
  95679. State field instances can be used as
  95680. [`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a
  95681. given state.
  95682. */
  95683. get extension() {
  95684. return this;
  95685. }
  95686. }
  95687. const Yd = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
  95688. function ey(t) {
  95689. return (e) => new Mpe(e, t);
  95690. }
  95691. const Ff = {
  95692. /**
  95693. The highest precedence level, for extensions that should end up
  95694. near the start of the precedence ordering.
  95695. */
  95696. highest: /* @__PURE__ */ ey(Yd.highest),
  95697. /**
  95698. A higher-than-default precedence, for extensions that should
  95699. come before those with default precedence.
  95700. */
  95701. high: /* @__PURE__ */ ey(Yd.high),
  95702. /**
  95703. The default precedence, which is also used for extensions
  95704. without an explicit precedence.
  95705. */
  95706. default: /* @__PURE__ */ ey(Yd.default),
  95707. /**
  95708. A lower-than-default precedence.
  95709. */
  95710. low: /* @__PURE__ */ ey(Yd.low),
  95711. /**
  95712. The lowest precedence level. Meant for things that should end up
  95713. near the end of the extension order.
  95714. */
  95715. lowest: /* @__PURE__ */ ey(Yd.lowest)
  95716. };
  95717. class Mpe {
  95718. constructor(e, n) {
  95719. this.inner = e, this.prec = n;
  95720. }
  95721. }
  95722. class $1 {
  95723. /**
  95724. Create an instance of this compartment to add to your [state
  95725. configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
  95726. */
  95727. of(e) {
  95728. return new t4(this, e);
  95729. }
  95730. /**
  95731. Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
  95732. reconfigures this compartment.
  95733. */
  95734. reconfigure(e) {
  95735. return $1.reconfigure.of({ compartment: this, extension: e });
  95736. }
  95737. /**
  95738. Get the current content of the compartment in the state, or
  95739. `undefined` if it isn't present.
  95740. */
  95741. get(e) {
  95742. return e.config.compartments.get(this);
  95743. }
  95744. }
  95745. class t4 {
  95746. constructor(e, n) {
  95747. this.compartment = e, this.inner = n;
  95748. }
  95749. }
  95750. class TT {
  95751. constructor(e, n, r, i, a, o) {
  95752. for (this.base = e, this.compartments = n, this.dynamicSlots = r, this.address = i, this.staticValues = a, this.facets = o, this.statusTemplate = []; this.statusTemplate.length < r.length; )
  95753. this.statusTemplate.push(
  95754. 0
  95755. /* SlotStatus.Unresolved */
  95756. );
  95757. }
  95758. staticFacet(e) {
  95759. let n = this.address[e.id];
  95760. return n == null ? e.default : this.staticValues[n >> 1];
  95761. }
  95762. static resolve(e, n, r) {
  95763. let i = [], a = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map();
  95764. for (let d of MSt(e, n, o))
  95765. d instanceof fi ? i.push(d) : (a[d.facet.id] || (a[d.facet.id] = [])).push(d);
  95766. let s = /* @__PURE__ */ Object.create(null), l = [], u = [];
  95767. for (let d of i)
  95768. s[d.id] = u.length << 1, u.push((h) => d.slot(h));
  95769. let c = r == null ? void 0 : r.config.facets;
  95770. for (let d in a) {
  95771. let h = a[d], p = h[0].facet, v = c && c[d] || [];
  95772. if (h.every(
  95773. (g) => g.type == 0
  95774. /* Provider.Static */
  95775. ))
  95776. if (s[p.id] = l.length << 1 | 1, eB(v, h))
  95777. l.push(r.facet(p));
  95778. else {
  95779. let g = p.combine(h.map((m) => m.value));
  95780. l.push(r && p.compare(g, r.facet(p)) ? r.facet(p) : g);
  95781. }
  95782. else {
  95783. for (let g of h)
  95784. g.type == 0 ? (s[g.id] = l.length << 1 | 1, l.push(g.value)) : (s[g.id] = u.length << 1, u.push((m) => g.dynamicSlot(m)));
  95785. s[p.id] = u.length << 1, u.push((g) => ESt(g, p, h));
  95786. }
  95787. }
  95788. let f = u.map((d) => d(s));
  95789. return new TT(e, o, f, s, l, a);
  95790. }
  95791. }
  95792. function MSt(t, e, n) {
  95793. let r = [[], [], [], [], []], i = /* @__PURE__ */ new Map();
  95794. function a(o, s) {
  95795. let l = i.get(o);
  95796. if (l != null) {
  95797. if (l <= s)
  95798. return;
  95799. let u = r[l].indexOf(o);
  95800. u > -1 && r[l].splice(u, 1), o instanceof t4 && n.delete(o.compartment);
  95801. }
  95802. if (i.set(o, s), Array.isArray(o))
  95803. for (let u of o)
  95804. a(u, s);
  95805. else if (o instanceof t4) {
  95806. if (n.has(o.compartment))
  95807. throw new RangeError("Duplicate use of compartment in extensions");
  95808. let u = e.get(o.compartment) || o.inner;
  95809. n.set(o.compartment, u), a(u, s);
  95810. } else if (o instanceof Mpe)
  95811. a(o.inner, o.prec);
  95812. else if (o instanceof fi)
  95813. r[s].push(o), o.provides && a(o.provides, s);
  95814. else if (o instanceof Pw)
  95815. r[s].push(o), o.facet.extensions && a(o.facet.extensions, Yd.default);
  95816. else {
  95817. let u = o.extension;
  95818. if (!u)
  95819. throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
  95820. a(u, s);
  95821. }
  95822. }
  95823. return a(t, Yd.default), r.reduce((o, s) => o.concat(s));
  95824. }
  95825. function pb(t, e) {
  95826. if (e & 1)
  95827. return 2;
  95828. let n = e >> 1, r = t.status[n];
  95829. if (r == 4)
  95830. throw new Error("Cyclic dependency between fields and/or facets");
  95831. if (r & 2)
  95832. return r;
  95833. t.status[n] = 4;
  95834. let i = t.computeSlot(t, t.config.dynamicSlots[n]);
  95835. return t.status[n] = 2 | i;
  95836. }
  95837. function PT(t, e) {
  95838. return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1];
  95839. }
  95840. const Ipe = /* @__PURE__ */ ut.define(), n4 = /* @__PURE__ */ ut.define({
  95841. combine: (t) => t.some((e) => e),
  95842. static: !0
  95843. }), Dpe = /* @__PURE__ */ ut.define({
  95844. combine: (t) => t.length ? t[0] : void 0,
  95845. static: !0
  95846. }), Rpe = /* @__PURE__ */ ut.define(), kpe = /* @__PURE__ */ ut.define(), Lpe = /* @__PURE__ */ ut.define(), Npe = /* @__PURE__ */ ut.define({
  95847. combine: (t) => t.length ? t[0] : !1
  95848. });
  95849. class ac {
  95850. /**
  95851. @internal
  95852. */
  95853. constructor(e, n) {
  95854. this.type = e, this.value = n;
  95855. }
  95856. /**
  95857. Define a new type of annotation.
  95858. */
  95859. static define() {
  95860. return new ISt();
  95861. }
  95862. }
  95863. class ISt {
  95864. /**
  95865. Create an instance of this annotation.
  95866. */
  95867. of(e) {
  95868. return new ac(this, e);
  95869. }
  95870. }
  95871. class DSt {
  95872. /**
  95873. @internal
  95874. */
  95875. constructor(e) {
  95876. this.map = e;
  95877. }
  95878. /**
  95879. Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this
  95880. type.
  95881. */
  95882. of(e) {
  95883. return new zt(this, e);
  95884. }
  95885. }
  95886. class zt {
  95887. /**
  95888. @internal
  95889. */
  95890. constructor(e, n) {
  95891. this.type = e, this.value = n;
  95892. }
  95893. /**
  95894. Map this effect through a position mapping. Will return
  95895. `undefined` when that ends up deleting the effect.
  95896. */
  95897. map(e) {
  95898. let n = this.type.map(this.value, e);
  95899. return n === void 0 ? void 0 : n == this.value ? this : new zt(this.type, n);
  95900. }
  95901. /**
  95902. Tells you whether this effect object is of a given
  95903. [type](https://codemirror.net/6/docs/ref/#state.StateEffectType).
  95904. */
  95905. is(e) {
  95906. return this.type == e;
  95907. }
  95908. /**
  95909. Define a new effect type. The type parameter indicates the type
  95910. of values that his effect holds. It should be a type that
  95911. doesn't include `undefined`, since that is used in
  95912. [mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
  95913. removed.
  95914. */
  95915. static define(e = {}) {
  95916. return new DSt(e.map || ((n) => n));
  95917. }
  95918. /**
  95919. Map an array of effects through a change set.
  95920. */
  95921. static mapEffects(e, n) {
  95922. if (!e.length)
  95923. return e;
  95924. let r = [];
  95925. for (let i of e) {
  95926. let a = i.map(n);
  95927. a && r.push(a);
  95928. }
  95929. return r;
  95930. }
  95931. }
  95932. zt.reconfigure = /* @__PURE__ */ zt.define();
  95933. zt.appendConfig = /* @__PURE__ */ zt.define();
  95934. class zr {
  95935. constructor(e, n, r, i, a, o) {
  95936. this.startState = e, this.changes = n, this.selection = r, this.effects = i, this.annotations = a, this.scrollIntoView = o, this._doc = null, this._state = null, r && Epe(r, n.newLength), a.some((s) => s.type == zr.time) || (this.annotations = a.concat(zr.time.of(Date.now())));
  95937. }
  95938. /**
  95939. @internal
  95940. */
  95941. static create(e, n, r, i, a, o) {
  95942. return new zr(e, n, r, i, a, o);
  95943. }
  95944. /**
  95945. The new document produced by the transaction. Contrary to
  95946. [`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't
  95947. force the entire new state to be computed right away, so it is
  95948. recommended that [transaction
  95949. filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter
  95950. when they need to look at the new document.
  95951. */
  95952. get newDoc() {
  95953. return this._doc || (this._doc = this.changes.apply(this.startState.doc));
  95954. }
  95955. /**
  95956. The new selection produced by the transaction. If
  95957. [`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined,
  95958. this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's
  95959. current selection through the changes made by the transaction.
  95960. */
  95961. get newSelection() {
  95962. return this.selection || this.startState.selection.map(this.changes);
  95963. }
  95964. /**
  95965. The new state created by the transaction. Computed on demand
  95966. (but retained for subsequent access), so it is recommended not to
  95967. access it in [transaction
  95968. filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible.
  95969. */
  95970. get state() {
  95971. return this._state || this.startState.applyTransaction(this), this._state;
  95972. }
  95973. /**
  95974. Get the value of the given annotation type, if any.
  95975. */
  95976. annotation(e) {
  95977. for (let n of this.annotations)
  95978. if (n.type == e)
  95979. return n.value;
  95980. }
  95981. /**
  95982. Indicates whether the transaction changed the document.
  95983. */
  95984. get docChanged() {
  95985. return !this.changes.empty;
  95986. }
  95987. /**
  95988. Indicates whether this transaction reconfigures the state
  95989. (through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or
  95990. with a top-level configuration
  95991. [effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure).
  95992. */
  95993. get reconfigured() {
  95994. return this.startState.config != this.state.config;
  95995. }
  95996. /**
  95997. Returns true if the transaction has a [user
  95998. event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to
  95999. or more specific than `event`. For example, if the transaction
  96000. has `"select.pointer"` as user event, `"select"` and
  96001. `"select.pointer"` will match it.
  96002. */
  96003. isUserEvent(e) {
  96004. let n = this.annotation(zr.userEvent);
  96005. return !!(n && (n == e || n.length > e.length && n.slice(0, e.length) == e && n[e.length] == "."));
  96006. }
  96007. }
  96008. zr.time = /* @__PURE__ */ ac.define();
  96009. zr.userEvent = /* @__PURE__ */ ac.define();
  96010. zr.addToHistory = /* @__PURE__ */ ac.define();
  96011. zr.remote = /* @__PURE__ */ ac.define();
  96012. function RSt(t, e) {
  96013. let n = [];
  96014. for (let r = 0, i = 0; ; ) {
  96015. let a, o;
  96016. if (r < t.length && (i == e.length || e[i] >= t[r]))
  96017. a = t[r++], o = t[r++];
  96018. else if (i < e.length)
  96019. a = e[i++], o = e[i++];
  96020. else
  96021. return n;
  96022. !n.length || n[n.length - 1] < a ? n.push(a, o) : n[n.length - 1] < o && (n[n.length - 1] = o);
  96023. }
  96024. }
  96025. function Bpe(t, e, n) {
  96026. var r;
  96027. let i, a, o;
  96028. return n ? (i = e.changes, a = Zr.empty(e.changes.length), o = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), a = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(i)), {
  96029. changes: o,
  96030. selection: e.selection ? e.selection.map(a) : (r = t.selection) === null || r === void 0 ? void 0 : r.map(i),
  96031. effects: zt.mapEffects(t.effects, i).concat(zt.mapEffects(e.effects, a)),
  96032. annotations: t.annotations.length ? t.annotations.concat(e.annotations) : e.annotations,
  96033. scrollIntoView: t.scrollIntoView || e.scrollIntoView
  96034. };
  96035. }
  96036. function r4(t, e, n) {
  96037. let r = e.selection, i = ig(e.annotations);
  96038. return e.userEvent && (i = i.concat(zr.userEvent.of(e.userEvent))), {
  96039. changes: e.changes instanceof Zr ? e.changes : Zr.of(e.changes || [], n, t.facet(Dpe)),
  96040. selection: r && (r instanceof De ? r : De.single(r.anchor, r.head)),
  96041. effects: ig(e.effects),
  96042. annotations: i,
  96043. scrollIntoView: !!e.scrollIntoView
  96044. };
  96045. }
  96046. function zpe(t, e, n) {
  96047. let r = r4(t, e.length ? e[0] : {}, t.doc.length);
  96048. e.length && e[0].filter === !1 && (n = !1);
  96049. for (let a = 1; a < e.length; a++) {
  96050. e[a].filter === !1 && (n = !1);
  96051. let o = !!e[a].sequential;
  96052. r = Bpe(r, r4(t, e[a], o ? r.changes.newLength : t.doc.length), o);
  96053. }
  96054. let i = zr.create(t, r.changes, r.selection, r.effects, r.annotations, r.scrollIntoView);
  96055. return LSt(n ? kSt(i) : i);
  96056. }
  96057. function kSt(t) {
  96058. let e = t.startState, n = !0;
  96059. for (let i of e.facet(Rpe)) {
  96060. let a = i(t);
  96061. if (a === !1) {
  96062. n = !1;
  96063. break;
  96064. }
  96065. Array.isArray(a) && (n = n === !0 ? a : RSt(n, a));
  96066. }
  96067. if (n !== !0) {
  96068. let i, a;
  96069. if (n === !1)
  96070. a = t.changes.invertedDesc, i = Zr.empty(e.doc.length);
  96071. else {
  96072. let o = t.changes.filter(n);
  96073. i = o.changes, a = o.filtered.mapDesc(o.changes).invertedDesc;
  96074. }
  96075. t = zr.create(e, i, t.selection && t.selection.map(a), zt.mapEffects(t.effects, a), t.annotations, t.scrollIntoView);
  96076. }
  96077. let r = e.facet(kpe);
  96078. for (let i = r.length - 1; i >= 0; i--) {
  96079. let a = r[i](t);
  96080. a instanceof zr ? t = a : Array.isArray(a) && a.length == 1 && a[0] instanceof zr ? t = a[0] : t = zpe(e, ig(a), !1);
  96081. }
  96082. return t;
  96083. }
  96084. function LSt(t) {
  96085. let e = t.startState, n = e.facet(Lpe), r = t;
  96086. for (let i = n.length - 1; i >= 0; i--) {
  96087. let a = n[i](t);
  96088. a && Object.keys(a).length && (r = Bpe(r, r4(e, a, t.changes.newLength), !0));
  96089. }
  96090. return r == t ? t : zr.create(e, t.changes, t.selection, r.effects, r.annotations, r.scrollIntoView);
  96091. }
  96092. const NSt = [];
  96093. function ig(t) {
  96094. return t == null ? NSt : Array.isArray(t) ? t : [t];
  96095. }
  96096. var lr = /* @__PURE__ */ function(t) {
  96097. return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t;
  96098. }(lr || (lr = {}));
  96099. const BSt = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
  96100. let i4;
  96101. try {
  96102. i4 = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
  96103. } catch {
  96104. }
  96105. function zSt(t) {
  96106. if (i4)
  96107. return i4.test(t);
  96108. for (let e = 0; e < t.length; e++) {
  96109. let n = t[e];
  96110. if (/\w/.test(n) || n > "€" && (n.toUpperCase() != n.toLowerCase() || BSt.test(n)))
  96111. return !0;
  96112. }
  96113. return !1;
  96114. }
  96115. function VSt(t) {
  96116. return (e) => {
  96117. if (!/\S/.test(e))
  96118. return lr.Space;
  96119. if (zSt(e))
  96120. return lr.Word;
  96121. for (let n = 0; n < t.length; n++)
  96122. if (e.indexOf(t[n]) > -1)
  96123. return lr.Word;
  96124. return lr.Other;
  96125. };
  96126. }
  96127. class cn {
  96128. constructor(e, n, r, i, a, o) {
  96129. this.config = e, this.doc = n, this.selection = r, this.values = i, this.status = e.statusTemplate.slice(), this.computeSlot = a, o && (o._state = this);
  96130. for (let s = 0; s < this.config.dynamicSlots.length; s++)
  96131. pb(this, s << 1);
  96132. this.computeSlot = null;
  96133. }
  96134. field(e, n = !0) {
  96135. let r = this.config.address[e.id];
  96136. if (r == null) {
  96137. if (n)
  96138. throw new RangeError("Field is not present in this state");
  96139. return;
  96140. }
  96141. return pb(this, r), PT(this, r);
  96142. }
  96143. /**
  96144. Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
  96145. state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec)
  96146. can be passed. Unless
  96147. [`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the
  96148. [changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec
  96149. are assumed to start in the _current_ document (not the document
  96150. produced by previous specs), and its
  96151. [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and
  96152. [effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer
  96153. to the document created by its _own_ changes. The resulting
  96154. transaction contains the combined effect of all the different
  96155. specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later
  96156. specs take precedence over earlier ones.
  96157. */
  96158. update(...e) {
  96159. return zpe(this, e, !0);
  96160. }
  96161. /**
  96162. @internal
  96163. */
  96164. applyTransaction(e) {
  96165. let n = this.config, { base: r, compartments: i } = n;
  96166. for (let s of e.effects)
  96167. s.is($1.reconfigure) ? (n && (i = /* @__PURE__ */ new Map(), n.compartments.forEach((l, u) => i.set(u, l)), n = null), i.set(s.value.compartment, s.value.extension)) : s.is(zt.reconfigure) ? (n = null, r = s.value) : s.is(zt.appendConfig) && (n = null, r = ig(r).concat(s.value));
  96168. let a;
  96169. n ? a = e.startState.values.slice() : (n = TT.resolve(r, i, this), a = new cn(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (l, u) => u.reconfigure(l, this), null).values);
  96170. let o = e.startState.facet(n4) ? e.newSelection : e.newSelection.asSingle();
  96171. new cn(n, e.newDoc, o, a, (s, l) => l.update(s, e), e);
  96172. }
  96173. /**
  96174. Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that
  96175. replaces every selection range with the given content.
  96176. */
  96177. replaceSelection(e) {
  96178. return typeof e == "string" && (e = this.toText(e)), this.changeByRange((n) => ({
  96179. changes: { from: n.from, to: n.to, insert: e },
  96180. range: De.cursor(n.from + e.length)
  96181. }));
  96182. }
  96183. /**
  96184. Create a set of changes and a new selection by running the given
  96185. function for each range in the active selection. The function
  96186. can return an optional set of changes (in the coordinate space
  96187. of the start document), plus an updated range (in the coordinate
  96188. space of the document produced by the call's own changes). This
  96189. method will merge all the changes and ranges into a single
  96190. changeset and selection, and return it as a [transaction
  96191. spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to
  96192. [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
  96193. */
  96194. changeByRange(e) {
  96195. let n = this.selection, r = e(n.ranges[0]), i = this.changes(r.changes), a = [r.range], o = ig(r.effects);
  96196. for (let s = 1; s < n.ranges.length; s++) {
  96197. let l = e(n.ranges[s]), u = this.changes(l.changes), c = u.map(i);
  96198. for (let d = 0; d < s; d++)
  96199. a[d] = a[d].map(c);
  96200. let f = i.mapDesc(u, !0);
  96201. a.push(l.range.map(f)), i = i.compose(c), o = zt.mapEffects(o, c).concat(zt.mapEffects(ig(l.effects), f));
  96202. }
  96203. return {
  96204. changes: i,
  96205. selection: De.create(a, n.mainIndex),
  96206. effects: o
  96207. };
  96208. }
  96209. /**
  96210. Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change
  96211. description, taking the state's document length and line
  96212. separator into account.
  96213. */
  96214. changes(e = []) {
  96215. return e instanceof Zr ? e : Zr.of(e, this.doc.length, this.facet(cn.lineSeparator));
  96216. }
  96217. /**
  96218. Using the state's [line
  96219. separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a
  96220. [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
  96221. */
  96222. toText(e) {
  96223. return xn.of(e.split(this.facet(cn.lineSeparator) || qL));
  96224. }
  96225. /**
  96226. Return the given range of the document as a string.
  96227. */
  96228. sliceDoc(e = 0, n = this.doc.length) {
  96229. return this.doc.sliceString(e, n, this.lineBreak);
  96230. }
  96231. /**
  96232. Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet).
  96233. */
  96234. facet(e) {
  96235. let n = this.config.address[e.id];
  96236. return n == null ? e.default : (pb(this, n), PT(this, n));
  96237. }
  96238. /**
  96239. Convert this state to a JSON-serializable object. When custom
  96240. fields should be serialized, you can pass them in as an object
  96241. mapping property names (in the resulting object, which should
  96242. not use `doc` or `selection`) to fields.
  96243. */
  96244. toJSON(e) {
  96245. let n = {
  96246. doc: this.sliceDoc(),
  96247. selection: this.selection.toJSON()
  96248. };
  96249. if (e)
  96250. for (let r in e) {
  96251. let i = e[r];
  96252. i instanceof fi && this.config.address[i.id] != null && (n[r] = i.spec.toJSON(this.field(e[r]), this));
  96253. }
  96254. return n;
  96255. }
  96256. /**
  96257. Deserialize a state from its JSON representation. When custom
  96258. fields should be deserialized, pass the same object you passed
  96259. to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as
  96260. third argument.
  96261. */
  96262. static fromJSON(e, n = {}, r) {
  96263. if (!e || typeof e.doc != "string")
  96264. throw new RangeError("Invalid JSON representation for EditorState");
  96265. let i = [];
  96266. if (r) {
  96267. for (let a in r)
  96268. if (Object.prototype.hasOwnProperty.call(e, a)) {
  96269. let o = r[a], s = e[a];
  96270. i.push(o.init((l) => o.spec.fromJSON(s, l)));
  96271. }
  96272. }
  96273. return cn.create({
  96274. doc: e.doc,
  96275. selection: De.fromJSON(e.selection),
  96276. extensions: n.extensions ? i.concat([n.extensions]) : i
  96277. });
  96278. }
  96279. /**
  96280. Create a new state. You'll usually only need this when
  96281. initializing an editor—updated states are created by applying
  96282. transactions.
  96283. */
  96284. static create(e = {}) {
  96285. let n = TT.resolve(e.extensions || [], /* @__PURE__ */ new Map()), r = e.doc instanceof xn ? e.doc : xn.of((e.doc || "").split(n.staticFacet(cn.lineSeparator) || qL)), i = e.selection ? e.selection instanceof De ? e.selection : De.single(e.selection.anchor, e.selection.head) : De.single(0);
  96286. return Epe(i, r.length), n.staticFacet(n4) || (i = i.asSingle()), new cn(n, r, i, n.dynamicSlots.map(() => null), (a, o) => o.create(a), null);
  96287. }
  96288. /**
  96289. The size (in columns) of a tab in the document, determined by
  96290. the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.
  96291. */
  96292. get tabSize() {
  96293. return this.facet(cn.tabSize);
  96294. }
  96295. /**
  96296. Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)
  96297. string for this state.
  96298. */
  96299. get lineBreak() {
  96300. return this.facet(cn.lineSeparator) || `
  96301. `;
  96302. }
  96303. /**
  96304. Returns true when the editor is
  96305. [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
  96306. */
  96307. get readOnly() {
  96308. return this.facet(Npe);
  96309. }
  96310. /**
  96311. Look up a translation for the given phrase (via the
  96312. [`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the
  96313. original string if no translation is found.
  96314. If additional arguments are passed, they will be inserted in
  96315. place of markers like `$1` (for the first value) and `$2`, etc.
  96316. A single `$` is equivalent to `$1`, and `$$` will produce a
  96317. literal dollar sign.
  96318. */
  96319. phrase(e, ...n) {
  96320. for (let r of this.facet(cn.phrases))
  96321. if (Object.prototype.hasOwnProperty.call(r, e)) {
  96322. e = r[e];
  96323. break;
  96324. }
  96325. return n.length && (e = e.replace(/\$(\$|\d*)/g, (r, i) => {
  96326. if (i == "$")
  96327. return "$";
  96328. let a = +(i || 1);
  96329. return !a || a > n.length ? r : n[a - 1];
  96330. })), e;
  96331. }
  96332. /**
  96333. Find the values for a given language data field, provided by the
  96334. the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
  96335. Examples of language data fields are...
  96336. - [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
  96337. comment syntax.
  96338. - [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
  96339. for providing language-specific completion sources.
  96340. - [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
  96341. characters that should be considered part of words in this
  96342. language.
  96343. - [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
  96344. bracket closing behavior.
  96345. */
  96346. languageDataAt(e, n, r = -1) {
  96347. let i = [];
  96348. for (let a of this.facet(Ipe))
  96349. for (let o of a(this, n, r))
  96350. Object.prototype.hasOwnProperty.call(o, e) && i.push(o[e]);
  96351. return i;
  96352. }
  96353. /**
  96354. Return a function that can categorize strings (expected to
  96355. represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak))
  96356. into one of:
  96357. - Word (contains an alphanumeric character or a character
  96358. explicitly listed in the local language's `"wordChars"`
  96359. language data, which should be a string)
  96360. - Space (contains only whitespace)
  96361. - Other (anything else)
  96362. */
  96363. charCategorizer(e) {
  96364. return VSt(this.languageDataAt("wordChars", e).join(""));
  96365. }
  96366. /**
  96367. Find the word at the given position, meaning the range
  96368. containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters
  96369. around it. If no word characters are adjacent to the position,
  96370. this returns null.
  96371. */
  96372. wordAt(e) {
  96373. let { text: n, from: r, length: i } = this.doc.lineAt(e), a = this.charCategorizer(e), o = e - r, s = e - r;
  96374. for (; o > 0; ) {
  96375. let l = wi(n, o, !1);
  96376. if (a(n.slice(l, o)) != lr.Word)
  96377. break;
  96378. o = l;
  96379. }
  96380. for (; s < i; ) {
  96381. let l = wi(n, s);
  96382. if (a(n.slice(s, l)) != lr.Word)
  96383. break;
  96384. s = l;
  96385. }
  96386. return o == s ? null : De.range(o + r, s + r);
  96387. }
  96388. }
  96389. cn.allowMultipleSelections = n4;
  96390. cn.tabSize = /* @__PURE__ */ ut.define({
  96391. combine: (t) => t.length ? t[0] : 4
  96392. });
  96393. cn.lineSeparator = Dpe;
  96394. cn.readOnly = Npe;
  96395. cn.phrases = /* @__PURE__ */ ut.define({
  96396. compare(t, e) {
  96397. let n = Object.keys(t), r = Object.keys(e);
  96398. return n.length == r.length && n.every((i) => t[i] == e[i]);
  96399. }
  96400. });
  96401. cn.languageData = Ipe;
  96402. cn.changeFilter = Rpe;
  96403. cn.transactionFilter = kpe;
  96404. cn.transactionExtender = Lpe;
  96405. $1.reconfigure = /* @__PURE__ */ zt.define();
  96406. function Kl(t, e, n = {}) {
  96407. let r = {};
  96408. for (let i of t)
  96409. for (let a of Object.keys(i)) {
  96410. let o = i[a], s = r[a];
  96411. if (s === void 0)
  96412. r[a] = o;
  96413. else if (!(s === o || o === void 0)) if (Object.hasOwnProperty.call(n, a))
  96414. r[a] = n[a](s, o);
  96415. else
  96416. throw new Error("Config merge conflict for field " + a);
  96417. }
  96418. for (let i in e)
  96419. r[i] === void 0 && (r[i] = e[i]);
  96420. return r;
  96421. }
  96422. class Kh {
  96423. /**
  96424. Compare this value with another value. Used when comparing
  96425. rangesets. The default implementation compares by identity.
  96426. Unless you are only creating a fixed number of unique instances
  96427. of your value type, it is a good idea to implement this
  96428. properly.
  96429. */
  96430. eq(e) {
  96431. return this == e;
  96432. }
  96433. /**
  96434. Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
  96435. */
  96436. range(e, n = e) {
  96437. return a4.create(e, n, this);
  96438. }
  96439. }
  96440. Kh.prototype.startSide = Kh.prototype.endSide = 0;
  96441. Kh.prototype.point = !1;
  96442. Kh.prototype.mapMode = Oi.TrackDel;
  96443. let a4 = class Vpe {
  96444. constructor(e, n, r) {
  96445. this.from = e, this.to = n, this.value = r;
  96446. }
  96447. /**
  96448. @internal
  96449. */
  96450. static create(e, n, r) {
  96451. return new Vpe(e, n, r);
  96452. }
  96453. };
  96454. function o4(t, e) {
  96455. return t.from - e.from || t.value.startSide - e.value.startSide;
  96456. }
  96457. class tB {
  96458. constructor(e, n, r, i) {
  96459. this.from = e, this.to = n, this.value = r, this.maxPoint = i;
  96460. }
  96461. get length() {
  96462. return this.to[this.to.length - 1];
  96463. }
  96464. // Find the index of the given position and side. Use the ranges'
  96465. // `from` pos when `end == false`, `to` when `end == true`.
  96466. findIndex(e, n, r, i = 0) {
  96467. let a = r ? this.to : this.from;
  96468. for (let o = i, s = a.length; ; ) {
  96469. if (o == s)
  96470. return o;
  96471. let l = o + s >> 1, u = a[l] - e || (r ? this.value[l].endSide : this.value[l].startSide) - n;
  96472. if (l == o)
  96473. return u >= 0 ? o : s;
  96474. u >= 0 ? s = l : o = l + 1;
  96475. }
  96476. }
  96477. between(e, n, r, i) {
  96478. for (let a = this.findIndex(n, -1e9, !0), o = this.findIndex(r, 1e9, !1, a); a < o; a++)
  96479. if (i(this.from[a] + e, this.to[a] + e, this.value[a]) === !1)
  96480. return !1;
  96481. }
  96482. map(e, n) {
  96483. let r = [], i = [], a = [], o = -1, s = -1;
  96484. for (let l = 0; l < this.value.length; l++) {
  96485. let u = this.value[l], c = this.from[l] + e, f = this.to[l] + e, d, h;
  96486. if (c == f) {
  96487. let p = n.mapPos(c, u.startSide, u.mapMode);
  96488. if (p == null || (d = h = p, u.startSide != u.endSide && (h = n.mapPos(c, u.endSide), h < d)))
  96489. continue;
  96490. } else if (d = n.mapPos(c, u.startSide), h = n.mapPos(f, u.endSide), d > h || d == h && u.startSide > 0 && u.endSide <= 0)
  96491. continue;
  96492. (h - d || u.endSide - u.startSide) < 0 || (o < 0 && (o = d), u.point && (s = Math.max(s, h - d)), r.push(u), i.push(d - o), a.push(h - o));
  96493. }
  96494. return { mapped: r.length ? new tB(i, a, r, s) : null, pos: o };
  96495. }
  96496. }
  96497. class Sn {
  96498. constructor(e, n, r, i) {
  96499. this.chunkPos = e, this.chunk = n, this.nextLayer = r, this.maxPoint = i;
  96500. }
  96501. /**
  96502. @internal
  96503. */
  96504. static create(e, n, r, i) {
  96505. return new Sn(e, n, r, i);
  96506. }
  96507. /**
  96508. @internal
  96509. */
  96510. get length() {
  96511. let e = this.chunk.length - 1;
  96512. return e < 0 ? 0 : Math.max(this.chunkEnd(e), this.nextLayer.length);
  96513. }
  96514. /**
  96515. The number of ranges in the set.
  96516. */
  96517. get size() {
  96518. if (this.isEmpty)
  96519. return 0;
  96520. let e = this.nextLayer.size;
  96521. for (let n of this.chunk)
  96522. e += n.value.length;
  96523. return e;
  96524. }
  96525. /**
  96526. @internal
  96527. */
  96528. chunkEnd(e) {
  96529. return this.chunkPos[e] + this.chunk[e].length;
  96530. }
  96531. /**
  96532. Update the range set, optionally adding new ranges or filtering
  96533. out existing ones.
  96534. (Note: The type parameter is just there as a kludge to work
  96535. around TypeScript variance issues that prevented `RangeSet<X>`
  96536. from being a subtype of `RangeSet<Y>` when `X` is a subtype of
  96537. `Y`.)
  96538. */
  96539. update(e) {
  96540. let { add: n = [], sort: r = !1, filterFrom: i = 0, filterTo: a = this.length } = e, o = e.filter;
  96541. if (n.length == 0 && !o)
  96542. return this;
  96543. if (r && (n = n.slice().sort(o4)), this.isEmpty)
  96544. return n.length ? Sn.of(n) : this;
  96545. let s = new Fpe(this, null, -1).goto(0), l = 0, u = [], c = new wf();
  96546. for (; s.value || l < n.length; )
  96547. if (l < n.length && (s.from - n[l].from || s.startSide - n[l].value.startSide) >= 0) {
  96548. let f = n[l++];
  96549. c.addInner(f.from, f.to, f.value) || u.push(f);
  96550. } else s.rangeIndex == 1 && s.chunkIndex < this.chunk.length && (l == n.length || this.chunkEnd(s.chunkIndex) < n[l].from) && (!o || i > this.chunkEnd(s.chunkIndex) || a < this.chunkPos[s.chunkIndex]) && c.addChunk(this.chunkPos[s.chunkIndex], this.chunk[s.chunkIndex]) ? s.nextChunk() : ((!o || i > s.to || a < s.from || o(s.from, s.to, s.value)) && (c.addInner(s.from, s.to, s.value) || u.push(a4.create(s.from, s.to, s.value))), s.next());
  96551. return c.finishInner(this.nextLayer.isEmpty && !u.length ? Sn.empty : this.nextLayer.update({ add: u, filter: o, filterFrom: i, filterTo: a }));
  96552. }
  96553. /**
  96554. Map this range set through a set of changes, return the new set.
  96555. */
  96556. map(e) {
  96557. if (e.empty || this.isEmpty)
  96558. return this;
  96559. let n = [], r = [], i = -1;
  96560. for (let o = 0; o < this.chunk.length; o++) {
  96561. let s = this.chunkPos[o], l = this.chunk[o], u = e.touchesRange(s, s + l.length);
  96562. if (u === !1)
  96563. i = Math.max(i, l.maxPoint), n.push(l), r.push(e.mapPos(s));
  96564. else if (u === !0) {
  96565. let { mapped: c, pos: f } = l.map(s, e);
  96566. c && (i = Math.max(i, c.maxPoint), n.push(c), r.push(f));
  96567. }
  96568. }
  96569. let a = this.nextLayer.map(e);
  96570. return n.length == 0 ? a : new Sn(r, n, a || Sn.empty, i);
  96571. }
  96572. /**
  96573. Iterate over the ranges that touch the region `from` to `to`,
  96574. calling `f` for each. There is no guarantee that the ranges will
  96575. be reported in any specific order. When the callback returns
  96576. `false`, iteration stops.
  96577. */
  96578. between(e, n, r) {
  96579. if (!this.isEmpty) {
  96580. for (let i = 0; i < this.chunk.length; i++) {
  96581. let a = this.chunkPos[i], o = this.chunk[i];
  96582. if (n >= a && e <= a + o.length && o.between(a, e - a, n - a, r) === !1)
  96583. return;
  96584. }
  96585. this.nextLayer.between(e, n, r);
  96586. }
  96587. }
  96588. /**
  96589. Iterate over the ranges in this set, in order, including all
  96590. ranges that end at or after `from`.
  96591. */
  96592. iter(e = 0) {
  96593. return g_.from([this]).goto(e);
  96594. }
  96595. /**
  96596. @internal
  96597. */
  96598. get isEmpty() {
  96599. return this.nextLayer == this;
  96600. }
  96601. /**
  96602. Iterate over the ranges in a collection of sets, in order,
  96603. starting from `from`.
  96604. */
  96605. static iter(e, n = 0) {
  96606. return g_.from(e).goto(n);
  96607. }
  96608. /**
  96609. Iterate over two groups of sets, calling methods on `comparator`
  96610. to notify it of possible differences.
  96611. */
  96612. static compare(e, n, r, i, a = -1) {
  96613. let o = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= a), s = n.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= a), l = lK(o, s, r), u = new ty(o, l, a), c = new ty(s, l, a);
  96614. r.iterGaps((f, d, h) => uK(u, f, c, d, h, i)), r.empty && r.length == 0 && uK(u, 0, c, 0, 0, i);
  96615. }
  96616. /**
  96617. Compare the contents of two groups of range sets, returning true
  96618. if they are equivalent in the given range.
  96619. */
  96620. static eq(e, n, r = 0, i) {
  96621. i == null && (i = 999999999);
  96622. let a = e.filter((c) => !c.isEmpty && n.indexOf(c) < 0), o = n.filter((c) => !c.isEmpty && e.indexOf(c) < 0);
  96623. if (a.length != o.length)
  96624. return !1;
  96625. if (!a.length)
  96626. return !0;
  96627. let s = lK(a, o), l = new ty(a, s, 0).goto(r), u = new ty(o, s, 0).goto(r);
  96628. for (; ; ) {
  96629. if (l.to != u.to || !s4(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point)))
  96630. return !1;
  96631. if (l.to > i)
  96632. return !0;
  96633. l.next(), u.next();
  96634. }
  96635. }
  96636. /**
  96637. Iterate over a group of range sets at the same time, notifying
  96638. the iterator about the ranges covering every given piece of
  96639. content. Returns the open count (see
  96640. [`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end
  96641. of the iteration.
  96642. */
  96643. static spans(e, n, r, i, a = -1) {
  96644. let o = new ty(e, null, a).goto(n), s = n, l = o.openStart;
  96645. for (; ; ) {
  96646. let u = Math.min(o.to, r);
  96647. if (o.point) {
  96648. let c = o.activeForPoint(o.to), f = o.pointFrom < n ? c.length + 1 : o.point.startSide < 0 ? c.length : Math.min(c.length, l);
  96649. i.point(s, u, o.point, c, f, o.pointRank), l = Math.min(o.openEnd(u), c.length);
  96650. } else u > s && (i.span(s, u, o.active, l), l = o.openEnd(u));
  96651. if (o.to > r)
  96652. return l + (o.point && o.to > r ? 1 : 0);
  96653. s = o.to, o.next();
  96654. }
  96655. }
  96656. /**
  96657. Create a range set for the given range or array of ranges. By
  96658. default, this expects the ranges to be _sorted_ (by start
  96659. position and, if two start at the same position,
  96660. `value.startSide`). You can pass `true` as second argument to
  96661. cause the method to sort them.
  96662. */
  96663. static of(e, n = !1) {
  96664. let r = new wf();
  96665. for (let i of e instanceof a4 ? [e] : n ? FSt(e) : e)
  96666. r.add(i.from, i.to, i.value);
  96667. return r.finish();
  96668. }
  96669. /**
  96670. Join an array of range sets into a single set.
  96671. */
  96672. static join(e) {
  96673. if (!e.length)
  96674. return Sn.empty;
  96675. let n = e[e.length - 1];
  96676. for (let r = e.length - 2; r >= 0; r--)
  96677. for (let i = e[r]; i != Sn.empty; i = i.nextLayer)
  96678. n = new Sn(i.chunkPos, i.chunk, n, Math.max(i.maxPoint, n.maxPoint));
  96679. return n;
  96680. }
  96681. }
  96682. Sn.empty = /* @__PURE__ */ new Sn([], [], null, -1);
  96683. function FSt(t) {
  96684. if (t.length > 1)
  96685. for (let e = t[0], n = 1; n < t.length; n++) {
  96686. let r = t[n];
  96687. if (o4(e, r) > 0)
  96688. return t.slice().sort(o4);
  96689. e = r;
  96690. }
  96691. return t;
  96692. }
  96693. Sn.empty.nextLayer = Sn.empty;
  96694. class wf {
  96695. finishChunk(e) {
  96696. this.chunks.push(new tB(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
  96697. }
  96698. /**
  96699. Create an empty builder.
  96700. */
  96701. constructor() {
  96702. this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null;
  96703. }
  96704. /**
  96705. Add a range. Ranges should be added in sorted (by `from` and
  96706. `value.startSide`) order.
  96707. */
  96708. add(e, n, r) {
  96709. this.addInner(e, n, r) || (this.nextLayer || (this.nextLayer = new wf())).add(e, n, r);
  96710. }
  96711. /**
  96712. @internal
  96713. */
  96714. addInner(e, n, r) {
  96715. let i = e - this.lastTo || r.startSide - this.last.endSide;
  96716. if (i <= 0 && (e - this.lastFrom || r.startSide - this.last.startSide) < 0)
  96717. throw new Error("Ranges must be added sorted by `from` position and `startSide`");
  96718. return i < 0 ? !1 : (this.from.length == 250 && this.finishChunk(!0), this.chunkStart < 0 && (this.chunkStart = e), this.from.push(e - this.chunkStart), this.to.push(n - this.chunkStart), this.last = r, this.lastFrom = e, this.lastTo = n, this.value.push(r), r.point && (this.maxPoint = Math.max(this.maxPoint, n - e)), !0);
  96719. }
  96720. /**
  96721. @internal
  96722. */
  96723. addChunk(e, n) {
  96724. if ((e - this.lastTo || n.value[0].startSide - this.last.endSide) < 0)
  96725. return !1;
  96726. this.from.length && this.finishChunk(!0), this.setMaxPoint = Math.max(this.setMaxPoint, n.maxPoint), this.chunks.push(n), this.chunkPos.push(e);
  96727. let r = n.value.length - 1;
  96728. return this.last = n.value[r], this.lastFrom = n.from[r] + e, this.lastTo = n.to[r] + e, !0;
  96729. }
  96730. /**
  96731. Finish the range set. Returns the new set. The builder can't be
  96732. used anymore after this has been called.
  96733. */
  96734. finish() {
  96735. return this.finishInner(Sn.empty);
  96736. }
  96737. /**
  96738. @internal
  96739. */
  96740. finishInner(e) {
  96741. if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
  96742. return e;
  96743. let n = Sn.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
  96744. return this.from = null, n;
  96745. }
  96746. }
  96747. function lK(t, e, n) {
  96748. let r = /* @__PURE__ */ new Map();
  96749. for (let a of t)
  96750. for (let o = 0; o < a.chunk.length; o++)
  96751. a.chunk[o].maxPoint <= 0 && r.set(a.chunk[o], a.chunkPos[o]);
  96752. let i = /* @__PURE__ */ new Set();
  96753. for (let a of e)
  96754. for (let o = 0; o < a.chunk.length; o++) {
  96755. let s = r.get(a.chunk[o]);
  96756. s != null && (n ? n.mapPos(s) : s) == a.chunkPos[o] && !(n != null && n.touchesRange(s, s + a.chunk[o].length)) && i.add(a.chunk[o]);
  96757. }
  96758. return i;
  96759. }
  96760. class Fpe {
  96761. constructor(e, n, r, i = 0) {
  96762. this.layer = e, this.skip = n, this.minPoint = r, this.rank = i;
  96763. }
  96764. get startSide() {
  96765. return this.value ? this.value.startSide : 0;
  96766. }
  96767. get endSide() {
  96768. return this.value ? this.value.endSide : 0;
  96769. }
  96770. goto(e, n = -1e9) {
  96771. return this.chunkIndex = this.rangeIndex = 0, this.gotoInner(e, n, !1), this;
  96772. }
  96773. gotoInner(e, n, r) {
  96774. for (; this.chunkIndex < this.layer.chunk.length; ) {
  96775. let i = this.layer.chunk[this.chunkIndex];
  96776. if (!(this.skip && this.skip.has(i) || this.layer.chunkEnd(this.chunkIndex) < e || i.maxPoint < this.minPoint))
  96777. break;
  96778. this.chunkIndex++, r = !1;
  96779. }
  96780. if (this.chunkIndex < this.layer.chunk.length) {
  96781. let i = this.layer.chunk[this.chunkIndex].findIndex(e - this.layer.chunkPos[this.chunkIndex], n, !0);
  96782. (!r || this.rangeIndex < i) && this.setRangeIndex(i);
  96783. }
  96784. this.next();
  96785. }
  96786. forward(e, n) {
  96787. (this.to - e || this.endSide - n) < 0 && this.gotoInner(e, n, !0);
  96788. }
  96789. next() {
  96790. for (; ; )
  96791. if (this.chunkIndex == this.layer.chunk.length) {
  96792. this.from = this.to = 1e9, this.value = null;
  96793. break;
  96794. } else {
  96795. let e = this.layer.chunkPos[this.chunkIndex], n = this.layer.chunk[this.chunkIndex], r = e + n.from[this.rangeIndex];
  96796. if (this.from = r, this.to = e + n.to[this.rangeIndex], this.value = n.value[this.rangeIndex], this.setRangeIndex(this.rangeIndex + 1), this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint)
  96797. break;
  96798. }
  96799. }
  96800. setRangeIndex(e) {
  96801. if (e == this.layer.chunk[this.chunkIndex].value.length) {
  96802. if (this.chunkIndex++, this.skip)
  96803. for (; this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]); )
  96804. this.chunkIndex++;
  96805. this.rangeIndex = 0;
  96806. } else
  96807. this.rangeIndex = e;
  96808. }
  96809. nextChunk() {
  96810. this.chunkIndex++, this.rangeIndex = 0, this.next();
  96811. }
  96812. compare(e) {
  96813. return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide;
  96814. }
  96815. }
  96816. class g_ {
  96817. constructor(e) {
  96818. this.heap = e;
  96819. }
  96820. static from(e, n = null, r = -1) {
  96821. let i = [];
  96822. for (let a = 0; a < e.length; a++)
  96823. for (let o = e[a]; !o.isEmpty; o = o.nextLayer)
  96824. o.maxPoint >= r && i.push(new Fpe(o, n, r, a));
  96825. return i.length == 1 ? i[0] : new g_(i);
  96826. }
  96827. get startSide() {
  96828. return this.value ? this.value.startSide : 0;
  96829. }
  96830. goto(e, n = -1e9) {
  96831. for (let r of this.heap)
  96832. r.goto(e, n);
  96833. for (let r = this.heap.length >> 1; r >= 0; r--)
  96834. JI(this.heap, r);
  96835. return this.next(), this;
  96836. }
  96837. forward(e, n) {
  96838. for (let r of this.heap)
  96839. r.forward(e, n);
  96840. for (let r = this.heap.length >> 1; r >= 0; r--)
  96841. JI(this.heap, r);
  96842. (this.to - e || this.value.endSide - n) < 0 && this.next();
  96843. }
  96844. next() {
  96845. if (this.heap.length == 0)
  96846. this.from = this.to = 1e9, this.value = null, this.rank = -1;
  96847. else {
  96848. let e = this.heap[0];
  96849. this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), JI(this.heap, 0);
  96850. }
  96851. }
  96852. }
  96853. function JI(t, e) {
  96854. for (let n = t[e]; ; ) {
  96855. let r = (e << 1) + 1;
  96856. if (r >= t.length)
  96857. break;
  96858. let i = t[r];
  96859. if (r + 1 < t.length && i.compare(t[r + 1]) >= 0 && (i = t[r + 1], r++), n.compare(i) < 0)
  96860. break;
  96861. t[r] = n, t[e] = i, e = r;
  96862. }
  96863. }
  96864. class ty {
  96865. constructor(e, n, r) {
  96866. this.minPoint = r, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = g_.from(e, n, r);
  96867. }
  96868. goto(e, n = -1e9) {
  96869. return this.cursor.goto(e, n), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = n, this.openStart = -1, this.next(), this;
  96870. }
  96871. forward(e, n) {
  96872. for (; this.minActive > -1 && (this.activeTo[this.minActive] - e || this.active[this.minActive].endSide - n) < 0; )
  96873. this.removeActive(this.minActive);
  96874. this.cursor.forward(e, n);
  96875. }
  96876. removeActive(e) {
  96877. ox(this.active, e), ox(this.activeTo, e), ox(this.activeRank, e), this.minActive = cK(this.active, this.activeTo);
  96878. }
  96879. addActive(e) {
  96880. let n = 0, { value: r, to: i, rank: a } = this.cursor;
  96881. for (; n < this.activeRank.length && (a - this.activeRank[n] || i - this.activeTo[n]) > 0; )
  96882. n++;
  96883. sx(this.active, n, r), sx(this.activeTo, n, i), sx(this.activeRank, n, a), e && sx(e, n, this.cursor.from), this.minActive = cK(this.active, this.activeTo);
  96884. }
  96885. // After calling this, if `this.point` != null, the next range is a
  96886. // point. Otherwise, it's a regular range, covered by `this.active`.
  96887. next() {
  96888. let e = this.to, n = this.point;
  96889. this.point = null;
  96890. let r = this.openStart < 0 ? [] : null;
  96891. for (; ; ) {
  96892. let i = this.minActive;
  96893. if (i > -1 && (this.activeTo[i] - this.cursor.from || this.active[i].endSide - this.cursor.startSide) < 0) {
  96894. if (this.activeTo[i] > e) {
  96895. this.to = this.activeTo[i], this.endSide = this.active[i].endSide;
  96896. break;
  96897. }
  96898. this.removeActive(i), r && ox(r, i);
  96899. } else if (this.cursor.value)
  96900. if (this.cursor.from > e) {
  96901. this.to = this.cursor.from, this.endSide = this.cursor.startSide;
  96902. break;
  96903. } else {
  96904. let a = this.cursor.value;
  96905. if (!a.point)
  96906. this.addActive(r), this.cursor.next();
  96907. else if (n && this.cursor.to == this.to && this.cursor.from < this.cursor.to)
  96908. this.cursor.next();
  96909. else {
  96910. this.point = a, this.pointFrom = this.cursor.from, this.pointRank = this.cursor.rank, this.to = this.cursor.to, this.endSide = a.endSide, this.cursor.next(), this.forward(this.to, this.endSide);
  96911. break;
  96912. }
  96913. }
  96914. else {
  96915. this.to = this.endSide = 1e9;
  96916. break;
  96917. }
  96918. }
  96919. if (r) {
  96920. this.openStart = 0;
  96921. for (let i = r.length - 1; i >= 0 && r[i] < e; i--)
  96922. this.openStart++;
  96923. }
  96924. }
  96925. activeForPoint(e) {
  96926. if (!this.active.length)
  96927. return this.active;
  96928. let n = [];
  96929. for (let r = this.active.length - 1; r >= 0 && !(this.activeRank[r] < this.pointRank); r--)
  96930. (this.activeTo[r] > e || this.activeTo[r] == e && this.active[r].endSide >= this.point.endSide) && n.push(this.active[r]);
  96931. return n.reverse();
  96932. }
  96933. openEnd(e) {
  96934. let n = 0;
  96935. for (let r = this.activeTo.length - 1; r >= 0 && this.activeTo[r] > e; r--)
  96936. n++;
  96937. return n;
  96938. }
  96939. }
  96940. function uK(t, e, n, r, i, a) {
  96941. t.goto(e), n.goto(r);
  96942. let o = r + i, s = r, l = r - e;
  96943. for (; ; ) {
  96944. let u = t.to + l - n.to || t.endSide - n.endSide, c = u < 0 ? t.to + l : n.to, f = Math.min(c, o);
  96945. if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && s4(t.activeForPoint(t.to), n.activeForPoint(n.to)) || a.comparePoint(s, f, t.point, n.point) : f > s && !s4(t.active, n.active) && a.compareRange(s, f, t.active, n.active), c > o)
  96946. break;
  96947. s = c, u <= 0 && t.next(), u >= 0 && n.next();
  96948. }
  96949. }
  96950. function s4(t, e) {
  96951. if (t.length != e.length)
  96952. return !1;
  96953. for (let n = 0; n < t.length; n++)
  96954. if (t[n] != e[n] && !t[n].eq(e[n]))
  96955. return !1;
  96956. return !0;
  96957. }
  96958. function ox(t, e) {
  96959. for (let n = e, r = t.length - 1; n < r; n++)
  96960. t[n] = t[n + 1];
  96961. t.pop();
  96962. }
  96963. function sx(t, e, n) {
  96964. for (let r = t.length - 1; r >= e; r--)
  96965. t[r + 1] = t[r];
  96966. t[e] = n;
  96967. }
  96968. function cK(t, e) {
  96969. let n = -1, r = 1e9;
  96970. for (let i = 0; i < e.length; i++)
  96971. (e[i] - r || t[i].endSide - t[n].endSide) < 0 && (n = i, r = e[i]);
  96972. return n;
  96973. }
  96974. function Fm(t, e, n = t.length) {
  96975. let r = 0;
  96976. for (let i = 0; i < n; )
  96977. t.charCodeAt(i) == 9 ? (r += e - r % e, i++) : (r++, i = wi(t, i));
  96978. return r;
  96979. }
  96980. function l4(t, e, n, r) {
  96981. for (let i = 0, a = 0; ; ) {
  96982. if (a >= e)
  96983. return i;
  96984. if (i == t.length)
  96985. break;
  96986. a += t.charCodeAt(i) == 9 ? n - a % n : 1, i = wi(t, i);
  96987. }
  96988. return r === !0 ? -1 : t.length;
  96989. }
  96990. const u4 = "ͼ", fK = typeof Symbol > "u" ? "__" + u4 : Symbol.for(u4), c4 = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), dK = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
  96991. class Cf {
  96992. // :: (Object<Style>, ?{finish: ?(string) → string})
  96993. // Create a style module from the given spec.
  96994. //
  96995. // When `finish` is given, it is called on regular (non-`@`)
  96996. // selectors (after `&` expansion) to compute the final selector.
  96997. constructor(e, n) {
  96998. this.rules = [];
  96999. let { finish: r } = n || {};
  97000. function i(o) {
  97001. return /^@/.test(o) ? [o] : o.split(/,\s*/);
  97002. }
  97003. function a(o, s, l, u) {
  97004. let c = [], f = /^@(\w+)\b/.exec(o[0]), d = f && f[1] == "keyframes";
  97005. if (f && s == null) return l.push(o[0] + ";");
  97006. for (let h in s) {
  97007. let p = s[h];
  97008. if (/&/.test(h))
  97009. a(
  97010. h.split(/,\s*/).map((v) => o.map((g) => v.replace(/&/, g))).reduce((v, g) => v.concat(g)),
  97011. p,
  97012. l
  97013. );
  97014. else if (p && typeof p == "object") {
  97015. if (!f) throw new RangeError("The value of a property (" + h + ") should be a primitive value.");
  97016. a(i(h), p, c, d);
  97017. } else p != null && c.push(h.replace(/_.*/, "").replace(/[A-Z]/g, (v) => "-" + v.toLowerCase()) + ": " + p + ";");
  97018. }
  97019. (c.length || d) && l.push((r && !f && !u ? o.map(r) : o).join(", ") + " {" + c.join(" ") + "}");
  97020. }
  97021. for (let o in e) a(i(o), e[o], this.rules);
  97022. }
  97023. // :: () → string
  97024. // Returns a string containing the module's CSS rules.
  97025. getRules() {
  97026. return this.rules.join(`
  97027. `);
  97028. }
  97029. // :: () → string
  97030. // Generate a new unique CSS class name.
  97031. static newName() {
  97032. let e = dK[fK] || 1;
  97033. return dK[fK] = e + 1, u4 + e.toString(36);
  97034. }
  97035. // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
  97036. //
  97037. // Mount the given set of modules in the given DOM root, which ensures
  97038. // that the CSS rules defined by the module are available in that
  97039. // context.
  97040. //
  97041. // Rules are only added to the document once per root.
  97042. //
  97043. // Rule order will follow the order of the modules, so that rules from
  97044. // modules later in the array take precedence of those from earlier
  97045. // modules. If you call this function multiple times for the same root
  97046. // in a way that changes the order of already mounted modules, the old
  97047. // order will be changed.
  97048. //
  97049. // If a Content Security Policy nonce is provided, it is added to
  97050. // the `<style>` tag generated by the library.
  97051. static mount(e, n, r) {
  97052. let i = e[c4], a = r && r.nonce;
  97053. i ? a && i.setNonce(a) : i = new WSt(e, a), i.mount(Array.isArray(n) ? n : [n], e);
  97054. }
  97055. }
  97056. let hK = /* @__PURE__ */ new Map();
  97057. class WSt {
  97058. constructor(e, n) {
  97059. let r = e.ownerDocument || e, i = r.defaultView;
  97060. if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) {
  97061. let a = hK.get(r);
  97062. if (a) return e[c4] = a;
  97063. this.sheet = new i.CSSStyleSheet(), hK.set(r, this);
  97064. } else
  97065. this.styleTag = r.createElement("style"), n && this.styleTag.setAttribute("nonce", n);
  97066. this.modules = [], e[c4] = this;
  97067. }
  97068. mount(e, n) {
  97069. let r = this.sheet, i = 0, a = 0;
  97070. for (let o = 0; o < e.length; o++) {
  97071. let s = e[o], l = this.modules.indexOf(s);
  97072. if (l < a && l > -1 && (this.modules.splice(l, 1), a--, l = -1), l == -1) {
  97073. if (this.modules.splice(a++, 0, s), r) for (let u = 0; u < s.rules.length; u++)
  97074. r.insertRule(s.rules[u], i++);
  97075. } else {
  97076. for (; a < l; ) i += this.modules[a++].rules.length;
  97077. i += s.rules.length, a++;
  97078. }
  97079. }
  97080. if (r)
  97081. n.adoptedStyleSheets.indexOf(this.sheet) < 0 && (n.adoptedStyleSheets = [this.sheet, ...n.adoptedStyleSheets]);
  97082. else {
  97083. let o = "";
  97084. for (let l = 0; l < this.modules.length; l++)
  97085. o += this.modules[l].getRules() + `
  97086. `;
  97087. this.styleTag.textContent = o;
  97088. let s = n.head || n;
  97089. this.styleTag.parentNode != s && s.insertBefore(this.styleTag, s.firstChild);
  97090. }
  97091. }
  97092. setNonce(e) {
  97093. this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e);
  97094. }
  97095. }
  97096. var Tf = {
  97097. 8: "Backspace",
  97098. 9: "Tab",
  97099. 10: "Enter",
  97100. 12: "NumLock",
  97101. 13: "Enter",
  97102. 16: "Shift",
  97103. 17: "Control",
  97104. 18: "Alt",
  97105. 20: "CapsLock",
  97106. 27: "Escape",
  97107. 32: " ",
  97108. 33: "PageUp",
  97109. 34: "PageDown",
  97110. 35: "End",
  97111. 36: "Home",
  97112. 37: "ArrowLeft",
  97113. 38: "ArrowUp",
  97114. 39: "ArrowRight",
  97115. 40: "ArrowDown",
  97116. 44: "PrintScreen",
  97117. 45: "Insert",
  97118. 46: "Delete",
  97119. 59: ";",
  97120. 61: "=",
  97121. 91: "Meta",
  97122. 92: "Meta",
  97123. 106: "*",
  97124. 107: "+",
  97125. 108: ",",
  97126. 109: "-",
  97127. 110: ".",
  97128. 111: "/",
  97129. 144: "NumLock",
  97130. 145: "ScrollLock",
  97131. 160: "Shift",
  97132. 161: "Shift",
  97133. 162: "Control",
  97134. 163: "Control",
  97135. 164: "Alt",
  97136. 165: "Alt",
  97137. 173: "-",
  97138. 186: ";",
  97139. 187: "=",
  97140. 188: ",",
  97141. 189: "-",
  97142. 190: ".",
  97143. 191: "/",
  97144. 192: "`",
  97145. 219: "[",
  97146. 220: "\\",
  97147. 221: "]",
  97148. 222: "'"
  97149. }, m_ = {
  97150. 48: ")",
  97151. 49: "!",
  97152. 50: "@",
  97153. 51: "#",
  97154. 52: "$",
  97155. 53: "%",
  97156. 54: "^",
  97157. 55: "&",
  97158. 56: "*",
  97159. 57: "(",
  97160. 59: ":",
  97161. 61: "+",
  97162. 173: "_",
  97163. 186: ":",
  97164. 187: "+",
  97165. 188: "<",
  97166. 189: "_",
  97167. 190: ">",
  97168. 191: "?",
  97169. 192: "~",
  97170. 219: "{",
  97171. 220: "|",
  97172. 221: "}",
  97173. 222: '"'
  97174. }, QSt = typeof navigator < "u" && /Mac/.test(navigator.platform), HSt = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
  97175. for (var _i = 0; _i < 10; _i++) Tf[48 + _i] = Tf[96 + _i] = String(_i);
  97176. for (var _i = 1; _i <= 24; _i++) Tf[_i + 111] = "F" + _i;
  97177. for (var _i = 65; _i <= 90; _i++)
  97178. Tf[_i] = String.fromCharCode(_i + 32), m_[_i] = String.fromCharCode(_i);
  97179. for (var eD in Tf) m_.hasOwnProperty(eD) || (m_[eD] = Tf[eD]);
  97180. function GSt(t) {
  97181. var e = QSt && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || HSt && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? m_ : Tf)[t.keyCode] || t.key || "Unidentified";
  97182. return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
  97183. }
  97184. function y_(t) {
  97185. let e;
  97186. return t.nodeType == 11 ? e = t.getSelection ? t : t.ownerDocument : e = t, e.getSelection();
  97187. }
  97188. function f4(t, e) {
  97189. return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
  97190. }
  97191. function jSt(t) {
  97192. let e = t.activeElement;
  97193. for (; e && e.shadowRoot; )
  97194. e = e.shadowRoot.activeElement;
  97195. return e;
  97196. }
  97197. function $w(t, e) {
  97198. if (!e.anchorNode)
  97199. return !1;
  97200. try {
  97201. return f4(t, e.anchorNode);
  97202. } catch {
  97203. return !1;
  97204. }
  97205. }
  97206. function Kg(t) {
  97207. return t.nodeType == 3 ? ep(t, 0, t.nodeValue.length).getClientRects() : t.nodeType == 1 ? t.getClientRects() : [];
  97208. }
  97209. function vb(t, e, n, r) {
  97210. return n ? pK(t, e, n, r, -1) || pK(t, e, n, r, 1) : !1;
  97211. }
  97212. function Jh(t) {
  97213. for (var e = 0; ; e++)
  97214. if (t = t.previousSibling, !t)
  97215. return e;
  97216. }
  97217. function $T(t) {
  97218. return t.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName);
  97219. }
  97220. function pK(t, e, n, r, i) {
  97221. for (; ; ) {
  97222. if (t == n && e == r)
  97223. return !0;
  97224. if (e == (i < 0 ? 0 : Uu(t))) {
  97225. if (t.nodeName == "DIV")
  97226. return !1;
  97227. let a = t.parentNode;
  97228. if (!a || a.nodeType != 1)
  97229. return !1;
  97230. e = Jh(t) + (i < 0 ? 0 : 1), t = a;
  97231. } else if (t.nodeType == 1) {
  97232. if (t = t.childNodes[e + (i < 0 ? -1 : 0)], t.nodeType == 1 && t.contentEditable == "false")
  97233. return !1;
  97234. e = i < 0 ? Uu(t) : 0;
  97235. } else
  97236. return !1;
  97237. }
  97238. }
  97239. function Uu(t) {
  97240. return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
  97241. }
  97242. function i$(t, e) {
  97243. let n = e ? t.left : t.right;
  97244. return { left: n, right: n, top: t.top, bottom: t.bottom };
  97245. }
  97246. function ZSt(t) {
  97247. let e = t.visualViewport;
  97248. return e ? {
  97249. left: 0,
  97250. right: e.width,
  97251. top: 0,
  97252. bottom: e.height
  97253. } : {
  97254. left: 0,
  97255. right: t.innerWidth,
  97256. top: 0,
  97257. bottom: t.innerHeight
  97258. };
  97259. }
  97260. function Wpe(t, e) {
  97261. let n = e.width / t.offsetWidth, r = e.height / t.offsetHeight;
  97262. return (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.width - t.offsetWidth) < 1) && (n = 1), (r > 0.995 && r < 1.005 || !isFinite(r) || Math.abs(e.height - t.offsetHeight) < 1) && (r = 1), { scaleX: n, scaleY: r };
  97263. }
  97264. function USt(t, e, n, r, i, a, o, s) {
  97265. let l = t.ownerDocument, u = l.defaultView || window;
  97266. for (let c = t, f = !1; c && !f; )
  97267. if (c.nodeType == 1) {
  97268. let d, h = c == l.body, p = 1, v = 1;
  97269. if (h)
  97270. d = ZSt(u);
  97271. else {
  97272. if (/^(fixed|sticky)$/.test(getComputedStyle(c).position) && (f = !0), c.scrollHeight <= c.clientHeight && c.scrollWidth <= c.clientWidth) {
  97273. c = c.assignedSlot || c.parentNode;
  97274. continue;
  97275. }
  97276. let y = c.getBoundingClientRect();
  97277. ({ scaleX: p, scaleY: v } = Wpe(c, y)), d = {
  97278. left: y.left,
  97279. right: y.left + c.clientWidth * p,
  97280. top: y.top,
  97281. bottom: y.top + c.clientHeight * v
  97282. };
  97283. }
  97284. let g = 0, m = 0;
  97285. if (i == "nearest")
  97286. e.top < d.top ? (m = -(d.top - e.top + o), n > 0 && e.bottom > d.bottom + m && (m = e.bottom - d.bottom + m + o)) : e.bottom > d.bottom && (m = e.bottom - d.bottom + o, n < 0 && e.top - m < d.top && (m = -(d.top + m - e.top + o)));
  97287. else {
  97288. let y = e.bottom - e.top, _ = d.bottom - d.top;
  97289. m = (i == "center" && y <= _ ? e.top + y / 2 - _ / 2 : i == "start" || i == "center" && n < 0 ? e.top - o : e.bottom - _ + o) - d.top;
  97290. }
  97291. if (r == "nearest" ? e.left < d.left ? (g = -(d.left - e.left + a), n > 0 && e.right > d.right + g && (g = e.right - d.right + g + a)) : e.right > d.right && (g = e.right - d.right + a, n < 0 && e.left < d.left + g && (g = -(d.left + g - e.left + a))) : g = (r == "center" ? e.left + (e.right - e.left) / 2 - (d.right - d.left) / 2 : r == "start" == s ? e.left - a : e.right - (d.right - d.left) + a) - d.left, g || m)
  97292. if (h)
  97293. u.scrollBy(g, m);
  97294. else {
  97295. let y = 0, _ = 0;
  97296. if (m) {
  97297. let O = c.scrollTop;
  97298. c.scrollTop += m / v, _ = (c.scrollTop - O) * v;
  97299. }
  97300. if (g) {
  97301. let O = c.scrollLeft;
  97302. c.scrollLeft += g / p, y = (c.scrollLeft - O) * p;
  97303. }
  97304. e = {
  97305. left: e.left - y,
  97306. top: e.top - _,
  97307. right: e.right - y,
  97308. bottom: e.bottom - _
  97309. }, y && Math.abs(y - g) < 1 && (r = "nearest"), _ && Math.abs(_ - m) < 1 && (i = "nearest");
  97310. }
  97311. if (h)
  97312. break;
  97313. c = c.assignedSlot || c.parentNode;
  97314. } else if (c.nodeType == 11)
  97315. c = c.host;
  97316. else
  97317. break;
  97318. }
  97319. function XSt(t) {
  97320. let e = t.ownerDocument;
  97321. for (let n = t.parentNode; n && n != e.body; )
  97322. if (n.nodeType == 1) {
  97323. if (n.scrollHeight > n.clientHeight || n.scrollWidth > n.clientWidth)
  97324. return n;
  97325. n = n.assignedSlot || n.parentNode;
  97326. } else if (n.nodeType == 11)
  97327. n = n.host;
  97328. else
  97329. break;
  97330. return null;
  97331. }
  97332. class YSt {
  97333. constructor() {
  97334. this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
  97335. }
  97336. eq(e) {
  97337. return this.anchorNode == e.anchorNode && this.anchorOffset == e.anchorOffset && this.focusNode == e.focusNode && this.focusOffset == e.focusOffset;
  97338. }
  97339. setRange(e) {
  97340. let { anchorNode: n, focusNode: r } = e;
  97341. this.set(n, Math.min(e.anchorOffset, n ? Uu(n) : 0), r, Math.min(e.focusOffset, r ? Uu(r) : 0));
  97342. }
  97343. set(e, n, r, i) {
  97344. this.anchorNode = e, this.anchorOffset = n, this.focusNode = r, this.focusOffset = i;
  97345. }
  97346. }
  97347. let vv = null;
  97348. function Qpe(t) {
  97349. if (t.setActive)
  97350. return t.setActive();
  97351. if (vv)
  97352. return t.focus(vv);
  97353. let e = [];
  97354. for (let n = t; n && (e.push(n, n.scrollTop, n.scrollLeft), n != n.ownerDocument); n = n.parentNode)
  97355. ;
  97356. if (t.focus(vv == null ? {
  97357. get preventScroll() {
  97358. return vv = { preventScroll: !0 }, !0;
  97359. }
  97360. } : void 0), !vv) {
  97361. vv = !1;
  97362. for (let n = 0; n < e.length; ) {
  97363. let r = e[n++], i = e[n++], a = e[n++];
  97364. r.scrollTop != i && (r.scrollTop = i), r.scrollLeft != a && (r.scrollLeft = a);
  97365. }
  97366. }
  97367. }
  97368. let vK;
  97369. function ep(t, e, n = e) {
  97370. let r = vK || (vK = document.createRange());
  97371. return r.setEnd(t, n), r.setStart(t, e), r;
  97372. }
  97373. function ag(t, e, n, r) {
  97374. let i = { key: e, code: e, keyCode: n, which: n, cancelable: !0 };
  97375. r && ({ altKey: i.altKey, ctrlKey: i.ctrlKey, shiftKey: i.shiftKey, metaKey: i.metaKey } = r);
  97376. let a = new KeyboardEvent("keydown", i);
  97377. a.synthetic = !0, t.dispatchEvent(a);
  97378. let o = new KeyboardEvent("keyup", i);
  97379. return o.synthetic = !0, t.dispatchEvent(o), a.defaultPrevented || o.defaultPrevented;
  97380. }
  97381. function qSt(t) {
  97382. for (; t; ) {
  97383. if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host))
  97384. return t;
  97385. t = t.assignedSlot || t.parentNode;
  97386. }
  97387. return null;
  97388. }
  97389. function Hpe(t) {
  97390. for (; t.attributes.length; )
  97391. t.removeAttributeNode(t.attributes[0]);
  97392. }
  97393. function KSt(t, e) {
  97394. let n = e.focusNode, r = e.focusOffset;
  97395. if (!n || e.anchorNode != n || e.anchorOffset != r)
  97396. return !1;
  97397. for (r = Math.min(r, Uu(n)); ; )
  97398. if (r) {
  97399. if (n.nodeType != 1)
  97400. return !1;
  97401. let i = n.childNodes[r - 1];
  97402. i.contentEditable == "false" ? r-- : (n = i, r = Uu(n));
  97403. } else {
  97404. if (n == t)
  97405. return !0;
  97406. r = Jh(n), n = n.parentNode;
  97407. }
  97408. }
  97409. function Gpe(t) {
  97410. return t.scrollTop > Math.max(1, t.scrollHeight - t.clientHeight - 4);
  97411. }
  97412. function jpe(t, e) {
  97413. for (let n = t, r = e; ; ) {
  97414. if (n.nodeType == 3 && r > 0)
  97415. return { node: n, offset: r };
  97416. if (n.nodeType == 1 && r > 0) {
  97417. if (n.contentEditable == "false")
  97418. return null;
  97419. n = n.childNodes[r - 1], r = Uu(n);
  97420. } else if (n.parentNode && !$T(n))
  97421. r = Jh(n), n = n.parentNode;
  97422. else
  97423. return null;
  97424. }
  97425. }
  97426. function Zpe(t, e) {
  97427. for (let n = t, r = e; ; ) {
  97428. if (n.nodeType == 3 && r < n.nodeValue.length)
  97429. return { node: n, offset: r };
  97430. if (n.nodeType == 1 && r < n.childNodes.length) {
  97431. if (n.contentEditable == "false")
  97432. return null;
  97433. n = n.childNodes[r], r = 0;
  97434. } else if (n.parentNode && !$T(n))
  97435. r = Jh(n) + 1, n = n.parentNode;
  97436. else
  97437. return null;
  97438. }
  97439. }
  97440. class zi {
  97441. constructor(e, n, r = !0) {
  97442. this.node = e, this.offset = n, this.precise = r;
  97443. }
  97444. static before(e, n) {
  97445. return new zi(e.parentNode, Jh(e), n);
  97446. }
  97447. static after(e, n) {
  97448. return new zi(e.parentNode, Jh(e) + 1, n);
  97449. }
  97450. }
  97451. const nB = [];
  97452. class Qn {
  97453. constructor() {
  97454. this.parent = null, this.dom = null, this.flags = 2;
  97455. }
  97456. get overrideDOMText() {
  97457. return null;
  97458. }
  97459. get posAtStart() {
  97460. return this.parent ? this.parent.posBefore(this) : 0;
  97461. }
  97462. get posAtEnd() {
  97463. return this.posAtStart + this.length;
  97464. }
  97465. posBefore(e) {
  97466. let n = this.posAtStart;
  97467. for (let r of this.children) {
  97468. if (r == e)
  97469. return n;
  97470. n += r.length + r.breakAfter;
  97471. }
  97472. throw new RangeError("Invalid child in posBefore");
  97473. }
  97474. posAfter(e) {
  97475. return this.posBefore(e) + e.length;
  97476. }
  97477. sync(e, n) {
  97478. if (this.flags & 2) {
  97479. let r = this.dom, i = null, a;
  97480. for (let o of this.children) {
  97481. if (o.flags & 7) {
  97482. if (!o.dom && (a = i ? i.nextSibling : r.firstChild)) {
  97483. let s = Qn.get(a);
  97484. (!s || !s.parent && s.canReuseDOM(o)) && o.reuseDOM(a);
  97485. }
  97486. o.sync(e, n), o.flags &= -8;
  97487. }
  97488. if (a = i ? i.nextSibling : r.firstChild, n && !n.written && n.node == r && a != o.dom && (n.written = !0), o.dom.parentNode == r)
  97489. for (; a && a != o.dom; )
  97490. a = gK(a);
  97491. else
  97492. r.insertBefore(o.dom, a);
  97493. i = o.dom;
  97494. }
  97495. for (a = i ? i.nextSibling : r.firstChild, a && n && n.node == r && (n.written = !0); a; )
  97496. a = gK(a);
  97497. } else if (this.flags & 1)
  97498. for (let r of this.children)
  97499. r.flags & 7 && (r.sync(e, n), r.flags &= -8);
  97500. }
  97501. reuseDOM(e) {
  97502. }
  97503. localPosFromDOM(e, n) {
  97504. let r;
  97505. if (e == this.dom)
  97506. r = this.dom.childNodes[n];
  97507. else {
  97508. let i = Uu(e) == 0 ? 0 : n == 0 ? -1 : 1;
  97509. for (; ; ) {
  97510. let a = e.parentNode;
  97511. if (a == this.dom)
  97512. break;
  97513. i == 0 && a.firstChild != a.lastChild && (e == a.firstChild ? i = -1 : i = 1), e = a;
  97514. }
  97515. i < 0 ? r = e : r = e.nextSibling;
  97516. }
  97517. if (r == this.dom.firstChild)
  97518. return 0;
  97519. for (; r && !Qn.get(r); )
  97520. r = r.nextSibling;
  97521. if (!r)
  97522. return this.length;
  97523. for (let i = 0, a = 0; ; i++) {
  97524. let o = this.children[i];
  97525. if (o.dom == r)
  97526. return a;
  97527. a += o.length + o.breakAfter;
  97528. }
  97529. }
  97530. domBoundsAround(e, n, r = 0) {
  97531. let i = -1, a = -1, o = -1, s = -1;
  97532. for (let l = 0, u = r, c = r; l < this.children.length; l++) {
  97533. let f = this.children[l], d = u + f.length;
  97534. if (u < e && d > n)
  97535. return f.domBoundsAround(e, n, u);
  97536. if (d >= e && i == -1 && (i = l, a = u), u > n && f.dom.parentNode == this.dom) {
  97537. o = l, s = c;
  97538. break;
  97539. }
  97540. c = d, u = d + f.breakAfter;
  97541. }
  97542. return {
  97543. from: a,
  97544. to: s < 0 ? r + this.length : s,
  97545. startDOM: (i ? this.children[i - 1].dom.nextSibling : null) || this.dom.firstChild,
  97546. endDOM: o < this.children.length && o >= 0 ? this.children[o].dom : null
  97547. };
  97548. }
  97549. markDirty(e = !1) {
  97550. this.flags |= 2, this.markParentsDirty(e);
  97551. }
  97552. markParentsDirty(e) {
  97553. for (let n = this.parent; n; n = n.parent) {
  97554. if (e && (n.flags |= 2), n.flags & 1)
  97555. return;
  97556. n.flags |= 1, e = !1;
  97557. }
  97558. }
  97559. setParent(e) {
  97560. this.parent != e && (this.parent = e, this.flags & 7 && this.markParentsDirty(!0));
  97561. }
  97562. setDOM(e) {
  97563. this.dom != e && (this.dom && (this.dom.cmView = null), this.dom = e, e.cmView = this);
  97564. }
  97565. get rootView() {
  97566. for (let e = this; ; ) {
  97567. let n = e.parent;
  97568. if (!n)
  97569. return e;
  97570. e = n;
  97571. }
  97572. }
  97573. replaceChildren(e, n, r = nB) {
  97574. this.markDirty();
  97575. for (let i = e; i < n; i++) {
  97576. let a = this.children[i];
  97577. a.parent == this && r.indexOf(a) < 0 && a.destroy();
  97578. }
  97579. this.children.splice(e, n - e, ...r);
  97580. for (let i = 0; i < r.length; i++)
  97581. r[i].setParent(this);
  97582. }
  97583. ignoreMutation(e) {
  97584. return !1;
  97585. }
  97586. ignoreEvent(e) {
  97587. return !1;
  97588. }
  97589. childCursor(e = this.length) {
  97590. return new Upe(this.children, e, this.children.length);
  97591. }
  97592. childPos(e, n = 1) {
  97593. return this.childCursor().findPos(e, n);
  97594. }
  97595. toString() {
  97596. let e = this.constructor.name.replace("View", "");
  97597. return e + (this.children.length ? "(" + this.children.join() + ")" : this.length ? "[" + (e == "Text" ? this.text : this.length) + "]" : "") + (this.breakAfter ? "#" : "");
  97598. }
  97599. static get(e) {
  97600. return e.cmView;
  97601. }
  97602. get isEditable() {
  97603. return !0;
  97604. }
  97605. get isWidget() {
  97606. return !1;
  97607. }
  97608. get isHidden() {
  97609. return !1;
  97610. }
  97611. merge(e, n, r, i, a, o) {
  97612. return !1;
  97613. }
  97614. become(e) {
  97615. return !1;
  97616. }
  97617. canReuseDOM(e) {
  97618. return e.constructor == this.constructor && !((this.flags | e.flags) & 8);
  97619. }
  97620. // When this is a zero-length view with a side, this should return a
  97621. // number <= 0 to indicate it is before its position, or a
  97622. // number > 0 when after its position.
  97623. getSide() {
  97624. return 0;
  97625. }
  97626. destroy() {
  97627. for (let e of this.children)
  97628. e.parent == this && e.destroy();
  97629. this.parent = null;
  97630. }
  97631. }
  97632. Qn.prototype.breakAfter = 0;
  97633. function gK(t) {
  97634. let e = t.nextSibling;
  97635. return t.parentNode.removeChild(t), e;
  97636. }
  97637. class Upe {
  97638. constructor(e, n, r) {
  97639. this.children = e, this.pos = n, this.i = r, this.off = 0;
  97640. }
  97641. findPos(e, n = 1) {
  97642. for (; ; ) {
  97643. if (e > this.pos || e == this.pos && (n > 0 || this.i == 0 || this.children[this.i - 1].breakAfter))
  97644. return this.off = e - this.pos, this;
  97645. let r = this.children[--this.i];
  97646. this.pos -= r.length + r.breakAfter;
  97647. }
  97648. }
  97649. }
  97650. function Xpe(t, e, n, r, i, a, o, s, l) {
  97651. let { children: u } = t, c = u.length ? u[e] : null, f = a.length ? a[a.length - 1] : null, d = f ? f.breakAfter : o;
  97652. if (!(e == r && c && !o && !d && a.length < 2 && c.merge(n, i, a.length ? f : null, n == 0, s, l))) {
  97653. if (r < u.length) {
  97654. let h = u[r];
  97655. h && (i < h.length || h.breakAfter && (f != null && f.breakAfter)) ? (e == r && (h = h.split(i), i = 0), !d && f && h.merge(0, i, f, !0, 0, l) ? a[a.length - 1] = h : ((i || h.children.length && !h.children[0].length) && h.merge(0, i, null, !1, 0, l), a.push(h))) : h != null && h.breakAfter && (f ? f.breakAfter = 1 : o = 1), r++;
  97656. }
  97657. for (c && (c.breakAfter = o, n > 0 && (!o && a.length && c.merge(n, c.length, a[0], !1, s, 0) ? c.breakAfter = a.shift().breakAfter : (n < c.length || c.children.length && c.children[c.children.length - 1].length == 0) && c.merge(n, c.length, null, !1, s, 0), e++)); e < r && a.length; )
  97658. if (u[r - 1].become(a[a.length - 1]))
  97659. r--, a.pop(), l = a.length ? 0 : s;
  97660. else if (u[e].become(a[0]))
  97661. e++, a.shift(), s = a.length ? 0 : l;
  97662. else
  97663. break;
  97664. !a.length && e && r < u.length && !u[e - 1].breakAfter && u[r].merge(0, 0, u[e - 1], !1, s, l) && e--, (e < r || a.length) && t.replaceChildren(e, r, a);
  97665. }
  97666. }
  97667. function Ype(t, e, n, r, i, a) {
  97668. let o = t.childCursor(), { i: s, off: l } = o.findPos(n, 1), { i: u, off: c } = o.findPos(e, -1), f = e - n;
  97669. for (let d of r)
  97670. f += d.length;
  97671. t.length += f, Xpe(t, u, c, s, l, r, 0, i, a);
  97672. }
  97673. let Aa = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, d4 = typeof document < "u" ? document : { documentElement: { style: {} } };
  97674. const h4 = /* @__PURE__ */ /Edge\/(\d+)/.exec(Aa.userAgent), qpe = /* @__PURE__ */ /MSIE \d/.test(Aa.userAgent), p4 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Aa.userAgent), a$ = !!(qpe || p4 || h4), mK = !a$ && /* @__PURE__ */ /gecko\/(\d+)/i.test(Aa.userAgent), tD = !a$ && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Aa.userAgent), yK = "webkitFontSmoothing" in d4.documentElement.style, Kpe = !a$ && /* @__PURE__ */ /Apple Computer/.test(Aa.vendor), bK = Kpe && (/* @__PURE__ */ /Mobile\/\w+/.test(Aa.userAgent) || Aa.maxTouchPoints > 2);
  97675. var lt = {
  97676. mac: bK || /* @__PURE__ */ /Mac/.test(Aa.platform),
  97677. windows: /* @__PURE__ */ /Win/.test(Aa.platform),
  97678. linux: /* @__PURE__ */ /Linux|X11/.test(Aa.platform),
  97679. ie: a$,
  97680. ie_version: qpe ? d4.documentMode || 6 : p4 ? +p4[1] : h4 ? +h4[1] : 0,
  97681. gecko: mK,
  97682. gecko_version: mK ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Aa.userAgent) || [0, 0])[1] : 0,
  97683. chrome: !!tD,
  97684. chrome_version: tD ? +tD[1] : 0,
  97685. ios: bK,
  97686. android: /* @__PURE__ */ /Android\b/.test(Aa.userAgent),
  97687. webkit: yK,
  97688. safari: Kpe,
  97689. webkit_version: yK ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(Aa.userAgent) || [0, 0])[1] : 0,
  97690. tabSize: d4.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
  97691. };
  97692. const JSt = 256;
  97693. class Us extends Qn {
  97694. constructor(e) {
  97695. super(), this.text = e;
  97696. }
  97697. get length() {
  97698. return this.text.length;
  97699. }
  97700. createDOM(e) {
  97701. this.setDOM(e || document.createTextNode(this.text));
  97702. }
  97703. sync(e, n) {
  97704. this.dom || this.createDOM(), this.dom.nodeValue != this.text && (n && n.node == this.dom && (n.written = !0), this.dom.nodeValue = this.text);
  97705. }
  97706. reuseDOM(e) {
  97707. e.nodeType == 3 && this.createDOM(e);
  97708. }
  97709. merge(e, n, r) {
  97710. return this.flags & 8 || r && (!(r instanceof Us) || this.length - (n - e) + r.length > JSt || r.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (r ? r.text : "") + this.text.slice(n), this.markDirty(), !0);
  97711. }
  97712. split(e) {
  97713. let n = new Us(this.text.slice(e));
  97714. return this.text = this.text.slice(0, e), this.markDirty(), n.flags |= this.flags & 8, n;
  97715. }
  97716. localPosFromDOM(e, n) {
  97717. return e == this.dom ? n : n ? this.text.length : 0;
  97718. }
  97719. domAtPos(e) {
  97720. return new zi(this.dom, e);
  97721. }
  97722. domBoundsAround(e, n, r) {
  97723. return { from: r, to: r + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling };
  97724. }
  97725. coordsAt(e, n) {
  97726. return ext(this.dom, e, n);
  97727. }
  97728. }
  97729. class Xu extends Qn {
  97730. constructor(e, n = [], r = 0) {
  97731. super(), this.mark = e, this.children = n, this.length = r;
  97732. for (let i of n)
  97733. i.setParent(this);
  97734. }
  97735. setAttrs(e) {
  97736. if (Hpe(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs)
  97737. for (let n in this.mark.attrs)
  97738. e.setAttribute(n, this.mark.attrs[n]);
  97739. return e;
  97740. }
  97741. canReuseDOM(e) {
  97742. return super.canReuseDOM(e) && !((this.flags | e.flags) & 8);
  97743. }
  97744. reuseDOM(e) {
  97745. e.nodeName == this.mark.tagName.toUpperCase() && (this.setDOM(e), this.flags |= 6);
  97746. }
  97747. sync(e, n) {
  97748. this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, n);
  97749. }
  97750. merge(e, n, r, i, a, o) {
  97751. return r && (!(r instanceof Xu && r.mark.eq(this.mark)) || e && a <= 0 || n < this.length && o <= 0) ? !1 : (Ype(this, e, n, r ? r.children.slice() : [], a - 1, o - 1), this.markDirty(), !0);
  97752. }
  97753. split(e) {
  97754. let n = [], r = 0, i = -1, a = 0;
  97755. for (let s of this.children) {
  97756. let l = r + s.length;
  97757. l > e && n.push(r < e ? s.split(e - r) : s), i < 0 && r >= e && (i = a), r = l, a++;
  97758. }
  97759. let o = this.length - e;
  97760. return this.length = e, i > -1 && (this.children.length = i, this.markDirty()), new Xu(this.mark, n, o);
  97761. }
  97762. domAtPos(e) {
  97763. return Jpe(this, e);
  97764. }
  97765. coordsAt(e, n) {
  97766. return tve(this, e, n);
  97767. }
  97768. }
  97769. function ext(t, e, n) {
  97770. let r = t.nodeValue.length;
  97771. e > r && (e = r);
  97772. let i = e, a = e, o = 0;
  97773. e == 0 && n < 0 || e == r && n >= 0 ? lt.chrome || lt.gecko || (e ? (i--, o = 1) : a < r && (a++, o = -1)) : n < 0 ? i-- : a < r && a++;
  97774. let s = ep(t, i, a).getClientRects();
  97775. if (!s.length)
  97776. return null;
  97777. let l = s[(o ? o < 0 : n >= 0) ? 0 : s.length - 1];
  97778. return lt.safari && !o && l.width == 0 && (l = Array.prototype.find.call(s, (u) => u.width) || l), o ? i$(l, o < 0) : l || null;
  97779. }
  97780. class Yc extends Qn {
  97781. static create(e, n, r) {
  97782. return new Yc(e, n, r);
  97783. }
  97784. constructor(e, n, r) {
  97785. super(), this.widget = e, this.length = n, this.side = r, this.prevWidget = null;
  97786. }
  97787. split(e) {
  97788. let n = Yc.create(this.widget, this.length - e, this.side);
  97789. return this.length -= e, n;
  97790. }
  97791. sync(e) {
  97792. (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
  97793. }
  97794. getSide() {
  97795. return this.side;
  97796. }
  97797. merge(e, n, r, i, a, o) {
  97798. return r && (!(r instanceof Yc) || !this.widget.compare(r.widget) || e > 0 && a <= 0 || n < this.length && o <= 0) ? !1 : (this.length = e + (r ? r.length : 0) + (this.length - n), !0);
  97799. }
  97800. become(e) {
  97801. return e instanceof Yc && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1;
  97802. }
  97803. ignoreMutation() {
  97804. return !0;
  97805. }
  97806. ignoreEvent(e) {
  97807. return this.widget.ignoreEvent(e);
  97808. }
  97809. get overrideDOMText() {
  97810. if (this.length == 0)
  97811. return xn.empty;
  97812. let e = this;
  97813. for (; e.parent; )
  97814. e = e.parent;
  97815. let { view: n } = e, r = n && n.state.doc, i = this.posAtStart;
  97816. return r ? r.slice(i, i + this.length) : xn.empty;
  97817. }
  97818. domAtPos(e) {
  97819. return (this.length ? e == 0 : this.side > 0) ? zi.before(this.dom) : zi.after(this.dom, e == this.length);
  97820. }
  97821. domBoundsAround() {
  97822. return null;
  97823. }
  97824. coordsAt(e, n) {
  97825. let r = this.widget.coordsAt(this.dom, e, n);
  97826. if (r)
  97827. return r;
  97828. let i = this.dom.getClientRects(), a = null;
  97829. if (!i.length)
  97830. return null;
  97831. let o = this.side ? this.side < 0 : e > 0;
  97832. for (let s = o ? i.length - 1 : 0; a = i[s], !(e > 0 ? s == 0 : s == i.length - 1 || a.top < a.bottom); s += o ? -1 : 1)
  97833. ;
  97834. return i$(a, !o);
  97835. }
  97836. get isEditable() {
  97837. return !1;
  97838. }
  97839. get isWidget() {
  97840. return !0;
  97841. }
  97842. get isHidden() {
  97843. return this.widget.isHidden;
  97844. }
  97845. destroy() {
  97846. super.destroy(), this.dom && this.widget.destroy(this.dom);
  97847. }
  97848. }
  97849. class Jg extends Qn {
  97850. constructor(e) {
  97851. super(), this.side = e;
  97852. }
  97853. get length() {
  97854. return 0;
  97855. }
  97856. merge() {
  97857. return !1;
  97858. }
  97859. become(e) {
  97860. return e instanceof Jg && e.side == this.side;
  97861. }
  97862. split() {
  97863. return new Jg(this.side);
  97864. }
  97865. sync() {
  97866. if (!this.dom) {
  97867. let e = document.createElement("img");
  97868. e.className = "cm-widgetBuffer", e.setAttribute("aria-hidden", "true"), this.setDOM(e);
  97869. }
  97870. }
  97871. getSide() {
  97872. return this.side;
  97873. }
  97874. domAtPos(e) {
  97875. return this.side > 0 ? zi.before(this.dom) : zi.after(this.dom);
  97876. }
  97877. localPosFromDOM() {
  97878. return 0;
  97879. }
  97880. domBoundsAround() {
  97881. return null;
  97882. }
  97883. coordsAt(e) {
  97884. return this.dom.getBoundingClientRect();
  97885. }
  97886. get overrideDOMText() {
  97887. return xn.empty;
  97888. }
  97889. get isHidden() {
  97890. return !0;
  97891. }
  97892. }
  97893. Us.prototype.children = Yc.prototype.children = Jg.prototype.children = nB;
  97894. function Jpe(t, e) {
  97895. let n = t.dom, { children: r } = t, i = 0;
  97896. for (let a = 0; i < r.length; i++) {
  97897. let o = r[i], s = a + o.length;
  97898. if (!(s == a && o.getSide() <= 0)) {
  97899. if (e > a && e < s && o.dom.parentNode == n)
  97900. return o.domAtPos(e - a);
  97901. if (e <= a)
  97902. break;
  97903. a = s;
  97904. }
  97905. }
  97906. for (let a = i; a > 0; a--) {
  97907. let o = r[a - 1];
  97908. if (o.dom.parentNode == n)
  97909. return o.domAtPos(o.length);
  97910. }
  97911. for (let a = i; a < r.length; a++) {
  97912. let o = r[a];
  97913. if (o.dom.parentNode == n)
  97914. return o.domAtPos(0);
  97915. }
  97916. return new zi(n, 0);
  97917. }
  97918. function eve(t, e, n) {
  97919. let r, { children: i } = t;
  97920. n > 0 && e instanceof Xu && i.length && (r = i[i.length - 1]) instanceof Xu && r.mark.eq(e.mark) ? eve(r, e.children[0], n - 1) : (i.push(e), e.setParent(t)), t.length += e.length;
  97921. }
  97922. function tve(t, e, n) {
  97923. let r = null, i = -1, a = null, o = -1;
  97924. function s(u, c) {
  97925. for (let f = 0, d = 0; f < u.children.length && d <= c; f++) {
  97926. let h = u.children[f], p = d + h.length;
  97927. p >= c && (h.children.length ? s(h, c - d) : (!a || a.isHidden && n > 0) && (p > c || d == p && h.getSide() > 0) ? (a = h, o = c - d) : (d < c || d == p && h.getSide() < 0 && !h.isHidden) && (r = h, i = c - d)), d = p;
  97928. }
  97929. }
  97930. s(t, e);
  97931. let l = (n < 0 ? r : a) || r || a;
  97932. return l ? l.coordsAt(Math.max(0, l == r ? i : o), n) : txt(t);
  97933. }
  97934. function txt(t) {
  97935. let e = t.dom.lastChild;
  97936. if (!e)
  97937. return t.dom.getBoundingClientRect();
  97938. let n = Kg(e);
  97939. return n[n.length - 1] || null;
  97940. }
  97941. function v4(t, e) {
  97942. for (let n in t)
  97943. n == "class" && e.class ? e.class += " " + t.class : n == "style" && e.style ? e.style += ";" + t.style : e[n] = t[n];
  97944. return e;
  97945. }
  97946. const _K = /* @__PURE__ */ Object.create(null);
  97947. function AT(t, e, n) {
  97948. if (t == e)
  97949. return !0;
  97950. t || (t = _K), e || (e = _K);
  97951. let r = Object.keys(t), i = Object.keys(e);
  97952. if (r.length - (n && r.indexOf(n) > -1 ? 1 : 0) != i.length - (n && i.indexOf(n) > -1 ? 1 : 0))
  97953. return !1;
  97954. for (let a of r)
  97955. if (a != n && (i.indexOf(a) == -1 || t[a] !== e[a]))
  97956. return !1;
  97957. return !0;
  97958. }
  97959. function g4(t, e, n) {
  97960. let r = !1;
  97961. if (e)
  97962. for (let i in e)
  97963. n && i in n || (r = !0, i == "style" ? t.style.cssText = "" : t.removeAttribute(i));
  97964. if (n)
  97965. for (let i in n)
  97966. e && e[i] == n[i] || (r = !0, i == "style" ? t.style.cssText = n[i] : t.setAttribute(i, n[i]));
  97967. return r;
  97968. }
  97969. function nxt(t) {
  97970. let e = /* @__PURE__ */ Object.create(null);
  97971. for (let n = 0; n < t.attributes.length; n++) {
  97972. let r = t.attributes[n];
  97973. e[r.name] = r.value;
  97974. }
  97975. return e;
  97976. }
  97977. class Rr extends Qn {
  97978. constructor() {
  97979. super(...arguments), this.children = [], this.length = 0, this.prevAttrs = void 0, this.attrs = null, this.breakAfter = 0;
  97980. }
  97981. // Consumes source
  97982. merge(e, n, r, i, a, o) {
  97983. if (r) {
  97984. if (!(r instanceof Rr))
  97985. return !1;
  97986. this.dom || r.transferDOM(this);
  97987. }
  97988. return i && this.setDeco(r ? r.attrs : null), Ype(this, e, n, r ? r.children.slice() : [], a, o), !0;
  97989. }
  97990. split(e) {
  97991. let n = new Rr();
  97992. if (n.breakAfter = this.breakAfter, this.length == 0)
  97993. return n;
  97994. let { i: r, off: i } = this.childPos(e);
  97995. i && (n.append(this.children[r].split(i), 0), this.children[r].merge(i, this.children[r].length, null, !1, 0, 0), r++);
  97996. for (let a = r; a < this.children.length; a++)
  97997. n.append(this.children[a], 0);
  97998. for (; r > 0 && this.children[r - 1].length == 0; )
  97999. this.children[--r].destroy();
  98000. return this.children.length = r, this.markDirty(), this.length = e, n;
  98001. }
  98002. transferDOM(e) {
  98003. this.dom && (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null);
  98004. }
  98005. setDeco(e) {
  98006. AT(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
  98007. }
  98008. append(e, n) {
  98009. eve(this, e, n);
  98010. }
  98011. // Only called when building a line view in ContentBuilder
  98012. addLineDeco(e) {
  98013. let n = e.spec.attributes, r = e.spec.class;
  98014. n && (this.attrs = v4(n, this.attrs || {})), r && (this.attrs = v4({ class: r }, this.attrs || {}));
  98015. }
  98016. domAtPos(e) {
  98017. return Jpe(this, e);
  98018. }
  98019. reuseDOM(e) {
  98020. e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6);
  98021. }
  98022. sync(e, n) {
  98023. var r;
  98024. this.dom ? this.flags & 4 && (Hpe(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (g4(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, n);
  98025. let i = this.dom.lastChild;
  98026. for (; i && Qn.get(i) instanceof Xu; )
  98027. i = i.lastChild;
  98028. if (!i || !this.length || i.nodeName != "BR" && ((r = Qn.get(i)) === null || r === void 0 ? void 0 : r.isEditable) == !1 && (!lt.ios || !this.children.some((a) => a instanceof Us))) {
  98029. let a = document.createElement("BR");
  98030. a.cmIgnore = !0, this.dom.appendChild(a);
  98031. }
  98032. }
  98033. measureTextSize() {
  98034. if (this.children.length == 0 || this.length > 20)
  98035. return null;
  98036. let e = 0, n;
  98037. for (let r of this.children) {
  98038. if (!(r instanceof Us) || /[^ -~]/.test(r.text))
  98039. return null;
  98040. let i = Kg(r.dom);
  98041. if (i.length != 1)
  98042. return null;
  98043. e += i[0].width, n = i[0].height;
  98044. }
  98045. return e ? {
  98046. lineHeight: this.dom.getBoundingClientRect().height,
  98047. charWidth: e / this.length,
  98048. textHeight: n
  98049. } : null;
  98050. }
  98051. coordsAt(e, n) {
  98052. let r = tve(this, e, n);
  98053. if (!this.children.length && r && this.parent) {
  98054. let { heightOracle: i } = this.parent.view.viewState, a = r.bottom - r.top;
  98055. if (Math.abs(a - i.lineHeight) < 2 && i.textHeight < a) {
  98056. let o = (a - i.textHeight) / 2;
  98057. return { top: r.top + o, bottom: r.bottom - o, left: r.left, right: r.left };
  98058. }
  98059. }
  98060. return r;
  98061. }
  98062. become(e) {
  98063. return e instanceof Rr && this.children.length == 0 && e.children.length == 0 && AT(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
  98064. }
  98065. covers() {
  98066. return !0;
  98067. }
  98068. static find(e, n) {
  98069. for (let r = 0, i = 0; r < e.children.length; r++) {
  98070. let a = e.children[r], o = i + a.length;
  98071. if (o >= n) {
  98072. if (a instanceof Rr)
  98073. return a;
  98074. if (o > n)
  98075. break;
  98076. }
  98077. i = o + a.breakAfter;
  98078. }
  98079. return null;
  98080. }
  98081. }
  98082. class Ru extends Qn {
  98083. constructor(e, n, r) {
  98084. super(), this.widget = e, this.length = n, this.deco = r, this.breakAfter = 0, this.prevWidget = null;
  98085. }
  98086. merge(e, n, r, i, a, o) {
  98087. return r && (!(r instanceof Ru) || !this.widget.compare(r.widget) || e > 0 && a <= 0 || n < this.length && o <= 0) ? !1 : (this.length = e + (r ? r.length : 0) + (this.length - n), !0);
  98088. }
  98089. domAtPos(e) {
  98090. return e == 0 ? zi.before(this.dom) : zi.after(this.dom, e == this.length);
  98091. }
  98092. split(e) {
  98093. let n = this.length - e;
  98094. this.length = e;
  98095. let r = new Ru(this.widget, n, this.deco);
  98096. return r.breakAfter = this.breakAfter, r;
  98097. }
  98098. get children() {
  98099. return nB;
  98100. }
  98101. sync(e) {
  98102. (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
  98103. }
  98104. get overrideDOMText() {
  98105. return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : xn.empty;
  98106. }
  98107. domBoundsAround() {
  98108. return null;
  98109. }
  98110. become(e) {
  98111. return e instanceof Ru && e.widget.constructor == this.widget.constructor ? (e.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, this.deco = e.deco, this.breakAfter = e.breakAfter, !0) : !1;
  98112. }
  98113. ignoreMutation() {
  98114. return !0;
  98115. }
  98116. ignoreEvent(e) {
  98117. return this.widget.ignoreEvent(e);
  98118. }
  98119. get isEditable() {
  98120. return !1;
  98121. }
  98122. get isWidget() {
  98123. return !0;
  98124. }
  98125. coordsAt(e, n) {
  98126. return this.widget.coordsAt(this.dom, e, n);
  98127. }
  98128. destroy() {
  98129. super.destroy(), this.dom && this.widget.destroy(this.dom);
  98130. }
  98131. covers(e) {
  98132. let { startSide: n, endSide: r } = this.deco;
  98133. return n == r ? !1 : e < 0 ? n < 0 : r > 0;
  98134. }
  98135. }
  98136. class Jl {
  98137. /**
  98138. Compare this instance to another instance of the same type.
  98139. (TypeScript can't express this, but only instances of the same
  98140. specific class will be passed to this method.) This is used to
  98141. avoid redrawing widgets when they are replaced by a new
  98142. decoration of the same type. The default implementation just
  98143. returns `false`, which will cause new instances of the widget to
  98144. always be redrawn.
  98145. */
  98146. eq(e) {
  98147. return !1;
  98148. }
  98149. /**
  98150. Update a DOM element created by a widget of the same type (but
  98151. different, non-`eq` content) to reflect this widget. May return
  98152. true to indicate that it could update, false to indicate it
  98153. couldn't (in which case the widget will be redrawn). The default
  98154. implementation just returns false.
  98155. */
  98156. updateDOM(e, n) {
  98157. return !1;
  98158. }
  98159. /**
  98160. @internal
  98161. */
  98162. compare(e) {
  98163. return this == e || this.constructor == e.constructor && this.eq(e);
  98164. }
  98165. /**
  98166. The estimated height this widget will have, to be used when
  98167. estimating the height of content that hasn't been drawn. May
  98168. return -1 to indicate you don't know. The default implementation
  98169. returns -1.
  98170. */
  98171. get estimatedHeight() {
  98172. return -1;
  98173. }
  98174. /**
  98175. For inline widgets that are displayed inline (as opposed to
  98176. `inline-block`) and introduce line breaks (through `<br>` tags
  98177. or textual newlines), this must indicate the amount of line
  98178. breaks they introduce. Defaults to 0.
  98179. */
  98180. get lineBreaks() {
  98181. return 0;
  98182. }
  98183. /**
  98184. Can be used to configure which kinds of events inside the widget
  98185. should be ignored by the editor. The default is to ignore all
  98186. events.
  98187. */
  98188. ignoreEvent(e) {
  98189. return !0;
  98190. }
  98191. /**
  98192. Override the way screen coordinates for positions at/in the
  98193. widget are found. `pos` will be the offset into the widget, and
  98194. `side` the side of the position that is being queried—less than
  98195. zero for before, greater than zero for after, and zero for
  98196. directly at that position.
  98197. */
  98198. coordsAt(e, n, r) {
  98199. return null;
  98200. }
  98201. /**
  98202. @internal
  98203. */
  98204. get isHidden() {
  98205. return !1;
  98206. }
  98207. /**
  98208. @internal
  98209. */
  98210. get editable() {
  98211. return !1;
  98212. }
  98213. /**
  98214. This is called when the an instance of the widget is removed
  98215. from the editor view.
  98216. */
  98217. destroy(e) {
  98218. }
  98219. }
  98220. var la = /* @__PURE__ */ function(t) {
  98221. return t[t.Text = 0] = "Text", t[t.WidgetBefore = 1] = "WidgetBefore", t[t.WidgetAfter = 2] = "WidgetAfter", t[t.WidgetRange = 3] = "WidgetRange", t;
  98222. }(la || (la = {}));
  98223. class pt extends Kh {
  98224. constructor(e, n, r, i) {
  98225. super(), this.startSide = e, this.endSide = n, this.widget = r, this.spec = i;
  98226. }
  98227. /**
  98228. @internal
  98229. */
  98230. get heightRelevant() {
  98231. return !1;
  98232. }
  98233. /**
  98234. Create a mark decoration, which influences the styling of the
  98235. content in its range. Nested mark decorations will cause nested
  98236. DOM elements to be created. Nesting order is determined by
  98237. precedence of the [facet](https://codemirror.net/6/docs/ref/#view.EditorView^decorations), with
  98238. the higher-precedence decorations creating the inner DOM nodes.
  98239. Such elements are split on line boundaries and on the boundaries
  98240. of lower-precedence decorations.
  98241. */
  98242. static mark(e) {
  98243. return new A1(e);
  98244. }
  98245. /**
  98246. Create a widget decoration, which displays a DOM element at the
  98247. given position.
  98248. */
  98249. static widget(e) {
  98250. let n = Math.max(-1e4, Math.min(1e4, e.side || 0)), r = !!e.block;
  98251. return n += r && !e.inlineOrder ? n > 0 ? 3e8 : -4e8 : n > 0 ? 1e8 : -1e8, new Pf(e, n, n, r, e.widget || null, !1);
  98252. }
  98253. /**
  98254. Create a replace decoration which replaces the given range with
  98255. a widget, or simply hides it.
  98256. */
  98257. static replace(e) {
  98258. let n = !!e.block, r, i;
  98259. if (e.isBlockGap)
  98260. r = -5e8, i = 4e8;
  98261. else {
  98262. let { start: a, end: o } = nve(e, n);
  98263. r = (a ? n ? -3e8 : -1 : 5e8) - 1, i = (o ? n ? 2e8 : 1 : -6e8) + 1;
  98264. }
  98265. return new Pf(e, r, i, n, e.widget || null, !0);
  98266. }
  98267. /**
  98268. Create a line decoration, which can add DOM attributes to the
  98269. line starting at the given position.
  98270. */
  98271. static line(e) {
  98272. return new E1(e);
  98273. }
  98274. /**
  98275. Build a [`DecorationSet`](https://codemirror.net/6/docs/ref/#view.DecorationSet) from the given
  98276. decorated range or ranges. If the ranges aren't already sorted,
  98277. pass `true` for `sort` to make the library sort them for you.
  98278. */
  98279. static set(e, n = !1) {
  98280. return Sn.of(e, n);
  98281. }
  98282. /**
  98283. @internal
  98284. */
  98285. hasHeight() {
  98286. return this.widget ? this.widget.estimatedHeight > -1 : !1;
  98287. }
  98288. }
  98289. pt.none = Sn.empty;
  98290. class A1 extends pt {
  98291. constructor(e) {
  98292. let { start: n, end: r } = nve(e);
  98293. super(n ? -1 : 5e8, r ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
  98294. }
  98295. eq(e) {
  98296. var n, r;
  98297. return this == e || e instanceof A1 && this.tagName == e.tagName && (this.class || ((n = this.attrs) === null || n === void 0 ? void 0 : n.class)) == (e.class || ((r = e.attrs) === null || r === void 0 ? void 0 : r.class)) && AT(this.attrs, e.attrs, "class");
  98298. }
  98299. range(e, n = e) {
  98300. if (e >= n)
  98301. throw new RangeError("Mark decorations may not be empty");
  98302. return super.range(e, n);
  98303. }
  98304. }
  98305. A1.prototype.point = !1;
  98306. class E1 extends pt {
  98307. constructor(e) {
  98308. super(-2e8, -2e8, null, e);
  98309. }
  98310. eq(e) {
  98311. return e instanceof E1 && this.spec.class == e.spec.class && AT(this.spec.attributes, e.spec.attributes);
  98312. }
  98313. range(e, n = e) {
  98314. if (n != e)
  98315. throw new RangeError("Line decoration ranges must be zero-length");
  98316. return super.range(e, n);
  98317. }
  98318. }
  98319. E1.prototype.mapMode = Oi.TrackBefore;
  98320. E1.prototype.point = !0;
  98321. class Pf extends pt {
  98322. constructor(e, n, r, i, a, o) {
  98323. super(n, r, a, e), this.block = i, this.isReplace = o, this.mapMode = i ? n <= 0 ? Oi.TrackBefore : Oi.TrackAfter : Oi.TrackDel;
  98324. }
  98325. // Only relevant when this.block == true
  98326. get type() {
  98327. return this.startSide != this.endSide ? la.WidgetRange : this.startSide <= 0 ? la.WidgetBefore : la.WidgetAfter;
  98328. }
  98329. get heightRelevant() {
  98330. return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
  98331. }
  98332. eq(e) {
  98333. return e instanceof Pf && rxt(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide;
  98334. }
  98335. range(e, n = e) {
  98336. if (this.isReplace && (e > n || e == n && this.startSide > 0 && this.endSide <= 0))
  98337. throw new RangeError("Invalid range for replacement decoration");
  98338. if (!this.isReplace && n != e)
  98339. throw new RangeError("Widget decorations can only have zero-length ranges");
  98340. return super.range(e, n);
  98341. }
  98342. }
  98343. Pf.prototype.point = !0;
  98344. function nve(t, e = !1) {
  98345. let { inclusiveStart: n, inclusiveEnd: r } = t;
  98346. return n == null && (n = t.inclusive), r == null && (r = t.inclusive), { start: n ?? e, end: r ?? e };
  98347. }
  98348. function rxt(t, e) {
  98349. return t == e || !!(t && e && t.compare(e));
  98350. }
  98351. function m4(t, e, n, r = 0) {
  98352. let i = n.length - 1;
  98353. i >= 0 && n[i] + r >= t ? n[i] = Math.max(n[i], e) : n.push(t, e);
  98354. }
  98355. class gb {
  98356. constructor(e, n, r, i) {
  98357. this.doc = e, this.pos = n, this.end = r, this.disallowBlockEffectsFor = i, this.content = [], this.curLine = null, this.breakAtStart = 0, this.pendingBuffer = 0, this.bufferMarks = [], this.atCursorPos = !0, this.openStart = -1, this.openEnd = -1, this.text = "", this.textOff = 0, this.cursor = e.iter(), this.skip = n;
  98358. }
  98359. posCovered() {
  98360. if (this.content.length == 0)
  98361. return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos;
  98362. let e = this.content[this.content.length - 1];
  98363. return !(e.breakAfter || e instanceof Ru && e.deco.endSide < 0);
  98364. }
  98365. getLine() {
  98366. return this.curLine || (this.content.push(this.curLine = new Rr()), this.atCursorPos = !0), this.curLine;
  98367. }
  98368. flushBuffer(e = this.bufferMarks) {
  98369. this.pendingBuffer && (this.curLine.append(lx(new Jg(-1), e), e.length), this.pendingBuffer = 0);
  98370. }
  98371. addBlockWidget(e) {
  98372. this.flushBuffer(), this.curLine = null, this.content.push(e);
  98373. }
  98374. finish(e) {
  98375. this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof Ru) && this.getLine();
  98376. }
  98377. buildText(e, n, r) {
  98378. for (; e > 0; ) {
  98379. if (this.textOff == this.text.length) {
  98380. let { value: a, lineBreak: o, done: s } = this.cursor.next(this.skip);
  98381. if (this.skip = 0, s)
  98382. throw new Error("Ran out of text content when drawing inline views");
  98383. if (o) {
  98384. this.posCovered() || this.getLine(), this.content.length ? this.content[this.content.length - 1].breakAfter = 1 : this.breakAtStart = 1, this.flushBuffer(), this.curLine = null, this.atCursorPos = !0, e--;
  98385. continue;
  98386. } else
  98387. this.text = a, this.textOff = 0;
  98388. }
  98389. let i = Math.min(
  98390. this.text.length - this.textOff,
  98391. e,
  98392. 512
  98393. /* T.Chunk */
  98394. );
  98395. this.flushBuffer(n.slice(n.length - r)), this.getLine().append(lx(new Us(this.text.slice(this.textOff, this.textOff + i)), n), r), this.atCursorPos = !0, this.textOff += i, e -= i, r = 0;
  98396. }
  98397. }
  98398. span(e, n, r, i) {
  98399. this.buildText(n - e, r, i), this.pos = n, this.openStart < 0 && (this.openStart = i);
  98400. }
  98401. point(e, n, r, i, a, o) {
  98402. if (this.disallowBlockEffectsFor[o] && r instanceof Pf) {
  98403. if (r.block)
  98404. throw new RangeError("Block decorations may not be specified via plugins");
  98405. if (n > this.doc.lineAt(this.pos).to)
  98406. throw new RangeError("Decorations that replace line breaks may not be specified via plugins");
  98407. }
  98408. let s = n - e;
  98409. if (r instanceof Pf)
  98410. if (r.block)
  98411. r.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Ru(r.widget || em.block, s, r));
  98412. else {
  98413. let l = Yc.create(r.widget || em.inline, s, s ? 0 : r.startSide), u = this.atCursorPos && !l.isEditable && a <= i.length && (e < n || r.startSide > 0), c = !l.isEditable && (e < n || a > i.length || r.startSide <= 0), f = this.getLine();
  98414. this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(i), u && (f.append(lx(new Jg(1), i), a), a = i.length + Math.max(0, a - i.length)), f.append(lx(l, i), a), this.atCursorPos = c, this.pendingBuffer = c ? e < n || a > i.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = i.slice());
  98415. }
  98416. else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(r);
  98417. s && (this.textOff + s <= this.text.length ? this.textOff += s : (this.skip += s - (this.text.length - this.textOff), this.text = "", this.textOff = 0), this.pos = n), this.openStart < 0 && (this.openStart = a);
  98418. }
  98419. static build(e, n, r, i, a) {
  98420. let o = new gb(e, n, r, a);
  98421. return o.openEnd = Sn.spans(i, n, r, o), o.openStart < 0 && (o.openStart = o.openEnd), o.finish(o.openEnd), o;
  98422. }
  98423. }
  98424. function lx(t, e) {
  98425. for (let n of e)
  98426. t = new Xu(n, [t], t.length);
  98427. return t;
  98428. }
  98429. class em extends Jl {
  98430. constructor(e) {
  98431. super(), this.tag = e;
  98432. }
  98433. eq(e) {
  98434. return e.tag == this.tag;
  98435. }
  98436. toDOM() {
  98437. return document.createElement(this.tag);
  98438. }
  98439. updateDOM(e) {
  98440. return e.nodeName.toLowerCase() == this.tag;
  98441. }
  98442. get isHidden() {
  98443. return !0;
  98444. }
  98445. }
  98446. em.inline = /* @__PURE__ */ new em("span");
  98447. em.block = /* @__PURE__ */ new em("div");
  98448. var ir = /* @__PURE__ */ function(t) {
  98449. return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t;
  98450. }(ir || (ir = {}));
  98451. const tp = ir.LTR, rB = ir.RTL;
  98452. function rve(t) {
  98453. let e = [];
  98454. for (let n = 0; n < t.length; n++)
  98455. e.push(1 << +t[n]);
  98456. return e;
  98457. }
  98458. const ixt = /* @__PURE__ */ rve("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), axt = /* @__PURE__ */ rve("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), y4 = /* @__PURE__ */ Object.create(null), dl = [];
  98459. for (let t of ["()", "[]", "{}"]) {
  98460. let e = /* @__PURE__ */ t.charCodeAt(0), n = /* @__PURE__ */ t.charCodeAt(1);
  98461. y4[e] = n, y4[n] = -e;
  98462. }
  98463. function ive(t) {
  98464. return t <= 247 ? ixt[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? axt[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1;
  98465. }
  98466. const oxt = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;
  98467. class qc {
  98468. /**
  98469. The direction of this span.
  98470. */
  98471. get dir() {
  98472. return this.level % 2 ? rB : tp;
  98473. }
  98474. /**
  98475. @internal
  98476. */
  98477. constructor(e, n, r) {
  98478. this.from = e, this.to = n, this.level = r;
  98479. }
  98480. /**
  98481. @internal
  98482. */
  98483. side(e, n) {
  98484. return this.dir == n == e ? this.to : this.from;
  98485. }
  98486. /**
  98487. @internal
  98488. */
  98489. forward(e, n) {
  98490. return e == (this.dir == n);
  98491. }
  98492. /**
  98493. @internal
  98494. */
  98495. static find(e, n, r, i) {
  98496. let a = -1;
  98497. for (let o = 0; o < e.length; o++) {
  98498. let s = e[o];
  98499. if (s.from <= n && s.to >= n) {
  98500. if (s.level == r)
  98501. return o;
  98502. (a < 0 || (i != 0 ? i < 0 ? s.from < n : s.to > n : e[a].level > s.level)) && (a = o);
  98503. }
  98504. }
  98505. if (a < 0)
  98506. throw new RangeError("Index out of range");
  98507. return a;
  98508. }
  98509. }
  98510. function ave(t, e) {
  98511. if (t.length != e.length)
  98512. return !1;
  98513. for (let n = 0; n < t.length; n++) {
  98514. let r = t[n], i = e[n];
  98515. if (r.from != i.from || r.to != i.to || r.direction != i.direction || !ave(r.inner, i.inner))
  98516. return !1;
  98517. }
  98518. return !0;
  98519. }
  98520. const Wn = [];
  98521. function sxt(t, e, n, r, i) {
  98522. for (let a = 0; a <= r.length; a++) {
  98523. let o = a ? r[a - 1].to : e, s = a < r.length ? r[a].from : n, l = a ? 256 : i;
  98524. for (let u = o, c = l, f = l; u < s; u++) {
  98525. let d = ive(t.charCodeAt(u));
  98526. d == 512 ? d = c : d == 8 && f == 4 && (d = 16), Wn[u] = d == 4 ? 2 : d, d & 7 && (f = d), c = d;
  98527. }
  98528. for (let u = o, c = l, f = l; u < s; u++) {
  98529. let d = Wn[u];
  98530. if (d == 128)
  98531. u < s - 1 && c == Wn[u + 1] && c & 24 ? d = Wn[u] = c : Wn[u] = 256;
  98532. else if (d == 64) {
  98533. let h = u + 1;
  98534. for (; h < s && Wn[h] == 64; )
  98535. h++;
  98536. let p = u && c == 8 || h < n && Wn[h] == 8 ? f == 1 ? 1 : 8 : 256;
  98537. for (let v = u; v < h; v++)
  98538. Wn[v] = p;
  98539. u = h - 1;
  98540. } else d == 8 && f == 1 && (Wn[u] = 1);
  98541. c = d, d & 7 && (f = d);
  98542. }
  98543. }
  98544. }
  98545. function lxt(t, e, n, r, i) {
  98546. let a = i == 1 ? 2 : 1;
  98547. for (let o = 0, s = 0, l = 0; o <= r.length; o++) {
  98548. let u = o ? r[o - 1].to : e, c = o < r.length ? r[o].from : n;
  98549. for (let f = u, d, h, p; f < c; f++)
  98550. if (h = y4[d = t.charCodeAt(f)])
  98551. if (h < 0) {
  98552. for (let v = s - 3; v >= 0; v -= 3)
  98553. if (dl[v + 1] == -h) {
  98554. let g = dl[v + 2], m = g & 2 ? i : g & 4 ? g & 1 ? a : i : 0;
  98555. m && (Wn[f] = Wn[dl[v]] = m), s = v;
  98556. break;
  98557. }
  98558. } else {
  98559. if (dl.length == 189)
  98560. break;
  98561. dl[s++] = f, dl[s++] = d, dl[s++] = l;
  98562. }
  98563. else if ((p = Wn[f]) == 2 || p == 1) {
  98564. let v = p == i;
  98565. l = v ? 0 : 1;
  98566. for (let g = s - 3; g >= 0; g -= 3) {
  98567. let m = dl[g + 2];
  98568. if (m & 2)
  98569. break;
  98570. if (v)
  98571. dl[g + 2] |= 2;
  98572. else {
  98573. if (m & 4)
  98574. break;
  98575. dl[g + 2] |= 4;
  98576. }
  98577. }
  98578. }
  98579. }
  98580. }
  98581. function uxt(t, e, n, r) {
  98582. for (let i = 0, a = r; i <= n.length; i++) {
  98583. let o = i ? n[i - 1].to : t, s = i < n.length ? n[i].from : e;
  98584. for (let l = o; l < s; ) {
  98585. let u = Wn[l];
  98586. if (u == 256) {
  98587. let c = l + 1;
  98588. for (; ; )
  98589. if (c == s) {
  98590. if (i == n.length)
  98591. break;
  98592. c = n[i++].to, s = i < n.length ? n[i].from : e;
  98593. } else if (Wn[c] == 256)
  98594. c++;
  98595. else
  98596. break;
  98597. let f = a == 1, d = (c < e ? Wn[c] : r) == 1, h = f == d ? f ? 1 : 2 : r;
  98598. for (let p = c, v = i, g = v ? n[v - 1].to : t; p > l; )
  98599. p == g && (p = n[--v].from, g = v ? n[v - 1].to : t), Wn[--p] = h;
  98600. l = c;
  98601. } else
  98602. a = u, l++;
  98603. }
  98604. }
  98605. }
  98606. function b4(t, e, n, r, i, a, o) {
  98607. let s = r % 2 ? 2 : 1;
  98608. if (r % 2 == i % 2)
  98609. for (let l = e, u = 0; l < n; ) {
  98610. let c = !0, f = !1;
  98611. if (u == a.length || l < a[u].from) {
  98612. let v = Wn[l];
  98613. v != s && (c = !1, f = v == 16);
  98614. }
  98615. let d = !c && s == 1 ? [] : null, h = c ? r : r + 1, p = l;
  98616. e: for (; ; )
  98617. if (u < a.length && p == a[u].from) {
  98618. if (f)
  98619. break e;
  98620. let v = a[u];
  98621. if (!c)
  98622. for (let g = v.to, m = u + 1; ; ) {
  98623. if (g == n)
  98624. break e;
  98625. if (m < a.length && a[m].from == g)
  98626. g = a[m++].to;
  98627. else {
  98628. if (Wn[g] == s)
  98629. break e;
  98630. break;
  98631. }
  98632. }
  98633. if (u++, d)
  98634. d.push(v);
  98635. else {
  98636. v.from > l && o.push(new qc(l, v.from, h));
  98637. let g = v.direction == tp != !(h % 2);
  98638. _4(t, g ? r + 1 : r, i, v.inner, v.from, v.to, o), l = v.to;
  98639. }
  98640. p = v.to;
  98641. } else {
  98642. if (p == n || (c ? Wn[p] != s : Wn[p] == s))
  98643. break;
  98644. p++;
  98645. }
  98646. d ? b4(t, l, p, r + 1, i, d, o) : l < p && o.push(new qc(l, p, h)), l = p;
  98647. }
  98648. else
  98649. for (let l = n, u = a.length; l > e; ) {
  98650. let c = !0, f = !1;
  98651. if (!u || l > a[u - 1].to) {
  98652. let v = Wn[l - 1];
  98653. v != s && (c = !1, f = v == 16);
  98654. }
  98655. let d = !c && s == 1 ? [] : null, h = c ? r : r + 1, p = l;
  98656. e: for (; ; )
  98657. if (u && p == a[u - 1].to) {
  98658. if (f)
  98659. break e;
  98660. let v = a[--u];
  98661. if (!c)
  98662. for (let g = v.from, m = u; ; ) {
  98663. if (g == e)
  98664. break e;
  98665. if (m && a[m - 1].to == g)
  98666. g = a[--m].from;
  98667. else {
  98668. if (Wn[g - 1] == s)
  98669. break e;
  98670. break;
  98671. }
  98672. }
  98673. if (d)
  98674. d.push(v);
  98675. else {
  98676. v.to < l && o.push(new qc(v.to, l, h));
  98677. let g = v.direction == tp != !(h % 2);
  98678. _4(t, g ? r + 1 : r, i, v.inner, v.from, v.to, o), l = v.from;
  98679. }
  98680. p = v.from;
  98681. } else {
  98682. if (p == e || (c ? Wn[p - 1] != s : Wn[p - 1] == s))
  98683. break;
  98684. p--;
  98685. }
  98686. d ? b4(t, p, l, r + 1, i, d, o) : p < l && o.push(new qc(p, l, h)), l = p;
  98687. }
  98688. }
  98689. function _4(t, e, n, r, i, a, o) {
  98690. let s = e % 2 ? 2 : 1;
  98691. sxt(t, i, a, r, s), lxt(t, i, a, r, s), uxt(i, a, r, s), b4(t, i, a, e, n, r, o);
  98692. }
  98693. function cxt(t, e, n) {
  98694. if (!t)
  98695. return [new qc(0, 0, e == rB ? 1 : 0)];
  98696. if (e == tp && !n.length && !oxt.test(t))
  98697. return ove(t.length);
  98698. if (n.length)
  98699. for (; t.length > Wn.length; )
  98700. Wn[Wn.length] = 256;
  98701. let r = [], i = e == tp ? 0 : 1;
  98702. return _4(t, i, i, n, 0, t.length, r), r;
  98703. }
  98704. function ove(t) {
  98705. return [new qc(0, t, 0)];
  98706. }
  98707. let sve = "";
  98708. function fxt(t, e, n, r, i) {
  98709. var a;
  98710. let o = r.head - t.from, s = qc.find(e, o, (a = r.bidiLevel) !== null && a !== void 0 ? a : -1, r.assoc), l = e[s], u = l.side(i, n);
  98711. if (o == u) {
  98712. let d = s += i ? 1 : -1;
  98713. if (d < 0 || d >= e.length)
  98714. return null;
  98715. l = e[s = d], o = l.side(!i, n), u = l.side(i, n);
  98716. }
  98717. let c = wi(t.text, o, l.forward(i, n));
  98718. (c < l.from || c > l.to) && (c = u), sve = t.text.slice(Math.min(o, c), Math.max(o, c));
  98719. let f = s == (i ? e.length - 1 : 0) ? null : e[s + (i ? 1 : -1)];
  98720. return f && c == u && f.level + (i ? 0 : 1) < l.level ? De.cursor(f.side(!i, n) + t.from, f.forward(i, n) ? 1 : -1, f.level) : De.cursor(c + t.from, l.forward(i, n) ? -1 : 1, l.level);
  98721. }
  98722. function dxt(t, e, n) {
  98723. for (let r = e; r < n; r++) {
  98724. let i = ive(t.charCodeAt(r));
  98725. if (i == 1)
  98726. return tp;
  98727. if (i == 2 || i == 4)
  98728. return rB;
  98729. }
  98730. return tp;
  98731. }
  98732. const lve = /* @__PURE__ */ ut.define(), uve = /* @__PURE__ */ ut.define(), cve = /* @__PURE__ */ ut.define(), fve = /* @__PURE__ */ ut.define(), O4 = /* @__PURE__ */ ut.define(), dve = /* @__PURE__ */ ut.define(), hve = /* @__PURE__ */ ut.define(), pve = /* @__PURE__ */ ut.define({
  98733. combine: (t) => t.some((e) => e)
  98734. }), vve = /* @__PURE__ */ ut.define({
  98735. combine: (t) => t.some((e) => e)
  98736. }), gve = /* @__PURE__ */ ut.define();
  98737. class og {
  98738. constructor(e, n = "nearest", r = "nearest", i = 5, a = 5, o = !1) {
  98739. this.range = e, this.y = n, this.x = r, this.yMargin = i, this.xMargin = a, this.isSnapshot = o;
  98740. }
  98741. map(e) {
  98742. return e.empty ? this : new og(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
  98743. }
  98744. clip(e) {
  98745. return this.range.to <= e.doc.length ? this : new og(De.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
  98746. }
  98747. }
  98748. const ux = /* @__PURE__ */ zt.define({ map: (t, e) => t.map(e) }), mve = /* @__PURE__ */ zt.define();
  98749. function Ia(t, e, n) {
  98750. let r = t.facet(fve);
  98751. r.length ? r[0](e) : window.onerror ? window.onerror(String(e), n, void 0, void 0, e) : n ? console.error(n + ":", e) : console.error(e);
  98752. }
  98753. const Nc = /* @__PURE__ */ ut.define({ combine: (t) => t.length ? t[0] : !0 });
  98754. let hxt = 0;
  98755. const Ty = /* @__PURE__ */ ut.define();
  98756. class Ir {
  98757. constructor(e, n, r, i, a) {
  98758. this.id = e, this.create = n, this.domEventHandlers = r, this.domEventObservers = i, this.extension = a(this);
  98759. }
  98760. /**
  98761. Define a plugin from a constructor function that creates the
  98762. plugin's value, given an editor view.
  98763. */
  98764. static define(e, n) {
  98765. const { eventHandlers: r, eventObservers: i, provide: a, decorations: o } = n || {};
  98766. return new Ir(hxt++, e, r, i, (s) => {
  98767. let l = [Ty.of(s)];
  98768. return o && l.push(b_.of((u) => {
  98769. let c = u.plugin(s);
  98770. return c ? o(c) : pt.none;
  98771. })), a && l.push(a(s)), l;
  98772. });
  98773. }
  98774. /**
  98775. Create a plugin for a class whose constructor takes a single
  98776. editor view as argument.
  98777. */
  98778. static fromClass(e, n) {
  98779. return Ir.define((r) => new e(r), n);
  98780. }
  98781. }
  98782. class nD {
  98783. constructor(e) {
  98784. this.spec = e, this.mustUpdate = null, this.value = null;
  98785. }
  98786. update(e) {
  98787. if (this.value) {
  98788. if (this.mustUpdate) {
  98789. let n = this.mustUpdate;
  98790. if (this.mustUpdate = null, this.value.update)
  98791. try {
  98792. this.value.update(n);
  98793. } catch (r) {
  98794. if (Ia(n.state, r, "CodeMirror plugin crashed"), this.value.destroy)
  98795. try {
  98796. this.value.destroy();
  98797. } catch {
  98798. }
  98799. this.deactivate();
  98800. }
  98801. }
  98802. } else if (this.spec)
  98803. try {
  98804. this.value = this.spec.create(e);
  98805. } catch (n) {
  98806. Ia(e.state, n, "CodeMirror plugin crashed"), this.deactivate();
  98807. }
  98808. return this;
  98809. }
  98810. destroy(e) {
  98811. var n;
  98812. if (!((n = this.value) === null || n === void 0) && n.destroy)
  98813. try {
  98814. this.value.destroy();
  98815. } catch (r) {
  98816. Ia(e.state, r, "CodeMirror plugin crashed");
  98817. }
  98818. }
  98819. deactivate() {
  98820. this.spec = this.value = null;
  98821. }
  98822. }
  98823. const yve = /* @__PURE__ */ ut.define(), iB = /* @__PURE__ */ ut.define(), b_ = /* @__PURE__ */ ut.define(), bve = /* @__PURE__ */ ut.define(), aB = /* @__PURE__ */ ut.define(), _ve = /* @__PURE__ */ ut.define();
  98824. function OK(t, e) {
  98825. let n = t.state.facet(_ve);
  98826. if (!n.length)
  98827. return n;
  98828. let r = n.map((a) => a instanceof Function ? a(t) : a), i = [];
  98829. return Sn.spans(r, e.from, e.to, {
  98830. point() {
  98831. },
  98832. span(a, o, s, l) {
  98833. let u = a - e.from, c = o - e.from, f = i;
  98834. for (let d = s.length - 1; d >= 0; d--, l--) {
  98835. let h = s[d].spec.bidiIsolate, p;
  98836. if (h == null && (h = dxt(e.text, u, c)), l > 0 && f.length && (p = f[f.length - 1]).to == u && p.direction == h)
  98837. p.to = c, f = p.inner;
  98838. else {
  98839. let v = { from: u, to: c, direction: h, inner: [] };
  98840. f.push(v), f = v.inner;
  98841. }
  98842. }
  98843. }
  98844. }), i;
  98845. }
  98846. const Ove = /* @__PURE__ */ ut.define();
  98847. function Sve(t) {
  98848. let e = 0, n = 0, r = 0, i = 0;
  98849. for (let a of t.state.facet(Ove)) {
  98850. let o = a(t);
  98851. o && (o.left != null && (e = Math.max(e, o.left)), o.right != null && (n = Math.max(n, o.right)), o.top != null && (r = Math.max(r, o.top)), o.bottom != null && (i = Math.max(i, o.bottom)));
  98852. }
  98853. return { left: e, right: n, top: r, bottom: i };
  98854. }
  98855. const Py = /* @__PURE__ */ ut.define();
  98856. class Jo {
  98857. constructor(e, n, r, i) {
  98858. this.fromA = e, this.toA = n, this.fromB = r, this.toB = i;
  98859. }
  98860. join(e) {
  98861. return new Jo(Math.min(this.fromA, e.fromA), Math.max(this.toA, e.toA), Math.min(this.fromB, e.fromB), Math.max(this.toB, e.toB));
  98862. }
  98863. addToSet(e) {
  98864. let n = e.length, r = this;
  98865. for (; n > 0; n--) {
  98866. let i = e[n - 1];
  98867. if (!(i.fromA > r.toA)) {
  98868. if (i.toA < r.fromA)
  98869. break;
  98870. r = r.join(i), e.splice(n - 1, 1);
  98871. }
  98872. }
  98873. return e.splice(n, 0, r), e;
  98874. }
  98875. static extendWithRanges(e, n) {
  98876. if (n.length == 0)
  98877. return e;
  98878. let r = [];
  98879. for (let i = 0, a = 0, o = 0, s = 0; ; i++) {
  98880. let l = i == e.length ? null : e[i], u = o - s, c = l ? l.fromB : 1e9;
  98881. for (; a < n.length && n[a] < c; ) {
  98882. let f = n[a], d = n[a + 1], h = Math.max(s, f), p = Math.min(c, d);
  98883. if (h <= p && new Jo(h + u, p + u, h, p).addToSet(r), d > c)
  98884. break;
  98885. a += 2;
  98886. }
  98887. if (!l)
  98888. return r;
  98889. new Jo(l.fromA, l.toA, l.fromB, l.toB).addToSet(r), o = l.toA, s = l.toB;
  98890. }
  98891. }
  98892. }
  98893. class ET {
  98894. constructor(e, n, r) {
  98895. this.view = e, this.state = n, this.transactions = r, this.flags = 0, this.startState = e.state, this.changes = Zr.empty(this.startState.doc.length);
  98896. for (let a of r)
  98897. this.changes = this.changes.compose(a.changes);
  98898. let i = [];
  98899. this.changes.iterChangedRanges((a, o, s, l) => i.push(new Jo(a, o, s, l))), this.changedRanges = i;
  98900. }
  98901. /**
  98902. @internal
  98903. */
  98904. static create(e, n, r) {
  98905. return new ET(e, n, r);
  98906. }
  98907. /**
  98908. Tells you whether the [viewport](https://codemirror.net/6/docs/ref/#view.EditorView.viewport) or
  98909. [visible ranges](https://codemirror.net/6/docs/ref/#view.EditorView.visibleRanges) changed in this
  98910. update.
  98911. */
  98912. get viewportChanged() {
  98913. return (this.flags & 4) > 0;
  98914. }
  98915. /**
  98916. Indicates whether the height of a block element in the editor
  98917. changed in this update.
  98918. */
  98919. get heightChanged() {
  98920. return (this.flags & 2) > 0;
  98921. }
  98922. /**
  98923. Returns true when the document was modified or the size of the
  98924. editor, or elements within the editor, changed.
  98925. */
  98926. get geometryChanged() {
  98927. return this.docChanged || (this.flags & 10) > 0;
  98928. }
  98929. /**
  98930. True when this update indicates a focus change.
  98931. */
  98932. get focusChanged() {
  98933. return (this.flags & 1) > 0;
  98934. }
  98935. /**
  98936. Whether the document changed in this update.
  98937. */
  98938. get docChanged() {
  98939. return !this.changes.empty;
  98940. }
  98941. /**
  98942. Whether the selection was explicitly set in this update.
  98943. */
  98944. get selectionSet() {
  98945. return this.transactions.some((e) => e.selection);
  98946. }
  98947. /**
  98948. @internal
  98949. */
  98950. get empty() {
  98951. return this.flags == 0 && this.transactions.length == 0;
  98952. }
  98953. }
  98954. class SK extends Qn {
  98955. get length() {
  98956. return this.view.state.doc.length;
  98957. }
  98958. constructor(e) {
  98959. super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = pt.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Rr()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new Jo(0, 0, 0, e.state.doc.length)], 0, null);
  98960. }
  98961. // Update the document view to a given state.
  98962. update(e) {
  98963. var n;
  98964. let r = e.changedRanges;
  98965. this.minWidth > 0 && r.length && (r.every(({ fromA: u, toA: c }) => c < this.minWidthFrom || u > this.minWidthTo) ? (this.minWidthFrom = e.changes.mapPos(this.minWidthFrom, 1), this.minWidthTo = e.changes.mapPos(this.minWidthTo, 1)) : this.minWidth = this.minWidthFrom = this.minWidthTo = 0), this.updateEditContextFormatting(e);
  98966. let i = -1;
  98967. this.view.inputState.composing >= 0 && !this.view.observer.editContext && (!((n = this.domChanged) === null || n === void 0) && n.newSel ? i = this.domChanged.newSel.head : !_xt(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head));
  98968. let a = i > -1 ? vxt(this.view, e.changes, i) : null;
  98969. if (this.domChanged = null, this.hasComposition) {
  98970. this.markedForComposition.clear();
  98971. let { from: u, to: c } = this.hasComposition;
  98972. r = new Jo(u, c, e.changes.mapPos(u, -1), e.changes.mapPos(c, 1)).addToSet(r.slice());
  98973. }
  98974. this.hasComposition = a ? { from: a.range.fromB, to: a.range.toB } : null, (lt.ie || lt.chrome) && !a && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
  98975. let o = this.decorations, s = this.updateDeco(), l = yxt(o, s, e.changes);
  98976. return r = Jo.extendWithRanges(r, l), !(this.flags & 7) && r.length == 0 ? !1 : (this.updateInner(r, e.startState.doc.length, a), e.transactions.length && (this.lastUpdate = Date.now()), !0);
  98977. }
  98978. // Used by update and the constructor do perform the actual DOM
  98979. // update
  98980. updateInner(e, n, r) {
  98981. this.view.viewState.mustMeasureContent = !0, this.updateChildren(e, n, r);
  98982. let { observer: i } = this.view;
  98983. i.ignore(() => {
  98984. this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
  98985. let o = lt.chrome || lt.ios ? { node: i.selectionRange.focusNode, written: !1 } : void 0;
  98986. this.sync(this.view, o), this.flags &= -8, o && (o.written || i.selectionRange.focusNode != o.node) && (this.forceSelection = !0), this.dom.style.height = "";
  98987. }), this.markedForComposition.forEach(
  98988. (o) => o.flags &= -9
  98989. /* ViewFlag.Composition */
  98990. );
  98991. let a = [];
  98992. if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
  98993. for (let o of this.children)
  98994. o instanceof Ru && o.widget instanceof xK && a.push(o.dom);
  98995. i.updateGaps(a);
  98996. }
  98997. updateChildren(e, n, r) {
  98998. let i = r ? r.range.addToSet(e.slice()) : e, a = this.childCursor(n);
  98999. for (let o = i.length - 1; ; o--) {
  99000. let s = o >= 0 ? i[o] : null;
  99001. if (!s)
  99002. break;
  99003. let { fromA: l, toA: u, fromB: c, toB: f } = s, d, h, p, v;
  99004. if (r && r.range.fromB < f && r.range.toB > c) {
  99005. let O = gb.build(this.view.state.doc, c, r.range.fromB, this.decorations, this.dynamicDecorationMap), S = gb.build(this.view.state.doc, r.range.toB, f, this.decorations, this.dynamicDecorationMap);
  99006. h = O.breakAtStart, p = O.openStart, v = S.openEnd;
  99007. let x = this.compositionView(r);
  99008. S.breakAtStart ? x.breakAfter = 1 : S.content.length && x.merge(x.length, x.length, S.content[0], !1, S.openStart, 0) && (x.breakAfter = S.content[0].breakAfter, S.content.shift()), O.content.length && x.merge(0, 0, O.content[O.content.length - 1], !0, 0, O.openEnd) && O.content.pop(), d = O.content.concat(x).concat(S.content);
  99009. } else
  99010. ({ content: d, breakAtStart: h, openStart: p, openEnd: v } = gb.build(this.view.state.doc, c, f, this.decorations, this.dynamicDecorationMap));
  99011. let { i: g, off: m } = a.findPos(u, 1), { i: y, off: _ } = a.findPos(l, -1);
  99012. Xpe(this, y, _, g, m, d, h, p, v);
  99013. }
  99014. r && this.fixCompositionDOM(r);
  99015. }
  99016. updateEditContextFormatting(e) {
  99017. this.editContextFormatting = this.editContextFormatting.map(e.changes);
  99018. for (let n of e.transactions)
  99019. for (let r of n.effects)
  99020. r.is(mve) && (this.editContextFormatting = r.value);
  99021. }
  99022. compositionView(e) {
  99023. let n = new Us(e.text.nodeValue);
  99024. n.flags |= 8;
  99025. for (let { deco: i } of e.marks)
  99026. n = new Xu(i, [n], n.length);
  99027. let r = new Rr();
  99028. return r.append(n, 0), r;
  99029. }
  99030. fixCompositionDOM(e) {
  99031. let n = (a, o) => {
  99032. o.flags |= 8 | (o.children.some(
  99033. (l) => l.flags & 7
  99034. /* ViewFlag.Dirty */
  99035. ) ? 1 : 0), this.markedForComposition.add(o);
  99036. let s = Qn.get(a);
  99037. s && s != o && (s.dom = null), o.setDOM(a);
  99038. }, r = this.childPos(e.range.fromB, 1), i = this.children[r.i];
  99039. n(e.line, i);
  99040. for (let a = e.marks.length - 1; a >= -1; a--)
  99041. r = i.childPos(r.off, 1), i = i.children[r.i], n(a >= 0 ? e.marks[a].node : e.text, i);
  99042. }
  99043. // Sync the DOM selection to this.state.selection
  99044. updateSelection(e = !1, n = !1) {
  99045. (e || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange();
  99046. let r = this.view.root.activeElement, i = r == this.dom, a = !i && $w(this.dom, this.view.observer.selectionRange) && !(r && this.dom.contains(r));
  99047. if (!(i || n || a))
  99048. return;
  99049. let o = this.forceSelection;
  99050. this.forceSelection = !1;
  99051. let s = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(s.anchor)), u = s.empty ? l : this.moveToLine(this.domAtPos(s.head));
  99052. if (lt.gecko && s.empty && !this.hasComposition && pxt(l)) {
  99053. let f = document.createTextNode("");
  99054. this.view.observer.ignore(() => l.node.insertBefore(f, l.node.childNodes[l.offset] || null)), l = u = new zi(f, 0), o = !0;
  99055. }
  99056. let c = this.view.observer.selectionRange;
  99057. (o || !c.focusNode || (!vb(l.node, l.offset, c.anchorNode, c.anchorOffset) || !vb(u.node, u.offset, c.focusNode, c.focusOffset)) && !this.suppressWidgetCursorChange(c, s)) && (this.view.observer.ignore(() => {
  99058. lt.android && lt.chrome && this.dom.contains(c.focusNode) && bxt(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
  99059. let f = y_(this.view.root);
  99060. if (f) if (s.empty) {
  99061. if (lt.gecko) {
  99062. let d = gxt(l.node, l.offset);
  99063. if (d && d != 3) {
  99064. let h = (d == 1 ? jpe : Zpe)(l.node, l.offset);
  99065. h && (l = new zi(h.node, h.offset));
  99066. }
  99067. }
  99068. f.collapse(l.node, l.offset), s.bidiLevel != null && f.caretBidiLevel !== void 0 && (f.caretBidiLevel = s.bidiLevel);
  99069. } else if (f.extend) {
  99070. f.collapse(l.node, l.offset);
  99071. try {
  99072. f.extend(u.node, u.offset);
  99073. } catch {
  99074. }
  99075. } else {
  99076. let d = document.createRange();
  99077. s.anchor > s.head && ([l, u] = [u, l]), d.setEnd(u.node, u.offset), d.setStart(l.node, l.offset), f.removeAllRanges(), f.addRange(d);
  99078. }
  99079. a && this.view.root.activeElement == this.dom && (this.dom.blur(), r && r.focus());
  99080. }), this.view.observer.setSelectionRange(l, u)), this.impreciseAnchor = l.precise ? null : new zi(c.anchorNode, c.anchorOffset), this.impreciseHead = u.precise ? null : new zi(c.focusNode, c.focusOffset);
  99081. }
  99082. // If a zero-length widget is inserted next to the cursor during
  99083. // composition, avoid moving it across it and disrupting the
  99084. // composition.
  99085. suppressWidgetCursorChange(e, n) {
  99086. return this.hasComposition && n.empty && vb(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset) && this.posFromDOM(e.focusNode, e.focusOffset) == n.head;
  99087. }
  99088. enforceCursorAssoc() {
  99089. if (this.hasComposition)
  99090. return;
  99091. let { view: e } = this, n = e.state.selection.main, r = y_(e.root), { anchorNode: i, anchorOffset: a } = e.observer.selectionRange;
  99092. if (!r || !n.empty || !n.assoc || !r.modify)
  99093. return;
  99094. let o = Rr.find(this, n.head);
  99095. if (!o)
  99096. return;
  99097. let s = o.posAtStart;
  99098. if (n.head == s || n.head == s + o.length)
  99099. return;
  99100. let l = this.coordsAt(n.head, -1), u = this.coordsAt(n.head, 1);
  99101. if (!l || !u || l.bottom > u.top)
  99102. return;
  99103. let c = this.domAtPos(n.head + n.assoc);
  99104. r.collapse(c.node, c.offset), r.modify("move", n.assoc < 0 ? "forward" : "backward", "lineboundary"), e.observer.readSelectionRange();
  99105. let f = e.observer.selectionRange;
  99106. e.docView.posFromDOM(f.anchorNode, f.anchorOffset) != n.from && r.collapse(i, a);
  99107. }
  99108. // If a position is in/near a block widget, move it to a nearby text
  99109. // line, since we don't want the cursor inside a block widget.
  99110. moveToLine(e) {
  99111. let n = this.dom, r;
  99112. if (e.node != n)
  99113. return e;
  99114. for (let i = e.offset; !r && i < n.childNodes.length; i++) {
  99115. let a = Qn.get(n.childNodes[i]);
  99116. a instanceof Rr && (r = a.domAtPos(0));
  99117. }
  99118. for (let i = e.offset - 1; !r && i >= 0; i--) {
  99119. let a = Qn.get(n.childNodes[i]);
  99120. a instanceof Rr && (r = a.domAtPos(a.length));
  99121. }
  99122. return r ? new zi(r.node, r.offset, !0) : e;
  99123. }
  99124. nearest(e) {
  99125. for (let n = e; n; ) {
  99126. let r = Qn.get(n);
  99127. if (r && r.rootView == this)
  99128. return r;
  99129. n = n.parentNode;
  99130. }
  99131. return null;
  99132. }
  99133. posFromDOM(e, n) {
  99134. let r = this.nearest(e);
  99135. if (!r)
  99136. throw new RangeError("Trying to find position for a DOM position outside of the document");
  99137. return r.localPosFromDOM(e, n) + r.posAtStart;
  99138. }
  99139. domAtPos(e) {
  99140. let { i: n, off: r } = this.childCursor().findPos(e, -1);
  99141. for (; n < this.children.length - 1; ) {
  99142. let i = this.children[n];
  99143. if (r < i.length || i instanceof Rr)
  99144. break;
  99145. n++, r = 0;
  99146. }
  99147. return this.children[n].domAtPos(r);
  99148. }
  99149. coordsAt(e, n) {
  99150. let r = null, i = 0;
  99151. for (let a = this.length, o = this.children.length - 1; o >= 0; o--) {
  99152. let s = this.children[o], l = a - s.breakAfter, u = l - s.length;
  99153. if (l < e)
  99154. break;
  99155. if (u <= e && (u < e || s.covers(-1)) && (l > e || s.covers(1)) && (!r || s instanceof Rr && !(r instanceof Rr && n >= 0)))
  99156. r = s, i = u;
  99157. else if (r && u == e && l == e && s instanceof Ru && Math.abs(n) < 2) {
  99158. if (s.deco.startSide < 0)
  99159. break;
  99160. o && (r = null);
  99161. }
  99162. a = u;
  99163. }
  99164. return r ? r.coordsAt(e - i, n) : null;
  99165. }
  99166. coordsForChar(e) {
  99167. let { i: n, off: r } = this.childPos(e, 1), i = this.children[n];
  99168. if (!(i instanceof Rr))
  99169. return null;
  99170. for (; i.children.length; ) {
  99171. let { i: s, off: l } = i.childPos(r, 1);
  99172. for (; ; s++) {
  99173. if (s == i.children.length)
  99174. return null;
  99175. if ((i = i.children[s]).length)
  99176. break;
  99177. }
  99178. r = l;
  99179. }
  99180. if (!(i instanceof Us))
  99181. return null;
  99182. let a = wi(i.text, r);
  99183. if (a == r)
  99184. return null;
  99185. let o = ep(i.dom, r, a).getClientRects();
  99186. for (let s = 0; s < o.length; s++) {
  99187. let l = o[s];
  99188. if (s == o.length - 1 || l.top < l.bottom && l.left < l.right)
  99189. return l;
  99190. }
  99191. return null;
  99192. }
  99193. measureVisibleLineHeights(e) {
  99194. let n = [], { from: r, to: i } = e, a = this.view.contentDOM.clientWidth, o = a > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, s = -1, l = this.view.textDirection == ir.LTR;
  99195. for (let u = 0, c = 0; c < this.children.length; c++) {
  99196. let f = this.children[c], d = u + f.length;
  99197. if (d > i)
  99198. break;
  99199. if (u >= r) {
  99200. let h = f.dom.getBoundingClientRect();
  99201. if (n.push(h.height), o) {
  99202. let p = f.dom.lastChild, v = p ? Kg(p) : [];
  99203. if (v.length) {
  99204. let g = v[v.length - 1], m = l ? g.right - h.left : h.right - g.left;
  99205. m > s && (s = m, this.minWidth = a, this.minWidthFrom = u, this.minWidthTo = d);
  99206. }
  99207. }
  99208. }
  99209. u = d + f.breakAfter;
  99210. }
  99211. return n;
  99212. }
  99213. textDirectionAt(e) {
  99214. let { i: n } = this.childPos(e, 1);
  99215. return getComputedStyle(this.children[n].dom).direction == "rtl" ? ir.RTL : ir.LTR;
  99216. }
  99217. measureTextSize() {
  99218. for (let a of this.children)
  99219. if (a instanceof Rr) {
  99220. let o = a.measureTextSize();
  99221. if (o)
  99222. return o;
  99223. }
  99224. let e = document.createElement("div"), n, r, i;
  99225. return e.className = "cm-line", e.style.width = "99999px", e.style.position = "absolute", e.textContent = "abc def ghi jkl mno pqr stu", this.view.observer.ignore(() => {
  99226. this.dom.appendChild(e);
  99227. let a = Kg(e.firstChild)[0];
  99228. n = e.getBoundingClientRect().height, r = a ? a.width / 27 : 7, i = a ? a.height : n, e.remove();
  99229. }), { lineHeight: n, charWidth: r, textHeight: i };
  99230. }
  99231. childCursor(e = this.length) {
  99232. let n = this.children.length;
  99233. return n && (e -= this.children[--n].length), new Upe(this.children, e, n);
  99234. }
  99235. computeBlockGapDeco() {
  99236. let e = [], n = this.view.viewState;
  99237. for (let r = 0, i = 0; ; i++) {
  99238. let a = i == n.viewports.length ? null : n.viewports[i], o = a ? a.from - 1 : this.length;
  99239. if (o > r) {
  99240. let s = (n.lineBlockAt(o).bottom - n.lineBlockAt(r).top) / this.view.scaleY;
  99241. e.push(pt.replace({
  99242. widget: new xK(s),
  99243. block: !0,
  99244. inclusive: !0,
  99245. isBlockGap: !0
  99246. }).range(r, o));
  99247. }
  99248. if (!a)
  99249. break;
  99250. r = a.to + 1;
  99251. }
  99252. return pt.set(e);
  99253. }
  99254. updateDeco() {
  99255. let e = 1, n = this.view.state.facet(b_).map((a) => (this.dynamicDecorationMap[e++] = typeof a == "function") ? a(this.view) : a), r = !1, i = this.view.state.facet(bve).map((a, o) => {
  99256. let s = typeof a == "function";
  99257. return s && (r = !0), s ? a(this.view) : a;
  99258. });
  99259. for (i.length && (this.dynamicDecorationMap[e++] = r, n.push(Sn.join(i))), this.decorations = [
  99260. this.editContextFormatting,
  99261. ...n,
  99262. this.computeBlockGapDeco(),
  99263. this.view.viewState.lineGapDeco
  99264. ]; e < this.decorations.length; )
  99265. this.dynamicDecorationMap[e++] = !1;
  99266. return this.decorations;
  99267. }
  99268. scrollIntoView(e) {
  99269. if (e.isSnapshot) {
  99270. let u = this.view.viewState.lineBlockAt(e.range.head);
  99271. this.view.scrollDOM.scrollTop = u.top - e.yMargin, this.view.scrollDOM.scrollLeft = e.xMargin;
  99272. return;
  99273. }
  99274. for (let u of this.view.state.facet(gve))
  99275. try {
  99276. if (u(this.view, e.range, e))
  99277. return !0;
  99278. } catch (c) {
  99279. Ia(this.view.state, c, "scroll handler");
  99280. }
  99281. let { range: n } = e, r = this.coordsAt(n.head, n.empty ? n.assoc : n.head > n.anchor ? -1 : 1), i;
  99282. if (!r)
  99283. return;
  99284. !n.empty && (i = this.coordsAt(n.anchor, n.anchor > n.head ? -1 : 1)) && (r = {
  99285. left: Math.min(r.left, i.left),
  99286. top: Math.min(r.top, i.top),
  99287. right: Math.max(r.right, i.right),
  99288. bottom: Math.max(r.bottom, i.bottom)
  99289. });
  99290. let a = Sve(this.view), o = {
  99291. left: r.left - a.left,
  99292. top: r.top - a.top,
  99293. right: r.right + a.right,
  99294. bottom: r.bottom + a.bottom
  99295. }, { offsetWidth: s, offsetHeight: l } = this.view.scrollDOM;
  99296. USt(this.view.scrollDOM, o, n.head < n.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, s), -s), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == ir.LTR);
  99297. }
  99298. }
  99299. function pxt(t) {
  99300. return t.node.nodeType == 1 && t.node.firstChild && (t.offset == 0 || t.node.childNodes[t.offset - 1].contentEditable == "false") && (t.offset == t.node.childNodes.length || t.node.childNodes[t.offset].contentEditable == "false");
  99301. }
  99302. class xK extends Jl {
  99303. constructor(e) {
  99304. super(), this.height = e;
  99305. }
  99306. toDOM() {
  99307. let e = document.createElement("div");
  99308. return e.className = "cm-gap", this.updateDOM(e), e;
  99309. }
  99310. eq(e) {
  99311. return e.height == this.height;
  99312. }
  99313. updateDOM(e) {
  99314. return e.style.height = this.height + "px", !0;
  99315. }
  99316. get editable() {
  99317. return !0;
  99318. }
  99319. get estimatedHeight() {
  99320. return this.height;
  99321. }
  99322. ignoreEvent() {
  99323. return !1;
  99324. }
  99325. }
  99326. function xve(t, e) {
  99327. let n = t.observer.selectionRange;
  99328. if (!n.focusNode)
  99329. return null;
  99330. let r = jpe(n.focusNode, n.focusOffset), i = Zpe(n.focusNode, n.focusOffset), a = r || i;
  99331. if (i && r && i.node != r.node) {
  99332. let s = Qn.get(i.node);
  99333. if (!s || s instanceof Us && s.text != i.node.nodeValue)
  99334. a = i;
  99335. else if (t.docView.lastCompositionAfterCursor) {
  99336. let l = Qn.get(r.node);
  99337. !l || l instanceof Us && l.text != r.node.nodeValue || (a = i);
  99338. }
  99339. }
  99340. if (t.docView.lastCompositionAfterCursor = a != r, !a)
  99341. return null;
  99342. let o = e - a.offset;
  99343. return { from: o, to: o + a.node.nodeValue.length, node: a.node };
  99344. }
  99345. function vxt(t, e, n) {
  99346. let r = xve(t, n);
  99347. if (!r)
  99348. return null;
  99349. let { node: i, from: a, to: o } = r, s = i.nodeValue;
  99350. if (/[\n\r]/.test(s) || t.state.doc.sliceString(r.from, r.to) != s)
  99351. return null;
  99352. let l = e.invertedDesc, u = new Jo(l.mapPos(a), l.mapPos(o), a, o), c = [];
  99353. for (let f = i.parentNode; ; f = f.parentNode) {
  99354. let d = Qn.get(f);
  99355. if (d instanceof Xu)
  99356. c.push({ node: f, deco: d.mark });
  99357. else {
  99358. if (d instanceof Rr || f.nodeName == "DIV" && f.parentNode == t.contentDOM)
  99359. return { range: u, text: i, marks: c, line: f };
  99360. if (f != t.contentDOM)
  99361. c.push({ node: f, deco: new A1({
  99362. inclusive: !0,
  99363. attributes: nxt(f),
  99364. tagName: f.tagName.toLowerCase()
  99365. }) });
  99366. else
  99367. return null;
  99368. }
  99369. }
  99370. }
  99371. function gxt(t, e) {
  99372. return t.nodeType != 1 ? 0 : (e && t.childNodes[e - 1].contentEditable == "false" ? 1 : 0) | (e < t.childNodes.length && t.childNodes[e].contentEditable == "false" ? 2 : 0);
  99373. }
  99374. let mxt = class {
  99375. constructor() {
  99376. this.changes = [];
  99377. }
  99378. compareRange(e, n) {
  99379. m4(e, n, this.changes);
  99380. }
  99381. comparePoint(e, n) {
  99382. m4(e, n, this.changes);
  99383. }
  99384. };
  99385. function yxt(t, e, n) {
  99386. let r = new mxt();
  99387. return Sn.compare(t, e, n, r), r.changes;
  99388. }
  99389. function bxt(t, e) {
  99390. for (let n = t; n && n != e; n = n.assignedSlot || n.parentNode)
  99391. if (n.nodeType == 1 && n.contentEditable == "false")
  99392. return !0;
  99393. return !1;
  99394. }
  99395. function _xt(t, e) {
  99396. let n = !1;
  99397. return e && t.iterChangedRanges((r, i) => {
  99398. r < e.to && i > e.from && (n = !0);
  99399. }), n;
  99400. }
  99401. function Oxt(t, e, n = 1) {
  99402. let r = t.charCategorizer(e), i = t.doc.lineAt(e), a = e - i.from;
  99403. if (i.length == 0)
  99404. return De.cursor(e);
  99405. a == 0 ? n = 1 : a == i.length && (n = -1);
  99406. let o = a, s = a;
  99407. n < 0 ? o = wi(i.text, a, !1) : s = wi(i.text, a);
  99408. let l = r(i.text.slice(o, s));
  99409. for (; o > 0; ) {
  99410. let u = wi(i.text, o, !1);
  99411. if (r(i.text.slice(u, o)) != l)
  99412. break;
  99413. o = u;
  99414. }
  99415. for (; s < i.length; ) {
  99416. let u = wi(i.text, s);
  99417. if (r(i.text.slice(s, u)) != l)
  99418. break;
  99419. s = u;
  99420. }
  99421. return De.range(o + i.from, s + i.from);
  99422. }
  99423. function Sxt(t, e) {
  99424. return e.left > t ? e.left - t : Math.max(0, t - e.right);
  99425. }
  99426. function xxt(t, e) {
  99427. return e.top > t ? e.top - t : Math.max(0, t - e.bottom);
  99428. }
  99429. function rD(t, e) {
  99430. return t.top < e.bottom - 1 && t.bottom > e.top + 1;
  99431. }
  99432. function wK(t, e) {
  99433. return e < t.top ? { top: e, left: t.left, right: t.right, bottom: t.bottom } : t;
  99434. }
  99435. function CK(t, e) {
  99436. return e > t.bottom ? { top: t.top, left: t.left, right: t.right, bottom: e } : t;
  99437. }
  99438. function S4(t, e, n) {
  99439. let r, i, a, o, s = !1, l, u, c, f;
  99440. for (let p = t.firstChild; p; p = p.nextSibling) {
  99441. let v = Kg(p);
  99442. for (let g = 0; g < v.length; g++) {
  99443. let m = v[g];
  99444. i && rD(i, m) && (m = wK(CK(m, i.bottom), i.top));
  99445. let y = Sxt(e, m), _ = xxt(n, m);
  99446. if (y == 0 && _ == 0)
  99447. return p.nodeType == 3 ? TK(p, e, n) : S4(p, e, n);
  99448. if (!r || o > _ || o == _ && a > y) {
  99449. r = p, i = m, a = y, o = _;
  99450. let O = _ ? n < m.top ? -1 : 1 : y ? e < m.left ? -1 : 1 : 0;
  99451. s = !O || (O > 0 ? g < v.length - 1 : g > 0);
  99452. }
  99453. y == 0 ? n > m.bottom && (!c || c.bottom < m.bottom) ? (l = p, c = m) : n < m.top && (!f || f.top > m.top) && (u = p, f = m) : c && rD(c, m) ? c = CK(c, m.bottom) : f && rD(f, m) && (f = wK(f, m.top));
  99454. }
  99455. }
  99456. if (c && c.bottom >= n ? (r = l, i = c) : f && f.top <= n && (r = u, i = f), !r)
  99457. return { node: t, offset: 0 };
  99458. let d = Math.max(i.left, Math.min(i.right, e));
  99459. if (r.nodeType == 3)
  99460. return TK(r, d, n);
  99461. if (s && r.contentEditable != "false")
  99462. return S4(r, d, n);
  99463. let h = Array.prototype.indexOf.call(t.childNodes, r) + (e >= (i.left + i.right) / 2 ? 1 : 0);
  99464. return { node: t, offset: h };
  99465. }
  99466. function TK(t, e, n) {
  99467. let r = t.nodeValue.length, i = -1, a = 1e9, o = 0;
  99468. for (let s = 0; s < r; s++) {
  99469. let l = ep(t, s, s + 1).getClientRects();
  99470. for (let u = 0; u < l.length; u++) {
  99471. let c = l[u];
  99472. if (c.top == c.bottom)
  99473. continue;
  99474. o || (o = e - c.left);
  99475. let f = (c.top > n ? c.top - n : n - c.bottom) - 1;
  99476. if (c.left - 1 <= e && c.right + 1 >= e && f < a) {
  99477. let d = e >= (c.left + c.right) / 2, h = d;
  99478. if ((lt.chrome || lt.gecko) && ep(t, s).getBoundingClientRect().left == c.right && (h = !d), f <= 0)
  99479. return { node: t, offset: s + (h ? 1 : 0) };
  99480. i = s + (h ? 1 : 0), a = f;
  99481. }
  99482. }
  99483. }
  99484. return { node: t, offset: i > -1 ? i : o > 0 ? t.nodeValue.length : 0 };
  99485. }
  99486. function wve(t, e, n, r = -1) {
  99487. var i, a;
  99488. let o = t.contentDOM.getBoundingClientRect(), s = o.top + t.viewState.paddingTop, l, { docHeight: u } = t.viewState, { x: c, y: f } = e, d = f - s;
  99489. if (d < 0)
  99490. return 0;
  99491. if (d > u)
  99492. return t.state.doc.length;
  99493. for (let O = t.viewState.heightOracle.textHeight / 2, S = !1; l = t.elementAtHeight(d), l.type != la.Text; )
  99494. for (; d = r > 0 ? l.bottom + O : l.top - O, !(d >= 0 && d <= u); ) {
  99495. if (S)
  99496. return n ? null : 0;
  99497. S = !0, r = -r;
  99498. }
  99499. f = s + d;
  99500. let h = l.from;
  99501. if (h < t.viewport.from)
  99502. return t.viewport.from == 0 ? 0 : n ? null : PK(t, o, l, c, f);
  99503. if (h > t.viewport.to)
  99504. return t.viewport.to == t.state.doc.length ? t.state.doc.length : n ? null : PK(t, o, l, c, f);
  99505. let p = t.dom.ownerDocument, v = t.root.elementFromPoint ? t.root : p, g = v.elementFromPoint(c, f);
  99506. g && !t.contentDOM.contains(g) && (g = null), g || (c = Math.max(o.left + 1, Math.min(o.right - 1, c)), g = v.elementFromPoint(c, f), g && !t.contentDOM.contains(g) && (g = null));
  99507. let m, y = -1;
  99508. if (g && ((i = t.docView.nearest(g)) === null || i === void 0 ? void 0 : i.isEditable) != !1) {
  99509. if (p.caretPositionFromPoint) {
  99510. let O = p.caretPositionFromPoint(c, f);
  99511. O && ({ offsetNode: m, offset: y } = O);
  99512. } else if (p.caretRangeFromPoint) {
  99513. let O = p.caretRangeFromPoint(c, f);
  99514. O && ({ startContainer: m, startOffset: y } = O, (!t.contentDOM.contains(m) || lt.safari && wxt(m, y, c) || lt.chrome && Cxt(m, y, c)) && (m = void 0));
  99515. }
  99516. }
  99517. if (!m || !t.docView.dom.contains(m)) {
  99518. let O = Rr.find(t.docView, h);
  99519. if (!O)
  99520. return d > l.top + l.height / 2 ? l.to : l.from;
  99521. ({ node: m, offset: y } = S4(O.dom, c, f));
  99522. }
  99523. let _ = t.docView.nearest(m);
  99524. if (!_)
  99525. return null;
  99526. if (_.isWidget && ((a = _.dom) === null || a === void 0 ? void 0 : a.nodeType) == 1) {
  99527. let O = _.dom.getBoundingClientRect();
  99528. return e.y < O.top || e.y <= O.bottom && e.x <= (O.left + O.right) / 2 ? _.posAtStart : _.posAtEnd;
  99529. } else
  99530. return _.localPosFromDOM(m, y) + _.posAtStart;
  99531. }
  99532. function PK(t, e, n, r, i) {
  99533. let a = Math.round((r - e.left) * t.defaultCharacterWidth);
  99534. if (t.lineWrapping && n.height > t.defaultLineHeight * 1.5) {
  99535. let s = t.viewState.heightOracle.textHeight, l = Math.floor((i - n.top - (t.defaultLineHeight - s) * 0.5) / s);
  99536. a += l * t.viewState.heightOracle.lineLength;
  99537. }
  99538. let o = t.state.sliceDoc(n.from, n.to);
  99539. return n.from + l4(o, a, t.state.tabSize);
  99540. }
  99541. function wxt(t, e, n) {
  99542. let r;
  99543. if (t.nodeType != 3 || e != (r = t.nodeValue.length))
  99544. return !1;
  99545. for (let i = t.nextSibling; i; i = i.nextSibling)
  99546. if (i.nodeType != 1 || i.nodeName != "BR")
  99547. return !1;
  99548. return ep(t, r - 1, r).getBoundingClientRect().left > n;
  99549. }
  99550. function Cxt(t, e, n) {
  99551. if (e != 0)
  99552. return !1;
  99553. for (let i = t; ; ) {
  99554. let a = i.parentNode;
  99555. if (!a || a.nodeType != 1 || a.firstChild != i)
  99556. return !1;
  99557. if (a.classList.contains("cm-line"))
  99558. break;
  99559. i = a;
  99560. }
  99561. let r = t.nodeType == 1 ? t.getBoundingClientRect() : ep(t, 0, Math.max(t.nodeValue.length, 1)).getBoundingClientRect();
  99562. return n - r.left > 5;
  99563. }
  99564. function x4(t, e) {
  99565. let n = t.lineBlockAt(e);
  99566. if (Array.isArray(n.type)) {
  99567. for (let r of n.type)
  99568. if (r.to > e || r.to == e && (r.to == n.to || r.type == la.Text))
  99569. return r;
  99570. }
  99571. return n;
  99572. }
  99573. function Txt(t, e, n, r) {
  99574. let i = x4(t, e.head), a = !r || i.type != la.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head);
  99575. if (a) {
  99576. let o = t.dom.getBoundingClientRect(), s = t.textDirectionAt(i.from), l = t.posAtCoords({
  99577. x: n == (s == ir.LTR) ? o.right - 1 : o.left + 1,
  99578. y: (a.top + a.bottom) / 2
  99579. });
  99580. if (l != null)
  99581. return De.cursor(l, n ? -1 : 1);
  99582. }
  99583. return De.cursor(n ? i.to : i.from, n ? -1 : 1);
  99584. }
  99585. function $K(t, e, n, r) {
  99586. let i = t.state.doc.lineAt(e.head), a = t.bidiSpans(i), o = t.textDirectionAt(i.from);
  99587. for (let s = e, l = null; ; ) {
  99588. let u = fxt(i, a, o, s, n), c = sve;
  99589. if (!u) {
  99590. if (i.number == (n ? t.state.doc.lines : 1))
  99591. return s;
  99592. c = `
  99593. `, i = t.state.doc.line(i.number + (n ? 1 : -1)), a = t.bidiSpans(i), u = t.visualLineSide(i, !n);
  99594. }
  99595. if (l) {
  99596. if (!l(c))
  99597. return s;
  99598. } else {
  99599. if (!r)
  99600. return u;
  99601. l = r(c);
  99602. }
  99603. s = u;
  99604. }
  99605. }
  99606. function Pxt(t, e, n) {
  99607. let r = t.state.charCategorizer(e), i = r(n);
  99608. return (a) => {
  99609. let o = r(a);
  99610. return i == lr.Space && (i = o), i == o;
  99611. };
  99612. }
  99613. function $xt(t, e, n, r) {
  99614. let i = e.head, a = n ? 1 : -1;
  99615. if (i == (n ? t.state.doc.length : 0))
  99616. return De.cursor(i, e.assoc);
  99617. let o = e.goalColumn, s, l = t.contentDOM.getBoundingClientRect(), u = t.coordsAtPos(i, e.assoc || -1), c = t.documentTop;
  99618. if (u)
  99619. o == null && (o = u.left - l.left), s = a < 0 ? u.top : u.bottom;
  99620. else {
  99621. let h = t.viewState.lineBlockAt(i);
  99622. o == null && (o = Math.min(l.right - l.left, t.defaultCharacterWidth * (i - h.from))), s = (a < 0 ? h.top : h.bottom) + c;
  99623. }
  99624. let f = l.left + o, d = r ?? t.viewState.heightOracle.textHeight >> 1;
  99625. for (let h = 0; ; h += 10) {
  99626. let p = s + (d + h) * a, v = wve(t, { x: f, y: p }, !1, a);
  99627. if (p < l.top || p > l.bottom || (a < 0 ? v < i : v > i)) {
  99628. let g = t.docView.coordsForChar(v), m = !g || p < g.top ? -1 : 1;
  99629. return De.cursor(v, m, void 0, o);
  99630. }
  99631. }
  99632. }
  99633. function Aw(t, e, n) {
  99634. for (; ; ) {
  99635. let r = 0;
  99636. for (let i of t)
  99637. i.between(e - 1, e + 1, (a, o, s) => {
  99638. if (e > a && e < o) {
  99639. let l = r || n || (e - a < o - e ? -1 : 1);
  99640. e = l < 0 ? a : o, r = l;
  99641. }
  99642. });
  99643. if (!r)
  99644. return e;
  99645. }
  99646. }
  99647. function iD(t, e, n) {
  99648. let r = Aw(t.state.facet(aB).map((i) => i(t)), n.from, e.head > n.from ? -1 : 1);
  99649. return r == n.from ? n : De.cursor(r, r < n.from ? 1 : -1);
  99650. }
  99651. class Axt {
  99652. setSelectionOrigin(e) {
  99653. this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
  99654. }
  99655. constructor(e) {
  99656. this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, lt.safari && e.contentDOM.addEventListener("input", () => null), lt.gecko && Gxt(e.contentDOM.ownerDocument);
  99657. }
  99658. handleEvent(e) {
  99659. !Nxt(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e);
  99660. }
  99661. runHandlers(e, n) {
  99662. let r = this.handlers[e];
  99663. if (r) {
  99664. for (let i of r.observers)
  99665. i(this.view, n);
  99666. for (let i of r.handlers) {
  99667. if (n.defaultPrevented)
  99668. break;
  99669. if (i(this.view, n)) {
  99670. n.preventDefault();
  99671. break;
  99672. }
  99673. }
  99674. }
  99675. }
  99676. ensureHandlers(e) {
  99677. let n = Ext(e), r = this.handlers, i = this.view.contentDOM;
  99678. for (let a in n)
  99679. if (a != "scroll") {
  99680. let o = !n[a].handlers.length, s = r[a];
  99681. s && o != !s.handlers.length && (i.removeEventListener(a, this.handleEvent), s = null), s || i.addEventListener(a, this.handleEvent, { passive: o });
  99682. }
  99683. for (let a in r)
  99684. a != "scroll" && !n[a] && i.removeEventListener(a, this.handleEvent);
  99685. this.handlers = n;
  99686. }
  99687. keydown(e) {
  99688. if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
  99689. return !0;
  99690. if (this.tabFocusMode > 0 && e.keyCode != 27 && Tve.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), lt.android && lt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
  99691. return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
  99692. let n;
  99693. return lt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((n = Cve.find((r) => r.keyCode == e.keyCode)) && !e.ctrlKey || Mxt.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = n || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
  99694. }
  99695. flushIOSKey(e) {
  99696. let n = this.pendingIOSKey;
  99697. return !n || n.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, ag(this.view.contentDOM, n.key, n.keyCode, n instanceof KeyboardEvent ? n : void 0));
  99698. }
  99699. ignoreDuringComposition(e) {
  99700. return /^key/.test(e.type) ? this.composing > 0 ? !0 : lt.safari && !lt.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
  99701. }
  99702. startMouseSelection(e) {
  99703. this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
  99704. }
  99705. update(e) {
  99706. this.view.observer.update(e), this.mouseSelection && this.mouseSelection.update(e), this.draggedContent && e.docChanged && (this.draggedContent = this.draggedContent.map(e.changes)), e.transactions.length && (this.lastKeyCode = this.lastSelectionTime = 0);
  99707. }
  99708. destroy() {
  99709. this.mouseSelection && this.mouseSelection.destroy();
  99710. }
  99711. }
  99712. function AK(t, e) {
  99713. return (n, r) => {
  99714. try {
  99715. return e.call(t, r, n);
  99716. } catch (i) {
  99717. Ia(n.state, i);
  99718. }
  99719. };
  99720. }
  99721. function Ext(t) {
  99722. let e = /* @__PURE__ */ Object.create(null);
  99723. function n(r) {
  99724. return e[r] || (e[r] = { observers: [], handlers: [] });
  99725. }
  99726. for (let r of t) {
  99727. let i = r.spec;
  99728. if (i && i.domEventHandlers)
  99729. for (let a in i.domEventHandlers) {
  99730. let o = i.domEventHandlers[a];
  99731. o && n(a).handlers.push(AK(r.value, o));
  99732. }
  99733. if (i && i.domEventObservers)
  99734. for (let a in i.domEventObservers) {
  99735. let o = i.domEventObservers[a];
  99736. o && n(a).observers.push(AK(r.value, o));
  99737. }
  99738. }
  99739. for (let r in Xs)
  99740. n(r).handlers.push(Xs[r]);
  99741. for (let r in us)
  99742. n(r).observers.push(us[r]);
  99743. return e;
  99744. }
  99745. const Cve = [
  99746. { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" },
  99747. { key: "Enter", keyCode: 13, inputType: "insertParagraph" },
  99748. { key: "Enter", keyCode: 13, inputType: "insertLineBreak" },
  99749. { key: "Delete", keyCode: 46, inputType: "deleteContentForward" }
  99750. ], Mxt = "dthko", Tve = [16, 17, 18, 20, 91, 92, 224, 225], cx = 6;
  99751. function fx(t) {
  99752. return Math.max(0, t) * 0.7 + 8;
  99753. }
  99754. function Ixt(t, e) {
  99755. return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY));
  99756. }
  99757. class Dxt {
  99758. constructor(e, n, r, i) {
  99759. this.view = e, this.startEvent = n, this.style = r, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = n, this.scrollParent = XSt(e.contentDOM), this.atoms = e.state.facet(aB).map((o) => o(e));
  99760. let a = e.contentDOM.ownerDocument;
  99761. a.addEventListener("mousemove", this.move = this.move.bind(this)), a.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = n.shiftKey, this.multiple = e.state.facet(cn.allowMultipleSelections) && Rxt(e, n), this.dragging = Lxt(e, n) && Eve(n) == 1 ? null : !1;
  99762. }
  99763. start(e) {
  99764. this.dragging === !1 && this.select(e);
  99765. }
  99766. move(e) {
  99767. var n;
  99768. if (e.buttons == 0)
  99769. return this.destroy();
  99770. if (this.dragging || this.dragging == null && Ixt(this.startEvent, e) < 10)
  99771. return;
  99772. this.select(this.lastEvent = e);
  99773. let r = 0, i = 0, a = ((n = this.scrollParent) === null || n === void 0 ? void 0 : n.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, o = Sve(this.view);
  99774. e.clientX - o.left <= a.left + cx ? r = -fx(a.left - e.clientX) : e.clientX + o.right >= a.right - cx && (r = fx(e.clientX - a.right)), e.clientY - o.top <= a.top + cx ? i = -fx(a.top - e.clientY) : e.clientY + o.bottom >= a.bottom - cx && (i = fx(e.clientY - a.bottom)), this.setScrollSpeed(r, i);
  99775. }
  99776. up(e) {
  99777. this.dragging == null && this.select(this.lastEvent), this.dragging || e.preventDefault(), this.destroy();
  99778. }
  99779. destroy() {
  99780. this.setScrollSpeed(0, 0);
  99781. let e = this.view.contentDOM.ownerDocument;
  99782. e.removeEventListener("mousemove", this.move), e.removeEventListener("mouseup", this.up), this.view.inputState.mouseSelection = this.view.inputState.draggedContent = null;
  99783. }
  99784. setScrollSpeed(e, n) {
  99785. this.scrollSpeed = { x: e, y: n }, e || n ? this.scrolling < 0 && (this.scrolling = setInterval(() => this.scroll(), 50)) : this.scrolling > -1 && (clearInterval(this.scrolling), this.scrolling = -1);
  99786. }
  99787. scroll() {
  99788. this.scrollParent ? (this.scrollParent.scrollLeft += this.scrollSpeed.x, this.scrollParent.scrollTop += this.scrollSpeed.y) : this.view.win.scrollBy(this.scrollSpeed.x, this.scrollSpeed.y), this.dragging === !1 && this.select(this.lastEvent);
  99789. }
  99790. skipAtoms(e) {
  99791. let n = null;
  99792. for (let r = 0; r < e.ranges.length; r++) {
  99793. let i = e.ranges[r], a = null;
  99794. if (i.empty) {
  99795. let o = Aw(this.atoms, i.from, 0);
  99796. o != i.from && (a = De.cursor(o, -1));
  99797. } else {
  99798. let o = Aw(this.atoms, i.from, -1), s = Aw(this.atoms, i.to, 1);
  99799. (o != i.from || s != i.to) && (a = De.range(i.from == i.anchor ? o : s, i.from == i.head ? o : s));
  99800. }
  99801. a && (n || (n = e.ranges.slice()), n[r] = a);
  99802. }
  99803. return n ? De.create(n, e.mainIndex) : e;
  99804. }
  99805. select(e) {
  99806. let { view: n } = this, r = this.skipAtoms(this.style.get(e, this.extend, this.multiple));
  99807. (this.mustSelect || !r.eq(n.state.selection, this.dragging === !1)) && this.view.dispatch({
  99808. selection: r,
  99809. userEvent: "select.pointer"
  99810. }), this.mustSelect = !1;
  99811. }
  99812. update(e) {
  99813. e.transactions.some((n) => n.isUserEvent("input.type")) ? this.destroy() : this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20);
  99814. }
  99815. }
  99816. function Rxt(t, e) {
  99817. let n = t.state.facet(lve);
  99818. return n.length ? n[0](e) : lt.mac ? e.metaKey : e.ctrlKey;
  99819. }
  99820. function kxt(t, e) {
  99821. let n = t.state.facet(uve);
  99822. return n.length ? n[0](e) : lt.mac ? !e.altKey : !e.ctrlKey;
  99823. }
  99824. function Lxt(t, e) {
  99825. let { main: n } = t.state.selection;
  99826. if (n.empty)
  99827. return !1;
  99828. let r = y_(t.root);
  99829. if (!r || r.rangeCount == 0)
  99830. return !0;
  99831. let i = r.getRangeAt(0).getClientRects();
  99832. for (let a = 0; a < i.length; a++) {
  99833. let o = i[a];
  99834. if (o.left <= e.clientX && o.right >= e.clientX && o.top <= e.clientY && o.bottom >= e.clientY)
  99835. return !0;
  99836. }
  99837. return !1;
  99838. }
  99839. function Nxt(t, e) {
  99840. if (!e.bubbles)
  99841. return !0;
  99842. if (e.defaultPrevented)
  99843. return !1;
  99844. for (let n = e.target, r; n != t.contentDOM; n = n.parentNode)
  99845. if (!n || n.nodeType == 11 || (r = Qn.get(n)) && r.ignoreEvent(e))
  99846. return !1;
  99847. return !0;
  99848. }
  99849. const Xs = /* @__PURE__ */ Object.create(null), us = /* @__PURE__ */ Object.create(null), Pve = lt.ie && lt.ie_version < 15 || lt.ios && lt.webkit_version < 604;
  99850. function Bxt(t) {
  99851. let e = t.dom.parentNode;
  99852. if (!e)
  99853. return;
  99854. let n = e.appendChild(document.createElement("textarea"));
  99855. n.style.cssText = "position: fixed; left: -10000px; top: 10px", n.focus(), setTimeout(() => {
  99856. t.focus(), n.remove(), $ve(t, n.value);
  99857. }, 50);
  99858. }
  99859. function $ve(t, e) {
  99860. let { state: n } = t, r, i = 1, a = n.toText(e), o = a.lines == n.selection.ranges.length;
  99861. if (w4 != null && n.selection.ranges.every((l) => l.empty) && w4 == a.toString()) {
  99862. let l = -1;
  99863. r = n.changeByRange((u) => {
  99864. let c = n.doc.lineAt(u.from);
  99865. if (c.from == l)
  99866. return { range: u };
  99867. l = c.from;
  99868. let f = n.toText((o ? a.line(i++).text : e) + n.lineBreak);
  99869. return {
  99870. changes: { from: c.from, insert: f },
  99871. range: De.cursor(u.from + f.length)
  99872. };
  99873. });
  99874. } else o ? r = n.changeByRange((l) => {
  99875. let u = a.line(i++);
  99876. return {
  99877. changes: { from: l.from, to: l.to, insert: u.text },
  99878. range: De.cursor(l.from + u.length)
  99879. };
  99880. }) : r = n.replaceSelection(a);
  99881. t.dispatch(r, {
  99882. userEvent: "input.paste",
  99883. scrollIntoView: !0
  99884. });
  99885. }
  99886. us.scroll = (t) => {
  99887. t.inputState.lastScrollTop = t.scrollDOM.scrollTop, t.inputState.lastScrollLeft = t.scrollDOM.scrollLeft;
  99888. };
  99889. Xs.keydown = (t, e) => (t.inputState.setSelectionOrigin("select"), e.keyCode == 27 && t.inputState.tabFocusMode != 0 && (t.inputState.tabFocusMode = Date.now() + 2e3), !1);
  99890. us.touchstart = (t, e) => {
  99891. t.inputState.lastTouchTime = Date.now(), t.inputState.setSelectionOrigin("select.pointer");
  99892. };
  99893. us.touchmove = (t) => {
  99894. t.inputState.setSelectionOrigin("select.pointer");
  99895. };
  99896. Xs.mousedown = (t, e) => {
  99897. if (t.observer.flush(), t.inputState.lastTouchTime > Date.now() - 2e3)
  99898. return !1;
  99899. let n = null;
  99900. for (let r of t.state.facet(cve))
  99901. if (n = r(t, e), n)
  99902. break;
  99903. if (!n && e.button == 0 && (n = Fxt(t, e)), n) {
  99904. let r = !t.hasFocus;
  99905. t.inputState.startMouseSelection(new Dxt(t, e, n, r)), r && t.observer.ignore(() => {
  99906. Qpe(t.contentDOM);
  99907. let a = t.root.activeElement;
  99908. a && !a.contains(t.contentDOM) && a.blur();
  99909. });
  99910. let i = t.inputState.mouseSelection;
  99911. if (i)
  99912. return i.start(e), i.dragging === !1;
  99913. }
  99914. return !1;
  99915. };
  99916. function EK(t, e, n, r) {
  99917. if (r == 1)
  99918. return De.cursor(e, n);
  99919. if (r == 2)
  99920. return Oxt(t.state, e, n);
  99921. {
  99922. let i = Rr.find(t.docView, e), a = t.state.doc.lineAt(i ? i.posAtEnd : e), o = i ? i.posAtStart : a.from, s = i ? i.posAtEnd : a.to;
  99923. return s < t.state.doc.length && s == a.to && s++, De.range(o, s);
  99924. }
  99925. }
  99926. let Ave = (t, e) => t >= e.top && t <= e.bottom, MK = (t, e, n) => Ave(e, n) && t >= n.left && t <= n.right;
  99927. function zxt(t, e, n, r) {
  99928. let i = Rr.find(t.docView, e);
  99929. if (!i)
  99930. return 1;
  99931. let a = e - i.posAtStart;
  99932. if (a == 0)
  99933. return 1;
  99934. if (a == i.length)
  99935. return -1;
  99936. let o = i.coordsAt(a, -1);
  99937. if (o && MK(n, r, o))
  99938. return -1;
  99939. let s = i.coordsAt(a, 1);
  99940. return s && MK(n, r, s) ? 1 : o && Ave(r, o) ? -1 : 1;
  99941. }
  99942. function IK(t, e) {
  99943. let n = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
  99944. return { pos: n, bias: zxt(t, n, e.clientX, e.clientY) };
  99945. }
  99946. const Vxt = lt.ie && lt.ie_version <= 11;
  99947. let DK = null, RK = 0, kK = 0;
  99948. function Eve(t) {
  99949. if (!Vxt)
  99950. return t.detail;
  99951. let e = DK, n = kK;
  99952. return DK = t, kK = Date.now(), RK = !e || n > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (RK + 1) % 3 : 1;
  99953. }
  99954. function Fxt(t, e) {
  99955. let n = IK(t, e), r = Eve(e), i = t.state.selection;
  99956. return {
  99957. update(a) {
  99958. a.docChanged && (n.pos = a.changes.mapPos(n.pos), i = i.map(a.changes));
  99959. },
  99960. get(a, o, s) {
  99961. let l = IK(t, a), u, c = EK(t, l.pos, l.bias, r);
  99962. if (n.pos != l.pos && !o) {
  99963. let f = EK(t, n.pos, n.bias, r), d = Math.min(f.from, c.from), h = Math.max(f.to, c.to);
  99964. c = d < c.from ? De.range(d, h) : De.range(h, d);
  99965. }
  99966. return o ? i.replaceRange(i.main.extend(c.from, c.to)) : s && r == 1 && i.ranges.length > 1 && (u = Wxt(i, l.pos)) ? u : s ? i.addRange(c) : De.create([c]);
  99967. }
  99968. };
  99969. }
  99970. function Wxt(t, e) {
  99971. for (let n = 0; n < t.ranges.length; n++) {
  99972. let { from: r, to: i } = t.ranges[n];
  99973. if (r <= e && i >= e)
  99974. return De.create(t.ranges.slice(0, n).concat(t.ranges.slice(n + 1)), t.mainIndex == n ? 0 : t.mainIndex - (t.mainIndex > n ? 1 : 0));
  99975. }
  99976. return null;
  99977. }
  99978. Xs.dragstart = (t, e) => {
  99979. let { selection: { main: n } } = t.state;
  99980. if (e.target.draggable) {
  99981. let i = t.docView.nearest(e.target);
  99982. if (i && i.isWidget) {
  99983. let a = i.posAtStart, o = a + i.length;
  99984. (a >= n.to || o <= n.from) && (n = De.range(a, o));
  99985. }
  99986. }
  99987. let { inputState: r } = t;
  99988. return r.mouseSelection && (r.mouseSelection.dragging = !0), r.draggedContent = n, e.dataTransfer && (e.dataTransfer.setData("Text", t.state.sliceDoc(n.from, n.to)), e.dataTransfer.effectAllowed = "copyMove"), !1;
  99989. };
  99990. Xs.dragend = (t) => (t.inputState.draggedContent = null, !1);
  99991. function LK(t, e, n, r) {
  99992. if (!n)
  99993. return;
  99994. let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: a } = t.inputState, o = r && a && kxt(t, e) ? { from: a.from, to: a.to } : null, s = { from: i, insert: n }, l = t.state.changes(o ? [o, s] : s);
  99995. t.focus(), t.dispatch({
  99996. changes: l,
  99997. selection: { anchor: l.mapPos(i, -1), head: l.mapPos(i, 1) },
  99998. userEvent: o ? "move.drop" : "input.drop"
  99999. }), t.inputState.draggedContent = null;
  100000. }
  100001. Xs.drop = (t, e) => {
  100002. if (!e.dataTransfer)
  100003. return !1;
  100004. if (t.state.readOnly)
  100005. return !0;
  100006. let n = e.dataTransfer.files;
  100007. if (n && n.length) {
  100008. let r = Array(n.length), i = 0, a = () => {
  100009. ++i == n.length && LK(t, e, r.filter((o) => o != null).join(t.state.lineBreak), !1);
  100010. };
  100011. for (let o = 0; o < n.length; o++) {
  100012. let s = new FileReader();
  100013. s.onerror = a, s.onload = () => {
  100014. /[\x00-\x08\x0e-\x1f]{2}/.test(s.result) || (r[o] = s.result), a();
  100015. }, s.readAsText(n[o]);
  100016. }
  100017. return !0;
  100018. } else {
  100019. let r = e.dataTransfer.getData("Text");
  100020. if (r)
  100021. return LK(t, e, r, !0), !0;
  100022. }
  100023. return !1;
  100024. };
  100025. Xs.paste = (t, e) => {
  100026. if (t.state.readOnly)
  100027. return !0;
  100028. t.observer.flush();
  100029. let n = Pve ? null : e.clipboardData;
  100030. return n ? ($ve(t, n.getData("text/plain") || n.getData("text/uri-list")), !0) : (Bxt(t), !1);
  100031. };
  100032. function Qxt(t, e) {
  100033. let n = t.dom.parentNode;
  100034. if (!n)
  100035. return;
  100036. let r = n.appendChild(document.createElement("textarea"));
  100037. r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.value = e, r.focus(), r.selectionEnd = e.length, r.selectionStart = 0, setTimeout(() => {
  100038. r.remove(), t.focus();
  100039. }, 50);
  100040. }
  100041. function Hxt(t) {
  100042. let e = [], n = [], r = !1;
  100043. for (let i of t.selection.ranges)
  100044. i.empty || (e.push(t.sliceDoc(i.from, i.to)), n.push(i));
  100045. if (!e.length) {
  100046. let i = -1;
  100047. for (let { from: a } of t.selection.ranges) {
  100048. let o = t.doc.lineAt(a);
  100049. o.number > i && (e.push(o.text), n.push({ from: o.from, to: Math.min(t.doc.length, o.to + 1) })), i = o.number;
  100050. }
  100051. r = !0;
  100052. }
  100053. return { text: e.join(t.lineBreak), ranges: n, linewise: r };
  100054. }
  100055. let w4 = null;
  100056. Xs.copy = Xs.cut = (t, e) => {
  100057. let { text: n, ranges: r, linewise: i } = Hxt(t.state);
  100058. if (!n && !i)
  100059. return !1;
  100060. w4 = i ? n : null, e.type == "cut" && !t.state.readOnly && t.dispatch({
  100061. changes: r,
  100062. scrollIntoView: !0,
  100063. userEvent: "delete.cut"
  100064. });
  100065. let a = Pve ? null : e.clipboardData;
  100066. return a ? (a.clearData(), a.setData("text/plain", n), !0) : (Qxt(t, n), !1);
  100067. };
  100068. const Mve = /* @__PURE__ */ ac.define();
  100069. function Ive(t, e) {
  100070. let n = [];
  100071. for (let r of t.facet(hve)) {
  100072. let i = r(t, e);
  100073. i && n.push(i);
  100074. }
  100075. return n ? t.update({ effects: n, annotations: Mve.of(!0) }) : null;
  100076. }
  100077. function Dve(t) {
  100078. setTimeout(() => {
  100079. let e = t.hasFocus;
  100080. if (e != t.inputState.notifiedFocused) {
  100081. let n = Ive(t.state, e);
  100082. n ? t.dispatch(n) : t.update([]);
  100083. }
  100084. }, 10);
  100085. }
  100086. us.focus = (t) => {
  100087. t.inputState.lastFocusTime = Date.now(), !t.scrollDOM.scrollTop && (t.inputState.lastScrollTop || t.inputState.lastScrollLeft) && (t.scrollDOM.scrollTop = t.inputState.lastScrollTop, t.scrollDOM.scrollLeft = t.inputState.lastScrollLeft), Dve(t);
  100088. };
  100089. us.blur = (t) => {
  100090. t.observer.clearSelectionRange(), Dve(t);
  100091. };
  100092. us.compositionstart = us.compositionupdate = (t) => {
  100093. t.observer.editContext || (t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0));
  100094. };
  100095. us.compositionend = (t) => {
  100096. t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, lt.chrome && lt.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => {
  100097. t.inputState.composing < 0 && t.docView.hasComposition && t.update([]);
  100098. }, 50));
  100099. };
  100100. us.contextmenu = (t) => {
  100101. t.inputState.lastContextMenu = Date.now();
  100102. };
  100103. Xs.beforeinput = (t, e) => {
  100104. var n;
  100105. let r;
  100106. if (lt.chrome && lt.android && (r = Cve.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(r.key, r.keyCode), r.key == "Backspace" || r.key == "Delete")) {
  100107. let i = ((n = window.visualViewport) === null || n === void 0 ? void 0 : n.height) || 0;
  100108. setTimeout(() => {
  100109. var a;
  100110. (((a = window.visualViewport) === null || a === void 0 ? void 0 : a.height) || 0) > i + 10 && t.hasFocus && (t.contentDOM.blur(), t.focus());
  100111. }, 100);
  100112. }
  100113. return lt.ios && e.inputType == "deleteContentForward" && t.observer.flushSoon(), lt.safari && e.inputType == "insertText" && t.inputState.composing >= 0 && setTimeout(() => us.compositionend(t, e), 20), !1;
  100114. };
  100115. const NK = /* @__PURE__ */ new Set();
  100116. function Gxt(t) {
  100117. NK.has(t) || (NK.add(t), t.addEventListener("copy", () => {
  100118. }), t.addEventListener("cut", () => {
  100119. }));
  100120. }
  100121. const BK = ["pre-wrap", "normal", "pre-line", "break-spaces"];
  100122. class jxt {
  100123. constructor(e) {
  100124. this.lineWrapping = e, this.doc = xn.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1;
  100125. }
  100126. heightForGap(e, n) {
  100127. let r = this.doc.lineAt(n).number - this.doc.lineAt(e).number + 1;
  100128. return this.lineWrapping && (r += Math.max(0, Math.ceil((n - e - r * this.lineLength * 0.5) / this.lineLength))), this.lineHeight * r;
  100129. }
  100130. heightForLine(e) {
  100131. return this.lineWrapping ? (1 + Math.max(0, Math.ceil((e - this.lineLength) / (this.lineLength - 5)))) * this.lineHeight : this.lineHeight;
  100132. }
  100133. setDoc(e) {
  100134. return this.doc = e, this;
  100135. }
  100136. mustRefreshForWrapping(e) {
  100137. return BK.indexOf(e) > -1 != this.lineWrapping;
  100138. }
  100139. mustRefreshForHeights(e) {
  100140. let n = !1;
  100141. for (let r = 0; r < e.length; r++) {
  100142. let i = e[r];
  100143. i < 0 ? r++ : this.heightSamples[Math.floor(i * 10)] || (n = !0, this.heightSamples[Math.floor(i * 10)] = !0);
  100144. }
  100145. return n;
  100146. }
  100147. refresh(e, n, r, i, a, o) {
  100148. let s = BK.indexOf(e) > -1, l = Math.round(n) != Math.round(this.lineHeight) || this.lineWrapping != s;
  100149. if (this.lineWrapping = s, this.lineHeight = n, this.charWidth = r, this.textHeight = i, this.lineLength = a, l) {
  100150. this.heightSamples = {};
  100151. for (let u = 0; u < o.length; u++) {
  100152. let c = o[u];
  100153. c < 0 ? u++ : this.heightSamples[Math.floor(c * 10)] = !0;
  100154. }
  100155. }
  100156. return l;
  100157. }
  100158. }
  100159. class Zxt {
  100160. constructor(e, n) {
  100161. this.from = e, this.heights = n, this.index = 0;
  100162. }
  100163. get more() {
  100164. return this.index < this.heights.length;
  100165. }
  100166. }
  100167. class Tl {
  100168. /**
  100169. @internal
  100170. */
  100171. constructor(e, n, r, i, a) {
  100172. this.from = e, this.length = n, this.top = r, this.height = i, this._content = a;
  100173. }
  100174. /**
  100175. The type of element this is. When querying lines, this may be
  100176. an array of all the blocks that make up the line.
  100177. */
  100178. get type() {
  100179. return typeof this._content == "number" ? la.Text : Array.isArray(this._content) ? this._content : this._content.type;
  100180. }
  100181. /**
  100182. The end of the element as a document position.
  100183. */
  100184. get to() {
  100185. return this.from + this.length;
  100186. }
  100187. /**
  100188. The bottom position of the element.
  100189. */
  100190. get bottom() {
  100191. return this.top + this.height;
  100192. }
  100193. /**
  100194. If this is a widget block, this will return the widget
  100195. associated with it.
  100196. */
  100197. get widget() {
  100198. return this._content instanceof Pf ? this._content.widget : null;
  100199. }
  100200. /**
  100201. If this is a textblock, this holds the number of line breaks
  100202. that appear in widgets inside the block.
  100203. */
  100204. get widgetLineBreaks() {
  100205. return typeof this._content == "number" ? this._content : 0;
  100206. }
  100207. /**
  100208. @internal
  100209. */
  100210. join(e) {
  100211. let n = (Array.isArray(this._content) ? this._content : [this]).concat(Array.isArray(e._content) ? e._content : [e]);
  100212. return new Tl(this.from, this.length + e.length, this.top, this.height + e.height, n);
  100213. }
  100214. }
  100215. var er = /* @__PURE__ */ function(t) {
  100216. return t[t.ByPos = 0] = "ByPos", t[t.ByHeight = 1] = "ByHeight", t[t.ByPosNoHeight = 2] = "ByPosNoHeight", t;
  100217. }(er || (er = {}));
  100218. const Ew = 1e-3;
  100219. class ua {
  100220. constructor(e, n, r = 2) {
  100221. this.length = e, this.height = n, this.flags = r;
  100222. }
  100223. get outdated() {
  100224. return (this.flags & 2) > 0;
  100225. }
  100226. set outdated(e) {
  100227. this.flags = (e ? 2 : 0) | this.flags & -3;
  100228. }
  100229. setHeight(e, n) {
  100230. this.height != n && (Math.abs(this.height - n) > Ew && (e.heightChanged = !0), this.height = n);
  100231. }
  100232. // Base case is to replace a leaf node, which simply builds a tree
  100233. // from the new nodes and returns that (HeightMapBranch and
  100234. // HeightMapGap override this to actually use from/to)
  100235. replace(e, n, r) {
  100236. return ua.of(r);
  100237. }
  100238. // Again, these are base cases, and are overridden for branch and gap nodes.
  100239. decomposeLeft(e, n) {
  100240. n.push(this);
  100241. }
  100242. decomposeRight(e, n) {
  100243. n.push(this);
  100244. }
  100245. applyChanges(e, n, r, i) {
  100246. let a = this, o = r.doc;
  100247. for (let s = i.length - 1; s >= 0; s--) {
  100248. let { fromA: l, toA: u, fromB: c, toB: f } = i[s], d = a.lineAt(l, er.ByPosNoHeight, r.setDoc(n), 0, 0), h = d.to >= u ? d : a.lineAt(u, er.ByPosNoHeight, r, 0, 0);
  100249. for (f += h.to - u, u = h.to; s > 0 && d.from <= i[s - 1].toA; )
  100250. l = i[s - 1].fromA, c = i[s - 1].fromB, s--, l < d.from && (d = a.lineAt(l, er.ByPosNoHeight, r, 0, 0));
  100251. c += d.from - l, l = d.from;
  100252. let p = oB.build(r.setDoc(o), e, c, f);
  100253. a = a.replace(l, u, p);
  100254. }
  100255. return a.updateHeight(r, 0);
  100256. }
  100257. static empty() {
  100258. return new eo(0, 0);
  100259. }
  100260. // nodes uses null values to indicate the position of line breaks.
  100261. // There are never line breaks at the start or end of the array, or
  100262. // two line breaks next to each other, and the array isn't allowed
  100263. // to be empty (same restrictions as return value from the builder).
  100264. static of(e) {
  100265. if (e.length == 1)
  100266. return e[0];
  100267. let n = 0, r = e.length, i = 0, a = 0;
  100268. for (; ; )
  100269. if (n == r)
  100270. if (i > a * 2) {
  100271. let s = e[n - 1];
  100272. s.break ? e.splice(--n, 1, s.left, null, s.right) : e.splice(--n, 1, s.left, s.right), r += 1 + s.break, i -= s.size;
  100273. } else if (a > i * 2) {
  100274. let s = e[r];
  100275. s.break ? e.splice(r, 1, s.left, null, s.right) : e.splice(r, 1, s.left, s.right), r += 2 + s.break, a -= s.size;
  100276. } else
  100277. break;
  100278. else if (i < a) {
  100279. let s = e[n++];
  100280. s && (i += s.size);
  100281. } else {
  100282. let s = e[--r];
  100283. s && (a += s.size);
  100284. }
  100285. let o = 0;
  100286. return e[n - 1] == null ? (o = 1, n--) : e[n] == null && (o = 1, r++), new Uxt(ua.of(e.slice(0, n)), o, ua.of(e.slice(r)));
  100287. }
  100288. }
  100289. ua.prototype.size = 1;
  100290. class Rve extends ua {
  100291. constructor(e, n, r) {
  100292. super(e, n), this.deco = r;
  100293. }
  100294. blockAt(e, n, r, i) {
  100295. return new Tl(i, this.length, r, this.height, this.deco || 0);
  100296. }
  100297. lineAt(e, n, r, i, a) {
  100298. return this.blockAt(0, r, i, a);
  100299. }
  100300. forEachLine(e, n, r, i, a, o) {
  100301. e <= a + this.length && n >= a && o(this.blockAt(0, r, i, a));
  100302. }
  100303. updateHeight(e, n = 0, r = !1, i) {
  100304. return i && i.from <= n && i.more && this.setHeight(e, i.heights[i.index++]), this.outdated = !1, this;
  100305. }
  100306. toString() {
  100307. return `block(${this.length})`;
  100308. }
  100309. }
  100310. class eo extends Rve {
  100311. constructor(e, n) {
  100312. super(e, n, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0;
  100313. }
  100314. blockAt(e, n, r, i) {
  100315. return new Tl(i, this.length, r, this.height, this.breaks);
  100316. }
  100317. replace(e, n, r) {
  100318. let i = r[0];
  100319. return r.length == 1 && (i instanceof eo || i instanceof vi && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof vi ? i = new eo(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : ua.of(r);
  100320. }
  100321. updateHeight(e, n = 0, r = !1, i) {
  100322. return i && i.from <= n && i.more ? this.setHeight(e, i.heights[i.index++]) : (r || this.outdated) && this.setHeight(e, Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight), this.outdated = !1, this;
  100323. }
  100324. toString() {
  100325. return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
  100326. }
  100327. }
  100328. class vi extends ua {
  100329. constructor(e) {
  100330. super(e, 0);
  100331. }
  100332. heightMetrics(e, n) {
  100333. let r = e.doc.lineAt(n).number, i = e.doc.lineAt(n + this.length).number, a = i - r + 1, o, s = 0;
  100334. if (e.lineWrapping) {
  100335. let l = Math.min(this.height, e.lineHeight * a);
  100336. o = l / a, this.length > a + 1 && (s = (this.height - l) / (this.length - a - 1));
  100337. } else
  100338. o = this.height / a;
  100339. return { firstLine: r, lastLine: i, perLine: o, perChar: s };
  100340. }
  100341. blockAt(e, n, r, i) {
  100342. let { firstLine: a, lastLine: o, perLine: s, perChar: l } = this.heightMetrics(n, i);
  100343. if (n.lineWrapping) {
  100344. let u = i + (e < n.lineHeight ? 0 : Math.round(Math.max(0, Math.min(1, (e - r) / this.height)) * this.length)), c = n.doc.lineAt(u), f = s + c.length * l, d = Math.max(r, e - f / 2);
  100345. return new Tl(c.from, c.length, d, f, 0);
  100346. } else {
  100347. let u = Math.max(0, Math.min(o - a, Math.floor((e - r) / s))), { from: c, length: f } = n.doc.line(a + u);
  100348. return new Tl(c, f, r + s * u, s, 0);
  100349. }
  100350. }
  100351. lineAt(e, n, r, i, a) {
  100352. if (n == er.ByHeight)
  100353. return this.blockAt(e, r, i, a);
  100354. if (n == er.ByPosNoHeight) {
  100355. let { from: h, to: p } = r.doc.lineAt(e);
  100356. return new Tl(h, p - h, 0, 0, 0);
  100357. }
  100358. let { firstLine: o, perLine: s, perChar: l } = this.heightMetrics(r, a), u = r.doc.lineAt(e), c = s + u.length * l, f = u.number - o, d = i + s * f + l * (u.from - a - f);
  100359. return new Tl(u.from, u.length, Math.max(i, Math.min(d, i + this.height - c)), c, 0);
  100360. }
  100361. forEachLine(e, n, r, i, a, o) {
  100362. e = Math.max(e, a), n = Math.min(n, a + this.length);
  100363. let { firstLine: s, perLine: l, perChar: u } = this.heightMetrics(r, a);
  100364. for (let c = e, f = i; c <= n; ) {
  100365. let d = r.doc.lineAt(c);
  100366. if (c == e) {
  100367. let p = d.number - s;
  100368. f += l * p + u * (e - a - p);
  100369. }
  100370. let h = l + u * d.length;
  100371. o(new Tl(d.from, d.length, f, h, 0)), f += h, c = d.to + 1;
  100372. }
  100373. }
  100374. replace(e, n, r) {
  100375. let i = this.length - n;
  100376. if (i > 0) {
  100377. let a = r[r.length - 1];
  100378. a instanceof vi ? r[r.length - 1] = new vi(a.length + i) : r.push(null, new vi(i - 1));
  100379. }
  100380. if (e > 0) {
  100381. let a = r[0];
  100382. a instanceof vi ? r[0] = new vi(e + a.length) : r.unshift(new vi(e - 1), null);
  100383. }
  100384. return ua.of(r);
  100385. }
  100386. decomposeLeft(e, n) {
  100387. n.push(new vi(e - 1), null);
  100388. }
  100389. decomposeRight(e, n) {
  100390. n.push(null, new vi(this.length - e - 1));
  100391. }
  100392. updateHeight(e, n = 0, r = !1, i) {
  100393. let a = n + this.length;
  100394. if (i && i.from <= n + this.length && i.more) {
  100395. let o = [], s = Math.max(n, i.from), l = -1;
  100396. for (i.from > n && o.push(new vi(i.from - n - 1).updateHeight(e, n)); s <= a && i.more; ) {
  100397. let c = e.doc.lineAt(s).length;
  100398. o.length && o.push(null);
  100399. let f = i.heights[i.index++];
  100400. l == -1 ? l = f : Math.abs(f - l) >= Ew && (l = -2);
  100401. let d = new eo(c, f);
  100402. d.outdated = !1, o.push(d), s += c + 1;
  100403. }
  100404. s <= a && o.push(null, new vi(a - s).updateHeight(e, s));
  100405. let u = ua.of(o);
  100406. return (l < 0 || Math.abs(u.height - this.height) >= Ew || Math.abs(l - this.heightMetrics(e, n).perLine) >= Ew) && (e.heightChanged = !0), u;
  100407. } else (r || this.outdated) && (this.setHeight(e, e.heightForGap(n, n + this.length)), this.outdated = !1);
  100408. return this;
  100409. }
  100410. toString() {
  100411. return `gap(${this.length})`;
  100412. }
  100413. }
  100414. class Uxt extends ua {
  100415. constructor(e, n, r) {
  100416. super(e.length + n + r.length, e.height + r.height, n | (e.outdated || r.outdated ? 2 : 0)), this.left = e, this.right = r, this.size = e.size + r.size;
  100417. }
  100418. get break() {
  100419. return this.flags & 1;
  100420. }
  100421. blockAt(e, n, r, i) {
  100422. let a = r + this.left.height;
  100423. return e < a ? this.left.blockAt(e, n, r, i) : this.right.blockAt(e, n, a, i + this.left.length + this.break);
  100424. }
  100425. lineAt(e, n, r, i, a) {
  100426. let o = i + this.left.height, s = a + this.left.length + this.break, l = n == er.ByHeight ? e < o : e < s, u = l ? this.left.lineAt(e, n, r, i, a) : this.right.lineAt(e, n, r, o, s);
  100427. if (this.break || (l ? u.to < s : u.from > s))
  100428. return u;
  100429. let c = n == er.ByPosNoHeight ? er.ByPosNoHeight : er.ByPos;
  100430. return l ? u.join(this.right.lineAt(s, c, r, o, s)) : this.left.lineAt(s, c, r, i, a).join(u);
  100431. }
  100432. forEachLine(e, n, r, i, a, o) {
  100433. let s = i + this.left.height, l = a + this.left.length + this.break;
  100434. if (this.break)
  100435. e < l && this.left.forEachLine(e, n, r, i, a, o), n >= l && this.right.forEachLine(e, n, r, s, l, o);
  100436. else {
  100437. let u = this.lineAt(l, er.ByPos, r, i, a);
  100438. e < u.from && this.left.forEachLine(e, u.from - 1, r, i, a, o), u.to >= e && u.from <= n && o(u), n > u.to && this.right.forEachLine(u.to + 1, n, r, s, l, o);
  100439. }
  100440. }
  100441. replace(e, n, r) {
  100442. let i = this.left.length + this.break;
  100443. if (n < i)
  100444. return this.balanced(this.left.replace(e, n, r), this.right);
  100445. if (e > this.left.length)
  100446. return this.balanced(this.left, this.right.replace(e - i, n - i, r));
  100447. let a = [];
  100448. e > 0 && this.decomposeLeft(e, a);
  100449. let o = a.length;
  100450. for (let s of r)
  100451. a.push(s);
  100452. if (e > 0 && zK(a, o - 1), n < this.length) {
  100453. let s = a.length;
  100454. this.decomposeRight(n, a), zK(a, s);
  100455. }
  100456. return ua.of(a);
  100457. }
  100458. decomposeLeft(e, n) {
  100459. let r = this.left.length;
  100460. if (e <= r)
  100461. return this.left.decomposeLeft(e, n);
  100462. n.push(this.left), this.break && (r++, e >= r && n.push(null)), e > r && this.right.decomposeLeft(e - r, n);
  100463. }
  100464. decomposeRight(e, n) {
  100465. let r = this.left.length, i = r + this.break;
  100466. if (e >= i)
  100467. return this.right.decomposeRight(e - i, n);
  100468. e < r && this.left.decomposeRight(e, n), this.break && e < i && n.push(null), n.push(this.right);
  100469. }
  100470. balanced(e, n) {
  100471. return e.size > 2 * n.size || n.size > 2 * e.size ? ua.of(this.break ? [e, null, n] : [e, n]) : (this.left = e, this.right = n, this.height = e.height + n.height, this.outdated = e.outdated || n.outdated, this.size = e.size + n.size, this.length = e.length + this.break + n.length, this);
  100472. }
  100473. updateHeight(e, n = 0, r = !1, i) {
  100474. let { left: a, right: o } = this, s = n + a.length + this.break, l = null;
  100475. return i && i.from <= n + a.length && i.more ? l = a = a.updateHeight(e, n, r, i) : a.updateHeight(e, n, r), i && i.from <= s + o.length && i.more ? l = o = o.updateHeight(e, s, r, i) : o.updateHeight(e, s, r), l ? this.balanced(a, o) : (this.height = this.left.height + this.right.height, this.outdated = !1, this);
  100476. }
  100477. toString() {
  100478. return this.left + (this.break ? " " : "-") + this.right;
  100479. }
  100480. }
  100481. function zK(t, e) {
  100482. let n, r;
  100483. t[e] == null && (n = t[e - 1]) instanceof vi && (r = t[e + 1]) instanceof vi && t.splice(e - 1, 3, new vi(n.length + 1 + r.length));
  100484. }
  100485. const Xxt = 5;
  100486. class oB {
  100487. constructor(e, n) {
  100488. this.pos = e, this.oracle = n, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e;
  100489. }
  100490. get isCovered() {
  100491. return this.covering && this.nodes[this.nodes.length - 1] == this.covering;
  100492. }
  100493. span(e, n) {
  100494. if (this.lineStart > -1) {
  100495. let r = Math.min(n, this.lineEnd), i = this.nodes[this.nodes.length - 1];
  100496. i instanceof eo ? i.length += r - this.pos : (r > this.pos || !this.isCovered) && this.nodes.push(new eo(r - this.pos, -1)), this.writtenTo = r, n > r && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
  100497. }
  100498. this.pos = n;
  100499. }
  100500. point(e, n, r) {
  100501. if (e < n || r.heightRelevant) {
  100502. let i = r.widget ? r.widget.estimatedHeight : 0, a = r.widget ? r.widget.lineBreaks : 0;
  100503. i < 0 && (i = this.oracle.lineHeight);
  100504. let o = n - e;
  100505. r.block ? this.addBlock(new Rve(o, i, r)) : (o || a || i >= Xxt) && this.addLineDeco(i, a, o);
  100506. } else n > e && this.span(e, n);
  100507. this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to);
  100508. }
  100509. enterLine() {
  100510. if (this.lineStart > -1)
  100511. return;
  100512. let { from: e, to: n } = this.oracle.doc.lineAt(this.pos);
  100513. this.lineStart = e, this.lineEnd = n, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new eo(this.pos - e, -1)), this.writtenTo = this.pos;
  100514. }
  100515. blankContent(e, n) {
  100516. let r = new vi(n - e);
  100517. return this.oracle.doc.lineAt(e).to == n && (r.flags |= 4), r;
  100518. }
  100519. ensureLine() {
  100520. this.enterLine();
  100521. let e = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
  100522. if (e instanceof eo)
  100523. return e;
  100524. let n = new eo(0, -1);
  100525. return this.nodes.push(n), n;
  100526. }
  100527. addBlock(e) {
  100528. this.enterLine();
  100529. let n = e.deco;
  100530. n && n.startSide > 0 && !this.isCovered && this.ensureLine(), this.nodes.push(e), this.writtenTo = this.pos = this.pos + e.length, n && n.endSide > 0 && (this.covering = e);
  100531. }
  100532. addLineDeco(e, n, r) {
  100533. let i = this.ensureLine();
  100534. i.length += r, i.collapsed += r, i.widgetHeight = Math.max(i.widgetHeight, e), i.breaks += n, this.writtenTo = this.pos = this.pos + r;
  100535. }
  100536. finish(e) {
  100537. let n = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
  100538. this.lineStart > -1 && !(n instanceof eo) && !this.isCovered ? this.nodes.push(new eo(0, -1)) : (this.writtenTo < this.pos || n == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
  100539. let r = e;
  100540. for (let i of this.nodes)
  100541. i instanceof eo && i.updateHeight(this.oracle, r), r += i ? i.length : 1;
  100542. return this.nodes;
  100543. }
  100544. // Always called with a region that on both sides either stretches
  100545. // to a line break or the end of the document.
  100546. // The returned array uses null to indicate line breaks, but never
  100547. // starts or ends in a line break, or has multiple line breaks next
  100548. // to each other.
  100549. static build(e, n, r, i) {
  100550. let a = new oB(r, e);
  100551. return Sn.spans(n, r, i, a, 0), a.finish(r);
  100552. }
  100553. }
  100554. function Yxt(t, e, n) {
  100555. let r = new qxt();
  100556. return Sn.compare(t, e, n, r, 0), r.changes;
  100557. }
  100558. class qxt {
  100559. constructor() {
  100560. this.changes = [];
  100561. }
  100562. compareRange() {
  100563. }
  100564. comparePoint(e, n, r, i) {
  100565. (e < n || r && r.heightRelevant || i && i.heightRelevant) && m4(e, n, this.changes, 5);
  100566. }
  100567. }
  100568. function Kxt(t, e) {
  100569. let n = t.getBoundingClientRect(), r = t.ownerDocument, i = r.defaultView || window, a = Math.max(0, n.left), o = Math.min(i.innerWidth, n.right), s = Math.max(0, n.top), l = Math.min(i.innerHeight, n.bottom);
  100570. for (let u = t.parentNode; u && u != r.body; )
  100571. if (u.nodeType == 1) {
  100572. let c = u, f = window.getComputedStyle(c);
  100573. if ((c.scrollHeight > c.clientHeight || c.scrollWidth > c.clientWidth) && f.overflow != "visible") {
  100574. let d = c.getBoundingClientRect();
  100575. a = Math.max(a, d.left), o = Math.min(o, d.right), s = Math.max(s, d.top), l = u == t.parentNode ? d.bottom : Math.min(l, d.bottom);
  100576. }
  100577. u = f.position == "absolute" || f.position == "fixed" ? c.offsetParent : c.parentNode;
  100578. } else if (u.nodeType == 11)
  100579. u = u.host;
  100580. else
  100581. break;
  100582. return {
  100583. left: a - n.left,
  100584. right: Math.max(a, o) - n.left,
  100585. top: s - (n.top + e),
  100586. bottom: Math.max(s, l) - (n.top + e)
  100587. };
  100588. }
  100589. function Jxt(t, e) {
  100590. let n = t.getBoundingClientRect();
  100591. return {
  100592. left: 0,
  100593. right: n.right - n.left,
  100594. top: e,
  100595. bottom: n.bottom - (n.top + e)
  100596. };
  100597. }
  100598. class aD {
  100599. constructor(e, n, r) {
  100600. this.from = e, this.to = n, this.size = r;
  100601. }
  100602. static same(e, n) {
  100603. if (e.length != n.length)
  100604. return !1;
  100605. for (let r = 0; r < e.length; r++) {
  100606. let i = e[r], a = n[r];
  100607. if (i.from != a.from || i.to != a.to || i.size != a.size)
  100608. return !1;
  100609. }
  100610. return !0;
  100611. }
  100612. draw(e, n) {
  100613. return pt.replace({
  100614. widget: new ewt(this.size * (n ? e.scaleY : e.scaleX), n)
  100615. }).range(this.from, this.to);
  100616. }
  100617. }
  100618. class ewt extends Jl {
  100619. constructor(e, n) {
  100620. super(), this.size = e, this.vertical = n;
  100621. }
  100622. eq(e) {
  100623. return e.size == this.size && e.vertical == this.vertical;
  100624. }
  100625. toDOM() {
  100626. let e = document.createElement("div");
  100627. return this.vertical ? e.style.height = this.size + "px" : (e.style.width = this.size + "px", e.style.height = "2px", e.style.display = "inline-block"), e;
  100628. }
  100629. get estimatedHeight() {
  100630. return this.vertical ? this.size : -1;
  100631. }
  100632. }
  100633. class VK {
  100634. constructor(e) {
  100635. this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = FK, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = ir.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
  100636. let n = e.facet(iB).some((r) => typeof r != "function" && r.class == "cm-lineWrapping");
  100637. this.heightOracle = new jxt(n), this.stateDeco = e.facet(b_).filter((r) => typeof r != "function"), this.heightMap = ua.empty().applyChanges(this.stateDeco, xn.empty, this.heightOracle.setDoc(e.doc), [new Jo(0, 0, 0, e.doc.length)]);
  100638. for (let r = 0; r < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); r++)
  100639. ;
  100640. this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = pt.set(this.lineGaps.map((r) => r.draw(this, !1))), this.computeVisibleRanges();
  100641. }
  100642. updateForViewport() {
  100643. let e = [this.viewport], { main: n } = this.state.selection;
  100644. for (let r = 0; r <= 1; r++) {
  100645. let i = r ? n.head : n.anchor;
  100646. if (!e.some(({ from: a, to: o }) => i >= a && i <= o)) {
  100647. let { from: a, to: o } = this.lineBlockAt(i);
  100648. e.push(new dx(a, o));
  100649. }
  100650. }
  100651. return this.viewports = e.sort((r, i) => r.from - i.from), this.updateScaler();
  100652. }
  100653. updateScaler() {
  100654. let e = this.scaler;
  100655. return this.scaler = this.heightMap.height <= 7e6 ? FK : new sB(this.heightOracle, this.heightMap, this.viewports), e.eq(this.scaler) ? 0 : 2;
  100656. }
  100657. updateViewportLines() {
  100658. this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => {
  100659. this.viewportLines.push($y(e, this.scaler));
  100660. });
  100661. }
  100662. update(e, n = null) {
  100663. this.state = e.state;
  100664. let r = this.stateDeco;
  100665. this.stateDeco = this.state.facet(b_).filter((c) => typeof c != "function");
  100666. let i = e.changedRanges, a = Jo.extendWithRanges(i, Yxt(r, this.stateDeco, e ? e.changes : Zr.empty(this.state.doc.length))), o = this.heightMap.height, s = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
  100667. this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), a), this.heightMap.height != o && (e.flags |= 2), s ? (this.scrollAnchorPos = e.changes.mapPos(s.from, -1), this.scrollAnchorHeight = s.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height);
  100668. let l = a.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
  100669. (n && (n.range.head < l.from || n.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, n));
  100670. let u = l.from != this.viewport.from || l.to != this.viewport.to;
  100671. this.viewport = l, e.flags |= this.updateForViewport(), (u || !e.changes.empty || e.flags & 2) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(), n && (this.scrollTarget = n), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(vve) && (this.mustEnforceCursorAssoc = !0);
  100672. }
  100673. measure(e) {
  100674. let n = e.contentDOM, r = window.getComputedStyle(n), i = this.heightOracle, a = r.whiteSpace;
  100675. this.defaultTextDirection = r.direction == "rtl" ? ir.RTL : ir.LTR;
  100676. let o = this.heightOracle.mustRefreshForWrapping(a), s = n.getBoundingClientRect(), l = o || this.mustMeasureContent || this.contentDOMHeight != s.height;
  100677. this.contentDOMHeight = s.height, this.mustMeasureContent = !1;
  100678. let u = 0, c = 0;
  100679. if (s.width && s.height) {
  100680. let { scaleX: O, scaleY: S } = Wpe(n, s);
  100681. (O > 5e-3 && Math.abs(this.scaleX - O) > 5e-3 || S > 5e-3 && Math.abs(this.scaleY - S) > 5e-3) && (this.scaleX = O, this.scaleY = S, u |= 8, o = l = !0);
  100682. }
  100683. let f = (parseInt(r.paddingTop) || 0) * this.scaleY, d = (parseInt(r.paddingBottom) || 0) * this.scaleY;
  100684. (this.paddingTop != f || this.paddingBottom != d) && (this.paddingTop = f, this.paddingBottom = d, u |= 10), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 8);
  100685. let h = e.scrollDOM.scrollTop * this.scaleY;
  100686. this.scrollTop != h && (this.scrollAnchorHeight = -1, this.scrollTop = h), this.scrolledToBottom = Gpe(e.scrollDOM);
  100687. let p = (this.printing ? Jxt : Kxt)(n, this.paddingTop), v = p.top - this.pixelViewport.top, g = p.bottom - this.pixelViewport.bottom;
  100688. this.pixelViewport = p;
  100689. let m = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
  100690. if (m != this.inView && (this.inView = m, m && (l = !0)), !this.inView && !this.scrollTarget)
  100691. return 0;
  100692. let y = s.width;
  100693. if ((this.contentDOMWidth != y || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = s.width, this.editorHeight = e.scrollDOM.clientHeight, u |= 8), l) {
  100694. let O = e.docView.measureVisibleLineHeights(this.viewport);
  100695. if (i.mustRefreshForHeights(O) && (o = !0), o || i.lineWrapping && Math.abs(y - this.contentDOMWidth) > i.charWidth) {
  100696. let { lineHeight: S, charWidth: x, textHeight: C } = e.docView.measureTextSize();
  100697. o = S > 0 && i.refresh(a, S, x, C, y / x, O), o && (e.docView.minWidth = 0, u |= 8);
  100698. }
  100699. v > 0 && g > 0 ? c = Math.max(v, g) : v < 0 && g < 0 && (c = Math.min(v, g)), i.heightChanged = !1;
  100700. for (let S of this.viewports) {
  100701. let x = S.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(S);
  100702. this.heightMap = (o ? ua.empty().applyChanges(this.stateDeco, xn.empty, this.heightOracle, [new Jo(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, o, new Zxt(S.from, x));
  100703. }
  100704. i.heightChanged && (u |= 2);
  100705. }
  100706. let _ = !this.viewportIsAppropriate(this.viewport, c) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
  100707. return _ && (u & 2 && (u |= this.updateScaler()), this.viewport = this.getViewport(c, this.scrollTarget), u |= this.updateForViewport()), (u & 2 || _) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(o ? [] : this.lineGaps, e)), u |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), u;
  100708. }
  100709. get visibleTop() {
  100710. return this.scaler.fromDOM(this.pixelViewport.top);
  100711. }
  100712. get visibleBottom() {
  100713. return this.scaler.fromDOM(this.pixelViewport.bottom);
  100714. }
  100715. getViewport(e, n) {
  100716. let r = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), i = this.heightMap, a = this.heightOracle, { visibleTop: o, visibleBottom: s } = this, l = new dx(i.lineAt(o - r * 1e3, er.ByHeight, a, 0, 0).from, i.lineAt(s + (1 - r) * 1e3, er.ByHeight, a, 0, 0).to);
  100717. if (n) {
  100718. let { head: u } = n.range;
  100719. if (u < l.from || u > l.to) {
  100720. let c = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), f = i.lineAt(u, er.ByPos, a, 0, 0), d;
  100721. n.y == "center" ? d = (f.top + f.bottom) / 2 - c / 2 : n.y == "start" || n.y == "nearest" && u < l.from ? d = f.top : d = f.bottom - c, l = new dx(i.lineAt(d - 1e3 / 2, er.ByHeight, a, 0, 0).from, i.lineAt(d + c + 1e3 / 2, er.ByHeight, a, 0, 0).to);
  100722. }
  100723. }
  100724. return l;
  100725. }
  100726. mapViewport(e, n) {
  100727. let r = n.mapPos(e.from, -1), i = n.mapPos(e.to, 1);
  100728. return new dx(this.heightMap.lineAt(r, er.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(i, er.ByPos, this.heightOracle, 0, 0).to);
  100729. }
  100730. // Checks if a given viewport covers the visible part of the
  100731. // document and not too much beyond that.
  100732. viewportIsAppropriate({ from: e, to: n }, r = 0) {
  100733. if (!this.inView)
  100734. return !0;
  100735. let { top: i } = this.heightMap.lineAt(e, er.ByPos, this.heightOracle, 0, 0), { bottom: a } = this.heightMap.lineAt(n, er.ByPos, this.heightOracle, 0, 0), { visibleTop: o, visibleBottom: s } = this;
  100736. return (e == 0 || i <= o - Math.max(10, Math.min(
  100737. -r,
  100738. 250
  100739. /* VP.MaxCoverMargin */
  100740. ))) && (n == this.state.doc.length || a >= s + Math.max(10, Math.min(
  100741. r,
  100742. 250
  100743. /* VP.MaxCoverMargin */
  100744. ))) && i > o - 2 * 1e3 && a < s + 2 * 1e3;
  100745. }
  100746. mapLineGaps(e, n) {
  100747. if (!e.length || n.empty)
  100748. return e;
  100749. let r = [];
  100750. for (let i of e)
  100751. n.touchesRange(i.from, i.to) || r.push(new aD(n.mapPos(i.from), n.mapPos(i.to), i.size));
  100752. return r;
  100753. }
  100754. // Computes positions in the viewport where the start or end of a
  100755. // line should be hidden, trying to reuse existing line gaps when
  100756. // appropriate to avoid unneccesary redraws.
  100757. // Uses crude character-counting for the positioning and sizing,
  100758. // since actual DOM coordinates aren't always available and
  100759. // predictable. Relies on generous margins (see LG.Margin) to hide
  100760. // the artifacts this might produce from the user.
  100761. ensureLineGaps(e, n) {
  100762. let r = this.heightOracle.lineWrapping, i = r ? 1e4 : 2e3, a = i >> 1, o = i << 1;
  100763. if (this.defaultTextDirection != ir.LTR && !r)
  100764. return [];
  100765. let s = [], l = (c, f, d, h) => {
  100766. if (f - c < a)
  100767. return;
  100768. let p = this.state.selection.main, v = [p.from];
  100769. p.empty || v.push(p.to);
  100770. for (let m of v)
  100771. if (m > c && m < f) {
  100772. l(c, m - 10, d, h), l(m + 10, f, d, h);
  100773. return;
  100774. }
  100775. let g = nwt(e, (m) => m.from >= d.from && m.to <= d.to && Math.abs(m.from - c) < a && Math.abs(m.to - f) < a && !v.some((y) => m.from < y && m.to > y));
  100776. if (!g) {
  100777. if (f < d.to && n && r && n.visibleRanges.some((m) => m.from <= f && m.to >= f)) {
  100778. let m = n.moveToLineBoundary(De.cursor(f), !1, !0).head;
  100779. m > c && (f = m);
  100780. }
  100781. g = new aD(c, f, this.gapSize(d, c, f, h));
  100782. }
  100783. s.push(g);
  100784. }, u = (c) => {
  100785. if (c.length < o || c.type != la.Text)
  100786. return;
  100787. let f = twt(c.from, c.to, this.stateDeco);
  100788. if (f.total < o)
  100789. return;
  100790. let d = this.scrollTarget ? this.scrollTarget.range.head : null, h, p;
  100791. if (r) {
  100792. let v = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, g, m;
  100793. if (d != null) {
  100794. let y = px(f, d), _ = ((this.visibleBottom - this.visibleTop) / 2 + v) / c.height;
  100795. g = y - _, m = y + _;
  100796. } else
  100797. g = (this.visibleTop - c.top - v) / c.height, m = (this.visibleBottom - c.top + v) / c.height;
  100798. h = hx(f, g), p = hx(f, m);
  100799. } else {
  100800. let v = f.total * this.heightOracle.charWidth, g = i * this.heightOracle.charWidth, m, y;
  100801. if (d != null) {
  100802. let _ = px(f, d), O = ((this.pixelViewport.right - this.pixelViewport.left) / 2 + g) / v;
  100803. m = _ - O, y = _ + O;
  100804. } else
  100805. m = (this.pixelViewport.left - g) / v, y = (this.pixelViewport.right + g) / v;
  100806. h = hx(f, m), p = hx(f, y);
  100807. }
  100808. h > c.from && l(c.from, h, c, f), p < c.to && l(p, c.to, c, f);
  100809. };
  100810. for (let c of this.viewportLines)
  100811. Array.isArray(c.type) ? c.type.forEach(u) : u(c);
  100812. return s;
  100813. }
  100814. gapSize(e, n, r, i) {
  100815. let a = px(i, r) - px(i, n);
  100816. return this.heightOracle.lineWrapping ? e.height * a : i.total * this.heightOracle.charWidth * a;
  100817. }
  100818. updateLineGaps(e) {
  100819. aD.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = pt.set(e.map((n) => n.draw(this, this.heightOracle.lineWrapping))));
  100820. }
  100821. computeVisibleRanges() {
  100822. let e = this.stateDeco;
  100823. this.lineGaps.length && (e = e.concat(this.lineGapDeco));
  100824. let n = [];
  100825. Sn.spans(e, this.viewport.from, this.viewport.to, {
  100826. span(i, a) {
  100827. n.push({ from: i, to: a });
  100828. },
  100829. point() {
  100830. }
  100831. }, 20);
  100832. let r = n.length != this.visibleRanges.length || this.visibleRanges.some((i, a) => i.from != n[a].from || i.to != n[a].to);
  100833. return this.visibleRanges = n, r ? 4 : 0;
  100834. }
  100835. lineBlockAt(e) {
  100836. return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((n) => n.from <= e && n.to >= e) || $y(this.heightMap.lineAt(e, er.ByPos, this.heightOracle, 0, 0), this.scaler);
  100837. }
  100838. lineBlockAtHeight(e) {
  100839. return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((n) => n.top <= e && n.bottom >= e) || $y(this.heightMap.lineAt(this.scaler.fromDOM(e), er.ByHeight, this.heightOracle, 0, 0), this.scaler);
  100840. }
  100841. scrollAnchorAt(e) {
  100842. let n = this.lineBlockAtHeight(e + 8);
  100843. return n.from >= this.viewport.from || this.viewportLines[0].top - e > 200 ? n : this.viewportLines[0];
  100844. }
  100845. elementAtHeight(e) {
  100846. return $y(this.heightMap.blockAt(this.scaler.fromDOM(e), this.heightOracle, 0, 0), this.scaler);
  100847. }
  100848. get docHeight() {
  100849. return this.scaler.toDOM(this.heightMap.height);
  100850. }
  100851. get contentHeight() {
  100852. return this.docHeight + this.paddingTop + this.paddingBottom;
  100853. }
  100854. }
  100855. class dx {
  100856. constructor(e, n) {
  100857. this.from = e, this.to = n;
  100858. }
  100859. }
  100860. function twt(t, e, n) {
  100861. let r = [], i = t, a = 0;
  100862. return Sn.spans(n, t, e, {
  100863. span() {
  100864. },
  100865. point(o, s) {
  100866. o > i && (r.push({ from: i, to: o }), a += o - i), i = s;
  100867. }
  100868. }, 20), i < e && (r.push({ from: i, to: e }), a += e - i), { total: a, ranges: r };
  100869. }
  100870. function hx({ total: t, ranges: e }, n) {
  100871. if (n <= 0)
  100872. return e[0].from;
  100873. if (n >= 1)
  100874. return e[e.length - 1].to;
  100875. let r = Math.floor(t * n);
  100876. for (let i = 0; ; i++) {
  100877. let { from: a, to: o } = e[i], s = o - a;
  100878. if (r <= s)
  100879. return a + r;
  100880. r -= s;
  100881. }
  100882. }
  100883. function px(t, e) {
  100884. let n = 0;
  100885. for (let { from: r, to: i } of t.ranges) {
  100886. if (e <= i) {
  100887. n += e - r;
  100888. break;
  100889. }
  100890. n += i - r;
  100891. }
  100892. return n / t.total;
  100893. }
  100894. function nwt(t, e) {
  100895. for (let n of t)
  100896. if (e(n))
  100897. return n;
  100898. }
  100899. const FK = {
  100900. toDOM(t) {
  100901. return t;
  100902. },
  100903. fromDOM(t) {
  100904. return t;
  100905. },
  100906. scale: 1,
  100907. eq(t) {
  100908. return t == this;
  100909. }
  100910. };
  100911. class sB {
  100912. constructor(e, n, r) {
  100913. let i = 0, a = 0, o = 0;
  100914. this.viewports = r.map(({ from: s, to: l }) => {
  100915. let u = n.lineAt(s, er.ByPos, e, 0, 0).top, c = n.lineAt(l, er.ByPos, e, 0, 0).bottom;
  100916. return i += c - u, { from: s, to: l, top: u, bottom: c, domTop: 0, domBottom: 0 };
  100917. }), this.scale = (7e6 - i) / (n.height - i);
  100918. for (let s of this.viewports)
  100919. s.domTop = o + (s.top - a) * this.scale, o = s.domBottom = s.domTop + (s.bottom - s.top), a = s.bottom;
  100920. }
  100921. toDOM(e) {
  100922. for (let n = 0, r = 0, i = 0; ; n++) {
  100923. let a = n < this.viewports.length ? this.viewports[n] : null;
  100924. if (!a || e < a.top)
  100925. return i + (e - r) * this.scale;
  100926. if (e <= a.bottom)
  100927. return a.domTop + (e - a.top);
  100928. r = a.bottom, i = a.domBottom;
  100929. }
  100930. }
  100931. fromDOM(e) {
  100932. for (let n = 0, r = 0, i = 0; ; n++) {
  100933. let a = n < this.viewports.length ? this.viewports[n] : null;
  100934. if (!a || e < a.domTop)
  100935. return r + (e - i) / this.scale;
  100936. if (e <= a.domBottom)
  100937. return a.top + (e - a.domTop);
  100938. r = a.bottom, i = a.domBottom;
  100939. }
  100940. }
  100941. eq(e) {
  100942. return e instanceof sB ? this.scale == e.scale && this.viewports.length == e.viewports.length && this.viewports.every((n, r) => n.from == e.viewports[r].from && n.to == e.viewports[r].to) : !1;
  100943. }
  100944. }
  100945. function $y(t, e) {
  100946. if (e.scale == 1)
  100947. return t;
  100948. let n = e.toDOM(t.top), r = e.toDOM(t.bottom);
  100949. return new Tl(t.from, t.length, n, r - n, Array.isArray(t._content) ? t._content.map((i) => $y(i, e)) : t._content);
  100950. }
  100951. const vx = /* @__PURE__ */ ut.define({ combine: (t) => t.join(" ") }), C4 = /* @__PURE__ */ ut.define({ combine: (t) => t.indexOf(!0) > -1 }), T4 = /* @__PURE__ */ Cf.newName(), kve = /* @__PURE__ */ Cf.newName(), Lve = /* @__PURE__ */ Cf.newName(), Nve = { "&light": "." + kve, "&dark": "." + Lve };
  100952. function P4(t, e, n) {
  100953. return new Cf(e, {
  100954. finish(r) {
  100955. return /&/.test(r) ? r.replace(/&\w*/, (i) => {
  100956. if (i == "&")
  100957. return t;
  100958. if (!n || !n[i])
  100959. throw new RangeError(`Unsupported selector: ${i}`);
  100960. return n[i];
  100961. }) : t + " " + r;
  100962. }
  100963. });
  100964. }
  100965. const rwt = /* @__PURE__ */ P4("." + T4, {
  100966. "&": {
  100967. position: "relative !important",
  100968. boxSizing: "border-box",
  100969. "&.cm-focused": {
  100970. // Provide a simple default outline to make sure a focused
  100971. // editor is visually distinct. Can't leave the default behavior
  100972. // because that will apply to the content element, which is
  100973. // inside the scrollable container and doesn't include the
  100974. // gutters. We also can't use an 'auto' outline, since those
  100975. // are, for some reason, drawn behind the element content, which
  100976. // will cause things like the active line background to cover
  100977. // the outline (#297).
  100978. outline: "1px dotted #212121"
  100979. },
  100980. display: "flex !important",
  100981. flexDirection: "column"
  100982. },
  100983. ".cm-scroller": {
  100984. display: "flex !important",
  100985. alignItems: "flex-start !important",
  100986. fontFamily: "monospace",
  100987. lineHeight: 1.4,
  100988. height: "100%",
  100989. overflowX: "auto",
  100990. position: "relative",
  100991. zIndex: 0
  100992. },
  100993. ".cm-content": {
  100994. margin: 0,
  100995. flexGrow: 2,
  100996. flexShrink: 0,
  100997. display: "block",
  100998. whiteSpace: "pre",
  100999. wordWrap: "normal",
  101000. // https://github.com/codemirror/dev/issues/456
  101001. boxSizing: "border-box",
  101002. minHeight: "100%",
  101003. padding: "4px 0",
  101004. outline: "none",
  101005. "&[contenteditable=true]": {
  101006. WebkitUserModify: "read-write-plaintext-only"
  101007. }
  101008. },
  101009. ".cm-lineWrapping": {
  101010. whiteSpace_fallback: "pre-wrap",
  101011. // For IE
  101012. whiteSpace: "break-spaces",
  101013. wordBreak: "break-word",
  101014. // For Safari, which doesn't support overflow-wrap: anywhere
  101015. overflowWrap: "anywhere",
  101016. flexShrink: 1
  101017. },
  101018. "&light .cm-content": { caretColor: "black" },
  101019. "&dark .cm-content": { caretColor: "white" },
  101020. ".cm-line": {
  101021. display: "block",
  101022. padding: "0 2px 0 6px"
  101023. },
  101024. ".cm-layer": {
  101025. position: "absolute",
  101026. left: 0,
  101027. top: 0,
  101028. contain: "size style",
  101029. "& > *": {
  101030. position: "absolute"
  101031. }
  101032. },
  101033. "&light .cm-selectionBackground": {
  101034. background: "#d9d9d9"
  101035. },
  101036. "&dark .cm-selectionBackground": {
  101037. background: "#222"
  101038. },
  101039. "&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground": {
  101040. background: "#d7d4f0"
  101041. },
  101042. "&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground": {
  101043. background: "#233"
  101044. },
  101045. ".cm-cursorLayer": {
  101046. pointerEvents: "none"
  101047. },
  101048. "&.cm-focused > .cm-scroller > .cm-cursorLayer": {
  101049. animation: "steps(1) cm-blink 1.2s infinite"
  101050. },
  101051. // Two animations defined so that we can switch between them to
  101052. // restart the animation without forcing another style
  101053. // recomputation.
  101054. "@keyframes cm-blink": { "0%": {}, "50%": { opacity: 0 }, "100%": {} },
  101055. "@keyframes cm-blink2": { "0%": {}, "50%": { opacity: 0 }, "100%": {} },
  101056. ".cm-cursor, .cm-dropCursor": {
  101057. borderLeft: "1.2px solid black",
  101058. marginLeft: "-0.6px",
  101059. pointerEvents: "none"
  101060. },
  101061. ".cm-cursor": {
  101062. display: "none"
  101063. },
  101064. "&dark .cm-cursor": {
  101065. borderLeftColor: "#444"
  101066. },
  101067. ".cm-dropCursor": {
  101068. position: "absolute"
  101069. },
  101070. "&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor": {
  101071. display: "block"
  101072. },
  101073. ".cm-iso": {
  101074. unicodeBidi: "isolate"
  101075. },
  101076. ".cm-announced": {
  101077. position: "fixed",
  101078. top: "-10000px"
  101079. },
  101080. "@media print": {
  101081. ".cm-announced": { display: "none" }
  101082. },
  101083. "&light .cm-activeLine": { backgroundColor: "#cceeff44" },
  101084. "&dark .cm-activeLine": { backgroundColor: "#99eeff33" },
  101085. "&light .cm-specialChar": { color: "red" },
  101086. "&dark .cm-specialChar": { color: "#f78" },
  101087. ".cm-gutters": {
  101088. flexShrink: 0,
  101089. display: "flex",
  101090. height: "100%",
  101091. boxSizing: "border-box",
  101092. insetInlineStart: 0,
  101093. zIndex: 200
  101094. },
  101095. "&light .cm-gutters": {
  101096. backgroundColor: "#f5f5f5",
  101097. color: "#6c6c6c",
  101098. borderRight: "1px solid #ddd"
  101099. },
  101100. "&dark .cm-gutters": {
  101101. backgroundColor: "#333338",
  101102. color: "#ccc"
  101103. },
  101104. ".cm-gutter": {
  101105. display: "flex !important",
  101106. // Necessary -- prevents margin collapsing
  101107. flexDirection: "column",
  101108. flexShrink: 0,
  101109. boxSizing: "border-box",
  101110. minHeight: "100%",
  101111. overflow: "hidden"
  101112. },
  101113. ".cm-gutterElement": {
  101114. boxSizing: "border-box"
  101115. },
  101116. ".cm-lineNumbers .cm-gutterElement": {
  101117. padding: "0 3px 0 5px",
  101118. minWidth: "20px",
  101119. textAlign: "right",
  101120. whiteSpace: "nowrap"
  101121. },
  101122. "&light .cm-activeLineGutter": {
  101123. backgroundColor: "#e2f2ff"
  101124. },
  101125. "&dark .cm-activeLineGutter": {
  101126. backgroundColor: "#222227"
  101127. },
  101128. ".cm-panels": {
  101129. boxSizing: "border-box",
  101130. position: "sticky",
  101131. left: 0,
  101132. right: 0
  101133. },
  101134. "&light .cm-panels": {
  101135. backgroundColor: "#f5f5f5",
  101136. color: "black"
  101137. },
  101138. "&light .cm-panels-top": {
  101139. borderBottom: "1px solid #ddd"
  101140. },
  101141. "&light .cm-panels-bottom": {
  101142. borderTop: "1px solid #ddd"
  101143. },
  101144. "&dark .cm-panels": {
  101145. backgroundColor: "#333338",
  101146. color: "white"
  101147. },
  101148. ".cm-tab": {
  101149. display: "inline-block",
  101150. overflow: "hidden",
  101151. verticalAlign: "bottom"
  101152. },
  101153. ".cm-widgetBuffer": {
  101154. verticalAlign: "text-top",
  101155. height: "1em",
  101156. width: 0,
  101157. display: "inline"
  101158. },
  101159. ".cm-placeholder": {
  101160. color: "#888",
  101161. display: "inline-block",
  101162. verticalAlign: "top"
  101163. },
  101164. ".cm-highlightSpace:before": {
  101165. content: "attr(data-display)",
  101166. position: "absolute",
  101167. pointerEvents: "none",
  101168. color: "#888"
  101169. },
  101170. ".cm-highlightTab": {
  101171. backgroundImage: `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,
  101172. backgroundSize: "auto 100%",
  101173. backgroundPosition: "right 90%",
  101174. backgroundRepeat: "no-repeat"
  101175. },
  101176. ".cm-trailingSpace": {
  101177. backgroundColor: "#ff332255"
  101178. },
  101179. ".cm-button": {
  101180. verticalAlign: "middle",
  101181. color: "inherit",
  101182. fontSize: "70%",
  101183. padding: ".2em 1em",
  101184. borderRadius: "1px"
  101185. },
  101186. "&light .cm-button": {
  101187. backgroundImage: "linear-gradient(#eff1f5, #d9d9df)",
  101188. border: "1px solid #888",
  101189. "&:active": {
  101190. backgroundImage: "linear-gradient(#b4b4b4, #d0d3d6)"
  101191. }
  101192. },
  101193. "&dark .cm-button": {
  101194. backgroundImage: "linear-gradient(#393939, #111)",
  101195. border: "1px solid #888",
  101196. "&:active": {
  101197. backgroundImage: "linear-gradient(#111, #333)"
  101198. }
  101199. },
  101200. ".cm-textfield": {
  101201. verticalAlign: "middle",
  101202. color: "inherit",
  101203. fontSize: "70%",
  101204. border: "1px solid silver",
  101205. padding: ".2em .5em"
  101206. },
  101207. "&light .cm-textfield": {
  101208. backgroundColor: "white"
  101209. },
  101210. "&dark .cm-textfield": {
  101211. border: "1px solid #555",
  101212. backgroundColor: "inherit"
  101213. }
  101214. }, Nve), Ay = "￿";
  101215. class iwt {
  101216. constructor(e, n) {
  101217. this.points = e, this.text = "", this.lineSeparator = n.facet(cn.lineSeparator);
  101218. }
  101219. append(e) {
  101220. this.text += e;
  101221. }
  101222. lineBreak() {
  101223. this.text += Ay;
  101224. }
  101225. readRange(e, n) {
  101226. if (!e)
  101227. return this;
  101228. let r = e.parentNode;
  101229. for (let i = e; ; ) {
  101230. this.findPointBefore(r, i);
  101231. let a = this.text.length;
  101232. this.readNode(i);
  101233. let o = i.nextSibling;
  101234. if (o == n)
  101235. break;
  101236. let s = Qn.get(i), l = Qn.get(o);
  101237. (s && l ? s.breakAfter : (s ? s.breakAfter : $T(i)) || $T(o) && (i.nodeName != "BR" || i.cmIgnore) && this.text.length > a) && this.lineBreak(), i = o;
  101238. }
  101239. return this.findPointBefore(r, n), this;
  101240. }
  101241. readTextNode(e) {
  101242. let n = e.nodeValue;
  101243. for (let r of this.points)
  101244. r.node == e && (r.pos = this.text.length + Math.min(r.offset, n.length));
  101245. for (let r = 0, i = this.lineSeparator ? null : /\r\n?|\n/g; ; ) {
  101246. let a = -1, o = 1, s;
  101247. if (this.lineSeparator ? (a = n.indexOf(this.lineSeparator, r), o = this.lineSeparator.length) : (s = i.exec(n)) && (a = s.index, o = s[0].length), this.append(n.slice(r, a < 0 ? n.length : a)), a < 0)
  101248. break;
  101249. if (this.lineBreak(), o > 1)
  101250. for (let l of this.points)
  101251. l.node == e && l.pos > this.text.length && (l.pos -= o - 1);
  101252. r = a + o;
  101253. }
  101254. }
  101255. readNode(e) {
  101256. if (e.cmIgnore)
  101257. return;
  101258. let n = Qn.get(e), r = n && n.overrideDOMText;
  101259. if (r != null) {
  101260. this.findPointInside(e, r.length);
  101261. for (let i = r.iter(); !i.next().done; )
  101262. i.lineBreak ? this.lineBreak() : this.append(i.value);
  101263. } else e.nodeType == 3 ? this.readTextNode(e) : e.nodeName == "BR" ? e.nextSibling && this.lineBreak() : e.nodeType == 1 && this.readRange(e.firstChild, null);
  101264. }
  101265. findPointBefore(e, n) {
  101266. for (let r of this.points)
  101267. r.node == e && e.childNodes[r.offset] == n && (r.pos = this.text.length);
  101268. }
  101269. findPointInside(e, n) {
  101270. for (let r of this.points)
  101271. (e.nodeType == 3 ? r.node == e : e.contains(r.node)) && (r.pos = this.text.length + (awt(e, r.node, r.offset) ? n : 0));
  101272. }
  101273. }
  101274. function awt(t, e, n) {
  101275. for (; ; ) {
  101276. if (!e || n < Uu(e))
  101277. return !1;
  101278. if (e == t)
  101279. return !0;
  101280. n = Jh(e) + 1, e = e.parentNode;
  101281. }
  101282. }
  101283. class WK {
  101284. constructor(e, n) {
  101285. this.node = e, this.offset = n, this.pos = -1;
  101286. }
  101287. }
  101288. class owt {
  101289. constructor(e, n, r, i) {
  101290. this.typeOver = i, this.bounds = null, this.text = "", this.domChanged = n > -1;
  101291. let { impreciseHead: a, impreciseAnchor: o } = e.docView;
  101292. if (e.state.readOnly && n > -1)
  101293. this.newSel = null;
  101294. else if (n > -1 && (this.bounds = e.docView.domBoundsAround(n, r, 0))) {
  101295. let s = a || o ? [] : uwt(e), l = new iwt(s, e.state);
  101296. l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = cwt(s, this.bounds.from);
  101297. } else {
  101298. let s = e.observer.selectionRange, l = a && a.node == s.focusNode && a.offset == s.focusOffset || !f4(e.contentDOM, s.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(s.focusNode, s.focusOffset), u = o && o.node == s.anchorNode && o.offset == s.anchorOffset || !f4(e.contentDOM, s.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(s.anchorNode, s.anchorOffset), c = e.viewport;
  101299. if ((lt.ios || lt.chrome) && e.state.selection.main.empty && l != u && (c.from > 0 || c.to < e.state.doc.length)) {
  101300. let f = Math.min(l, u), d = Math.max(l, u), h = c.from - f, p = c.to - d;
  101301. (h == 0 || h == 1 || f == 0) && (p == 0 || p == -1 || d == e.state.doc.length) && (l = 0, u = e.state.doc.length);
  101302. }
  101303. this.newSel = De.single(u, l);
  101304. }
  101305. }
  101306. }
  101307. function Bve(t, e) {
  101308. let n, { newSel: r } = e, i = t.state.selection.main, a = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1;
  101309. if (e.bounds) {
  101310. let { from: o, to: s } = e.bounds, l = i.from, u = null;
  101311. (a === 8 || lt.android && e.text.length < s - o) && (l = i.to, u = "end");
  101312. let c = lwt(t.state.doc.sliceString(o, s, Ay), e.text, l - o, u);
  101313. c && (lt.chrome && a == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == Ay + Ay && c.toB--, n = {
  101314. from: o + c.from,
  101315. to: o + c.toA,
  101316. insert: xn.of(e.text.slice(c.from, c.toB).split(Ay))
  101317. });
  101318. } else r && (!t.hasFocus && t.state.facet(Nc) || r.main.eq(i)) && (r = null);
  101319. if (!n && !r)
  101320. return !1;
  101321. if (!n && e.typeOver && !i.empty && r && r.main.empty ? n = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : n && n.from >= i.from && n.to <= i.to && (n.from != i.from || n.to != i.to) && i.to - i.from - (n.to - n.from) <= 4 ? n = {
  101322. from: i.from,
  101323. to: i.to,
  101324. insert: t.state.doc.slice(i.from, n.from).append(n.insert).append(t.state.doc.slice(n.to, i.to))
  101325. } : (lt.mac || lt.android) && n && n.from == n.to && n.from == i.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (r && n.insert.length == 2 && (r = De.single(r.main.anchor - 1, r.main.head - 1)), n = { from: i.from, to: i.to, insert: xn.of([" "]) }) : lt.chrome && n && n.from == n.to && n.from == i.head && n.insert.toString() == `
  101326. ` && t.lineWrapping && (r && (r = De.single(r.main.anchor - 1, r.main.head - 1)), n = { from: i.from, to: i.to, insert: xn.of([" "]) }), n)
  101327. return zve(t, n, r, a);
  101328. if (r && !r.main.eq(i)) {
  101329. let o = !1, s = "select";
  101330. return t.inputState.lastSelectionTime > Date.now() - 50 && (t.inputState.lastSelectionOrigin == "select" && (o = !0), s = t.inputState.lastSelectionOrigin), t.dispatch({ selection: r, scrollIntoView: o, userEvent: s }), !0;
  101331. } else
  101332. return !1;
  101333. }
  101334. function zve(t, e, n, r = -1) {
  101335. if (lt.ios && t.inputState.flushIOSKey(e))
  101336. return !0;
  101337. let i = t.state.selection.main;
  101338. if (lt.android && (e.to == i.to && // GBoard will sometimes remove a space it just inserted
  101339. // after a completion when you press enter
  101340. (e.from == i.from || e.from == i.from - 1 && t.state.sliceDoc(e.from, i.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && ag(t.contentDOM, "Enter", 13) || (e.from == i.from - 1 && e.to == i.to && e.insert.length == 0 || r == 8 && e.insert.length < e.to - e.from && e.to > i.head) && ag(t.contentDOM, "Backspace", 8) || e.from == i.from && e.to == i.to + 1 && e.insert.length == 0 && ag(t.contentDOM, "Delete", 46)))
  101341. return !0;
  101342. let a = e.insert.toString();
  101343. t.inputState.composing >= 0 && t.inputState.composing++;
  101344. let o, s = () => o || (o = swt(t, e, n));
  101345. return t.state.facet(dve).some((l) => l(t, e.from, e.to, a, s)) || t.dispatch(s()), !0;
  101346. }
  101347. function swt(t, e, n) {
  101348. let r, i = t.state, a = i.selection.main;
  101349. if (e.from >= a.from && e.to <= a.to && e.to - e.from >= (a.to - a.from) / 3 && (!n || n.main.empty && n.main.from == e.from + e.insert.length) && t.inputState.composing < 0) {
  101350. let s = a.from < e.from ? i.sliceDoc(a.from, e.from) : "", l = a.to > e.to ? i.sliceDoc(e.to, a.to) : "";
  101351. r = i.replaceSelection(t.state.toText(s + e.insert.sliceString(0, void 0, t.state.lineBreak) + l));
  101352. } else {
  101353. let s = i.changes(e), l = n && n.main.to <= s.newLength ? n.main : void 0;
  101354. if (i.selection.ranges.length > 1 && t.inputState.composing >= 0 && e.to <= a.to && e.to >= a.to - 10) {
  101355. let u = t.state.sliceDoc(e.from, e.to), c, f = n && xve(t, n.main.head);
  101356. if (f) {
  101357. let p = e.insert.length - (e.to - e.from);
  101358. c = { from: f.from, to: f.to - p };
  101359. } else
  101360. c = t.state.doc.lineAt(a.head);
  101361. let d = a.to - e.to, h = a.to - a.from;
  101362. r = i.changeByRange((p) => {
  101363. if (p.from == a.from && p.to == a.to)
  101364. return { changes: s, range: l || p.map(s) };
  101365. let v = p.to - d, g = v - u.length;
  101366. if (p.to - p.from != h || t.state.sliceDoc(g, v) != u || // Unfortunately, there's no way to make multiple
  101367. // changes in the same node work without aborting
  101368. // composition, so cursors in the composition range are
  101369. // ignored.
  101370. p.to >= c.from && p.from <= c.to)
  101371. return { range: p };
  101372. let m = i.changes({ from: g, to: v, insert: e.insert }), y = p.to - a.to;
  101373. return {
  101374. changes: m,
  101375. range: l ? De.range(Math.max(0, l.anchor + y), Math.max(0, l.head + y)) : p.map(m)
  101376. };
  101377. });
  101378. } else
  101379. r = {
  101380. changes: s,
  101381. selection: l && i.selection.replaceRange(l)
  101382. };
  101383. }
  101384. let o = "input.type";
  101385. return (t.composing || t.inputState.compositionPendingChange && t.inputState.compositionEndedAt > Date.now() - 50) && (t.inputState.compositionPendingChange = !1, o += ".compose", t.inputState.compositionFirstChange && (o += ".start", t.inputState.compositionFirstChange = !1)), i.update(r, { userEvent: o, scrollIntoView: !0 });
  101386. }
  101387. function lwt(t, e, n, r) {
  101388. let i = Math.min(t.length, e.length), a = 0;
  101389. for (; a < i && t.charCodeAt(a) == e.charCodeAt(a); )
  101390. a++;
  101391. if (a == i && t.length == e.length)
  101392. return null;
  101393. let o = t.length, s = e.length;
  101394. for (; o > 0 && s > 0 && t.charCodeAt(o - 1) == e.charCodeAt(s - 1); )
  101395. o--, s--;
  101396. if (r == "end") {
  101397. let l = Math.max(0, a - Math.min(o, s));
  101398. n -= o + l - a;
  101399. }
  101400. if (o < a && t.length < e.length) {
  101401. let l = n <= a && n >= o ? a - n : 0;
  101402. a -= l, s = a + (s - o), o = a;
  101403. } else if (s < a) {
  101404. let l = n <= a && n >= s ? a - n : 0;
  101405. a -= l, o = a + (o - s), s = a;
  101406. }
  101407. return { from: a, toA: o, toB: s };
  101408. }
  101409. function uwt(t) {
  101410. let e = [];
  101411. if (t.root.activeElement != t.contentDOM)
  101412. return e;
  101413. let { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: a } = t.observer.selectionRange;
  101414. return n && (e.push(new WK(n, r)), (i != n || a != r) && e.push(new WK(i, a))), e;
  101415. }
  101416. function cwt(t, e) {
  101417. if (t.length == 0)
  101418. return null;
  101419. let n = t[0].pos, r = t.length == 2 ? t[1].pos : n;
  101420. return n > -1 && r > -1 ? De.single(n + e, r + e) : null;
  101421. }
  101422. const fwt = {
  101423. childList: !0,
  101424. characterData: !0,
  101425. subtree: !0,
  101426. attributes: !0,
  101427. characterDataOldValue: !0
  101428. }, oD = lt.ie && lt.ie_version <= 11;
  101429. class dwt {
  101430. constructor(e) {
  101431. this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new YSt(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((n) => {
  101432. for (let r of n)
  101433. this.queue.push(r);
  101434. (lt.ie && lt.ie_version <= 11 || lt.ios && e.composing) && n.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : this.flush();
  101435. }), window.EditContext && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
  101436. !(lt.chrome && lt.chrome_version < 126) && (this.editContext = new pwt(e), e.state.facet(Nc) && (e.contentDOM.editContext = this.editContext.editContext)), oD && (this.onCharData = (n) => {
  101437. this.queue.push({
  101438. target: n.target,
  101439. type: "characterData",
  101440. oldValue: n.prevValue
  101441. }), this.flushSoon();
  101442. }), this.onSelectionChange = this.onSelectionChange.bind(this), this.onResize = this.onResize.bind(this), this.onPrint = this.onPrint.bind(this), this.onScroll = this.onScroll.bind(this), window.matchMedia && (this.printQuery = window.matchMedia("print")), typeof ResizeObserver == "function" && (this.resizeScroll = new ResizeObserver(() => {
  101443. var n;
  101444. ((n = this.view.docView) === null || n === void 0 ? void 0 : n.lastUpdate) < Date.now() - 75 && this.onResize();
  101445. }), this.resizeScroll.observe(e.scrollDOM)), this.addWindowListeners(this.win = e.win), this.start(), typeof IntersectionObserver == "function" && (this.intersection = new IntersectionObserver((n) => {
  101446. this.parentCheck < 0 && (this.parentCheck = setTimeout(this.listenForScroll.bind(this), 1e3)), n.length > 0 && n[n.length - 1].intersectionRatio > 0 != this.intersecting && (this.intersecting = !this.intersecting, this.intersecting != this.view.inView && this.onScrollChanged(document.createEvent("Event")));
  101447. }, { threshold: [0, 1e-3] }), this.intersection.observe(this.dom), this.gapIntersection = new IntersectionObserver((n) => {
  101448. n.length > 0 && n[n.length - 1].intersectionRatio > 0 && this.onScrollChanged(document.createEvent("Event"));
  101449. }, {})), this.listenForScroll(), this.readSelectionRange();
  101450. }
  101451. onScrollChanged(e) {
  101452. this.view.inputState.runHandlers("scroll", e), this.intersecting && this.view.measure();
  101453. }
  101454. onScroll(e) {
  101455. this.intersecting && this.flush(!1), this.editContext && this.view.requestMeasure(this.editContext.measureReq), this.onScrollChanged(e);
  101456. }
  101457. onResize() {
  101458. this.resizeTimeout < 0 && (this.resizeTimeout = setTimeout(() => {
  101459. this.resizeTimeout = -1, this.view.requestMeasure();
  101460. }, 50));
  101461. }
  101462. onPrint(e) {
  101463. e.type == "change" && !e.matches || (this.view.viewState.printing = !0, this.view.measure(), setTimeout(() => {
  101464. this.view.viewState.printing = !1, this.view.requestMeasure();
  101465. }, 500));
  101466. }
  101467. updateGaps(e) {
  101468. if (this.gapIntersection && (e.length != this.gaps.length || this.gaps.some((n, r) => n != e[r]))) {
  101469. this.gapIntersection.disconnect();
  101470. for (let n of e)
  101471. this.gapIntersection.observe(n);
  101472. this.gaps = e;
  101473. }
  101474. }
  101475. onSelectionChange(e) {
  101476. let n = this.selectionChanged;
  101477. if (!this.readSelectionRange() || this.delayedAndroidKey)
  101478. return;
  101479. let { view: r } = this, i = this.selectionRange;
  101480. if (r.state.facet(Nc) ? r.root.activeElement != this.dom : !$w(r.dom, i))
  101481. return;
  101482. let a = i.anchorNode && r.docView.nearest(i.anchorNode);
  101483. if (a && a.ignoreEvent(e)) {
  101484. n || (this.selectionChanged = !1);
  101485. return;
  101486. }
  101487. (lt.ie && lt.ie_version <= 11 || lt.android && lt.chrome) && !r.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
  101488. i.focusNode && vb(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1);
  101489. }
  101490. readSelectionRange() {
  101491. let { view: e } = this, n = y_(e.root);
  101492. if (!n)
  101493. return !1;
  101494. let r = lt.safari && e.root.nodeType == 11 && jSt(this.dom.ownerDocument) == this.dom && hwt(this.view, n) || n;
  101495. if (!r || this.selectionRange.eq(r))
  101496. return !1;
  101497. let i = $w(this.dom, r);
  101498. return i && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && KSt(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), i && (this.selectionChanged = !0), !0);
  101499. }
  101500. setSelectionRange(e, n) {
  101501. this.selectionRange.set(e.node, e.offset, n.node, n.offset), this.selectionChanged = !1;
  101502. }
  101503. clearSelectionRange() {
  101504. this.selectionRange.set(null, 0, null, 0);
  101505. }
  101506. listenForScroll() {
  101507. this.parentCheck = -1;
  101508. let e = 0, n = null;
  101509. for (let r = this.dom; r; )
  101510. if (r.nodeType == 1)
  101511. !n && e < this.scrollTargets.length && this.scrollTargets[e] == r ? e++ : n || (n = this.scrollTargets.slice(0, e)), n && n.push(r), r = r.assignedSlot || r.parentNode;
  101512. else if (r.nodeType == 11)
  101513. r = r.host;
  101514. else
  101515. break;
  101516. if (e < this.scrollTargets.length && !n && (n = this.scrollTargets.slice(0, e)), n) {
  101517. for (let r of this.scrollTargets)
  101518. r.removeEventListener("scroll", this.onScroll);
  101519. for (let r of this.scrollTargets = n)
  101520. r.addEventListener("scroll", this.onScroll);
  101521. }
  101522. }
  101523. ignore(e) {
  101524. if (!this.active)
  101525. return e();
  101526. try {
  101527. return this.stop(), e();
  101528. } finally {
  101529. this.start(), this.clear();
  101530. }
  101531. }
  101532. start() {
  101533. this.active || (this.observer.observe(this.dom, fwt), oD && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0);
  101534. }
  101535. stop() {
  101536. this.active && (this.active = !1, this.observer.disconnect(), oD && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData));
  101537. }
  101538. // Throw away any pending changes
  101539. clear() {
  101540. this.processRecords(), this.queue.length = 0, this.selectionChanged = !1;
  101541. }
  101542. // Chrome Android, especially in combination with GBoard, not only
  101543. // doesn't reliably fire regular key events, but also often
  101544. // surrounds the effect of enter or backspace with a bunch of
  101545. // composition events that, when interrupted, cause text duplication
  101546. // or other kinds of corruption. This hack makes the editor back off
  101547. // from handling DOM changes for a moment when such a key is
  101548. // detected (via beforeinput or keydown), and then tries to flush
  101549. // them or, if that has no effect, dispatches the given key.
  101550. delayAndroidKey(e, n) {
  101551. var r;
  101552. if (!this.delayedAndroidKey) {
  101553. let i = () => {
  101554. let a = this.delayedAndroidKey;
  101555. a && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = a.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && a.force && ag(this.dom, a.key, a.keyCode));
  101556. };
  101557. this.flushingAndroidKey = this.view.win.requestAnimationFrame(i);
  101558. }
  101559. (!this.delayedAndroidKey || e == "Enter") && (this.delayedAndroidKey = {
  101560. key: e,
  101561. keyCode: n,
  101562. // Only run the key handler when no changes are detected if
  101563. // this isn't coming right after another change, in which case
  101564. // it is probably part of a weird chain of updates, and should
  101565. // be ignored if it returns the DOM to its previous state.
  101566. force: this.lastChange < Date.now() - 50 || !!(!((r = this.delayedAndroidKey) === null || r === void 0) && r.force)
  101567. });
  101568. }
  101569. clearDelayedAndroidKey() {
  101570. this.win.cancelAnimationFrame(this.flushingAndroidKey), this.delayedAndroidKey = null, this.flushingAndroidKey = -1;
  101571. }
  101572. flushSoon() {
  101573. this.delayedFlush < 0 && (this.delayedFlush = this.view.win.requestAnimationFrame(() => {
  101574. this.delayedFlush = -1, this.flush();
  101575. }));
  101576. }
  101577. forceFlush() {
  101578. this.delayedFlush >= 0 && (this.view.win.cancelAnimationFrame(this.delayedFlush), this.delayedFlush = -1), this.flush();
  101579. }
  101580. pendingRecords() {
  101581. for (let e of this.observer.takeRecords())
  101582. this.queue.push(e);
  101583. return this.queue;
  101584. }
  101585. processRecords() {
  101586. let e = this.pendingRecords();
  101587. e.length && (this.queue = []);
  101588. let n = -1, r = -1, i = !1;
  101589. for (let a of e) {
  101590. let o = this.readMutation(a);
  101591. o && (o.typeOver && (i = !0), n == -1 ? { from: n, to: r } = o : (n = Math.min(o.from, n), r = Math.max(o.to, r)));
  101592. }
  101593. return { from: n, to: r, typeOver: i };
  101594. }
  101595. readChange() {
  101596. let { from: e, to: n, typeOver: r } = this.processRecords(), i = this.selectionChanged && $w(this.dom, this.selectionRange);
  101597. if (e < 0 && !i)
  101598. return null;
  101599. e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1;
  101600. let a = new owt(this.view, e, n, r);
  101601. return this.view.docView.domChanged = { newSel: a.newSel ? a.newSel.main : null }, a;
  101602. }
  101603. // Apply pending changes, if any
  101604. flush(e = !0) {
  101605. if (this.delayedFlush >= 0 || this.delayedAndroidKey)
  101606. return !1;
  101607. e && this.readSelectionRange();
  101608. let n = this.readChange();
  101609. if (!n)
  101610. return this.view.requestMeasure(), !1;
  101611. let r = this.view.state, i = Bve(this.view, n);
  101612. return this.view.state == r && (n.domChanged || n.newSel && !n.newSel.main.eq(this.view.state.selection.main)) && this.view.update([]), i;
  101613. }
  101614. readMutation(e) {
  101615. let n = this.view.docView.nearest(e.target);
  101616. if (!n || n.ignoreMutation(e))
  101617. return null;
  101618. if (n.markDirty(e.type == "attributes"), e.type == "attributes" && (n.flags |= 4), e.type == "childList") {
  101619. let r = QK(n, e.previousSibling || e.target.previousSibling, -1), i = QK(n, e.nextSibling || e.target.nextSibling, 1);
  101620. return {
  101621. from: r ? n.posAfter(r) : n.posAtStart,
  101622. to: i ? n.posBefore(i) : n.posAtEnd,
  101623. typeOver: !1
  101624. };
  101625. } else return e.type == "characterData" ? { from: n.posAtStart, to: n.posAtEnd, typeOver: e.target.nodeValue == e.oldValue } : null;
  101626. }
  101627. setWindow(e) {
  101628. e != this.win && (this.removeWindowListeners(this.win), this.win = e, this.addWindowListeners(this.win));
  101629. }
  101630. addWindowListeners(e) {
  101631. e.addEventListener("resize", this.onResize), this.printQuery ? this.printQuery.addEventListener("change", this.onPrint) : e.addEventListener("beforeprint", this.onPrint), e.addEventListener("scroll", this.onScroll), e.document.addEventListener("selectionchange", this.onSelectionChange);
  101632. }
  101633. removeWindowListeners(e) {
  101634. e.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onResize), this.printQuery ? this.printQuery.removeEventListener("change", this.onPrint) : e.removeEventListener("beforeprint", this.onPrint), e.document.removeEventListener("selectionchange", this.onSelectionChange);
  101635. }
  101636. update(e) {
  101637. this.editContext && (this.editContext.update(e), e.startState.facet(Nc) != e.state.facet(Nc) && (e.view.contentDOM.editContext = e.state.facet(Nc) ? this.editContext.editContext : null));
  101638. }
  101639. destroy() {
  101640. var e, n, r;
  101641. this.stop(), (e = this.intersection) === null || e === void 0 || e.disconnect(), (n = this.gapIntersection) === null || n === void 0 || n.disconnect(), (r = this.resizeScroll) === null || r === void 0 || r.disconnect();
  101642. for (let i of this.scrollTargets)
  101643. i.removeEventListener("scroll", this.onScroll);
  101644. this.removeWindowListeners(this.win), clearTimeout(this.parentCheck), clearTimeout(this.resizeTimeout), this.win.cancelAnimationFrame(this.delayedFlush), this.win.cancelAnimationFrame(this.flushingAndroidKey);
  101645. }
  101646. }
  101647. function QK(t, e, n) {
  101648. for (; e; ) {
  101649. let r = Qn.get(e);
  101650. if (r && r.parent == t)
  101651. return r;
  101652. let i = e.parentNode;
  101653. e = i != t.dom ? i : n > 0 ? e.nextSibling : e.previousSibling;
  101654. }
  101655. return null;
  101656. }
  101657. function HK(t, e) {
  101658. let n = e.startContainer, r = e.startOffset, i = e.endContainer, a = e.endOffset, o = t.docView.domAtPos(t.state.selection.main.anchor);
  101659. return vb(o.node, o.offset, i, a) && ([n, r, i, a] = [i, a, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: a };
  101660. }
  101661. function hwt(t, e) {
  101662. if (e.getComposedRanges) {
  101663. let i = e.getComposedRanges(t.root)[0];
  101664. if (i)
  101665. return HK(t, i);
  101666. }
  101667. let n = null;
  101668. function r(i) {
  101669. i.preventDefault(), i.stopImmediatePropagation(), n = i.getTargetRanges()[0];
  101670. }
  101671. return t.contentDOM.addEventListener("beforeinput", r, !0), t.dom.ownerDocument.execCommand("indent"), t.contentDOM.removeEventListener("beforeinput", r, !0), n ? HK(t, n) : null;
  101672. }
  101673. class pwt {
  101674. constructor(e) {
  101675. this.from = 0, this.to = 0, this.pendingContextChange = null, this.resetRange(e.state);
  101676. let n = this.editContext = new window.EditContext({
  101677. text: e.state.doc.sliceString(this.from, this.to),
  101678. selectionStart: this.toContextPos(Math.max(this.from, Math.min(this.to, e.state.selection.main.anchor))),
  101679. selectionEnd: this.toContextPos(e.state.selection.main.head)
  101680. });
  101681. n.addEventListener("textupdate", (r) => {
  101682. let { anchor: i } = e.state.selection.main, a = {
  101683. from: this.toEditorPos(r.updateRangeStart),
  101684. to: this.toEditorPos(r.updateRangeEnd),
  101685. insert: xn.of(r.text.split(`
  101686. `))
  101687. };
  101688. a.from == this.from && i < this.from ? a.from = i : a.to == this.to && i > this.to && (a.to = i), !(a.from == a.to && !a.insert.length) && (this.pendingContextChange = a, zve(e, a, De.single(this.toEditorPos(r.selectionStart), this.toEditorPos(r.selectionEnd))), this.pendingContextChange && this.revertPending(e.state));
  101689. }), n.addEventListener("characterboundsupdate", (r) => {
  101690. let i = [], a = null;
  101691. for (let o = this.toEditorPos(r.rangeStart), s = this.toEditorPos(r.rangeEnd); o < s; o++) {
  101692. let l = e.coordsForChar(o);
  101693. a = l && new DOMRect(l.left, l.top, l.right - l.left, l.bottom - l.top) || a || new DOMRect(), i.push(a);
  101694. }
  101695. n.updateCharacterBounds(r.rangeStart, i);
  101696. }), n.addEventListener("textformatupdate", (r) => {
  101697. let i = [];
  101698. for (let a of r.getTextFormats()) {
  101699. let o = a.underlineStyle, s = a.underlineThickness;
  101700. if (o != "None" && s != "None") {
  101701. let l = `text-decoration: underline ${o == "Dashed" ? "dashed " : o == "Squiggle" ? "wavy " : ""}${s == "Thin" ? 1 : 2}px`;
  101702. i.push(pt.mark({ attributes: { style: l } }).range(this.toEditorPos(a.rangeStart), this.toEditorPos(a.rangeEnd)));
  101703. }
  101704. }
  101705. e.dispatch({ effects: mve.of(pt.set(i)) });
  101706. }), n.addEventListener("compositionstart", () => {
  101707. e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
  101708. }), n.addEventListener("compositionend", () => {
  101709. e.inputState.composing = -1, e.inputState.compositionFirstChange = null;
  101710. }), this.measureReq = { read: (r) => {
  101711. this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());
  101712. let i = y_(r.root);
  101713. i && i.rangeCount && this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect());
  101714. } };
  101715. }
  101716. applyEdits(e) {
  101717. let n = 0, r = !1, i = this.pendingContextChange;
  101718. return e.changes.iterChanges((a, o, s, l, u) => {
  101719. if (r)
  101720. return;
  101721. let c = u.length - (o - a);
  101722. if (i && o >= i.to)
  101723. if (i.from == a && i.to == o && i.insert.eq(u)) {
  101724. i = this.pendingContextChange = null, n += c, this.to += c;
  101725. return;
  101726. } else
  101727. i = null, this.revertPending(e.state);
  101728. if (a += n, o += n, o <= this.from)
  101729. this.from += c, this.to += c;
  101730. else if (a < this.to) {
  101731. if (a < this.from || o > this.to || this.to - this.from + u.length > 3e4) {
  101732. r = !0;
  101733. return;
  101734. }
  101735. this.editContext.updateText(this.toContextPos(a), this.toContextPos(o), u.toString()), this.to += c;
  101736. }
  101737. n += c;
  101738. }), i && !r && this.revertPending(e.state), !r;
  101739. }
  101740. update(e) {
  101741. !this.applyEdits(e) || !this.rangeIsValid(e.state) ? (this.pendingContextChange = null, this.resetRange(e.state), this.editContext.updateText(0, this.editContext.text.length, e.state.doc.sliceString(this.from, this.to)), this.setSelection(e.state)) : (e.docChanged || e.selectionSet) && this.setSelection(e.state), (e.geometryChanged || e.docChanged || e.selectionSet) && e.view.requestMeasure(this.measureReq);
  101742. }
  101743. resetRange(e) {
  101744. let { head: n } = e.selection.main;
  101745. this.from = Math.max(
  101746. 0,
  101747. n - 1e4
  101748. /* CxVp.Margin */
  101749. ), this.to = Math.min(
  101750. e.doc.length,
  101751. n + 1e4
  101752. /* CxVp.Margin */
  101753. );
  101754. }
  101755. revertPending(e) {
  101756. let n = this.pendingContextChange;
  101757. this.pendingContextChange = null, this.editContext.updateText(this.toContextPos(n.from), this.toContextPos(n.to + n.insert.length), e.doc.sliceString(n.from, n.to));
  101758. }
  101759. setSelection(e) {
  101760. let { main: n } = e.selection, r = this.toContextPos(Math.max(this.from, Math.min(this.to, n.anchor))), i = this.toContextPos(n.head);
  101761. (this.editContext.selectionStart != r || this.editContext.selectionEnd != i) && this.editContext.updateSelection(r, i);
  101762. }
  101763. rangeIsValid(e) {
  101764. let { head: n } = e.selection.main;
  101765. return !(this.from > 0 && n - this.from < 500 || this.to < e.doc.length && this.to - n < 500 || this.to - this.from > 1e4 * 3);
  101766. }
  101767. toEditorPos(e) {
  101768. return e + this.from;
  101769. }
  101770. toContextPos(e) {
  101771. return e - this.from;
  101772. }
  101773. }
  101774. class rt {
  101775. /**
  101776. The current editor state.
  101777. */
  101778. get state() {
  101779. return this.viewState.state;
  101780. }
  101781. /**
  101782. To be able to display large documents without consuming too much
  101783. memory or overloading the browser, CodeMirror only draws the
  101784. code that is visible (plus a margin around it) to the DOM. This
  101785. property tells you the extent of the current drawn viewport, in
  101786. document positions.
  101787. */
  101788. get viewport() {
  101789. return this.viewState.viewport;
  101790. }
  101791. /**
  101792. When there are, for example, large collapsed ranges in the
  101793. viewport, its size can be a lot bigger than the actual visible
  101794. content. Thus, if you are doing something like styling the
  101795. content in the viewport, it is preferable to only do so for
  101796. these ranges, which are the subset of the viewport that is
  101797. actually drawn.
  101798. */
  101799. get visibleRanges() {
  101800. return this.viewState.visibleRanges;
  101801. }
  101802. /**
  101803. Returns false when the editor is entirely scrolled out of view
  101804. or otherwise hidden.
  101805. */
  101806. get inView() {
  101807. return this.viewState.inView;
  101808. }
  101809. /**
  101810. Indicates whether the user is currently composing text via
  101811. [IME](https://en.wikipedia.org/wiki/Input_method), and at least
  101812. one change has been made in the current composition.
  101813. */
  101814. get composing() {
  101815. return this.inputState.composing > 0;
  101816. }
  101817. /**
  101818. Indicates whether the user is currently in composing state. Note
  101819. that on some platforms, like Android, this will be the case a
  101820. lot, since just putting the cursor on a word starts a
  101821. composition there.
  101822. */
  101823. get compositionStarted() {
  101824. return this.inputState.composing >= 0;
  101825. }
  101826. /**
  101827. The document or shadow root that the view lives in.
  101828. */
  101829. get root() {
  101830. return this._root;
  101831. }
  101832. /**
  101833. @internal
  101834. */
  101835. get win() {
  101836. return this.dom.ownerDocument.defaultView || window;
  101837. }
  101838. /**
  101839. Construct a new view. You'll want to either provide a `parent`
  101840. option, or put `view.dom` into your document after creating a
  101841. view, so that the user can see the editor.
  101842. */
  101843. constructor(e = {}) {
  101844. this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
  101845. let { dispatch: n } = e;
  101846. this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((i) => n(i, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || qSt(e.parent) || document, this.viewState = new VK(e.state || cn.create(e)), e.scrollTo && e.scrollTo.is(ux) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Ty).map((r) => new nD(r));
  101847. for (let r of this.plugins)
  101848. r.update(this);
  101849. this.observer = new dwt(this), this.inputState = new Axt(this), this.inputState.ensureHandlers(this.plugins), this.docView = new SK(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure();
  101850. }
  101851. dispatch(...e) {
  101852. let n = e.length == 1 && e[0] instanceof zr ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
  101853. this.dispatchTransactions(n, this);
  101854. }
  101855. /**
  101856. Update the view for the given array of transactions. This will
  101857. update the visible document and selection to match the state
  101858. produced by the transactions, and notify view plugins of the
  101859. change. You should usually call
  101860. [`dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch) instead, which uses this
  101861. as a primitive.
  101862. */
  101863. update(e) {
  101864. if (this.updateState != 0)
  101865. throw new Error("Calls to EditorView.update are not allowed while an update is in progress");
  101866. let n = !1, r = !1, i, a = this.state;
  101867. for (let d of e) {
  101868. if (d.startState != a)
  101869. throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");
  101870. a = d.state;
  101871. }
  101872. if (this.destroyed) {
  101873. this.viewState.state = a;
  101874. return;
  101875. }
  101876. let o = this.hasFocus, s = 0, l = null;
  101877. e.some((d) => d.annotation(Mve)) ? (this.inputState.notifiedFocused = o, s = 1) : o != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = o, l = Ive(a, o), l || (s = 1));
  101878. let u = this.observer.delayedAndroidKey, c = null;
  101879. if (u ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(a.doc) || !this.state.selection.eq(a.selection)) && (c = null)) : this.observer.clear(), a.facet(cn.phrases) != this.state.facet(cn.phrases))
  101880. return this.setState(a);
  101881. i = ET.create(this, a, e), i.flags |= s;
  101882. let f = this.viewState.scrollTarget;
  101883. try {
  101884. this.updateState = 2;
  101885. for (let d of e) {
  101886. if (f && (f = f.map(d.changes)), d.scrollIntoView) {
  101887. let { main: h } = d.state.selection;
  101888. f = new og(h.empty ? h : De.cursor(h.head, h.head > h.anchor ? -1 : 1));
  101889. }
  101890. for (let h of d.effects)
  101891. h.is(ux) && (f = h.value.clip(this.state));
  101892. }
  101893. this.viewState.update(i, f), this.bidiCache = MT.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), n = this.docView.update(i), this.state.facet(Py) != this.styleModules && this.mountStyles(), r = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(n, e.some((d) => d.isUserEvent("select.pointer")));
  101894. } finally {
  101895. this.updateState = 0;
  101896. }
  101897. if (i.startState.facet(vx) != i.state.facet(vx) && (this.viewState.mustMeasureContent = !0), (n || r || f || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), n && this.docViewUpdate(), !i.empty)
  101898. for (let d of this.state.facet(O4))
  101899. try {
  101900. d(i);
  101901. } catch (h) {
  101902. Ia(this.state, h, "update listener");
  101903. }
  101904. (l || c) && Promise.resolve().then(() => {
  101905. l && this.state == l.startState && this.dispatch(l), c && !Bve(this, c) && u.force && ag(this.contentDOM, u.key, u.keyCode);
  101906. });
  101907. }
  101908. /**
  101909. Reset the view to the given state. (This will cause the entire
  101910. document to be redrawn and all view plugins to be reinitialized,
  101911. so you should probably only use it when the new state isn't
  101912. derived from the old state. Otherwise, use
  101913. [`dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch) instead.)
  101914. */
  101915. setState(e) {
  101916. if (this.updateState != 0)
  101917. throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");
  101918. if (this.destroyed) {
  101919. this.viewState.state = e;
  101920. return;
  101921. }
  101922. this.updateState = 2;
  101923. let n = this.hasFocus;
  101924. try {
  101925. for (let r of this.plugins)
  101926. r.destroy(this);
  101927. this.viewState = new VK(e), this.plugins = e.facet(Ty).map((r) => new nD(r)), this.pluginMap.clear();
  101928. for (let r of this.plugins)
  101929. r.update(this);
  101930. this.docView.destroy(), this.docView = new SK(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
  101931. } finally {
  101932. this.updateState = 0;
  101933. }
  101934. n && this.focus(), this.requestMeasure();
  101935. }
  101936. updatePlugins(e) {
  101937. let n = e.startState.facet(Ty), r = e.state.facet(Ty);
  101938. if (n != r) {
  101939. let i = [];
  101940. for (let a of r) {
  101941. let o = n.indexOf(a);
  101942. if (o < 0)
  101943. i.push(new nD(a));
  101944. else {
  101945. let s = this.plugins[o];
  101946. s.mustUpdate = e, i.push(s);
  101947. }
  101948. }
  101949. for (let a of this.plugins)
  101950. a.mustUpdate != e && a.destroy(this);
  101951. this.plugins = i, this.pluginMap.clear();
  101952. } else
  101953. for (let i of this.plugins)
  101954. i.mustUpdate = e;
  101955. for (let i = 0; i < this.plugins.length; i++)
  101956. this.plugins[i].update(this);
  101957. n != r && this.inputState.ensureHandlers(this.plugins);
  101958. }
  101959. docViewUpdate() {
  101960. for (let e of this.plugins) {
  101961. let n = e.value;
  101962. if (n && n.docViewUpdate)
  101963. try {
  101964. n.docViewUpdate(this);
  101965. } catch (r) {
  101966. Ia(this.state, r, "doc view update listener");
  101967. }
  101968. }
  101969. }
  101970. /**
  101971. @internal
  101972. */
  101973. measure(e = !0) {
  101974. if (this.destroyed)
  101975. return;
  101976. if (this.measureScheduled > -1 && this.win.cancelAnimationFrame(this.measureScheduled), this.observer.delayedAndroidKey) {
  101977. this.measureScheduled = -1, this.requestMeasure();
  101978. return;
  101979. }
  101980. this.measureScheduled = 0, e && this.observer.forceFlush();
  101981. let n = null, r = this.scrollDOM, i = r.scrollTop * this.scaleY, { scrollAnchorPos: a, scrollAnchorHeight: o } = this.viewState;
  101982. Math.abs(i - this.viewState.scrollTop) > 1 && (o = -1), this.viewState.scrollAnchorHeight = -1;
  101983. try {
  101984. for (let s = 0; ; s++) {
  101985. if (o < 0)
  101986. if (Gpe(r))
  101987. a = -1, o = this.viewState.heightMap.height;
  101988. else {
  101989. let h = this.viewState.scrollAnchorAt(i);
  101990. a = h.from, o = h.top;
  101991. }
  101992. this.updateState = 1;
  101993. let l = this.viewState.measure(this);
  101994. if (!l && !this.measureRequests.length && this.viewState.scrollTarget == null)
  101995. break;
  101996. if (s > 5) {
  101997. console.warn(this.measureRequests.length ? "Measure loop restarted more than 5 times" : "Viewport failed to stabilize");
  101998. break;
  101999. }
  102000. let u = [];
  102001. l & 4 || ([this.measureRequests, u] = [u, this.measureRequests]);
  102002. let c = u.map((h) => {
  102003. try {
  102004. return h.read(this);
  102005. } catch (p) {
  102006. return Ia(this.state, p), GK;
  102007. }
  102008. }), f = ET.create(this, this.state, []), d = !1;
  102009. f.flags |= l, n ? n.flags |= l : n = f, this.updateState = 2, f.empty || (this.updatePlugins(f), this.inputState.update(f), this.updateAttrs(), d = this.docView.update(f), d && this.docViewUpdate());
  102010. for (let h = 0; h < u.length; h++)
  102011. if (c[h] != GK)
  102012. try {
  102013. let p = u[h];
  102014. p.write && p.write(c[h], this);
  102015. } catch (p) {
  102016. Ia(this.state, p);
  102017. }
  102018. if (d && this.docView.updateSelection(!0), !f.viewportChanged && this.measureRequests.length == 0) {
  102019. if (this.viewState.editorHeight)
  102020. if (this.viewState.scrollTarget) {
  102021. this.docView.scrollIntoView(this.viewState.scrollTarget), this.viewState.scrollTarget = null, o = -1;
  102022. continue;
  102023. } else {
  102024. let p = (a < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(a).top) - o;
  102025. if (p > 1 || p < -1) {
  102026. i = i + p, r.scrollTop = i / this.scaleY, o = -1;
  102027. continue;
  102028. }
  102029. }
  102030. break;
  102031. }
  102032. }
  102033. } finally {
  102034. this.updateState = 0, this.measureScheduled = -1;
  102035. }
  102036. if (n && !n.empty)
  102037. for (let s of this.state.facet(O4))
  102038. s(n);
  102039. }
  102040. /**
  102041. Get the CSS classes for the currently active editor themes.
  102042. */
  102043. get themeClasses() {
  102044. return T4 + " " + (this.state.facet(C4) ? Lve : kve) + " " + this.state.facet(vx);
  102045. }
  102046. updateAttrs() {
  102047. let e = jK(this, yve, {
  102048. class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses
  102049. }), n = {
  102050. spellcheck: "false",
  102051. autocorrect: "off",
  102052. autocapitalize: "off",
  102053. translate: "no",
  102054. contenteditable: this.state.facet(Nc) ? "true" : "false",
  102055. class: "cm-content",
  102056. style: `${lt.tabSize}: ${this.state.tabSize}`,
  102057. role: "textbox",
  102058. "aria-multiline": "true"
  102059. };
  102060. this.state.readOnly && (n["aria-readonly"] = "true"), jK(this, iB, n);
  102061. let r = this.observer.ignore(() => {
  102062. let i = g4(this.contentDOM, this.contentAttrs, n), a = g4(this.dom, this.editorAttrs, e);
  102063. return i || a;
  102064. });
  102065. return this.editorAttrs = e, this.contentAttrs = n, r;
  102066. }
  102067. showAnnouncements(e) {
  102068. let n = !0;
  102069. for (let r of e)
  102070. for (let i of r.effects)
  102071. if (i.is(rt.announce)) {
  102072. n && (this.announceDOM.textContent = ""), n = !1;
  102073. let a = this.announceDOM.appendChild(document.createElement("div"));
  102074. a.textContent = i.value;
  102075. }
  102076. }
  102077. mountStyles() {
  102078. this.styleModules = this.state.facet(Py);
  102079. let e = this.state.facet(rt.cspNonce);
  102080. Cf.mount(this.root, this.styleModules.concat(rwt).reverse(), e ? { nonce: e } : void 0);
  102081. }
  102082. readMeasured() {
  102083. if (this.updateState == 2)
  102084. throw new Error("Reading the editor layout isn't allowed during an update");
  102085. this.updateState == 0 && this.measureScheduled > -1 && this.measure(!1);
  102086. }
  102087. /**
  102088. Schedule a layout measurement, optionally providing callbacks to
  102089. do custom DOM measuring followed by a DOM write phase. Using
  102090. this is preferable reading DOM layout directly from, for
  102091. example, an event handler, because it'll make sure measuring and
  102092. drawing done by other components is synchronized, avoiding
  102093. unnecessary DOM layout computations.
  102094. */
  102095. requestMeasure(e) {
  102096. if (this.measureScheduled < 0 && (this.measureScheduled = this.win.requestAnimationFrame(() => this.measure())), e) {
  102097. if (this.measureRequests.indexOf(e) > -1)
  102098. return;
  102099. if (e.key != null) {
  102100. for (let n = 0; n < this.measureRequests.length; n++)
  102101. if (this.measureRequests[n].key === e.key) {
  102102. this.measureRequests[n] = e;
  102103. return;
  102104. }
  102105. }
  102106. this.measureRequests.push(e);
  102107. }
  102108. }
  102109. /**
  102110. Get the value of a specific plugin, if present. Note that
  102111. plugins that crash can be dropped from a view, so even when you
  102112. know you registered a given plugin, it is recommended to check
  102113. the return value of this method.
  102114. */
  102115. plugin(e) {
  102116. let n = this.pluginMap.get(e);
  102117. return (n === void 0 || n && n.spec != e) && this.pluginMap.set(e, n = this.plugins.find((r) => r.spec == e) || null), n && n.update(this).value;
  102118. }
  102119. /**
  102120. The top position of the document, in screen coordinates. This
  102121. may be negative when the editor is scrolled down. Points
  102122. directly to the top of the first line, not above the padding.
  102123. */
  102124. get documentTop() {
  102125. return this.contentDOM.getBoundingClientRect().top + this.viewState.paddingTop;
  102126. }
  102127. /**
  102128. Reports the padding above and below the document.
  102129. */
  102130. get documentPadding() {
  102131. return { top: this.viewState.paddingTop, bottom: this.viewState.paddingBottom };
  102132. }
  102133. /**
  102134. If the editor is transformed with CSS, this provides the scale
  102135. along the X axis. Otherwise, it will just be 1. Note that
  102136. transforms other than translation and scaling are not supported.
  102137. */
  102138. get scaleX() {
  102139. return this.viewState.scaleX;
  102140. }
  102141. /**
  102142. Provide the CSS transformed scale along the Y axis.
  102143. */
  102144. get scaleY() {
  102145. return this.viewState.scaleY;
  102146. }
  102147. /**
  102148. Find the text line or block widget at the given vertical
  102149. position (which is interpreted as relative to the [top of the
  102150. document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop)).
  102151. */
  102152. elementAtHeight(e) {
  102153. return this.readMeasured(), this.viewState.elementAtHeight(e);
  102154. }
  102155. /**
  102156. Find the line block (see
  102157. [`lineBlockAt`](https://codemirror.net/6/docs/ref/#view.EditorView.lineBlockAt) at the given
  102158. height, again interpreted relative to the [top of the
  102159. document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop).
  102160. */
  102161. lineBlockAtHeight(e) {
  102162. return this.readMeasured(), this.viewState.lineBlockAtHeight(e);
  102163. }
  102164. /**
  102165. Get the extent and vertical position of all [line
  102166. blocks](https://codemirror.net/6/docs/ref/#view.EditorView.lineBlockAt) in the viewport. Positions
  102167. are relative to the [top of the
  102168. document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop);
  102169. */
  102170. get viewportLineBlocks() {
  102171. return this.viewState.viewportLines;
  102172. }
  102173. /**
  102174. Find the line block around the given document position. A line
  102175. block is a range delimited on both sides by either a
  102176. non-[hidden](https://codemirror.net/6/docs/ref/#view.Decoration^replace) line breaks, or the
  102177. start/end of the document. It will usually just hold a line of
  102178. text, but may be broken into multiple textblocks by block
  102179. widgets.
  102180. */
  102181. lineBlockAt(e) {
  102182. return this.viewState.lineBlockAt(e);
  102183. }
  102184. /**
  102185. The editor's total content height.
  102186. */
  102187. get contentHeight() {
  102188. return this.viewState.contentHeight;
  102189. }
  102190. /**
  102191. Move a cursor position by [grapheme
  102192. cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak). `forward` determines whether
  102193. the motion is away from the line start, or towards it. In
  102194. bidirectional text, the line is traversed in visual order, using
  102195. the editor's [text direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection).
  102196. When the start position was the last one on the line, the
  102197. returned position will be across the line break. If there is no
  102198. further line, the original position is returned.
  102199. By default, this method moves over a single cluster. The
  102200. optional `by` argument can be used to move across more. It will
  102201. be called with the first cluster as argument, and should return
  102202. a predicate that determines, for each subsequent cluster,
  102203. whether it should also be moved over.
  102204. */
  102205. moveByChar(e, n, r) {
  102206. return iD(this, e, $K(this, e, n, r));
  102207. }
  102208. /**
  102209. Move a cursor position across the next group of either
  102210. [letters](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) or non-letter
  102211. non-whitespace characters.
  102212. */
  102213. moveByGroup(e, n) {
  102214. return iD(this, e, $K(this, e, n, (r) => Pxt(this, e.head, r)));
  102215. }
  102216. /**
  102217. Get the cursor position visually at the start or end of a line.
  102218. Note that this may differ from the _logical_ position at its
  102219. start or end (which is simply at `line.from`/`line.to`) if text
  102220. at the start or end goes against the line's base text direction.
  102221. */
  102222. visualLineSide(e, n) {
  102223. let r = this.bidiSpans(e), i = this.textDirectionAt(e.from), a = r[n ? r.length - 1 : 0];
  102224. return De.cursor(a.side(n, i) + e.from, a.forward(!n, i) ? 1 : -1);
  102225. }
  102226. /**
  102227. Move to the next line boundary in the given direction. If
  102228. `includeWrap` is true, line wrapping is on, and there is a
  102229. further wrap point on the current line, the wrap point will be
  102230. returned. Otherwise this function will return the start or end
  102231. of the line.
  102232. */
  102233. moveToLineBoundary(e, n, r = !0) {
  102234. return Txt(this, e, n, r);
  102235. }
  102236. /**
  102237. Move a cursor position vertically. When `distance` isn't given,
  102238. it defaults to moving to the next line (including wrapped
  102239. lines). Otherwise, `distance` should provide a positive distance
  102240. in pixels.
  102241. When `start` has a
  102242. [`goalColumn`](https://codemirror.net/6/docs/ref/#state.SelectionRange.goalColumn), the vertical
  102243. motion will use that as a target horizontal position. Otherwise,
  102244. the cursor's own horizontal position is used. The returned
  102245. cursor will have its goal column set to whichever column was
  102246. used.
  102247. */
  102248. moveVertically(e, n, r) {
  102249. return iD(this, e, $xt(this, e, n, r));
  102250. }
  102251. /**
  102252. Find the DOM parent node and offset (child offset if `node` is
  102253. an element, character offset when it is a text node) at the
  102254. given document position.
  102255. Note that for positions that aren't currently in
  102256. `visibleRanges`, the resulting DOM position isn't necessarily
  102257. meaningful (it may just point before or after a placeholder
  102258. element).
  102259. */
  102260. domAtPos(e) {
  102261. return this.docView.domAtPos(e);
  102262. }
  102263. /**
  102264. Find the document position at the given DOM node. Can be useful
  102265. for associating positions with DOM events. Will raise an error
  102266. when `node` isn't part of the editor content.
  102267. */
  102268. posAtDOM(e, n = 0) {
  102269. return this.docView.posFromDOM(e, n);
  102270. }
  102271. posAtCoords(e, n = !0) {
  102272. return this.readMeasured(), wve(this, e, n);
  102273. }
  102274. /**
  102275. Get the screen coordinates at the given document position.
  102276. `side` determines whether the coordinates are based on the
  102277. element before (-1) or after (1) the position (if no element is
  102278. available on the given side, the method will transparently use
  102279. another strategy to get reasonable coordinates).
  102280. */
  102281. coordsAtPos(e, n = 1) {
  102282. this.readMeasured();
  102283. let r = this.docView.coordsAt(e, n);
  102284. if (!r || r.left == r.right)
  102285. return r;
  102286. let i = this.state.doc.lineAt(e), a = this.bidiSpans(i), o = a[qc.find(a, e - i.from, -1, n)];
  102287. return i$(r, o.dir == ir.LTR == n > 0);
  102288. }
  102289. /**
  102290. Return the rectangle around a given character. If `pos` does not
  102291. point in front of a character that is in the viewport and
  102292. rendered (i.e. not replaced, not a line break), this will return
  102293. null. For space characters that are a line wrap point, this will
  102294. return the position before the line break.
  102295. */
  102296. coordsForChar(e) {
  102297. return this.readMeasured(), this.docView.coordsForChar(e);
  102298. }
  102299. /**
  102300. The default width of a character in the editor. May not
  102301. accurately reflect the width of all characters (given variable
  102302. width fonts or styling of invididual ranges).
  102303. */
  102304. get defaultCharacterWidth() {
  102305. return this.viewState.heightOracle.charWidth;
  102306. }
  102307. /**
  102308. The default height of a line in the editor. May not be accurate
  102309. for all lines.
  102310. */
  102311. get defaultLineHeight() {
  102312. return this.viewState.heightOracle.lineHeight;
  102313. }
  102314. /**
  102315. The text direction
  102316. ([`direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/direction)
  102317. CSS property) of the editor's content element.
  102318. */
  102319. get textDirection() {
  102320. return this.viewState.defaultTextDirection;
  102321. }
  102322. /**
  102323. Find the text direction of the block at the given position, as
  102324. assigned by CSS. If
  102325. [`perLineTextDirection`](https://codemirror.net/6/docs/ref/#view.EditorView^perLineTextDirection)
  102326. isn't enabled, or the given position is outside of the viewport,
  102327. this will always return the same as
  102328. [`textDirection`](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection). Note that
  102329. this may trigger a DOM layout.
  102330. */
  102331. textDirectionAt(e) {
  102332. return !this.state.facet(pve) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e));
  102333. }
  102334. /**
  102335. Whether this editor [wraps lines](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping)
  102336. (as determined by the
  102337. [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
  102338. CSS property of its content element).
  102339. */
  102340. get lineWrapping() {
  102341. return this.viewState.heightOracle.lineWrapping;
  102342. }
  102343. /**
  102344. Returns the bidirectional text structure of the given line
  102345. (which should be in the current document) as an array of span
  102346. objects. The order of these spans matches the [text
  102347. direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection)—if that is
  102348. left-to-right, the leftmost spans come first, otherwise the
  102349. rightmost spans come first.
  102350. */
  102351. bidiSpans(e) {
  102352. if (e.length > vwt)
  102353. return ove(e.length);
  102354. let n = this.textDirectionAt(e.from), r;
  102355. for (let a of this.bidiCache)
  102356. if (a.from == e.from && a.dir == n && (a.fresh || ave(a.isolates, r = OK(this, e))))
  102357. return a.order;
  102358. r || (r = OK(this, e));
  102359. let i = cxt(e.text, n, r);
  102360. return this.bidiCache.push(new MT(e.from, e.to, n, r, !0, i)), i;
  102361. }
  102362. /**
  102363. Check whether the editor has focus.
  102364. */
  102365. get hasFocus() {
  102366. var e;
  102367. return (this.dom.ownerDocument.hasFocus() || lt.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
  102368. }
  102369. /**
  102370. Put focus on the editor.
  102371. */
  102372. focus() {
  102373. this.observer.ignore(() => {
  102374. Qpe(this.contentDOM), this.docView.updateSelection();
  102375. });
  102376. }
  102377. /**
  102378. Update the [root](https://codemirror.net/6/docs/ref/##view.EditorViewConfig.root) in which the editor lives. This is only
  102379. necessary when moving the editor's existing DOM to a new window or shadow root.
  102380. */
  102381. setRoot(e) {
  102382. this._root != e && (this._root = e, this.observer.setWindow((e.nodeType == 9 ? e : e.ownerDocument).defaultView || window), this.mountStyles());
  102383. }
  102384. /**
  102385. Clean up this editor view, removing its element from the
  102386. document, unregistering event handlers, and notifying
  102387. plugins. The view instance can no longer be used after
  102388. calling this.
  102389. */
  102390. destroy() {
  102391. this.root.activeElement == this.contentDOM && this.contentDOM.blur();
  102392. for (let e of this.plugins)
  102393. e.destroy(this);
  102394. this.plugins = [], this.inputState.destroy(), this.docView.destroy(), this.dom.remove(), this.observer.destroy(), this.measureScheduled > -1 && this.win.cancelAnimationFrame(this.measureScheduled), this.destroyed = !0;
  102395. }
  102396. /**
  102397. Returns an effect that can be
  102398. [added](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) to a transaction to
  102399. cause it to scroll the given position or range into view.
  102400. */
  102401. static scrollIntoView(e, n = {}) {
  102402. return ux.of(new og(typeof e == "number" ? De.cursor(e) : e, n.y, n.x, n.yMargin, n.xMargin));
  102403. }
  102404. /**
  102405. Return an effect that resets the editor to its current (at the
  102406. time this method was called) scroll position. Note that this
  102407. only affects the editor's own scrollable element, not parents.
  102408. See also
  102409. [`EditorViewConfig.scrollTo`](https://codemirror.net/6/docs/ref/#view.EditorViewConfig.scrollTo).
  102410. The effect should be used with a document identical to the one
  102411. it was created for. Failing to do so is not an error, but may
  102412. not scroll to the expected position. You can
  102413. [map](https://codemirror.net/6/docs/ref/#state.StateEffect.map) the effect to account for changes.
  102414. */
  102415. scrollSnapshot() {
  102416. let { scrollTop: e, scrollLeft: n } = this.scrollDOM, r = this.viewState.scrollAnchorAt(e);
  102417. return ux.of(new og(De.cursor(r.from), "start", "start", r.top - e, n, !0));
  102418. }
  102419. /**
  102420. Enable or disable tab-focus mode, which disables key bindings
  102421. for Tab and Shift-Tab, letting the browser's default
  102422. focus-changing behavior go through instead. This is useful to
  102423. prevent trapping keyboard users in your editor.
  102424. Without argument, this toggles the mode. With a boolean, it
  102425. enables (true) or disables it (false). Given a number, it
  102426. temporarily enables the mode until that number of milliseconds
  102427. have passed or another non-Tab key is pressed.
  102428. */
  102429. setTabFocusMode(e) {
  102430. e == null ? this.inputState.tabFocusMode = this.inputState.tabFocusMode < 0 ? 0 : -1 : typeof e == "boolean" ? this.inputState.tabFocusMode = e ? 0 : -1 : this.inputState.tabFocusMode != 0 && (this.inputState.tabFocusMode = Date.now() + e);
  102431. }
  102432. /**
  102433. Returns an extension that can be used to add DOM event handlers.
  102434. The value should be an object mapping event names to handler
  102435. functions. For any given event, such functions are ordered by
  102436. extension precedence, and the first handler to return true will
  102437. be assumed to have handled that event, and no other handlers or
  102438. built-in behavior will be activated for it. These are registered
  102439. on the [content element](https://codemirror.net/6/docs/ref/#view.EditorView.contentDOM), except
  102440. for `scroll` handlers, which will be called any time the
  102441. editor's [scroll element](https://codemirror.net/6/docs/ref/#view.EditorView.scrollDOM) or one of
  102442. its parent nodes is scrolled.
  102443. */
  102444. static domEventHandlers(e) {
  102445. return Ir.define(() => ({}), { eventHandlers: e });
  102446. }
  102447. /**
  102448. Create an extension that registers DOM event observers. Contrary
  102449. to event [handlers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventHandlers),
  102450. observers can't be prevented from running by a higher-precedence
  102451. handler returning true. They also don't prevent other handlers
  102452. and observers from running when they return true, and should not
  102453. call `preventDefault`.
  102454. */
  102455. static domEventObservers(e) {
  102456. return Ir.define(() => ({}), { eventObservers: e });
  102457. }
  102458. /**
  102459. Create a theme extension. The first argument can be a
  102460. [`style-mod`](https://github.com/marijnh/style-mod#documentation)
  102461. style spec providing the styles for the theme. These will be
  102462. prefixed with a generated class for the style.
  102463. Because the selectors will be prefixed with a scope class, rule
  102464. that directly match the editor's [wrapper
  102465. element](https://codemirror.net/6/docs/ref/#view.EditorView.dom)—to which the scope class will be
  102466. added—need to be explicitly differentiated by adding an `&` to
  102467. the selector for that element—for example
  102468. `&.cm-focused`.
  102469. When `dark` is set to true, the theme will be marked as dark,
  102470. which will cause the `&dark` rules from [base
  102471. themes](https://codemirror.net/6/docs/ref/#view.EditorView^baseTheme) to be used (as opposed to
  102472. `&light` when a light theme is active).
  102473. */
  102474. static theme(e, n) {
  102475. let r = Cf.newName(), i = [vx.of(r), Py.of(P4(`.${r}`, e))];
  102476. return n && n.dark && i.push(C4.of(!0)), i;
  102477. }
  102478. /**
  102479. Create an extension that adds styles to the base theme. Like
  102480. with [`theme`](https://codemirror.net/6/docs/ref/#view.EditorView^theme), use `&` to indicate the
  102481. place of the editor wrapper element when directly targeting
  102482. that. You can also use `&dark` or `&light` instead to only
  102483. target editors with a dark or light theme.
  102484. */
  102485. static baseTheme(e) {
  102486. return Ff.lowest(Py.of(P4("." + T4, e, Nve)));
  102487. }
  102488. /**
  102489. Retrieve an editor view instance from the view's DOM
  102490. representation.
  102491. */
  102492. static findFromDOM(e) {
  102493. var n;
  102494. let r = e.querySelector(".cm-content"), i = r && Qn.get(r) || Qn.get(e);
  102495. return ((n = i == null ? void 0 : i.rootView) === null || n === void 0 ? void 0 : n.view) || null;
  102496. }
  102497. }
  102498. rt.styleModule = Py;
  102499. rt.inputHandler = dve;
  102500. rt.scrollHandler = gve;
  102501. rt.focusChangeEffect = hve;
  102502. rt.perLineTextDirection = pve;
  102503. rt.exceptionSink = fve;
  102504. rt.updateListener = O4;
  102505. rt.editable = Nc;
  102506. rt.mouseSelectionStyle = cve;
  102507. rt.dragMovesSelection = uve;
  102508. rt.clickAddsSelectionRange = lve;
  102509. rt.decorations = b_;
  102510. rt.outerDecorations = bve;
  102511. rt.atomicRanges = aB;
  102512. rt.bidiIsolatedRanges = _ve;
  102513. rt.scrollMargins = Ove;
  102514. rt.darkTheme = C4;
  102515. rt.cspNonce = /* @__PURE__ */ ut.define({ combine: (t) => t.length ? t[0] : "" });
  102516. rt.contentAttributes = iB;
  102517. rt.editorAttributes = yve;
  102518. rt.lineWrapping = /* @__PURE__ */ rt.contentAttributes.of({ class: "cm-lineWrapping" });
  102519. rt.announce = /* @__PURE__ */ zt.define();
  102520. const vwt = 4096, GK = {};
  102521. class MT {
  102522. constructor(e, n, r, i, a, o) {
  102523. this.from = e, this.to = n, this.dir = r, this.isolates = i, this.fresh = a, this.order = o;
  102524. }
  102525. static update(e, n) {
  102526. if (n.empty && !e.some((a) => a.fresh))
  102527. return e;
  102528. let r = [], i = e.length ? e[e.length - 1].dir : ir.LTR;
  102529. for (let a = Math.max(0, e.length - 10); a < e.length; a++) {
  102530. let o = e[a];
  102531. o.dir == i && !n.touchesRange(o.from, o.to) && r.push(new MT(n.mapPos(o.from, 1), n.mapPos(o.to, -1), o.dir, o.isolates, !1, o.order));
  102532. }
  102533. return r;
  102534. }
  102535. }
  102536. function jK(t, e, n) {
  102537. for (let r = t.state.facet(e), i = r.length - 1; i >= 0; i--) {
  102538. let a = r[i], o = typeof a == "function" ? a(t) : a;
  102539. o && v4(o, n);
  102540. }
  102541. return n;
  102542. }
  102543. const gwt = lt.mac ? "mac" : lt.windows ? "win" : lt.linux ? "linux" : "key";
  102544. function mwt(t, e) {
  102545. const n = t.split(/-(?!$)/);
  102546. let r = n[n.length - 1];
  102547. r == "Space" && (r = " ");
  102548. let i, a, o, s;
  102549. for (let l = 0; l < n.length - 1; ++l) {
  102550. const u = n[l];
  102551. if (/^(cmd|meta|m)$/i.test(u))
  102552. s = !0;
  102553. else if (/^a(lt)?$/i.test(u))
  102554. i = !0;
  102555. else if (/^(c|ctrl|control)$/i.test(u))
  102556. a = !0;
  102557. else if (/^s(hift)?$/i.test(u))
  102558. o = !0;
  102559. else if (/^mod$/i.test(u))
  102560. e == "mac" ? s = !0 : a = !0;
  102561. else
  102562. throw new Error("Unrecognized modifier name: " + u);
  102563. }
  102564. return i && (r = "Alt-" + r), a && (r = "Ctrl-" + r), s && (r = "Meta-" + r), o && (r = "Shift-" + r), r;
  102565. }
  102566. function gx(t, e, n) {
  102567. return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n !== !1 && e.shiftKey && (t = "Shift-" + t), t;
  102568. }
  102569. const ywt = /* @__PURE__ */ Ff.default(/* @__PURE__ */ rt.domEventHandlers({
  102570. keydown(t, e) {
  102571. return Fve(Vve(e.state), t, e, "editor");
  102572. }
  102573. })), M1 = /* @__PURE__ */ ut.define({ enables: ywt }), ZK = /* @__PURE__ */ new WeakMap();
  102574. function Vve(t) {
  102575. let e = t.facet(M1), n = ZK.get(e);
  102576. return n || ZK.set(e, n = Owt(e.reduce((r, i) => r.concat(i), []))), n;
  102577. }
  102578. function bwt(t, e, n) {
  102579. return Fve(Vve(t.state), e, t, n);
  102580. }
  102581. let Bc = null;
  102582. const _wt = 4e3;
  102583. function Owt(t, e = gwt) {
  102584. let n = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), i = (o, s) => {
  102585. let l = r[o];
  102586. if (l == null)
  102587. r[o] = s;
  102588. else if (l != s)
  102589. throw new Error("Key binding " + o + " is used both as a regular binding and as a multi-stroke prefix");
  102590. }, a = (o, s, l, u, c) => {
  102591. var f, d;
  102592. let h = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), p = s.split(/ (?!$)/).map((m) => mwt(m, e));
  102593. for (let m = 1; m < p.length; m++) {
  102594. let y = p.slice(0, m).join(" ");
  102595. i(y, !0), h[y] || (h[y] = {
  102596. preventDefault: !0,
  102597. stopPropagation: !1,
  102598. run: [(_) => {
  102599. let O = Bc = { view: _, prefix: y, scope: o };
  102600. return setTimeout(() => {
  102601. Bc == O && (Bc = null);
  102602. }, _wt), !0;
  102603. }]
  102604. });
  102605. }
  102606. let v = p.join(" ");
  102607. i(v, !1);
  102608. let g = h[v] || (h[v] = {
  102609. preventDefault: !1,
  102610. stopPropagation: !1,
  102611. run: ((d = (f = h._any) === null || f === void 0 ? void 0 : f.run) === null || d === void 0 ? void 0 : d.slice()) || []
  102612. });
  102613. l && g.run.push(l), u && (g.preventDefault = !0), c && (g.stopPropagation = !0);
  102614. };
  102615. for (let o of t) {
  102616. let s = o.scope ? o.scope.split(" ") : ["editor"];
  102617. if (o.any)
  102618. for (let u of s) {
  102619. let c = n[u] || (n[u] = /* @__PURE__ */ Object.create(null));
  102620. c._any || (c._any = { preventDefault: !1, stopPropagation: !1, run: [] });
  102621. let { any: f } = o;
  102622. for (let d in c)
  102623. c[d].run.push((h) => f(h, $4));
  102624. }
  102625. let l = o[e] || o.key;
  102626. if (l)
  102627. for (let u of s)
  102628. a(u, l, o.run, o.preventDefault, o.stopPropagation), o.shift && a(u, "Shift-" + l, o.shift, o.preventDefault, o.stopPropagation);
  102629. }
  102630. return n;
  102631. }
  102632. let $4 = null;
  102633. function Fve(t, e, n, r) {
  102634. $4 = e;
  102635. let i = GSt(e), a = bi(i, 0), o = jo(a) == i.length && i != " ", s = "", l = !1, u = !1, c = !1;
  102636. Bc && Bc.view == n && Bc.scope == r && (s = Bc.prefix + " ", Tve.indexOf(e.keyCode) < 0 && (u = !0, Bc = null));
  102637. let f = /* @__PURE__ */ new Set(), d = (g) => {
  102638. if (g) {
  102639. for (let m of g.run)
  102640. if (!f.has(m) && (f.add(m), m(n)))
  102641. return g.stopPropagation && (c = !0), !0;
  102642. g.preventDefault && (g.stopPropagation && (c = !0), u = !0);
  102643. }
  102644. return !1;
  102645. }, h = t[r], p, v;
  102646. return h && (d(h[s + gx(i, e, !o)]) ? l = !0 : o && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
  102647. !(lt.windows && e.ctrlKey && e.altKey) && (p = Tf[e.keyCode]) && p != i ? (d(h[s + gx(p, e, !0)]) || e.shiftKey && (v = m_[e.keyCode]) != i && v != p && d(h[s + gx(v, e, !1)])) && (l = !0) : o && e.shiftKey && d(h[s + gx(i, e, !0)]) && (l = !0), !l && d(h._any) && (l = !0)), u && (l = !0), l && c && e.stopPropagation(), $4 = null, l;
  102648. }
  102649. class I1 {
  102650. /**
  102651. Create a marker with the given class and dimensions. If `width`
  102652. is null, the DOM element will get no width style.
  102653. */
  102654. constructor(e, n, r, i, a) {
  102655. this.className = e, this.left = n, this.top = r, this.width = i, this.height = a;
  102656. }
  102657. draw() {
  102658. let e = document.createElement("div");
  102659. return e.className = this.className, this.adjust(e), e;
  102660. }
  102661. update(e, n) {
  102662. return n.className != this.className ? !1 : (this.adjust(e), !0);
  102663. }
  102664. adjust(e) {
  102665. e.style.left = this.left + "px", e.style.top = this.top + "px", this.width != null && (e.style.width = this.width + "px"), e.style.height = this.height + "px";
  102666. }
  102667. eq(e) {
  102668. return this.left == e.left && this.top == e.top && this.width == e.width && this.height == e.height && this.className == e.className;
  102669. }
  102670. /**
  102671. Create a set of rectangles for the given selection range,
  102672. assigning them theclass`className`. Will create a single
  102673. rectangle for empty ranges, and a set of selection-style
  102674. rectangles covering the range's content (in a bidi-aware
  102675. way) for non-empty ones.
  102676. */
  102677. static forRange(e, n, r) {
  102678. if (r.empty) {
  102679. let i = e.coordsAtPos(r.head, r.assoc || 1);
  102680. if (!i)
  102681. return [];
  102682. let a = Wve(e);
  102683. return [new I1(n, i.left - a.left, i.top - a.top, null, i.bottom - i.top)];
  102684. } else
  102685. return Swt(e, n, r);
  102686. }
  102687. }
  102688. function Wve(t) {
  102689. let e = t.scrollDOM.getBoundingClientRect();
  102690. return { left: (t.textDirection == ir.LTR ? e.left : e.right - t.scrollDOM.clientWidth * t.scaleX) - t.scrollDOM.scrollLeft * t.scaleX, top: e.top - t.scrollDOM.scrollTop * t.scaleY };
  102691. }
  102692. function UK(t, e, n, r) {
  102693. let i = t.coordsAtPos(e, n * 2);
  102694. if (!i)
  102695. return r;
  102696. let a = t.dom.getBoundingClientRect(), o = (i.top + i.bottom) / 2, s = t.posAtCoords({ x: a.left + 1, y: o }), l = t.posAtCoords({ x: a.right - 1, y: o });
  102697. return s == null || l == null ? r : { from: Math.max(r.from, Math.min(s, l)), to: Math.min(r.to, Math.max(s, l)) };
  102698. }
  102699. function Swt(t, e, n) {
  102700. if (n.to <= t.viewport.from || n.from >= t.viewport.to)
  102701. return [];
  102702. let r = Math.max(n.from, t.viewport.from), i = Math.min(n.to, t.viewport.to), a = t.textDirection == ir.LTR, o = t.contentDOM, s = o.getBoundingClientRect(), l = Wve(t), u = o.querySelector(".cm-line"), c = u && window.getComputedStyle(u), f = s.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), d = s.right - (c ? parseInt(c.paddingRight) : 0), h = x4(t, r), p = x4(t, i), v = h.type == la.Text ? h : null, g = p.type == la.Text ? p : null;
  102703. if (v && (t.lineWrapping || h.widgetLineBreaks) && (v = UK(t, r, 1, v)), g && (t.lineWrapping || p.widgetLineBreaks) && (g = UK(t, i, -1, g)), v && g && v.from == g.from && v.to == g.to)
  102704. return y(_(n.from, n.to, v));
  102705. {
  102706. let S = v ? _(n.from, null, v) : O(h, !1), x = g ? _(null, n.to, g) : O(p, !0), C = [];
  102707. return (v || h).to < (g || p).from - (v && g ? 1 : 0) || h.widgetLineBreaks > 1 && S.bottom + t.defaultLineHeight / 2 < x.top ? C.push(m(f, S.bottom, d, x.top)) : S.bottom < x.top && t.elementAtHeight((S.bottom + x.top) / 2).type == la.Text && (S.bottom = x.top = (S.bottom + x.top) / 2), y(S).concat(C).concat(y(x));
  102708. }
  102709. function m(S, x, C, P) {
  102710. return new I1(
  102711. e,
  102712. S - l.left,
  102713. x - l.top - 0.01,
  102714. C - S,
  102715. P - x + 0.01
  102716. /* C.Epsilon */
  102717. );
  102718. }
  102719. function y({ top: S, bottom: x, horizontal: C }) {
  102720. let P = [];
  102721. for (let $ = 0; $ < C.length; $ += 2)
  102722. P.push(m(C[$], S, C[$ + 1], x));
  102723. return P;
  102724. }
  102725. function _(S, x, C) {
  102726. let P = 1e9, $ = -1e9, T = [];
  102727. function E(N, I, B, Q, W) {
  102728. let H = t.coordsAtPos(N, N == C.to ? -2 : 2), U = t.coordsAtPos(B, B == C.from ? 2 : -2);
  102729. !H || !U || (P = Math.min(H.top, U.top, P), $ = Math.max(H.bottom, U.bottom, $), W == ir.LTR ? T.push(a && I ? f : H.left, a && Q ? d : U.right) : T.push(!a && Q ? f : U.left, !a && I ? d : H.right));
  102730. }
  102731. let M = S ?? C.from, R = x ?? C.to;
  102732. for (let N of t.visibleRanges)
  102733. if (N.to > M && N.from < R)
  102734. for (let I = Math.max(N.from, M), B = Math.min(N.to, R); ; ) {
  102735. let Q = t.state.doc.lineAt(I);
  102736. for (let W of t.bidiSpans(Q)) {
  102737. let H = W.from + Q.from, U = W.to + Q.from;
  102738. if (H >= B)
  102739. break;
  102740. U > I && E(Math.max(H, I), S == null && H <= M, Math.min(U, B), x == null && U >= R, W.dir);
  102741. }
  102742. if (I = Q.to + 1, I >= B)
  102743. break;
  102744. }
  102745. return T.length == 0 && E(M, S == null, R, x == null, t.textDirection), { top: P, bottom: $, horizontal: T };
  102746. }
  102747. function O(S, x) {
  102748. let C = s.top + (x ? S.top : S.bottom);
  102749. return { top: C, bottom: C, horizontal: [] };
  102750. }
  102751. }
  102752. function xwt(t, e) {
  102753. return t.constructor == e.constructor && t.eq(e);
  102754. }
  102755. class wwt {
  102756. constructor(e, n) {
  102757. this.view = e, this.layer = n, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), n.above && this.dom.classList.add("cm-layer-above"), n.class && this.dom.classList.add(n.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), n.mount && n.mount(this.dom, e);
  102758. }
  102759. update(e) {
  102760. e.startState.facet(Mw) != e.state.facet(Mw) && this.setOrder(e.state), (this.layer.update(e, this.dom) || e.geometryChanged) && (this.scale(), e.view.requestMeasure(this.measureReq));
  102761. }
  102762. docViewUpdate(e) {
  102763. this.layer.updateOnDocViewUpdate !== !1 && e.requestMeasure(this.measureReq);
  102764. }
  102765. setOrder(e) {
  102766. let n = 0, r = e.facet(Mw);
  102767. for (; n < r.length && r[n] != this.layer; )
  102768. n++;
  102769. this.dom.style.zIndex = String((this.layer.above ? 150 : -1) - n);
  102770. }
  102771. measure() {
  102772. return this.layer.markers(this.view);
  102773. }
  102774. scale() {
  102775. let { scaleX: e, scaleY: n } = this.view;
  102776. (e != this.scaleX || n != this.scaleY) && (this.scaleX = e, this.scaleY = n, this.dom.style.transform = `scale(${1 / e}, ${1 / n})`);
  102777. }
  102778. draw(e) {
  102779. if (e.length != this.drawn.length || e.some((n, r) => !xwt(n, this.drawn[r]))) {
  102780. let n = this.dom.firstChild, r = 0;
  102781. for (let i of e)
  102782. i.update && n && i.constructor && this.drawn[r].constructor && i.update(n, this.drawn[r]) ? (n = n.nextSibling, r++) : this.dom.insertBefore(i.draw(), n);
  102783. for (; n; ) {
  102784. let i = n.nextSibling;
  102785. n.remove(), n = i;
  102786. }
  102787. this.drawn = e;
  102788. }
  102789. }
  102790. destroy() {
  102791. this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
  102792. }
  102793. }
  102794. const Mw = /* @__PURE__ */ ut.define();
  102795. function Qve(t) {
  102796. return [
  102797. Ir.define((e) => new wwt(e, t)),
  102798. Mw.of(t)
  102799. ];
  102800. }
  102801. const Hve = !lt.ios, __ = /* @__PURE__ */ ut.define({
  102802. combine(t) {
  102803. return Kl(t, {
  102804. cursorBlinkRate: 1200,
  102805. drawRangeCursor: !0
  102806. }, {
  102807. cursorBlinkRate: (e, n) => Math.min(e, n),
  102808. drawRangeCursor: (e, n) => e || n
  102809. });
  102810. }
  102811. });
  102812. function Cwt(t = {}) {
  102813. return [
  102814. __.of(t),
  102815. Twt,
  102816. Pwt,
  102817. $wt,
  102818. vve.of(!0)
  102819. ];
  102820. }
  102821. function Gve(t) {
  102822. return t.startState.facet(__) != t.state.facet(__);
  102823. }
  102824. const Twt = /* @__PURE__ */ Qve({
  102825. above: !0,
  102826. markers(t) {
  102827. let { state: e } = t, n = e.facet(__), r = [];
  102828. for (let i of e.selection.ranges) {
  102829. let a = i == e.selection.main;
  102830. if (i.empty ? !a || Hve : n.drawRangeCursor) {
  102831. let o = a ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", s = i.empty ? i : De.cursor(i.head, i.head > i.anchor ? -1 : 1);
  102832. for (let l of I1.forRange(t, o, s))
  102833. r.push(l);
  102834. }
  102835. }
  102836. return r;
  102837. },
  102838. update(t, e) {
  102839. t.transactions.some((r) => r.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink");
  102840. let n = Gve(t);
  102841. return n && XK(t.state, e), t.docChanged || t.selectionSet || n;
  102842. },
  102843. mount(t, e) {
  102844. XK(e.state, t);
  102845. },
  102846. class: "cm-cursorLayer"
  102847. });
  102848. function XK(t, e) {
  102849. e.style.animationDuration = t.facet(__).cursorBlinkRate + "ms";
  102850. }
  102851. const Pwt = /* @__PURE__ */ Qve({
  102852. above: !1,
  102853. markers(t) {
  102854. return t.state.selection.ranges.map((e) => e.empty ? [] : I1.forRange(t, "cm-selectionBackground", e)).reduce((e, n) => e.concat(n));
  102855. },
  102856. update(t, e) {
  102857. return t.docChanged || t.selectionSet || t.viewportChanged || Gve(t);
  102858. },
  102859. class: "cm-selectionLayer"
  102860. }), A4 = {
  102861. ".cm-line": {
  102862. "& ::selection, &::selection": { backgroundColor: "transparent !important" }
  102863. },
  102864. ".cm-content": {
  102865. "& :focus": {
  102866. caretColor: "initial !important",
  102867. "&::selection, & ::selection": {
  102868. backgroundColor: "Highlight !important"
  102869. }
  102870. }
  102871. }
  102872. };
  102873. Hve && (A4[".cm-line"].caretColor = A4[".cm-content"].caretColor = "transparent !important");
  102874. const $wt = /* @__PURE__ */ Ff.highest(/* @__PURE__ */ rt.theme(A4)), jve = /* @__PURE__ */ zt.define({
  102875. map(t, e) {
  102876. return t == null ? null : e.mapPos(t);
  102877. }
  102878. }), Ey = /* @__PURE__ */ fi.define({
  102879. create() {
  102880. return null;
  102881. },
  102882. update(t, e) {
  102883. return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((n, r) => r.is(jve) ? r.value : n, t);
  102884. }
  102885. }), Awt = /* @__PURE__ */ Ir.fromClass(class {
  102886. constructor(t) {
  102887. this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) };
  102888. }
  102889. update(t) {
  102890. var e;
  102891. let n = t.state.field(Ey);
  102892. n == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (t.startState.field(Ey) != n || t.docChanged || t.geometryChanged) && this.view.requestMeasure(this.measureReq));
  102893. }
  102894. readPos() {
  102895. let { view: t } = this, e = t.state.field(Ey), n = e != null && t.coordsAtPos(e);
  102896. if (!n)
  102897. return null;
  102898. let r = t.scrollDOM.getBoundingClientRect();
  102899. return {
  102900. left: n.left - r.left + t.scrollDOM.scrollLeft * t.scaleX,
  102901. top: n.top - r.top + t.scrollDOM.scrollTop * t.scaleY,
  102902. height: n.bottom - n.top
  102903. };
  102904. }
  102905. drawCursor(t) {
  102906. if (this.cursor) {
  102907. let { scaleX: e, scaleY: n } = this.view;
  102908. t ? (this.cursor.style.left = t.left / e + "px", this.cursor.style.top = t.top / n + "px", this.cursor.style.height = t.height / n + "px") : this.cursor.style.left = "-100000px";
  102909. }
  102910. }
  102911. destroy() {
  102912. this.cursor && this.cursor.remove();
  102913. }
  102914. setDropPos(t) {
  102915. this.view.state.field(Ey) != t && this.view.dispatch({ effects: jve.of(t) });
  102916. }
  102917. }, {
  102918. eventObservers: {
  102919. dragover(t) {
  102920. this.setDropPos(this.view.posAtCoords({ x: t.clientX, y: t.clientY }));
  102921. },
  102922. dragleave(t) {
  102923. (t.target == this.view.contentDOM || !this.view.contentDOM.contains(t.relatedTarget)) && this.setDropPos(null);
  102924. },
  102925. dragend() {
  102926. this.setDropPos(null);
  102927. },
  102928. drop() {
  102929. this.setDropPos(null);
  102930. }
  102931. }
  102932. });
  102933. function Ewt() {
  102934. return [Ey, Awt];
  102935. }
  102936. function YK(t, e, n, r, i) {
  102937. e.lastIndex = 0;
  102938. for (let a = t.iterRange(n, r), o = n, s; !a.next().done; o += a.value.length)
  102939. if (!a.lineBreak)
  102940. for (; s = e.exec(a.value); )
  102941. i(o + s.index, s);
  102942. }
  102943. function Mwt(t, e) {
  102944. let n = t.visibleRanges;
  102945. if (n.length == 1 && n[0].from == t.viewport.from && n[0].to == t.viewport.to)
  102946. return n;
  102947. let r = [];
  102948. for (let { from: i, to: a } of n)
  102949. i = Math.max(t.state.doc.lineAt(i).from, i - e), a = Math.min(t.state.doc.lineAt(a).to, a + e), r.length && r[r.length - 1].to >= i ? r[r.length - 1].to = a : r.push({ from: i, to: a });
  102950. return r;
  102951. }
  102952. class Iwt {
  102953. /**
  102954. Create a decorator.
  102955. */
  102956. constructor(e) {
  102957. const { regexp: n, decoration: r, decorate: i, boundary: a, maxLength: o = 1e3 } = e;
  102958. if (!n.global)
  102959. throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");
  102960. if (this.regexp = n, i)
  102961. this.addMatch = (s, l, u, c) => i(c, u, u + s[0].length, s, l);
  102962. else if (typeof r == "function")
  102963. this.addMatch = (s, l, u, c) => {
  102964. let f = r(s, l, u);
  102965. f && c(u, u + s[0].length, f);
  102966. };
  102967. else if (r)
  102968. this.addMatch = (s, l, u, c) => c(u, u + s[0].length, r);
  102969. else
  102970. throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");
  102971. this.boundary = a, this.maxLength = o;
  102972. }
  102973. /**
  102974. Compute the full set of decorations for matches in the given
  102975. view's viewport. You'll want to call this when initializing your
  102976. plugin.
  102977. */
  102978. createDeco(e) {
  102979. let n = new wf(), r = n.add.bind(n);
  102980. for (let { from: i, to: a } of Mwt(e, this.maxLength))
  102981. YK(e.state.doc, this.regexp, i, a, (o, s) => this.addMatch(s, e, o, r));
  102982. return n.finish();
  102983. }
  102984. /**
  102985. Update a set of decorations for a view update. `deco` _must_ be
  102986. the set of decorations produced by _this_ `MatchDecorator` for
  102987. the view state before the update.
  102988. */
  102989. updateDeco(e, n) {
  102990. let r = 1e9, i = -1;
  102991. return e.docChanged && e.changes.iterChanges((a, o, s, l) => {
  102992. l > e.view.viewport.from && s < e.view.viewport.to && (r = Math.min(s, r), i = Math.max(l, i));
  102993. }), e.viewportChanged || i - r > 1e3 ? this.createDeco(e.view) : i > -1 ? this.updateRange(e.view, n.map(e.changes), r, i) : n;
  102994. }
  102995. updateRange(e, n, r, i) {
  102996. for (let a of e.visibleRanges) {
  102997. let o = Math.max(a.from, r), s = Math.min(a.to, i);
  102998. if (s > o) {
  102999. let l = e.state.doc.lineAt(o), u = l.to < s ? e.state.doc.lineAt(s) : l, c = Math.max(a.from, l.from), f = Math.min(a.to, u.to);
  103000. if (this.boundary) {
  103001. for (; o > l.from; o--)
  103002. if (this.boundary.test(l.text[o - 1 - l.from])) {
  103003. c = o;
  103004. break;
  103005. }
  103006. for (; s < u.to; s++)
  103007. if (this.boundary.test(u.text[s - u.from])) {
  103008. f = s;
  103009. break;
  103010. }
  103011. }
  103012. let d = [], h, p = (v, g, m) => d.push(m.range(v, g));
  103013. if (l == u)
  103014. for (this.regexp.lastIndex = c - l.from; (h = this.regexp.exec(l.text)) && h.index < f - l.from; )
  103015. this.addMatch(h, e, h.index + l.from, p);
  103016. else
  103017. YK(e.state.doc, this.regexp, c, f, (v, g) => this.addMatch(g, e, v, p));
  103018. n = n.update({ filterFrom: c, filterTo: f, filter: (v, g) => v < c || g > f, add: d });
  103019. }
  103020. }
  103021. return n;
  103022. }
  103023. }
  103024. const E4 = /x/.unicode != null ? "gu" : "g", Dwt = /* @__PURE__ */ new RegExp(`[\0-\b
  103025. --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`, E4), Rwt = {
  103026. 0: "null",
  103027. 7: "bell",
  103028. 8: "backspace",
  103029. 10: "newline",
  103030. 11: "vertical tab",
  103031. 13: "carriage return",
  103032. 27: "escape",
  103033. 8203: "zero width space",
  103034. 8204: "zero width non-joiner",
  103035. 8205: "zero width joiner",
  103036. 8206: "left-to-right mark",
  103037. 8207: "right-to-left mark",
  103038. 8232: "line separator",
  103039. 8237: "left-to-right override",
  103040. 8238: "right-to-left override",
  103041. 8294: "left-to-right isolate",
  103042. 8295: "right-to-left isolate",
  103043. 8297: "pop directional isolate",
  103044. 8233: "paragraph separator",
  103045. 65279: "zero width no-break space",
  103046. 65532: "object replacement"
  103047. };
  103048. let sD = null;
  103049. function kwt() {
  103050. var t;
  103051. if (sD == null && typeof document < "u" && document.body) {
  103052. let e = document.body.style;
  103053. sD = ((t = e.tabSize) !== null && t !== void 0 ? t : e.MozTabSize) != null;
  103054. }
  103055. return sD || !1;
  103056. }
  103057. const Iw = /* @__PURE__ */ ut.define({
  103058. combine(t) {
  103059. let e = Kl(t, {
  103060. render: null,
  103061. specialChars: Dwt,
  103062. addSpecialChars: null
  103063. });
  103064. return (e.replaceTabs = !kwt()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, E4)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, E4)), e;
  103065. }
  103066. });
  103067. function Lwt(t = {}) {
  103068. return [Iw.of(t), Nwt()];
  103069. }
  103070. let qK = null;
  103071. function Nwt() {
  103072. return qK || (qK = Ir.fromClass(class {
  103073. constructor(t) {
  103074. this.view = t, this.decorations = pt.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(Iw)), this.decorations = this.decorator.createDeco(t);
  103075. }
  103076. makeDecorator(t) {
  103077. return new Iwt({
  103078. regexp: t.specialChars,
  103079. decoration: (e, n, r) => {
  103080. let { doc: i } = n.state, a = bi(e[0], 0);
  103081. if (a == 9) {
  103082. let o = i.lineAt(r), s = n.state.tabSize, l = Fm(o.text, s, r - o.from);
  103083. return pt.replace({
  103084. widget: new Fwt((s - l % s) * this.view.defaultCharacterWidth / this.view.scaleX)
  103085. });
  103086. }
  103087. return this.decorationCache[a] || (this.decorationCache[a] = pt.replace({ widget: new Vwt(t, a) }));
  103088. },
  103089. boundary: t.replaceTabs ? void 0 : /[^]/
  103090. });
  103091. }
  103092. update(t) {
  103093. let e = t.state.facet(Iw);
  103094. t.startState.facet(Iw) != e ? (this.decorator = this.makeDecorator(e), this.decorations = this.decorator.createDeco(t.view)) : this.decorations = this.decorator.updateDeco(t, this.decorations);
  103095. }
  103096. }, {
  103097. decorations: (t) => t.decorations
  103098. }));
  103099. }
  103100. const Bwt = "•";
  103101. function zwt(t) {
  103102. return t >= 32 ? Bwt : t == 10 ? "␤" : String.fromCharCode(9216 + t);
  103103. }
  103104. class Vwt extends Jl {
  103105. constructor(e, n) {
  103106. super(), this.options = e, this.code = n;
  103107. }
  103108. eq(e) {
  103109. return e.code == this.code;
  103110. }
  103111. toDOM(e) {
  103112. let n = zwt(this.code), r = e.state.phrase("Control character") + " " + (Rwt[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, r, n);
  103113. if (i)
  103114. return i;
  103115. let a = document.createElement("span");
  103116. return a.textContent = n, a.title = r, a.setAttribute("aria-label", r), a.className = "cm-specialChar", a;
  103117. }
  103118. ignoreEvent() {
  103119. return !1;
  103120. }
  103121. }
  103122. class Fwt extends Jl {
  103123. constructor(e) {
  103124. super(), this.width = e;
  103125. }
  103126. eq(e) {
  103127. return e.width == this.width;
  103128. }
  103129. toDOM() {
  103130. let e = document.createElement("span");
  103131. return e.textContent = " ", e.className = "cm-tab", e.style.width = this.width + "px", e;
  103132. }
  103133. ignoreEvent() {
  103134. return !1;
  103135. }
  103136. }
  103137. function Wwt() {
  103138. return Hwt;
  103139. }
  103140. const Qwt = /* @__PURE__ */ pt.line({ class: "cm-activeLine" }), Hwt = /* @__PURE__ */ Ir.fromClass(class {
  103141. constructor(t) {
  103142. this.decorations = this.getDeco(t);
  103143. }
  103144. update(t) {
  103145. (t.docChanged || t.selectionSet) && (this.decorations = this.getDeco(t.view));
  103146. }
  103147. getDeco(t) {
  103148. let e = -1, n = [];
  103149. for (let r of t.state.selection.ranges) {
  103150. let i = t.lineBlockAt(r.head);
  103151. i.from > e && (n.push(Qwt.range(i.from)), e = i.from);
  103152. }
  103153. return pt.set(n);
  103154. }
  103155. }, {
  103156. decorations: (t) => t.decorations
  103157. });
  103158. class Gwt extends Jl {
  103159. constructor(e) {
  103160. super(), this.content = e;
  103161. }
  103162. toDOM() {
  103163. let e = document.createElement("span");
  103164. return e.className = "cm-placeholder", e.style.pointerEvents = "none", e.appendChild(typeof this.content == "string" ? document.createTextNode(this.content) : this.content), typeof this.content == "string" ? e.setAttribute("aria-label", "placeholder " + this.content) : e.setAttribute("aria-hidden", "true"), e;
  103165. }
  103166. coordsAt(e) {
  103167. let n = e.firstChild ? Kg(e.firstChild) : [];
  103168. if (!n.length)
  103169. return null;
  103170. let r = window.getComputedStyle(e.parentNode), i = i$(n[0], r.direction != "rtl"), a = parseInt(r.lineHeight);
  103171. return i.bottom - i.top > a * 1.5 ? { left: i.left, right: i.right, top: i.top, bottom: i.top + a } : i;
  103172. }
  103173. ignoreEvent() {
  103174. return !1;
  103175. }
  103176. }
  103177. function jwt(t) {
  103178. return Ir.fromClass(class {
  103179. constructor(e) {
  103180. this.view = e, this.placeholder = t ? pt.set([pt.widget({ widget: new Gwt(t), side: 1 }).range(0)]) : pt.none;
  103181. }
  103182. get decorations() {
  103183. return this.view.state.doc.length ? pt.none : this.placeholder;
  103184. }
  103185. }, { decorations: (e) => e.decorations });
  103186. }
  103187. const M4 = 2e3;
  103188. function Zwt(t, e, n) {
  103189. let r = Math.min(e.line, n.line), i = Math.max(e.line, n.line), a = [];
  103190. if (e.off > M4 || n.off > M4 || e.col < 0 || n.col < 0) {
  103191. let o = Math.min(e.off, n.off), s = Math.max(e.off, n.off);
  103192. for (let l = r; l <= i; l++) {
  103193. let u = t.doc.line(l);
  103194. u.length <= s && a.push(De.range(u.from + o, u.to + s));
  103195. }
  103196. } else {
  103197. let o = Math.min(e.col, n.col), s = Math.max(e.col, n.col);
  103198. for (let l = r; l <= i; l++) {
  103199. let u = t.doc.line(l), c = l4(u.text, o, t.tabSize, !0);
  103200. if (c < 0)
  103201. a.push(De.cursor(u.to));
  103202. else {
  103203. let f = l4(u.text, s, t.tabSize);
  103204. a.push(De.range(u.from + c, u.from + f));
  103205. }
  103206. }
  103207. }
  103208. return a;
  103209. }
  103210. function Uwt(t, e) {
  103211. let n = t.coordsAtPos(t.viewport.from);
  103212. return n ? Math.round(Math.abs((n.left - e) / t.defaultCharacterWidth)) : -1;
  103213. }
  103214. function KK(t, e) {
  103215. let n = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), r = t.state.doc.lineAt(n), i = n - r.from, a = i > M4 ? -1 : i == r.length ? Uwt(t, e.clientX) : Fm(r.text, t.state.tabSize, n - r.from);
  103216. return { line: r.number, col: a, off: i };
  103217. }
  103218. function Xwt(t, e) {
  103219. let n = KK(t, e), r = t.state.selection;
  103220. return n ? {
  103221. update(i) {
  103222. if (i.docChanged) {
  103223. let a = i.changes.mapPos(i.startState.doc.line(n.line).from), o = i.state.doc.lineAt(a);
  103224. n = { line: o.number, col: n.col, off: Math.min(n.off, o.length) }, r = r.map(i.changes);
  103225. }
  103226. },
  103227. get(i, a, o) {
  103228. let s = KK(t, i);
  103229. if (!s)
  103230. return r;
  103231. let l = Zwt(t.state, n, s);
  103232. return l.length ? o ? De.create(l.concat(r.ranges)) : De.create(l) : r;
  103233. }
  103234. } : null;
  103235. }
  103236. function Ywt(t) {
  103237. let e = (n) => n.altKey && n.button == 0;
  103238. return rt.mouseSelectionStyle.of((n, r) => e(r) ? Xwt(n, r) : null);
  103239. }
  103240. const qwt = {
  103241. Alt: [18, (t) => !!t.altKey],
  103242. Control: [17, (t) => !!t.ctrlKey],
  103243. Shift: [16, (t) => !!t.shiftKey],
  103244. Meta: [91, (t) => !!t.metaKey]
  103245. }, Kwt = { style: "cursor: crosshair" };
  103246. function Jwt(t = {}) {
  103247. let [e, n] = qwt[t.key || "Alt"], r = Ir.fromClass(class {
  103248. constructor(i) {
  103249. this.view = i, this.isDown = !1;
  103250. }
  103251. set(i) {
  103252. this.isDown != i && (this.isDown = i, this.view.update([]));
  103253. }
  103254. }, {
  103255. eventObservers: {
  103256. keydown(i) {
  103257. this.set(i.keyCode == e || n(i));
  103258. },
  103259. keyup(i) {
  103260. (i.keyCode == e || !n(i)) && this.set(!1);
  103261. },
  103262. mousemove(i) {
  103263. this.set(n(i));
  103264. }
  103265. }
  103266. });
  103267. return [
  103268. r,
  103269. rt.contentAttributes.of((i) => {
  103270. var a;
  103271. return !((a = i.plugin(r)) === null || a === void 0) && a.isDown ? Kwt : null;
  103272. })
  103273. ];
  103274. }
  103275. const ny = "-10000px";
  103276. class Zve {
  103277. constructor(e, n, r, i) {
  103278. this.facet = n, this.createTooltipView = r, this.removeTooltipView = i, this.input = e.state.facet(n), this.tooltips = this.input.filter((o) => o);
  103279. let a = null;
  103280. this.tooltipViews = this.tooltips.map((o) => a = r(o, a));
  103281. }
  103282. update(e, n) {
  103283. var r;
  103284. let i = e.state.facet(this.facet), a = i.filter((l) => l);
  103285. if (i === this.input) {
  103286. for (let l of this.tooltipViews)
  103287. l.update && l.update(e);
  103288. return !1;
  103289. }
  103290. let o = [], s = n ? [] : null;
  103291. for (let l = 0; l < a.length; l++) {
  103292. let u = a[l], c = -1;
  103293. if (u) {
  103294. for (let f = 0; f < this.tooltips.length; f++) {
  103295. let d = this.tooltips[f];
  103296. d && d.create == u.create && (c = f);
  103297. }
  103298. if (c < 0)
  103299. o[l] = this.createTooltipView(u, l ? o[l - 1] : null), s && (s[l] = !!u.above);
  103300. else {
  103301. let f = o[l] = this.tooltipViews[c];
  103302. s && (s[l] = n[c]), f.update && f.update(e);
  103303. }
  103304. }
  103305. }
  103306. for (let l of this.tooltipViews)
  103307. o.indexOf(l) < 0 && (this.removeTooltipView(l), (r = l.destroy) === null || r === void 0 || r.call(l));
  103308. return n && (s.forEach((l, u) => n[u] = l), n.length = s.length), this.input = i, this.tooltips = a, this.tooltipViews = o, !0;
  103309. }
  103310. }
  103311. function eCt(t) {
  103312. let { win: e } = t;
  103313. return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth };
  103314. }
  103315. const lD = /* @__PURE__ */ ut.define({
  103316. combine: (t) => {
  103317. var e, n, r;
  103318. return {
  103319. position: lt.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
  103320. parent: ((n = t.find((i) => i.parent)) === null || n === void 0 ? void 0 : n.parent) || null,
  103321. tooltipSpace: ((r = t.find((i) => i.tooltipSpace)) === null || r === void 0 ? void 0 : r.tooltipSpace) || eCt
  103322. };
  103323. }
  103324. }), JK = /* @__PURE__ */ new WeakMap(), lB = /* @__PURE__ */ Ir.fromClass(class {
  103325. constructor(t) {
  103326. this.view = t, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
  103327. let e = t.state.facet(lD);
  103328. this.position = e.position, this.parent = e.parent, this.classes = t.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new Zve(t, uB, (n, r) => this.createTooltip(n, r), (n) => {
  103329. this.resizeObserver && this.resizeObserver.unobserve(n.dom), n.dom.remove();
  103330. }), this.above = this.manager.tooltips.map((n) => !!n.above), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((n) => {
  103331. Date.now() > this.lastTransaction - 50 && n.length > 0 && n[n.length - 1].intersectionRatio < 1 && this.measureSoon();
  103332. }, { threshold: [1] }) : null, this.observeIntersection(), t.win.addEventListener("resize", this.measureSoon = this.measureSoon.bind(this)), this.maybeMeasure();
  103333. }
  103334. createContainer() {
  103335. this.parent ? (this.container = document.createElement("div"), this.container.style.position = "relative", this.container.className = this.view.themeClasses, this.parent.appendChild(this.container)) : this.container = this.view.dom;
  103336. }
  103337. observeIntersection() {
  103338. if (this.intersectionObserver) {
  103339. this.intersectionObserver.disconnect();
  103340. for (let t of this.manager.tooltipViews)
  103341. this.intersectionObserver.observe(t.dom);
  103342. }
  103343. }
  103344. measureSoon() {
  103345. this.measureTimeout < 0 && (this.measureTimeout = setTimeout(() => {
  103346. this.measureTimeout = -1, this.maybeMeasure();
  103347. }, 50));
  103348. }
  103349. update(t) {
  103350. t.transactions.length && (this.lastTransaction = Date.now());
  103351. let e = this.manager.update(t, this.above);
  103352. e && this.observeIntersection();
  103353. let n = e || t.geometryChanged, r = t.state.facet(lD);
  103354. if (r.position != this.position && !this.madeAbsolute) {
  103355. this.position = r.position;
  103356. for (let i of this.manager.tooltipViews)
  103357. i.dom.style.position = this.position;
  103358. n = !0;
  103359. }
  103360. if (r.parent != this.parent) {
  103361. this.parent && this.container.remove(), this.parent = r.parent, this.createContainer();
  103362. for (let i of this.manager.tooltipViews)
  103363. this.container.appendChild(i.dom);
  103364. n = !0;
  103365. } else this.parent && this.view.themeClasses != this.classes && (this.classes = this.container.className = this.view.themeClasses);
  103366. n && this.maybeMeasure();
  103367. }
  103368. createTooltip(t, e) {
  103369. let n = t.create(this.view), r = e ? e.dom : null;
  103370. if (n.dom.classList.add("cm-tooltip"), t.arrow && !n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")) {
  103371. let i = document.createElement("div");
  103372. i.className = "cm-tooltip-arrow", n.dom.appendChild(i);
  103373. }
  103374. return n.dom.style.position = this.position, n.dom.style.top = ny, n.dom.style.left = "0px", this.container.insertBefore(n.dom, r), n.mount && n.mount(this.view), this.resizeObserver && this.resizeObserver.observe(n.dom), n;
  103375. }
  103376. destroy() {
  103377. var t, e, n;
  103378. this.view.win.removeEventListener("resize", this.measureSoon);
  103379. for (let r of this.manager.tooltipViews)
  103380. r.dom.remove(), (t = r.destroy) === null || t === void 0 || t.call(r);
  103381. this.parent && this.container.remove(), (e = this.resizeObserver) === null || e === void 0 || e.disconnect(), (n = this.intersectionObserver) === null || n === void 0 || n.disconnect(), clearTimeout(this.measureTimeout);
  103382. }
  103383. readMeasure() {
  103384. let t = this.view.dom.getBoundingClientRect(), e = 1, n = 1, r = !1;
  103385. if (this.position == "fixed" && this.manager.tooltipViews.length) {
  103386. let { dom: i } = this.manager.tooltipViews[0];
  103387. if (lt.gecko)
  103388. r = i.offsetParent != this.container.ownerDocument.body;
  103389. else if (i.style.top == ny && i.style.left == "0px") {
  103390. let a = i.getBoundingClientRect();
  103391. r = Math.abs(a.top + 1e4) > 1 || Math.abs(a.left) > 1;
  103392. }
  103393. }
  103394. if (r || this.position == "absolute")
  103395. if (this.parent) {
  103396. let i = this.parent.getBoundingClientRect();
  103397. i.width && i.height && (e = i.width / this.parent.offsetWidth, n = i.height / this.parent.offsetHeight);
  103398. } else
  103399. ({ scaleX: e, scaleY: n } = this.view.viewState);
  103400. return {
  103401. editor: t,
  103402. parent: this.parent ? this.container.getBoundingClientRect() : t,
  103403. pos: this.manager.tooltips.map((i, a) => {
  103404. let o = this.manager.tooltipViews[a];
  103405. return o.getCoords ? o.getCoords(i.pos) : this.view.coordsAtPos(i.pos);
  103406. }),
  103407. size: this.manager.tooltipViews.map(({ dom: i }) => i.getBoundingClientRect()),
  103408. space: this.view.state.facet(lD).tooltipSpace(this.view),
  103409. scaleX: e,
  103410. scaleY: n,
  103411. makeAbsolute: r
  103412. };
  103413. }
  103414. writeMeasure(t) {
  103415. var e;
  103416. if (t.makeAbsolute) {
  103417. this.madeAbsolute = !0, this.position = "absolute";
  103418. for (let s of this.manager.tooltipViews)
  103419. s.dom.style.position = "absolute";
  103420. }
  103421. let { editor: n, space: r, scaleX: i, scaleY: a } = t, o = [];
  103422. for (let s = 0; s < this.manager.tooltips.length; s++) {
  103423. let l = this.manager.tooltips[s], u = this.manager.tooltipViews[s], { dom: c } = u, f = t.pos[s], d = t.size[s];
  103424. if (!f || f.bottom <= Math.max(n.top, r.top) || f.top >= Math.min(n.bottom, r.bottom) || f.right < Math.max(n.left, r.left) - 0.1 || f.left > Math.min(n.right, r.right) + 0.1) {
  103425. c.style.top = ny;
  103426. continue;
  103427. }
  103428. let h = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, p = h ? 7 : 0, v = d.right - d.left, g = (e = JK.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, m = u.offset || nCt, y = this.view.textDirection == ir.LTR, _ = d.width > r.right - r.left ? y ? r.left : r.right - d.width : y ? Math.min(f.left - (h ? 14 : 0) + m.x, r.right - v) : Math.max(r.left, f.left - v + (h ? 14 : 0) - m.x), O = this.above[s];
  103429. !l.strictSide && (O ? f.top - (d.bottom - d.top) - m.y < r.top : f.bottom + (d.bottom - d.top) + m.y > r.bottom) && O == r.bottom - f.bottom > f.top - r.top && (O = this.above[s] = !O);
  103430. let S = (O ? f.top - r.top : r.bottom - f.bottom) - p;
  103431. if (S < g && u.resize !== !1) {
  103432. if (S < this.view.defaultLineHeight) {
  103433. c.style.top = ny;
  103434. continue;
  103435. }
  103436. JK.set(u, g), c.style.height = (g = S) / a + "px";
  103437. } else c.style.height && (c.style.height = "");
  103438. let x = O ? f.top - g - p - m.y : f.bottom + p + m.y, C = _ + v;
  103439. if (u.overlap !== !0)
  103440. for (let P of o)
  103441. P.left < C && P.right > _ && P.top < x + g && P.bottom > x && (x = O ? P.top - g - 2 - p : P.bottom + p + 2);
  103442. if (this.position == "absolute" ? (c.style.top = (x - t.parent.top) / a + "px", c.style.left = (_ - t.parent.left) / i + "px") : (c.style.top = x / a + "px", c.style.left = _ / i + "px"), h) {
  103443. let P = f.left + (y ? m.x : -m.x) - (_ + 14 - 7);
  103444. h.style.left = P / i + "px";
  103445. }
  103446. u.overlap !== !0 && o.push({ left: _, top: x, right: C, bottom: x + g }), c.classList.toggle("cm-tooltip-above", O), c.classList.toggle("cm-tooltip-below", !O), u.positioned && u.positioned(t.space);
  103447. }
  103448. }
  103449. maybeMeasure() {
  103450. if (this.manager.tooltips.length && (this.view.inView && this.view.requestMeasure(this.measureReq), this.inView != this.view.inView && (this.inView = this.view.inView, !this.inView)))
  103451. for (let t of this.manager.tooltipViews)
  103452. t.dom.style.top = ny;
  103453. }
  103454. }, {
  103455. eventObservers: {
  103456. scroll() {
  103457. this.maybeMeasure();
  103458. }
  103459. }
  103460. }), tCt = /* @__PURE__ */ rt.baseTheme({
  103461. ".cm-tooltip": {
  103462. zIndex: 100,
  103463. boxSizing: "border-box"
  103464. },
  103465. "&light .cm-tooltip": {
  103466. border: "1px solid #bbb",
  103467. backgroundColor: "#f5f5f5"
  103468. },
  103469. "&light .cm-tooltip-section:not(:first-child)": {
  103470. borderTop: "1px solid #bbb"
  103471. },
  103472. "&dark .cm-tooltip": {
  103473. backgroundColor: "#333338",
  103474. color: "white"
  103475. },
  103476. ".cm-tooltip-arrow": {
  103477. height: "7px",
  103478. width: `${7 * 2}px`,
  103479. position: "absolute",
  103480. zIndex: -1,
  103481. overflow: "hidden",
  103482. "&:before, &:after": {
  103483. content: "''",
  103484. position: "absolute",
  103485. width: 0,
  103486. height: 0,
  103487. borderLeft: "7px solid transparent",
  103488. borderRight: "7px solid transparent"
  103489. },
  103490. ".cm-tooltip-above &": {
  103491. bottom: "-7px",
  103492. "&:before": {
  103493. borderTop: "7px solid #bbb"
  103494. },
  103495. "&:after": {
  103496. borderTop: "7px solid #f5f5f5",
  103497. bottom: "1px"
  103498. }
  103499. },
  103500. ".cm-tooltip-below &": {
  103501. top: "-7px",
  103502. "&:before": {
  103503. borderBottom: "7px solid #bbb"
  103504. },
  103505. "&:after": {
  103506. borderBottom: "7px solid #f5f5f5",
  103507. top: "1px"
  103508. }
  103509. }
  103510. },
  103511. "&dark .cm-tooltip .cm-tooltip-arrow": {
  103512. "&:before": {
  103513. borderTopColor: "#333338",
  103514. borderBottomColor: "#333338"
  103515. },
  103516. "&:after": {
  103517. borderTopColor: "transparent",
  103518. borderBottomColor: "transparent"
  103519. }
  103520. }
  103521. }), nCt = { x: 0, y: 0 }, uB = /* @__PURE__ */ ut.define({
  103522. enables: [lB, tCt]
  103523. }), IT = /* @__PURE__ */ ut.define({
  103524. combine: (t) => t.reduce((e, n) => e.concat(n), [])
  103525. });
  103526. class o$ {
  103527. // Needs to be static so that host tooltip instances always match
  103528. static create(e) {
  103529. return new o$(e);
  103530. }
  103531. constructor(e) {
  103532. this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Zve(e, IT, (n, r) => this.createHostedView(n, r), (n) => n.dom.remove());
  103533. }
  103534. createHostedView(e, n) {
  103535. let r = e.create(this.view);
  103536. return r.dom.classList.add("cm-tooltip-section"), this.dom.insertBefore(r.dom, n ? n.dom.nextSibling : this.dom.firstChild), this.mounted && r.mount && r.mount(this.view), r;
  103537. }
  103538. mount(e) {
  103539. for (let n of this.manager.tooltipViews)
  103540. n.mount && n.mount(e);
  103541. this.mounted = !0;
  103542. }
  103543. positioned(e) {
  103544. for (let n of this.manager.tooltipViews)
  103545. n.positioned && n.positioned(e);
  103546. }
  103547. update(e) {
  103548. this.manager.update(e);
  103549. }
  103550. destroy() {
  103551. var e;
  103552. for (let n of this.manager.tooltipViews)
  103553. (e = n.destroy) === null || e === void 0 || e.call(n);
  103554. }
  103555. passProp(e) {
  103556. let n;
  103557. for (let r of this.manager.tooltipViews) {
  103558. let i = r[e];
  103559. if (i !== void 0) {
  103560. if (n === void 0)
  103561. n = i;
  103562. else if (n !== i)
  103563. return;
  103564. }
  103565. }
  103566. return n;
  103567. }
  103568. get offset() {
  103569. return this.passProp("offset");
  103570. }
  103571. get getCoords() {
  103572. return this.passProp("getCoords");
  103573. }
  103574. get overlap() {
  103575. return this.passProp("overlap");
  103576. }
  103577. get resize() {
  103578. return this.passProp("resize");
  103579. }
  103580. }
  103581. const rCt = /* @__PURE__ */ uB.compute([IT], (t) => {
  103582. let e = t.facet(IT);
  103583. return e.length === 0 ? null : {
  103584. pos: Math.min(...e.map((n) => n.pos)),
  103585. end: Math.max(...e.map((n) => {
  103586. var r;
  103587. return (r = n.end) !== null && r !== void 0 ? r : n.pos;
  103588. })),
  103589. create: o$.create,
  103590. above: e[0].above,
  103591. arrow: e.some((n) => n.arrow)
  103592. };
  103593. });
  103594. class iCt {
  103595. constructor(e, n, r, i, a) {
  103596. this.view = e, this.source = n, this.field = r, this.setHover = i, this.hoverTime = a, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = { x: 0, y: 0, target: e.dom, time: 0 }, this.checkHover = this.checkHover.bind(this), e.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this));
  103597. }
  103598. update() {
  103599. this.pending && (this.pending = null, clearTimeout(this.restartTimeout), this.restartTimeout = setTimeout(() => this.startHover(), 20));
  103600. }
  103601. get active() {
  103602. return this.view.state.field(this.field);
  103603. }
  103604. checkHover() {
  103605. if (this.hoverTimeout = -1, this.active.length)
  103606. return;
  103607. let e = Date.now() - this.lastMove.time;
  103608. e < this.hoverTime ? this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime - e) : this.startHover();
  103609. }
  103610. startHover() {
  103611. clearTimeout(this.restartTimeout);
  103612. let { view: e, lastMove: n } = this, r = e.docView.nearest(n.target);
  103613. if (!r)
  103614. return;
  103615. let i, a = 1;
  103616. if (r instanceof Yc)
  103617. i = r.posAtStart;
  103618. else {
  103619. if (i = e.posAtCoords(n), i == null)
  103620. return;
  103621. let s = e.coordsAtPos(i);
  103622. if (!s || n.y < s.top || n.y > s.bottom || n.x < s.left - e.defaultCharacterWidth || n.x > s.right + e.defaultCharacterWidth)
  103623. return;
  103624. let l = e.bidiSpans(e.state.doc.lineAt(i)).find((c) => c.from <= i && c.to >= i), u = l && l.dir == ir.RTL ? -1 : 1;
  103625. a = n.x < s.left ? -u : u;
  103626. }
  103627. let o = this.source(e, i, a);
  103628. if (o != null && o.then) {
  103629. let s = this.pending = { pos: i };
  103630. o.then((l) => {
  103631. this.pending == s && (this.pending = null, l && !(Array.isArray(l) && !l.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(l) ? l : [l]) }));
  103632. }, (l) => Ia(e.state, l, "hover tooltip"));
  103633. } else o && !(Array.isArray(o) && !o.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(o) ? o : [o]) });
  103634. }
  103635. get tooltip() {
  103636. let e = this.view.plugin(lB), n = e ? e.manager.tooltips.findIndex((r) => r.create == o$.create) : -1;
  103637. return n > -1 ? e.manager.tooltipViews[n] : null;
  103638. }
  103639. mousemove(e) {
  103640. var n, r;
  103641. this.lastMove = { x: e.clientX, y: e.clientY, target: e.target, time: Date.now() }, this.hoverTimeout < 0 && (this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime));
  103642. let { active: i, tooltip: a } = this;
  103643. if (i.length && a && !aCt(a.dom, e) || this.pending) {
  103644. let { pos: o } = i[0] || this.pending, s = (r = (n = i[0]) === null || n === void 0 ? void 0 : n.end) !== null && r !== void 0 ? r : o;
  103645. (o == s ? this.view.posAtCoords(this.lastMove) != o : !oCt(this.view, o, s, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of([]) }), this.pending = null);
  103646. }
  103647. }
  103648. mouseleave(e) {
  103649. clearTimeout(this.hoverTimeout), this.hoverTimeout = -1;
  103650. let { active: n } = this;
  103651. if (n.length) {
  103652. let { tooltip: r } = this;
  103653. r && r.dom.contains(e.relatedTarget) ? this.watchTooltipLeave(r.dom) : this.view.dispatch({ effects: this.setHover.of([]) });
  103654. }
  103655. }
  103656. watchTooltipLeave(e) {
  103657. let n = (r) => {
  103658. e.removeEventListener("mouseleave", n), this.active.length && !this.view.dom.contains(r.relatedTarget) && this.view.dispatch({ effects: this.setHover.of([]) });
  103659. };
  103660. e.addEventListener("mouseleave", n);
  103661. }
  103662. destroy() {
  103663. clearTimeout(this.hoverTimeout), this.view.dom.removeEventListener("mouseleave", this.mouseleave), this.view.dom.removeEventListener("mousemove", this.mousemove);
  103664. }
  103665. }
  103666. const mx = 4;
  103667. function aCt(t, e) {
  103668. let n = t.getBoundingClientRect();
  103669. return e.clientX >= n.left - mx && e.clientX <= n.right + mx && e.clientY >= n.top - mx && e.clientY <= n.bottom + mx;
  103670. }
  103671. function oCt(t, e, n, r, i, a) {
  103672. let o = t.scrollDOM.getBoundingClientRect(), s = t.documentTop + t.documentPadding.top + t.contentHeight;
  103673. if (o.left > r || o.right < r || o.top > i || Math.min(o.bottom, s) < i)
  103674. return !1;
  103675. let l = t.posAtCoords({ x: r, y: i }, !1);
  103676. return l >= e && l <= n;
  103677. }
  103678. function sCt(t, e = {}) {
  103679. let n = zt.define(), r = fi.define({
  103680. create() {
  103681. return [];
  103682. },
  103683. update(i, a) {
  103684. if (i.length && (e.hideOnChange && (a.docChanged || a.selection) ? i = [] : e.hideOn && (i = i.filter((o) => !e.hideOn(a, o))), a.docChanged)) {
  103685. let o = [];
  103686. for (let s of i) {
  103687. let l = a.changes.mapPos(s.pos, -1, Oi.TrackDel);
  103688. if (l != null) {
  103689. let u = Object.assign(/* @__PURE__ */ Object.create(null), s);
  103690. u.pos = l, u.end != null && (u.end = a.changes.mapPos(u.end)), o.push(u);
  103691. }
  103692. }
  103693. i = o;
  103694. }
  103695. for (let o of a.effects)
  103696. o.is(n) && (i = o.value), o.is(lCt) && (i = []);
  103697. return i;
  103698. },
  103699. provide: (i) => IT.from(i)
  103700. });
  103701. return [
  103702. r,
  103703. Ir.define((i) => new iCt(
  103704. i,
  103705. t,
  103706. r,
  103707. n,
  103708. e.hoverTime || 300
  103709. /* Hover.Time */
  103710. )),
  103711. rCt
  103712. ];
  103713. }
  103714. function Uve(t, e) {
  103715. let n = t.plugin(lB);
  103716. if (!n)
  103717. return null;
  103718. let r = n.manager.tooltips.indexOf(e);
  103719. return r < 0 ? null : n.manager.tooltipViews[r];
  103720. }
  103721. const lCt = /* @__PURE__ */ zt.define(), eJ = /* @__PURE__ */ ut.define({
  103722. combine(t) {
  103723. let e, n;
  103724. for (let r of t)
  103725. e = e || r.topContainer, n = n || r.bottomContainer;
  103726. return { topContainer: e, bottomContainer: n };
  103727. }
  103728. });
  103729. function O_(t, e) {
  103730. let n = t.plugin(Xve), r = n ? n.specs.indexOf(e) : -1;
  103731. return r > -1 ? n.panels[r] : null;
  103732. }
  103733. const Xve = /* @__PURE__ */ Ir.fromClass(class {
  103734. constructor(t) {
  103735. this.input = t.state.facet(S_), this.specs = this.input.filter((n) => n), this.panels = this.specs.map((n) => n(t));
  103736. let e = t.state.facet(eJ);
  103737. this.top = new yx(t, !0, e.topContainer), this.bottom = new yx(t, !1, e.bottomContainer), this.top.sync(this.panels.filter((n) => n.top)), this.bottom.sync(this.panels.filter((n) => !n.top));
  103738. for (let n of this.panels)
  103739. n.dom.classList.add("cm-panel"), n.mount && n.mount();
  103740. }
  103741. update(t) {
  103742. let e = t.state.facet(eJ);
  103743. this.top.container != e.topContainer && (this.top.sync([]), this.top = new yx(t.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new yx(t.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses();
  103744. let n = t.state.facet(S_);
  103745. if (n != this.input) {
  103746. let r = n.filter((l) => l), i = [], a = [], o = [], s = [];
  103747. for (let l of r) {
  103748. let u = this.specs.indexOf(l), c;
  103749. u < 0 ? (c = l(t.view), s.push(c)) : (c = this.panels[u], c.update && c.update(t)), i.push(c), (c.top ? a : o).push(c);
  103750. }
  103751. this.specs = r, this.panels = i, this.top.sync(a), this.bottom.sync(o);
  103752. for (let l of s)
  103753. l.dom.classList.add("cm-panel"), l.mount && l.mount();
  103754. } else
  103755. for (let r of this.panels)
  103756. r.update && r.update(t);
  103757. }
  103758. destroy() {
  103759. this.top.sync([]), this.bottom.sync([]);
  103760. }
  103761. }, {
  103762. provide: (t) => rt.scrollMargins.of((e) => {
  103763. let n = e.plugin(t);
  103764. return n && { top: n.top.scrollMargin(), bottom: n.bottom.scrollMargin() };
  103765. })
  103766. });
  103767. class yx {
  103768. constructor(e, n, r) {
  103769. this.view = e, this.top = n, this.container = r, this.dom = void 0, this.classes = "", this.panels = [], this.syncClasses();
  103770. }
  103771. sync(e) {
  103772. for (let n of this.panels)
  103773. n.destroy && e.indexOf(n) < 0 && n.destroy();
  103774. this.panels = e, this.syncDOM();
  103775. }
  103776. syncDOM() {
  103777. if (this.panels.length == 0) {
  103778. this.dom && (this.dom.remove(), this.dom = void 0);
  103779. return;
  103780. }
  103781. if (!this.dom) {
  103782. this.dom = document.createElement("div"), this.dom.className = this.top ? "cm-panels cm-panels-top" : "cm-panels cm-panels-bottom", this.dom.style[this.top ? "top" : "bottom"] = "0";
  103783. let n = this.container || this.view.dom;
  103784. n.insertBefore(this.dom, this.top ? n.firstChild : null);
  103785. }
  103786. let e = this.dom.firstChild;
  103787. for (let n of this.panels)
  103788. if (n.dom.parentNode == this.dom) {
  103789. for (; e != n.dom; )
  103790. e = tJ(e);
  103791. e = e.nextSibling;
  103792. } else
  103793. this.dom.insertBefore(n.dom, e);
  103794. for (; e; )
  103795. e = tJ(e);
  103796. }
  103797. scrollMargin() {
  103798. return !this.dom || this.container ? 0 : Math.max(0, this.top ? this.dom.getBoundingClientRect().bottom - Math.max(0, this.view.scrollDOM.getBoundingClientRect().top) : Math.min(innerHeight, this.view.scrollDOM.getBoundingClientRect().bottom) - this.dom.getBoundingClientRect().top);
  103799. }
  103800. syncClasses() {
  103801. if (!(!this.container || this.classes == this.view.themeClasses)) {
  103802. for (let e of this.classes.split(" "))
  103803. e && this.container.classList.remove(e);
  103804. for (let e of (this.classes = this.view.themeClasses).split(" "))
  103805. e && this.container.classList.add(e);
  103806. }
  103807. }
  103808. }
  103809. function tJ(t) {
  103810. let e = t.nextSibling;
  103811. return t.remove(), e;
  103812. }
  103813. const S_ = /* @__PURE__ */ ut.define({
  103814. enables: Xve
  103815. });
  103816. class Yu extends Kh {
  103817. /**
  103818. @internal
  103819. */
  103820. compare(e) {
  103821. return this == e || this.constructor == e.constructor && this.eq(e);
  103822. }
  103823. /**
  103824. Compare this marker to another marker of the same type.
  103825. */
  103826. eq(e) {
  103827. return !1;
  103828. }
  103829. /**
  103830. Called if the marker has a `toDOM` method and its representation
  103831. was removed from a gutter.
  103832. */
  103833. destroy(e) {
  103834. }
  103835. }
  103836. Yu.prototype.elementClass = "";
  103837. Yu.prototype.toDOM = void 0;
  103838. Yu.prototype.mapMode = Oi.TrackBefore;
  103839. Yu.prototype.startSide = Yu.prototype.endSide = -1;
  103840. Yu.prototype.point = !0;
  103841. const Dw = /* @__PURE__ */ ut.define(), uCt = {
  103842. class: "",
  103843. renderEmptyElements: !1,
  103844. elementStyle: "",
  103845. markers: () => Sn.empty,
  103846. lineMarker: () => null,
  103847. widgetMarker: () => null,
  103848. lineMarkerChange: null,
  103849. initialSpacer: null,
  103850. updateSpacer: null,
  103851. domEventHandlers: {}
  103852. }, mb = /* @__PURE__ */ ut.define();
  103853. function cCt(t) {
  103854. return [Yve(), mb.of(Object.assign(Object.assign({}, uCt), t))];
  103855. }
  103856. const nJ = /* @__PURE__ */ ut.define({
  103857. combine: (t) => t.some((e) => e)
  103858. });
  103859. function Yve(t) {
  103860. return [
  103861. fCt
  103862. ];
  103863. }
  103864. const fCt = /* @__PURE__ */ Ir.fromClass(class {
  103865. constructor(t) {
  103866. this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(mb).map((e) => new iJ(t, e));
  103867. for (let e of this.gutters)
  103868. this.dom.appendChild(e.dom);
  103869. this.fixed = !t.state.facet(nJ), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM);
  103870. }
  103871. update(t) {
  103872. if (this.updateGutters(t)) {
  103873. let e = this.prevViewport, n = t.view.viewport, r = Math.min(e.to, n.to) - Math.max(e.from, n.from);
  103874. this.syncGutters(r < (n.to - n.from) * 0.8);
  103875. }
  103876. t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px"), this.view.state.facet(nJ) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport;
  103877. }
  103878. syncGutters(t) {
  103879. let e = this.dom.nextSibling;
  103880. t && this.dom.remove();
  103881. let n = Sn.iter(this.view.state.facet(Dw), this.view.viewport.from), r = [], i = this.gutters.map((a) => new dCt(a, this.view.viewport, -this.view.documentPadding.top));
  103882. for (let a of this.view.viewportLineBlocks)
  103883. if (r.length && (r = []), Array.isArray(a.type)) {
  103884. let o = !0;
  103885. for (let s of a.type)
  103886. if (s.type == la.Text && o) {
  103887. I4(n, r, s.from);
  103888. for (let l of i)
  103889. l.line(this.view, s, r);
  103890. o = !1;
  103891. } else if (s.widget)
  103892. for (let l of i)
  103893. l.widget(this.view, s);
  103894. } else if (a.type == la.Text) {
  103895. I4(n, r, a.from);
  103896. for (let o of i)
  103897. o.line(this.view, a, r);
  103898. } else if (a.widget)
  103899. for (let o of i)
  103900. o.widget(this.view, a);
  103901. for (let a of i)
  103902. a.finish();
  103903. t && this.view.scrollDOM.insertBefore(this.dom, e);
  103904. }
  103905. updateGutters(t) {
  103906. let e = t.startState.facet(mb), n = t.state.facet(mb), r = t.docChanged || t.heightChanged || t.viewportChanged || !Sn.eq(t.startState.facet(Dw), t.state.facet(Dw), t.view.viewport.from, t.view.viewport.to);
  103907. if (e == n)
  103908. for (let i of this.gutters)
  103909. i.update(t) && (r = !0);
  103910. else {
  103911. r = !0;
  103912. let i = [];
  103913. for (let a of n) {
  103914. let o = e.indexOf(a);
  103915. o < 0 ? i.push(new iJ(this.view, a)) : (this.gutters[o].update(t), i.push(this.gutters[o]));
  103916. }
  103917. for (let a of this.gutters)
  103918. a.dom.remove(), i.indexOf(a) < 0 && a.destroy();
  103919. for (let a of i)
  103920. this.dom.appendChild(a.dom);
  103921. this.gutters = i;
  103922. }
  103923. return r;
  103924. }
  103925. destroy() {
  103926. for (let t of this.gutters)
  103927. t.destroy();
  103928. this.dom.remove();
  103929. }
  103930. }, {
  103931. provide: (t) => rt.scrollMargins.of((e) => {
  103932. let n = e.plugin(t);
  103933. return !n || n.gutters.length == 0 || !n.fixed ? null : e.textDirection == ir.LTR ? { left: n.dom.offsetWidth * e.scaleX } : { right: n.dom.offsetWidth * e.scaleX };
  103934. })
  103935. });
  103936. function rJ(t) {
  103937. return Array.isArray(t) ? t : [t];
  103938. }
  103939. function I4(t, e, n) {
  103940. for (; t.value && t.from <= n; )
  103941. t.from == n && e.push(t.value), t.next();
  103942. }
  103943. class dCt {
  103944. constructor(e, n, r) {
  103945. this.gutter = e, this.height = r, this.i = 0, this.cursor = Sn.iter(e.markers, n.from);
  103946. }
  103947. addElement(e, n, r) {
  103948. let { gutter: i } = this, a = (n.top - this.height) / e.scaleY, o = n.height / e.scaleY;
  103949. if (this.i == i.elements.length) {
  103950. let s = new qve(e, o, a, r);
  103951. i.elements.push(s), i.dom.appendChild(s.dom);
  103952. } else
  103953. i.elements[this.i].update(e, o, a, r);
  103954. this.height = n.bottom, this.i++;
  103955. }
  103956. line(e, n, r) {
  103957. let i = [];
  103958. I4(this.cursor, i, n.from), r.length && (i = i.concat(r));
  103959. let a = this.gutter.config.lineMarker(e, n, i);
  103960. a && i.unshift(a);
  103961. let o = this.gutter;
  103962. i.length == 0 && !o.config.renderEmptyElements || this.addElement(e, n, i);
  103963. }
  103964. widget(e, n) {
  103965. let r = this.gutter.config.widgetMarker(e, n.widget, n);
  103966. r && this.addElement(e, n, [r]);
  103967. }
  103968. finish() {
  103969. let e = this.gutter;
  103970. for (; e.elements.length > this.i; ) {
  103971. let n = e.elements.pop();
  103972. e.dom.removeChild(n.dom), n.destroy();
  103973. }
  103974. }
  103975. }
  103976. class iJ {
  103977. constructor(e, n) {
  103978. this.view = e, this.config = n, this.elements = [], this.spacer = null, this.dom = document.createElement("div"), this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : "");
  103979. for (let r in n.domEventHandlers)
  103980. this.dom.addEventListener(r, (i) => {
  103981. let a = i.target, o;
  103982. if (a != this.dom && this.dom.contains(a)) {
  103983. for (; a.parentNode != this.dom; )
  103984. a = a.parentNode;
  103985. let l = a.getBoundingClientRect();
  103986. o = (l.top + l.bottom) / 2;
  103987. } else
  103988. o = i.clientY;
  103989. let s = e.lineBlockAtHeight(o - e.documentTop);
  103990. n.domEventHandlers[r](e, s, i) && i.preventDefault();
  103991. });
  103992. this.markers = rJ(n.markers(e)), n.initialSpacer && (this.spacer = new qve(e, 0, 0, [n.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none");
  103993. }
  103994. update(e) {
  103995. let n = this.markers;
  103996. if (this.markers = rJ(this.config.markers(e.view)), this.spacer && this.config.updateSpacer) {
  103997. let i = this.config.updateSpacer(this.spacer.markers[0], e);
  103998. i != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [i]);
  103999. }
  104000. let r = e.view.viewport;
  104001. return !Sn.eq(this.markers, n, r.from, r.to) || (this.config.lineMarkerChange ? this.config.lineMarkerChange(e) : !1);
  104002. }
  104003. destroy() {
  104004. for (let e of this.elements)
  104005. e.destroy();
  104006. }
  104007. }
  104008. class qve {
  104009. constructor(e, n, r, i) {
  104010. this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, n, r, i);
  104011. }
  104012. update(e, n, r, i) {
  104013. this.height != n && (this.height = n, this.dom.style.height = n + "px"), this.above != r && (this.dom.style.marginTop = (this.above = r) ? r + "px" : ""), hCt(this.markers, i) || this.setMarkers(e, i);
  104014. }
  104015. setMarkers(e, n) {
  104016. let r = "cm-gutterElement", i = this.dom.firstChild;
  104017. for (let a = 0, o = 0; ; ) {
  104018. let s = o, l = a < n.length ? n[a++] : null, u = !1;
  104019. if (l) {
  104020. let c = l.elementClass;
  104021. c && (r += " " + c);
  104022. for (let f = o; f < this.markers.length; f++)
  104023. if (this.markers[f].compare(l)) {
  104024. s = f, u = !0;
  104025. break;
  104026. }
  104027. } else
  104028. s = this.markers.length;
  104029. for (; o < s; ) {
  104030. let c = this.markers[o++];
  104031. if (c.toDOM) {
  104032. c.destroy(i);
  104033. let f = i.nextSibling;
  104034. i.remove(), i = f;
  104035. }
  104036. }
  104037. if (!l)
  104038. break;
  104039. l.toDOM && (u ? i = i.nextSibling : this.dom.insertBefore(l.toDOM(e), i)), u && o++;
  104040. }
  104041. this.dom.className = r, this.markers = n;
  104042. }
  104043. destroy() {
  104044. this.setMarkers(null, []);
  104045. }
  104046. }
  104047. function hCt(t, e) {
  104048. if (t.length != e.length)
  104049. return !1;
  104050. for (let n = 0; n < t.length; n++)
  104051. if (!t[n].compare(e[n]))
  104052. return !1;
  104053. return !0;
  104054. }
  104055. const pCt = /* @__PURE__ */ ut.define(), Lv = /* @__PURE__ */ ut.define({
  104056. combine(t) {
  104057. return Kl(t, { formatNumber: String, domEventHandlers: {} }, {
  104058. domEventHandlers(e, n) {
  104059. let r = Object.assign({}, e);
  104060. for (let i in n) {
  104061. let a = r[i], o = n[i];
  104062. r[i] = a ? (s, l, u) => a(s, l, u) || o(s, l, u) : o;
  104063. }
  104064. return r;
  104065. }
  104066. });
  104067. }
  104068. });
  104069. class uD extends Yu {
  104070. constructor(e) {
  104071. super(), this.number = e;
  104072. }
  104073. eq(e) {
  104074. return this.number == e.number;
  104075. }
  104076. toDOM() {
  104077. return document.createTextNode(this.number);
  104078. }
  104079. }
  104080. function cD(t, e) {
  104081. return t.state.facet(Lv).formatNumber(e, t.state);
  104082. }
  104083. const vCt = /* @__PURE__ */ mb.compute([Lv], (t) => ({
  104084. class: "cm-lineNumbers",
  104085. renderEmptyElements: !1,
  104086. markers(e) {
  104087. return e.state.facet(pCt);
  104088. },
  104089. lineMarker(e, n, r) {
  104090. return r.some((i) => i.toDOM) ? null : new uD(cD(e, e.state.doc.lineAt(n.from).number));
  104091. },
  104092. widgetMarker: () => null,
  104093. lineMarkerChange: (e) => e.startState.facet(Lv) != e.state.facet(Lv),
  104094. initialSpacer(e) {
  104095. return new uD(cD(e, aJ(e.state.doc.lines)));
  104096. },
  104097. updateSpacer(e, n) {
  104098. let r = cD(n.view, aJ(n.view.state.doc.lines));
  104099. return r == e.number ? e : new uD(r);
  104100. },
  104101. domEventHandlers: t.facet(Lv).domEventHandlers
  104102. }));
  104103. function gCt(t = {}) {
  104104. return [
  104105. Lv.of(t),
  104106. Yve(),
  104107. vCt
  104108. ];
  104109. }
  104110. function aJ(t) {
  104111. let e = 9;
  104112. for (; e < t; )
  104113. e = e * 10 + 9;
  104114. return e;
  104115. }
  104116. const mCt = /* @__PURE__ */ new class extends Yu {
  104117. constructor() {
  104118. super(...arguments), this.elementClass = "cm-activeLineGutter";
  104119. }
  104120. }(), yCt = /* @__PURE__ */ Dw.compute(["selection"], (t) => {
  104121. let e = [], n = -1;
  104122. for (let r of t.selection.ranges) {
  104123. let i = t.doc.lineAt(r.head).from;
  104124. i > n && (n = i, e.push(mCt.range(i)));
  104125. }
  104126. return Sn.of(e);
  104127. });
  104128. function bCt() {
  104129. return yCt;
  104130. }
  104131. const Kve = 1024;
  104132. let _Ct = 0;
  104133. class fD {
  104134. constructor(e, n) {
  104135. this.from = e, this.to = n;
  104136. }
  104137. }
  104138. class rn {
  104139. /**
  104140. Create a new node prop type.
  104141. */
  104142. constructor(e = {}) {
  104143. this.id = _Ct++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
  104144. throw new Error("This node type doesn't define a deserialize function");
  104145. });
  104146. }
  104147. /**
  104148. This is meant to be used with
  104149. [`NodeSet.extend`](#common.NodeSet.extend) or
  104150. [`LRParser.configure`](#lr.ParserConfig.props) to compute
  104151. prop values for each node type in the set. Takes a [match
  104152. object](#common.NodeType^match) or function that returns undefined
  104153. if the node type doesn't get this prop, and the prop's value if
  104154. it does.
  104155. */
  104156. add(e) {
  104157. if (this.perNode)
  104158. throw new RangeError("Can't add per-node props to node types");
  104159. return typeof e != "function" && (e = Va.match(e)), (n) => {
  104160. let r = e(n);
  104161. return r === void 0 ? null : [this, r];
  104162. };
  104163. }
  104164. }
  104165. rn.closedBy = new rn({ deserialize: (t) => t.split(" ") });
  104166. rn.openedBy = new rn({ deserialize: (t) => t.split(" ") });
  104167. rn.group = new rn({ deserialize: (t) => t.split(" ") });
  104168. rn.isolate = new rn({ deserialize: (t) => {
  104169. if (t && t != "rtl" && t != "ltr" && t != "auto")
  104170. throw new RangeError("Invalid value for isolate: " + t);
  104171. return t || "auto";
  104172. } });
  104173. rn.contextHash = new rn({ perNode: !0 });
  104174. rn.lookAhead = new rn({ perNode: !0 });
  104175. rn.mounted = new rn({ perNode: !0 });
  104176. class DT {
  104177. constructor(e, n, r) {
  104178. this.tree = e, this.overlay = n, this.parser = r;
  104179. }
  104180. /**
  104181. @internal
  104182. */
  104183. static get(e) {
  104184. return e && e.props && e.props[rn.mounted.id];
  104185. }
  104186. }
  104187. const OCt = /* @__PURE__ */ Object.create(null);
  104188. class Va {
  104189. /**
  104190. @internal
  104191. */
  104192. constructor(e, n, r, i = 0) {
  104193. this.name = e, this.props = n, this.id = r, this.flags = i;
  104194. }
  104195. /**
  104196. Define a node type.
  104197. */
  104198. static define(e) {
  104199. let n = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : OCt, r = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Va(e.name || "", n, e.id, r);
  104200. if (e.props) {
  104201. for (let a of e.props)
  104202. if (Array.isArray(a) || (a = a(i)), a) {
  104203. if (a[0].perNode)
  104204. throw new RangeError("Can't store a per-node prop on a node type");
  104205. n[a[0].id] = a[1];
  104206. }
  104207. }
  104208. return i;
  104209. }
  104210. /**
  104211. Retrieves a node prop for this type. Will return `undefined` if
  104212. the prop isn't present on this node.
  104213. */
  104214. prop(e) {
  104215. return this.props[e.id];
  104216. }
  104217. /**
  104218. True when this is the top node of a grammar.
  104219. */
  104220. get isTop() {
  104221. return (this.flags & 1) > 0;
  104222. }
  104223. /**
  104224. True when this node is produced by a skip rule.
  104225. */
  104226. get isSkipped() {
  104227. return (this.flags & 2) > 0;
  104228. }
  104229. /**
  104230. Indicates whether this is an error node.
  104231. */
  104232. get isError() {
  104233. return (this.flags & 4) > 0;
  104234. }
  104235. /**
  104236. When true, this node type doesn't correspond to a user-declared
  104237. named node, for example because it is used to cache repetition.
  104238. */
  104239. get isAnonymous() {
  104240. return (this.flags & 8) > 0;
  104241. }
  104242. /**
  104243. Returns true when this node's name or one of its
  104244. [groups](#common.NodeProp^group) matches the given string.
  104245. */
  104246. is(e) {
  104247. if (typeof e == "string") {
  104248. if (this.name == e)
  104249. return !0;
  104250. let n = this.prop(rn.group);
  104251. return n ? n.indexOf(e) > -1 : !1;
  104252. }
  104253. return this.id == e;
  104254. }
  104255. /**
  104256. Create a function from node types to arbitrary values by
  104257. specifying an object whose property names are node or
  104258. [group](#common.NodeProp^group) names. Often useful with
  104259. [`NodeProp.add`](#common.NodeProp.add). You can put multiple
  104260. names, separated by spaces, in a single property name to map
  104261. multiple node names to a single value.
  104262. */
  104263. static match(e) {
  104264. let n = /* @__PURE__ */ Object.create(null);
  104265. for (let r in e)
  104266. for (let i of r.split(" "))
  104267. n[i] = e[r];
  104268. return (r) => {
  104269. for (let i = r.prop(rn.group), a = -1; a < (i ? i.length : 0); a++) {
  104270. let o = n[a < 0 ? r.name : i[a]];
  104271. if (o)
  104272. return o;
  104273. }
  104274. };
  104275. }
  104276. }
  104277. Va.none = new Va(
  104278. "",
  104279. /* @__PURE__ */ Object.create(null),
  104280. 0,
  104281. 8
  104282. /* NodeFlag.Anonymous */
  104283. );
  104284. class cB {
  104285. /**
  104286. Create a set with the given types. The `id` property of each
  104287. type should correspond to its position within the array.
  104288. */
  104289. constructor(e) {
  104290. this.types = e;
  104291. for (let n = 0; n < e.length; n++)
  104292. if (e[n].id != n)
  104293. throw new RangeError("Node type ids should correspond to array positions when creating a node set");
  104294. }
  104295. /**
  104296. Create a copy of this set with some node properties added. The
  104297. arguments to this method can be created with
  104298. [`NodeProp.add`](#common.NodeProp.add).
  104299. */
  104300. extend(...e) {
  104301. let n = [];
  104302. for (let r of this.types) {
  104303. let i = null;
  104304. for (let a of e) {
  104305. let o = a(r);
  104306. o && (i || (i = Object.assign({}, r.props)), i[o[0].id] = o[1]);
  104307. }
  104308. n.push(i ? new Va(r.name, i, r.id, r.flags) : r);
  104309. }
  104310. return new cB(n);
  104311. }
  104312. }
  104313. const bx = /* @__PURE__ */ new WeakMap(), oJ = /* @__PURE__ */ new WeakMap();
  104314. var Ur;
  104315. (function(t) {
  104316. t[t.ExcludeBuffers = 1] = "ExcludeBuffers", t[t.IncludeAnonymous = 2] = "IncludeAnonymous", t[t.IgnoreMounts = 4] = "IgnoreMounts", t[t.IgnoreOverlays = 8] = "IgnoreOverlays";
  104317. })(Ur || (Ur = {}));
  104318. class Vr {
  104319. /**
  104320. Construct a new tree. See also [`Tree.build`](#common.Tree^build).
  104321. */
  104322. constructor(e, n, r, i, a) {
  104323. if (this.type = e, this.children = n, this.positions = r, this.length = i, this.props = null, a && a.length) {
  104324. this.props = /* @__PURE__ */ Object.create(null);
  104325. for (let [o, s] of a)
  104326. this.props[typeof o == "number" ? o : o.id] = s;
  104327. }
  104328. }
  104329. /**
  104330. @internal
  104331. */
  104332. toString() {
  104333. let e = DT.get(this);
  104334. if (e && !e.overlay)
  104335. return e.tree.toString();
  104336. let n = "";
  104337. for (let r of this.children) {
  104338. let i = r.toString();
  104339. i && (n && (n += ","), n += i);
  104340. }
  104341. return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (n.length ? "(" + n + ")" : "") : n;
  104342. }
  104343. /**
  104344. Get a [tree cursor](#common.TreeCursor) positioned at the top of
  104345. the tree. Mode can be used to [control](#common.IterMode) which
  104346. nodes the cursor visits.
  104347. */
  104348. cursor(e = 0) {
  104349. return new R4(this.topNode, e);
  104350. }
  104351. /**
  104352. Get a [tree cursor](#common.TreeCursor) pointing into this tree
  104353. at the given position and side (see
  104354. [`moveTo`](#common.TreeCursor.moveTo).
  104355. */
  104356. cursorAt(e, n = 0, r = 0) {
  104357. let i = bx.get(this) || this.topNode, a = new R4(i);
  104358. return a.moveTo(e, n), bx.set(this, a._tree), a;
  104359. }
  104360. /**
  104361. Get a [syntax node](#common.SyntaxNode) object for the top of the
  104362. tree.
  104363. */
  104364. get topNode() {
  104365. return new Ba(this, 0, 0, null);
  104366. }
  104367. /**
  104368. Get the [syntax node](#common.SyntaxNode) at the given position.
  104369. If `side` is -1, this will move into nodes that end at the
  104370. position. If 1, it'll move into nodes that start at the
  104371. position. With 0, it'll only enter nodes that cover the position
  104372. from both sides.
  104373. Note that this will not enter
  104374. [overlays](#common.MountedTree.overlay), and you often want
  104375. [`resolveInner`](#common.Tree.resolveInner) instead.
  104376. */
  104377. resolve(e, n = 0) {
  104378. let r = x_(bx.get(this) || this.topNode, e, n, !1);
  104379. return bx.set(this, r), r;
  104380. }
  104381. /**
  104382. Like [`resolve`](#common.Tree.resolve), but will enter
  104383. [overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
  104384. pointing into the innermost overlaid tree at the given position
  104385. (with parent links going through all parent structure, including
  104386. the host trees).
  104387. */
  104388. resolveInner(e, n = 0) {
  104389. let r = x_(oJ.get(this) || this.topNode, e, n, !0);
  104390. return oJ.set(this, r), r;
  104391. }
  104392. /**
  104393. In some situations, it can be useful to iterate through all
  104394. nodes around a position, including those in overlays that don't
  104395. directly cover the position. This method gives you an iterator
  104396. that will produce all nodes, from small to big, around the given
  104397. position.
  104398. */
  104399. resolveStack(e, n = 0) {
  104400. return wCt(this, e, n);
  104401. }
  104402. /**
  104403. Iterate over the tree and its children, calling `enter` for any
  104404. node that touches the `from`/`to` region (if given) before
  104405. running over such a node's children, and `leave` (if given) when
  104406. leaving the node. When `enter` returns `false`, that node will
  104407. not have its children iterated over (or `leave` called).
  104408. */
  104409. iterate(e) {
  104410. let { enter: n, leave: r, from: i = 0, to: a = this.length } = e, o = e.mode || 0, s = (o & Ur.IncludeAnonymous) > 0;
  104411. for (let l = this.cursor(o | Ur.IncludeAnonymous); ; ) {
  104412. let u = !1;
  104413. if (l.from <= a && l.to >= i && (!s && l.type.isAnonymous || n(l) !== !1)) {
  104414. if (l.firstChild())
  104415. continue;
  104416. u = !0;
  104417. }
  104418. for (; u && r && (s || !l.type.isAnonymous) && r(l), !l.nextSibling(); ) {
  104419. if (!l.parent())
  104420. return;
  104421. u = !0;
  104422. }
  104423. }
  104424. }
  104425. /**
  104426. Get the value of the given [node prop](#common.NodeProp) for this
  104427. node. Works with both per-node and per-type props.
  104428. */
  104429. prop(e) {
  104430. return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
  104431. }
  104432. /**
  104433. Returns the node's [per-node props](#common.NodeProp.perNode) in a
  104434. format that can be passed to the [`Tree`](#common.Tree)
  104435. constructor.
  104436. */
  104437. get propValues() {
  104438. let e = [];
  104439. if (this.props)
  104440. for (let n in this.props)
  104441. e.push([+n, this.props[n]]);
  104442. return e;
  104443. }
  104444. /**
  104445. Balance the direct children of this tree, producing a copy of
  104446. which may have children grouped into subtrees with type
  104447. [`NodeType.none`](#common.NodeType^none).
  104448. */
  104449. balance(e = {}) {
  104450. return this.children.length <= 8 ? this : hB(Va.none, this.children, this.positions, 0, this.children.length, 0, this.length, (n, r, i) => new Vr(this.type, n, r, i, this.propValues), e.makeTree || ((n, r, i) => new Vr(Va.none, n, r, i)));
  104451. }
  104452. /**
  104453. Build a tree from a postfix-ordered buffer of node information,
  104454. or a cursor over such a buffer.
  104455. */
  104456. static build(e) {
  104457. return CCt(e);
  104458. }
  104459. }
  104460. Vr.empty = new Vr(Va.none, [], [], 0);
  104461. class fB {
  104462. constructor(e, n) {
  104463. this.buffer = e, this.index = n;
  104464. }
  104465. get id() {
  104466. return this.buffer[this.index - 4];
  104467. }
  104468. get start() {
  104469. return this.buffer[this.index - 3];
  104470. }
  104471. get end() {
  104472. return this.buffer[this.index - 2];
  104473. }
  104474. get size() {
  104475. return this.buffer[this.index - 1];
  104476. }
  104477. get pos() {
  104478. return this.index;
  104479. }
  104480. next() {
  104481. this.index -= 4;
  104482. }
  104483. fork() {
  104484. return new fB(this.buffer, this.index);
  104485. }
  104486. }
  104487. class $f {
  104488. /**
  104489. Create a tree buffer.
  104490. */
  104491. constructor(e, n, r) {
  104492. this.buffer = e, this.length = n, this.set = r;
  104493. }
  104494. /**
  104495. @internal
  104496. */
  104497. get type() {
  104498. return Va.none;
  104499. }
  104500. /**
  104501. @internal
  104502. */
  104503. toString() {
  104504. let e = [];
  104505. for (let n = 0; n < this.buffer.length; )
  104506. e.push(this.childString(n)), n = this.buffer[n + 3];
  104507. return e.join(",");
  104508. }
  104509. /**
  104510. @internal
  104511. */
  104512. childString(e) {
  104513. let n = this.buffer[e], r = this.buffer[e + 3], i = this.set.types[n], a = i.name;
  104514. if (/\W/.test(a) && !i.isError && (a = JSON.stringify(a)), e += 4, r == e)
  104515. return a;
  104516. let o = [];
  104517. for (; e < r; )
  104518. o.push(this.childString(e)), e = this.buffer[e + 3];
  104519. return a + "(" + o.join(",") + ")";
  104520. }
  104521. /**
  104522. @internal
  104523. */
  104524. findChild(e, n, r, i, a) {
  104525. let { buffer: o } = this, s = -1;
  104526. for (let l = e; l != n && !(Jve(a, i, o[l + 1], o[l + 2]) && (s = l, r > 0)); l = o[l + 3])
  104527. ;
  104528. return s;
  104529. }
  104530. /**
  104531. @internal
  104532. */
  104533. slice(e, n, r) {
  104534. let i = this.buffer, a = new Uint16Array(n - e), o = 0;
  104535. for (let s = e, l = 0; s < n; ) {
  104536. a[l++] = i[s++], a[l++] = i[s++] - r;
  104537. let u = a[l++] = i[s++] - r;
  104538. a[l++] = i[s++] - e, o = Math.max(o, u);
  104539. }
  104540. return new $f(a, o, this.set);
  104541. }
  104542. }
  104543. function Jve(t, e, n, r) {
  104544. switch (t) {
  104545. case -2:
  104546. return n < e;
  104547. case -1:
  104548. return r >= e && n < e;
  104549. case 0:
  104550. return n < e && r > e;
  104551. case 1:
  104552. return n <= e && r > e;
  104553. case 2:
  104554. return r > e;
  104555. case 4:
  104556. return !0;
  104557. }
  104558. }
  104559. function x_(t, e, n, r) {
  104560. for (var i; t.from == t.to || (n < 1 ? t.from >= e : t.from > e) || (n > -1 ? t.to <= e : t.to < e); ) {
  104561. let o = !r && t instanceof Ba && t.index < 0 ? null : t.parent;
  104562. if (!o)
  104563. return t;
  104564. t = o;
  104565. }
  104566. let a = r ? 0 : Ur.IgnoreOverlays;
  104567. if (r)
  104568. for (let o = t, s = o.parent; s; o = s, s = o.parent)
  104569. o instanceof Ba && o.index < 0 && ((i = s.enter(e, n, a)) === null || i === void 0 ? void 0 : i.from) != o.from && (t = s);
  104570. for (; ; ) {
  104571. let o = t.enter(e, n, a);
  104572. if (!o)
  104573. return t;
  104574. t = o;
  104575. }
  104576. }
  104577. class ege {
  104578. cursor(e = 0) {
  104579. return new R4(this, e);
  104580. }
  104581. getChild(e, n = null, r = null) {
  104582. let i = sJ(this, e, n, r);
  104583. return i.length ? i[0] : null;
  104584. }
  104585. getChildren(e, n = null, r = null) {
  104586. return sJ(this, e, n, r);
  104587. }
  104588. resolve(e, n = 0) {
  104589. return x_(this, e, n, !1);
  104590. }
  104591. resolveInner(e, n = 0) {
  104592. return x_(this, e, n, !0);
  104593. }
  104594. matchContext(e) {
  104595. return D4(this, e);
  104596. }
  104597. enterUnfinishedNodesBefore(e) {
  104598. let n = this.childBefore(e), r = this;
  104599. for (; n; ) {
  104600. let i = n.lastChild;
  104601. if (!i || i.to != n.to)
  104602. break;
  104603. i.type.isError && i.from == i.to ? (r = n, n = i.prevSibling) : n = i;
  104604. }
  104605. return r;
  104606. }
  104607. get node() {
  104608. return this;
  104609. }
  104610. get next() {
  104611. return this.parent;
  104612. }
  104613. }
  104614. class Ba extends ege {
  104615. constructor(e, n, r, i) {
  104616. super(), this._tree = e, this.from = n, this.index = r, this._parent = i;
  104617. }
  104618. get type() {
  104619. return this._tree.type;
  104620. }
  104621. get name() {
  104622. return this._tree.type.name;
  104623. }
  104624. get to() {
  104625. return this.from + this._tree.length;
  104626. }
  104627. nextChild(e, n, r, i, a = 0) {
  104628. for (let o = this; ; ) {
  104629. for (let { children: s, positions: l } = o._tree, u = n > 0 ? s.length : -1; e != u; e += n) {
  104630. let c = s[e], f = l[e] + o.from;
  104631. if (Jve(i, r, f, f + c.length)) {
  104632. if (c instanceof $f) {
  104633. if (a & Ur.ExcludeBuffers)
  104634. continue;
  104635. let d = c.findChild(0, c.buffer.length, n, r - f, i);
  104636. if (d > -1)
  104637. return new Ml(new SCt(o, c, e, f), null, d);
  104638. } else if (a & Ur.IncludeAnonymous || !c.type.isAnonymous || dB(c)) {
  104639. let d;
  104640. if (!(a & Ur.IgnoreMounts) && (d = DT.get(c)) && !d.overlay)
  104641. return new Ba(d.tree, f, e, o);
  104642. let h = new Ba(c, f, e, o);
  104643. return a & Ur.IncludeAnonymous || !h.type.isAnonymous ? h : h.nextChild(n < 0 ? c.children.length - 1 : 0, n, r, i);
  104644. }
  104645. }
  104646. }
  104647. if (a & Ur.IncludeAnonymous || !o.type.isAnonymous || (o.index >= 0 ? e = o.index + n : e = n < 0 ? -1 : o._parent._tree.children.length, o = o._parent, !o))
  104648. return null;
  104649. }
  104650. }
  104651. get firstChild() {
  104652. return this.nextChild(
  104653. 0,
  104654. 1,
  104655. 0,
  104656. 4
  104657. /* Side.DontCare */
  104658. );
  104659. }
  104660. get lastChild() {
  104661. return this.nextChild(
  104662. this._tree.children.length - 1,
  104663. -1,
  104664. 0,
  104665. 4
  104666. /* Side.DontCare */
  104667. );
  104668. }
  104669. childAfter(e) {
  104670. return this.nextChild(
  104671. 0,
  104672. 1,
  104673. e,
  104674. 2
  104675. /* Side.After */
  104676. );
  104677. }
  104678. childBefore(e) {
  104679. return this.nextChild(
  104680. this._tree.children.length - 1,
  104681. -1,
  104682. e,
  104683. -2
  104684. /* Side.Before */
  104685. );
  104686. }
  104687. enter(e, n, r = 0) {
  104688. let i;
  104689. if (!(r & Ur.IgnoreOverlays) && (i = DT.get(this._tree)) && i.overlay) {
  104690. let a = e - this.from;
  104691. for (let { from: o, to: s } of i.overlay)
  104692. if ((n > 0 ? o <= a : o < a) && (n < 0 ? s >= a : s > a))
  104693. return new Ba(i.tree, i.overlay[0].from + this.from, -1, this);
  104694. }
  104695. return this.nextChild(0, 1, e, n, r);
  104696. }
  104697. nextSignificantParent() {
  104698. let e = this;
  104699. for (; e.type.isAnonymous && e._parent; )
  104700. e = e._parent;
  104701. return e;
  104702. }
  104703. get parent() {
  104704. return this._parent ? this._parent.nextSignificantParent() : null;
  104705. }
  104706. get nextSibling() {
  104707. return this._parent && this.index >= 0 ? this._parent.nextChild(
  104708. this.index + 1,
  104709. 1,
  104710. 0,
  104711. 4
  104712. /* Side.DontCare */
  104713. ) : null;
  104714. }
  104715. get prevSibling() {
  104716. return this._parent && this.index >= 0 ? this._parent.nextChild(
  104717. this.index - 1,
  104718. -1,
  104719. 0,
  104720. 4
  104721. /* Side.DontCare */
  104722. ) : null;
  104723. }
  104724. get tree() {
  104725. return this._tree;
  104726. }
  104727. toTree() {
  104728. return this._tree;
  104729. }
  104730. /**
  104731. @internal
  104732. */
  104733. toString() {
  104734. return this._tree.toString();
  104735. }
  104736. }
  104737. function sJ(t, e, n, r) {
  104738. let i = t.cursor(), a = [];
  104739. if (!i.firstChild())
  104740. return a;
  104741. if (n != null) {
  104742. for (let o = !1; !o; )
  104743. if (o = i.type.is(n), !i.nextSibling())
  104744. return a;
  104745. }
  104746. for (; ; ) {
  104747. if (r != null && i.type.is(r))
  104748. return a;
  104749. if (i.type.is(e) && a.push(i.node), !i.nextSibling())
  104750. return r == null ? a : [];
  104751. }
  104752. }
  104753. function D4(t, e, n = e.length - 1) {
  104754. for (let r = t.parent; n >= 0; r = r.parent) {
  104755. if (!r)
  104756. return !1;
  104757. if (!r.type.isAnonymous) {
  104758. if (e[n] && e[n] != r.name)
  104759. return !1;
  104760. n--;
  104761. }
  104762. }
  104763. return !0;
  104764. }
  104765. class SCt {
  104766. constructor(e, n, r, i) {
  104767. this.parent = e, this.buffer = n, this.index = r, this.start = i;
  104768. }
  104769. }
  104770. class Ml extends ege {
  104771. get name() {
  104772. return this.type.name;
  104773. }
  104774. get from() {
  104775. return this.context.start + this.context.buffer.buffer[this.index + 1];
  104776. }
  104777. get to() {
  104778. return this.context.start + this.context.buffer.buffer[this.index + 2];
  104779. }
  104780. constructor(e, n, r) {
  104781. super(), this.context = e, this._parent = n, this.index = r, this.type = e.buffer.set.types[e.buffer.buffer[r]];
  104782. }
  104783. child(e, n, r) {
  104784. let { buffer: i } = this.context, a = i.findChild(this.index + 4, i.buffer[this.index + 3], e, n - this.context.start, r);
  104785. return a < 0 ? null : new Ml(this.context, this, a);
  104786. }
  104787. get firstChild() {
  104788. return this.child(
  104789. 1,
  104790. 0,
  104791. 4
  104792. /* Side.DontCare */
  104793. );
  104794. }
  104795. get lastChild() {
  104796. return this.child(
  104797. -1,
  104798. 0,
  104799. 4
  104800. /* Side.DontCare */
  104801. );
  104802. }
  104803. childAfter(e) {
  104804. return this.child(
  104805. 1,
  104806. e,
  104807. 2
  104808. /* Side.After */
  104809. );
  104810. }
  104811. childBefore(e) {
  104812. return this.child(
  104813. -1,
  104814. e,
  104815. -2
  104816. /* Side.Before */
  104817. );
  104818. }
  104819. enter(e, n, r = 0) {
  104820. if (r & Ur.ExcludeBuffers)
  104821. return null;
  104822. let { buffer: i } = this.context, a = i.findChild(this.index + 4, i.buffer[this.index + 3], n > 0 ? 1 : -1, e - this.context.start, n);
  104823. return a < 0 ? null : new Ml(this.context, this, a);
  104824. }
  104825. get parent() {
  104826. return this._parent || this.context.parent.nextSignificantParent();
  104827. }
  104828. externalSibling(e) {
  104829. return this._parent ? null : this.context.parent.nextChild(
  104830. this.context.index + e,
  104831. e,
  104832. 0,
  104833. 4
  104834. /* Side.DontCare */
  104835. );
  104836. }
  104837. get nextSibling() {
  104838. let { buffer: e } = this.context, n = e.buffer[this.index + 3];
  104839. return n < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new Ml(this.context, this._parent, n) : this.externalSibling(1);
  104840. }
  104841. get prevSibling() {
  104842. let { buffer: e } = this.context, n = this._parent ? this._parent.index + 4 : 0;
  104843. return this.index == n ? this.externalSibling(-1) : new Ml(this.context, this._parent, e.findChild(
  104844. n,
  104845. this.index,
  104846. -1,
  104847. 0,
  104848. 4
  104849. /* Side.DontCare */
  104850. ));
  104851. }
  104852. get tree() {
  104853. return null;
  104854. }
  104855. toTree() {
  104856. let e = [], n = [], { buffer: r } = this.context, i = this.index + 4, a = r.buffer[this.index + 3];
  104857. if (a > i) {
  104858. let o = r.buffer[this.index + 1];
  104859. e.push(r.slice(i, a, o)), n.push(0);
  104860. }
  104861. return new Vr(this.type, e, n, this.to - this.from);
  104862. }
  104863. /**
  104864. @internal
  104865. */
  104866. toString() {
  104867. return this.context.buffer.childString(this.index);
  104868. }
  104869. }
  104870. function tge(t) {
  104871. if (!t.length)
  104872. return null;
  104873. let e = 0, n = t[0];
  104874. for (let a = 1; a < t.length; a++) {
  104875. let o = t[a];
  104876. (o.from > n.from || o.to < n.to) && (n = o, e = a);
  104877. }
  104878. let r = n instanceof Ba && n.index < 0 ? null : n.parent, i = t.slice();
  104879. return r ? i[e] = r : i.splice(e, 1), new xCt(i, n);
  104880. }
  104881. class xCt {
  104882. constructor(e, n) {
  104883. this.heads = e, this.node = n;
  104884. }
  104885. get next() {
  104886. return tge(this.heads);
  104887. }
  104888. }
  104889. function wCt(t, e, n) {
  104890. let r = t.resolveInner(e, n), i = null;
  104891. for (let a = r instanceof Ba ? r : r.context.parent; a; a = a.parent)
  104892. if (a.index < 0) {
  104893. let o = a.parent;
  104894. (i || (i = [r])).push(o.resolve(e, n)), a = o;
  104895. } else {
  104896. let o = DT.get(a.tree);
  104897. if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) {
  104898. let s = new Ba(o.tree, o.overlay[0].from + a.from, -1, a);
  104899. (i || (i = [r])).push(x_(s, e, n, !1));
  104900. }
  104901. }
  104902. return i ? tge(i) : r;
  104903. }
  104904. class R4 {
  104905. /**
  104906. Shorthand for `.type.name`.
  104907. */
  104908. get name() {
  104909. return this.type.name;
  104910. }
  104911. /**
  104912. @internal
  104913. */
  104914. constructor(e, n = 0) {
  104915. if (this.mode = n, this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, e instanceof Ba)
  104916. this.yieldNode(e);
  104917. else {
  104918. this._tree = e.context.parent, this.buffer = e.context;
  104919. for (let r = e._parent; r; r = r._parent)
  104920. this.stack.unshift(r.index);
  104921. this.bufferNode = e, this.yieldBuf(e.index);
  104922. }
  104923. }
  104924. yieldNode(e) {
  104925. return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
  104926. }
  104927. yieldBuf(e, n) {
  104928. this.index = e;
  104929. let { start: r, buffer: i } = this.buffer;
  104930. return this.type = n || i.set.types[i.buffer[e]], this.from = r + i.buffer[e + 1], this.to = r + i.buffer[e + 2], !0;
  104931. }
  104932. /**
  104933. @internal
  104934. */
  104935. yield(e) {
  104936. return e ? e instanceof Ba ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
  104937. }
  104938. /**
  104939. @internal
  104940. */
  104941. toString() {
  104942. return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
  104943. }
  104944. /**
  104945. @internal
  104946. */
  104947. enterChild(e, n, r) {
  104948. if (!this.buffer)
  104949. return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, n, r, this.mode));
  104950. let { buffer: i } = this.buffer, a = i.findChild(this.index + 4, i.buffer[this.index + 3], e, n - this.buffer.start, r);
  104951. return a < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(a));
  104952. }
  104953. /**
  104954. Move the cursor to this node's first child. When this returns
  104955. false, the node has no child, and the cursor has not been moved.
  104956. */
  104957. firstChild() {
  104958. return this.enterChild(
  104959. 1,
  104960. 0,
  104961. 4
  104962. /* Side.DontCare */
  104963. );
  104964. }
  104965. /**
  104966. Move the cursor to this node's last child.
  104967. */
  104968. lastChild() {
  104969. return this.enterChild(
  104970. -1,
  104971. 0,
  104972. 4
  104973. /* Side.DontCare */
  104974. );
  104975. }
  104976. /**
  104977. Move the cursor to the first child that ends after `pos`.
  104978. */
  104979. childAfter(e) {
  104980. return this.enterChild(
  104981. 1,
  104982. e,
  104983. 2
  104984. /* Side.After */
  104985. );
  104986. }
  104987. /**
  104988. Move to the last child that starts before `pos`.
  104989. */
  104990. childBefore(e) {
  104991. return this.enterChild(
  104992. -1,
  104993. e,
  104994. -2
  104995. /* Side.Before */
  104996. );
  104997. }
  104998. /**
  104999. Move the cursor to the child around `pos`. If side is -1 the
  105000. child may end at that position, when 1 it may start there. This
  105001. will also enter [overlaid](#common.MountedTree.overlay)
  105002. [mounted](#common.NodeProp^mounted) trees unless `overlays` is
  105003. set to false.
  105004. */
  105005. enter(e, n, r = this.mode) {
  105006. return this.buffer ? r & Ur.ExcludeBuffers ? !1 : this.enterChild(1, e, n) : this.yield(this._tree.enter(e, n, r));
  105007. }
  105008. /**
  105009. Move to the node's parent node, if this isn't the top node.
  105010. */
  105011. parent() {
  105012. if (!this.buffer)
  105013. return this.yieldNode(this.mode & Ur.IncludeAnonymous ? this._tree._parent : this._tree.parent);
  105014. if (this.stack.length)
  105015. return this.yieldBuf(this.stack.pop());
  105016. let e = this.mode & Ur.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
  105017. return this.buffer = null, this.yieldNode(e);
  105018. }
  105019. /**
  105020. @internal
  105021. */
  105022. sibling(e) {
  105023. if (!this.buffer)
  105024. return this._tree._parent ? this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e, e, 0, 4, this.mode)) : !1;
  105025. let { buffer: n } = this.buffer, r = this.stack.length - 1;
  105026. if (e < 0) {
  105027. let i = r < 0 ? 0 : this.stack[r] + 4;
  105028. if (this.index != i)
  105029. return this.yieldBuf(n.findChild(
  105030. i,
  105031. this.index,
  105032. -1,
  105033. 0,
  105034. 4
  105035. /* Side.DontCare */
  105036. ));
  105037. } else {
  105038. let i = n.buffer[this.index + 3];
  105039. if (i < (r < 0 ? n.buffer.length : n.buffer[this.stack[r] + 3]))
  105040. return this.yieldBuf(i);
  105041. }
  105042. return r < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode)) : !1;
  105043. }
  105044. /**
  105045. Move to this node's next sibling, if any.
  105046. */
  105047. nextSibling() {
  105048. return this.sibling(1);
  105049. }
  105050. /**
  105051. Move to this node's previous sibling, if any.
  105052. */
  105053. prevSibling() {
  105054. return this.sibling(-1);
  105055. }
  105056. atLastNode(e) {
  105057. let n, r, { buffer: i } = this;
  105058. if (i) {
  105059. if (e > 0) {
  105060. if (this.index < i.buffer.buffer.length)
  105061. return !1;
  105062. } else
  105063. for (let a = 0; a < this.index; a++)
  105064. if (i.buffer.buffer[a + 3] < this.index)
  105065. return !1;
  105066. ({ index: n, parent: r } = i);
  105067. } else
  105068. ({ index: n, _parent: r } = this._tree);
  105069. for (; r; { index: n, _parent: r } = r)
  105070. if (n > -1)
  105071. for (let a = n + e, o = e < 0 ? -1 : r._tree.children.length; a != o; a += e) {
  105072. let s = r._tree.children[a];
  105073. if (this.mode & Ur.IncludeAnonymous || s instanceof $f || !s.type.isAnonymous || dB(s))
  105074. return !1;
  105075. }
  105076. return !0;
  105077. }
  105078. move(e, n) {
  105079. if (n && this.enterChild(
  105080. e,
  105081. 0,
  105082. 4
  105083. /* Side.DontCare */
  105084. ))
  105085. return !0;
  105086. for (; ; ) {
  105087. if (this.sibling(e))
  105088. return !0;
  105089. if (this.atLastNode(e) || !this.parent())
  105090. return !1;
  105091. }
  105092. }
  105093. /**
  105094. Move to the next node in a
  105095. [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
  105096. traversal, going from a node to its first child or, if the
  105097. current node is empty or `enter` is false, its next sibling or
  105098. the next sibling of the first parent node that has one.
  105099. */
  105100. next(e = !0) {
  105101. return this.move(1, e);
  105102. }
  105103. /**
  105104. Move to the next node in a last-to-first pre-order traveral. A
  105105. node is followed by its last child or, if it has none, its
  105106. previous sibling or the previous sibling of the first parent
  105107. node that has one.
  105108. */
  105109. prev(e = !0) {
  105110. return this.move(-1, e);
  105111. }
  105112. /**
  105113. Move the cursor to the innermost node that covers `pos`. If
  105114. `side` is -1, it will enter nodes that end at `pos`. If it is 1,
  105115. it will enter nodes that start at `pos`.
  105116. */
  105117. moveTo(e, n = 0) {
  105118. for (; (this.from == this.to || (n < 1 ? this.from >= e : this.from > e) || (n > -1 ? this.to <= e : this.to < e)) && this.parent(); )
  105119. ;
  105120. for (; this.enterChild(1, e, n); )
  105121. ;
  105122. return this;
  105123. }
  105124. /**
  105125. Get a [syntax node](#common.SyntaxNode) at the cursor's current
  105126. position.
  105127. */
  105128. get node() {
  105129. if (!this.buffer)
  105130. return this._tree;
  105131. let e = this.bufferNode, n = null, r = 0;
  105132. if (e && e.context == this.buffer)
  105133. e: for (let i = this.index, a = this.stack.length; a >= 0; ) {
  105134. for (let o = e; o; o = o._parent)
  105135. if (o.index == i) {
  105136. if (i == this.index)
  105137. return o;
  105138. n = o, r = a + 1;
  105139. break e;
  105140. }
  105141. i = this.stack[--a];
  105142. }
  105143. for (let i = r; i < this.stack.length; i++)
  105144. n = new Ml(this.buffer, n, this.stack[i]);
  105145. return this.bufferNode = new Ml(this.buffer, n, this.index);
  105146. }
  105147. /**
  105148. Get the [tree](#common.Tree) that represents the current node, if
  105149. any. Will return null when the node is in a [tree
  105150. buffer](#common.TreeBuffer).
  105151. */
  105152. get tree() {
  105153. return this.buffer ? null : this._tree._tree;
  105154. }
  105155. /**
  105156. Iterate over the current node and all its descendants, calling
  105157. `enter` when entering a node and `leave`, if given, when leaving
  105158. one. When `enter` returns `false`, any children of that node are
  105159. skipped, and `leave` isn't called for it.
  105160. */
  105161. iterate(e, n) {
  105162. for (let r = 0; ; ) {
  105163. let i = !1;
  105164. if (this.type.isAnonymous || e(this) !== !1) {
  105165. if (this.firstChild()) {
  105166. r++;
  105167. continue;
  105168. }
  105169. this.type.isAnonymous || (i = !0);
  105170. }
  105171. for (; i && n && n(this), i = this.type.isAnonymous, !this.nextSibling(); ) {
  105172. if (!r)
  105173. return;
  105174. this.parent(), r--, i = !0;
  105175. }
  105176. }
  105177. }
  105178. /**
  105179. Test whether the current node matches a given context—a sequence
  105180. of direct parent node names. Empty strings in the context array
  105181. are treated as wildcards.
  105182. */
  105183. matchContext(e) {
  105184. if (!this.buffer)
  105185. return D4(this.node, e);
  105186. let { buffer: n } = this.buffer, { types: r } = n.set;
  105187. for (let i = e.length - 1, a = this.stack.length - 1; i >= 0; a--) {
  105188. if (a < 0)
  105189. return D4(this.node, e, i);
  105190. let o = r[n.buffer[this.stack[a]]];
  105191. if (!o.isAnonymous) {
  105192. if (e[i] && e[i] != o.name)
  105193. return !1;
  105194. i--;
  105195. }
  105196. }
  105197. return !0;
  105198. }
  105199. }
  105200. function dB(t) {
  105201. return t.children.some((e) => e instanceof $f || !e.type.isAnonymous || dB(e));
  105202. }
  105203. function CCt(t) {
  105204. var e;
  105205. let { buffer: n, nodeSet: r, maxBufferLength: i = Kve, reused: a = [], minRepeatType: o = r.types.length } = t, s = Array.isArray(n) ? new fB(n, n.length) : n, l = r.types, u = 0, c = 0;
  105206. function f(S, x, C, P, $, T) {
  105207. let { id: E, start: M, end: R, size: N } = s, I = c;
  105208. for (; N < 0; )
  105209. if (s.next(), N == -1) {
  105210. let U = a[E];
  105211. C.push(U), P.push(M - S);
  105212. return;
  105213. } else if (N == -3) {
  105214. u = E;
  105215. return;
  105216. } else if (N == -4) {
  105217. c = E;
  105218. return;
  105219. } else
  105220. throw new RangeError(`Unrecognized record size: ${N}`);
  105221. let B = l[E], Q, W, H = M - S;
  105222. if (R - M <= i && (W = g(s.pos - x, $))) {
  105223. let U = new Uint16Array(W.size - W.skip), j = s.pos - W.size, Y = U.length;
  105224. for (; s.pos > j; )
  105225. Y = m(W.start, U, Y);
  105226. Q = new $f(U, R - W.start, r), H = W.start - S;
  105227. } else {
  105228. let U = s.pos - N;
  105229. s.next();
  105230. let j = [], Y = [], ne = E >= o ? E : -1, fe = 0, ue = R;
  105231. for (; s.pos > U; )
  105232. ne >= 0 && s.id == ne && s.size >= 0 ? (s.end <= ue - i && (p(j, Y, M, fe, s.end, ue, ne, I), fe = j.length, ue = s.end), s.next()) : T > 2500 ? d(M, U, j, Y) : f(M, U, j, Y, ne, T + 1);
  105233. if (ne >= 0 && fe > 0 && fe < j.length && p(j, Y, M, fe, M, ue, ne, I), j.reverse(), Y.reverse(), ne > -1 && fe > 0) {
  105234. let ye = h(B);
  105235. Q = hB(B, j, Y, 0, j.length, 0, R - M, ye, ye);
  105236. } else
  105237. Q = v(B, j, Y, R - M, I - R);
  105238. }
  105239. C.push(Q), P.push(H);
  105240. }
  105241. function d(S, x, C, P) {
  105242. let $ = [], T = 0, E = -1;
  105243. for (; s.pos > x; ) {
  105244. let { id: M, start: R, end: N, size: I } = s;
  105245. if (I > 4)
  105246. s.next();
  105247. else {
  105248. if (E > -1 && R < E)
  105249. break;
  105250. E < 0 && (E = N - i), $.push(M, R, N), T++, s.next();
  105251. }
  105252. }
  105253. if (T) {
  105254. let M = new Uint16Array(T * 4), R = $[$.length - 2];
  105255. for (let N = $.length - 3, I = 0; N >= 0; N -= 3)
  105256. M[I++] = $[N], M[I++] = $[N + 1] - R, M[I++] = $[N + 2] - R, M[I++] = I;
  105257. C.push(new $f(M, $[2] - R, r)), P.push(R - S);
  105258. }
  105259. }
  105260. function h(S) {
  105261. return (x, C, P) => {
  105262. let $ = 0, T = x.length - 1, E, M;
  105263. if (T >= 0 && (E = x[T]) instanceof Vr) {
  105264. if (!T && E.type == S && E.length == P)
  105265. return E;
  105266. (M = E.prop(rn.lookAhead)) && ($ = C[T] + E.length + M);
  105267. }
  105268. return v(S, x, C, P, $);
  105269. };
  105270. }
  105271. function p(S, x, C, P, $, T, E, M) {
  105272. let R = [], N = [];
  105273. for (; S.length > P; )
  105274. R.push(S.pop()), N.push(x.pop() + C - $);
  105275. S.push(v(r.types[E], R, N, T - $, M - T)), x.push($ - C);
  105276. }
  105277. function v(S, x, C, P, $ = 0, T) {
  105278. if (u) {
  105279. let E = [rn.contextHash, u];
  105280. T = T ? [E].concat(T) : [E];
  105281. }
  105282. if ($ > 25) {
  105283. let E = [rn.lookAhead, $];
  105284. T = T ? [E].concat(T) : [E];
  105285. }
  105286. return new Vr(S, x, C, P, T);
  105287. }
  105288. function g(S, x) {
  105289. let C = s.fork(), P = 0, $ = 0, T = 0, E = C.end - i, M = { size: 0, start: 0, skip: 0 };
  105290. e: for (let R = C.pos - S; C.pos > R; ) {
  105291. let N = C.size;
  105292. if (C.id == x && N >= 0) {
  105293. M.size = P, M.start = $, M.skip = T, T += 4, P += 4, C.next();
  105294. continue;
  105295. }
  105296. let I = C.pos - N;
  105297. if (N < 0 || I < R || C.start < E)
  105298. break;
  105299. let B = C.id >= o ? 4 : 0, Q = C.start;
  105300. for (C.next(); C.pos > I; ) {
  105301. if (C.size < 0)
  105302. if (C.size == -3)
  105303. B += 4;
  105304. else
  105305. break e;
  105306. else C.id >= o && (B += 4);
  105307. C.next();
  105308. }
  105309. $ = Q, P += N, T += B;
  105310. }
  105311. return (x < 0 || P == S) && (M.size = P, M.start = $, M.skip = T), M.size > 4 ? M : void 0;
  105312. }
  105313. function m(S, x, C) {
  105314. let { id: P, start: $, end: T, size: E } = s;
  105315. if (s.next(), E >= 0 && P < o) {
  105316. let M = C;
  105317. if (E > 4) {
  105318. let R = s.pos - (E - 4);
  105319. for (; s.pos > R; )
  105320. C = m(S, x, C);
  105321. }
  105322. x[--C] = M, x[--C] = T - S, x[--C] = $ - S, x[--C] = P;
  105323. } else E == -3 ? u = P : E == -4 && (c = P);
  105324. return C;
  105325. }
  105326. let y = [], _ = [];
  105327. for (; s.pos > 0; )
  105328. f(t.start || 0, t.bufferStart || 0, y, _, -1, 0);
  105329. let O = (e = t.length) !== null && e !== void 0 ? e : y.length ? _[0] + y[0].length : 0;
  105330. return new Vr(l[t.topID], y.reverse(), _.reverse(), O);
  105331. }
  105332. const lJ = /* @__PURE__ */ new WeakMap();
  105333. function Rw(t, e) {
  105334. if (!t.isAnonymous || e instanceof $f || e.type != t)
  105335. return 1;
  105336. let n = lJ.get(e);
  105337. if (n == null) {
  105338. n = 1;
  105339. for (let r of e.children) {
  105340. if (r.type != t || !(r instanceof Vr)) {
  105341. n = 1;
  105342. break;
  105343. }
  105344. n += Rw(t, r);
  105345. }
  105346. lJ.set(e, n);
  105347. }
  105348. return n;
  105349. }
  105350. function hB(t, e, n, r, i, a, o, s, l) {
  105351. let u = 0;
  105352. for (let p = r; p < i; p++)
  105353. u += Rw(t, e[p]);
  105354. let c = Math.ceil(
  105355. u * 1.5 / 8
  105356. /* Balance.BranchFactor */
  105357. ), f = [], d = [];
  105358. function h(p, v, g, m, y) {
  105359. for (let _ = g; _ < m; ) {
  105360. let O = _, S = v[_], x = Rw(t, p[_]);
  105361. for (_++; _ < m; _++) {
  105362. let C = Rw(t, p[_]);
  105363. if (x + C >= c)
  105364. break;
  105365. x += C;
  105366. }
  105367. if (_ == O + 1) {
  105368. if (x > c) {
  105369. let C = p[O];
  105370. h(C.children, C.positions, 0, C.children.length, v[O] + y);
  105371. continue;
  105372. }
  105373. f.push(p[O]);
  105374. } else {
  105375. let C = v[_ - 1] + p[_ - 1].length - S;
  105376. f.push(hB(t, p, v, O, _, S, C, null, l));
  105377. }
  105378. d.push(S + y - a);
  105379. }
  105380. }
  105381. return h(e, n, r, i, 0), (s || l)(f, d, o);
  105382. }
  105383. class TCt {
  105384. constructor() {
  105385. this.map = /* @__PURE__ */ new WeakMap();
  105386. }
  105387. setBuffer(e, n, r) {
  105388. let i = this.map.get(e);
  105389. i || this.map.set(e, i = /* @__PURE__ */ new Map()), i.set(n, r);
  105390. }
  105391. getBuffer(e, n) {
  105392. let r = this.map.get(e);
  105393. return r && r.get(n);
  105394. }
  105395. /**
  105396. Set the value for this syntax node.
  105397. */
  105398. set(e, n) {
  105399. e instanceof Ml ? this.setBuffer(e.context.buffer, e.index, n) : e instanceof Ba && this.map.set(e.tree, n);
  105400. }
  105401. /**
  105402. Retrieve value for this syntax node, if it exists in the map.
  105403. */
  105404. get(e) {
  105405. return e instanceof Ml ? this.getBuffer(e.context.buffer, e.index) : e instanceof Ba ? this.map.get(e.tree) : void 0;
  105406. }
  105407. /**
  105408. Set the value for the node that a cursor currently points to.
  105409. */
  105410. cursorSet(e, n) {
  105411. e.buffer ? this.setBuffer(e.buffer.buffer, e.index, n) : this.map.set(e.tree, n);
  105412. }
  105413. /**
  105414. Retrieve the value for the node that a cursor currently points
  105415. to.
  105416. */
  105417. cursorGet(e) {
  105418. return e.buffer ? this.getBuffer(e.buffer.buffer, e.index) : this.map.get(e.tree);
  105419. }
  105420. }
  105421. class Eh {
  105422. /**
  105423. Construct a tree fragment. You'll usually want to use
  105424. [`addTree`](#common.TreeFragment^addTree) and
  105425. [`applyChanges`](#common.TreeFragment^applyChanges) instead of
  105426. calling this directly.
  105427. */
  105428. constructor(e, n, r, i, a = !1, o = !1) {
  105429. this.from = e, this.to = n, this.tree = r, this.offset = i, this.open = (a ? 1 : 0) | (o ? 2 : 0);
  105430. }
  105431. /**
  105432. Whether the start of the fragment represents the start of a
  105433. parse, or the end of a change. (In the second case, it may not
  105434. be safe to reuse some nodes at the start, depending on the
  105435. parsing algorithm.)
  105436. */
  105437. get openStart() {
  105438. return (this.open & 1) > 0;
  105439. }
  105440. /**
  105441. Whether the end of the fragment represents the end of a
  105442. full-document parse, or the start of a change.
  105443. */
  105444. get openEnd() {
  105445. return (this.open & 2) > 0;
  105446. }
  105447. /**
  105448. Create a set of fragments from a freshly parsed tree, or update
  105449. an existing set of fragments by replacing the ones that overlap
  105450. with a tree with content from the new tree. When `partial` is
  105451. true, the parse is treated as incomplete, and the resulting
  105452. fragment has [`openEnd`](#common.TreeFragment.openEnd) set to
  105453. true.
  105454. */
  105455. static addTree(e, n = [], r = !1) {
  105456. let i = [new Eh(0, e.length, e, 0, !1, r)];
  105457. for (let a of n)
  105458. a.to > e.length && i.push(a);
  105459. return i;
  105460. }
  105461. /**
  105462. Apply a set of edits to an array of fragments, removing or
  105463. splitting fragments as necessary to remove edited ranges, and
  105464. adjusting offsets for fragments that moved.
  105465. */
  105466. static applyChanges(e, n, r = 128) {
  105467. if (!n.length)
  105468. return e;
  105469. let i = [], a = 1, o = e.length ? e[0] : null;
  105470. for (let s = 0, l = 0, u = 0; ; s++) {
  105471. let c = s < n.length ? n[s] : null, f = c ? c.fromA : 1e9;
  105472. if (f - l >= r)
  105473. for (; o && o.from < f; ) {
  105474. let d = o;
  105475. if (l >= d.from || f <= d.to || u) {
  105476. let h = Math.max(d.from, l) - u, p = Math.min(d.to, f) - u;
  105477. d = h >= p ? null : new Eh(h, p, d.tree, d.offset + u, s > 0, !!c);
  105478. }
  105479. if (d && i.push(d), o.to > f)
  105480. break;
  105481. o = a < e.length ? e[a++] : null;
  105482. }
  105483. if (!c)
  105484. break;
  105485. l = c.toA, u = c.toA - c.toB;
  105486. }
  105487. return i;
  105488. }
  105489. }
  105490. class nge {
  105491. /**
  105492. Start a parse, returning a [partial parse](#common.PartialParse)
  105493. object. [`fragments`](#common.TreeFragment) can be passed in to
  105494. make the parse incremental.
  105495. By default, the entire input is parsed. You can pass `ranges`,
  105496. which should be a sorted array of non-empty, non-overlapping
  105497. ranges, to parse only those ranges. The tree returned in that
  105498. case will start at `ranges[0].from`.
  105499. */
  105500. startParse(e, n, r) {
  105501. return typeof e == "string" && (e = new PCt(e)), r = r ? r.length ? r.map((i) => new fD(i.from, i.to)) : [new fD(0, 0)] : [new fD(0, e.length)], this.createParse(e, n || [], r);
  105502. }
  105503. /**
  105504. Run a full parse, returning the resulting tree.
  105505. */
  105506. parse(e, n, r) {
  105507. let i = this.startParse(e, n, r);
  105508. for (; ; ) {
  105509. let a = i.advance();
  105510. if (a)
  105511. return a;
  105512. }
  105513. }
  105514. }
  105515. class PCt {
  105516. constructor(e) {
  105517. this.string = e;
  105518. }
  105519. get length() {
  105520. return this.string.length;
  105521. }
  105522. chunk(e) {
  105523. return this.string.slice(e);
  105524. }
  105525. get lineChunks() {
  105526. return !1;
  105527. }
  105528. read(e, n) {
  105529. return this.string.slice(e, n);
  105530. }
  105531. }
  105532. new rn({ perNode: !0 });
  105533. let $Ct = 0;
  105534. class Sl {
  105535. /**
  105536. @internal
  105537. */
  105538. constructor(e, n, r) {
  105539. this.set = e, this.base = n, this.modified = r, this.id = $Ct++;
  105540. }
  105541. /**
  105542. Define a new tag. If `parent` is given, the tag is treated as a
  105543. sub-tag of that parent, and
  105544. [highlighters](#highlight.tagHighlighter) that don't mention
  105545. this tag will try to fall back to the parent tag (or grandparent
  105546. tag, etc).
  105547. */
  105548. static define(e) {
  105549. if (e != null && e.base)
  105550. throw new Error("Can not derive from a modified tag");
  105551. let n = new Sl([], null, []);
  105552. if (n.set.push(n), e)
  105553. for (let r of e.set)
  105554. n.set.push(r);
  105555. return n;
  105556. }
  105557. /**
  105558. Define a tag _modifier_, which is a function that, given a tag,
  105559. will return a tag that is a subtag of the original. Applying the
  105560. same modifier to a twice tag will return the same value (`m1(t1)
  105561. == m1(t1)`) and applying multiple modifiers will, regardless or
  105562. order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
  105563. When multiple modifiers are applied to a given base tag, each
  105564. smaller set of modifiers is registered as a parent, so that for
  105565. example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
  105566. `m1(m3(t1)`, and so on.
  105567. */
  105568. static defineModifier() {
  105569. let e = new RT();
  105570. return (n) => n.modified.indexOf(e) > -1 ? n : RT.get(n.base || n, n.modified.concat(e).sort((r, i) => r.id - i.id));
  105571. }
  105572. }
  105573. let ACt = 0;
  105574. class RT {
  105575. constructor() {
  105576. this.instances = [], this.id = ACt++;
  105577. }
  105578. static get(e, n) {
  105579. if (!n.length)
  105580. return e;
  105581. let r = n[0].instances.find((s) => s.base == e && ECt(n, s.modified));
  105582. if (r)
  105583. return r;
  105584. let i = [], a = new Sl(i, e, n);
  105585. for (let s of n)
  105586. s.instances.push(a);
  105587. let o = MCt(n);
  105588. for (let s of e.set)
  105589. if (!s.modified.length)
  105590. for (let l of o)
  105591. i.push(RT.get(s, l));
  105592. return a;
  105593. }
  105594. }
  105595. function ECt(t, e) {
  105596. return t.length == e.length && t.every((n, r) => n == e[r]);
  105597. }
  105598. function MCt(t) {
  105599. let e = [[]];
  105600. for (let n = 0; n < t.length; n++)
  105601. for (let r = 0, i = e.length; r < i; r++)
  105602. e.push(e[r].concat(t[n]));
  105603. return e.sort((n, r) => r.length - n.length);
  105604. }
  105605. function pB(t) {
  105606. let e = /* @__PURE__ */ Object.create(null);
  105607. for (let n in t) {
  105608. let r = t[n];
  105609. Array.isArray(r) || (r = [r]);
  105610. for (let i of n.split(" "))
  105611. if (i) {
  105612. let a = [], o = 2, s = i;
  105613. for (let f = 0; ; ) {
  105614. if (s == "..." && f > 0 && f + 3 == i.length) {
  105615. o = 1;
  105616. break;
  105617. }
  105618. let d = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);
  105619. if (!d)
  105620. throw new RangeError("Invalid path: " + i);
  105621. if (a.push(d[0] == "*" ? "" : d[0][0] == '"' ? JSON.parse(d[0]) : d[0]), f += d[0].length, f == i.length)
  105622. break;
  105623. let h = i[f++];
  105624. if (f == i.length && h == "!") {
  105625. o = 0;
  105626. break;
  105627. }
  105628. if (h != "/")
  105629. throw new RangeError("Invalid path: " + i);
  105630. s = i.slice(f);
  105631. }
  105632. let l = a.length - 1, u = a[l];
  105633. if (!u)
  105634. throw new RangeError("Invalid path: " + i);
  105635. let c = new kT(r, o, l > 0 ? a.slice(0, l) : null);
  105636. e[u] = c.sort(e[u]);
  105637. }
  105638. }
  105639. return rge.add(e);
  105640. }
  105641. const rge = new rn();
  105642. class kT {
  105643. constructor(e, n, r, i) {
  105644. this.tags = e, this.mode = n, this.context = r, this.next = i;
  105645. }
  105646. get opaque() {
  105647. return this.mode == 0;
  105648. }
  105649. get inherit() {
  105650. return this.mode == 1;
  105651. }
  105652. sort(e) {
  105653. return !e || e.depth < this.depth ? (this.next = e, this) : (e.next = this.sort(e.next), e);
  105654. }
  105655. get depth() {
  105656. return this.context ? this.context.length : 0;
  105657. }
  105658. }
  105659. kT.empty = new kT([], 2, null);
  105660. function ige(t, e) {
  105661. let n = /* @__PURE__ */ Object.create(null);
  105662. for (let a of t)
  105663. if (!Array.isArray(a.tag))
  105664. n[a.tag.id] = a.class;
  105665. else
  105666. for (let o of a.tag)
  105667. n[o.id] = a.class;
  105668. let { scope: r, all: i = null } = e || {};
  105669. return {
  105670. style: (a) => {
  105671. let o = i;
  105672. for (let s of a)
  105673. for (let l of s.set) {
  105674. let u = n[l.id];
  105675. if (u) {
  105676. o = o ? o + " " + u : u;
  105677. break;
  105678. }
  105679. }
  105680. return o;
  105681. },
  105682. scope: r
  105683. };
  105684. }
  105685. function ICt(t, e) {
  105686. let n = null;
  105687. for (let r of t) {
  105688. let i = r.style(e);
  105689. i && (n = n ? n + " " + i : i);
  105690. }
  105691. return n;
  105692. }
  105693. function DCt(t, e, n, r = 0, i = t.length) {
  105694. let a = new RCt(r, Array.isArray(e) ? e : [e], n);
  105695. a.highlightRange(t.cursor(), r, i, "", a.highlighters), a.flush(i);
  105696. }
  105697. class RCt {
  105698. constructor(e, n, r) {
  105699. this.at = e, this.highlighters = n, this.span = r, this.class = "";
  105700. }
  105701. startSpan(e, n) {
  105702. n != this.class && (this.flush(e), e > this.at && (this.at = e), this.class = n);
  105703. }
  105704. flush(e) {
  105705. e > this.at && this.class && this.span(this.at, e, this.class);
  105706. }
  105707. highlightRange(e, n, r, i, a) {
  105708. let { type: o, from: s, to: l } = e;
  105709. if (s >= r || l <= n)
  105710. return;
  105711. o.isTop && (a = this.highlighters.filter((h) => !h.scope || h.scope(o)));
  105712. let u = i, c = kCt(e) || kT.empty, f = ICt(a, c.tags);
  105713. if (f && (u && (u += " "), u += f, c.mode == 1 && (i += (i ? " " : "") + f)), this.startSpan(Math.max(n, s), u), c.opaque)
  105714. return;
  105715. let d = e.tree && e.tree.prop(rn.mounted);
  105716. if (d && d.overlay) {
  105717. let h = e.node.enter(d.overlay[0].from + s, 1), p = this.highlighters.filter((g) => !g.scope || g.scope(d.tree.type)), v = e.firstChild();
  105718. for (let g = 0, m = s; ; g++) {
  105719. let y = g < d.overlay.length ? d.overlay[g] : null, _ = y ? y.from + s : l, O = Math.max(n, m), S = Math.min(r, _);
  105720. if (O < S && v)
  105721. for (; e.from < S && (this.highlightRange(e, O, S, i, a), this.startSpan(Math.min(S, e.to), u), !(e.to >= _ || !e.nextSibling())); )
  105722. ;
  105723. if (!y || _ > r)
  105724. break;
  105725. m = y.to + s, m > n && (this.highlightRange(h.cursor(), Math.max(n, y.from + s), Math.min(r, m), "", p), this.startSpan(Math.min(r, m), u));
  105726. }
  105727. v && e.parent();
  105728. } else if (e.firstChild()) {
  105729. d && (i = "");
  105730. do
  105731. if (!(e.to <= n)) {
  105732. if (e.from >= r)
  105733. break;
  105734. this.highlightRange(e, n, r, i, a), this.startSpan(Math.min(r, e.to), u);
  105735. }
  105736. while (e.nextSibling());
  105737. e.parent();
  105738. }
  105739. }
  105740. }
  105741. function kCt(t) {
  105742. let e = t.type.prop(rge);
  105743. for (; e && e.context && !t.matchContext(e.context); )
  105744. e = e.next;
  105745. return e || null;
  105746. }
  105747. const Xe = Sl.define, _x = Xe(), Dc = Xe(), uJ = Xe(Dc), cJ = Xe(Dc), Rc = Xe(), Ox = Xe(Rc), dD = Xe(Rc), yl = Xe(), Dd = Xe(yl), hl = Xe(), pl = Xe(), k4 = Xe(), ry = Xe(k4), Sx = Xe(), ce = {
  105748. /**
  105749. A comment.
  105750. */
  105751. comment: _x,
  105752. /**
  105753. A line [comment](#highlight.tags.comment).
  105754. */
  105755. lineComment: Xe(_x),
  105756. /**
  105757. A block [comment](#highlight.tags.comment).
  105758. */
  105759. blockComment: Xe(_x),
  105760. /**
  105761. A documentation [comment](#highlight.tags.comment).
  105762. */
  105763. docComment: Xe(_x),
  105764. /**
  105765. Any kind of identifier.
  105766. */
  105767. name: Dc,
  105768. /**
  105769. The [name](#highlight.tags.name) of a variable.
  105770. */
  105771. variableName: Xe(Dc),
  105772. /**
  105773. A type [name](#highlight.tags.name).
  105774. */
  105775. typeName: uJ,
  105776. /**
  105777. A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
  105778. */
  105779. tagName: Xe(uJ),
  105780. /**
  105781. A property or field [name](#highlight.tags.name).
  105782. */
  105783. propertyName: cJ,
  105784. /**
  105785. An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
  105786. */
  105787. attributeName: Xe(cJ),
  105788. /**
  105789. The [name](#highlight.tags.name) of a class.
  105790. */
  105791. className: Xe(Dc),
  105792. /**
  105793. A label [name](#highlight.tags.name).
  105794. */
  105795. labelName: Xe(Dc),
  105796. /**
  105797. A namespace [name](#highlight.tags.name).
  105798. */
  105799. namespace: Xe(Dc),
  105800. /**
  105801. The [name](#highlight.tags.name) of a macro.
  105802. */
  105803. macroName: Xe(Dc),
  105804. /**
  105805. A literal value.
  105806. */
  105807. literal: Rc,
  105808. /**
  105809. A string [literal](#highlight.tags.literal).
  105810. */
  105811. string: Ox,
  105812. /**
  105813. A documentation [string](#highlight.tags.string).
  105814. */
  105815. docString: Xe(Ox),
  105816. /**
  105817. A character literal (subtag of [string](#highlight.tags.string)).
  105818. */
  105819. character: Xe(Ox),
  105820. /**
  105821. An attribute value (subtag of [string](#highlight.tags.string)).
  105822. */
  105823. attributeValue: Xe(Ox),
  105824. /**
  105825. A number [literal](#highlight.tags.literal).
  105826. */
  105827. number: dD,
  105828. /**
  105829. An integer [number](#highlight.tags.number) literal.
  105830. */
  105831. integer: Xe(dD),
  105832. /**
  105833. A floating-point [number](#highlight.tags.number) literal.
  105834. */
  105835. float: Xe(dD),
  105836. /**
  105837. A boolean [literal](#highlight.tags.literal).
  105838. */
  105839. bool: Xe(Rc),
  105840. /**
  105841. Regular expression [literal](#highlight.tags.literal).
  105842. */
  105843. regexp: Xe(Rc),
  105844. /**
  105845. An escape [literal](#highlight.tags.literal), for example a
  105846. backslash escape in a string.
  105847. */
  105848. escape: Xe(Rc),
  105849. /**
  105850. A color [literal](#highlight.tags.literal).
  105851. */
  105852. color: Xe(Rc),
  105853. /**
  105854. A URL [literal](#highlight.tags.literal).
  105855. */
  105856. url: Xe(Rc),
  105857. /**
  105858. A language keyword.
  105859. */
  105860. keyword: hl,
  105861. /**
  105862. The [keyword](#highlight.tags.keyword) for the self or this
  105863. object.
  105864. */
  105865. self: Xe(hl),
  105866. /**
  105867. The [keyword](#highlight.tags.keyword) for null.
  105868. */
  105869. null: Xe(hl),
  105870. /**
  105871. A [keyword](#highlight.tags.keyword) denoting some atomic value.
  105872. */
  105873. atom: Xe(hl),
  105874. /**
  105875. A [keyword](#highlight.tags.keyword) that represents a unit.
  105876. */
  105877. unit: Xe(hl),
  105878. /**
  105879. A modifier [keyword](#highlight.tags.keyword).
  105880. */
  105881. modifier: Xe(hl),
  105882. /**
  105883. A [keyword](#highlight.tags.keyword) that acts as an operator.
  105884. */
  105885. operatorKeyword: Xe(hl),
  105886. /**
  105887. A control-flow related [keyword](#highlight.tags.keyword).
  105888. */
  105889. controlKeyword: Xe(hl),
  105890. /**
  105891. A [keyword](#highlight.tags.keyword) that defines something.
  105892. */
  105893. definitionKeyword: Xe(hl),
  105894. /**
  105895. A [keyword](#highlight.tags.keyword) related to defining or
  105896. interfacing with modules.
  105897. */
  105898. moduleKeyword: Xe(hl),
  105899. /**
  105900. An operator.
  105901. */
  105902. operator: pl,
  105903. /**
  105904. An [operator](#highlight.tags.operator) that dereferences something.
  105905. */
  105906. derefOperator: Xe(pl),
  105907. /**
  105908. Arithmetic-related [operator](#highlight.tags.operator).
  105909. */
  105910. arithmeticOperator: Xe(pl),
  105911. /**
  105912. Logical [operator](#highlight.tags.operator).
  105913. */
  105914. logicOperator: Xe(pl),
  105915. /**
  105916. Bit [operator](#highlight.tags.operator).
  105917. */
  105918. bitwiseOperator: Xe(pl),
  105919. /**
  105920. Comparison [operator](#highlight.tags.operator).
  105921. */
  105922. compareOperator: Xe(pl),
  105923. /**
  105924. [Operator](#highlight.tags.operator) that updates its operand.
  105925. */
  105926. updateOperator: Xe(pl),
  105927. /**
  105928. [Operator](#highlight.tags.operator) that defines something.
  105929. */
  105930. definitionOperator: Xe(pl),
  105931. /**
  105932. Type-related [operator](#highlight.tags.operator).
  105933. */
  105934. typeOperator: Xe(pl),
  105935. /**
  105936. Control-flow [operator](#highlight.tags.operator).
  105937. */
  105938. controlOperator: Xe(pl),
  105939. /**
  105940. Program or markup punctuation.
  105941. */
  105942. punctuation: k4,
  105943. /**
  105944. [Punctuation](#highlight.tags.punctuation) that separates
  105945. things.
  105946. */
  105947. separator: Xe(k4),
  105948. /**
  105949. Bracket-style [punctuation](#highlight.tags.punctuation).
  105950. */
  105951. bracket: ry,
  105952. /**
  105953. Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
  105954. tokens).
  105955. */
  105956. angleBracket: Xe(ry),
  105957. /**
  105958. Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
  105959. tokens).
  105960. */
  105961. squareBracket: Xe(ry),
  105962. /**
  105963. Parentheses (usually `(` and `)` tokens). Subtag of
  105964. [bracket](#highlight.tags.bracket).
  105965. */
  105966. paren: Xe(ry),
  105967. /**
  105968. Braces (usually `{` and `}` tokens). Subtag of
  105969. [bracket](#highlight.tags.bracket).
  105970. */
  105971. brace: Xe(ry),
  105972. /**
  105973. Content, for example plain text in XML or markup documents.
  105974. */
  105975. content: yl,
  105976. /**
  105977. [Content](#highlight.tags.content) that represents a heading.
  105978. */
  105979. heading: Dd,
  105980. /**
  105981. A level 1 [heading](#highlight.tags.heading).
  105982. */
  105983. heading1: Xe(Dd),
  105984. /**
  105985. A level 2 [heading](#highlight.tags.heading).
  105986. */
  105987. heading2: Xe(Dd),
  105988. /**
  105989. A level 3 [heading](#highlight.tags.heading).
  105990. */
  105991. heading3: Xe(Dd),
  105992. /**
  105993. A level 4 [heading](#highlight.tags.heading).
  105994. */
  105995. heading4: Xe(Dd),
  105996. /**
  105997. A level 5 [heading](#highlight.tags.heading).
  105998. */
  105999. heading5: Xe(Dd),
  106000. /**
  106001. A level 6 [heading](#highlight.tags.heading).
  106002. */
  106003. heading6: Xe(Dd),
  106004. /**
  106005. A prose separator (such as a horizontal rule).
  106006. */
  106007. contentSeparator: Xe(yl),
  106008. /**
  106009. [Content](#highlight.tags.content) that represents a list.
  106010. */
  106011. list: Xe(yl),
  106012. /**
  106013. [Content](#highlight.tags.content) that represents a quote.
  106014. */
  106015. quote: Xe(yl),
  106016. /**
  106017. [Content](#highlight.tags.content) that is emphasized.
  106018. */
  106019. emphasis: Xe(yl),
  106020. /**
  106021. [Content](#highlight.tags.content) that is styled strong.
  106022. */
  106023. strong: Xe(yl),
  106024. /**
  106025. [Content](#highlight.tags.content) that is part of a link.
  106026. */
  106027. link: Xe(yl),
  106028. /**
  106029. [Content](#highlight.tags.content) that is styled as code or
  106030. monospace.
  106031. */
  106032. monospace: Xe(yl),
  106033. /**
  106034. [Content](#highlight.tags.content) that has a strike-through
  106035. style.
  106036. */
  106037. strikethrough: Xe(yl),
  106038. /**
  106039. Inserted text in a change-tracking format.
  106040. */
  106041. inserted: Xe(),
  106042. /**
  106043. Deleted text.
  106044. */
  106045. deleted: Xe(),
  106046. /**
  106047. Changed text.
  106048. */
  106049. changed: Xe(),
  106050. /**
  106051. An invalid or unsyntactic element.
  106052. */
  106053. invalid: Xe(),
  106054. /**
  106055. Metadata or meta-instruction.
  106056. */
  106057. meta: Sx,
  106058. /**
  106059. [Metadata](#highlight.tags.meta) that applies to the entire
  106060. document.
  106061. */
  106062. documentMeta: Xe(Sx),
  106063. /**
  106064. [Metadata](#highlight.tags.meta) that annotates or adds
  106065. attributes to a given syntactic element.
  106066. */
  106067. annotation: Xe(Sx),
  106068. /**
  106069. Processing instruction or preprocessor directive. Subtag of
  106070. [meta](#highlight.tags.meta).
  106071. */
  106072. processingInstruction: Xe(Sx),
  106073. /**
  106074. [Modifier](#highlight.Tag^defineModifier) that indicates that a
  106075. given element is being defined. Expected to be used with the
  106076. various [name](#highlight.tags.name) tags.
  106077. */
  106078. definition: Sl.defineModifier(),
  106079. /**
  106080. [Modifier](#highlight.Tag^defineModifier) that indicates that
  106081. something is constant. Mostly expected to be used with
  106082. [variable names](#highlight.tags.variableName).
  106083. */
  106084. constant: Sl.defineModifier(),
  106085. /**
  106086. [Modifier](#highlight.Tag^defineModifier) used to indicate that
  106087. a [variable](#highlight.tags.variableName) or [property
  106088. name](#highlight.tags.propertyName) is being called or defined
  106089. as a function.
  106090. */
  106091. function: Sl.defineModifier(),
  106092. /**
  106093. [Modifier](#highlight.Tag^defineModifier) that can be applied to
  106094. [names](#highlight.tags.name) to indicate that they belong to
  106095. the language's standard environment.
  106096. */
  106097. standard: Sl.defineModifier(),
  106098. /**
  106099. [Modifier](#highlight.Tag^defineModifier) that indicates a given
  106100. [names](#highlight.tags.name) is local to some scope.
  106101. */
  106102. local: Sl.defineModifier(),
  106103. /**
  106104. A generic variant [modifier](#highlight.Tag^defineModifier) that
  106105. can be used to tag language-specific alternative variants of
  106106. some common tag. It is recommended for themes to define special
  106107. forms of at least the [string](#highlight.tags.string) and
  106108. [variable name](#highlight.tags.variableName) tags, since those
  106109. come up a lot.
  106110. */
  106111. special: Sl.defineModifier()
  106112. };
  106113. ige([
  106114. { tag: ce.link, class: "tok-link" },
  106115. { tag: ce.heading, class: "tok-heading" },
  106116. { tag: ce.emphasis, class: "tok-emphasis" },
  106117. { tag: ce.strong, class: "tok-strong" },
  106118. { tag: ce.keyword, class: "tok-keyword" },
  106119. { tag: ce.atom, class: "tok-atom" },
  106120. { tag: ce.bool, class: "tok-bool" },
  106121. { tag: ce.url, class: "tok-url" },
  106122. { tag: ce.labelName, class: "tok-labelName" },
  106123. { tag: ce.inserted, class: "tok-inserted" },
  106124. { tag: ce.deleted, class: "tok-deleted" },
  106125. { tag: ce.literal, class: "tok-literal" },
  106126. { tag: ce.string, class: "tok-string" },
  106127. { tag: ce.number, class: "tok-number" },
  106128. { tag: [ce.regexp, ce.escape, ce.special(ce.string)], class: "tok-string2" },
  106129. { tag: ce.variableName, class: "tok-variableName" },
  106130. { tag: ce.local(ce.variableName), class: "tok-variableName tok-local" },
  106131. { tag: ce.definition(ce.variableName), class: "tok-variableName tok-definition" },
  106132. { tag: ce.special(ce.variableName), class: "tok-variableName2" },
  106133. { tag: ce.definition(ce.propertyName), class: "tok-propertyName tok-definition" },
  106134. { tag: ce.typeName, class: "tok-typeName" },
  106135. { tag: ce.namespace, class: "tok-namespace" },
  106136. { tag: ce.className, class: "tok-className" },
  106137. { tag: ce.macroName, class: "tok-macroName" },
  106138. { tag: ce.propertyName, class: "tok-propertyName" },
  106139. { tag: ce.operator, class: "tok-operator" },
  106140. { tag: ce.comment, class: "tok-comment" },
  106141. { tag: ce.meta, class: "tok-meta" },
  106142. { tag: ce.invalid, class: "tok-invalid" },
  106143. { tag: ce.punctuation, class: "tok-punctuation" }
  106144. ]);
  106145. var hD;
  106146. const Nv = /* @__PURE__ */ new rn();
  106147. function age(t) {
  106148. return ut.define({
  106149. combine: t ? (e) => e.concat(t) : void 0
  106150. });
  106151. }
  106152. const vB = /* @__PURE__ */ new rn();
  106153. class Ds {
  106154. /**
  106155. Construct a language object. If you need to invoke this
  106156. directly, first define a data facet with
  106157. [`defineLanguageFacet`](https://codemirror.net/6/docs/ref/#language.defineLanguageFacet), and then
  106158. configure your parser to [attach](https://codemirror.net/6/docs/ref/#language.languageDataProp) it
  106159. to the language's outer syntax node.
  106160. */
  106161. constructor(e, n, r = [], i = "") {
  106162. this.data = e, this.name = i, cn.prototype.hasOwnProperty("tree") || Object.defineProperty(cn.prototype, "tree", { get() {
  106163. return ni(this);
  106164. } }), this.parser = n, this.extension = [
  106165. Af.of(this),
  106166. cn.languageData.of((a, o, s) => {
  106167. let l = fJ(a, o, s), u = l.type.prop(Nv);
  106168. if (!u)
  106169. return [];
  106170. let c = a.facet(u), f = l.type.prop(vB);
  106171. if (f) {
  106172. let d = l.resolve(o - l.from, s);
  106173. for (let h of f)
  106174. if (h.test(d, a)) {
  106175. let p = a.facet(h.facet);
  106176. return h.type == "replace" ? p : p.concat(c);
  106177. }
  106178. }
  106179. return c;
  106180. })
  106181. ].concat(r);
  106182. }
  106183. /**
  106184. Query whether this language is active at the given position.
  106185. */
  106186. isActiveAt(e, n, r = -1) {
  106187. return fJ(e, n, r).type.prop(Nv) == this.data;
  106188. }
  106189. /**
  106190. Find the document regions that were parsed using this language.
  106191. The returned regions will _include_ any nested languages rooted
  106192. in this language, when those exist.
  106193. */
  106194. findRegions(e) {
  106195. let n = e.facet(Af);
  106196. if ((n == null ? void 0 : n.data) == this.data)
  106197. return [{ from: 0, to: e.doc.length }];
  106198. if (!n || !n.allowsNesting)
  106199. return [];
  106200. let r = [], i = (a, o) => {
  106201. if (a.prop(Nv) == this.data) {
  106202. r.push({ from: o, to: o + a.length });
  106203. return;
  106204. }
  106205. let s = a.prop(rn.mounted);
  106206. if (s) {
  106207. if (s.tree.prop(Nv) == this.data) {
  106208. if (s.overlay)
  106209. for (let l of s.overlay)
  106210. r.push({ from: l.from + o, to: l.to + o });
  106211. else
  106212. r.push({ from: o, to: o + a.length });
  106213. return;
  106214. } else if (s.overlay) {
  106215. let l = r.length;
  106216. if (i(s.tree, s.overlay[0].from + o), r.length > l)
  106217. return;
  106218. }
  106219. }
  106220. for (let l = 0; l < a.children.length; l++) {
  106221. let u = a.children[l];
  106222. u instanceof Vr && i(u, a.positions[l] + o);
  106223. }
  106224. };
  106225. return i(ni(e), 0), r;
  106226. }
  106227. /**
  106228. Indicates whether this language allows nested languages. The
  106229. default implementation returns true.
  106230. */
  106231. get allowsNesting() {
  106232. return !0;
  106233. }
  106234. }
  106235. Ds.setState = /* @__PURE__ */ zt.define();
  106236. function fJ(t, e, n) {
  106237. let r = t.facet(Af), i = ni(t).topNode;
  106238. if (!r || r.allowsNesting)
  106239. for (let a = i; a; a = a.enter(e, n, Ur.ExcludeBuffers))
  106240. a.type.isTop && (i = a);
  106241. return i;
  106242. }
  106243. class w_ extends Ds {
  106244. constructor(e, n, r) {
  106245. super(e, n, [], r), this.parser = n;
  106246. }
  106247. /**
  106248. Define a language from a parser.
  106249. */
  106250. static define(e) {
  106251. let n = age(e.languageData);
  106252. return new w_(n, e.parser.configure({
  106253. props: [Nv.add((r) => r.isTop ? n : void 0)]
  106254. }), e.name);
  106255. }
  106256. /**
  106257. Create a new instance of this language with a reconfigured
  106258. version of its parser and optionally a new name.
  106259. */
  106260. configure(e, n) {
  106261. return new w_(this.data, this.parser.configure(e), n || this.name);
  106262. }
  106263. get allowsNesting() {
  106264. return this.parser.hasWrappers();
  106265. }
  106266. }
  106267. function ni(t) {
  106268. let e = t.field(Ds.state, !1);
  106269. return e ? e.tree : Vr.empty;
  106270. }
  106271. class LCt {
  106272. /**
  106273. Create an input object for the given document.
  106274. */
  106275. constructor(e) {
  106276. this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter();
  106277. }
  106278. get length() {
  106279. return this.doc.length;
  106280. }
  106281. syncTo(e) {
  106282. return this.string = this.cursor.next(e - this.cursorPos).value, this.cursorPos = e + this.string.length, this.cursorPos - this.string.length;
  106283. }
  106284. chunk(e) {
  106285. return this.syncTo(e), this.string;
  106286. }
  106287. get lineChunks() {
  106288. return !0;
  106289. }
  106290. read(e, n) {
  106291. let r = this.cursorPos - this.string.length;
  106292. return e < r || n >= this.cursorPos ? this.doc.sliceString(e, n) : this.string.slice(e - r, n - r);
  106293. }
  106294. }
  106295. let iy = null;
  106296. class LT {
  106297. constructor(e, n, r = [], i, a, o, s, l) {
  106298. this.parser = e, this.state = n, this.fragments = r, this.tree = i, this.treeLen = a, this.viewport = o, this.skipped = s, this.scheduleOn = l, this.parse = null, this.tempSkipped = [];
  106299. }
  106300. /**
  106301. @internal
  106302. */
  106303. static create(e, n, r) {
  106304. return new LT(e, n, [], Vr.empty, 0, r, [], null);
  106305. }
  106306. startParse() {
  106307. return this.parser.startParse(new LCt(this.state.doc), this.fragments);
  106308. }
  106309. /**
  106310. @internal
  106311. */
  106312. work(e, n) {
  106313. return n != null && n >= this.state.doc.length && (n = void 0), this.tree != Vr.empty && this.isDone(n ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
  106314. var r;
  106315. if (typeof e == "number") {
  106316. let i = Date.now() + e;
  106317. e = () => Date.now() > i;
  106318. }
  106319. for (this.parse || (this.parse = this.startParse()), n != null && (this.parse.stoppedAt == null || this.parse.stoppedAt > n) && n < this.state.doc.length && this.parse.stopAt(n); ; ) {
  106320. let i = this.parse.advance();
  106321. if (i)
  106322. if (this.fragments = this.withoutTempSkipped(Eh.addTree(i, this.fragments, this.parse.stoppedAt != null)), this.treeLen = (r = this.parse.stoppedAt) !== null && r !== void 0 ? r : this.state.doc.length, this.tree = i, this.parse = null, this.treeLen < (n ?? this.state.doc.length))
  106323. this.parse = this.startParse();
  106324. else
  106325. return !0;
  106326. if (e())
  106327. return !1;
  106328. }
  106329. });
  106330. }
  106331. /**
  106332. @internal
  106333. */
  106334. takeTree() {
  106335. let e, n;
  106336. this.parse && (e = this.parse.parsedPos) >= this.treeLen && ((this.parse.stoppedAt == null || this.parse.stoppedAt > e) && this.parse.stopAt(e), this.withContext(() => {
  106337. for (; !(n = this.parse.advance()); )
  106338. ;
  106339. }), this.treeLen = e, this.tree = n, this.fragments = this.withoutTempSkipped(Eh.addTree(this.tree, this.fragments, !0)), this.parse = null);
  106340. }
  106341. withContext(e) {
  106342. let n = iy;
  106343. iy = this;
  106344. try {
  106345. return e();
  106346. } finally {
  106347. iy = n;
  106348. }
  106349. }
  106350. withoutTempSkipped(e) {
  106351. for (let n; n = this.tempSkipped.pop(); )
  106352. e = dJ(e, n.from, n.to);
  106353. return e;
  106354. }
  106355. /**
  106356. @internal
  106357. */
  106358. changes(e, n) {
  106359. let { fragments: r, tree: i, treeLen: a, viewport: o, skipped: s } = this;
  106360. if (this.takeTree(), !e.empty) {
  106361. let l = [];
  106362. if (e.iterChangedRanges((u, c, f, d) => l.push({ fromA: u, toA: c, fromB: f, toB: d })), r = Eh.applyChanges(r, l), i = Vr.empty, a = 0, o = { from: e.mapPos(o.from, -1), to: e.mapPos(o.to, 1) }, this.skipped.length) {
  106363. s = [];
  106364. for (let u of this.skipped) {
  106365. let c = e.mapPos(u.from, 1), f = e.mapPos(u.to, -1);
  106366. c < f && s.push({ from: c, to: f });
  106367. }
  106368. }
  106369. }
  106370. return new LT(this.parser, n, r, i, a, o, s, this.scheduleOn);
  106371. }
  106372. /**
  106373. @internal
  106374. */
  106375. updateViewport(e) {
  106376. if (this.viewport.from == e.from && this.viewport.to == e.to)
  106377. return !1;
  106378. this.viewport = e;
  106379. let n = this.skipped.length;
  106380. for (let r = 0; r < this.skipped.length; r++) {
  106381. let { from: i, to: a } = this.skipped[r];
  106382. i < e.to && a > e.from && (this.fragments = dJ(this.fragments, i, a), this.skipped.splice(r--, 1));
  106383. }
  106384. return this.skipped.length >= n ? !1 : (this.reset(), !0);
  106385. }
  106386. /**
  106387. @internal
  106388. */
  106389. reset() {
  106390. this.parse && (this.takeTree(), this.parse = null);
  106391. }
  106392. /**
  106393. Notify the parse scheduler that the given region was skipped
  106394. because it wasn't in view, and the parse should be restarted
  106395. when it comes into view.
  106396. */
  106397. skipUntilInView(e, n) {
  106398. this.skipped.push({ from: e, to: n });
  106399. }
  106400. /**
  106401. Returns a parser intended to be used as placeholder when
  106402. asynchronously loading a nested parser. It'll skip its input and
  106403. mark it as not-really-parsed, so that the next update will parse
  106404. it again.
  106405. When `until` is given, a reparse will be scheduled when that
  106406. promise resolves.
  106407. */
  106408. static getSkippingParser(e) {
  106409. return new class extends nge {
  106410. createParse(n, r, i) {
  106411. let a = i[0].from, o = i[i.length - 1].to;
  106412. return {
  106413. parsedPos: a,
  106414. advance() {
  106415. let l = iy;
  106416. if (l) {
  106417. for (let u of i)
  106418. l.tempSkipped.push(u);
  106419. e && (l.scheduleOn = l.scheduleOn ? Promise.all([l.scheduleOn, e]) : e);
  106420. }
  106421. return this.parsedPos = o, new Vr(Va.none, [], [], o - a);
  106422. },
  106423. stoppedAt: null,
  106424. stopAt() {
  106425. }
  106426. };
  106427. }
  106428. }();
  106429. }
  106430. /**
  106431. @internal
  106432. */
  106433. isDone(e) {
  106434. e = Math.min(e, this.state.doc.length);
  106435. let n = this.fragments;
  106436. return this.treeLen >= e && n.length && n[0].from == 0 && n[0].to >= e;
  106437. }
  106438. /**
  106439. Get the context for the current parse, or `null` if no editor
  106440. parse is in progress.
  106441. */
  106442. static get() {
  106443. return iy;
  106444. }
  106445. }
  106446. function dJ(t, e, n) {
  106447. return Eh.applyChanges(t, [{ fromA: e, toA: n, fromB: e, toB: n }]);
  106448. }
  106449. class tm {
  106450. constructor(e) {
  106451. this.context = e, this.tree = e.tree;
  106452. }
  106453. apply(e) {
  106454. if (!e.docChanged && this.tree == this.context.tree)
  106455. return this;
  106456. let n = this.context.changes(e.changes, e.state), r = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), n.viewport.to);
  106457. return n.work(20, r) || n.takeTree(), new tm(n);
  106458. }
  106459. static init(e) {
  106460. let n = Math.min(3e3, e.doc.length), r = LT.create(e.facet(Af).parser, e, { from: 0, to: n });
  106461. return r.work(20, n) || r.takeTree(), new tm(r);
  106462. }
  106463. }
  106464. Ds.state = /* @__PURE__ */ fi.define({
  106465. create: tm.init,
  106466. update(t, e) {
  106467. for (let n of e.effects)
  106468. if (n.is(Ds.setState))
  106469. return n.value;
  106470. return e.startState.facet(Af) != e.state.facet(Af) ? tm.init(e.state) : t.apply(e);
  106471. }
  106472. });
  106473. let oge = (t) => {
  106474. let e = setTimeout(
  106475. () => t(),
  106476. 500
  106477. /* Work.MaxPause */
  106478. );
  106479. return () => clearTimeout(e);
  106480. };
  106481. typeof requestIdleCallback < "u" && (oge = (t) => {
  106482. let e = -1, n = setTimeout(
  106483. () => {
  106484. e = requestIdleCallback(t, {
  106485. timeout: 400
  106486. /* Work.MinPause */
  106487. });
  106488. },
  106489. 100
  106490. /* Work.MinPause */
  106491. );
  106492. return () => e < 0 ? clearTimeout(n) : cancelIdleCallback(e);
  106493. });
  106494. const pD = typeof navigator < "u" && (!((hD = navigator.scheduling) === null || hD === void 0) && hD.isInputPending) ? () => navigator.scheduling.isInputPending() : null, NCt = /* @__PURE__ */ Ir.fromClass(class {
  106495. constructor(e) {
  106496. this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
  106497. }
  106498. update(e) {
  106499. let n = this.view.state.field(Ds.state).context;
  106500. (n.updateViewport(e.view.viewport) || this.view.viewport.to > n.treeLen) && this.scheduleWork(), (e.docChanged || e.selectionSet) && (this.view.hasFocus && (this.chunkBudget += 50), this.scheduleWork()), this.checkAsyncSchedule(n);
  106501. }
  106502. scheduleWork() {
  106503. if (this.working)
  106504. return;
  106505. let { state: e } = this.view, n = e.field(Ds.state);
  106506. (n.tree != n.context.tree || !n.context.isDone(e.doc.length)) && (this.working = oge(this.work));
  106507. }
  106508. work(e) {
  106509. this.working = null;
  106510. let n = Date.now();
  106511. if (this.chunkEnd < n && (this.chunkEnd < 0 || this.view.hasFocus) && (this.chunkEnd = n + 3e4, this.chunkBudget = 3e3), this.chunkBudget <= 0)
  106512. return;
  106513. let { state: r, viewport: { to: i } } = this.view, a = r.field(Ds.state);
  106514. if (a.tree == a.context.tree && a.context.isDone(
  106515. i + 1e5
  106516. /* Work.MaxParseAhead */
  106517. ))
  106518. return;
  106519. let o = Date.now() + Math.min(this.chunkBudget, 100, e && !pD ? Math.max(25, e.timeRemaining() - 5) : 1e9), s = a.context.treeLen < i && r.doc.length > i + 1e3, l = a.context.work(() => pD && pD() || Date.now() > o, i + (s ? 0 : 1e5));
  106520. this.chunkBudget -= Date.now() - n, (l || this.chunkBudget <= 0) && (a.context.takeTree(), this.view.dispatch({ effects: Ds.setState.of(new tm(a.context)) })), this.chunkBudget > 0 && !(l && !s) && this.scheduleWork(), this.checkAsyncSchedule(a.context);
  106521. }
  106522. checkAsyncSchedule(e) {
  106523. e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((n) => Ia(this.view.state, n)).then(() => this.workScheduled--), e.scheduleOn = null);
  106524. }
  106525. destroy() {
  106526. this.working && this.working();
  106527. }
  106528. isWorking() {
  106529. return !!(this.working || this.workScheduled > 0);
  106530. }
  106531. }, {
  106532. eventHandlers: { focus() {
  106533. this.scheduleWork();
  106534. } }
  106535. }), Af = /* @__PURE__ */ ut.define({
  106536. combine(t) {
  106537. return t.length ? t[0] : null;
  106538. },
  106539. enables: (t) => [
  106540. Ds.state,
  106541. NCt,
  106542. rt.contentAttributes.compute([t], (e) => {
  106543. let n = e.facet(t);
  106544. return n && n.name ? { "data-language": n.name } : {};
  106545. })
  106546. ]
  106547. });
  106548. class sge {
  106549. /**
  106550. Create a language support object.
  106551. */
  106552. constructor(e, n = []) {
  106553. this.language = e, this.support = n, this.extension = [e, n];
  106554. }
  106555. }
  106556. const BCt = /* @__PURE__ */ ut.define(), D1 = /* @__PURE__ */ ut.define({
  106557. combine: (t) => {
  106558. if (!t.length)
  106559. return " ";
  106560. let e = t[0];
  106561. if (!e || /\S/.test(e) || Array.from(e).some((n) => n != e[0]))
  106562. throw new Error("Invalid indent unit: " + JSON.stringify(t[0]));
  106563. return e;
  106564. }
  106565. });
  106566. function NT(t) {
  106567. let e = t.facet(D1);
  106568. return e.charCodeAt(0) == 9 ? t.tabSize * e.length : e.length;
  106569. }
  106570. function C_(t, e) {
  106571. let n = "", r = t.tabSize, i = t.facet(D1)[0];
  106572. if (i == " ") {
  106573. for (; e >= r; )
  106574. n += " ", e -= r;
  106575. i = " ";
  106576. }
  106577. for (let a = 0; a < e; a++)
  106578. n += i;
  106579. return n;
  106580. }
  106581. function gB(t, e) {
  106582. t instanceof cn && (t = new s$(t));
  106583. for (let r of t.state.facet(BCt)) {
  106584. let i = r(t, e);
  106585. if (i !== void 0)
  106586. return i;
  106587. }
  106588. let n = ni(t.state);
  106589. return n.length >= e ? zCt(t, n, e) : null;
  106590. }
  106591. class s$ {
  106592. /**
  106593. Create an indent context.
  106594. */
  106595. constructor(e, n = {}) {
  106596. this.state = e, this.options = n, this.unit = NT(e);
  106597. }
  106598. /**
  106599. Get a description of the line at the given position, taking
  106600. [simulated line
  106601. breaks](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
  106602. into account. If there is such a break at `pos`, the `bias`
  106603. argument determines whether the part of the line line before or
  106604. after the break is used.
  106605. */
  106606. lineAt(e, n = 1) {
  106607. let r = this.state.doc.lineAt(e), { simulateBreak: i, simulateDoubleBreak: a } = this.options;
  106608. return i != null && i >= r.from && i <= r.to ? a && i == e ? { text: "", from: e } : (n < 0 ? i < e : i <= e) ? { text: r.text.slice(i - r.from), from: i } : { text: r.text.slice(0, i - r.from), from: r.from } : r;
  106609. }
  106610. /**
  106611. Get the text directly after `pos`, either the entire line
  106612. or the next 100 characters, whichever is shorter.
  106613. */
  106614. textAfterPos(e, n = 1) {
  106615. if (this.options.simulateDoubleBreak && e == this.options.simulateBreak)
  106616. return "";
  106617. let { text: r, from: i } = this.lineAt(e, n);
  106618. return r.slice(e - i, Math.min(r.length, e + 100 - i));
  106619. }
  106620. /**
  106621. Find the column for the given position.
  106622. */
  106623. column(e, n = 1) {
  106624. let { text: r, from: i } = this.lineAt(e, n), a = this.countColumn(r, e - i), o = this.options.overrideIndentation ? this.options.overrideIndentation(i) : -1;
  106625. return o > -1 && (a += o - this.countColumn(r, r.search(/\S|$/))), a;
  106626. }
  106627. /**
  106628. Find the column position (taking tabs into account) of the given
  106629. position in the given string.
  106630. */
  106631. countColumn(e, n = e.length) {
  106632. return Fm(e, this.state.tabSize, n);
  106633. }
  106634. /**
  106635. Find the indentation column of the line at the given point.
  106636. */
  106637. lineIndent(e, n = 1) {
  106638. let { text: r, from: i } = this.lineAt(e, n), a = this.options.overrideIndentation;
  106639. if (a) {
  106640. let o = a(i);
  106641. if (o > -1)
  106642. return o;
  106643. }
  106644. return this.countColumn(r, r.search(/\S|$/));
  106645. }
  106646. /**
  106647. Returns the [simulated line
  106648. break](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
  106649. for this context, if any.
  106650. */
  106651. get simulatedBreak() {
  106652. return this.options.simulateBreak || null;
  106653. }
  106654. }
  106655. const mB = /* @__PURE__ */ new rn();
  106656. function zCt(t, e, n) {
  106657. let r = e.resolveStack(n), i = r.node.enterUnfinishedNodesBefore(n);
  106658. if (i != r.node) {
  106659. let a = [];
  106660. for (let o = i; o != r.node; o = o.parent)
  106661. a.push(o);
  106662. for (let o = a.length - 1; o >= 0; o--)
  106663. r = { node: a[o], next: r };
  106664. }
  106665. return lge(r, t, n);
  106666. }
  106667. function lge(t, e, n) {
  106668. for (let r = t; r; r = r.next) {
  106669. let i = FCt(r.node);
  106670. if (i)
  106671. return i(yB.create(e, n, r));
  106672. }
  106673. return 0;
  106674. }
  106675. function VCt(t) {
  106676. return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak;
  106677. }
  106678. function FCt(t) {
  106679. let e = t.type.prop(mB);
  106680. if (e)
  106681. return e;
  106682. let n = t.firstChild, r;
  106683. if (n && (r = n.type.prop(rn.closedBy))) {
  106684. let i = t.lastChild, a = i && r.indexOf(i.name) > -1;
  106685. return (o) => uge(o, !0, 1, void 0, a && !VCt(o) ? i.from : void 0);
  106686. }
  106687. return t.parent == null ? WCt : null;
  106688. }
  106689. function WCt() {
  106690. return 0;
  106691. }
  106692. class yB extends s$ {
  106693. constructor(e, n, r) {
  106694. super(e.state, e.options), this.base = e, this.pos = n, this.context = r;
  106695. }
  106696. /**
  106697. The syntax tree node to which the indentation strategy
  106698. applies.
  106699. */
  106700. get node() {
  106701. return this.context.node;
  106702. }
  106703. /**
  106704. @internal
  106705. */
  106706. static create(e, n, r) {
  106707. return new yB(e, n, r);
  106708. }
  106709. /**
  106710. Get the text directly after `this.pos`, either the entire line
  106711. or the next 100 characters, whichever is shorter.
  106712. */
  106713. get textAfter() {
  106714. return this.textAfterPos(this.pos);
  106715. }
  106716. /**
  106717. Get the indentation at the reference line for `this.node`, which
  106718. is the line on which it starts, unless there is a node that is
  106719. _not_ a parent of this node covering the start of that line. If
  106720. so, the line at the start of that node is tried, again skipping
  106721. on if it is covered by another such node.
  106722. */
  106723. get baseIndent() {
  106724. return this.baseIndentFor(this.node);
  106725. }
  106726. /**
  106727. Get the indentation for the reference line of the given node
  106728. (see [`baseIndent`](https://codemirror.net/6/docs/ref/#language.TreeIndentContext.baseIndent)).
  106729. */
  106730. baseIndentFor(e) {
  106731. let n = this.state.doc.lineAt(e.from);
  106732. for (; ; ) {
  106733. let r = e.resolve(n.from);
  106734. for (; r.parent && r.parent.from == r.from; )
  106735. r = r.parent;
  106736. if (QCt(r, e))
  106737. break;
  106738. n = this.state.doc.lineAt(r.from);
  106739. }
  106740. return this.lineIndent(n.from);
  106741. }
  106742. /**
  106743. Continue looking for indentations in the node's parent nodes,
  106744. and return the result of that.
  106745. */
  106746. continue() {
  106747. return lge(this.context.next, this.base, this.pos);
  106748. }
  106749. }
  106750. function QCt(t, e) {
  106751. for (let n = e; n; n = n.parent)
  106752. if (t == n)
  106753. return !0;
  106754. return !1;
  106755. }
  106756. function HCt(t) {
  106757. let e = t.node, n = e.childAfter(e.from), r = e.lastChild;
  106758. if (!n)
  106759. return null;
  106760. let i = t.options.simulateBreak, a = t.state.doc.lineAt(n.from), o = i == null || i <= a.from ? a.to : Math.min(a.to, i);
  106761. for (let s = n.to; ; ) {
  106762. let l = e.childAfter(s);
  106763. if (!l || l == r)
  106764. return null;
  106765. if (!l.type.isSkipped)
  106766. return l.from < o ? n : null;
  106767. s = l.to;
  106768. }
  106769. }
  106770. function GCt({ closing: t, align: e = !0, units: n = 1 }) {
  106771. return (r) => uge(r, e, n, t);
  106772. }
  106773. function uge(t, e, n, r, i) {
  106774. let a = t.textAfter, o = a.match(/^\s*/)[0].length, s = r && a.slice(o, o + r.length) == r || i == t.pos + o, l = e ? HCt(t) : null;
  106775. return l ? s ? t.column(l.from) : t.column(l.to) : t.baseIndent + (s ? 0 : t.unit * n);
  106776. }
  106777. const jCt = (t) => t.baseIndent;
  106778. function yb({ except: t, units: e = 1 } = {}) {
  106779. return (n) => {
  106780. let r = t && t.test(n.textAfter);
  106781. return n.baseIndent + (r ? 0 : e * n.unit);
  106782. };
  106783. }
  106784. const ZCt = 200;
  106785. function UCt() {
  106786. return cn.transactionFilter.of((t) => {
  106787. if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete"))
  106788. return t;
  106789. let e = t.startState.languageDataAt("indentOnInput", t.startState.selection.main.head);
  106790. if (!e.length)
  106791. return t;
  106792. let n = t.newDoc, { head: r } = t.newSelection.main, i = n.lineAt(r);
  106793. if (r > i.from + ZCt)
  106794. return t;
  106795. let a = n.sliceString(i.from, r);
  106796. if (!e.some((u) => u.test(a)))
  106797. return t;
  106798. let { state: o } = t, s = -1, l = [];
  106799. for (let { head: u } of o.selection.ranges) {
  106800. let c = o.doc.lineAt(u);
  106801. if (c.from == s)
  106802. continue;
  106803. s = c.from;
  106804. let f = gB(o, c.from);
  106805. if (f == null)
  106806. continue;
  106807. let d = /^\s*/.exec(c.text)[0], h = C_(o, f);
  106808. d != h && l.push({ from: c.from, to: c.from + d.length, insert: h });
  106809. }
  106810. return l.length ? [t, { changes: l, sequential: !0 }] : t;
  106811. });
  106812. }
  106813. const XCt = /* @__PURE__ */ ut.define(), bB = /* @__PURE__ */ new rn();
  106814. function cge(t) {
  106815. let e = t.firstChild, n = t.lastChild;
  106816. return e && e.to < n.from ? { from: e.to, to: n.type.isError ? t.to : n.from } : null;
  106817. }
  106818. function YCt(t, e, n) {
  106819. let r = ni(t);
  106820. if (r.length < n)
  106821. return null;
  106822. let i = r.resolveStack(n, 1), a = null;
  106823. for (let o = i; o; o = o.next) {
  106824. let s = o.node;
  106825. if (s.to <= n || s.from > n)
  106826. continue;
  106827. if (a && s.from < e)
  106828. break;
  106829. let l = s.type.prop(bB);
  106830. if (l && (s.to < r.length - 50 || r.length == t.doc.length || !qCt(s))) {
  106831. let u = l(s, t);
  106832. u && u.from <= n && u.from >= e && u.to > n && (a = u);
  106833. }
  106834. }
  106835. return a;
  106836. }
  106837. function qCt(t) {
  106838. let e = t.lastChild;
  106839. return e && e.to == t.to && e.type.isError;
  106840. }
  106841. function BT(t, e, n) {
  106842. for (let r of t.facet(XCt)) {
  106843. let i = r(t, e, n);
  106844. if (i)
  106845. return i;
  106846. }
  106847. return YCt(t, e, n);
  106848. }
  106849. function fge(t, e) {
  106850. let n = e.mapPos(t.from, 1), r = e.mapPos(t.to, -1);
  106851. return n >= r ? void 0 : { from: n, to: r };
  106852. }
  106853. const l$ = /* @__PURE__ */ zt.define({ map: fge }), R1 = /* @__PURE__ */ zt.define({ map: fge });
  106854. function dge(t) {
  106855. let e = [];
  106856. for (let { head: n } of t.state.selection.ranges)
  106857. e.some((r) => r.from <= n && r.to >= n) || e.push(t.lineBlockAt(n));
  106858. return e;
  106859. }
  106860. const np = /* @__PURE__ */ fi.define({
  106861. create() {
  106862. return pt.none;
  106863. },
  106864. update(t, e) {
  106865. t = t.map(e.changes);
  106866. for (let n of e.effects)
  106867. if (n.is(l$) && !KCt(t, n.value.from, n.value.to)) {
  106868. let { preparePlaceholder: r } = e.state.facet(vge), i = r ? pt.replace({ widget: new aTt(r(e.state, n.value)) }) : hJ;
  106869. t = t.update({ add: [i.range(n.value.from, n.value.to)] });
  106870. } else n.is(R1) && (t = t.update({
  106871. filter: (r, i) => n.value.from != r || n.value.to != i,
  106872. filterFrom: n.value.from,
  106873. filterTo: n.value.to
  106874. }));
  106875. if (e.selection) {
  106876. let n = !1, { head: r } = e.selection.main;
  106877. t.between(r, r, (i, a) => {
  106878. i < r && a > r && (n = !0);
  106879. }), n && (t = t.update({
  106880. filterFrom: r,
  106881. filterTo: r,
  106882. filter: (i, a) => a <= r || i >= r
  106883. }));
  106884. }
  106885. return t;
  106886. },
  106887. provide: (t) => rt.decorations.from(t),
  106888. toJSON(t, e) {
  106889. let n = [];
  106890. return t.between(0, e.doc.length, (r, i) => {
  106891. n.push(r, i);
  106892. }), n;
  106893. },
  106894. fromJSON(t) {
  106895. if (!Array.isArray(t) || t.length % 2)
  106896. throw new RangeError("Invalid JSON for fold state");
  106897. let e = [];
  106898. for (let n = 0; n < t.length; ) {
  106899. let r = t[n++], i = t[n++];
  106900. if (typeof r != "number" || typeof i != "number")
  106901. throw new RangeError("Invalid JSON for fold state");
  106902. e.push(hJ.range(r, i));
  106903. }
  106904. return pt.set(e, !0);
  106905. }
  106906. });
  106907. function zT(t, e, n) {
  106908. var r;
  106909. let i = null;
  106910. return (r = t.field(np, !1)) === null || r === void 0 || r.between(e, n, (a, o) => {
  106911. (!i || i.from > a) && (i = { from: a, to: o });
  106912. }), i;
  106913. }
  106914. function KCt(t, e, n) {
  106915. let r = !1;
  106916. return t.between(e, e, (i, a) => {
  106917. i == e && a == n && (r = !0);
  106918. }), r;
  106919. }
  106920. function hge(t, e) {
  106921. return t.field(np, !1) ? e : e.concat(zt.appendConfig.of(gge()));
  106922. }
  106923. const JCt = (t) => {
  106924. for (let e of dge(t)) {
  106925. let n = BT(t.state, e.from, e.to);
  106926. if (n)
  106927. return t.dispatch({ effects: hge(t.state, [l$.of(n), pge(t, n)]) }), !0;
  106928. }
  106929. return !1;
  106930. }, eTt = (t) => {
  106931. if (!t.state.field(np, !1))
  106932. return !1;
  106933. let e = [];
  106934. for (let n of dge(t)) {
  106935. let r = zT(t.state, n.from, n.to);
  106936. r && e.push(R1.of(r), pge(t, r, !1));
  106937. }
  106938. return e.length && t.dispatch({ effects: e }), e.length > 0;
  106939. };
  106940. function pge(t, e, n = !0) {
  106941. let r = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number;
  106942. return rt.announce.of(`${t.state.phrase(n ? "Folded lines" : "Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`);
  106943. }
  106944. const tTt = (t) => {
  106945. let { state: e } = t, n = [];
  106946. for (let r = 0; r < e.doc.length; ) {
  106947. let i = t.lineBlockAt(r), a = BT(e, i.from, i.to);
  106948. a && n.push(l$.of(a)), r = (a ? t.lineBlockAt(a.to) : i).to + 1;
  106949. }
  106950. return n.length && t.dispatch({ effects: hge(t.state, n) }), !!n.length;
  106951. }, nTt = (t) => {
  106952. let e = t.state.field(np, !1);
  106953. if (!e || !e.size)
  106954. return !1;
  106955. let n = [];
  106956. return e.between(0, t.state.doc.length, (r, i) => {
  106957. n.push(R1.of({ from: r, to: i }));
  106958. }), t.dispatch({ effects: n }), !0;
  106959. }, rTt = [
  106960. { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: JCt },
  106961. { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: eTt },
  106962. { key: "Ctrl-Alt-[", run: tTt },
  106963. { key: "Ctrl-Alt-]", run: nTt }
  106964. ], iTt = {
  106965. placeholderDOM: null,
  106966. preparePlaceholder: null,
  106967. placeholderText: "…"
  106968. }, vge = /* @__PURE__ */ ut.define({
  106969. combine(t) {
  106970. return Kl(t, iTt);
  106971. }
  106972. });
  106973. function gge(t) {
  106974. return [np, lTt];
  106975. }
  106976. function mge(t, e) {
  106977. let { state: n } = t, r = n.facet(vge), i = (o) => {
  106978. let s = t.lineBlockAt(t.posAtDOM(o.target)), l = zT(t.state, s.from, s.to);
  106979. l && t.dispatch({ effects: R1.of(l) }), o.preventDefault();
  106980. };
  106981. if (r.placeholderDOM)
  106982. return r.placeholderDOM(t, i, e);
  106983. let a = document.createElement("span");
  106984. return a.textContent = r.placeholderText, a.setAttribute("aria-label", n.phrase("folded code")), a.title = n.phrase("unfold"), a.className = "cm-foldPlaceholder", a.onclick = i, a;
  106985. }
  106986. const hJ = /* @__PURE__ */ pt.replace({ widget: /* @__PURE__ */ new class extends Jl {
  106987. toDOM(t) {
  106988. return mge(t, null);
  106989. }
  106990. }() });
  106991. class aTt extends Jl {
  106992. constructor(e) {
  106993. super(), this.value = e;
  106994. }
  106995. eq(e) {
  106996. return this.value == e.value;
  106997. }
  106998. toDOM(e) {
  106999. return mge(e, this.value);
  107000. }
  107001. }
  107002. const oTt = {
  107003. openText: "⌄",
  107004. closedText: "›",
  107005. markerDOM: null,
  107006. domEventHandlers: {},
  107007. foldingChanged: () => !1
  107008. };
  107009. class vD extends Yu {
  107010. constructor(e, n) {
  107011. super(), this.config = e, this.open = n;
  107012. }
  107013. eq(e) {
  107014. return this.config == e.config && this.open == e.open;
  107015. }
  107016. toDOM(e) {
  107017. if (this.config.markerDOM)
  107018. return this.config.markerDOM(this.open);
  107019. let n = document.createElement("span");
  107020. return n.textContent = this.open ? this.config.openText : this.config.closedText, n.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), n;
  107021. }
  107022. }
  107023. function sTt(t = {}) {
  107024. let e = Object.assign(Object.assign({}, oTt), t), n = new vD(e, !0), r = new vD(e, !1), i = Ir.fromClass(class {
  107025. constructor(o) {
  107026. this.from = o.viewport.from, this.markers = this.buildMarkers(o);
  107027. }
  107028. update(o) {
  107029. (o.docChanged || o.viewportChanged || o.startState.facet(Af) != o.state.facet(Af) || o.startState.field(np, !1) != o.state.field(np, !1) || ni(o.startState) != ni(o.state) || e.foldingChanged(o)) && (this.markers = this.buildMarkers(o.view));
  107030. }
  107031. buildMarkers(o) {
  107032. let s = new wf();
  107033. for (let l of o.viewportLineBlocks) {
  107034. let u = zT(o.state, l.from, l.to) ? r : BT(o.state, l.from, l.to) ? n : null;
  107035. u && s.add(l.from, l.from, u);
  107036. }
  107037. return s.finish();
  107038. }
  107039. }), { domEventHandlers: a } = e;
  107040. return [
  107041. i,
  107042. cCt({
  107043. class: "cm-foldGutter",
  107044. markers(o) {
  107045. var s;
  107046. return ((s = o.plugin(i)) === null || s === void 0 ? void 0 : s.markers) || Sn.empty;
  107047. },
  107048. initialSpacer() {
  107049. return new vD(e, !1);
  107050. },
  107051. domEventHandlers: Object.assign(Object.assign({}, a), { click: (o, s, l) => {
  107052. if (a.click && a.click(o, s, l))
  107053. return !0;
  107054. let u = zT(o.state, s.from, s.to);
  107055. if (u)
  107056. return o.dispatch({ effects: R1.of(u) }), !0;
  107057. let c = BT(o.state, s.from, s.to);
  107058. return c ? (o.dispatch({ effects: l$.of(c) }), !0) : !1;
  107059. } })
  107060. }),
  107061. gge()
  107062. ];
  107063. }
  107064. const lTt = /* @__PURE__ */ rt.baseTheme({
  107065. ".cm-foldPlaceholder": {
  107066. backgroundColor: "#eee",
  107067. border: "1px solid #ddd",
  107068. color: "#888",
  107069. borderRadius: ".2em",
  107070. margin: "0 1px",
  107071. padding: "0 1px",
  107072. cursor: "pointer"
  107073. },
  107074. ".cm-foldGutter span": {
  107075. padding: "0 1px",
  107076. cursor: "pointer"
  107077. }
  107078. });
  107079. class k1 {
  107080. constructor(e, n) {
  107081. this.specs = e;
  107082. let r;
  107083. function i(s) {
  107084. let l = Cf.newName();
  107085. return (r || (r = /* @__PURE__ */ Object.create(null)))["." + l] = s, l;
  107086. }
  107087. const a = typeof n.all == "string" ? n.all : n.all ? i(n.all) : void 0, o = n.scope;
  107088. this.scope = o instanceof Ds ? (s) => s.prop(Nv) == o.data : o ? (s) => s == o : void 0, this.style = ige(e.map((s) => ({
  107089. tag: s.tag,
  107090. class: s.class || i(Object.assign({}, s, { tag: null }))
  107091. })), {
  107092. all: a
  107093. }).style, this.module = r ? new Cf(r) : null, this.themeType = n.themeType;
  107094. }
  107095. /**
  107096. Create a highlighter style that associates the given styles to
  107097. the given tags. The specs must be objects that hold a style tag
  107098. or array of tags in their `tag` property, and either a single
  107099. `class` property providing a static CSS class (for highlighter
  107100. that rely on external styling), or a
  107101. [`style-mod`](https://github.com/marijnh/style-mod#documentation)-style
  107102. set of CSS properties (which define the styling for those tags).
  107103. The CSS rules created for a highlighter will be emitted in the
  107104. order of the spec's properties. That means that for elements that
  107105. have multiple tags associated with them, styles defined further
  107106. down in the list will have a higher CSS precedence than styles
  107107. defined earlier.
  107108. */
  107109. static define(e, n) {
  107110. return new k1(e, n || {});
  107111. }
  107112. }
  107113. const L4 = /* @__PURE__ */ ut.define(), yge = /* @__PURE__ */ ut.define({
  107114. combine(t) {
  107115. return t.length ? [t[0]] : null;
  107116. }
  107117. });
  107118. function gD(t) {
  107119. let e = t.facet(L4);
  107120. return e.length ? e : t.facet(yge);
  107121. }
  107122. function bge(t, e) {
  107123. let n = [cTt], r;
  107124. return t instanceof k1 && (t.module && n.push(rt.styleModule.of(t.module)), r = t.themeType), e != null && e.fallback ? n.push(yge.of(t)) : r ? n.push(L4.computeN([rt.darkTheme], (i) => i.facet(rt.darkTheme) == (r == "dark") ? [t] : [])) : n.push(L4.of(t)), n;
  107125. }
  107126. class uTt {
  107127. constructor(e) {
  107128. this.markCache = /* @__PURE__ */ Object.create(null), this.tree = ni(e.state), this.decorations = this.buildDeco(e, gD(e.state)), this.decoratedTo = e.viewport.to;
  107129. }
  107130. update(e) {
  107131. let n = ni(e.state), r = gD(e.state), i = r != gD(e.startState), { viewport: a } = e.view, o = e.changes.mapPos(this.decoratedTo, 1);
  107132. n.length < a.to && !i && n.type == this.tree.type && o >= a.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = o) : (n != this.tree || e.viewportChanged || i) && (this.tree = n, this.decorations = this.buildDeco(e.view, r), this.decoratedTo = a.to);
  107133. }
  107134. buildDeco(e, n) {
  107135. if (!n || !this.tree.length)
  107136. return pt.none;
  107137. let r = new wf();
  107138. for (let { from: i, to: a } of e.visibleRanges)
  107139. DCt(this.tree, n, (o, s, l) => {
  107140. r.add(o, s, this.markCache[l] || (this.markCache[l] = pt.mark({ class: l })));
  107141. }, i, a);
  107142. return r.finish();
  107143. }
  107144. }
  107145. const cTt = /* @__PURE__ */ Ff.high(/* @__PURE__ */ Ir.fromClass(uTt, {
  107146. decorations: (t) => t.decorations
  107147. })), fTt = /* @__PURE__ */ k1.define([
  107148. {
  107149. tag: ce.meta,
  107150. color: "#404740"
  107151. },
  107152. {
  107153. tag: ce.link,
  107154. textDecoration: "underline"
  107155. },
  107156. {
  107157. tag: ce.heading,
  107158. textDecoration: "underline",
  107159. fontWeight: "bold"
  107160. },
  107161. {
  107162. tag: ce.emphasis,
  107163. fontStyle: "italic"
  107164. },
  107165. {
  107166. tag: ce.strong,
  107167. fontWeight: "bold"
  107168. },
  107169. {
  107170. tag: ce.strikethrough,
  107171. textDecoration: "line-through"
  107172. },
  107173. {
  107174. tag: ce.keyword,
  107175. color: "#708"
  107176. },
  107177. {
  107178. tag: [ce.atom, ce.bool, ce.url, ce.contentSeparator, ce.labelName],
  107179. color: "#219"
  107180. },
  107181. {
  107182. tag: [ce.literal, ce.inserted],
  107183. color: "#164"
  107184. },
  107185. {
  107186. tag: [ce.string, ce.deleted],
  107187. color: "#a11"
  107188. },
  107189. {
  107190. tag: [ce.regexp, ce.escape, /* @__PURE__ */ ce.special(ce.string)],
  107191. color: "#e40"
  107192. },
  107193. {
  107194. tag: /* @__PURE__ */ ce.definition(ce.variableName),
  107195. color: "#00f"
  107196. },
  107197. {
  107198. tag: /* @__PURE__ */ ce.local(ce.variableName),
  107199. color: "#30a"
  107200. },
  107201. {
  107202. tag: [ce.typeName, ce.namespace],
  107203. color: "#085"
  107204. },
  107205. {
  107206. tag: ce.className,
  107207. color: "#167"
  107208. },
  107209. {
  107210. tag: [/* @__PURE__ */ ce.special(ce.variableName), ce.macroName],
  107211. color: "#256"
  107212. },
  107213. {
  107214. tag: /* @__PURE__ */ ce.definition(ce.propertyName),
  107215. color: "#00c"
  107216. },
  107217. {
  107218. tag: ce.comment,
  107219. color: "#940"
  107220. },
  107221. {
  107222. tag: ce.invalid,
  107223. color: "#f00"
  107224. }
  107225. ]), dTt = /* @__PURE__ */ rt.baseTheme({
  107226. "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
  107227. "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
  107228. }), _ge = 1e4, Oge = "()[]{}", Sge = /* @__PURE__ */ ut.define({
  107229. combine(t) {
  107230. return Kl(t, {
  107231. afterCursor: !0,
  107232. brackets: Oge,
  107233. maxScanDistance: _ge,
  107234. renderMatch: vTt
  107235. });
  107236. }
  107237. }), hTt = /* @__PURE__ */ pt.mark({ class: "cm-matchingBracket" }), pTt = /* @__PURE__ */ pt.mark({ class: "cm-nonmatchingBracket" });
  107238. function vTt(t) {
  107239. let e = [], n = t.matched ? hTt : pTt;
  107240. return e.push(n.range(t.start.from, t.start.to)), t.end && e.push(n.range(t.end.from, t.end.to)), e;
  107241. }
  107242. const gTt = /* @__PURE__ */ fi.define({
  107243. create() {
  107244. return pt.none;
  107245. },
  107246. update(t, e) {
  107247. if (!e.docChanged && !e.selection)
  107248. return t;
  107249. let n = [], r = e.state.facet(Sge);
  107250. for (let i of e.state.selection.ranges) {
  107251. if (!i.empty)
  107252. continue;
  107253. let a = Il(e.state, i.head, -1, r) || i.head > 0 && Il(e.state, i.head - 1, 1, r) || r.afterCursor && (Il(e.state, i.head, 1, r) || i.head < e.state.doc.length && Il(e.state, i.head + 1, -1, r));
  107254. a && (n = n.concat(r.renderMatch(a, e.state)));
  107255. }
  107256. return pt.set(n, !0);
  107257. },
  107258. provide: (t) => rt.decorations.from(t)
  107259. }), mTt = [
  107260. gTt,
  107261. dTt
  107262. ];
  107263. function yTt(t = {}) {
  107264. return [Sge.of(t), mTt];
  107265. }
  107266. const bTt = /* @__PURE__ */ new rn();
  107267. function N4(t, e, n) {
  107268. let r = t.prop(e < 0 ? rn.openedBy : rn.closedBy);
  107269. if (r)
  107270. return r;
  107271. if (t.name.length == 1) {
  107272. let i = n.indexOf(t.name);
  107273. if (i > -1 && i % 2 == (e < 0 ? 1 : 0))
  107274. return [n[i + e]];
  107275. }
  107276. return null;
  107277. }
  107278. function B4(t) {
  107279. let e = t.type.prop(bTt);
  107280. return e ? e(t.node) : t;
  107281. }
  107282. function Il(t, e, n, r = {}) {
  107283. let i = r.maxScanDistance || _ge, a = r.brackets || Oge, o = ni(t), s = o.resolveInner(e, n);
  107284. for (let l = s; l; l = l.parent) {
  107285. let u = N4(l.type, n, a);
  107286. if (u && l.from < l.to) {
  107287. let c = B4(l);
  107288. if (c && (n > 0 ? e >= c.from && e < c.to : e > c.from && e <= c.to))
  107289. return _Tt(t, e, n, l, c, u, a);
  107290. }
  107291. }
  107292. return OTt(t, e, n, o, s.type, i, a);
  107293. }
  107294. function _Tt(t, e, n, r, i, a, o) {
  107295. let s = r.parent, l = { from: i.from, to: i.to }, u = 0, c = s == null ? void 0 : s.cursor();
  107296. if (c && (n < 0 ? c.childBefore(r.from) : c.childAfter(r.to)))
  107297. do
  107298. if (n < 0 ? c.to <= r.from : c.from >= r.to) {
  107299. if (u == 0 && a.indexOf(c.type.name) > -1 && c.from < c.to) {
  107300. let f = B4(c);
  107301. return { start: l, end: f ? { from: f.from, to: f.to } : void 0, matched: !0 };
  107302. } else if (N4(c.type, n, o))
  107303. u++;
  107304. else if (N4(c.type, -n, o)) {
  107305. if (u == 0) {
  107306. let f = B4(c);
  107307. return {
  107308. start: l,
  107309. end: f && f.from < f.to ? { from: f.from, to: f.to } : void 0,
  107310. matched: !1
  107311. };
  107312. }
  107313. u--;
  107314. }
  107315. }
  107316. while (n < 0 ? c.prevSibling() : c.nextSibling());
  107317. return { start: l, matched: !1 };
  107318. }
  107319. function OTt(t, e, n, r, i, a, o) {
  107320. let s = n < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), l = o.indexOf(s);
  107321. if (l < 0 || l % 2 == 0 != n > 0)
  107322. return null;
  107323. let u = { from: n < 0 ? e - 1 : e, to: n > 0 ? e + 1 : e }, c = t.doc.iterRange(e, n > 0 ? t.doc.length : 0), f = 0;
  107324. for (let d = 0; !c.next().done && d <= a; ) {
  107325. let h = c.value;
  107326. n < 0 && (d += h.length);
  107327. let p = e + d * n;
  107328. for (let v = n > 0 ? 0 : h.length - 1, g = n > 0 ? h.length : -1; v != g; v += n) {
  107329. let m = o.indexOf(h[v]);
  107330. if (!(m < 0 || r.resolveInner(p + v, 1).type != i))
  107331. if (m % 2 == 0 == n > 0)
  107332. f++;
  107333. else {
  107334. if (f == 1)
  107335. return { start: u, end: { from: p + v, to: p + v + 1 }, matched: m >> 1 == l >> 1 };
  107336. f--;
  107337. }
  107338. }
  107339. n > 0 && (d += h.length);
  107340. }
  107341. return c.done ? { start: u, matched: !1 } : null;
  107342. }
  107343. const STt = /* @__PURE__ */ Object.create(null), pJ = [Va.none], vJ = [], gJ = /* @__PURE__ */ Object.create(null), xTt = /* @__PURE__ */ Object.create(null);
  107344. for (let [t, e] of [
  107345. ["variable", "variableName"],
  107346. ["variable-2", "variableName.special"],
  107347. ["string-2", "string.special"],
  107348. ["def", "variableName.definition"],
  107349. ["tag", "tagName"],
  107350. ["attribute", "attributeName"],
  107351. ["type", "typeName"],
  107352. ["builtin", "variableName.standard"],
  107353. ["qualifier", "modifier"],
  107354. ["error", "invalid"],
  107355. ["header", "heading"],
  107356. ["property", "propertyName"]
  107357. ])
  107358. xTt[t] = /* @__PURE__ */ wTt(STt, e);
  107359. function mD(t, e) {
  107360. vJ.indexOf(t) > -1 || (vJ.push(t), console.warn(e));
  107361. }
  107362. function wTt(t, e) {
  107363. let n = [];
  107364. for (let s of e.split(" ")) {
  107365. let l = [];
  107366. for (let u of s.split(".")) {
  107367. let c = t[u] || ce[u];
  107368. c ? typeof c == "function" ? l.length ? l = l.map(c) : mD(u, `Modifier ${u} used at start of tag`) : l.length ? mD(u, `Tag ${u} used as modifier`) : l = Array.isArray(c) ? c : [c] : mD(u, `Unknown highlighting tag ${u}`);
  107369. }
  107370. for (let u of l)
  107371. n.push(u);
  107372. }
  107373. if (!n.length)
  107374. return 0;
  107375. let r = e.replace(/ /g, "_"), i = r + " " + n.map((s) => s.id), a = gJ[i];
  107376. if (a)
  107377. return a.id;
  107378. let o = gJ[i] = Va.define({
  107379. id: pJ.length,
  107380. name: r,
  107381. props: [pB({ [r]: n })]
  107382. });
  107383. return pJ.push(o), o.id;
  107384. }
  107385. ir.RTL, ir.LTR;
  107386. const CTt = (t) => {
  107387. let { state: e } = t, n = e.doc.lineAt(e.selection.main.from), r = OB(t.state, n.from);
  107388. return r.line ? TTt(t) : r.block ? $Tt(t) : !1;
  107389. };
  107390. function _B(t, e) {
  107391. return ({ state: n, dispatch: r }) => {
  107392. if (n.readOnly)
  107393. return !1;
  107394. let i = t(e, n);
  107395. return i ? (r(n.update(i)), !0) : !1;
  107396. };
  107397. }
  107398. const TTt = /* @__PURE__ */ _B(
  107399. MTt,
  107400. 0
  107401. /* CommentOption.Toggle */
  107402. ), PTt = /* @__PURE__ */ _B(
  107403. xge,
  107404. 0
  107405. /* CommentOption.Toggle */
  107406. ), $Tt = /* @__PURE__ */ _B(
  107407. (t, e) => xge(t, e, ETt(e)),
  107408. 0
  107409. /* CommentOption.Toggle */
  107410. );
  107411. function OB(t, e) {
  107412. let n = t.languageDataAt("commentTokens", e);
  107413. return n.length ? n[0] : {};
  107414. }
  107415. const ay = 50;
  107416. function ATt(t, { open: e, close: n }, r, i) {
  107417. let a = t.sliceDoc(r - ay, r), o = t.sliceDoc(i, i + ay), s = /\s*$/.exec(a)[0].length, l = /^\s*/.exec(o)[0].length, u = a.length - s;
  107418. if (a.slice(u - e.length, u) == e && o.slice(l, l + n.length) == n)
  107419. return {
  107420. open: { pos: r - s, margin: s && 1 },
  107421. close: { pos: i + l, margin: l && 1 }
  107422. };
  107423. let c, f;
  107424. i - r <= 2 * ay ? c = f = t.sliceDoc(r, i) : (c = t.sliceDoc(r, r + ay), f = t.sliceDoc(i - ay, i));
  107425. let d = /^\s*/.exec(c)[0].length, h = /\s*$/.exec(f)[0].length, p = f.length - h - n.length;
  107426. return c.slice(d, d + e.length) == e && f.slice(p, p + n.length) == n ? {
  107427. open: {
  107428. pos: r + d + e.length,
  107429. margin: /\s/.test(c.charAt(d + e.length)) ? 1 : 0
  107430. },
  107431. close: {
  107432. pos: i - h - n.length,
  107433. margin: /\s/.test(f.charAt(p - 1)) ? 1 : 0
  107434. }
  107435. } : null;
  107436. }
  107437. function ETt(t) {
  107438. let e = [];
  107439. for (let n of t.selection.ranges) {
  107440. let r = t.doc.lineAt(n.from), i = n.to <= r.to ? r : t.doc.lineAt(n.to), a = e.length - 1;
  107441. a >= 0 && e[a].to > r.from ? e[a].to = i.to : e.push({ from: r.from + /^\s*/.exec(r.text)[0].length, to: i.to });
  107442. }
  107443. return e;
  107444. }
  107445. function xge(t, e, n = e.selection.ranges) {
  107446. let r = n.map((a) => OB(e, a.from).block);
  107447. if (!r.every((a) => a))
  107448. return null;
  107449. let i = n.map((a, o) => ATt(e, r[o], a.from, a.to));
  107450. if (t != 2 && !i.every((a) => a))
  107451. return { changes: e.changes(n.map((a, o) => i[o] ? [] : [{ from: a.from, insert: r[o].open + " " }, { from: a.to, insert: " " + r[o].close }])) };
  107452. if (t != 1 && i.some((a) => a)) {
  107453. let a = [];
  107454. for (let o = 0, s; o < i.length; o++)
  107455. if (s = i[o]) {
  107456. let l = r[o], { open: u, close: c } = s;
  107457. a.push({ from: u.pos - l.open.length, to: u.pos + u.margin }, { from: c.pos - c.margin, to: c.pos + l.close.length });
  107458. }
  107459. return { changes: a };
  107460. }
  107461. return null;
  107462. }
  107463. function MTt(t, e, n = e.selection.ranges) {
  107464. let r = [], i = -1;
  107465. for (let { from: a, to: o } of n) {
  107466. let s = r.length, l = 1e9, u = OB(e, a).line;
  107467. if (u) {
  107468. for (let c = a; c <= o; ) {
  107469. let f = e.doc.lineAt(c);
  107470. if (f.from > i && (a == o || o > f.from)) {
  107471. i = f.from;
  107472. let d = /^\s*/.exec(f.text)[0].length, h = d == f.length, p = f.text.slice(d, d + u.length) == u ? d : -1;
  107473. d < f.text.length && d < l && (l = d), r.push({ line: f, comment: p, token: u, indent: d, empty: h, single: !1 });
  107474. }
  107475. c = f.to + 1;
  107476. }
  107477. if (l < 1e9)
  107478. for (let c = s; c < r.length; c++)
  107479. r[c].indent < r[c].line.text.length && (r[c].indent = l);
  107480. r.length == s + 1 && (r[s].single = !0);
  107481. }
  107482. }
  107483. if (t != 2 && r.some((a) => a.comment < 0 && (!a.empty || a.single))) {
  107484. let a = [];
  107485. for (let { line: s, token: l, indent: u, empty: c, single: f } of r)
  107486. (f || !c) && a.push({ from: s.from + u, insert: l + " " });
  107487. let o = e.changes(a);
  107488. return { changes: o, selection: e.selection.map(o, 1) };
  107489. } else if (t != 1 && r.some((a) => a.comment >= 0)) {
  107490. let a = [];
  107491. for (let { line: o, comment: s, token: l } of r)
  107492. if (s >= 0) {
  107493. let u = o.from + s, c = u + l.length;
  107494. o.text[c - o.from] == " " && c++, a.push({ from: u, to: c });
  107495. }
  107496. return { changes: a };
  107497. }
  107498. return null;
  107499. }
  107500. const z4 = /* @__PURE__ */ ac.define(), ITt = /* @__PURE__ */ ac.define(), DTt = /* @__PURE__ */ ut.define(), wge = /* @__PURE__ */ ut.define({
  107501. combine(t) {
  107502. return Kl(t, {
  107503. minDepth: 100,
  107504. newGroupDelay: 500,
  107505. joinToEvent: (e, n) => n
  107506. }, {
  107507. minDepth: Math.max,
  107508. newGroupDelay: Math.min,
  107509. joinToEvent: (e, n) => (r, i) => e(r, i) || n(r, i)
  107510. });
  107511. }
  107512. }), Cge = /* @__PURE__ */ fi.define({
  107513. create() {
  107514. return Dl.empty;
  107515. },
  107516. update(t, e) {
  107517. let n = e.state.facet(wge), r = e.annotation(z4);
  107518. if (r) {
  107519. let l = Da.fromTransaction(e, r.selection), u = r.side, c = u == 0 ? t.undone : t.done;
  107520. return l ? c = VT(c, c.length, n.minDepth, l) : c = $ge(c, e.startState.selection), new Dl(u == 0 ? r.rest : c, u == 0 ? c : r.rest);
  107521. }
  107522. let i = e.annotation(ITt);
  107523. if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(zr.addToHistory) === !1)
  107524. return e.changes.empty ? t : t.addMapping(e.changes.desc);
  107525. let a = Da.fromTransaction(e), o = e.annotation(zr.time), s = e.annotation(zr.userEvent);
  107526. return a ? t = t.addChanges(a, o, s, n, e) : e.selection && (t = t.addSelection(e.startState.selection, o, s, n.newGroupDelay)), (i == "full" || i == "after") && (t = t.isolate()), t;
  107527. },
  107528. toJSON(t) {
  107529. return { done: t.done.map((e) => e.toJSON()), undone: t.undone.map((e) => e.toJSON()) };
  107530. },
  107531. fromJSON(t) {
  107532. return new Dl(t.done.map(Da.fromJSON), t.undone.map(Da.fromJSON));
  107533. }
  107534. });
  107535. function RTt(t = {}) {
  107536. return [
  107537. Cge,
  107538. wge.of(t),
  107539. rt.domEventHandlers({
  107540. beforeinput(e, n) {
  107541. let r = e.inputType == "historyUndo" ? Tge : e.inputType == "historyRedo" ? V4 : null;
  107542. return r ? (e.preventDefault(), r(n)) : !1;
  107543. }
  107544. })
  107545. ];
  107546. }
  107547. function u$(t, e) {
  107548. return function({ state: n, dispatch: r }) {
  107549. if (!e && n.readOnly)
  107550. return !1;
  107551. let i = n.field(Cge, !1);
  107552. if (!i)
  107553. return !1;
  107554. let a = i.pop(t, n, e);
  107555. return a ? (r(a), !0) : !1;
  107556. };
  107557. }
  107558. const Tge = /* @__PURE__ */ u$(0, !1), V4 = /* @__PURE__ */ u$(1, !1), kTt = /* @__PURE__ */ u$(0, !0), LTt = /* @__PURE__ */ u$(1, !0);
  107559. class Da {
  107560. constructor(e, n, r, i, a) {
  107561. this.changes = e, this.effects = n, this.mapped = r, this.startSelection = i, this.selectionsAfter = a;
  107562. }
  107563. setSelAfter(e) {
  107564. return new Da(this.changes, this.effects, this.mapped, this.startSelection, e);
  107565. }
  107566. toJSON() {
  107567. var e, n, r;
  107568. return {
  107569. changes: (e = this.changes) === null || e === void 0 ? void 0 : e.toJSON(),
  107570. mapped: (n = this.mapped) === null || n === void 0 ? void 0 : n.toJSON(),
  107571. startSelection: (r = this.startSelection) === null || r === void 0 ? void 0 : r.toJSON(),
  107572. selectionsAfter: this.selectionsAfter.map((i) => i.toJSON())
  107573. };
  107574. }
  107575. static fromJSON(e) {
  107576. return new Da(e.changes && Zr.fromJSON(e.changes), [], e.mapped && Bl.fromJSON(e.mapped), e.startSelection && De.fromJSON(e.startSelection), e.selectionsAfter.map(De.fromJSON));
  107577. }
  107578. // This does not check `addToHistory` and such, it assumes the
  107579. // transaction needs to be converted to an item. Returns null when
  107580. // there are no changes or effects in the transaction.
  107581. static fromTransaction(e, n) {
  107582. let r = Uo;
  107583. for (let i of e.startState.facet(DTt)) {
  107584. let a = i(e);
  107585. a.length && (r = r.concat(a));
  107586. }
  107587. return !r.length && e.changes.empty ? null : new Da(e.changes.invert(e.startState.doc), r, void 0, n || e.startState.selection, Uo);
  107588. }
  107589. static selection(e) {
  107590. return new Da(void 0, Uo, void 0, void 0, e);
  107591. }
  107592. }
  107593. function VT(t, e, n, r) {
  107594. let i = e + 1 > n + 20 ? e - n - 1 : 0, a = t.slice(i, e);
  107595. return a.push(r), a;
  107596. }
  107597. function NTt(t, e) {
  107598. let n = [], r = !1;
  107599. return t.iterChangedRanges((i, a) => n.push(i, a)), e.iterChangedRanges((i, a, o, s) => {
  107600. for (let l = 0; l < n.length; ) {
  107601. let u = n[l++], c = n[l++];
  107602. s >= u && o <= c && (r = !0);
  107603. }
  107604. }), r;
  107605. }
  107606. function BTt(t, e) {
  107607. return t.ranges.length == e.ranges.length && t.ranges.filter((n, r) => n.empty != e.ranges[r].empty).length === 0;
  107608. }
  107609. function Pge(t, e) {
  107610. return t.length ? e.length ? t.concat(e) : t : e;
  107611. }
  107612. const Uo = [], zTt = 200;
  107613. function $ge(t, e) {
  107614. if (t.length) {
  107615. let n = t[t.length - 1], r = n.selectionsAfter.slice(Math.max(0, n.selectionsAfter.length - zTt));
  107616. return r.length && r[r.length - 1].eq(e) ? t : (r.push(e), VT(t, t.length - 1, 1e9, n.setSelAfter(r)));
  107617. } else
  107618. return [Da.selection([e])];
  107619. }
  107620. function VTt(t) {
  107621. let e = t[t.length - 1], n = t.slice();
  107622. return n[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), n;
  107623. }
  107624. function yD(t, e) {
  107625. if (!t.length)
  107626. return t;
  107627. let n = t.length, r = Uo;
  107628. for (; n; ) {
  107629. let i = FTt(t[n - 1], e, r);
  107630. if (i.changes && !i.changes.empty || i.effects.length) {
  107631. let a = t.slice(0, n);
  107632. return a[n - 1] = i, a;
  107633. } else
  107634. e = i.mapped, n--, r = i.selectionsAfter;
  107635. }
  107636. return r.length ? [Da.selection(r)] : Uo;
  107637. }
  107638. function FTt(t, e, n) {
  107639. let r = Pge(t.selectionsAfter.length ? t.selectionsAfter.map((s) => s.map(e)) : Uo, n);
  107640. if (!t.changes)
  107641. return Da.selection(r);
  107642. let i = t.changes.map(e), a = e.mapDesc(t.changes, !0), o = t.mapped ? t.mapped.composeDesc(a) : a;
  107643. return new Da(i, zt.mapEffects(t.effects, e), o, t.startSelection.map(a), r);
  107644. }
  107645. const WTt = /^(input\.type|delete)($|\.)/;
  107646. class Dl {
  107647. constructor(e, n, r = 0, i = void 0) {
  107648. this.done = e, this.undone = n, this.prevTime = r, this.prevUserEvent = i;
  107649. }
  107650. isolate() {
  107651. return this.prevTime ? new Dl(this.done, this.undone) : this;
  107652. }
  107653. addChanges(e, n, r, i, a) {
  107654. let o = this.done, s = o[o.length - 1];
  107655. return s && s.changes && !s.changes.empty && e.changes && (!r || WTt.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, NTt(s.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
  107656. r == "input.type.compose") ? o = VT(o, o.length - 1, i.minDepth, new Da(e.changes.compose(s.changes), Pge(e.effects, s.effects), s.mapped, s.startSelection, Uo)) : o = VT(o, o.length, i.minDepth, e), new Dl(o, Uo, n, r);
  107657. }
  107658. addSelection(e, n, r, i) {
  107659. let a = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Uo;
  107660. return a.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && BTt(a[a.length - 1], e) ? this : new Dl($ge(this.done, e), this.undone, n, r);
  107661. }
  107662. addMapping(e) {
  107663. return new Dl(yD(this.done, e), yD(this.undone, e), this.prevTime, this.prevUserEvent);
  107664. }
  107665. pop(e, n, r) {
  107666. let i = e == 0 ? this.done : this.undone;
  107667. if (i.length == 0)
  107668. return null;
  107669. let a = i[i.length - 1], o = a.selectionsAfter[0] || n.selection;
  107670. if (r && a.selectionsAfter.length)
  107671. return n.update({
  107672. selection: a.selectionsAfter[a.selectionsAfter.length - 1],
  107673. annotations: z4.of({ side: e, rest: VTt(i), selection: o }),
  107674. userEvent: e == 0 ? "select.undo" : "select.redo",
  107675. scrollIntoView: !0
  107676. });
  107677. if (a.changes) {
  107678. let s = i.length == 1 ? Uo : i.slice(0, i.length - 1);
  107679. return a.mapped && (s = yD(s, a.mapped)), n.update({
  107680. changes: a.changes,
  107681. selection: a.startSelection,
  107682. effects: a.effects,
  107683. annotations: z4.of({ side: e, rest: s, selection: o }),
  107684. filter: !1,
  107685. userEvent: e == 0 ? "undo" : "redo",
  107686. scrollIntoView: !0
  107687. });
  107688. } else
  107689. return null;
  107690. }
  107691. }
  107692. Dl.empty = /* @__PURE__ */ new Dl(Uo, Uo);
  107693. const QTt = [
  107694. { key: "Mod-z", run: Tge, preventDefault: !0 },
  107695. { key: "Mod-y", mac: "Mod-Shift-z", run: V4, preventDefault: !0 },
  107696. { linux: "Ctrl-Shift-z", run: V4, preventDefault: !0 },
  107697. { key: "Mod-u", run: kTt, preventDefault: !0 },
  107698. { key: "Alt-u", mac: "Mod-Shift-u", run: LTt, preventDefault: !0 }
  107699. ];
  107700. function Wm(t, e) {
  107701. return De.create(t.ranges.map(e), t.mainIndex);
  107702. }
  107703. function eu(t, e) {
  107704. return t.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
  107705. }
  107706. function nl({ state: t, dispatch: e }, n) {
  107707. let r = Wm(t.selection, n);
  107708. return r.eq(t.selection, !0) ? !1 : (e(eu(t, r)), !0);
  107709. }
  107710. function c$(t, e) {
  107711. return De.cursor(e ? t.to : t.from);
  107712. }
  107713. function Age(t, e) {
  107714. return nl(t, (n) => n.empty ? t.moveByChar(n, e) : c$(n, e));
  107715. }
  107716. function Gi(t) {
  107717. return t.textDirectionAt(t.state.selection.main.head) == ir.LTR;
  107718. }
  107719. const Ege = (t) => Age(t, !Gi(t)), Mge = (t) => Age(t, Gi(t));
  107720. function Ige(t, e) {
  107721. return nl(t, (n) => n.empty ? t.moveByGroup(n, e) : c$(n, e));
  107722. }
  107723. const HTt = (t) => Ige(t, !Gi(t)), GTt = (t) => Ige(t, Gi(t));
  107724. function jTt(t, e, n) {
  107725. if (e.type.prop(n))
  107726. return !0;
  107727. let r = e.to - e.from;
  107728. return r && (r > 2 || /[^\s,.;:]/.test(t.sliceDoc(e.from, e.to))) || e.firstChild;
  107729. }
  107730. function f$(t, e, n) {
  107731. let r = ni(t).resolveInner(e.head), i = n ? rn.closedBy : rn.openedBy;
  107732. for (let l = e.head; ; ) {
  107733. let u = n ? r.childAfter(l) : r.childBefore(l);
  107734. if (!u)
  107735. break;
  107736. jTt(t, u, i) ? r = u : l = n ? u.to : u.from;
  107737. }
  107738. let a = r.type.prop(i), o, s;
  107739. return a && (o = n ? Il(t, r.from, 1) : Il(t, r.to, -1)) && o.matched ? s = n ? o.end.to : o.end.from : s = n ? r.to : r.from, De.cursor(s, n ? -1 : 1);
  107740. }
  107741. const ZTt = (t) => nl(t, (e) => f$(t.state, e, !Gi(t))), UTt = (t) => nl(t, (e) => f$(t.state, e, Gi(t)));
  107742. function Dge(t, e) {
  107743. return nl(t, (n) => {
  107744. if (!n.empty)
  107745. return c$(n, e);
  107746. let r = t.moveVertically(n, e);
  107747. return r.head != n.head ? r : t.moveToLineBoundary(n, e);
  107748. });
  107749. }
  107750. const Rge = (t) => Dge(t, !1), kge = (t) => Dge(t, !0);
  107751. function Lge(t) {
  107752. let e = t.scrollDOM.clientHeight < t.scrollDOM.scrollHeight - 2, n = 0, r = 0, i;
  107753. if (e) {
  107754. for (let a of t.state.facet(rt.scrollMargins)) {
  107755. let o = a(t);
  107756. o != null && o.top && (n = Math.max(o == null ? void 0 : o.top, n)), o != null && o.bottom && (r = Math.max(o == null ? void 0 : o.bottom, r));
  107757. }
  107758. i = t.scrollDOM.clientHeight - n - r;
  107759. } else
  107760. i = (t.dom.ownerDocument.defaultView || window).innerHeight;
  107761. return {
  107762. marginTop: n,
  107763. marginBottom: r,
  107764. selfScroll: e,
  107765. height: Math.max(t.defaultLineHeight, i - 5)
  107766. };
  107767. }
  107768. function Nge(t, e) {
  107769. let n = Lge(t), { state: r } = t, i = Wm(r.selection, (o) => o.empty ? t.moveVertically(o, e, n.height) : c$(o, e));
  107770. if (i.eq(r.selection))
  107771. return !1;
  107772. let a;
  107773. if (n.selfScroll) {
  107774. let o = t.coordsAtPos(r.selection.main.head), s = t.scrollDOM.getBoundingClientRect(), l = s.top + n.marginTop, u = s.bottom - n.marginBottom;
  107775. o && o.top > l && o.bottom < u && (a = rt.scrollIntoView(i.main.head, { y: "start", yMargin: o.top - l }));
  107776. }
  107777. return t.dispatch(eu(r, i), { effects: a }), !0;
  107778. }
  107779. const mJ = (t) => Nge(t, !1), F4 = (t) => Nge(t, !0);
  107780. function Wf(t, e, n) {
  107781. let r = t.lineBlockAt(e.head), i = t.moveToLineBoundary(e, n);
  107782. if (i.head == e.head && i.head != (n ? r.to : r.from) && (i = t.moveToLineBoundary(e, n, !1)), !n && i.head == r.from && r.length) {
  107783. let a = /^\s*/.exec(t.state.sliceDoc(r.from, Math.min(r.from + 100, r.to)))[0].length;
  107784. a && e.head != r.from + a && (i = De.cursor(r.from + a));
  107785. }
  107786. return i;
  107787. }
  107788. const XTt = (t) => nl(t, (e) => Wf(t, e, !0)), YTt = (t) => nl(t, (e) => Wf(t, e, !1)), qTt = (t) => nl(t, (e) => Wf(t, e, !Gi(t))), KTt = (t) => nl(t, (e) => Wf(t, e, Gi(t))), JTt = (t) => nl(t, (e) => De.cursor(t.lineBlockAt(e.head).from, 1)), e2t = (t) => nl(t, (e) => De.cursor(t.lineBlockAt(e.head).to, -1));
  107789. function t2t(t, e, n) {
  107790. let r = !1, i = Wm(t.selection, (a) => {
  107791. let o = Il(t, a.head, -1) || Il(t, a.head, 1) || a.head > 0 && Il(t, a.head - 1, 1) || a.head < t.doc.length && Il(t, a.head + 1, -1);
  107792. if (!o || !o.end)
  107793. return a;
  107794. r = !0;
  107795. let s = o.start.from == a.head ? o.end.to : o.end.from;
  107796. return De.cursor(s);
  107797. });
  107798. return r ? (e(eu(t, i)), !0) : !1;
  107799. }
  107800. const n2t = ({ state: t, dispatch: e }) => t2t(t, e);
  107801. function gs(t, e) {
  107802. let n = Wm(t.state.selection, (r) => {
  107803. let i = e(r);
  107804. return De.range(r.anchor, i.head, i.goalColumn, i.bidiLevel || void 0);
  107805. });
  107806. return n.eq(t.state.selection) ? !1 : (t.dispatch(eu(t.state, n)), !0);
  107807. }
  107808. function Bge(t, e) {
  107809. return gs(t, (n) => t.moveByChar(n, e));
  107810. }
  107811. const zge = (t) => Bge(t, !Gi(t)), Vge = (t) => Bge(t, Gi(t));
  107812. function Fge(t, e) {
  107813. return gs(t, (n) => t.moveByGroup(n, e));
  107814. }
  107815. const r2t = (t) => Fge(t, !Gi(t)), i2t = (t) => Fge(t, Gi(t)), a2t = (t) => gs(t, (e) => f$(t.state, e, !Gi(t))), o2t = (t) => gs(t, (e) => f$(t.state, e, Gi(t)));
  107816. function Wge(t, e) {
  107817. return gs(t, (n) => t.moveVertically(n, e));
  107818. }
  107819. const Qge = (t) => Wge(t, !1), Hge = (t) => Wge(t, !0);
  107820. function Gge(t, e) {
  107821. return gs(t, (n) => t.moveVertically(n, e, Lge(t).height));
  107822. }
  107823. const yJ = (t) => Gge(t, !1), bJ = (t) => Gge(t, !0), s2t = (t) => gs(t, (e) => Wf(t, e, !0)), l2t = (t) => gs(t, (e) => Wf(t, e, !1)), u2t = (t) => gs(t, (e) => Wf(t, e, !Gi(t))), c2t = (t) => gs(t, (e) => Wf(t, e, Gi(t))), f2t = (t) => gs(t, (e) => De.cursor(t.lineBlockAt(e.head).from)), d2t = (t) => gs(t, (e) => De.cursor(t.lineBlockAt(e.head).to)), _J = ({ state: t, dispatch: e }) => (e(eu(t, { anchor: 0 })), !0), OJ = ({ state: t, dispatch: e }) => (e(eu(t, { anchor: t.doc.length })), !0), SJ = ({ state: t, dispatch: e }) => (e(eu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), xJ = ({ state: t, dispatch: e }) => (e(eu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), h2t = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), p2t = ({ state: t, dispatch: e }) => {
  107824. let n = d$(t).map(({ from: r, to: i }) => De.range(r, Math.min(i + 1, t.doc.length)));
  107825. return e(t.update({ selection: De.create(n), userEvent: "select" })), !0;
  107826. }, v2t = ({ state: t, dispatch: e }) => {
  107827. let n = Wm(t.selection, (r) => {
  107828. var i;
  107829. let a = ni(t).resolveStack(r.from, 1);
  107830. for (let o = a; o; o = o.next) {
  107831. let { node: s } = o;
  107832. if ((s.from < r.from && s.to >= r.to || s.to > r.to && s.from <= r.from) && (!((i = s.parent) === null || i === void 0) && i.parent))
  107833. return De.range(s.to, s.from);
  107834. }
  107835. return r;
  107836. });
  107837. return e(eu(t, n)), !0;
  107838. }, g2t = ({ state: t, dispatch: e }) => {
  107839. let n = t.selection, r = null;
  107840. return n.ranges.length > 1 ? r = De.create([n.main]) : n.main.empty || (r = De.create([De.cursor(n.main.head)])), r ? (e(eu(t, r)), !0) : !1;
  107841. };
  107842. function L1(t, e) {
  107843. if (t.state.readOnly)
  107844. return !1;
  107845. let n = "delete.selection", { state: r } = t, i = r.changeByRange((a) => {
  107846. let { from: o, to: s } = a;
  107847. if (o == s) {
  107848. let l = e(a);
  107849. l < o ? (n = "delete.backward", l = xx(t, l, !1)) : l > o && (n = "delete.forward", l = xx(t, l, !0)), o = Math.min(o, l), s = Math.max(s, l);
  107850. } else
  107851. o = xx(t, o, !1), s = xx(t, s, !0);
  107852. return o == s ? { range: a } : { changes: { from: o, to: s }, range: De.cursor(o, o < a.head ? -1 : 1) };
  107853. });
  107854. return i.changes.empty ? !1 : (t.dispatch(r.update(i, {
  107855. scrollIntoView: !0,
  107856. userEvent: n,
  107857. effects: n == "delete.selection" ? rt.announce.of(r.phrase("Selection deleted")) : void 0
  107858. })), !0);
  107859. }
  107860. function xx(t, e, n) {
  107861. if (t instanceof rt)
  107862. for (let r of t.state.facet(rt.atomicRanges).map((i) => i(t)))
  107863. r.between(e, e, (i, a) => {
  107864. i < e && a > e && (e = n ? a : i);
  107865. });
  107866. return e;
  107867. }
  107868. const jge = (t, e, n) => L1(t, (r) => {
  107869. let i = r.from, { state: a } = t, o = a.doc.lineAt(i), s, l;
  107870. if (n && !e && i > o.from && i < o.from + 200 && !/[^ \t]/.test(s = o.text.slice(0, i - o.from))) {
  107871. if (s[s.length - 1] == " ")
  107872. return i - 1;
  107873. let u = Fm(s, a.tabSize), c = u % NT(a) || NT(a);
  107874. for (let f = 0; f < c && s[s.length - 1 - f] == " "; f++)
  107875. i--;
  107876. l = i;
  107877. } else
  107878. l = wi(o.text, i - o.from, e, e) + o.from, l == i && o.number != (e ? a.doc.lines : 1) ? l += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(o.text.slice(l - o.from, i - o.from)) && (l = wi(o.text, l - o.from, !1, !1) + o.from);
  107879. return l;
  107880. }), W4 = (t) => jge(t, !1, !0), Zge = (t) => jge(t, !0, !1), Uge = (t, e) => L1(t, (n) => {
  107881. let r = n.head, { state: i } = t, a = i.doc.lineAt(r), o = i.charCategorizer(r);
  107882. for (let s = null; ; ) {
  107883. if (r == (e ? a.to : a.from)) {
  107884. r == n.head && a.number != (e ? i.doc.lines : 1) && (r += e ? 1 : -1);
  107885. break;
  107886. }
  107887. let l = wi(a.text, r - a.from, e) + a.from, u = a.text.slice(Math.min(r, l) - a.from, Math.max(r, l) - a.from), c = o(u);
  107888. if (s != null && c != s)
  107889. break;
  107890. (u != " " || r != n.head) && (s = c), r = l;
  107891. }
  107892. return r;
  107893. }), Xge = (t) => Uge(t, !1), m2t = (t) => Uge(t, !0), y2t = (t) => L1(t, (e) => {
  107894. let n = t.lineBlockAt(e.head).to;
  107895. return e.head < n ? n : Math.min(t.state.doc.length, e.head + 1);
  107896. }), b2t = (t) => L1(t, (e) => {
  107897. let n = t.moveToLineBoundary(e, !1).head;
  107898. return e.head > n ? n : Math.max(0, e.head - 1);
  107899. }), _2t = (t) => L1(t, (e) => {
  107900. let n = t.moveToLineBoundary(e, !0).head;
  107901. return e.head < n ? n : Math.min(t.state.doc.length, e.head + 1);
  107902. }), O2t = ({ state: t, dispatch: e }) => {
  107903. if (t.readOnly)
  107904. return !1;
  107905. let n = t.changeByRange((r) => ({
  107906. changes: { from: r.from, to: r.to, insert: xn.of(["", ""]) },
  107907. range: De.cursor(r.from)
  107908. }));
  107909. return e(t.update(n, { scrollIntoView: !0, userEvent: "input" })), !0;
  107910. }, S2t = ({ state: t, dispatch: e }) => {
  107911. if (t.readOnly)
  107912. return !1;
  107913. let n = t.changeByRange((r) => {
  107914. if (!r.empty || r.from == 0 || r.from == t.doc.length)
  107915. return { range: r };
  107916. let i = r.from, a = t.doc.lineAt(i), o = i == a.from ? i - 1 : wi(a.text, i - a.from, !1) + a.from, s = i == a.to ? i + 1 : wi(a.text, i - a.from, !0) + a.from;
  107917. return {
  107918. changes: { from: o, to: s, insert: t.doc.slice(i, s).append(t.doc.slice(o, i)) },
  107919. range: De.cursor(s)
  107920. };
  107921. });
  107922. return n.changes.empty ? !1 : (e(t.update(n, { scrollIntoView: !0, userEvent: "move.character" })), !0);
  107923. };
  107924. function d$(t) {
  107925. let e = [], n = -1;
  107926. for (let r of t.selection.ranges) {
  107927. let i = t.doc.lineAt(r.from), a = t.doc.lineAt(r.to);
  107928. if (!r.empty && r.to == a.from && (a = t.doc.lineAt(r.to - 1)), n >= i.number) {
  107929. let o = e[e.length - 1];
  107930. o.to = a.to, o.ranges.push(r);
  107931. } else
  107932. e.push({ from: i.from, to: a.to, ranges: [r] });
  107933. n = a.number + 1;
  107934. }
  107935. return e;
  107936. }
  107937. function Yge(t, e, n) {
  107938. if (t.readOnly)
  107939. return !1;
  107940. let r = [], i = [];
  107941. for (let a of d$(t)) {
  107942. if (n ? a.to == t.doc.length : a.from == 0)
  107943. continue;
  107944. let o = t.doc.lineAt(n ? a.to + 1 : a.from - 1), s = o.length + 1;
  107945. if (n) {
  107946. r.push({ from: a.to, to: o.to }, { from: a.from, insert: o.text + t.lineBreak });
  107947. for (let l of a.ranges)
  107948. i.push(De.range(Math.min(t.doc.length, l.anchor + s), Math.min(t.doc.length, l.head + s)));
  107949. } else {
  107950. r.push({ from: o.from, to: a.from }, { from: a.to, insert: t.lineBreak + o.text });
  107951. for (let l of a.ranges)
  107952. i.push(De.range(l.anchor - s, l.head - s));
  107953. }
  107954. }
  107955. return r.length ? (e(t.update({
  107956. changes: r,
  107957. scrollIntoView: !0,
  107958. selection: De.create(i, t.selection.mainIndex),
  107959. userEvent: "move.line"
  107960. })), !0) : !1;
  107961. }
  107962. const x2t = ({ state: t, dispatch: e }) => Yge(t, e, !1), w2t = ({ state: t, dispatch: e }) => Yge(t, e, !0);
  107963. function qge(t, e, n) {
  107964. if (t.readOnly)
  107965. return !1;
  107966. let r = [];
  107967. for (let i of d$(t))
  107968. n ? r.push({ from: i.from, insert: t.doc.slice(i.from, i.to) + t.lineBreak }) : r.push({ from: i.to, insert: t.lineBreak + t.doc.slice(i.from, i.to) });
  107969. return e(t.update({ changes: r, scrollIntoView: !0, userEvent: "input.copyline" })), !0;
  107970. }
  107971. const C2t = ({ state: t, dispatch: e }) => qge(t, e, !1), T2t = ({ state: t, dispatch: e }) => qge(t, e, !0), P2t = (t) => {
  107972. if (t.state.readOnly)
  107973. return !1;
  107974. let { state: e } = t, n = e.changes(d$(e).map(({ from: i, to: a }) => (i > 0 ? i-- : a < e.doc.length && a++, { from: i, to: a }))), r = Wm(e.selection, (i) => {
  107975. let a;
  107976. if (t.lineWrapping) {
  107977. let o = t.lineBlockAt(i.head), s = t.coordsAtPos(i.head, i.assoc || 1);
  107978. s && (a = o.bottom + t.documentTop - s.bottom + t.defaultLineHeight / 2);
  107979. }
  107980. return t.moveVertically(i, !0, a);
  107981. }).map(n);
  107982. return t.dispatch({ changes: n, selection: r, scrollIntoView: !0, userEvent: "delete.line" }), !0;
  107983. };
  107984. function $2t(t, e) {
  107985. if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1)))
  107986. return { from: e, to: e };
  107987. let n = ni(t).resolveInner(e), r = n.childBefore(e), i = n.childAfter(e), a;
  107988. return r && i && r.to <= e && i.from >= e && (a = r.type.prop(rn.closedBy)) && a.indexOf(i.name) > -1 && t.doc.lineAt(r.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(r.to, i.from)) ? { from: r.to, to: i.from } : null;
  107989. }
  107990. const A2t = /* @__PURE__ */ Kge(!1), E2t = /* @__PURE__ */ Kge(!0);
  107991. function Kge(t) {
  107992. return ({ state: e, dispatch: n }) => {
  107993. if (e.readOnly)
  107994. return !1;
  107995. let r = e.changeByRange((i) => {
  107996. let { from: a, to: o } = i, s = e.doc.lineAt(a), l = !t && a == o && $2t(e, a);
  107997. t && (a = o = (o <= s.to ? s : e.doc.lineAt(o)).to);
  107998. let u = new s$(e, { simulateBreak: a, simulateDoubleBreak: !!l }), c = gB(u, a);
  107999. for (c == null && (c = Fm(/^\s*/.exec(e.doc.lineAt(a).text)[0], e.tabSize)); o < s.to && /\s/.test(s.text[o - s.from]); )
  108000. o++;
  108001. l ? { from: a, to: o } = l : a > s.from && a < s.from + 100 && !/\S/.test(s.text.slice(0, a)) && (a = s.from);
  108002. let f = ["", C_(e, c)];
  108003. return l && f.push(C_(e, u.lineIndent(s.from, -1))), {
  108004. changes: { from: a, to: o, insert: xn.of(f) },
  108005. range: De.cursor(a + 1 + f[1].length)
  108006. };
  108007. });
  108008. return n(e.update(r, { scrollIntoView: !0, userEvent: "input" })), !0;
  108009. };
  108010. }
  108011. function SB(t, e) {
  108012. let n = -1;
  108013. return t.changeByRange((r) => {
  108014. let i = [];
  108015. for (let o = r.from; o <= r.to; ) {
  108016. let s = t.doc.lineAt(o);
  108017. s.number > n && (r.empty || r.to > s.from) && (e(s, i, r), n = s.number), o = s.to + 1;
  108018. }
  108019. let a = t.changes(i);
  108020. return {
  108021. changes: i,
  108022. range: De.range(a.mapPos(r.anchor, 1), a.mapPos(r.head, 1))
  108023. };
  108024. });
  108025. }
  108026. const M2t = ({ state: t, dispatch: e }) => {
  108027. if (t.readOnly)
  108028. return !1;
  108029. let n = /* @__PURE__ */ Object.create(null), r = new s$(t, { overrideIndentation: (a) => {
  108030. let o = n[a];
  108031. return o ?? -1;
  108032. } }), i = SB(t, (a, o, s) => {
  108033. let l = gB(r, a.from);
  108034. if (l == null)
  108035. return;
  108036. /\S/.test(a.text) || (l = 0);
  108037. let u = /^\s*/.exec(a.text)[0], c = C_(t, l);
  108038. (u != c || s.from < a.from + u.length) && (n[a.from] = l, o.push({ from: a.from, to: a.from + u.length, insert: c }));
  108039. });
  108040. return i.changes.empty || e(t.update(i, { userEvent: "indent" })), !0;
  108041. }, Jge = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(SB(t, (n, r) => {
  108042. r.push({ from: n.from, insert: t.facet(D1) });
  108043. }), { userEvent: "input.indent" })), !0), eme = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(SB(t, (n, r) => {
  108044. let i = /^\s*/.exec(n.text)[0];
  108045. if (!i)
  108046. return;
  108047. let a = Fm(i, t.tabSize), o = 0, s = C_(t, Math.max(0, a - NT(t)));
  108048. for (; o < i.length && o < s.length && i.charCodeAt(o) == s.charCodeAt(o); )
  108049. o++;
  108050. r.push({ from: n.from + o, to: n.from + i.length, insert: s.slice(o) });
  108051. }), { userEvent: "delete.dedent" })), !0), I2t = (t) => (t.setTabFocusMode(), !0), D2t = [
  108052. { key: "Ctrl-b", run: Ege, shift: zge, preventDefault: !0 },
  108053. { key: "Ctrl-f", run: Mge, shift: Vge },
  108054. { key: "Ctrl-p", run: Rge, shift: Qge },
  108055. { key: "Ctrl-n", run: kge, shift: Hge },
  108056. { key: "Ctrl-a", run: JTt, shift: f2t },
  108057. { key: "Ctrl-e", run: e2t, shift: d2t },
  108058. { key: "Ctrl-d", run: Zge },
  108059. { key: "Ctrl-h", run: W4 },
  108060. { key: "Ctrl-k", run: y2t },
  108061. { key: "Ctrl-Alt-h", run: Xge },
  108062. { key: "Ctrl-o", run: O2t },
  108063. { key: "Ctrl-t", run: S2t },
  108064. { key: "Ctrl-v", run: F4 }
  108065. ], R2t = /* @__PURE__ */ [
  108066. { key: "ArrowLeft", run: Ege, shift: zge, preventDefault: !0 },
  108067. { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: HTt, shift: r2t, preventDefault: !0 },
  108068. { mac: "Cmd-ArrowLeft", run: qTt, shift: u2t, preventDefault: !0 },
  108069. { key: "ArrowRight", run: Mge, shift: Vge, preventDefault: !0 },
  108070. { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: GTt, shift: i2t, preventDefault: !0 },
  108071. { mac: "Cmd-ArrowRight", run: KTt, shift: c2t, preventDefault: !0 },
  108072. { key: "ArrowUp", run: Rge, shift: Qge, preventDefault: !0 },
  108073. { mac: "Cmd-ArrowUp", run: _J, shift: SJ },
  108074. { mac: "Ctrl-ArrowUp", run: mJ, shift: yJ },
  108075. { key: "ArrowDown", run: kge, shift: Hge, preventDefault: !0 },
  108076. { mac: "Cmd-ArrowDown", run: OJ, shift: xJ },
  108077. { mac: "Ctrl-ArrowDown", run: F4, shift: bJ },
  108078. { key: "PageUp", run: mJ, shift: yJ },
  108079. { key: "PageDown", run: F4, shift: bJ },
  108080. { key: "Home", run: YTt, shift: l2t, preventDefault: !0 },
  108081. { key: "Mod-Home", run: _J, shift: SJ },
  108082. { key: "End", run: XTt, shift: s2t, preventDefault: !0 },
  108083. { key: "Mod-End", run: OJ, shift: xJ },
  108084. { key: "Enter", run: A2t },
  108085. { key: "Mod-a", run: h2t },
  108086. { key: "Backspace", run: W4, shift: W4 },
  108087. { key: "Delete", run: Zge },
  108088. { key: "Mod-Backspace", mac: "Alt-Backspace", run: Xge },
  108089. { key: "Mod-Delete", mac: "Alt-Delete", run: m2t },
  108090. { mac: "Mod-Backspace", run: b2t },
  108091. { mac: "Mod-Delete", run: _2t }
  108092. ].concat(/* @__PURE__ */ D2t.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), k2t = /* @__PURE__ */ [
  108093. { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: ZTt, shift: a2t },
  108094. { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: UTt, shift: o2t },
  108095. { key: "Alt-ArrowUp", run: x2t },
  108096. { key: "Shift-Alt-ArrowUp", run: C2t },
  108097. { key: "Alt-ArrowDown", run: w2t },
  108098. { key: "Shift-Alt-ArrowDown", run: T2t },
  108099. { key: "Escape", run: g2t },
  108100. { key: "Mod-Enter", run: E2t },
  108101. { key: "Alt-l", mac: "Ctrl-l", run: p2t },
  108102. { key: "Mod-i", run: v2t, preventDefault: !0 },
  108103. { key: "Mod-[", run: eme },
  108104. { key: "Mod-]", run: Jge },
  108105. { key: "Mod-Alt-\\", run: M2t },
  108106. { key: "Shift-Mod-k", run: P2t },
  108107. { key: "Shift-Mod-\\", run: n2t },
  108108. { key: "Mod-/", run: CTt },
  108109. { key: "Alt-A", run: PTt },
  108110. { key: "Ctrl-m", mac: "Shift-Alt-m", run: I2t }
  108111. ].concat(R2t), L2t = { key: "Tab", run: Jge, shift: eme };
  108112. function Yn() {
  108113. var t = arguments[0];
  108114. typeof t == "string" && (t = document.createElement(t));
  108115. var e = 1, n = arguments[1];
  108116. if (n && typeof n == "object" && n.nodeType == null && !Array.isArray(n)) {
  108117. for (var r in n) if (Object.prototype.hasOwnProperty.call(n, r)) {
  108118. var i = n[r];
  108119. typeof i == "string" ? t.setAttribute(r, i) : i != null && (t[r] = i);
  108120. }
  108121. e++;
  108122. }
  108123. for (; e < arguments.length; e++) tme(t, arguments[e]);
  108124. return t;
  108125. }
  108126. function tme(t, e) {
  108127. if (typeof e == "string")
  108128. t.appendChild(document.createTextNode(e));
  108129. else if (e != null) if (e.nodeType != null)
  108130. t.appendChild(e);
  108131. else if (Array.isArray(e))
  108132. for (var n = 0; n < e.length; n++) tme(t, e[n]);
  108133. else
  108134. throw new RangeError("Unsupported child node: " + e);
  108135. }
  108136. const wJ = typeof String.prototype.normalize == "function" ? (t) => t.normalize("NFKD") : (t) => t;
  108137. class nm {
  108138. /**
  108139. Create a text cursor. The query is the search string, `from` to
  108140. `to` provides the region to search.
  108141. When `normalize` is given, it will be called, on both the query
  108142. string and the content it is matched against, before comparing.
  108143. You can, for example, create a case-insensitive search by
  108144. passing `s => s.toLowerCase()`.
  108145. Text is always normalized with
  108146. [`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
  108147. (when supported).
  108148. */
  108149. constructor(e, n, r = 0, i = e.length, a, o) {
  108150. this.test = o, this.value = { from: 0, to: 0 }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(r, i), this.bufferStart = r, this.normalize = a ? (s) => a(wJ(s)) : wJ, this.query = this.normalize(n);
  108151. }
  108152. peek() {
  108153. if (this.bufferPos == this.buffer.length) {
  108154. if (this.bufferStart += this.buffer.length, this.iter.next(), this.iter.done)
  108155. return -1;
  108156. this.bufferPos = 0, this.buffer = this.iter.value;
  108157. }
  108158. return bi(this.buffer, this.bufferPos);
  108159. }
  108160. /**
  108161. Look for the next match. Updates the iterator's
  108162. [`value`](https://codemirror.net/6/docs/ref/#search.SearchCursor.value) and
  108163. [`done`](https://codemirror.net/6/docs/ref/#search.SearchCursor.done) properties. Should be called
  108164. at least once before using the cursor.
  108165. */
  108166. next() {
  108167. for (; this.matches.length; )
  108168. this.matches.pop();
  108169. return this.nextOverlapping();
  108170. }
  108171. /**
  108172. The `next` method will ignore matches that partially overlap a
  108173. previous match. This method behaves like `next`, but includes
  108174. such matches.
  108175. */
  108176. nextOverlapping() {
  108177. for (; ; ) {
  108178. let e = this.peek();
  108179. if (e < 0)
  108180. return this.done = !0, this;
  108181. let n = K6(e), r = this.bufferStart + this.bufferPos;
  108182. this.bufferPos += jo(e);
  108183. let i = this.normalize(n);
  108184. for (let a = 0, o = r; ; a++) {
  108185. let s = i.charCodeAt(a), l = this.match(s, o, this.bufferPos + this.bufferStart);
  108186. if (a == i.length - 1) {
  108187. if (l)
  108188. return this.value = l, this;
  108189. break;
  108190. }
  108191. o == r && a < n.length && n.charCodeAt(a) == s && o++;
  108192. }
  108193. }
  108194. }
  108195. match(e, n, r) {
  108196. let i = null;
  108197. for (let a = 0; a < this.matches.length; a += 2) {
  108198. let o = this.matches[a], s = !1;
  108199. this.query.charCodeAt(o) == e && (o == this.query.length - 1 ? i = { from: this.matches[a + 1], to: r } : (this.matches[a]++, s = !0)), s || (this.matches.splice(a, 2), a -= 2);
  108200. }
  108201. return this.query.charCodeAt(0) == e && (this.query.length == 1 ? i = { from: n, to: r } : this.matches.push(1, n)), i && this.test && !this.test(i.from, i.to, this.buffer, this.bufferStart) && (i = null), i;
  108202. }
  108203. }
  108204. typeof Symbol < "u" && (nm.prototype[Symbol.iterator] = function() {
  108205. return this;
  108206. });
  108207. const nme = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, xB = "gm" + (/x/.unicode == null ? "" : "u");
  108208. class rme {
  108209. /**
  108210. Create a cursor that will search the given range in the given
  108211. document. `query` should be the raw pattern (as you'd pass it to
  108212. `new RegExp`).
  108213. */
  108214. constructor(e, n, r, i = 0, a = e.length) {
  108215. if (this.text = e, this.to = a, this.curLine = "", this.done = !1, this.value = nme, /\\[sWDnr]|\n|\r|\[\^/.test(n))
  108216. return new ime(e, n, r, i, a);
  108217. this.re = new RegExp(n, xB + (r != null && r.ignoreCase ? "i" : "")), this.test = r == null ? void 0 : r.test, this.iter = e.iter();
  108218. let o = e.lineAt(i);
  108219. this.curLineStart = o.from, this.matchPos = FT(e, i), this.getLine(this.curLineStart);
  108220. }
  108221. getLine(e) {
  108222. this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
  108223. }
  108224. nextLine() {
  108225. this.curLineStart = this.curLineStart + this.curLine.length + 1, this.curLineStart > this.to ? this.curLine = "" : this.getLine(0);
  108226. }
  108227. /**
  108228. Move to the next match, if there is one.
  108229. */
  108230. next() {
  108231. for (let e = this.matchPos - this.curLineStart; ; ) {
  108232. this.re.lastIndex = e;
  108233. let n = this.matchPos <= this.to && this.re.exec(this.curLine);
  108234. if (n) {
  108235. let r = this.curLineStart + n.index, i = r + n[0].length;
  108236. if (this.matchPos = FT(this.text, i + (r == i ? 1 : 0)), r == this.curLineStart + this.curLine.length && this.nextLine(), (r < i || r > this.value.to) && (!this.test || this.test(r, i, n)))
  108237. return this.value = { from: r, to: i, match: n }, this;
  108238. e = this.matchPos - this.curLineStart;
  108239. } else if (this.curLineStart + this.curLine.length < this.to)
  108240. this.nextLine(), e = 0;
  108241. else
  108242. return this.done = !0, this;
  108243. }
  108244. }
  108245. }
  108246. const bD = /* @__PURE__ */ new WeakMap();
  108247. class sg {
  108248. constructor(e, n) {
  108249. this.from = e, this.text = n;
  108250. }
  108251. get to() {
  108252. return this.from + this.text.length;
  108253. }
  108254. static get(e, n, r) {
  108255. let i = bD.get(e);
  108256. if (!i || i.from >= r || i.to <= n) {
  108257. let s = new sg(n, e.sliceString(n, r));
  108258. return bD.set(e, s), s;
  108259. }
  108260. if (i.from == n && i.to == r)
  108261. return i;
  108262. let { text: a, from: o } = i;
  108263. return o > n && (a = e.sliceString(n, o) + a, o = n), i.to < r && (a += e.sliceString(i.to, r)), bD.set(e, new sg(o, a)), new sg(n, a.slice(n - o, r - o));
  108264. }
  108265. }
  108266. class ime {
  108267. constructor(e, n, r, i, a) {
  108268. this.text = e, this.to = a, this.done = !1, this.value = nme, this.matchPos = FT(e, i), this.re = new RegExp(n, xB + (r != null && r.ignoreCase ? "i" : "")), this.test = r == null ? void 0 : r.test, this.flat = sg.get(e, i, this.chunkEnd(
  108269. i + 5e3
  108270. /* Chunk.Base */
  108271. ));
  108272. }
  108273. chunkEnd(e) {
  108274. return e >= this.to ? this.to : this.text.lineAt(e).to;
  108275. }
  108276. next() {
  108277. for (; ; ) {
  108278. let e = this.re.lastIndex = this.matchPos - this.flat.from, n = this.re.exec(this.flat.text);
  108279. if (n && !n[0] && n.index == e && (this.re.lastIndex = e + 1, n = this.re.exec(this.flat.text)), n) {
  108280. let r = this.flat.from + n.index, i = r + n[0].length;
  108281. if ((this.flat.to >= this.to || n.index + n[0].length <= this.flat.text.length - 10) && (!this.test || this.test(r, i, n)))
  108282. return this.value = { from: r, to: i, match: n }, this.matchPos = FT(this.text, i + (r == i ? 1 : 0)), this;
  108283. }
  108284. if (this.flat.to == this.to)
  108285. return this.done = !0, this;
  108286. this.flat = sg.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
  108287. }
  108288. }
  108289. }
  108290. typeof Symbol < "u" && (rme.prototype[Symbol.iterator] = ime.prototype[Symbol.iterator] = function() {
  108291. return this;
  108292. });
  108293. function N2t(t) {
  108294. try {
  108295. return new RegExp(t, xB), !0;
  108296. } catch {
  108297. return !1;
  108298. }
  108299. }
  108300. function FT(t, e) {
  108301. if (e >= t.length)
  108302. return e;
  108303. let n = t.lineAt(e), r;
  108304. for (; e < n.to && (r = n.text.charCodeAt(e - n.from)) >= 56320 && r < 57344; )
  108305. e++;
  108306. return e;
  108307. }
  108308. function Q4(t) {
  108309. let e = String(t.state.doc.lineAt(t.state.selection.main.head).number), n = Yn("input", { class: "cm-textfield", name: "line", value: e }), r = Yn("form", {
  108310. class: "cm-gotoLine",
  108311. onkeydown: (a) => {
  108312. a.keyCode == 27 ? (a.preventDefault(), t.dispatch({ effects: WT.of(!1) }), t.focus()) : a.keyCode == 13 && (a.preventDefault(), i());
  108313. },
  108314. onsubmit: (a) => {
  108315. a.preventDefault(), i();
  108316. }
  108317. }, Yn("label", t.state.phrase("Go to line"), ": ", n), " ", Yn("button", { class: "cm-button", type: "submit" }, t.state.phrase("go")));
  108318. function i() {
  108319. let a = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);
  108320. if (!a)
  108321. return;
  108322. let { state: o } = t, s = o.doc.lineAt(o.selection.main.head), [, l, u, c, f] = a, d = c ? +c.slice(1) : 0, h = u ? +u : s.number;
  108323. if (u && f) {
  108324. let g = h / 100;
  108325. l && (g = g * (l == "-" ? -1 : 1) + s.number / o.doc.lines), h = Math.round(o.doc.lines * g);
  108326. } else u && l && (h = h * (l == "-" ? -1 : 1) + s.number);
  108327. let p = o.doc.line(Math.max(1, Math.min(o.doc.lines, h))), v = De.cursor(p.from + Math.max(0, Math.min(d, p.length)));
  108328. t.dispatch({
  108329. effects: [WT.of(!1), rt.scrollIntoView(v.from, { y: "center" })],
  108330. selection: v
  108331. }), t.focus();
  108332. }
  108333. return { dom: r };
  108334. }
  108335. const WT = /* @__PURE__ */ zt.define(), CJ = /* @__PURE__ */ fi.define({
  108336. create() {
  108337. return !0;
  108338. },
  108339. update(t, e) {
  108340. for (let n of e.effects)
  108341. n.is(WT) && (t = n.value);
  108342. return t;
  108343. },
  108344. provide: (t) => S_.from(t, (e) => e ? Q4 : null)
  108345. }), B2t = (t) => {
  108346. let e = O_(t, Q4);
  108347. if (!e) {
  108348. let n = [WT.of(!0)];
  108349. t.state.field(CJ, !1) == null && n.push(zt.appendConfig.of([CJ, z2t])), t.dispatch({ effects: n }), e = O_(t, Q4);
  108350. }
  108351. return e && e.dom.querySelector("input").select(), !0;
  108352. }, z2t = /* @__PURE__ */ rt.baseTheme({
  108353. ".cm-panel.cm-gotoLine": {
  108354. padding: "2px 6px 4px",
  108355. "& label": { fontSize: "80%" }
  108356. }
  108357. }), V2t = {
  108358. highlightWordAroundCursor: !1,
  108359. minSelectionLength: 1,
  108360. maxMatches: 100,
  108361. wholeWords: !1
  108362. }, F2t = /* @__PURE__ */ ut.define({
  108363. combine(t) {
  108364. return Kl(t, V2t, {
  108365. highlightWordAroundCursor: (e, n) => e || n,
  108366. minSelectionLength: Math.min,
  108367. maxMatches: Math.min
  108368. });
  108369. }
  108370. });
  108371. function W2t(t) {
  108372. return [Z2t, j2t];
  108373. }
  108374. const Q2t = /* @__PURE__ */ pt.mark({ class: "cm-selectionMatch" }), H2t = /* @__PURE__ */ pt.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
  108375. function TJ(t, e, n, r) {
  108376. return (n == 0 || t(e.sliceDoc(n - 1, n)) != lr.Word) && (r == e.doc.length || t(e.sliceDoc(r, r + 1)) != lr.Word);
  108377. }
  108378. function G2t(t, e, n, r) {
  108379. return t(e.sliceDoc(n, n + 1)) == lr.Word && t(e.sliceDoc(r - 1, r)) == lr.Word;
  108380. }
  108381. const j2t = /* @__PURE__ */ Ir.fromClass(class {
  108382. constructor(t) {
  108383. this.decorations = this.getDeco(t);
  108384. }
  108385. update(t) {
  108386. (t.selectionSet || t.docChanged || t.viewportChanged) && (this.decorations = this.getDeco(t.view));
  108387. }
  108388. getDeco(t) {
  108389. let e = t.state.facet(F2t), { state: n } = t, r = n.selection;
  108390. if (r.ranges.length > 1)
  108391. return pt.none;
  108392. let i = r.main, a, o = null;
  108393. if (i.empty) {
  108394. if (!e.highlightWordAroundCursor)
  108395. return pt.none;
  108396. let l = n.wordAt(i.head);
  108397. if (!l)
  108398. return pt.none;
  108399. o = n.charCategorizer(i.head), a = n.sliceDoc(l.from, l.to);
  108400. } else {
  108401. let l = i.to - i.from;
  108402. if (l < e.minSelectionLength || l > 200)
  108403. return pt.none;
  108404. if (e.wholeWords) {
  108405. if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(TJ(o, n, i.from, i.to) && G2t(o, n, i.from, i.to)))
  108406. return pt.none;
  108407. } else if (a = n.sliceDoc(i.from, i.to), !a)
  108408. return pt.none;
  108409. }
  108410. let s = [];
  108411. for (let l of t.visibleRanges) {
  108412. let u = new nm(n.doc, a, l.from, l.to);
  108413. for (; !u.next().done; ) {
  108414. let { from: c, to: f } = u.value;
  108415. if ((!o || TJ(o, n, c, f)) && (i.empty && c <= i.from && f >= i.to ? s.push(H2t.range(c, f)) : (c >= i.to || f <= i.from) && s.push(Q2t.range(c, f)), s.length > e.maxMatches))
  108416. return pt.none;
  108417. }
  108418. }
  108419. return pt.set(s);
  108420. }
  108421. }, {
  108422. decorations: (t) => t.decorations
  108423. }), Z2t = /* @__PURE__ */ rt.baseTheme({
  108424. ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
  108425. ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
  108426. }), U2t = ({ state: t, dispatch: e }) => {
  108427. let { selection: n } = t, r = De.create(n.ranges.map((i) => t.wordAt(i.head) || De.cursor(i.head)), n.mainIndex);
  108428. return r.eq(n) ? !1 : (e(t.update({ selection: r })), !0);
  108429. };
  108430. function X2t(t, e) {
  108431. let { main: n, ranges: r } = t.selection, i = t.wordAt(n.head), a = i && i.from == n.from && i.to == n.to;
  108432. for (let o = !1, s = new nm(t.doc, e, r[r.length - 1].to); ; )
  108433. if (s.next(), s.done) {
  108434. if (o)
  108435. return null;
  108436. s = new nm(t.doc, e, 0, Math.max(0, r[r.length - 1].from - 1)), o = !0;
  108437. } else {
  108438. if (o && r.some((l) => l.from == s.value.from))
  108439. continue;
  108440. if (a) {
  108441. let l = t.wordAt(s.value.from);
  108442. if (!l || l.from != s.value.from || l.to != s.value.to)
  108443. continue;
  108444. }
  108445. return s.value;
  108446. }
  108447. }
  108448. const Y2t = ({ state: t, dispatch: e }) => {
  108449. let { ranges: n } = t.selection;
  108450. if (n.some((a) => a.from === a.to))
  108451. return U2t({ state: t, dispatch: e });
  108452. let r = t.sliceDoc(n[0].from, n[0].to);
  108453. if (t.selection.ranges.some((a) => t.sliceDoc(a.from, a.to) != r))
  108454. return !1;
  108455. let i = X2t(t, r);
  108456. return i ? (e(t.update({
  108457. selection: t.selection.addRange(De.range(i.from, i.to), !1),
  108458. effects: rt.scrollIntoView(i.to)
  108459. })), !0) : !1;
  108460. }, Qm = /* @__PURE__ */ ut.define({
  108461. combine(t) {
  108462. return Kl(t, {
  108463. top: !1,
  108464. caseSensitive: !1,
  108465. literal: !1,
  108466. regexp: !1,
  108467. wholeWord: !1,
  108468. createPanel: (e) => new lPt(e),
  108469. scrollToMatch: (e) => rt.scrollIntoView(e)
  108470. });
  108471. }
  108472. });
  108473. class ame {
  108474. /**
  108475. Create a query object.
  108476. */
  108477. constructor(e) {
  108478. this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || N2t(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord;
  108479. }
  108480. /**
  108481. @internal
  108482. */
  108483. unquote(e) {
  108484. return this.literal ? e : e.replace(/\\([nrt\\])/g, (n, r) => r == "n" ? `
  108485. ` : r == "r" ? "\r" : r == "t" ? " " : "\\");
  108486. }
  108487. /**
  108488. Compare this query to another query.
  108489. */
  108490. eq(e) {
  108491. return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord;
  108492. }
  108493. /**
  108494. @internal
  108495. */
  108496. create() {
  108497. return this.regexp ? new ePt(this) : new K2t(this);
  108498. }
  108499. /**
  108500. Get a search cursor for this query, searching through the given
  108501. range in the given state.
  108502. */
  108503. getCursor(e, n = 0, r) {
  108504. let i = e.doc ? e : cn.create({ doc: e });
  108505. return r == null && (r = i.doc.length), this.regexp ? Tv(this, i, n, r) : Cv(this, i, n, r);
  108506. }
  108507. }
  108508. class ome {
  108509. constructor(e) {
  108510. this.spec = e;
  108511. }
  108512. }
  108513. function Cv(t, e, n, r) {
  108514. return new nm(e.doc, t.unquoted, n, r, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? q2t(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
  108515. }
  108516. function q2t(t, e) {
  108517. return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = t.sliceString(a, Math.min(t.length, r + 2))), (e(QT(i, n - a)) != lr.Word || e(HT(i, n - a)) != lr.Word) && (e(HT(i, r - a)) != lr.Word || e(QT(i, r - a)) != lr.Word));
  108518. }
  108519. class K2t extends ome {
  108520. constructor(e) {
  108521. super(e);
  108522. }
  108523. nextMatch(e, n, r) {
  108524. let i = Cv(this.spec, e, r, e.doc.length).nextOverlapping();
  108525. return i.done && (i = Cv(this.spec, e, 0, n).nextOverlapping()), i.done ? null : i.value;
  108526. }
  108527. // Searching in reverse is, rather than implementing an inverted search
  108528. // cursor, done by scanning chunk after chunk forward.
  108529. prevMatchInRange(e, n, r) {
  108530. for (let i = r; ; ) {
  108531. let a = Math.max(n, i - 1e4 - this.spec.unquoted.length), o = Cv(this.spec, e, a, i), s = null;
  108532. for (; !o.nextOverlapping().done; )
  108533. s = o.value;
  108534. if (s)
  108535. return s;
  108536. if (a == n)
  108537. return null;
  108538. i -= 1e4;
  108539. }
  108540. }
  108541. prevMatch(e, n, r) {
  108542. return this.prevMatchInRange(e, 0, n) || this.prevMatchInRange(e, r, e.doc.length);
  108543. }
  108544. getReplacement(e) {
  108545. return this.spec.unquote(this.spec.replace);
  108546. }
  108547. matchAll(e, n) {
  108548. let r = Cv(this.spec, e, 0, e.doc.length), i = [];
  108549. for (; !r.next().done; ) {
  108550. if (i.length >= n)
  108551. return null;
  108552. i.push(r.value);
  108553. }
  108554. return i;
  108555. }
  108556. highlight(e, n, r, i) {
  108557. let a = Cv(this.spec, e, Math.max(0, n - this.spec.unquoted.length), Math.min(r + this.spec.unquoted.length, e.doc.length));
  108558. for (; !a.next().done; )
  108559. i(a.value.from, a.value.to);
  108560. }
  108561. }
  108562. function Tv(t, e, n, r) {
  108563. return new rme(e.doc, t.search, {
  108564. ignoreCase: !t.caseSensitive,
  108565. test: t.wholeWord ? J2t(e.charCategorizer(e.selection.main.head)) : void 0
  108566. }, n, r);
  108567. }
  108568. function QT(t, e) {
  108569. return t.slice(wi(t, e, !1), e);
  108570. }
  108571. function HT(t, e) {
  108572. return t.slice(e, wi(t, e));
  108573. }
  108574. function J2t(t) {
  108575. return (e, n, r) => !r[0].length || (t(QT(r.input, r.index)) != lr.Word || t(HT(r.input, r.index)) != lr.Word) && (t(HT(r.input, r.index + r[0].length)) != lr.Word || t(QT(r.input, r.index + r[0].length)) != lr.Word);
  108576. }
  108577. class ePt extends ome {
  108578. nextMatch(e, n, r) {
  108579. let i = Tv(this.spec, e, r, e.doc.length).next();
  108580. return i.done && (i = Tv(this.spec, e, 0, n).next()), i.done ? null : i.value;
  108581. }
  108582. prevMatchInRange(e, n, r) {
  108583. for (let i = 1; ; i++) {
  108584. let a = Math.max(
  108585. n,
  108586. r - i * 1e4
  108587. /* FindPrev.ChunkSize */
  108588. ), o = Tv(this.spec, e, a, r), s = null;
  108589. for (; !o.next().done; )
  108590. s = o.value;
  108591. if (s && (a == n || s.from > a + 10))
  108592. return s;
  108593. if (a == n)
  108594. return null;
  108595. }
  108596. }
  108597. prevMatch(e, n, r) {
  108598. return this.prevMatchInRange(e, 0, n) || this.prevMatchInRange(e, r, e.doc.length);
  108599. }
  108600. getReplacement(e) {
  108601. return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g, (n, r) => r == "$" ? "$" : r == "&" ? e.match[0] : r != "0" && +r < e.match.length ? e.match[r] : n);
  108602. }
  108603. matchAll(e, n) {
  108604. let r = Tv(this.spec, e, 0, e.doc.length), i = [];
  108605. for (; !r.next().done; ) {
  108606. if (i.length >= n)
  108607. return null;
  108608. i.push(r.value);
  108609. }
  108610. return i;
  108611. }
  108612. highlight(e, n, r, i) {
  108613. let a = Tv(this.spec, e, Math.max(
  108614. 0,
  108615. n - 250
  108616. /* RegExp.HighlightMargin */
  108617. ), Math.min(r + 250, e.doc.length));
  108618. for (; !a.next().done; )
  108619. i(a.value.from, a.value.to);
  108620. }
  108621. }
  108622. const T_ = /* @__PURE__ */ zt.define(), wB = /* @__PURE__ */ zt.define(), uf = /* @__PURE__ */ fi.define({
  108623. create(t) {
  108624. return new _D(H4(t).create(), null);
  108625. },
  108626. update(t, e) {
  108627. for (let n of e.effects)
  108628. n.is(T_) ? t = new _D(n.value.create(), t.panel) : n.is(wB) && (t = new _D(t.query, n.value ? CB : null));
  108629. return t;
  108630. },
  108631. provide: (t) => S_.from(t, (e) => e.panel)
  108632. });
  108633. class _D {
  108634. constructor(e, n) {
  108635. this.query = e, this.panel = n;
  108636. }
  108637. }
  108638. const tPt = /* @__PURE__ */ pt.mark({ class: "cm-searchMatch" }), nPt = /* @__PURE__ */ pt.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), rPt = /* @__PURE__ */ Ir.fromClass(class {
  108639. constructor(t) {
  108640. this.view = t, this.decorations = this.highlight(t.state.field(uf));
  108641. }
  108642. update(t) {
  108643. let e = t.state.field(uf);
  108644. (e != t.startState.field(uf) || t.docChanged || t.selectionSet || t.viewportChanged) && (this.decorations = this.highlight(e));
  108645. }
  108646. highlight({ query: t, panel: e }) {
  108647. if (!e || !t.spec.valid)
  108648. return pt.none;
  108649. let { view: n } = this, r = new wf();
  108650. for (let i = 0, a = n.visibleRanges, o = a.length; i < o; i++) {
  108651. let { from: s, to: l } = a[i];
  108652. for (; i < o - 1 && l > a[i + 1].from - 2 * 250; )
  108653. l = a[++i].to;
  108654. t.highlight(n.state, s, l, (u, c) => {
  108655. let f = n.state.selection.ranges.some((d) => d.from == u && d.to == c);
  108656. r.add(u, c, f ? nPt : tPt);
  108657. });
  108658. }
  108659. return r.finish();
  108660. }
  108661. }, {
  108662. decorations: (t) => t.decorations
  108663. });
  108664. function N1(t) {
  108665. return (e) => {
  108666. let n = e.state.field(uf, !1);
  108667. return n && n.query.spec.valid ? t(e, n) : ume(e);
  108668. };
  108669. }
  108670. const GT = /* @__PURE__ */ N1((t, { query: e }) => {
  108671. let { to: n } = t.state.selection.main, r = e.nextMatch(t.state, n, n);
  108672. if (!r)
  108673. return !1;
  108674. let i = De.single(r.from, r.to), a = t.state.facet(Qm);
  108675. return t.dispatch({
  108676. selection: i,
  108677. effects: [TB(t, r), a.scrollToMatch(i.main, t)],
  108678. userEvent: "select.search"
  108679. }), lme(t), !0;
  108680. }), jT = /* @__PURE__ */ N1((t, { query: e }) => {
  108681. let { state: n } = t, { from: r } = n.selection.main, i = e.prevMatch(n, r, r);
  108682. if (!i)
  108683. return !1;
  108684. let a = De.single(i.from, i.to), o = t.state.facet(Qm);
  108685. return t.dispatch({
  108686. selection: a,
  108687. effects: [TB(t, i), o.scrollToMatch(a.main, t)],
  108688. userEvent: "select.search"
  108689. }), lme(t), !0;
  108690. }), iPt = /* @__PURE__ */ N1((t, { query: e }) => {
  108691. let n = e.matchAll(t.state, 1e3);
  108692. return !n || !n.length ? !1 : (t.dispatch({
  108693. selection: De.create(n.map((r) => De.range(r.from, r.to))),
  108694. userEvent: "select.search.matches"
  108695. }), !0);
  108696. }), aPt = ({ state: t, dispatch: e }) => {
  108697. let n = t.selection;
  108698. if (n.ranges.length > 1 || n.main.empty)
  108699. return !1;
  108700. let { from: r, to: i } = n.main, a = [], o = 0;
  108701. for (let s = new nm(t.doc, t.sliceDoc(r, i)); !s.next().done; ) {
  108702. if (a.length > 1e3)
  108703. return !1;
  108704. s.value.from == r && (o = a.length), a.push(De.range(s.value.from, s.value.to));
  108705. }
  108706. return e(t.update({
  108707. selection: De.create(a, o),
  108708. userEvent: "select.search.matches"
  108709. })), !0;
  108710. }, PJ = /* @__PURE__ */ N1((t, { query: e }) => {
  108711. let { state: n } = t, { from: r, to: i } = n.selection.main;
  108712. if (n.readOnly)
  108713. return !1;
  108714. let a = e.nextMatch(n, r, r);
  108715. if (!a)
  108716. return !1;
  108717. let o = [], s, l, u = [];
  108718. if (a.from == r && a.to == i && (l = n.toText(e.getReplacement(a)), o.push({ from: a.from, to: a.to, insert: l }), a = e.nextMatch(n, a.from, a.to), u.push(rt.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(r).number) + "."))), a) {
  108719. let c = o.length == 0 || o[0].from >= a.to ? 0 : a.to - a.from - l.length;
  108720. s = De.single(a.from - c, a.to - c), u.push(TB(t, a)), u.push(n.facet(Qm).scrollToMatch(s.main, t));
  108721. }
  108722. return t.dispatch({
  108723. changes: o,
  108724. selection: s,
  108725. effects: u,
  108726. userEvent: "input.replace"
  108727. }), !0;
  108728. }), oPt = /* @__PURE__ */ N1((t, { query: e }) => {
  108729. if (t.state.readOnly)
  108730. return !1;
  108731. let n = e.matchAll(t.state, 1e9).map((i) => {
  108732. let { from: a, to: o } = i;
  108733. return { from: a, to: o, insert: e.getReplacement(i) };
  108734. });
  108735. if (!n.length)
  108736. return !1;
  108737. let r = t.state.phrase("replaced $ matches", n.length) + ".";
  108738. return t.dispatch({
  108739. changes: n,
  108740. effects: rt.announce.of(r),
  108741. userEvent: "input.replace.all"
  108742. }), !0;
  108743. });
  108744. function CB(t) {
  108745. return t.state.facet(Qm).createPanel(t);
  108746. }
  108747. function H4(t, e) {
  108748. var n, r, i, a, o;
  108749. let s = t.selection.main, l = s.empty || s.to > s.from + 100 ? "" : t.sliceDoc(s.from, s.to);
  108750. if (e && !l)
  108751. return e;
  108752. let u = t.facet(Qm);
  108753. return new ame({
  108754. search: ((n = e == null ? void 0 : e.literal) !== null && n !== void 0 ? n : u.literal) ? l : l.replace(/\n/g, "\\n"),
  108755. caseSensitive: (r = e == null ? void 0 : e.caseSensitive) !== null && r !== void 0 ? r : u.caseSensitive,
  108756. literal: (i = e == null ? void 0 : e.literal) !== null && i !== void 0 ? i : u.literal,
  108757. regexp: (a = e == null ? void 0 : e.regexp) !== null && a !== void 0 ? a : u.regexp,
  108758. wholeWord: (o = e == null ? void 0 : e.wholeWord) !== null && o !== void 0 ? o : u.wholeWord
  108759. });
  108760. }
  108761. function sme(t) {
  108762. let e = O_(t, CB);
  108763. return e && e.dom.querySelector("[main-field]");
  108764. }
  108765. function lme(t) {
  108766. let e = sme(t);
  108767. e && e == t.root.activeElement && e.select();
  108768. }
  108769. const ume = (t) => {
  108770. let e = t.state.field(uf, !1);
  108771. if (e && e.panel) {
  108772. let n = sme(t);
  108773. if (n && n != t.root.activeElement) {
  108774. let r = H4(t.state, e.query.spec);
  108775. r.valid && t.dispatch({ effects: T_.of(r) }), n.focus(), n.select();
  108776. }
  108777. } else
  108778. t.dispatch({ effects: [
  108779. wB.of(!0),
  108780. e ? T_.of(H4(t.state, e.query.spec)) : zt.appendConfig.of(cPt)
  108781. ] });
  108782. return !0;
  108783. }, cme = (t) => {
  108784. let e = t.state.field(uf, !1);
  108785. if (!e || !e.panel)
  108786. return !1;
  108787. let n = O_(t, CB);
  108788. return n && n.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: wB.of(!1) }), !0;
  108789. }, sPt = [
  108790. { key: "Mod-f", run: ume, scope: "editor search-panel" },
  108791. { key: "F3", run: GT, shift: jT, scope: "editor search-panel", preventDefault: !0 },
  108792. { key: "Mod-g", run: GT, shift: jT, scope: "editor search-panel", preventDefault: !0 },
  108793. { key: "Escape", run: cme, scope: "editor search-panel" },
  108794. { key: "Mod-Shift-l", run: aPt },
  108795. { key: "Mod-Alt-g", run: B2t },
  108796. { key: "Mod-d", run: Y2t, preventDefault: !0 }
  108797. ];
  108798. class lPt {
  108799. constructor(e) {
  108800. this.view = e;
  108801. let n = this.query = e.state.field(uf).query.spec;
  108802. this.commit = this.commit.bind(this), this.searchField = Yn("input", {
  108803. value: n.search,
  108804. placeholder: Ya(e, "Find"),
  108805. "aria-label": Ya(e, "Find"),
  108806. class: "cm-textfield",
  108807. name: "search",
  108808. form: "",
  108809. "main-field": "true",
  108810. onchange: this.commit,
  108811. onkeyup: this.commit
  108812. }), this.replaceField = Yn("input", {
  108813. value: n.replace,
  108814. placeholder: Ya(e, "Replace"),
  108815. "aria-label": Ya(e, "Replace"),
  108816. class: "cm-textfield",
  108817. name: "replace",
  108818. form: "",
  108819. onchange: this.commit,
  108820. onkeyup: this.commit
  108821. }), this.caseField = Yn("input", {
  108822. type: "checkbox",
  108823. name: "case",
  108824. form: "",
  108825. checked: n.caseSensitive,
  108826. onchange: this.commit
  108827. }), this.reField = Yn("input", {
  108828. type: "checkbox",
  108829. name: "re",
  108830. form: "",
  108831. checked: n.regexp,
  108832. onchange: this.commit
  108833. }), this.wordField = Yn("input", {
  108834. type: "checkbox",
  108835. name: "word",
  108836. form: "",
  108837. checked: n.wholeWord,
  108838. onchange: this.commit
  108839. });
  108840. function r(i, a, o) {
  108841. return Yn("button", { class: "cm-button", name: i, onclick: a, type: "button" }, o);
  108842. }
  108843. this.dom = Yn("div", { onkeydown: (i) => this.keydown(i), class: "cm-search" }, [
  108844. this.searchField,
  108845. r("next", () => GT(e), [Ya(e, "next")]),
  108846. r("prev", () => jT(e), [Ya(e, "previous")]),
  108847. r("select", () => iPt(e), [Ya(e, "all")]),
  108848. Yn("label", null, [this.caseField, Ya(e, "match case")]),
  108849. Yn("label", null, [this.reField, Ya(e, "regexp")]),
  108850. Yn("label", null, [this.wordField, Ya(e, "by word")]),
  108851. ...e.state.readOnly ? [] : [
  108852. Yn("br"),
  108853. this.replaceField,
  108854. r("replace", () => PJ(e), [Ya(e, "replace")]),
  108855. r("replaceAll", () => oPt(e), [Ya(e, "replace all")])
  108856. ],
  108857. Yn("button", {
  108858. name: "close",
  108859. onclick: () => cme(e),
  108860. "aria-label": Ya(e, "close"),
  108861. type: "button"
  108862. }, ["×"])
  108863. ]);
  108864. }
  108865. commit() {
  108866. let e = new ame({
  108867. search: this.searchField.value,
  108868. caseSensitive: this.caseField.checked,
  108869. regexp: this.reField.checked,
  108870. wholeWord: this.wordField.checked,
  108871. replace: this.replaceField.value
  108872. });
  108873. e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: T_.of(e) }));
  108874. }
  108875. keydown(e) {
  108876. bwt(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? jT : GT)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), PJ(this.view));
  108877. }
  108878. update(e) {
  108879. for (let n of e.transactions)
  108880. for (let r of n.effects)
  108881. r.is(T_) && !r.value.eq(this.query) && this.setQuery(r.value);
  108882. }
  108883. setQuery(e) {
  108884. this.query = e, this.searchField.value = e.search, this.replaceField.value = e.replace, this.caseField.checked = e.caseSensitive, this.reField.checked = e.regexp, this.wordField.checked = e.wholeWord;
  108885. }
  108886. mount() {
  108887. this.searchField.select();
  108888. }
  108889. get pos() {
  108890. return 80;
  108891. }
  108892. get top() {
  108893. return this.view.state.facet(Qm).top;
  108894. }
  108895. }
  108896. function Ya(t, e) {
  108897. return t.state.phrase(e);
  108898. }
  108899. const Cx = 30, Tx = /[\s\.,:;?!]/;
  108900. function TB(t, { from: e, to: n }) {
  108901. let r = t.state.doc.lineAt(e), i = t.state.doc.lineAt(n).to, a = Math.max(r.from, e - Cx), o = Math.min(i, n + Cx), s = t.state.sliceDoc(a, o);
  108902. if (a != r.from) {
  108903. for (let l = 0; l < Cx; l++)
  108904. if (!Tx.test(s[l + 1]) && Tx.test(s[l])) {
  108905. s = s.slice(l);
  108906. break;
  108907. }
  108908. }
  108909. if (o != i) {
  108910. for (let l = s.length - 1; l > s.length - Cx; l--)
  108911. if (!Tx.test(s[l - 1]) && Tx.test(s[l])) {
  108912. s = s.slice(0, l);
  108913. break;
  108914. }
  108915. }
  108916. return rt.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`);
  108917. }
  108918. const uPt = /* @__PURE__ */ rt.baseTheme({
  108919. ".cm-panel.cm-search": {
  108920. padding: "2px 6px 4px",
  108921. position: "relative",
  108922. "& [name=close]": {
  108923. position: "absolute",
  108924. top: "0",
  108925. right: "4px",
  108926. backgroundColor: "inherit",
  108927. border: "none",
  108928. font: "inherit",
  108929. padding: 0,
  108930. margin: 0
  108931. },
  108932. "& input, & button, & label": {
  108933. margin: ".2em .6em .2em 0"
  108934. },
  108935. "& input[type=checkbox]": {
  108936. marginRight: ".2em"
  108937. },
  108938. "& label": {
  108939. fontSize: "80%",
  108940. whiteSpace: "pre"
  108941. }
  108942. },
  108943. "&light .cm-searchMatch": { backgroundColor: "#ffff0054" },
  108944. "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
  108945. "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
  108946. "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
  108947. }), cPt = [
  108948. uf,
  108949. /* @__PURE__ */ Ff.low(rPt),
  108950. uPt
  108951. ];
  108952. class fme {
  108953. /**
  108954. Create a new completion context. (Mostly useful for testing
  108955. completion sources—in the editor, the extension will create
  108956. these for you.)
  108957. */
  108958. constructor(e, n, r, i) {
  108959. this.state = e, this.pos = n, this.explicit = r, this.view = i, this.abortListeners = [];
  108960. }
  108961. /**
  108962. Get the extent, content, and (if there is a token) type of the
  108963. token before `this.pos`.
  108964. */
  108965. tokenBefore(e) {
  108966. let n = ni(this.state).resolveInner(this.pos, -1);
  108967. for (; n && e.indexOf(n.name) < 0; )
  108968. n = n.parent;
  108969. return n ? {
  108970. from: n.from,
  108971. to: this.pos,
  108972. text: this.state.sliceDoc(n.from, this.pos),
  108973. type: n.type
  108974. } : null;
  108975. }
  108976. /**
  108977. Get the match of the given expression directly before the
  108978. cursor.
  108979. */
  108980. matchBefore(e) {
  108981. let n = this.state.doc.lineAt(this.pos), r = Math.max(n.from, this.pos - 250), i = n.text.slice(r - n.from, this.pos - n.from), a = i.search(hme(e, !1));
  108982. return a < 0 ? null : { from: r + a, to: this.pos, text: i.slice(a) };
  108983. }
  108984. /**
  108985. Yields true when the query has been aborted. Can be useful in
  108986. asynchronous queries to avoid doing work that will be ignored.
  108987. */
  108988. get aborted() {
  108989. return this.abortListeners == null;
  108990. }
  108991. /**
  108992. Allows you to register abort handlers, which will be called when
  108993. the query is
  108994. [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).
  108995. */
  108996. addEventListener(e, n) {
  108997. e == "abort" && this.abortListeners && this.abortListeners.push(n);
  108998. }
  108999. }
  109000. function $J(t) {
  109001. let e = Object.keys(t).join(""), n = /\w/.test(e);
  109002. return n && (e = e.replace(/\w/g, "")), `[${n ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`;
  109003. }
  109004. function fPt(t) {
  109005. let e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
  109006. for (let { label: i } of t) {
  109007. e[i[0]] = !0;
  109008. for (let a = 1; a < i.length; a++)
  109009. n[i[a]] = !0;
  109010. }
  109011. let r = $J(e) + $J(n) + "*$";
  109012. return [new RegExp("^" + r), new RegExp(r)];
  109013. }
  109014. function dme(t) {
  109015. let e = t.map((i) => typeof i == "string" ? { label: i } : i), [n, r] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : fPt(e);
  109016. return (i) => {
  109017. let a = i.matchBefore(r);
  109018. return a || i.explicit ? { from: a ? a.from : i.pos, options: e, validFor: n } : null;
  109019. };
  109020. }
  109021. function dPt(t, e) {
  109022. return (n) => {
  109023. for (let r = ni(n.state).resolveInner(n.pos, -1); r; r = r.parent) {
  109024. if (t.indexOf(r.name) > -1)
  109025. return null;
  109026. if (r.type.isTop)
  109027. break;
  109028. }
  109029. return e(n);
  109030. };
  109031. }
  109032. class AJ {
  109033. constructor(e, n, r, i) {
  109034. this.completion = e, this.source = n, this.match = r, this.score = i;
  109035. }
  109036. }
  109037. function cf(t) {
  109038. return t.selection.main.from;
  109039. }
  109040. function hme(t, e) {
  109041. var n;
  109042. let { source: r } = t, i = e && r[0] != "^", a = r[r.length - 1] != "$";
  109043. return !i && !a ? t : new RegExp(`${i ? "^" : ""}(?:${r})${a ? "$" : ""}`, (n = t.flags) !== null && n !== void 0 ? n : t.ignoreCase ? "i" : "");
  109044. }
  109045. const PB = /* @__PURE__ */ ac.define();
  109046. function hPt(t, e, n, r) {
  109047. let { main: i } = t.selection, a = n - i.from, o = r - i.from;
  109048. return Object.assign(Object.assign({}, t.changeByRange((s) => s != i && n != r && t.sliceDoc(s.from + a, s.from + o) != t.sliceDoc(n, r) ? { range: s } : {
  109049. changes: { from: s.from + a, to: r == i.from ? s.to : s.from + o, insert: e },
  109050. range: De.cursor(s.from + a + e.length)
  109051. })), { scrollIntoView: !0, userEvent: "input.complete" });
  109052. }
  109053. const EJ = /* @__PURE__ */ new WeakMap();
  109054. function pPt(t) {
  109055. if (!Array.isArray(t))
  109056. return t;
  109057. let e = EJ.get(t);
  109058. return e || EJ.set(t, e = dme(t)), e;
  109059. }
  109060. const ZT = /* @__PURE__ */ zt.define(), P_ = /* @__PURE__ */ zt.define();
  109061. class vPt {
  109062. constructor(e) {
  109063. this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
  109064. for (let n = 0; n < e.length; ) {
  109065. let r = bi(e, n), i = jo(r);
  109066. this.chars.push(r);
  109067. let a = e.slice(n, n + i), o = a.toUpperCase();
  109068. this.folded.push(bi(o == a ? a.toLowerCase() : o, 0)), n += i;
  109069. }
  109070. this.astral = e.length != this.chars.length;
  109071. }
  109072. ret(e, n) {
  109073. return this.score = e, this.matched = n, this;
  109074. }
  109075. // Matches a given word (completion) against the pattern (input).
  109076. // Will return a boolean indicating whether there was a match and,
  109077. // on success, set `this.score` to the score, `this.matched` to an
  109078. // array of `from, to` pairs indicating the matched parts of `word`.
  109079. //
  109080. // The score is a number that is more negative the worse the match
  109081. // is. See `Penalty` above.
  109082. match(e) {
  109083. if (this.pattern.length == 0)
  109084. return this.ret(-100, []);
  109085. if (e.length < this.pattern.length)
  109086. return null;
  109087. let { chars: n, folded: r, any: i, precise: a, byWord: o } = this;
  109088. if (n.length == 1) {
  109089. let y = bi(e, 0), _ = jo(y), O = _ == e.length ? 0 : -100;
  109090. if (y != n[0]) if (y == r[0])
  109091. O += -200;
  109092. else
  109093. return null;
  109094. return this.ret(O, [0, _]);
  109095. }
  109096. let s = e.indexOf(this.pattern);
  109097. if (s == 0)
  109098. return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
  109099. let l = n.length, u = 0;
  109100. if (s < 0) {
  109101. for (let y = 0, _ = Math.min(e.length, 200); y < _ && u < l; ) {
  109102. let O = bi(e, y);
  109103. (O == n[u] || O == r[u]) && (i[u++] = y), y += jo(O);
  109104. }
  109105. if (u < l)
  109106. return null;
  109107. }
  109108. let c = 0, f = 0, d = !1, h = 0, p = -1, v = -1, g = /[a-z]/.test(e), m = !0;
  109109. for (let y = 0, _ = Math.min(e.length, 200), O = 0; y < _ && f < l; ) {
  109110. let S = bi(e, y);
  109111. s < 0 && (c < l && S == n[c] && (a[c++] = y), h < l && (S == n[h] || S == r[h] ? (h == 0 && (p = y), v = y + 1, h++) : h = 0));
  109112. let x, C = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (x = K6(S)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
  109113. (!y || C == 1 && g || O == 0 && C != 0) && (n[f] == S || r[f] == S && (d = !0) ? o[f++] = y : o.length && (m = !1)), O = C, y += jo(S);
  109114. }
  109115. return f == l && o[0] == 0 && m ? this.result(-100 + (d ? -200 : 0), o, e) : h == l && p == 0 ? this.ret(-200 - e.length + (v == e.length ? 0 : -100), [0, v]) : s > -1 ? this.ret(-700 - e.length, [s, s + this.pattern.length]) : h == l ? this.ret(-900 - e.length, [p, v]) : f == l ? this.result(-100 + (d ? -200 : 0) + -700 + (m ? 0 : -1100), o, e) : n.length == 2 ? null : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e);
  109116. }
  109117. result(e, n, r) {
  109118. let i = [], a = 0;
  109119. for (let o of n) {
  109120. let s = o + (this.astral ? jo(bi(r, o)) : 1);
  109121. a && i[a - 1] == o ? i[a - 1] = s : (i[a++] = o, i[a++] = s);
  109122. }
  109123. return this.ret(e - r.length, i);
  109124. }
  109125. }
  109126. class gPt {
  109127. constructor(e) {
  109128. this.pattern = e, this.matched = [], this.score = 0, this.folded = e.toLowerCase();
  109129. }
  109130. match(e) {
  109131. if (e.length < this.pattern.length)
  109132. return null;
  109133. let n = e.slice(0, this.pattern.length), r = n == this.pattern ? 0 : n.toLowerCase() == this.folded ? -200 : null;
  109134. return r == null ? null : (this.matched = [0, n.length], this.score = r + (e.length == this.pattern.length ? 0 : -100), this);
  109135. }
  109136. }
  109137. const Si = /* @__PURE__ */ ut.define({
  109138. combine(t) {
  109139. return Kl(t, {
  109140. activateOnTyping: !0,
  109141. activateOnCompletion: () => !1,
  109142. activateOnTypingDelay: 100,
  109143. selectOnOpen: !0,
  109144. override: null,
  109145. closeOnBlur: !0,
  109146. maxRenderedOptions: 100,
  109147. defaultKeymap: !0,
  109148. tooltipClass: () => "",
  109149. optionClass: () => "",
  109150. aboveCursor: !1,
  109151. icons: !0,
  109152. addToOptions: [],
  109153. positionInfo: mPt,
  109154. filterStrict: !1,
  109155. compareCompletions: (e, n) => e.label.localeCompare(n.label),
  109156. interactionDelay: 75,
  109157. updateSyncTime: 100
  109158. }, {
  109159. defaultKeymap: (e, n) => e && n,
  109160. closeOnBlur: (e, n) => e && n,
  109161. icons: (e, n) => e && n,
  109162. tooltipClass: (e, n) => (r) => MJ(e(r), n(r)),
  109163. optionClass: (e, n) => (r) => MJ(e(r), n(r)),
  109164. addToOptions: (e, n) => e.concat(n),
  109165. filterStrict: (e, n) => e || n
  109166. });
  109167. }
  109168. });
  109169. function MJ(t, e) {
  109170. return t ? e ? t + " " + e : t : e;
  109171. }
  109172. function mPt(t, e, n, r, i, a) {
  109173. let o = t.textDirection == ir.RTL, s = o, l = !1, u = "top", c, f, d = e.left - i.left, h = i.right - e.right, p = r.right - r.left, v = r.bottom - r.top;
  109174. if (s && d < Math.min(p, h) ? s = !1 : !s && h < Math.min(p, d) && (s = !0), p <= (s ? d : h))
  109175. c = Math.max(i.top, Math.min(n.top, i.bottom - v)) - e.top, f = Math.min(400, s ? d : h);
  109176. else {
  109177. l = !0, f = Math.min(
  109178. 400,
  109179. (o ? e.right : i.right - e.left) - 30
  109180. /* Info.Margin */
  109181. );
  109182. let y = i.bottom - e.bottom;
  109183. y >= v || y > e.top ? c = n.bottom - e.top : (u = "bottom", c = e.bottom - n.top);
  109184. }
  109185. let g = (e.bottom - e.top) / a.offsetHeight, m = (e.right - e.left) / a.offsetWidth;
  109186. return {
  109187. style: `${u}: ${c / g}px; max-width: ${f / m}px`,
  109188. class: "cm-completionInfo-" + (l ? o ? "left-narrow" : "right-narrow" : s ? "left" : "right")
  109189. };
  109190. }
  109191. function yPt(t) {
  109192. let e = t.addToOptions.slice();
  109193. return t.icons && e.push({
  109194. render(n) {
  109195. let r = document.createElement("div");
  109196. return r.classList.add("cm-completionIcon"), n.type && r.classList.add(...n.type.split(/\s+/g).map((i) => "cm-completionIcon-" + i)), r.setAttribute("aria-hidden", "true"), r;
  109197. },
  109198. position: 20
  109199. }), e.push({
  109200. render(n, r, i, a) {
  109201. let o = document.createElement("span");
  109202. o.className = "cm-completionLabel";
  109203. let s = n.displayLabel || n.label, l = 0;
  109204. for (let u = 0; u < a.length; ) {
  109205. let c = a[u++], f = a[u++];
  109206. c > l && o.appendChild(document.createTextNode(s.slice(l, c)));
  109207. let d = o.appendChild(document.createElement("span"));
  109208. d.appendChild(document.createTextNode(s.slice(c, f))), d.className = "cm-completionMatchedText", l = f;
  109209. }
  109210. return l < s.length && o.appendChild(document.createTextNode(s.slice(l))), o;
  109211. },
  109212. position: 50
  109213. }, {
  109214. render(n) {
  109215. if (!n.detail)
  109216. return null;
  109217. let r = document.createElement("span");
  109218. return r.className = "cm-completionDetail", r.textContent = n.detail, r;
  109219. },
  109220. position: 80
  109221. }), e.sort((n, r) => n.position - r.position).map((n) => n.render);
  109222. }
  109223. function OD(t, e, n) {
  109224. if (t <= n)
  109225. return { from: 0, to: t };
  109226. if (e < 0 && (e = 0), e <= t >> 1) {
  109227. let i = Math.floor(e / n);
  109228. return { from: i * n, to: (i + 1) * n };
  109229. }
  109230. let r = Math.floor((t - e) / n);
  109231. return { from: t - (r + 1) * n, to: t - r * n };
  109232. }
  109233. class bPt {
  109234. constructor(e, n, r) {
  109235. this.view = e, this.stateField = n, this.applyCompletion = r, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
  109236. read: () => this.measureInfo(),
  109237. write: (l) => this.placeInfo(l),
  109238. key: this
  109239. }, this.space = null, this.currentClass = "";
  109240. let i = e.state.field(n), { options: a, selected: o } = i.open, s = e.state.facet(Si);
  109241. this.optionContent = yPt(s), this.optionClass = s.optionClass, this.tooltipClass = s.tooltipClass, this.range = OD(a.length, o, s.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => {
  109242. let { options: u } = e.state.field(n).open;
  109243. for (let c = l.target, f; c && c != this.dom; c = c.parentNode)
  109244. if (c.nodeName == "LI" && (f = /-(\d+)$/.exec(c.id)) && +f[1] < u.length) {
  109245. this.applyCompletion(e, u[+f[1]]), l.preventDefault();
  109246. return;
  109247. }
  109248. }), this.dom.addEventListener("focusout", (l) => {
  109249. let u = e.state.field(this.stateField, !1);
  109250. u && u.tooltip && e.state.facet(Si).closeOnBlur && l.relatedTarget != e.contentDOM && e.dispatch({ effects: P_.of(null) });
  109251. }), this.showOptions(a, i.id);
  109252. }
  109253. mount() {
  109254. this.updateSel();
  109255. }
  109256. showOptions(e, n) {
  109257. this.list && this.list.remove(), this.list = this.dom.appendChild(this.createListBox(e, n, this.range)), this.list.addEventListener("scroll", () => {
  109258. this.info && this.view.requestMeasure(this.placeInfoReq);
  109259. });
  109260. }
  109261. update(e) {
  109262. var n;
  109263. let r = e.state.field(this.stateField), i = e.startState.field(this.stateField);
  109264. if (this.updateTooltipClass(e.state), r != i) {
  109265. let { options: a, selected: o, disabled: s } = r.open;
  109266. (!i.open || i.open.options != a) && (this.range = OD(a.length, o, e.state.facet(Si).maxRenderedOptions), this.showOptions(a, r.id)), this.updateSel(), s != ((n = i.open) === null || n === void 0 ? void 0 : n.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!s);
  109267. }
  109268. }
  109269. updateTooltipClass(e) {
  109270. let n = this.tooltipClass(e);
  109271. if (n != this.currentClass) {
  109272. for (let r of this.currentClass.split(" "))
  109273. r && this.dom.classList.remove(r);
  109274. for (let r of n.split(" "))
  109275. r && this.dom.classList.add(r);
  109276. this.currentClass = n;
  109277. }
  109278. }
  109279. positioned(e) {
  109280. this.space = e, this.info && this.view.requestMeasure(this.placeInfoReq);
  109281. }
  109282. updateSel() {
  109283. let e = this.view.state.field(this.stateField), n = e.open;
  109284. if ((n.selected > -1 && n.selected < this.range.from || n.selected >= this.range.to) && (this.range = OD(n.options.length, n.selected, this.view.state.facet(Si).maxRenderedOptions), this.showOptions(n.options, e.id)), this.updateSelectedOption(n.selected)) {
  109285. this.destroyInfo();
  109286. let { completion: r } = n.options[n.selected], { info: i } = r;
  109287. if (!i)
  109288. return;
  109289. let a = typeof i == "string" ? document.createTextNode(i) : i(r);
  109290. if (!a)
  109291. return;
  109292. "then" in a ? a.then((o) => {
  109293. o && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(o, r);
  109294. }).catch((o) => Ia(this.view.state, o, "completion info")) : this.addInfoPane(a, r);
  109295. }
  109296. }
  109297. addInfoPane(e, n) {
  109298. this.destroyInfo();
  109299. let r = this.info = document.createElement("div");
  109300. if (r.className = "cm-tooltip cm-completionInfo", e.nodeType != null)
  109301. r.appendChild(e), this.infoDestroy = null;
  109302. else {
  109303. let { dom: i, destroy: a } = e;
  109304. r.appendChild(i), this.infoDestroy = a || null;
  109305. }
  109306. this.dom.appendChild(r), this.view.requestMeasure(this.placeInfoReq);
  109307. }
  109308. updateSelectedOption(e) {
  109309. let n = null;
  109310. for (let r = this.list.firstChild, i = this.range.from; r; r = r.nextSibling, i++)
  109311. r.nodeName != "LI" || !r.id ? i-- : i == e ? r.hasAttribute("aria-selected") || (r.setAttribute("aria-selected", "true"), n = r) : r.hasAttribute("aria-selected") && r.removeAttribute("aria-selected");
  109312. return n && OPt(this.list, n), n;
  109313. }
  109314. measureInfo() {
  109315. let e = this.dom.querySelector("[aria-selected]");
  109316. if (!e || !this.info)
  109317. return null;
  109318. let n = this.dom.getBoundingClientRect(), r = this.info.getBoundingClientRect(), i = e.getBoundingClientRect(), a = this.space;
  109319. if (!a) {
  109320. let o = this.dom.ownerDocument.defaultView || window;
  109321. a = { left: 0, top: 0, right: o.innerWidth, bottom: o.innerHeight };
  109322. }
  109323. return i.top > Math.min(a.bottom, n.bottom) - 10 || i.bottom < Math.max(a.top, n.top) + 10 ? null : this.view.state.facet(Si).positionInfo(this.view, n, i, r, a, this.dom);
  109324. }
  109325. placeInfo(e) {
  109326. this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
  109327. }
  109328. createListBox(e, n, r) {
  109329. const i = document.createElement("ul");
  109330. i.id = n, i.setAttribute("role", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-label", this.view.state.phrase("Completions"));
  109331. let a = null;
  109332. for (let o = r.from; o < r.to; o++) {
  109333. let { completion: s, match: l } = e[o], { section: u } = s;
  109334. if (u) {
  109335. let d = typeof u == "string" ? u : u.name;
  109336. if (d != a && (o > r.from || r.from == 0))
  109337. if (a = d, typeof u != "string" && u.header)
  109338. i.appendChild(u.header(u));
  109339. else {
  109340. let h = i.appendChild(document.createElement("completion-section"));
  109341. h.textContent = d;
  109342. }
  109343. }
  109344. const c = i.appendChild(document.createElement("li"));
  109345. c.id = n + "-" + o, c.setAttribute("role", "option");
  109346. let f = this.optionClass(s);
  109347. f && (c.className = f);
  109348. for (let d of this.optionContent) {
  109349. let h = d(s, this.view.state, this.view, l);
  109350. h && c.appendChild(h);
  109351. }
  109352. }
  109353. return r.from && i.classList.add("cm-completionListIncompleteTop"), r.to < e.length && i.classList.add("cm-completionListIncompleteBottom"), i;
  109354. }
  109355. destroyInfo() {
  109356. this.info && (this.infoDestroy && this.infoDestroy(), this.info.remove(), this.info = null);
  109357. }
  109358. destroy() {
  109359. this.destroyInfo();
  109360. }
  109361. }
  109362. function _Pt(t, e) {
  109363. return (n) => new bPt(n, t, e);
  109364. }
  109365. function OPt(t, e) {
  109366. let n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i = n.height / t.offsetHeight;
  109367. r.top < n.top ? t.scrollTop -= (n.top - r.top) / i : r.bottom > n.bottom && (t.scrollTop += (r.bottom - n.bottom) / i);
  109368. }
  109369. function IJ(t) {
  109370. return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0);
  109371. }
  109372. function SPt(t, e) {
  109373. let n = [], r = null, i = (u) => {
  109374. n.push(u);
  109375. let { section: c } = u.completion;
  109376. if (c) {
  109377. r || (r = []);
  109378. let f = typeof c == "string" ? c : c.name;
  109379. r.some((d) => d.name == f) || r.push(typeof c == "string" ? { name: f } : c);
  109380. }
  109381. }, a = e.facet(Si);
  109382. for (let u of t)
  109383. if (u.hasResult()) {
  109384. let c = u.result.getMatch;
  109385. if (u.result.filter === !1)
  109386. for (let f of u.result.options)
  109387. i(new AJ(f, u.source, c ? c(f) : [], 1e9 - n.length));
  109388. else {
  109389. let f = e.sliceDoc(u.from, u.to), d, h = a.filterStrict ? new gPt(f) : new vPt(f);
  109390. for (let p of u.result.options)
  109391. if (d = h.match(p.label)) {
  109392. let v = p.displayLabel ? c ? c(p, d.matched) : [] : d.matched;
  109393. i(new AJ(p, u.source, v, d.score + (p.boost || 0)));
  109394. }
  109395. }
  109396. }
  109397. if (r) {
  109398. let u = /* @__PURE__ */ Object.create(null), c = 0, f = (d, h) => {
  109399. var p, v;
  109400. return ((p = d.rank) !== null && p !== void 0 ? p : 1e9) - ((v = h.rank) !== null && v !== void 0 ? v : 1e9) || (d.name < h.name ? -1 : 1);
  109401. };
  109402. for (let d of r.sort(f))
  109403. c -= 1e5, u[d.name] = c;
  109404. for (let d of n) {
  109405. let { section: h } = d.completion;
  109406. h && (d.score += u[typeof h == "string" ? h : h.name]);
  109407. }
  109408. }
  109409. let o = [], s = null, l = a.compareCompletions;
  109410. for (let u of n.sort((c, f) => f.score - c.score || l(c.completion, f.completion))) {
  109411. let c = u.completion;
  109412. !s || s.label != c.label || s.detail != c.detail || s.type != null && c.type != null && s.type != c.type || s.apply != c.apply || s.boost != c.boost ? o.push(u) : IJ(u.completion) > IJ(s) && (o[o.length - 1] = u), s = u.completion;
  109413. }
  109414. return o;
  109415. }
  109416. class Bv {
  109417. constructor(e, n, r, i, a, o) {
  109418. this.options = e, this.attrs = n, this.tooltip = r, this.timestamp = i, this.selected = a, this.disabled = o;
  109419. }
  109420. setSelected(e, n) {
  109421. return e == this.selected || e >= this.options.length ? this : new Bv(this.options, DJ(n, e), this.tooltip, this.timestamp, e, this.disabled);
  109422. }
  109423. static build(e, n, r, i, a) {
  109424. let o = SPt(e, n);
  109425. if (!o.length)
  109426. return i && e.some(
  109427. (l) => l.state == 1
  109428. /* State.Pending */
  109429. ) ? new Bv(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null;
  109430. let s = n.facet(Si).selectOnOpen ? 0 : -1;
  109431. if (i && i.selected != s && i.selected != -1) {
  109432. let l = i.options[i.selected].completion;
  109433. for (let u = 0; u < o.length; u++)
  109434. if (o[u].completion == l) {
  109435. s = u;
  109436. break;
  109437. }
  109438. }
  109439. return new Bv(o, DJ(r, s), {
  109440. pos: e.reduce((l, u) => u.hasResult() ? Math.min(l, u.from) : l, 1e8),
  109441. create: $Pt,
  109442. above: a.aboveCursor
  109443. }, i ? i.timestamp : Date.now(), s, !1);
  109444. }
  109445. map(e) {
  109446. return new Bv(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
  109447. }
  109448. }
  109449. class UT {
  109450. constructor(e, n, r) {
  109451. this.active = e, this.id = n, this.open = r;
  109452. }
  109453. static start() {
  109454. return new UT(TPt, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
  109455. }
  109456. update(e) {
  109457. let { state: n } = e, r = n.facet(Si), a = (r.override || n.languageDataAt("autocomplete", cf(n)).map(pPt)).map((s) => (this.active.find((u) => u.source == s) || new ro(
  109458. s,
  109459. this.active.some(
  109460. (u) => u.state != 0
  109461. /* State.Inactive */
  109462. ) ? 1 : 0
  109463. /* State.Inactive */
  109464. )).update(e, r));
  109465. a.length == this.active.length && a.every((s, l) => s == this.active[l]) && (a = this.active);
  109466. let o = this.open;
  109467. o && e.docChanged && (o = o.map(e.changes)), e.selection || a.some((s) => s.hasResult() && e.changes.touchesRange(s.from, s.to)) || !xPt(a, this.active) ? o = Bv.build(a, n, this.id, o, r) : o && o.disabled && !a.some(
  109468. (s) => s.state == 1
  109469. /* State.Pending */
  109470. ) && (o = null), !o && a.every(
  109471. (s) => s.state != 1
  109472. /* State.Pending */
  109473. ) && a.some((s) => s.hasResult()) && (a = a.map((s) => s.hasResult() ? new ro(
  109474. s.source,
  109475. 0
  109476. /* State.Inactive */
  109477. ) : s));
  109478. for (let s of e.effects)
  109479. s.is(gme) && (o = o && o.setSelected(s.value, this.id));
  109480. return a == this.active && o == this.open ? this : new UT(a, this.id, o);
  109481. }
  109482. get tooltip() {
  109483. return this.open ? this.open.tooltip : null;
  109484. }
  109485. get attrs() {
  109486. return this.open ? this.open.attrs : this.active.length ? wPt : CPt;
  109487. }
  109488. }
  109489. function xPt(t, e) {
  109490. if (t == e)
  109491. return !0;
  109492. for (let n = 0, r = 0; ; ) {
  109493. for (; n < t.length && !t[n].hasResult; )
  109494. n++;
  109495. for (; r < e.length && !e[r].hasResult; )
  109496. r++;
  109497. let i = n == t.length, a = r == e.length;
  109498. if (i || a)
  109499. return i == a;
  109500. if (t[n++].result != e[r++].result)
  109501. return !1;
  109502. }
  109503. }
  109504. const wPt = {
  109505. "aria-autocomplete": "list"
  109506. }, CPt = {};
  109507. function DJ(t, e) {
  109508. let n = {
  109509. "aria-autocomplete": "list",
  109510. "aria-haspopup": "listbox",
  109511. "aria-controls": t
  109512. };
  109513. return e > -1 && (n["aria-activedescendant"] = t + "-" + e), n;
  109514. }
  109515. const TPt = [];
  109516. function pme(t, e) {
  109517. if (t.isUserEvent("input.complete")) {
  109518. let r = t.annotation(PB);
  109519. if (r && e.activateOnCompletion(r))
  109520. return 12;
  109521. }
  109522. let n = t.isUserEvent("input.type");
  109523. return n && e.activateOnTyping ? 5 : n ? 1 : t.isUserEvent("delete.backward") ? 2 : t.selection ? 8 : t.docChanged ? 16 : 0;
  109524. }
  109525. class ro {
  109526. constructor(e, n, r = -1) {
  109527. this.source = e, this.state = n, this.explicitPos = r;
  109528. }
  109529. hasResult() {
  109530. return !1;
  109531. }
  109532. update(e, n) {
  109533. let r = pme(e, n), i = this;
  109534. (r & 8 || r & 16 && this.touches(e)) && (i = new ro(
  109535. i.source,
  109536. 0
  109537. /* State.Inactive */
  109538. )), r & 4 && i.state == 0 && (i = new ro(
  109539. this.source,
  109540. 1
  109541. /* State.Pending */
  109542. )), i = i.updateFor(e, r);
  109543. for (let a of e.effects)
  109544. if (a.is(ZT))
  109545. i = new ro(i.source, 1, a.value ? cf(e.state) : -1);
  109546. else if (a.is(P_))
  109547. i = new ro(
  109548. i.source,
  109549. 0
  109550. /* State.Inactive */
  109551. );
  109552. else if (a.is(vme))
  109553. for (let o of a.value)
  109554. o.source == i.source && (i = o);
  109555. return i;
  109556. }
  109557. updateFor(e, n) {
  109558. return this.map(e.changes);
  109559. }
  109560. map(e) {
  109561. return e.empty || this.explicitPos < 0 ? this : new ro(this.source, this.state, e.mapPos(this.explicitPos));
  109562. }
  109563. touches(e) {
  109564. return e.changes.touchesRange(cf(e.state));
  109565. }
  109566. }
  109567. class lg extends ro {
  109568. constructor(e, n, r, i, a) {
  109569. super(e, 2, n), this.result = r, this.from = i, this.to = a;
  109570. }
  109571. hasResult() {
  109572. return !0;
  109573. }
  109574. updateFor(e, n) {
  109575. var r;
  109576. if (!(n & 3))
  109577. return this.map(e.changes);
  109578. let i = this.result;
  109579. i.map && !e.changes.empty && (i = i.map(i, e.changes));
  109580. let a = e.changes.mapPos(this.from), o = e.changes.mapPos(this.to, 1), s = cf(e.state);
  109581. if ((this.explicitPos < 0 ? s <= a : s < this.from) || s > o || !i || n & 2 && cf(e.startState) == this.from)
  109582. return new ro(
  109583. this.source,
  109584. n & 4 ? 1 : 0
  109585. /* State.Inactive */
  109586. );
  109587. let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos);
  109588. return PPt(i.validFor, e.state, a, o) ? new lg(this.source, l, i, a, o) : i.update && (i = i.update(i, a, o, new fme(e.state, s, l >= 0))) ? new lg(this.source, l, i, i.from, (r = i.to) !== null && r !== void 0 ? r : cf(e.state)) : new ro(this.source, 1, l);
  109589. }
  109590. map(e) {
  109591. return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new lg(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new ro(
  109592. this.source,
  109593. 0
  109594. /* State.Inactive */
  109595. );
  109596. }
  109597. touches(e) {
  109598. return e.changes.touchesRange(this.from, this.to);
  109599. }
  109600. }
  109601. function PPt(t, e, n, r) {
  109602. if (!t)
  109603. return !1;
  109604. let i = e.sliceDoc(n, r);
  109605. return typeof t == "function" ? t(i, n, r, e) : hme(t, !0).test(i);
  109606. }
  109607. const vme = /* @__PURE__ */ zt.define({
  109608. map(t, e) {
  109609. return t.map((n) => n.map(e));
  109610. }
  109611. }), gme = /* @__PURE__ */ zt.define(), Ea = /* @__PURE__ */ fi.define({
  109612. create() {
  109613. return UT.start();
  109614. },
  109615. update(t, e) {
  109616. return t.update(e);
  109617. },
  109618. provide: (t) => [
  109619. uB.from(t, (e) => e.tooltip),
  109620. rt.contentAttributes.from(t, (e) => e.attrs)
  109621. ]
  109622. });
  109623. function $B(t, e) {
  109624. const n = e.completion.apply || e.completion.label;
  109625. let r = t.state.field(Ea).active.find((i) => i.source == e.source);
  109626. return r instanceof lg ? (typeof n == "string" ? t.dispatch(Object.assign(Object.assign({}, hPt(t.state, n, r.from, r.to)), { annotations: PB.of(e.completion) })) : n(t, e.completion, r.from, r.to), !0) : !1;
  109627. }
  109628. const $Pt = /* @__PURE__ */ _Pt(Ea, $B);
  109629. function Px(t, e = "option") {
  109630. return (n) => {
  109631. let r = n.state.field(Ea, !1);
  109632. if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(Si).interactionDelay)
  109633. return !1;
  109634. let i = 1, a;
  109635. e == "page" && (a = Uve(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(a.dom.offsetHeight / a.dom.querySelector("li").offsetHeight) - 1));
  109636. let { length: o } = r.open.options, s = r.open.selected > -1 ? r.open.selected + i * (t ? 1 : -1) : t ? 0 : o - 1;
  109637. return s < 0 ? s = e == "page" ? 0 : o - 1 : s >= o && (s = e == "page" ? o - 1 : 0), n.dispatch({ effects: gme.of(s) }), !0;
  109638. };
  109639. }
  109640. const APt = (t) => {
  109641. let e = t.state.field(Ea, !1);
  109642. return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(Si).interactionDelay ? !1 : $B(t, e.open.options[e.open.selected]);
  109643. }, EPt = (t) => t.state.field(Ea, !1) ? (t.dispatch({ effects: ZT.of(!0) }), !0) : !1, MPt = (t) => {
  109644. let e = t.state.field(Ea, !1);
  109645. return !e || !e.active.some(
  109646. (n) => n.state != 0
  109647. /* State.Inactive */
  109648. ) ? !1 : (t.dispatch({ effects: P_.of(null) }), !0);
  109649. };
  109650. class IPt {
  109651. constructor(e, n) {
  109652. this.active = e, this.context = n, this.time = Date.now(), this.updates = [], this.done = void 0;
  109653. }
  109654. }
  109655. const DPt = 50, RPt = 1e3, kPt = /* @__PURE__ */ Ir.fromClass(class {
  109656. constructor(t) {
  109657. this.view = t, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
  109658. for (let e of t.state.field(Ea).active)
  109659. e.state == 1 && this.startQuery(e);
  109660. }
  109661. update(t) {
  109662. let e = t.state.field(Ea), n = t.state.facet(Si);
  109663. if (!t.selectionSet && !t.docChanged && t.startState.field(Ea) == e)
  109664. return;
  109665. let r = t.transactions.some((a) => {
  109666. let o = pme(a, n);
  109667. return o & 8 || (a.selection || a.docChanged) && !(o & 3);
  109668. });
  109669. for (let a = 0; a < this.running.length; a++) {
  109670. let o = this.running[a];
  109671. if (r || o.updates.length + t.transactions.length > DPt && Date.now() - o.time > RPt) {
  109672. for (let s of o.context.abortListeners)
  109673. try {
  109674. s();
  109675. } catch (l) {
  109676. Ia(this.view.state, l);
  109677. }
  109678. o.context.abortListeners = null, this.running.splice(a--, 1);
  109679. } else
  109680. o.updates.push(...t.transactions);
  109681. }
  109682. this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), t.transactions.some((a) => a.effects.some((o) => o.is(ZT))) && (this.pendingStart = !0);
  109683. let i = this.pendingStart ? 50 : n.activateOnTypingDelay;
  109684. if (this.debounceUpdate = e.active.some((a) => a.state == 1 && !this.running.some((o) => o.active.source == a.source)) ? setTimeout(() => this.startUpdate(), i) : -1, this.composing != 0)
  109685. for (let a of t.transactions)
  109686. a.isUserEvent("input.type") ? this.composing = 2 : this.composing == 2 && a.selection && (this.composing = 3);
  109687. }
  109688. startUpdate() {
  109689. this.debounceUpdate = -1, this.pendingStart = !1;
  109690. let { state: t } = this.view, e = t.field(Ea);
  109691. for (let n of e.active)
  109692. n.state == 1 && !this.running.some((r) => r.active.source == n.source) && this.startQuery(n);
  109693. }
  109694. startQuery(t) {
  109695. let { state: e } = this.view, n = cf(e), r = new fme(e, n, t.explicitPos == n, this.view), i = new IPt(t, r);
  109696. this.running.push(i), Promise.resolve(t.source(r)).then((a) => {
  109697. i.context.aborted || (i.done = a || null, this.scheduleAccept());
  109698. }, (a) => {
  109699. this.view.dispatch({ effects: P_.of(null) }), Ia(this.view.state, a);
  109700. });
  109701. }
  109702. scheduleAccept() {
  109703. this.running.every((t) => t.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Si).updateSyncTime));
  109704. }
  109705. // For each finished query in this.running, try to create a result
  109706. // or, if appropriate, restart the query.
  109707. accept() {
  109708. var t;
  109709. this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
  109710. let e = [], n = this.view.state.facet(Si);
  109711. for (let r = 0; r < this.running.length; r++) {
  109712. let i = this.running[r];
  109713. if (i.done === void 0)
  109714. continue;
  109715. if (this.running.splice(r--, 1), i.done) {
  109716. let o = new lg(i.active.source, i.active.explicitPos, i.done, i.done.from, (t = i.done.to) !== null && t !== void 0 ? t : cf(i.updates.length ? i.updates[0].startState : this.view.state));
  109717. for (let s of i.updates)
  109718. o = o.update(s, n);
  109719. if (o.hasResult()) {
  109720. e.push(o);
  109721. continue;
  109722. }
  109723. }
  109724. let a = this.view.state.field(Ea).active.find((o) => o.source == i.active.source);
  109725. if (a && a.state == 1)
  109726. if (i.done == null) {
  109727. let o = new ro(
  109728. i.active.source,
  109729. 0
  109730. /* State.Inactive */
  109731. );
  109732. for (let s of i.updates)
  109733. o = o.update(s, n);
  109734. o.state != 1 && e.push(o);
  109735. } else
  109736. this.startQuery(a);
  109737. }
  109738. e.length && this.view.dispatch({ effects: vme.of(e) });
  109739. }
  109740. }, {
  109741. eventHandlers: {
  109742. blur(t) {
  109743. let e = this.view.state.field(Ea, !1);
  109744. if (e && e.tooltip && this.view.state.facet(Si).closeOnBlur) {
  109745. let n = e.open && Uve(this.view, e.open.tooltip);
  109746. (!n || !n.dom.contains(t.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: P_.of(null) }), 10);
  109747. }
  109748. },
  109749. compositionstart() {
  109750. this.composing = 1;
  109751. },
  109752. compositionend() {
  109753. this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: ZT.of(!1) }), 20), this.composing = 0;
  109754. }
  109755. }
  109756. }), LPt = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), NPt = /* @__PURE__ */ Ff.highest(/* @__PURE__ */ rt.domEventHandlers({
  109757. keydown(t, e) {
  109758. let n = e.state.field(Ea, !1);
  109759. if (!n || !n.open || n.open.disabled || n.open.selected < 0 || t.key.length > 1 || t.ctrlKey && !(LPt && t.altKey) || t.metaKey)
  109760. return !1;
  109761. let r = n.open.options[n.open.selected], i = n.active.find((o) => o.source == r.source), a = r.completion.commitCharacters || i.result.commitCharacters;
  109762. return a && a.indexOf(t.key) > -1 && $B(e, r), !1;
  109763. }
  109764. })), mme = /* @__PURE__ */ rt.baseTheme({
  109765. ".cm-tooltip.cm-tooltip-autocomplete": {
  109766. "& > ul": {
  109767. fontFamily: "monospace",
  109768. whiteSpace: "nowrap",
  109769. overflow: "hidden auto",
  109770. maxWidth_fallback: "700px",
  109771. maxWidth: "min(700px, 95vw)",
  109772. minWidth: "250px",
  109773. maxHeight: "10em",
  109774. height: "100%",
  109775. listStyle: "none",
  109776. margin: 0,
  109777. padding: 0,
  109778. "& > li, & > completion-section": {
  109779. padding: "1px 3px",
  109780. lineHeight: 1.2
  109781. },
  109782. "& > li": {
  109783. overflowX: "hidden",
  109784. textOverflow: "ellipsis",
  109785. cursor: "pointer"
  109786. },
  109787. "& > completion-section": {
  109788. display: "list-item",
  109789. borderBottom: "1px solid silver",
  109790. paddingLeft: "0.5em",
  109791. opacity: 0.7
  109792. }
  109793. }
  109794. },
  109795. "&light .cm-tooltip-autocomplete ul li[aria-selected]": {
  109796. background: "#17c",
  109797. color: "white"
  109798. },
  109799. "&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]": {
  109800. background: "#777"
  109801. },
  109802. "&dark .cm-tooltip-autocomplete ul li[aria-selected]": {
  109803. background: "#347",
  109804. color: "white"
  109805. },
  109806. "&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]": {
  109807. background: "#444"
  109808. },
  109809. ".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": {
  109810. content: '"···"',
  109811. opacity: 0.5,
  109812. display: "block",
  109813. textAlign: "center"
  109814. },
  109815. ".cm-tooltip.cm-completionInfo": {
  109816. position: "absolute",
  109817. padding: "3px 9px",
  109818. width: "max-content",
  109819. maxWidth: "400px",
  109820. boxSizing: "border-box"
  109821. },
  109822. ".cm-completionInfo.cm-completionInfo-left": { right: "100%" },
  109823. ".cm-completionInfo.cm-completionInfo-right": { left: "100%" },
  109824. ".cm-completionInfo.cm-completionInfo-left-narrow": { right: "30px" },
  109825. ".cm-completionInfo.cm-completionInfo-right-narrow": { left: "30px" },
  109826. "&light .cm-snippetField": { backgroundColor: "#00000022" },
  109827. "&dark .cm-snippetField": { backgroundColor: "#ffffff22" },
  109828. ".cm-snippetFieldPosition": {
  109829. verticalAlign: "text-top",
  109830. width: 0,
  109831. height: "1.15em",
  109832. display: "inline-block",
  109833. margin: "0 -0.7px -.7em",
  109834. borderLeft: "1.4px dotted #888"
  109835. },
  109836. ".cm-completionMatchedText": {
  109837. textDecoration: "underline"
  109838. },
  109839. ".cm-completionDetail": {
  109840. marginLeft: "0.5em",
  109841. fontStyle: "italic"
  109842. },
  109843. ".cm-completionIcon": {
  109844. fontSize: "90%",
  109845. width: ".8em",
  109846. display: "inline-block",
  109847. textAlign: "center",
  109848. paddingRight: ".6em",
  109849. opacity: "0.6",
  109850. boxSizing: "content-box"
  109851. },
  109852. ".cm-completionIcon-function, .cm-completionIcon-method": {
  109853. "&:after": { content: "'ƒ'" }
  109854. },
  109855. ".cm-completionIcon-class": {
  109856. "&:after": { content: "'○'" }
  109857. },
  109858. ".cm-completionIcon-interface": {
  109859. "&:after": { content: "'◌'" }
  109860. },
  109861. ".cm-completionIcon-variable": {
  109862. "&:after": { content: "'𝑥'" }
  109863. },
  109864. ".cm-completionIcon-constant": {
  109865. "&:after": { content: "'𝐶'" }
  109866. },
  109867. ".cm-completionIcon-type": {
  109868. "&:after": { content: "'𝑡'" }
  109869. },
  109870. ".cm-completionIcon-enum": {
  109871. "&:after": { content: "'∪'" }
  109872. },
  109873. ".cm-completionIcon-property": {
  109874. "&:after": { content: "'□'" }
  109875. },
  109876. ".cm-completionIcon-keyword": {
  109877. "&:after": { content: "'🔑︎'" }
  109878. // Disable emoji rendering
  109879. },
  109880. ".cm-completionIcon-namespace": {
  109881. "&:after": { content: "'▢'" }
  109882. },
  109883. ".cm-completionIcon-text": {
  109884. "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" }
  109885. }
  109886. });
  109887. class BPt {
  109888. constructor(e, n, r, i) {
  109889. this.field = e, this.line = n, this.from = r, this.to = i;
  109890. }
  109891. }
  109892. class AB {
  109893. constructor(e, n, r) {
  109894. this.field = e, this.from = n, this.to = r;
  109895. }
  109896. map(e) {
  109897. let n = e.mapPos(this.from, -1, Oi.TrackDel), r = e.mapPos(this.to, 1, Oi.TrackDel);
  109898. return n == null || r == null ? null : new AB(this.field, n, r);
  109899. }
  109900. }
  109901. class EB {
  109902. constructor(e, n) {
  109903. this.lines = e, this.fieldPositions = n;
  109904. }
  109905. instantiate(e, n) {
  109906. let r = [], i = [n], a = e.doc.lineAt(n), o = /^\s*/.exec(a.text)[0];
  109907. for (let l of this.lines) {
  109908. if (r.length) {
  109909. let u = o, c = /^\t*/.exec(l)[0].length;
  109910. for (let f = 0; f < c; f++)
  109911. u += e.facet(D1);
  109912. i.push(n + u.length - c), l = u + l.slice(c);
  109913. }
  109914. r.push(l), n += l.length + 1;
  109915. }
  109916. let s = this.fieldPositions.map((l) => new AB(l.field, i[l.line] + l.from, i[l.line] + l.to));
  109917. return { text: r, ranges: s };
  109918. }
  109919. static parse(e) {
  109920. let n = [], r = [], i = [], a;
  109921. for (let o of e.split(/\r\n?|\n/)) {
  109922. for (; a = /[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o); ) {
  109923. let s = a[1] ? +a[1] : null, l = a[2] || a[3] || "", u = -1, c = l.replace(/\\[{}]/g, (f) => f[1]);
  109924. for (let f = 0; f < n.length; f++)
  109925. (s != null ? n[f].seq == s : c && n[f].name == c) && (u = f);
  109926. if (u < 0) {
  109927. let f = 0;
  109928. for (; f < n.length && (s == null || n[f].seq != null && n[f].seq < s); )
  109929. f++;
  109930. n.splice(f, 0, { seq: s, name: c }), u = f;
  109931. for (let d of i)
  109932. d.field >= u && d.field++;
  109933. }
  109934. i.push(new BPt(u, r.length, a.index, a.index + c.length)), o = o.slice(0, a.index) + l + o.slice(a.index + a[0].length);
  109935. }
  109936. o = o.replace(/\\([{}])/g, (s, l, u) => {
  109937. for (let c of i)
  109938. c.line == r.length && c.from > u && (c.from--, c.to--);
  109939. return l;
  109940. }), r.push(o);
  109941. }
  109942. return new EB(r, i);
  109943. }
  109944. }
  109945. let zPt = /* @__PURE__ */ pt.widget({ widget: /* @__PURE__ */ new class extends Jl {
  109946. toDOM() {
  109947. let t = document.createElement("span");
  109948. return t.className = "cm-snippetFieldPosition", t;
  109949. }
  109950. ignoreEvent() {
  109951. return !1;
  109952. }
  109953. }() }), VPt = /* @__PURE__ */ pt.mark({ class: "cm-snippetField" });
  109954. class Hm {
  109955. constructor(e, n) {
  109956. this.ranges = e, this.active = n, this.deco = pt.set(e.map((r) => (r.from == r.to ? zPt : VPt).range(r.from, r.to)));
  109957. }
  109958. map(e) {
  109959. let n = [];
  109960. for (let r of this.ranges) {
  109961. let i = r.map(e);
  109962. if (!i)
  109963. return null;
  109964. n.push(i);
  109965. }
  109966. return new Hm(n, this.active);
  109967. }
  109968. selectionInsideField(e) {
  109969. return e.ranges.every((n) => this.ranges.some((r) => r.field == this.active && r.from <= n.from && r.to >= n.to));
  109970. }
  109971. }
  109972. const B1 = /* @__PURE__ */ zt.define({
  109973. map(t, e) {
  109974. return t && t.map(e);
  109975. }
  109976. }), FPt = /* @__PURE__ */ zt.define(), $_ = /* @__PURE__ */ fi.define({
  109977. create() {
  109978. return null;
  109979. },
  109980. update(t, e) {
  109981. for (let n of e.effects) {
  109982. if (n.is(B1))
  109983. return n.value;
  109984. if (n.is(FPt) && t)
  109985. return new Hm(t.ranges, n.value);
  109986. }
  109987. return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t;
  109988. },
  109989. provide: (t) => rt.decorations.from(t, (e) => e ? e.deco : pt.none)
  109990. });
  109991. function MB(t, e) {
  109992. return De.create(t.filter((n) => n.field == e).map((n) => De.range(n.from, n.to)));
  109993. }
  109994. function WPt(t) {
  109995. let e = EB.parse(t);
  109996. return (n, r, i, a) => {
  109997. let { text: o, ranges: s } = e.instantiate(n.state, i), l = {
  109998. changes: { from: i, to: a, insert: xn.of(o) },
  109999. scrollIntoView: !0,
  110000. annotations: r ? [PB.of(r), zr.userEvent.of("input.complete")] : void 0
  110001. };
  110002. if (s.length && (l.selection = MB(s, 0)), s.some((u) => u.field > 0)) {
  110003. let u = new Hm(s, 0), c = l.effects = [B1.of(u)];
  110004. n.state.field($_, !1) === void 0 && c.push(zt.appendConfig.of([$_, ZPt, UPt, mme]));
  110005. }
  110006. n.dispatch(n.state.update(l));
  110007. };
  110008. }
  110009. function yme(t) {
  110010. return ({ state: e, dispatch: n }) => {
  110011. let r = e.field($_, !1);
  110012. if (!r || t < 0 && r.active == 0)
  110013. return !1;
  110014. let i = r.active + t, a = t > 0 && !r.ranges.some((o) => o.field == i + t);
  110015. return n(e.update({
  110016. selection: MB(r.ranges, i),
  110017. effects: B1.of(a ? null : new Hm(r.ranges, i)),
  110018. scrollIntoView: !0
  110019. })), !0;
  110020. };
  110021. }
  110022. const QPt = ({ state: t, dispatch: e }) => t.field($_, !1) ? (e(t.update({ effects: B1.of(null) })), !0) : !1, HPt = /* @__PURE__ */ yme(1), GPt = /* @__PURE__ */ yme(-1), jPt = [
  110023. { key: "Tab", run: HPt, shift: GPt },
  110024. { key: "Escape", run: QPt }
  110025. ], RJ = /* @__PURE__ */ ut.define({
  110026. combine(t) {
  110027. return t.length ? t[0] : jPt;
  110028. }
  110029. }), ZPt = /* @__PURE__ */ Ff.highest(/* @__PURE__ */ M1.compute([RJ], (t) => t.facet(RJ)));
  110030. function xa(t, e) {
  110031. return Object.assign(Object.assign({}, e), { apply: WPt(t) });
  110032. }
  110033. const UPt = /* @__PURE__ */ rt.domEventHandlers({
  110034. mousedown(t, e) {
  110035. let n = e.state.field($_, !1), r;
  110036. if (!n || (r = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null)
  110037. return !1;
  110038. let i = n.ranges.find((a) => a.from <= r && a.to >= r);
  110039. return !i || i.field == n.active ? !1 : (e.dispatch({
  110040. selection: MB(n.ranges, i.field),
  110041. effects: B1.of(n.ranges.some((a) => a.field > i.field) ? new Hm(n.ranges, i.field) : null),
  110042. scrollIntoView: !0
  110043. }), !0);
  110044. }
  110045. }), A_ = {
  110046. brackets: ["(", "[", "{", "'", '"'],
  110047. before: ")]}:;>",
  110048. stringPrefixes: []
  110049. }, dh = /* @__PURE__ */ zt.define({
  110050. map(t, e) {
  110051. let n = e.mapPos(t, -1, Oi.TrackAfter);
  110052. return n ?? void 0;
  110053. }
  110054. }), IB = /* @__PURE__ */ new class extends Kh {
  110055. }();
  110056. IB.startSide = 1;
  110057. IB.endSide = -1;
  110058. const bme = /* @__PURE__ */ fi.define({
  110059. create() {
  110060. return Sn.empty;
  110061. },
  110062. update(t, e) {
  110063. if (t = t.map(e.changes), e.selection) {
  110064. let n = e.state.doc.lineAt(e.selection.main.head);
  110065. t = t.update({ filter: (r) => r >= n.from && r <= n.to });
  110066. }
  110067. for (let n of e.effects)
  110068. n.is(dh) && (t = t.update({ add: [IB.range(n.value, n.value + 1)] }));
  110069. return t;
  110070. }
  110071. });
  110072. function XPt() {
  110073. return [qPt, bme];
  110074. }
  110075. const SD = "()[]{}<>";
  110076. function _me(t) {
  110077. for (let e = 0; e < SD.length; e += 2)
  110078. if (SD.charCodeAt(e) == t)
  110079. return SD.charAt(e + 1);
  110080. return K6(t < 128 ? t : t + 1);
  110081. }
  110082. function Ome(t, e) {
  110083. return t.languageDataAt("closeBrackets", e)[0] || A_;
  110084. }
  110085. const YPt = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), qPt = /* @__PURE__ */ rt.inputHandler.of((t, e, n, r) => {
  110086. if ((YPt ? t.composing : t.compositionStarted) || t.state.readOnly)
  110087. return !1;
  110088. let i = t.state.selection.main;
  110089. if (r.length > 2 || r.length == 2 && jo(bi(r, 0)) == 1 || e != i.from || n != i.to)
  110090. return !1;
  110091. let a = e$t(t.state, r);
  110092. return a ? (t.dispatch(a), !0) : !1;
  110093. }), KPt = ({ state: t, dispatch: e }) => {
  110094. if (t.readOnly)
  110095. return !1;
  110096. let r = Ome(t, t.selection.main.head).brackets || A_.brackets, i = null, a = t.changeByRange((o) => {
  110097. if (o.empty) {
  110098. let s = t$t(t.doc, o.head);
  110099. for (let l of r)
  110100. if (l == s && h$(t.doc, o.head) == _me(bi(l, 0)))
  110101. return {
  110102. changes: { from: o.head - l.length, to: o.head + l.length },
  110103. range: De.cursor(o.head - l.length)
  110104. };
  110105. }
  110106. return { range: i = o };
  110107. });
  110108. return i || e(t.update(a, { scrollIntoView: !0, userEvent: "delete.backward" })), !i;
  110109. }, JPt = [
  110110. { key: "Backspace", run: KPt }
  110111. ];
  110112. function e$t(t, e) {
  110113. let n = Ome(t, t.selection.main.head), r = n.brackets || A_.brackets;
  110114. for (let i of r) {
  110115. let a = _me(bi(i, 0));
  110116. if (e == i)
  110117. return a == i ? i$t(t, i, r.indexOf(i + i + i) > -1, n) : n$t(t, i, a, n.before || A_.before);
  110118. if (e == a && Sme(t, t.selection.main.from))
  110119. return r$t(t, i, a);
  110120. }
  110121. return null;
  110122. }
  110123. function Sme(t, e) {
  110124. let n = !1;
  110125. return t.field(bme).between(0, t.doc.length, (r) => {
  110126. r == e && (n = !0);
  110127. }), n;
  110128. }
  110129. function h$(t, e) {
  110130. let n = t.sliceString(e, e + 2);
  110131. return n.slice(0, jo(bi(n, 0)));
  110132. }
  110133. function t$t(t, e) {
  110134. let n = t.sliceString(e - 2, e);
  110135. return jo(bi(n, 0)) == n.length ? n : n.slice(1);
  110136. }
  110137. function n$t(t, e, n, r) {
  110138. let i = null, a = t.changeByRange((o) => {
  110139. if (!o.empty)
  110140. return {
  110141. changes: [{ insert: e, from: o.from }, { insert: n, from: o.to }],
  110142. effects: dh.of(o.to + e.length),
  110143. range: De.range(o.anchor + e.length, o.head + e.length)
  110144. };
  110145. let s = h$(t.doc, o.head);
  110146. return !s || /\s/.test(s) || r.indexOf(s) > -1 ? {
  110147. changes: { insert: e + n, from: o.head },
  110148. effects: dh.of(o.head + e.length),
  110149. range: De.cursor(o.head + e.length)
  110150. } : { range: i = o };
  110151. });
  110152. return i ? null : t.update(a, {
  110153. scrollIntoView: !0,
  110154. userEvent: "input.type"
  110155. });
  110156. }
  110157. function r$t(t, e, n) {
  110158. let r = null, i = t.changeByRange((a) => a.empty && h$(t.doc, a.head) == n ? {
  110159. changes: { from: a.head, to: a.head + n.length, insert: n },
  110160. range: De.cursor(a.head + n.length)
  110161. } : r = { range: a });
  110162. return r ? null : t.update(i, {
  110163. scrollIntoView: !0,
  110164. userEvent: "input.type"
  110165. });
  110166. }
  110167. function i$t(t, e, n, r) {
  110168. let i = r.stringPrefixes || A_.stringPrefixes, a = null, o = t.changeByRange((s) => {
  110169. if (!s.empty)
  110170. return {
  110171. changes: [{ insert: e, from: s.from }, { insert: e, from: s.to }],
  110172. effects: dh.of(s.to + e.length),
  110173. range: De.range(s.anchor + e.length, s.head + e.length)
  110174. };
  110175. let l = s.head, u = h$(t.doc, l), c;
  110176. if (u == e) {
  110177. if (kJ(t, l))
  110178. return {
  110179. changes: { insert: e + e, from: l },
  110180. effects: dh.of(l + e.length),
  110181. range: De.cursor(l + e.length)
  110182. };
  110183. if (Sme(t, l)) {
  110184. let d = n && t.sliceDoc(l, l + e.length * 3) == e + e + e ? e + e + e : e;
  110185. return {
  110186. changes: { from: l, to: l + d.length, insert: d },
  110187. range: De.cursor(l + d.length)
  110188. };
  110189. }
  110190. } else {
  110191. if (n && t.sliceDoc(l - 2 * e.length, l) == e + e && (c = LJ(t, l - 2 * e.length, i)) > -1 && kJ(t, c))
  110192. return {
  110193. changes: { insert: e + e + e + e, from: l },
  110194. effects: dh.of(l + e.length),
  110195. range: De.cursor(l + e.length)
  110196. };
  110197. if (t.charCategorizer(l)(u) != lr.Word && LJ(t, l, i) > -1 && !a$t(t, l, e, i))
  110198. return {
  110199. changes: { insert: e + e, from: l },
  110200. effects: dh.of(l + e.length),
  110201. range: De.cursor(l + e.length)
  110202. };
  110203. }
  110204. return { range: a = s };
  110205. });
  110206. return a ? null : t.update(o, {
  110207. scrollIntoView: !0,
  110208. userEvent: "input.type"
  110209. });
  110210. }
  110211. function kJ(t, e) {
  110212. let n = ni(t).resolveInner(e + 1);
  110213. return n.parent && n.from == e;
  110214. }
  110215. function a$t(t, e, n, r) {
  110216. let i = ni(t).resolveInner(e, -1), a = r.reduce((o, s) => Math.max(o, s.length), 0);
  110217. for (let o = 0; o < 5; o++) {
  110218. let s = t.sliceDoc(i.from, Math.min(i.to, i.from + n.length + a)), l = s.indexOf(n);
  110219. if (!l || l > -1 && r.indexOf(s.slice(0, l)) > -1) {
  110220. let c = i.firstChild;
  110221. for (; c && c.from == i.from && c.to - c.from > n.length + l; ) {
  110222. if (t.sliceDoc(c.to - n.length, c.to) == n)
  110223. return !1;
  110224. c = c.firstChild;
  110225. }
  110226. return !0;
  110227. }
  110228. let u = i.to == e && i.parent;
  110229. if (!u)
  110230. break;
  110231. i = u;
  110232. }
  110233. return !1;
  110234. }
  110235. function LJ(t, e, n) {
  110236. let r = t.charCategorizer(e);
  110237. if (r(t.sliceDoc(e - 1, e)) != lr.Word)
  110238. return e;
  110239. for (let i of n) {
  110240. let a = e - i.length;
  110241. if (t.sliceDoc(a, e) == i && r(t.sliceDoc(a - 1, a)) != lr.Word)
  110242. return a;
  110243. }
  110244. return -1;
  110245. }
  110246. function o$t(t = {}) {
  110247. return [
  110248. NPt,
  110249. Ea,
  110250. Si.of(t),
  110251. kPt,
  110252. s$t,
  110253. mme
  110254. ];
  110255. }
  110256. const xme = [
  110257. { key: "Ctrl-Space", run: EPt },
  110258. { key: "Escape", run: MPt },
  110259. { key: "ArrowDown", run: /* @__PURE__ */ Px(!0) },
  110260. { key: "ArrowUp", run: /* @__PURE__ */ Px(!1) },
  110261. { key: "PageDown", run: /* @__PURE__ */ Px(!0, "page") },
  110262. { key: "PageUp", run: /* @__PURE__ */ Px(!1, "page") },
  110263. { key: "Enter", run: APt }
  110264. ], s$t = /* @__PURE__ */ Ff.highest(/* @__PURE__ */ M1.computeN([Si], (t) => t.facet(Si).defaultKeymap ? [xme] : []));
  110265. class l$t {
  110266. constructor(e, n, r) {
  110267. this.from = e, this.to = n, this.diagnostic = r;
  110268. }
  110269. }
  110270. class qd {
  110271. constructor(e, n, r) {
  110272. this.diagnostics = e, this.panel = n, this.selected = r;
  110273. }
  110274. static init(e, n, r) {
  110275. let i = e, a = r.facet(E_).markerFilter;
  110276. a && (i = a(i, r));
  110277. let o = pt.set(i.map((s) => s.from == s.to || s.from == s.to - 1 && r.doc.lineAt(s.from).to == s.from ? pt.widget({
  110278. widget: new m$t(s),
  110279. diagnostic: s
  110280. }).range(s.from) : pt.mark({
  110281. attributes: { class: "cm-lintRange cm-lintRange-" + s.severity + (s.markClass ? " " + s.markClass : "") },
  110282. diagnostic: s
  110283. }).range(s.from, s.to)), !0);
  110284. return new qd(o, n, rm(o));
  110285. }
  110286. }
  110287. function rm(t, e = null, n = 0) {
  110288. let r = null;
  110289. return t.between(n, 1e9, (i, a, { spec: o }) => {
  110290. if (!(e && o.diagnostic != e))
  110291. return r = new l$t(i, a, o.diagnostic), !1;
  110292. }), r;
  110293. }
  110294. function u$t(t, e) {
  110295. let n = e.pos, r = e.end || n, i = t.state.facet(E_).hideOn(t, n, r);
  110296. if (i != null)
  110297. return i;
  110298. let a = t.startState.doc.lineAt(e.pos);
  110299. return !!(t.effects.some((o) => o.is(wme)) || t.changes.touchesRange(a.from, Math.max(a.to, r)));
  110300. }
  110301. function c$t(t, e) {
  110302. return t.field(so, !1) ? e : e.concat(zt.appendConfig.of(_$t));
  110303. }
  110304. const wme = /* @__PURE__ */ zt.define(), DB = /* @__PURE__ */ zt.define(), Cme = /* @__PURE__ */ zt.define(), so = /* @__PURE__ */ fi.define({
  110305. create() {
  110306. return new qd(pt.none, null, null);
  110307. },
  110308. update(t, e) {
  110309. if (e.docChanged && t.diagnostics.size) {
  110310. let n = t.diagnostics.map(e.changes), r = null, i = t.panel;
  110311. if (t.selected) {
  110312. let a = e.changes.mapPos(t.selected.from, 1);
  110313. r = rm(n, t.selected.diagnostic, a) || rm(n, null, a);
  110314. }
  110315. !n.size && i && e.state.facet(E_).autoPanel && (i = null), t = new qd(n, i, r);
  110316. }
  110317. for (let n of e.effects)
  110318. if (n.is(wme)) {
  110319. let r = e.state.facet(E_).autoPanel ? n.value.length ? M_.open : null : t.panel;
  110320. t = qd.init(n.value, r, e.state);
  110321. } else n.is(DB) ? t = new qd(t.diagnostics, n.value ? M_.open : null, t.selected) : n.is(Cme) && (t = new qd(t.diagnostics, t.panel, n.value));
  110322. return t;
  110323. },
  110324. provide: (t) => [
  110325. S_.from(t, (e) => e.panel),
  110326. rt.decorations.from(t, (e) => e.diagnostics)
  110327. ]
  110328. }), f$t = /* @__PURE__ */ pt.mark({ class: "cm-lintRange cm-lintRange-active" });
  110329. function d$t(t, e, n) {
  110330. let { diagnostics: r } = t.state.field(so), i = [], a = 2e8, o = 0;
  110331. r.between(e - (n < 0 ? 1 : 0), e + (n > 0 ? 1 : 0), (l, u, { spec: c }) => {
  110332. e >= l && e <= u && (l == u || (e > l || n > 0) && (e < u || n < 0)) && (i.push(c.diagnostic), a = Math.min(l, a), o = Math.max(u, o));
  110333. });
  110334. let s = t.state.facet(E_).tooltipFilter;
  110335. return s && (i = s(i, t.state)), i.length ? {
  110336. pos: a,
  110337. end: o,
  110338. above: t.state.doc.lineAt(a).to < o,
  110339. create() {
  110340. return { dom: h$t(t, i) };
  110341. }
  110342. } : null;
  110343. }
  110344. function h$t(t, e) {
  110345. return Yn("ul", { class: "cm-tooltip-lint" }, e.map((n) => Pme(t, n, !1)));
  110346. }
  110347. const p$t = (t) => {
  110348. let e = t.state.field(so, !1);
  110349. (!e || !e.panel) && t.dispatch({ effects: c$t(t.state, [DB.of(!0)]) });
  110350. let n = O_(t, M_.open);
  110351. return n && n.dom.querySelector(".cm-panel-lint ul").focus(), !0;
  110352. }, NJ = (t) => {
  110353. let e = t.state.field(so, !1);
  110354. return !e || !e.panel ? !1 : (t.dispatch({ effects: DB.of(!1) }), !0);
  110355. }, v$t = (t) => {
  110356. let e = t.state.field(so, !1);
  110357. if (!e)
  110358. return !1;
  110359. let n = t.state.selection.main, r = e.diagnostics.iter(n.to + 1);
  110360. return !r.value && (r = e.diagnostics.iter(0), !r.value || r.from == n.from && r.to == n.to) ? !1 : (t.dispatch({ selection: { anchor: r.from, head: r.to }, scrollIntoView: !0 }), !0);
  110361. }, g$t = [
  110362. { key: "Mod-Shift-m", run: p$t, preventDefault: !0 },
  110363. { key: "F8", run: v$t }
  110364. ], E_ = /* @__PURE__ */ ut.define({
  110365. combine(t) {
  110366. return Object.assign({ sources: t.map((e) => e.source).filter((e) => e != null) }, Kl(t.map((e) => e.config), {
  110367. delay: 750,
  110368. markerFilter: null,
  110369. tooltipFilter: null,
  110370. needsRefresh: null,
  110371. hideOn: () => null
  110372. }, {
  110373. needsRefresh: (e, n) => e ? n ? (r) => e(r) || n(r) : e : n
  110374. }));
  110375. }
  110376. });
  110377. function Tme(t) {
  110378. let e = [];
  110379. if (t)
  110380. e: for (let { name: n } of t) {
  110381. for (let r = 0; r < n.length; r++) {
  110382. let i = n[r];
  110383. if (/[a-zA-Z]/.test(i) && !e.some((a) => a.toLowerCase() == i.toLowerCase())) {
  110384. e.push(i);
  110385. continue e;
  110386. }
  110387. }
  110388. e.push("");
  110389. }
  110390. return e;
  110391. }
  110392. function Pme(t, e, n) {
  110393. var r;
  110394. let i = n ? Tme(e.actions) : [];
  110395. return Yn("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, Yn("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(t) : e.message), (r = e.actions) === null || r === void 0 ? void 0 : r.map((a, o) => {
  110396. let s = !1, l = (d) => {
  110397. if (d.preventDefault(), s)
  110398. return;
  110399. s = !0;
  110400. let h = rm(t.state.field(so).diagnostics, e);
  110401. h && a.apply(t, h.from, h.to);
  110402. }, { name: u } = a, c = i[o] ? u.indexOf(i[o]) : -1, f = c < 0 ? u : [
  110403. u.slice(0, c),
  110404. Yn("u", u.slice(c, c + 1)),
  110405. u.slice(c + 1)
  110406. ];
  110407. return Yn("button", {
  110408. type: "button",
  110409. class: "cm-diagnosticAction",
  110410. onclick: l,
  110411. onmousedown: l,
  110412. "aria-label": ` Action: ${u}${c < 0 ? "" : ` (access key "${i[o]})"`}.`
  110413. }, f);
  110414. }), e.source && Yn("div", { class: "cm-diagnosticSource" }, e.source));
  110415. }
  110416. class m$t extends Jl {
  110417. constructor(e) {
  110418. super(), this.diagnostic = e;
  110419. }
  110420. eq(e) {
  110421. return e.diagnostic == this.diagnostic;
  110422. }
  110423. toDOM() {
  110424. return Yn("span", { class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity });
  110425. }
  110426. }
  110427. class BJ {
  110428. constructor(e, n) {
  110429. this.diagnostic = n, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = Pme(e, n, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
  110430. }
  110431. }
  110432. class M_ {
  110433. constructor(e) {
  110434. this.view = e, this.items = [];
  110435. let n = (i) => {
  110436. if (i.keyCode == 27)
  110437. NJ(this.view), this.view.focus();
  110438. else if (i.keyCode == 38 || i.keyCode == 33)
  110439. this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length);
  110440. else if (i.keyCode == 40 || i.keyCode == 34)
  110441. this.moveSelection((this.selectedIndex + 1) % this.items.length);
  110442. else if (i.keyCode == 36)
  110443. this.moveSelection(0);
  110444. else if (i.keyCode == 35)
  110445. this.moveSelection(this.items.length - 1);
  110446. else if (i.keyCode == 13)
  110447. this.view.focus();
  110448. else if (i.keyCode >= 65 && i.keyCode <= 90 && this.selectedIndex >= 0) {
  110449. let { diagnostic: a } = this.items[this.selectedIndex], o = Tme(a.actions);
  110450. for (let s = 0; s < o.length; s++)
  110451. if (o[s].toUpperCase().charCodeAt(0) == i.keyCode) {
  110452. let l = rm(this.view.state.field(so).diagnostics, a);
  110453. l && a.actions[s].apply(e, l.from, l.to);
  110454. }
  110455. } else
  110456. return;
  110457. i.preventDefault();
  110458. }, r = (i) => {
  110459. for (let a = 0; a < this.items.length; a++)
  110460. this.items[a].dom.contains(i.target) && this.moveSelection(a);
  110461. };
  110462. this.list = Yn("ul", {
  110463. tabIndex: 0,
  110464. role: "listbox",
  110465. "aria-label": this.view.state.phrase("Diagnostics"),
  110466. onkeydown: n,
  110467. onclick: r
  110468. }), this.dom = Yn("div", { class: "cm-panel-lint" }, this.list, Yn("button", {
  110469. type: "button",
  110470. name: "close",
  110471. "aria-label": this.view.state.phrase("close"),
  110472. onclick: () => NJ(this.view)
  110473. }, "×")), this.update();
  110474. }
  110475. get selectedIndex() {
  110476. let e = this.view.state.field(so).selected;
  110477. if (!e)
  110478. return -1;
  110479. for (let n = 0; n < this.items.length; n++)
  110480. if (this.items[n].diagnostic == e.diagnostic)
  110481. return n;
  110482. return -1;
  110483. }
  110484. update() {
  110485. let { diagnostics: e, selected: n } = this.view.state.field(so), r = 0, i = !1, a = null;
  110486. for (e.between(0, this.view.state.doc.length, (o, s, { spec: l }) => {
  110487. let u = -1, c;
  110488. for (let f = r; f < this.items.length; f++)
  110489. if (this.items[f].diagnostic == l.diagnostic) {
  110490. u = f;
  110491. break;
  110492. }
  110493. u < 0 ? (c = new BJ(this.view, l.diagnostic), this.items.splice(r, 0, c), i = !0) : (c = this.items[u], u > r && (this.items.splice(r, u - r), i = !0)), n && c.diagnostic == n.diagnostic ? c.dom.hasAttribute("aria-selected") || (c.dom.setAttribute("aria-selected", "true"), a = c) : c.dom.hasAttribute("aria-selected") && c.dom.removeAttribute("aria-selected"), r++;
  110494. }); r < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0); )
  110495. i = !0, this.items.pop();
  110496. this.items.length == 0 && (this.items.push(new BJ(this.view, {
  110497. from: -1,
  110498. to: -1,
  110499. severity: "info",
  110500. message: this.view.state.phrase("No diagnostics")
  110501. })), i = !0), a ? (this.list.setAttribute("aria-activedescendant", a.id), this.view.requestMeasure({
  110502. key: this,
  110503. read: () => ({ sel: a.dom.getBoundingClientRect(), panel: this.list.getBoundingClientRect() }),
  110504. write: ({ sel: o, panel: s }) => {
  110505. let l = s.height / this.list.offsetHeight;
  110506. o.top < s.top ? this.list.scrollTop -= (s.top - o.top) / l : o.bottom > s.bottom && (this.list.scrollTop += (o.bottom - s.bottom) / l);
  110507. }
  110508. })) : this.selectedIndex < 0 && this.list.removeAttribute("aria-activedescendant"), i && this.sync();
  110509. }
  110510. sync() {
  110511. let e = this.list.firstChild;
  110512. function n() {
  110513. let r = e;
  110514. e = r.nextSibling, r.remove();
  110515. }
  110516. for (let r of this.items)
  110517. if (r.dom.parentNode == this.list) {
  110518. for (; e != r.dom; )
  110519. n();
  110520. e = r.dom.nextSibling;
  110521. } else
  110522. this.list.insertBefore(r.dom, e);
  110523. for (; e; )
  110524. n();
  110525. }
  110526. moveSelection(e) {
  110527. if (this.selectedIndex < 0)
  110528. return;
  110529. let n = this.view.state.field(so), r = rm(n.diagnostics, this.items[e].diagnostic);
  110530. r && this.view.dispatch({
  110531. selection: { anchor: r.from, head: r.to },
  110532. scrollIntoView: !0,
  110533. effects: Cme.of(r)
  110534. });
  110535. }
  110536. static open(e) {
  110537. return new M_(e);
  110538. }
  110539. }
  110540. function y$t(t, e = 'viewBox="0 0 40 40"') {
  110541. return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`;
  110542. }
  110543. function $x(t) {
  110544. return y$t(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
  110545. }
  110546. const b$t = /* @__PURE__ */ rt.baseTheme({
  110547. ".cm-diagnostic": {
  110548. padding: "3px 6px 3px 8px",
  110549. marginLeft: "-1px",
  110550. display: "block",
  110551. whiteSpace: "pre-wrap"
  110552. },
  110553. ".cm-diagnostic-error": { borderLeft: "5px solid #d11" },
  110554. ".cm-diagnostic-warning": { borderLeft: "5px solid orange" },
  110555. ".cm-diagnostic-info": { borderLeft: "5px solid #999" },
  110556. ".cm-diagnostic-hint": { borderLeft: "5px solid #66d" },
  110557. ".cm-diagnosticAction": {
  110558. font: "inherit",
  110559. border: "none",
  110560. padding: "2px 4px",
  110561. backgroundColor: "#444",
  110562. color: "white",
  110563. borderRadius: "3px",
  110564. marginLeft: "8px",
  110565. cursor: "pointer"
  110566. },
  110567. ".cm-diagnosticSource": {
  110568. fontSize: "70%",
  110569. opacity: 0.7
  110570. },
  110571. ".cm-lintRange": {
  110572. backgroundPosition: "left bottom",
  110573. backgroundRepeat: "repeat-x",
  110574. paddingBottom: "0.7px"
  110575. },
  110576. ".cm-lintRange-error": { backgroundImage: /* @__PURE__ */ $x("#d11") },
  110577. ".cm-lintRange-warning": { backgroundImage: /* @__PURE__ */ $x("orange") },
  110578. ".cm-lintRange-info": { backgroundImage: /* @__PURE__ */ $x("#999") },
  110579. ".cm-lintRange-hint": { backgroundImage: /* @__PURE__ */ $x("#66d") },
  110580. ".cm-lintRange-active": { backgroundColor: "#ffdd9980" },
  110581. ".cm-tooltip-lint": {
  110582. padding: 0,
  110583. margin: 0
  110584. },
  110585. ".cm-lintPoint": {
  110586. position: "relative",
  110587. "&:after": {
  110588. content: '""',
  110589. position: "absolute",
  110590. bottom: 0,
  110591. left: "-2px",
  110592. borderLeft: "3px solid transparent",
  110593. borderRight: "3px solid transparent",
  110594. borderBottom: "4px solid #d11"
  110595. }
  110596. },
  110597. ".cm-lintPoint-warning": {
  110598. "&:after": { borderBottomColor: "orange" }
  110599. },
  110600. ".cm-lintPoint-info": {
  110601. "&:after": { borderBottomColor: "#999" }
  110602. },
  110603. ".cm-lintPoint-hint": {
  110604. "&:after": { borderBottomColor: "#66d" }
  110605. },
  110606. ".cm-panel.cm-panel-lint": {
  110607. position: "relative",
  110608. "& ul": {
  110609. maxHeight: "100px",
  110610. overflowY: "auto",
  110611. "& [aria-selected]": {
  110612. backgroundColor: "#ddd",
  110613. "& u": { textDecoration: "underline" }
  110614. },
  110615. "&:focus [aria-selected]": {
  110616. background_fallback: "#bdf",
  110617. backgroundColor: "Highlight",
  110618. color_fallback: "white",
  110619. color: "HighlightText"
  110620. },
  110621. "& u": { textDecoration: "none" },
  110622. padding: 0,
  110623. margin: 0
  110624. },
  110625. "& [name=close]": {
  110626. position: "absolute",
  110627. top: "0",
  110628. right: "2px",
  110629. background: "inherit",
  110630. border: "none",
  110631. font: "inherit",
  110632. padding: 0,
  110633. margin: 0
  110634. }
  110635. }
  110636. }), _$t = [
  110637. so,
  110638. /* @__PURE__ */ rt.decorations.compute([so], (t) => {
  110639. let { selected: e, panel: n } = t.field(so);
  110640. return !e || !n || e.from == e.to ? pt.none : pt.set([
  110641. f$t.range(e.from, e.to)
  110642. ]);
  110643. }),
  110644. /* @__PURE__ */ sCt(d$t, { hideOn: u$t }),
  110645. b$t
  110646. ], O$t = [
  110647. gCt(),
  110648. bCt(),
  110649. Lwt(),
  110650. RTt(),
  110651. sTt(),
  110652. Cwt(),
  110653. Ewt(),
  110654. cn.allowMultipleSelections.of(!0),
  110655. UCt(),
  110656. bge(fTt, { fallback: !0 }),
  110657. yTt(),
  110658. XPt(),
  110659. o$t(),
  110660. Ywt(),
  110661. Jwt(),
  110662. Wwt(),
  110663. W2t(),
  110664. M1.of([
  110665. ...JPt,
  110666. ...k2t,
  110667. ...sPt,
  110668. ...QTt,
  110669. ...rTt,
  110670. ...xme,
  110671. ...g$t
  110672. ])
  110673. ];
  110674. /*!
  110675. * VueCodemirror v6.1.1
  110676. * Copyright (c) Surmon. All rights reserved.
  110677. * Released under the MIT License.
  110678. * Surmon
  110679. */
  110680. var S$t = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize: 2, placeholder: "", autoDestroy: !0, extensions: [O$t] }), x$t = Symbol("vue-codemirror-global-config"), na, w$t = function(t) {
  110681. var e = t.onUpdate, n = t.onChange, r = t.onFocus, i = t.onBlur, a = function(o, s) {
  110682. var l = {};
  110683. for (var u in o) Object.prototype.hasOwnProperty.call(o, u) && s.indexOf(u) < 0 && (l[u] = o[u]);
  110684. if (o != null && typeof Object.getOwnPropertySymbols == "function") {
  110685. var c = 0;
  110686. for (u = Object.getOwnPropertySymbols(o); c < u.length; c++) s.indexOf(u[c]) < 0 && Object.prototype.propertyIsEnumerable.call(o, u[c]) && (l[u[c]] = o[u[c]]);
  110687. }
  110688. return l;
  110689. }(t, ["onUpdate", "onChange", "onFocus", "onBlur"]);
  110690. return cn.create({ doc: a.doc, selection: a.selection, extensions: (Array.isArray(a.extensions) ? a.extensions : [a.extensions]).concat([rt.updateListener.of(function(o) {
  110691. e(o), o.docChanged && n(o.state.doc.toString(), o), o.focusChanged && (o.view.hasFocus ? r(o) : i(o));
  110692. })]) });
  110693. }, Pv = function(t) {
  110694. var e = new $1();
  110695. return { compartment: e, run: function(n) {
  110696. e.get(t.state) ? t.dispatch({ effects: e.reconfigure(n) }) : t.dispatch({ effects: zt.appendConfig.of(e.of(n)) });
  110697. } };
  110698. }, zJ = function(t, e) {
  110699. var n = Pv(t), r = n.compartment, i = n.run;
  110700. return function(a) {
  110701. var o = r.get(t.state);
  110702. i(a ?? o !== e ? e : []);
  110703. };
  110704. }, Ax = { type: Boolean, default: void 0 }, C$t = { autofocus: Ax, disabled: Ax, indentWithTab: Ax, tabSize: Number, placeholder: String, style: Object, autoDestroy: Ax, phrases: Object, root: Object, extensions: Array, selection: Object }, T$t = { modelValue: { type: String, default: "" } }, P$t = Object.assign(Object.assign({}, C$t), T$t);
  110705. (function(t) {
  110706. t.Change = "change", t.Update = "update", t.Focus = "focus", t.Blur = "blur", t.Ready = "ready", t.ModelUpdate = "update:modelValue";
  110707. })(na || (na = {}));
  110708. var Kd = {};
  110709. Kd[na.Change] = function(t, e) {
  110710. return !0;
  110711. }, Kd[na.Update] = function(t) {
  110712. return !0;
  110713. }, Kd[na.Focus] = function(t) {
  110714. return !0;
  110715. }, Kd[na.Blur] = function(t) {
  110716. return !0;
  110717. }, Kd[na.Ready] = function(t) {
  110718. return !0;
  110719. };
  110720. var $me = {};
  110721. $me[na.ModelUpdate] = Kd[na.Change];
  110722. var $$t = Object.assign(Object.assign({}, Kd), $me), A$t = ae({ name: "VueCodemirror", props: Object.assign({}, P$t), emits: Object.assign({}, $$t), setup: function(t, e) {
  110723. var n = ve(), r = ve(), i = ve(), a = Object.assign(Object.assign({}, S$t), et(x$t, {})), o = V(function() {
  110724. var s = {};
  110725. return Object.keys(es(t)).forEach(function(l) {
  110726. var u;
  110727. l !== "modelValue" && (s[l] = (u = t[l]) !== null && u !== void 0 ? u : a[l]);
  110728. }), s;
  110729. });
  110730. return _t(function() {
  110731. var s;
  110732. r.value = w$t({ doc: t.modelValue, selection: o.value.selection, extensions: (s = a.extensions) !== null && s !== void 0 ? s : [], onFocus: function(u) {
  110733. return e.emit(na.Focus, u);
  110734. }, onBlur: function(u) {
  110735. return e.emit(na.Blur, u);
  110736. }, onUpdate: function(u) {
  110737. return e.emit(na.Update, u);
  110738. }, onChange: function(u, c) {
  110739. u !== t.modelValue && (e.emit(na.Change, u, c), e.emit(na.ModelUpdate, u, c));
  110740. } }), i.value = function(u) {
  110741. return new rt(Object.assign({}, u));
  110742. }({ state: r.value, parent: n.value, root: o.value.root });
  110743. var l = function(u) {
  110744. var c = function() {
  110745. return u.state.doc.toString();
  110746. }, f = Pv(u).run, d = zJ(u, [rt.editable.of(!1), cn.readOnly.of(!0)]), h = zJ(u, M1.of([L2t])), p = Pv(u).run, v = Pv(u).run, g = Pv(u).run, m = Pv(u).run;
  110747. return { focus: function() {
  110748. return u.focus();
  110749. }, getDoc: c, setDoc: function(y) {
  110750. y !== c() && u.dispatch({ changes: { from: 0, to: u.state.doc.length, insert: y } });
  110751. }, reExtensions: f, toggleDisabled: d, toggleIndentWithTab: h, setTabSize: function(y) {
  110752. p([cn.tabSize.of(y), D1.of(" ".repeat(y))]);
  110753. }, setPhrases: function(y) {
  110754. v([cn.phrases.of(y)]);
  110755. }, setPlaceholder: function(y) {
  110756. g(jwt(y));
  110757. }, setStyle: function(y) {
  110758. y === void 0 && (y = {}), m(rt.theme({ "&": Object.assign({}, y) }));
  110759. } };
  110760. }(i.value);
  110761. me(function() {
  110762. return t.modelValue;
  110763. }, function(u) {
  110764. u !== l.getDoc() && l.setDoc(u);
  110765. }), me(function() {
  110766. return t.extensions;
  110767. }, function(u) {
  110768. return l.reExtensions(u || []);
  110769. }, { immediate: !0 }), me(function() {
  110770. return o.value.disabled;
  110771. }, function(u) {
  110772. return l.toggleDisabled(u);
  110773. }, { immediate: !0 }), me(function() {
  110774. return o.value.indentWithTab;
  110775. }, function(u) {
  110776. return l.toggleIndentWithTab(u);
  110777. }, { immediate: !0 }), me(function() {
  110778. return o.value.tabSize;
  110779. }, function(u) {
  110780. return l.setTabSize(u);
  110781. }, { immediate: !0 }), me(function() {
  110782. return o.value.phrases;
  110783. }, function(u) {
  110784. return l.setPhrases(u || {});
  110785. }, { immediate: !0 }), me(function() {
  110786. return o.value.placeholder;
  110787. }, function(u) {
  110788. return l.setPlaceholder(u);
  110789. }, { immediate: !0 }), me(function() {
  110790. return o.value.style;
  110791. }, function(u) {
  110792. return l.setStyle(u);
  110793. }, { immediate: !0 }), o.value.autofocus && l.focus(), e.emit(na.Ready, { state: r.value, view: i.value, container: n.value });
  110794. }), Qt(function() {
  110795. o.value.autoDestroy && i.value && function(s) {
  110796. s.destroy();
  110797. }(i.value);
  110798. }), function() {
  110799. return ff("div", { class: "v-codemirror", style: { display: "contents" }, ref: n });
  110800. };
  110801. } }), E$t = A$t;
  110802. const M$t = "#e5c07b", VJ = "#e06c75", I$t = "#56b6c2", D$t = "#ffffff", kw = "#abb2bf", G4 = "#7d8799", R$t = "#61afef", k$t = "#98c379", FJ = "#d19a66", L$t = "#c678dd", N$t = "#21252b", WJ = "#2c313a", QJ = "#282c34", xD = "#353a42", B$t = "#3E4451", HJ = "#528bff", z$t = /* @__PURE__ */ rt.theme({
  110803. "&": {
  110804. color: kw,
  110805. backgroundColor: QJ
  110806. },
  110807. ".cm-content": {
  110808. caretColor: HJ
  110809. },
  110810. ".cm-cursor, .cm-dropCursor": { borderLeftColor: HJ },
  110811. "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: B$t },
  110812. ".cm-panels": { backgroundColor: N$t, color: kw },
  110813. ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
  110814. ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
  110815. ".cm-searchMatch": {
  110816. backgroundColor: "#72a1ff59",
  110817. outline: "1px solid #457dff"
  110818. },
  110819. ".cm-searchMatch.cm-searchMatch-selected": {
  110820. backgroundColor: "#6199ff2f"
  110821. },
  110822. ".cm-activeLine": { backgroundColor: "#6699ff0b" },
  110823. ".cm-selectionMatch": { backgroundColor: "#aafe661a" },
  110824. "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
  110825. backgroundColor: "#bad0f847"
  110826. },
  110827. ".cm-gutters": {
  110828. backgroundColor: QJ,
  110829. color: G4,
  110830. border: "none"
  110831. },
  110832. ".cm-activeLineGutter": {
  110833. backgroundColor: WJ
  110834. },
  110835. ".cm-foldPlaceholder": {
  110836. backgroundColor: "transparent",
  110837. border: "none",
  110838. color: "#ddd"
  110839. },
  110840. ".cm-tooltip": {
  110841. border: "none",
  110842. backgroundColor: xD
  110843. },
  110844. ".cm-tooltip .cm-tooltip-arrow:before": {
  110845. borderTopColor: "transparent",
  110846. borderBottomColor: "transparent"
  110847. },
  110848. ".cm-tooltip .cm-tooltip-arrow:after": {
  110849. borderTopColor: xD,
  110850. borderBottomColor: xD
  110851. },
  110852. ".cm-tooltip-autocomplete": {
  110853. "& > ul > li[aria-selected]": {
  110854. backgroundColor: WJ,
  110855. color: kw
  110856. }
  110857. }
  110858. }, { dark: !0 }), V$t = /* @__PURE__ */ k1.define([
  110859. {
  110860. tag: ce.keyword,
  110861. color: L$t
  110862. },
  110863. {
  110864. tag: [ce.name, ce.deleted, ce.character, ce.propertyName, ce.macroName],
  110865. color: VJ
  110866. },
  110867. {
  110868. tag: [/* @__PURE__ */ ce.function(ce.variableName), ce.labelName],
  110869. color: R$t
  110870. },
  110871. {
  110872. tag: [ce.color, /* @__PURE__ */ ce.constant(ce.name), /* @__PURE__ */ ce.standard(ce.name)],
  110873. color: FJ
  110874. },
  110875. {
  110876. tag: [/* @__PURE__ */ ce.definition(ce.name), ce.separator],
  110877. color: kw
  110878. },
  110879. {
  110880. tag: [ce.typeName, ce.className, ce.number, ce.changed, ce.annotation, ce.modifier, ce.self, ce.namespace],
  110881. color: M$t
  110882. },
  110883. {
  110884. tag: [ce.operator, ce.operatorKeyword, ce.url, ce.escape, ce.regexp, ce.link, /* @__PURE__ */ ce.special(ce.string)],
  110885. color: I$t
  110886. },
  110887. {
  110888. tag: [ce.meta, ce.comment],
  110889. color: G4
  110890. },
  110891. {
  110892. tag: ce.strong,
  110893. fontWeight: "bold"
  110894. },
  110895. {
  110896. tag: ce.emphasis,
  110897. fontStyle: "italic"
  110898. },
  110899. {
  110900. tag: ce.strikethrough,
  110901. textDecoration: "line-through"
  110902. },
  110903. {
  110904. tag: ce.link,
  110905. color: G4,
  110906. textDecoration: "underline"
  110907. },
  110908. {
  110909. tag: ce.heading,
  110910. fontWeight: "bold",
  110911. color: VJ
  110912. },
  110913. {
  110914. tag: [ce.atom, ce.bool, /* @__PURE__ */ ce.special(ce.variableName)],
  110915. color: FJ
  110916. },
  110917. {
  110918. tag: [ce.processingInstruction, ce.string, ce.inserted],
  110919. color: k$t
  110920. },
  110921. {
  110922. tag: ce.invalid,
  110923. color: D$t
  110924. }
  110925. ]), F$t = [z$t, /* @__PURE__ */ bge(V$t)];
  110926. class XT {
  110927. /**
  110928. @internal
  110929. */
  110930. constructor(e, n, r, i, a, o, s, l, u, c = 0, f) {
  110931. this.p = e, this.stack = n, this.state = r, this.reducePos = i, this.pos = a, this.score = o, this.buffer = s, this.bufferBase = l, this.curContext = u, this.lookAhead = c, this.parent = f;
  110932. }
  110933. /**
  110934. @internal
  110935. */
  110936. toString() {
  110937. return `[${this.stack.filter((e, n) => n % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
  110938. }
  110939. // Start an empty stack
  110940. /**
  110941. @internal
  110942. */
  110943. static start(e, n, r = 0) {
  110944. let i = e.parser.context;
  110945. return new XT(e, [], n, r, r, 0, [], 0, i ? new GJ(i, i.start) : null, 0, null);
  110946. }
  110947. /**
  110948. The stack's current [context](#lr.ContextTracker) value, if
  110949. any. Its type will depend on the context tracker's type
  110950. parameter, or it will be `null` if there is no context
  110951. tracker.
  110952. */
  110953. get context() {
  110954. return this.curContext ? this.curContext.context : null;
  110955. }
  110956. // Push a state onto the stack, tracking its start position as well
  110957. // as the buffer base at that point.
  110958. /**
  110959. @internal
  110960. */
  110961. pushState(e, n) {
  110962. this.stack.push(this.state, n, this.bufferBase + this.buffer.length), this.state = e;
  110963. }
  110964. // Apply a reduce action
  110965. /**
  110966. @internal
  110967. */
  110968. reduce(e) {
  110969. var n;
  110970. let r = e >> 19, i = e & 65535, { parser: a } = this.p;
  110971. this.reducePos < this.pos - 25 && this.setLookAhead(this.pos);
  110972. let o = a.dynamicPrecedence(i);
  110973. if (o && (this.score += o), r == 0) {
  110974. this.pushState(a.getGoto(this.state, i, !0), this.reducePos), i < a.minRepeatTerm && this.storeNode(i, this.reducePos, this.reducePos, 4, !0), this.reduceContext(i, this.reducePos);
  110975. return;
  110976. }
  110977. let s = this.stack.length - (r - 1) * 3 - (e & 262144 ? 6 : 0), l = s ? this.stack[s - 2] : this.p.ranges[0].from, u = this.reducePos - l;
  110978. u >= 2e3 && !(!((n = this.p.parser.nodeSet.types[i]) === null || n === void 0) && n.isAnonymous) && (l == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = u) : this.p.lastBigReductionSize < u && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = l, this.p.lastBigReductionSize = u));
  110979. let c = s ? this.stack[s - 1] : 0, f = this.bufferBase + this.buffer.length - c;
  110980. if (i < a.minRepeatTerm || e & 131072) {
  110981. let d = a.stateFlag(
  110982. this.state,
  110983. 1
  110984. /* StateFlag.Skipped */
  110985. ) ? this.pos : this.reducePos;
  110986. this.storeNode(i, l, d, f + 4, !0);
  110987. }
  110988. if (e & 262144)
  110989. this.state = this.stack[s];
  110990. else {
  110991. let d = this.stack[s - 3];
  110992. this.state = a.getGoto(d, i, !0);
  110993. }
  110994. for (; this.stack.length > s; )
  110995. this.stack.pop();
  110996. this.reduceContext(i, l);
  110997. }
  110998. // Shift a value into the buffer
  110999. /**
  111000. @internal
  111001. */
  111002. storeNode(e, n, r, i = 4, a = !1) {
  111003. if (e == 0 && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
  111004. let o = this, s = this.buffer.length;
  111005. if (s == 0 && o.parent && (s = o.bufferBase - o.parent.bufferBase, o = o.parent), s > 0 && o.buffer[s - 4] == 0 && o.buffer[s - 1] > -1) {
  111006. if (n == r)
  111007. return;
  111008. if (o.buffer[s - 2] >= n) {
  111009. o.buffer[s - 2] = r;
  111010. return;
  111011. }
  111012. }
  111013. }
  111014. if (!a || this.pos == r)
  111015. this.buffer.push(e, n, r, i);
  111016. else {
  111017. let o = this.buffer.length;
  111018. if (o > 0 && this.buffer[o - 4] != 0)
  111019. for (; o > 0 && this.buffer[o - 2] > r; )
  111020. this.buffer[o] = this.buffer[o - 4], this.buffer[o + 1] = this.buffer[o - 3], this.buffer[o + 2] = this.buffer[o - 2], this.buffer[o + 3] = this.buffer[o - 1], o -= 4, i > 4 && (i -= 4);
  111021. this.buffer[o] = e, this.buffer[o + 1] = n, this.buffer[o + 2] = r, this.buffer[o + 3] = i;
  111022. }
  111023. }
  111024. // Apply a shift action
  111025. /**
  111026. @internal
  111027. */
  111028. shift(e, n, r, i) {
  111029. if (e & 131072)
  111030. this.pushState(e & 65535, this.pos);
  111031. else if (e & 262144)
  111032. this.pos = i, this.shiftContext(n, r), n <= this.p.parser.maxNode && this.buffer.push(n, r, i, 4);
  111033. else {
  111034. let a = e, { parser: o } = this.p;
  111035. (i > this.pos || n <= o.maxNode) && (this.pos = i, o.stateFlag(
  111036. a,
  111037. 1
  111038. /* StateFlag.Skipped */
  111039. ) || (this.reducePos = i)), this.pushState(a, r), this.shiftContext(n, r), n <= o.maxNode && this.buffer.push(n, r, i, 4);
  111040. }
  111041. }
  111042. // Apply an action
  111043. /**
  111044. @internal
  111045. */
  111046. apply(e, n, r, i) {
  111047. e & 65536 ? this.reduce(e) : this.shift(e, n, r, i);
  111048. }
  111049. // Add a prebuilt (reused) node into the buffer.
  111050. /**
  111051. @internal
  111052. */
  111053. useNode(e, n) {
  111054. let r = this.p.reused.length - 1;
  111055. (r < 0 || this.p.reused[r] != e) && (this.p.reused.push(e), r++);
  111056. let i = this.pos;
  111057. this.reducePos = this.pos = i + e.length, this.pushState(n, i), this.buffer.push(
  111058. r,
  111059. i,
  111060. this.reducePos,
  111061. -1
  111062. /* size == -1 means this is a reused value */
  111063. ), this.curContext && this.updateContext(this.curContext.tracker.reuse(this.curContext.context, e, this, this.p.stream.reset(this.pos - e.length)));
  111064. }
  111065. // Split the stack. Due to the buffer sharing and the fact
  111066. // that `this.stack` tends to stay quite shallow, this isn't very
  111067. // expensive.
  111068. /**
  111069. @internal
  111070. */
  111071. split() {
  111072. let e = this, n = e.buffer.length;
  111073. for (; n > 0 && e.buffer[n - 2] > e.reducePos; )
  111074. n -= 4;
  111075. let r = e.buffer.slice(n), i = e.bufferBase + n;
  111076. for (; e && i == e.bufferBase; )
  111077. e = e.parent;
  111078. return new XT(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, r, i, this.curContext, this.lookAhead, e);
  111079. }
  111080. // Try to recover from an error by 'deleting' (ignoring) one token.
  111081. /**
  111082. @internal
  111083. */
  111084. recoverByDelete(e, n) {
  111085. let r = e <= this.p.parser.maxNode;
  111086. r && this.storeNode(e, this.pos, n, 4), this.storeNode(0, this.pos, n, r ? 8 : 4), this.pos = this.reducePos = n, this.score -= 190;
  111087. }
  111088. /**
  111089. Check if the given term would be able to be shifted (optionally
  111090. after some reductions) on this stack. This can be useful for
  111091. external tokenizers that want to make sure they only provide a
  111092. given token when it applies.
  111093. */
  111094. canShift(e) {
  111095. for (let n = new W$t(this); ; ) {
  111096. let r = this.p.parser.stateSlot(
  111097. n.state,
  111098. 4
  111099. /* ParseState.DefaultReduce */
  111100. ) || this.p.parser.hasAction(n.state, e);
  111101. if (r == 0)
  111102. return !1;
  111103. if (!(r & 65536))
  111104. return !0;
  111105. n.reduce(r);
  111106. }
  111107. }
  111108. // Apply up to Recover.MaxNext recovery actions that conceptually
  111109. // inserts some missing token or rule.
  111110. /**
  111111. @internal
  111112. */
  111113. recoverByInsert(e) {
  111114. if (this.stack.length >= 300)
  111115. return [];
  111116. let n = this.p.parser.nextStates(this.state);
  111117. if (n.length > 8 || this.stack.length >= 120) {
  111118. let i = [];
  111119. for (let a = 0, o; a < n.length; a += 2)
  111120. (o = n[a + 1]) != this.state && this.p.parser.hasAction(o, e) && i.push(n[a], o);
  111121. if (this.stack.length < 120)
  111122. for (let a = 0; i.length < 8 && a < n.length; a += 2) {
  111123. let o = n[a + 1];
  111124. i.some((s, l) => l & 1 && s == o) || i.push(n[a], o);
  111125. }
  111126. n = i;
  111127. }
  111128. let r = [];
  111129. for (let i = 0; i < n.length && r.length < 4; i += 2) {
  111130. let a = n[i + 1];
  111131. if (a == this.state)
  111132. continue;
  111133. let o = this.split();
  111134. o.pushState(a, this.pos), o.storeNode(0, o.pos, o.pos, 4, !0), o.shiftContext(n[i], this.pos), o.reducePos = this.pos, o.score -= 200, r.push(o);
  111135. }
  111136. return r;
  111137. }
  111138. // Force a reduce, if possible. Return false if that can't
  111139. // be done.
  111140. /**
  111141. @internal
  111142. */
  111143. forceReduce() {
  111144. let { parser: e } = this.p, n = e.stateSlot(
  111145. this.state,
  111146. 5
  111147. /* ParseState.ForcedReduce */
  111148. );
  111149. if (!(n & 65536))
  111150. return !1;
  111151. if (!e.validAction(this.state, n)) {
  111152. let r = n >> 19, i = n & 65535, a = this.stack.length - r * 3;
  111153. if (a < 0 || e.getGoto(this.stack[a], i, !1) < 0) {
  111154. let o = this.findForcedReduction();
  111155. if (o == null)
  111156. return !1;
  111157. n = o;
  111158. }
  111159. this.storeNode(0, this.pos, this.pos, 4, !0), this.score -= 100;
  111160. }
  111161. return this.reducePos = this.pos, this.reduce(n), !0;
  111162. }
  111163. /**
  111164. Try to scan through the automaton to find some kind of reduction
  111165. that can be applied. Used when the regular ForcedReduce field
  111166. isn't a valid action. @internal
  111167. */
  111168. findForcedReduction() {
  111169. let { parser: e } = this.p, n = [], r = (i, a) => {
  111170. if (!n.includes(i))
  111171. return n.push(i), e.allActions(i, (o) => {
  111172. if (!(o & 393216)) if (o & 65536) {
  111173. let s = (o >> 19) - a;
  111174. if (s > 1) {
  111175. let l = o & 65535, u = this.stack.length - s * 3;
  111176. if (u >= 0 && e.getGoto(this.stack[u], l, !1) >= 0)
  111177. return s << 19 | 65536 | l;
  111178. }
  111179. } else {
  111180. let s = r(o, a + 1);
  111181. if (s != null)
  111182. return s;
  111183. }
  111184. });
  111185. };
  111186. return r(this.state, 0);
  111187. }
  111188. /**
  111189. @internal
  111190. */
  111191. forceAll() {
  111192. for (; !this.p.parser.stateFlag(
  111193. this.state,
  111194. 2
  111195. /* StateFlag.Accepting */
  111196. ); )
  111197. if (!this.forceReduce()) {
  111198. this.storeNode(0, this.pos, this.pos, 4, !0);
  111199. break;
  111200. }
  111201. return this;
  111202. }
  111203. /**
  111204. Check whether this state has no further actions (assumed to be a direct descendant of the
  111205. top state, since any other states must be able to continue
  111206. somehow). @internal
  111207. */
  111208. get deadEnd() {
  111209. if (this.stack.length != 3)
  111210. return !1;
  111211. let { parser: e } = this.p;
  111212. return e.data[e.stateSlot(
  111213. this.state,
  111214. 1
  111215. /* ParseState.Actions */
  111216. )] == 65535 && !e.stateSlot(
  111217. this.state,
  111218. 4
  111219. /* ParseState.DefaultReduce */
  111220. );
  111221. }
  111222. /**
  111223. Restart the stack (put it back in its start state). Only safe
  111224. when this.stack.length == 3 (state is directly below the top
  111225. state). @internal
  111226. */
  111227. restart() {
  111228. this.storeNode(0, this.pos, this.pos, 4, !0), this.state = this.stack[0], this.stack.length = 0;
  111229. }
  111230. /**
  111231. @internal
  111232. */
  111233. sameState(e) {
  111234. if (this.state != e.state || this.stack.length != e.stack.length)
  111235. return !1;
  111236. for (let n = 0; n < this.stack.length; n += 3)
  111237. if (this.stack[n] != e.stack[n])
  111238. return !1;
  111239. return !0;
  111240. }
  111241. /**
  111242. Get the parser used by this stack.
  111243. */
  111244. get parser() {
  111245. return this.p.parser;
  111246. }
  111247. /**
  111248. Test whether a given dialect (by numeric ID, as exported from
  111249. the terms file) is enabled.
  111250. */
  111251. dialectEnabled(e) {
  111252. return this.p.parser.dialect.flags[e];
  111253. }
  111254. shiftContext(e, n) {
  111255. this.curContext && this.updateContext(this.curContext.tracker.shift(this.curContext.context, e, this, this.p.stream.reset(n)));
  111256. }
  111257. reduceContext(e, n) {
  111258. this.curContext && this.updateContext(this.curContext.tracker.reduce(this.curContext.context, e, this, this.p.stream.reset(n)));
  111259. }
  111260. /**
  111261. @internal
  111262. */
  111263. emitContext() {
  111264. let e = this.buffer.length - 1;
  111265. (e < 0 || this.buffer[e] != -3) && this.buffer.push(this.curContext.hash, this.pos, this.pos, -3);
  111266. }
  111267. /**
  111268. @internal
  111269. */
  111270. emitLookAhead() {
  111271. let e = this.buffer.length - 1;
  111272. (e < 0 || this.buffer[e] != -4) && this.buffer.push(this.lookAhead, this.pos, this.pos, -4);
  111273. }
  111274. updateContext(e) {
  111275. if (e != this.curContext.context) {
  111276. let n = new GJ(this.curContext.tracker, e);
  111277. n.hash != this.curContext.hash && this.emitContext(), this.curContext = n;
  111278. }
  111279. }
  111280. /**
  111281. @internal
  111282. */
  111283. setLookAhead(e) {
  111284. e > this.lookAhead && (this.emitLookAhead(), this.lookAhead = e);
  111285. }
  111286. /**
  111287. @internal
  111288. */
  111289. close() {
  111290. this.curContext && this.curContext.tracker.strict && this.emitContext(), this.lookAhead > 0 && this.emitLookAhead();
  111291. }
  111292. }
  111293. class GJ {
  111294. constructor(e, n) {
  111295. this.tracker = e, this.context = n, this.hash = e.strict ? e.hash(n) : 0;
  111296. }
  111297. }
  111298. class W$t {
  111299. constructor(e) {
  111300. this.start = e, this.state = e.state, this.stack = e.stack, this.base = this.stack.length;
  111301. }
  111302. reduce(e) {
  111303. let n = e & 65535, r = e >> 19;
  111304. r == 0 ? (this.stack == this.start.stack && (this.stack = this.stack.slice()), this.stack.push(this.state, 0, 0), this.base += 3) : this.base -= (r - 1) * 3;
  111305. let i = this.start.p.parser.getGoto(this.stack[this.base - 3], n, !0);
  111306. this.state = i;
  111307. }
  111308. }
  111309. class YT {
  111310. constructor(e, n, r) {
  111311. this.stack = e, this.pos = n, this.index = r, this.buffer = e.buffer, this.index == 0 && this.maybeNext();
  111312. }
  111313. static create(e, n = e.bufferBase + e.buffer.length) {
  111314. return new YT(e, n, n - e.bufferBase);
  111315. }
  111316. maybeNext() {
  111317. let e = this.stack.parent;
  111318. e != null && (this.index = this.stack.bufferBase - e.bufferBase, this.stack = e, this.buffer = e.buffer);
  111319. }
  111320. get id() {
  111321. return this.buffer[this.index - 4];
  111322. }
  111323. get start() {
  111324. return this.buffer[this.index - 3];
  111325. }
  111326. get end() {
  111327. return this.buffer[this.index - 2];
  111328. }
  111329. get size() {
  111330. return this.buffer[this.index - 1];
  111331. }
  111332. next() {
  111333. this.index -= 4, this.pos -= 4, this.index == 0 && this.maybeNext();
  111334. }
  111335. fork() {
  111336. return new YT(this.stack, this.pos, this.index);
  111337. }
  111338. }
  111339. function My(t, e = Uint16Array) {
  111340. if (typeof t != "string")
  111341. return t;
  111342. let n = null;
  111343. for (let r = 0, i = 0; r < t.length; ) {
  111344. let a = 0;
  111345. for (; ; ) {
  111346. let o = t.charCodeAt(r++), s = !1;
  111347. if (o == 126) {
  111348. a = 65535;
  111349. break;
  111350. }
  111351. o >= 92 && o--, o >= 34 && o--;
  111352. let l = o - 32;
  111353. if (l >= 46 && (l -= 46, s = !0), a += l, s)
  111354. break;
  111355. a *= 46;
  111356. }
  111357. n ? n[i++] = a : n = new e(a);
  111358. }
  111359. return n;
  111360. }
  111361. class Lw {
  111362. constructor() {
  111363. this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0;
  111364. }
  111365. }
  111366. const jJ = new Lw();
  111367. class Q$t {
  111368. /**
  111369. @internal
  111370. */
  111371. constructor(e, n) {
  111372. this.input = e, this.ranges = n, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = jJ, this.rangeIndex = 0, this.pos = this.chunkPos = n[0].from, this.range = n[0], this.end = n[n.length - 1].to, this.readNext();
  111373. }
  111374. /**
  111375. @internal
  111376. */
  111377. resolveOffset(e, n) {
  111378. let r = this.range, i = this.rangeIndex, a = this.pos + e;
  111379. for (; a < r.from; ) {
  111380. if (!i)
  111381. return null;
  111382. let o = this.ranges[--i];
  111383. a -= r.from - o.to, r = o;
  111384. }
  111385. for (; n < 0 ? a > r.to : a >= r.to; ) {
  111386. if (i == this.ranges.length - 1)
  111387. return null;
  111388. let o = this.ranges[++i];
  111389. a += o.from - r.to, r = o;
  111390. }
  111391. return a;
  111392. }
  111393. /**
  111394. @internal
  111395. */
  111396. clipPos(e) {
  111397. if (e >= this.range.from && e < this.range.to)
  111398. return e;
  111399. for (let n of this.ranges)
  111400. if (n.to > e)
  111401. return Math.max(e, n.from);
  111402. return this.end;
  111403. }
  111404. /**
  111405. Look at a code unit near the stream position. `.peek(0)` equals
  111406. `.next`, `.peek(-1)` gives you the previous character, and so
  111407. on.
  111408. Note that looking around during tokenizing creates dependencies
  111409. on potentially far-away content, which may reduce the
  111410. effectiveness incremental parsing—when looking forward—or even
  111411. cause invalid reparses when looking backward more than 25 code
  111412. units, since the library does not track lookbehind.
  111413. */
  111414. peek(e) {
  111415. let n = this.chunkOff + e, r, i;
  111416. if (n >= 0 && n < this.chunk.length)
  111417. r = this.pos + e, i = this.chunk.charCodeAt(n);
  111418. else {
  111419. let a = this.resolveOffset(e, 1);
  111420. if (a == null)
  111421. return -1;
  111422. if (r = a, r >= this.chunk2Pos && r < this.chunk2Pos + this.chunk2.length)
  111423. i = this.chunk2.charCodeAt(r - this.chunk2Pos);
  111424. else {
  111425. let o = this.rangeIndex, s = this.range;
  111426. for (; s.to <= r; )
  111427. s = this.ranges[++o];
  111428. this.chunk2 = this.input.chunk(this.chunk2Pos = r), r + this.chunk2.length > s.to && (this.chunk2 = this.chunk2.slice(0, s.to - r)), i = this.chunk2.charCodeAt(0);
  111429. }
  111430. }
  111431. return r >= this.token.lookAhead && (this.token.lookAhead = r + 1), i;
  111432. }
  111433. /**
  111434. Accept a token. By default, the end of the token is set to the
  111435. current stream position, but you can pass an offset (relative to
  111436. the stream position) to change that.
  111437. */
  111438. acceptToken(e, n = 0) {
  111439. let r = n ? this.resolveOffset(n, -1) : this.pos;
  111440. if (r == null || r < this.token.start)
  111441. throw new RangeError("Token end out of bounds");
  111442. this.token.value = e, this.token.end = r;
  111443. }
  111444. /**
  111445. Accept a token ending at a specific given position.
  111446. */
  111447. acceptTokenTo(e, n) {
  111448. this.token.value = e, this.token.end = n;
  111449. }
  111450. getChunk() {
  111451. if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {
  111452. let { chunk: e, chunkPos: n } = this;
  111453. this.chunk = this.chunk2, this.chunkPos = this.chunk2Pos, this.chunk2 = e, this.chunk2Pos = n, this.chunkOff = this.pos - this.chunkPos;
  111454. } else {
  111455. this.chunk2 = this.chunk, this.chunk2Pos = this.chunkPos;
  111456. let e = this.input.chunk(this.pos), n = this.pos + e.length;
  111457. this.chunk = n > this.range.to ? e.slice(0, this.range.to - this.pos) : e, this.chunkPos = this.pos, this.chunkOff = 0;
  111458. }
  111459. }
  111460. readNext() {
  111461. return this.chunkOff >= this.chunk.length && (this.getChunk(), this.chunkOff == this.chunk.length) ? this.next = -1 : this.next = this.chunk.charCodeAt(this.chunkOff);
  111462. }
  111463. /**
  111464. Move the stream forward N (defaults to 1) code units. Returns
  111465. the new value of [`next`](#lr.InputStream.next).
  111466. */
  111467. advance(e = 1) {
  111468. for (this.chunkOff += e; this.pos + e >= this.range.to; ) {
  111469. if (this.rangeIndex == this.ranges.length - 1)
  111470. return this.setDone();
  111471. e -= this.range.to - this.pos, this.range = this.ranges[++this.rangeIndex], this.pos = this.range.from;
  111472. }
  111473. return this.pos += e, this.pos >= this.token.lookAhead && (this.token.lookAhead = this.pos + 1), this.readNext();
  111474. }
  111475. setDone() {
  111476. return this.pos = this.chunkPos = this.end, this.range = this.ranges[this.rangeIndex = this.ranges.length - 1], this.chunk = "", this.next = -1;
  111477. }
  111478. /**
  111479. @internal
  111480. */
  111481. reset(e, n) {
  111482. if (n ? (this.token = n, n.start = e, n.lookAhead = e + 1, n.value = n.extended = -1) : this.token = jJ, this.pos != e) {
  111483. if (this.pos = e, e == this.end)
  111484. return this.setDone(), this;
  111485. for (; e < this.range.from; )
  111486. this.range = this.ranges[--this.rangeIndex];
  111487. for (; e >= this.range.to; )
  111488. this.range = this.ranges[++this.rangeIndex];
  111489. e >= this.chunkPos && e < this.chunkPos + this.chunk.length ? this.chunkOff = e - this.chunkPos : (this.chunk = "", this.chunkOff = 0), this.readNext();
  111490. }
  111491. return this;
  111492. }
  111493. /**
  111494. @internal
  111495. */
  111496. read(e, n) {
  111497. if (e >= this.chunkPos && n <= this.chunkPos + this.chunk.length)
  111498. return this.chunk.slice(e - this.chunkPos, n - this.chunkPos);
  111499. if (e >= this.chunk2Pos && n <= this.chunk2Pos + this.chunk2.length)
  111500. return this.chunk2.slice(e - this.chunk2Pos, n - this.chunk2Pos);
  111501. if (e >= this.range.from && n <= this.range.to)
  111502. return this.input.read(e, n);
  111503. let r = "";
  111504. for (let i of this.ranges) {
  111505. if (i.from >= n)
  111506. break;
  111507. i.to > e && (r += this.input.read(Math.max(i.from, e), Math.min(i.to, n)));
  111508. }
  111509. return r;
  111510. }
  111511. }
  111512. class ug {
  111513. constructor(e, n) {
  111514. this.data = e, this.id = n;
  111515. }
  111516. token(e, n) {
  111517. let { parser: r } = n.p;
  111518. Ame(this.data, e, n, this.id, r.data, r.tokenPrecTable);
  111519. }
  111520. }
  111521. ug.prototype.contextual = ug.prototype.fallback = ug.prototype.extend = !1;
  111522. class j4 {
  111523. constructor(e, n, r) {
  111524. this.precTable = n, this.elseToken = r, this.data = typeof e == "string" ? My(e) : e;
  111525. }
  111526. token(e, n) {
  111527. let r = e.pos, i = 0;
  111528. for (; ; ) {
  111529. let a = e.next < 0, o = e.resolveOffset(1, 1);
  111530. if (Ame(this.data, e, n, 0, this.data, this.precTable), e.token.value > -1)
  111531. break;
  111532. if (this.elseToken == null)
  111533. return;
  111534. if (a || i++, o == null)
  111535. break;
  111536. e.reset(o, e.token);
  111537. }
  111538. i && (e.reset(r, e.token), e.acceptToken(this.elseToken, i));
  111539. }
  111540. }
  111541. j4.prototype.contextual = ug.prototype.fallback = ug.prototype.extend = !1;
  111542. class p$ {
  111543. /**
  111544. Create a tokenizer. The first argument is the function that,
  111545. given an input stream, scans for the types of tokens it
  111546. recognizes at the stream's position, and calls
  111547. [`acceptToken`](#lr.InputStream.acceptToken) when it finds
  111548. one.
  111549. */
  111550. constructor(e, n = {}) {
  111551. this.token = e, this.contextual = !!n.contextual, this.fallback = !!n.fallback, this.extend = !!n.extend;
  111552. }
  111553. }
  111554. function Ame(t, e, n, r, i, a) {
  111555. let o = 0, s = 1 << r, { dialect: l } = n.p.parser;
  111556. e: for (; s & t[o]; ) {
  111557. let u = t[o + 1];
  111558. for (let h = o + 3; h < u; h += 2)
  111559. if ((t[h + 1] & s) > 0) {
  111560. let p = t[h];
  111561. if (l.allows(p) && (e.token.value == -1 || e.token.value == p || H$t(p, e.token.value, i, a))) {
  111562. e.acceptToken(p);
  111563. break;
  111564. }
  111565. }
  111566. let c = e.next, f = 0, d = t[o + 2];
  111567. if (e.next < 0 && d > f && t[u + d * 3 - 3] == 65535) {
  111568. o = t[u + d * 3 - 1];
  111569. continue e;
  111570. }
  111571. for (; f < d; ) {
  111572. let h = f + d >> 1, p = u + h + (h << 1), v = t[p], g = t[p + 1] || 65536;
  111573. if (c < v)
  111574. d = h;
  111575. else if (c >= g)
  111576. f = h + 1;
  111577. else {
  111578. o = t[p + 2], e.advance();
  111579. continue e;
  111580. }
  111581. }
  111582. break;
  111583. }
  111584. }
  111585. function ZJ(t, e, n) {
  111586. for (let r = e, i; (i = t[r]) != 65535; r++)
  111587. if (i == n)
  111588. return r - e;
  111589. return -1;
  111590. }
  111591. function H$t(t, e, n, r) {
  111592. let i = ZJ(n, r, e);
  111593. return i < 0 || ZJ(n, r, t) < i;
  111594. }
  111595. const qa = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
  111596. let wD = null;
  111597. function UJ(t, e, n) {
  111598. let r = t.cursor(Ur.IncludeAnonymous);
  111599. for (r.moveTo(e); ; )
  111600. if (!(n < 0 ? r.childBefore(e) : r.childAfter(e)))
  111601. for (; ; ) {
  111602. if ((n < 0 ? r.to < e : r.from > e) && !r.type.isError)
  111603. return n < 0 ? Math.max(0, Math.min(
  111604. r.to - 1,
  111605. e - 25
  111606. /* Lookahead.Margin */
  111607. )) : Math.min(t.length, Math.max(
  111608. r.from + 1,
  111609. e + 25
  111610. /* Lookahead.Margin */
  111611. ));
  111612. if (n < 0 ? r.prevSibling() : r.nextSibling())
  111613. break;
  111614. if (!r.parent())
  111615. return n < 0 ? 0 : t.length;
  111616. }
  111617. }
  111618. class G$t {
  111619. constructor(e, n) {
  111620. this.fragments = e, this.nodeSet = n, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment();
  111621. }
  111622. nextFragment() {
  111623. let e = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++];
  111624. if (e) {
  111625. for (this.safeFrom = e.openStart ? UJ(e.tree, e.from + e.offset, 1) - e.offset : e.from, this.safeTo = e.openEnd ? UJ(e.tree, e.to + e.offset, -1) - e.offset : e.to; this.trees.length; )
  111626. this.trees.pop(), this.start.pop(), this.index.pop();
  111627. this.trees.push(e.tree), this.start.push(-e.offset), this.index.push(0), this.nextStart = this.safeFrom;
  111628. } else
  111629. this.nextStart = 1e9;
  111630. }
  111631. // `pos` must be >= any previously given `pos` for this cursor
  111632. nodeAt(e) {
  111633. if (e < this.nextStart)
  111634. return null;
  111635. for (; this.fragment && this.safeTo <= e; )
  111636. this.nextFragment();
  111637. if (!this.fragment)
  111638. return null;
  111639. for (; ; ) {
  111640. let n = this.trees.length - 1;
  111641. if (n < 0)
  111642. return this.nextFragment(), null;
  111643. let r = this.trees[n], i = this.index[n];
  111644. if (i == r.children.length) {
  111645. this.trees.pop(), this.start.pop(), this.index.pop();
  111646. continue;
  111647. }
  111648. let a = r.children[i], o = this.start[n] + r.positions[i];
  111649. if (o > e)
  111650. return this.nextStart = o, null;
  111651. if (a instanceof Vr) {
  111652. if (o == e) {
  111653. if (o < this.safeFrom)
  111654. return null;
  111655. let s = o + a.length;
  111656. if (s <= this.safeTo) {
  111657. let l = a.prop(rn.lookAhead);
  111658. if (!l || s + l < this.fragment.to)
  111659. return a;
  111660. }
  111661. }
  111662. this.index[n]++, o + a.length >= Math.max(this.safeFrom, e) && (this.trees.push(a), this.start.push(o), this.index.push(0));
  111663. } else
  111664. this.index[n]++, this.nextStart = o + a.length;
  111665. }
  111666. }
  111667. }
  111668. class j$t {
  111669. constructor(e, n) {
  111670. this.stream = n, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((r) => new Lw());
  111671. }
  111672. getActions(e) {
  111673. let n = 0, r = null, { parser: i } = e.p, { tokenizers: a } = i, o = i.stateSlot(
  111674. e.state,
  111675. 3
  111676. /* ParseState.TokenizerMask */
  111677. ), s = e.curContext ? e.curContext.hash : 0, l = 0;
  111678. for (let u = 0; u < a.length; u++) {
  111679. if (!(1 << u & o))
  111680. continue;
  111681. let c = a[u], f = this.tokens[u];
  111682. if (!(r && !c.fallback) && ((c.contextual || f.start != e.pos || f.mask != o || f.context != s) && (this.updateCachedToken(f, c, e), f.mask = o, f.context = s), f.lookAhead > f.end + 25 && (l = Math.max(f.lookAhead, l)), f.value != 0)) {
  111683. let d = n;
  111684. if (f.extended > -1 && (n = this.addActions(e, f.extended, f.end, n)), n = this.addActions(e, f.value, f.end, n), !c.extend && (r = f, n > d))
  111685. break;
  111686. }
  111687. }
  111688. for (; this.actions.length > n; )
  111689. this.actions.pop();
  111690. return l && e.setLookAhead(l), !r && e.pos == this.stream.end && (r = new Lw(), r.value = e.p.parser.eofTerm, r.start = r.end = e.pos, n = this.addActions(e, r.value, r.end, n)), this.mainToken = r, this.actions;
  111691. }
  111692. getMainToken(e) {
  111693. if (this.mainToken)
  111694. return this.mainToken;
  111695. let n = new Lw(), { pos: r, p: i } = e;
  111696. return n.start = r, n.end = Math.min(r + 1, i.stream.end), n.value = r == i.stream.end ? i.parser.eofTerm : 0, n;
  111697. }
  111698. updateCachedToken(e, n, r) {
  111699. let i = this.stream.clipPos(r.pos);
  111700. if (n.token(this.stream.reset(i, e), r), e.value > -1) {
  111701. let { parser: a } = r.p;
  111702. for (let o = 0; o < a.specialized.length; o++)
  111703. if (a.specialized[o] == e.value) {
  111704. let s = a.specializers[o](this.stream.read(e.start, e.end), r);
  111705. if (s >= 0 && r.p.parser.dialect.allows(s >> 1)) {
  111706. s & 1 ? e.extended = s >> 1 : e.value = s >> 1;
  111707. break;
  111708. }
  111709. }
  111710. } else
  111711. e.value = 0, e.end = this.stream.clipPos(i + 1);
  111712. }
  111713. putAction(e, n, r, i) {
  111714. for (let a = 0; a < i; a += 3)
  111715. if (this.actions[a] == e)
  111716. return i;
  111717. return this.actions[i++] = e, this.actions[i++] = n, this.actions[i++] = r, i;
  111718. }
  111719. addActions(e, n, r, i) {
  111720. let { state: a } = e, { parser: o } = e.p, { data: s } = o;
  111721. for (let l = 0; l < 2; l++)
  111722. for (let u = o.stateSlot(
  111723. a,
  111724. l ? 2 : 1
  111725. /* ParseState.Actions */
  111726. ); ; u += 3) {
  111727. if (s[u] == 65535)
  111728. if (s[u + 1] == 1)
  111729. u = Ou(s, u + 2);
  111730. else {
  111731. i == 0 && s[u + 1] == 2 && (i = this.putAction(Ou(s, u + 2), n, r, i));
  111732. break;
  111733. }
  111734. s[u] == n && (i = this.putAction(Ou(s, u + 1), n, r, i));
  111735. }
  111736. return i;
  111737. }
  111738. }
  111739. class Z$t {
  111740. constructor(e, n, r, i) {
  111741. this.parser = e, this.input = n, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new Q$t(n, i), this.tokens = new j$t(e, this.stream), this.topTerm = e.top[1];
  111742. let { from: a } = i[0];
  111743. this.stacks = [XT.start(this, e.top[0], a)], this.fragments = r.length && this.stream.end - a > e.bufferLength * 4 ? new G$t(r, e.nodeSet) : null;
  111744. }
  111745. get parsedPos() {
  111746. return this.minStackPos;
  111747. }
  111748. // Move the parser forward. This will process all parse stacks at
  111749. // `this.pos` and try to advance them to a further position. If no
  111750. // stack for such a position is found, it'll start error-recovery.
  111751. //
  111752. // When the parse is finished, this will return a syntax tree. When
  111753. // not, it returns `null`.
  111754. advance() {
  111755. let e = this.stacks, n = this.minStackPos, r = this.stacks = [], i, a;
  111756. if (this.bigReductionCount > 300 && e.length == 1) {
  111757. let [o] = e;
  111758. for (; o.forceReduce() && o.stack.length && o.stack[o.stack.length - 2] >= this.lastBigReductionStart; )
  111759. ;
  111760. this.bigReductionCount = this.lastBigReductionSize = 0;
  111761. }
  111762. for (let o = 0; o < e.length; o++) {
  111763. let s = e[o];
  111764. for (; ; ) {
  111765. if (this.tokens.mainToken = null, s.pos > n)
  111766. r.push(s);
  111767. else {
  111768. if (this.advanceStack(s, r, e))
  111769. continue;
  111770. {
  111771. i || (i = [], a = []), i.push(s);
  111772. let l = this.tokens.getMainToken(s);
  111773. a.push(l.value, l.end);
  111774. }
  111775. }
  111776. break;
  111777. }
  111778. }
  111779. if (!r.length) {
  111780. let o = i && Y$t(i);
  111781. if (o)
  111782. return qa && console.log("Finish with " + this.stackID(o)), this.stackToTree(o);
  111783. if (this.parser.strict)
  111784. throw qa && i && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + n);
  111785. this.recovering || (this.recovering = 5);
  111786. }
  111787. if (this.recovering && i) {
  111788. let o = this.stoppedAt != null && i[0].pos > this.stoppedAt ? i[0] : this.runRecovery(i, a, r);
  111789. if (o)
  111790. return qa && console.log("Force-finish " + this.stackID(o)), this.stackToTree(o.forceAll());
  111791. }
  111792. if (this.recovering) {
  111793. let o = this.recovering == 1 ? 1 : this.recovering * 3;
  111794. if (r.length > o)
  111795. for (r.sort((s, l) => l.score - s.score); r.length > o; )
  111796. r.pop();
  111797. r.some((s) => s.reducePos > n) && this.recovering--;
  111798. } else if (r.length > 1) {
  111799. e: for (let o = 0; o < r.length - 1; o++) {
  111800. let s = r[o];
  111801. for (let l = o + 1; l < r.length; l++) {
  111802. let u = r[l];
  111803. if (s.sameState(u) || s.buffer.length > 500 && u.buffer.length > 500)
  111804. if ((s.score - u.score || s.buffer.length - u.buffer.length) > 0)
  111805. r.splice(l--, 1);
  111806. else {
  111807. r.splice(o--, 1);
  111808. continue e;
  111809. }
  111810. }
  111811. }
  111812. r.length > 12 && r.splice(
  111813. 12,
  111814. r.length - 12
  111815. /* Rec.MaxStackCount */
  111816. );
  111817. }
  111818. this.minStackPos = r[0].pos;
  111819. for (let o = 1; o < r.length; o++)
  111820. r[o].pos < this.minStackPos && (this.minStackPos = r[o].pos);
  111821. return null;
  111822. }
  111823. stopAt(e) {
  111824. if (this.stoppedAt != null && this.stoppedAt < e)
  111825. throw new RangeError("Can't move stoppedAt forward");
  111826. this.stoppedAt = e;
  111827. }
  111828. // Returns an updated version of the given stack, or null if the
  111829. // stack can't advance normally. When `split` and `stacks` are
  111830. // given, stacks split off by ambiguous operations will be pushed to
  111831. // `split`, or added to `stacks` if they move `pos` forward.
  111832. advanceStack(e, n, r) {
  111833. let i = e.pos, { parser: a } = this, o = qa ? this.stackID(e) + " -> " : "";
  111834. if (this.stoppedAt != null && i > this.stoppedAt)
  111835. return e.forceReduce() ? e : null;
  111836. if (this.fragments) {
  111837. let u = e.curContext && e.curContext.tracker.strict, c = u ? e.curContext.hash : 0;
  111838. for (let f = this.fragments.nodeAt(i); f; ) {
  111839. let d = this.parser.nodeSet.types[f.type.id] == f.type ? a.getGoto(e.state, f.type.id) : -1;
  111840. if (d > -1 && f.length && (!u || (f.prop(rn.contextHash) || 0) == c))
  111841. return e.useNode(f, d), qa && console.log(o + this.stackID(e) + ` (via reuse of ${a.getName(f.type.id)})`), !0;
  111842. if (!(f instanceof Vr) || f.children.length == 0 || f.positions[0] > 0)
  111843. break;
  111844. let h = f.children[0];
  111845. if (h instanceof Vr && f.positions[0] == 0)
  111846. f = h;
  111847. else
  111848. break;
  111849. }
  111850. }
  111851. let s = a.stateSlot(
  111852. e.state,
  111853. 4
  111854. /* ParseState.DefaultReduce */
  111855. );
  111856. if (s > 0)
  111857. return e.reduce(s), qa && console.log(o + this.stackID(e) + ` (via always-reduce ${a.getName(
  111858. s & 65535
  111859. /* Action.ValueMask */
  111860. )})`), !0;
  111861. if (e.stack.length >= 8400)
  111862. for (; e.stack.length > 6e3 && e.forceReduce(); )
  111863. ;
  111864. let l = this.tokens.getActions(e);
  111865. for (let u = 0; u < l.length; ) {
  111866. let c = l[u++], f = l[u++], d = l[u++], h = u == l.length || !r, p = h ? e : e.split(), v = this.tokens.mainToken;
  111867. if (p.apply(c, f, v ? v.start : p.pos, d), qa && console.log(o + this.stackID(p) + ` (via ${c & 65536 ? `reduce of ${a.getName(
  111868. c & 65535
  111869. /* Action.ValueMask */
  111870. )}` : "shift"} for ${a.getName(f)} @ ${i}${p == e ? "" : ", split"})`), h)
  111871. return !0;
  111872. p.pos > i ? n.push(p) : r.push(p);
  111873. }
  111874. return !1;
  111875. }
  111876. // Advance a given stack forward as far as it will go. Returns the
  111877. // (possibly updated) stack if it got stuck, or null if it moved
  111878. // forward and was given to `pushStackDedup`.
  111879. advanceFully(e, n) {
  111880. let r = e.pos;
  111881. for (; ; ) {
  111882. if (!this.advanceStack(e, null, null))
  111883. return !1;
  111884. if (e.pos > r)
  111885. return XJ(e, n), !0;
  111886. }
  111887. }
  111888. runRecovery(e, n, r) {
  111889. let i = null, a = !1;
  111890. for (let o = 0; o < e.length; o++) {
  111891. let s = e[o], l = n[o << 1], u = n[(o << 1) + 1], c = qa ? this.stackID(s) + " -> " : "";
  111892. if (s.deadEnd && (a || (a = !0, s.restart(), qa && console.log(c + this.stackID(s) + " (restarted)"), this.advanceFully(s, r))))
  111893. continue;
  111894. let f = s.split(), d = c;
  111895. for (let h = 0; f.forceReduce() && h < 10 && (qa && console.log(d + this.stackID(f) + " (via force-reduce)"), !this.advanceFully(f, r)); h++)
  111896. qa && (d = this.stackID(f) + " -> ");
  111897. for (let h of s.recoverByInsert(l))
  111898. qa && console.log(c + this.stackID(h) + " (via recover-insert)"), this.advanceFully(h, r);
  111899. this.stream.end > s.pos ? (u == s.pos && (u++, l = 0), s.recoverByDelete(l, u), qa && console.log(c + this.stackID(s) + ` (via recover-delete ${this.parser.getName(l)})`), XJ(s, r)) : (!i || i.score < s.score) && (i = s);
  111900. }
  111901. return i;
  111902. }
  111903. // Convert the stack's buffer to a syntax tree.
  111904. stackToTree(e) {
  111905. return e.close(), Vr.build({
  111906. buffer: YT.create(e),
  111907. nodeSet: this.parser.nodeSet,
  111908. topID: this.topTerm,
  111909. maxBufferLength: this.parser.bufferLength,
  111910. reused: this.reused,
  111911. start: this.ranges[0].from,
  111912. length: e.pos - this.ranges[0].from,
  111913. minRepeatType: this.parser.minRepeatTerm
  111914. });
  111915. }
  111916. stackID(e) {
  111917. let n = (wD || (wD = /* @__PURE__ */ new WeakMap())).get(e);
  111918. return n || wD.set(e, n = String.fromCodePoint(this.nextStackID++)), n + e;
  111919. }
  111920. }
  111921. function XJ(t, e) {
  111922. for (let n = 0; n < e.length; n++) {
  111923. let r = e[n];
  111924. if (r.pos == t.pos && r.sameState(t)) {
  111925. e[n].score < t.score && (e[n] = t);
  111926. return;
  111927. }
  111928. }
  111929. e.push(t);
  111930. }
  111931. class U$t {
  111932. constructor(e, n, r) {
  111933. this.source = e, this.flags = n, this.disabled = r;
  111934. }
  111935. allows(e) {
  111936. return !this.disabled || this.disabled[e] == 0;
  111937. }
  111938. }
  111939. const CD = (t) => t;
  111940. class X$t {
  111941. /**
  111942. Define a context tracker.
  111943. */
  111944. constructor(e) {
  111945. this.start = e.start, this.shift = e.shift || CD, this.reduce = e.reduce || CD, this.reuse = e.reuse || CD, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1;
  111946. }
  111947. }
  111948. class I_ extends nge {
  111949. /**
  111950. @internal
  111951. */
  111952. constructor(e) {
  111953. if (super(), this.wrappers = [], e.version != 14)
  111954. throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);
  111955. let n = e.nodeNames.split(" ");
  111956. this.minRepeatTerm = n.length;
  111957. for (let s = 0; s < e.repeatNodeCount; s++)
  111958. n.push("");
  111959. let r = Object.keys(e.topRules).map((s) => e.topRules[s][1]), i = [];
  111960. for (let s = 0; s < n.length; s++)
  111961. i.push([]);
  111962. function a(s, l, u) {
  111963. i[s].push([l, l.deserialize(String(u))]);
  111964. }
  111965. if (e.nodeProps)
  111966. for (let s of e.nodeProps) {
  111967. let l = s[0];
  111968. typeof l == "string" && (l = rn[l]);
  111969. for (let u = 1; u < s.length; ) {
  111970. let c = s[u++];
  111971. if (c >= 0)
  111972. a(c, l, s[u++]);
  111973. else {
  111974. let f = s[u + -c];
  111975. for (let d = -c; d > 0; d--)
  111976. a(s[u++], l, f);
  111977. u++;
  111978. }
  111979. }
  111980. }
  111981. this.nodeSet = new cB(n.map((s, l) => Va.define({
  111982. name: l >= this.minRepeatTerm ? void 0 : s,
  111983. id: l,
  111984. props: i[l],
  111985. top: r.indexOf(l) > -1,
  111986. error: l == 0,
  111987. skipped: e.skippedNodes && e.skippedNodes.indexOf(l) > -1
  111988. }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = Kve;
  111989. let o = My(e.tokenData);
  111990. this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
  111991. for (let s = 0; s < this.specializerSpecs.length; s++)
  111992. this.specialized[s] = this.specializerSpecs[s].term;
  111993. this.specializers = this.specializerSpecs.map(YJ), this.states = My(e.states, Uint32Array), this.data = My(e.stateData), this.goto = My(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((s) => typeof s == "number" ? new ug(o, s) : s), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
  111994. }
  111995. createParse(e, n, r) {
  111996. let i = new Z$t(this, e, n, r);
  111997. for (let a of this.wrappers)
  111998. i = a(i, e, n, r);
  111999. return i;
  112000. }
  112001. /**
  112002. Get a goto table entry @internal
  112003. */
  112004. getGoto(e, n, r = !1) {
  112005. let i = this.goto;
  112006. if (n >= i[0])
  112007. return -1;
  112008. for (let a = i[n + 1]; ; ) {
  112009. let o = i[a++], s = o & 1, l = i[a++];
  112010. if (s && r)
  112011. return l;
  112012. for (let u = a + (o >> 1); a < u; a++)
  112013. if (i[a] == e)
  112014. return l;
  112015. if (s)
  112016. return -1;
  112017. }
  112018. }
  112019. /**
  112020. Check if this state has an action for a given terminal @internal
  112021. */
  112022. hasAction(e, n) {
  112023. let r = this.data;
  112024. for (let i = 0; i < 2; i++)
  112025. for (let a = this.stateSlot(
  112026. e,
  112027. i ? 2 : 1
  112028. /* ParseState.Actions */
  112029. ), o; ; a += 3) {
  112030. if ((o = r[a]) == 65535)
  112031. if (r[a + 1] == 1)
  112032. o = r[a = Ou(r, a + 2)];
  112033. else {
  112034. if (r[a + 1] == 2)
  112035. return Ou(r, a + 2);
  112036. break;
  112037. }
  112038. if (o == n || o == 0)
  112039. return Ou(r, a + 1);
  112040. }
  112041. return 0;
  112042. }
  112043. /**
  112044. @internal
  112045. */
  112046. stateSlot(e, n) {
  112047. return this.states[e * 6 + n];
  112048. }
  112049. /**
  112050. @internal
  112051. */
  112052. stateFlag(e, n) {
  112053. return (this.stateSlot(
  112054. e,
  112055. 0
  112056. /* ParseState.Flags */
  112057. ) & n) > 0;
  112058. }
  112059. /**
  112060. @internal
  112061. */
  112062. validAction(e, n) {
  112063. return !!this.allActions(e, (r) => r == n ? !0 : null);
  112064. }
  112065. /**
  112066. @internal
  112067. */
  112068. allActions(e, n) {
  112069. let r = this.stateSlot(
  112070. e,
  112071. 4
  112072. /* ParseState.DefaultReduce */
  112073. ), i = r ? n(r) : void 0;
  112074. for (let a = this.stateSlot(
  112075. e,
  112076. 1
  112077. /* ParseState.Actions */
  112078. ); i == null; a += 3) {
  112079. if (this.data[a] == 65535)
  112080. if (this.data[a + 1] == 1)
  112081. a = Ou(this.data, a + 2);
  112082. else
  112083. break;
  112084. i = n(Ou(this.data, a + 1));
  112085. }
  112086. return i;
  112087. }
  112088. /**
  112089. Get the states that can follow this one through shift actions or
  112090. goto jumps. @internal
  112091. */
  112092. nextStates(e) {
  112093. let n = [];
  112094. for (let r = this.stateSlot(
  112095. e,
  112096. 1
  112097. /* ParseState.Actions */
  112098. ); ; r += 3) {
  112099. if (this.data[r] == 65535)
  112100. if (this.data[r + 1] == 1)
  112101. r = Ou(this.data, r + 2);
  112102. else
  112103. break;
  112104. if (!(this.data[r + 2] & 1)) {
  112105. let i = this.data[r + 1];
  112106. n.some((a, o) => o & 1 && a == i) || n.push(this.data[r], i);
  112107. }
  112108. }
  112109. return n;
  112110. }
  112111. /**
  112112. Configure the parser. Returns a new parser instance that has the
  112113. given settings modified. Settings not provided in `config` are
  112114. kept from the original parser.
  112115. */
  112116. configure(e) {
  112117. let n = Object.assign(Object.create(I_.prototype), this);
  112118. if (e.props && (n.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
  112119. let r = this.topRules[e.top];
  112120. if (!r)
  112121. throw new RangeError(`Invalid top rule name ${e.top}`);
  112122. n.top = r;
  112123. }
  112124. return e.tokenizers && (n.tokenizers = this.tokenizers.map((r) => {
  112125. let i = e.tokenizers.find((a) => a.from == r);
  112126. return i ? i.to : r;
  112127. })), e.specializers && (n.specializers = this.specializers.slice(), n.specializerSpecs = this.specializerSpecs.map((r, i) => {
  112128. let a = e.specializers.find((s) => s.from == r.external);
  112129. if (!a)
  112130. return r;
  112131. let o = Object.assign(Object.assign({}, r), { external: a.to });
  112132. return n.specializers[i] = YJ(o), o;
  112133. })), e.contextTracker && (n.context = e.contextTracker), e.dialect && (n.dialect = this.parseDialect(e.dialect)), e.strict != null && (n.strict = e.strict), e.wrap && (n.wrappers = n.wrappers.concat(e.wrap)), e.bufferLength != null && (n.bufferLength = e.bufferLength), n;
  112134. }
  112135. /**
  112136. Tells you whether any [parse wrappers](#lr.ParserConfig.wrap)
  112137. are registered for this parser.
  112138. */
  112139. hasWrappers() {
  112140. return this.wrappers.length > 0;
  112141. }
  112142. /**
  112143. Returns the name associated with a given term. This will only
  112144. work for all terms when the parser was generated with the
  112145. `--names` option. By default, only the names of tagged terms are
  112146. stored.
  112147. */
  112148. getName(e) {
  112149. return this.termNames ? this.termNames[e] : String(e <= this.maxNode && this.nodeSet.types[e].name || e);
  112150. }
  112151. /**
  112152. The eof term id is always allocated directly after the node
  112153. types. @internal
  112154. */
  112155. get eofTerm() {
  112156. return this.maxNode + 1;
  112157. }
  112158. /**
  112159. The type of top node produced by the parser.
  112160. */
  112161. get topNode() {
  112162. return this.nodeSet.types[this.top[1]];
  112163. }
  112164. /**
  112165. @internal
  112166. */
  112167. dynamicPrecedence(e) {
  112168. let n = this.dynamicPrecedences;
  112169. return n == null ? 0 : n[e] || 0;
  112170. }
  112171. /**
  112172. @internal
  112173. */
  112174. parseDialect(e) {
  112175. let n = Object.keys(this.dialects), r = n.map(() => !1);
  112176. if (e)
  112177. for (let a of e.split(" ")) {
  112178. let o = n.indexOf(a);
  112179. o >= 0 && (r[o] = !0);
  112180. }
  112181. let i = null;
  112182. for (let a = 0; a < n.length; a++)
  112183. if (!r[a])
  112184. for (let o = this.dialects[n[a]], s; (s = this.data[o++]) != 65535; )
  112185. (i || (i = new Uint8Array(this.maxTerm + 1)))[s] = 1;
  112186. return new U$t(e, r, i);
  112187. }
  112188. /**
  112189. Used by the output of the parser generator. Not available to
  112190. user code. @hide
  112191. */
  112192. static deserialize(e) {
  112193. return new I_(e);
  112194. }
  112195. }
  112196. function Ou(t, e) {
  112197. return t[e] | t[e + 1] << 16;
  112198. }
  112199. function Y$t(t) {
  112200. let e = null;
  112201. for (let n of t) {
  112202. let r = n.p.stoppedAt;
  112203. (n.pos == n.p.stream.end || r != null && n.pos > r) && n.p.parser.stateFlag(
  112204. n.state,
  112205. 2
  112206. /* StateFlag.Accepting */
  112207. ) && (!e || e.score < n.score) && (e = n);
  112208. }
  112209. return e;
  112210. }
  112211. function YJ(t) {
  112212. if (t.external) {
  112213. let e = t.extend ? 1 : 0;
  112214. return (n, r) => t.external(n, r) << 1 | e;
  112215. }
  112216. return t.get;
  112217. }
  112218. const q$t = 312, qJ = 1, K$t = 2, J$t = 3, eAt = 4, tAt = 313, nAt = 315, rAt = 316, iAt = 5, aAt = 6, oAt = 0, Z4 = [
  112219. 9,
  112220. 10,
  112221. 11,
  112222. 12,
  112223. 13,
  112224. 32,
  112225. 133,
  112226. 160,
  112227. 5760,
  112228. 8192,
  112229. 8193,
  112230. 8194,
  112231. 8195,
  112232. 8196,
  112233. 8197,
  112234. 8198,
  112235. 8199,
  112236. 8200,
  112237. 8201,
  112238. 8202,
  112239. 8232,
  112240. 8233,
  112241. 8239,
  112242. 8287,
  112243. 12288
  112244. ], Eme = 125, sAt = 59, U4 = 47, lAt = 42, uAt = 43, cAt = 45, fAt = 60, dAt = 44, hAt = 63, pAt = 46, vAt = new X$t({
  112245. start: !1,
  112246. shift(t, e) {
  112247. return e == iAt || e == aAt || e == nAt ? t : e == rAt;
  112248. },
  112249. strict: !1
  112250. }), gAt = new p$((t, e) => {
  112251. let { next: n } = t;
  112252. (n == Eme || n == -1 || e.context) && t.acceptToken(tAt);
  112253. }, { contextual: !0, fallback: !0 }), mAt = new p$((t, e) => {
  112254. let { next: n } = t, r;
  112255. Z4.indexOf(n) > -1 || n == U4 && ((r = t.peek(1)) == U4 || r == lAt) || n != Eme && n != sAt && n != -1 && !e.context && t.acceptToken(q$t);
  112256. }, { contextual: !0 }), yAt = new p$((t, e) => {
  112257. let { next: n } = t;
  112258. if (n == uAt || n == cAt) {
  112259. if (t.advance(), n == t.next) {
  112260. t.advance();
  112261. let r = !e.context && e.canShift(qJ);
  112262. t.acceptToken(r ? qJ : K$t);
  112263. }
  112264. } else n == hAt && t.peek(1) == pAt && (t.advance(), t.advance(), (t.next < 48 || t.next > 57) && t.acceptToken(J$t));
  112265. }, { contextual: !0 });
  112266. function TD(t, e) {
  112267. return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t == 95 || t >= 192 || !e && t >= 48 && t <= 57;
  112268. }
  112269. const bAt = new p$((t, e) => {
  112270. if (t.next != fAt || !e.dialectEnabled(oAt) || (t.advance(), t.next == U4)) return;
  112271. let n = 0;
  112272. for (; Z4.indexOf(t.next) > -1; )
  112273. t.advance(), n++;
  112274. if (TD(t.next, !0)) {
  112275. for (t.advance(), n++; TD(t.next, !1); )
  112276. t.advance(), n++;
  112277. for (; Z4.indexOf(t.next) > -1; )
  112278. t.advance(), n++;
  112279. if (t.next == dAt) return;
  112280. for (let r = 0; ; r++) {
  112281. if (r == 7) {
  112282. if (!TD(t.next, !0)) return;
  112283. break;
  112284. }
  112285. if (t.next != "extends".charCodeAt(r)) break;
  112286. t.advance(), n++;
  112287. }
  112288. }
  112289. t.acceptToken(eAt, -n);
  112290. }), _At = pB({
  112291. "get set async static": ce.modifier,
  112292. "for while do if else switch try catch finally return throw break continue default case": ce.controlKeyword,
  112293. "in of await yield void typeof delete instanceof": ce.operatorKeyword,
  112294. "let var const using function class extends": ce.definitionKeyword,
  112295. "import export from": ce.moduleKeyword,
  112296. "with debugger as new": ce.keyword,
  112297. TemplateString: ce.special(ce.string),
  112298. super: ce.atom,
  112299. BooleanLiteral: ce.bool,
  112300. this: ce.self,
  112301. null: ce.null,
  112302. Star: ce.modifier,
  112303. VariableName: ce.variableName,
  112304. "CallExpression/VariableName TaggedTemplateExpression/VariableName": ce.function(ce.variableName),
  112305. VariableDefinition: ce.definition(ce.variableName),
  112306. Label: ce.labelName,
  112307. PropertyName: ce.propertyName,
  112308. PrivatePropertyName: ce.special(ce.propertyName),
  112309. "CallExpression/MemberExpression/PropertyName": ce.function(ce.propertyName),
  112310. "FunctionDeclaration/VariableDefinition": ce.function(ce.definition(ce.variableName)),
  112311. "ClassDeclaration/VariableDefinition": ce.definition(ce.className),
  112312. PropertyDefinition: ce.definition(ce.propertyName),
  112313. PrivatePropertyDefinition: ce.definition(ce.special(ce.propertyName)),
  112314. UpdateOp: ce.updateOperator,
  112315. "LineComment Hashbang": ce.lineComment,
  112316. BlockComment: ce.blockComment,
  112317. Number: ce.number,
  112318. String: ce.string,
  112319. Escape: ce.escape,
  112320. ArithOp: ce.arithmeticOperator,
  112321. LogicOp: ce.logicOperator,
  112322. BitOp: ce.bitwiseOperator,
  112323. CompareOp: ce.compareOperator,
  112324. RegExp: ce.regexp,
  112325. Equals: ce.definitionOperator,
  112326. Arrow: ce.function(ce.punctuation),
  112327. ": Spread": ce.punctuation,
  112328. "( )": ce.paren,
  112329. "[ ]": ce.squareBracket,
  112330. "{ }": ce.brace,
  112331. "InterpolationStart InterpolationEnd": ce.special(ce.brace),
  112332. ".": ce.derefOperator,
  112333. ", ;": ce.separator,
  112334. "@": ce.meta,
  112335. TypeName: ce.typeName,
  112336. TypeDefinition: ce.definition(ce.typeName),
  112337. "type enum interface implements namespace module declare": ce.definitionKeyword,
  112338. "abstract global Privacy readonly override": ce.modifier,
  112339. "is keyof unique infer": ce.operatorKeyword,
  112340. JSXAttributeValue: ce.attributeValue,
  112341. JSXText: ce.content,
  112342. "JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag": ce.angleBracket,
  112343. "JSXIdentifier JSXNameSpacedName": ce.tagName,
  112344. "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": ce.attributeName,
  112345. "JSXBuiltin/JSXIdentifier": ce.standard(ce.tagName)
  112346. }), OAt = { __proto__: null, export: 20, as: 25, from: 33, default: 36, async: 41, function: 42, extends: 54, this: 58, true: 66, false: 66, null: 78, void: 82, typeof: 86, super: 102, new: 136, delete: 148, yield: 157, await: 161, class: 166, public: 229, private: 229, protected: 229, readonly: 231, instanceof: 250, satisfies: 253, in: 254, const: 256, import: 290, keyof: 345, unique: 349, infer: 355, is: 391, abstract: 411, implements: 413, type: 415, let: 418, var: 420, using: 423, interface: 429, enum: 433, namespace: 439, module: 441, declare: 445, global: 449, for: 468, of: 477, while: 480, with: 484, do: 488, if: 492, else: 494, switch: 498, case: 504, try: 510, catch: 514, finally: 518, return: 522, throw: 526, break: 530, continue: 534, debugger: 538 }, SAt = { __proto__: null, async: 123, get: 125, set: 127, declare: 189, public: 191, private: 191, protected: 191, static: 193, abstract: 195, override: 197, readonly: 203, accessor: 205, new: 395 }, xAt = { __proto__: null, "<": 187 }, wAt = I_.deserialize({
  112347. version: 14,
  112348. states: "$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO%[Q^O,5;bO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`O!0LbO'#DOO!0|Q7[O,5<dO!1TQWO,5<fO!2pQ$ISO'#GVO!2}QWO'#GWO!3SQWO'#GWO!4rQ$ISO'#G[O!5nQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6aQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6kQWO'#JfO!6yQWO'#JeO!7RQWO'#CuOOQ?Mr'#Cx'#CxO!7ZQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3SQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9iQ?NdO1G0|O#<PQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#>uQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-E<j-E<jO#E}Q?NdO1G0|O#FzQ?NdO1G0|OOQ?Mr1G0|1G0|O#GzQ7[O'#JwO#HUQWO,5:uO#HZQ?NdO1G1bO#H}Q&jO,5<VO#IVQ&jO,5<WO#I_Q&jO'#FnO#IvQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#I{Q&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#J^Q07bO'#JmO#JhQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JmQ`O'#KSOOQ?Mr,5<c,5<cO#JuQ`O,5<cO!&_Q7[O'#DQOOOO'#I^'#I^O#JzO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#KVQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#KuQ7[O,5=UO!+hQ7[O'#IsO#LhQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#LrQpO'#CrO#MVQ$ISO'#EoO#NUQ`O'#G`O#NrQpO,5<qO#NyQWO'#KWO9WQWO'#KWO$ XQWO,5<sO!+hQ7[O,5<rO$ ^QWO'#GXO$ oQWO,5<rO$ tQpO'#GUO$!RQpO'#KXO$!]QWO'#KXO!&_Q7[O'#KXO$!bQWO,5<vO$!gQ`O'#GaO!5iQ`O'#GaO$!xQWO'#GcO$!}QWO'#GeO!3SQWO'#GhO$#SQ?MxO'#IpO$#_Q`O,5<zOOQ?Mv,5<z,5<zO$#fQ`O'#GaO$#tQ`O'#GbO$#|Q`O'#GbO$$RQ7[O,5=UO$$cQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$$sQWO'#IuO$%OQWO,5@PO$%WQWO,59aOOQ?Mr,59f,59fO$%zQ!LSO,59rOOQ?Mr'#Jk'#JkO$&mQ7[O,5<iO$'`Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'jQWO,5<tO$'oQ7[O,5<yO$(PQWO'#JzO!$[Q^O1G2PO$(UQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(ZQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*]Q?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$,aQ7[O'#EhOOQ?Mp,5@O,5@OO$,kQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$,|QWO1G0rO$-RQWO'#CiO$-^QWO'#KaO$-fQWO,5=xO$-kQWO'#KaO$-pQWO'#KaO$.OQWO'#I}O$.^QWO,5@zO$.fQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.mQWO1G3cO$.rQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$.wQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$.|QWO1G3PO$/UQ`O'#G}OOQU1G3R1G3RO!5iQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/^Q7[O,5=qO9^QWO,5=qO$!}QWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$/lQWO'#K_O$/wQWO,5=tOOQU1G.k1G.kO$/|Q?MxO1G.kO@fQWO1G.kO$0XQWO1G.kO9hQ?MxO1G.kO$2aQrO,5@|O$2nQWO,5@|O9WQWO,5@|O$2yQ^O,5={O$3QQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$<WQ`O'#IaO$<nQWO,5@[OOQ?Mr1G/o1G/oO$<vQ`O'#IgO$=QQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$=YQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>jQpO,5<gO$>rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$AVQWO7+(bO$AbQ7[O7+(bO$ApQ?NdO,5=UO$CxQ?NdO,5=WO$FQQ?NdO,5=UO$H`Q?NdO,5=WO$JnQ?NdO,59rO$LsQ?NdO,5<iO$N{Q?NdO,5<kO%#TQ?NdO,5<yOOQ?Mr7+&^7+&^O%%cQ?NdO7+&^O%&VQ^O'#IbO%&dQWO,5@^O%&lQrO,5@^OOQ?Mr1G/|1G/|O%&vQWO7+&gOOQ?Mr7+&g7+&gO%&{Q07bO,5:cO%[Q^O7+&yO%'VQ07bO,5:_O%'dQ07bO,5:gO%'nQ07bO,5:iO%'xQ7[O'#IeO%(SQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%([QtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(gQWO1G1{OOQ?Mr1G1}1G1}O%(lQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%(sQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)gQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%*VQ7[O,5?]OOQ?Mr-E<o-E<oO%*xQ7[O,5?_OOQ?Mr-E<q-E<qO%+SQpO1G2tO%+ZQpO'#CrO%+qQ7[O'#J}O%+xQ^O'#EqOOQ?Mr1G2]1G2]O%,SQWO'#ImO%,hQWO,5@rO%,hQWO,5@rO%,pQWO,5@rO%,{QWO,5@rOOQO1G2_1G2_O%-ZQ7[O1G2^O!+hQ7[O1G2^O%-kQ$ISO'#IoO%-xQWO,5@sO!&_Q7[O,5@sO%.QQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(PQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%.[QWO,5<}OOQ?Mp,5=P,5=PO$(PQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5iQ`O,5<{O%.dQWO,5<|O$!xQWO,5<}O%.oQ`O,5<|O!+hQ7[O'#IqO%/`Q7[O1G2pO!+hQ7[O'#IsO%0RQ7[O1G2rO%0]Q7[O1G5lO%0gQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%0tQWO1G2XO!+hQ7[O1G2`O%0yQ?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%1mQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%1rQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$AYQWO7+(bO%1|Q?NbO'#CiO%2aQ?NbO,5=QO%3RQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%3WQWO'#I|O%3oQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3oQWO,5@{O%3wQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%3|QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4RQ?NbO7+(jO!&_Q7[O7+(jO%4]QpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%4dQWO'#K^O%4oQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6RQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%6YQWO1G3]O%6eQ7[O1G3]O9hQ?MxO1G3_O$!}QWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%6sQWO'#I{O%7XQWO,5@yO%7aQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7lQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%7qQ?MxO1G6hO%7{Q^O1G3gO%8SQWO1G3gO%8XQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8`Q^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%;YQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%;bQWO<<K|O%;mQ?NdO,5?]O%=uQ?NdO,5?_O%?}Q?NdO1G2^O%B]Q?NdO1G2pO%DeQ?NdO1G2rO%FmQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<<JR<<JRO%GPQ07bO1G0rO%IWQ07bO1G0|O%I_Q07bO1G0|O%K`Q07bO1G0|O%KgQ07bO1G0|O%MhQ07bO1G0|O& iQ07bO1G0|O& pQ07bO1G0|O& wQ07bO1G0|O&#xQ07bO1G0|O&$PQ07bO1G0|O&$WQ?NdO<<JeO&&OQ07bO1G0|O&&{Q07bO1G0|O&'{Q07bO'#JgO&*OQ07bO1G1bO&*]Q07bO1G0RO&*gQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&*qQWO1G1sO&*vQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&-WQrO'#CiO&-bQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&-pQWO1G6^O&-pQWO1G6^O&-xQWO1G6^O&.TQ7[O7+'xO&.eQpO,5?ZO&.oQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&.tQpO1G6_O&/OQWO1G6_OOQ?Mp1G2h1G2hO$(PQWO1G2hOOQ?Mp1G2g1G2gO&/WQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&/]QWO1G2iO&/eQWO1G2hO$!xQWO1G2iO&0XQ7[O,5?]OOQ?Mr-E<p-E<pO&0zQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&1UQWO1G/`OOQ?Mr7+'s7+'sO&1ZQ7[O7+'zO&1kQ?NdO<<KVOOQ?Mr<<KV<<KVO&2_QWO1G0wO!&_Q7[O'#IvO&2dQWO,5@tO&4fQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&4mQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5aQWO,5?hO&5fQWO,5?hOOQO-E<z-E<zO&5tQWO1G6gO&5tQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&5|QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4RQ?NbO<<LUOOQU<<LV<<LVO%4]QpO<<LVO&6RQ`O'#IxO&6^QWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%+xQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6fQ`O,5=rOOQU,5=r,5=rO&6mQ`O'#EdO&7RQ`O'#GcO&7WQWO7+(wO&7]QWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&7eQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$!}QWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&7pQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&7{QWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8TQWO7+,SO&8YQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8_QWO7+)RO&8dQ^O7+)RO&8kQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&8pQWO,5>]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>`Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&9UQ?MxO<<IpO&9aQ?NdO<= XO&9qQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&9yQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&:QQWOANAhO%[Q^OANAhO&:YQ?NdO7+'xO&<hQ?NdO,5?]O&>pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5<iO&LlQ07bO,5<kO&N}Q07bO,5<yO'!pQ07bO7+'jO'!}Q07bO7+'kO'#[QWO,5<[OOQO7+'_7+'_O'#aQ7[O<<KzOOQO1G4s1G4sO'#hQWO1G4sO'#sQWO1G4sO'$RQWO7++xO'$RQWO7++xO!&_Q7[O1G4uO'$ZQpO1G4uO'$eQWO7++yOOQ?Mp7+(S7+(SO'$mQWO7+(TO'$xQpO7+(TOOQ?Mp7+(R7+(RO$(PQWO7+(SO'%PQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO'%UQWO7+(TO'%^Q7[O<<NrOOQ?Mr7+$z7+$zO'%hQpO,5?bOOQO-E<t-E<tO'%rQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&SQWO1G5SO'&XQWO7+,RO'&XQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&aQWO,5?dOOQO-E<v-E<vO'&lQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%+xQ^O,5<}O'&vQWO,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&7WQWO<<LcO'&{QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$!}QWO<<LeO9RQWO<<LeO''TQ`O1G5RO''`QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''hQWO<= nO''mQWO<= oOOQU<<Lm<<LmO''rQWO<<LmO''wQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(OQWO<<I}O'(ZQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'(eQrOG27SO4UQrOG27SO'(lQWOG27SO'(tQ07bO<<JeO')RQ07bO1G2^O'*tQ07bO,5?]O',tQ07bO,5?_O'.tQ07bO1G2pO'0tQ07bO1G2rO'2tQ07bO<<KVO'3RQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'3`QWO7+*_O'3kQWO<= dO'3sQpO7+*aOOQ?Mp<<Ko<<KoO$(PQWO<<KoOCcQWO<<KoO'3}QWO<<KoOOQ?Mp<<Kn<<KnO'4YQpO<<KoO$(PQWO<<KnO'4aQWO<<KoO!&_Q7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4fQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'4nQWO7+,OO&7WQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'4vQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$!}QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5OQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$>`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'<pQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(PQWOANAZOCcQWOANAZO'=QQWOANAZOOQ?MpANAYANAYO'=]QpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'=dQ07bO7+*jOOQUG27iG27iO&7WQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'=nQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'=xQ?NdOG27QOOQ?MpG26uG26uO$(PQWOG26uOCcQWOG26uO'@WQWOG26uOOQULD-TLD-TO&7WQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQ?MpLD,aLD,aO$(PQWOLD,aOCcQWOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'@cQ07bOG27QOOQ?Mp!$( {!$( {O$(PQWO!$( {OOQ?Mp!)9Eg!)9EgO!(oQ^O'#DwO1PQWO'#EUO'BUQrO'#JmO'B]QMnO'#DsO'BdQ^O'#D{O'BkQrO'#CiO'ERQrO'#CiO!(oQ^O'#D}O'EcQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'GfQWO,5<gO!(oQ^O,5;bO'GnQ7[O,5;bO'IXQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'GnQ7[O'#GjO!&_Q7[O'#GlO'GnQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'GnQ7[O'#F}O!&_Q7[O'#GPO'GnQ7[O'#GPO!&_Q7[O'#G_O'GnQ7[O'#G_O!(oQ^O,5:gO'I`Q`O'#D[O!(oQ^O,5@jO'EcQ^O1G0rO'IjQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO'ItQpO'#CrO!&_Q7[O,5<rO'GnQ7[O,5<rO'EcQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'GnQ7[O1G2^O!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO!&_Q7[O1G2`O'GnQ7[O1G2`O'EcQ^O7+'kO'EcQ^O7+&^O!&_Q7[OANAfO'GnQ7[OANAfO'JXQWO'#ElO'J^QWO'#ElO'JfQWO'#F[O'JkQWO'#EvO'JpQWO'#KOO'J{QWO'#J|O'KWQWO,5;WO'K]Q7[O,5<dO'KdQWO'#GWO'KiQWO'#GWO'KnQWO,5<eO'KvQWO,5;WO'LOQ07bO1G1_O'LVQWO,5<rO'L[QWO,5<rO'LaQWO,5<tO'LfQWO,5<tO'LkQWO1G2PO'LpQWO1G0rO'LuQ7[O<<KzO'L|Q7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3SQWO'#GWO!3SQWO'#GWO!3SQWO'#GYO!3SQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%+SQpO1G2tO%+SQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",
  112349. stateData: "'NQ~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;UO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;VO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;QO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(RO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!ka![!ka%f!ka!d!ka~PKPO!h(_O~O!d#vO#](`O(m'mO!Y(oXa(oX'u(oX~O!h(oX~PMlO!P%fO![%gO!y]O#f(eO#g(dO(O%eO~O!Y(fO!h(nX~O!h(hO~O!P%fO![%gO#g(dO(O%eO~OP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O!d#vO!h(bX~P! YOR(jO}(iO!i#xO#P$dO!y!xa!P!xa~O!u!xa%e!xa![!xa#f!xa#g!xa(O!xa~P!#ZO!u(nO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#h(tO~O!X(vO!h(fP~P%[O(`(xO(j[O~O!P(zO!i#xO(`(xO(j[O~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOu)uO(])vO(^)xO~Ok*RO})zO!P){O(t$}O(u%PO~Og)yO~P!0kOg*SO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P*UO![*VO!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*YO(O*TO!h(zP~P!1YO#h*[O~O!i*]O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O*_O(QTO(TUO([$uO(t$}O(u%PO~O!X*bO!V({P~P!3XOo*nO!P*fO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO(`!mO~O!Z*kO~P!4|O#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5uOk*sO#]*rOg(YX!Y(YX~O!Y*tOg(XX~O(O&WOg(XP~Op*wO~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(QTO(TUO([VO(j[O(y<xO~O(O;zO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%VOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk=UO})zO!P){O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5uO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4kO#o$QO~P#4kOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9pO#w#ji~P#9pO#u$SO~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<fO#y$WO~P#<fOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?TOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O#y;bO#z;cO([VO(m$YO(t#|O(u#}O~O#}.sO~P#AbO#P$dO#];iO$P;iO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DdOk=UO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DdO!Y.wOg(kX~P!0kOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;dO!Z(aX~P#AbO!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)uO(])vO(^/WO~O!V/[O~P!&_O(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#K^O(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#LPO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1YOo*nO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO~Op'XO!P/fO!X+UO!Z*kO(QTO(TUO(`;wO!Z(sP~P#MjO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*YO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%VOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!4|O!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0kOg%`a!Y%`a#]%`a#}%`a~P!0kO(O&WOg'iX!Y'iX~O!Y*tOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%]O})zO!P){Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&UO})zO!P){Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$&wO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0kO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(fOh%VOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0pO(O0oO~P$*|O!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$|O~O(`(xO!Z)QP~Oh%VOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$0dO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#AbOp!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$_Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%VOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#K^O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#LPO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%]O#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&UO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$&wO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#AbO#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O<QO~P!1YOmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0kO!X4YO!V'cX!Y'cX~P!3XO!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O!P4hO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%.wO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/jOg(Yi!Y(Yi~P!0kO#]4mOg(Yi!Y(Yi~P!0kO!h4pO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4tO~O!Y4uO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4xOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4xO~Ob5OO%g5PO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5TO~O`5UO~Oa%lO'u%lO~P#.aO![$|O~P#.aO!Y5^O#]5`O!Z)QX~O!Z5aO~Oo5hOp!nO!P5bO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5gO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5fO~P%4tOk5mO![1aO%f5lO~Oh%VOk5mO![1aO%f5lO~Ob5tO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5vO~O`5zO~O#s5}O&W6OO~PMlO!h6PO~P%[Oa6RO~Oa6RO~P%[Ob2SO!Z6WO&f2RO~P`O!d6YO~O!d6[Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AbO#]6]O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AbOa%lO#]6fO'u%lO~Oa%lO!d#vO#]6fO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6mO(O%eO~O![']O%f6pO~Ok6tO![']O%f6pO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)nO#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*aO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%.wO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/jO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#AbOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%G^O#k;YO~P%G^OP$[OR#zOo;fO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%IfO#o;[O~P%IfOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;`O~P%MoO#w#ji~P%MoO#u;^O~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!OO#y;bO~P&!OOa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO(t#ji(u#ji~P&$zOk=VO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&$zO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AbO#}!oi!Z!oi~P$(fOg'Xa!Y'Xa~P!0kO!Z7WO~O!Y'`a!Z'`a~P#AbOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+QO!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0kO!V'ca!Y'ca~P#.aO!d7_O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7cO~O!d#vO#s7hO~Oo7iO!d#vO(m'mO~O})zO!P){O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&/pO})zO!P){Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0cO!V7lO~Og$|q!Y$|q#]$|q#}$|q~P!0kOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6[O~O!Y4uO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6pO~P&2lOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7qO~Ob7sO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7wO~O(`(xO!Y'lX!Z'lX~O!Y5^O!Z)Qa~O!Z8QO~P%4tOp!nO!P8RO(QTO(TUO(`!mO(j!sO~O#X8SO~O![1aO~O![1aO%f8UO~Ok8XO![1aO%f8UO~O[8^O!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8bO~O!h8cO~O!h8fO~O!h8fO~P%[Oa8hO~O!d8iO~O!h8jO~O!Y(ri!Z(ri~P#AbOa%lO#]8rO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8uO~P&2lO![']O%f8uO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&/pO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0cO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#AbO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&CoO(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&EsOk=VO})zO!P){O(u%PO~P&CoOk=VO})zO!P){O(t$}O~P&EsOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O})zO!P){OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O})zO!P){OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=VO})zO!P){O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NlO#}$lq!Y$lq!Z$lq~P#AbO#}$mq!Y$mq!Z$mq~P#AbO!Z9SO~O#}9TO~P!0kO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~Oo9[O!d#vO(m'mO~O!V9]O~P#.aO!V9]O~O!d#vO#s9bO~Og(Yy!Y(Yy~P!0kO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9dO~O!Y0wO!Z)Tq~O#]9hO!Y'la!Z'la~O!Y5^O!Z)Qi~P#AbO!P4hO~O![1aO%f9lO~O(QTO(TUO(`9qO~O!Y1lO!Z)Rq~O!h9tO~O!h9uO~O!h9vO~O!h9vO~P%[O#]9yO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AbO%f:OO~P&2lO![']O%f:OO~O#}#{y!Y#{y!Z#{y~P#AbOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NlO})zO!P){O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O})zO!P){OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AbO#}#`y!Y#`y!Z#`y~P#AbO!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aOo:YO!d#vO(m'mO~O!V:ZO~P#.aO!V:ZO~O!Y0wO!Z)Ty~O!Y5^O!Z)Qq~O![1aO%f:cO~O!h:fO~O%f:kO~P&2lOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NlO})zO!P){O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O})zO!P){OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NlOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0kOo:oO!d#vO(m'mO~O!V:pO~P#.aO!Y'lq!Z'lq~P#AbO!Y#e!Z!Z#e!Z~P#AbO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOo:xO!d#vO(m'mO~OP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NlOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&+QOP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'BxOP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![XO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y;dO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;oO!P${O![$|O!f=PO!i$xO#g;uO$V%_O$r;qO$t;sO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#t)`O~P'GnOo!bX(m!bX~P# ZO!Z]X!ZfX~P'BxO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h;XO~O!d#vO#h;XO~O#];iO~O#s;]O~O#];xO!Y(rX!Z(rX~O#];iO!Y(pX!Z(pX~O#h;yO~Og;{O~P!0kO#h<RO~O#h<SO~O!d#vO#h<TO~O!d#vO#h;yO~O#}<UO~P#AbO#h<VO~O#h<WO~O#h<]O~O#h<^O~O#h<_O~O#h<`O~O#}<aO~P!0kO#}<bO~P!0kO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",
  112350. goto: "$4Q)XPPPPPP)YPP)]P)nP+O/PPPPP5xPP6`PP<V?mP@QP@QPPP@QPBRP@QP@QP@QPBVPB[PByPGrPPPGvPPPPGvJxPPPKOKzPGvPGvPPNYGvPPPGvPGvP!!aGvP!%v!&{!'UP!'x!'|!'x!+YPPPPPPP!+y!&{PP!,Z!-gP!0jGvGv!0o!3z!8b!8b!<`PPP!<hGvPPPPPPPPPPP!?vP!ATPPGv!BfPGvPGvGvGvGvGvPGv!CxP!GRP!JWP!J[!Jf!Jj!JjP!GOP!Jn!JnP!MsP!MwGvGv!M}##RBV@QP@QP@Q@QP#$_@Q@Q#&j@Q#)Z@Q#+`@Q@Q#,O#.]#.]#.b#.k#.]#.wP#.]P@Q#/a@Q#3S@Q@Q5xPPP#6{PPP#7f#7fP#7fP#7|#7fPP#8SP#7yP#7y#8g#7y#9R#9X5u)]#9[)]P#9c#9c#9cP)]P)]P)]P)]PP)]P#9i#9lP#9l)]P#9pP#9sP)]P)]P)]P)]P)]P)])]PP#9y#:P#:[#:b#:h#:n#:t#;S#;Y#;d#;j#;t#;z#<[#<b#=S#=f#=l#=r#>Q#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U*y%[;n;oQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q5O0wQ5t1lQ6r3UQ7s5PR8x6t'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{t!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5g$|$ti#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ&U|Q'R!eU'X%g*V-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ5O0wQ5X1TQ5t1lQ5w1nQ5x1qQ7s5PQ7v5UQ8a5zQ9g7wR9r8^rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<z<{[#]WZ#W#Z'U(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4}0wQ5R0zQ5W1SQ5s1kQ7r5PQ7u5TQ9c7qR:^9d!O$zi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R!S%wy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5n1fS5r1j1kQ8]5s#^<|#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo<};g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bW%Ti%V*t<xS&X!Q&fQ&Y!RQ&Z!SR+y&V$}%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VT)v$u)wV*y%[;n;oW'X!e%g*V-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4n0`R7{5^'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{$i$^c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5gU*d$|*V*jS/y*e*lQ0S*mQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u;XQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;yS0f+R<TQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4s0g<_Q4y0tS4|0v<`Q6^2aQ6b2mQ6g2tQ7p4zQ8m6`Q8n6cQ8q6hR9x8j$d$]c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S#q];QQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6a2kW6n3P3R3V4wU8t6o6q6sU9}8v8w8yS:i9|:PQ:t:jR:z:uU!wQ']-]T5c1a5e!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5eT#q];Q%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS(y#y#zS.Y(i(j!s<f$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U$fd)Z,eS(l#p'fU*q%R(s3pU0b*x.f7PQ4w0mQ6o3QQ8w6rR:P8xm!tQ!r!v!y!z']'i'j'k-]-m1a5e5gQ'q!uS(b#g1vS-k'h'tQ/k*XQ/w*dQ2v-nQ4U/lS4_/x0SQ7Z4PS7f4e4gQ9V7[Q9Z7cQ9`7iS:X9[9]S:n:Y:ZS:w:o:pR:}:xQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*XQ/v*dQ/|*gQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5p1hQ6i2vQ7Y4PQ7^4US7b4_4gQ7g4fQ8Z5qS9U7Z7[Q9Y7cQ9^7fQ9a7jQ9o8[Q:V9VS:W9Z9]Q:[9`Q:e9pS:m:X:ZS:v:n:pQ:|:wQ;O:}Q<i<dQ<t<mR<u<nV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS#wz!j!r<c$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<i<z%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5q1i1j1kS8[5r5sQ9p8]!r<d$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q<m<yR<n<z%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rY#bWZ#W#Z(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ,f&l!p<e$Z$n)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<h'UU'Y!e%g*VR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8r!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q,e&lQ0m+aQ3Q._Q6r3UR8x6t!b$Tc#Y%o(O(U(p(u)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!P;_)Y)m-R.t2]2`3b3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!f$Vc#Y%o(O(U(p(u)S)T)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!T;a)Y)m-R.t2]2`3b3h3i3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!^$Zc#Y%o(O(U(p(u)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;RQ3}/cz<{)Y)m-R.t2]2`3b3q3y6_6z7T7U7}8l8z9Q9R:`:g<oQ=Q=SR=R=T'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8r!s<y$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5b5m5}6O6R6t8R8X8h!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=VQ*}%`Q/Y)zo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!O$yi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=RQ*^$zU*g$|*V*jQ+O%aQ/}*h#^<k#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn<l;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bQ<p<|Q<q<}Q<r=OR<s=P!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bnoOXst!Z#d%k&o&q&r&t,k,p1|2PS*a${*UQ,y&{Q,z&}R4X/p$|%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ+|&YQ1Y,OQ5[1XR7z5]V*i$|*V*jU*i$|*V*jT5d1a5eU/{*f/f5bS4f0T8RR7j4hQ+d%vQ/|*gQ0r+eQ1g,XQ5p1hQ8Z5qQ9o8[R:e9p!O%Oi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rr)}$v)a*O*p+P/n0Z0[3s4V4q7X7k:U<j<v<wS0V*o0W#^;j#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;k;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!`;|(q)_*W*`.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=T`;}3o6{7O7S8{:Q:T:{S<X.d3ZT<Y6}9O!O%Qi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rv*P$v)a*Q*o+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<wS0X*p0Y#^;l#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;m;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!d<O(q)_*W*`.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=Td<P3o6|6}7S8{8|:Q:R:T:{S<Z.e3[T<[7O9PrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5k1e1fU8T5i5j5nS9k8V8WS:a9j9mQ:q:bR:y:rQ&j!VR,a&fR5w1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)w$uR/V)wQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5eR'g!rQ.x)aR3t.xU#_W%f*UU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6kQ2y.QR6k2zQ)j$lR/O)jQ$phR)p$pQ$`cU)]$`-t;eQ-t;RR;e)mQ/i*XW4R/i4S7]9WU4S/j/k/lS7]4T4UR9W7^$Z)|$v(q)_)a*W*`*o*p*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4i4k4q5Z5]6u6v6w6x6}7O7Q7R7S7X7`7d7k7m7o8{8|8}9X9_:Q:R:S:T:U:]:l:{<j<v<w=S=TQ/q*`U4Z/q4]7aQ4]/sR7a4[S*j$|*VR0P*jr*O$v)a*o*p+P/n0Z0[3s4V4q7X7k:U<j<v<w!`.b(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=TU/`*O.b6{a6{3o6}7O7S8{:Q:T:{Q0W*oQ3Z.dU4j0W3Z9OR9O6}v*Q$v)a*o*p+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<w!d.c(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=TU/b*Q.c6|e6|3o6}7O7S8{8|:Q:R:T:{Q0Y*pQ3[.eU4l0Y3[9PR9P7OQ*u%UR0^*uQ4v0kR7n4vQ+X%iR0j+XQ5_1[S7|5_9iR9i7}Q,S&[R1_,SQ5e1aR8P5eQ1m,^S5u1m8_R8_5wQ0x+lW5Q0x5S7t9eQ5S0{Q7t5RR9e7uQ+q&OR1O+qQ2P,pR6V2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6U1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*iQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4y0tQ5V1RQ5Y1VQ5o1gQ5y1rQ6T1{U6d2p2s2vQ6g2tQ7p4zQ7x5XQ7y5ZQ8O5dQ8Y5pQ8`5xS8o6e6iQ8q6hQ9f7vQ9n8ZQ9s8aQ9z8pQ:_9gQ:d9oQ:h9{R:s:eQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*dS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4z0uQ6`2gQ6c2nQ6h2uR7e4dS$wi<xR*v%VU%Ui%V<xR0]*tQ$viS(q#v+cS)_$b$cQ)a$dQ*W$xS*`${*UQ*o%OQ*p%QQ*z%]Q*{%^Q+P%bQ.d;jQ.e;lQ.g;pQ.h;rQ.i;tQ/U)uS/Z){/]Q/_)}Q/a*PQ/c*RQ/n*[S/s*b/eQ0Z*rQ0[*sh0k+`.^1c3T5l6p8U8u9l:O:c:kQ1V+zQ1X+}Q3W;|Q3X<OQ3Y<RS3o;g;hQ3s.wQ4V/oQ4W/pQ4[/rQ4i0VQ4k0XQ4q0dQ5Z1WQ5]1ZQ6u<VQ6v<XQ6w<ZQ6x<]Q6};kQ7O;mQ7Q;qQ7R;sQ7S;uQ7X3}Q7`4YQ7d4bQ7k4mQ7m4uQ7o4xQ8{<SQ8|;}Q8}<PQ9X7_Q9_7hQ:Q<WQ:R<YQ:S<[Q:T<^Q:U9TQ:]9bQ:l<aQ:{<bQ<j<xQ<v=QQ<w=RQ=S=UR=T=VQ*x%[Q.f;nR7P;onpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5b8RQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4o0aQ5j1dQ5{1tQ5|1uQ6Q1wQ6S1yQ6X2RQ6s3UQ7V3uQ8W5mQ8d5}Q8e6OQ8g6RQ8y6tQ9m8XR9w8h#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5b5m5}6O6R6t8R8X8hQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)Y$ZQ)[$_Q)^$aQ)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r;PQ.t;SQ.u;TQ.v;WQ/X)yQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b;XQ3c;YQ3d;ZQ3e;[Q3f;]Q3g;^Q3h;_Q3i;`Q3j;aQ3k;bQ3l;cQ3m.sQ3n;fQ3q;iQ3r;vQ3y;dQ4r0gQ4{0vQ6_;xQ6e2rQ6j2xQ6y3^Q6z;yQ7T;{Q7U<TQ7}5`Q8l6]Q8p6fQ8z<UQ9Q<_Q9R<`Q9{8rQ:`9hQ:g9yQ;R#SR<o<{R#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5e5gS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5eQ#p]R'f;QR)b$dY!uQ']-]1a5eQ'h!rS'r!v!yS't!z5gS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6l2|2}R8s6md#^W#W#Z%f(P(Y*U+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6mS*X$x*]Q/l*YQ1v,gQ2^,}Q4P/hQ6Z2UQ7[4QQ8k6[T<g'U+UV#aW%f*UU#`W%f*US(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*VQ$lfR)t$qT)i$l)jR3w.|T*Z$x*]T*c${*UQ0l+`Q3P.^Q5i1cQ6q3TQ8V5lQ8v6pQ9j8UQ9|8uQ:b9lQ:j:OQ:r:cR:u:knqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",
  112351. nodeNames: "⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",
  112352. maxTerm: 376,
  112353. context: vAt,
  112354. nodeProps: [
  112355. ["isolate", -8, 5, 6, 14, 34, 36, 48, 50, 52, ""],
  112356. ["group", -26, 9, 17, 19, 65, 204, 208, 212, 213, 215, 218, 221, 231, 233, 239, 241, 243, 245, 248, 254, 260, 262, 264, 266, 268, 270, 271, "Statement", -34, 13, 14, 29, 32, 33, 39, 48, 51, 52, 54, 59, 67, 69, 73, 77, 79, 81, 82, 107, 108, 117, 118, 135, 138, 140, 141, 142, 143, 144, 146, 147, 166, 167, 169, "Expression", -23, 28, 30, 34, 38, 40, 42, 171, 173, 175, 176, 178, 179, 180, 182, 183, 184, 186, 187, 188, 198, 200, 202, 203, "Type", -3, 85, 100, 106, "ClassItem"],
  112357. ["openedBy", 23, "<", 35, "InterpolationStart", 53, "[", 57, "{", 70, "(", 159, "JSXStartCloseTag"],
  112358. ["closedBy", 24, ">", 37, "InterpolationEnd", 47, "]", 58, "}", 71, ")", 164, "JSXEndTag"]
  112359. ],
  112360. propSources: [_At],
  112361. skippedNodes: [0, 5, 6, 274],
  112362. repeatNodeCount: 37,
  112363. tokenData: "$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",
  112364. tokenizers: [mAt, yAt, bAt, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, gAt, new j4("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~", 141, 335), new j4("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~", 25, 318)],
  112365. topRules: { Script: [0, 7], SingleExpression: [1, 272], SingleClassItem: [2, 273] },
  112366. dialects: { jsx: 0, ts: 14725 },
  112367. dynamicPrecedences: { 77: 1, 79: 1, 91: 1, 167: 1, 196: 1 },
  112368. specialized: [{ term: 322, get: (t) => OAt[t] || -1 }, { term: 338, get: (t) => SAt[t] || -1 }, { term: 92, get: (t) => xAt[t] || -1 }],
  112369. tokenPrec: 14749
  112370. }), Mme = [
  112371. /* @__PURE__ */ xa("function ${name}(${params}) {\n ${}\n}", {
  112372. label: "function",
  112373. detail: "definition",
  112374. type: "keyword"
  112375. }),
  112376. /* @__PURE__ */ xa("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}", {
  112377. label: "for",
  112378. detail: "loop",
  112379. type: "keyword"
  112380. }),
  112381. /* @__PURE__ */ xa("for (let ${name} of ${collection}) {\n ${}\n}", {
  112382. label: "for",
  112383. detail: "of loop",
  112384. type: "keyword"
  112385. }),
  112386. /* @__PURE__ */ xa("do {\n ${}\n} while (${})", {
  112387. label: "do",
  112388. detail: "loop",
  112389. type: "keyword"
  112390. }),
  112391. /* @__PURE__ */ xa("while (${}) {\n ${}\n}", {
  112392. label: "while",
  112393. detail: "loop",
  112394. type: "keyword"
  112395. }),
  112396. /* @__PURE__ */ xa(`try {
  112397. \${}
  112398. } catch (\${error}) {
  112399. \${}
  112400. }`, {
  112401. label: "try",
  112402. detail: "/ catch block",
  112403. type: "keyword"
  112404. }),
  112405. /* @__PURE__ */ xa("if (${}) {\n ${}\n}", {
  112406. label: "if",
  112407. detail: "block",
  112408. type: "keyword"
  112409. }),
  112410. /* @__PURE__ */ xa(`if (\${}) {
  112411. \${}
  112412. } else {
  112413. \${}
  112414. }`, {
  112415. label: "if",
  112416. detail: "/ else block",
  112417. type: "keyword"
  112418. }),
  112419. /* @__PURE__ */ xa(`class \${name} {
  112420. constructor(\${params}) {
  112421. \${}
  112422. }
  112423. }`, {
  112424. label: "class",
  112425. detail: "definition",
  112426. type: "keyword"
  112427. }),
  112428. /* @__PURE__ */ xa('import {${names}} from "${module}"\n${}', {
  112429. label: "import",
  112430. detail: "named",
  112431. type: "keyword"
  112432. }),
  112433. /* @__PURE__ */ xa('import ${name} from "${module}"\n${}', {
  112434. label: "import",
  112435. detail: "default",
  112436. type: "keyword"
  112437. })
  112438. ], CAt = /* @__PURE__ */ Mme.concat([
  112439. /* @__PURE__ */ xa("interface ${name} {\n ${}\n}", {
  112440. label: "interface",
  112441. detail: "definition",
  112442. type: "keyword"
  112443. }),
  112444. /* @__PURE__ */ xa("type ${name} = ${type}", {
  112445. label: "type",
  112446. detail: "definition",
  112447. type: "keyword"
  112448. }),
  112449. /* @__PURE__ */ xa("enum ${name} {\n ${}\n}", {
  112450. label: "enum",
  112451. detail: "definition",
  112452. type: "keyword"
  112453. })
  112454. ]), KJ = /* @__PURE__ */ new TCt(), Ime = /* @__PURE__ */ new Set([
  112455. "Script",
  112456. "Block",
  112457. "FunctionExpression",
  112458. "FunctionDeclaration",
  112459. "ArrowFunction",
  112460. "MethodDeclaration",
  112461. "ForStatement"
  112462. ]);
  112463. function oy(t) {
  112464. return (e, n) => {
  112465. let r = e.node.getChild("VariableDefinition");
  112466. return r && n(r, t), !0;
  112467. };
  112468. }
  112469. const TAt = ["FunctionDeclaration"], PAt = {
  112470. FunctionDeclaration: /* @__PURE__ */ oy("function"),
  112471. ClassDeclaration: /* @__PURE__ */ oy("class"),
  112472. ClassExpression: () => !0,
  112473. EnumDeclaration: /* @__PURE__ */ oy("constant"),
  112474. TypeAliasDeclaration: /* @__PURE__ */ oy("type"),
  112475. NamespaceDeclaration: /* @__PURE__ */ oy("namespace"),
  112476. VariableDefinition(t, e) {
  112477. t.matchContext(TAt) || e(t, "variable");
  112478. },
  112479. TypeDefinition(t, e) {
  112480. e(t, "type");
  112481. },
  112482. __proto__: null
  112483. };
  112484. function Dme(t, e) {
  112485. let n = KJ.get(e);
  112486. if (n)
  112487. return n;
  112488. let r = [], i = !0;
  112489. function a(o, s) {
  112490. let l = t.sliceString(o.from, o.to);
  112491. r.push({ label: l, type: s });
  112492. }
  112493. return e.cursor(Ur.IncludeAnonymous).iterate((o) => {
  112494. if (i)
  112495. i = !1;
  112496. else if (o.name) {
  112497. let s = PAt[o.name];
  112498. if (s && s(o, a) || Ime.has(o.name))
  112499. return !1;
  112500. } else if (o.to - o.from > 8192) {
  112501. for (let s of Dme(t, o.node))
  112502. r.push(s);
  112503. return !1;
  112504. }
  112505. }), KJ.set(e, r), r;
  112506. }
  112507. const JJ = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, Rme = [
  112508. "TemplateString",
  112509. "String",
  112510. "RegExp",
  112511. "LineComment",
  112512. "BlockComment",
  112513. "VariableDefinition",
  112514. "TypeDefinition",
  112515. "Label",
  112516. "PropertyDefinition",
  112517. "PropertyName",
  112518. "PrivatePropertyDefinition",
  112519. "PrivatePropertyName",
  112520. ".",
  112521. "?."
  112522. ];
  112523. function $At(t) {
  112524. let e = ni(t.state).resolveInner(t.pos, -1);
  112525. if (Rme.indexOf(e.name) > -1)
  112526. return null;
  112527. let n = e.name == "VariableName" || e.to - e.from < 20 && JJ.test(t.state.sliceDoc(e.from, e.to));
  112528. if (!n && !t.explicit)
  112529. return null;
  112530. let r = [];
  112531. for (let i = e; i; i = i.parent)
  112532. Ime.has(i.name) && (r = r.concat(Dme(t.state.doc, i)));
  112533. return {
  112534. options: r,
  112535. from: n ? e.from : t.pos,
  112536. validFor: JJ
  112537. };
  112538. }
  112539. const Mh = /* @__PURE__ */ w_.define({
  112540. name: "javascript",
  112541. parser: /* @__PURE__ */ wAt.configure({
  112542. props: [
  112543. /* @__PURE__ */ mB.add({
  112544. IfStatement: /* @__PURE__ */ yb({ except: /^\s*({|else\b)/ }),
  112545. TryStatement: /* @__PURE__ */ yb({ except: /^\s*({|catch\b|finally\b)/ }),
  112546. LabeledStatement: jCt,
  112547. SwitchBody: (t) => {
  112548. let e = t.textAfter, n = /^\s*\}/.test(e), r = /^\s*(case|default)\b/.test(e);
  112549. return t.baseIndent + (n ? 0 : r ? 1 : 2) * t.unit;
  112550. },
  112551. Block: /* @__PURE__ */ GCt({ closing: "}" }),
  112552. ArrowFunction: (t) => t.baseIndent + t.unit,
  112553. "TemplateString BlockComment": () => null,
  112554. "Statement Property": /* @__PURE__ */ yb({ except: /^{/ }),
  112555. JSXElement(t) {
  112556. let e = /^\s*<\//.test(t.textAfter);
  112557. return t.lineIndent(t.node.from) + (e ? 0 : t.unit);
  112558. },
  112559. JSXEscape(t) {
  112560. let e = /\s*\}/.test(t.textAfter);
  112561. return t.lineIndent(t.node.from) + (e ? 0 : t.unit);
  112562. },
  112563. "JSXOpenTag JSXSelfClosingTag"(t) {
  112564. return t.column(t.node.from) + t.unit;
  112565. }
  112566. }),
  112567. /* @__PURE__ */ bB.add({
  112568. "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": cge,
  112569. BlockComment(t) {
  112570. return { from: t.from + 2, to: t.to - 2 };
  112571. }
  112572. })
  112573. ]
  112574. }),
  112575. languageData: {
  112576. closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
  112577. commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
  112578. indentOnInput: /^\s*(?:case |default:|\{|\}|<\/)$/,
  112579. wordChars: "$"
  112580. }
  112581. }), kme = {
  112582. test: (t) => /^JSX/.test(t.name),
  112583. facet: /* @__PURE__ */ age({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
  112584. }, AAt = /* @__PURE__ */ Mh.configure({ dialect: "ts" }, "typescript"), EAt = /* @__PURE__ */ Mh.configure({
  112585. dialect: "jsx",
  112586. props: [/* @__PURE__ */ vB.add((t) => t.isTop ? [kme] : void 0)]
  112587. }), MAt = /* @__PURE__ */ Mh.configure({
  112588. dialect: "jsx ts",
  112589. props: [/* @__PURE__ */ vB.add((t) => t.isTop ? [kme] : void 0)]
  112590. }, "typescript");
  112591. let Lme = (t) => ({ label: t, type: "keyword" });
  112592. const Nme = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Lme), IAt = /* @__PURE__ */ Nme.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(Lme));
  112593. function DAt(t = {}) {
  112594. let e = t.jsx ? t.typescript ? MAt : EAt : t.typescript ? AAt : Mh, n = t.typescript ? CAt.concat(IAt) : Mme.concat(Nme);
  112595. return new sge(e, [
  112596. Mh.data.of({
  112597. autocomplete: dPt(Rme, dme(n))
  112598. }),
  112599. Mh.data.of({
  112600. autocomplete: $At
  112601. }),
  112602. t.jsx ? LAt : []
  112603. ]);
  112604. }
  112605. function RAt(t) {
  112606. for (; ; ) {
  112607. if (t.name == "JSXOpenTag" || t.name == "JSXSelfClosingTag" || t.name == "JSXFragmentTag")
  112608. return t;
  112609. if (t.name == "JSXEscape" || !t.parent)
  112610. return null;
  112611. t = t.parent;
  112612. }
  112613. }
  112614. function eee(t, e, n = t.length) {
  112615. for (let r = e == null ? void 0 : e.firstChild; r; r = r.nextSibling)
  112616. if (r.name == "JSXIdentifier" || r.name == "JSXBuiltin" || r.name == "JSXNamespacedName" || r.name == "JSXMemberExpression")
  112617. return t.sliceString(r.from, Math.min(r.to, n));
  112618. return "";
  112619. }
  112620. const kAt = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), LAt = /* @__PURE__ */ rt.inputHandler.of((t, e, n, r, i) => {
  112621. if ((kAt ? t.composing : t.compositionStarted) || t.state.readOnly || e != n || r != ">" && r != "/" || !Mh.isActiveAt(t.state, e, -1))
  112622. return !1;
  112623. let a = i(), { state: o } = a, s = o.changeByRange((l) => {
  112624. var u;
  112625. let { head: c } = l, f = ni(o).resolveInner(c - 1, -1), d;
  112626. if (f.name == "JSXStartTag" && (f = f.parent), !(o.doc.sliceString(c - 1, c) != r || f.name == "JSXAttributeValue" && f.to > c)) {
  112627. if (r == ">" && f.name == "JSXFragmentTag")
  112628. return { range: l, changes: { from: c, insert: "</>" } };
  112629. if (r == "/" && f.name == "JSXStartCloseTag") {
  112630. let h = f.parent, p = h.parent;
  112631. if (p && h.from == c - 2 && ((d = eee(o.doc, p.firstChild, c)) || ((u = p.firstChild) === null || u === void 0 ? void 0 : u.name) == "JSXFragmentTag")) {
  112632. let v = `${d}>`;
  112633. return { range: De.cursor(c + v.length, -1), changes: { from: c, insert: v } };
  112634. }
  112635. } else if (r == ">") {
  112636. let h = RAt(f);
  112637. if (h && h.name == "JSXOpenTag" && !/^\/?>|^<\//.test(o.doc.sliceString(c, c + 2)) && (d = eee(o.doc, h, c)))
  112638. return { range: l, changes: { from: c, insert: `</${d}>` } };
  112639. }
  112640. }
  112641. return { range: l };
  112642. });
  112643. return s.changes.empty ? !1 : (t.dispatch([
  112644. a,
  112645. o.update(s, { userEvent: "input.complete", scrollIntoView: !0 })
  112646. ]), !0);
  112647. }), NAt = pB({
  112648. String: ce.string,
  112649. Number: ce.number,
  112650. "True False": ce.bool,
  112651. PropertyName: ce.propertyName,
  112652. Null: ce.null,
  112653. ",": ce.separator,
  112654. "[ ]": ce.squareBracket,
  112655. "{ }": ce.brace
  112656. }), BAt = I_.deserialize({
  112657. version: 14,
  112658. states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
  112659. stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
  112660. goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
  112661. nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
  112662. maxTerm: 25,
  112663. nodeProps: [
  112664. ["isolate", -2, 6, 11, ""],
  112665. ["openedBy", 7, "{", 12, "["],
  112666. ["closedBy", 8, "}", 13, "]"]
  112667. ],
  112668. propSources: [NAt],
  112669. skippedNodes: [0],
  112670. repeatNodeCount: 2,
  112671. tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
  112672. tokenizers: [0],
  112673. topRules: { JsonText: [0, 1] },
  112674. tokenPrec: 0
  112675. }), zAt = /* @__PURE__ */ w_.define({
  112676. name: "json",
  112677. parser: /* @__PURE__ */ BAt.configure({
  112678. props: [
  112679. /* @__PURE__ */ mB.add({
  112680. Object: /* @__PURE__ */ yb({ except: /^\s*\}/ }),
  112681. Array: /* @__PURE__ */ yb({ except: /^\s*\]/ })
  112682. }),
  112683. /* @__PURE__ */ bB.add({
  112684. "Object Array": cge
  112685. })
  112686. ]
  112687. }),
  112688. languageData: {
  112689. closeBrackets: { brackets: ["[", "{", '"'] },
  112690. indentOnInput: /^\s*[\}\]]$/
  112691. }
  112692. });
  112693. function VAt() {
  112694. return new sge(zAt);
  112695. }
  112696. var Bme = { exports: {} }, sy = {}, Ex = { exports: {} }, PD = {}, $D = {}, tee;
  112697. function RB() {
  112698. if (tee) return $D;
  112699. tee = 1;
  112700. function t(r) {
  112701. this.__parent = r, this.__character_count = 0, this.__indent_count = -1, this.__alignment_count = 0, this.__wrap_point_index = 0, this.__wrap_point_character_count = 0, this.__wrap_point_indent_count = -1, this.__wrap_point_alignment_count = 0, this.__items = [];
  112702. }
  112703. t.prototype.clone_empty = function() {
  112704. var r = new t(this.__parent);
  112705. return r.set_indent(this.__indent_count, this.__alignment_count), r;
  112706. }, t.prototype.item = function(r) {
  112707. return r < 0 ? this.__items[this.__items.length + r] : this.__items[r];
  112708. }, t.prototype.has_match = function(r) {
  112709. for (var i = this.__items.length - 1; i >= 0; i--)
  112710. if (this.__items[i].match(r))
  112711. return !0;
  112712. return !1;
  112713. }, t.prototype.set_indent = function(r, i) {
  112714. this.is_empty() && (this.__indent_count = r || 0, this.__alignment_count = i || 0, this.__character_count = this.__parent.get_indent_size(this.__indent_count, this.__alignment_count));
  112715. }, t.prototype._set_wrap_point = function() {
  112716. this.__parent.wrap_line_length && (this.__wrap_point_index = this.__items.length, this.__wrap_point_character_count = this.__character_count, this.__wrap_point_indent_count = this.__parent.next_line.__indent_count, this.__wrap_point_alignment_count = this.__parent.next_line.__alignment_count);
  112717. }, t.prototype._should_wrap = function() {
  112718. return this.__wrap_point_index && this.__character_count > this.__parent.wrap_line_length && this.__wrap_point_character_count > this.__parent.next_line.__character_count;
  112719. }, t.prototype._allow_wrap = function() {
  112720. if (this._should_wrap()) {
  112721. this.__parent.add_new_line();
  112722. var r = this.__parent.current_line;
  112723. return r.set_indent(this.__wrap_point_indent_count, this.__wrap_point_alignment_count), r.__items = this.__items.slice(this.__wrap_point_index), this.__items = this.__items.slice(0, this.__wrap_point_index), r.__character_count += this.__character_count - this.__wrap_point_character_count, this.__character_count = this.__wrap_point_character_count, r.__items[0] === " " && (r.__items.splice(0, 1), r.__character_count -= 1), !0;
  112724. }
  112725. return !1;
  112726. }, t.prototype.is_empty = function() {
  112727. return this.__items.length === 0;
  112728. }, t.prototype.last = function() {
  112729. return this.is_empty() ? null : this.__items[this.__items.length - 1];
  112730. }, t.prototype.push = function(r) {
  112731. this.__items.push(r);
  112732. var i = r.lastIndexOf(`
  112733. `);
  112734. i !== -1 ? this.__character_count = r.length - i : this.__character_count += r.length;
  112735. }, t.prototype.pop = function() {
  112736. var r = null;
  112737. return this.is_empty() || (r = this.__items.pop(), this.__character_count -= r.length), r;
  112738. }, t.prototype._remove_indent = function() {
  112739. this.__indent_count > 0 && (this.__indent_count -= 1, this.__character_count -= this.__parent.indent_size);
  112740. }, t.prototype._remove_wrap_indent = function() {
  112741. this.__wrap_point_indent_count > 0 && (this.__wrap_point_indent_count -= 1);
  112742. }, t.prototype.trim = function() {
  112743. for (; this.last() === " "; )
  112744. this.__items.pop(), this.__character_count -= 1;
  112745. }, t.prototype.toString = function() {
  112746. var r = "";
  112747. return this.is_empty() ? this.__parent.indent_empty_lines && (r = this.__parent.get_indent_string(this.__indent_count)) : (r = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count), r += this.__items.join("")), r;
  112748. };
  112749. function e(r, i) {
  112750. this.__cache = [""], this.__indent_size = r.indent_size, this.__indent_string = r.indent_char, r.indent_with_tabs || (this.__indent_string = new Array(r.indent_size + 1).join(r.indent_char)), i = i || "", r.indent_level > 0 && (i = new Array(r.indent_level + 1).join(this.__indent_string)), this.__base_string = i, this.__base_string_length = i.length;
  112751. }
  112752. e.prototype.get_indent_size = function(r, i) {
  112753. var a = this.__base_string_length;
  112754. return i = i || 0, r < 0 && (a = 0), a += r * this.__indent_size, a += i, a;
  112755. }, e.prototype.get_indent_string = function(r, i) {
  112756. var a = this.__base_string;
  112757. return i = i || 0, r < 0 && (r = 0, a = ""), i += r * this.__indent_size, this.__ensure_cache(i), a += this.__cache[i], a;
  112758. }, e.prototype.__ensure_cache = function(r) {
  112759. for (; r >= this.__cache.length; )
  112760. this.__add_column();
  112761. }, e.prototype.__add_column = function() {
  112762. var r = this.__cache.length, i = 0, a = "";
  112763. this.__indent_size && r >= this.__indent_size && (i = Math.floor(r / this.__indent_size), r -= i * this.__indent_size, a = new Array(i + 1).join(this.__indent_string)), r && (a += new Array(r + 1).join(" ")), this.__cache.push(a);
  112764. };
  112765. function n(r, i) {
  112766. this.__indent_cache = new e(r, i), this.raw = !1, this._end_with_newline = r.end_with_newline, this.indent_size = r.indent_size, this.wrap_line_length = r.wrap_line_length, this.indent_empty_lines = r.indent_empty_lines, this.__lines = [], this.previous_line = null, this.current_line = null, this.next_line = new t(this), this.space_before_token = !1, this.non_breaking_space = !1, this.previous_token_wrapped = !1, this.__add_outputline();
  112767. }
  112768. return n.prototype.__add_outputline = function() {
  112769. this.previous_line = this.current_line, this.current_line = this.next_line.clone_empty(), this.__lines.push(this.current_line);
  112770. }, n.prototype.get_line_number = function() {
  112771. return this.__lines.length;
  112772. }, n.prototype.get_indent_string = function(r, i) {
  112773. return this.__indent_cache.get_indent_string(r, i);
  112774. }, n.prototype.get_indent_size = function(r, i) {
  112775. return this.__indent_cache.get_indent_size(r, i);
  112776. }, n.prototype.is_empty = function() {
  112777. return !this.previous_line && this.current_line.is_empty();
  112778. }, n.prototype.add_new_line = function(r) {
  112779. return this.is_empty() || !r && this.just_added_newline() ? !1 : (this.raw || this.__add_outputline(), !0);
  112780. }, n.prototype.get_code = function(r) {
  112781. this.trim(!0);
  112782. var i = this.current_line.pop();
  112783. i && (i[i.length - 1] === `
  112784. ` && (i = i.replace(/\n+$/g, "")), this.current_line.push(i)), this._end_with_newline && this.__add_outputline();
  112785. var a = this.__lines.join(`
  112786. `);
  112787. return r !== `
  112788. ` && (a = a.replace(/[\n]/g, r)), a;
  112789. }, n.prototype.set_wrap_point = function() {
  112790. this.current_line._set_wrap_point();
  112791. }, n.prototype.set_indent = function(r, i) {
  112792. return r = r || 0, i = i || 0, this.next_line.set_indent(r, i), this.__lines.length > 1 ? (this.current_line.set_indent(r, i), !0) : (this.current_line.set_indent(), !1);
  112793. }, n.prototype.add_raw_token = function(r) {
  112794. for (var i = 0; i < r.newlines; i++)
  112795. this.__add_outputline();
  112796. this.current_line.set_indent(-1), this.current_line.push(r.whitespace_before), this.current_line.push(r.text), this.space_before_token = !1, this.non_breaking_space = !1, this.previous_token_wrapped = !1;
  112797. }, n.prototype.add_token = function(r) {
  112798. this.__add_space_before_token(), this.current_line.push(r), this.space_before_token = !1, this.non_breaking_space = !1, this.previous_token_wrapped = this.current_line._allow_wrap();
  112799. }, n.prototype.__add_space_before_token = function() {
  112800. this.space_before_token && !this.just_added_newline() && (this.non_breaking_space || this.set_wrap_point(), this.current_line.push(" "));
  112801. }, n.prototype.remove_indent = function(r) {
  112802. for (var i = this.__lines.length; r < i; )
  112803. this.__lines[r]._remove_indent(), r++;
  112804. this.current_line._remove_wrap_indent();
  112805. }, n.prototype.trim = function(r) {
  112806. for (r = r === void 0 ? !1 : r, this.current_line.trim(); r && this.__lines.length > 1 && this.current_line.is_empty(); )
  112807. this.__lines.pop(), this.current_line = this.__lines[this.__lines.length - 1], this.current_line.trim();
  112808. this.previous_line = this.__lines.length > 1 ? this.__lines[this.__lines.length - 2] : null;
  112809. }, n.prototype.just_added_newline = function() {
  112810. return this.current_line.is_empty();
  112811. }, n.prototype.just_added_blankline = function() {
  112812. return this.is_empty() || this.current_line.is_empty() && this.previous_line.is_empty();
  112813. }, n.prototype.ensure_empty_line_above = function(r, i) {
  112814. for (var a = this.__lines.length - 2; a >= 0; ) {
  112815. var o = this.__lines[a];
  112816. if (o.is_empty())
  112817. break;
  112818. if (o.item(0).indexOf(r) !== 0 && o.item(-1) !== i) {
  112819. this.__lines.splice(a + 1, 0, new t(this)), this.previous_line = this.__lines[this.__lines.length - 2];
  112820. break;
  112821. }
  112822. a--;
  112823. }
  112824. }, $D.Output = n, $D;
  112825. }
  112826. var AD = {}, nee;
  112827. function zme() {
  112828. if (nee) return AD;
  112829. nee = 1;
  112830. function t(e, n, r, i) {
  112831. this.type = e, this.text = n, this.comments_before = null, this.newlines = r || 0, this.whitespace_before = i || "", this.parent = null, this.next = null, this.previous = null, this.opened = null, this.closed = null, this.directives = null;
  112832. }
  112833. return AD.Token = t, AD;
  112834. }
  112835. var ED = {}, ree;
  112836. function Vme() {
  112837. return ree || (ree = 1, function(t) {
  112838. var e = "\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a", n = "\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a", r = "\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc", i = "\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f", a = "\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}", o = "(?:" + a + "|[" + e + r + "])", s = "(?:" + a + "|[" + n + r + i + "])*";
  112839. t.identifier = new RegExp(o + s, "g"), t.identifierStart = new RegExp(o), t.identifierMatch = new RegExp("(?:" + a + "|[" + n + r + i + "])+"), t.newline = /[\n\r\u2028\u2029]/, t.lineBreak = new RegExp(`\r
  112840. |` + t.newline.source), t.allLineBreaks = new RegExp(t.lineBreak.source, "g");
  112841. }(ED)), ED;
  112842. }
  112843. var MD = {}, ly = {}, iee;
  112844. function kB() {
  112845. if (iee) return ly;
  112846. iee = 1;
  112847. function t(r, i) {
  112848. this.raw_options = e(r, i), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", !0), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "angular", "django", "erb", "handlebars", "php", "smarty"], ["auto"]);
  112849. }
  112850. t.prototype._get_array = function(r, i) {
  112851. var a = this.raw_options[r], o = i || [];
  112852. return typeof a == "object" ? a !== null && typeof a.concat == "function" && (o = a.concat()) : typeof a == "string" && (o = a.split(/[^a-zA-Z0-9_\/\-]+/)), o;
  112853. }, t.prototype._get_boolean = function(r, i) {
  112854. var a = this.raw_options[r], o = a === void 0 ? !!i : !!a;
  112855. return o;
  112856. }, t.prototype._get_characters = function(r, i) {
  112857. var a = this.raw_options[r], o = i || "";
  112858. return typeof a == "string" && (o = a.replace(/\\r/, "\r").replace(/\\n/, `
  112859. `).replace(/\\t/, " ")), o;
  112860. }, t.prototype._get_number = function(r, i) {
  112861. var a = this.raw_options[r];
  112862. i = parseInt(i, 10), isNaN(i) && (i = 0);
  112863. var o = parseInt(a, 10);
  112864. return isNaN(o) && (o = i), o;
  112865. }, t.prototype._get_selection = function(r, i, a) {
  112866. var o = this._get_selection_list(r, i, a);
  112867. if (o.length !== 1)
  112868. throw new Error(
  112869. "Invalid Option Value: The option '" + r + `' can only be one of the following values:
  112870. ` + i + `
  112871. You passed in: '` + this.raw_options[r] + "'"
  112872. );
  112873. return o[0];
  112874. }, t.prototype._get_selection_list = function(r, i, a) {
  112875. if (!i || i.length === 0)
  112876. throw new Error("Selection list cannot be empty.");
  112877. if (a = a || [i[0]], !this._is_valid_selection(a, i))
  112878. throw new Error("Invalid Default Value!");
  112879. var o = this._get_array(r, a);
  112880. if (!this._is_valid_selection(o, i))
  112881. throw new Error(
  112882. "Invalid Option Value: The option '" + r + `' can contain only the following values:
  112883. ` + i + `
  112884. You passed in: '` + this.raw_options[r] + "'"
  112885. );
  112886. return o;
  112887. }, t.prototype._is_valid_selection = function(r, i) {
  112888. return r.length && i.length && !r.some(function(a) {
  112889. return i.indexOf(a) === -1;
  112890. });
  112891. };
  112892. function e(r, i) {
  112893. var a = {};
  112894. r = n(r);
  112895. var o;
  112896. for (o in r)
  112897. o !== i && (a[o] = r[o]);
  112898. if (i && r[i])
  112899. for (o in r[i])
  112900. a[o] = r[i][o];
  112901. return a;
  112902. }
  112903. function n(r) {
  112904. var i = {}, a;
  112905. for (a in r) {
  112906. var o = a.replace(/-/g, "_");
  112907. i[o] = r[a];
  112908. }
  112909. return i;
  112910. }
  112911. return ly.Options = t, ly.normalizeOpts = n, ly.mergeOpts = e, ly;
  112912. }
  112913. var aee;
  112914. function Fme() {
  112915. if (aee) return MD;
  112916. aee = 1;
  112917. var t = kB().Options, e = ["before-newline", "after-newline", "preserve-newline"];
  112918. function n(r) {
  112919. t.call(this, r, "js");
  112920. var i = this.raw_options.brace_style || null;
  112921. i === "expand-strict" ? this.raw_options.brace_style = "expand" : i === "collapse-preserve-inline" ? this.raw_options.brace_style = "collapse,preserve-inline" : this.raw_options.braces_on_own_line !== void 0 && (this.raw_options.brace_style = this.raw_options.braces_on_own_line ? "expand" : "collapse");
  112922. var a = this._get_selection_list("brace_style", ["collapse", "expand", "end-expand", "none", "preserve-inline"]);
  112923. this.brace_preserve_inline = !1, this.brace_style = "collapse";
  112924. for (var o = 0; o < a.length; o++)
  112925. a[o] === "preserve-inline" ? this.brace_preserve_inline = !0 : this.brace_style = a[o];
  112926. this.unindent_chained_methods = this._get_boolean("unindent_chained_methods"), this.break_chained_methods = this._get_boolean("break_chained_methods"), this.space_in_paren = this._get_boolean("space_in_paren"), this.space_in_empty_paren = this._get_boolean("space_in_empty_paren"), this.jslint_happy = this._get_boolean("jslint_happy"), this.space_after_anon_function = this._get_boolean("space_after_anon_function"), this.space_after_named_function = this._get_boolean("space_after_named_function"), this.keep_array_indentation = this._get_boolean("keep_array_indentation"), this.space_before_conditional = this._get_boolean("space_before_conditional", !0), this.unescape_strings = this._get_boolean("unescape_strings"), this.e4x = this._get_boolean("e4x"), this.comma_first = this._get_boolean("comma_first"), this.operator_position = this._get_selection("operator_position", e), this.test_output_raw = this._get_boolean("test_output_raw"), this.jslint_happy && (this.space_after_anon_function = !0);
  112927. }
  112928. return n.prototype = new t(), MD.Options = n, MD;
  112929. }
  112930. var gv = {}, ID = {}, oee;
  112931. function LB() {
  112932. if (oee) return ID;
  112933. oee = 1;
  112934. var t = RegExp.prototype.hasOwnProperty("sticky");
  112935. function e(n) {
  112936. this.__input = n || "", this.__input_length = this.__input.length, this.__position = 0;
  112937. }
  112938. return e.prototype.restart = function() {
  112939. this.__position = 0;
  112940. }, e.prototype.back = function() {
  112941. this.__position > 0 && (this.__position -= 1);
  112942. }, e.prototype.hasNext = function() {
  112943. return this.__position < this.__input_length;
  112944. }, e.prototype.next = function() {
  112945. var n = null;
  112946. return this.hasNext() && (n = this.__input.charAt(this.__position), this.__position += 1), n;
  112947. }, e.prototype.peek = function(n) {
  112948. var r = null;
  112949. return n = n || 0, n += this.__position, n >= 0 && n < this.__input_length && (r = this.__input.charAt(n)), r;
  112950. }, e.prototype.__match = function(n, r) {
  112951. n.lastIndex = r;
  112952. var i = n.exec(this.__input);
  112953. return i && !(t && n.sticky) && i.index !== r && (i = null), i;
  112954. }, e.prototype.test = function(n, r) {
  112955. return r = r || 0, r += this.__position, r >= 0 && r < this.__input_length ? !!this.__match(n, r) : !1;
  112956. }, e.prototype.testChar = function(n, r) {
  112957. var i = this.peek(r);
  112958. return n.lastIndex = 0, i !== null && n.test(i);
  112959. }, e.prototype.match = function(n) {
  112960. var r = this.__match(n, this.__position);
  112961. return r ? this.__position += r[0].length : r = null, r;
  112962. }, e.prototype.read = function(n, r, i) {
  112963. var a = "", o;
  112964. return n && (o = this.match(n), o && (a += o[0])), r && (o || !n) && (a += this.readUntil(r, i)), a;
  112965. }, e.prototype.readUntil = function(n, r) {
  112966. var i = "", a = this.__position;
  112967. n.lastIndex = this.__position;
  112968. var o = n.exec(this.__input);
  112969. return o ? (a = o.index, r && (a += o[0].length)) : a = this.__input_length, i = this.__input.substring(this.__position, a), this.__position = a, i;
  112970. }, e.prototype.readUntilAfter = function(n) {
  112971. return this.readUntil(n, !0);
  112972. }, e.prototype.get_regexp = function(n, r) {
  112973. var i = null, a = "g";
  112974. return r && t && (a = "y"), typeof n == "string" && n !== "" ? i = new RegExp(n, a) : n && (i = new RegExp(n.source, a)), i;
  112975. }, e.prototype.get_literal_regexp = function(n) {
  112976. return RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"));
  112977. }, e.prototype.peekUntilAfter = function(n) {
  112978. var r = this.__position, i = this.readUntilAfter(n);
  112979. return this.__position = r, i;
  112980. }, e.prototype.lookBack = function(n) {
  112981. var r = this.__position - 1;
  112982. return r >= n.length && this.__input.substring(r - n.length, r).toLowerCase() === n;
  112983. }, ID.InputScanner = e, ID;
  112984. }
  112985. var Mx = {}, DD = {}, see;
  112986. function FAt() {
  112987. if (see) return DD;
  112988. see = 1;
  112989. function t(e) {
  112990. this.__tokens = [], this.__tokens_length = this.__tokens.length, this.__position = 0, this.__parent_token = e;
  112991. }
  112992. return t.prototype.restart = function() {
  112993. this.__position = 0;
  112994. }, t.prototype.isEmpty = function() {
  112995. return this.__tokens_length === 0;
  112996. }, t.prototype.hasNext = function() {
  112997. return this.__position < this.__tokens_length;
  112998. }, t.prototype.next = function() {
  112999. var e = null;
  113000. return this.hasNext() && (e = this.__tokens[this.__position], this.__position += 1), e;
  113001. }, t.prototype.peek = function(e) {
  113002. var n = null;
  113003. return e = e || 0, e += this.__position, e >= 0 && e < this.__tokens_length && (n = this.__tokens[e]), n;
  113004. }, t.prototype.add = function(e) {
  113005. this.__parent_token && (e.parent = this.__parent_token), this.__tokens.push(e), this.__tokens_length += 1;
  113006. }, DD.TokenStream = t, DD;
  113007. }
  113008. var RD = {}, kD = {}, lee;
  113009. function v$() {
  113010. if (lee) return kD;
  113011. lee = 1;
  113012. function t(e, n) {
  113013. this._input = e, this._starting_pattern = null, this._match_pattern = null, this._until_pattern = null, this._until_after = !1, n && (this._starting_pattern = this._input.get_regexp(n._starting_pattern, !0), this._match_pattern = this._input.get_regexp(n._match_pattern, !0), this._until_pattern = this._input.get_regexp(n._until_pattern), this._until_after = n._until_after);
  113014. }
  113015. return t.prototype.read = function() {
  113016. var e = this._input.read(this._starting_pattern);
  113017. return (!this._starting_pattern || e) && (e += this._input.read(this._match_pattern, this._until_pattern, this._until_after)), e;
  113018. }, t.prototype.read_match = function() {
  113019. return this._input.match(this._match_pattern);
  113020. }, t.prototype.until_after = function(e) {
  113021. var n = this._create();
  113022. return n._until_after = !0, n._until_pattern = this._input.get_regexp(e), n._update(), n;
  113023. }, t.prototype.until = function(e) {
  113024. var n = this._create();
  113025. return n._until_after = !1, n._until_pattern = this._input.get_regexp(e), n._update(), n;
  113026. }, t.prototype.starting_with = function(e) {
  113027. var n = this._create();
  113028. return n._starting_pattern = this._input.get_regexp(e, !0), n._update(), n;
  113029. }, t.prototype.matching = function(e) {
  113030. var n = this._create();
  113031. return n._match_pattern = this._input.get_regexp(e, !0), n._update(), n;
  113032. }, t.prototype._create = function() {
  113033. return new t(this._input, this);
  113034. }, t.prototype._update = function() {
  113035. }, kD.Pattern = t, kD;
  113036. }
  113037. var uee;
  113038. function WAt() {
  113039. if (uee) return RD;
  113040. uee = 1;
  113041. var t = v$().Pattern;
  113042. function e(n, r) {
  113043. t.call(this, n, r), r ? this._line_regexp = this._input.get_regexp(r._line_regexp) : this.__set_whitespace_patterns("", ""), this.newline_count = 0, this.whitespace_before_token = "";
  113044. }
  113045. return e.prototype = new t(), e.prototype.__set_whitespace_patterns = function(n, r) {
  113046. n += "\\t ", r += "\\n\\r", this._match_pattern = this._input.get_regexp(
  113047. "[" + n + r + "]+",
  113048. !0
  113049. ), this._newline_regexp = this._input.get_regexp(
  113050. "\\r\\n|[" + r + "]"
  113051. );
  113052. }, e.prototype.read = function() {
  113053. this.newline_count = 0, this.whitespace_before_token = "";
  113054. var n = this._input.read(this._match_pattern);
  113055. if (n === " ")
  113056. this.whitespace_before_token = " ";
  113057. else if (n) {
  113058. var r = this.__split(this._newline_regexp, n);
  113059. this.newline_count = r.length - 1, this.whitespace_before_token = r[this.newline_count];
  113060. }
  113061. return n;
  113062. }, e.prototype.matching = function(n, r) {
  113063. var i = this._create();
  113064. return i.__set_whitespace_patterns(n, r), i._update(), i;
  113065. }, e.prototype._create = function() {
  113066. return new e(this._input, this);
  113067. }, e.prototype.__split = function(n, r) {
  113068. n.lastIndex = 0;
  113069. for (var i = 0, a = [], o = n.exec(r); o; )
  113070. a.push(r.substring(i, o.index)), i = o.index + o[0].length, o = n.exec(r);
  113071. return i < r.length ? a.push(r.substring(i, r.length)) : a.push(""), a;
  113072. }, RD.WhitespacePattern = e, RD;
  113073. }
  113074. var cee;
  113075. function qT() {
  113076. if (cee) return Mx;
  113077. cee = 1;
  113078. var t = LB().InputScanner, e = zme().Token, n = FAt().TokenStream, r = WAt().WhitespacePattern, i = {
  113079. START: "TK_START",
  113080. RAW: "TK_RAW",
  113081. EOF: "TK_EOF"
  113082. }, a = function(o, s) {
  113083. this._input = new t(o), this._options = s || {}, this.__tokens = null, this._patterns = {}, this._patterns.whitespace = new r(this._input);
  113084. };
  113085. return a.prototype.tokenize = function() {
  113086. this._input.restart(), this.__tokens = new n(), this._reset();
  113087. for (var o, s = new e(i.START, ""), l = null, u = [], c = new n(); s.type !== i.EOF; ) {
  113088. for (o = this._get_next_token(s, l); this._is_comment(o); )
  113089. c.add(o), o = this._get_next_token(s, l);
  113090. c.isEmpty() || (o.comments_before = c, c = new n()), o.parent = l, this._is_opening(o) ? (u.push(l), l = o) : l && this._is_closing(o, l) && (o.opened = l, l.closed = o, l = u.pop(), o.parent = l), o.previous = s, s.next = o, this.__tokens.add(o), s = o;
  113091. }
  113092. return this.__tokens;
  113093. }, a.prototype._is_first_token = function() {
  113094. return this.__tokens.isEmpty();
  113095. }, a.prototype._reset = function() {
  113096. }, a.prototype._get_next_token = function(o, s) {
  113097. this._readWhitespace();
  113098. var l = this._input.read(/.+/g);
  113099. return l ? this._create_token(i.RAW, l) : this._create_token(i.EOF, "");
  113100. }, a.prototype._is_comment = function(o) {
  113101. return !1;
  113102. }, a.prototype._is_opening = function(o) {
  113103. return !1;
  113104. }, a.prototype._is_closing = function(o, s) {
  113105. return !1;
  113106. }, a.prototype._create_token = function(o, s) {
  113107. var l = new e(
  113108. o,
  113109. s,
  113110. this._patterns.whitespace.newline_count,
  113111. this._patterns.whitespace.whitespace_before_token
  113112. );
  113113. return l;
  113114. }, a.prototype._readWhitespace = function() {
  113115. return this._patterns.whitespace.read();
  113116. }, Mx.Tokenizer = a, Mx.TOKEN = i, Mx;
  113117. }
  113118. var LD = {}, fee;
  113119. function NB() {
  113120. if (fee) return LD;
  113121. fee = 1;
  113122. function t(e, n) {
  113123. e = typeof e == "string" ? e : e.source, n = typeof n == "string" ? n : n.source, this.__directives_block_pattern = new RegExp(e + / beautify( \w+[:]\w+)+ /.source + n, "g"), this.__directive_pattern = / (\w+)[:](\w+)/g, this.__directives_end_ignore_pattern = new RegExp(e + /\sbeautify\signore:end\s/.source + n, "g");
  113124. }
  113125. return t.prototype.get_directives = function(e) {
  113126. if (!e.match(this.__directives_block_pattern))
  113127. return null;
  113128. var n = {};
  113129. this.__directive_pattern.lastIndex = 0;
  113130. for (var r = this.__directive_pattern.exec(e); r; )
  113131. n[r[1]] = r[2], r = this.__directive_pattern.exec(e);
  113132. return n;
  113133. }, t.prototype.readIgnored = function(e) {
  113134. return e.readUntilAfter(this.__directives_end_ignore_pattern);
  113135. }, LD.Directives = t, LD;
  113136. }
  113137. var ND = {}, dee;
  113138. function Wme() {
  113139. if (dee) return ND;
  113140. dee = 1;
  113141. var t = v$().Pattern, e = {
  113142. django: !1,
  113143. erb: !1,
  113144. handlebars: !1,
  113145. php: !1,
  113146. smarty: !1,
  113147. angular: !1
  113148. };
  113149. function n(r, i) {
  113150. t.call(this, r, i), this.__template_pattern = null, this._disabled = Object.assign({}, e), this._excluded = Object.assign({}, e), i && (this.__template_pattern = this._input.get_regexp(i.__template_pattern), this._excluded = Object.assign(this._excluded, i._excluded), this._disabled = Object.assign(this._disabled, i._disabled));
  113151. var a = new t(r);
  113152. this.__patterns = {
  113153. handlebars_comment: a.starting_with(/{{!--/).until_after(/--}}/),
  113154. handlebars_unescaped: a.starting_with(/{{{/).until_after(/}}}/),
  113155. handlebars: a.starting_with(/{{/).until_after(/}}/),
  113156. php: a.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),
  113157. erb: a.starting_with(/<%[^%]/).until_after(/[^%]%>/),
  113158. // django coflicts with handlebars a bit.
  113159. django: a.starting_with(/{%/).until_after(/%}/),
  113160. django_value: a.starting_with(/{{/).until_after(/}}/),
  113161. django_comment: a.starting_with(/{#/).until_after(/#}/),
  113162. smarty: a.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),
  113163. smarty_comment: a.starting_with(/{\*/).until_after(/\*}/),
  113164. smarty_literal: a.starting_with(/{literal}/).until_after(/{\/literal}/)
  113165. };
  113166. }
  113167. return n.prototype = new t(), n.prototype._create = function() {
  113168. return new n(this._input, this);
  113169. }, n.prototype._update = function() {
  113170. this.__set_templated_pattern();
  113171. }, n.prototype.disable = function(r) {
  113172. var i = this._create();
  113173. return i._disabled[r] = !0, i._update(), i;
  113174. }, n.prototype.read_options = function(r) {
  113175. var i = this._create();
  113176. for (var a in e)
  113177. i._disabled[a] = r.templating.indexOf(a) === -1;
  113178. return i._update(), i;
  113179. }, n.prototype.exclude = function(r) {
  113180. var i = this._create();
  113181. return i._excluded[r] = !0, i._update(), i;
  113182. }, n.prototype.read = function() {
  113183. var r = "";
  113184. this._match_pattern ? r = this._input.read(this._starting_pattern) : r = this._input.read(this._starting_pattern, this.__template_pattern);
  113185. for (var i = this._read_template(); i; )
  113186. this._match_pattern ? i += this._input.read(this._match_pattern) : i += this._input.readUntil(this.__template_pattern), r += i, i = this._read_template();
  113187. return this._until_after && (r += this._input.readUntilAfter(this._until_pattern)), r;
  113188. }, n.prototype.__set_templated_pattern = function() {
  113189. var r = [];
  113190. this._disabled.php || r.push(this.__patterns.php._starting_pattern.source), this._disabled.handlebars || r.push(this.__patterns.handlebars._starting_pattern.source), this._disabled.erb || r.push(this.__patterns.erb._starting_pattern.source), this._disabled.django || (r.push(this.__patterns.django._starting_pattern.source), r.push(this.__patterns.django_value._starting_pattern.source), r.push(this.__patterns.django_comment._starting_pattern.source)), this._disabled.smarty || r.push(this.__patterns.smarty._starting_pattern.source), this._until_pattern && r.push(this._until_pattern.source), this.__template_pattern = this._input.get_regexp("(?:" + r.join("|") + ")");
  113191. }, n.prototype._read_template = function() {
  113192. var r = "", i = this._input.peek();
  113193. if (i === "<") {
  113194. var a = this._input.peek(1);
  113195. !this._disabled.php && !this._excluded.php && a === "?" && (r = r || this.__patterns.php.read()), !this._disabled.erb && !this._excluded.erb && a === "%" && (r = r || this.__patterns.erb.read());
  113196. } else i === "{" && (!this._disabled.handlebars && !this._excluded.handlebars && (r = r || this.__patterns.handlebars_comment.read(), r = r || this.__patterns.handlebars_unescaped.read(), r = r || this.__patterns.handlebars.read()), this._disabled.django || (!this._excluded.django && !this._excluded.handlebars && (r = r || this.__patterns.django_value.read()), this._excluded.django || (r = r || this.__patterns.django_comment.read(), r = r || this.__patterns.django.read())), this._disabled.smarty || this._disabled.django && this._disabled.handlebars && (r = r || this.__patterns.smarty_comment.read(), r = r || this.__patterns.smarty_literal.read(), r = r || this.__patterns.smarty.read()));
  113197. return r;
  113198. }, ND.TemplatablePattern = n, ND;
  113199. }
  113200. var hee;
  113201. function Ix() {
  113202. if (hee) return gv;
  113203. hee = 1;
  113204. var t = LB().InputScanner, e = qT().Tokenizer, n = qT().TOKEN, r = NB().Directives, i = Vme(), a = v$().Pattern, o = Wme().TemplatablePattern;
  113205. function s(x, C) {
  113206. return C.indexOf(x) !== -1;
  113207. }
  113208. var l = {
  113209. START_EXPR: "TK_START_EXPR",
  113210. END_EXPR: "TK_END_EXPR",
  113211. START_BLOCK: "TK_START_BLOCK",
  113212. END_BLOCK: "TK_END_BLOCK",
  113213. WORD: "TK_WORD",
  113214. RESERVED: "TK_RESERVED",
  113215. SEMICOLON: "TK_SEMICOLON",
  113216. STRING: "TK_STRING",
  113217. EQUALS: "TK_EQUALS",
  113218. OPERATOR: "TK_OPERATOR",
  113219. COMMA: "TK_COMMA",
  113220. BLOCK_COMMENT: "TK_BLOCK_COMMENT",
  113221. COMMENT: "TK_COMMENT",
  113222. DOT: "TK_DOT",
  113223. UNKNOWN: "TK_UNKNOWN",
  113224. START: n.START,
  113225. RAW: n.RAW,
  113226. EOF: n.EOF
  113227. }, u = new r(/\/\*/, /\*\//), c = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, f = /[0-9]/, d = /[^\d\.]/, h = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), p = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
  113228. p = p.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), p = "\\?\\.(?!\\d) " + p, p = p.replace(/ /g, "|");
  113229. var v = new RegExp(p), g = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), m = g.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), y = new RegExp("^(?:" + m.join("|") + ")$"), _, O = function(x, C) {
  113230. e.call(this, x, C), this._patterns.whitespace = this._patterns.whitespace.matching(
  113231. /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
  113232. /\u2028\u2029/.source
  113233. );
  113234. var P = new a(this._input), $ = new o(this._input).read_options(this._options);
  113235. this.__patterns = {
  113236. template: $,
  113237. identifier: $.starting_with(i.identifier).matching(i.identifierMatch),
  113238. number: P.matching(c),
  113239. punct: P.matching(v),
  113240. // comment ends just before nearest linefeed or end of file
  113241. comment: P.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),
  113242. // /* ... */ comment ends with nearest */ or end of file
  113243. block_comment: P.starting_with(/\/\*/).until_after(/\*\//),
  113244. html_comment_start: P.matching(/<!--/),
  113245. html_comment_end: P.matching(/-->/),
  113246. include: P.starting_with(/#include/).until_after(i.lineBreak),
  113247. shebang: P.starting_with(/#!/).until_after(i.lineBreak),
  113248. xml: P.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),
  113249. single_quote: $.until(/['\\\n\r\u2028\u2029]/),
  113250. double_quote: $.until(/["\\\n\r\u2028\u2029]/),
  113251. template_text: $.until(/[`\\$]/),
  113252. template_expression: $.until(/[`}\\]/)
  113253. };
  113254. };
  113255. O.prototype = new e(), O.prototype._is_comment = function(x) {
  113256. return x.type === l.COMMENT || x.type === l.BLOCK_COMMENT || x.type === l.UNKNOWN;
  113257. }, O.prototype._is_opening = function(x) {
  113258. return x.type === l.START_BLOCK || x.type === l.START_EXPR;
  113259. }, O.prototype._is_closing = function(x, C) {
  113260. return (x.type === l.END_BLOCK || x.type === l.END_EXPR) && C && (x.text === "]" && C.text === "[" || x.text === ")" && C.text === "(" || x.text === "}" && C.text === "{");
  113261. }, O.prototype._reset = function() {
  113262. _ = !1;
  113263. }, O.prototype._get_next_token = function(x, C) {
  113264. var P = null;
  113265. this._readWhitespace();
  113266. var $ = this._input.peek();
  113267. return $ === null ? this._create_token(l.EOF, "") : (P = P || this._read_non_javascript($), P = P || this._read_string($), P = P || this._read_pair($, this._input.peek(1)), P = P || this._read_word(x), P = P || this._read_singles($), P = P || this._read_comment($), P = P || this._read_regexp($, x), P = P || this._read_xml($, x), P = P || this._read_punctuation(), P = P || this._create_token(l.UNKNOWN, this._input.next()), P);
  113268. }, O.prototype._read_word = function(x) {
  113269. var C;
  113270. if (C = this.__patterns.identifier.read(), C !== "")
  113271. return C = C.replace(i.allLineBreaks, `
  113272. `), !(x.type === l.DOT || x.type === l.RESERVED && (x.text === "set" || x.text === "get")) && y.test(C) ? (C === "in" || C === "of") && (x.type === l.WORD || x.type === l.STRING) ? this._create_token(l.OPERATOR, C) : this._create_token(l.RESERVED, C) : this._create_token(l.WORD, C);
  113273. if (C = this.__patterns.number.read(), C !== "")
  113274. return this._create_token(l.WORD, C);
  113275. }, O.prototype._read_singles = function(x) {
  113276. var C = null;
  113277. return x === "(" || x === "[" ? C = this._create_token(l.START_EXPR, x) : x === ")" || x === "]" ? C = this._create_token(l.END_EXPR, x) : x === "{" ? C = this._create_token(l.START_BLOCK, x) : x === "}" ? C = this._create_token(l.END_BLOCK, x) : x === ";" ? C = this._create_token(l.SEMICOLON, x) : x === "." && d.test(this._input.peek(1)) ? C = this._create_token(l.DOT, x) : x === "," && (C = this._create_token(l.COMMA, x)), C && this._input.next(), C;
  113278. }, O.prototype._read_pair = function(x, C) {
  113279. var P = null;
  113280. return x === "#" && C === "{" && (P = this._create_token(l.START_BLOCK, x + C)), P && (this._input.next(), this._input.next()), P;
  113281. }, O.prototype._read_punctuation = function() {
  113282. var x = this.__patterns.punct.read();
  113283. if (x !== "")
  113284. return x === "=" ? this._create_token(l.EQUALS, x) : x === "?." ? this._create_token(l.DOT, x) : this._create_token(l.OPERATOR, x);
  113285. }, O.prototype._read_non_javascript = function(x) {
  113286. var C = "";
  113287. if (x === "#") {
  113288. if (this._is_first_token() && (C = this.__patterns.shebang.read(), C))
  113289. return this._create_token(l.UNKNOWN, C.trim() + `
  113290. `);
  113291. if (C = this.__patterns.include.read(), C)
  113292. return this._create_token(l.UNKNOWN, C.trim() + `
  113293. `);
  113294. x = this._input.next();
  113295. var P = "#";
  113296. if (this._input.hasNext() && this._input.testChar(f)) {
  113297. do
  113298. x = this._input.next(), P += x;
  113299. while (this._input.hasNext() && x !== "#" && x !== "=");
  113300. return x === "#" || (this._input.peek() === "[" && this._input.peek(1) === "]" ? (P += "[]", this._input.next(), this._input.next()) : this._input.peek() === "{" && this._input.peek(1) === "}" && (P += "{}", this._input.next(), this._input.next())), this._create_token(l.WORD, P);
  113301. }
  113302. this._input.back();
  113303. } else if (x === "<" && this._is_first_token()) {
  113304. if (C = this.__patterns.html_comment_start.read(), C) {
  113305. for (; this._input.hasNext() && !this._input.testChar(i.newline); )
  113306. C += this._input.next();
  113307. return _ = !0, this._create_token(l.COMMENT, C);
  113308. }
  113309. } else if (_ && x === "-" && (C = this.__patterns.html_comment_end.read(), C))
  113310. return _ = !1, this._create_token(l.COMMENT, C);
  113311. return null;
  113312. }, O.prototype._read_comment = function(x) {
  113313. var C = null;
  113314. if (x === "/") {
  113315. var P = "";
  113316. if (this._input.peek(1) === "*") {
  113317. P = this.__patterns.block_comment.read();
  113318. var $ = u.get_directives(P);
  113319. $ && $.ignore === "start" && (P += u.readIgnored(this._input)), P = P.replace(i.allLineBreaks, `
  113320. `), C = this._create_token(l.BLOCK_COMMENT, P), C.directives = $;
  113321. } else this._input.peek(1) === "/" && (P = this.__patterns.comment.read(), C = this._create_token(l.COMMENT, P));
  113322. }
  113323. return C;
  113324. }, O.prototype._read_string = function(x) {
  113325. if (x === "`" || x === "'" || x === '"') {
  113326. var C = this._input.next();
  113327. return this.has_char_escapes = !1, x === "`" ? C += this._read_string_recursive("`", !0, "${") : C += this._read_string_recursive(x), this.has_char_escapes && this._options.unescape_strings && (C = S(C)), this._input.peek() === x && (C += this._input.next()), C = C.replace(i.allLineBreaks, `
  113328. `), this._create_token(l.STRING, C);
  113329. }
  113330. return null;
  113331. }, O.prototype._allow_regexp_or_xml = function(x) {
  113332. return x.type === l.RESERVED && s(x.text, ["return", "case", "throw", "else", "do", "typeof", "yield"]) || x.type === l.END_EXPR && x.text === ")" && x.opened.previous.type === l.RESERVED && s(x.opened.previous.text, ["if", "while", "for"]) || s(x.type, [
  113333. l.COMMENT,
  113334. l.START_EXPR,
  113335. l.START_BLOCK,
  113336. l.START,
  113337. l.END_BLOCK,
  113338. l.OPERATOR,
  113339. l.EQUALS,
  113340. l.EOF,
  113341. l.SEMICOLON,
  113342. l.COMMA
  113343. ]);
  113344. }, O.prototype._read_regexp = function(x, C) {
  113345. if (x === "/" && this._allow_regexp_or_xml(C)) {
  113346. for (var P = this._input.next(), $ = !1, T = !1; this._input.hasNext() && ($ || T || this._input.peek() !== x) && !this._input.testChar(i.newline); )
  113347. P += this._input.peek(), $ ? $ = !1 : ($ = this._input.peek() === "\\", this._input.peek() === "[" ? T = !0 : this._input.peek() === "]" && (T = !1)), this._input.next();
  113348. return this._input.peek() === x && (P += this._input.next(), P += this._input.read(i.identifier)), this._create_token(l.STRING, P);
  113349. }
  113350. return null;
  113351. }, O.prototype._read_xml = function(x, C) {
  113352. if (this._options.e4x && x === "<" && this._allow_regexp_or_xml(C)) {
  113353. var P = "", $ = this.__patterns.xml.read_match();
  113354. if ($) {
  113355. for (var T = $[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), E = T.indexOf("{") === 0, M = 0; $; ) {
  113356. var R = !!$[1], N = $[2], I = !!$[$.length - 1] || N.slice(0, 8) === "![CDATA[";
  113357. if (!I && (N === T || E && N.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (R ? --M : ++M), P += $[0], M <= 0)
  113358. break;
  113359. $ = this.__patterns.xml.read_match();
  113360. }
  113361. return $ || (P += this._input.match(/[\s\S]*/g)[0]), P = P.replace(i.allLineBreaks, `
  113362. `), this._create_token(l.STRING, P);
  113363. }
  113364. }
  113365. return null;
  113366. };
  113367. function S(x) {
  113368. for (var C = "", P = 0, $ = new t(x), T = null; $.hasNext(); )
  113369. if (T = $.match(/([\s]|[^\\]|\\\\)+/g), T && (C += T[0]), $.peek() === "\\") {
  113370. if ($.next(), $.peek() === "x")
  113371. T = $.match(/x([0-9A-Fa-f]{2})/g);
  113372. else if ($.peek() === "u")
  113373. T = $.match(/u([0-9A-Fa-f]{4})/g), T || (T = $.match(/u\{([0-9A-Fa-f]+)\}/g));
  113374. else {
  113375. C += "\\", $.hasNext() && (C += $.next());
  113376. continue;
  113377. }
  113378. if (!T || (P = parseInt(T[1], 16), P > 126 && P <= 255 && T[0].indexOf("x") === 0))
  113379. return x;
  113380. P >= 0 && P < 32 || P > 1114111 ? C += "\\" + T[0] : P === 34 || P === 39 || P === 92 ? C += "\\" + String.fromCharCode(P) : C += String.fromCharCode(P);
  113381. }
  113382. return C;
  113383. }
  113384. return O.prototype._read_string_recursive = function(x, C, P) {
  113385. var $, T;
  113386. x === "'" ? T = this.__patterns.single_quote : x === '"' ? T = this.__patterns.double_quote : x === "`" ? T = this.__patterns.template_text : x === "}" && (T = this.__patterns.template_expression);
  113387. for (var E = T.read(), M = ""; this._input.hasNext(); ) {
  113388. if (M = this._input.next(), M === x || !C && i.newline.test(M)) {
  113389. this._input.back();
  113390. break;
  113391. } else M === "\\" && this._input.hasNext() ? ($ = this._input.peek(), $ === "x" || $ === "u" ? this.has_char_escapes = !0 : $ === "\r" && this._input.peek(1) === `
  113392. ` && this._input.next(), M += this._input.next()) : P && (P === "${" && M === "$" && this._input.peek() === "{" && (M += this._input.next()), P === M && (x === "`" ? M += this._read_string_recursive("}", C, "`") : M += this._read_string_recursive("`", C, "${"), this._input.hasNext() && (M += this._input.next())));
  113393. M += T.read(), E += M;
  113394. }
  113395. return E;
  113396. }, gv.Tokenizer = O, gv.TOKEN = l, gv.positionable_operators = h.slice(), gv.line_starters = g.slice(), gv;
  113397. }
  113398. var pee;
  113399. function QAt() {
  113400. if (pee) return PD;
  113401. pee = 1;
  113402. var t = RB().Output, e = zme().Token, n = Vme(), r = Fme().Options, i = Ix().Tokenizer, a = Ix().line_starters, o = Ix().positionable_operators, s = Ix().TOKEN;
  113403. function l(T, E) {
  113404. return E.indexOf(T) !== -1;
  113405. }
  113406. function u(T) {
  113407. return T.replace(/^\s+/g, "");
  113408. }
  113409. function c(T) {
  113410. for (var E = {}, M = 0; M < T.length; M++)
  113411. E[T[M].replace(/-/g, "_")] = T[M];
  113412. return E;
  113413. }
  113414. function f(T, E) {
  113415. return T && T.type === s.RESERVED && T.text === E;
  113416. }
  113417. function d(T, E) {
  113418. return T && T.type === s.RESERVED && l(T.text, E);
  113419. }
  113420. var h = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], p = ["before-newline", "after-newline", "preserve-newline"], v = c(p), g = [v.before_newline, v.preserve_newline], m = {
  113421. BlockStatement: "BlockStatement",
  113422. // 'BLOCK'
  113423. Statement: "Statement",
  113424. // 'STATEMENT'
  113425. ObjectLiteral: "ObjectLiteral",
  113426. // 'OBJECT',
  113427. ArrayLiteral: "ArrayLiteral",
  113428. //'[EXPRESSION]',
  113429. ForInitializer: "ForInitializer",
  113430. //'(FOR-EXPRESSION)',
  113431. Conditional: "Conditional",
  113432. //'(COND-EXPRESSION)',
  113433. Expression: "Expression"
  113434. //'(EXPRESSION)'
  113435. };
  113436. function y(T, E) {
  113437. E.multiline_frame || E.mode === m.ForInitializer || E.mode === m.Conditional || T.remove_indent(E.start_line_index);
  113438. }
  113439. function _(T) {
  113440. T = T.replace(n.allLineBreaks, `
  113441. `);
  113442. for (var E = [], M = T.indexOf(`
  113443. `); M !== -1; )
  113444. E.push(T.substring(0, M)), T = T.substring(M + 1), M = T.indexOf(`
  113445. `);
  113446. return T.length && E.push(T), E;
  113447. }
  113448. function O(T) {
  113449. return T === m.ArrayLiteral;
  113450. }
  113451. function S(T) {
  113452. return l(T, [m.Expression, m.ForInitializer, m.Conditional]);
  113453. }
  113454. function x(T, E) {
  113455. for (var M = 0; M < T.length; M++) {
  113456. var R = T[M].trim();
  113457. if (R.charAt(0) !== E)
  113458. return !1;
  113459. }
  113460. return !0;
  113461. }
  113462. function C(T, E) {
  113463. for (var M = 0, R = T.length, N; M < R; M++)
  113464. if (N = T[M], N && N.indexOf(E) !== 0)
  113465. return !1;
  113466. return !0;
  113467. }
  113468. function P(T, E) {
  113469. E = E || {}, this._source_text = T || "", this._output = null, this._tokens = null, this._last_last_text = null, this._flags = null, this._previous_flags = null, this._flag_store = null, this._options = new r(E);
  113470. }
  113471. P.prototype.create_flags = function(T, E) {
  113472. var M = 0;
  113473. T && (M = T.indentation_level, !this._output.just_added_newline() && T.line_indent_level > M && (M = T.line_indent_level));
  113474. var R = {
  113475. mode: E,
  113476. parent: T,
  113477. last_token: T ? T.last_token : new e(s.START_BLOCK, ""),
  113478. // last token text
  113479. last_word: T ? T.last_word : "",
  113480. // last TOKEN.WORD passed
  113481. declaration_statement: !1,
  113482. declaration_assignment: !1,
  113483. multiline_frame: !1,
  113484. inline_frame: !1,
  113485. if_block: !1,
  113486. else_block: !1,
  113487. class_start_block: !1,
  113488. // class A { INSIDE HERE } or class B extends C { INSIDE HERE }
  113489. do_block: !1,
  113490. do_while: !1,
  113491. import_block: !1,
  113492. in_case_statement: !1,
  113493. // switch(..){ INSIDE HERE }
  113494. in_case: !1,
  113495. // we're on the exact line with "case 0:"
  113496. case_body: !1,
  113497. // the indented case-action block
  113498. case_block: !1,
  113499. // the indented case-action block is wrapped with {}
  113500. indentation_level: M,
  113501. alignment: 0,
  113502. line_indent_level: T ? T.line_indent_level : M,
  113503. start_line_index: this._output.get_line_number(),
  113504. ternary_depth: 0
  113505. };
  113506. return R;
  113507. }, P.prototype._reset = function(T) {
  113508. var E = T.match(/^[\t ]*/)[0];
  113509. this._last_last_text = "", this._output = new t(this._options, E), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(m.BlockStatement);
  113510. var M = new i(T, this._options);
  113511. return this._tokens = M.tokenize(), T;
  113512. }, P.prototype.beautify = function() {
  113513. if (this._options.disabled)
  113514. return this._source_text;
  113515. var T, E = this._reset(this._source_text), M = this._options.eol;
  113516. this._options.eol === "auto" && (M = `
  113517. `, E && n.lineBreak.test(E || "") && (M = E.match(n.lineBreak)[0]));
  113518. for (var R = this._tokens.next(); R; )
  113519. this.handle_token(R), this._last_last_text = this._flags.last_token.text, this._flags.last_token = R, R = this._tokens.next();
  113520. return T = this._output.get_code(M), T;
  113521. }, P.prototype.handle_token = function(T, E) {
  113522. T.type === s.START_EXPR ? this.handle_start_expr(T) : T.type === s.END_EXPR ? this.handle_end_expr(T) : T.type === s.START_BLOCK ? this.handle_start_block(T) : T.type === s.END_BLOCK ? this.handle_end_block(T) : T.type === s.WORD ? this.handle_word(T) : T.type === s.RESERVED ? this.handle_word(T) : T.type === s.SEMICOLON ? this.handle_semicolon(T) : T.type === s.STRING ? this.handle_string(T) : T.type === s.EQUALS ? this.handle_equals(T) : T.type === s.OPERATOR ? this.handle_operator(T) : T.type === s.COMMA ? this.handle_comma(T) : T.type === s.BLOCK_COMMENT ? this.handle_block_comment(T, E) : T.type === s.COMMENT ? this.handle_comment(T, E) : T.type === s.DOT ? this.handle_dot(T) : T.type === s.EOF ? this.handle_eof(T) : T.type === s.UNKNOWN ? this.handle_unknown(T, E) : this.handle_unknown(T, E);
  113523. }, P.prototype.handle_whitespace_and_comments = function(T, E) {
  113524. var M = T.newlines, R = this._options.keep_array_indentation && O(this._flags.mode);
  113525. if (T.comments_before)
  113526. for (var N = T.comments_before.next(); N; )
  113527. this.handle_whitespace_and_comments(N, E), this.handle_token(N, E), N = T.comments_before.next();
  113528. if (R)
  113529. for (var I = 0; I < M; I += 1)
  113530. this.print_newline(I > 0, E);
  113531. else if (this._options.max_preserve_newlines && M > this._options.max_preserve_newlines && (M = this._options.max_preserve_newlines), this._options.preserve_newlines && M > 1) {
  113532. this.print_newline(!1, E);
  113533. for (var B = 1; B < M; B += 1)
  113534. this.print_newline(!0, E);
  113535. }
  113536. };
  113537. var $ = ["async", "break", "continue", "return", "throw", "yield"];
  113538. return P.prototype.allow_wrap_or_preserved_newline = function(T, E) {
  113539. if (E = E === void 0 ? !1 : E, !this._output.just_added_newline()) {
  113540. var M = this._options.preserve_newlines && T.newlines || E, R = l(this._flags.last_token.text, o) || l(T.text, o);
  113541. if (R) {
  113542. var N = l(this._flags.last_token.text, o) && l(this._options.operator_position, g) || l(T.text, o);
  113543. M = M && N;
  113544. }
  113545. if (M)
  113546. this.print_newline(!1, !0);
  113547. else if (this._options.wrap_line_length) {
  113548. if (d(this._flags.last_token, $))
  113549. return;
  113550. this._output.set_wrap_point();
  113551. }
  113552. }
  113553. }, P.prototype.print_newline = function(T, E) {
  113554. if (!E && this._flags.last_token.text !== ";" && this._flags.last_token.text !== "," && this._flags.last_token.text !== "=" && (this._flags.last_token.type !== s.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++"))
  113555. for (var M = this._tokens.peek(); this._flags.mode === m.Statement && !(this._flags.if_block && f(M, "else")) && !this._flags.do_block; )
  113556. this.restore_mode();
  113557. this._output.add_new_line(T) && (this._flags.multiline_frame = !0);
  113558. }, P.prototype.print_token_line_indentation = function(T) {
  113559. this._output.just_added_newline() && (this._options.keep_array_indentation && T.newlines && (T.text === "[" || O(this._flags.mode)) ? (this._output.current_line.set_indent(-1), this._output.current_line.push(T.whitespace_before), this._output.space_before_token = !1) : this._output.set_indent(this._flags.indentation_level, this._flags.alignment) && (this._flags.line_indent_level = this._flags.indentation_level));
  113560. }, P.prototype.print_token = function(T) {
  113561. if (this._output.raw) {
  113562. this._output.add_raw_token(T);
  113563. return;
  113564. }
  113565. if (this._options.comma_first && T.previous && T.previous.type === s.COMMA && this._output.just_added_newline() && this._output.previous_line.last() === ",") {
  113566. var E = this._output.previous_line.pop();
  113567. this._output.previous_line.is_empty() && (this._output.previous_line.push(E), this._output.trim(!0), this._output.current_line.pop(), this._output.trim()), this.print_token_line_indentation(T), this._output.add_token(","), this._output.space_before_token = !0;
  113568. }
  113569. this.print_token_line_indentation(T), this._output.non_breaking_space = !0, this._output.add_token(T.text), this._output.previous_token_wrapped && (this._flags.multiline_frame = !0);
  113570. }, P.prototype.indent = function() {
  113571. this._flags.indentation_level += 1, this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
  113572. }, P.prototype.deindent = function() {
  113573. this._flags.indentation_level > 0 && (!this._flags.parent || this._flags.indentation_level > this._flags.parent.indentation_level) && (this._flags.indentation_level -= 1, this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
  113574. }, P.prototype.set_mode = function(T) {
  113575. this._flags ? (this._flag_store.push(this._flags), this._previous_flags = this._flags) : this._previous_flags = this.create_flags(null, T), this._flags = this.create_flags(this._previous_flags, T), this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
  113576. }, P.prototype.restore_mode = function() {
  113577. this._flag_store.length > 0 && (this._previous_flags = this._flags, this._flags = this._flag_store.pop(), this._previous_flags.mode === m.Statement && y(this._output, this._previous_flags), this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
  113578. }, P.prototype.start_of_object_property = function() {
  113579. return this._flags.parent.mode === m.ObjectLiteral && this._flags.mode === m.Statement && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || d(this._flags.last_token, ["get", "set"]));
  113580. }, P.prototype.start_of_statement = function(T) {
  113581. var E = !1;
  113582. return E = E || d(this._flags.last_token, ["var", "let", "const"]) && T.type === s.WORD, E = E || f(this._flags.last_token, "do"), E = E || !(this._flags.parent.mode === m.ObjectLiteral && this._flags.mode === m.Statement) && d(this._flags.last_token, $) && !T.newlines, E = E || f(this._flags.last_token, "else") && !(f(T, "if") && !T.comments_before), E = E || this._flags.last_token.type === s.END_EXPR && (this._previous_flags.mode === m.ForInitializer || this._previous_flags.mode === m.Conditional), E = E || this._flags.last_token.type === s.WORD && this._flags.mode === m.BlockStatement && !this._flags.in_case && !(T.text === "--" || T.text === "++") && this._last_last_text !== "function" && T.type !== s.WORD && T.type !== s.RESERVED, E = E || this._flags.mode === m.ObjectLiteral && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || d(this._flags.last_token, ["get", "set"])), E ? (this.set_mode(m.Statement), this.indent(), this.handle_whitespace_and_comments(T, !0), this.start_of_object_property() || this.allow_wrap_or_preserved_newline(
  113583. T,
  113584. d(T, ["do", "for", "if", "while"])
  113585. ), !0) : !1;
  113586. }, P.prototype.handle_start_expr = function(T) {
  113587. this.start_of_statement(T) || this.handle_whitespace_and_comments(T);
  113588. var E = m.Expression;
  113589. if (T.text === "[") {
  113590. if (this._flags.last_token.type === s.WORD || this._flags.last_token.text === ")") {
  113591. d(this._flags.last_token, a) && (this._output.space_before_token = !0), this.print_token(T), this.set_mode(E), this.indent(), this._options.space_in_paren && (this._output.space_before_token = !0);
  113592. return;
  113593. }
  113594. E = m.ArrayLiteral, O(this._flags.mode) && (this._flags.last_token.text === "[" || this._flags.last_token.text === "," && (this._last_last_text === "]" || this._last_last_text === "}")) && (this._options.keep_array_indentation || this.print_newline()), l(this._flags.last_token.type, [s.START_EXPR, s.END_EXPR, s.WORD, s.OPERATOR, s.DOT]) || (this._output.space_before_token = !0);
  113595. } else {
  113596. if (this._flags.last_token.type === s.RESERVED)
  113597. this._flags.last_token.text === "for" ? (this._output.space_before_token = this._options.space_before_conditional, E = m.ForInitializer) : l(this._flags.last_token.text, ["if", "while", "switch"]) ? (this._output.space_before_token = this._options.space_before_conditional, E = m.Conditional) : l(this._flags.last_word, ["await", "async"]) ? this._output.space_before_token = !0 : this._flags.last_token.text === "import" && T.whitespace_before === "" ? this._output.space_before_token = !1 : (l(this._flags.last_token.text, a) || this._flags.last_token.text === "catch") && (this._output.space_before_token = !0);
  113598. else if (this._flags.last_token.type === s.EQUALS || this._flags.last_token.type === s.OPERATOR)
  113599. this.start_of_object_property() || this.allow_wrap_or_preserved_newline(T);
  113600. else if (this._flags.last_token.type === s.WORD) {
  113601. this._output.space_before_token = !1;
  113602. var M = this._tokens.peek(-3);
  113603. if (this._options.space_after_named_function && M) {
  113604. var R = this._tokens.peek(-4);
  113605. d(M, ["async", "function"]) || M.text === "*" && d(R, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === m.ObjectLiteral ? (M.text === "{" || M.text === "," || M.text === "*" && (R.text === "{" || R.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
  113606. }
  113607. } else
  113608. this.allow_wrap_or_preserved_newline(T);
  113609. (this._flags.last_token.type === s.RESERVED && (this._flags.last_word === "function" || this._flags.last_word === "typeof") || this._flags.last_token.text === "*" && (l(this._last_last_text, ["function", "yield"]) || this._flags.mode === m.ObjectLiteral && l(this._last_last_text, ["{", ","]))) && (this._output.space_before_token = this._options.space_after_anon_function);
  113610. }
  113611. this._flags.last_token.text === ";" || this._flags.last_token.type === s.START_BLOCK ? this.print_newline() : (this._flags.last_token.type === s.END_EXPR || this._flags.last_token.type === s.START_EXPR || this._flags.last_token.type === s.END_BLOCK || this._flags.last_token.text === "." || this._flags.last_token.type === s.COMMA) && this.allow_wrap_or_preserved_newline(T, T.newlines), this.print_token(T), this.set_mode(E), this._options.space_in_paren && (this._output.space_before_token = !0), this.indent();
  113612. }, P.prototype.handle_end_expr = function(T) {
  113613. for (; this._flags.mode === m.Statement; )
  113614. this.restore_mode();
  113615. this.handle_whitespace_and_comments(T), this._flags.multiline_frame && this.allow_wrap_or_preserved_newline(
  113616. T,
  113617. T.text === "]" && O(this._flags.mode) && !this._options.keep_array_indentation
  113618. ), this._options.space_in_paren && (this._flags.last_token.type === s.START_EXPR && !this._options.space_in_empty_paren ? (this._output.trim(), this._output.space_before_token = !1) : this._output.space_before_token = !0), this.deindent(), this.print_token(T), this.restore_mode(), y(this._output, this._previous_flags), this._flags.do_while && this._previous_flags.mode === m.Conditional && (this._previous_flags.mode = m.Expression, this._flags.do_block = !1, this._flags.do_while = !1);
  113619. }, P.prototype.handle_start_block = function(T) {
  113620. this.handle_whitespace_and_comments(T);
  113621. var E = this._tokens.peek(), M = this._tokens.peek(1);
  113622. this._flags.last_word === "switch" && this._flags.last_token.type === s.END_EXPR ? (this.set_mode(m.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(m.BlockStatement) : M && (l(M.text, [":", ","]) && l(E.type, [s.STRING, s.WORD, s.RESERVED]) || l(E.text, ["get", "set", "..."]) && l(M.type, [s.WORD, s.RESERVED])) ? l(this._last_last_text, ["class", "interface"]) && !l(M.text, [":", ","]) ? this.set_mode(m.BlockStatement) : this.set_mode(m.ObjectLiteral) : this._flags.last_token.type === s.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(m.BlockStatement) : l(this._flags.last_token.type, [s.EQUALS, s.START_EXPR, s.COMMA, s.OPERATOR]) || d(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(m.ObjectLiteral) : this.set_mode(m.BlockStatement), this._flags.last_token && d(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
  113623. var R = !E.comments_before && E.text === "}", N = R && this._flags.last_word === "function" && this._flags.last_token.type === s.END_EXPR;
  113624. if (this._options.brace_preserve_inline) {
  113625. var I = 0, B = null;
  113626. this._flags.inline_frame = !0;
  113627. do
  113628. if (I += 1, B = this._tokens.peek(I - 1), B.newlines) {
  113629. this._flags.inline_frame = !1;
  113630. break;
  113631. }
  113632. while (B.type !== s.EOF && !(B.type === s.END_BLOCK && B.opened === T));
  113633. }
  113634. (this._options.brace_style === "expand" || this._options.brace_style === "none" && T.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== s.OPERATOR && (N || this._flags.last_token.type === s.EQUALS || d(this._flags.last_token, h) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (O(this._previous_flags.mode) && (this._flags.last_token.type === s.START_EXPR || this._flags.last_token.type === s.COMMA) && ((this._flags.last_token.type === s.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === s.COMMA || this._flags.last_token.type === s.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(T), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== s.OPERATOR && this._flags.last_token.type !== s.START_EXPR && (l(this._flags.last_token.type, [s.START_BLOCK, s.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(T), this.indent(), !R && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
  113635. }, P.prototype.handle_end_block = function(T) {
  113636. for (this.handle_whitespace_and_comments(T); this._flags.mode === m.Statement; )
  113637. this.restore_mode();
  113638. var E = this._flags.last_token.type === s.START_BLOCK;
  113639. this._flags.inline_frame && !E ? this._output.space_before_token = !0 : this._options.brace_style === "expand" ? E || this.print_newline() : E || (O(this._flags.mode) && this._options.keep_array_indentation ? (this._options.keep_array_indentation = !1, this.print_newline(), this._options.keep_array_indentation = !0) : this.print_newline()), this.restore_mode(), this.print_token(T);
  113640. }, P.prototype.handle_word = function(T) {
  113641. if (T.type === s.RESERVED) {
  113642. if (l(T.text, ["set", "get"]) && this._flags.mode !== m.ObjectLiteral)
  113643. T.type = s.WORD;
  113644. else if (T.text === "import" && l(this._tokens.peek().text, ["(", "."]))
  113645. T.type = s.WORD;
  113646. else if (l(T.text, ["as", "from"]) && !this._flags.import_block)
  113647. T.type = s.WORD;
  113648. else if (this._flags.mode === m.ObjectLiteral) {
  113649. var E = this._tokens.peek();
  113650. E.text === ":" && (T.type = s.WORD);
  113651. }
  113652. }
  113653. if (this.start_of_statement(T) ? d(this._flags.last_token, ["var", "let", "const"]) && T.type === s.WORD && (this._flags.declaration_statement = !0) : T.newlines && !S(this._flags.mode) && (this._flags.last_token.type !== s.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++") && this._flags.last_token.type !== s.EQUALS && (this._options.preserve_newlines || !d(this._flags.last_token, ["var", "let", "const", "set", "get"])) ? (this.handle_whitespace_and_comments(T), this.print_newline()) : this.handle_whitespace_and_comments(T), this._flags.do_block && !this._flags.do_while)
  113654. if (f(T, "while")) {
  113655. this._output.space_before_token = !0, this.print_token(T), this._output.space_before_token = !0, this._flags.do_while = !0;
  113656. return;
  113657. } else
  113658. this.print_newline(), this._flags.do_block = !1;
  113659. if (this._flags.if_block)
  113660. if (!this._flags.else_block && f(T, "else"))
  113661. this._flags.else_block = !0;
  113662. else {
  113663. for (; this._flags.mode === m.Statement; )
  113664. this.restore_mode();
  113665. this._flags.if_block = !1, this._flags.else_block = !1;
  113666. }
  113667. if (this._flags.in_case_statement && d(T, ["case", "default"])) {
  113668. this.print_newline(), !this._flags.case_block && (this._flags.case_body || this._options.jslint_happy) && this.deindent(), this._flags.case_body = !1, this.print_token(T), this._flags.in_case = !0;
  113669. return;
  113670. }
  113671. if ((this._flags.last_token.type === s.COMMA || this._flags.last_token.type === s.START_EXPR || this._flags.last_token.type === s.EQUALS || this._flags.last_token.type === s.OPERATOR) && !this.start_of_object_property() && !// start of object property is different for numeric values with +/- prefix operators
  113672. (l(this._flags.last_token.text, ["+", "-"]) && this._last_last_text === ":" && this._flags.parent.mode === m.ObjectLiteral) && this.allow_wrap_or_preserved_newline(T), f(T, "function")) {
  113673. (l(this._flags.last_token.text, ["}", ";"]) || this._output.just_added_newline() && !(l(this._flags.last_token.text, ["(", "[", "{", ":", "=", ","]) || this._flags.last_token.type === s.OPERATOR)) && !this._output.just_added_blankline() && !T.comments_before && (this.print_newline(), this.print_newline(!0)), this._flags.last_token.type === s.RESERVED || this._flags.last_token.type === s.WORD ? d(this._flags.last_token, ["get", "set", "new", "export"]) || d(this._flags.last_token, $) ? this._output.space_before_token = !0 : f(this._flags.last_token, "default") && this._last_last_text === "export" ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" ? this._output.space_before_token = !0 : this.print_newline() : this._flags.last_token.type === s.OPERATOR || this._flags.last_token.text === "=" ? this._output.space_before_token = !0 : !this._flags.multiline_frame && (S(this._flags.mode) || O(this._flags.mode)) || this.print_newline(), this.print_token(T), this._flags.last_word = T.text;
  113674. return;
  113675. }
  113676. var M = "NONE";
  113677. if (this._flags.last_token.type === s.END_BLOCK ? this._previous_flags.inline_frame ? M = "SPACE" : d(T, ["else", "catch", "finally", "from"]) ? this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && T.newlines ? M = "NEWLINE" : (M = "SPACE", this._output.space_before_token = !0) : M = "NEWLINE" : this._flags.last_token.type === s.SEMICOLON && this._flags.mode === m.BlockStatement ? M = "NEWLINE" : this._flags.last_token.type === s.SEMICOLON && S(this._flags.mode) ? M = "SPACE" : this._flags.last_token.type === s.STRING ? M = "NEWLINE" : this._flags.last_token.type === s.RESERVED || this._flags.last_token.type === s.WORD || this._flags.last_token.text === "*" && (l(this._last_last_text, ["function", "yield"]) || this._flags.mode === m.ObjectLiteral && l(this._last_last_text, ["{", ","])) ? M = "SPACE" : this._flags.last_token.type === s.START_BLOCK ? this._flags.inline_frame ? M = "SPACE" : M = "NEWLINE" : this._flags.last_token.type === s.END_EXPR && (this._output.space_before_token = !0, M = "NEWLINE"), d(T, a) && this._flags.last_token.text !== ")" && (this._flags.inline_frame || this._flags.last_token.text === "else" || this._flags.last_token.text === "export" ? M = "SPACE" : M = "NEWLINE"), d(T, ["else", "catch", "finally"]))
  113678. if ((!(this._flags.last_token.type === s.END_BLOCK && this._previous_flags.mode === m.BlockStatement) || this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && T.newlines) && !this._flags.inline_frame)
  113679. this.print_newline();
  113680. else {
  113681. this._output.trim(!0);
  113682. var R = this._output.current_line;
  113683. R.last() !== "}" && this.print_newline(), this._output.space_before_token = !0;
  113684. }
  113685. else M === "NEWLINE" ? d(this._flags.last_token, h) ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" && d(T, ["var", "let", "const"]) ? this._output.space_before_token = !0 : this._flags.last_token.type !== s.END_EXPR ? (this._flags.last_token.type !== s.START_EXPR || !d(T, ["var", "let", "const"])) && this._flags.last_token.text !== ":" && (f(T, "if") && f(T.previous, "else") ? this._output.space_before_token = !0 : this.print_newline()) : d(T, a) && this._flags.last_token.text !== ")" && this.print_newline() : this._flags.multiline_frame && O(this._flags.mode) && this._flags.last_token.text === "," && this._last_last_text === "}" ? this.print_newline() : M === "SPACE" && (this._output.space_before_token = !0);
  113686. T.previous && (T.previous.type === s.WORD || T.previous.type === s.RESERVED) && (this._output.space_before_token = !0), this.print_token(T), this._flags.last_word = T.text, T.type === s.RESERVED && (T.text === "do" ? this._flags.do_block = !0 : T.text === "if" ? this._flags.if_block = !0 : T.text === "import" ? this._flags.import_block = !0 : this._flags.import_block && f(T, "from") && (this._flags.import_block = !1));
  113687. }, P.prototype.handle_semicolon = function(T) {
  113688. this.start_of_statement(T) ? this._output.space_before_token = !1 : this.handle_whitespace_and_comments(T);
  113689. for (var E = this._tokens.peek(); this._flags.mode === m.Statement && !(this._flags.if_block && f(E, "else")) && !this._flags.do_block; )
  113690. this.restore_mode();
  113691. this._flags.import_block && (this._flags.import_block = !1), this.print_token(T);
  113692. }, P.prototype.handle_string = function(T) {
  113693. T.text.startsWith("`") && T.newlines === 0 && T.whitespace_before === "" && (T.previous.text === ")" || this._flags.last_token.type === s.WORD) || (this.start_of_statement(T) ? this._output.space_before_token = !0 : (this.handle_whitespace_and_comments(T), this._flags.last_token.type === s.RESERVED || this._flags.last_token.type === s.WORD || this._flags.inline_frame ? this._output.space_before_token = !0 : this._flags.last_token.type === s.COMMA || this._flags.last_token.type === s.START_EXPR || this._flags.last_token.type === s.EQUALS || this._flags.last_token.type === s.OPERATOR ? this.start_of_object_property() || this.allow_wrap_or_preserved_newline(T) : T.text.startsWith("`") && this._flags.last_token.type === s.END_EXPR && (T.previous.text === "]" || T.previous.text === ")") && T.newlines === 0 ? this._output.space_before_token = !0 : this.print_newline())), this.print_token(T);
  113694. }, P.prototype.handle_equals = function(T) {
  113695. this.start_of_statement(T) || this.handle_whitespace_and_comments(T), this._flags.declaration_statement && (this._flags.declaration_assignment = !0), this._output.space_before_token = !0, this.print_token(T), this._output.space_before_token = !0;
  113696. }, P.prototype.handle_comma = function(T) {
  113697. this.handle_whitespace_and_comments(T, !0), this.print_token(T), this._output.space_before_token = !0, this._flags.declaration_statement ? (S(this._flags.parent.mode) && (this._flags.declaration_assignment = !1), this._flags.declaration_assignment ? (this._flags.declaration_assignment = !1, this.print_newline(!1, !0)) : this._options.comma_first && this.allow_wrap_or_preserved_newline(T)) : this._flags.mode === m.ObjectLiteral || this._flags.mode === m.Statement && this._flags.parent.mode === m.ObjectLiteral ? (this._flags.mode === m.Statement && this.restore_mode(), this._flags.inline_frame || this.print_newline()) : this._options.comma_first && this.allow_wrap_or_preserved_newline(T);
  113698. }, P.prototype.handle_operator = function(T) {
  113699. var E = T.text === "*" && (d(this._flags.last_token, ["function", "yield"]) || l(this._flags.last_token.type, [s.START_BLOCK, s.COMMA, s.END_BLOCK, s.SEMICOLON])), M = l(T.text, ["-", "+"]) && (l(this._flags.last_token.type, [s.START_BLOCK, s.START_EXPR, s.EQUALS, s.OPERATOR]) || l(this._flags.last_token.text, a) || this._flags.last_token.text === ",");
  113700. if (!this.start_of_statement(T)) {
  113701. var R = !E;
  113702. this.handle_whitespace_and_comments(T, R);
  113703. }
  113704. if (T.text === "*" && this._flags.last_token.type === s.DOT) {
  113705. this.print_token(T);
  113706. return;
  113707. }
  113708. if (T.text === "::") {
  113709. this.print_token(T);
  113710. return;
  113711. }
  113712. if (l(T.text, ["-", "+"]) && this.start_of_object_property()) {
  113713. this.print_token(T);
  113714. return;
  113715. }
  113716. if (this._flags.last_token.type === s.OPERATOR && l(this._options.operator_position, g) && this.allow_wrap_or_preserved_newline(T), T.text === ":" && this._flags.in_case) {
  113717. this.print_token(T), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== s.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
  113718. return;
  113719. }
  113720. var N = !0, I = !0, B = !1;
  113721. if (T.text === ":" ? this._flags.ternary_depth === 0 ? N = !1 : (this._flags.ternary_depth -= 1, B = !0) : T.text === "?" && (this._flags.ternary_depth += 1), !M && !E && this._options.preserve_newlines && l(T.text, o)) {
  113722. var Q = T.text === ":", W = Q && B, H = Q && !B;
  113723. switch (this._options.operator_position) {
  113724. case v.before_newline:
  113725. this._output.space_before_token = !H, this.print_token(T), (!Q || W) && this.allow_wrap_or_preserved_newline(T), this._output.space_before_token = !0;
  113726. return;
  113727. case v.after_newline:
  113728. this._output.space_before_token = !0, !Q || W ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(T) : this._output.space_before_token = !1, this.print_token(T), this._output.space_before_token = !0;
  113729. return;
  113730. case v.preserve_newline:
  113731. H || this.allow_wrap_or_preserved_newline(T), N = !(this._output.just_added_newline() || H), this._output.space_before_token = N, this.print_token(T), this._output.space_before_token = !0;
  113732. return;
  113733. }
  113734. }
  113735. if (E) {
  113736. this.allow_wrap_or_preserved_newline(T), N = !1;
  113737. var U = this._tokens.peek();
  113738. I = U && l(U.type, [s.WORD, s.RESERVED]);
  113739. } else if (T.text === "...")
  113740. this.allow_wrap_or_preserved_newline(T), N = this._flags.last_token.type === s.START_BLOCK, I = !1;
  113741. else if (l(T.text, ["--", "++", "!", "~"]) || M) {
  113742. if ((this._flags.last_token.type === s.COMMA || this._flags.last_token.type === s.START_EXPR) && this.allow_wrap_or_preserved_newline(T), N = !1, I = !1, T.newlines && (T.text === "--" || T.text === "++" || T.text === "~")) {
  113743. var j = d(this._flags.last_token, h) && T.newlines;
  113744. j && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(j, !0);
  113745. }
  113746. this._flags.last_token.text === ";" && S(this._flags.mode) && (N = !0), this._flags.last_token.type === s.RESERVED ? N = !0 : this._flags.last_token.type === s.END_EXPR ? N = !(this._flags.last_token.text === "]" && (T.text === "--" || T.text === "++")) : this._flags.last_token.type === s.OPERATOR && (N = l(T.text, ["--", "-", "++", "+"]) && l(this._flags.last_token.text, ["--", "-", "++", "+"]), l(T.text, ["+", "-"]) && l(this._flags.last_token.text, ["--", "++"]) && (I = !0)), (this._flags.mode === m.BlockStatement && !this._flags.inline_frame || this._flags.mode === m.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
  113747. }
  113748. this._output.space_before_token = this._output.space_before_token || N, this.print_token(T), this._output.space_before_token = I;
  113749. }, P.prototype.handle_block_comment = function(T, E) {
  113750. if (this._output.raw) {
  113751. this._output.add_raw_token(T), T.directives && T.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
  113752. return;
  113753. }
  113754. if (T.directives) {
  113755. this.print_newline(!1, E), this.print_token(T), T.directives.preserve === "start" && (this._output.raw = !0), this.print_newline(!1, !0);
  113756. return;
  113757. }
  113758. if (!n.newline.test(T.text) && !T.newlines) {
  113759. this._output.space_before_token = !0, this.print_token(T), this._output.space_before_token = !0;
  113760. return;
  113761. } else
  113762. this.print_block_commment(T, E);
  113763. }, P.prototype.print_block_commment = function(T, E) {
  113764. var M = _(T.text), R, N = !1, I = !1, B = T.whitespace_before, Q = B.length;
  113765. if (this.print_newline(!1, E), this.print_token_line_indentation(T), this._output.add_token(M[0]), this.print_newline(!1, E), M.length > 1) {
  113766. for (M = M.slice(1), N = x(M, "*"), I = C(M, B), N && (this._flags.alignment = 1), R = 0; R < M.length; R++)
  113767. N ? (this.print_token_line_indentation(T), this._output.add_token(u(M[R]))) : I && M[R] ? (this.print_token_line_indentation(T), this._output.add_token(M[R].substring(Q))) : (this._output.current_line.set_indent(-1), this._output.add_token(M[R])), this.print_newline(!1, E);
  113768. this._flags.alignment = 0;
  113769. }
  113770. }, P.prototype.handle_comment = function(T, E) {
  113771. T.newlines ? this.print_newline(!1, E) : this._output.trim(!0), this._output.space_before_token = !0, this.print_token(T), this.print_newline(!1, E);
  113772. }, P.prototype.handle_dot = function(T) {
  113773. this.start_of_statement(T) || this.handle_whitespace_and_comments(T, !0), this._flags.last_token.text.match("^[0-9]+$") && (this._output.space_before_token = !0), d(this._flags.last_token, h) ? this._output.space_before_token = !1 : this.allow_wrap_or_preserved_newline(
  113774. T,
  113775. this._flags.last_token.text === ")" && this._options.break_chained_methods
  113776. ), this._options.unindent_chained_methods && this._output.just_added_newline() && this.deindent(), this.print_token(T);
  113777. }, P.prototype.handle_unknown = function(T, E) {
  113778. this.print_token(T), T.text[T.text.length - 1] === `
  113779. ` && this.print_newline(!1, E);
  113780. }, P.prototype.handle_eof = function(T) {
  113781. for (; this._flags.mode === m.Statement; )
  113782. this.restore_mode();
  113783. this.handle_whitespace_and_comments(T);
  113784. }, PD.Beautifier = P, PD;
  113785. }
  113786. var vee;
  113787. function HAt() {
  113788. if (vee) return Ex.exports;
  113789. vee = 1;
  113790. var t = QAt().Beautifier, e = Fme().Options;
  113791. function n(r, i) {
  113792. var a = new t(r, i);
  113793. return a.beautify();
  113794. }
  113795. return Ex.exports = n, Ex.exports.defaultOptions = function() {
  113796. return new e();
  113797. }, Ex.exports;
  113798. }
  113799. var Dx = { exports: {} }, BD = {}, zD = {}, gee;
  113800. function Qme() {
  113801. if (gee) return zD;
  113802. gee = 1;
  113803. var t = kB().Options;
  113804. function e(n) {
  113805. t.call(this, n, "css"), this.selector_separator_newline = this._get_boolean("selector_separator_newline", !0), this.newline_between_rules = this._get_boolean("newline_between_rules", !0);
  113806. var r = this._get_boolean("space_around_selector_separator");
  113807. this.space_around_combinator = this._get_boolean("space_around_combinator") || r;
  113808. var i = this._get_selection_list("brace_style", ["collapse", "expand", "end-expand", "none", "preserve-inline"]);
  113809. this.brace_style = "collapse";
  113810. for (var a = 0; a < i.length; a++)
  113811. i[a] !== "expand" ? this.brace_style = "collapse" : this.brace_style = i[a];
  113812. }
  113813. return e.prototype = new t(), zD.Options = e, zD;
  113814. }
  113815. var mee;
  113816. function GAt() {
  113817. if (mee) return BD;
  113818. mee = 1;
  113819. var t = Qme().Options, e = RB().Output, n = LB().InputScanner, r = NB().Directives, i = new r(/\/\*/, /\*\//), a = /\r\n|[\r\n]/, o = /\r\n|[\r\n]/g, s = /\s/, l = /(?:\s|\n)+/g, u = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g, c = /\/\/(?:[^\n\r\u2028\u2029]*)/g;
  113820. function f(d, h) {
  113821. this._source_text = d || "", this._options = new t(h), this._ch = null, this._input = null, this.NESTED_AT_RULE = {
  113822. page: !0,
  113823. "font-face": !0,
  113824. keyframes: !0,
  113825. // also in CONDITIONAL_GROUP_RULE below
  113826. media: !0,
  113827. supports: !0,
  113828. document: !0
  113829. }, this.CONDITIONAL_GROUP_RULE = {
  113830. media: !0,
  113831. supports: !0,
  113832. document: !0
  113833. }, this.NON_SEMICOLON_NEWLINE_PROPERTY = [
  113834. "grid-template-areas",
  113835. "grid-template"
  113836. ];
  113837. }
  113838. return f.prototype.eatString = function(d) {
  113839. var h = "";
  113840. for (this._ch = this._input.next(); this._ch; ) {
  113841. if (h += this._ch, this._ch === "\\")
  113842. h += this._input.next();
  113843. else if (d.indexOf(this._ch) !== -1 || this._ch === `
  113844. `)
  113845. break;
  113846. this._ch = this._input.next();
  113847. }
  113848. return h;
  113849. }, f.prototype.eatWhitespace = function(d) {
  113850. for (var h = s.test(this._input.peek()), p = 0; s.test(this._input.peek()); )
  113851. this._ch = this._input.next(), d && this._ch === `
  113852. ` && (p === 0 || p < this._options.max_preserve_newlines) && (p++, this._output.add_new_line(!0));
  113853. return h;
  113854. }, f.prototype.foundNestedPseudoClass = function() {
  113855. for (var d = 0, h = 1, p = this._input.peek(h); p; ) {
  113856. if (p === "{")
  113857. return !0;
  113858. if (p === "(")
  113859. d += 1;
  113860. else if (p === ")") {
  113861. if (d === 0)
  113862. return !1;
  113863. d -= 1;
  113864. } else if (p === ";" || p === "}")
  113865. return !1;
  113866. h++, p = this._input.peek(h);
  113867. }
  113868. return !1;
  113869. }, f.prototype.print_string = function(d) {
  113870. this._output.set_indent(this._indentLevel), this._output.non_breaking_space = !0, this._output.add_token(d);
  113871. }, f.prototype.preserveSingleSpace = function(d) {
  113872. d && (this._output.space_before_token = !0);
  113873. }, f.prototype.indent = function() {
  113874. this._indentLevel++;
  113875. }, f.prototype.outdent = function() {
  113876. this._indentLevel > 0 && this._indentLevel--;
  113877. }, f.prototype.beautify = function() {
  113878. if (this._options.disabled)
  113879. return this._source_text;
  113880. var d = this._source_text, h = this._options.eol;
  113881. h === "auto" && (h = `
  113882. `, d && a.test(d || "") && (h = d.match(a)[0])), d = d.replace(o, `
  113883. `);
  113884. var p = d.match(/^[\t ]*/)[0];
  113885. this._output = new e(this._options, p), this._input = new n(d), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
  113886. for (var v = 0, g = !1, m = !1, y = !1, _ = !1, O = !1, S = this._ch, x = !1, C, P, $; C = this._input.read(l), P = C !== "", $ = S, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), S = this._ch, this._ch; )
  113887. if (this._ch === "/" && this._input.peek() === "*") {
  113888. this._output.add_new_line(), this._input.back();
  113889. var T = this._input.read(u), E = i.get_directives(T);
  113890. E && E.ignore === "start" && (T += i.readIgnored(this._input)), this.print_string(T), this.eatWhitespace(!0), this._output.add_new_line();
  113891. } else if (this._ch === "/" && this._input.peek() === "/")
  113892. this._output.space_before_token = !0, this._input.back(), this.print_string(this._input.read(c)), this.eatWhitespace(!0);
  113893. else if (this._ch === "$") {
  113894. this.preserveSingleSpace(P), this.print_string(this._ch);
  113895. var M = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
  113896. M.match(/[ :]$/) && (M = this.eatString(": ").replace(/\s+$/, ""), this.print_string(M), this._output.space_before_token = !0), v === 0 && M.indexOf(":") !== -1 && (m = !0, this.indent());
  113897. } else if (this._ch === "@")
  113898. if (this.preserveSingleSpace(P), this._input.peek() === "{")
  113899. this.print_string(this._ch + this.eatString("}"));
  113900. else {
  113901. this.print_string(this._ch);
  113902. var R = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
  113903. R.match(/[ :]$/) && (R = this.eatString(": ").replace(/\s+$/, ""), this.print_string(R), this._output.space_before_token = !0), v === 0 && R.indexOf(":") !== -1 ? (m = !0, this.indent()) : R in this.NESTED_AT_RULE ? (this._nestedLevel += 1, R in this.CONDITIONAL_GROUP_RULE && (y = !0)) : v === 0 && !m && (_ = !0);
  113904. }
  113905. else if (this._ch === "#" && this._input.peek() === "{")
  113906. this.preserveSingleSpace(P), this.print_string(this._ch + this.eatString("}"));
  113907. else if (this._ch === "{")
  113908. m && (m = !1, this.outdent()), _ = !1, y ? (y = !1, g = this._indentLevel >= this._nestedLevel) : g = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && g && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : ($ === "(" ? this._output.space_before_token = !1 : $ !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
  113909. else if (this._ch === "}")
  113910. this.outdent(), this._output.add_new_line(), $ === "{" && this._output.trim(!0), m && (this.outdent(), m = !1), this.print_string(this._ch), g = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
  113911. else if (this._ch === ":") {
  113912. for (var N = 0; N < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; N++)
  113913. if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[N])) {
  113914. x = !0;
  113915. break;
  113916. }
  113917. (g || y) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !_ && v === 0 ? (this.print_string(":"), m || (m = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
  113918. } else if (this._ch === '"' || this._ch === "'") {
  113919. var I = $ === '"' || $ === "'";
  113920. this.preserveSingleSpace(I || P), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
  113921. } else if (this._ch === ";")
  113922. x = !1, v === 0 ? (m && (this.outdent(), m = !1), _ = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
  113923. else if (this._ch === "(")
  113924. if (this._input.lookBack("url"))
  113925. this.print_string(this._ch), this.eatWhitespace(), v++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), v && (v--, this.outdent()));
  113926. else {
  113927. var B = !1;
  113928. this._input.lookBack("with") && (B = !0), this.preserveSingleSpace(P || B), this.print_string(this._ch), m && $ === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), O = !0) : (this.eatWhitespace(), v++, this.indent());
  113929. }
  113930. else if (this._ch === ")")
  113931. v && (v--, this.outdent()), O && this._input.peek() === ";" && this._options.selector_separator_newline && (O = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
  113932. else if (this._ch === ",")
  113933. this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!m || O) && v === 0 && !_ ? this._output.add_new_line() : this._output.space_before_token = !0;
  113934. else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !m && v === 0)
  113935. this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && s.test(this._ch) && (this._ch = ""));
  113936. else if (this._ch === "]")
  113937. this.print_string(this._ch);
  113938. else if (this._ch === "[")
  113939. this.preserveSingleSpace(P), this.print_string(this._ch);
  113940. else if (this._ch === "=")
  113941. this.eatWhitespace(), this.print_string("="), s.test(this._ch) && (this._ch = "");
  113942. else if (this._ch === "!" && !this._input.lookBack("\\"))
  113943. this._output.space_before_token = !0, this.print_string(this._ch);
  113944. else {
  113945. var Q = $ === '"' || $ === "'";
  113946. this.preserveSingleSpace(Q || P), this.print_string(this._ch), !this._output.just_added_newline() && this._input.peek() === `
  113947. ` && x && this._output.add_new_line();
  113948. }
  113949. var W = this._output.get_code(h);
  113950. return W;
  113951. }, BD.Beautifier = f, BD;
  113952. }
  113953. var yee;
  113954. function jAt() {
  113955. if (yee) return Dx.exports;
  113956. yee = 1;
  113957. var t = GAt().Beautifier, e = Qme().Options;
  113958. function n(r, i) {
  113959. var a = new t(r, i);
  113960. return a.beautify();
  113961. }
  113962. return Dx.exports = n, Dx.exports.defaultOptions = function() {
  113963. return new e();
  113964. }, Dx.exports;
  113965. }
  113966. var Rx = { exports: {} }, VD = {}, FD = {}, bee;
  113967. function Hme() {
  113968. if (bee) return FD;
  113969. bee = 1;
  113970. var t = kB().Options;
  113971. function e(n) {
  113972. t.call(this, n, "html"), this.templating.length === 1 && this.templating[0] === "auto" && (this.templating = ["django", "erb", "handlebars", "php"]), this.indent_inner_html = this._get_boolean("indent_inner_html"), this.indent_body_inner_html = this._get_boolean("indent_body_inner_html", !0), this.indent_head_inner_html = this._get_boolean("indent_head_inner_html", !0), this.indent_handlebars = this._get_boolean("indent_handlebars", !0), this.wrap_attributes = this._get_selection(
  113973. "wrap_attributes",
  113974. ["auto", "force", "force-aligned", "force-expand-multiline", "aligned-multiple", "preserve", "preserve-aligned"]
  113975. ), this.wrap_attributes_min_attrs = this._get_number("wrap_attributes_min_attrs", 2), this.wrap_attributes_indent_size = this._get_number("wrap_attributes_indent_size", this.indent_size), this.extra_liners = this._get_array("extra_liners", ["head", "body", "/html"]), this.inline = this._get_array("inline", [
  113976. "a",
  113977. "abbr",
  113978. "area",
  113979. "audio",
  113980. "b",
  113981. "bdi",
  113982. "bdo",
  113983. "br",
  113984. "button",
  113985. "canvas",
  113986. "cite",
  113987. "code",
  113988. "data",
  113989. "datalist",
  113990. "del",
  113991. "dfn",
  113992. "em",
  113993. "embed",
  113994. "i",
  113995. "iframe",
  113996. "img",
  113997. "input",
  113998. "ins",
  113999. "kbd",
  114000. "keygen",
  114001. "label",
  114002. "map",
  114003. "mark",
  114004. "math",
  114005. "meter",
  114006. "noscript",
  114007. "object",
  114008. "output",
  114009. "progress",
  114010. "q",
  114011. "ruby",
  114012. "s",
  114013. "samp",
  114014. /* 'script', */
  114015. "select",
  114016. "small",
  114017. "span",
  114018. "strong",
  114019. "sub",
  114020. "sup",
  114021. "svg",
  114022. "template",
  114023. "textarea",
  114024. "time",
  114025. "u",
  114026. "var",
  114027. "video",
  114028. "wbr",
  114029. "text",
  114030. // obsolete inline tags
  114031. "acronym",
  114032. "big",
  114033. "strike",
  114034. "tt"
  114035. ]), this.inline_custom_elements = this._get_boolean("inline_custom_elements", !0), this.void_elements = this._get_array("void_elements", [
  114036. // HTLM void elements - aka self-closing tags - aka singletons
  114037. // https://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
  114038. "area",
  114039. "base",
  114040. "br",
  114041. "col",
  114042. "embed",
  114043. "hr",
  114044. "img",
  114045. "input",
  114046. "keygen",
  114047. "link",
  114048. "menuitem",
  114049. "meta",
  114050. "param",
  114051. "source",
  114052. "track",
  114053. "wbr",
  114054. // NOTE: Optional tags are too complex for a simple list
  114055. // they are hard coded in _do_optional_end_element
  114056. // Doctype and xml elements
  114057. "!doctype",
  114058. "?xml",
  114059. // obsolete tags
  114060. // basefont: https://www.computerhope.com/jargon/h/html-basefont-tag.htm
  114061. // isndex: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/isindex
  114062. "basefont",
  114063. "isindex"
  114064. ]), this.unformatted = this._get_array("unformatted", []), this.content_unformatted = this._get_array("content_unformatted", [
  114065. "pre",
  114066. "textarea"
  114067. ]), this.unformatted_content_delimiter = this._get_characters("unformatted_content_delimiter"), this.indent_scripts = this._get_selection("indent_scripts", ["normal", "keep", "separate"]);
  114068. }
  114069. return e.prototype = new t(), FD.Options = e, FD;
  114070. }
  114071. var kx = {}, _ee;
  114072. function Oee() {
  114073. if (_ee) return kx;
  114074. _ee = 1;
  114075. var t = qT().Tokenizer, e = qT().TOKEN, n = NB().Directives, r = Wme().TemplatablePattern, i = v$().Pattern, a = {
  114076. TAG_OPEN: "TK_TAG_OPEN",
  114077. TAG_CLOSE: "TK_TAG_CLOSE",
  114078. CONTROL_FLOW_OPEN: "TK_CONTROL_FLOW_OPEN",
  114079. CONTROL_FLOW_CLOSE: "TK_CONTROL_FLOW_CLOSE",
  114080. ATTRIBUTE: "TK_ATTRIBUTE",
  114081. EQUALS: "TK_EQUALS",
  114082. VALUE: "TK_VALUE",
  114083. COMMENT: "TK_COMMENT",
  114084. TEXT: "TK_TEXT",
  114085. UNKNOWN: "TK_UNKNOWN",
  114086. START: e.START,
  114087. RAW: e.RAW,
  114088. EOF: e.EOF
  114089. }, o = new n(/<\!--/, /-->/), s = function(l, u) {
  114090. t.call(this, l, u), this._current_tag_name = "";
  114091. var c = new r(this._input).read_options(this._options), f = new i(this._input);
  114092. if (this.__patterns = {
  114093. word: c.until(/[\n\r\t <]/),
  114094. word_control_flow_close_excluded: c.until(/[\n\r\t <}]/),
  114095. single_quote: c.until_after(/'/),
  114096. double_quote: c.until_after(/"/),
  114097. attribute: c.until(/[\n\r\t =>]|\/>/),
  114098. element_name: c.until(/[\n\r\t >\/]/),
  114099. angular_control_flow_start: f.matching(/\@[a-zA-Z]+[^({]*[({]/),
  114100. handlebars_comment: f.starting_with(/{{!--/).until_after(/--}}/),
  114101. handlebars: f.starting_with(/{{/).until_after(/}}/),
  114102. handlebars_open: f.until(/[\n\r\t }]/),
  114103. handlebars_raw_close: f.until(/}}/),
  114104. comment: f.starting_with(/<!--/).until_after(/-->/),
  114105. cdata: f.starting_with(/<!\[CDATA\[/).until_after(/]]>/),
  114106. // https://en.wikipedia.org/wiki/Conditional_comment
  114107. conditional_comment: f.starting_with(/<!\[/).until_after(/]>/),
  114108. processing: f.starting_with(/<\?/).until_after(/\?>/)
  114109. }, this._options.indent_handlebars && (this.__patterns.word = this.__patterns.word.exclude("handlebars"), this.__patterns.word_control_flow_close_excluded = this.__patterns.word_control_flow_close_excluded.exclude("handlebars")), this._unformatted_content_delimiter = null, this._options.unformatted_content_delimiter) {
  114110. var d = this._input.get_literal_regexp(this._options.unformatted_content_delimiter);
  114111. this.__patterns.unformatted_content_delimiter = f.matching(d).until_after(d);
  114112. }
  114113. };
  114114. return s.prototype = new t(), s.prototype._is_comment = function(l) {
  114115. return !1;
  114116. }, s.prototype._is_opening = function(l) {
  114117. return l.type === a.TAG_OPEN || l.type === a.CONTROL_FLOW_OPEN;
  114118. }, s.prototype._is_closing = function(l, u) {
  114119. return l.type === a.TAG_CLOSE && u && ((l.text === ">" || l.text === "/>") && u.text[0] === "<" || l.text === "}}" && u.text[0] === "{" && u.text[1] === "{") || l.type === a.CONTROL_FLOW_CLOSE && l.text === "}" && u.text.endsWith("{");
  114120. }, s.prototype._reset = function() {
  114121. this._current_tag_name = "";
  114122. }, s.prototype._get_next_token = function(l, u) {
  114123. var c = null;
  114124. this._readWhitespace();
  114125. var f = this._input.peek();
  114126. return f === null ? this._create_token(a.EOF, "") : (c = c || this._read_open_handlebars(f, u), c = c || this._read_attribute(f, l, u), c = c || this._read_close(f, u), c = c || this._read_control_flows(f, u), c = c || this._read_raw_content(f, l, u), c = c || this._read_content_word(f, u), c = c || this._read_comment_or_cdata(f), c = c || this._read_processing(f), c = c || this._read_open(f, u), c = c || this._create_token(a.UNKNOWN, this._input.next()), c);
  114127. }, s.prototype._read_comment_or_cdata = function(l) {
  114128. var u = null, c = null, f = null;
  114129. if (l === "<") {
  114130. var d = this._input.peek(1);
  114131. d === "!" && (c = this.__patterns.comment.read(), c ? (f = o.get_directives(c), f && f.ignore === "start" && (c += o.readIgnored(this._input))) : c = this.__patterns.cdata.read()), c && (u = this._create_token(a.COMMENT, c), u.directives = f);
  114132. }
  114133. return u;
  114134. }, s.prototype._read_processing = function(l) {
  114135. var u = null, c = null, f = null;
  114136. if (l === "<") {
  114137. var d = this._input.peek(1);
  114138. (d === "!" || d === "?") && (c = this.__patterns.conditional_comment.read(), c = c || this.__patterns.processing.read()), c && (u = this._create_token(a.COMMENT, c), u.directives = f);
  114139. }
  114140. return u;
  114141. }, s.prototype._read_open = function(l, u) {
  114142. var c = null, f = null;
  114143. return (!u || u.type === a.CONTROL_FLOW_OPEN) && l === "<" && (c = this._input.next(), this._input.peek() === "/" && (c += this._input.next()), c += this.__patterns.element_name.read(), f = this._create_token(a.TAG_OPEN, c)), f;
  114144. }, s.prototype._read_open_handlebars = function(l, u) {
  114145. var c = null, f = null;
  114146. return (!u || u.type === a.CONTROL_FLOW_OPEN) && this._options.indent_handlebars && l === "{" && this._input.peek(1) === "{" && (this._input.peek(2) === "!" ? (c = this.__patterns.handlebars_comment.read(), c = c || this.__patterns.handlebars.read(), f = this._create_token(a.COMMENT, c)) : (c = this.__patterns.handlebars_open.read(), f = this._create_token(a.TAG_OPEN, c))), f;
  114147. }, s.prototype._read_control_flows = function(l, u) {
  114148. var c = "", f = null;
  114149. if (!this._options.templating.includes("angular") || !this._options.indent_handlebars)
  114150. return f;
  114151. if (l === "@") {
  114152. if (c = this.__patterns.angular_control_flow_start.read(), c === "")
  114153. return f;
  114154. for (var d = c.endsWith("(") ? 1 : 0, h = 0; !(c.endsWith("{") && d === h); ) {
  114155. var p = this._input.next();
  114156. if (p === null)
  114157. break;
  114158. p === "(" ? d++ : p === ")" && h++, c += p;
  114159. }
  114160. f = this._create_token(a.CONTROL_FLOW_OPEN, c);
  114161. } else l === "}" && u && u.type === a.CONTROL_FLOW_OPEN && (c = this._input.next(), f = this._create_token(a.CONTROL_FLOW_CLOSE, c));
  114162. return f;
  114163. }, s.prototype._read_close = function(l, u) {
  114164. var c = null, f = null;
  114165. return u && u.type === a.TAG_OPEN && (u.text[0] === "<" && (l === ">" || l === "/" && this._input.peek(1) === ">") ? (c = this._input.next(), l === "/" && (c += this._input.next()), f = this._create_token(a.TAG_CLOSE, c)) : u.text[0] === "{" && l === "}" && this._input.peek(1) === "}" && (this._input.next(), this._input.next(), f = this._create_token(a.TAG_CLOSE, "}}"))), f;
  114166. }, s.prototype._read_attribute = function(l, u, c) {
  114167. var f = null, d = "";
  114168. if (c && c.text[0] === "<")
  114169. if (l === "=")
  114170. f = this._create_token(a.EQUALS, this._input.next());
  114171. else if (l === '"' || l === "'") {
  114172. var h = this._input.next();
  114173. l === '"' ? h += this.__patterns.double_quote.read() : h += this.__patterns.single_quote.read(), f = this._create_token(a.VALUE, h);
  114174. } else
  114175. d = this.__patterns.attribute.read(), d && (u.type === a.EQUALS ? f = this._create_token(a.VALUE, d) : f = this._create_token(a.ATTRIBUTE, d));
  114176. return f;
  114177. }, s.prototype._is_content_unformatted = function(l) {
  114178. return this._options.void_elements.indexOf(l) === -1 && (this._options.content_unformatted.indexOf(l) !== -1 || this._options.unformatted.indexOf(l) !== -1);
  114179. }, s.prototype._read_raw_content = function(l, u, c) {
  114180. var f = "";
  114181. if (c && c.text[0] === "{")
  114182. f = this.__patterns.handlebars_raw_close.read();
  114183. else if (u.type === a.TAG_CLOSE && u.opened.text[0] === "<" && u.text[0] !== "/") {
  114184. var d = u.opened.text.substr(1).toLowerCase();
  114185. if (d === "script" || d === "style") {
  114186. var h = this._read_comment_or_cdata(l);
  114187. if (h)
  114188. return h.type = a.TEXT, h;
  114189. f = this._input.readUntil(new RegExp("</" + d + "[\\n\\r\\t ]*?>", "ig"));
  114190. } else this._is_content_unformatted(d) && (f = this._input.readUntil(new RegExp("</" + d + "[\\n\\r\\t ]*?>", "ig")));
  114191. }
  114192. return f ? this._create_token(a.TEXT, f) : null;
  114193. }, s.prototype._read_content_word = function(l, u) {
  114194. var c = "";
  114195. if (this._options.unformatted_content_delimiter && l === this._options.unformatted_content_delimiter[0] && (c = this.__patterns.unformatted_content_delimiter.read()), c || (c = u && u.type === a.CONTROL_FLOW_OPEN ? this.__patterns.word_control_flow_close_excluded.read() : this.__patterns.word.read()), c)
  114196. return this._create_token(a.TEXT, c);
  114197. }, kx.Tokenizer = s, kx.TOKEN = a, kx;
  114198. }
  114199. var See;
  114200. function ZAt() {
  114201. if (See) return VD;
  114202. See = 1;
  114203. var t = Hme().Options, e = RB().Output, n = Oee().Tokenizer, r = Oee().TOKEN, i = /\r\n|[\r\n]/, a = /\r\n|[\r\n]/g, o = function(g, m) {
  114204. this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = g.max_preserve_newlines, this.preserve_newlines = g.preserve_newlines, this._output = new e(g, m);
  114205. };
  114206. o.prototype.current_line_has_match = function(g) {
  114207. return this._output.current_line.has_match(g);
  114208. }, o.prototype.set_space_before_token = function(g, m) {
  114209. this._output.space_before_token = g, this._output.non_breaking_space = m;
  114210. }, o.prototype.set_wrap_point = function() {
  114211. this._output.set_indent(this.indent_level, this.alignment_size), this._output.set_wrap_point();
  114212. }, o.prototype.add_raw_token = function(g) {
  114213. this._output.add_raw_token(g);
  114214. }, o.prototype.print_preserved_newlines = function(g) {
  114215. var m = 0;
  114216. g.type !== r.TEXT && g.previous.type !== r.TEXT && (m = g.newlines ? 1 : 0), this.preserve_newlines && (m = g.newlines < this.max_preserve_newlines + 1 ? g.newlines : this.max_preserve_newlines + 1);
  114217. for (var y = 0; y < m; y++)
  114218. this.print_newline(y > 0);
  114219. return m !== 0;
  114220. }, o.prototype.traverse_whitespace = function(g) {
  114221. return g.whitespace_before || g.newlines ? (this.print_preserved_newlines(g) || (this._output.space_before_token = !0), !0) : !1;
  114222. }, o.prototype.previous_token_wrapped = function() {
  114223. return this._output.previous_token_wrapped;
  114224. }, o.prototype.print_newline = function(g) {
  114225. this._output.add_new_line(g);
  114226. }, o.prototype.print_token = function(g) {
  114227. g.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(g.text));
  114228. }, o.prototype.indent = function() {
  114229. this.indent_level++;
  114230. }, o.prototype.deindent = function() {
  114231. this.indent_level > 0 && (this.indent_level--, this._output.set_indent(this.indent_level, this.alignment_size));
  114232. }, o.prototype.get_full_indent = function(g) {
  114233. return g = this.indent_level + (g || 0), g < 1 ? "" : this._output.get_indent_string(g);
  114234. };
  114235. var s = function(g) {
  114236. for (var m = null, y = g.next; y.type !== r.EOF && g.closed !== y; ) {
  114237. if (y.type === r.ATTRIBUTE && y.text === "type") {
  114238. y.next && y.next.type === r.EQUALS && y.next.next && y.next.next.type === r.VALUE && (m = y.next.next.text);
  114239. break;
  114240. }
  114241. y = y.next;
  114242. }
  114243. return m;
  114244. }, l = function(g, m) {
  114245. var y = null, _ = null;
  114246. return m.closed ? (g === "script" ? y = "text/javascript" : g === "style" && (y = "text/css"), y = s(m) || y, y.search("text/css") > -1 ? _ = "css" : y.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? _ = "javascript" : y.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? _ = "html" : y.search(/test\/null/) > -1 && (_ = "null"), _) : null;
  114247. };
  114248. function u(g, m) {
  114249. return m.indexOf(g) !== -1;
  114250. }
  114251. function c(g, m, y) {
  114252. this.parent = g || null, this.tag = m ? m.tag_name : "", this.indent_level = y || 0, this.parser_token = m || null;
  114253. }
  114254. function f(g) {
  114255. this._printer = g, this._current_frame = null;
  114256. }
  114257. f.prototype.get_parser_token = function() {
  114258. return this._current_frame ? this._current_frame.parser_token : null;
  114259. }, f.prototype.record_tag = function(g) {
  114260. var m = new c(this._current_frame, g, this._printer.indent_level);
  114261. this._current_frame = m;
  114262. }, f.prototype._try_pop_frame = function(g) {
  114263. var m = null;
  114264. return g && (m = g.parser_token, this._printer.indent_level = g.indent_level, this._current_frame = g.parent), m;
  114265. }, f.prototype._get_frame = function(g, m) {
  114266. for (var y = this._current_frame; y && g.indexOf(y.tag) === -1; ) {
  114267. if (m && m.indexOf(y.tag) !== -1) {
  114268. y = null;
  114269. break;
  114270. }
  114271. y = y.parent;
  114272. }
  114273. return y;
  114274. }, f.prototype.try_pop = function(g, m) {
  114275. var y = this._get_frame([g], m);
  114276. return this._try_pop_frame(y);
  114277. }, f.prototype.indent_to_tag = function(g) {
  114278. var m = this._get_frame(g);
  114279. m && (this._printer.indent_level = m.indent_level);
  114280. };
  114281. function d(g, m, y, _) {
  114282. this._source_text = g || "", m = m || {}, this._js_beautify = y, this._css_beautify = _, this._tag_stack = null;
  114283. var O = new t(m, "html");
  114284. this._options = O, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
  114285. }
  114286. d.prototype.beautify = function() {
  114287. if (this._options.disabled)
  114288. return this._source_text;
  114289. var g = this._source_text, m = this._options.eol;
  114290. this._options.eol === "auto" && (m = `
  114291. `, g && i.test(g) && (m = g.match(i)[0])), g = g.replace(a, `
  114292. `);
  114293. var y = g.match(/^[\t ]*/)[0], _ = {
  114294. text: "",
  114295. type: ""
  114296. }, O = new h(), S = new o(this._options, y), x = new n(g, this._options).tokenize();
  114297. this._tag_stack = new f(S);
  114298. for (var C = null, P = x.next(); P.type !== r.EOF; )
  114299. P.type === r.TAG_OPEN || P.type === r.COMMENT ? (C = this._handle_tag_open(S, P, O, _, x), O = C) : P.type === r.ATTRIBUTE || P.type === r.EQUALS || P.type === r.VALUE || P.type === r.TEXT && !O.tag_complete ? C = this._handle_inside_tag(S, P, O, _) : P.type === r.TAG_CLOSE ? C = this._handle_tag_close(S, P, O) : P.type === r.TEXT ? C = this._handle_text(S, P, O) : P.type === r.CONTROL_FLOW_OPEN ? C = this._handle_control_flow_open(S, P) : P.type === r.CONTROL_FLOW_CLOSE ? C = this._handle_control_flow_close(S, P) : S.add_raw_token(P), _ = C, P = x.next();
  114300. var $ = S._output.get_code(m);
  114301. return $;
  114302. }, d.prototype._handle_control_flow_open = function(g, m) {
  114303. var y = {
  114304. text: m.text,
  114305. type: m.type
  114306. };
  114307. return g.set_space_before_token(m.newlines || m.whitespace_before !== "", !0), m.newlines ? g.print_preserved_newlines(m) : g.set_space_before_token(m.newlines || m.whitespace_before !== "", !0), g.print_token(m), g.indent(), y;
  114308. }, d.prototype._handle_control_flow_close = function(g, m) {
  114309. var y = {
  114310. text: m.text,
  114311. type: m.type
  114312. };
  114313. return g.deindent(), m.newlines ? g.print_preserved_newlines(m) : g.set_space_before_token(m.newlines || m.whitespace_before !== "", !0), g.print_token(m), y;
  114314. }, d.prototype._handle_tag_close = function(g, m, y) {
  114315. var _ = {
  114316. text: m.text,
  114317. type: m.type
  114318. };
  114319. return g.alignment_size = 0, y.tag_complete = !0, g.set_space_before_token(m.newlines || m.whitespace_before !== "", !0), y.is_unformatted ? g.add_raw_token(m) : (y.tag_start_char === "<" && (g.set_space_before_token(m.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && y.has_wrapped_attrs && g.print_newline(!1)), g.print_token(m)), y.indent_content && !(y.is_unformatted || y.is_content_unformatted) && (g.indent(), y.indent_content = !1), !y.is_inline_element && !(y.is_unformatted || y.is_content_unformatted) && g.set_wrap_point(), _;
  114320. }, d.prototype._handle_inside_tag = function(g, m, y, _) {
  114321. var O = y.has_wrapped_attrs, S = {
  114322. text: m.text,
  114323. type: m.type
  114324. };
  114325. return g.set_space_before_token(m.newlines || m.whitespace_before !== "", !0), y.is_unformatted ? g.add_raw_token(m) : y.tag_start_char === "{" && m.type === r.TEXT ? g.print_preserved_newlines(m) ? (m.newlines = 0, g.add_raw_token(m)) : g.print_token(m) : (m.type === r.ATTRIBUTE ? g.set_space_before_token(!0) : (m.type === r.EQUALS || m.type === r.VALUE && m.previous.type === r.EQUALS) && g.set_space_before_token(!1), m.type === r.ATTRIBUTE && y.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (g.traverse_whitespace(m), O = O || m.newlines !== 0), this._is_wrap_attributes_force && y.attr_count >= this._options.wrap_attributes_min_attrs && (_.type !== r.TAG_OPEN || // ie. second attribute and beyond
  114326. this._is_wrap_attributes_force_expand_multiline) && (g.print_newline(!1), O = !0)), g.print_token(m), O = O || g.previous_token_wrapped(), y.has_wrapped_attrs = O), S;
  114327. }, d.prototype._handle_text = function(g, m, y) {
  114328. var _ = {
  114329. text: m.text,
  114330. type: "TK_CONTENT"
  114331. };
  114332. return y.custom_beautifier_name ? this._print_custom_beatifier_text(g, m, y) : y.is_unformatted || y.is_content_unformatted ? g.add_raw_token(m) : (g.traverse_whitespace(m), g.print_token(m)), _;
  114333. }, d.prototype._print_custom_beatifier_text = function(g, m, y) {
  114334. var _ = this;
  114335. if (m.text !== "") {
  114336. var O = m.text, S, x = 1, C = "", P = "";
  114337. y.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? S = this._js_beautify : y.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? S = this._css_beautify : y.custom_beautifier_name === "html" && (S = function(N, I) {
  114338. var B = new d(N, I, _._js_beautify, _._css_beautify);
  114339. return B.beautify();
  114340. }), this._options.indent_scripts === "keep" ? x = 0 : this._options.indent_scripts === "separate" && (x = -g.indent_level);
  114341. var $ = g.get_full_indent(x);
  114342. if (O = O.replace(/\n[ \t]*$/, ""), y.custom_beautifier_name !== "html" && O[0] === "<" && O.match(/^(<!--|<!\[CDATA\[)/)) {
  114343. var T = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(O);
  114344. if (!T) {
  114345. g.add_raw_token(m);
  114346. return;
  114347. }
  114348. C = $ + T[1] + `
  114349. `, O = T[4], T[5] && (P = $ + T[5]), O = O.replace(/\n[ \t]*$/, ""), (T[2] || T[3].indexOf(`
  114350. `) !== -1) && (T = T[3].match(/[ \t]+$/), T && (m.whitespace_before = T[0]));
  114351. }
  114352. if (O)
  114353. if (S) {
  114354. var E = function() {
  114355. this.eol = `
  114356. `;
  114357. };
  114358. E.prototype = this._options.raw_options;
  114359. var M = new E();
  114360. O = S($ + O, M);
  114361. } else {
  114362. var R = m.whitespace_before;
  114363. R && (O = O.replace(new RegExp(`
  114364. (` + R + ")?", "g"), `
  114365. `)), O = $ + O.replace(/\n/g, `
  114366. ` + $);
  114367. }
  114368. C && (O ? O = C + O + `
  114369. ` + P : O = C + P), g.print_newline(!1), O && (m.text = O, m.whitespace_before = "", m.newlines = 0, g.add_raw_token(m), g.print_newline(!0));
  114370. }
  114371. }, d.prototype._handle_tag_open = function(g, m, y, _, O) {
  114372. var S = this._get_tag_open_token(m);
  114373. if ((y.is_unformatted || y.is_content_unformatted) && !y.is_empty_element && m.type === r.TAG_OPEN && !S.is_start_tag ? (g.add_raw_token(m), S.start_tag_token = this._tag_stack.try_pop(S.tag_name)) : (g.traverse_whitespace(m), this._set_tag_position(g, m, S, y, _), S.is_inline_element || g.set_wrap_point(), g.print_token(m)), S.is_start_tag && this._is_wrap_attributes_force) {
  114374. var x = 0, C;
  114375. do
  114376. C = O.peek(x), C.type === r.ATTRIBUTE && (S.attr_count += 1), x += 1;
  114377. while (C.type !== r.EOF && C.type !== r.TAG_CLOSE);
  114378. }
  114379. return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (S.alignment_size = m.text.length + 1), !S.tag_complete && !S.is_unformatted && (g.alignment_size = S.alignment_size), S;
  114380. };
  114381. var h = function(g, m) {
  114382. if (this.parent = g || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !m)
  114383. this.tag_complete = !0;
  114384. else {
  114385. var y;
  114386. this.tag_start_char = m.text[0], this.text = m.text, this.tag_start_char === "<" ? (y = m.text.match(/^<([^\s>]*)/), this.tag_check = y ? y[1] : "") : (y = m.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = y ? y[1] : "", (m.text.startsWith("{{#>") || m.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && m.next !== null ? this.tag_check = m.next.text.split(" ")[0] : this.tag_check = m.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), m.type === r.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || m.closed && m.closed.text === "/>";
  114387. var _ = 2;
  114388. this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (_ = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(_)));
  114389. }
  114390. };
  114391. d.prototype._get_tag_open_token = function(g) {
  114392. var m = new h(this._tag_stack.get_parser_token(), g);
  114393. return m.alignment_size = this._options.wrap_attributes_indent_size, m.is_end_tag = m.is_end_tag || u(m.tag_check, this._options.void_elements), m.is_empty_element = m.tag_complete || m.is_start_tag && m.is_end_tag, m.is_unformatted = !m.tag_complete && u(m.tag_check, this._options.unformatted), m.is_content_unformatted = !m.is_empty_element && u(m.tag_check, this._options.content_unformatted), m.is_inline_element = u(m.tag_name, this._options.inline) || this._options.inline_custom_elements && m.tag_name.includes("-") || m.tag_start_char === "{", m;
  114394. }, d.prototype._set_tag_position = function(g, m, y, _, O) {
  114395. if (y.is_empty_element || (y.is_end_tag ? y.start_tag_token = this._tag_stack.try_pop(y.tag_name) : (this._do_optional_end_element(y) && (y.is_inline_element || g.print_newline(!1)), this._tag_stack.record_tag(y), (y.tag_name === "script" || y.tag_name === "style") && !(y.is_unformatted || y.is_content_unformatted) && (y.custom_beautifier_name = l(y.tag_check, m)))), u(y.tag_check, this._options.extra_liners) && (g.print_newline(!1), g._output.just_added_blankline() || g.print_newline(!0)), y.is_empty_element) {
  114396. if (y.tag_start_char === "{" && y.tag_check === "else") {
  114397. this._tag_stack.indent_to_tag(["if", "unless", "each"]), y.indent_content = !0;
  114398. var S = g.current_line_has_match(/{{#if/);
  114399. S || g.print_newline(!1);
  114400. }
  114401. y.tag_name === "!--" && O.type === r.TAG_CLOSE && _.is_end_tag && y.text.indexOf(`
  114402. `) === -1 || (y.is_inline_element || y.is_unformatted || g.print_newline(!1), this._calcluate_parent_multiline(g, y));
  114403. } else if (y.is_end_tag) {
  114404. var x = !1;
  114405. x = y.start_tag_token && y.start_tag_token.multiline_content, x = x || !y.is_inline_element && !(_.is_inline_element || _.is_unformatted) && !(O.type === r.TAG_CLOSE && y.start_tag_token === _) && O.type !== "TK_CONTENT", (y.is_content_unformatted || y.is_unformatted) && (x = !1), x && g.print_newline(!1);
  114406. } else
  114407. y.indent_content = !y.custom_beautifier_name, y.tag_start_char === "<" && (y.tag_name === "html" ? y.indent_content = this._options.indent_inner_html : y.tag_name === "head" ? y.indent_content = this._options.indent_head_inner_html : y.tag_name === "body" && (y.indent_content = this._options.indent_body_inner_html)), !(y.is_inline_element || y.is_unformatted) && (O.type !== "TK_CONTENT" || y.is_content_unformatted) && g.print_newline(!1), this._calcluate_parent_multiline(g, y);
  114408. }, d.prototype._calcluate_parent_multiline = function(g, m) {
  114409. m.parent && g._output.just_added_newline() && !((m.is_inline_element || m.is_unformatted) && m.parent.is_inline_element) && (m.parent.multiline_content = !0);
  114410. };
  114411. var p = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], v = ["a", "audio", "del", "ins", "map", "noscript", "video"];
  114412. return d.prototype._do_optional_end_element = function(g) {
  114413. var m = null;
  114414. if (!(g.is_empty_element || !g.is_start_tag || !g.parent)) {
  114415. if (g.tag_name === "body")
  114416. m = m || this._tag_stack.try_pop("head");
  114417. else if (g.tag_name === "li")
  114418. m = m || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
  114419. else if (g.tag_name === "dd" || g.tag_name === "dt")
  114420. m = m || this._tag_stack.try_pop("dt", ["dl"]), m = m || this._tag_stack.try_pop("dd", ["dl"]);
  114421. else if (g.parent.tag_name === "p" && p.indexOf(g.tag_name) !== -1) {
  114422. var y = g.parent.parent;
  114423. (!y || v.indexOf(y.tag_name) === -1) && (m = m || this._tag_stack.try_pop("p"));
  114424. } else g.tag_name === "rp" || g.tag_name === "rt" ? (m = m || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), m = m || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : g.tag_name === "optgroup" ? m = m || this._tag_stack.try_pop("optgroup", ["select"]) : g.tag_name === "option" ? m = m || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : g.tag_name === "colgroup" ? m = m || this._tag_stack.try_pop("caption", ["table"]) : g.tag_name === "thead" ? (m = m || this._tag_stack.try_pop("caption", ["table"]), m = m || this._tag_stack.try_pop("colgroup", ["table"])) : g.tag_name === "tbody" || g.tag_name === "tfoot" ? (m = m || this._tag_stack.try_pop("caption", ["table"]), m = m || this._tag_stack.try_pop("colgroup", ["table"]), m = m || this._tag_stack.try_pop("thead", ["table"]), m = m || this._tag_stack.try_pop("tbody", ["table"])) : g.tag_name === "tr" ? (m = m || this._tag_stack.try_pop("caption", ["table"]), m = m || this._tag_stack.try_pop("colgroup", ["table"]), m = m || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (g.tag_name === "th" || g.tag_name === "td") && (m = m || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), m = m || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
  114425. return g.parent = this._tag_stack.get_parser_token(), m;
  114426. }
  114427. }, VD.Beautifier = d, VD;
  114428. }
  114429. var xee;
  114430. function UAt() {
  114431. if (xee) return Rx.exports;
  114432. xee = 1;
  114433. var t = ZAt().Beautifier, e = Hme().Options;
  114434. function n(r, i, a, o) {
  114435. var s = new t(r, i, a, o);
  114436. return s.beautify();
  114437. }
  114438. return Rx.exports = n, Rx.exports.defaultOptions = function() {
  114439. return new e();
  114440. }, Rx.exports;
  114441. }
  114442. var wee;
  114443. function XAt() {
  114444. if (wee) return sy;
  114445. wee = 1;
  114446. var t = HAt(), e = jAt(), n = UAt();
  114447. function r(i, a, o, s) {
  114448. return o = o || t, s = s || e, n(i, a, o, s);
  114449. }
  114450. return r.defaultOptions = n.defaultOptions, sy.js = t, sy.css = e, sy.html = r, sy;
  114451. }
  114452. (function(t) {
  114453. function e(n, r, i) {
  114454. var a = function(o, s) {
  114455. return n.js_beautify(o, s);
  114456. };
  114457. return a.js = n.js_beautify, a.css = r.css_beautify, a.html = i.html_beautify, a.js_beautify = n.js_beautify, a.css_beautify = r.css_beautify, a.html_beautify = i.html_beautify, a;
  114458. }
  114459. (function(n) {
  114460. var r = XAt();
  114461. r.js_beautify = r.js, r.css_beautify = r.css, r.html_beautify = r.html, n.exports = e(r, r, r);
  114462. })(t);
  114463. })(Bme);
  114464. var YAt = Bme.exports;
  114465. const qAt = /* @__PURE__ */ g2(YAt), KAt = {
  114466. indent_size: "2",
  114467. indent_char: " ",
  114468. max_preserve_newlines: "5",
  114469. preserve_newlines: !0,
  114470. keep_array_indentation: !1,
  114471. break_chained_methods: !1,
  114472. indent_scripts: "normal",
  114473. brace_style: "collapse",
  114474. space_before_conditional: !0,
  114475. unescape_strings: !1,
  114476. jslint_happy: !1,
  114477. end_with_newline: !0,
  114478. wrap_line_length: "0",
  114479. indent_inner_html: !1,
  114480. comma_first: !1,
  114481. e4x: !1,
  114482. indent_empty_lines: !1
  114483. }, JAt = ae({
  114484. name: "DEditor",
  114485. components: { Codemirror: E$t },
  114486. props: {
  114487. code: {
  114488. type: String,
  114489. default: ""
  114490. }
  114491. },
  114492. emits: ["update:code", "change"],
  114493. setup(t, { emit: e }) {
  114494. const n = ee(null), r = ee(qAt(t.code, KAt));
  114495. return {
  114496. editorRef: n,
  114497. modelValue: r,
  114498. handleCodeChange: (a) => {
  114499. try {
  114500. e("update:code", a), e("change", a);
  114501. } catch (o) {
  114502. console.error(o);
  114503. return;
  114504. }
  114505. },
  114506. oneDark: F$t,
  114507. javascript: DAt,
  114508. json: VAt
  114509. };
  114510. }
  114511. });
  114512. function eEt(t, e, n, r, i, a) {
  114513. const o = br("Codemirror");
  114514. return be(), Je(o, {
  114515. ref: "editorRef",
  114516. placeholder: "请输入",
  114517. style: { height: "500px" },
  114518. "model-value": t.modelValue,
  114519. "tab-size": 2,
  114520. "auto-focus": !1,
  114521. "indent-with-tabs": !0,
  114522. extensions: [
  114523. t.oneDark,
  114524. t.javascript(),
  114525. t.json()
  114526. ],
  114527. onChange: t.handleCodeChange
  114528. }, null, 8, ["model-value", "extensions", "onChange"]);
  114529. }
  114530. const tEt = /* @__PURE__ */ ui(JAt, [["render", eEt]]), nEt = ae({
  114531. name: "DEditorModal",
  114532. components: {
  114533. Modal: uo,
  114534. Editor: tEt,
  114535. Button: Vi
  114536. },
  114537. props: {
  114538. title: {
  114539. type: String,
  114540. default: "编辑"
  114541. },
  114542. width: {
  114543. type: Number,
  114544. default: 800
  114545. }
  114546. },
  114547. emits: ["ok"],
  114548. setup(t, { emit: e }) {
  114549. const n = ee(!1), r = ee("");
  114550. return {
  114551. open: (s) => {
  114552. n.value = !0, r.value = s;
  114553. },
  114554. close: () => {
  114555. n.value = !1;
  114556. },
  114557. code: r,
  114558. handleOk: () => {
  114559. e("ok", r.value), n.value = !1;
  114560. },
  114561. show: n
  114562. };
  114563. }
  114564. });
  114565. function rEt(t, e, n, r, i, a) {
  114566. const o = br("Editor"), s = br("Button"), l = br("Modal");
  114567. return be(), Je(l, {
  114568. open: t.show,
  114569. "onUpdate:open": e[1] || (e[1] = (u) => t.show = u),
  114570. title: t.title,
  114571. width: t.width,
  114572. destroyOnClose: !0
  114573. }, {
  114574. footer: ke(() => [
  114575. ln(t.$slots, "footer", {}, () => [
  114576. D(s, { onClick: t.close }, {
  114577. default: ke(() => [
  114578. On("取消")
  114579. ]),
  114580. _: 1
  114581. }, 8, ["onClick"]),
  114582. D(s, {
  114583. type: "primary",
  114584. onClick: t.handleOk
  114585. }, {
  114586. default: ke(() => [
  114587. On("确定")
  114588. ]),
  114589. _: 1
  114590. }, 8, ["onClick"])
  114591. ])
  114592. ]),
  114593. default: ke(() => [
  114594. D(o, {
  114595. code: t.code,
  114596. "onUpdate:code": e[0] || (e[0] = (u) => t.code = u)
  114597. }, null, 8, ["code"])
  114598. ]),
  114599. _: 3
  114600. }, 8, ["open", "title", "width"]);
  114601. }
  114602. const Nw = /* @__PURE__ */ ui(nEt, [["render", rEt]]);
  114603. Nw.install = (t) => (t.component(Nw.name, Nw), t);
  114604. const iEt = /* @__PURE__ */ tt("span", { class: "text-gray-500" }, "秒", -1), BB = /* @__PURE__ */ ae({
  114605. __name: "DataConfig",
  114606. props: {
  114607. dataSource: {}
  114608. },
  114609. emits: ["change"],
  114610. setup(t, { emit: e }) {
  114611. const n = e, r = t, i = ee({
  114612. sourceType: kr.STATIC,
  114613. // 静态数据相关
  114614. data: "",
  114615. // 接口相关
  114616. url: "",
  114617. method: "",
  114618. params: {},
  114619. headers: {},
  114620. refreshTime: 0,
  114621. // 数据处理
  114622. dataProcess: "",
  114623. // 基础数据源
  114624. basicPath: "",
  114625. // 视图源
  114626. viewCode: ""
  114627. }), a = (f) => {
  114628. i.value.refreshTime = f === 0 || f >= 60 ? f : 60;
  114629. };
  114630. let o;
  114631. const s = ee(null), l = (f) => {
  114632. var d;
  114633. o = f, (d = s.value) == null || d.open(
  114634. typeof i.value[f] == "string" ? i.value[f] : JSON.stringify(i.value[f])
  114635. );
  114636. }, u = (f) => {
  114637. try {
  114638. i.value[o] = JSON.parse(f);
  114639. } catch {
  114640. i.value[o] = f;
  114641. }
  114642. }, c = async (f) => {
  114643. const d = await _9e(f);
  114644. console.log(d), f === "table" ? (i.value.basicPath = d.value, i.value.viewCode = "") : (i.value.viewCode = d.value, i.value.basicPath = "");
  114645. };
  114646. return me(
  114647. () => r.dataSource,
  114648. (f) => {
  114649. Object.assign(i.value, f || {});
  114650. },
  114651. { immediate: !0 }
  114652. ), me(
  114653. () => i.value,
  114654. (f) => {
  114655. n("change", f);
  114656. },
  114657. { deep: !0 }
  114658. ), (f, d) => (be(), Ue(Wt, null, [
  114659. D(z(Gr), {
  114660. size: "small",
  114661. layout: "horizontal",
  114662. model: i.value,
  114663. "label-col": { span: 8 },
  114664. "wrapper-col": { span: 16 }
  114665. }, {
  114666. default: ke(() => [
  114667. D(z(Gr).Item, {
  114668. label: "数据源",
  114669. name: "sourceType"
  114670. }, {
  114671. default: ke(() => [
  114672. D(z(Ca), {
  114673. value: i.value.sourceType,
  114674. "onUpdate:value": d[0] || (d[0] = (h) => i.value.sourceType = h)
  114675. }, {
  114676. default: ke(() => [
  114677. D(z(Ev), {
  114678. value: z(kr).STATIC
  114679. }, {
  114680. default: ke(() => [
  114681. On("静态数据")
  114682. ]),
  114683. _: 1
  114684. }, 8, ["value"]),
  114685. D(z(Ev), {
  114686. value: z(kr).API
  114687. }, {
  114688. default: ke(() => [
  114689. On("API")
  114690. ]),
  114691. _: 1
  114692. }, 8, ["value"]),
  114693. D(z(Ev), {
  114694. value: z(kr).BASIC_PATH
  114695. }, {
  114696. default: ke(() => [
  114697. On("基础数据源")
  114698. ]),
  114699. _: 1
  114700. }, 8, ["value"]),
  114701. D(z(Ev), {
  114702. value: z(kr).VIEW_CODE
  114703. }, {
  114704. default: ke(() => [
  114705. On("视图源")
  114706. ]),
  114707. _: 1
  114708. }, 8, ["value"])
  114709. ]),
  114710. _: 1
  114711. }, 8, ["value"])
  114712. ]),
  114713. _: 1
  114714. }),
  114715. i.value.sourceType === z(kr).STATIC ? (be(), Je(z(Gr).Item, {
  114716. key: 0,
  114717. label: "数据",
  114718. name: "data"
  114719. }, {
  114720. default: ke(() => [
  114721. D(z(Vi), {
  114722. type: "default",
  114723. size: "small",
  114724. onClick: d[1] || (d[1] = (h) => l("data"))
  114725. }, {
  114726. default: ke(() => [
  114727. On("编辑")
  114728. ]),
  114729. _: 1
  114730. })
  114731. ]),
  114732. _: 1
  114733. })) : i.value.sourceType === z(kr).API ? (be(), Ue(Wt, { key: 1 }, [
  114734. D(z(Gr).Item, {
  114735. label: "接口地址",
  114736. name: "url"
  114737. }, {
  114738. default: ke(() => [
  114739. D(z(mr).TextArea, {
  114740. "auto-size": { minRows: 5 },
  114741. placeholder: "请输入接口地址",
  114742. value: i.value.url,
  114743. "onUpdate:value": d[2] || (d[2] = (h) => i.value.url = h)
  114744. }, null, 8, ["value"])
  114745. ]),
  114746. _: 1
  114747. }),
  114748. D(z(Gr).Item, {
  114749. label: "请求方式",
  114750. name: "method"
  114751. }, {
  114752. default: ke(() => [
  114753. D(z(Fh), {
  114754. value: i.value.method,
  114755. "onUpdate:value": d[3] || (d[3] = (h) => i.value.method = h)
  114756. }, {
  114757. default: ke(() => [
  114758. D(z(Ta), { value: "GET" }, {
  114759. default: ke(() => [
  114760. On("GET")
  114761. ]),
  114762. _: 1
  114763. }),
  114764. D(z(Ta), { value: "POST" }, {
  114765. default: ke(() => [
  114766. On("POST")
  114767. ]),
  114768. _: 1
  114769. })
  114770. ]),
  114771. _: 1
  114772. }, 8, ["value"])
  114773. ]),
  114774. _: 1
  114775. }),
  114776. D(z(Gr).Item, {
  114777. label: "刷新时间",
  114778. name: "refreshTime"
  114779. }, {
  114780. default: ke(() => [
  114781. D(z(Y_), {
  114782. value: i.value.refreshTime,
  114783. "onUpdate:value": d[4] || (d[4] = (h) => i.value.refreshTime = h),
  114784. step: 1,
  114785. style: { width: "100%" },
  114786. onChange: a
  114787. }, {
  114788. addonAfter: ke(() => [
  114789. iEt
  114790. ]),
  114791. _: 1
  114792. }, 8, ["value"])
  114793. ]),
  114794. _: 1
  114795. }),
  114796. D(z(Gr).Item, {
  114797. label: "请求参数",
  114798. name: "params"
  114799. }, {
  114800. default: ke(() => [
  114801. D(z(Vi), {
  114802. type: "default",
  114803. size: "small",
  114804. onClick: d[5] || (d[5] = (h) => l("params"))
  114805. }, {
  114806. default: ke(() => [
  114807. On("编辑")
  114808. ]),
  114809. _: 1
  114810. })
  114811. ]),
  114812. _: 1
  114813. }),
  114814. D(z(Gr).Item, {
  114815. label: "请求头",
  114816. name: "headers"
  114817. }, {
  114818. default: ke(() => [
  114819. D(z(Vi), {
  114820. type: "default",
  114821. size: "small",
  114822. onClick: d[6] || (d[6] = (h) => l("headers"))
  114823. }, {
  114824. default: ke(() => [
  114825. On("编辑")
  114826. ]),
  114827. _: 1
  114828. })
  114829. ]),
  114830. _: 1
  114831. }),
  114832. D(z(Gr).Item, {
  114833. label: "数据处理",
  114834. name: "dataProcess"
  114835. }, {
  114836. default: ke(() => [
  114837. D(z(Vi), {
  114838. type: "default",
  114839. size: "small",
  114840. onClick: d[7] || (d[7] = (h) => l("dataProcess"))
  114841. }, {
  114842. default: ke(() => [
  114843. On("编辑")
  114844. ]),
  114845. _: 1
  114846. })
  114847. ]),
  114848. _: 1
  114849. })
  114850. ], 64)) : i.value.sourceType === z(kr).BASIC_PATH ? (be(), Je(z(Gr).Item, {
  114851. key: 2,
  114852. label: "基础数据源",
  114853. name: "basicPath"
  114854. }, {
  114855. default: ke(() => [
  114856. D(z(mr), {
  114857. placeholder: "请输入或选择",
  114858. value: i.value.basicPath,
  114859. "onUpdate:value": d[9] || (d[9] = (h) => i.value.basicPath = h)
  114860. }, {
  114861. addonAfter: ke(() => [
  114862. D(z(vC), {
  114863. onClick: d[8] || (d[8] = (h) => c("table"))
  114864. })
  114865. ]),
  114866. _: 1
  114867. }, 8, ["value"])
  114868. ]),
  114869. _: 1
  114870. })) : i.value.sourceType === z(kr).VIEW_CODE ? (be(), Je(z(Gr).Item, {
  114871. key: 3,
  114872. label: "视图源",
  114873. name: "viewCode"
  114874. }, {
  114875. default: ke(() => [
  114876. D(z(mr), {
  114877. placeholder: "请输入或选择",
  114878. value: i.value.viewCode,
  114879. "onUpdate:value": d[11] || (d[11] = (h) => i.value.viewCode = h)
  114880. }, {
  114881. addonAfter: ke(() => [
  114882. D(z(vC), {
  114883. onClick: d[10] || (d[10] = (h) => c("view"))
  114884. })
  114885. ]),
  114886. _: 1
  114887. }, 8, ["value"])
  114888. ]),
  114889. _: 1
  114890. })) : Ot("", !0)
  114891. ]),
  114892. _: 1
  114893. }, 8, ["model"]),
  114894. D(z(Nw), {
  114895. ref_key: "codeEditorRef",
  114896. ref: s,
  114897. title: "编辑",
  114898. onOk: u
  114899. }, null, 512)
  114900. ], 64));
  114901. }
  114902. }), Ar = {
  114903. /* 标题 */
  114904. title: {
  114905. label: "标题",
  114906. prop: "title",
  114907. type: "group",
  114908. children: [
  114909. {
  114910. label: " ",
  114911. prop: "title.show",
  114912. type: "checkboxGroup",
  114913. fieldProps: {
  114914. options: [{ label: "标题可见", value: !0 }]
  114915. },
  114916. defaultValue: [],
  114917. format: (t, e) => {
  114918. t.value["title.show"] = !!(e != null && e.length);
  114919. },
  114920. valueToForm: (t) => t ? [!0] : []
  114921. },
  114922. {
  114923. type: "dependency",
  114924. label: "",
  114925. prop: "",
  114926. name: ["title.show"],
  114927. children: (t) => t["title.show"].length ? [
  114928. {
  114929. label: "文本",
  114930. prop: "title.text",
  114931. type: "input",
  114932. defaultValue: "图表标题"
  114933. },
  114934. {
  114935. label: "位置",
  114936. prop: "title.left",
  114937. type: "position",
  114938. defaultValue: "center"
  114939. },
  114940. {
  114941. label: "样式",
  114942. prop: "title.textStyle",
  114943. type: "fontStyle",
  114944. defaultValue: {
  114945. color: "#ffffffff",
  114946. size: 18,
  114947. bold: !0,
  114948. italic: !1
  114949. },
  114950. format: (e, n) => {
  114951. e.value["title.textStyle"] = {
  114952. color: n.color,
  114953. fontSize: n.size,
  114954. fontWeight: n.bold ? "bold" : "normal",
  114955. fontStyle: n.italic ? "italic" : "normal"
  114956. };
  114957. },
  114958. valueToForm: (e, n) => ({
  114959. color: vn(n, "title.textStyle.color", "#FFFFFF"),
  114960. size: vn(n, "title.textStyle.size", 16),
  114961. bold: vn(n, "title.textStyle.fontWeight") === "bold",
  114962. italic: vn(n, "title.textStyle.fontStyle") === "italic"
  114963. })
  114964. },
  114965. {
  114966. label: "背景",
  114967. prop: "",
  114968. type: "divider"
  114969. },
  114970. {
  114971. label: "填充",
  114972. prop: "title.backgroundColor",
  114973. type: "backgroundSelect",
  114974. fieldProps: {
  114975. filterOptions: ["image"]
  114976. },
  114977. defaultValue: {
  114978. type: "color",
  114979. color: "#FFFFFF00"
  114980. },
  114981. format: (e, n) => {
  114982. e.value["title.backgroundColor"] = (n == null ? void 0 : n.type) === "color" ? n.color : "none";
  114983. },
  114984. valueToForm: (e) => !e || e === "none" ? {
  114985. type: "none",
  114986. color: "#000000ff"
  114987. } : {
  114988. type: "color",
  114989. color: e.color
  114990. }
  114991. },
  114992. {
  114993. label: "圆角",
  114994. prop: "title.borderRadius",
  114995. type: "inputNumber",
  114996. fieldProps: {
  114997. addonAfter: "px"
  114998. },
  114999. defaultValue: 0
  115000. }
  115001. ] : []
  115002. }
  115003. ]
  115004. },
  115005. /* 图例 */
  115006. legend: {
  115007. label: "图例",
  115008. prop: "legend",
  115009. type: "group",
  115010. children: [
  115011. {
  115012. label: " ",
  115013. prop: "legend.show",
  115014. type: "checkboxGroup",
  115015. fieldProps: {
  115016. options: [{ label: "图例可见", value: !0 }]
  115017. },
  115018. defaultValue: [!0],
  115019. format: (t, e) => {
  115020. t.value["legend.show"] = !!(e != null && e.length);
  115021. },
  115022. valueToForm: (t) => t ? [!0] : []
  115023. },
  115024. {
  115025. type: "dependency",
  115026. label: "",
  115027. prop: "",
  115028. name: ["legend.show"],
  115029. children: (t) => t["legend.show"].length ? [
  115030. {
  115031. label: "位置",
  115032. prop: "legend.position",
  115033. type: "position",
  115034. fieldProps: {
  115035. type: "round"
  115036. },
  115037. defaultValue: "top",
  115038. format: (e, n) => {
  115039. switch (["left", "right"].includes(n) ? e.value["legend.orient"] = "vertical" : e.value["legend.orient"] = "horizontal", n) {
  115040. case "bottom":
  115041. e.value["legend.top"] = "auto", e.value["legend.right"] = "auto", e.value["legend.bottom"] = 8, e.value["legend.left"] = "center";
  115042. break;
  115043. case "left":
  115044. e.value["legend.bottom"] = "auto", e.value["legend.right"] = "auto", e.value["legend.left"] = 8, e.value["legend.top"] = "center";
  115045. break;
  115046. case "right":
  115047. e.value["legend.bottom"] = "auto", e.value["legend.left"] = "auto", e.value["legend.right"] = 8, e.value["legend.top"] = "center";
  115048. break;
  115049. default:
  115050. e.value["legend.bottom"] = "auto", e.value["legend.right"] = "auto", e.value["legend.top"] = 32, e.value["legend.left"] = "center";
  115051. }
  115052. },
  115053. valueToForm: (e, n) => vn(n, "legend.orient") === "vertical" ? e === "top" ? "top" : e === "bottom" ? "bottom" : "left" : vn(n, "legend.bottom") === 8 && vn(n, "legend.left") === "center" ? "bottom" : "top"
  115054. },
  115055. {
  115056. label: "样式",
  115057. prop: "legend.textStyle",
  115058. type: "fontStyle",
  115059. defaultValue: {
  115060. color: "#000000ff",
  115061. size: 12,
  115062. bold: !1,
  115063. italic: !1
  115064. },
  115065. format: (e, n) => {
  115066. e.value["legend.textStyle"] = {
  115067. color: n.color,
  115068. fontSize: n.size,
  115069. fontWeight: n.bold ? "bold" : "normal",
  115070. fontStyle: n.italic ? "italic" : "normal"
  115071. };
  115072. },
  115073. valueToForm: (e, n) => ({
  115074. color: vn(n, "legend.textStyle.color", "#000000ff"),
  115075. size: vn(n, "legend.textStyle.fontSize", 12),
  115076. bold: vn(n, "legend.textStyle.fontWeight") === "bold",
  115077. italic: vn(n, "legend.textStyle.fontStyle") === "italic"
  115078. })
  115079. },
  115080. {
  115081. label: "边框",
  115082. prop: "",
  115083. type: "divider"
  115084. },
  115085. {
  115086. label: "线宽",
  115087. prop: "legend.borderWidth",
  115088. type: "inputNumber",
  115089. fieldProps: {
  115090. addonAfter: "px"
  115091. },
  115092. defaultValue: 0
  115093. },
  115094. {
  115095. label: "颜色",
  115096. prop: "legend.borderColor",
  115097. type: "colorSelect",
  115098. defaultValue: "#ccc"
  115099. },
  115100. {
  115101. label: "圆角",
  115102. prop: "legend.borderRadius",
  115103. type: "inputNumber",
  115104. fieldProps: {
  115105. addonAfter: "px"
  115106. },
  115107. defaultValue: 0
  115108. },
  115109. {
  115110. label: "背景",
  115111. prop: "",
  115112. type: "divider"
  115113. },
  115114. {
  115115. label: "背景",
  115116. prop: "legend.backgroundColor",
  115117. type: "backgroundSelect",
  115118. fieldProps: {
  115119. filterOptions: ["image"]
  115120. },
  115121. defaultValue: {
  115122. type: "color",
  115123. color: "#fff"
  115124. },
  115125. format: (e, n) => {
  115126. e.value["legend.backgroundColor"] = (n == null ? void 0 : n.type) === "color" ? n.color : "none";
  115127. },
  115128. valueToForm: (e) => !e || e === "none" ? {
  115129. type: "none"
  115130. } : {
  115131. type: "color",
  115132. color: e.color
  115133. }
  115134. },
  115135. {
  115136. label: "阴影",
  115137. prop: "legend.shadowBlur",
  115138. type: "radioGroup",
  115139. fieldProps: {
  115140. options: [
  115141. { label: "开启", value: !0 },
  115142. { label: "关闭", value: !1 }
  115143. ]
  115144. },
  115145. defaultValue: !1,
  115146. format: (e, n) => {
  115147. n ? (e.value["legend.shadowBlur"] = 10, e.value["legend.shadowColor"] = e.value["legend.backgroundColor"] || "#000000ff", e.value["legend.shadowOffsetX"] = 3, e.value["legend.shadowOffsetY"] = 3) : (e.value["legend.shadowBlur"] = 0, e.value["legend.shadowColor"] = "transparent", e.value["legend.shadowOffsetX"] = 0, e.value["legend.shadowOffsetY"] = 0);
  115148. },
  115149. valueToForm: (e) => !!e
  115150. }
  115151. ] : []
  115152. }
  115153. ]
  115154. },
  115155. /* 系列 */
  115156. series: {
  115157. label: "系列",
  115158. prop: "series",
  115159. type: "group",
  115160. children: [
  115161. {
  115162. label: "配色",
  115163. prop: "color",
  115164. type: "colorScheme",
  115165. defaultValue: bC[0].color
  115166. }
  115167. ]
  115168. },
  115169. /* X轴 */
  115170. xAxis: {
  115171. label: "X 轴",
  115172. prop: "xAxis",
  115173. type: "group",
  115174. children: [
  115175. {
  115176. label: "类型",
  115177. prop: "xAxis.type",
  115178. type: "select",
  115179. fieldProps: {
  115180. options: [
  115181. { label: "类目坐标轴", value: "category" },
  115182. { label: "数值坐标轴", value: "value" },
  115183. { label: "时间坐标轴", value: "time" }
  115184. ]
  115185. },
  115186. defaultValue: "category"
  115187. },
  115188. {
  115189. label: " ",
  115190. prop: "xAxis.showName",
  115191. type: "checkboxGroup",
  115192. fieldProps: {
  115193. options: [{ label: "显示轴标题", value: !0 }]
  115194. },
  115195. defaultValue: [!0],
  115196. format: (t, e) => {
  115197. e != null && e.length ? (t.value["xAxis.showName"] = !0, t.value["xAxis.name"] = "X轴标题", t.value["xAxis.nameGap"] = 25) : (t.value["xAxis.showName"] = !1, t.value["xAxis.name"] = "", t.value["xAxis.nameGap"] = 15, t.value["xAxis.nameGap"] = 15);
  115198. },
  115199. valueToForm: (t) => t ? [!0] : []
  115200. },
  115201. {
  115202. label: "",
  115203. prop: "",
  115204. type: "dependency",
  115205. name: ["xAxis.showName"],
  115206. children: (t) => t["xAxis.showName"].length ? [
  115207. {
  115208. label: "标题内容",
  115209. prop: "xAxis.name",
  115210. type: "input",
  115211. defaultValue: "X 轴标题",
  115212. format: (e, n) => {
  115213. e.value["xAxis.showName"] && (e.value["xAxis.name"] = n, e.value["xAxis.nameGap"] = 25);
  115214. },
  115215. valueToForm: (e) => e || "X 轴标题"
  115216. },
  115217. {
  115218. label: "标题位置",
  115219. prop: "xAxis.nameLocation",
  115220. type: "position",
  115221. defaultValue: "center",
  115222. format: (e, n) => {
  115223. const r = {
  115224. left: "start",
  115225. center: "middle",
  115226. right: "end"
  115227. };
  115228. e.value["xAxis.nameLocation"] = n ? r[n] : "middle";
  115229. },
  115230. valueToForm: (e) => ({
  115231. start: "left",
  115232. middle: "center",
  115233. end: "right"
  115234. })[e] || "center"
  115235. },
  115236. {
  115237. label: "标题样式",
  115238. prop: "xAxis.nameTextStyle",
  115239. type: "fontStyle",
  115240. defaultValue: {
  115241. color: "#000000ff",
  115242. size: 12,
  115243. bold: !1,
  115244. italic: !1
  115245. },
  115246. format: (e, n) => {
  115247. e.value["xAxis.nameTextStyle"] = {
  115248. color: n.color,
  115249. fontSize: n.size,
  115250. fontWeight: n.bold ? "bold" : "normal",
  115251. fontStyle: n.italic ? "italic" : "normal"
  115252. };
  115253. },
  115254. valueToForm: (e) => ({
  115255. color: (e == null ? void 0 : e.color) || "#000000ff",
  115256. size: (e == null ? void 0 : e.fontSize) || 12,
  115257. bold: (e == null ? void 0 : e.fontWeight) === "bold" || !1,
  115258. italic: (e == null ? void 0 : e.fontStyle) === "italic" || !1
  115259. })
  115260. }
  115261. ] : []
  115262. },
  115263. {
  115264. label: "轴线",
  115265. prop: "",
  115266. type: "divider"
  115267. },
  115268. {
  115269. label: "线宽",
  115270. prop: "xAxis.axisLine.lineStyle.width",
  115271. type: "inputNumber",
  115272. fieldProps: {
  115273. addonAfter: "px"
  115274. },
  115275. defaultValue: 1
  115276. },
  115277. {
  115278. label: "颜色",
  115279. prop: "xAxis.axisLine.lineStyle.color",
  115280. type: "colorSelect",
  115281. defaultValue: "#ccc"
  115282. },
  115283. {
  115284. label: "刻度",
  115285. prop: "",
  115286. type: "divider"
  115287. },
  115288. {
  115289. label: " ",
  115290. prop: "xAxis.axisTick.show",
  115291. type: "checkboxGroup",
  115292. fieldProps: {
  115293. options: [{ label: "显示刻度", value: !0 }]
  115294. },
  115295. defaultValue: [!0],
  115296. format: (t, e) => {
  115297. t.value["xAxis.axisTick.show"] = !!(e != null && e.length);
  115298. },
  115299. valueToForm: (t) => t ? [!0] : []
  115300. },
  115301. {
  115302. label: "",
  115303. prop: "",
  115304. type: "dependency",
  115305. name: ["xAxis.axisTick.show"],
  115306. children: (t) => t["xAxis.axisTick.show"].length ? [
  115307. {
  115308. label: "刻度宽度",
  115309. prop: "xAxis.axisTick.lineStyle.width",
  115310. type: "inputNumber",
  115311. fieldProps: {
  115312. addonAfter: "px"
  115313. },
  115314. defaultValue: 5
  115315. },
  115316. {
  115317. label: "刻度颜色",
  115318. prop: "xAxis.axisTick.lineStyle.color",
  115319. type: "colorSelect",
  115320. defaultValue: "#ccc"
  115321. }
  115322. ] : []
  115323. },
  115324. {
  115325. label: "标签",
  115326. prop: "",
  115327. type: "divider"
  115328. },
  115329. {
  115330. label: " ",
  115331. prop: "xAxis.axisLabel.show",
  115332. type: "checkboxGroup",
  115333. fieldProps: {
  115334. options: [{ label: "显示标签", value: !0 }]
  115335. },
  115336. defaultValue: [!0],
  115337. format: (t, e) => {
  115338. t.value["xAxis.axisLabel.show"] = !!(e != null && e.length);
  115339. },
  115340. valueToForm: (t) => t ? [!0] : []
  115341. },
  115342. {
  115343. label: "",
  115344. prop: "",
  115345. type: "dependency",
  115346. name: ["xAxis.axisLabel.show"],
  115347. children: (t) => t["xAxis.axisLabel.show"].length ? [
  115348. {
  115349. label: "样式",
  115350. prop: "xAxis.axisLabel",
  115351. type: "fontStyle",
  115352. defaultValue: {
  115353. color: "#000000ff",
  115354. size: 12,
  115355. bold: !1,
  115356. italic: !1
  115357. },
  115358. format: (e, n) => {
  115359. e.value["xAxis.axisLabel.color"] = n == null ? void 0 : n.color, e.value["xAxis.axisLabel.fontSize"] = n.size, e.value["xAxis.axisLabel.fontWeight"] = n.bold ? "bold" : "normal", e.value["xAxis.axisLabel.fontStyle"] = n.italic ? "italic" : "normal";
  115360. },
  115361. valueToForm: (e, n) => ({
  115362. color: vn(n, "xAxis.axisLabel.color", "#000000ff"),
  115363. size: vn(n, "xAxis.axisLabel.fontSize", 12),
  115364. bold: vn(n, "xAxis.axisLabel.fontWeight") === "bold",
  115365. italic: vn(n, "xAxis.axisLabel.fontStyle") === "italic"
  115366. })
  115367. }
  115368. ] : []
  115369. }
  115370. ]
  115371. },
  115372. /* Y 轴 */
  115373. yAxis: {
  115374. label: "Y 轴",
  115375. prop: "yAxis",
  115376. type: "group",
  115377. children: [
  115378. {
  115379. label: " ",
  115380. prop: "yAxis.showName",
  115381. type: "checkboxGroup",
  115382. fieldProps: {
  115383. options: [{ label: "显示轴标题", value: !0 }]
  115384. },
  115385. defaultValue: [],
  115386. format: (t, e) => {
  115387. e != null && e.length ? (t.value["yAxis.showName"] = !0, t.value["yAxis.name"] = "Y轴标题", t.value["yAxis.nameGap"] = 25) : (t.value["yAxis.showName"] = !1, t.value["yAxis.name"] = "", t.value["yAxis.nameGap"] = 15);
  115388. },
  115389. valueToForm: (t) => t ? [!0] : []
  115390. },
  115391. {
  115392. label: "",
  115393. prop: "",
  115394. type: "dependency",
  115395. name: ["yAxis.showName"],
  115396. children: (t) => t["yAxis.showName"].length ? [
  115397. {
  115398. label: "标题内容",
  115399. prop: "yAxis.name",
  115400. type: "input",
  115401. defaultValue: "Y 轴标题",
  115402. format: (e, n) => {
  115403. e.value["yAxis.showName"] ? (e.value["yAxis.name"] = n, e.value["yAxis.nameGap"] = 25) : (e.value["yAxis.name"] = "", e.value["yAxis.nameGap"] = 15);
  115404. },
  115405. valueToForm: (e) => e || "Y 轴标题"
  115406. },
  115407. {
  115408. label: "标题位置",
  115409. prop: "yAxis.nameLocation",
  115410. type: "position",
  115411. defaultValue: "center",
  115412. format: (e, n) => {
  115413. const r = {
  115414. left: "start",
  115415. center: "middle",
  115416. right: "end"
  115417. };
  115418. e.value["yAxis.nameLocation"] = n ? r[n] : "middle";
  115419. },
  115420. valueToForm: (e) => ({
  115421. start: "left",
  115422. middle: "center",
  115423. end: "right"
  115424. })[e] || "center "
  115425. },
  115426. {
  115427. label: "标题样式",
  115428. prop: "yAxis.nameTextStyle",
  115429. type: "fontStyle",
  115430. defaultValue: {
  115431. color: "#FFFFFFFF",
  115432. size: 12,
  115433. bold: !1,
  115434. italic: !1
  115435. },
  115436. format: (e, n) => {
  115437. e.value["yAxis.nameTextStyle"] = {
  115438. color: n.color,
  115439. fontSize: n.size,
  115440. fontWeight: n.bold ? "bold" : "normal",
  115441. fontStyle: n.italic ? "italic" : "normal"
  115442. };
  115443. },
  115444. valueToForm: (e) => ({
  115445. color: (e == null ? void 0 : e.color) || "#000000ff",
  115446. size: (e == null ? void 0 : e.fontSize) || 12,
  115447. bold: (e == null ? void 0 : e.fontWeight) === "bold" || !1,
  115448. italic: (e == null ? void 0 : e.fontStyle) === "italic" || !1
  115449. })
  115450. }
  115451. ] : []
  115452. },
  115453. {
  115454. label: "轴线",
  115455. prop: "",
  115456. type: "divider"
  115457. },
  115458. {
  115459. label: " ",
  115460. prop: "yAxis.axisLine.show",
  115461. type: "checkboxGroup",
  115462. fieldProps: {
  115463. options: [{ label: "显示轴线", value: !0 }]
  115464. },
  115465. defaultValue: [!0],
  115466. format: (t, e) => {
  115467. t.value["yAxis.axisLine.show"] = !!(e != null && e.length);
  115468. },
  115469. valueToForm: (t) => t ? [!0] : []
  115470. },
  115471. {
  115472. label: "",
  115473. prop: "",
  115474. type: "dependency",
  115475. name: ["yAxis.axisLine.show"],
  115476. children: (t) => t["yAxis.axisLine.show"].length ? [
  115477. {
  115478. label: "线宽",
  115479. prop: "yAxis.axisLine.lineStyle.width",
  115480. type: "inputNumber",
  115481. fieldProps: {
  115482. addonAfter: "px"
  115483. },
  115484. defaultValue: 1
  115485. },
  115486. {
  115487. label: "颜色",
  115488. prop: "yAxis.axisLine.lineStyle.color",
  115489. type: "colorSelect",
  115490. defaultValue: "#ccc"
  115491. }
  115492. ] : []
  115493. },
  115494. {
  115495. label: "刻度",
  115496. prop: "",
  115497. type: "divider"
  115498. },
  115499. {
  115500. label: " ",
  115501. prop: "yAxis.axisTick.show",
  115502. type: "checkboxGroup",
  115503. fieldProps: {
  115504. options: [{ label: "显示刻度", value: !0 }]
  115505. },
  115506. defaultValue: [!0],
  115507. format: (t, e) => {
  115508. t.value["yAxis.axisTick.show"] = !!(e != null && e.length);
  115509. },
  115510. valueToForm: (t) => t ? [!0] : []
  115511. },
  115512. {
  115513. label: "",
  115514. prop: "",
  115515. type: "dependency",
  115516. name: ["yAxis.axisTick.show"],
  115517. children: (t) => t["yAxis.axisTick.show"].length ? [
  115518. {
  115519. label: "刻度长度",
  115520. prop: "yAxis.axisTick.lineStyle.width",
  115521. type: "inputNumber",
  115522. fieldProps: {
  115523. addonAfter: "px"
  115524. },
  115525. defaultValue: 5
  115526. },
  115527. {
  115528. label: "刻度颜色",
  115529. prop: "yAxis.axisTick.lineStyle.color",
  115530. type: "colorSelect",
  115531. defaultValue: "#ccc"
  115532. }
  115533. ] : []
  115534. },
  115535. {
  115536. label: "标签",
  115537. prop: "",
  115538. type: "divider"
  115539. },
  115540. {
  115541. label: " ",
  115542. prop: "yAxis.axisLabel.show",
  115543. type: "checkboxGroup",
  115544. fieldProps: {
  115545. options: [{ label: "显示标签", value: !0 }]
  115546. },
  115547. defaultValue: [!0],
  115548. format: (t, e) => {
  115549. t.value["yAxis.axisLabel.show"] = !!(e != null && e.length);
  115550. },
  115551. valueToForm: (t) => t ? [!0] : []
  115552. },
  115553. {
  115554. label: "",
  115555. prop: "",
  115556. type: "dependency",
  115557. name: ["yAxis.axisLabel.show"],
  115558. children: (t) => t["yAxis.axisLabel.show"].length ? [
  115559. {
  115560. label: "样式",
  115561. prop: "yAxis.axisLabel",
  115562. type: "fontStyle",
  115563. defaultValue: {
  115564. color: "#000000ff",
  115565. size: 12,
  115566. bold: !1,
  115567. italic: !1
  115568. },
  115569. format: (e, n) => {
  115570. e.value["yAxis.axisLabel.color"] = n == null ? void 0 : n.color, e.value["yAxis.axisLabel.fontSize"] = n.size, e.value["yAxis.axisLabel.fontWeight"] = n.bold ? "bold" : "normal", e.value["yAxis.axisLabel.fontStyle"] = n.italic ? "italic" : "normal";
  115571. },
  115572. valueToForm: (e, n) => ({
  115573. color: vn(n, "yAxis.axisLabel.color", "#000000ff"),
  115574. size: vn(n, "yAxis.axisLabel.fontSize", 12),
  115575. bold: vn(n, "yAxis.axisLabel.fontWeight") === "bold",
  115576. italic: vn(n, "yAxis.axisLabel.fontStyle") === "italic"
  115577. })
  115578. },
  115579. {
  115580. label: "旋转角度",
  115581. prop: "yAxis.axisLabel.rotate",
  115582. type: "inputNumber",
  115583. fieldProps: {
  115584. addonAfter: "°",
  115585. min: -90,
  115586. max: 90,
  115587. step: 1
  115588. }
  115589. }
  115590. ] : []
  115591. }
  115592. ]
  115593. },
  115594. /* 提示 */
  115595. tooltip: {
  115596. label: "提示",
  115597. prop: "tooltip",
  115598. type: "group",
  115599. children: [
  115600. {
  115601. label: " ",
  115602. prop: "tooltip.show",
  115603. type: "checkboxGroup",
  115604. fieldProps: {
  115605. options: [{ label: "提示可见", value: !0 }]
  115606. },
  115607. defaultValue: [!0],
  115608. format: (t, e) => {
  115609. t.value["tooltip.show"] = !!(e != null && e.length);
  115610. },
  115611. valueToForm: (t) => t ? [!0] : []
  115612. },
  115613. {
  115614. label: "",
  115615. prop: "",
  115616. type: "dependency",
  115617. name: ["tooltip.show"],
  115618. children: (t) => t["tooltip.show"].length ? [
  115619. {
  115620. label: "文本",
  115621. prop: "tooltip.formatter",
  115622. type: "checkboxGroup",
  115623. fieldProps: {
  115624. options: [
  115625. { label: "分类名", value: "b" },
  115626. { label: "系列名", value: "a" },
  115627. { label: "数值", value: "c" }
  115628. ]
  115629. },
  115630. defaultValue: ["b"],
  115631. format: (e, n) => {
  115632. e.value["tooltip.formatter"] = n.map((r) => `{${r}}`).join(" ");
  115633. },
  115634. valueToForm: (e, n) => {
  115635. var r, i;
  115636. return (i = (r = vn(n, "tooltip.formatter")) == null ? void 0 : r.replace(/\{|\}/g, "")) == null ? void 0 : i.split(" ");
  115637. }
  115638. },
  115639. // {
  115640. // label: "格式化",
  115641. // prop: "tooltip.valueFormatter",
  115642. // type: "input",
  115643. // tip: "支持字符串模板和回调函数",
  115644. // defaultValue: "(value, dataIndex) => value",
  115645. // },
  115646. {
  115647. label: "样式",
  115648. prop: "tooltip.textStyle",
  115649. type: "fontStyle",
  115650. defaultValue: {
  115651. color: "#000000ff",
  115652. size: 12,
  115653. bold: !1,
  115654. italic: !1
  115655. },
  115656. format: (e, n) => {
  115657. e.value["tooltip.textStyle"] = {
  115658. color: n.color,
  115659. fontSize: n.size,
  115660. fontWeight: n.bold ? "bold" : "normal",
  115661. fontStyle: n.italic ? "italic" : "normal"
  115662. };
  115663. },
  115664. valueToForm: (e, n) => ({
  115665. color: vn(n, "tooltip.textStyle.color", "#000000ff"),
  115666. size: vn(n, "tooltip.textStyle.fontSize", 12),
  115667. bold: vn(n, "tooltip.textStyle.fontWeight") === "bold",
  115668. italic: vn(n, "tooltip.textStyle.fontStyle") === "italic"
  115669. })
  115670. },
  115671. {
  115672. label: "边框",
  115673. prop: "",
  115674. type: "divider"
  115675. },
  115676. {
  115677. label: "线宽",
  115678. prop: "tooltip.borderWidth",
  115679. type: "inputNumber",
  115680. fieldProps: {
  115681. addonAfter: "px"
  115682. },
  115683. defaultValue: 1
  115684. },
  115685. {
  115686. label: "颜色",
  115687. prop: "tooltip.borderColor",
  115688. type: "colorSelect",
  115689. defaultValue: "#ccc"
  115690. },
  115691. {
  115692. label: "圆角",
  115693. prop: "tooltip.borderRadius",
  115694. type: "inputNumber",
  115695. fieldProps: {
  115696. addonAfter: "px"
  115697. },
  115698. defaultValue: 4
  115699. },
  115700. {
  115701. label: "背景",
  115702. prop: "",
  115703. type: "divider"
  115704. },
  115705. {
  115706. label: "填充",
  115707. prop: "tooltip.backgroundColor",
  115708. type: "backgroundSelect",
  115709. fieldProps: {
  115710. filterOptions: ["image"]
  115711. },
  115712. defaultValue: {
  115713. type: "color",
  115714. color: "#fff"
  115715. },
  115716. format: (e, n) => {
  115717. e.value["tooltip.backgroundColor"] = (n == null ? void 0 : n.type) === "color" ? n.color : "none";
  115718. },
  115719. valueToForm: (e) => !e || e === "none" ? {
  115720. type: "none"
  115721. } : {
  115722. type: "color",
  115723. color: e
  115724. }
  115725. },
  115726. {
  115727. label: "阴影",
  115728. prop: "tooltip.extraCssText",
  115729. type: "radioGroup",
  115730. fieldProps: {
  115731. options: [
  115732. { label: "开启", value: !0 },
  115733. { label: "关闭", value: !1 }
  115734. ]
  115735. },
  115736. defaultValue: !1,
  115737. format: (e, n) => {
  115738. e.value["tooltip.extraCssText"] = n ? "box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);" : "";
  115739. },
  115740. valueToForm: (e, n) => !!vn(n, "tooltip.extraCssText")
  115741. }
  115742. ] : []
  115743. }
  115744. ]
  115745. },
  115746. /* 标签 */
  115747. label: {
  115748. label: "标签",
  115749. prop: "label",
  115750. type: "group",
  115751. children: [
  115752. {
  115753. label: " ",
  115754. prop: "label.show",
  115755. type: "checkboxGroup",
  115756. fieldProps: {
  115757. options: [{ label: "标签可见", value: !0 }]
  115758. },
  115759. defaultValue: [],
  115760. format: (t, e) => {
  115761. t.value["label.show"] = !!(e != null && e.length);
  115762. },
  115763. valueToForm: (t) => t ? [!0] : []
  115764. },
  115765. {
  115766. label: "",
  115767. prop: "",
  115768. type: "dependency",
  115769. name: ["label.show"],
  115770. children: (t) => t["label.show"].length ? [
  115771. {
  115772. label: "文本",
  115773. prop: "label.formatter",
  115774. type: "checkboxGroup",
  115775. fieldProps: {
  115776. options: [
  115777. { label: "分类名", value: "b" },
  115778. { label: "系列名", value: "a" },
  115779. { label: "数值", value: "c" }
  115780. // { label: "百分比", value: "percent" },
  115781. ]
  115782. },
  115783. defaultValue: ["a"],
  115784. format: (e, n) => {
  115785. e.value["label.formatter"] = `{${n}}`;
  115786. },
  115787. valueToForm: (e, n) => {
  115788. var r, i;
  115789. return (i = (r = vn(n, "label.formatter")) == null ? void 0 : r.replace(/\{|\}/g, "")) == null ? void 0 : i.split(" ");
  115790. }
  115791. },
  115792. {
  115793. label: "样式",
  115794. prop: "label.fontStyle",
  115795. type: "fontStyle",
  115796. defaultValue: {
  115797. color: "#000000ff",
  115798. size: 12,
  115799. bold: !1,
  115800. italic: !1
  115801. },
  115802. format: (e, n) => {
  115803. e.value["label.color"] = n == null ? void 0 : n.color, e.value["label.fontSize"] = n.size, e.value["label.fontWeight"] = n.bold ? "bold" : "normal", e.value["label.fontStyle"] = n.italic ? "italic" : "normal";
  115804. },
  115805. valueToForm: (e, n) => ({
  115806. color: vn(n, "label.color", "#000000ff"),
  115807. size: vn(n, "label.fontSize", 12),
  115808. bold: vn(n, "label.fontWeight") === "bold",
  115809. italic: vn(n, "label.fontStyle") === "italic"
  115810. })
  115811. },
  115812. {
  115813. label: "布局",
  115814. prop: "",
  115815. type: "divider"
  115816. },
  115817. {
  115818. label: "位置",
  115819. prop: "label.position",
  115820. type: "radioGroup",
  115821. fieldProps: {
  115822. options: [
  115823. { label: "顶部", value: "top" },
  115824. { label: "左侧", value: "left" },
  115825. { label: "右侧", value: "right" },
  115826. { label: "底部", value: "bottom" },
  115827. { label: "内部", value: "inside" },
  115828. { label: "内部左侧", value: "insideLeft" },
  115829. { label: "内部右侧", value: "insideRight" },
  115830. { label: "内部顶部", value: "insideTop" },
  115831. { label: "内部底部", value: "insideBottom" }
  115832. ]
  115833. },
  115834. defaultValue: "top"
  115835. },
  115836. {
  115837. label: "文本方向",
  115838. prop: "label.rotate",
  115839. type: "radioGroup",
  115840. fieldProps: {
  115841. options: [
  115842. { label: "水平", value: "horizontal" },
  115843. { label: "垂直", value: "vertical" }
  115844. ]
  115845. },
  115846. defaultValue: "horizontal",
  115847. format: (e, n) => {
  115848. e.value["label.rotate"] = n === "horizontal" ? 0 : 90;
  115849. },
  115850. valueToForm: (e) => e === 0 ? "horizontal" : "vertical"
  115851. },
  115852. {
  115853. label: "边框",
  115854. prop: "",
  115855. type: "divider"
  115856. },
  115857. {
  115858. label: "线宽",
  115859. prop: "label.borderWidth",
  115860. type: "inputNumber",
  115861. fieldProps: {
  115862. addonAfter: "px"
  115863. },
  115864. defaultValue: 0
  115865. },
  115866. {
  115867. label: "颜色",
  115868. prop: "label.borderColor",
  115869. type: "colorSelect",
  115870. defaultValue: "#ccc"
  115871. },
  115872. {
  115873. label: "圆角",
  115874. prop: "label.borderRadius",
  115875. type: "inputNumber",
  115876. fieldProps: {
  115877. addonAfter: "px"
  115878. },
  115879. defaultValue: 0
  115880. }
  115881. ] : []
  115882. }
  115883. ]
  115884. }
  115885. }, Gme = (t) => (JT("data-v-0b356b47"), t = t(), e2(), t), aEt = { class: "chart-config" }, oEt = { class: "config-tab" }, sEt = /* @__PURE__ */ Gme(() => /* @__PURE__ */ tt("span", null, "数据设置", -1)), lEt = /* @__PURE__ */ Gme(() => /* @__PURE__ */ tt("span", null, "样式设置", -1)), uEt = /* @__PURE__ */ ae({
  115886. __name: "Config",
  115887. props: L6,
  115888. emits: ["change"],
  115889. setup(t, { emit: e }) {
  115890. const n = t, r = ee("1"), i = e, a = [
  115891. {
  115892. label: "线",
  115893. prop: "",
  115894. type: "divider"
  115895. },
  115896. {
  115897. label: "线条样式",
  115898. prop: "series.line.lineStyle.type",
  115899. type: "select",
  115900. fieldProps: {
  115901. options: [
  115902. { label: "实线", value: "solid" },
  115903. { label: "虚线", value: "dashed" },
  115904. { label: "点线", value: "dotted" }
  115905. ]
  115906. }
  115907. },
  115908. {
  115909. label: "线宽",
  115910. prop: "series.line.lineStyle.width",
  115911. type: "inputNumber",
  115912. fieldProps: {
  115913. min: 0,
  115914. addonAfter: "px"
  115915. }
  115916. },
  115917. {
  115918. label: "形态",
  115919. prop: "series.line.lineType",
  115920. type: "radioGroupButton",
  115921. fieldProps: {
  115922. options: [
  115923. { label: "普通", value: "normal" },
  115924. { label: "平滑", value: "smooth" },
  115925. { label: "阶梯", value: "step" }
  115926. ]
  115927. },
  115928. format: (u, c) => {
  115929. switch (c) {
  115930. case "smooth":
  115931. u.value["series.line.smooth"] = !0, u.value["series.line.step"] = !1;
  115932. break;
  115933. case "step":
  115934. u.value["series.line.smooth"] = !1, u.value["series.line.step"] = "end";
  115935. break;
  115936. default:
  115937. u.value["series.line.smooth"] = !1, u.value["series.line.step"] = !1;
  115938. }
  115939. },
  115940. valueToForm: (u, c) => {
  115941. const f = vn(c, "series.line.step"), d = vn(c, "series.line.smooth");
  115942. return f ? "step" : d ? "smooth" : "normal";
  115943. }
  115944. },
  115945. {
  115946. label: "标记点",
  115947. prop: "",
  115948. type: "divider"
  115949. },
  115950. {
  115951. label: "图形",
  115952. prop: "series.line.symbol",
  115953. type: "select",
  115954. fieldProps: {
  115955. options: [
  115956. { label: "圆", value: "circle" },
  115957. { label: "方", value: "rect" },
  115958. { label: "三角", value: "triangle" },
  115959. { label: "菱形", value: "diamond" },
  115960. { label: "标记", value: "pin" },
  115961. { label: "箭头", value: "arrow" },
  115962. { label: "无", value: "none" }
  115963. ]
  115964. }
  115965. },
  115966. {
  115967. label: "大小",
  115968. prop: "series.line.symbolSize",
  115969. type: "inputNumber",
  115970. fieldProps: {
  115971. min: 0,
  115972. addonAfter: "px"
  115973. }
  115974. },
  115975. {
  115976. label: "旋转",
  115977. prop: "series.line.symbolRotate",
  115978. type: "inputNumber",
  115979. fieldProps: {
  115980. min: 0,
  115981. addonAfter: "°"
  115982. }
  115983. }
  115984. ], o = [
  115985. Ar.title,
  115986. Ar.legend,
  115987. Ar.label,
  115988. {
  115989. ...Ar.series,
  115990. children: Ar.series.children.concat(
  115991. a
  115992. )
  115993. },
  115994. Ar.tooltip,
  115995. Ar.background
  115996. ], s = (u) => {
  115997. i("change", {
  115998. ...n,
  115999. dataSource: u
  116000. });
  116001. }, l = (u) => {
  116002. const c = ph(n);
  116003. Object.keys(u).forEach((f) => {
  116004. vN(c, f, u[f]);
  116005. }), i("change", c);
  116006. };
  116007. return (u, c) => (be(), Ue("div", aEt, [
  116008. tt("div", oEt, [
  116009. D(z(_h), {
  116010. activeKey: r.value,
  116011. "onUpdate:activeKey": c[0] || (c[0] = (f) => r.value = f),
  116012. size: "small",
  116013. centered: ""
  116014. }, {
  116015. default: ke(() => [
  116016. D(z(zu), { key: "1" }, {
  116017. tab: ke(() => [
  116018. D(z(K_)),
  116019. sEt
  116020. ]),
  116021. _: 1
  116022. }),
  116023. D(z(zu), { key: "2" }, {
  116024. tab: ke(() => [
  116025. D(z(J_)),
  116026. lEt
  116027. ]),
  116028. _: 1
  116029. })
  116030. ]),
  116031. _: 1
  116032. }, 8, ["activeKey"])
  116033. ]),
  116034. r.value === "1" ? (be(), Je(BB, {
  116035. key: 0,
  116036. dataSource: u.dataSource,
  116037. onChange: s
  116038. }, null, 8, ["dataSource"])) : Ot("", !0),
  116039. r.value === "2" ? (be(), Je(z(Sh), {
  116040. key: 1,
  116041. columns: o,
  116042. formModel: n,
  116043. onChange: l
  116044. }, null, 8, ["formModel"])) : Ot("", !0)
  116045. ]));
  116046. }
  116047. }), jme = /* @__PURE__ */ ui(uEt, [["__scopeId", "data-v-0b356b47"]]);
  116048. ng.Config = jme;
  116049. ng.install = (t) => (t.component(ng.name, ng), t);
  116050. const cEt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  116051. __proto__: null,
  116052. Config: jme,
  116053. basicLineProps: L6,
  116054. default: ng,
  116055. defaultPropsValue: Xdt
  116056. }, Symbol.toStringTag, { value: "Module" })), zB = {
  116057. width: {
  116058. type: Number,
  116059. default: 400
  116060. },
  116061. height: {
  116062. type: Number,
  116063. default: 260
  116064. },
  116065. dataSource: k6,
  116066. // 标题
  116067. title: {
  116068. type: Object
  116069. },
  116070. // 图例
  116071. legend: {
  116072. type: Object
  116073. },
  116074. // 背景
  116075. backgroundColor: {
  116076. type: String
  116077. },
  116078. // 边框
  116079. grid: {
  116080. type: Object
  116081. },
  116082. // 提示框
  116083. tooltip: {
  116084. type: Object
  116085. },
  116086. // x轴数据
  116087. xAxis: {
  116088. type: Object
  116089. },
  116090. // y轴数据
  116091. yAxis: {
  116092. type: Object
  116093. },
  116094. // 折线
  116095. series: {
  116096. type: Array
  116097. },
  116098. // color
  116099. color: {
  116100. type: Object
  116101. },
  116102. // 系列设置
  116103. seriesExtend: {
  116104. type: Object,
  116105. default: () => Zme
  116106. }
  116107. }, fEt = [], Zme = {
  116108. // @ts-ignore
  116109. fixedBarWidth: !1,
  116110. barWidth: "auto",
  116111. barGap: "10%",
  116112. barCategoryGap: "20%",
  116113. itemStyle: {
  116114. borderColor: "#ccc",
  116115. borderRadius: 0,
  116116. borderWidth: 0
  116117. }
  116118. }, dEt = R6({
  116119. title: {
  116120. text: "柱状图标题"
  116121. },
  116122. xAxis: {
  116123. data: ["轴标签A", "轴标签B", "轴标签C", "轴标签D"]
  116124. },
  116125. series: fEt,
  116126. seriesExtend: Zme
  116127. }), hEt = {
  116128. // 组件容器默认属性
  116129. container: {
  116130. props: {
  116131. width: 400,
  116132. height: 260
  116133. }
  116134. },
  116135. // 图表默认属性
  116136. props: {
  116137. // 数据源
  116138. dataSource: {
  116139. sourceType: kr.STATIC,
  116140. data: {
  116141. series: [
  116142. {
  116143. type: "bar",
  116144. name: "系列1",
  116145. data: [10, 30, 20, 40]
  116146. },
  116147. {
  116148. type: "bar",
  116149. name: "系列2",
  116150. data: [15, 35, 25, 45]
  116151. }
  116152. ]
  116153. },
  116154. url: location.origin + "/mock/api/get/example/bar",
  116155. method: "POST",
  116156. params: {},
  116157. headers: {},
  116158. refreshTime: 0,
  116159. dataProcess: `
  116160. (res) => {
  116161. // 取出列表
  116162. const data = res.data;
  116163. // x轴数据
  116164. const xData = data.map((item) => item.name);
  116165. // 系列数据
  116166. const series = [
  116167. { type: 'bar', name: '价格', data: data.map(item => item.price) },
  116168. { type: 'bar', name: '总量', data: data.map(item => item.count) },
  116169. ];
  116170. // 返回图表数据
  116171. return { xData, series };
  116172. }
  116173. `
  116174. },
  116175. ...dEt
  116176. }
  116177. }, pEt = ae({
  116178. name: "DBasicBar",
  116179. components: { Charts: D6 },
  116180. props: zB,
  116181. setup(t) {
  116182. const { options: e, loading: n } = q6(t);
  116183. return {
  116184. options: e,
  116185. loading: n
  116186. };
  116187. }
  116188. });
  116189. function vEt(t, e, n, r, i, a) {
  116190. const o = br("Charts");
  116191. return be(), Je(o, {
  116192. width: t.width,
  116193. height: t.height,
  116194. "echarts-options": t.options,
  116195. loading: t.loading
  116196. }, null, 8, ["width", "height", "echarts-options", "loading"]);
  116197. }
  116198. const cg = /* @__PURE__ */ ui(pEt, [["render", vEt]]), Ume = (t) => (JT("data-v-3945a2ab"), t = t(), e2(), t), gEt = { class: "chart-config" }, mEt = { class: "config-tab" }, yEt = /* @__PURE__ */ Ume(() => /* @__PURE__ */ tt("span", null, "数据设置", -1)), bEt = /* @__PURE__ */ Ume(() => /* @__PURE__ */ tt("span", null, "样式设置", -1)), _Et = /* @__PURE__ */ ae({
  116199. __name: "Config",
  116200. props: zB,
  116201. emits: ["change"],
  116202. setup(t, { emit: e }) {
  116203. const n = t, r = ee("1"), i = e, a = [
  116204. {
  116205. label: "样式",
  116206. prop: "",
  116207. type: "divider"
  116208. },
  116209. {
  116210. label: "固定柱宽",
  116211. prop: "seriesExtend.fixedBarWidth",
  116212. type: "radioGroup",
  116213. fieldProps: {
  116214. options: [
  116215. { label: "是", value: !0 },
  116216. { label: "否", value: !1 }
  116217. ]
  116218. },
  116219. defaultValue: !1,
  116220. format: (u, c) => {
  116221. var f, d;
  116222. u.value["seriesExtend.barWidth"] = c && ((f = u.value) == null ? void 0 : f["seriesExtend.barWidth"]) !== "auto" ? ((d = u.value) == null ? void 0 : d["seriesExtend.barWidth"]) || 20 : "auto";
  116223. }
  116224. },
  116225. {
  116226. label: "",
  116227. prop: "",
  116228. type: "dependency",
  116229. name: ["seriesExtend.fixedBarWidth"],
  116230. children: (u) => u["seriesExtend.fixedBarWidth"] ? [
  116231. {
  116232. label: "柱宽",
  116233. prop: "seriesExtend.barWidth",
  116234. type: "inputNumber",
  116235. fieldProps: {
  116236. addonAfter: "px"
  116237. },
  116238. defaultValue: 20
  116239. }
  116240. ] : []
  116241. },
  116242. {
  116243. label: "系列间隔",
  116244. prop: "seriesExtend.barGap",
  116245. type: "slider",
  116246. defaultValue: 30,
  116247. format: (u, c) => {
  116248. u.value["seriesExtend.barGap"] = c + "%";
  116249. },
  116250. valueToForm: (u) => +((u == null ? void 0 : u.replace("%", "")) || 0)
  116251. },
  116252. {
  116253. label: "分类间隔",
  116254. prop: "seriesExtend.barCategoryGap",
  116255. type: "slider",
  116256. defaultValue: 20,
  116257. format: (u, c) => {
  116258. u.value["seriesExtend.barCategoryGap"] = c + "%";
  116259. },
  116260. valueToForm: (u) => +((u == null ? void 0 : u.replace("%", "")) || 0)
  116261. },
  116262. {
  116263. label: "边框",
  116264. prop: "",
  116265. type: "divider"
  116266. },
  116267. {
  116268. label: "线宽",
  116269. prop: "seriesExtend.itemStyle.borderWidth",
  116270. type: "inputNumber",
  116271. fieldProps: {
  116272. addonAfter: "px"
  116273. },
  116274. defaultValue: 0
  116275. },
  116276. {
  116277. label: "颜色",
  116278. prop: "seriesExtend.itemStyle.borderColor",
  116279. type: "colorSelect",
  116280. defaultValue: "#ccc"
  116281. },
  116282. {
  116283. label: "圆角",
  116284. prop: "seriesExtend.itemStyle.borderRadius",
  116285. type: "inputNumber",
  116286. fieldProps: {
  116287. addonAfter: "px"
  116288. },
  116289. defaultValue: 0
  116290. }
  116291. ], o = [
  116292. Ar.title,
  116293. Ar.legend,
  116294. Ar.label,
  116295. {
  116296. ...Ar.series,
  116297. children: Ar.series.children.concat(
  116298. a
  116299. )
  116300. },
  116301. Ar.xAxis,
  116302. Ar.yAxis,
  116303. Ar.tooltip
  116304. ], s = (u) => {
  116305. i("change", {
  116306. ...n,
  116307. dataSource: u
  116308. });
  116309. }, l = (u) => {
  116310. const c = ph(n);
  116311. Object.keys(u).forEach((f) => {
  116312. vN(c, f, u[f]);
  116313. }), i("change", c);
  116314. };
  116315. return (u, c) => (be(), Ue("div", gEt, [
  116316. tt("div", mEt, [
  116317. D(z(_h), {
  116318. activeKey: r.value,
  116319. "onUpdate:activeKey": c[0] || (c[0] = (f) => r.value = f),
  116320. size: "small",
  116321. centered: ""
  116322. }, {
  116323. default: ke(() => [
  116324. D(z(zu), { key: "1" }, {
  116325. tab: ke(() => [
  116326. D(z(K_)),
  116327. yEt
  116328. ]),
  116329. _: 1
  116330. }),
  116331. D(z(zu), { key: "2" }, {
  116332. tab: ke(() => [
  116333. D(z(J_)),
  116334. bEt
  116335. ]),
  116336. _: 1
  116337. })
  116338. ]),
  116339. _: 1
  116340. }, 8, ["activeKey"])
  116341. ]),
  116342. r.value === "1" ? (be(), Je(BB, {
  116343. key: 0,
  116344. dataSource: u.dataSource,
  116345. onChange: s
  116346. }, null, 8, ["dataSource"])) : Ot("", !0),
  116347. r.value === "2" ? (be(), Je(z(Sh), {
  116348. key: 1,
  116349. columns: o,
  116350. formModel: n,
  116351. onChange: l
  116352. }, null, 8, ["formModel"])) : Ot("", !0)
  116353. ]));
  116354. }
  116355. }), Xme = /* @__PURE__ */ ui(_Et, [["__scopeId", "data-v-3945a2ab"]]);
  116356. cg.Config = Xme;
  116357. cg.install = (t) => (t.component(cg.name, cg), t);
  116358. const OEt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  116359. __proto__: null,
  116360. Config: Xme,
  116361. basicBarProps: zB,
  116362. default: cg,
  116363. defaultPropsValue: hEt
  116364. }, Symbol.toStringTag, { value: "Module" })), VB = {
  116365. width: {
  116366. type: Number,
  116367. default: 400
  116368. },
  116369. height: {
  116370. type: Number,
  116371. default: 260
  116372. },
  116373. dataSource: k6,
  116374. // 标题
  116375. title: {
  116376. type: Object
  116377. },
  116378. // 图例
  116379. legend: {
  116380. type: Object
  116381. },
  116382. // 背景
  116383. backgroundColor: {
  116384. type: String
  116385. },
  116386. // 边框
  116387. grid: {
  116388. type: Object
  116389. },
  116390. // 提示框
  116391. tooltip: {
  116392. type: Object
  116393. },
  116394. // 饼图数据
  116395. series: {
  116396. type: Array
  116397. },
  116398. // color
  116399. color: {
  116400. type: Object
  116401. },
  116402. // 系列设置
  116403. seriesExtend: {
  116404. type: Object,
  116405. default: () => Yme
  116406. }
  116407. }, SEt = [], Yme = {
  116408. top: 70,
  116409. left: 20,
  116410. right: 20,
  116411. bottom: 20,
  116412. startAngle: 0,
  116413. endAngle: 360,
  116414. radius: ["0%", "75%"]
  116415. }, xEt = R6({
  116416. title: {
  116417. text: "饼图标题"
  116418. },
  116419. grid: {
  116420. show: !1
  116421. },
  116422. xAxis: {
  116423. show: !1
  116424. },
  116425. yAxis: {
  116426. show: !1
  116427. },
  116428. series: SEt,
  116429. seriesExtend: Yme
  116430. }), wEt = {
  116431. // 组件容器默认属性
  116432. container: {
  116433. props: {
  116434. width: 400,
  116435. height: 260
  116436. }
  116437. },
  116438. // 图表默认属性
  116439. props: {
  116440. // 数据源
  116441. dataSource: {
  116442. sourceType: kr.STATIC,
  116443. data: {
  116444. series: [
  116445. {
  116446. type: "pie",
  116447. name: "系列1",
  116448. data: [
  116449. { value: 335, name: "直接访问" },
  116450. { value: 310, name: "邮件营销" },
  116451. { value: 234, name: "联盟广告" },
  116452. { value: 135, name: "视频广告" }
  116453. ]
  116454. }
  116455. ]
  116456. },
  116457. url: location.origin + "/mock/api/get/example/pie",
  116458. method: "POST",
  116459. params: {},
  116460. headers: {},
  116461. refreshTime: 0,
  116462. dataProcess: `
  116463. (res) => {
  116464. // 取出列表
  116465. const data = res.data;
  116466. // 系列数据
  116467. const series = [
  116468. { type: 'pie', name: '月份', data: data.map(item => ({value: item.apple, name: item.name})) }
  116469. ];
  116470. // 返回图表数据
  116471. return { series };
  116472. }
  116473. `
  116474. },
  116475. ...xEt
  116476. }
  116477. }, CEt = ae({
  116478. name: "DBasicPie",
  116479. components: { Charts: D6 },
  116480. props: VB,
  116481. setup(t) {
  116482. const { options: e, loading: n } = q6(t);
  116483. return {
  116484. options: e,
  116485. loading: n
  116486. };
  116487. }
  116488. });
  116489. function TEt(t, e, n, r, i, a) {
  116490. const o = br("Charts");
  116491. return be(), Je(o, {
  116492. width: t.width,
  116493. height: t.height,
  116494. "echarts-options": t.options,
  116495. loading: t.loading
  116496. }, null, 8, ["width", "height", "echarts-options", "loading"]);
  116497. }
  116498. const fg = /* @__PURE__ */ ui(CEt, [["render", TEt]]), qme = (t) => (JT("data-v-4184f99c"), t = t(), e2(), t), PEt = { class: "chart-config" }, $Et = { class: "config-tab" }, AEt = /* @__PURE__ */ qme(() => /* @__PURE__ */ tt("span", null, "数据设置", -1)), EEt = /* @__PURE__ */ qme(() => /* @__PURE__ */ tt("span", null, "样式设置", -1)), MEt = /* @__PURE__ */ ae({
  116499. __name: "Config",
  116500. props: VB,
  116501. emits: ["change"],
  116502. setup(t, { emit: e }) {
  116503. const n = t, r = ee("1"), i = e, a = [
  116504. {
  116505. label: "样式",
  116506. prop: "",
  116507. type: "divider"
  116508. },
  116509. {
  116510. label: "起始角度",
  116511. prop: "series.pie.startAngle",
  116512. type: "inputNumber",
  116513. fieldProps: {
  116514. min: 0,
  116515. max: 360,
  116516. addonAfter: "°"
  116517. }
  116518. },
  116519. {
  116520. label: "完结角度",
  116521. prop: "series.pie.endAngle",
  116522. type: "inputNumber",
  116523. fieldProps: {
  116524. min: 0,
  116525. max: 360,
  116526. addonAfter: "°"
  116527. }
  116528. },
  116529. {
  116530. label: "内径占比",
  116531. prop: "series.pie.radius",
  116532. type: "slider",
  116533. format: (u, c) => {
  116534. const f = c * 0.75;
  116535. return u.value["series.pie.radius"] = [f + "%", "75%"], c * 100;
  116536. },
  116537. valueToForm: (u) => (u || ["0%", "75%"])[0].replace("%", "") / 0.75
  116538. },
  116539. {
  116540. label: "容器距离",
  116541. prop: "",
  116542. type: "divider"
  116543. },
  116544. {
  116545. label: "距离左侧",
  116546. prop: "series.pie.left",
  116547. type: "inputNumber",
  116548. fieldProps: {
  116549. addonAfter: "px"
  116550. }
  116551. },
  116552. {
  116553. label: "距离右侧",
  116554. prop: "series.pie.right",
  116555. type: "inputNumber",
  116556. fieldProps: {
  116557. addonAfter: "px"
  116558. }
  116559. },
  116560. {
  116561. label: "距离顶部",
  116562. prop: "series.pie.top",
  116563. type: "inputNumber",
  116564. fieldProps: {
  116565. addonAfter: "px"
  116566. }
  116567. },
  116568. {
  116569. label: "距离底部",
  116570. prop: "series.pie.bottom",
  116571. type: "inputNumber",
  116572. fieldProps: {
  116573. addonAfter: "px"
  116574. }
  116575. }
  116576. ], o = [
  116577. Ar.title,
  116578. Ar.legend,
  116579. Ar.label,
  116580. {
  116581. ...Ar.series,
  116582. children: Ar.series.children.concat(
  116583. a
  116584. )
  116585. },
  116586. Ar.tooltip
  116587. ], s = (u) => {
  116588. i("change", {
  116589. ...n,
  116590. dataSource: u
  116591. });
  116592. }, l = (u) => {
  116593. const c = ph(n);
  116594. Object.keys(u).forEach((f) => {
  116595. vN(c, f, u[f]);
  116596. }), i("change", c);
  116597. };
  116598. return (u, c) => (be(), Ue("div", PEt, [
  116599. tt("div", $Et, [
  116600. D(z(_h), {
  116601. activeKey: r.value,
  116602. "onUpdate:activeKey": c[0] || (c[0] = (f) => r.value = f),
  116603. size: "small",
  116604. centered: ""
  116605. }, {
  116606. default: ke(() => [
  116607. D(z(zu), { key: "1" }, {
  116608. tab: ke(() => [
  116609. D(z(K_)),
  116610. AEt
  116611. ]),
  116612. _: 1
  116613. }),
  116614. D(z(zu), { key: "2" }, {
  116615. tab: ke(() => [
  116616. D(z(J_)),
  116617. EEt
  116618. ]),
  116619. _: 1
  116620. })
  116621. ]),
  116622. _: 1
  116623. }, 8, ["activeKey"])
  116624. ]),
  116625. r.value === "1" ? (be(), Je(BB, {
  116626. key: 0,
  116627. dataSource: u.dataSource,
  116628. onChange: s
  116629. }, null, 8, ["dataSource"])) : Ot("", !0),
  116630. r.value === "2" ? (be(), Je(z(Sh), {
  116631. key: 1,
  116632. columns: o,
  116633. formModel: n,
  116634. onChange: l
  116635. }, null, 8, ["formModel"])) : Ot("", !0)
  116636. ]));
  116637. }
  116638. }), Kme = /* @__PURE__ */ ui(MEt, [["__scopeId", "data-v-4184f99c"]]);
  116639. fg.Config = Kme;
  116640. fg.install = (t) => (t.component(fg.name, fg), t);
  116641. const IEt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  116642. __proto__: null,
  116643. Config: Kme,
  116644. basicPieProps: VB,
  116645. default: fg,
  116646. defaultPropsValue: wEt
  116647. }, Symbol.toStringTag, { value: "Module" })), NEt = {
  116648. Title: () => Promise.resolve().then(() => rHe),
  116649. BasicLine: () => Promise.resolve().then(() => cEt),
  116650. BasicBar: () => Promise.resolve().then(() => OEt),
  116651. BasicPie: () => Promise.resolve().then(() => IEt),
  116652. Container: () => Promise.resolve().then(() => x9e)
  116653. }, Cee = {
  116654. BasicLine: ng,
  116655. BasicBar: cg,
  116656. Title: Zv,
  116657. BasicPie: fg,
  116658. Container: jv
  116659. }, DEt = function(t) {
  116660. return Object.keys(Cee).forEach((e) => {
  116661. const n = Cee[e];
  116662. n != null && n.install && (console.log("注册组件:", e), t.use(n));
  116663. }), t;
  116664. }, BEt = {
  116665. version: "1.0.0",
  116666. install: DEt
  116667. };
  116668. export {
  116669. cg as BasicBar,
  116670. Xme as BasicBarConfig,
  116671. hEt as BasicBarDefaultProps,
  116672. zB as BasicBarProps,
  116673. ng as BasicLine,
  116674. jme as BasicLineConfig,
  116675. Xdt as BasicLineDefaultProps,
  116676. L6 as BasicLineProps,
  116677. fg as BasicPie,
  116678. Kme as BasicPieConfig,
  116679. wEt as BasicPieDefaultProps,
  116680. VB as BasicPieProps,
  116681. jv as Container,
  116682. Sh as CusForm,
  116683. kr as DataSourceType,
  116684. Zv as Title,
  116685. NEt as asyncComponentAll,
  116686. Cee as components,
  116687. BEt as default,
  116688. DEt as install
  116689. };
  116690. //# sourceMappingURL=shalu-dashboard-ui.js.map