index-044fcea6.js 2.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132
  1. var Bde=Object.defineProperty,Tde=Object.defineProperties;var Ede=Object.getOwnPropertyDescriptors;var J5=Object.getOwnPropertySymbols;var Ide=Object.prototype.hasOwnProperty,Rde=Object.prototype.propertyIsEnumerable;var Yn=Math.pow,e3=(e,t,r)=>t in e?Bde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qi=(e,t)=>{for(var r in t||(t={}))Ide.call(t,r)&&e3(e,r,t[r]);if(J5)for(var r of J5(t))Rde.call(t,r)&&e3(e,r,t[r]);return e},t3=(e,t)=>Tde(e,Ede(t));var ku=(e,t,r)=>new Promise((n,o)=>{var a=l=>{try{s(r.next(l))}catch(u){o(u)}},i=l=>{try{s(r.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,i);s((r=r.apply(e,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();function dS(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o<n.length;o++)r[n[o]]=!0;return t?o=>!!r[o.toLowerCase()]:o=>!!r[o]}const rn={},ov=[],fs=()=>{},Dde=()=>!1,Mde=/^on[^a-z]/,dy=e=>Mde.test(e),YF=e=>e.startsWith("onUpdate:"),vn=Object.assign,XF=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Pde=Object.prototype.hasOwnProperty,$r=(e,t)=>Pde.call(e,t),Mt=Array.isArray,av=e=>Jv(e)==="[object Map]",xA=e=>Jv(e)==="[object Set]",r3=e=>Jv(e)==="[object Date]",Fde=e=>Jv(e)==="[object RegExp]",nr=e=>typeof e=="function",Sn=e=>typeof e=="string",em=e=>typeof e=="symbol",on=e=>e!==null&&typeof e=="object",qF=e=>on(e)&&nr(e.then)&&nr(e.catch),JG=Object.prototype.toString,Jv=e=>JG.call(e),kde=e=>Jv(e).slice(8,-1),eK=e=>Jv(e)==="[object Object]",ZF=e=>Sn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,h0=dS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fS=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Lde=/-(\w)/g,Ba=fS(e=>e.replace(Lde,(t,r)=>r?r.toUpperCase():"")),Ode=/\B([A-Z])/g,Ci=fS(e=>e.replace(Ode,"-$1").toLowerCase()),fy=fS(e=>e.charAt(0).toUpperCase()+e.slice(1)),v0=fS(e=>e?`on${fy(e)}`:""),Cv=(e,t)=>!Object.is(e,t),iv=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},vw=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},pw=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gw=e=>{const t=Sn(e)?Number(e):NaN;return isNaN(t)?e:t};let n3;const bR=()=>n3||(n3=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),$de="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",Ude=dS($de);function Mi(e){if(Mt(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=Sn(n)?Qde(n):Mi(n);if(o)for(const a in o)t[a]=o[a]}return t}else{if(Sn(e))return e;if(on(e))return e}}const Nde=/;(?![^(]*\))/g,Hde=/:([^]+)/,zde=/\/\*[^]*?\*\//g;function Qde(e){const t={};return e.replace(zde,"").split(Nde).forEach(r=>{if(r){const n=r.split(Hde);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function wA(e){let t="";if(Sn(e))t=e;else if(Mt(e))for(let r=0;r<e.length;r++){const n=wA(e[r]);n&&(t+=n+" ")}else if(on(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Vde(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Sn(t)&&(e.class=wA(t)),r&&(e.style=Mi(r)),e}const Wde="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gde=dS(Wde);function tK(e){return!!e||e===""}function Kde(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=zc(e[n],t[n]);return r}function zc(e,t){if(e===t)return!0;let r=r3(e),n=r3(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=em(e),n=em(t),r||n)return e===t;if(r=Mt(e),n=Mt(t),r||n)return r&&n?Kde(e,t):!1;if(r=on(e),n=on(t),r||n){if(!r||!n)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!zc(e[i],t[i]))return!1}}return String(e)===String(t)}function AS(e,t){return e.findIndex(r=>zc(r,t))}const JF=e=>Sn(e)?e:e==null?"":Mt(e)||on(e)&&(e.toString===JG||!nr(e.toString))?JSON.stringify(e,rK,2):String(e),rK=(e,t)=>t&&t.__v_isRef?rK(e,t.value):av(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:xA(t)?{[`Set(${t.size})`]:[...t.values()]}:on(t)&&!Mt(t)&&!eK(t)?String(t):t;let Ua;class ek{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ua,!t&&Ua&&(this.index=(Ua.scopes||(Ua.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ua;try{return Ua=this,t()}finally{Ua=r}}}on(){Ua=this}off(){Ua=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function tk(e){return new ek(e)}function nK(e,t=Ua){t&&t.active&&t.effects.push(e)}function oK(){return Ua}function jde(e){Ua&&Ua.cleanups.push(e)}const rk=e=>{const t=new Set(e);return t.w=0,t.n=0,t},aK=e=>(e.w&Qc)>0,iK=e=>(e.n&Qc)>0,Yde=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Qc},Xde=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const o=t[n];aK(o)&&!iK(o)?o.delete(e):t[r++]=o,o.w&=~Qc,o.n&=~Qc}t.length=r}},mw=new WeakMap;let Ng=0,Qc=1;const xR=30;let ss;const Uf=Symbol(""),wR=Symbol("");class Ay{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,nK(this,n)}run(){if(!this.active)return this.fn();let t=ss,r=_c;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ss,ss=this,_c=!0,Qc=1<<++Ng,Ng<=xR?Yde(this):o3(this),this.fn()}finally{Ng<=xR&&Xde(this),Qc=1<<--Ng,ss=this.parent,_c=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ss===this?this.deferStop=!0:this.active&&(o3(this),this.onStop&&this.onStop(),this.active=!1)}}function o3(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}function qde(e,t){e.effect&&(e=e.effect.fn);const r=new Ay(e);t&&(vn(r,t),t.scope&&nK(r,t.scope)),(!t||!t.lazy)&&r.run();const n=r.run.bind(r);return n.effect=r,n}function Zde(e){e.effect.stop()}let _c=!0;const sK=[];function ep(){sK.push(_c),_c=!1}function tp(){const e=sK.pop();_c=e===void 0?!0:e}function Ea(e,t,r){if(_c&&ss){let n=mw.get(e);n||mw.set(e,n=new Map);let o=n.get(r);o||n.set(r,o=rk()),lK(o)}}function lK(e,t){let r=!1;Ng<=xR?iK(e)||(e.n|=Qc,r=!aK(e)):r=!e.has(ss),r&&(e.add(ss),ss.deps.push(e))}function lu(e,t,r,n,o,a){const i=mw.get(e);if(!i)return;let s=[];if(t==="clear")s=[...i.values()];else if(r==="length"&&Mt(e)){const l=Number(n);i.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(i.get(r)),t){case"add":Mt(e)?ZF(r)&&s.push(i.get("length")):(s.push(i.get(Uf)),av(e)&&s.push(i.get(wR)));break;case"delete":Mt(e)||(s.push(i.get(Uf)),av(e)&&s.push(i.get(wR)));break;case"set":av(e)&&s.push(i.get(Uf));break}if(s.length===1)s[0]&&CR(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);CR(rk(l))}}function CR(e,t){const r=Mt(e)?e:[...e];for(const n of r)n.computed&&a3(n);for(const n of r)n.computed||a3(n)}function a3(e,t){(e!==ss||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Jde(e,t){var r;return(r=mw.get(e))==null?void 0:r.get(t)}const efe=dS("__proto__,__v_isRef,__isVue"),uK=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(em)),tfe=hS(),rfe=hS(!1,!0),nfe=hS(!0),ofe=hS(!0,!0),i3=afe();function afe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Rr(this);for(let a=0,i=this.length;a<i;a++)Ea(n,"get",a+"");const o=n[t](...r);return o===-1||o===!1?n[t](...r.map(Rr)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){ep();const n=Rr(this)[t].apply(this,r);return tp(),n}}),e}function ife(e){const t=Rr(this);return Ea(t,"has",e),t.hasOwnProperty(e)}function hS(e=!1,t=!1){return function(n,o,a){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&a===(e?t?pK:vK:t?hK:AK).get(n))return n;const i=Mt(n);if(!e){if(i&&$r(i3,o))return Reflect.get(i3,o,a);if(o==="hasOwnProperty")return ife}const s=Reflect.get(n,o,a);return(em(o)?uK.has(o):efe(o))||(e||Ea(n,"get",o),t)?s:En(s)?i&&ZF(o)?s:s.value:on(s)?e?ps(s):Ni(s):s}}const sfe=cK(),lfe=cK(!0);function cK(e=!1){return function(r,n,o,a){let i=r[n];if(oA(i)&&En(i)&&!En(o))return!1;if(!e&&(!tm(o)&&!oA(o)&&(i=Rr(i),o=Rr(o)),!Mt(r)&&En(i)&&!En(o)))return i.value=o,!0;const s=Mt(r)&&ZF(n)?Number(n)<r.length:$r(r,n),l=Reflect.set(r,n,o,a);return r===Rr(a)&&(s?Cv(o,i)&&lu(r,"set",n,o):lu(r,"add",n,o)),l}}function ufe(e,t){const r=$r(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&lu(e,"delete",t,void 0),n}function cfe(e,t){const r=Reflect.has(e,t);return(!em(t)||!uK.has(t))&&Ea(e,"has",t),r}function dfe(e){return Ea(e,"iterate",Mt(e)?"length":Uf),Reflect.ownKeys(e)}const dK={get:tfe,set:sfe,deleteProperty:ufe,has:cfe,ownKeys:dfe},fK={get:nfe,set(e,t){return!0},deleteProperty(e,t){return!0}},ffe=vn({},dK,{get:rfe,set:lfe}),Afe=vn({},fK,{get:ofe}),nk=e=>e,vS=e=>Reflect.getPrototypeOf(e);function Ab(e,t,r=!1,n=!1){e=e.__v_raw;const o=Rr(e),a=Rr(t);r||(t!==a&&Ea(o,"get",t),Ea(o,"get",a));const{has:i}=vS(o),s=n?nk:r?ak:rm;if(i.call(o,t))return s(e.get(t));if(i.call(o,a))return s(e.get(a));e!==o&&e.get(t)}function hb(e,t=!1){const r=this.__v_raw,n=Rr(r),o=Rr(e);return t||(e!==o&&Ea(n,"has",e),Ea(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function vb(e,t=!1){return e=e.__v_raw,!t&&Ea(Rr(e),"iterate",Uf),Reflect.get(e,"size",e)}function s3(e){e=Rr(e);const t=Rr(this);return vS(t).has.call(t,e)||(t.add(e),lu(t,"add",e,e)),this}function l3(e,t){t=Rr(t);const r=Rr(this),{has:n,get:o}=vS(r);let a=n.call(r,e);a||(e=Rr(e),a=n.call(r,e));const i=o.call(r,e);return r.set(e,t),a?Cv(t,i)&&lu(r,"set",e,t):lu(r,"add",e,t),this}function u3(e){const t=Rr(this),{has:r,get:n}=vS(t);let o=r.call(t,e);o||(e=Rr(e),o=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return o&&lu(t,"delete",e,void 0),a}function c3(){const e=Rr(this),t=e.size!==0,r=e.clear();return t&&lu(e,"clear",void 0,void 0),r}function pb(e,t){return function(n,o){const a=this,i=a.__v_raw,s=Rr(i),l=t?nk:e?ak:rm;return!e&&Ea(s,"iterate",Uf),i.forEach((u,c)=>n.call(o,l(u),l(c),a))}}function gb(e,t,r){return function(...n){const o=this.__v_raw,a=Rr(o),i=av(a),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...n),c=r?nk:t?ak:rm;return!t&&Ea(a,"iterate",l?wR:Uf),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Lu(e){return function(...t){return e==="delete"?!1:this}}function hfe(){const e={get(a){return Ab(this,a)},get size(){return vb(this)},has:hb,add:s3,set:l3,delete:u3,clear:c3,forEach:pb(!1,!1)},t={get(a){return Ab(this,a,!1,!0)},get size(){return vb(this)},has:hb,add:s3,set:l3,delete:u3,clear:c3,forEach:pb(!1,!0)},r={get(a){return Ab(this,a,!0)},get size(){return vb(this,!0)},has(a){return hb.call(this,a,!0)},add:Lu("add"),set:Lu("set"),delete:Lu("delete"),clear:Lu("clear"),forEach:pb(!0,!1)},n={get(a){return Ab(this,a,!0,!0)},get size(){return vb(this,!0)},has(a){return hb.call(this,a,!0)},add:Lu("add"),set:Lu("set"),delete:Lu("delete"),clear:Lu("clear"),forEach:pb(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=gb(a,!1,!1),r[a]=gb(a,!0,!1),t[a]=gb(a,!1,!0),n[a]=gb(a,!0,!0)}),[e,r,t,n]}const[vfe,pfe,gfe,mfe]=hfe();function pS(e,t){const r=t?e?mfe:gfe:e?pfe:vfe;return(n,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get($r(r,o)&&o in n?r:n,o,a)}const yfe={get:pS(!1,!1)},bfe={get:pS(!1,!0)},xfe={get:pS(!0,!1)},wfe={get:pS(!0,!0)},AK=new WeakMap,hK=new WeakMap,vK=new WeakMap,pK=new WeakMap;function Cfe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sfe(e){return e.__v_skip||!Object.isExtensible(e)?0:Cfe(kde(e))}function Ni(e){return oA(e)?e:gS(e,!1,dK,yfe,AK)}function gK(e){return gS(e,!1,ffe,bfe,hK)}function ps(e){return gS(e,!0,fK,xfe,vK)}function _fe(e){return gS(e,!0,Afe,wfe,pK)}function gS(e,t,r,n,o){if(!on(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const i=Sfe(e);if(i===0)return e;const s=new Proxy(e,i===2?n:r);return o.set(e,s),s}function Jl(e){return oA(e)?Jl(e.__v_raw):!!(e&&e.__v_isReactive)}function oA(e){return!!(e&&e.__v_isReadonly)}function tm(e){return!!(e&&e.__v_isShallow)}function ok(e){return Jl(e)||oA(e)}function Rr(e){const t=e&&e.__v_raw;return t?Rr(t):e}function uu(e){return vw(e,"__v_skip",!0),e}const rm=e=>on(e)?Ni(e):e,ak=e=>on(e)?ps(e):e;function ik(e){_c&&ss&&(e=Rr(e),lK(e.dep||(e.dep=rk())))}function mS(e,t){e=Rr(e);const r=e.dep;r&&CR(r)}function En(e){return!!(e&&e.__v_isRef===!0)}function q(e){return yK(e,!1)}function mK(e){return yK(e,!0)}function yK(e,t){return En(e)?e:new Bfe(e,t)}class Bfe{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Rr(t),this._value=r?t:rm(t)}get value(){return ik(this),this._value}set value(t){const r=this.__v_isShallow||tm(t)||oA(t);t=r?t:Rr(t),Cv(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:rm(t),mS(this))}}function Tfe(e){mS(e)}function Fn(e){return En(e)?e.value:e}function Efe(e){return nr(e)?e():Fn(e)}const Ife={get:(e,t,r)=>Fn(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return En(o)&&!En(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function sk(e){return Jl(e)?e:new Proxy(e,Ife)}class Rfe{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=t(()=>ik(this),()=>mS(this));this._get=r,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function Dfe(e){return new Rfe(e)}function lk(e){const t=Mt(e)?new Array(e.length):{};for(const r in e)t[r]=bK(e,r);return t}class Mfe{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Jde(Rr(this._object),this._key)}}class Pfe{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Re(e,t,r){return En(e)?e:nr(e)?new Pfe(e):on(e)&&arguments.length>1?bK(e,t,r):q(e)}function bK(e,t,r){const n=e[t];return En(n)?n:new Mfe(e,t,r)}class Ffe{constructor(t,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ay(t,()=>{this._dirty||(this._dirty=!0,mS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=Rr(this);return ik(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function kfe(e,t,r=!1){let n,o;const a=nr(e);return a?(n=e,o=fs):(n=e.get,o=e.set),new Ffe(n,o,a||!o,r)}function Lfe(e,...t){}function Ofe(e,t){}function eu(e,t,r,n){let o;try{o=n?e(...n):e()}catch(a){CA(a,t,r)}return o}function Ya(e,t,r,n){if(nr(e)){const a=eu(e,t,r,n);return a&&qF(a)&&a.catch(i=>{CA(i,t,r)}),a}const o=[];for(let a=0;a<e.length;a++)o.push(Ya(e[a],t,r,n));return o}function CA(e,t,r,n=!0){const o=t?t.vnode:null;if(t){let a=t.parent;const i=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,i,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){eu(l,null,10,[e,i,s]);return}}$fe(e,r,o,n)}function $fe(e,t,r,n=!0){console.error(e)}let nm=!1,SR=!1;const Ko=[];let Vs=0;const sv=[];let Ul=null,bf=0;const xK=Promise.resolve();let uk=null;function dr(e){const t=uk||xK;return e?t.then(this?e.bind(this):e):t}function Ufe(e){let t=Vs+1,r=Ko.length;for(;t<r;){const n=t+r>>>1;om(Ko[n])<e?t=n+1:r=n}return t}function yS(e){(!Ko.length||!Ko.includes(e,nm&&e.allowRecurse?Vs+1:Vs))&&(e.id==null?Ko.push(e):Ko.splice(Ufe(e.id),0,e),wK())}function wK(){!nm&&!SR&&(SR=!0,uk=xK.then(CK))}function Nfe(e){const t=Ko.indexOf(e);t>Vs&&Ko.splice(t,1)}function ck(e){Mt(e)?sv.push(...e):(!Ul||!Ul.includes(e,e.allowRecurse?bf+1:bf))&&sv.push(e),wK()}function d3(e,t=nm?Vs+1:0){for(;t<Ko.length;t++){const r=Ko[t];r&&r.pre&&(Ko.splice(t,1),t--,r())}}function yw(e){if(sv.length){const t=[...new Set(sv)];if(sv.length=0,Ul){Ul.push(...t);return}for(Ul=t,Ul.sort((r,n)=>om(r)-om(n)),bf=0;bf<Ul.length;bf++)Ul[bf]();Ul=null,bf=0}}const om=e=>e.id==null?1/0:e.id,Hfe=(e,t)=>{const r=om(e)-om(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function CK(e){SR=!1,nm=!0,Ko.sort(Hfe);const t=fs;try{for(Vs=0;Vs<Ko.length;Vs++){const r=Ko[Vs];r&&r.active!==!1&&eu(r,null,14)}}finally{Vs=0,Ko.length=0,yw(),nm=!1,uk=null,(Ko.length||sv.length)&&CK()}}let Lh,mb=[];function SK(e,t){var r,n;Lh=e,Lh?(Lh.enabled=!0,mb.forEach(({event:o,args:a})=>Lh.emit(o,...a)),mb=[]):typeof window!="undefined"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{SK(a,t)}),setTimeout(()=>{Lh||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mb=[])},3e3)):mb=[]}function zfe(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||rn;let o=r;const a=t.startsWith("update:"),i=a&&t.slice(7);if(i&&i in n){const c=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:f}=n[c]||rn;f&&(o=r.map(A=>Sn(A)?A.trim():A)),d&&(o=r.map(pw))}let s,l=n[s=v0(t)]||n[s=v0(Ba(t))];!l&&a&&(l=n[s=v0(Ci(t))]),l&&Ya(l,e,6,o);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ya(u,e,6,o)}}function _K(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const a=e.emits;let i={},s=!1;if(!nr(e)){const l=u=>{const c=_K(u,t,!0);c&&(s=!0,vn(i,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(on(e)&&n.set(e,null),null):(Mt(a)?a.forEach(l=>i[l]=null):vn(i,a),on(e)&&n.set(e,i),i)}function bS(e,t){return!e||!dy(t)?!1:(t=t.slice(2).replace(/Once$/,""),$r(e,t[0].toLowerCase()+t.slice(1))||$r(e,Ci(t))||$r(e,t))}let bo=null,xS=null;function am(e){const t=bo;return bo=e,xS=e&&e.type.__scopeId||null,t}function BK(e){xS=e}function TK(){xS=null}const Qfe=e=>Kl;function Kl(e,t=bo,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&DR(-1);const a=am(t);let i;try{i=e(...o)}finally{am(a),n._d&&DR(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Rx(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:a,propsOptions:[i],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:A,ctx:h,inheritAttrs:v}=e;let p,g;const m=am(e);try{if(r.shapeFlag&4){const b=o||n;p=Na(c.call(b,b,d,a,A,f,h)),g=l}else{const b=t;p=Na(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),g=t.props?l:Wfe(l)}}catch(b){m0.length=0,CA(b,e,1),p=ur(fo)}let y=p;if(g&&v!==!1){const b=Object.keys(g),{shapeFlag:x}=y;b.length&&x&7&&(i&&b.some(YF)&&(g=Gfe(g,i)),y=Fo(y,g))}return r.dirs&&(y=Fo(y),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&(y.transition=r.transition),p=y,am(m),p}function Vfe(e){let t;for(let r=0;r<e.length;r++){const n=e[r];if(cu(n)){if(n.type!==fo||n.children==="v-if"){if(t)return;t=n}}else return}return t}const Wfe=e=>{let t;for(const r in e)(r==="class"||r==="style"||dy(r))&&((t||(t={}))[r]=e[r]);return t},Gfe=(e,t)=>{const r={};for(const n in e)(!YF(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Kfe(e,t,r){const{props:n,children:o,component:a}=e,{props:i,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?f3(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(i[f]!==n[f]&&!bS(u,f))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:n===i?!1:n?i?f3(n,i,u):!0:!!i;return!1}function f3(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const a=n[o];if(t[a]!==e[a]&&!bS(r,a))return!0}return!1}function dk({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const EK=e=>e.__isSuspense,jfe={name:"Suspense",__isSuspense:!0,process(e,t,r,n,o,a,i,s,l,u){e==null?Xfe(t,r,n,o,a,i,s,l,u):qfe(e,t,r,n,o,i,s,l,u)},hydrate:Zfe,create:fk,normalize:Jfe},Yfe=jfe;function im(e,t){const r=e.props&&e.props[t];nr(r)&&r()}function Xfe(e,t,r,n,o,a,i,s,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=fk(e,o,n,t,d,r,a,i,s,l);u(null,f.pendingBranch=e.ssContent,d,null,n,f,a,i),f.deps>0?(im(e,"onPending"),im(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,a,i),lv(f,e.ssFallback)):f.resolve(!1,!0)}function qfe(e,t,r,n,o,a,i,s,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,A=t.ssFallback,{activeBranch:h,pendingBranch:v,isInFallback:p,isHydrating:g}=d;if(v)d.pendingBranch=f,ls(f,v)?(l(v,f,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():p&&(l(h,A,r,n,o,null,a,i,s),lv(d,A))):(d.pendingId++,g?(d.isHydrating=!1,d.activeBranch=v):u(v,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),p?(l(null,f,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():(l(h,A,r,n,o,null,a,i,s),lv(d,A))):h&&ls(f,h)?(l(h,f,r,n,o,d,a,i,s),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0&&d.resolve()));else if(h&&ls(f,h))l(h,f,r,n,o,d,a,i,s),lv(d,f);else if(im(t,"onPending"),d.pendingBranch=f,d.pendingId++,l(null,f,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0)d.resolve();else{const{timeout:m,pendingId:y}=d;m>0?setTimeout(()=>{d.pendingId===y&&d.fallback(A)},m):m===0&&d.fallback(A)}}function fk(e,t,r,n,o,a,i,s,l,u,c=!1){const{p:d,m:f,um:A,n:h,o:{parentNode:v,remove:p}}=u;let g;const m=eAe(e);m&&t!=null&&t.pendingBranch&&(g=t.pendingId,t.deps++);const y=e.props?gw(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:r,isSVG:i,container:n,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(x=!1,w=!1){const{vnode:C,activeBranch:_,pendingBranch:B,pendingId:T,effects:E,parentComponent:I,container:R}=b;if(b.isHydrating)b.isHydrating=!1;else if(!x){const M=_&&B.transition&&B.transition.mode==="out-in";M&&(_.transition.afterLeave=()=>{T===b.pendingId&&f(B,R,$,0)});let{anchor:$}=b;_&&($=h(_),A(_,I,b,!0)),M||f(B,R,$,0)}lv(b,B),b.pendingBranch=null,b.isInFallback=!1;let D=b.parent,F=!1;for(;D;){if(D.pendingBranch){D.effects.push(...E),F=!0;break}D=D.parent}F||ck(E),b.effects=[],m&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),im(C,"onResolve")},fallback(x){if(!b.pendingBranch)return;const{vnode:w,activeBranch:C,parentComponent:_,container:B,isSVG:T}=b;im(w,"onFallback");const E=h(C),I=()=>{b.isInFallback&&(d(null,x,B,E,_,null,T,s,l),lv(b,x))},R=x.transition&&x.transition.mode==="out-in";R&&(C.transition.afterLeave=I),b.isInFallback=!0,A(C,_,null,!0),R||I()},move(x,w,C){b.activeBranch&&f(b.activeBranch,x,w,C),b.container=x},next(){return b.activeBranch&&h(b.activeBranch)},registerDep(x,w){const C=!!b.pendingBranch;C&&b.deps++;const _=x.vnode.el;x.asyncDep.catch(B=>{CA(B,x,0)}).then(B=>{if(x.isUnmounted||b.isUnmounted||b.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:T}=x;MR(x,B,!1),_&&(T.el=_);const E=!_&&x.subTree.el;w(x,T,v(_||x.subTree.el),_?null:h(x.subTree),b,i,l),E&&p(E),dk(x,T.el),C&&--b.deps===0&&b.resolve()})},unmount(x,w){b.isUnmounted=!0,b.activeBranch&&A(b.activeBranch,r,x,w),b.pendingBranch&&A(b.pendingBranch,r,x,w)}};return b}function Zfe(e,t,r,n,o,a,i,s,l){const u=t.suspense=fk(t,n,r,e.parentNode,document.createElement("div"),null,o,a,i,s,!0),c=l(e,u.pendingBranch=t.ssContent,r,u,a,i);return u.deps===0&&u.resolve(!1,!0),c}function Jfe(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=A3(n?r.default:r),e.ssFallback=n?A3(r.fallback):ur(fo)}function A3(e){let t;if(nr(e)){const r=lA&&e._c;r&&(e._d=!1,jo()),e=e(),r&&(e._d=!0,t=Sa,ej())}return Mt(e)&&(e=Vfe(e)),e=Na(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function IK(e,t){t&&t.pendingBranch?Mt(e)?t.effects.push(...e):t.effects.push(e):ck(e)}function lv(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,o=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=o,dk(n,o))}function eAe(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Sr(e,t){return hy(e,null,t)}function RK(e,t){return hy(e,null,{flush:"post"})}function tAe(e,t){return hy(e,null,{flush:"sync"})}const yb={};function gt(e,t,r){return hy(e,t,r)}function hy(e,t,{immediate:r,deep:n,flush:o,onTrack:a,onTrigger:i}=rn){var s;const l=oK()===((s=Zn)==null?void 0:s.scope)?Zn:null;let u,c=!1,d=!1;if(En(e)?(u=()=>e.value,c=tm(e)):Jl(e)?(u=()=>e,n=!0):Mt(e)?(d=!0,c=e.some(b=>Jl(b)||tm(b)),u=()=>e.map(b=>{if(En(b))return b.value;if(Jl(b))return Tf(b);if(nr(b))return eu(b,l,2)})):nr(e)?t?u=()=>eu(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),Ya(e,l,3,[A])}:u=fs,t&&n){const b=u;u=()=>Tf(b())}let f,A=b=>{f=m.onStop=()=>{eu(b,l,4)}},h;if(_v)if(A=fs,t?r&&Ya(t,l,3,[u(),d?[]:void 0,A]):u(),o==="sync"){const b=cj();h=b.__watcherHandles||(b.__watcherHandles=[])}else return fs;let v=d?new Array(e.length).fill(yb):yb;const p=()=>{if(m.active)if(t){const b=m.run();(n||c||(d?b.some((x,w)=>Cv(x,v[w])):Cv(b,v)))&&(f&&f(),Ya(t,l,3,[b,v===yb?void 0:d&&v[0]===yb?[]:v,A]),v=b)}else m.run()};p.allowRecurse=!!t;let g;o==="sync"?g=p:o==="post"?g=()=>Eo(p,l&&l.suspense):(p.pre=!0,l&&(p.id=l.uid),g=()=>yS(p));const m=new Ay(u,g);t?r?p():v=m.run():o==="post"?Eo(m.run.bind(m),l&&l.suspense):m.run();const y=()=>{m.stop(),l&&l.scope&&XF(l.scope.effects,m)};return h&&h.push(y),y}function rAe(e,t,r){const n=this.proxy,o=Sn(e)?e.includes(".")?DK(n,e):()=>n[e]:e.bind(n,n);let a;nr(t)?a=t:(a=t.handler,r=t);const i=Zn;Vc(this);const s=hy(o,a.bind(n),r);return i?Vc(i):Bc(),s}function DK(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function Tf(e,t){if(!on(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),En(e))Tf(e.value,t);else if(Mt(e))for(let r=0;r<e.length;r++)Tf(e[r],t);else if(xA(e)||av(e))e.forEach(r=>{Tf(r,t)});else if(eK(e))for(const r in e)Tf(e[r],t);return e}function en(e,t){const r=bo;if(r===null)return e;const n=TS(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[i,s,l,u=rn]=t[a];i&&(nr(i)&&(i={mounted:i,updated:i}),i.deep&&Tf(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function zs(e,t,r,n){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let l=s.dir[n];l&&(ep(),Ya(l,r,8,[e.el,s,e,t]),tp())}}function Ak(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yr(()=>{e.isMounted=!0}),Hr(()=>{e.isUnmounting=!0}),e}const si=[Function,Array],hk={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:si,onEnter:si,onAfterEnter:si,onEnterCancelled:si,onBeforeLeave:si,onLeave:si,onAfterLeave:si,onLeaveCancelled:si,onBeforeAppear:si,onAppear:si,onAfterAppear:si,onAppearCancelled:si},nAe={name:"BaseTransition",props:hk,setup(e,{slots:t}){const r=Co(),n=Ak();let o;return()=>{const a=t.default&&wS(t.default(),!0);if(!a||!a.length)return;let i=a[0];if(a.length>1){for(const v of a)if(v.type!==fo){i=v;break}}const s=Rr(e),{mode:l}=s;if(n.isLeaving)return NB(i);const u=h3(i);if(!u)return NB(i);const c=Sv(u,s,n,r);aA(u,c);const d=r.subTree,f=d&&h3(d);let A=!1;const{getTransitionKey:h}=u.type;if(h){const v=h();o===void 0?o=v:v!==o&&(o=v,A=!0)}if(f&&f.type!==fo&&(!ls(u,f)||A)){const v=Sv(f,s,n,r);if(aA(f,v),l==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},NB(i);l==="in-out"&&u.type!==fo&&(v.delayLeave=(p,g,m)=>{const y=PK(n,f);y[String(f.key)]=f,p._leaveCb=()=>{g(),p._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return i}}},MK=nAe;function PK(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Sv(e,t,r,n){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:A,onLeaveCancelled:h,onBeforeAppear:v,onAppear:p,onAfterAppear:g,onAppearCancelled:m}=t,y=String(e.key),b=PK(r,e),x=(_,B)=>{_&&Ya(_,n,9,B)},w=(_,B)=>{const T=B[1];x(_,B),Mt(_)?_.every(E=>E.length<=1)&&T():_.length<=1&&T()},C={mode:a,persisted:i,beforeEnter(_){let B=s;if(!r.isMounted)if(o)B=v||s;else return;_._leaveCb&&_._leaveCb(!0);const T=b[y];T&&ls(e,T)&&T.el._leaveCb&&T.el._leaveCb(),x(B,[_])},enter(_){let B=l,T=u,E=c;if(!r.isMounted)if(o)B=p||l,T=g||u,E=m||c;else return;let I=!1;const R=_._enterCb=D=>{I||(I=!0,D?x(E,[_]):x(T,[_]),C.delayedLeave&&C.delayedLeave(),_._enterCb=void 0)};B?w(B,[_,R]):R()},leave(_,B){const T=String(e.key);if(_._enterCb&&_._enterCb(!0),r.isUnmounting)return B();x(d,[_]);let E=!1;const I=_._leaveCb=R=>{E||(E=!0,B(),R?x(h,[_]):x(A,[_]),_._leaveCb=void 0,b[T]===e&&delete b[T])};b[T]=e,f?w(f,[_,I]):I()},clone(_){return Sv(_,t,r,n)}};return C}function NB(e){if(vy(e))return e=Fo(e),e.children=null,e}function h3(e){return vy(e)?e.children?e.children[0]:void 0:e}function aA(e,t){e.shapeFlag&6&&e.component?aA(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wS(e,t=!1,r){let n=[],o=0;for(let a=0;a<e.length;a++){let i=e[a];const s=r==null?i.key:String(r)+String(i.key!=null?i.key:a);i.type===lr?(i.patchFlag&128&&o++,n=n.concat(wS(i.children,t,s))):(t||i.type!==fo)&&n.push(s!=null?Fo(i,{key:s}):i)}if(o>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function ge(e,t){return nr(e)?(()=>vn({name:e.name},t,{setup:e}))():e}const Nf=e=>!!e.type.__asyncLoader;function oAe(e){nr(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,timeout:a,suspensible:i=!0,onError:s}=e;let l=null,u,c=0;const d=()=>(c++,l=null,f()),f=()=>{let A;return l||(A=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),s)return new Promise((v,p)=>{s(h,()=>v(d()),()=>p(h),c+1)});throw h}).then(h=>A!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const A=Zn;if(u)return()=>HB(u,A);const h=m=>{l=null,CA(m,A,13,!n)};if(i&&A.suspense||_v)return f().then(m=>()=>HB(m,A)).catch(m=>(h(m),()=>n?ur(n,{error:m}):null));const v=q(!1),p=q(),g=q(!!o);return o&&setTimeout(()=>{g.value=!1},o),a!=null&&setTimeout(()=>{if(!v.value&&!p.value){const m=new Error(`Async component timed out after ${a}ms.`);h(m),p.value=m}},a),f().then(()=>{v.value=!0,A.parent&&vy(A.parent.vnode)&&yS(A.parent.update)}).catch(m=>{h(m),p.value=m}),()=>{if(v.value&&u)return HB(u,A);if(p.value&&n)return ur(n,{error:p.value});if(r&&!g.value)return ur(r)}}})}function HB(e,t){const{ref:r,props:n,children:o,ce:a}=t.vnode,i=ur(e,n,o);return i.ref=r,i.ce=a,delete t.vnode.ce,i}const vy=e=>e.type.__isKeepAlive,aAe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Co(),n=r.ctx;if(!n.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const o=new Map,a=new Set;let i=null;const s=r.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=n,f=d("div");n.activate=(m,y,b,x,w)=>{const C=m.component;u(m,y,b,0,s),l(C.vnode,m,y,b,C,s,x,m.slotScopeIds,w),Eo(()=>{C.isDeactivated=!1,C.a&&iv(C.a);const _=m.props&&m.props.onVnodeMounted;_&&pa(_,C.parent,m)},s)},n.deactivate=m=>{const y=m.component;u(m,f,null,1,s),Eo(()=>{y.da&&iv(y.da);const b=m.props&&m.props.onVnodeUnmounted;b&&pa(b,y.parent,m),y.isDeactivated=!0},s)};function A(m){zB(m),c(m,r,s,!0)}function h(m){o.forEach((y,b)=>{const x=FR(y.type);x&&(!m||!m(x))&&v(b)})}function v(m){const y=o.get(m);!i||!ls(y,i)?A(y):i&&zB(i),o.delete(m),a.delete(m)}gt(()=>[e.include,e.exclude],([m,y])=>{m&&h(b=>Hg(m,b)),y&&h(b=>!Hg(y,b))},{flush:"post",deep:!0});let p=null;const g=()=>{p!=null&&o.set(p,QB(r.subTree))};return yr(g),py(g),Hr(()=>{o.forEach(m=>{const{subTree:y,suspense:b}=r,x=QB(y);if(m.type===x.type&&m.key===x.key){zB(x);const w=x.component.da;w&&Eo(w,b);return}A(m)})}),()=>{if(p=null,!t.default)return null;const m=t.default(),y=m[0];if(m.length>1)return i=null,m;if(!cu(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return i=null,y;let b=QB(y);const x=b.type,w=FR(Nf(b)?b.type.__asyncResolved||{}:x),{include:C,exclude:_,max:B}=e;if(C&&(!w||!Hg(C,w))||_&&w&&Hg(_,w))return i=b,y;const T=b.key==null?x:b.key,E=o.get(T);return b.el&&(b=Fo(b),y.shapeFlag&128&&(y.ssContent=b)),p=T,E?(b.el=E.el,b.component=E.component,b.transition&&aA(b,b.transition),b.shapeFlag|=512,a.delete(T),a.add(T)):(a.add(T),B&&a.size>parseInt(B,10)&&v(a.values().next().value)),b.shapeFlag|=256,i=b,EK(y.type)?y:b}}},iAe=aAe;function Hg(e,t){return Mt(e)?e.some(r=>Hg(r,t)):Sn(e)?e.split(",").includes(t):Fde(e)?e.test(t):!1}function CS(e,t){FK(e,"a",t)}function rp(e,t){FK(e,"da",t)}function FK(e,t,r=Zn){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(SS(t,n,r),r){let o=r.parent;for(;o&&o.parent;)vy(o.parent.vnode)&&sAe(n,t,r,o),o=o.parent}}function sAe(e,t,r,n){const o=SS(t,e,n,!0);SA(()=>{XF(n[t],o)},r)}function zB(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function QB(e){return e.shapeFlag&128?e.ssContent:e}function SS(e,t,r=Zn,n=!1){if(r){const o=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(r.isUnmounted)return;ep(),Vc(r);const s=Ya(t,r,e,i);return Bc(),tp(),s});return n?o.unshift(a):o.push(a),a}}const Cu=e=>(t,r=Zn)=>(!_v||e==="sp")&&SS(e,(...n)=>t(...n),r),Su=Cu("bm"),yr=Cu("m"),_S=Cu("bu"),py=Cu("u"),Hr=Cu("bum"),SA=Cu("um"),kK=Cu("sp"),LK=Cu("rtg"),OK=Cu("rtc");function $K(e,t=Zn){SS("ec",e,t)}const vk="components",lAe="directives";function iA(e,t){return pk(vk,e,!0,t)||e}const UK=Symbol.for("v-ndc");function uAe(e){return Sn(e)?pk(vk,e,!1)||e:e||UK}function cAe(e){return pk(lAe,e)}function pk(e,t,r=!0,n=!1){const o=bo||Zn;if(o){const a=o.type;if(e===vk){const s=FR(a,!1);if(s&&(s===t||s===Ba(t)||s===fy(Ba(t))))return a}const i=v3(o[e]||a[e],t)||v3(o.appContext[e],t);return!i&&n?a:i}}function v3(e,t){return e&&(e[t]||e[Ba(t)]||e[fy(Ba(t))])}function NK(e,t,r,n){let o;const a=r&&r[n];if(Mt(e)||Sn(e)){o=new Array(e.length);for(let i=0,s=e.length;i<s;i++)o[i]=t(e[i],i,void 0,a&&a[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,a&&a[i])}else if(on(e))if(e[Symbol.iterator])o=Array.from(e,(i,s)=>t(i,s,void 0,a&&a[s]));else{const i=Object.keys(e);o=new Array(i.length);for(let s=0,l=i.length;s<l;s++){const u=i[s];o[s]=t(e[u],u,s,a&&a[s])}}else o=[];return r&&(r[n]=o),o}function dAe(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(Mt(n))for(let o=0;o<n.length;o++)e[n[o].name]=n[o].fn;else n&&(e[n.name]=n.key?(...o)=>{const a=n.fn(...o);return a&&(a.key=n.key),a}:n.fn)}return e}function gy(e,t,r={},n,o){if(bo.isCE||bo.parent&&Nf(bo.parent)&&bo.parent.isCE)return t!=="default"&&(r.name=t),ur("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),jo();const i=a&&HK(a(r)),s=op(lr,{key:r.key||i&&i.key||`_${t}`},i||(n?n():[]),i&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function HK(e){return e.some(t=>cu(t)?!(t.type===fo||t.type===lr&&!HK(t.children)):!0)?e:null}function fAe(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:v0(n)]=e[n];return r}const _R=e=>e?aj(e)?TS(e)||e.proxy:_R(e.parent):null,p0=vn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_R(e.parent),$root:e=>_R(e.root),$emit:e=>e.emit,$options:e=>gk(e),$forceUpdate:e=>e.f||(e.f=()=>yS(e.update)),$nextTick:e=>e.n||(e.n=dr.bind(e.proxy)),$watch:e=>rAe.bind(e)}),VB=(e,t)=>e!==rn&&!e.__isScriptSetup&&$r(e,t),BR={get({_:e},t){const{ctx:r,setupState:n,data:o,props:a,accessCache:i,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const A=i[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(VB(n,t))return i[t]=1,n[t];if(o!==rn&&$r(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&$r(u,t))return i[t]=3,a[t];if(r!==rn&&$r(r,t))return i[t]=4,r[t];TR&&(i[t]=0)}}const c=p0[t];let d,f;if(c)return t==="$attrs"&&Ea(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==rn&&$r(r,t))return i[t]=4,r[t];if(f=l.config.globalProperties,$r(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:a}=e;return VB(o,t)?(o[t]=r,!0):n!==rn&&$r(n,t)?(n[t]=r,!0):$r(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:a}},i){let s;return!!r[i]||e!==rn&&$r(e,i)||VB(t,i)||(s=a[0])&&$r(s,i)||$r(n,i)||$r(p0,i)||$r(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:$r(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},AAe=vn({},BR,{get(e,t){if(t!==Symbol.unscopables)return BR.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Ude(t)}});function hAe(){return null}function vAe(){return null}function pAe(e){}function gAe(e){}function mAe(){return null}function yAe(){}function bAe(e,t){return null}function xAe(){return zK().slots}function wAe(){return zK().attrs}function CAe(e,t,r){const n=Co();if(r&&r.local){const o=q(e[t]);return gt(()=>e[t],a=>o.value=a),gt(o,a=>{a!==e[t]&&n.emit(`update:${t}`,a)}),o}else return{__v_isRef:!0,get value(){return e[t]},set value(o){n.emit(`update:${t}`,o)}}}function zK(){const e=Co();return e.setupContext||(e.setupContext=lj(e))}function sm(e){return Mt(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function SAe(e,t){const r=sm(e);for(const n in t){if(n.startsWith("__skip"))continue;let o=r[n];o?Mt(o)||nr(o)?o=r[n]={type:o,default:t[n]}:o.default=t[n]:o===null&&(o=r[n]={default:t[n]}),o&&t[`__skip_${n}`]&&(o.skipFactory=!0)}return r}function _Ae(e,t){return!e||!t?e||t:Mt(e)&&Mt(t)?e.concat(t):vn({},sm(e),sm(t))}function BAe(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function TAe(e){const t=Co();let r=e();return Bc(),qF(r)&&(r=r.catch(n=>{throw Vc(t),n})),[r,()=>Vc(t)]}let TR=!0;function EAe(e){const t=gk(e),r=e.proxy,n=e.ctx;TR=!1,t.beforeCreate&&p3(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:A,updated:h,activated:v,deactivated:p,beforeDestroy:g,beforeUnmount:m,destroyed:y,unmounted:b,render:x,renderTracked:w,renderTriggered:C,errorCaptured:_,serverPrefetch:B,expose:T,inheritAttrs:E,components:I,directives:R,filters:D}=t;if(u&&IAe(u,n,null),i)for(const $ in i){const O=i[$];nr(O)&&(n[$]=O.bind(r))}if(o){const $=o.call(r,r);on($)&&(e.data=Ni($))}if(TR=!0,a)for(const $ in a){const O=a[$],Q=nr(O)?O.bind(r,r):nr(O.get)?O.get.bind(r,r):fs,V=!nr(O)&&nr(O.set)?O.set.bind(r):fs,W=L({get:Q,set:V});Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>W.value,set:Z=>W.value=Z})}if(s)for(const $ in s)QK(s[$],n,r,$);if(l){const $=nr(l)?l.call(r):l;Reflect.ownKeys($).forEach(O=>{_t(O,$[O])})}c&&p3(c,e,"c");function M($,O){Mt(O)?O.forEach(Q=>$(Q.bind(r))):O&&$(O.bind(r))}if(M(Su,d),M(yr,f),M(_S,A),M(py,h),M(CS,v),M(rp,p),M($K,_),M(OK,w),M(LK,C),M(Hr,m),M(SA,b),M(kK,B),Mt(T))if(T.length){const $=e.exposed||(e.exposed={});T.forEach(O=>{Object.defineProperty($,O,{get:()=>r[O],set:Q=>r[O]=Q})})}else e.exposed||(e.exposed={});x&&e.render===fs&&(e.render=x),E!=null&&(e.inheritAttrs=E),I&&(e.components=I),R&&(e.directives=R)}function IAe(e,t,r=fs){Mt(e)&&(e=ER(e));for(const n in e){const o=e[n];let a;on(o)?"default"in o?a=Ke(o.from||n,o.default,!0):a=Ke(o.from||n):a=Ke(o),En(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[n]=a}}function p3(e,t,r){Ya(Mt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function QK(e,t,r,n){const o=n.includes(".")?DK(r,n):()=>r[n];if(Sn(e)){const a=t[e];nr(a)&&gt(o,a)}else if(nr(e))gt(o,e.bind(r));else if(on(e))if(Mt(e))e.forEach(a=>QK(a,t,r,n));else{const a=nr(e.handler)?e.handler.bind(r):t[e.handler];nr(a)&&gt(o,a,e)}}function gk(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>bw(l,u,i,!0)),bw(l,t,i)),on(t)&&a.set(t,l),l}function bw(e,t,r,n=!1){const{mixins:o,extends:a}=t;a&&bw(e,a,r,!0),o&&o.forEach(i=>bw(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const s=RAe[i]||r&&r[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const RAe={data:g3,props:m3,emits:m3,methods:zg,computed:zg,beforeCreate:Jo,created:Jo,beforeMount:Jo,mounted:Jo,beforeUpdate:Jo,updated:Jo,beforeDestroy:Jo,beforeUnmount:Jo,destroyed:Jo,unmounted:Jo,activated:Jo,deactivated:Jo,errorCaptured:Jo,serverPrefetch:Jo,components:zg,directives:zg,watch:MAe,provide:g3,inject:DAe};function g3(e,t){return t?e?function(){return vn(nr(e)?e.call(this,this):e,nr(t)?t.call(this,this):t)}:t:e}function DAe(e,t){return zg(ER(e),ER(t))}function ER(e){if(Mt(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Jo(e,t){return e?[...new Set([].concat(e,t))]:t}function zg(e,t){return e?vn(Object.create(null),e,t):t}function m3(e,t){return e?Mt(e)&&Mt(t)?[...new Set([...e,...t])]:vn(Object.create(null),sm(e),sm(t!=null?t:{})):t}function MAe(e,t){if(!e)return t;if(!t)return e;const r=vn(Object.create(null),e);for(const n in t)r[n]=Jo(e[n],t[n]);return r}function VK(){return{app:null,config:{isNativeTag:Dde,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let PAe=0;function FAe(e,t){return function(n,o=null){nr(n)||(n=vn({},n)),o!=null&&!on(o)&&(o=null);const a=VK(),i=new Set;let s=!1;const l=a.app={_uid:PAe++,_component:n,_props:o,_container:null,_context:a,_instance:null,version:fj,get config(){return a.config},set config(u){},use(u,...c){return i.has(u)||(u&&nr(u.install)?(i.add(u),u.install(l,...c)):nr(u)&&(i.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,d){if(!s){const f=ur(n,o);return f.appContext=a,c&&t?t(f,u):e(f,u,d),s=!0,l._container=u,u.__vue_app__=l,TS(f.component)||f.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l},runWithContext(u){lm=l;try{return u()}finally{lm=null}}};return l}}let lm=null;function _t(e,t){if(Zn){let r=Zn.provides;const n=Zn.parent&&Zn.parent.provides;n===r&&(r=Zn.provides=Object.create(n)),r[e]=t}}function Ke(e,t,r=!1){const n=Zn||bo;if(n||lm){const o=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:lm._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return r&&nr(t)?t.call(n&&n.proxy):t}}function kAe(){return!!(Zn||bo||lm)}function LAe(e,t,r,n=!1){const o={},a={};vw(a,BS,1),e.propsDefaults=Object.create(null),WK(e,t,o,a);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:gK(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function OAe(e,t,r,n){const{props:o,attrs:a,vnode:{patchFlag:i}}=e,s=Rr(o),[l]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(bS(e.emitsOptions,f))continue;const A=t[f];if(l)if($r(a,f))A!==a[f]&&(a[f]=A,u=!0);else{const h=Ba(f);o[h]=IR(l,s,h,A,e,!1)}else A!==a[f]&&(a[f]=A,u=!0)}}}else{WK(e,t,o,a)&&(u=!0);let c;for(const d in s)(!t||!$r(t,d)&&((c=Ci(d))===d||!$r(t,c)))&&(l?r&&(r[d]!==void 0||r[c]!==void 0)&&(o[d]=IR(l,s,d,void 0,e,!0)):delete o[d]);if(a!==s)for(const d in a)(!t||!$r(t,d))&&(delete a[d],u=!0)}u&&lu(e,"set","$attrs")}function WK(e,t,r,n){const[o,a]=e.propsOptions;let i=!1,s;if(t)for(let l in t){if(h0(l))continue;const u=t[l];let c;o&&$r(o,c=Ba(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:bS(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,i=!0)}if(a){const l=Rr(r),u=s||rn;for(let c=0;c<a.length;c++){const d=a[c];r[d]=IR(o,l,d,u[d],e,!$r(u,d))}}return i}function IR(e,t,r,n,o,a){const i=e[r];if(i!=null){const s=$r(i,"default");if(s&&n===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&nr(l)){const{propsDefaults:u}=o;r in u?n=u[r]:(Vc(o),n=u[r]=l.call(null,t),Bc())}else n=l}i[0]&&(a&&!s?n=!1:i[1]&&(n===""||n===Ci(r))&&(n=!0))}return n}function GK(e,t,r=!1){const n=t.propsCache,o=n.get(e);if(o)return o;const a=e.props,i={},s=[];let l=!1;if(!nr(e)){const c=d=>{l=!0;const[f,A]=GK(d,t,!0);vn(i,f),A&&s.push(...A)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return on(e)&&n.set(e,ov),ov;if(Mt(a))for(let c=0;c<a.length;c++){const d=Ba(a[c]);y3(d)&&(i[d]=rn)}else if(a)for(const c in a){const d=Ba(c);if(y3(d)){const f=a[c],A=i[d]=Mt(f)||nr(f)?{type:f}:vn({},f);if(A){const h=w3(Boolean,A.type),v=w3(String,A.type);A[0]=h>-1,A[1]=v<0||h<v,(h>-1||$r(A,"default"))&&s.push(d)}}}const u=[i,s];return on(e)&&n.set(e,u),u}function y3(e){return e[0]!=="$"}function b3(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function x3(e,t){return b3(e)===b3(t)}function w3(e,t){return Mt(t)?t.findIndex(r=>x3(r,e)):nr(t)&&x3(t,e)?0:-1}const KK=e=>e[0]==="_"||e==="$stable",mk=e=>Mt(e)?e.map(Na):[Na(e)],$Ae=(e,t,r)=>{if(t._n)return t;const n=Kl((...o)=>mk(t(...o)),r);return n._c=!1,n},jK=(e,t,r)=>{const n=e._ctx;for(const o in e){if(KK(o))continue;const a=e[o];if(nr(a))t[o]=$Ae(o,a,n);else if(a!=null){const i=mk(a);t[o]=()=>i}}},YK=(e,t)=>{const r=mk(t);e.slots.default=()=>r},UAe=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Rr(t),vw(t,"_",r)):jK(t,e.slots={})}else e.slots={},t&&YK(e,t);vw(e.slots,BS,1)},NAe=(e,t,r)=>{const{vnode:n,slots:o}=e;let a=!0,i=rn;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(vn(o,t),!r&&s===1&&delete o._):(a=!t.$stable,jK(t,o)),i=t}else t&&(YK(e,t),i={default:1});if(a)for(const s in o)!KK(s)&&!(s in i)&&delete o[s]};function xw(e,t,r,n,o=!1){if(Mt(e)){e.forEach((f,A)=>xw(f,t&&(Mt(t)?t[A]:t),r,n,o));return}if(Nf(n)&&!o)return;const a=n.shapeFlag&4?TS(n.component)||n.component.proxy:n.el,i=o?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===rn?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Sn(u)?(c[u]=null,$r(d,u)&&(d[u]=null)):En(u)&&(u.value=null)),nr(l))eu(l,s,12,[i,c]);else{const f=Sn(l),A=En(l);if(f||A){const h=()=>{if(e.f){const v=f?$r(d,l)?d[l]:c[l]:l.value;o?Mt(v)&&XF(v,a):Mt(v)?v.includes(a)||v.push(a):f?(c[l]=[a],$r(d,l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else f?(c[l]=i,$r(d,l)&&(d[l]=i)):A&&(l.value=i,e.k&&(c[e.k]=i))};i?(h.id=-1,Eo(h,r)):h()}}}let Ou=!1;const bb=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",xb=e=>e.nodeType===8;function HAe(e){const{mt:t,p:r,o:{patchProp:n,createText:o,nextSibling:a,parentNode:i,remove:s,insert:l,createComment:u}}=e,c=(g,m)=>{if(!m.hasChildNodes()){r(null,g,m),yw(),m._vnode=g;return}Ou=!1,d(m.firstChild,g,null,null,null),yw(),m._vnode=g,Ou&&console.error("Hydration completed but contains mismatches.")},d=(g,m,y,b,x,w=!1)=>{const C=xb(g)&&g.data==="[",_=()=>v(g,m,y,b,x,C),{type:B,ref:T,shapeFlag:E,patchFlag:I}=m;let R=g.nodeType;m.el=g,I===-2&&(w=!1,m.dynamicChildren=null);let D=null;switch(B){case sA:R!==3?m.children===""?(l(m.el=o(""),i(g),g),D=g):D=_():(g.data!==m.children&&(Ou=!0,g.data=m.children),D=a(g));break;case fo:R!==8||C?D=_():D=a(g);break;case Hf:if(C&&(g=a(g),R=g.nodeType),R===1||R===3){D=g;const F=!m.children.length;for(let M=0;M<m.staticCount;M++)F&&(m.children+=D.nodeType===1?D.outerHTML:D.data),M===m.staticCount-1&&(m.anchor=D),D=a(D);return C?a(D):D}else _();break;case lr:C?D=h(g,m,y,b,x,w):D=_();break;default:if(E&1)R!==1||m.type.toLowerCase()!==g.tagName.toLowerCase()?D=_():D=f(g,m,y,b,x,w);else if(E&6){m.slotScopeIds=x;const F=i(g);if(t(m,F,null,y,b,bb(F),w),D=C?p(g):a(g),D&&xb(D)&&D.data==="teleport end"&&(D=a(D)),Nf(m)){let M;C?(M=ur(lr),M.anchor=D?D.previousSibling:F.lastChild):M=g.nodeType===3?du(""):ur("div"),M.el=g,m.component.subTree=M}}else E&64?R!==8?D=_():D=m.type.hydrate(g,m,y,b,x,w,e,A):E&128&&(D=m.type.hydrate(g,m,y,b,bb(i(g)),x,w,e,d))}return T!=null&&xw(T,null,b,m),D},f=(g,m,y,b,x,w)=>{w=w||!!m.dynamicChildren;const{type:C,props:_,patchFlag:B,shapeFlag:T,dirs:E}=m,I=C==="input"&&E||C==="option";if(I||B!==-1){if(E&&zs(m,null,y,"created"),_)if(I||!w||B&48)for(const D in _)(I&&D.endsWith("value")||dy(D)&&!h0(D))&&n(g,D,null,_[D],!1,void 0,y);else _.onClick&&n(g,"onClick",null,_.onClick,!1,void 0,y);let R;if((R=_&&_.onVnodeBeforeMount)&&pa(R,y,m),E&&zs(m,null,y,"beforeMount"),((R=_&&_.onVnodeMounted)||E)&&IK(()=>{R&&pa(R,y,m),E&&zs(m,null,y,"mounted")},b),T&16&&!(_&&(_.innerHTML||_.textContent))){let D=A(g.firstChild,m,g,y,b,x,w);for(;D;){Ou=!0;const F=D;D=D.nextSibling,s(F)}}else T&8&&g.textContent!==m.children&&(Ou=!0,g.textContent=m.children)}return g.nextSibling},A=(g,m,y,b,x,w,C)=>{C=C||!!m.dynamicChildren;const _=m.children,B=_.length;for(let T=0;T<B;T++){const E=C?_[T]:_[T]=Na(_[T]);if(g)g=d(g,E,b,x,w,C);else{if(E.type===sA&&!E.children)continue;Ou=!0,r(null,E,y,null,b,x,bb(y),w)}}return g},h=(g,m,y,b,x,w)=>{const{slotScopeIds:C}=m;C&&(x=x?x.concat(C):C);const _=i(g),B=A(a(g),m,_,y,b,x,w);return B&&xb(B)&&B.data==="]"?a(m.anchor=B):(Ou=!0,l(m.anchor=u("]"),_,B),B)},v=(g,m,y,b,x,w)=>{if(Ou=!0,m.el=null,w){const B=p(g);for(;;){const T=a(g);if(T&&T!==B)s(T);else break}}const C=a(g),_=i(g);return s(g),r(null,m,_,C,y,b,bb(_),x),C},p=g=>{let m=0;for(;g;)if(g=a(g),g&&xb(g)&&(g.data==="["&&m++,g.data==="]")){if(m===0)return a(g);m--}return g};return[c,d]}const Eo=IK;function XK(e){return ZK(e)}function qK(e){return ZK(e,HAe)}function ZK(e,t){const r=bR();r.__VUE__=!0;const{insert:n,remove:o,patchProp:a,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:A=fs,insertStaticContent:h}=e,v=(K,U,k,J=null,ee=null,H=null,Y=!1,oe=null,he=!!U.dynamicChildren)=>{if(K===U)return;K&&!ls(K,U)&&(J=se(K),Z(K,ee,H,!0),K=null),U.patchFlag===-2&&(he=!1,U.dynamicChildren=null);const{type:ne,ref:Ae,shapeFlag:X}=U;switch(ne){case sA:p(K,U,k,J);break;case fo:g(K,U,k,J);break;case Hf:K==null&&m(U,k,J,Y);break;case lr:I(K,U,k,J,ee,H,Y,oe,he);break;default:X&1?x(K,U,k,J,ee,H,Y,oe,he):X&6?R(K,U,k,J,ee,H,Y,oe,he):(X&64||X&128)&&ne.process(K,U,k,J,ee,H,Y,oe,he,be)}Ae!=null&&ee&&xw(Ae,K&&K.ref,H,U||K,!U)},p=(K,U,k,J)=>{if(K==null)n(U.el=s(U.children),k,J);else{const ee=U.el=K.el;U.children!==K.children&&u(ee,U.children)}},g=(K,U,k,J)=>{K==null?n(U.el=l(U.children||""),k,J):U.el=K.el},m=(K,U,k,J)=>{[K.el,K.anchor]=h(K.children,U,k,J,K.el,K.anchor)},y=({el:K,anchor:U},k,J)=>{let ee;for(;K&&K!==U;)ee=f(K),n(K,k,J),K=ee;n(U,k,J)},b=({el:K,anchor:U})=>{let k;for(;K&&K!==U;)k=f(K),o(K),K=k;o(U)},x=(K,U,k,J,ee,H,Y,oe,he)=>{Y=Y||U.type==="svg",K==null?w(U,k,J,ee,H,Y,oe,he):B(K,U,ee,H,Y,oe,he)},w=(K,U,k,J,ee,H,Y,oe)=>{let he,ne;const{type:Ae,props:X,shapeFlag:ie,transition:fe,dirs:ye}=K;if(he=K.el=i(K.type,H,X&&X.is,X),ie&8?c(he,K.children):ie&16&&_(K.children,he,null,J,ee,H&&Ae!=="foreignObject",Y,oe),ye&&zs(K,null,J,"created"),C(he,K,K.scopeId,Y,J),X){for(const Ne in X)Ne!=="value"&&!h0(Ne)&&a(he,Ne,null,X[Ne],H,K.children,J,ee,le);"value"in X&&a(he,"value",null,X.value),(ne=X.onVnodeBeforeMount)&&pa(ne,J,K)}ye&&zs(K,null,J,"beforeMount");const Fe=(!ee||ee&&!ee.pendingBranch)&&fe&&!fe.persisted;Fe&&fe.beforeEnter(he),n(he,U,k),((ne=X&&X.onVnodeMounted)||Fe||ye)&&Eo(()=>{ne&&pa(ne,J,K),Fe&&fe.enter(he),ye&&zs(K,null,J,"mounted")},ee)},C=(K,U,k,J,ee)=>{if(k&&A(K,k),J)for(let H=0;H<J.length;H++)A(K,J[H]);if(ee){let H=ee.subTree;if(U===H){const Y=ee.vnode;C(K,Y,Y.scopeId,Y.slotScopeIds,ee.parent)}}},_=(K,U,k,J,ee,H,Y,oe,he=0)=>{for(let ne=he;ne<K.length;ne++){const Ae=K[ne]=oe?ic(K[ne]):Na(K[ne]);v(null,Ae,U,k,J,ee,H,Y,oe)}},B=(K,U,k,J,ee,H,Y)=>{const oe=U.el=K.el;let{patchFlag:he,dynamicChildren:ne,dirs:Ae}=U;he|=K.patchFlag&16;const X=K.props||rn,ie=U.props||rn;let fe;k&&Td(k,!1),(fe=ie.onVnodeBeforeUpdate)&&pa(fe,k,U,K),Ae&&zs(U,K,k,"beforeUpdate"),k&&Td(k,!0);const ye=ee&&U.type!=="foreignObject";if(ne?T(K.dynamicChildren,ne,oe,k,J,ye,H):Y||O(K,U,oe,null,k,J,ye,H,!1),he>0){if(he&16)E(oe,U,X,ie,k,J,ee);else if(he&2&&X.class!==ie.class&&a(oe,"class",null,ie.class,ee),he&4&&a(oe,"style",X.style,ie.style,ee),he&8){const Fe=U.dynamicProps;for(let Ne=0;Ne<Fe.length;Ne++){const rt=Fe[Ne],lt=X[rt],mt=ie[rt];(mt!==lt||rt==="value")&&a(oe,rt,lt,mt,ee,K.children,k,J,le)}}he&1&&K.children!==U.children&&c(oe,U.children)}else!Y&&ne==null&&E(oe,U,X,ie,k,J,ee);((fe=ie.onVnodeUpdated)||Ae)&&Eo(()=>{fe&&pa(fe,k,U,K),Ae&&zs(U,K,k,"updated")},J)},T=(K,U,k,J,ee,H,Y)=>{for(let oe=0;oe<U.length;oe++){const he=K[oe],ne=U[oe],Ae=he.el&&(he.type===lr||!ls(he,ne)||he.shapeFlag&70)?d(he.el):k;v(he,ne,Ae,null,J,ee,H,Y,!0)}},E=(K,U,k,J,ee,H,Y)=>{if(k!==J){if(k!==rn)for(const oe in k)!h0(oe)&&!(oe in J)&&a(K,oe,k[oe],null,Y,U.children,ee,H,le);for(const oe in J){if(h0(oe))continue;const he=J[oe],ne=k[oe];he!==ne&&oe!=="value"&&a(K,oe,ne,he,Y,U.children,ee,H,le)}"value"in J&&a(K,"value",k.value,J.value)}},I=(K,U,k,J,ee,H,Y,oe,he)=>{const ne=U.el=K?K.el:s(""),Ae=U.anchor=K?K.anchor:s("");let{patchFlag:X,dynamicChildren:ie,slotScopeIds:fe}=U;fe&&(oe=oe?oe.concat(fe):fe),K==null?(n(ne,k,J),n(Ae,k,J),_(U.children,k,Ae,ee,H,Y,oe,he)):X>0&&X&64&&ie&&K.dynamicChildren?(T(K.dynamicChildren,ie,k,ee,H,Y,oe),(U.key!=null||ee&&U===ee.subTree)&&yk(K,U,!0)):O(K,U,k,Ae,ee,H,Y,oe,he)},R=(K,U,k,J,ee,H,Y,oe,he)=>{U.slotScopeIds=oe,K==null?U.shapeFlag&512?ee.ctx.activate(U,k,J,Y,he):D(U,k,J,ee,H,Y,he):F(K,U,he)},D=(K,U,k,J,ee,H,Y)=>{const oe=K.component=oj(K,J,ee);if(vy(K)&&(oe.ctx.renderer=be),ij(oe),oe.asyncDep){if(ee&&ee.registerDep(oe,M),!K.el){const he=oe.subTree=ur(fo);g(null,he,U,k)}return}M(oe,K,U,k,ee,H,Y)},F=(K,U,k)=>{const J=U.component=K.component;if(Kfe(K,U,k))if(J.asyncDep&&!J.asyncResolved){$(J,U,k);return}else J.next=U,Nfe(J.update),J.update();else U.el=K.el,J.vnode=U},M=(K,U,k,J,ee,H,Y)=>{const oe=()=>{if(K.isMounted){let{next:Ae,bu:X,u:ie,parent:fe,vnode:ye}=K,Fe=Ae,Ne;Td(K,!1),Ae?(Ae.el=ye.el,$(K,Ae,Y)):Ae=ye,X&&iv(X),(Ne=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&pa(Ne,fe,Ae,ye),Td(K,!0);const rt=Rx(K),lt=K.subTree;K.subTree=rt,v(lt,rt,d(lt.el),se(lt),K,ee,H),Ae.el=rt.el,Fe===null&&dk(K,rt.el),ie&&Eo(ie,ee),(Ne=Ae.props&&Ae.props.onVnodeUpdated)&&Eo(()=>pa(Ne,fe,Ae,ye),ee)}else{let Ae;const{el:X,props:ie}=U,{bm:fe,m:ye,parent:Fe}=K,Ne=Nf(U);if(Td(K,!1),fe&&iv(fe),!Ne&&(Ae=ie&&ie.onVnodeBeforeMount)&&pa(Ae,Fe,U),Td(K,!0),X&&pe){const rt=()=>{K.subTree=Rx(K),pe(X,K.subTree,K,ee,null)};Ne?U.type.__asyncLoader().then(()=>!K.isUnmounted&&rt()):rt()}else{const rt=K.subTree=Rx(K);v(null,rt,k,J,K,ee,H),U.el=rt.el}if(ye&&Eo(ye,ee),!Ne&&(Ae=ie&&ie.onVnodeMounted)){const rt=U;Eo(()=>pa(Ae,Fe,rt),ee)}(U.shapeFlag&256||Fe&&Nf(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&K.a&&Eo(K.a,ee),K.isMounted=!0,U=k=J=null}},he=K.effect=new Ay(oe,()=>yS(ne),K.scope),ne=K.update=()=>he.run();ne.id=K.uid,Td(K,!0),ne()},$=(K,U,k)=>{U.component=K;const J=K.vnode.props;K.vnode=U,K.next=null,OAe(K,U.props,J,k),NAe(K,U.children,k),ep(),d3(),tp()},O=(K,U,k,J,ee,H,Y,oe,he=!1)=>{const ne=K&&K.children,Ae=K?K.shapeFlag:0,X=U.children,{patchFlag:ie,shapeFlag:fe}=U;if(ie>0){if(ie&128){V(ne,X,k,J,ee,H,Y,oe,he);return}else if(ie&256){Q(ne,X,k,J,ee,H,Y,oe,he);return}}fe&8?(Ae&16&&le(ne,ee,H),X!==ne&&c(k,X)):Ae&16?fe&16?V(ne,X,k,J,ee,H,Y,oe,he):le(ne,ee,H,!0):(Ae&8&&c(k,""),fe&16&&_(X,k,J,ee,H,Y,oe,he))},Q=(K,U,k,J,ee,H,Y,oe,he)=>{K=K||ov,U=U||ov;const ne=K.length,Ae=U.length,X=Math.min(ne,Ae);let ie;for(ie=0;ie<X;ie++){const fe=U[ie]=he?ic(U[ie]):Na(U[ie]);v(K[ie],fe,k,null,ee,H,Y,oe,he)}ne>Ae?le(K,ee,H,!0,!1,X):_(U,k,J,ee,H,Y,oe,he,X)},V=(K,U,k,J,ee,H,Y,oe,he)=>{let ne=0;const Ae=U.length;let X=K.length-1,ie=Ae-1;for(;ne<=X&&ne<=ie;){const fe=K[ne],ye=U[ne]=he?ic(U[ne]):Na(U[ne]);if(ls(fe,ye))v(fe,ye,k,null,ee,H,Y,oe,he);else break;ne++}for(;ne<=X&&ne<=ie;){const fe=K[X],ye=U[ie]=he?ic(U[ie]):Na(U[ie]);if(ls(fe,ye))v(fe,ye,k,null,ee,H,Y,oe,he);else break;X--,ie--}if(ne>X){if(ne<=ie){const fe=ie+1,ye=fe<Ae?U[fe].el:J;for(;ne<=ie;)v(null,U[ne]=he?ic(U[ne]):Na(U[ne]),k,ye,ee,H,Y,oe,he),ne++}}else if(ne>ie)for(;ne<=X;)Z(K[ne],ee,H,!0),ne++;else{const fe=ne,ye=ne,Fe=new Map;for(ne=ye;ne<=ie;ne++){const Ye=U[ne]=he?ic(U[ne]):Na(U[ne]);Ye.key!=null&&Fe.set(Ye.key,ne)}let Ne,rt=0;const lt=ie-ye+1;let mt=!1,Ge=0;const it=new Array(lt);for(ne=0;ne<lt;ne++)it[ne]=0;for(ne=fe;ne<=X;ne++){const Ye=K[ne];if(rt>=lt){Z(Ye,ee,H,!0);continue}let ue;if(Ye.key!=null)ue=Fe.get(Ye.key);else for(Ne=ye;Ne<=ie;Ne++)if(it[Ne-ye]===0&&ls(Ye,U[Ne])){ue=Ne;break}ue===void 0?Z(Ye,ee,H,!0):(it[ue-ye]=ne+1,ue>=Ge?Ge=ue:mt=!0,v(Ye,U[ue],k,null,ee,H,Y,oe,he),rt++)}const je=mt?zAe(it):ov;for(Ne=je.length-1,ne=lt-1;ne>=0;ne--){const Ye=ye+ne,ue=U[Ye],Ee=Ye+1<Ae?U[Ye+1].el:J;it[ne]===0?v(null,ue,k,Ee,ee,H,Y,oe,he):mt&&(Ne<0||ne!==je[Ne]?W(ue,k,Ee,2):Ne--)}}},W=(K,U,k,J,ee=null)=>{const{el:H,type:Y,transition:oe,children:he,shapeFlag:ne}=K;if(ne&6){W(K.component.subTree,U,k,J);return}if(ne&128){K.suspense.move(U,k,J);return}if(ne&64){Y.move(K,U,k,be);return}if(Y===lr){n(H,U,k);for(let X=0;X<he.length;X++)W(he[X],U,k,J);n(K.anchor,U,k);return}if(Y===Hf){y(K,U,k);return}if(J!==2&&ne&1&&oe)if(J===0)oe.beforeEnter(H),n(H,U,k),Eo(()=>oe.enter(H),ee);else{const{leave:X,delayLeave:ie,afterLeave:fe}=oe,ye=()=>n(H,U,k),Fe=()=>{X(H,()=>{ye(),fe&&fe()})};ie?ie(H,ye,Fe):Fe()}else n(H,U,k)},Z=(K,U,k,J=!1,ee=!1)=>{const{type:H,props:Y,ref:oe,children:he,dynamicChildren:ne,shapeFlag:Ae,patchFlag:X,dirs:ie}=K;if(oe!=null&&xw(oe,null,k,K,!0),Ae&256){U.ctx.deactivate(K);return}const fe=Ae&1&&ie,ye=!Nf(K);let Fe;if(ye&&(Fe=Y&&Y.onVnodeBeforeUnmount)&&pa(Fe,U,K),Ae&6)re(K.component,k,J);else{if(Ae&128){K.suspense.unmount(k,J);return}fe&&zs(K,null,U,"beforeUnmount"),Ae&64?K.type.remove(K,U,k,ee,be,J):ne&&(H!==lr||X>0&&X&64)?le(ne,U,k,!1,!0):(H===lr&&X&384||!ee&&Ae&16)&&le(he,U,k),J&&te(K)}(ye&&(Fe=Y&&Y.onVnodeUnmounted)||fe)&&Eo(()=>{Fe&&pa(Fe,U,K),fe&&zs(K,null,U,"unmounted")},k)},te=K=>{const{type:U,el:k,anchor:J,transition:ee}=K;if(U===lr){ae(k,J);return}if(U===Hf){b(K);return}const H=()=>{o(k),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(K.shapeFlag&1&&ee&&!ee.persisted){const{leave:Y,delayLeave:oe}=ee,he=()=>Y(k,H);oe?oe(K.el,H,he):he()}else H()},ae=(K,U)=>{let k;for(;K!==U;)k=f(K),o(K),K=k;o(U)},re=(K,U,k)=>{const{bum:J,scope:ee,update:H,subTree:Y,um:oe}=K;J&&iv(J),ee.stop(),H&&(H.active=!1,Z(Y,K,U,k)),oe&&Eo(oe,U),Eo(()=>{K.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&K.asyncDep&&!K.asyncResolved&&K.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},le=(K,U,k,J=!1,ee=!1,H=0)=>{for(let Y=H;Y<K.length;Y++)Z(K[Y],U,k,J,ee)},se=K=>K.shapeFlag&6?se(K.component.subTree):K.shapeFlag&128?K.suspense.next():f(K.anchor||K.el),ce=(K,U,k)=>{K==null?U._vnode&&Z(U._vnode,null,null,!0):v(U._vnode||null,K,U,null,null,null,k),d3(),yw(),U._vnode=K},be={p:v,um:Z,m:W,r:te,mt:D,mc:_,pc:O,pbc:T,n:se,o:e};let de,pe;return t&&([de,pe]=t(be)),{render:ce,hydrate:de,createApp:FAe(ce,de)}}function Td({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function yk(e,t,r=!1){const n=e.children,o=t.children;if(Mt(n)&&Mt(o))for(let a=0;a<n.length;a++){const i=n[a];let s=o[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[a]=ic(o[a]),s.el=i.el),r||yk(i,s)),s.type===sA&&(s.el=i.el)}}function zAe(e){const t=e.slice(),r=[0];let n,o,a,i,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(o=r[r.length-1],e[o]<u){t[n]=o,r.push(n);continue}for(a=0,i=r.length-1;a<i;)s=a+i>>1,e[r[s]]<u?a=s+1:i=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}const QAe=e=>e.__isTeleport,g0=e=>e&&(e.disabled||e.disabled===""),C3=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,RR=(e,t)=>{const r=e&&e.to;return Sn(r)?t?t(r):null:r},VAe={__isTeleport:!0,process(e,t,r,n,o,a,i,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:A,querySelector:h,createText:v,createComment:p}}=u,g=g0(t.props);let{shapeFlag:m,children:y,dynamicChildren:b}=t;if(e==null){const x=t.el=v(""),w=t.anchor=v("");A(x,r,n),A(w,r,n);const C=t.target=RR(t.props,h),_=t.targetAnchor=v("");C&&(A(_,C),i=i||C3(C));const B=(T,E)=>{m&16&&c(y,T,E,o,a,i,s,l)};g?B(r,w):C&&B(C,_)}else{t.el=e.el;const x=t.anchor=e.anchor,w=t.target=e.target,C=t.targetAnchor=e.targetAnchor,_=g0(e.props),B=_?r:w,T=_?x:C;if(i=i||C3(w),b?(f(e.dynamicChildren,b,B,o,a,i,s),yk(e,t,!0)):l||d(e,t,B,T,o,a,i,s,!1),g)_||wb(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=RR(t.props,h);E&&wb(t,E,null,u,0)}else _&&wb(t,w,C,u,1)}JK(t)},remove(e,t,r,n,{um:o,o:{remove:a}},i){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&a(c),(i||!g0(f))&&(a(u),s&16))for(let A=0;A<l.length;A++){const h=l[A];o(h,t,r,!0,!!h.dynamicChildren)}},move:wb,hydrate:WAe};function wb(e,t,r,{o:{insert:n},m:o},a=2){a===0&&n(e.targetAnchor,t,r);const{el:i,anchor:s,shapeFlag:l,children:u,props:c}=e,d=a===2;if(d&&n(i,t,r),(!d||g0(c))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,r,2);d&&n(s,t,r)}function WAe(e,t,r,n,o,a,{o:{nextSibling:i,parentNode:s,querySelector:l}},u){const c=t.target=RR(t.props,l);if(c){const d=c._lpa||c.firstChild;if(t.shapeFlag&16)if(g0(t.props))t.anchor=u(i(e),t,s(e),r,n,o,a),t.targetAnchor=d;else{t.anchor=i(e);let f=d;for(;f;)if(f=i(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,c._lpa=t.targetAnchor&&i(t.targetAnchor);break}u(d,t,c,r,n,o,a)}JK(t)}return t.anchor&&i(t.anchor)}const np=VAe;function JK(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const lr=Symbol.for("v-fgt"),sA=Symbol.for("v-txt"),fo=Symbol.for("v-cmt"),Hf=Symbol.for("v-stc"),m0=[];let Sa=null;function jo(e=!1){m0.push(Sa=e?null:[])}function ej(){m0.pop(),Sa=m0[m0.length-1]||null}let lA=1;function DR(e){lA+=e}function tj(e){return e.dynamicChildren=lA>0?Sa||ov:null,ej(),lA>0&&Sa&&Sa.push(e),e}function ll(e,t,r,n,o,a){return tj(Ta(e,t,r,n,o,a,!0))}function op(e,t,r,n,o){return tj(ur(e,t,r,n,o,!0))}function cu(e){return e?e.__v_isVNode===!0:!1}function ls(e,t){return e.type===t.type&&e.key===t.key}function GAe(e){}const BS="__vInternal",rj=({key:e})=>e!=null?e:null,Dx=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Sn(e)||En(e)||nr(e)?{i:bo,r:e,k:t,f:!!r}:e:null);function Ta(e,t=null,r=null,n=0,o=null,a=e===lr?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rj(t),ref:t&&Dx(t),scopeId:xS,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:bo};return s?(bk(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Sn(r)?8:16),lA>0&&!i&&Sa&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Sa.push(l),l}const ur=KAe;function KAe(e,t=null,r=null,n=0,o=null,a=!1){if((!e||e===UK)&&(e=fo),cu(e)){const s=Fo(e,t,!0);return r&&bk(s,r),lA>0&&!a&&Sa&&(s.shapeFlag&6?Sa[Sa.indexOf(e)]=s:Sa.push(s)),s.patchFlag|=-2,s}if(rhe(e)&&(e=e.__vccOpts),t){t=nj(t);let{class:s,style:l}=t;s&&!Sn(s)&&(t.class=wA(s)),on(l)&&(ok(l)&&!Mt(l)&&(l=vn({},l)),t.style=Mi(l))}const i=Sn(e)?1:EK(e)?128:QAe(e)?64:on(e)?4:nr(e)?2:0;return Ta(e,t,r,n,o,i,a,!0)}function nj(e){return e?ok(e)||BS in e?vn({},e):e:null}function Fo(e,t,r=!1){const{props:n,ref:o,patchFlag:a,children:i}=e,s=t?wn(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&rj(s),ref:t&&t.ref?r&&o?Mt(o)?o.concat(Dx(t)):[o,Dx(t)]:Dx(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==lr?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fo(e.ssContent),ssFallback:e.ssFallback&&Fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function du(e=" ",t=0){return ur(sA,null,e,t)}function jAe(e,t){const r=ur(Hf,null,e);return r.staticCount=t,r}function YAe(e="",t=!1){return t?(jo(),op(fo,null,e)):ur(fo,null,e)}function Na(e){return e==null||typeof e=="boolean"?ur(fo):Mt(e)?ur(lr,null,e.slice()):typeof e=="object"?ic(e):ur(sA,null,String(e))}function ic(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fo(e)}function bk(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Mt(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),bk(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(BS in t)?t._ctx=bo:o===3&&bo&&(bo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else nr(t)?(t={default:t,_ctx:bo},r=32):(t=String(t),n&64?(r=16,t=[du(t)]):r=8);e.children=t,e.shapeFlag|=r}function wn(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=wA([t.class,n.class]));else if(o==="style")t.style=Mi([t.style,n.style]);else if(dy(o)){const a=t[o],i=n[o];i&&a!==i&&!(Mt(a)&&a.includes(i))&&(t[o]=a?[].concat(a,i):i)}else o!==""&&(t[o]=n[o])}return t}function pa(e,t,r,n=null){Ya(e,t,7,[r,n])}const XAe=VK();let qAe=0;function oj(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||XAe,a={uid:qAe++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ek(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:GK(n,o),emitsOptions:_K(n,o),emit:null,emitted:null,propsDefaults:rn,inheritAttrs:n.inheritAttrs,ctx:rn,data:rn,props:rn,attrs:rn,slots:rn,refs:rn,setupState:rn,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=zfe.bind(null,a),e.ce&&e.ce(a),a}let Zn=null;const Co=()=>Zn||bo;let xk,GA,S3="__VUE_INSTANCE_SETTERS__";(GA=bR()[S3])||(GA=bR()[S3]=[]),GA.push(e=>Zn=e),xk=e=>{GA.length>1?GA.forEach(t=>t(e)):GA[0](e)};const Vc=e=>{xk(e),e.scope.on()},Bc=()=>{Zn&&Zn.scope.off(),xk(null)};function aj(e){return e.vnode.shapeFlag&4}let _v=!1;function ij(e,t=!1){_v=t;const{props:r,children:n}=e.vnode,o=aj(e);LAe(e,r,o,t),UAe(e,n);const a=o?ZAe(e,t):void 0;return _v=!1,a}function ZAe(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=uu(new Proxy(e.ctx,BR));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?lj(e):null;Vc(e),ep();const a=eu(n,e,0,[e.props,o]);if(tp(),Bc(),qF(a)){if(a.then(Bc,Bc),t)return a.then(i=>{MR(e,i,t)}).catch(i=>{CA(i,e,0)});e.asyncDep=a}else MR(e,a,t)}else sj(e,t)}function MR(e,t,r){nr(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:on(t)&&(e.setupState=sk(t)),sj(e,r)}let ww,PR;function JAe(e){ww=e,PR=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,AAe))}}const ehe=()=>!ww;function sj(e,t,r){const n=e.type;if(!e.render){if(!t&&ww&&!n.render){const o=n.template||gk(e).template;if(o){const{isCustomElement:a,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=vn(vn({isCustomElement:a,delimiters:s},i),l);n.render=ww(o,u)}}e.render=n.render||fs,PR&&PR(e)}Vc(e),ep(),EAe(e),tp(),Bc()}function the(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Ea(e,"get","$attrs"),t[r]}}))}function lj(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return the(e)},slots:e.slots,emit:e.emit,expose:t}}function TS(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sk(uu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in p0)return p0[r](e)},has(t,r){return r in t||r in p0}}))}function FR(e,t=!0){return nr(e)?e.displayName||e.name:e.name||t&&e.__name}function rhe(e){return nr(e)&&"__vccOpts"in e}const L=(e,t)=>kfe(e,t,_v);function S(e,t,r){const n=arguments.length;return n===2?on(t)&&!Mt(t)?cu(t)?ur(e,null,[t]):ur(e,t):ur(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&cu(r)&&(r=[r]),ur(e,t,r))}const uj=Symbol.for("v-scx"),cj=()=>Ke(uj);function nhe(){}function ohe(e,t,r,n){const o=r[n];if(o&&dj(o,e))return o;const a=t();return a.memo=e.slice(),r[n]=a}function dj(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Cv(r[n],t[n]))return!1;return lA>0&&Sa&&Sa.push(e),!0}const fj="3.3.4",ahe={createComponentInstance:oj,setupComponent:ij,renderComponentRoot:Rx,setCurrentRenderingInstance:am,isVNode:cu,normalizeVNode:Na},ihe=ahe,she=null,lhe=null,uhe="http://www.w3.org/2000/svg",xf=typeof document!="undefined"?document:null,_3=xf&&xf.createElement("template"),che={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t?xf.createElementNS(uhe,e):xf.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>xf.createTextNode(e),createComment:e=>xf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,a){const i=r?r.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===a||!(o=o.nextSibling)););else{_3.innerHTML=n?`<svg>${e}</svg>`:e;const s=_3.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function dhe(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function fhe(e,t,r){const n=e.style,o=Sn(r);if(r&&!o){if(t&&!Sn(t))for(const a in t)r[a]==null&&kR(n,a,"");for(const a in r)kR(n,a,r[a])}else{const a=n.display;o?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const B3=/\s*!important$/;function kR(e,t,r){if(Mt(r))r.forEach(n=>kR(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Ahe(e,t);B3.test(r)?e.setProperty(Ci(n),r.replace(B3,""),"important"):e[n]=r}}const T3=["Webkit","Moz","ms"],WB={};function Ahe(e,t){const r=WB[t];if(r)return r;let n=Ba(t);if(n!=="filter"&&n in e)return WB[t]=n;n=fy(n);for(let o=0;o<T3.length;o++){const a=T3[o]+n;if(a in e)return WB[t]=a}return t}const E3="http://www.w3.org/1999/xlink";function hhe(e,t,r,n,o){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(E3,t.slice(6,t.length)):e.setAttributeNS(E3,t,r);else{const a=Gde(t);r==null||a&&!tK(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function vhe(e,t,r,n,o,a,i){if(t==="innerHTML"||t==="textContent"){n&&i(n,o,a),e[t]=r==null?"":r;return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=r;const u=s==="OPTION"?e.getAttribute("value"):e.value,c=r==null?"":r;u!==c&&(e.value=c),r==null&&e.removeAttribute(t);return}let l=!1;if(r===""||r==null){const u=typeof e[t];u==="boolean"?r=tK(r):r==null&&u==="string"?(r="",l=!0):u==="number"&&(r=0,l=!0)}try{e[t]=r}catch(u){}l&&e.removeAttribute(t)}function Wl(e,t,r,n){e.addEventListener(t,r,n)}function phe(e,t,r,n){e.removeEventListener(t,r,n)}function ghe(e,t,r,n,o=null){const a=e._vei||(e._vei={}),i=a[t];if(n&&i)i.value=n;else{const[s,l]=mhe(t);if(n){const u=a[t]=xhe(n,o);Wl(e,s,u,l)}else i&&(phe(e,s,i,l),a[t]=void 0)}}const I3=/(?:Once|Passive|Capture)$/;function mhe(e){let t;if(I3.test(e)){t={};let n;for(;n=e.match(I3);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ci(e.slice(2)),t]}let GB=0;const yhe=Promise.resolve(),bhe=()=>GB||(yhe.then(()=>GB=0),GB=Date.now());function xhe(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Ya(whe(n,r.value),t,5,[n])};return r.value=e,r.attached=bhe(),r}function whe(e,t){if(Mt(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const R3=/^on[a-z]/,Che=(e,t,r,n,o=!1,a,i,s,l)=>{t==="class"?dhe(e,n,o):t==="style"?fhe(e,r,n):dy(t)?YF(t)||ghe(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):She(e,t,n,o))?vhe(e,t,n,a,i,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),hhe(e,t,n,o))};function She(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&R3.test(t)&&nr(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||R3.test(t)&&Sn(r)?!1:t in e}function Aj(e,t){const r=ge(e);class n extends ES{constructor(a){super(r,a,t)}}return n.def=r,n}const _he=e=>Aj(e,Ej),Bhe=typeof HTMLElement!="undefined"?HTMLElement:class{};class ES extends Bhe{constructor(t,r={},n){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,dr(()=>{this._connected||($R(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver(n=>{for(const o of n)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(n,o=!1)=>{const{props:a,styles:i}=n;let s;if(a&&!Mt(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=gw(this._props[l])),(s||(s=Object.create(null)))[Ba(l)]=!0)}this._numberProps=s,o&&this._resolveProps(n),this._applyStyles(i),this._update()},r=this._def.__asyncLoader;r?r().then(n=>t(n,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,n=Mt(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&n.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of n.map(Ba))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(a){this._setProp(o,a)}})}_setAttr(t){let r=this.getAttribute(t);const n=Ba(t);this._numberProps&&this._numberProps[n]&&(r=gw(r)),this._setProp(n,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,o=!0){r!==this._props[t]&&(this._props[t]=r,o&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(Ci(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Ci(t),r+""):r||this.removeAttribute(Ci(t))))}_update(){$R(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ur(this._def,vn({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0;const n=(a,i)=>{this.dispatchEvent(new CustomEvent(a,{detail:i}))};r.emit=(a,...i)=>{n(a,i),Ci(a)!==a&&n(Ci(a),i)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof ES){r.parent=o._instance,r.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function The(e="$style"){{const t=Co();if(!t)return rn;const r=t.type.__cssModules;if(!r)return rn;const n=r[e];return n||rn}}function Ehe(e){const t=Co();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>OR(a,o))},n=()=>{const o=e(t.proxy);LR(t.subTree,o),r(o)};RK(n),yr(()=>{const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),SA(()=>o.disconnect())})}function LR(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{LR(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)OR(e.el,t);else if(e.type===lr)e.children.forEach(r=>LR(r,t));else if(e.type===Hf){let{el:r,anchor:n}=e;for(;r&&(OR(r,t),r!==n);)r=r.nextSibling}}function OR(e,t){if(e.nodeType===1){const r=e.style;for(const n in t)r.setProperty(`--${n}`,t[n])}}const $u="transition",jp="animation",jr=(e,{slots:t})=>S(MK,vj(e),t);jr.displayName="Transition";const hj={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ihe=jr.props=vn({},hk,hj),Ed=(e,t=[])=>{Mt(e)?e.forEach(r=>r(...t)):e&&e(...t)},D3=e=>e?Mt(e)?e.some(t=>t.length>1):e.length>1:!1;function vj(e){const t={};for(const I in e)I in hj||(t[I]=e[I]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:A=`${r}-leave-to`}=e,h=Rhe(o),v=h&&h[0],p=h&&h[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=g,onAppear:C=m,onAppearCancelled:_=y}=t,B=(I,R,D)=>{Ju(I,R?c:s),Ju(I,R?u:i),D&&D()},T=(I,R)=>{I._isLeaving=!1,Ju(I,d),Ju(I,A),Ju(I,f),R&&R()},E=I=>(R,D)=>{const F=I?C:m,M=()=>B(R,I,D);Ed(F,[R,M]),M3(()=>{Ju(R,I?l:a),$l(R,I?c:s),D3(F)||P3(R,n,v,M)})};return vn(t,{onBeforeEnter(I){Ed(g,[I]),$l(I,a),$l(I,i)},onBeforeAppear(I){Ed(w,[I]),$l(I,l),$l(I,u)},onEnter:E(!1),onAppear:E(!0),onLeave(I,R){I._isLeaving=!0;const D=()=>T(I,R);$l(I,d),gj(),$l(I,f),M3(()=>{I._isLeaving&&(Ju(I,d),$l(I,A),D3(b)||P3(I,n,p,D))}),Ed(b,[I,D])},onEnterCancelled(I){B(I,!1),Ed(y,[I])},onAppearCancelled(I){B(I,!0),Ed(_,[I])},onLeaveCancelled(I){T(I),Ed(x,[I])}})}function Rhe(e){if(e==null)return null;if(on(e))return[KB(e.enter),KB(e.leave)];{const t=KB(e);return[t,t]}}function KB(e){return gw(e)}function $l(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Ju(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function M3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Dhe=0;function P3(e,t,r,n){const o=e._endId=++Dhe,a=()=>{o===e._endId&&n()};if(r)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=pj(e,t);if(!i)return n();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=A=>{A.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function pj(e,t){const r=window.getComputedStyle(e),n=h=>(r[h]||"").split(", "),o=n(`${$u}Delay`),a=n(`${$u}Duration`),i=F3(o,a),s=n(`${jp}Delay`),l=n(`${jp}Duration`),u=F3(s,l);let c=null,d=0,f=0;t===$u?i>0&&(c=$u,d=i,f=a.length):t===jp?u>0&&(c=jp,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?$u:jp:null,f=c?c===$u?a.length:l.length:0);const A=c===$u&&/\b(transform|all)(,|$)/.test(n(`${$u}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:A}}function F3(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>k3(r)+k3(e[n])))}function k3(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function gj(){return document.body.offsetHeight}const mj=new WeakMap,yj=new WeakMap,bj={name:"TransitionGroup",props:vn({},Ihe,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Co(),n=Ak();let o,a;return py(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Lhe(o[0].el,r.vnode.el,i))return;o.forEach(Phe),o.forEach(Fhe);const s=o.filter(khe);gj(),s.forEach(l=>{const u=l.el,c=u.style;$l(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,Ju(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=Rr(e),s=vj(i);let l=i.tag||lr;o=a,a=t.default?wS(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&aA(c,Sv(c,s,n,r))}if(o)for(let u=0;u<o.length;u++){const c=o[u];aA(c,Sv(c,s,n,r)),mj.set(c,c.el.getBoundingClientRect())}return ur(l,null,a)}}},Mhe=e=>delete e.mode;bj.props;const IS=bj;function Phe(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Fhe(e){yj.set(e,e.el.getBoundingClientRect())}function khe(e){const t=mj.get(e),r=yj.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${o}px)`,a.transitionDuration="0s",e}}function Lhe(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(i=>i&&n.classList.add(i)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:a}=pj(n);return o.removeChild(n),a}const Wc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Mt(t)?r=>iv(t,r):t};function Ohe(e){e.target.composing=!0}function L3(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cw={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e._assign=Wc(o);const a=n||o.props&&o.props.type==="number";Wl(e,t?"change":"input",i=>{if(i.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=pw(s)),e._assign(s)}),r&&Wl(e,"change",()=>{e.value=e.value.trim()}),t||(Wl(e,"compositionstart",Ohe),Wl(e,"compositionend",L3),Wl(e,"change",L3))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:o}},a){if(e._assign=Wc(a),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(o||e.type==="number")&&pw(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},wk={deep:!0,created(e,t,r){e._assign=Wc(r),Wl(e,"change",()=>{const n=e._modelValue,o=Bv(e),a=e.checked,i=e._assign;if(Mt(n)){const s=AS(n,o),l=s!==-1;if(a&&!l)i(n.concat(o));else if(!a&&l){const u=[...n];u.splice(s,1),i(u)}}else if(xA(n)){const s=new Set(n);a?s.add(o):s.delete(o),i(s)}else i(wj(e,a))})},mounted:O3,beforeUpdate(e,t,r){e._assign=Wc(r),O3(e,t,r)}};function O3(e,{value:t,oldValue:r},n){e._modelValue=t,Mt(t)?e.checked=AS(t,n.props.value)>-1:xA(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=zc(t,wj(e,!0)))}const Ck={created(e,{value:t},r){e.checked=zc(t,r.props.value),e._assign=Wc(r),Wl(e,"change",()=>{e._assign(Bv(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=Wc(n),t!==r&&(e.checked=zc(t,n.props.value))}},xj={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const o=xA(t);Wl(e,"change",()=>{const a=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>r?pw(Bv(i)):Bv(i));e._assign(e.multiple?o?new Set(a):a:a[0])}),e._assign=Wc(n)},mounted(e,{value:t}){$3(e,t)},beforeUpdate(e,t,r){e._assign=Wc(r)},updated(e,{value:t}){$3(e,t)}};function $3(e,t){const r=e.multiple;if(!(r&&!Mt(t)&&!xA(t))){for(let n=0,o=e.options.length;n<o;n++){const a=e.options[n],i=Bv(a);if(r)Mt(t)?a.selected=AS(t,i)>-1:a.selected=t.has(i);else if(zc(Bv(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bv(e){return"_value"in e?e._value:e.value}function wj(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Cj={created(e,t,r){Cb(e,t,r,null,"created")},mounted(e,t,r){Cb(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Cb(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Cb(e,t,r,n,"updated")}};function Sj(e,t){switch(e){case"SELECT":return xj;case"TEXTAREA":return Cw;default:switch(t){case"checkbox":return wk;case"radio":return Ck;default:return Cw}}}function Cb(e,t,r,n,o){const i=Sj(e.tagName,r.props&&r.props.type)[o];i&&i(e,t,r,n)}function $he(){Cw.getSSRProps=({value:e})=>({value:e}),Ck.getSSRProps=({value:e},t)=>{if(t.props&&zc(t.props.value,e))return{checked:!0}},wk.getSSRProps=({value:e},t)=>{if(Mt(e)){if(t.props&&AS(e,t.props.value)>-1)return{checked:!0}}else if(xA(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Cj.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=Sj(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const Uhe=["ctrl","shift","alt","meta"],Nhe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Uhe.some(r=>e[`${r}Key`]&&!t.includes(r))},Hhe=(e,t)=>(r,...n)=>{for(let o=0;o<t.length;o++){const a=Nhe[t[o]];if(a&&a(r,t))return}return e(r,...n)},zhe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qhe=(e,t)=>r=>{if(!("key"in r))return;const n=Ci(r.key);if(t.some(o=>o===n||zhe[o]===n))return e(r)},Ln={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Yp(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Yp(e,!0),n.enter(e)):n.leave(e,()=>{Yp(e,!1)}):Yp(e,t))},beforeUnmount(e,{value:t}){Yp(e,t)}};function Yp(e,t){e.style.display=t?e._vod:"none"}function Vhe(){Ln.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const _j=vn({patchProp:Che},che);let y0,U3=!1;function Bj(){return y0||(y0=XK(_j))}function Tj(){return y0=U3?y0:qK(_j),U3=!0,y0}const $R=(...e)=>{Bj().render(...e)},Ej=(...e)=>{Tj().hydrate(...e)},UR=(...e)=>{const t=Bj().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Ij(n);if(!o)return;const a=t._component;!nr(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.innerHTML="";const i=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Whe=(...e)=>{const t=Tj().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Ij(n);if(o)return r(o,!0,o instanceof SVGElement)},t};function Ij(e){return Sn(e)?document.querySelector(e):e}let N3=!1;const Ghe=()=>{N3||(N3=!0,$he(),Vhe())},Khe=()=>{},jhe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:MK,BaseTransitionPropsValidators:hk,Comment:fo,EffectScope:ek,Fragment:lr,KeepAlive:iAe,ReactiveEffect:Ay,Static:Hf,Suspense:Yfe,Teleport:np,Text:sA,Transition:jr,TransitionGroup:IS,VueElement:ES,assertNumber:Ofe,callWithAsyncErrorHandling:Ya,callWithErrorHandling:eu,camelize:Ba,capitalize:fy,cloneVNode:Fo,compatUtils:lhe,compile:Khe,computed:L,createApp:UR,createBlock:op,createCommentVNode:YAe,createElementBlock:ll,createElementVNode:Ta,createHydrationRenderer:qK,createPropsRestProxy:BAe,createRenderer:XK,createSSRApp:Whe,createSlots:dAe,createStaticVNode:jAe,createTextVNode:du,createVNode:ur,customRef:Dfe,defineAsyncComponent:oAe,defineComponent:ge,defineCustomElement:Aj,defineEmits:vAe,defineExpose:pAe,defineModel:yAe,defineOptions:gAe,defineProps:hAe,defineSSRCustomElement:_he,defineSlots:mAe,get devtools(){return Lh},effect:qde,effectScope:tk,getCurrentInstance:Co,getCurrentScope:oK,getTransitionRawChildren:wS,guardReactiveProps:nj,h:S,handleError:CA,hasInjectionContext:kAe,hydrate:Ej,initCustomFormatter:nhe,initDirectivesForSSR:Ghe,inject:Ke,isMemoSame:dj,isProxy:ok,isReactive:Jl,isReadonly:oA,isRef:En,isRuntimeOnly:ehe,isShallow:tm,isVNode:cu,markRaw:uu,mergeDefaults:SAe,mergeModels:_Ae,mergeProps:wn,nextTick:dr,normalizeClass:wA,normalizeProps:Vde,normalizeStyle:Mi,onActivated:CS,onBeforeMount:Su,onBeforeUnmount:Hr,onBeforeUpdate:_S,onDeactivated:rp,onErrorCaptured:$K,onMounted:yr,onRenderTracked:OK,onRenderTriggered:LK,onScopeDispose:jde,onServerPrefetch:kK,onUnmounted:SA,onUpdated:py,openBlock:jo,popScopeId:TK,provide:_t,proxyRefs:sk,pushScopeId:BK,queuePostFlushCb:ck,reactive:Ni,readonly:ps,ref:q,registerRuntimeCompiler:JAe,render:$R,renderList:NK,renderSlot:gy,resolveComponent:iA,resolveDirective:cAe,resolveDynamicComponent:uAe,resolveFilter:she,resolveTransitionHooks:Sv,setBlockTracking:DR,setDevtoolsHook:SK,setTransitionHooks:aA,shallowReactive:gK,shallowReadonly:_fe,shallowRef:mK,ssrContextKey:uj,ssrUtils:ihe,stop:Zde,toDisplayString:JF,toHandlerKey:v0,toHandlers:fAe,toRaw:Rr,toRef:Re,toRefs:lk,toValue:Efe,transformVNodeArgs:GAe,triggerRef:Tfe,unref:Fn,useAttrs:wAe,useCssModule:The,useCssVars:Ehe,useModel:CAe,useSSRContext:cj,useSlots:xAe,useTransitionState:Ak,vModelCheckbox:wk,vModelDynamic:Cj,vModelRadio:Ck,vModelSelect:xj,vModelText:Cw,vShow:Ln,version:fj,warn:Lfe,watch:gt,watchEffect:Sr,watchPostEffect:RK,watchSyncEffect:tAe,withAsyncContext:TAe,withCtx:Kl,withDefaults:bAe,withDirectives:en,withKeys:Qhe,withMemo:ohe,withModifiers:Hhe,withScopeId:Qfe},Symbol.toStringTag,{value:"Module"}));let Sw=[];const Rj=new WeakMap;function Yhe(){Sw.forEach(e=>e(...Rj.get(e))),Sw=[]}function Tv(e,...t){Rj.set(e,t),!Sw.includes(e)&&Sw.push(e)===1&&requestAnimationFrame(Yhe)}function Xhe(e){return e.nodeType===9?null:e.parentNode}function Dj(e){if(e===null)return null;const t=Xhe(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return Dj(t)}function qhe(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Ja(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function gs(e){return e.composedPath()[0]||null}function Zhe(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(r=>{if(r==="")return;const[n,o]=r.split(":");o===void 0?t[""]=n:t[n]=o}),t}function Xp(e,t){var r;if(e==null)return;const n=Zhe(e);if(t===void 0)return n[""];if(typeof t=="string")return(r=n[t])!==null&&r!==void 0?r:n[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const a=t[o];if(a in n)return n[a]}return n[""]}else{let o,a=-1;return Object.keys(n).forEach(i=>{const s=Number(i);!Number.isNaN(s)&&t>=s&&s>=a&&(a=s,o=n[i])}),o}}function Ro(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function On(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Tc(e,t){const r=e.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function Jhe(e,t){const[r,n]=e.split(" ");return t?t==="row"?r:n:{row:r,col:n||r}}const H3={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Mj(e,t,r){t/=100,r/=100;const n=t*Math.min(r,1-r)+r;return[e,n?(2-2*r/n)*100:0,n*100]}function Mx(e,t,r){t/=100,r/=100;const n=r-r*t/2,o=Math.min(n,1-n);return[e,o?(r-n)/o*100:0,n*100]}function dc(e,t,r){t/=100,r/=100;let n=(o,a=(o+e/60)%6)=>r-r*t*Math.max(Math.min(a,4-a,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function NR(e,t,r){e/=255,t/=255,r/=255;let n=Math.max(e,t,r),o=n-Math.min(e,t,r),a=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),n&&o/n*100,n*100]}function HR(e,t,r){e/=255,t/=255,r/=255;let n=Math.max(e,t,r),o=n-Math.min(e,t,r),a=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),a?o/a*100:0,(n+n-o)*50]}function zR(e,t,r){t/=100,r/=100;let n=t*Math.min(r,1-r),o=(a,i=(a+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const pl="^\\s*",gl="\\s*$",Gc="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Wa="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Ef="([0-9A-Fa-f])",If="([0-9A-Fa-f]{2})",eve=new RegExp(`${pl}hsl\\s*\\(${Wa},${Gc},${Gc}\\)${gl}`),tve=new RegExp(`${pl}hsv\\s*\\(${Wa},${Gc},${Gc}\\)${gl}`),rve=new RegExp(`${pl}hsla\\s*\\(${Wa},${Gc},${Gc},${Wa}\\)${gl}`),nve=new RegExp(`${pl}hsva\\s*\\(${Wa},${Gc},${Gc},${Wa}\\)${gl}`),ove=new RegExp(`${pl}rgb\\s*\\(${Wa},${Wa},${Wa}\\)${gl}`),ave=new RegExp(`${pl}rgba\\s*\\(${Wa},${Wa},${Wa},${Wa}\\)${gl}`),Sk=new RegExp(`${pl}#${Ef}${Ef}${Ef}${gl}`),_k=new RegExp(`${pl}#${If}${If}${If}${gl}`),Bk=new RegExp(`${pl}#${Ef}${Ef}${Ef}${Ef}${gl}`),Tk=new RegExp(`${pl}#${If}${If}${If}${If}${gl}`);function fa(e){return parseInt(e,16)}function uv(e){try{let t;if(t=rve.exec(e))return[ul(t[1]),to(t[5]),to(t[9]),tu(t[13])];if(t=eve.exec(e))return[ul(t[1]),to(t[5]),to(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function zf(e){try{let t;if(t=nve.exec(e))return[ul(t[1]),to(t[5]),to(t[9]),tu(t[13])];if(t=tve.exec(e))return[ul(t[1]),to(t[5]),to(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Xn(e){try{let t;if(t=_k.exec(e))return[fa(t[1]),fa(t[2]),fa(t[3]),1];if(t=ove.exec(e))return[kn(t[1]),kn(t[5]),kn(t[9]),1];if(t=ave.exec(e))return[kn(t[1]),kn(t[5]),kn(t[9]),tu(t[13])];if(t=Sk.exec(e))return[fa(t[1]+t[1]),fa(t[2]+t[2]),fa(t[3]+t[3]),1];if(t=Tk.exec(e))return[fa(t[1]),fa(t[2]),fa(t[3]),tu(fa(t[4])/255)];if(t=Bk.exec(e))return[fa(t[1]+t[1]),fa(t[2]+t[2]),fa(t[3]+t[3]),tu(fa(t[4]+t[4])/255)];if(e in H3)return Xn(H3[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function ive(e){return e>1?1:e<0?0:e}function sve(e,t,r){return`rgb(${kn(e)}, ${kn(t)}, ${kn(r)})`}function QR(e,t,r,n){return`rgba(${kn(e)}, ${kn(t)}, ${kn(r)}, ${ive(n)})`}function jB(e,t,r,n,o){return kn((e*t*(1-n)+r*n)/o)}function Dt(e,t){Array.isArray(e)||(e=Xn(e)),Array.isArray(t)||(t=Xn(t));const r=e[3],n=t[3],o=tu(r+n-r*n);return QR(jB(e[0],r,t[0],n,o),jB(e[1],r,t[1],n,o),jB(e[2],r,t[2],n,o),o)}function Ve(e,t){const[r,n,o,a=1]=Array.isArray(e)?e:Xn(e);return t.alpha?QR(r,n,o,t.alpha):QR(r,n,o,a)}function zn(e,t){const[r,n,o,a=1]=Array.isArray(e)?e:Xn(e),{lightness:i=1,alpha:s=1}=t;return tl([r*i,n*i,o*i,a*s])}function tu(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ul(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function kn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function to(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function VR(e){const[t,r,n]=Array.isArray(e)?e:Xn(e);return sve(t,r,n)}function tl(e){const[t,r,n]=e;return 3 in e?`rgba(${kn(t)}, ${kn(r)}, ${kn(n)}, ${tu(e[3])})`:`rgba(${kn(t)}, ${kn(r)}, ${kn(n)}, 1)`}function WR(e){return`hsv(${ul(e[0])}, ${to(e[1])}%, ${to(e[2])}%)`}function Qf(e){const[t,r,n]=e;return 3 in e?`hsva(${ul(t)}, ${to(r)}%, ${to(n)}%, ${tu(e[3])})`:`hsva(${ul(t)}, ${to(r)}%, ${to(n)}%, 1)`}function GR(e){return`hsl(${ul(e[0])}, ${to(e[1])}%, ${to(e[2])}%)`}function Ec(e){const[t,r,n]=e;return 3 in e?`hsla(${ul(t)}, ${to(r)}%, ${to(n)}%, ${tu(e[3])})`:`hsla(${ul(t)}, ${to(r)}%, ${to(n)}%, 1)`}function Ic(e){if(typeof e=="string"){let n;if(n=_k.exec(e))return`${n[0]}FF`;if(n=Tk.exec(e))return n[0];if(n=Sk.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=Bk.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(n=>kn(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,r=e.length===3?"FF":kn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+r}function b0(e){if(typeof e=="string"){let t;if(t=_k.exec(e))return t[0];if(t=Tk.exec(e))return t[0].slice(0,7);if(t=Sk.exec(e)||Bk.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>kn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Pi(e=8){return Math.random().toString(16).slice(2,2+e)}function Pj(e,t){const r=[];for(let n=0;n<e;++n)r.push(t);return r}function lve(e,t){const r=[];if(!t){for(let n=0;n<e;++n)r.push(n);return r}for(let n=0;n<e;++n)r.push(t(n));return r}function my(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function z3(e,t="default",r=[]){const{children:n}=e;if(n!==null&&typeof n=="object"&&!Array.isArray(n)){const o=n[t];if(typeof o=="function")return o()}return r}function Xa(e,t=[],r){const n={};return t.forEach(o=>{n[o]=e[o]}),Object.assign(n,r)}function ap(e,t=[],r){const n={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(n[a]=e[a])}),Object.assign(n,r)}function Ii(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(du(String(n)));return}if(Array.isArray(n)){Ii(n,t,r);return}if(n.type===lr){if(n.children===null)return;Array.isArray(n.children)&&Ii(n.children,t,r)}else n.type!==fo&&r.push(n)}}),r}function Te(e,...t){if(Array.isArray(e))e.forEach(r=>Te(r,...t));else return e(...t)}function cl(e){return Object.keys(e)}const Nr=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?du(e):typeof e=="number"?du(String(e)):null,Q3=new Set;function uve(e,t){const r=`[naive/${e}]: ${t}`;Q3.has(r)||(Q3.add(r),console.error(r))}function ei(e,t){console.error(`[naive/${e}]: ${t}`)}function $o(e,t){throw new Error(`[naive/${e}]: ${t}`)}function V3(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function Fj(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function KR(e,t="default",r=void 0){const n=e[t];if(!n)return ei("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ii(n(r));return o.length===1?o[0]:(ei("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function kj(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Lj(e){return t=>{t?e.value=t.$el:e.value=null}}function ip(e){return e.some(t=>cu(t)?!(t.type===fo||t.type===lr&&!ip(t.children)):!0)?e:null}function Kt(e,t){return e&&ip(e())||t()}function um(e,t,r){return e&&ip(e(t))||r(t)}function Ar(e,t){const r=e&&ip(e());return t(r||null)}function cve(e,t,r){const n=e&&ip(e(t));return r(n||null)}function Vf(e){return!(e&&ip(e()))}function x0(e){const t=e.filter(r=>r!==void 0);if(t.length!==0)return t.length===1?t[0]:r=>{e.forEach(n=>{n&&n(r)})}}function dve(e){var t;const r=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===Ln);return!!(r&&r.value===!1)}const jR=ge({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),fve=/^(\d|\.)+$/,W3=/(\d|\.)+/;function wr(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(fve.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=W3.exec(e);return o?e.replace(W3,String((Number(o[0])+r)*t)):e}return e}function Ev(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function Ave(e){let t=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++t;return t}const Oj=/\s*,(?![^(]*\))\s*/g,hve=/\s+/g;function vve(e,t){const r=[];return t.split(Oj).forEach(n=>{let o=Ave(n);if(o){if(o===1){e.forEach(i=>{r.push(n.replace("&",i))});return}}else{e.forEach(i=>{r.push((i&&i+" ")+n)});return}let a=[n];for(;o--;){const i=[];a.forEach(s=>{e.forEach(l=>{i.push(s.replace("&",l))})}),a=i}a.forEach(i=>r.push(i))}),r}function pve(e,t){const r=[];return t.split(Oj).forEach(n=>{e.forEach(o=>{r.push((o&&o+" ")+n)})}),r}function gve(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=vve(t,r):t=pve(t,r))}),t.join(", ").replace(hve," ")}function G3(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function RS(e){return document.querySelector(`style[cssr-id="${e}"]`)}function mve(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Sb(e){return e?/^\s*@(s|m)/.test(e):!1}const yve=/[A-Z]/g;function $j(e){return e.replace(yve,t=>"-"+t.toLowerCase())}function bve(e,t=" "){return typeof e=="object"&&e!==null?` {
  2. `+Object.entries(e).map(r=>t+` ${$j(r[0])}: ${r[1]};`).join(`
  3. `)+`
  4. `+t+"}":`: ${e};`}function xve(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function K3(e,t,r,n){if(!t)return"";const o=xve(t,r,n);if(!o)return"";if(typeof o=="string")return`${e} {
  5. ${o}
  6. }`;const a=Object.keys(o);if(a.length===0)return r.config.keepEmptyBlock?e+` {
  7. }`:"";const i=e?[e+" {"]:[];return a.forEach(s=>{const l=o[s];if(s==="raw"){i.push(`
  8. `+l+`
  9. `);return}s=$j(s),l!=null&&i.push(` ${s}${bve(l)}`)}),e&&i.push("}"),i.join(`
  10. `)}function YR(e,t,r){e&&e.forEach(n=>{if(Array.isArray(n))YR(n,t,r);else if(typeof n=="function"){const o=n(t);Array.isArray(o)?YR(o,t,r):o&&r(o)}else n&&r(n)})}function Uj(e,t,r,n,o,a){const i=e.$;let s="";if(!i||typeof i=="string")Sb(i)?s=i:t.push(i);else if(typeof i=="function"){const c=i({context:n.context,props:o});Sb(c)?s=c:t.push(c)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")Sb(i.$)?s=i.$:t.push(i.$);else if(i.$){const c=i.$({context:n.context,props:o});Sb(c)?s=c:t.push(c)}const l=gve(t),u=K3(l,e.props,n,o);s?(r.push(`${s} {`),a&&u&&a.insertRule(`${s} {
  11. ${u}
  12. }
  13. `)):(a&&u&&a.insertRule(u),!a&&u.length&&r.push(u)),e.children&&YR(e.children,{context:n.context,props:o},c=>{if(typeof c=="string"){const d=K3(l,{raw:c},n,o);a?a.insertRule(d):r.push(d)}else Uj(c,t,r,n,o,a)}),t.pop(),s&&r.push("}"),i&&i.after&&i.after(n.context)}function Nj(e,t,r,n=!1){const o=[];return Uj(e,[],o,t,r,n?e.instance.__styleSheet:void 0),n?"":o.join(`
  14. `)}function cm(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window!="undefined"&&(window.__cssrContext={});function wve(e,t,r){const{els:n}=t;if(r===void 0)n.forEach(G3),t.els=[];else{const o=RS(r);o&&n.includes(o)&&(G3(o),t.els=n.filter(a=>a!==o))}}function j3(e,t){e.push(t)}function Cve(e,t,r,n,o,a,i,s,l){if(a&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[r]||(f[r]=!0,Nj(t,e,n,a));return}let u;if(r===void 0&&(u=t.render(n),r=cm(u)),l){l.adapter(r,u!=null?u:t.render(n));return}const c=RS(r);if(c!==null&&!i)return c;const d=c!=null?c:mve(r);if(u===void 0&&(u=t.render(n)),d.textContent=u,c!==null)return c;if(s){const f=document.head.querySelector(`meta[name="${s}"]`);if(f)return document.head.insertBefore(d,f),j3(t.els,d),d}return o?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),j3(t.els,d),d}function Sve(e){return Nj(this,this.instance,e)}function _ve(e={}){const{id:t,ssr:r,props:n,head:o=!1,silent:a=!1,force:i=!1,anchorMetaName:s}=e;return Cve(this.instance,this,t,n,o,a,i,s,r)}function Bve(e={}){const{id:t}=e;wve(this.instance,this,t)}const _b=function(e,t,r,n){return{instance:e,$:t,props:r,children:n,els:[],render:Sve,mount:_ve,unmount:Bve}},Tve=function(e,t,r,n){return Array.isArray(t)?_b(e,{$:null},null,t):Array.isArray(r)?_b(e,t,null,r):Array.isArray(n)?_b(e,t,r,n):_b(e,t,r,null)};function Hj(e={}){let t=null;const r={c:(...n)=>Tve(r,...n),use:(n,...o)=>n.install(r,...o),find:RS,context:{},config:e,get __styleSheet(){if(!t){const n=document.createElement("style");return document.head.appendChild(n),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function Eve(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return RS(e)!==null}function Ive(e){let t=".",r="__",n="--",o;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(r=h),h=e.modifierPrefix,h&&(n=h)}const a={install(h){o=h.c;const v=h.context;v.bem={},v.bem.b=null,v.bem.els=null}};function i(h){let v,p;return{before(g){v=g.bem.b,p=g.bem.els,g.bem.els=null},after(g){g.bem.b=v,g.bem.els=p},$({context:g,props:m}){return h=typeof h=="string"?h:h({context:g,props:m}),g.bem.b=h,`${(m==null?void 0:m.bPrefix)||t}${g.bem.b}`}}}function s(h){let v;return{before(p){v=p.bem.els},after(p){p.bem.els=v},$({context:p,props:g}){return h=typeof h=="string"?h:h({context:p,props:g}),p.bem.els=h.split(",").map(m=>m.trim()),p.bem.els.map(m=>`${(g==null?void 0:g.bPrefix)||t}${p.bem.b}${r}${m}`).join(", ")}}}function l(h){return{$({context:v,props:p}){h=typeof h=="string"?h:h({context:v,props:p});const g=h.split(",").map(b=>b.trim());function m(b){return g.map(x=>`&${(p==null?void 0:p.bPrefix)||t}${v.bem.b}${b!==void 0?`${r}${b}`:""}${n}${x}`).join(", ")}const y=v.bem.els;return y!==null?m(y[0]):m()}}}function u(h){return{$({context:v,props:p}){h=typeof h=="string"?h:h({context:v,props:p});const g=v.bem.els;return`&:not(${(p==null?void 0:p.bPrefix)||t}${v.bem.b}${g!==null&&g.length>0?`${r}${g[0]}`:""}${n}${h})`}}}return Object.assign(a,{cB:(...h)=>o(i(h[0]),h[1],h[2]),cE:(...h)=>o(s(h[0]),h[1],h[2]),cM:(...h)=>o(l(h[0]),h[1],h[2]),cNotM:(...h)=>o(u(h[0]),h[1],h[2])}),a}function _e(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}_e("abc","def");const Rve="n",dm=`.${Rve}-`,Dve="__",Mve="--",zj=Hj(),Qj=Ive({blockPrefix:dm,elementPrefix:Dve,modifierPrefix:Mve});zj.use(Qj);const{c:N,find:oRt}=zj,{cB:P,cE:G,cM:j,cNotM:Wt}=Qj;function _u(e){return N(({props:{bPrefix:t}})=>`${t||dm}modal, ${t||dm}drawer`,[e])}function dd(e){return N(({props:{bPrefix:t}})=>`${t||dm}popover`,[e])}function Vj(e){return N(({props:{bPrefix:t}})=>`&${t||dm}modal`,e)}const Pve=(...e)=>N(">",[P(...e)]);let YB;function Fve(){return YB===void 0&&(YB=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),YB}const ni=typeof document!="undefined"&&typeof window!="undefined",Wj=new WeakSet;function fm(e){Wj.add(e)}function Gj(e){return!Wj.has(e)}function kve(e,t,r){var n;const o=Ke(e,null);if(o===null)return;const a=(n=Co())===null||n===void 0?void 0:n.proxy;gt(r,i),i(r.value),Hr(()=>{i(void 0,r.value)});function i(u,c){const d=o[t];c!==void 0&&s(d,c),u!==void 0&&l(d,u)}function s(u,c){u[c]||(u[c]=[]),u[c].splice(u[c].findIndex(d=>d===a),1)}function l(u,c){u[c]||(u[c]=[]),~u[c].findIndex(d=>d===a)||u[c].push(a)}}function Lve(e,t,r){if(!t)return e;const n=q(e.value);let o=null;return gt(e,a=>{o!==null&&window.clearTimeout(o),a===!0?r&&!r.value?n.value=!0:o=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function Kj(e){const t=q(!!e.value);if(t.value)return ps(t);const r=gt(e,n=>{n&&(t.value=!0,r())});return ps(t)}function Ft(e){const t=L(e),r=q(t.value);return gt(t,n=>{r.value=n}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(n){e.set(n)}}}function Ek(){return Co()!==null}const DS=typeof window!="undefined";let cv,w0;const Ove=()=>{var e,t;cv=DS?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,w0=!1,cv!==void 0?cv.then(()=>{w0=!0}):w0=!0};Ove();function Ik(e){if(w0)return;let t=!1;yr(()=>{w0||cv==null||cv.then(()=>{t||e()})}),Hr(()=>{t=!0})}function Px(e){return e.composedPath()[0]}const $ve={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Uve(e,t,r){if(e==="mousemoveoutside"){const n=o=>{t.contains(Px(o))||r(o)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const o=i=>{n=!t.contains(Px(i))},a=i=>{n&&(t.contains(Px(i))||r(i))};return{mousedown:o,mouseup:a,touchstart:o,touchend:a}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function jj(e,t,r){const n=$ve[e];let o=n.get(t);o===void 0&&n.set(t,o=new WeakMap);let a=o.get(r);return a===void 0&&o.set(r,a=Uve(e,t,r)),a}function Nve(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=jj(e,t,r);return Object.keys(o).forEach(a=>{or(a,document,o[a],n)}),!0}return!1}function Hve(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=jj(e,t,r);return Object.keys(o).forEach(a=>{qt(a,document,o[a],n)}),!0}return!1}function zve(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function o(C,_,B){const T=C[_];return C[_]=function(){return B.apply(C,arguments),T.apply(C,arguments)},C}function a(C,_){C[_]=Event.prototype[_]}const i=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var C;return(C=i.get(this))!==null&&C!==void 0?C:null}function u(C,_){s!==void 0&&Object.defineProperty(C,"currentTarget",{configurable:!0,enumerable:!0,get:_!=null?_:s.get})}const c={bubble:{},capture:{}},d={};function f(){const C=function(_){const{type:B,eventPhase:T,bubbles:E}=_,I=Px(_);if(T===2)return;const R=T===1?"capture":"bubble";let D=I;const F=[];for(;D===null&&(D=window),F.push(D),D!==window;)D=D.parentNode||null;const M=c.capture[B],$=c.bubble[B];if(o(_,"stopPropagation",r),o(_,"stopImmediatePropagation",n),u(_,l),R==="capture"){if(M===void 0)return;for(let O=F.length-1;O>=0&&!e.has(_);--O){const Q=F[O],V=M.get(Q);if(V!==void 0){i.set(_,Q);for(const W of V){if(t.has(_))break;W(_)}}if(O===0&&!E&&$!==void 0){const W=$.get(Q);if(W!==void 0)for(const Z of W){if(t.has(_))break;Z(_)}}}}else if(R==="bubble"){if($===void 0)return;for(let O=0;O<F.length&&!e.has(_);++O){const Q=F[O],V=$.get(Q);if(V!==void 0){i.set(_,Q);for(const W of V){if(t.has(_))break;W(_)}}}}a(_,"stopPropagation"),a(_,"stopImmediatePropagation"),u(_)};return C.displayName="evtdUnifiedHandler",C}function A(){const C=function(_){const{type:B,eventPhase:T}=_;if(T!==2)return;const E=d[B];E!==void 0&&E.forEach(I=>I(_))};return C.displayName="evtdUnifiedWindowEventHandler",C}const h=f(),v=A();function p(C,_){const B=c[C];return B[_]===void 0&&(B[_]=new Map,window.addEventListener(_,h,C==="capture")),B[_]}function g(C){return d[C]===void 0&&(d[C]=new Set,window.addEventListener(C,v)),d[C]}function m(C,_){let B=C.get(_);return B===void 0&&C.set(_,B=new Set),B}function y(C,_,B,T){const E=c[_][B];if(E!==void 0){const I=E.get(C);if(I!==void 0&&I.has(T))return!0}return!1}function b(C,_){const B=d[C];return!!(B!==void 0&&B.has(_))}function x(C,_,B,T){let E;if(typeof T=="object"&&T.once===!0?E=M=>{w(C,_,E,T),B(M)}:E=B,Nve(C,_,E,T))return;const R=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",D=p(R,C),F=m(D,_);if(F.has(E)||F.add(E),_===window){const M=g(C);M.has(E)||M.add(E)}}function w(C,_,B,T){if(Hve(C,_,B,T))return;const I=T===!0||typeof T=="object"&&T.capture===!0,R=I?"capture":"bubble",D=p(R,C),F=m(D,_);if(_===window&&!y(_,I?"bubble":"capture",C,B)&&b(C,B)){const $=d[C];$.delete(B),$.size===0&&(window.removeEventListener(C,v),d[C]=void 0)}F.has(B)&&F.delete(B),F.size===0&&D.delete(_),D.size===0&&(window.removeEventListener(C,h,R==="capture"),c[R][C]=void 0)}return{on:x,off:w}}const{on:or,off:qt}=zve(),Qg=q(null);function Y3(e){if(e.clientX>0||e.clientY>0)Qg.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:r,top:n,width:o,height:a}=t.getBoundingClientRect();r>0||n>0?Qg.value={x:r+o/2,y:n+a/2}:Qg.value={x:0,y:0}}else Qg.value=null}}let Bb=0,X3=!0;function Yj(){if(!DS)return ps(q(null));Bb===0&&or("click",document,Y3,!0);const e=()=>{Bb+=1};return X3&&(X3=Ek())?(Su(e),Hr(()=>{Bb-=1,Bb===0&&qt("click",document,Y3,!0)})):e(),ps(Qg)}const Qve=q(void 0);let Tb=0;function q3(){Qve.value=Date.now()}let Z3=!0;function Xj(e){if(!DS)return ps(q(!1));const t=q(!1);let r=null;function n(){r!==null&&window.clearTimeout(r)}function o(){n(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}Tb===0&&or("click",window,q3,!0);const a=()=>{Tb+=1,or("click",window,o,!0)};return Z3&&(Z3=Ek())?(Su(a),Hr(()=>{Tb-=1,Tb===0&&qt("click",window,q3,!0),qt("click",window,o,!0),n()})):a(),ps(t)}function Ir(e,t){return gt(e,r=>{r!==void 0&&(t.value=r)}),L(()=>e.value===void 0?t.value:e.value)}function oi(){const e=q(!1);return yr(()=>{e.value=!0}),ps(e)}function Kc(e,t){return L(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const Vve=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Wve(){return Vve}const Gve={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function Kve(e){return`(min-width: ${e}px)`}const qp={};function jve(e=Gve){if(!DS)return L(()=>[]);if(typeof window.matchMedia!="function")return L(()=>[]);const t=q({}),r=Object.keys(e),n=(o,a)=>{o.matches?t.value[a]=!0:t.value[a]=!1};return r.forEach(o=>{const a=e[o];let i,s;qp[a]===void 0?(i=window.matchMedia(Kve(a)),i.addEventListener?i.addEventListener("change",l=>{s.forEach(u=>{u(l,o)})}):i.addListener&&i.addListener(l=>{s.forEach(u=>{u(l,o)})}),s=new Set,qp[a]={mql:i,cbs:s}):(i=qp[a].mql,s=qp[a].cbs),s.add(n),i.matches&&s.forEach(l=>{l(i,o)})}),Hr(()=>{r.forEach(o=>{const{cbs:a}=qp[e[o]];a.has(n)&&a.delete(n)})}),L(()=>{const{value:o}=t;return r.filter(a=>o[a])})}function Rk(e={},t){const r=Ni({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:o}=e,a=l=>{switch(l.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(u=>{if(u!==l.key)return;const c=n[u];if(typeof c=="function")c(l);else{const{stop:d=!1,prevent:f=!1}=c;d&&l.stopPropagation(),f&&l.preventDefault(),c.handler(l)}})},i=l=>{switch(l.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}o!==void 0&&Object.keys(o).forEach(u=>{if(u!==l.key)return;const c=o[u];if(typeof c=="function")c(l);else{const{stop:d=!1,prevent:f=!1}=c;d&&l.stopPropagation(),f&&l.preventDefault(),c.handler(l)}})},s=()=>{(t===void 0||t.value)&&(or("keydown",document,a),or("keyup",document,i)),t!==void 0&&gt(t,l=>{l?(or("keydown",document,a),or("keyup",document,i)):(qt("keydown",document,a),qt("keyup",document,i))})};return Ek()?(Su(s),Hr(()=>{(t===void 0||t.value)&&(qt("keydown",document,a),qt("keyup",document,i))})):s(),ps(r)}const Dk="n-internal-select-menu",qj="n-internal-select-menu-body",yy="n-modal-body",Zj="n-modal",by="n-drawer-body",Mk="n-drawer",sp="n-popover-body",Jj="__disabled__";function Un(e){const t=Ke(yy,null),r=Ke(by,null),n=Ke(sp,null),o=Ke(qj,null),a=q();if(typeof document!="undefined"){a.value=document.fullscreenElement;const i=()=>{a.value=document.fullscreenElement};yr(()=>{or("fullscreenchange",document,i)}),Hr(()=>{qt("fullscreenchange",document,i)})}return Ft(()=>{var i;const{to:s}=e;return s!==void 0?s===!1?Jj:s===!0?a.value||"body":s:t!=null&&t.value?(i=t.value.$el)!==null&&i!==void 0?i:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s!=null?s:a.value||"body"})}Un.tdkey=Jj;Un.propTo={type:[String,Object,Boolean],default:void 0};let J3=!1;function Pk(){if(ni&&window.CSS&&!J3&&(J3=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch(e){}}function XR(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return n()}function qR(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(du(String(n)));return}if(Array.isArray(n)){qR(n,t,r);return}if(n.type===lr){if(n.children===null)return;Array.isArray(n.children)&&qR(n.children,t,r)}else n.type!==fo&&r.push(n)}}),r}function e$(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const o=qR(n());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let Uu=null;function eY(){if(Uu===null&&(Uu=document.getElementById("v-binder-view-measurer"),Uu===null)){Uu=document.createElement("div"),Uu.id="v-binder-view-measurer";const{style:e}=Uu;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Uu)}return Uu.getBoundingClientRect()}function Yve(e,t){const r=eY();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function XB(e){const t=e.getBoundingClientRect(),r=eY();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Xve(e){return e.nodeType===9?null:e.parentNode}function tY(e){if(e===null)return null;const t=Xve(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return tY(t)}const qve=ge({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;_t("VBinder",(t=Co())===null||t===void 0?void 0:t.proxy);const r=Ke("VBinder",null),n=q(null),o=g=>{n.value=g,r&&e.syncTargetWithParent&&r.setTargetRef(g)};let a=[];const i=()=>{let g=n.value;for(;g=tY(g),g!==null;)a.push(g);for(const m of a)or("scroll",m,d,!0)},s=()=>{for(const g of a)qt("scroll",g,d,!0);a=[]},l=new Set,u=g=>{l.size===0&&i(),l.has(g)||l.add(g)},c=g=>{l.has(g)&&l.delete(g),l.size===0&&s()},d=()=>{Tv(f)},f=()=>{l.forEach(g=>g())},A=new Set,h=g=>{A.size===0&&or("resize",window,p),A.has(g)||A.add(g)},v=g=>{A.has(g)&&A.delete(g),A.size===0&&qt("resize",window,p)},p=()=>{A.forEach(g=>g())};return Hr(()=>{qt("resize",window,p),s()}),{targetRef:n,setTargetRef:o,addScrollListener:u,removeScrollListener:c,addResizeListener:h,removeResizeListener:v}},render(){return XR("binder",this.$slots)}}),fd=qve,Ad=ge({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Ke("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?en(e$("follower",this.$slots),[[t]]):e$("follower",this.$slots)}}),KA="@@mmoContext",Zve={mounted(e,{value:t}){e[KA]={handler:void 0},typeof t=="function"&&(e[KA].handler=t,or("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[KA];typeof t=="function"?r.handler?r.handler!==t&&(qt("mousemoveoutside",e,r.handler),r.handler=t,or("mousemoveoutside",e,t)):(e[KA].handler=t,or("mousemoveoutside",e,t)):r.handler&&(qt("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[KA];t&&qt("mousemoveoutside",e,t),e[KA].handler=void 0}},Jve=Zve,jA="@@coContext",epe={mounted(e,{value:t,modifiers:r}){e[jA]={handler:void 0},typeof t=="function"&&(e[jA].handler=t,or("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const n=e[jA];typeof t=="function"?n.handler?n.handler!==t&&(qt("clickoutside",e,n.handler,{capture:r.capture}),n.handler=t,or("clickoutside",e,t,{capture:r.capture})):(e[jA].handler=t,or("clickoutside",e,t,{capture:r.capture})):n.handler&&(qt("clickoutside",e,n.handler,{capture:r.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[jA];r&&qt("clickoutside",e,r,{capture:t.capture}),e[jA].handler=void 0}},dl=epe;function tpe(e,t){console.error(`[vdirs/${e}]: ${t}`)}class rpe{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:n}=this;if(r!==void 0){t.style.zIndex=`${r}`,n.delete(t);return}const{nextZIndex:o}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,n.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,r){const{elementZIndex:n}=this;n.has(t)?n.delete(t):r===void 0&&tpe("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((r,n)=>r[1]-n[1]),this.nextZIndex=2e3,t.forEach(r=>{const n=r[0],o=this.nextZIndex++;`${o}`!==n.style.zIndex&&(n.style.zIndex=`${o}`)})}}const qB=new rpe,YA="@@ziContext",npe={mounted(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r;e[YA]={enabled:!!o,initialized:!1},o&&(qB.ensureZIndex(e,n),e[YA].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r,a=e[YA].enabled;o&&!a&&(qB.ensureZIndex(e,n),e[YA].initialized=!0),e[YA].enabled=!!o},unmounted(e,t){if(!e[YA].initialized)return;const{value:r={}}=t,{zIndex:n}=r;qB.unregister(e,n)}},xy=npe,rY=Symbol("@css-render/vue3-ssr");function ope(e,t){return`<style cssr-id="${e}">
  15. ${t}
  16. </style>`}function ape(e,t){const r=Ke(rY,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:n,ids:o}=r;o.has(e)||n!==null&&(o.add(e),n.push(ope(e,t)))}const ipe=typeof document!="undefined";function hd(){if(ipe)return;const e=Ke(rY,null);if(e!==null)return{adapter:ape,context:e}}function t$(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Ys}=Hj(),MS="vueuc-style";function r$(e){return e&-e}class spe{constructor(t,r){this.l=t,this.min=r;const n=new Array(t+1);for(let o=0;o<t+1;++o)n[o]=0;this.ft=n}add(t,r){if(r===0)return;const{l:n,ft:o}=this;for(t+=1;t<=n;)o[t]+=r,t+=r$(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:r,min:n,l:o}=this;if(t>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let a=t*n;for(;t>0;)a+=r[t],t-=r$(t);return a}getBound(t){let r=0,n=this.l;for(;n>r;){const o=Math.floor((r+n)/2),a=this.sum(o);if(a>t){n=o;continue}else if(a<t){if(r===o)return this.sum(r+1)<=t?r+1:o;r=o}else return o}return r}}function n$(e){return typeof e=="string"?document.querySelector(e):e()}const wy=ge({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Kj(Re(e,"show")),mergedTo:L(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?XR("lazy-teleport",this.$slots):S(np,{disabled:this.disabled,to:this.mergedTo},XR("lazy-teleport",this.$slots)):null}}),Eb={top:"bottom",bottom:"top",left:"right",right:"left"},o$={start:"end",center:"center",end:"start"},ZB={top:"height",bottom:"height",left:"width",right:"width"},lpe={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},upe={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},cpe={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},a$={top:!0,bottom:!1,left:!0,right:!1},i$={top:"end",bottom:"start",left:"end",right:"start"};function dpe(e,t,r,n,o,a){if(!o||a)return{placement:e,top:0,left:0};const[i,s]=e.split("-");let l=s!=null?s:"center",u={top:0,left:0};const c=(A,h,v)=>{let p=0,g=0;const m=r[A]-t[h]-t[A];return m>0&&n&&(v?g=a$[h]?m:-m:p=a$[h]?m:-m),{left:p,top:g}},d=i==="left"||i==="right";if(l!=="center"){const A=cpe[e],h=Eb[A],v=ZB[A];if(r[v]>t[v]){if(t[A]+t[v]<r[v]){const p=(r[v]-t[v])/2;t[A]<p||t[h]<p?t[A]<t[h]?(l=o$[s],u=c(v,h,d)):u=c(v,A,d):l="center"}}else r[v]<t[v]&&t[h]<0&&t[A]>t[h]&&(l=o$[s])}else{const A=i==="bottom"||i==="top"?"left":"top",h=Eb[A],v=ZB[A],p=(r[v]-t[v])/2;(t[A]<p||t[h]<p)&&(t[A]>t[h]?(l=i$[A],u=c(v,A,d)):(l=i$[h],u=c(v,h,d)))}let f=i;return t[i]<r[ZB[i]]&&t[i]<t[Eb[i]]&&(f=Eb[i]),{placement:l!=="center"?`${f}-${l}`:f,left:u.left,top:u.top}}function fpe(e,t){return t?upe[e]:lpe[e]}function Ape(e,t,r,n,o,a){if(a)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+o)}px`,transform:"translateX(-50%)"}}}const hpe=Ys([Ys(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Ys(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Ys("> *",{pointerEvents:"all"})])]),vd=ge({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Ke("VBinder"),r=Ft(()=>e.enabled!==void 0?e.enabled:e.show),n=q(null),o=q(null),a=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},i=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};yr(()=>{r.value&&(l(),a())});const s=hd();hpe.mount({id:"vueuc/binder",head:!0,anchorMetaName:MS,ssr:s}),Hr(()=>{i()}),Ik(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const f=n.value;if(f===null)return;const A=t.targetRef,{x:h,y:v,overlap:p}=e,g=h!==void 0&&v!==void 0?Yve(h,v):XB(A);f.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:m,minWidth:y,placement:b,internalShift:x,flip:w}=e;f.setAttribute("v-placement",b),p?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:C}=f;m==="target"?C.width=`${g.width}px`:m!==void 0?C.width=m:C.width="",y==="target"?C.minWidth=`${g.width}px`:y!==void 0?C.minWidth=y:C.minWidth="";const _=XB(f),B=XB(o.value),{left:T,top:E,placement:I}=dpe(b,g,_,x,w,p),R=fpe(I,p),{left:D,top:F,transform:M}=Ape(I,B,g,E,T,p);f.setAttribute("v-placement",I),f.style.setProperty("--v-offset-left",`${Math.round(T)}px`),f.style.setProperty("--v-offset-top",`${Math.round(E)}px`),f.style.transform=`translateX(${D}) translateY(${F}) ${M}`,f.style.setProperty("--v-transform-origin",R),f.style.transformOrigin=R};gt(r,f=>{f?(a(),u()):i()});const u=()=>{dr().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{gt(Re(e,f),l)}),["teleportDisabled"].forEach(f=>{gt(Re(e,f),u)}),gt(Re(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=oi(),d=Ft(()=>{const{to:f}=e;if(f!==void 0)return f;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:d,syncPosition:l}},render(){return S(wy,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=S("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[S("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?en(r,[[xy,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Wf=[],vpe=function(){return Wf.some(function(e){return e.activeTargets.length>0})},ppe=function(){return Wf.some(function(e){return e.skippedTargets.length>0})},s$="ResizeObserver loop completed with undelivered notifications.",gpe=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:s$}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=s$),window.dispatchEvent(e)},Am;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Am||(Am={}));var Gf=function(e){return Object.freeze(e)},mpe=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Gf(this)}return e}(),nY=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Gf(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,a=t.right,i=t.bottom,s=t.left,l=t.width,u=t.height;return{x:r,y:n,top:o,right:a,bottom:i,left:s,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Fk=function(e){return e instanceof SVGElement&&"getBBox"in e},oY=function(e){if(Fk(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,a=o.offsetWidth,i=o.offsetHeight;return!(a||i||e.getClientRects().length)},l$=function(e){var t,r;if(e instanceof Element)return!0;var n=(r=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&e instanceof n.Element)},ype=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},C0=typeof window!="undefined"?window:{},Ib=new WeakMap,u$=/auto|scroll/,bpe=/^tb|vertical/,xpe=/msie|trident/i.test(C0.navigator&&C0.navigator.userAgent),Is=function(e){return parseFloat(e||"0")},dv=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new mpe((r?t:e)||0,(r?e:t)||0)},c$=Gf({devicePixelContentBoxSize:dv(),borderBoxSize:dv(),contentBoxSize:dv(),contentRect:new nY(0,0,0,0)}),aY=function(e,t){if(t===void 0&&(t=!1),Ib.has(e)&&!t)return Ib.get(e);if(oY(e))return Ib.set(e,c$),c$;var r=getComputedStyle(e),n=Fk(e)&&e.ownerSVGElement&&e.getBBox(),o=!xpe&&r.boxSizing==="border-box",a=bpe.test(r.writingMode||""),i=!n&&u$.test(r.overflowY||""),s=!n&&u$.test(r.overflowX||""),l=n?0:Is(r.paddingTop),u=n?0:Is(r.paddingRight),c=n?0:Is(r.paddingBottom),d=n?0:Is(r.paddingLeft),f=n?0:Is(r.borderTopWidth),A=n?0:Is(r.borderRightWidth),h=n?0:Is(r.borderBottomWidth),v=n?0:Is(r.borderLeftWidth),p=d+u,g=l+c,m=v+A,y=f+h,b=s?e.offsetHeight-y-e.clientHeight:0,x=i?e.offsetWidth-m-e.clientWidth:0,w=o?p+m:0,C=o?g+y:0,_=n?n.width:Is(r.width)-w-x,B=n?n.height:Is(r.height)-C-b,T=_+p+x+m,E=B+g+b+y,I=Gf({devicePixelContentBoxSize:dv(Math.round(_*devicePixelRatio),Math.round(B*devicePixelRatio),a),borderBoxSize:dv(T,E,a),contentBoxSize:dv(_,B,a),contentRect:new nY(d,l,_,B)});return Ib.set(e,I),I},iY=function(e,t,r){var n=aY(e,r),o=n.borderBoxSize,a=n.contentBoxSize,i=n.devicePixelContentBoxSize;switch(t){case Am.DEVICE_PIXEL_CONTENT_BOX:return i;case Am.BORDER_BOX:return o;default:return a}},wpe=function(){function e(t){var r=aY(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Gf([r.borderBoxSize]),this.contentBoxSize=Gf([r.contentBoxSize]),this.devicePixelContentBoxSize=Gf([r.devicePixelContentBoxSize])}return e}(),sY=function(e){if(oY(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},Cpe=function(){var e=1/0,t=[];Wf.forEach(function(i){if(i.activeTargets.length!==0){var s=[];i.activeTargets.forEach(function(u){var c=new wpe(u.target),d=sY(u.target);s.push(c),u.lastReportedSize=iY(u.target,u.observedBox),d<e&&(e=d)}),t.push(function(){i.callback.call(i.observer,s,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var o=n[r];o()}return e},d$=function(e){Wf.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(sY(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})},Spe=function(){var e=0;for(d$(e);vpe();)e=Cpe(),d$(e);return ppe()&&gpe(),e>0},JB,lY=[],_pe=function(){return lY.splice(0).forEach(function(e){return e()})},Bpe=function(e){if(!JB){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return _pe()}).observe(r,n),JB=function(){r.textContent=""+(t?t--:t++)}}lY.push(e),JB()},Tpe=function(e){Bpe(function(){requestAnimationFrame(e)})},Fx=0,Epe=function(){return!!Fx},Ipe=250,Rpe={attributes:!0,characterData:!0,childList:!0,subtree:!0},f$=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],A$=function(e){return e===void 0&&(e=0),Date.now()+e},e2=!1,Dpe=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=Ipe),!e2){e2=!0;var n=A$(t);Tpe(function(){var o=!1;try{o=Spe()}finally{if(e2=!1,t=n-A$(),!Epe())return;o?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,Rpe)};document.body?r():C0.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),f$.forEach(function(r){return C0.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),f$.forEach(function(r){return C0.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),ZR=new Dpe,h$=function(e){!Fx&&e>0&&ZR.start(),Fx+=e,!Fx&&ZR.stop()},Mpe=function(e){return!Fk(e)&&!ype(e)&&getComputedStyle(e).display==="inline"},Ppe=function(){function e(t,r){this.target=t,this.observedBox=r||Am.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=iY(this.target,this.observedBox,!0);return Mpe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Fpe=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),Rb=new WeakMap,v$=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Db=function(){function e(){}return e.connect=function(t,r){var n=new Fpe(t,r);Rb.set(t,n)},e.observe=function(t,r,n){var o=Rb.get(t),a=o.observationTargets.length===0;v$(o.observationTargets,r)<0&&(a&&Wf.push(o),o.observationTargets.push(new Ppe(r,n&&n.box)),h$(1),ZR.schedule())},e.unobserve=function(t,r){var n=Rb.get(t),o=v$(n.observationTargets,r),a=n.observationTargets.length===1;o>=0&&(a&&Wf.splice(Wf.indexOf(n),1),n.observationTargets.splice(o,1),h$(-1))},e.disconnect=function(t){var r=this,n=Rb.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),kpe=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Db.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l$(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Db.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l$(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Db.unobserve(this,t)},e.prototype.disconnect=function(){Db.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Lpe{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new kpe(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const n=this.elHandlersMap.get(r.target);n!==void 0&&n(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const _w=new Lpe,Fi=ge({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=Co().proxy;function n(o){const{onResize:a}=e;a!==void 0&&a(o)}yr(()=>{const o=r.$el;if(o===void 0){t$("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){t$("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(_w.registerHandler(o.nextElementSibling,n),t=!0)}),Hr(()=>{t&&_w.unregisterHandler(r.$el.nextElementSibling)})},render(){return gy(this.$slots,"default")}});let Mb;function Ope(){return Mb===void 0&&("matchMedia"in window?Mb=window.matchMedia("(pointer:coarse)").matches:Mb=!1),Mb}let t2;function p$(){return t2===void 0&&(t2="chrome"in window?window.devicePixelRatio:1),t2}const $pe=Ys(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Ys("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Ys("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Iv=ge({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=hd();$pe.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:MS,ssr:t}),yr(()=>{const{defaultScrollIndex:E,defaultScrollKey:I}=e;E!=null?h({index:E}):I!=null&&h({key:I})});let r=!1,n=!1;CS(()=>{if(r=!1,!n){n=!0;return}h({top:d.value,left:c})}),rp(()=>{r=!0,n||(n=!0)});const o=L(()=>{const E=new Map,{keyField:I}=e;return e.items.forEach((R,D)=>{E.set(R[I],D)}),E}),a=q(null),i=q(void 0),s=new Map,l=L(()=>{const{items:E,itemSize:I,keyField:R}=e,D=new spe(E.length,I);return E.forEach((F,M)=>{const $=F[R],O=s.get($);O!==void 0&&D.add(M,O)}),D}),u=q(0);let c=0;const d=q(0),f=Ft(()=>Math.max(l.value.getBound(d.value-Ro(e.paddingTop))-1,0)),A=L(()=>{const{value:E}=i;if(E===void 0)return[];const{items:I,itemSize:R}=e,D=f.value,F=Math.min(D+Math.ceil(E/R+1),I.length-1),M=[];for(let $=D;$<=F;++$)M.push(I[$]);return M}),h=(E,I)=>{if(typeof E=="number"){m(E,I,"auto");return}const{left:R,top:D,index:F,key:M,position:$,behavior:O,debounce:Q=!0}=E;if(R!==void 0||D!==void 0)m(R,D,O);else if(F!==void 0)g(F,O,Q);else if(M!==void 0){const V=o.value.get(M);V!==void 0&&g(V,O,Q)}else $==="bottom"?m(0,Number.MAX_SAFE_INTEGER,O):$==="top"&&m(0,0,O)};let v,p=null;function g(E,I,R){const{value:D}=l,F=D.sum(E)+Ro(e.paddingTop);if(!R)a.value.scrollTo({left:0,top:F,behavior:I});else{v=E,p!==null&&window.clearTimeout(p),p=window.setTimeout(()=>{v=void 0,p=null},16);const{scrollTop:M,offsetHeight:$}=a.value;if(F>M){const O=D.get(E);F+O<=M+$||a.value.scrollTo({left:0,top:F+O-$,behavior:I})}else a.value.scrollTo({left:0,top:F,behavior:I})}}function m(E,I,R){a.value.scrollTo({left:E,top:I,behavior:R})}function y(E,I){var R,D,F;if(r||e.ignoreItemResize||T(I.target))return;const{value:M}=l,$=o.value.get(E),O=M.get($),Q=(F=(D=(R=I.borderBoxSize)===null||R===void 0?void 0:R[0])===null||D===void 0?void 0:D.blockSize)!==null&&F!==void 0?F:I.contentRect.height;if(Q===O)return;Q-e.itemSize===0?s.delete(E):s.set(E,Q-e.itemSize);const W=Q-O;if(W===0)return;M.add($,W);const Z=a.value;if(Z!=null){if(v===void 0){const te=M.sum($);Z.scrollTop>te&&Z.scrollBy(0,W)}else if($<v)Z.scrollBy(0,W);else if($===v){const te=M.sum($);Q+te>Z.scrollTop+Z.offsetHeight&&Z.scrollBy(0,W)}B()}u.value++}const b=!Ope();let x=!1;function w(E){var I;(I=e.onScroll)===null||I===void 0||I.call(e,E),(!b||!x)&&B()}function C(E){var I;if((I=e.onWheel)===null||I===void 0||I.call(e,E),b){const R=a.value;if(R!=null){if(E.deltaX===0&&(R.scrollTop===0&&E.deltaY<=0||R.scrollTop+R.offsetHeight>=R.scrollHeight&&E.deltaY>=0))return;E.preventDefault(),R.scrollTop+=E.deltaY/p$(),R.scrollLeft+=E.deltaX/p$(),B(),x=!0,Tv(()=>{x=!1})}}}function _(E){if(r||T(E.target)||E.contentRect.height===i.value)return;i.value=E.contentRect.height;const{onResize:I}=e;I!==void 0&&I(E)}function B(){const{value:E}=a;E!=null&&(d.value=E.scrollTop,c=E.scrollLeft)}function T(E){let I=E;for(;I!==null;){if(I.style.display==="none")return!0;I=I.parentElement}return!1}return{listHeight:i,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:L(()=>{const{itemResizable:E}=e,I=On(l.value.sum());return u.value,[e.itemsStyle,{boxSizing:"content-box",height:E?"":I,minHeight:E?I:"",paddingTop:On(e.paddingTop),paddingBottom:On(e.paddingBottom)}]}),visibleItemsStyle:L(()=>(u.value,{transform:`translateY(${On(l.value.sum(f.value))})`})),viewportItems:A,listElRef:a,itemsElRef:q(null),scrollTo:h,handleListResize:_,handleListScroll:w,handleListWheel:C,handleItemResize:y}},render(){const{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:n}=this;return S(Fi,{onResize:this.handleListResize},{default:()=>{var o,a;return S("div",wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?S("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[S(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(i=>{const s=i[t],l=r.get(s),u=this.$slots.default({item:i,index:l})[0];return e?S(Fi,{key:s,onResize:c=>this.handleItemResize(s,c)},{default:()=>u}):(u.key=s,u)})})]):(a=(o=this.$slots).empty)===null||a===void 0?void 0:a.call(o)])}})}}),Upe=Ys(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Ys("&::-webkit-scrollbar",{width:0,height:0})]),Npe=ge({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=q(null);function t(o){!(o.currentTarget.offsetWidth<o.currentTarget.scrollWidth)||o.deltaY===0||(o.currentTarget.scrollLeft+=o.deltaY+o.deltaX,o.preventDefault())}const r=hd();return Upe.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:MS,ssr:r}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...o){var a;(a=e.value)===null||a===void 0||a.scrollTo(...o)}})},render(){return S("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),Id="v-hidden",Hpe=Ys("[v-hidden]",{display:"none!important"}),g$=ge({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const r=q(null),n=q(null);function o(){const{value:i}=r,{getCounter:s,getTail:l}=e;let u;if(s!==void 0?u=s():u=n.value,!i||!u)return;u.hasAttribute(Id)&&u.removeAttribute(Id);const{children:c}=i,d=i.offsetWidth,f=[],A=t.tail?l==null?void 0:l():null;let h=A?A.offsetWidth:0,v=!1;const p=i.children.length-(t.tail?1:0);for(let m=0;m<p-1;++m){if(m<0)continue;const y=c[m];if(v){y.hasAttribute(Id)||y.setAttribute(Id,"");continue}else y.hasAttribute(Id)&&y.removeAttribute(Id);const b=y.offsetWidth;if(h+=b,f[m]=b,h>d){const{updateCounter:x}=e;for(let w=m;w>=0;--w){const C=p-1-w;x!==void 0?x(C):u.textContent=`${C}`;const _=u.offsetWidth;if(h-=f[w],h+_<=d||w===0){v=!0,m=w-1,A&&(m===-1?(A.style.maxWidth=`${d-_}px`,A.style.boxSizing="border-box"):A.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;v?g!==void 0&&g(!0):(g!==void 0&&g(!1),u.setAttribute(Id,""))}const a=hd();return Hpe.mount({id:"vueuc/overflow",head:!0,anchorMetaName:MS,ssr:a}),yr(o),{selfRef:r,counterRef:n,sync:o}},render(){const{$slots:e}=this;return dr(this.sync),S("div",{class:"v-overflow",ref:"selfRef"},[gy(e,"default"),e.counter?e.counter():S("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function uY(e){return e instanceof HTMLElement}function cY(e){for(let t=0;t<e.childNodes.length;t++){const r=e.childNodes[t];if(uY(r)&&(fY(r)||cY(r)))return!0}return!1}function dY(e){for(let t=e.childNodes.length-1;t>=0;t--){const r=e.childNodes[t];if(uY(r)&&(fY(r)||dY(r)))return!0}return!1}function fY(e){if(!zpe(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}function zpe(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Zp=[];const kk=ge({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Pi(),r=q(null),n=q(null);let o=!1,a=!1;const i=typeof document=="undefined"?null:document.activeElement;function s(){return Zp[Zp.length-1]===t}function l(p){var g;p.code==="Escape"&&s()&&((g=e.onEsc)===null||g===void 0||g.call(e,p))}yr(()=>{gt(()=>e.active,p=>{p?(d(),or("keydown",document,l)):(qt("keydown",document,l),o&&f())},{immediate:!0})}),Hr(()=>{qt("keydown",document,l),o&&f()});function u(p){if(!a&&s()){const g=c();if(g===null||g.contains(gs(p)))return;A("first")}}function c(){const p=r.value;if(p===null)return null;let g=p;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function d(){var p;if(!e.disabled){if(Zp.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?A("first"):(p=n$(g))===null||p===void 0||p.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function f(){var p;if(e.disabled||(document.removeEventListener("focus",u,!0),Zp=Zp.filter(m=>m!==t),s()))return;const{finalFocusTo:g}=e;g!==void 0?(p=n$(g))===null||p===void 0||p.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&i instanceof HTMLElement&&(a=!0,i.focus({preventScroll:!0}),a=!1)}function A(p){if(s()&&e.active){const g=r.value,m=n.value;if(g!==null&&m!==null){const y=c();if(y==null||y===m){a=!0,g.focus({preventScroll:!0}),a=!1;return}a=!0;const b=p==="first"?cY(y):dY(y);a=!1,b||(a=!0,g.focus({preventScroll:!0}),a=!1)}}}function h(p){if(a)return;const g=c();g!==null&&(p.relatedTarget!==null&&g.contains(p.relatedTarget)?A("last"):A("first"))}function v(p){a||(p.relatedTarget!==null&&p.relatedTarget===r.value?A("last"):A("first"))}return{focusableStartRef:r,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:v}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return S(lr,null,[S("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),S("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function AY(e,t){t&&(yr(()=>{const{value:r}=e;r&&_w.registerHandler(r,t)}),Hr(()=>{const{value:r}=e;r&&_w.unregisterHandler(r)}))}let XA=0,m$="",y$="",b$="",x$="";const JR=q("0px");function hY(e){if(typeof document=="undefined")return;const t=document.documentElement;let r,n=!1;const o=()=>{t.style.marginRight=m$,t.style.overflow=y$,t.style.overflowX=b$,t.style.overflowY=x$,JR.value="0px"};yr(()=>{r=gt(e,a=>{if(a){if(!XA){const i=window.innerWidth-t.offsetWidth;i>0&&(m$=t.style.marginRight,t.style.marginRight=`${i}px`,JR.value=`${i}px`),y$=t.style.overflow,b$=t.style.overflowX,x$=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,XA++}else XA--,XA||o(),n=!1},{immediate:!0})}),Hr(()=>{r==null||r(),n&&(XA--,XA||o(),n=!1)})}const Lk=q(!1),w$=()=>{Lk.value=!0},C$=()=>{Lk.value=!1};let Jp=0;const vY=()=>(ni&&(Su(()=>{Jp||(window.addEventListener("compositionstart",w$),window.addEventListener("compositionend",C$)),Jp++}),Hr(()=>{Jp<=1?(window.removeEventListener("compositionstart",w$),window.removeEventListener("compositionend",C$),Jp=0):Jp--})),Lk);function Ok(e){const t={isDeactivated:!1};let r=!1;return CS(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),rp(()=>{t.isDeactivated=!0,r||(r=!0)}),t}function S$(e){return e.nodeName==="#document"}const eD="n-form-item";function Da(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const o=Ke(eD,null);_t(eD,null);const a=L(r?()=>r(o):()=>{const{size:l}=e;if(l)return l;if(o){const{mergedSize:u}=o;if(u.value!==void 0)return u.value}return t}),i=L(n?()=>n(o):()=>{const{disabled:l}=e;return l!==void 0?l:o?o.disabled.value:!1}),s=L(()=>{const{status:l}=e;return l||(o==null?void 0:o.mergedValidationStatus.value)});return Hr(()=>{o&&o.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:i,mergedStatusRef:s,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Qpe=typeof global=="object"&&global&&global.Object===Object&&global;const pY=Qpe;var Vpe=typeof self=="object"&&self&&self.Object===Object&&self,Wpe=pY||Vpe||Function("return this")();const Hi=Wpe;var Gpe=Hi.Symbol;const jc=Gpe;var gY=Object.prototype,Kpe=gY.hasOwnProperty,jpe=gY.toString,eg=jc?jc.toStringTag:void 0;function Ype(e){var t=Kpe.call(e,eg),r=e[eg];try{e[eg]=void 0;var n=!0}catch(a){}var o=jpe.call(e);return n&&(t?e[eg]=r:delete e[eg]),o}var Xpe=Object.prototype,qpe=Xpe.toString;function Zpe(e){return qpe.call(e)}var Jpe="[object Null]",ege="[object Undefined]",_$=jc?jc.toStringTag:void 0;function _A(e){return e==null?e===void 0?ege:Jpe:_$&&_$ in Object(e)?Ype(e):Zpe(e)}function Yc(e){return e!=null&&typeof e=="object"}var tge="[object Symbol]";function PS(e){return typeof e=="symbol"||Yc(e)&&_A(e)==tge}function mY(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var rge=Array.isArray;const ki=rge;var nge=1/0,B$=jc?jc.prototype:void 0,T$=B$?B$.toString:void 0;function yY(e){if(typeof e=="string")return e;if(ki(e))return mY(e,yY)+"";if(PS(e))return T$?T$.call(e):"";var t=e+"";return t=="0"&&1/e==-nge?"-0":t}var oge=/\s/;function age(e){for(var t=e.length;t--&&oge.test(e.charAt(t)););return t}var ige=/^\s+/;function sge(e){return e&&e.slice(0,age(e)+1).replace(ige,"")}function Li(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var E$=0/0,lge=/^[-+]0x[0-9a-f]+$/i,uge=/^0b[01]+$/i,cge=/^0o[0-7]+$/i,dge=parseInt;function Bw(e){if(typeof e=="number")return e;if(PS(e))return E$;if(Li(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Li(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sge(e);var r=uge.test(e);return r||cge.test(e)?dge(e.slice(2),r?2:8):lge.test(e)?E$:+e}var I$=1/0,fge=17976931348623157e292;function Age(e){if(!e)return e===0?e:0;if(e=Bw(e),e===I$||e===-I$){var t=e<0?-1:1;return t*fge}return e===e?e:0}function hge(e){var t=Age(e),r=t%1;return t===t?r?t-r:t:0}function $k(e){return e}var vge="[object AsyncFunction]",pge="[object Function]",gge="[object GeneratorFunction]",mge="[object Proxy]";function Uk(e){if(!Li(e))return!1;var t=_A(e);return t==pge||t==gge||t==vge||t==mge}var yge=Hi["__core-js_shared__"];const r2=yge;var R$=function(){var e=/[^.]+$/.exec(r2&&r2.keys&&r2.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bge(e){return!!R$&&R$ in e}var xge=Function.prototype,wge=xge.toString;function BA(e){if(e!=null){try{return wge.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Cge=/[\\^$.*+?()[\]{}|]/g,Sge=/^\[object .+?Constructor\]$/,_ge=Function.prototype,Bge=Object.prototype,Tge=_ge.toString,Ege=Bge.hasOwnProperty,Ige=RegExp("^"+Tge.call(Ege).replace(Cge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rge(e){if(!Li(e)||bge(e))return!1;var t=Uk(e)?Ige:Sge;return t.test(BA(e))}function Dge(e,t){return e==null?void 0:e[t]}function TA(e,t){var r=Dge(e,t);return Rge(r)?r:void 0}var Mge=TA(Hi,"WeakMap");const tD=Mge;var D$=Object.create,Pge=function(){function e(){}return function(t){if(!Li(t))return{};if(D$)return D$(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Fge=Pge;function kge(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Lge(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Oge=800,$ge=16,Uge=Date.now;function Nge(e){var t=0,r=0;return function(){var n=Uge(),o=$ge-(n-r);if(r=n,o>0){if(++t>=Oge)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Hge(e){return function(){return e}}var zge=function(){try{var e=TA(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Tw=zge;var Qge=Tw?function(e,t){return Tw(e,"toString",{configurable:!0,enumerable:!1,value:Hge(t),writable:!0})}:$k;const Vge=Qge;var Wge=Nge(Vge);const Gge=Wge;var Kge=9007199254740991,jge=/^(?:0|[1-9]\d*)$/;function Nk(e,t){var r=typeof e;return t=t==null?Kge:t,!!t&&(r=="number"||r!="symbol"&&jge.test(e))&&e>-1&&e%1==0&&e<t}function Hk(e,t,r){t=="__proto__"&&Tw?Tw(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Cy(e,t){return e===t||e!==e&&t!==t}var Yge=Object.prototype,Xge=Yge.hasOwnProperty;function qge(e,t,r){var n=e[t];(!(Xge.call(e,t)&&Cy(n,r))||r===void 0&&!(t in e))&&Hk(e,t,r)}function Zge(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?Hk(r,s,l):qge(r,s,l)}return r}var M$=Math.max;function Jge(e,t,r){return t=M$(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=M$(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),kge(e,this,s)}}function e0e(e,t){return Gge(Jge(e,t,$k),e+"")}var t0e=9007199254740991;function zk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t0e}function lp(e){return e!=null&&zk(e.length)&&!Uk(e)}function r0e(e,t,r){if(!Li(r))return!1;var n=typeof t;return(n=="number"?lp(r)&&Nk(t,r.length):n=="string"&&t in r)?Cy(r[t],e):!1}function n0e(e){return e0e(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&r0e(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t})}var o0e=Object.prototype;function Qk(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||o0e;return e===r}function a0e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var i0e="[object Arguments]";function P$(e){return Yc(e)&&_A(e)==i0e}var bY=Object.prototype,s0e=bY.hasOwnProperty,l0e=bY.propertyIsEnumerable,u0e=P$(function(){return arguments}())?P$:function(e){return Yc(e)&&s0e.call(e,"callee")&&!l0e.call(e,"callee")};const Ew=u0e;function c0e(){return!1}var xY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,F$=xY&&typeof module=="object"&&module&&!module.nodeType&&module,d0e=F$&&F$.exports===xY,k$=d0e?Hi.Buffer:void 0,f0e=k$?k$.isBuffer:void 0,A0e=f0e||c0e;const Iw=A0e;var h0e="[object Arguments]",v0e="[object Array]",p0e="[object Boolean]",g0e="[object Date]",m0e="[object Error]",y0e="[object Function]",b0e="[object Map]",x0e="[object Number]",w0e="[object Object]",C0e="[object RegExp]",S0e="[object Set]",_0e="[object String]",B0e="[object WeakMap]",T0e="[object ArrayBuffer]",E0e="[object DataView]",I0e="[object Float32Array]",R0e="[object Float64Array]",D0e="[object Int8Array]",M0e="[object Int16Array]",P0e="[object Int32Array]",F0e="[object Uint8Array]",k0e="[object Uint8ClampedArray]",L0e="[object Uint16Array]",O0e="[object Uint32Array]",gn={};gn[I0e]=gn[R0e]=gn[D0e]=gn[M0e]=gn[P0e]=gn[F0e]=gn[k0e]=gn[L0e]=gn[O0e]=!0;gn[h0e]=gn[v0e]=gn[T0e]=gn[p0e]=gn[E0e]=gn[g0e]=gn[m0e]=gn[y0e]=gn[b0e]=gn[x0e]=gn[w0e]=gn[C0e]=gn[S0e]=gn[_0e]=gn[B0e]=!1;function $0e(e){return Yc(e)&&zk(e.length)&&!!gn[_A(e)]}function U0e(e){return function(t){return e(t)}}var wY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,S0=wY&&typeof module=="object"&&module&&!module.nodeType&&module,N0e=S0&&S0.exports===wY,n2=N0e&&pY.process,H0e=function(){try{var e=S0&&S0.require&&S0.require("util").types;return e||n2&&n2.binding&&n2.binding("util")}catch(t){}}();const L$=H0e;var O$=L$&&L$.isTypedArray,z0e=O$?U0e(O$):$0e;const Vk=z0e;var Q0e=Object.prototype,V0e=Q0e.hasOwnProperty;function CY(e,t){var r=ki(e),n=!r&&Ew(e),o=!r&&!n&&Iw(e),a=!r&&!n&&!o&&Vk(e),i=r||n||o||a,s=i?a0e(e.length,String):[],l=s.length;for(var u in e)(t||V0e.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Nk(u,l)))&&s.push(u);return s}function SY(e,t){return function(r){return e(t(r))}}var W0e=SY(Object.keys,Object);const G0e=W0e;var K0e=Object.prototype,j0e=K0e.hasOwnProperty;function Y0e(e){if(!Qk(e))return G0e(e);var t=[];for(var r in Object(e))j0e.call(e,r)&&r!="constructor"&&t.push(r);return t}function Wk(e){return lp(e)?CY(e):Y0e(e)}function X0e(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var q0e=Object.prototype,Z0e=q0e.hasOwnProperty;function J0e(e){if(!Li(e))return X0e(e);var t=Qk(e),r=[];for(var n in e)n=="constructor"&&(t||!Z0e.call(e,n))||r.push(n);return r}function _Y(e){return lp(e)?CY(e,!0):J0e(e)}var eme=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tme=/^\w*$/;function Gk(e,t){if(ki(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||PS(e)?!0:tme.test(e)||!eme.test(e)||t!=null&&e in Object(t)}var rme=TA(Object,"create");const hm=rme;function nme(){this.__data__=hm?hm(null):{},this.size=0}function ome(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ame="__lodash_hash_undefined__",ime=Object.prototype,sme=ime.hasOwnProperty;function lme(e){var t=this.__data__;if(hm){var r=t[e];return r===ame?void 0:r}return sme.call(t,e)?t[e]:void 0}var ume=Object.prototype,cme=ume.hasOwnProperty;function dme(e){var t=this.__data__;return hm?t[e]!==void 0:cme.call(t,e)}var fme="__lodash_hash_undefined__";function Ame(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hm&&t===void 0?fme:t,this}function uA(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uA.prototype.clear=nme;uA.prototype.delete=ome;uA.prototype.get=lme;uA.prototype.has=dme;uA.prototype.set=Ame;function hme(){this.__data__=[],this.size=0}function FS(e,t){for(var r=e.length;r--;)if(Cy(e[r][0],t))return r;return-1}var vme=Array.prototype,pme=vme.splice;function gme(e){var t=this.__data__,r=FS(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():pme.call(t,r,1),--this.size,!0}function mme(e){var t=this.__data__,r=FS(t,e);return r<0?void 0:t[r][1]}function yme(e){return FS(this.__data__,e)>-1}function bme(e,t){var r=this.__data__,n=FS(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Bu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bu.prototype.clear=hme;Bu.prototype.delete=gme;Bu.prototype.get=mme;Bu.prototype.has=yme;Bu.prototype.set=bme;var xme=TA(Hi,"Map");const vm=xme;function wme(){this.size=0,this.__data__={hash:new uA,map:new(vm||Bu),string:new uA}}function Cme(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function kS(e,t){var r=e.__data__;return Cme(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Sme(e){var t=kS(this,e).delete(e);return this.size-=t?1:0,t}function _me(e){return kS(this,e).get(e)}function Bme(e){return kS(this,e).has(e)}function Tme(e,t){var r=kS(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Tu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tu.prototype.clear=wme;Tu.prototype.delete=Sme;Tu.prototype.get=_me;Tu.prototype.has=Bme;Tu.prototype.set=Tme;var Eme="Expected a function";function Kk(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Eme);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Kk.Cache||Tu),r}Kk.Cache=Tu;var Ime=500;function Rme(e){var t=Kk(e,function(n){return r.size===Ime&&r.clear(),n}),r=t.cache;return t}var Dme=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mme=/\\(\\)?/g,Pme=Rme(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Dme,function(r,n,o,a){t.push(o?a.replace(Mme,"$1"):n||r)}),t});const Fme=Pme;function cA(e){return e==null?"":yY(e)}function BY(e,t){return ki(e)?e:Gk(e,t)?[e]:Fme(cA(e))}var kme=1/0;function LS(e){if(typeof e=="string"||PS(e))return e;var t=e+"";return t=="0"&&1/e==-kme?"-0":t}function TY(e,t){t=BY(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[LS(t[r++])];return r&&r==n?e:void 0}function pm(e,t,r){var n=e==null?void 0:TY(e,t);return n===void 0?r:n}function Lme(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Ome=SY(Object.getPrototypeOf,Object);const EY=Ome;var $me="[object Object]",Ume=Function.prototype,Nme=Object.prototype,IY=Ume.toString,Hme=Nme.hasOwnProperty,zme=IY.call(Object);function Qme(e){if(!Yc(e)||_A(e)!=$me)return!1;var t=EY(e);if(t===null)return!0;var r=Hme.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&IY.call(r)==zme}function Vme(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}function Wme(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Vme(e,t,r)}var Gme="\\ud800-\\udfff",Kme="\\u0300-\\u036f",jme="\\ufe20-\\ufe2f",Yme="\\u20d0-\\u20ff",Xme=Kme+jme+Yme,qme="\\ufe0e\\ufe0f",Zme="\\u200d",Jme=RegExp("["+Zme+Gme+Xme+qme+"]");function RY(e){return Jme.test(e)}function eye(e){return e.split("")}var DY="\\ud800-\\udfff",tye="\\u0300-\\u036f",rye="\\ufe20-\\ufe2f",nye="\\u20d0-\\u20ff",oye=tye+rye+nye,aye="\\ufe0e\\ufe0f",iye="["+DY+"]",rD="["+oye+"]",nD="\\ud83c[\\udffb-\\udfff]",sye="(?:"+rD+"|"+nD+")",MY="[^"+DY+"]",PY="(?:\\ud83c[\\udde6-\\uddff]){2}",FY="[\\ud800-\\udbff][\\udc00-\\udfff]",lye="\\u200d",kY=sye+"?",LY="["+aye+"]?",uye="(?:"+lye+"(?:"+[MY,PY,FY].join("|")+")"+LY+kY+")*",cye=LY+kY+uye,dye="(?:"+[MY+rD+"?",rD,PY,FY,iye].join("|")+")",fye=RegExp(nD+"(?="+nD+")|"+dye+cye,"g");function Aye(e){return e.match(fye)||[]}function hye(e){return RY(e)?Aye(e):eye(e)}function vye(e){return function(t){t=cA(t);var r=RY(t)?hye(t):void 0,n=r?r[0]:t.charAt(0),o=r?Wme(r,1).join(""):t.slice(1);return n[e]()+o}}var pye=vye("toUpperCase");const OY=pye;function gye(e){return OY(cA(e).toLowerCase())}function mye(e,t,r,n){var o=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function yye(e){return function(t){return e==null?void 0:e[t]}}var bye={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xye=yye(bye);const wye=xye;var Cye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sye="\\u0300-\\u036f",_ye="\\ufe20-\\ufe2f",Bye="\\u20d0-\\u20ff",Tye=Sye+_ye+Bye,Eye="["+Tye+"]",Iye=RegExp(Eye,"g");function Rye(e){return e=cA(e),e&&e.replace(Cye,wye).replace(Iye,"")}var Dye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Mye(e){return e.match(Dye)||[]}var Pye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fye(e){return Pye.test(e)}var $Y="\\ud800-\\udfff",kye="\\u0300-\\u036f",Lye="\\ufe20-\\ufe2f",Oye="\\u20d0-\\u20ff",$ye=kye+Lye+Oye,UY="\\u2700-\\u27bf",NY="a-z\\xdf-\\xf6\\xf8-\\xff",Uye="\\xac\\xb1\\xd7\\xf7",Nye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hye="\\u2000-\\u206f",zye=" \\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",HY="A-Z\\xc0-\\xd6\\xd8-\\xde",Qye="\\ufe0e\\ufe0f",zY=Uye+Nye+Hye+zye,QY="['’]",$$="["+zY+"]",Vye="["+$ye+"]",VY="\\d+",Wye="["+UY+"]",WY="["+NY+"]",GY="[^"+$Y+zY+VY+UY+NY+HY+"]",Gye="\\ud83c[\\udffb-\\udfff]",Kye="(?:"+Vye+"|"+Gye+")",jye="[^"+$Y+"]",KY="(?:\\ud83c[\\udde6-\\uddff]){2}",jY="[\\ud800-\\udbff][\\udc00-\\udfff]",Oh="["+HY+"]",Yye="\\u200d",U$="(?:"+WY+"|"+GY+")",Xye="(?:"+Oh+"|"+GY+")",N$="(?:"+QY+"(?:d|ll|m|re|s|t|ve))?",H$="(?:"+QY+"(?:D|LL|M|RE|S|T|VE))?",YY=Kye+"?",XY="["+Qye+"]?",qye="(?:"+Yye+"(?:"+[jye,KY,jY].join("|")+")"+XY+YY+")*",Zye="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jye="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ebe=XY+YY+qye,tbe="(?:"+[Wye,KY,jY].join("|")+")"+ebe,rbe=RegExp([Oh+"?"+WY+"+"+N$+"(?="+[$$,Oh,"$"].join("|")+")",Xye+"+"+H$+"(?="+[$$,Oh+U$,"$"].join("|")+")",Oh+"?"+U$+"+"+N$,Oh+"+"+H$,Jye,Zye,VY,tbe].join("|"),"g");function nbe(e){return e.match(rbe)||[]}function obe(e,t,r){return e=cA(e),t=r?void 0:t,t===void 0?Fye(e)?nbe(e):Mye(e):e.match(t)||[]}var abe="['’]",ibe=RegExp(abe,"g");function qY(e){return function(t){return mye(obe(Rye(t).replace(ibe,"")),e,"")}}var sbe=qY(function(e,t,r){return t=t.toLowerCase(),e+(r?gye(t):t)});const z$=sbe;var lbe=Hi.isFinite,ube=Math.min;function cbe(e){var t=Math[e];return function(r,n){if(r=Bw(r),n=n==null?0:ube(hge(n),292),n&&lbe(r)){var o=(cA(r)+"e").split("e"),a=t(o[0]+"e"+(+o[1]+n));return o=(cA(a)+"e").split("e"),+(o[0]+"e"+(+o[1]-n))}return t(r)}}function dbe(){this.__data__=new Bu,this.size=0}function fbe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Abe(e){return this.__data__.get(e)}function hbe(e){return this.__data__.has(e)}var vbe=200;function pbe(e,t){var r=this.__data__;if(r instanceof Bu){var n=r.__data__;if(!vm||n.length<vbe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Tu(n)}return r.set(e,t),this.size=r.size,this}function rl(e){var t=this.__data__=new Bu(e);this.size=t.size}rl.prototype.clear=dbe;rl.prototype.delete=fbe;rl.prototype.get=Abe;rl.prototype.has=hbe;rl.prototype.set=pbe;var ZY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Q$=ZY&&typeof module=="object"&&module&&!module.nodeType&&module,gbe=Q$&&Q$.exports===ZY,V$=gbe?Hi.Buffer:void 0,W$=V$?V$.allocUnsafe:void 0;function mbe(e,t){if(t)return e.slice();var r=e.length,n=W$?W$(r):new e.constructor(r);return e.copy(n),n}function ybe(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function bbe(){return[]}var xbe=Object.prototype,wbe=xbe.propertyIsEnumerable,G$=Object.getOwnPropertySymbols,Cbe=G$?function(e){return e==null?[]:(e=Object(e),ybe(G$(e),function(t){return wbe.call(e,t)}))}:bbe;const Sbe=Cbe;function _be(e,t,r){var n=t(e);return ki(e)?n:Lme(n,r(e))}function K$(e){return _be(e,Wk,Sbe)}var Bbe=TA(Hi,"DataView");const oD=Bbe;var Tbe=TA(Hi,"Promise");const aD=Tbe;var Ebe=TA(Hi,"Set");const iD=Ebe;var j$="[object Map]",Ibe="[object Object]",Y$="[object Promise]",X$="[object Set]",q$="[object WeakMap]",Z$="[object DataView]",Rbe=BA(oD),Dbe=BA(vm),Mbe=BA(aD),Pbe=BA(iD),Fbe=BA(tD),lf=_A;(oD&&lf(new oD(new ArrayBuffer(1)))!=Z$||vm&&lf(new vm)!=j$||aD&&lf(aD.resolve())!=Y$||iD&&lf(new iD)!=X$||tD&&lf(new tD)!=q$)&&(lf=function(e){var t=_A(e),r=t==Ibe?e.constructor:void 0,n=r?BA(r):"";if(n)switch(n){case Rbe:return Z$;case Dbe:return j$;case Mbe:return Y$;case Pbe:return X$;case Fbe:return q$}return t});const J$=lf;var kbe=Hi.Uint8Array;const Rw=kbe;function Lbe(e){var t=new e.constructor(e.byteLength);return new Rw(t).set(new Rw(e)),t}function Obe(e,t){var r=t?Lbe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function $be(e){return typeof e.constructor=="function"&&!Qk(e)?Fge(EY(e)):{}}var Ube="__lodash_hash_undefined__";function Nbe(e){return this.__data__.set(e,Ube),this}function Hbe(e){return this.__data__.has(e)}function Dw(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Tu;++t<r;)this.add(e[t])}Dw.prototype.add=Dw.prototype.push=Nbe;Dw.prototype.has=Hbe;function zbe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Qbe(e,t){return e.has(t)}var Vbe=1,Wbe=2;function JY(e,t,r,n,o,a){var i=r&Vbe,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,A=r&Wbe?new Dw:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],v=t[d];if(n)var p=i?n(v,h,d,t,e,a):n(h,v,d,e,t,a);if(p!==void 0){if(p)continue;f=!1;break}if(A){if(!zbe(t,function(g,m){if(!Qbe(A,m)&&(h===g||o(h,g,r,n,a)))return A.push(m)})){f=!1;break}}else if(!(h===v||o(h,v,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Gbe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Kbe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var jbe=1,Ybe=2,Xbe="[object Boolean]",qbe="[object Date]",Zbe="[object Error]",Jbe="[object Map]",e1e="[object Number]",t1e="[object RegExp]",r1e="[object Set]",n1e="[object String]",o1e="[object Symbol]",a1e="[object ArrayBuffer]",i1e="[object DataView]",eU=jc?jc.prototype:void 0,o2=eU?eU.valueOf:void 0;function s1e(e,t,r,n,o,a,i){switch(r){case i1e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case a1e:return!(e.byteLength!=t.byteLength||!a(new Rw(e),new Rw(t)));case Xbe:case qbe:case e1e:return Cy(+e,+t);case Zbe:return e.name==t.name&&e.message==t.message;case t1e:case n1e:return e==t+"";case Jbe:var s=Gbe;case r1e:var l=n&jbe;if(s||(s=Kbe),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=Ybe,i.set(e,t);var c=JY(s(e),s(t),n,o,a,i);return i.delete(e),c;case o1e:if(o2)return o2.call(e)==o2.call(t)}return!1}var l1e=1,u1e=Object.prototype,c1e=u1e.hasOwnProperty;function d1e(e,t,r,n,o,a){var i=r&l1e,s=K$(e),l=s.length,u=K$(t),c=u.length;if(l!=c&&!i)return!1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:c1e.call(t,f)))return!1}var A=a.get(e),h=a.get(t);if(A&&h)return A==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){f=s[d];var g=e[f],m=t[f];if(n)var y=i?n(m,g,f,t,e,a):n(g,m,f,e,t,a);if(!(y===void 0?g===m||o(g,m,r,n,a):y)){v=!1;break}p||(p=f=="constructor")}if(v&&!p){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof x=="function"&&x instanceof x)&&(v=!1)}return a.delete(e),a.delete(t),v}var f1e=1,tU="[object Arguments]",rU="[object Array]",Pb="[object Object]",A1e=Object.prototype,nU=A1e.hasOwnProperty;function h1e(e,t,r,n,o,a){var i=ki(e),s=ki(t),l=i?rU:J$(e),u=s?rU:J$(t);l=l==tU?Pb:l,u=u==tU?Pb:u;var c=l==Pb,d=u==Pb,f=l==u;if(f&&Iw(e)){if(!Iw(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new rl),i||Vk(e)?JY(e,t,r,n,o,a):s1e(e,t,l,r,n,o,a);if(!(r&f1e)){var A=c&&nU.call(e,"__wrapped__"),h=d&&nU.call(t,"__wrapped__");if(A||h){var v=A?e.value():e,p=h?t.value():t;return a||(a=new rl),o(v,p,r,n,a)}}return f?(a||(a=new rl),d1e(e,t,r,n,o,a)):!1}function jk(e,t,r,n,o){return e===t?!0:e==null||t==null||!Yc(e)&&!Yc(t)?e!==e&&t!==t:h1e(e,t,r,n,jk,o)}var v1e=1,p1e=2;function g1e(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=r[o];var l=s[0],u=e[l],c=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new rl;if(n)var f=n(u,c,l,e,t,d);if(!(f===void 0?jk(c,u,v1e|p1e,n,d):f))return!1}}return!0}function eX(e){return e===e&&!Li(e)}function m1e(e){for(var t=Wk(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,eX(o)]}return t}function tX(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function y1e(e){var t=m1e(e);return t.length==1&&t[0][2]?tX(t[0][0],t[0][1]):function(r){return r===e||g1e(r,e,t)}}function b1e(e,t){return e!=null&&t in Object(e)}function x1e(e,t,r){t=BY(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=LS(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&zk(o)&&Nk(i,o)&&(ki(e)||Ew(e)))}function w1e(e,t){return e!=null&&x1e(e,t,b1e)}var C1e=1,S1e=2;function _1e(e,t){return Gk(e)&&eX(t)?tX(LS(e),t):function(r){var n=pm(r,e);return n===void 0&&n===t?w1e(r,e):jk(t,n,C1e|S1e)}}function B1e(e){return function(t){return t==null?void 0:t[e]}}function T1e(e){return function(t){return TY(t,e)}}function E1e(e){return Gk(e)?B1e(LS(e)):T1e(e)}function I1e(e){return typeof e=="function"?e:e==null?$k:typeof e=="object"?ki(e)?_1e(e[0],e[1]):y1e(e):E1e(e)}function R1e(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(r(a[l],l,a)===!1)break}return t}}var D1e=R1e();const rX=D1e;function M1e(e,t){return e&&rX(e,t,Wk)}function P1e(e,t){return function(r,n){if(r==null)return r;if(!lp(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&n(i[a],a,i)!==!1;);return r}}var F1e=P1e(M1e);const k1e=F1e;var L1e=function(){return Hi.Date.now()};const a2=L1e;var O1e="Expected a function",$1e=Math.max,U1e=Math.min;function N1e(e,t,r){var n,o,a,i,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(O1e);t=Bw(t)||0,Li(r)&&(c=!!r.leading,d="maxWait"in r,a=d?$1e(Bw(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function A(w){var C=n,_=o;return n=o=void 0,u=w,i=e.apply(_,C),i}function h(w){return u=w,s=setTimeout(g,t),c?A(w):i}function v(w){var C=w-l,_=w-u,B=t-C;return d?U1e(B,a-_):B}function p(w){var C=w-l,_=w-u;return l===void 0||C>=t||C<0||d&&_>=a}function g(){var w=a2();if(p(w))return m(w);s=setTimeout(g,v(w))}function m(w){return s=void 0,f&&n?A(w):(n=o=void 0,i)}function y(){s!==void 0&&clearTimeout(s),u=0,n=l=o=s=void 0}function b(){return s===void 0?i:m(a2())}function x(){var w=a2(),C=p(w);if(n=arguments,o=this,l=w,C){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),A(l)}return s===void 0&&(s=setTimeout(g,t)),i}return x.cancel=y,x.flush=b,x}function sD(e,t,r){(r!==void 0&&!Cy(e[t],r)||r===void 0&&!(t in e))&&Hk(e,t,r)}function H1e(e){return Yc(e)&&lp(e)}function lD(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function z1e(e){return Zge(e,_Y(e))}function Q1e(e,t,r,n,o,a,i){var s=lD(e,r),l=lD(t,r),u=i.get(l);if(u){sD(e,r,u);return}var c=a?a(s,l,r+"",e,t,i):void 0,d=c===void 0;if(d){var f=ki(l),A=!f&&Iw(l),h=!f&&!A&&Vk(l);c=l,f||A||h?ki(s)?c=s:H1e(s)?c=Lge(s):A?(d=!1,c=mbe(l,!0)):h?(d=!1,c=Obe(l,!0)):c=[]:Qme(l)||Ew(l)?(c=s,Ew(s)?c=z1e(s):(!Li(s)||Uk(s))&&(c=$be(l))):d=!1}d&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),sD(e,r,c)}function nX(e,t,r,n,o){e!==t&&rX(t,function(a,i){if(o||(o=new rl),Li(a))Q1e(e,t,i,r,nX,n,o);else{var s=n?n(lD(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),sD(e,i,s)}},_Y)}function V1e(e,t){var r=-1,n=lp(e)?Array(e.length):[];return k1e(e,function(o,a,i){n[++r]=t(o,a,i)}),n}function W1e(e,t){var r=ki(e)?mY:V1e;return r(e,I1e(t))}var G1e=qY(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const oX=G1e;var K1e=n0e(function(e,t,r){nX(e,t,r)});const Vg=K1e;var j1e=cbe("round");const Y1e=j1e;var X1e="Expected a function";function i2(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(X1e);return Li(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),N1e(e,t,{leading:n,maxWait:t,trailing:o})}const Ma={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:q1e,fontFamily:Z1e,lineHeight:J1e}=Ma,aX=N("body",`
  17. margin: 0;
  18. font-size: ${q1e};
  19. font-family: ${Z1e};
  20. line-height: ${J1e};
  21. -webkit-text-size-adjust: 100%;
  22. -webkit-tap-highlight-color: transparent;
  23. `,[N("input",`
  24. font-family: inherit;
  25. font-size: inherit;
  26. `)]),fl="n-config-provider",Rv="naive-ui-style";function Me(e,t,r,n,o,a){const i=hd(),s=Ke(fl,null);if(r){const u=()=>{const c=a==null?void 0:a.value;r.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:Rv,ssr:i}),s!=null&&s.preflightStyleDisabled||aX.mount({id:"n-global",head:!0,anchorMetaName:Rv,ssr:i})};i?u():Su(u)}return L(()=>{var u;const{theme:{common:c,self:d,peers:f={}}={},themeOverrides:A={},builtinThemeOverrides:h={}}=o,{common:v,peers:p}=A,{common:g=void 0,[e]:{common:m=void 0,self:y=void 0,peers:b={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:x=void 0,[e]:w={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:C,peers:_={}}=w,B=Vg({},c||m||g||n.common,x,C,v),T=Vg((u=d||y||n.self)===null||u===void 0?void 0:u(B),h,w,A);return{common:B,self:T,peers:Vg({},n.peers,b,f),peerOverrides:Vg({},h.peers,_,p)}})}Me.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const iX="n";function nt(e={},t={defaultBordered:!0}){const r=Ke(fl,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:L(()=>{var n,o;const{bordered:a}=e;return a!==void 0?a:(o=(n=r==null?void 0:r.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:L(()=>(r==null?void 0:r.mergedClsPrefixRef.value)||iX),namespaceRef:L(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const exe={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},txe=exe,rxe={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},sX=rxe;var Fb={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}};function nxe(e,t,r){r=r||{};var n;return typeof Fb[e]=="string"?n=Fb[e]:t===1?n=Fb[e].one:n=Fb[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?n+"内":n+"前":n}function fv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var oxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},axe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},ixe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sxe={date:fv({formats:oxe,defaultWidth:"full"}),time:fv({formats:axe,defaultWidth:"full"}),dateTime:fv({formats:ixe,defaultWidth:"full"})};const lxe=sxe;function Ht(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function jt(e){Ht(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Cr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ru(e,t){Ht(1,arguments);var r=t||{},n=r.locale,o=n&&n.options&&n.options.weekStartsOn,a=o==null?0:Cr(o),i=r.weekStartsOn==null?a:Cr(r.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=jt(e),l=s.getUTCDay(),u=(l<i?7:0)+l-i;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function uxe(e,t,r){Ht(2,arguments);var n=ru(e,r),o=ru(t,r);return n.getTime()===o.getTime()}function oU(e,t,r,n){return uxe(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var cxe={lastWeek:oU,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:oU,other:"PP p"};function dxe(e,t,r,n){var o=cxe[e];return typeof o=="function"?o(t,r,n,"eeee p"):o}function Ws(e){return function(t,r){var n=r||{},o=n.context?String(n.context):"standalone",a;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n.width?String(n.width):i;a=e.formattingValues[s]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return a[c]}}var fxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Axe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},hxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},vxe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},pxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},gxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}};function mxe(e,t){var r=Number(e),n=t||{},o=String(n.unit);switch(o){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}}var yxe={ordinalNumber:mxe,era:Ws({values:fxe,defaultWidth:"wide"}),quarter:Ws({values:Axe,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Ws({values:hxe,defaultWidth:"wide"}),day:Ws({values:vxe,defaultWidth:"wide"}),dayPeriod:Ws({values:pxe,defaultWidth:"wide",formattingValues:gxe,defaultFormattingWidth:"wide"})};const bxe=yxe;function lX(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(o.length);return{value:i,rest:s}}}function Gs(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?wxe(s,function(d){return d.test(i)}):xxe(s,function(d){return d.test(i)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(i.length);return{value:u,rest:c}}}function xxe(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function wxe(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}var Cxe=/^(第\s*)?\d+(日|时|分|秒)?/i,Sxe=/\d+/i,_xe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Bxe={any:[/^(前)/i,/^(公元)/i]},Txe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Exe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Ixe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Rxe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Dxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Mxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Pxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Fxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},kxe={ordinalNumber:lX({matchPattern:Cxe,parsePattern:Sxe,valueCallback:function(e){return parseInt(e,10)}}),era:Gs({matchPatterns:_xe,defaultMatchWidth:"wide",parsePatterns:Bxe,defaultParseWidth:"any"}),quarter:Gs({matchPatterns:Txe,defaultMatchWidth:"wide",parsePatterns:Exe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Gs({matchPatterns:Ixe,defaultMatchWidth:"wide",parsePatterns:Rxe,defaultParseWidth:"any"}),day:Gs({matchPatterns:Dxe,defaultMatchWidth:"wide",parsePatterns:Mxe,defaultParseWidth:"any"}),dayPeriod:Gs({matchPatterns:Pxe,defaultMatchWidth:"any",parsePatterns:Fxe,defaultParseWidth:"any"})};const Lxe=kxe;var Oxe={code:"zh-CN",formatDistance:nxe,formatLong:lxe,formatRelative:dxe,localize:bxe,match:Lxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const $xe=Oxe,Uxe={name:"zh-CN",locale:$xe},Nxe=Uxe;var Hxe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zxe=function(e,t,r){var n,o=Hxe[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const Qxe=zxe;var Vxe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wxe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gxe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kxe={date:fv({formats:Vxe,defaultWidth:"full"}),time:fv({formats:Wxe,defaultWidth:"full"}),dateTime:fv({formats:Gxe,defaultWidth:"full"})};const jxe=Kxe;var Yxe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xxe=function(e,t,r,n){return Yxe[e]};const qxe=Xxe;var Zxe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jxe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ewe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},twe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rwe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nwe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},owe=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},awe={ordinalNumber:owe,era:Ws({values:Zxe,defaultWidth:"wide"}),quarter:Ws({values:Jxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ws({values:ewe,defaultWidth:"wide"}),day:Ws({values:twe,defaultWidth:"wide"}),dayPeriod:Ws({values:rwe,defaultWidth:"wide",formattingValues:nwe,defaultFormattingWidth:"wide"})};const iwe=awe;var swe=/^(\d+)(th|st|nd|rd)?/i,lwe=/\d+/i,uwe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cwe={any:[/^b/i,/^(a|c)/i]},dwe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fwe={any:[/1/i,/2/i,/3/i,/4/i]},Awe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hwe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vwe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pwe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gwe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mwe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ywe={ordinalNumber:lX({matchPattern:swe,parsePattern:lwe,valueCallback:function(e){return parseInt(e,10)}}),era:Gs({matchPatterns:uwe,defaultMatchWidth:"wide",parsePatterns:cwe,defaultParseWidth:"any"}),quarter:Gs({matchPatterns:dwe,defaultMatchWidth:"wide",parsePatterns:fwe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Gs({matchPatterns:Awe,defaultMatchWidth:"wide",parsePatterns:hwe,defaultParseWidth:"any"}),day:Gs({matchPatterns:vwe,defaultMatchWidth:"wide",parsePatterns:pwe,defaultParseWidth:"any"}),dayPeriod:Gs({matchPatterns:gwe,defaultMatchWidth:"any",parsePatterns:mwe,defaultParseWidth:"any"})};const bwe=ywe;var xwe={code:"en-US",formatDistance:Qxe,formatLong:jxe,formatRelative:qxe,localize:iwe,match:bwe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const OS=xwe,wwe={name:"en-US",locale:OS},uX=wwe;function zi(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=Ke(fl,null)||{},n=L(()=>{var a,i;return(i=(a=t==null?void 0:t.value)===null||a===void 0?void 0:a[e])!==null&&i!==void 0?i:sX[e]});return{dateLocaleRef:L(()=>{var a;return(a=r==null?void 0:r.value)!==null&&a!==void 0?a:uX}),localeRef:n}}function ml(e,t,r){if(!t)return;const n=hd(),o=Ke(fl,null),a=()=>{const i=r==null?void 0:r.value;t.mount({id:i===void 0?e:i+e,head:!0,anchorMetaName:Rv,props:{bPrefix:i?`.${i}-`:void 0},ssr:n}),o!=null&&o.preflightStyleDisabled||aX.mount({id:"n-global",head:!0,anchorMetaName:Rv,ssr:n})};n?a():Su(a)}function Cwe(e,t){const r=Ke(fl,null);return L(()=>e.hljs||(r==null?void 0:r.mergedHljsRef.value))}function Et(e,t,r,n){var o;r||$o("useThemeClass","cssVarsRef is not passed");const a=(o=Ke(fl,null))===null||o===void 0?void 0:o.mergedThemeHashRef,i=q(""),s=hd();let l;const u=`__${e}`,c=()=>{let d=u;const f=t?t.value:void 0,A=a==null?void 0:a.value;A&&(d+="-"+A),f&&(d+="-"+f);const{themeOverrides:h,builtinThemeOverrides:v}=n;h&&(d+="-"+cm(JSON.stringify(h))),v&&(d+="-"+cm(JSON.stringify(v))),i.value=d,l=()=>{const p=r.value;let g="";for(const m in p)g+=`${m}: ${p[m]};`;N(`.${d}`,g).mount({id:d,ssr:s}),l=void 0}};return Sr(()=>{c()}),{themeClass:i,onRender:()=>{l==null||l()}}}function dn(e,t,r){if(!t)return;const n=hd(),o=L(()=>{const{value:i}=t;if(!i)return;const s=i[e];if(s)return s}),a=()=>{Sr(()=>{const{value:i}=r,s=`${i}${e}Rtl`;if(Eve(s,n))return;const{value:l}=o;l&&l.style.mount({id:s,head:!0,anchorMetaName:Rv,props:{bPrefix:i?`.${i}-`:void 0},ssr:n})})};return n?a():Su(a),o}const Yk=ge({name:"Add",render(){return S("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Swe=ge({name:"ArrowDown",render(){return S("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function So(e,t){return ge({name:OY(e),setup(){var r;const n=(r=Ke(fl,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var o;const a=(o=n==null?void 0:n.value)===null||o===void 0?void 0:o[e];return a?a():t}}})}const _we=So("attach",S("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Xc=ge({name:"Backward",render(){return S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),aU=So("date",S("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),cX=ge({name:"Checkmark",render(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},S("g",{fill:"none"},S("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Bwe=ge({name:"ChevronLeft",render(){return S("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),$S=ge({name:"ChevronRight",render(){return S("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),dX=So("close",S("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),fX=ge({name:"Eye",render(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),S("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Twe=ge({name:"EyeOff",render(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),S("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),S("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),S("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),S("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Ewe=So("trash",S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),S("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),S("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),S("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),Iwe=So("download",S("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),Rwe=ge({name:"Empty",render(){return S("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),S("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),EA=So("error",S("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),qc=ge({name:"FastBackward",render(){return S("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Zc=ge({name:"FastForward",render(){return S("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Dwe=ge({name:"Filter",render(){return S("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Jc=ge({name:"Forward",render(){return S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),ed=So("info",S("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),iU=ge({name:"More",render(){return S("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Mwe=ge({name:"Remove",render(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
  27. fill: none;
  28. stroke: currentColor;
  29. stroke-linecap: round;
  30. stroke-linejoin: round;
  31. stroke-width: 32px;
  32. `}))}}),IA=So("success",S("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Pwe=ge({name:"Switcher",render(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},S("path",{d:"M12 8l10 8l-10 8z"}))}}),Fwe=So("time",S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:`
  33. fill: none;
  34. stroke: currentColor;
  35. stroke-miterlimit: 10;
  36. stroke-width: 32px;
  37. `}),S("polyline",{points:"256 128 256 272 352 272",style:`
  38. fill: none;
  39. stroke: currentColor;
  40. stroke-linecap: round;
  41. stroke-linejoin: round;
  42. stroke-width: 32px;
  43. `}))),RA=So("warning",S("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{"fill-rule":"nonzero"},S("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),kwe=So("cancel",S("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),AX=ge({name:"ChevronDown",render(){return S("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Lwe=So("clear",S("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Owe=ge({name:"ChevronDownFilled",render(){return S("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),$we=So("to",S("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},S("g",{fill:"currentColor","fill-rule":"nonzero"},S("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),Uwe=So("retry",S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),S("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),Nwe=So("rotateClockwise",S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),S("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),Hwe=So("rotateClockwise",S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),S("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),zwe=So("zoomIn",S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),S("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Qwe=So("zoomOut",S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),S("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),Vwe=ge({name:"ResizeSmall",render(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},S("g",{fill:"none"},S("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),yl=ge({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=oi();return()=>S(jr,{name:"icon-switch-transition",appear:r.value},t)}}),bl=ge({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function n(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function o(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function a(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function i(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const s=e.group?IS:jr;return S(s,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:a,onAfterEnter:i,onBeforeLeave:r,onLeave:n,onAfterLeave:o},t)}}}),Wwe=P("base-icon",`
  44. height: 1em;
  45. width: 1em;
  46. line-height: 1em;
  47. text-align: center;
  48. display: inline-block;
  49. position: relative;
  50. fill: currentColor;
  51. transform: translateZ(0);
  52. `,[N("svg",`
  53. height: 1em;
  54. width: 1em;
  55. `)]),zt=ge({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ml("-base-icon",Wwe,Re(e,"clsPrefix"))},render(){return S("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Gwe=P("base-close",`
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. cursor: pointer;
  60. background-color: transparent;
  61. color: var(--n-close-icon-color);
  62. border-radius: var(--n-close-border-radius);
  63. height: var(--n-close-size);
  64. width: var(--n-close-size);
  65. font-size: var(--n-close-icon-size);
  66. outline: none;
  67. border: none;
  68. position: relative;
  69. padding: 0;
  70. `,[j("absolute",`
  71. height: var(--n-close-icon-size);
  72. width: var(--n-close-icon-size);
  73. `),N("&::before",`
  74. content: "";
  75. position: absolute;
  76. width: var(--n-close-size);
  77. height: var(--n-close-size);
  78. left: 50%;
  79. top: 50%;
  80. transform: translateY(-50%) translateX(-50%);
  81. transition: inherit;
  82. border-radius: inherit;
  83. `),Wt("disabled",[N("&:hover",`
  84. color: var(--n-close-icon-color-hover);
  85. `),N("&:hover::before",`
  86. background-color: var(--n-close-color-hover);
  87. `),N("&:focus::before",`
  88. background-color: var(--n-close-color-hover);
  89. `),N("&:active",`
  90. color: var(--n-close-icon-color-pressed);
  91. `),N("&:active::before",`
  92. background-color: var(--n-close-color-pressed);
  93. `)]),j("disabled",`
  94. cursor: not-allowed;
  95. color: var(--n-close-icon-color-disabled);
  96. background-color: transparent;
  97. `),j("round",[N("&::before",`
  98. border-radius: 50%;
  99. `)])]),pd=ge({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ml("-base-close",Gwe,Re(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:n,round:o,isButtonTag:a}=e;return S(a?"button":"div",{type:a?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:a?void 0:"button",disabled:r,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},S(zt,{clsPrefix:t},{default:()=>S(dX,null)}))}}}),gd=ge({props:{onFocus:Function,onBlur:Function},setup(e){return()=>S("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:Kwe}=Ma;function Jn({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${Kwe} !important`}={}){return[N("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),N("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),N("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}const jwe=N([N("@keyframes loading-container-rotate",`
  100. to {
  101. -webkit-transform: rotate(360deg);
  102. transform: rotate(360deg);
  103. }
  104. `),N("@keyframes loading-layer-rotate",`
  105. 12.5% {
  106. -webkit-transform: rotate(135deg);
  107. transform: rotate(135deg);
  108. }
  109. 25% {
  110. -webkit-transform: rotate(270deg);
  111. transform: rotate(270deg);
  112. }
  113. 37.5% {
  114. -webkit-transform: rotate(405deg);
  115. transform: rotate(405deg);
  116. }
  117. 50% {
  118. -webkit-transform: rotate(540deg);
  119. transform: rotate(540deg);
  120. }
  121. 62.5% {
  122. -webkit-transform: rotate(675deg);
  123. transform: rotate(675deg);
  124. }
  125. 75% {
  126. -webkit-transform: rotate(810deg);
  127. transform: rotate(810deg);
  128. }
  129. 87.5% {
  130. -webkit-transform: rotate(945deg);
  131. transform: rotate(945deg);
  132. }
  133. 100% {
  134. -webkit-transform: rotate(1080deg);
  135. transform: rotate(1080deg);
  136. }
  137. `),N("@keyframes loading-left-spin",`
  138. from {
  139. -webkit-transform: rotate(265deg);
  140. transform: rotate(265deg);
  141. }
  142. 50% {
  143. -webkit-transform: rotate(130deg);
  144. transform: rotate(130deg);
  145. }
  146. to {
  147. -webkit-transform: rotate(265deg);
  148. transform: rotate(265deg);
  149. }
  150. `),N("@keyframes loading-right-spin",`
  151. from {
  152. -webkit-transform: rotate(-265deg);
  153. transform: rotate(-265deg);
  154. }
  155. 50% {
  156. -webkit-transform: rotate(-130deg);
  157. transform: rotate(-130deg);
  158. }
  159. to {
  160. -webkit-transform: rotate(-265deg);
  161. transform: rotate(-265deg);
  162. }
  163. `),P("base-loading",`
  164. position: relative;
  165. line-height: 0;
  166. width: 1em;
  167. height: 1em;
  168. `,[G("transition-wrapper",`
  169. position: absolute;
  170. width: 100%;
  171. height: 100%;
  172. `,[Jn()]),G("container",`
  173. display: inline-flex;
  174. position: relative;
  175. direction: ltr;
  176. line-height: 0;
  177. animation: loading-container-rotate 1568.2352941176ms linear infinite;
  178. font-size: 0;
  179. letter-spacing: 0;
  180. white-space: nowrap;
  181. opacity: 1;
  182. width: 100%;
  183. height: 100%;
  184. `,[G("svg",`
  185. stroke: var(--n-text-color);
  186. fill: transparent;
  187. position: absolute;
  188. height: 100%;
  189. overflow: hidden;
  190. `),G("container-layer",`
  191. position: absolute;
  192. width: 100%;
  193. height: 100%;
  194. animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  195. `,[G("container-layer-left",`
  196. display: inline-flex;
  197. position: relative;
  198. width: 50%;
  199. height: 100%;
  200. overflow: hidden;
  201. `,[G("svg",`
  202. animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  203. width: 200%;
  204. `)]),G("container-layer-patch",`
  205. position: absolute;
  206. top: 0;
  207. left: 47.5%;
  208. box-sizing: border-box;
  209. width: 5%;
  210. height: 100%;
  211. overflow: hidden;
  212. `,[G("svg",`
  213. left: -900%;
  214. width: 2000%;
  215. transform: rotate(180deg);
  216. `)]),G("container-layer-right",`
  217. display: inline-flex;
  218. position: relative;
  219. width: 50%;
  220. height: 100%;
  221. overflow: hidden;
  222. `,[G("svg",`
  223. animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  224. left: -100%;
  225. width: 200%;
  226. `)])])]),G("placeholder",`
  227. position: absolute;
  228. left: 50%;
  229. top: 50%;
  230. transform: translateX(-50%) translateY(-50%);
  231. `,[Jn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),Ywe={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Eu=ge({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},Ywe),setup(e){ml("-base-loading",jwe,Re(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:n,scale:o}=this,a=t/o;return S("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},S(yl,null,{default:()=>this.show?S("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},S("div",{class:`${e}-base-loading__container`},S("div",{class:`${e}-base-loading__container-layer`},S("div",{class:`${e}-base-loading__container-layer-left`},S("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},S("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:a,cy:a,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),S("div",{class:`${e}-base-loading__container-layer-patch`},S("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},S("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:a,cy:a,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),S("div",{class:`${e}-base-loading__container-layer-right`},S("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},S("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:a,cy:a,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):S("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function sU(e){return Array.isArray(e)?e:[e]}const uD={STOP:"STOP"};function hX(e,t){const r=t(e);e.children!==void 0&&r!==uD.STOP&&e.children.forEach(n=>hX(n,t))}function Xwe(e,t={}){const{preserveGroup:r=!1}=t,n=[],o=r?i=>{i.isLeaf||(n.push(i.key),a(i.children))}:i=>{i.isLeaf||(i.isGroup||n.push(i.key),a(i.children))};function a(i){i.forEach(o)}return a(e),n}function qwe(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function Zwe(e){return e.children}function Jwe(e){return e.key}function eCe(){return!1}function tCe(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function rCe(e){return e.disabled===!0}function nCe(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function s2(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function l2(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function oCe(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function aCe(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function iCe(e){return(e==null?void 0:e.type)==="group"}function vX(e){const t=new Map;return e.forEach((r,n)=>{t.set(r.key,n)}),r=>{var n;return(n=t.get(r))!==null&&n!==void 0?n:null}}class sCe extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function lCe(e,t,r,n){return Mw(t.concat(e),r,n,!1)}function uCe(e,t){const r=new Set;return e.forEach(n=>{const o=t.treeNodeMap.get(n);if(o!==void 0){let a=o.parent;for(;a!==null&&!(a.disabled||r.has(a.key));)r.add(a.key),a=a.parent}}),r}function cCe(e,t,r,n){const o=Mw(t,r,n,!1),a=Mw(e,r,n,!0),i=uCe(e,r),s=[];return o.forEach(l=>{(a.has(l)||i.has(l))&&s.push(l)}),s.forEach(l=>o.delete(l)),o}function u2(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:o,indeterminateKeys:a,cascade:i,leafOnly:s,checkStrategy:l,allowNotLoaded:u}=e;if(!i)return n!==void 0?{checkedKeys:oCe(r,n),indeterminateKeys:Array.from(a)}:o!==void 0?{checkedKeys:aCe(r,o),indeterminateKeys:Array.from(a)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(a)};const{levelTreeNodeMap:c}=t;let d;o!==void 0?d=cCe(o,r,t,u):n!==void 0?d=lCe(n,r,t,u):d=Mw(r,t,u,!1);const f=l==="parent",A=l==="child"||s,h=d,v=new Set,p=Math.max.apply(null,Array.from(c.keys()));for(let g=p;g>=0;g-=1){const m=g===0,y=c.get(g);for(const b of y){if(b.isLeaf)continue;const{key:x,shallowLoaded:w}=b;if(A&&w&&b.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&h.has(T.key)&&h.delete(T.key)}),b.disabled||!w)continue;let C=!0,_=!1,B=!0;for(const T of b.children){const E=T.key;if(!T.disabled){if(B&&(B=!1),h.has(E))_=!0;else if(v.has(E)){_=!0,C=!1;break}else if(C=!1,_)break}}C&&!B?(f&&b.children.forEach(T=>{!T.disabled&&h.has(T.key)&&h.delete(T.key)}),h.add(x)):_&&v.add(x),m&&A&&h.has(x)&&h.delete(x)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(v)}}function Mw(e,t,r,n){const{treeNodeMap:o,getChildren:a}=t,i=new Set,s=new Set(e);return e.forEach(l=>{const u=o.get(l);u!==void 0&&hX(u,c=>{if(c.disabled)return uD.STOP;const{key:d}=c;if(!i.has(d)&&(i.add(d),s.add(d),nCe(c.rawNode,a))){if(n)return uD.STOP;if(!r)throw new sCe}})}),s}function dCe(e,{includeGroup:t=!1,includeSelf:r=!0},n){var o;const a=n.treeNodeMap;let i=e==null?null:(o=a.get(e))!==null&&o!==void 0?o:null;const s={keyPath:[],treeNodePath:[],treeNode:i};if(i!=null&&i.ignored)return s.treeNode=null,s;for(;i;)!i.ignored&&(t||!i.isGroup)&&s.treeNodePath.push(i),i=i.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function fCe(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function ACe(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o+1)%n]:o===r.length-1?null:r[o+1]}function lU(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const o=t==="prev"?hCe:ACe,a={reverse:t==="prev"};let i=!1,s=null;function l(u){if(u!==null){if(u===e){if(!i)i=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){s=u;return}if(u.isGroup){const c=Xk(u,a);c!==null?s=c:l(o(u,r))}else{const c=o(u,!1);if(c!==null)l(c);else{const d=vCe(u);d!=null&&d.isGroup?l(o(d,r)):r&&l(o(u,!0))}}}}return l(e),s}function hCe(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o-1+n)%n]:o===0?null:r[o-1]}function vCe(e){return e.parent}function Xk(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:o}=n,a=r?o-1:0,i=r?-1:o,s=r?-1:1;for(let l=a;l!==i;l+=s){const u=n[l];if(!u.disabled&&!u.ignored)if(u.isGroup){const c=Xk(u,t);if(c!==null)return c}else return u}}return null}const pCe={getChild(){return this.ignored?null:Xk(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return lU(this,"next",e)},getPrev(e={}){return lU(this,"prev",e)}};function cD(e,t){const r=t?new Set(t):void 0,n=[];function o(a){a.forEach(i=>{n.push(i),!(i.isLeaf||!i.children||i.ignored)&&(i.isGroup||r===void 0||r.has(i.key))&&o(i.children)})}return o(e),n}function gCe(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function pX(e,t,r,n,o,a=null,i=0){const s=[];return e.forEach((l,u)=>{var c;const d=Object.create(n);if(d.rawNode=l,d.siblings=s,d.level=i,d.index=u,d.isFirstChild=u===0,d.isLastChild=u+1===e.length,d.parent=a,!d.ignored){const f=o(l);Array.isArray(f)&&(d.children=pX(f,t,r,n,o,d,i+1))}s.push(d),t.set(d.key,d),r.has(i)||r.set(i,[]),(c=r.get(i))===null||c===void 0||c.push(d)}),s}function up(e,t={}){var r;const n=new Map,o=new Map,{getDisabled:a=rCe,getIgnored:i=eCe,getIsGroup:s=iCe,getKey:l=Jwe}=t,u=(r=t.getChildren)!==null&&r!==void 0?r:Zwe,c=t.ignoreEmptyChildren?b=>{const x=u(b);return Array.isArray(x)?x.length?x:null:x}:u,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return a(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return qwe(this.rawNode,c)},get shallowLoaded(){return tCe(this.rawNode,c)},get ignored(){return i(this.rawNode)},contains(b){return gCe(this,b)}},pCe),f=pX(e,n,o,d,c);function A(b){if(b==null)return null;const x=n.get(b);return x&&!x.isGroup&&!x.ignored?x:null}function h(b){if(b==null)return null;const x=n.get(b);return x&&!x.ignored?x:null}function v(b,x){const w=h(b);return w?w.getPrev(x):null}function p(b,x){const w=h(b);return w?w.getNext(x):null}function g(b){const x=h(b);return x?x.getParent():null}function m(b){const x=h(b);return x?x.getChild():null}const y={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:c,getFlattenedNodes(b){return cD(f,b)},getNode:A,getPrev:v,getNext:p,getParent:g,getChild:m,getFirstAvailableNode(){return fCe(f)},getPath(b,x={}){return dCe(b,x,y)},getCheckedKeys(b,x={}){const{cascade:w=!0,leafOnly:C=!1,checkStrategy:_="all",allowNotLoaded:B=!1}=x;return u2({checkedKeys:s2(b),indeterminateKeys:l2(b),cascade:w,leafOnly:C,checkStrategy:_,allowNotLoaded:B},y)},check(b,x,w={}){const{cascade:C=!0,leafOnly:_=!1,checkStrategy:B="all",allowNotLoaded:T=!1}=w;return u2({checkedKeys:s2(x),indeterminateKeys:l2(x),keysToCheck:b==null?[]:sU(b),cascade:C,leafOnly:_,checkStrategy:B,allowNotLoaded:T},y)},uncheck(b,x,w={}){const{cascade:C=!0,leafOnly:_=!1,checkStrategy:B="all",allowNotLoaded:T=!1}=w;return u2({checkedKeys:s2(x),indeterminateKeys:l2(x),keysToUncheck:b==null?[]:sU(b),cascade:C,leafOnly:_,checkStrategy:B,allowNotLoaded:T},y)},getNonLeafKeys(b={}){return Xwe(f,b)}};return y}const St={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},mCe=Xn(St.neutralBase),gX=Xn(St.neutralInvertBase),yCe="rgba("+gX.slice(0,3).join(", ")+", ";function Or(e){return yCe+String(e)+")"}function bCe(e){const t=Array.from(gX);return t[3]=Number(e),Dt(mCe,t)}const xCe=Object.assign(Object.assign({name:"common"},Ma),{baseColor:St.neutralBase,primaryColor:St.primaryDefault,primaryColorHover:St.primaryHover,primaryColorPressed:St.primaryActive,primaryColorSuppl:St.primarySuppl,infoColor:St.infoDefault,infoColorHover:St.infoHover,infoColorPressed:St.infoActive,infoColorSuppl:St.infoSuppl,successColor:St.successDefault,successColorHover:St.successHover,successColorPressed:St.successActive,successColorSuppl:St.successSuppl,warningColor:St.warningDefault,warningColorHover:St.warningHover,warningColorPressed:St.warningActive,warningColorSuppl:St.warningSuppl,errorColor:St.errorDefault,errorColorHover:St.errorHover,errorColorPressed:St.errorActive,errorColorSuppl:St.errorSuppl,textColorBase:St.neutralTextBase,textColor1:Or(St.alpha1),textColor2:Or(St.alpha2),textColor3:Or(St.alpha3),textColorDisabled:Or(St.alpha4),placeholderColor:Or(St.alpha4),placeholderColorDisabled:Or(St.alpha5),iconColor:Or(St.alpha4),iconColorDisabled:Or(St.alpha5),iconColorHover:Or(Number(St.alpha4)*1.25),iconColorPressed:Or(Number(St.alpha4)*.8),opacity1:St.alpha1,opacity2:St.alpha2,opacity3:St.alpha3,opacity4:St.alpha4,opacity5:St.alpha5,dividerColor:Or(St.alphaDivider),borderColor:Or(St.alphaBorder),closeIconColorHover:Or(Number(St.alphaClose)),closeIconColor:Or(Number(St.alphaClose)),closeIconColorPressed:Or(Number(St.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Or(St.alpha4),clearColorHover:zn(Or(St.alpha4),{alpha:1.25}),clearColorPressed:zn(Or(St.alpha4),{alpha:.8}),scrollbarColor:Or(St.alphaScrollbar),scrollbarColorHover:Or(St.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Or(St.alphaProgressRail),railColor:Or(St.alphaRail),popoverColor:St.neutralPopover,tableColor:St.neutralCard,cardColor:St.neutralCard,modalColor:St.neutralModal,bodyColor:St.neutralBody,tagColor:bCe(St.alphaTag),avatarColor:Or(St.alphaAvatar),invertedColor:St.neutralBase,inputColor:Or(St.alphaInput),codeColor:Or(St.alphaCode),tabColor:Or(St.alphaTab),actionColor:Or(St.alphaAction),tableHeaderColor:Or(St.alphaAction),hoverColor:Or(St.alphaPending),tableColorHover:Or(St.alphaTablePending),tableColorStriped:Or(St.alphaTableStriped),pressedColor:Or(St.alphaPressed),opacityDisabled:St.alphaDisabled,inputColorDisabled:Or(St.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),ct=xCe,Gt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},wCe=Xn(Gt.neutralBase),mX=Xn(Gt.neutralInvertBase),CCe="rgba("+mX.slice(0,3).join(", ")+", ";function uU(e){return CCe+String(e)+")"}function No(e){const t=Array.from(mX);return t[3]=Number(e),Dt(wCe,t)}const SCe=Object.assign(Object.assign({name:"common"},Ma),{baseColor:Gt.neutralBase,primaryColor:Gt.primaryDefault,primaryColorHover:Gt.primaryHover,primaryColorPressed:Gt.primaryActive,primaryColorSuppl:Gt.primarySuppl,infoColor:Gt.infoDefault,infoColorHover:Gt.infoHover,infoColorPressed:Gt.infoActive,infoColorSuppl:Gt.infoSuppl,successColor:Gt.successDefault,successColorHover:Gt.successHover,successColorPressed:Gt.successActive,successColorSuppl:Gt.successSuppl,warningColor:Gt.warningDefault,warningColorHover:Gt.warningHover,warningColorPressed:Gt.warningActive,warningColorSuppl:Gt.warningSuppl,errorColor:Gt.errorDefault,errorColorHover:Gt.errorHover,errorColorPressed:Gt.errorActive,errorColorSuppl:Gt.errorSuppl,textColorBase:Gt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:No(Gt.alpha4),placeholderColor:No(Gt.alpha4),placeholderColorDisabled:No(Gt.alpha5),iconColor:No(Gt.alpha4),iconColorHover:zn(No(Gt.alpha4),{lightness:.75}),iconColorPressed:zn(No(Gt.alpha4),{lightness:.9}),iconColorDisabled:No(Gt.alpha5),opacity1:Gt.alpha1,opacity2:Gt.alpha2,opacity3:Gt.alpha3,opacity4:Gt.alpha4,opacity5:Gt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:No(Number(Gt.alphaClose)),closeIconColorHover:No(Number(Gt.alphaClose)),closeIconColorPressed:No(Number(Gt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:No(Gt.alpha4),clearColorHover:zn(No(Gt.alpha4),{lightness:.75}),clearColorPressed:zn(No(Gt.alpha4),{lightness:.9}),scrollbarColor:uU(Gt.alphaScrollbar),scrollbarColorHover:uU(Gt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:No(Gt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Gt.neutralPopover,tableColor:Gt.neutralCard,cardColor:Gt.neutralCard,modalColor:Gt.neutralModal,bodyColor:Gt.neutralBody,tagColor:"#eee",avatarColor:No(Gt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:No(Gt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Gt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Lt=SCe,_Ce={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},yX=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,fontSizeHuge:s}=e;return Object.assign(Object.assign({},_Ce),{fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},BCe={name:"Empty",common:Lt,self:yX},Sy=BCe,TCe={name:"Empty",common:ct,self:yX},DA=TCe,ECe=P("empty",`
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. font-size: var(--n-font-size);
  236. `,[G("icon",`
  237. width: var(--n-icon-size);
  238. height: var(--n-icon-size);
  239. font-size: var(--n-icon-size);
  240. line-height: var(--n-icon-size);
  241. color: var(--n-icon-color);
  242. transition:
  243. color .3s var(--n-bezier);
  244. `,[N("+",[G("description",`
  245. margin-top: 8px;
  246. `)])]),G("description",`
  247. transition: color .3s var(--n-bezier);
  248. color: var(--n-text-color);
  249. `),G("extra",`
  250. text-align: center;
  251. transition: color .3s var(--n-bezier);
  252. margin-top: 12px;
  253. color: var(--n-extra-text-color);
  254. `)]),ICe=Object.assign(Object.assign({},Me.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),US=ge({name:"Empty",props:ICe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Empty","-empty",ECe,Sy,e,t),{localeRef:o}=zi("Empty"),a=Ke(fl,null),i=L(()=>{var c,d,f;return(c=e.description)!==null&&c!==void 0?c:(f=(d=a==null?void 0:a.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.description}),s=L(()=>{var c,d;return((d=(c=a==null?void 0:a.mergedComponentPropsRef.value)===null||c===void 0?void 0:c.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>S(Rwe,null))}),l=L(()=>{const{size:c}=e,{common:{cubicBezierEaseInOut:d},self:{[_e("iconSize",c)]:f,[_e("fontSize",c)]:A,textColor:h,iconColor:v,extraTextColor:p}}=n.value;return{"--n-icon-size":f,"--n-font-size":A,"--n-bezier":d,"--n-text-color":h,"--n-icon-color":v,"--n-extra-text-color":p}}),u=r?Et("empty",L(()=>{let c="";const{size:d}=e;return c+=d[0],c}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:L(()=>i.value||o.value.description),cssVars:r?void 0:l,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),S("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?S("div",{class:`${t}-empty__icon`},e.icon?e.icon():S(zt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?S("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?S("div",{class:`${t}-empty__extra`},e.extra()):null)}}),bX=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},RCe={name:"Scrollbar",common:Lt,self:bX},xl=RCe,DCe={name:"Scrollbar",common:ct,self:bX},Pa=DCe,{cubicBezierEaseInOut:cU}=Ma;function dA({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:n=cU,leaveCubicBezier:o=cU}={}){return[N(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),N(`&.${e}-transition-leave-active`,{transition:`all ${r} ${o}!important`}),N(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),N(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const MCe=P("scrollbar",`
  255. overflow: hidden;
  256. position: relative;
  257. z-index: auto;
  258. height: 100%;
  259. width: 100%;
  260. `,[N(">",[P("scrollbar-container",`
  261. width: 100%;
  262. overflow: scroll;
  263. height: 100%;
  264. max-height: inherit;
  265. scrollbar-width: none;
  266. `,[N("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  267. width: 0;
  268. height: 0;
  269. display: none;
  270. `),N(">",[P("scrollbar-content",`
  271. box-sizing: border-box;
  272. min-width: 100%;
  273. `)])])]),N(">, +",[P("scrollbar-rail",`
  274. position: absolute;
  275. pointer-events: none;
  276. user-select: none;
  277. -webkit-user-select: none;
  278. `,[j("horizontal",`
  279. left: 2px;
  280. right: 2px;
  281. bottom: 4px;
  282. height: var(--n-scrollbar-height);
  283. `,[N(">",[G("scrollbar",`
  284. height: var(--n-scrollbar-height);
  285. border-radius: var(--n-scrollbar-border-radius);
  286. right: 0;
  287. `)])]),j("vertical",`
  288. right: 4px;
  289. top: 2px;
  290. bottom: 2px;
  291. width: var(--n-scrollbar-width);
  292. `,[N(">",[G("scrollbar",`
  293. width: var(--n-scrollbar-width);
  294. border-radius: var(--n-scrollbar-border-radius);
  295. bottom: 0;
  296. `)])]),j("disabled",[N(">",[G("scrollbar",{pointerEvents:"none"})])]),N(">",[G("scrollbar",`
  297. position: absolute;
  298. cursor: pointer;
  299. pointer-events: all;
  300. background-color: var(--n-scrollbar-color);
  301. transition: background-color .2s var(--n-scrollbar-bezier);
  302. `,[dA(),N("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),PCe=Object.assign(Object.assign({},Me.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),xX=ge({name:"Scrollbar",props:PCe,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=nt(e),o=dn("Scrollbar",n,t),a=q(null),i=q(null),s=q(null),l=q(null),u=q(null),c=q(null),d=q(null),f=q(null),A=q(null),h=q(null),v=q(null),p=q(0),g=q(0),m=q(!1),y=q(!1);let b=!1,x=!1,w,C,_=0,B=0,T=0,E=0;const I=Wve(),R=L(()=>{const{value:ue}=f,{value:Ee}=c,{value:Qe}=h;return ue===null||Ee===null||Qe===null?0:Math.min(ue,Qe*ue/Ee+e.size*1.5)}),D=L(()=>`${R.value}px`),F=L(()=>{const{value:ue}=A,{value:Ee}=d,{value:Qe}=v;return ue===null||Ee===null||Qe===null?0:Qe*ue/Ee+e.size*1.5}),M=L(()=>`${F.value}px`),$=L(()=>{const{value:ue}=f,{value:Ee}=p,{value:Qe}=c,{value:et}=h;if(ue===null||Qe===null||et===null)return 0;{const tt=Qe-ue;return tt?Ee/tt*(et-R.value):0}}),O=L(()=>`${$.value}px`),Q=L(()=>{const{value:ue}=A,{value:Ee}=g,{value:Qe}=d,{value:et}=v;if(ue===null||Qe===null||et===null)return 0;{const tt=Qe-ue;return tt?Ee/tt*(et-F.value):0}}),V=L(()=>`${Q.value}px`),W=L(()=>{const{value:ue}=f,{value:Ee}=c;return ue!==null&&Ee!==null&&Ee>ue}),Z=L(()=>{const{value:ue}=A,{value:Ee}=d;return ue!==null&&Ee!==null&&Ee>ue}),te=L(()=>{const{trigger:ue}=e;return ue==="none"||m.value}),ae=L(()=>{const{trigger:ue}=e;return ue==="none"||y.value}),re=L(()=>{const{container:ue}=e;return ue?ue():i.value}),le=L(()=>{const{content:ue}=e;return ue?ue():s.value}),se=Ok(()=>{e.container||de({top:p.value,left:g.value})}),ce=()=>{se.isDeactivated||ie()},be=ue=>{if(se.isDeactivated)return;const{onResize:Ee}=e;Ee&&Ee(ue),ie()},de=(ue,Ee)=>{if(!e.scrollable)return;if(typeof ue=="number"){K(Ee!=null?Ee:0,ue,0,!1,"auto");return}const{left:Qe,top:et,index:tt,elSize:xe,position:$e,behavior:Xe,el:ht,debounce:Se=!0}=ue;(Qe!==void 0||et!==void 0)&&K(Qe!=null?Qe:0,et!=null?et:0,0,!1,Xe),ht!==void 0?K(0,ht.offsetTop,ht.offsetHeight,Se,Xe):tt!==void 0&&xe!==void 0?K(0,tt*xe,xe,Se,Xe):$e==="bottom"?K(0,Number.MAX_SAFE_INTEGER,0,!1,Xe):$e==="top"&&K(0,0,0,!1,Xe)},pe=(ue,Ee)=>{if(!e.scrollable)return;const{value:Qe}=re;Qe&&(typeof ue=="object"?Qe.scrollBy(ue):Qe.scrollBy(ue,Ee||0))};function K(ue,Ee,Qe,et,tt){const{value:xe}=re;if(xe){if(et){const{scrollTop:$e,offsetHeight:Xe}=xe;if(Ee>$e){Ee+Qe<=$e+Xe||xe.scrollTo({left:ue,top:Ee+Qe-Xe,behavior:tt});return}}xe.scrollTo({left:ue,top:Ee,behavior:tt})}}function U(){Y(),oe(),ie()}function k(){J()}function J(){ee(),H()}function ee(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{y.value=!1},e.duration)}function H(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{m.value=!1},e.duration)}function Y(){w!==void 0&&window.clearTimeout(w),m.value=!0}function oe(){C!==void 0&&window.clearTimeout(C),y.value=!0}function he(ue){const{onScroll:Ee}=e;Ee&&Ee(ue),ne()}function ne(){const{value:ue}=re;ue&&(p.value=ue.scrollTop,g.value=ue.scrollLeft*(o!=null&&o.value?-1:1))}function Ae(){const{value:ue}=le;ue&&(c.value=ue.offsetHeight,d.value=ue.offsetWidth);const{value:Ee}=re;Ee&&(f.value=Ee.offsetHeight,A.value=Ee.offsetWidth);const{value:Qe}=u,{value:et}=l;Qe&&(v.value=Qe.offsetWidth),et&&(h.value=et.offsetHeight)}function X(){const{value:ue}=re;ue&&(p.value=ue.scrollTop,g.value=ue.scrollLeft*(o!=null&&o.value?-1:1),f.value=ue.offsetHeight,A.value=ue.offsetWidth,c.value=ue.scrollHeight,d.value=ue.scrollWidth);const{value:Ee}=u,{value:Qe}=l;Ee&&(v.value=Ee.offsetWidth),Qe&&(h.value=Qe.offsetHeight)}function ie(){e.scrollable&&(e.useUnifiedContainer?X():(Ae(),ne()))}function fe(ue){var Ee;return!(!((Ee=a.value)===null||Ee===void 0)&&Ee.contains(gs(ue)))}function ye(ue){ue.preventDefault(),ue.stopPropagation(),x=!0,or("mousemove",window,Fe,!0),or("mouseup",window,Ne,!0),B=g.value,T=o!=null&&o.value?window.innerWidth-ue.clientX:ue.clientX}function Fe(ue){if(!x)return;w!==void 0&&window.clearTimeout(w),C!==void 0&&window.clearTimeout(C);const{value:Ee}=A,{value:Qe}=d,{value:et}=F;if(Ee===null||Qe===null)return;const xe=(o!=null&&o.value?window.innerWidth-ue.clientX-T:ue.clientX-T)*(Qe-Ee)/(Ee-et),$e=Qe-Ee;let Xe=B+xe;Xe=Math.min($e,Xe),Xe=Math.max(Xe,0);const{value:ht}=re;if(ht){ht.scrollLeft=Xe*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Se}=e;Se&&Se(Xe)}}function Ne(ue){ue.preventDefault(),ue.stopPropagation(),qt("mousemove",window,Fe,!0),qt("mouseup",window,Ne,!0),x=!1,ie(),fe(ue)&&J()}function rt(ue){ue.preventDefault(),ue.stopPropagation(),b=!0,or("mousemove",window,lt,!0),or("mouseup",window,mt,!0),_=p.value,E=ue.clientY}function lt(ue){if(!b)return;w!==void 0&&window.clearTimeout(w),C!==void 0&&window.clearTimeout(C);const{value:Ee}=f,{value:Qe}=c,{value:et}=R;if(Ee===null||Qe===null)return;const xe=(ue.clientY-E)*(Qe-Ee)/(Ee-et),$e=Qe-Ee;let Xe=_+xe;Xe=Math.min($e,Xe),Xe=Math.max(Xe,0);const{value:ht}=re;ht&&(ht.scrollTop=Xe)}function mt(ue){ue.preventDefault(),ue.stopPropagation(),qt("mousemove",window,lt,!0),qt("mouseup",window,mt,!0),b=!1,ie(),fe(ue)&&J()}Sr(()=>{const{value:ue}=Z,{value:Ee}=W,{value:Qe}=t,{value:et}=u,{value:tt}=l;et&&(ue?et.classList.remove(`${Qe}-scrollbar-rail--disabled`):et.classList.add(`${Qe}-scrollbar-rail--disabled`)),tt&&(Ee?tt.classList.remove(`${Qe}-scrollbar-rail--disabled`):tt.classList.add(`${Qe}-scrollbar-rail--disabled`))}),yr(()=>{e.container||ie()}),Hr(()=>{w!==void 0&&window.clearTimeout(w),C!==void 0&&window.clearTimeout(C),qt("mousemove",window,lt,!0),qt("mouseup",window,mt,!0)});const Ge=Me("Scrollbar","-scrollbar",MCe,xl,e,t),it=L(()=>{const{common:{cubicBezierEaseInOut:ue,scrollbarBorderRadius:Ee,scrollbarHeight:Qe,scrollbarWidth:et},self:{color:tt,colorHover:xe}}=Ge.value;return{"--n-scrollbar-bezier":ue,"--n-scrollbar-color":tt,"--n-scrollbar-color-hover":xe,"--n-scrollbar-border-radius":Ee,"--n-scrollbar-width":et,"--n-scrollbar-height":Qe}}),je=r?Et("scrollbar",void 0,it,e):void 0;return Object.assign(Object.assign({},{scrollTo:de,scrollBy:pe,sync:ie,syncUnifiedContainer:X,handleMouseEnterWrapper:U,handleMouseLeaveWrapper:k}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:p,wrapperRef:a,containerRef:i,contentRef:s,yRailRef:l,xRailRef:u,needYBar:W,needXBar:Z,yBarSizePx:D,xBarSizePx:M,yBarTopPx:O,xBarLeftPx:V,isShowXBar:te,isShowYBar:ae,isIos:I,handleScroll:he,handleContentResize:ce,handleContainerResize:be,handleYScrollMouseDown:rt,handleXScrollMouseDown:ye,cssVars:r?void 0:it,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:n,rtlEnabled:o,internalHoistYRail:a}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const i=this.trigger==="none",s=()=>S("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},S(i?jR:jr,i?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?S("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var c,d;return(c=this.onRender)===null||c===void 0||c.call(this),S("div",wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,o&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):S("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},S(Fi,{onResize:this.handleContentResize},{default:()=>S("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),a?null:s(),this.xScrollable&&S("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},S(i?jR:jr,i?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?S("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},u=this.container?l():S(Fi,{onResize:this.handleContainerResize},{default:l});return a?S(lr,null,u,s()):u}}),Gn=xX,Pw=xX,FCe={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},wX=e=>{const{borderRadius:t,popoverColor:r,textColor3:n,dividerColor:o,textColor2:a,primaryColorPressed:i,textColorDisabled:s,primaryColor:l,opacityDisabled:u,hoverColor:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:A,fontSizeHuge:h,heightSmall:v,heightMedium:p,heightLarge:g,heightHuge:m}=e;return Object.assign(Object.assign({},FCe),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:A,optionFontSizeHuge:h,optionHeightSmall:v,optionHeightMedium:p,optionHeightLarge:g,optionHeightHuge:m,borderRadius:t,color:r,groupHeaderTextColor:n,actionDividerColor:o,optionTextColor:a,optionTextColorPressed:i,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:u,optionCheckColor:l,optionColorPending:c,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:c,actionTextColor:a,loadingColor:l})},kCe={name:"InternalSelectMenu",common:Lt,peers:{Scrollbar:xl,Empty:Sy},self:wX},qk=kCe,LCe={name:"InternalSelectMenu",common:ct,peers:{Scrollbar:Pa,Empty:DA},self:wX},_y=LCe;function OCe(e,t){return S(jr,{name:"fade-in-scale-up-transition"},{default:()=>e?S(zt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>S(cX)}):null})}const dU=ge({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:r,multipleRef:n,valueSetRef:o,renderLabelRef:a,renderOptionRef:i,labelFieldRef:s,valueFieldRef:l,showCheckmarkRef:u,nodePropsRef:c,handleOptionClick:d,handleOptionMouseEnter:f}=Ke(Dk),A=Ft(()=>{const{value:g}=r;return g?e.tmNode.key===g.key:!1});function h(g){const{tmNode:m}=e;m.disabled||d(g,m)}function v(g){const{tmNode:m}=e;m.disabled||f(g,m)}function p(g){const{tmNode:m}=e,{value:y}=A;m.disabled||y||f(g,m)}return{multiple:n,isGrouped:Ft(()=>{const{tmNode:g}=e,{parent:m}=g;return m&&m.rawNode.type==="group"}),showCheckmark:u,nodeProps:c,isPending:A,isSelected:Ft(()=>{const{value:g}=t,{value:m}=n;if(g===null)return!1;const y=e.tmNode.rawNode[l.value];if(m){const{value:b}=o;return b.has(y)}else return g===y}),labelField:s,renderLabel:a,renderOption:i,handleMouseMove:p,handleMouseEnter:v,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:r,isPending:n,isGrouped:o,showCheckmark:a,nodeProps:i,renderOption:s,renderLabel:l,handleClick:u,handleMouseEnter:c,handleMouseMove:d}=this,f=OCe(r,e),A=l?[l(t,r),a&&f]:[Nr(t[this.labelField],t,r),a&&f],h=i==null?void 0:i(t),v=S("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h==null?void 0:h.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:r,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:a}],style:[(h==null?void 0:h.style)||"",t.style||""],onClick:x0([u,h==null?void 0:h.onClick]),onMouseenter:x0([c,h==null?void 0:h.onMouseenter]),onMousemove:x0([d,h==null?void 0:h.onMousemove])}),S("div",{class:`${e}-base-select-option__content`},A));return t.render?t.render({node:v,option:t,selected:r}):s?s({node:v,option:t,selected:r}):v}}),fU=ge({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:r,nodePropsRef:n}=Ke(Dk);return{labelField:r,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:r,nodeProps:n,tmNode:{rawNode:o}}=this,a=n==null?void 0:n(o),i=t?t(o,!1):Nr(o[this.labelField],o,!1),s=S("div",Object.assign({},a,{class:[`${e}-base-select-group-header`,a==null?void 0:a.class]}),i);return o.render?o.render({node:s,option:o}):r?r({node:s,option:o,selected:!1}):s}}),{cubicBezierEaseIn:AU,cubicBezierEaseOut:hU}=Ma;function Ia({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:n="",originalTransition:o=""}={}){return[N("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${AU}, transform ${t} ${AU} ${o&&","+o}`}),N("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${hU}, transform ${t} ${hU} ${o&&","+o}`}),N("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${r})`}),N("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const $Ce=P("base-select-menu",`
  303. line-height: 1.5;
  304. outline: none;
  305. z-index: 0;
  306. position: relative;
  307. border-radius: var(--n-border-radius);
  308. transition:
  309. background-color .3s var(--n-bezier),
  310. box-shadow .3s var(--n-bezier);
  311. background-color: var(--n-color);
  312. `,[P("scrollbar",`
  313. max-height: var(--n-height);
  314. `),P("virtual-list",`
  315. max-height: var(--n-height);
  316. `),P("base-select-option",`
  317. min-height: var(--n-option-height);
  318. font-size: var(--n-option-font-size);
  319. display: flex;
  320. align-items: center;
  321. `,[G("content",`
  322. z-index: 1;
  323. white-space: nowrap;
  324. text-overflow: ellipsis;
  325. overflow: hidden;
  326. `)]),P("base-select-group-header",`
  327. min-height: var(--n-option-height);
  328. font-size: .93em;
  329. display: flex;
  330. align-items: center;
  331. `),P("base-select-menu-option-wrapper",`
  332. position: relative;
  333. width: 100%;
  334. `),G("loading, empty",`
  335. display: flex;
  336. padding: 12px 32px;
  337. flex: 1;
  338. justify-content: center;
  339. `),G("loading",`
  340. color: var(--n-loading-color);
  341. font-size: var(--n-loading-size);
  342. `),G("action",`
  343. padding: 8px var(--n-option-padding-left);
  344. font-size: var(--n-option-font-size);
  345. transition:
  346. color .3s var(--n-bezier),
  347. border-color .3s var(--n-bezier);
  348. border-top: 1px solid var(--n-action-divider-color);
  349. color: var(--n-action-text-color);
  350. `),P("base-select-group-header",`
  351. position: relative;
  352. cursor: default;
  353. padding: var(--n-option-padding);
  354. color: var(--n-group-header-text-color);
  355. `),P("base-select-option",`
  356. cursor: pointer;
  357. position: relative;
  358. padding: var(--n-option-padding);
  359. transition:
  360. color .3s var(--n-bezier),
  361. opacity .3s var(--n-bezier);
  362. box-sizing: border-box;
  363. color: var(--n-option-text-color);
  364. opacity: 1;
  365. `,[j("show-checkmark",`
  366. padding-right: calc(var(--n-option-padding-right) + 20px);
  367. `),N("&::before",`
  368. content: "";
  369. position: absolute;
  370. left: 4px;
  371. right: 4px;
  372. top: 0;
  373. bottom: 0;
  374. border-radius: var(--n-border-radius);
  375. transition: background-color .3s var(--n-bezier);
  376. `),N("&:active",`
  377. color: var(--n-option-text-color-pressed);
  378. `),j("grouped",`
  379. padding-left: calc(var(--n-option-padding-left) * 1.5);
  380. `),j("pending",[N("&::before",`
  381. background-color: var(--n-option-color-pending);
  382. `)]),j("selected",`
  383. color: var(--n-option-text-color-active);
  384. `,[N("&::before",`
  385. background-color: var(--n-option-color-active);
  386. `),j("pending",[N("&::before",`
  387. background-color: var(--n-option-color-active-pending);
  388. `)])]),j("disabled",`
  389. cursor: not-allowed;
  390. `,[Wt("selected",`
  391. color: var(--n-option-text-color-disabled);
  392. `),j("selected",`
  393. opacity: var(--n-option-opacity-disabled);
  394. `)]),G("check",`
  395. font-size: 16px;
  396. position: absolute;
  397. right: calc(var(--n-option-padding-right) - 4px);
  398. top: calc(50% - 7px);
  399. color: var(--n-option-check-color);
  400. transition: color .3s var(--n-bezier);
  401. `,[Ia({enterScale:"0.5"})])])]),CX=ge({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Me.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Me("InternalSelectMenu","-internal-select-menu",$Ce,qk,e,Re(e,"clsPrefix")),r=q(null),n=q(null),o=q(null),a=L(()=>e.treeMate.getFlattenedNodes()),i=L(()=>vX(a.value)),s=q(null);function l(){const{treeMate:Q}=e;let V=null;const{value:W}=e;W===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((W||[])[(W||[]).length-1]):V=Q.getNode(W),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),E(V||null)}function u(){const{value:Q}=s;Q&&!e.treeMate.getNode(Q.key)&&(s.value=null)}let c;gt(()=>e.show,Q=>{Q?c=gt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?l():u(),dr(I)):u()},{immediate:!0}):c==null||c()},{immediate:!0}),Hr(()=>{c==null||c()});const d=L(()=>Ro(t.value.self[_e("optionHeight",e.size)])),f=L(()=>Tc(t.value.self[_e("padding",e.size)])),A=L(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),h=L(()=>{const Q=a.value;return Q&&Q.length===0});function v(Q){const{onToggle:V}=e;V&&V(Q)}function p(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),p(Q)}function m(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function y(){const{value:Q}=s;return Q||null}function b(Q,V){V.disabled||E(V,!1)}function x(Q,V){V.disabled||v(V)}function w(Q){var V;Ja(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function C(Q){var V;Ja(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function _(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function B(){const{value:Q}=s;Q&&E(Q.getNext({loop:!0}),!0)}function T(){const{value:Q}=s;Q&&E(Q.getPrev({loop:!0}),!0)}function E(Q,V=!1){s.value=Q,V&&I()}function I(){var Q,V;const W=s.value;if(!W)return;const Z=i.value(W.key);Z!==null&&(e.virtualScroll?(Q=n.value)===null||Q===void 0||Q.scrollTo({index:Z}):(V=o.value)===null||V===void 0||V.scrollTo({index:Z,elSize:d.value}))}function R(Q){var V,W;!((V=r.value)===null||V===void 0)&&V.contains(Q.target)&&((W=e.onFocus)===null||W===void 0||W.call(e,Q))}function D(Q){var V,W;!((V=r.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(W=e.onBlur)===null||W===void 0||W.call(e,Q)}_t(Dk,{handleOptionMouseEnter:b,handleOptionClick:x,valueSetRef:A,pendingTmNodeRef:s,nodePropsRef:Re(e,"nodeProps"),showCheckmarkRef:Re(e,"showCheckmark"),multipleRef:Re(e,"multiple"),valueRef:Re(e,"value"),renderLabelRef:Re(e,"renderLabel"),renderOptionRef:Re(e,"renderOption"),labelFieldRef:Re(e,"labelField"),valueFieldRef:Re(e,"valueField")}),_t(qj,r),yr(()=>{const{value:Q}=o;Q&&Q.sync()});const F=L(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:W,borderRadius:Z,color:te,groupHeaderTextColor:ae,actionDividerColor:re,optionTextColorPressed:le,optionTextColor:se,optionTextColorDisabled:ce,optionTextColorActive:be,optionOpacityDisabled:de,optionCheckColor:pe,actionTextColor:K,optionColorPending:U,optionColorActive:k,loadingColor:J,loadingSize:ee,optionColorActivePending:H,[_e("optionFontSize",Q)]:Y,[_e("optionHeight",Q)]:oe,[_e("optionPadding",Q)]:he}}=t.value;return{"--n-height":W,"--n-action-divider-color":re,"--n-action-text-color":K,"--n-bezier":V,"--n-border-radius":Z,"--n-color":te,"--n-option-font-size":Y,"--n-group-header-text-color":ae,"--n-option-check-color":pe,"--n-option-color-pending":U,"--n-option-color-active":k,"--n-option-color-active-pending":H,"--n-option-height":oe,"--n-option-opacity-disabled":de,"--n-option-text-color":se,"--n-option-text-color-active":be,"--n-option-text-color-disabled":ce,"--n-option-text-color-pressed":le,"--n-option-padding":he,"--n-option-padding-left":Tc(he,"left"),"--n-option-padding-right":Tc(he,"right"),"--n-loading-color":J,"--n-loading-size":ee}}),{inlineThemeDisabled:M}=e,$=M?Et("internal-select-menu",L(()=>e.size[0]),F,e):void 0,O={selfRef:r,next:B,prev:T,getPendingTmNode:y};return AY(r,e.onResize),Object.assign({mergedTheme:t,virtualListRef:n,scrollbarRef:o,itemSize:d,padding:f,flattenedNodes:a,empty:h,virtualListContainer(){const{value:Q}=n;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=n;return Q==null?void 0:Q.itemsElRef},doScroll:p,handleFocusin:R,handleFocusout:D,handleKeyUp:w,handleKeyDown:C,handleMouseDown:_,handleVirtualListResize:m,handleVirtualListScroll:g,cssVars:M?void 0:F,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender},O)},render(){const{$slots:e,virtualScroll:t,clsPrefix:r,mergedTheme:n,themeClass:o,onRender:a}=this;return a==null||a(),S("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${r}-base-select-menu`,o,this.multiple&&`${r}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?S("div",{class:`${r}-base-select-menu__loading`},S(Eu,{clsPrefix:r,strokeWidth:20})):this.empty?S("div",{class:`${r}-base-select-menu__empty`,"data-empty":!0},Kt(e.empty,()=>[S(US,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])):S(Gn,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?S(Iv,{ref:"virtualListRef",class:`${r}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:i})=>i.isGroup?S(fU,{key:i.key,clsPrefix:r,tmNode:i}):i.ignored?null:S(dU,{clsPrefix:r,key:i.key,tmNode:i})}):S("div",{class:`${r}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(i=>i.isGroup?S(fU,{key:i.key,clsPrefix:r,tmNode:i}):S(dU,{clsPrefix:r,key:i.key,tmNode:i})))}),Ar(e.action,i=>i&&[S("div",{class:`${r}-base-select-menu__action`,"data-action":!0,key:"action"},i),S(gd,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),UCe=P("base-wave",`
  402. position: absolute;
  403. left: 0;
  404. right: 0;
  405. top: 0;
  406. bottom: 0;
  407. border-radius: inherit;
  408. `),SX=ge({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ml("-base-wave",UCe,Re(e,"clsPrefix"));const t=q(null),r=q(!1);let n=null;return Hr(()=>{n!==null&&window.clearTimeout(n)}),{active:r,selfRef:t,play(){n!==null&&(window.clearTimeout(n),r.value=!1,n=null),dr(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,r.value=!0,n=window.setTimeout(()=>{r.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return S("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),NCe={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},_X=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:a,dividerColor:i}=e;return Object.assign(Object.assign({},NCe),{fontSize:a,borderRadius:o,color:r,dividerColor:i,textColor:n,boxShadow:t})},HCe={name:"Popover",common:Lt,self:_X},cp=HCe,zCe={name:"Popover",common:ct,self:_X},MA=zCe,c2={top:"bottom",bottom:"top",left:"right",right:"left"},oo="var(--n-arrow-height) * 1.414",QCe=N([P("popover",`
  409. transition:
  410. box-shadow .3s var(--n-bezier),
  411. background-color .3s var(--n-bezier),
  412. color .3s var(--n-bezier);
  413. position: relative;
  414. font-size: var(--n-font-size);
  415. color: var(--n-text-color);
  416. box-shadow: var(--n-box-shadow);
  417. word-break: break-word;
  418. `,[N(">",[P("scrollbar",`
  419. height: inherit;
  420. max-height: inherit;
  421. `)]),Wt("raw",`
  422. background-color: var(--n-color);
  423. border-radius: var(--n-border-radius);
  424. `,[Wt("scrollable",[Wt("show-header-or-footer","padding: var(--n-padding);")])]),G("header",`
  425. padding: var(--n-padding);
  426. border-bottom: 1px solid var(--n-divider-color);
  427. transition: border-color .3s var(--n-bezier);
  428. `),G("footer",`
  429. padding: var(--n-padding);
  430. border-top: 1px solid var(--n-divider-color);
  431. transition: border-color .3s var(--n-bezier);
  432. `),j("scrollable, show-header-or-footer",[G("content",`
  433. padding: var(--n-padding);
  434. `)])]),P("popover-shared",`
  435. transform-origin: inherit;
  436. `,[P("popover-arrow-wrapper",`
  437. position: absolute;
  438. overflow: hidden;
  439. pointer-events: none;
  440. `,[P("popover-arrow",`
  441. transition: background-color .3s var(--n-bezier);
  442. position: absolute;
  443. display: block;
  444. width: calc(${oo});
  445. height: calc(${oo});
  446. box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
  447. transform: rotate(45deg);
  448. background-color: var(--n-color);
  449. pointer-events: all;
  450. `)]),N("&.popover-transition-enter-from, &.popover-transition-leave-to",`
  451. opacity: 0;
  452. transform: scale(.85);
  453. `),N("&.popover-transition-enter-to, &.popover-transition-leave-from",`
  454. transform: scale(1);
  455. opacity: 1;
  456. `),N("&.popover-transition-enter-active",`
  457. transition:
  458. box-shadow .3s var(--n-bezier),
  459. background-color .3s var(--n-bezier),
  460. color .3s var(--n-bezier),
  461. opacity .15s var(--n-bezier-ease-out),
  462. transform .15s var(--n-bezier-ease-out);
  463. `),N("&.popover-transition-leave-active",`
  464. transition:
  465. box-shadow .3s var(--n-bezier),
  466. background-color .3s var(--n-bezier),
  467. color .3s var(--n-bezier),
  468. opacity .15s var(--n-bezier-ease-in),
  469. transform .15s var(--n-bezier-ease-in);
  470. `)]),li("top-start",`
  471. top: calc(${oo} / -2);
  472. left: calc(${Dl("top-start")} - var(--v-offset-left));
  473. `),li("top",`
  474. top: calc(${oo} / -2);
  475. transform: translateX(calc(${oo} / -2)) rotate(45deg);
  476. left: 50%;
  477. `),li("top-end",`
  478. top: calc(${oo} / -2);
  479. right: calc(${Dl("top-end")} + var(--v-offset-left));
  480. `),li("bottom-start",`
  481. bottom: calc(${oo} / -2);
  482. left: calc(${Dl("bottom-start")} - var(--v-offset-left));
  483. `),li("bottom",`
  484. bottom: calc(${oo} / -2);
  485. transform: translateX(calc(${oo} / -2)) rotate(45deg);
  486. left: 50%;
  487. `),li("bottom-end",`
  488. bottom: calc(${oo} / -2);
  489. right: calc(${Dl("bottom-end")} + var(--v-offset-left));
  490. `),li("left-start",`
  491. left: calc(${oo} / -2);
  492. top: calc(${Dl("left-start")} - var(--v-offset-top));
  493. `),li("left",`
  494. left: calc(${oo} / -2);
  495. transform: translateY(calc(${oo} / -2)) rotate(45deg);
  496. top: 50%;
  497. `),li("left-end",`
  498. left: calc(${oo} / -2);
  499. bottom: calc(${Dl("left-end")} + var(--v-offset-top));
  500. `),li("right-start",`
  501. right: calc(${oo} / -2);
  502. top: calc(${Dl("right-start")} - var(--v-offset-top));
  503. `),li("right",`
  504. right: calc(${oo} / -2);
  505. transform: translateY(calc(${oo} / -2)) rotate(45deg);
  506. top: 50%;
  507. `),li("right-end",`
  508. right: calc(${oo} / -2);
  509. bottom: calc(${Dl("right-end")} + var(--v-offset-top));
  510. `),...W1e({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(o=>{const a=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${oo}) / 2)`,l=Dl(o);return N(`[v-placement="${o}"] >`,[P("popover-shared",[j("center-arrow",[P("popover-arrow",`${t}: calc(max(${s}, ${l}) ${a?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Dl(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function li(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return N(`[v-placement="${e}"] >`,[P("popover-shared",`
  511. margin-${c2[r]}: var(--n-space);
  512. `,[j("show-arrow",`
  513. margin-${c2[r]}: var(--n-space-arrow);
  514. `),j("overlap",`
  515. margin: 0;
  516. `),Pve("popover-arrow-wrapper",`
  517. right: 0;
  518. left: 0;
  519. top: 0;
  520. bottom: 0;
  521. ${r}: 100%;
  522. ${c2[r]}: auto;
  523. ${n}
  524. `,[P("popover-arrow",t)])])])}const BX=Object.assign(Object.assign({},Me.props),{to:Un.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),TX=({arrowStyle:e,clsPrefix:t})=>S("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},S("div",{class:`${t}-popover-arrow`,style:e})),VCe=ge({name:"PopoverBody",inheritAttrs:!1,props:BX,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:a}=nt(e),i=Me("Popover","-popover",QCe,cp,e,o),s=q(null),l=Ke("NPopover"),u=q(null),c=q(e.show),d=q(!1);Sr(()=>{const{show:C}=e;C&&!Fve()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=L(()=>{const{trigger:C,onClickoutside:_}=e,B=[],{positionManuallyRef:{value:T}}=l;return T||(C==="click"&&!_&&B.push([dl,b,void 0,{capture:!0}]),C==="hover"&&B.push([Jve,y])),_&&B.push([dl,b,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&B.push([Ln,e.show]),B}),A=L(()=>{const C=e.width==="trigger"?void 0:wr(e.width),_=[];C&&_.push({width:C});const{maxWidth:B,minWidth:T}=e;return B&&_.push({maxWidth:wr(B)}),T&&_.push({maxWidth:wr(T)}),a||_.push(h.value),_}),h=L(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:_,cubicBezierEaseOut:B},self:{space:T,spaceArrow:E,padding:I,fontSize:R,textColor:D,dividerColor:F,color:M,boxShadow:$,borderRadius:O,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:W}}=i.value;return{"--n-box-shadow":$,"--n-bezier":C,"--n-bezier-ease-in":_,"--n-bezier-ease-out":B,"--n-font-size":R,"--n-text-color":D,"--n-color":M,"--n-divider-color":F,"--n-border-radius":O,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":W,"--n-padding":I,"--n-space":T,"--n-space-arrow":E}}),v=a?Et("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:p}),Hr(()=>{l.setBodyInstance(null)}),gt(Re(e,"show"),C=>{e.animated||(C?c.value=!0:c.value=!1)});function p(){var C;(C=s.value)===null||C===void 0||C.syncPosition()}function g(C){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(C)}function m(C){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(C)}function y(C){e.trigger==="hover"&&!x().contains(gs(C))&&l.handleMouseMoveOutside(C)}function b(C){(e.trigger==="click"&&!x().contains(gs(C))||e.onClickoutside)&&l.handleClickOutside(C)}function x(){return l.getTriggerElement()}_t(sp,u),_t(by,null),_t(yy,null);function w(){if(v==null||v.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let _;const B=l.internalRenderBodyRef.value,{value:T}=o;if(B)_=B([`${T}-popover-shared`,v==null?void 0:v.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],u,A.value,g,m);else{const{value:E}=l.extraClassRef,{internalTrapFocus:I}=e,R=!Vf(t.header)||!Vf(t.footer),D=()=>{var F;const M=R?S(lr,null,Ar(t.header,Q=>Q?S("div",{class:`${T}-popover__header`,style:e.headerStyle},Q):null),Ar(t.default,Q=>Q?S("div",{class:`${T}-popover__content`,style:e.contentStyle},t):null),Ar(t.footer,Q=>Q?S("div",{class:`${T}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(F=t.default)===null||F===void 0?void 0:F.call(t):S("div",{class:`${T}-popover__content`,style:e.contentStyle},t),$=e.scrollable?S(Pw,{contentClass:R?void 0:`${T}-popover__content`,contentStyle:R?void 0:e.contentStyle},{default:()=>M}):M,O=e.showArrow?TX({arrowStyle:e.arrowStyle,clsPrefix:T}):null;return[$,O]};_=S("div",wn({class:[`${T}-popover`,`${T}-popover-shared`,v==null?void 0:v.themeClass.value,E.map(F=>`${T}-${F}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:R,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:A.value,onKeydown:l.handleKeydown,onMouseenter:g,onMouseleave:m},r),I?S(kk,{active:e.show,autoFocus:!0},{default:D}):D())}return en(_,f.value)}return{displayed:d,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Un(e),followerEnabled:c,renderContentNode:w}},render(){return S(vd,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Un.tdkey},{default:()=>this.animated?S(jr,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),WCe=Object.keys(BX),GCe={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function KCe(e,t,r){GCe[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],a=r[n];o?e.props[n]=(...i)=>{o(...i),a(...i)}:e.props[n]=a})}const jCe=du("").type,Dv={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Un.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},YCe=Object.assign(Object.assign(Object.assign({},Me.props),Dv),{internalOnAfterLeave:Function,internalRenderBody:Function}),dp=ge({name:"Popover",inheritAttrs:!1,props:YCe,__popover__:!0,setup(e){const t=oi(),r=q(null),n=L(()=>e.show),o=q(e.defaultShow),a=Ir(n,o),i=Ft(()=>e.disabled?!1:a.value),s=()=>{if(e.disabled)return!0;const{getDisabled:D}=e;return!!(D!=null&&D())},l=()=>s()?!1:a.value,u=Kc(e,["arrow","showArrow"]),c=L(()=>e.overlap?!1:u.value);let d=null;const f=q(null),A=q(null),h=Ft(()=>e.x!==void 0&&e.y!==void 0);function v(D){const{"onUpdate:show":F,onUpdateShow:M,onShow:$,onHide:O}=e;o.value=D,F&&Te(F,D),M&&Te(M,D),D&&$&&Te($,!0),D&&O&&Te(O,!1)}function p(){d&&d.syncPosition()}function g(){const{value:D}=f;D&&(window.clearTimeout(D),f.value=null)}function m(){const{value:D}=A;D&&(window.clearTimeout(D),A.value=null)}function y(){const D=s();if(e.trigger==="focus"&&!D){if(l())return;v(!0)}}function b(){const D=s();if(e.trigger==="focus"&&!D){if(!l())return;v(!1)}}function x(){const D=s();if(e.trigger==="hover"&&!D){if(m(),f.value!==null||l())return;const F=()=>{v(!0),f.value=null},{delay:M}=e;M===0?F():f.value=window.setTimeout(F,M)}}function w(){const D=s();if(e.trigger==="hover"&&!D){if(g(),A.value!==null||!l())return;const F=()=>{v(!1),A.value=null},{duration:M}=e;M===0?F():A.value=window.setTimeout(F,M)}}function C(){w()}function _(D){var F;l()&&(e.trigger==="click"&&(g(),m(),v(!1)),(F=e.onClickoutside)===null||F===void 0||F.call(e,D))}function B(){if(e.trigger==="click"&&!s()){g(),m();const D=!l();v(D)}}function T(D){e.internalTrapFocus&&D.key==="Escape"&&(g(),m(),v(!1))}function E(D){o.value=D}function I(){var D;return(D=r.value)===null||D===void 0?void 0:D.targetRef}function R(D){d=D}return _t("NPopover",{getTriggerElement:I,handleKeydown:T,handleMouseEnter:x,handleMouseLeave:w,handleClickOutside:_,handleMouseMoveOutside:C,setBodyInstance:R,positionManuallyRef:h,isMountedRef:t,zIndexRef:Re(e,"zIndex"),extraClassRef:Re(e,"internalExtraClass"),internalRenderBodyRef:Re(e,"internalRenderBody")}),Sr(()=>{a.value&&s()&&v(!1)}),{binderInstRef:r,positionManually:h,mergedShowConsideringDisabledProp:i,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:l,setShow:E,handleClick:B,handleMouseEnter:x,handleMouseLeave:w,handleFocus:y,handleBlur:b,syncPosition:p}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=KR(r,"activator"):n=KR(r,"trigger"),n)){n=Fo(n),n=n.type===jCe?S("span",[n]):n;const a={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)o=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[a,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[a];else{const{internalInheritedEventHandlers:i}=this,s=[a,...i],l={onBlur:u=>{s.forEach(c=>{c.onBlur(u)})},onFocus:u=>{s.forEach(c=>{c.onFocus(u)})},onClick:u=>{s.forEach(c=>{c.onClick(u)})},onMouseenter:u=>{s.forEach(c=>{c.onMouseenter(u)})},onMouseleave:u=>{s.forEach(c=>{c.onMouseleave(u)})}};KCe(n,i?"nested":t?"manual":this.trigger,l)}}return S(fd,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const a=this.getMergedShow();return[this.internalTrapFocus&&a?en(S("div",{style:{position:"fixed",inset:0}}),[[xy,{enabled:a,zIndex:this.zIndex}]]):null,t?null:S(Ad,null,{default:()=>n}),S(VCe,Xa(this.$props,WCe,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:a})),{default:()=>{var i,s;return(s=(i=this.$slots).default)===null||s===void 0?void 0:s.call(i)},header:()=>{var i,s;return(s=(i=this.$slots).header)===null||s===void 0?void 0:s.call(i)},footer:()=>{var i,s;return(s=(i=this.$slots).footer)===null||s===void 0?void 0:s.call(i)}})]}})}}),EX={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},XCe={name:"Tag",common:ct,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:a,successColor:i,warningColor:s,errorColor:l,baseColor:u,borderColor:c,tagColor:d,opacityDisabled:f,closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:p,closeColorPressed:g,borderRadiusSmall:m,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:w,heightMini:C,heightTiny:_,heightSmall:B,heightMedium:T,buttonColor2Hover:E,buttonColor2Pressed:I,fontWeightStrong:R}=e;return Object.assign(Object.assign({},EX),{closeBorderRadius:m,heightTiny:C,heightSmall:_,heightMedium:B,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:w,fontWeightStrong:R,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:E,colorPressedCheckable:I,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:p,closeColorPressed:g,borderPrimary:`1px solid ${Ve(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:Ve(o,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:zn(o,{lightness:.7}),closeIconColorHoverPrimary:zn(o,{lightness:.7}),closeIconColorPressedPrimary:zn(o,{lightness:.7}),closeColorHoverPrimary:Ve(o,{alpha:.16}),closeColorPressedPrimary:Ve(o,{alpha:.12}),borderInfo:`1px solid ${Ve(a,{alpha:.3})}`,textColorInfo:a,colorInfo:Ve(a,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:zn(a,{alpha:.7}),closeIconColorHoverInfo:zn(a,{alpha:.7}),closeIconColorPressedInfo:zn(a,{alpha:.7}),closeColorHoverInfo:Ve(a,{alpha:.16}),closeColorPressedInfo:Ve(a,{alpha:.12}),borderSuccess:`1px solid ${Ve(i,{alpha:.3})}`,textColorSuccess:i,colorSuccess:Ve(i,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:zn(i,{alpha:.7}),closeIconColorHoverSuccess:zn(i,{alpha:.7}),closeIconColorPressedSuccess:zn(i,{alpha:.7}),closeColorHoverSuccess:Ve(i,{alpha:.16}),closeColorPressedSuccess:Ve(i,{alpha:.12}),borderWarning:`1px solid ${Ve(s,{alpha:.3})}`,textColorWarning:s,colorWarning:Ve(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:zn(s,{alpha:.7}),closeIconColorHoverWarning:zn(s,{alpha:.7}),closeIconColorPressedWarning:zn(s,{alpha:.7}),closeColorHoverWarning:Ve(s,{alpha:.16}),closeColorPressedWarning:Ve(s,{alpha:.11}),borderError:`1px solid ${Ve(l,{alpha:.3})}`,textColorError:l,colorError:Ve(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:zn(l,{alpha:.7}),closeIconColorHoverError:zn(l,{alpha:.7}),closeIconColorPressedError:zn(l,{alpha:.7}),closeColorHoverError:Ve(l,{alpha:.16}),closeColorPressedError:Ve(l,{alpha:.12})})}},IX=XCe,qCe=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:a,successColor:i,warningColor:s,errorColor:l,baseColor:u,borderColor:c,opacityDisabled:d,tagColor:f,closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,borderRadiusSmall:p,fontSizeMini:g,fontSizeTiny:m,fontSizeSmall:y,fontSizeMedium:b,heightMini:x,heightTiny:w,heightSmall:C,heightMedium:_,closeColorHover:B,closeColorPressed:T,buttonColor2Hover:E,buttonColor2Pressed:I,fontWeightStrong:R}=e;return Object.assign(Object.assign({},EX),{closeBorderRadius:p,heightTiny:x,heightSmall:w,heightMedium:C,heightLarge:_,borderRadius:p,opacityDisabled:d,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:y,fontSizeLarge:b,fontWeightStrong:R,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:E,colorPressedCheckable:I,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:B,closeColorPressed:T,borderPrimary:`1px solid ${Ve(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:Ve(o,{alpha:.12}),colorBorderedPrimary:Ve(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:Ve(o,{alpha:.12}),closeColorPressedPrimary:Ve(o,{alpha:.18}),borderInfo:`1px solid ${Ve(a,{alpha:.3})}`,textColorInfo:a,colorInfo:Ve(a,{alpha:.12}),colorBorderedInfo:Ve(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:Ve(a,{alpha:.12}),closeColorPressedInfo:Ve(a,{alpha:.18}),borderSuccess:`1px solid ${Ve(i,{alpha:.3})}`,textColorSuccess:i,colorSuccess:Ve(i,{alpha:.12}),colorBorderedSuccess:Ve(i,{alpha:.1}),closeIconColorSuccess:i,closeIconColorHoverSuccess:i,closeIconColorPressedSuccess:i,closeColorHoverSuccess:Ve(i,{alpha:.12}),closeColorPressedSuccess:Ve(i,{alpha:.18}),borderWarning:`1px solid ${Ve(s,{alpha:.35})}`,textColorWarning:s,colorWarning:Ve(s,{alpha:.15}),colorBorderedWarning:Ve(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:Ve(s,{alpha:.12}),closeColorPressedWarning:Ve(s,{alpha:.18}),borderError:`1px solid ${Ve(l,{alpha:.23})}`,textColorError:l,colorError:Ve(l,{alpha:.1}),colorBorderedError:Ve(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:Ve(l,{alpha:.12}),closeColorPressedError:Ve(l,{alpha:.18})})},ZCe={name:"Tag",common:Lt,self:qCe},JCe=ZCe,eSe={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},tSe=P("tag",`
  525. white-space: nowrap;
  526. position: relative;
  527. box-sizing: border-box;
  528. cursor: default;
  529. display: inline-flex;
  530. align-items: center;
  531. flex-wrap: nowrap;
  532. padding: var(--n-padding);
  533. border-radius: var(--n-border-radius);
  534. color: var(--n-text-color);
  535. background-color: var(--n-color);
  536. transition:
  537. border-color .3s var(--n-bezier),
  538. background-color .3s var(--n-bezier),
  539. color .3s var(--n-bezier),
  540. box-shadow .3s var(--n-bezier),
  541. opacity .3s var(--n-bezier);
  542. line-height: 1;
  543. height: var(--n-height);
  544. font-size: var(--n-font-size);
  545. `,[j("strong",`
  546. font-weight: var(--n-font-weight-strong);
  547. `),G("border",`
  548. pointer-events: none;
  549. position: absolute;
  550. left: 0;
  551. right: 0;
  552. top: 0;
  553. bottom: 0;
  554. border-radius: inherit;
  555. border: var(--n-border);
  556. transition: border-color .3s var(--n-bezier);
  557. `),G("icon",`
  558. display: flex;
  559. margin: 0 4px 0 0;
  560. color: var(--n-text-color);
  561. transition: color .3s var(--n-bezier);
  562. font-size: var(--n-avatar-size-override);
  563. `),G("avatar",`
  564. display: flex;
  565. margin: 0 6px 0 0;
  566. `),G("close",`
  567. margin: var(--n-close-margin);
  568. transition:
  569. background-color .3s var(--n-bezier),
  570. color .3s var(--n-bezier);
  571. `),j("round",`
  572. padding: 0 calc(var(--n-height) / 3);
  573. border-radius: calc(var(--n-height) / 2);
  574. `,[G("icon",`
  575. margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
  576. `),G("avatar",`
  577. margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
  578. `),j("closable",`
  579. padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
  580. `)]),j("icon, avatar",[j("round",`
  581. padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
  582. `)]),j("disabled",`
  583. cursor: not-allowed !important;
  584. opacity: var(--n-opacity-disabled);
  585. `),j("checkable",`
  586. cursor: pointer;
  587. box-shadow: none;
  588. color: var(--n-text-color-checkable);
  589. background-color: var(--n-color-checkable);
  590. `,[Wt("disabled",[N("&:hover","background-color: var(--n-color-hover-checkable);",[Wt("checked","color: var(--n-text-color-hover-checkable);")]),N("&:active","background-color: var(--n-color-pressed-checkable);",[Wt("checked","color: var(--n-text-color-pressed-checkable);")])]),j("checked",`
  591. color: var(--n-text-color-checked);
  592. background-color: var(--n-color-checked);
  593. `,[Wt("disabled",[N("&:hover","background-color: var(--n-color-checked-hover);"),N("&:active","background-color: var(--n-color-checked-pressed);")])])])]),rSe=Object.assign(Object.assign(Object.assign({},Me.props),eSe),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),RX="n-tag",kx=ge({name:"Tag",props:rSe,setup(e){const t=q(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:a}=nt(e),i=Me("Tag","-tag",tSe,JCe,e,n);_t(RX,{roundRef:Re(e,"round")});function s(A){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:v,onUpdateChecked:p,"onUpdate:checked":g}=e;p&&p(!h),g&&g(!h),v&&v(!h)}}function l(A){if(e.triggerClickOnClose||A.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&Te(h,A)}}const u={setTextContent(A){const{value:h}=t;h&&(h.textContent=A)}},c=dn("Tag",a,n),d=L(()=>{const{type:A,size:h,color:{color:v,textColor:p}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:m,closeMargin:y,closeMarginRtl:b,borderRadius:x,opacityDisabled:w,textColorCheckable:C,textColorHoverCheckable:_,textColorPressedCheckable:B,textColorChecked:T,colorCheckable:E,colorHoverCheckable:I,colorPressedCheckable:R,colorChecked:D,colorCheckedHover:F,colorCheckedPressed:M,closeBorderRadius:$,fontWeightStrong:O,[_e("colorBordered",A)]:Q,[_e("closeSize",h)]:V,[_e("closeIconSize",h)]:W,[_e("fontSize",h)]:Z,[_e("height",h)]:te,[_e("color",A)]:ae,[_e("textColor",A)]:re,[_e("border",A)]:le,[_e("closeIconColor",A)]:se,[_e("closeIconColorHover",A)]:ce,[_e("closeIconColorPressed",A)]:be,[_e("closeColorHover",A)]:de,[_e("closeColorPressed",A)]:pe}}=i.value;return{"--n-font-weight-strong":O,"--n-avatar-size-override":`calc(${te} - 8px)`,"--n-bezier":g,"--n-border-radius":x,"--n-border":le,"--n-close-icon-size":W,"--n-close-color-pressed":pe,"--n-close-color-hover":de,"--n-close-border-radius":$,"--n-close-icon-color":se,"--n-close-icon-color-hover":ce,"--n-close-icon-color-pressed":be,"--n-close-icon-color-disabled":se,"--n-close-margin":y,"--n-close-margin-rtl":b,"--n-close-size":V,"--n-color":v||(r.value?Q:ae),"--n-color-checkable":E,"--n-color-checked":D,"--n-color-checked-hover":F,"--n-color-checked-pressed":M,"--n-color-hover-checkable":I,"--n-color-pressed-checkable":R,"--n-font-size":Z,"--n-height":te,"--n-opacity-disabled":w,"--n-padding":m,"--n-text-color":p||re,"--n-text-color-checkable":C,"--n-text-color-checked":T,"--n-text-color-hover-checkable":_,"--n-text-color-pressed-checkable":B}}),f=o?Et("tag",L(()=>{let A="";const{type:h,size:v,color:{color:p,textColor:g}={}}=e;return A+=h[0],A+=v[0],p&&(A+=`a${Ev(p)}`),g&&(A+=`b${Ev(g)}`),r.value&&(A+="c"),A}),d,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:c,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:o,color:{borderColor:a}={},round:i,onRender:s,$slots:l}=this;s==null||s();const u=Ar(l.avatar,d=>d&&S("div",{class:`${r}-tag__avatar`},d)),c=Ar(l.icon,d=>d&&S("div",{class:`${r}-tag__icon`},d));return S("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:i,[`${r}-tag--avatar`]:u,[`${r}-tag--icon`]:c,[`${r}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},c||u,S("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?S(pd,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:i,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?S("div",{class:`${r}-tag__border`,style:{borderColor:a}}):null)}}),nSe=P("base-clear",`
  594. flex-shrink: 0;
  595. height: 1em;
  596. width: 1em;
  597. position: relative;
  598. `,[N(">",[G("clear",`
  599. font-size: var(--n-clear-size);
  600. height: 1em;
  601. width: 1em;
  602. cursor: pointer;
  603. color: var(--n-clear-color);
  604. transition: color .3s var(--n-bezier);
  605. display: flex;
  606. `,[N("&:hover",`
  607. color: var(--n-clear-color-hover)!important;
  608. `),N("&:active",`
  609. color: var(--n-clear-color-pressed)!important;
  610. `)]),G("placeholder",`
  611. display: flex;
  612. `),G("clear, placeholder",`
  613. position: absolute;
  614. left: 50%;
  615. top: 50%;
  616. transform: translateX(-50%) translateY(-50%);
  617. `,[Jn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),dD=ge({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ml("-base-clear",nSe,Re(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-base-clear`},S(yl,null,{default:()=>{var t,r;return this.show?S("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Kt(this.$slots.icon,()=>[S(zt,{clsPrefix:e},{default:()=>S(Lwe,null)})])):S("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),DX=ge({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return S(Eu,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?S(dD,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>S(zt,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>Kt(t.default,()=>[S(AX,null)])})}):null})}}}),MX={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},oSe=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:o,inputColorDisabled:a,primaryColor:i,primaryColorHover:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,borderColor:f,iconColor:A,iconColorDisabled:h,clearColor:v,clearColorHover:p,clearColorPressed:g,placeholderColor:m,placeholderColorDisabled:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:C,heightTiny:_,heightSmall:B,heightMedium:T,heightLarge:E}=e;return Object.assign(Object.assign({},MX),{fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:C,heightTiny:_,heightSmall:B,heightMedium:T,heightLarge:E,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:m,placeholderColorDisabled:y,color:o,colorDisabled:a,colorActive:o,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${i}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Ve(i,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Ve(i,{alpha:.2})}`,caretColor:i,arrowColor:A,arrowColorDisabled:h,loadingColor:i,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Ve(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Ve(l,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:l,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Ve(c,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Ve(c,{alpha:.2})}`,colorActiveError:o,caretColorError:c,clearColor:v,clearColorHover:p,clearColorPressed:g})},aSe={name:"InternalSelection",common:Lt,peers:{Popover:cp},self:oSe},PX=aSe,iSe={name:"InternalSelection",common:ct,peers:{Popover:MA},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:o,inputColorDisabled:a,primaryColor:i,primaryColorHover:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,iconColor:f,iconColorDisabled:A,clearColor:h,clearColorHover:v,clearColorPressed:p,placeholderColor:g,placeholderColorDisabled:m,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:w,heightTiny:C,heightSmall:_,heightMedium:B,heightLarge:T}=e;return Object.assign(Object.assign({},MX),{fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:w,heightTiny:C,heightSmall:_,heightMedium:B,heightLarge:T,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:g,placeholderColorDisabled:m,color:o,colorDisabled:a,colorActive:Ve(i,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${i}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Ve(i,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Ve(i,{alpha:.4})}`,caretColor:i,arrowColor:f,arrowColorDisabled:A,loadingColor:i,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Ve(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Ve(l,{alpha:.4})}`,colorActiveWarning:Ve(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Ve(c,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Ve(c,{alpha:.4})}`,colorActiveError:Ve(c,{alpha:.1}),caretColorError:c,clearColor:h,clearColorHover:v,clearColorPressed:p})}},Zk=iSe,sSe=N([P("base-selection",`
  618. position: relative;
  619. z-index: auto;
  620. box-shadow: none;
  621. width: 100%;
  622. max-width: 100%;
  623. display: inline-block;
  624. vertical-align: bottom;
  625. border-radius: var(--n-border-radius);
  626. min-height: var(--n-height);
  627. line-height: 1.5;
  628. font-size: var(--n-font-size);
  629. `,[P("base-loading",`
  630. color: var(--n-loading-color);
  631. `),P("base-selection-tags","min-height: var(--n-height);"),G("border, state-border",`
  632. position: absolute;
  633. left: 0;
  634. right: 0;
  635. top: 0;
  636. bottom: 0;
  637. pointer-events: none;
  638. border: var(--n-border);
  639. border-radius: inherit;
  640. transition:
  641. box-shadow .3s var(--n-bezier),
  642. border-color .3s var(--n-bezier);
  643. `),G("state-border",`
  644. z-index: 1;
  645. border-color: #0000;
  646. `),P("base-suffix",`
  647. cursor: pointer;
  648. position: absolute;
  649. top: 50%;
  650. transform: translateY(-50%);
  651. right: 10px;
  652. `,[G("arrow",`
  653. font-size: var(--n-arrow-size);
  654. color: var(--n-arrow-color);
  655. transition: color .3s var(--n-bezier);
  656. `)]),P("base-selection-overlay",`
  657. display: flex;
  658. align-items: center;
  659. white-space: nowrap;
  660. pointer-events: none;
  661. position: absolute;
  662. top: 0;
  663. right: 0;
  664. bottom: 0;
  665. left: 0;
  666. padding: var(--n-padding-single);
  667. transition: color .3s var(--n-bezier);
  668. `,[G("wrapper",`
  669. flex-basis: 0;
  670. flex-grow: 1;
  671. overflow: hidden;
  672. text-overflow: ellipsis;
  673. `)]),P("base-selection-placeholder",`
  674. color: var(--n-placeholder-color);
  675. `,[G("inner",`
  676. max-width: 100%;
  677. overflow: hidden;
  678. `)]),P("base-selection-tags",`
  679. cursor: pointer;
  680. outline: none;
  681. box-sizing: border-box;
  682. position: relative;
  683. z-index: auto;
  684. display: flex;
  685. padding: var(--n-padding-multiple);
  686. flex-wrap: wrap;
  687. align-items: center;
  688. width: 100%;
  689. vertical-align: bottom;
  690. background-color: var(--n-color);
  691. border-radius: inherit;
  692. transition:
  693. color .3s var(--n-bezier),
  694. box-shadow .3s var(--n-bezier),
  695. background-color .3s var(--n-bezier);
  696. `),P("base-selection-label",`
  697. height: var(--n-height);
  698. display: inline-flex;
  699. width: 100%;
  700. vertical-align: bottom;
  701. cursor: pointer;
  702. outline: none;
  703. z-index: auto;
  704. box-sizing: border-box;
  705. position: relative;
  706. transition:
  707. color .3s var(--n-bezier),
  708. box-shadow .3s var(--n-bezier),
  709. background-color .3s var(--n-bezier);
  710. border-radius: inherit;
  711. background-color: var(--n-color);
  712. align-items: center;
  713. `,[P("base-selection-input",`
  714. font-size: inherit;
  715. line-height: inherit;
  716. outline: none;
  717. cursor: pointer;
  718. box-sizing: border-box;
  719. border:none;
  720. width: 100%;
  721. padding: var(--n-padding-single);
  722. background-color: #0000;
  723. color: var(--n-text-color);
  724. transition: color .3s var(--n-bezier);
  725. caret-color: var(--n-caret-color);
  726. `,[G("content",`
  727. text-overflow: ellipsis;
  728. overflow: hidden;
  729. white-space: nowrap;
  730. `)]),G("render-label",`
  731. color: var(--n-text-color);
  732. `)]),Wt("disabled",[N("&:hover",[G("state-border",`
  733. box-shadow: var(--n-box-shadow-hover);
  734. border: var(--n-border-hover);
  735. `)]),j("focus",[G("state-border",`
  736. box-shadow: var(--n-box-shadow-focus);
  737. border: var(--n-border-focus);
  738. `)]),j("active",[G("state-border",`
  739. box-shadow: var(--n-box-shadow-active);
  740. border: var(--n-border-active);
  741. `),P("base-selection-label","background-color: var(--n-color-active);"),P("base-selection-tags","background-color: var(--n-color-active);")])]),j("disabled","cursor: not-allowed;",[G("arrow",`
  742. color: var(--n-arrow-color-disabled);
  743. `),P("base-selection-label",`
  744. cursor: not-allowed;
  745. background-color: var(--n-color-disabled);
  746. `,[P("base-selection-input",`
  747. cursor: not-allowed;
  748. color: var(--n-text-color-disabled);
  749. `),G("render-label",`
  750. color: var(--n-text-color-disabled);
  751. `)]),P("base-selection-tags",`
  752. cursor: not-allowed;
  753. background-color: var(--n-color-disabled);
  754. `),P("base-selection-placeholder",`
  755. cursor: not-allowed;
  756. color: var(--n-placeholder-color-disabled);
  757. `)]),P("base-selection-input-tag",`
  758. height: calc(var(--n-height) - 6px);
  759. line-height: calc(var(--n-height) - 6px);
  760. outline: none;
  761. display: none;
  762. position: relative;
  763. margin-bottom: 3px;
  764. max-width: 100%;
  765. vertical-align: bottom;
  766. `,[G("input",`
  767. font-size: inherit;
  768. font-family: inherit;
  769. min-width: 1px;
  770. padding: 0;
  771. background-color: #0000;
  772. outline: none;
  773. border: none;
  774. max-width: 100%;
  775. overflow: hidden;
  776. width: 1em;
  777. line-height: inherit;
  778. cursor: pointer;
  779. color: var(--n-text-color);
  780. caret-color: var(--n-caret-color);
  781. `),G("mirror",`
  782. position: absolute;
  783. left: 0;
  784. top: 0;
  785. white-space: pre;
  786. visibility: hidden;
  787. user-select: none;
  788. -webkit-user-select: none;
  789. opacity: 0;
  790. `)]),["warning","error"].map(e=>j(`${e}-status`,[G("state-border",`border: var(--n-border-${e});`),Wt("disabled",[N("&:hover",[G("state-border",`
  791. box-shadow: var(--n-box-shadow-hover-${e});
  792. border: var(--n-border-hover-${e});
  793. `)]),j("active",[G("state-border",`
  794. box-shadow: var(--n-box-shadow-active-${e});
  795. border: var(--n-border-active-${e});
  796. `),P("base-selection-label",`background-color: var(--n-color-active-${e});`),P("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),j("focus",[G("state-border",`
  797. box-shadow: var(--n-box-shadow-focus-${e});
  798. border: var(--n-border-focus-${e});
  799. `)])])]))]),P("base-selection-popover",`
  800. margin-bottom: -3px;
  801. display: flex;
  802. flex-wrap: wrap;
  803. margin-right: -8px;
  804. `),P("base-selection-tag-wrapper",`
  805. max-width: 100%;
  806. display: inline-flex;
  807. padding: 0 7px 3px 0;
  808. `,[N("&:last-child","padding-right: 0;"),P("tag",`
  809. font-size: 14px;
  810. max-width: 100%;
  811. `,[G("content",`
  812. line-height: 1.25;
  813. text-overflow: ellipsis;
  814. overflow: hidden;
  815. `)])])]),lSe=ge({name:"InternalSelection",props:Object.assign(Object.assign({},Me.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=q(null),r=q(null),n=q(null),o=q(null),a=q(null),i=q(null),s=q(null),l=q(null),u=q(null),c=q(null),d=q(!1),f=q(!1),A=q(!1),h=Me("InternalSelection","-internal-selection",sSe,PX,e,Re(e,"clsPrefix")),v=L(()=>e.clearable&&!e.disabled&&(A.value||e.active)),p=L(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Nr(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=L(()=>{const ne=e.selectedOption;if(ne)return ne[e.labelField]}),m=L(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function y(){var ne;const{value:Ae}=t;if(Ae){const{value:X}=r;X&&(X.style.width=`${Ae.offsetWidth}px`,e.maxTagCount!=="responsive"&&((ne=u.value)===null||ne===void 0||ne.sync()))}}function b(){const{value:ne}=c;ne&&(ne.style.display="none")}function x(){const{value:ne}=c;ne&&(ne.style.display="inline-block")}gt(Re(e,"active"),ne=>{ne||b()}),gt(Re(e,"pattern"),()=>{e.multiple&&dr(y)});function w(ne){const{onFocus:Ae}=e;Ae&&Ae(ne)}function C(ne){const{onBlur:Ae}=e;Ae&&Ae(ne)}function _(ne){const{onDeleteOption:Ae}=e;Ae&&Ae(ne)}function B(ne){const{onClear:Ae}=e;Ae&&Ae(ne)}function T(ne){const{onPatternInput:Ae}=e;Ae&&Ae(ne)}function E(ne){var Ae;(!ne.relatedTarget||!(!((Ae=n.value)===null||Ae===void 0)&&Ae.contains(ne.relatedTarget)))&&w(ne)}function I(ne){var Ae;!((Ae=n.value)===null||Ae===void 0)&&Ae.contains(ne.relatedTarget)||C(ne)}function R(ne){B(ne)}function D(){A.value=!0}function F(){A.value=!1}function M(ne){!e.active||!e.filterable||ne.target!==r.value&&ne.preventDefault()}function $(ne){_(ne)}function O(ne){if(ne.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:Ae}=e;Ae!=null&&Ae.length&&$(Ae[Ae.length-1])}}const Q=q(!1);let V=null;function W(ne){const{value:Ae}=t;if(Ae){const X=ne.target.value;Ae.textContent=X,y()}e.ignoreComposition&&Q.value?V=ne:T(ne)}function Z(){Q.value=!0}function te(){Q.value=!1,e.ignoreComposition&&T(V),V=null}function ae(ne){var Ae;f.value=!0,(Ae=e.onPatternFocus)===null||Ae===void 0||Ae.call(e,ne)}function re(ne){var Ae;f.value=!1,(Ae=e.onPatternBlur)===null||Ae===void 0||Ae.call(e,ne)}function le(){var ne,Ae;if(e.filterable)f.value=!1,(ne=i.value)===null||ne===void 0||ne.blur(),(Ae=r.value)===null||Ae===void 0||Ae.blur();else if(e.multiple){const{value:X}=o;X==null||X.blur()}else{const{value:X}=a;X==null||X.blur()}}function se(){var ne,Ae,X;e.filterable?(f.value=!1,(ne=i.value)===null||ne===void 0||ne.focus()):e.multiple?(Ae=o.value)===null||Ae===void 0||Ae.focus():(X=a.value)===null||X===void 0||X.focus()}function ce(){const{value:ne}=r;ne&&(x(),ne.focus())}function be(){const{value:ne}=r;ne&&ne.blur()}function de(ne){const{value:Ae}=s;Ae&&Ae.setTextContent(`+${ne}`)}function pe(){const{value:ne}=l;return ne}function K(){return r.value}let U=null;function k(){U!==null&&window.clearTimeout(U)}function J(){e.disabled||e.active||(k(),U=window.setTimeout(()=>{m.value&&(d.value=!0)},100))}function ee(){k()}function H(ne){ne||(k(),d.value=!1)}gt(m,ne=>{ne||(d.value=!1)}),yr(()=>{Sr(()=>{const ne=i.value;ne&&(ne.tabIndex=e.disabled||f.value?-1:0)})}),AY(n,e.onResize);const{inlineThemeDisabled:Y}=e,oe=L(()=>{const{size:ne}=e,{common:{cubicBezierEaseInOut:Ae},self:{borderRadius:X,color:ie,placeholderColor:fe,textColor:ye,paddingSingle:Fe,paddingMultiple:Ne,caretColor:rt,colorDisabled:lt,textColorDisabled:mt,placeholderColorDisabled:Ge,colorActive:it,boxShadowFocus:je,boxShadowActive:Ye,boxShadowHover:ue,border:Ee,borderFocus:Qe,borderHover:et,borderActive:tt,arrowColor:xe,arrowColorDisabled:$e,loadingColor:Xe,colorActiveWarning:ht,boxShadowFocusWarning:Se,boxShadowActiveWarning:He,boxShadowHoverWarning:me,borderWarning:ze,borderFocusWarning:dt,borderHoverWarning:Rt,borderActiveWarning:At,colorActiveError:ve,boxShadowFocusError:De,boxShadowActiveError:ot,boxShadowHoverError:Nt,borderError:Ce,borderFocusError:Le,borderHoverError:ut,borderActiveError:vt,clearColor:xt,clearColorHover:Kr,clearColorPressed:zr,clearSize:Be,arrowSize:Ze,[_e("height",ne)]:yt,[_e("fontSize",ne)]:ar}}=h.value;return{"--n-bezier":Ae,"--n-border":Ee,"--n-border-active":tt,"--n-border-focus":Qe,"--n-border-hover":et,"--n-border-radius":X,"--n-box-shadow-active":Ye,"--n-box-shadow-focus":je,"--n-box-shadow-hover":ue,"--n-caret-color":rt,"--n-color":ie,"--n-color-active":it,"--n-color-disabled":lt,"--n-font-size":ar,"--n-height":yt,"--n-padding-single":Fe,"--n-padding-multiple":Ne,"--n-placeholder-color":fe,"--n-placeholder-color-disabled":Ge,"--n-text-color":ye,"--n-text-color-disabled":mt,"--n-arrow-color":xe,"--n-arrow-color-disabled":$e,"--n-loading-color":Xe,"--n-color-active-warning":ht,"--n-box-shadow-focus-warning":Se,"--n-box-shadow-active-warning":He,"--n-box-shadow-hover-warning":me,"--n-border-warning":ze,"--n-border-focus-warning":dt,"--n-border-hover-warning":Rt,"--n-border-active-warning":At,"--n-color-active-error":ve,"--n-box-shadow-focus-error":De,"--n-box-shadow-active-error":ot,"--n-box-shadow-hover-error":Nt,"--n-border-error":Ce,"--n-border-focus-error":Le,"--n-border-hover-error":ut,"--n-border-active-error":vt,"--n-clear-size":Be,"--n-clear-color":xt,"--n-clear-color-hover":Kr,"--n-clear-color-pressed":zr,"--n-arrow-size":Ze}}),he=Y?Et("internal-selection",L(()=>e.size[0]),oe,e):void 0;return{mergedTheme:h,mergedClearable:v,patternInputFocused:f,filterablePlaceholder:p,label:g,selected:m,showTagsPanel:d,isComposing:Q,counterRef:s,counterWrapperRef:l,patternInputMirrorRef:t,patternInputRef:r,selfRef:n,multipleElRef:o,singleElRef:a,patternInputWrapperRef:i,overflowRef:u,inputTagElRef:c,handleMouseDown:M,handleFocusin:E,handleClear:R,handleMouseEnter:D,handleMouseLeave:F,handleDeleteOption:$,handlePatternKeyDown:O,handlePatternInputInput:W,handlePatternInputBlur:re,handlePatternInputFocus:ae,handleMouseEnterCounter:J,handleMouseLeaveCounter:ee,handleFocusout:I,handleCompositionEnd:te,handleCompositionStart:Z,onPopoverUpdateShow:H,focus:se,focusInput:ce,blur:le,blurInput:be,updateCounter:de,getCounter:pe,getTail:K,renderLabel:e.renderLabel,cssVars:Y?void 0:oe,themeClass:he==null?void 0:he.themeClass,onRender:he==null?void 0:he.onRender}},render(){const{status:e,multiple:t,size:r,disabled:n,filterable:o,maxTagCount:a,bordered:i,clsPrefix:s,onRender:l,renderTag:u,renderLabel:c}=this;l==null||l();const d=a==="responsive",f=typeof a=="number",A=d||f,h=S(jR,null,{default:()=>S(DX,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var p,g;return(g=(p=this.$slots).arrow)===null||g===void 0?void 0:g.call(p)}})});let v;if(t){const{labelField:p}=this,g=I=>S("div",{class:`${s}-base-selection-tag-wrapper`,key:I.value},u?u({option:I,handleClose:()=>this.handleDeleteOption(I)}):S(kx,{size:r,closable:!I.disabled,disabled:n,onClose:()=>this.handleDeleteOption(I),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(I,!0):Nr(I[p],I,!0)})),m=()=>(f?this.selectedOptions.slice(0,a):this.selectedOptions).map(g),y=o?S("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},S("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),S("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern)):null,b=d?()=>S("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},S(kx,{size:r,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let x;if(f){const I=this.selectedOptions.length-a;I>0&&(x=S("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},S(kx,{size:r,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${I}`})))}const w=d?o?S(g$,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:m,counter:b,tail:()=>y}):S(g$,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:m,counter:b}):f?m().concat(x):m(),C=A?()=>S("div",{class:`${s}-base-selection-popover`},d?m():this.selectedOptions.map(g)):void 0,_=A?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,T=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?S("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},S("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)):null,E=o?S("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},w,d?null:y,h):S("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:n?void 0:0},w,h);v=S(lr,null,A?S(dp,Object.assign({},_,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:C}):E,T)}else if(o){const p=this.pattern||this.isComposing,g=this.active?!p:!this.selected,m=this.active?!1:this.selected;v=S("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`},S("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),m?S("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},S("div",{class:`${s}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Nr(this.label,this.selectedOption,!0))):null,g?S("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},S("div",{class:`${s}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,h)}else v=S("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?S("div",{class:`${s}-base-selection-input`,title:Fj(this.label),key:"input"},S("div",{class:`${s}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Nr(this.label,this.selectedOption,!0))):S("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},S("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)),h);return S("div",{ref:"selfRef",class:[`${s}-base-selection`,this.themeClass,e&&`${s}-base-selection--${e}-status`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,i?S("div",{class:`${s}-base-selection__border`}):null,i?S("div",{class:`${s}-base-selection__state-border`}):null)}}),vU=ge({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=q(null),r=q(e.value),n=q(e.value),o=q("up"),a=q(!1),i=L(()=>a.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),s=L(()=>a.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);gt(Re(e,"value"),(c,d)=>{r.value=d,n.value=c,dr(l)});function l(){const c=e.newOriginalNumber,d=e.oldOriginalNumber;d===void 0||c===void 0||(c>d?u("up"):d>c&&u("down"))}function u(c){o.value=c,a.value=!1,dr(()=>{var d;(d=t.value)===null||d===void 0||d.offsetWidth,a.value=!0})}return()=>{const{clsPrefix:c}=e;return S("span",{ref:t,class:`${c}-base-slot-machine-number`},r.value!==null?S("span",{class:[`${c}-base-slot-machine-old-number ${c}-base-slot-machine-old-number--top`,s.value]},r.value):null,S("span",{class:[`${c}-base-slot-machine-current-number`,i.value]},S("span",{ref:"numberWrapper",class:[`${c}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${c}-base-slot-machine-current-number__inner--not-number`]},n.value)),r.value!==null?S("span",{class:[`${c}-base-slot-machine-old-number ${c}-base-slot-machine-old-number--bottom`,s.value]},r.value):null)}}}),{cubicBezierEaseInOut:Nu}=Ma;function FX({duration:e=".2s",delay:t=".1s"}={}){return[N("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),N("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
  816. opacity: 0!important;
  817. margin-left: 0!important;
  818. margin-right: 0!important;
  819. `),N("&.fade-in-width-expand-transition-leave-active",`
  820. overflow: hidden;
  821. transition:
  822. opacity ${e} ${Nu},
  823. max-width ${e} ${Nu} ${t},
  824. margin-left ${e} ${Nu} ${t},
  825. margin-right ${e} ${Nu} ${t};
  826. `),N("&.fade-in-width-expand-transition-enter-active",`
  827. overflow: hidden;
  828. transition:
  829. opacity ${e} ${Nu} ${t},
  830. max-width ${e} ${Nu},
  831. margin-left ${e} ${Nu},
  832. margin-right ${e} ${Nu};
  833. `)]}const{cubicBezierEaseOut:qA}=Ma;function uSe({duration:e=".2s"}={}){return[N("&.fade-up-width-expand-transition-leave-active",{transition:`
  834. opacity ${e} ${qA},
  835. max-width ${e} ${qA},
  836. transform ${e} ${qA}
  837. `}),N("&.fade-up-width-expand-transition-enter-active",{transition:`
  838. opacity ${e} ${qA},
  839. max-width ${e} ${qA},
  840. transform ${e} ${qA}
  841. `}),N("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),N("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),N("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),N("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const cSe=N([N("@keyframes n-base-slot-machine-fade-up-in",`
  842. from {
  843. transform: translateY(60%);
  844. opacity: 0;
  845. }
  846. to {
  847. transform: translateY(0);
  848. opacity: 1;
  849. }
  850. `),N("@keyframes n-base-slot-machine-fade-down-in",`
  851. from {
  852. transform: translateY(-60%);
  853. opacity: 0;
  854. }
  855. to {
  856. transform: translateY(0);
  857. opacity: 1;
  858. }
  859. `),N("@keyframes n-base-slot-machine-fade-up-out",`
  860. from {
  861. transform: translateY(0%);
  862. opacity: 1;
  863. }
  864. to {
  865. transform: translateY(-60%);
  866. opacity: 0;
  867. }
  868. `),N("@keyframes n-base-slot-machine-fade-down-out",`
  869. from {
  870. transform: translateY(0%);
  871. opacity: 1;
  872. }
  873. to {
  874. transform: translateY(60%);
  875. opacity: 0;
  876. }
  877. `),P("base-slot-machine",`
  878. overflow: hidden;
  879. white-space: nowrap;
  880. display: inline-block;
  881. height: 18px;
  882. line-height: 18px;
  883. `,[P("base-slot-machine-number",`
  884. display: inline-block;
  885. position: relative;
  886. height: 18px;
  887. width: .6em;
  888. max-width: .6em;
  889. `,[uSe({duration:".2s"}),FX({duration:".2s",delay:"0s"}),P("base-slot-machine-old-number",`
  890. display: inline-block;
  891. opacity: 0;
  892. position: absolute;
  893. left: 0;
  894. right: 0;
  895. `,[j("top",{transform:"translateY(-100%)"}),j("bottom",{transform:"translateY(100%)"}),j("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),j("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),P("base-slot-machine-current-number",`
  896. display: inline-block;
  897. position: absolute;
  898. left: 0;
  899. top: 0;
  900. bottom: 0;
  901. right: 0;
  902. opacity: 1;
  903. transform: translateY(0);
  904. width: .6em;
  905. `,[j("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),j("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),G("inner",`
  906. display: inline-block;
  907. position: absolute;
  908. right: 0;
  909. top: 0;
  910. width: .6em;
  911. `,[j("not-number",`
  912. right: unset;
  913. left: 0;
  914. `)])])])])]),dSe=ge({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){ml("-base-slot-machine",cSe,Re(e,"clsPrefix"));const t=q(),r=q(),n=L(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let a=e.value;for(e.max!==void 0&&(a=Math.min(e.max,a));a>=1;)o.push(a%10),a/=10,a=Math.floor(a);return o.reverse(),o});return gt(Re(e,"value"),(o,a)=>{typeof o=="string"?(r.value=void 0,t.value=void 0):typeof a=="string"?(r.value=o,t.value=void 0):(r.value=o,t.value=a)}),()=>{const{value:o,clsPrefix:a}=e;return typeof o=="number"?S("span",{class:`${a}-base-slot-machine`},S(IS,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>n.value.map((i,s)=>S(vU,{clsPrefix:a,key:n.value.length-s-1,oldOriginalNumber:t.value,newOriginalNumber:r.value,value:i}))}),S(bl,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max<o?S(vU,{clsPrefix:a,value:"+"}):null})):S("span",{class:`${a}-base-slot-machine`},o)}}}),kX={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},fSe={name:"Alert",common:ct,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:n,dividerColor:o,inputColor:a,textColor1:i,textColor2:s,closeColorHover:l,closeColorPressed:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:A,successColorSuppl:h,warningColorSuppl:v,errorColorSuppl:p,fontSize:g}=e;return Object.assign(Object.assign({},kX),{fontSize:g,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${o}`,color:a,titleTextColor:i,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:l,closeColorPressed:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${Ve(A,{alpha:.35})}`,colorInfo:Ve(A,{alpha:.25}),titleTextColorInfo:i,iconColorInfo:A,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:u,closeIconColorInfo:c,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ve(h,{alpha:.35})}`,colorSuccess:Ve(h,{alpha:.25}),titleTextColorSuccess:i,iconColorSuccess:h,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:u,closeIconColorSuccess:c,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ve(v,{alpha:.35})}`,colorWarning:Ve(v,{alpha:.25}),titleTextColorWarning:i,iconColorWarning:v,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:u,closeIconColorWarning:c,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${Ve(p,{alpha:.35})}`,colorError:Ve(p,{alpha:.25}),titleTextColorError:i,iconColorError:p,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:u,closeIconColorError:c,closeIconColorHoverError:d,closeIconColorPressedError:f})}},ASe=fSe,hSe=e=>{const{lineHeight:t,borderRadius:r,fontWeightStrong:n,baseColor:o,dividerColor:a,actionColor:i,textColor1:s,textColor2:l,closeColorHover:u,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:A,infoColor:h,successColor:v,warningColor:p,errorColor:g,fontSize:m}=e;return Object.assign(Object.assign({},kX),{fontSize:m,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${a}`,color:i,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:r,closeColorHover:u,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:A,borderInfo:`1px solid ${Dt(o,Ve(h,{alpha:.25}))}`,colorInfo:Dt(o,Ve(h,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:h,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:A,borderSuccess:`1px solid ${Dt(o,Ve(v,{alpha:.25}))}`,colorSuccess:Dt(o,Ve(v,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:v,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:A,borderWarning:`1px solid ${Dt(o,Ve(p,{alpha:.33}))}`,colorWarning:Dt(o,Ve(p,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:p,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:A,borderError:`1px solid ${Dt(o,Ve(g,{alpha:.25}))}`,colorError:Dt(o,Ve(g,{alpha:.08})),titleTextColorError:s,iconColorError:g,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:A})},vSe={name:"Alert",common:Lt,self:hSe},pSe=vSe,{cubicBezierEaseInOut:Rs,cubicBezierEaseOut:gSe,cubicBezierEaseIn:mSe}=Ma;function fu({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:n="0s",foldPadding:o=!1,enterToProps:a=void 0,leaveToProps:i=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",u=s?"enter":"leave";return[N(`&.fade-in-height-expand-transition-${u}-from,
  915. &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},a),{opacity:1})),N(`&.fade-in-height-expand-transition-${u}-to,
  916. &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},i),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),N(`&.fade-in-height-expand-transition-${u}-active`,`
  917. overflow: ${e};
  918. transition:
  919. max-height ${t} ${Rs} ${n},
  920. opacity ${t} ${gSe} ${n},
  921. margin-top ${t} ${Rs} ${n},
  922. margin-bottom ${t} ${Rs} ${n},
  923. padding-top ${t} ${Rs} ${n},
  924. padding-bottom ${t} ${Rs} ${n}
  925. ${r?","+r:""}
  926. `),N(`&.fade-in-height-expand-transition-${l}-active`,`
  927. overflow: ${e};
  928. transition:
  929. max-height ${t} ${Rs},
  930. opacity ${t} ${mSe},
  931. margin-top ${t} ${Rs},
  932. margin-bottom ${t} ${Rs},
  933. padding-top ${t} ${Rs},
  934. padding-bottom ${t} ${Rs}
  935. ${r?","+r:""}
  936. `)]}const ySe=P("alert",`
  937. line-height: var(--n-line-height);
  938. border-radius: var(--n-border-radius);
  939. position: relative;
  940. transition: background-color .3s var(--n-bezier);
  941. background-color: var(--n-color);
  942. text-align: start;
  943. word-break: break-word;
  944. `,[G("border",`
  945. border-radius: inherit;
  946. position: absolute;
  947. left: 0;
  948. right: 0;
  949. top: 0;
  950. bottom: 0;
  951. transition: border-color .3s var(--n-bezier);
  952. border: var(--n-border);
  953. pointer-events: none;
  954. `),j("closable",[P("alert-body",[G("title",`
  955. padding-right: 24px;
  956. `)])]),G("icon",{color:"var(--n-icon-color)"}),P("alert-body",{padding:"var(--n-padding)"},[G("title",{color:"var(--n-title-text-color)"}),G("content",{color:"var(--n-content-text-color)"})]),fu({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),G("icon",`
  957. position: absolute;
  958. left: 0;
  959. top: 0;
  960. align-items: center;
  961. justify-content: center;
  962. display: flex;
  963. width: var(--n-icon-size);
  964. height: var(--n-icon-size);
  965. font-size: var(--n-icon-size);
  966. margin: var(--n-icon-margin);
  967. `),G("close",`
  968. transition:
  969. color .3s var(--n-bezier),
  970. background-color .3s var(--n-bezier);
  971. position: absolute;
  972. right: 0;
  973. top: 0;
  974. margin: var(--n-close-margin);
  975. `),j("show-icon",[P("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),P("alert-body",`
  976. border-radius: var(--n-border-radius);
  977. transition: border-color .3s var(--n-bezier);
  978. `,[G("title",`
  979. transition: color .3s var(--n-bezier);
  980. font-size: 16px;
  981. line-height: 19px;
  982. font-weight: var(--n-title-font-weight);
  983. `,[N("& +",[G("content",{marginTop:"9px"})])]),G("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),G("icon",{transition:"color .3s var(--n-bezier)"})]),bSe=Object.assign(Object.assign({},Me.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),xSe=ge({name:"Alert",inheritAttrs:!1,props:bSe,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=Me("Alert","-alert",ySe,pSe,e,t),i=dn("Alert",o,t),s=L(()=>{const{common:{cubicBezierEaseInOut:A},self:h}=a.value,{fontSize:v,borderRadius:p,titleFontWeight:g,lineHeight:m,iconSize:y,iconMargin:b,iconMarginRtl:x,closeIconSize:w,closeBorderRadius:C,closeSize:_,closeMargin:B,closeMarginRtl:T,padding:E}=h,{type:I}=e,{left:R,right:D}=Tc(b);return{"--n-bezier":A,"--n-color":h[_e("color",I)],"--n-close-icon-size":w,"--n-close-border-radius":C,"--n-close-color-hover":h[_e("closeColorHover",I)],"--n-close-color-pressed":h[_e("closeColorPressed",I)],"--n-close-icon-color":h[_e("closeIconColor",I)],"--n-close-icon-color-hover":h[_e("closeIconColorHover",I)],"--n-close-icon-color-pressed":h[_e("closeIconColorPressed",I)],"--n-icon-color":h[_e("iconColor",I)],"--n-border":h[_e("border",I)],"--n-title-text-color":h[_e("titleTextColor",I)],"--n-content-text-color":h[_e("contentTextColor",I)],"--n-line-height":m,"--n-border-radius":p,"--n-font-size":v,"--n-title-font-weight":g,"--n-icon-size":y,"--n-icon-margin":b,"--n-icon-margin-rtl":x,"--n-close-size":_,"--n-close-margin":B,"--n-close-margin-rtl":T,"--n-padding":E,"--n-icon-margin-left":R,"--n-icon-margin-right":D}}),l=n?Et("alert",L(()=>e.type[0]),s,e):void 0,u=q(!0),c=()=>{const{onAfterLeave:A,onAfterHide:h}=e;A&&A(),h&&h()};return{rtlEnabled:i,mergedClsPrefix:t,mergedBordered:r,visible:u,handleCloseClick:()=>{var A;Promise.resolve((A=e.onClose)===null||A===void 0?void 0:A.call(e)).then(h=>{h!==!1&&(u.value=!1)})},handleAfterLeave:()=>{c()},mergedTheme:a,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),S(bl,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:r}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?S("div",Object.assign({},wn(this.$attrs,n)),this.closable&&S(pd,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&S("div",{class:`${t}-alert__border`}),this.showIcon&&S("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},Kt(r.icon,()=>[S(zt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return S(IA,null);case"info":return S(ed,null);case"warning":return S(RA,null);case"error":return S(EA,null);default:return null}}})])),S("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ar(r.header,o=>{const a=o||this.title;return a?S("div",{class:`${t}-alert-body__title`},a):null}),r.default&&S("div",{class:`${t}-alert-body__content`},r))):null}})}}),wSe={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},CSe=e=>{const{borderRadius:t,railColor:r,primaryColor:n,primaryColorHover:o,primaryColorPressed:a,textColor2:i}=e;return Object.assign(Object.assign({},wSe),{borderRadius:t,railColor:r,railColorActive:n,linkColor:Ve(n,{alpha:.15}),linkTextColor:i,linkTextColorHover:o,linkTextColorPressed:a,linkTextColorActive:n})},SSe={name:"Anchor",common:ct,self:CSe},_Se=SSe;function Fw(e){return e.type==="group"}function LX(e){return e.type==="ignored"}function d2(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(r){return!1}}function OX(e,t){return{getIsGroup:Fw,getIgnored:LX,getKey(n){return Fw(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function BSe(e,t,r,n){if(!t)return e;function o(a){if(!Array.isArray(a))return[];const i=[];for(const s of a)if(Fw(s)){const l=o(s[n]);l.length&&i.push(Object.assign({},s,{[n]:l}))}else{if(LX(s))continue;t(r,s)&&i.push(s)}return i}return o(e)}function TSe(e,t,r){const n=new Map;return e.forEach(o=>{Fw(o)?o[r].forEach(a=>{n.set(a[t],a)}):n.set(o[t],o)}),n}const ESe=ni&&"chrome"in window;ni&&navigator.userAgent.includes("Firefox");const $X=ni&&navigator.userAgent.includes("Safari")&&!ESe,UX={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},ISe={name:"Input",common:ct,self(e){const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:a,inputColor:i,inputColorDisabled:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,borderRadius:f,lineHeight:A,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:g,heightTiny:m,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:w,clearColorHover:C,clearColorPressed:_,placeholderColor:B,placeholderColorDisabled:T,iconColor:E,iconColorDisabled:I,iconColorHover:R,iconColorPressed:D}=e;return Object.assign(Object.assign({},UX),{countTextColorDisabled:n,countTextColor:r,heightTiny:m,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:g,lineHeight:A,lineHeightTextarea:A,borderRadius:f,iconSize:"16px",groupLabelColor:i,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:o,placeholderColor:B,placeholderColorDisabled:T,color:i,colorDisabled:s,colorFocus:Ve(o,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${a}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${Ve(o,{alpha:.3})}`,loadingColor:o,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:Ve(l,{alpha:.1}),borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 8px 0 ${Ve(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,colorFocusError:Ve(c,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${Ve(c,{alpha:.3})}`,caretColorError:c,clearColor:w,clearColorHover:C,clearColorPressed:_,iconColor:E,iconColorDisabled:I,iconColorHover:R,iconColorPressed:D,suffixTextColor:t})}},Qi=ISe,RSe=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:a,inputColor:i,inputColorDisabled:s,borderColor:l,warningColor:u,warningColorHover:c,errorColor:d,errorColorHover:f,borderRadius:A,lineHeight:h,fontSizeTiny:v,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:m,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:w,actionColor:C,clearColor:_,clearColorHover:B,clearColorPressed:T,placeholderColor:E,placeholderColorDisabled:I,iconColor:R,iconColorDisabled:D,iconColorHover:F,iconColorPressed:M}=e;return Object.assign(Object.assign({},UX),{countTextColorDisabled:n,countTextColor:r,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:w,fontSizeTiny:v,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:m,lineHeight:h,lineHeightTextarea:h,borderRadius:A,iconSize:"16px",groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:o,placeholderColor:E,placeholderColorDisabled:I,color:i,colorDisabled:s,colorFocus:i,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${Ve(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:i,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${Ve(u,{alpha:.2})}`,caretColorWarning:u,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:i,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Ve(d,{alpha:.2})}`,caretColorError:d,clearColor:_,clearColorHover:B,clearColorPressed:T,iconColor:R,iconColorDisabled:D,iconColorHover:F,iconColorPressed:M,suffixTextColor:t})},DSe={name:"Input",common:Lt,self:RSe},PA=DSe,NX="n-input";function MSe(e){let t=0;for(const r of e)t++;return t}function kb(e){return e===""||e==null}function PSe(e){const t=q(null);function r(){const{value:a}=e;if(!(a!=null&&a.focus)){o();return}const{selectionStart:i,selectionEnd:s,value:l}=a;if(i==null||s==null){o();return}t.value={start:i,end:s,beforeText:l.slice(0,i),afterText:l.slice(s)}}function n(){var a;const{value:i}=t,{value:s}=e;if(!i||!s)return;const{value:l}=s,{start:u,beforeText:c,afterText:d}=i;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(c))f=c.length;else{const A=c[u-1],h=l.indexOf(A,u-1);h!==-1&&(f=h+1)}(a=s.setSelectionRange)===null||a===void 0||a.call(s,f,f)}function o(){t.value=null}return gt(e,o),{recordCursor:r,restoreCursor:n}}const pU=ge({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:n,mergedClsPrefixRef:o,countGraphemesRef:a}=Ke(NX),i=L(()=>{const{value:s}=r;return s===null||Array.isArray(s)?0:(a.value||MSe)(s)});return()=>{const{value:s}=n,{value:l}=r;return S("span",{class:`${o.value}-input-word-count`},um(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?i.value:`${i.value} / ${s}`]))}}}),FSe=P("input",`
  984. max-width: 100%;
  985. cursor: text;
  986. line-height: 1.5;
  987. z-index: auto;
  988. outline: none;
  989. box-sizing: border-box;
  990. position: relative;
  991. display: inline-flex;
  992. border-radius: var(--n-border-radius);
  993. background-color: var(--n-color);
  994. transition: background-color .3s var(--n-bezier);
  995. font-size: var(--n-font-size);
  996. --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
  997. `,[G("input, textarea",`
  998. overflow: hidden;
  999. flex-grow: 1;
  1000. position: relative;
  1001. `),G("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
  1002. box-sizing: border-box;
  1003. font-size: inherit;
  1004. line-height: 1.5;
  1005. font-family: inherit;
  1006. border: none;
  1007. outline: none;
  1008. background-color: #0000;
  1009. text-align: inherit;
  1010. transition:
  1011. -webkit-text-fill-color .3s var(--n-bezier),
  1012. caret-color .3s var(--n-bezier),
  1013. color .3s var(--n-bezier),
  1014. text-decoration-color .3s var(--n-bezier);
  1015. `),G("input-el, textarea-el",`
  1016. -webkit-appearance: none;
  1017. scrollbar-width: none;
  1018. width: 100%;
  1019. min-width: 0;
  1020. text-decoration-color: var(--n-text-decoration-color);
  1021. color: var(--n-text-color);
  1022. caret-color: var(--n-caret-color);
  1023. background-color: transparent;
  1024. `,[N("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  1025. width: 0;
  1026. height: 0;
  1027. display: none;
  1028. `),N("&::placeholder",`
  1029. color: #0000;
  1030. -webkit-text-fill-color: transparent !important;
  1031. `),N("&:-webkit-autofill ~",[G("placeholder","display: none;")])]),j("round",[Wt("textarea","border-radius: calc(var(--n-height) / 2);")]),G("placeholder",`
  1032. pointer-events: none;
  1033. position: absolute;
  1034. left: 0;
  1035. right: 0;
  1036. top: 0;
  1037. bottom: 0;
  1038. overflow: hidden;
  1039. color: var(--n-placeholder-color);
  1040. `,[N("span",`
  1041. width: 100%;
  1042. display: inline-block;
  1043. `)]),j("textarea",[G("placeholder","overflow: visible;")]),Wt("autosize","width: 100%;"),j("autosize",[G("textarea-el, input-el",`
  1044. position: absolute;
  1045. top: 0;
  1046. left: 0;
  1047. height: 100%;
  1048. `)]),P("input-wrapper",`
  1049. overflow: hidden;
  1050. display: inline-flex;
  1051. flex-grow: 1;
  1052. position: relative;
  1053. padding-left: var(--n-padding-left);
  1054. padding-right: var(--n-padding-right);
  1055. `),G("input-mirror",`
  1056. padding: 0;
  1057. height: var(--n-height);
  1058. line-height: var(--n-height);
  1059. overflow: hidden;
  1060. visibility: hidden;
  1061. position: static;
  1062. white-space: pre;
  1063. pointer-events: none;
  1064. `),G("input-el",`
  1065. padding: 0;
  1066. height: var(--n-height);
  1067. line-height: var(--n-height);
  1068. `,[N("+",[G("placeholder",`
  1069. display: flex;
  1070. align-items: center;
  1071. `)])]),Wt("textarea",[G("placeholder","white-space: nowrap;")]),G("eye",`
  1072. transition: color .3s var(--n-bezier);
  1073. `),j("textarea","width: 100%;",[P("input-word-count",`
  1074. position: absolute;
  1075. right: var(--n-padding-right);
  1076. bottom: var(--n-padding-vertical);
  1077. `),j("resizable",[P("input-wrapper",`
  1078. resize: vertical;
  1079. min-height: var(--n-height);
  1080. `)]),G("textarea-el, textarea-mirror, placeholder",`
  1081. height: 100%;
  1082. padding-left: 0;
  1083. padding-right: 0;
  1084. padding-top: var(--n-padding-vertical);
  1085. padding-bottom: var(--n-padding-vertical);
  1086. word-break: break-word;
  1087. display: inline-block;
  1088. vertical-align: bottom;
  1089. box-sizing: border-box;
  1090. line-height: var(--n-line-height-textarea);
  1091. margin: 0;
  1092. resize: none;
  1093. white-space: pre-wrap;
  1094. `),G("textarea-mirror",`
  1095. width: 100%;
  1096. pointer-events: none;
  1097. overflow: hidden;
  1098. visibility: hidden;
  1099. position: static;
  1100. white-space: pre-wrap;
  1101. overflow-wrap: break-word;
  1102. `)]),j("pair",[G("input-el, placeholder","text-align: center;"),G("separator",`
  1103. display: flex;
  1104. align-items: center;
  1105. transition: color .3s var(--n-bezier);
  1106. color: var(--n-text-color);
  1107. white-space: nowrap;
  1108. `,[P("icon",`
  1109. color: var(--n-icon-color);
  1110. `),P("base-icon",`
  1111. color: var(--n-icon-color);
  1112. `)])]),j("disabled",`
  1113. cursor: not-allowed;
  1114. background-color: var(--n-color-disabled);
  1115. `,[G("border","border: var(--n-border-disabled);"),G("input-el, textarea-el",`
  1116. cursor: not-allowed;
  1117. color: var(--n-text-color-disabled);
  1118. text-decoration-color: var(--n-text-color-disabled);
  1119. `),G("placeholder","color: var(--n-placeholder-color-disabled);"),G("separator","color: var(--n-text-color-disabled);",[P("icon",`
  1120. color: var(--n-icon-color-disabled);
  1121. `),P("base-icon",`
  1122. color: var(--n-icon-color-disabled);
  1123. `)]),P("input-word-count",`
  1124. color: var(--n-count-text-color-disabled);
  1125. `),G("suffix, prefix","color: var(--n-text-color-disabled);",[P("icon",`
  1126. color: var(--n-icon-color-disabled);
  1127. `),P("internal-icon",`
  1128. color: var(--n-icon-color-disabled);
  1129. `)])]),Wt("disabled",[G("eye",`
  1130. display: flex;
  1131. align-items: center;
  1132. justify-content: center;
  1133. color: var(--n-icon-color);
  1134. cursor: pointer;
  1135. `,[N("&:hover",`
  1136. color: var(--n-icon-color-hover);
  1137. `),N("&:active",`
  1138. color: var(--n-icon-color-pressed);
  1139. `)]),N("&:hover",[G("state-border","border: var(--n-border-hover);")]),j("focus","background-color: var(--n-color-focus);",[G("state-border",`
  1140. border: var(--n-border-focus);
  1141. box-shadow: var(--n-box-shadow-focus);
  1142. `)])]),G("border, state-border",`
  1143. box-sizing: border-box;
  1144. position: absolute;
  1145. left: 0;
  1146. right: 0;
  1147. top: 0;
  1148. bottom: 0;
  1149. pointer-events: none;
  1150. border-radius: inherit;
  1151. border: var(--n-border);
  1152. transition:
  1153. box-shadow .3s var(--n-bezier),
  1154. border-color .3s var(--n-bezier);
  1155. `),G("state-border",`
  1156. border-color: #0000;
  1157. z-index: 1;
  1158. `),G("prefix","margin-right: 4px;"),G("suffix",`
  1159. margin-left: 4px;
  1160. `),G("suffix, prefix",`
  1161. transition: color .3s var(--n-bezier);
  1162. flex-wrap: nowrap;
  1163. flex-shrink: 0;
  1164. line-height: var(--n-height);
  1165. white-space: nowrap;
  1166. display: inline-flex;
  1167. align-items: center;
  1168. justify-content: center;
  1169. color: var(--n-suffix-text-color);
  1170. `,[P("base-loading",`
  1171. font-size: var(--n-icon-size);
  1172. margin: 0 2px;
  1173. color: var(--n-loading-color);
  1174. `),P("base-clear",`
  1175. font-size: var(--n-icon-size);
  1176. `,[G("placeholder",[P("base-icon",`
  1177. transition: color .3s var(--n-bezier);
  1178. color: var(--n-icon-color);
  1179. font-size: var(--n-icon-size);
  1180. `)])]),N(">",[P("icon",`
  1181. transition: color .3s var(--n-bezier);
  1182. color: var(--n-icon-color);
  1183. font-size: var(--n-icon-size);
  1184. `)]),P("base-icon",`
  1185. font-size: var(--n-icon-size);
  1186. `)]),P("input-word-count",`
  1187. pointer-events: none;
  1188. line-height: 1.5;
  1189. font-size: .85em;
  1190. color: var(--n-count-text-color);
  1191. transition: color .3s var(--n-bezier);
  1192. margin-left: 4px;
  1193. font-variant: tabular-nums;
  1194. `),["warning","error"].map(e=>j(`${e}-status`,[Wt("disabled",[P("base-loading",`
  1195. color: var(--n-loading-color-${e})
  1196. `),G("input-el, textarea-el",`
  1197. caret-color: var(--n-caret-color-${e});
  1198. `),G("state-border",`
  1199. border: var(--n-border-${e});
  1200. `),N("&:hover",[G("state-border",`
  1201. border: var(--n-border-hover-${e});
  1202. `)]),N("&:focus",`
  1203. background-color: var(--n-color-focus-${e});
  1204. `,[G("state-border",`
  1205. box-shadow: var(--n-box-shadow-focus-${e});
  1206. border: var(--n-border-focus-${e});
  1207. `)]),j("focus",`
  1208. background-color: var(--n-color-focus-${e});
  1209. `,[G("state-border",`
  1210. box-shadow: var(--n-box-shadow-focus-${e});
  1211. border: var(--n-border-focus-${e});
  1212. `)])])]))]),kSe=P("input",[j("disabled",[G("input-el, textarea-el",`
  1213. -webkit-text-fill-color: var(--n-text-color-disabled);
  1214. `)])]),LSe=Object.assign(Object.assign({},Me.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),ms=ge({name:"Input",props:LSe,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=Me("Input","-input",FSe,PA,e,t);$X&&ml("-input-safari",kSe,t);const i=q(null),s=q(null),l=q(null),u=q(null),c=q(null),d=q(null),f=q(null),A=PSe(f),h=q(null),{localeRef:v}=zi("Input"),p=q(e.defaultValue),g=Re(e,"value"),m=Ir(g,p),y=Da(e),{mergedSizeRef:b,mergedDisabledRef:x,mergedStatusRef:w}=y,C=q(!1),_=q(!1),B=q(!1),T=q(!1);let E=null;const I=L(()=>{const{placeholder:ve,pair:De}=e;return De?Array.isArray(ve)?ve:ve===void 0?["",""]:[ve,ve]:ve===void 0?[v.value.placeholder]:[ve]}),R=L(()=>{const{value:ve}=B,{value:De}=m,{value:ot}=I;return!ve&&(kb(De)||Array.isArray(De)&&kb(De[0]))&&ot[0]}),D=L(()=>{const{value:ve}=B,{value:De}=m,{value:ot}=I;return!ve&&ot[1]&&(kb(De)||Array.isArray(De)&&kb(De[1]))}),F=Ft(()=>e.internalForceFocus||C.value),M=Ft(()=>{if(x.value||e.readonly||!e.clearable||!F.value&&!_.value)return!1;const{value:ve}=m,{value:De}=F;return e.pair?!!(Array.isArray(ve)&&(ve[0]||ve[1]))&&(_.value||De):!!ve&&(_.value||De)}),$=L(()=>{const{showPasswordOn:ve}=e;if(ve)return ve;if(e.showPasswordToggle)return"click"}),O=q(!1),Q=L(()=>{const{textDecoration:ve}=e;return ve?Array.isArray(ve)?ve.map(De=>({textDecoration:De})):[{textDecoration:ve}]:["",""]}),V=q(void 0),W=()=>{var ve,De;if(e.type==="textarea"){const{autosize:ot}=e;if(ot&&(V.value=(De=(ve=h.value)===null||ve===void 0?void 0:ve.$el)===null||De===void 0?void 0:De.offsetWidth),!s.value||typeof ot=="boolean")return;const{paddingTop:Nt,paddingBottom:Ce,lineHeight:Le}=window.getComputedStyle(s.value),ut=Number(Nt.slice(0,-2)),vt=Number(Ce.slice(0,-2)),xt=Number(Le.slice(0,-2)),{value:Kr}=l;if(!Kr)return;if(ot.minRows){const zr=Math.max(ot.minRows,1),Be=`${ut+vt+xt*zr}px`;Kr.style.minHeight=Be}if(ot.maxRows){const zr=`${ut+vt+xt*ot.maxRows}px`;Kr.style.maxHeight=zr}}},Z=L(()=>{const{maxlength:ve}=e;return ve===void 0?void 0:Number(ve)});yr(()=>{const{value:ve}=m;Array.isArray(ve)||$e(ve)});const te=Co().proxy;function ae(ve){const{onUpdateValue:De,"onUpdate:value":ot,onInput:Nt}=e,{nTriggerFormInput:Ce}=y;De&&Te(De,ve),ot&&Te(ot,ve),Nt&&Te(Nt,ve),p.value=ve,Ce()}function re(ve){const{onChange:De}=e,{nTriggerFormChange:ot}=y;De&&Te(De,ve),p.value=ve,ot()}function le(ve){const{onBlur:De}=e,{nTriggerFormBlur:ot}=y;De&&Te(De,ve),ot()}function se(ve){const{onFocus:De}=e,{nTriggerFormFocus:ot}=y;De&&Te(De,ve),ot()}function ce(ve){const{onClear:De}=e;De&&Te(De,ve)}function be(ve){const{onInputBlur:De}=e;De&&Te(De,ve)}function de(ve){const{onInputFocus:De}=e;De&&Te(De,ve)}function pe(){const{onDeactivate:ve}=e;ve&&Te(ve)}function K(){const{onActivate:ve}=e;ve&&Te(ve)}function U(ve){const{onClick:De}=e;De&&Te(De,ve)}function k(ve){const{onWrapperFocus:De}=e;De&&Te(De,ve)}function J(ve){const{onWrapperBlur:De}=e;De&&Te(De,ve)}function ee(){B.value=!0}function H(ve){B.value=!1,ve.target===d.value?Y(ve,1):Y(ve,0)}function Y(ve,De=0,ot="input"){const Nt=ve.target.value;if($e(Nt),ve instanceof InputEvent&&!ve.isComposing&&(B.value=!1),e.type==="textarea"){const{value:Le}=h;Le&&Le.syncUnifiedContainer()}if(E=Nt,B.value)return;A.recordCursor();const Ce=oe(Nt);if(Ce)if(!e.pair)ot==="input"?ae(Nt):re(Nt);else{let{value:Le}=m;Array.isArray(Le)?Le=[Le[0],Le[1]]:Le=["",""],Le[De]=Nt,ot==="input"?ae(Le):re(Le)}te.$forceUpdate(),Ce||dr(A.restoreCursor)}function oe(ve){const{countGraphemes:De,maxlength:ot,minlength:Nt}=e;if(De){let Le;if(ot!==void 0&&(Le===void 0&&(Le=De(ve)),Le>Number(ot))||Nt!==void 0&&(Le===void 0&&(Le=De(ve)),Le<Number(ot)))return!1}const{allowInput:Ce}=e;return typeof Ce=="function"?Ce(ve):!0}function he(ve){be(ve),ve.relatedTarget===i.value&&pe(),ve.relatedTarget!==null&&(ve.relatedTarget===c.value||ve.relatedTarget===d.value||ve.relatedTarget===s.value)||(T.value=!1),ie(ve,"blur"),f.value=null}function ne(ve,De){de(ve),C.value=!0,T.value=!0,K(),ie(ve,"focus"),De===0?f.value=c.value:De===1?f.value=d.value:De===2&&(f.value=s.value)}function Ae(ve){e.passivelyActivated&&(J(ve),ie(ve,"blur"))}function X(ve){e.passivelyActivated&&(C.value=!0,k(ve),ie(ve,"focus"))}function ie(ve,De){ve.relatedTarget!==null&&(ve.relatedTarget===c.value||ve.relatedTarget===d.value||ve.relatedTarget===s.value||ve.relatedTarget===i.value)||(De==="focus"?(se(ve),C.value=!0):De==="blur"&&(le(ve),C.value=!1))}function fe(ve,De){Y(ve,De,"change")}function ye(ve){U(ve)}function Fe(ve){ce(ve),e.pair?(ae(["",""]),re(["",""])):(ae(""),re(""))}function Ne(ve){const{onMousedown:De}=e;De&&De(ve);const{tagName:ot}=ve.target;if(ot!=="INPUT"&&ot!=="TEXTAREA"){if(e.resizable){const{value:Nt}=i;if(Nt){const{left:Ce,top:Le,width:ut,height:vt}=Nt.getBoundingClientRect(),xt=14;if(Ce+ut-xt<ve.clientX&&ve.clientX<Ce+ut&&Le+vt-xt<ve.clientY&&ve.clientY<Le+vt)return}}ve.preventDefault(),C.value||ue()}}function rt(){var ve;_.value=!0,e.type==="textarea"&&((ve=h.value)===null||ve===void 0||ve.handleMouseEnterWrapper())}function lt(){var ve;_.value=!1,e.type==="textarea"&&((ve=h.value)===null||ve===void 0||ve.handleMouseLeaveWrapper())}function mt(){x.value||$.value==="click"&&(O.value=!O.value)}function Ge(ve){if(x.value)return;ve.preventDefault();const De=Nt=>{Nt.preventDefault(),qt("mouseup",document,De)};if(or("mouseup",document,De),$.value!=="mousedown")return;O.value=!0;const ot=()=>{O.value=!1,qt("mouseup",document,ot)};or("mouseup",document,ot)}function it(ve){var De;switch((De=e.onKeydown)===null||De===void 0||De.call(e,ve),ve.key){case"Escape":Ye();break;case"Enter":je(ve);break}}function je(ve){var De,ot;if(e.passivelyActivated){const{value:Nt}=T;if(Nt){e.internalDeactivateOnEnter&&Ye();return}ve.preventDefault(),e.type==="textarea"?(De=s.value)===null||De===void 0||De.focus():(ot=c.value)===null||ot===void 0||ot.focus()}}function Ye(){e.passivelyActivated&&(T.value=!1,dr(()=>{var ve;(ve=i.value)===null||ve===void 0||ve.focus()}))}function ue(){var ve,De,ot;x.value||(e.passivelyActivated?(ve=i.value)===null||ve===void 0||ve.focus():((De=s.value)===null||De===void 0||De.focus(),(ot=c.value)===null||ot===void 0||ot.focus()))}function Ee(){var ve;!((ve=i.value)===null||ve===void 0)&&ve.contains(document.activeElement)&&document.activeElement.blur()}function Qe(){var ve,De;(ve=s.value)===null||ve===void 0||ve.select(),(De=c.value)===null||De===void 0||De.select()}function et(){x.value||(s.value?s.value.focus():c.value&&c.value.focus())}function tt(){const{value:ve}=i;ve!=null&&ve.contains(document.activeElement)&&ve!==document.activeElement&&Ye()}function xe(ve){if(e.type==="textarea"){const{value:De}=s;De==null||De.scrollTo(ve)}else{const{value:De}=c;De==null||De.scrollTo(ve)}}function $e(ve){const{type:De,pair:ot,autosize:Nt}=e;if(!ot&&Nt)if(De==="textarea"){const{value:Ce}=l;Ce&&(Ce.textContent=(ve!=null?ve:"")+`\r
  1215. `)}else{const{value:Ce}=u;Ce&&(ve?Ce.textContent=ve:Ce.innerHTML="&nbsp;")}}function Xe(){W()}const ht=q({top:"0"});function Se(ve){var De;const{scrollTop:ot}=ve.target;ht.value.top=`${-ot}px`,(De=h.value)===null||De===void 0||De.syncUnifiedContainer()}let He=null;Sr(()=>{const{autosize:ve,type:De}=e;ve&&De==="textarea"?He=gt(m,ot=>{!Array.isArray(ot)&&ot!==E&&$e(ot)}):He==null||He()});let me=null;Sr(()=>{e.type==="textarea"?me=gt(m,ve=>{var De;!Array.isArray(ve)&&ve!==E&&((De=h.value)===null||De===void 0||De.syncUnifiedContainer())}):me==null||me()}),_t(NX,{mergedValueRef:m,maxlengthRef:Z,mergedClsPrefixRef:t,countGraphemesRef:Re(e,"countGraphemes")});const ze={wrapperElRef:i,inputElRef:c,textareaElRef:s,isCompositing:B,focus:ue,blur:Ee,select:Qe,deactivate:tt,activate:et,scrollTo:xe},dt=dn("Input",o,t),Rt=L(()=>{const{value:ve}=b,{common:{cubicBezierEaseInOut:De},self:{color:ot,borderRadius:Nt,textColor:Ce,caretColor:Le,caretColorError:ut,caretColorWarning:vt,textDecorationColor:xt,border:Kr,borderDisabled:zr,borderHover:Be,borderFocus:Ze,placeholderColor:yt,placeholderColorDisabled:ar,lineHeightTextarea:Qr,colorDisabled:_r,colorFocus:Xi,textColorDisabled:Dr,boxShadowFocus:bn,iconSize:Rl,colorFocusWarning:Mu,boxShadowFocusWarning:Pu,borderWarning:Fu,borderFocusWarning:Bd,borderHoverWarning:MB,colorFocusError:PB,boxShadowFocusError:FB,borderError:kB,borderFocusError:LB,borderHoverError:OB,clearSize:$B,clearColor:UB,clearColorHover:ude,clearColorPressed:cde,iconColor:dde,iconColorDisabled:fde,suffixTextColor:Ade,countTextColor:hde,countTextColorDisabled:vde,iconColorHover:pde,iconColorPressed:gde,loadingColor:mde,loadingColorError:yde,loadingColorWarning:bde,[_e("padding",ve)]:xde,[_e("fontSize",ve)]:wde,[_e("height",ve)]:Cde}}=a.value,{left:Sde,right:_de}=Tc(xde);return{"--n-bezier":De,"--n-count-text-color":hde,"--n-count-text-color-disabled":vde,"--n-color":ot,"--n-font-size":wde,"--n-border-radius":Nt,"--n-height":Cde,"--n-padding-left":Sde,"--n-padding-right":_de,"--n-text-color":Ce,"--n-caret-color":Le,"--n-text-decoration-color":xt,"--n-border":Kr,"--n-border-disabled":zr,"--n-border-hover":Be,"--n-border-focus":Ze,"--n-placeholder-color":yt,"--n-placeholder-color-disabled":ar,"--n-icon-size":Rl,"--n-line-height-textarea":Qr,"--n-color-disabled":_r,"--n-color-focus":Xi,"--n-text-color-disabled":Dr,"--n-box-shadow-focus":bn,"--n-loading-color":mde,"--n-caret-color-warning":vt,"--n-color-focus-warning":Mu,"--n-box-shadow-focus-warning":Pu,"--n-border-warning":Fu,"--n-border-focus-warning":Bd,"--n-border-hover-warning":MB,"--n-loading-color-warning":bde,"--n-caret-color-error":ut,"--n-color-focus-error":PB,"--n-box-shadow-focus-error":FB,"--n-border-error":kB,"--n-border-focus-error":LB,"--n-border-hover-error":OB,"--n-loading-color-error":yde,"--n-clear-color":UB,"--n-clear-size":$B,"--n-clear-color-hover":ude,"--n-clear-color-pressed":cde,"--n-icon-color":dde,"--n-icon-color-hover":pde,"--n-icon-color-pressed":gde,"--n-icon-color-disabled":fde,"--n-suffix-text-color":Ade}}),At=n?Et("input",L(()=>{const{value:ve}=b;return ve[0]}),Rt,e):void 0;return Object.assign(Object.assign({},ze),{wrapperElRef:i,inputElRef:c,inputMirrorElRef:u,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:dt,uncontrolledValue:p,mergedValue:m,passwordVisible:O,mergedPlaceholder:I,showPlaceholder1:R,showPlaceholder2:D,mergedFocus:F,isComposing:B,activated:T,showClearButton:M,mergedSize:b,mergedDisabled:x,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:$,placeholderStyle:ht,mergedStatus:w,textAreaScrollContainerWidth:V,handleTextAreaScroll:Se,handleCompositionStart:ee,handleCompositionEnd:H,handleInput:Y,handleInputBlur:he,handleInputFocus:ne,handleWrapperBlur:Ae,handleWrapperFocus:X,handleMouseEnter:rt,handleMouseLeave:lt,handleMouseDown:Ne,handleChange:fe,handleClick:ye,handleClear:Fe,handlePasswordToggleClick:mt,handlePasswordToggleMousedown:Ge,handleWrapperKeydown:it,handleTextAreaMirrorResize:Xe,getTextareaScrollContainer:()=>s.value,mergedTheme:a,cssVars:n?void 0:Rt,themeClass:At==null?void 0:At.themeClass,onRender:At==null?void 0:At.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:n,themeClass:o,type:a,countGraphemes:i,onRender:s}=this,l=this.$slots;return s==null||s(),S("div",{ref:"wrapperElRef",class:[`${r}-input`,o,n&&`${r}-input--${n}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:a==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&a!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},S("div",{class:`${r}-input-wrapper`},Ar(l.prefix,u=>u&&S("div",{class:`${r}-input__prefix`},u)),a==="textarea"?S(Gn,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var u,c;const{textAreaScrollContainerWidth:d}=this,f={width:this.autosize&&d&&`${d}px`};return S(lr,null,S("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(u=this.inputProps)===null||u===void 0?void 0:u.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(c=this.inputProps)===null||c===void 0?void 0:c.style,f],onBlur:this.handleInputBlur,onFocus:A=>this.handleInputFocus(A,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?S("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?S(Fi,{onResize:this.handleTextAreaMirrorResize},{default:()=>S("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):S("div",{class:`${r}-input__input`},S("input",Object.assign({type:a==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":a},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:u=>this.handleInputFocus(u,0),onInput:u=>this.handleInput(u,0),onChange:u=>this.handleChange(u,0)})),this.showPlaceholder1?S("div",{class:`${r}-input__placeholder`},S("span",null,this.mergedPlaceholder[0])):null,this.autosize?S("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ar(l.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?S("div",{class:`${r}-input__suffix`},[Ar(l["clear-icon-placeholder"],c=>(this.clearable||c)&&S(dD,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>c,icon:()=>{var d,f;return(f=(d=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(d)}})),this.internalLoadingBeforeSuffix?null:u,this.loading!==void 0?S(DX,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?S(pU,null,{default:c=>{var d;return(d=l.count)===null||d===void 0?void 0:d.call(l,c)}}):null,this.mergedShowPasswordOn&&this.type==="password"?S("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Kt(l["password-visible-icon"],()=>[S(zt,{clsPrefix:r},{default:()=>S(fX,null)})]):Kt(l["password-invisible-icon"],()=>[S(zt,{clsPrefix:r},{default:()=>S(Twe,null)})])):null]):null)),this.pair?S("span",{class:`${r}-input__separator`},Kt(l.separator,()=>[this.separator])):null,this.pair?S("div",{class:`${r}-input-wrapper`},S("div",{class:`${r}-input__input`},S("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:u=>this.handleInputFocus(u,1),onInput:u=>this.handleInput(u,1),onChange:u=>this.handleChange(u,1)}),this.showPlaceholder2?S("div",{class:`${r}-input__placeholder`},S("span",null,this.mergedPlaceholder[1])):null),Ar(l.suffix,u=>(this.clearable||u)&&S("div",{class:`${r}-input__suffix`},[this.clearable&&S(dD,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var c;return(c=l["clear-icon"])===null||c===void 0?void 0:c.call(l)},placeholder:()=>{var c;return(c=l["clear-icon-placeholder"])===null||c===void 0?void 0:c.call(l)}}),u]))):null,this.mergedBordered?S("div",{class:`${r}-input__border`}):null,this.mergedBordered?S("div",{class:`${r}-input__state-border`}):null,this.showCount&&a==="textarea"?S(pU,null,{default:u=>{var c;const{renderCount:d}=this;return d?d(u):(c=l.count)===null||c===void 0?void 0:c.call(l,u)}}):null)}}),OSe=P("input-group",`
  1216. display: inline-flex;
  1217. width: 100%;
  1218. flex-wrap: nowrap;
  1219. vertical-align: bottom;
  1220. `,[N(">",[P("input",[N("&:not(:last-child)",`
  1221. border-top-right-radius: 0!important;
  1222. border-bottom-right-radius: 0!important;
  1223. `),N("&:not(:first-child)",`
  1224. border-top-left-radius: 0!important;
  1225. border-bottom-left-radius: 0!important;
  1226. margin-left: -1px!important;
  1227. `)]),P("button",[N("&:not(:last-child)",`
  1228. border-top-right-radius: 0!important;
  1229. border-bottom-right-radius: 0!important;
  1230. `,[G("state-border, border",`
  1231. border-top-right-radius: 0!important;
  1232. border-bottom-right-radius: 0!important;
  1233. `)]),N("&:not(:first-child)",`
  1234. border-top-left-radius: 0!important;
  1235. border-bottom-left-radius: 0!important;
  1236. `,[G("state-border, border",`
  1237. border-top-left-radius: 0!important;
  1238. border-bottom-left-radius: 0!important;
  1239. `)])]),N("*",[N("&:not(:last-child)",`
  1240. border-top-right-radius: 0!important;
  1241. border-bottom-right-radius: 0!important;
  1242. `,[N(">",[P("input",`
  1243. border-top-right-radius: 0!important;
  1244. border-bottom-right-radius: 0!important;
  1245. `),P("base-selection",[P("base-selection-label",`
  1246. border-top-right-radius: 0!important;
  1247. border-bottom-right-radius: 0!important;
  1248. `),P("base-selection-tags",`
  1249. border-top-right-radius: 0!important;
  1250. border-bottom-right-radius: 0!important;
  1251. `),G("box-shadow, border, state-border",`
  1252. border-top-right-radius: 0!important;
  1253. border-bottom-right-radius: 0!important;
  1254. `)])])]),N("&:not(:first-child)",`
  1255. margin-left: -1px!important;
  1256. border-top-left-radius: 0!important;
  1257. border-bottom-left-radius: 0!important;
  1258. `,[N(">",[P("input",`
  1259. border-top-left-radius: 0!important;
  1260. border-bottom-left-radius: 0!important;
  1261. `),P("base-selection",[P("base-selection-label",`
  1262. border-top-left-radius: 0!important;
  1263. border-bottom-left-radius: 0!important;
  1264. `),P("base-selection-tags",`
  1265. border-top-left-radius: 0!important;
  1266. border-bottom-left-radius: 0!important;
  1267. `),G("box-shadow, border, state-border",`
  1268. border-top-left-radius: 0!important;
  1269. border-bottom-left-radius: 0!important;
  1270. `)])])])])])]),$Se={},HX=ge({name:"InputGroup",props:$Se,setup(e){const{mergedClsPrefixRef:t}=nt(e);return ml("-input-group",OSe,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return S("div",{class:`${e}-input-group`},this.$slots)}}),USe=P("input-group-label",`
  1271. position: relative;
  1272. user-select: none;
  1273. -webkit-user-select: none;
  1274. box-sizing: border-box;
  1275. padding: 0 12px;
  1276. display: inline-block;
  1277. border-radius: var(--n-border-radius);
  1278. background-color: var(--n-group-label-color);
  1279. color: var(--n-group-label-text-color);
  1280. font-size: var(--n-font-size);
  1281. line-height: var(--n-height);
  1282. height: var(--n-height);
  1283. flex-shrink: 0;
  1284. white-space: nowrap;
  1285. transition:
  1286. color .3s var(--n-bezier),
  1287. background-color .3s var(--n-bezier),
  1288. box-shadow .3s var(--n-bezier);
  1289. `,[G("border",`
  1290. position: absolute;
  1291. left: 0;
  1292. right: 0;
  1293. top: 0;
  1294. bottom: 0;
  1295. border-radius: inherit;
  1296. border: var(--n-group-label-border);
  1297. transition: border-color .3s var(--n-bezier);
  1298. `)]),NSe=Object.assign(Object.assign({},Me.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),HSe=ge({name:"InputGroupLabel",props:NSe,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n}=nt(e),o=Me("Input","-input-group-label",USe,PA,e,r),a=L(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:l},self:{groupLabelColor:u,borderRadius:c,groupLabelTextColor:d,lineHeight:f,groupLabelBorder:A,[_e("fontSize",s)]:h,[_e("height",s)]:v}}=o.value;return{"--n-bezier":l,"--n-group-label-color":u,"--n-group-label-border":A,"--n-border-radius":c,"--n-group-label-text-color":d,"--n-font-size":h,"--n-line-height":f,"--n-height":v}}),i=n?Et("input-group-label",L(()=>e.size[0]),a,e):void 0;return{mergedClsPrefix:r,mergedBordered:t,cssVars:n?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,r;const{mergedClsPrefix:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${n}-input-group-label`,this.themeClass],style:this.cssVars},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t),this.mergedBordered?S("div",{class:`${n}-input-group-label__border`}):null)}});function zSe(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const QSe={name:"AutoComplete",common:ct,peers:{InternalSelectMenu:_y,Input:Qi},self:zSe},VSe=QSe,Av=ni&&"loading"in document.createElement("img"),WSe=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}},f2=new WeakMap,A2=new WeakMap,h2=new WeakMap,zX=(e,t,r)=>{if(!e)return()=>{};const n=WSe(t),{root:o}=n.options;let a;const i=f2.get(o);i?a=i:(a=new Map,f2.set(o,a));let s,l;a.has(n.hash)?(l=a.get(n.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(d=>{d.forEach(f=>{if(f.isIntersecting){const A=A2.get(f.target),h=h2.get(f.target);A&&A(),h&&(h.value=!0)}})},n.options),s.observe(e),l=[s,new Set([e])],a.set(n.hash,l));let u=!1;const c=()=>{u||(A2.delete(e),h2.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&a.delete(n.hash),a.size||f2.delete(o))};return A2.set(e,c),h2.set(e,r),c},QX=e=>{const{borderRadius:t,avatarColor:r,cardColor:n,fontSize:o,heightTiny:a,heightSmall:i,heightMedium:s,heightLarge:l,heightHuge:u,modalColor:c,popoverColor:d}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${n}`,heightTiny:a,heightSmall:i,heightMedium:s,heightLarge:l,heightHuge:u,color:Dt(n,r),colorModal:Dt(c,r),colorPopover:Dt(d,r)}},GSe={name:"Avatar",common:Lt,self:QX},KSe=GSe,jSe={name:"Avatar",common:ct,self:QX},VX=jSe,YSe="n-avatar-group",XSe=P("avatar",`
  1299. width: var(--n-merged-size);
  1300. height: var(--n-merged-size);
  1301. color: #FFF;
  1302. font-size: var(--n-font-size);
  1303. display: inline-flex;
  1304. position: relative;
  1305. overflow: hidden;
  1306. text-align: center;
  1307. border: var(--n-border);
  1308. border-radius: var(--n-border-radius);
  1309. --n-merged-color: var(--n-color);
  1310. background-color: var(--n-merged-color);
  1311. transition:
  1312. border-color .3s var(--n-bezier),
  1313. background-color .3s var(--n-bezier),
  1314. color .3s var(--n-bezier);
  1315. `,[_u(N("&","--n-merged-color: var(--n-color-modal);")),dd(N("&","--n-merged-color: var(--n-color-popover);")),N("img",`
  1316. width: 100%;
  1317. height: 100%;
  1318. `),G("text",`
  1319. white-space: nowrap;
  1320. display: inline-block;
  1321. position: absolute;
  1322. left: 50%;
  1323. top: 50%;
  1324. `),P("icon",`
  1325. vertical-align: bottom;
  1326. font-size: calc(var(--n-merged-size) - 6px);
  1327. `),G("text","line-height: 1.25")]),qSe=Object.assign(Object.assign({},Me.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),ZSe=ge({name:"Avatar",props:qSe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=q(!1);let o=null;const a=q(null),i=q(null),s=()=>{const{value:y}=a;if(y&&(o===null||o!==y.innerHTML)){o=y.innerHTML;const{value:b}=i;if(b){const{offsetWidth:x,offsetHeight:w}=b,{offsetWidth:C,offsetHeight:_}=y,B=.9,T=Math.min(x/C*B,w/_*B,1);y.style.transform=`translateX(-50%) translateY(-50%) scale(${T})`}}},l=Ke(YSe,null),u=L(()=>{const{size:y}=e;if(y)return y;const{size:b}=l||{};return b||"medium"}),c=Me("Avatar","-avatar",XSe,KSe,e,t),d=Ke(RX,null),f=L(()=>{if(l)return!0;const{round:y,circle:b}=e;return y!==void 0||b!==void 0?y||b:d?d.roundRef.value:!1}),A=L(()=>l?!0:e.bordered||!1),h=y=>{var b;if(!g.value)return;n.value=!0;const{onError:x,imgProps:w}=e;(b=w==null?void 0:w.onError)===null||b===void 0||b.call(w,y),x&&x(y)};gt(()=>e.src,()=>n.value=!1);const v=L(()=>{const y=u.value,b=f.value,x=A.value,{color:w}=e,{self:{borderRadius:C,fontSize:_,color:B,border:T,colorModal:E,colorPopover:I},common:{cubicBezierEaseInOut:R}}=c.value;let D;return typeof y=="number"?D=`${y}px`:D=c.value.self[_e("height",y)],{"--n-font-size":_,"--n-border":x?T:"none","--n-border-radius":b?"50%":C,"--n-color":w||B,"--n-color-modal":w||E,"--n-color-popover":w||I,"--n-bezier":R,"--n-merged-size":`var(--n-avatar-size-override, ${D})`}}),p=r?Et("avatar",L(()=>{const y=u.value,b=f.value,x=A.value,{color:w}=e;let C="";return y&&(typeof y=="number"?C+=`a${y}`:C+=y[0]),b&&(C+="b"),x&&(C+="c"),w&&(C+=Ev(w)),C}),v,e):void 0,g=q(!e.lazy);yr(()=>{if(Av)return;let y;const b=Sr(()=>{y==null||y(),y=void 0,e.lazy&&(y=zX(i.value,e.intersectionObserverOptions,g))});Hr(()=>{b(),y==null||y()})});const m=q(!e.lazy);return{textRef:a,selfRef:i,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:s,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender,hasLoadError:n,handleError:h,shouldStartLoading:g,loaded:m,mergedOnLoad:y=>{var b;const{onLoad:x,imgProps:w}=e;x==null||x(y),(b=w==null?void 0:w.onLoad)===null||b===void 0||b.call(w,y),m.value=!0}}},render(){var e,t;const{$slots:r,src:n,mergedClsPrefix:o,lazy:a,onRender:i,mergedOnLoad:s,shouldStartLoading:l,loaded:u,hasLoadError:c}=this;i==null||i();let d;const f=!u&&!c&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():Kt(r.fallback,()=>[S("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=Ar(r.default,A=>{if(A)return S(Fi,{onResize:this.fitTextTransform},{default:()=>S("span",{ref:"textRef",class:`${o}-avatar__text`},A)});if(n){const{imgProps:h}=this;return S("img",Object.assign(Object.assign({},h),{loading:Av&&!this.intersectionObserverOptions&&a?"lazy":"eager",src:Av||l||u?n:void 0,onLoad:s,"data-image-src":n,onError:this.handleError,style:[h==null?void 0:h.style,{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),S("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},d,a&&f)}}),JSe=()=>({gap:"-12px"}),e_e={name:"AvatarGroup",common:ct,peers:{Avatar:VX},self:JSe},t_e=e_e,WX={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},r_e={name:"BackTop",common:ct,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:o}=e;return Object.assign(Object.assign({},WX),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},n_e=r_e,o_e=e=>{const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:o}=e;return Object.assign(Object.assign({},WX),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},a_e={name:"BackTop",common:Lt,self:o_e},i_e=a_e,s_e=S("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},S("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},S("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},S("g",{transform:"translate(120.000000, 4285.000000)"},S("g",{transform:"translate(7.000000, 126.000000)"},S("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},S("g",{transform:"translate(4.000000, 2.000000)"},S("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),S("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),l_e=P("back-top",`
  1328. position: fixed;
  1329. right: 40px;
  1330. bottom: 40px;
  1331. cursor: pointer;
  1332. display: flex;
  1333. align-items: center;
  1334. justify-content: center;
  1335. color: var(--n-text-color);
  1336. transition:
  1337. color .3s var(--n-bezier),
  1338. box-shadow .3s var(--n-bezier),
  1339. background-color .3s var(--n-bezier);
  1340. border-radius: var(--n-border-radius);
  1341. height: var(--n-height);
  1342. min-width: var(--n-width);
  1343. box-shadow: var(--n-box-shadow);
  1344. background-color: var(--n-color);
  1345. `,[Ia(),j("transition-disabled",{transition:"none !important"}),P("base-icon",`
  1346. font-size: var(--n-icon-size);
  1347. color: var(--n-icon-color);
  1348. transition: color .3s var(--n-bezier);
  1349. `),N("svg",{pointerEvents:"none"}),N("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[P("base-icon",{color:"var(--n-icon-color-hover)"})]),N("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[P("base-icon",{color:"var(--n-icon-color-pressed)"})])]),u_e=Object.assign(Object.assign({},Me.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),c_e=ge({name:"BackTop",inheritAttrs:!1,props:u_e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=q(null),o=q(!1);Sr(()=>{const{value:b}=n;if(b===null){o.value=!1;return}o.value=b>=e.visibilityHeight});const a=q(!1);gt(o,b=>{var x;a.value&&((x=e["onUpdate:show"])===null||x===void 0||x.call(e,b))});const i=Re(e,"show"),s=Ir(i,o),l=q(!0),u=q(null),c=L(()=>({right:`calc(${wr(e.right)} + ${JR.value})`,bottom:wr(e.bottom)}));let d,f;gt(s,b=>{var x,w;a.value&&(b&&((x=e.onShow)===null||x===void 0||x.call(e)),(w=e.onHide)===null||w===void 0||w.call(e))});const A=Me("BackTop","-back-top",l_e,i_e,e,t);function h(){var b;if(f)return;f=!0;const x=((b=e.target)===null||b===void 0?void 0:b.call(e))||qhe(e.listenTo)||Dj(u.value);if(!x)return;d=x===document.documentElement?document:x;const{to:w}=e;typeof w=="string"&&document.querySelector(w),d.addEventListener("scroll",p),p()}function v(){(S$(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})}function p(){n.value=(S$(d)?document.documentElement:d).scrollTop,a.value||dr(()=>{a.value=!0})}function g(){l.value=!1}yr(()=>{h(),l.value=s.value}),Hr(()=>{d&&d.removeEventListener("scroll",p)});const m=L(()=>{const{self:{color:b,boxShadow:x,boxShadowHover:w,boxShadowPressed:C,iconColor:_,iconColorHover:B,iconColorPressed:T,width:E,height:I,iconSize:R,borderRadius:D,textColor:F},common:{cubicBezierEaseInOut:M}}=A.value;return{"--n-bezier":M,"--n-border-radius":D,"--n-height":I,"--n-width":E,"--n-box-shadow":x,"--n-box-shadow-hover":w,"--n-box-shadow-pressed":C,"--n-color":b,"--n-icon-size":R,"--n-icon-color":_,"--n-icon-color-hover":B,"--n-icon-color-pressed":T,"--n-text-color":F}}),y=r?Et("back-top",void 0,m,e):void 0;return{placeholderRef:u,style:c,mergedShow:s,isMounted:oi(),scrollElement:q(null),scrollTop:n,DomInfoReady:a,transitionDisabled:l,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:p,handleClick:v,cssVars:r?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:e}=this;return S("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},S(wy,{to:this.to,show:this.mergedShow},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?S("div",wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),Kt(this.$slots.default,()=>[S(zt,{clsPrefix:e},{default:()=>s_e})])):null}})}))}}),d_e={name:"Badge",common:ct,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:n,warningColorSuppl:o,fontFamily:a}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:a}}},f_e=d_e,A_e=e=>{const{errorColor:t,infoColor:r,successColor:n,warningColor:o,fontFamily:a}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:a}},h_e={name:"Badge",common:Lt,self:A_e},v_e=h_e,p_e=N([N("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),P("badge",`
  1350. display: inline-flex;
  1351. position: relative;
  1352. vertical-align: middle;
  1353. color: var(--n-color);
  1354. font-family: var(--n-font-family);
  1355. `,[j("as-is",[P("badge-sup",{position:"static",transform:"translateX(0)"},[Ia({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),j("dot",[P("badge-sup",`
  1356. height: 8px;
  1357. width: 8px;
  1358. padding: 0;
  1359. min-width: 8px;
  1360. left: 100%;
  1361. bottom: calc(100% - 4px);
  1362. `,[N("::before","border-radius: 4px;")])]),P("badge-sup",`
  1363. background: var(--n-color);
  1364. transition:
  1365. background-color .3s var(--n-bezier),
  1366. color .3s var(--n-bezier);
  1367. color: #FFF;
  1368. position: absolute;
  1369. height: 18px;
  1370. line-height: 18px;
  1371. border-radius: 9px;
  1372. padding: 0 6px;
  1373. text-align: center;
  1374. font-size: var(--n-font-size);
  1375. transform: translateX(-50%);
  1376. left: 100%;
  1377. bottom: calc(100% - 9px);
  1378. font-variant-numeric: tabular-nums;
  1379. z-index: 1;
  1380. display: flex;
  1381. align-items: center;
  1382. `,[Ia({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),P("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),N("&::before",`
  1383. opacity: 0;
  1384. transform: scale(1);
  1385. border-radius: 9px;
  1386. content: "";
  1387. position: absolute;
  1388. left: 0;
  1389. right: 0;
  1390. top: 0;
  1391. bottom: 0;
  1392. `)])])]),g_e=Object.assign(Object.assign({},Me.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),m_e=ge({name:"Badge",props:g_e,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=Me("Badge","-badge",p_e,v_e,e,r),i=q(!1),s=()=>{i.value=!0},l=()=>{i.value=!1},u=L(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!Vf(t.value)));yr(()=>{u.value&&(i.value=!0)});const c=dn("Badge",o,r),d=L(()=>{const{type:h,color:v}=e,{common:{cubicBezierEaseInOut:p,cubicBezierEaseOut:g},self:{[_e("color",h)]:m,fontFamily:y,fontSize:b}}=a.value;return{"--n-font-size":b,"--n-font-family":y,"--n-color":v||m,"--n-ripple-color":v||m,"--n-bezier":p,"--n-ripple-bezier":g}}),f=n?Et("badge",L(()=>{let h="";const{type:v,color:p}=e;return v&&(h+=v[0]),p&&(h+=Ev(p)),h}),d,e):void 0,A=L(()=>{const{offset:h}=e;if(!h)return;const[v,p]=h,g=typeof v=="number"?`${v}px`:v,m=typeof p=="number"?`${p}px`:p;return{transform:`translate(calc(${c!=null&&c.value?"50%":"-50%"} + ${g}), ${m})`}});return{rtlEnabled:c,mergedClsPrefix:r,appeared:i,showBadge:u,handleAfterEnter:s,handleAfterLeave:l,cssVars:n?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender,offsetStyle:A}},render(){var e;const{mergedClsPrefix:t,onRender:r,themeClass:n,$slots:o}=this;r==null||r();const a=(e=o.default)===null||e===void 0?void 0:e.call(o);return S("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,n,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!a}],style:this.cssVars},a,S(jr,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?S("sup",{class:`${t}-badge-sup`,title:Fj(this.value),style:this.offsetStyle},Kt(o.value,()=>[this.dot?null:S(dSe,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?S(SX,{clsPrefix:t}):null):null}))}}),y_e={fontWeightActive:"400"},GX=e=>{const{fontSize:t,textColor3:r,textColor2:n,borderRadius:o,buttonColor2Hover:a,buttonColor2Pressed:i}=e;return Object.assign(Object.assign({},y_e),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:o,itemColorHover:a,itemColorPressed:i,separatorColor:r})},b_e={name:"Breadcrumb",common:Lt,self:GX},x_e=b_e,w_e={name:"Breadcrumb",common:ct,self:GX},C_e=w_e,S_e=P("breadcrumb",`
  1393. white-space: nowrap;
  1394. cursor: default;
  1395. line-height: var(--n-item-line-height);
  1396. `,[N("ul",`
  1397. list-style: none;
  1398. padding: 0;
  1399. margin: 0;
  1400. `),N("a",`
  1401. color: inherit;
  1402. text-decoration: inherit;
  1403. `),P("breadcrumb-item",`
  1404. font-size: var(--n-font-size);
  1405. transition: color .3s var(--n-bezier);
  1406. display: inline-flex;
  1407. align-items: center;
  1408. `,[P("icon",`
  1409. font-size: 18px;
  1410. vertical-align: -.2em;
  1411. transition: color .3s var(--n-bezier);
  1412. color: var(--n-item-text-color);
  1413. `),N("&:not(:last-child)",[j("clickable",[G("link",`
  1414. cursor: pointer;
  1415. `,[N("&:hover",`
  1416. background-color: var(--n-item-color-hover);
  1417. `),N("&:active",`
  1418. background-color: var(--n-item-color-pressed);
  1419. `)])])]),G("link",`
  1420. padding: 4px;
  1421. border-radius: var(--n-item-border-radius);
  1422. transition:
  1423. background-color .3s var(--n-bezier),
  1424. color .3s var(--n-bezier);
  1425. color: var(--n-item-text-color);
  1426. position: relative;
  1427. `,[N("&:hover",`
  1428. color: var(--n-item-text-color-hover);
  1429. `,[P("icon",`
  1430. color: var(--n-item-text-color-hover);
  1431. `)]),N("&:active",`
  1432. color: var(--n-item-text-color-pressed);
  1433. `,[P("icon",`
  1434. color: var(--n-item-text-color-pressed);
  1435. `)])]),G("separator",`
  1436. margin: 0 8px;
  1437. color: var(--n-separator-color);
  1438. transition: color .3s var(--n-bezier);
  1439. user-select: none;
  1440. -webkit-user-select: none;
  1441. `),N("&:last-child",[G("link",`
  1442. font-weight: var(--n-font-weight-active);
  1443. cursor: unset;
  1444. color: var(--n-item-text-color-active);
  1445. `,[P("icon",`
  1446. color: var(--n-item-text-color-active);
  1447. `)]),G("separator",`
  1448. display: none;
  1449. `)])])]),KX="n-breadcrumb",__e=Object.assign(Object.assign({},Me.props),{separator:{type:String,default:"/"}}),B_e=ge({name:"Breadcrumb",props:__e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Breadcrumb","-breadcrumb",S_e,x_e,e,t);_t(KX,{separatorRef:Re(e,"separator"),mergedClsPrefixRef:t});const o=L(()=>{const{common:{cubicBezierEaseInOut:i},self:{separatorColor:s,itemTextColor:l,itemTextColorHover:u,itemTextColorPressed:c,itemTextColorActive:d,fontSize:f,fontWeightActive:A,itemBorderRadius:h,itemColorHover:v,itemColorPressed:p,itemLineHeight:g}}=n.value;return{"--n-font-size":f,"--n-bezier":i,"--n-item-text-color":l,"--n-item-text-color-hover":u,"--n-item-text-color-pressed":c,"--n-item-text-color-active":d,"--n-separator-color":s,"--n-item-color-hover":v,"--n-item-color-pressed":p,"--n-item-border-radius":h,"--n-font-weight-active":A,"--n-item-line-height":g}}),a=r?Et("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),S("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},S("ul",null,this.$slots))}}),T_e=ni?window:null,E_e=(e=T_e)=>{const t=()=>{const{hash:o,host:a,hostname:i,href:s,origin:l,pathname:u,port:c,protocol:d,search:f}=(e==null?void 0:e.location)||{};return{hash:o,host:a,hostname:i,href:s,origin:l,pathname:u,port:c,protocol:d,search:f}},r=()=>{n.value=t()},n=q(t());return yr(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),SA(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),n},I_e={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},R_e=ge({name:"BreadcrumbItem",props:I_e,setup(e,{slots:t}){const r=Ke(KX,null);if(!r)return()=>null;const{separatorRef:n,mergedClsPrefixRef:o}=r,a=E_e(),i=L(()=>e.href?"a":"span"),s=L(()=>a.value.href===e.href?"location":null);return()=>{const{value:l}=o;return S("li",{class:[`${l}-breadcrumb-item`,e.clickable&&`${l}-breadcrumb-item--clickable`]},S(i.value,{class:`${l}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),S("span",{class:`${l}-breadcrumb-item__separator`,"aria-hidden":"true"},Kt(t.separator,()=>{var u;return[(u=e.separator)!==null&&u!==void 0?u:n.value]})))}}});function Rd(e){return Dt(e,[255,255,255,.16])}function Lb(e){return Dt(e,[0,0,0,.12])}const jX="n-button-group",D_e={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},YX=e=>{const{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadius:a,fontSizeTiny:i,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:u,opacityDisabled:c,textColor2:d,textColor3:f,primaryColorHover:A,primaryColorPressed:h,borderColor:v,primaryColor:p,baseColor:g,infoColor:m,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:w,successColorPressed:C,warningColor:_,warningColorHover:B,warningColorPressed:T,errorColor:E,errorColorHover:I,errorColorPressed:R,fontWeight:D,buttonColor2:F,buttonColor2Hover:M,buttonColor2Pressed:$,fontWeightStrong:O}=e;return Object.assign(Object.assign({},D_e),{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:i,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:u,opacityDisabled:c,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:F,colorSecondaryHover:M,colorSecondaryPressed:$,colorTertiary:F,colorTertiaryHover:M,colorTertiaryPressed:$,colorQuaternary:"#0000",colorQuaternaryHover:M,colorQuaternaryPressed:$,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:A,textColorPressed:h,textColorFocus:A,textColorDisabled:d,textColorText:d,textColorTextHover:A,textColorTextPressed:h,textColorTextFocus:A,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:A,textColorGhostPressed:h,textColorGhostFocus:A,textColorGhostDisabled:d,border:`1px solid ${v}`,borderHover:`1px solid ${A}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${A}`,borderDisabled:`1px solid ${v}`,rippleColor:p,colorPrimary:p,colorHoverPrimary:A,colorPressedPrimary:h,colorFocusPrimary:A,colorDisabledPrimary:p,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:p,textColorTextHoverPrimary:A,textColorTextPressedPrimary:h,textColorTextFocusPrimary:A,textColorTextDisabledPrimary:d,textColorGhostPrimary:p,textColorGhostHoverPrimary:A,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:A,textColorGhostDisabledPrimary:p,borderPrimary:`1px solid ${p}`,borderHoverPrimary:`1px solid ${A}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${A}`,borderDisabledPrimary:`1px solid ${p}`,rippleColorPrimary:p,colorInfo:m,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:m,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:m,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:m,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:m,borderInfo:`1px solid ${m}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${m}`,rippleColorInfo:m,colorSuccess:x,colorHoverSuccess:w,colorPressedSuccess:C,colorFocusSuccess:w,colorDisabledSuccess:x,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:x,textColorTextHoverSuccess:w,textColorTextPressedSuccess:C,textColorTextFocusSuccess:w,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:w,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:w,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${w}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${w}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:_,colorHoverWarning:B,colorPressedWarning:T,colorFocusWarning:B,colorDisabledWarning:_,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:_,textColorTextHoverWarning:B,textColorTextPressedWarning:T,textColorTextFocusWarning:B,textColorTextDisabledWarning:d,textColorGhostWarning:_,textColorGhostHoverWarning:B,textColorGhostPressedWarning:T,textColorGhostFocusWarning:B,textColorGhostDisabledWarning:_,borderWarning:`1px solid ${_}`,borderHoverWarning:`1px solid ${B}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${B}`,borderDisabledWarning:`1px solid ${_}`,rippleColorWarning:_,colorError:E,colorHoverError:I,colorPressedError:R,colorFocusError:I,colorDisabledError:E,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:E,textColorTextHoverError:I,textColorTextPressedError:R,textColorTextFocusError:I,textColorTextDisabledError:d,textColorGhostError:E,textColorGhostHoverError:I,textColorGhostPressedError:R,textColorGhostFocusError:I,textColorGhostDisabledError:E,borderError:`1px solid ${E}`,borderHoverError:`1px solid ${I}`,borderPressedError:`1px solid ${R}`,borderFocusError:`1px solid ${I}`,borderDisabledError:`1px solid ${E}`,rippleColorError:E,waveOpacity:"0.6",fontWeight:D,fontWeightStrong:O})},M_e={name:"Button",common:Lt,self:YX},md=M_e,P_e={name:"Button",common:ct,self(e){const t=YX(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Fa=P_e,F_e=N([P("button",`
  1450. margin: 0;
  1451. font-weight: var(--n-font-weight);
  1452. line-height: 1;
  1453. font-family: inherit;
  1454. padding: var(--n-padding);
  1455. height: var(--n-height);
  1456. font-size: var(--n-font-size);
  1457. border-radius: var(--n-border-radius);
  1458. color: var(--n-text-color);
  1459. background-color: var(--n-color);
  1460. width: var(--n-width);
  1461. white-space: nowrap;
  1462. outline: none;
  1463. position: relative;
  1464. z-index: auto;
  1465. border: none;
  1466. display: inline-flex;
  1467. flex-wrap: nowrap;
  1468. flex-shrink: 0;
  1469. align-items: center;
  1470. justify-content: center;
  1471. user-select: none;
  1472. -webkit-user-select: none;
  1473. text-align: center;
  1474. cursor: pointer;
  1475. text-decoration: none;
  1476. transition:
  1477. color .3s var(--n-bezier),
  1478. background-color .3s var(--n-bezier),
  1479. opacity .3s var(--n-bezier),
  1480. border-color .3s var(--n-bezier);
  1481. `,[j("color",[G("border",{borderColor:"var(--n-border-color)"}),j("disabled",[G("border",{borderColor:"var(--n-border-color-disabled)"})]),Wt("disabled",[N("&:focus",[G("state-border",{borderColor:"var(--n-border-color-focus)"})]),N("&:hover",[G("state-border",{borderColor:"var(--n-border-color-hover)"})]),N("&:active",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})]),j("pressed",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),j("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[G("border",{border:"var(--n-border-disabled)"})]),Wt("disabled",[N("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[G("state-border",{border:"var(--n-border-focus)"})]),N("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[G("state-border",{border:"var(--n-border-hover)"})]),N("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})]),j("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})])]),j("loading","cursor: wait;"),P("base-wave",`
  1482. pointer-events: none;
  1483. top: 0;
  1484. right: 0;
  1485. bottom: 0;
  1486. left: 0;
  1487. animation-iteration-count: 1;
  1488. animation-duration: var(--n-ripple-duration);
  1489. animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
  1490. `,[j("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),ni&&"MozBoxSizing"in document.createElement("div").style?N("&::moz-focus-inner",{border:0}):null,G("border, state-border",`
  1491. position: absolute;
  1492. left: 0;
  1493. top: 0;
  1494. right: 0;
  1495. bottom: 0;
  1496. border-radius: inherit;
  1497. transition: border-color .3s var(--n-bezier);
  1498. pointer-events: none;
  1499. `),G("border",{border:"var(--n-border)"}),G("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),G("icon",`
  1500. margin: var(--n-icon-margin);
  1501. margin-left: 0;
  1502. height: var(--n-icon-size);
  1503. width: var(--n-icon-size);
  1504. max-width: var(--n-icon-size);
  1505. font-size: var(--n-icon-size);
  1506. position: relative;
  1507. flex-shrink: 0;
  1508. `,[P("icon-slot",`
  1509. height: var(--n-icon-size);
  1510. width: var(--n-icon-size);
  1511. position: absolute;
  1512. left: 0;
  1513. top: 50%;
  1514. transform: translateY(-50%);
  1515. display: flex;
  1516. align-items: center;
  1517. justify-content: center;
  1518. `,[Jn({top:"50%",originalTransform:"translateY(-50%)"})]),FX()]),G("content",`
  1519. display: flex;
  1520. align-items: center;
  1521. flex-wrap: nowrap;
  1522. min-width: 0;
  1523. `,[N("~",[G("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),j("block",`
  1524. display: flex;
  1525. width: 100%;
  1526. `),j("dashed",[G("border, state-border",{borderStyle:"dashed !important"})]),j("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),N("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),N("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),k_e=Object.assign(Object.assign({},Me.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!$X}}),XX=ge({name:"Button",props:k_e,setup(e){const t=q(null),r=q(null),n=q(!1),o=Ft(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=Ke(jX,{}),{mergedSizeRef:i}=Da({},{defaultSize:"medium",mergedSize:b=>{const{size:x}=e;if(x)return x;const{size:w}=a;if(w)return w;const{mergedSize:C}=b||{};return C?C.value:"medium"}}),s=L(()=>e.focusable&&!e.disabled),l=b=>{var x;s.value||b.preventDefault(),!e.nativeFocusBehavior&&(b.preventDefault(),!e.disabled&&s.value&&((x=t.value)===null||x===void 0||x.focus({preventScroll:!0})))},u=b=>{var x;if(!e.disabled&&!e.loading){const{onClick:w}=e;w&&Te(w,b),e.text||(x=r.value)===null||x===void 0||x.play()}},c=b=>{switch(b.key){case"Enter":if(!e.keyboard)return;n.value=!1}},d=b=>{switch(b.key){case"Enter":if(!e.keyboard||e.loading){b.preventDefault();return}n.value=!0}},f=()=>{n.value=!1},{inlineThemeDisabled:A,mergedClsPrefixRef:h,mergedRtlRef:v}=nt(e),p=Me("Button","-button",F_e,md,e,h),g=dn("Button",v,h),m=L(()=>{const b=p.value,{common:{cubicBezierEaseInOut:x,cubicBezierEaseOut:w},self:C}=b,{rippleDuration:_,opacityDisabled:B,fontWeight:T,fontWeightStrong:E}=C,I=i.value,{dashed:R,type:D,ghost:F,text:M,color:$,round:O,circle:Q,textColor:V,secondary:W,tertiary:Z,quaternary:te,strong:ae}=e,re={"font-weight":ae?E:T};let le={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const se=D==="tertiary",ce=D==="default",be=se?"default":D;if(M){const he=V||$;le={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":he||C[_e("textColorText",be)],"--n-text-color-hover":he?Rd(he):C[_e("textColorTextHover",be)],"--n-text-color-pressed":he?Lb(he):C[_e("textColorTextPressed",be)],"--n-text-color-focus":he?Rd(he):C[_e("textColorTextHover",be)],"--n-text-color-disabled":he||C[_e("textColorTextDisabled",be)]}}else if(F||R){const he=V||$;le={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":$||C[_e("rippleColor",be)],"--n-text-color":he||C[_e("textColorGhost",be)],"--n-text-color-hover":he?Rd(he):C[_e("textColorGhostHover",be)],"--n-text-color-pressed":he?Lb(he):C[_e("textColorGhostPressed",be)],"--n-text-color-focus":he?Rd(he):C[_e("textColorGhostHover",be)],"--n-text-color-disabled":he||C[_e("textColorGhostDisabled",be)]}}else if(W){const he=ce?C.textColor:se?C.textColorTertiary:C[_e("color",be)],ne=$||he,Ae=D!=="default"&&D!=="tertiary";le={"--n-color":Ae?Ve(ne,{alpha:Number(C.colorOpacitySecondary)}):C.colorSecondary,"--n-color-hover":Ae?Ve(ne,{alpha:Number(C.colorOpacitySecondaryHover)}):C.colorSecondaryHover,"--n-color-pressed":Ae?Ve(ne,{alpha:Number(C.colorOpacitySecondaryPressed)}):C.colorSecondaryPressed,"--n-color-focus":Ae?Ve(ne,{alpha:Number(C.colorOpacitySecondaryHover)}):C.colorSecondaryHover,"--n-color-disabled":C.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ne,"--n-text-color-hover":ne,"--n-text-color-pressed":ne,"--n-text-color-focus":ne,"--n-text-color-disabled":ne}}else if(Z||te){const he=ce?C.textColor:se?C.textColorTertiary:C[_e("color",be)],ne=$||he;Z?(le["--n-color"]=C.colorTertiary,le["--n-color-hover"]=C.colorTertiaryHover,le["--n-color-pressed"]=C.colorTertiaryPressed,le["--n-color-focus"]=C.colorSecondaryHover,le["--n-color-disabled"]=C.colorTertiary):(le["--n-color"]=C.colorQuaternary,le["--n-color-hover"]=C.colorQuaternaryHover,le["--n-color-pressed"]=C.colorQuaternaryPressed,le["--n-color-focus"]=C.colorQuaternaryHover,le["--n-color-disabled"]=C.colorQuaternary),le["--n-ripple-color"]="#0000",le["--n-text-color"]=ne,le["--n-text-color-hover"]=ne,le["--n-text-color-pressed"]=ne,le["--n-text-color-focus"]=ne,le["--n-text-color-disabled"]=ne}else le={"--n-color":$||C[_e("color",be)],"--n-color-hover":$?Rd($):C[_e("colorHover",be)],"--n-color-pressed":$?Lb($):C[_e("colorPressed",be)],"--n-color-focus":$?Rd($):C[_e("colorFocus",be)],"--n-color-disabled":$||C[_e("colorDisabled",be)],"--n-ripple-color":$||C[_e("rippleColor",be)],"--n-text-color":V||($?C.textColorPrimary:se?C.textColorTertiary:C[_e("textColor",be)]),"--n-text-color-hover":V||($?C.textColorHoverPrimary:C[_e("textColorHover",be)]),"--n-text-color-pressed":V||($?C.textColorPressedPrimary:C[_e("textColorPressed",be)]),"--n-text-color-focus":V||($?C.textColorFocusPrimary:C[_e("textColorFocus",be)]),"--n-text-color-disabled":V||($?C.textColorDisabledPrimary:C[_e("textColorDisabled",be)])};let de={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};M?de={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:de={"--n-border":C[_e("border",be)],"--n-border-hover":C[_e("borderHover",be)],"--n-border-pressed":C[_e("borderPressed",be)],"--n-border-focus":C[_e("borderFocus",be)],"--n-border-disabled":C[_e("borderDisabled",be)]};const{[_e("height",I)]:pe,[_e("fontSize",I)]:K,[_e("padding",I)]:U,[_e("paddingRound",I)]:k,[_e("iconSize",I)]:J,[_e("borderRadius",I)]:ee,[_e("iconMargin",I)]:H,waveOpacity:Y}=C,oe={"--n-width":Q&&!M?pe:"initial","--n-height":M?"initial":pe,"--n-font-size":K,"--n-padding":Q||M?"initial":O?k:U,"--n-icon-size":J,"--n-icon-margin":H,"--n-border-radius":M?"initial":Q||O?pe:ee};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":x,"--n-bezier-ease-out":w,"--n-ripple-duration":_,"--n-opacity-disabled":B,"--n-wave-opacity":Y},re),le),de),oe)}),y=A?Et("button",L(()=>{let b="";const{dashed:x,type:w,ghost:C,text:_,color:B,round:T,circle:E,textColor:I,secondary:R,tertiary:D,quaternary:F,strong:M}=e;x&&(b+="a"),C&&(b+="b"),_&&(b+="c"),T&&(b+="d"),E&&(b+="e"),R&&(b+="f"),D&&(b+="g"),F&&(b+="h"),M&&(b+="i"),B&&(b+="j"+Ev(B)),I&&(b+="k"+Ev(I));const{value:$}=i;return b+="l"+$[0],b+="m"+w[0],b}),m,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:h,mergedFocusable:s,mergedSize:i,showBorder:o,enterPressed:n,rtlEnabled:g,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:c,handleClick:u,customColorCssVars:L(()=>{const{color:b}=e;if(!b)return null;const x=Rd(b);return{"--n-border-color":b,"--n-border-color-hover":x,"--n-border-color-pressed":Lb(b),"--n-border-color-focus":x,"--n-border-color-disabled":b}}),cssVars:A?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const n=Ar(this.$slots.default,o=>o&&S("span",{class:`${e}-button__content`},o));return S(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,S(bl,{width:!0},{default:()=>Ar(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&S("span",{class:`${e}-button__icon`,style:{margin:Vf(this.$slots.default)?"0":""}},S(yl,null,{default:()=>this.loading?S(Eu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):S("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&n,this.text?null:S(SX,{ref:"waveElRef",clsPrefix:e}),this.showBorder?S("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?S("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),sn=XX,nl=XX,_n="0!important",qX="-1px!important";function ZA(e){return j(e+"-type",[N("& +",[P("button",{},[j(e+"-type",[G("border",{borderLeftWidth:_n}),G("state-border",{left:qX})])])])])}function JA(e){return j(e+"-type",[N("& +",[P("button",[j(e+"-type",[G("border",{borderTopWidth:_n}),G("state-border",{top:qX})])])])])}const L_e=P("button-group",`
  1527. flex-wrap: nowrap;
  1528. display: inline-flex;
  1529. position: relative;
  1530. `,[Wt("vertical",{flexDirection:"row"},[Wt("rtl",[P("button",[N("&:first-child:not(:last-child)",`
  1531. margin-right: ${_n};
  1532. border-top-right-radius: ${_n};
  1533. border-bottom-right-radius: ${_n};
  1534. `),N("&:last-child:not(:first-child)",`
  1535. margin-left: ${_n};
  1536. border-top-left-radius: ${_n};
  1537. border-bottom-left-radius: ${_n};
  1538. `),N("&:not(:first-child):not(:last-child)",`
  1539. margin-left: ${_n};
  1540. margin-right: ${_n};
  1541. border-radius: ${_n};
  1542. `),ZA("default"),j("ghost",[ZA("primary"),ZA("info"),ZA("success"),ZA("warning"),ZA("error")])])])]),j("vertical",{flexDirection:"column"},[P("button",[N("&:first-child:not(:last-child)",`
  1543. margin-bottom: ${_n};
  1544. margin-left: ${_n};
  1545. margin-right: ${_n};
  1546. border-bottom-left-radius: ${_n};
  1547. border-bottom-right-radius: ${_n};
  1548. `),N("&:last-child:not(:first-child)",`
  1549. margin-top: ${_n};
  1550. margin-left: ${_n};
  1551. margin-right: ${_n};
  1552. border-top-left-radius: ${_n};
  1553. border-top-right-radius: ${_n};
  1554. `),N("&:not(:first-child):not(:last-child)",`
  1555. margin: ${_n};
  1556. border-radius: ${_n};
  1557. `),JA("default"),j("ghost",[JA("primary"),JA("info"),JA("success"),JA("warning"),JA("error")])])])]),O_e={size:{type:String,default:void 0},vertical:Boolean},$_e=ge({name:"ButtonGroup",props:O_e,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e);return ml("-button-group",L_e,t),_t(jX,e),{rtlEnabled:dn("ButtonGroup",r,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return S("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}});function Ob(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Bo(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function U_e(e,t){Ht(2,arguments);var r=jt(e).getTime(),n=Cr(t);return new Date(r+n)}function kw(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lw(e){Ht(1,arguments);var t=jt(e);return t.setHours(0,0,0,0),t}function N_e(e,t){Ht(2,arguments);var r=Cr(t),n=r*3;return Bo(e,n)}function fD(e,t){Ht(2,arguments);var r=Cr(t);return Bo(e,r*12)}function H_e(e,t){Ht(2,arguments);var r=jt(e),n=jt(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function z_e(e,t){Ht(2,arguments);var r=Lw(e),n=Lw(t);return r.getTime()===n.getTime()}function Q_e(e){return Ht(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _i(e){if(Ht(1,arguments),!Q_e(e)&&typeof e!="number")return!1;var t=jt(e);return!isNaN(Number(t))}function V_e(e){Ht(1,arguments);var t=jt(e),r=Math.floor(t.getMonth()/3)+1;return r}function W_e(e){Ht(1,arguments);var t=jt(e);return t.setSeconds(0,0),t}function gm(e){Ht(1,arguments);var t=jt(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function Nl(e){Ht(1,arguments);var t=jt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Jk(e){Ht(1,arguments);var t=jt(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function ZX(e,t){Ht(2,arguments);var r=Cr(t);return U_e(e,-r)}var G_e=864e5;function K_e(e){Ht(1,arguments);var t=jt(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/G_e)+1}function Mv(e){Ht(1,arguments);var t=1,r=jt(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function JX(e){Ht(1,arguments);var t=jt(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=Mv(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var i=Mv(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function j_e(e){Ht(1,arguments);var t=JX(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Mv(r);return n}var Y_e=6048e5;function eq(e){Ht(1,arguments);var t=jt(e),r=Mv(t).getTime()-j_e(t).getTime();return Math.round(r/Y_e)+1}function eL(e,t){Ht(1,arguments);var r=jt(e),n=r.getUTCFullYear(),o=t||{},a=o.locale,i=a&&a.options&&a.options.firstWeekContainsDate,s=i==null?1:Cr(i),l=o.firstWeekContainsDate==null?s:Cr(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,l),u.setUTCHours(0,0,0,0);var c=ru(u,t),d=new Date(0);d.setUTCFullYear(n,0,l),d.setUTCHours(0,0,0,0);var f=ru(d,t);return r.getTime()>=c.getTime()?n+1:r.getTime()>=f.getTime()?n:n-1}function X_e(e,t){Ht(1,arguments);var r=t||{},n=r.locale,o=n&&n.options&&n.options.firstWeekContainsDate,a=o==null?1:Cr(o),i=r.firstWeekContainsDate==null?a:Cr(r.firstWeekContainsDate),s=eL(e,t),l=new Date(0);l.setUTCFullYear(s,0,i),l.setUTCHours(0,0,0,0);var u=ru(l,t);return u}var q_e=6048e5;function tq(e,t){Ht(1,arguments);var r=jt(e),n=ru(r,t).getTime()-X_e(r,t).getTime();return Math.round(n/q_e)+1}function Zr(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var Z_e={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return Zr(t==="yy"?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Zr(r+1,2)},d:function(e,t){return Zr(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Zr(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Zr(e.getUTCHours(),t.length)},m:function(e,t){return Zr(e.getUTCMinutes(),t.length)},s:function(e,t){return Zr(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),o=Math.floor(n*Math.pow(10,r-3));return Zr(o,t.length)}};const Hu=Z_e;var eh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},J_e={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var n=e.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Hu.y(e,t)},Y:function(e,t,r,n){var o=eL(e,n),a=o>0?o:1-o;if(t==="YY"){var i=a%100;return Zr(i,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Zr(a,t.length)},R:function(e,t){var r=JX(e);return Zr(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Zr(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Zr(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Zr(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return Hu.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return Zr(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=tq(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Zr(o,t.length)},I:function(e,t,r){var n=eq(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Zr(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Hu.d(e,t)},D:function(e,t,r){var n=K_e(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Zr(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Zr(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Zr(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Zr(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),o=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),o;switch(n===12?o=eh.noon:n===0?o=eh.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),o;switch(n>=17?o=eh.evening:n>=12?o=eh.afternoon:n>=4?o=eh.morning:o=eh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Hu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Hu.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Zr(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Zr(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Hu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Hu.s(e,t)},S:function(e,t){return Hu.S(e,t)},X:function(e,t,r,n){var o=n._originalDate||e,a=o.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return mU(a);case"XXXX":case"XX":return uf(a);case"XXXXX":case"XXX":default:return uf(a,":")}},x:function(e,t,r,n){var o=n._originalDate||e,a=o.getTimezoneOffset();switch(t){case"x":return mU(a);case"xxxx":case"xx":return uf(a);case"xxxxx":case"xxx":default:return uf(a,":")}},O:function(e,t,r,n){var o=n._originalDate||e,a=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gU(a,":");case"OOOO":default:return"GMT"+uf(a,":")}},z:function(e,t,r,n){var o=n._originalDate||e,a=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gU(a,":");case"zzzz":default:return"GMT"+uf(a,":")}},t:function(e,t,r,n){var o=n._originalDate||e,a=Math.floor(o.getTime()/1e3);return Zr(a,t.length)},T:function(e,t,r,n){var o=n._originalDate||e,a=o.getTime();return Zr(a,t.length)}};function gU(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(a===0)return r+String(o);var i=t||"";return r+String(o)+i+Zr(a,2)}function mU(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Zr(Math.abs(e)/60,2)}return uf(e,t)}function uf(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),a=Zr(Math.floor(o/60),2),i=Zr(o%60,2);return n+a+r+i}const eBe=J_e;function yU(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function rq(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function tBe(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return yU(e,t);var a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",yU(n,t)).replace("{{time}}",rq(o,t))}var rBe={p:rq,P:tBe};const nq=rBe;var nBe=["D","DD"],oBe=["YY","YYYY"];function oq(e){return nBe.indexOf(e)!==-1}function aq(e){return oBe.indexOf(e)!==-1}function Ow(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var aBe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iBe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sBe=/^'([^]*?)'?$/,lBe=/''/g,uBe=/[a-zA-Z]/;function An(e,t,r){Ht(2,arguments);var n=String(t),o=r||{},a=o.locale||OS,i=a.options&&a.options.firstWeekContainsDate,s=i==null?1:Cr(i),l=o.firstWeekContainsDate==null?s:Cr(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=a.options&&a.options.weekStartsOn,c=u==null?0:Cr(u),d=o.weekStartsOn==null?c:Cr(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var f=jt(e);if(!_i(f))throw new RangeError("Invalid time value");var A=kw(f),h=ZX(f,A),v={firstWeekContainsDate:l,weekStartsOn:d,locale:a,_originalDate:f},p=n.match(iBe).map(function(g){var m=g[0];if(m==="p"||m==="P"){var y=nq[m];return y(g,a.formatLong,v)}return g}).join("").match(aBe).map(function(g){if(g==="''")return"'";var m=g[0];if(m==="'")return cBe(g);var y=eBe[m];if(y)return!o.useAdditionalWeekYearTokens&&aq(g)&&Ow(g,t,e),!o.useAdditionalDayOfYearTokens&&oq(g)&&Ow(g,t,e),y(h,g,a.localize,v);if(m.match(uBe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return g}).join("");return p}function cBe(e){return e.match(sBe)[1].replace(lBe,"'")}function iq(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function dBe(e){return iq({},e)}var bU=1e3*60,$w=60*24,xU=$w*30,wU=$w*365;function fBe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ht(2,arguments);var n=r.locale||OS;if(!n.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var o=H_e(e,t);if(isNaN(o))throw new RangeError("Invalid time value");var a=dBe(r);a.addSuffix=!!r.addSuffix,a.comparison=o;var i,s;o>0?(i=jt(t),s=jt(e)):(i=jt(e),s=jt(t));var l=r.roundingMethod==null?"round":String(r.roundingMethod),u;if(l==="floor")u=Math.floor;else if(l==="ceil")u=Math.ceil;else if(l==="round")u=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var c=s.getTime()-i.getTime(),d=c/bU,f=kw(s)-kw(i),A=(c-f)/bU,h;if(r.unit==null?d<1?h="second":d<60?h="minute":d<$w?h="hour":A<xU?h="day":A<wU?h="month":h="year":h=String(r.unit),h==="second"){var v=u(c/1e3);return n.formatDistance("xSeconds",v,a)}else if(h==="minute"){var p=u(d);return n.formatDistance("xMinutes",p,a)}else if(h==="hour"){var g=u(d/60);return n.formatDistance("xHours",g,a)}else if(h==="day"){var m=u(A/$w);return n.formatDistance("xDays",m,a)}else if(h==="month"){var y=u(A/xU);return y===12&&r.unit!=="month"?n.formatDistance("xYears",1,a):n.formatDistance("xMonths",y,a)}else if(h==="year"){var b=u(A/wU);return n.formatDistance("xYears",b,a)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function CU(e){Ht(1,arguments);var t=Cr(e);return jt(t*1e3)}function os(e){Ht(1,arguments);var t=jt(e),r=t.getDate();return r}function ABe(e){Ht(1,arguments);var t=jt(e),r=t.getDay();return r}function hBe(e){Ht(1,arguments);var t=jt(e),r=t.getFullYear(),n=t.getMonth(),o=new Date(0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function fc(e){Ht(1,arguments);var t=jt(e),r=t.getHours();return r}function Uw(e){Ht(1,arguments);var t=jt(e),r=t.getMinutes();return r}function pn(e){Ht(1,arguments);var t=jt(e),r=t.getMonth();return r}function Nw(e){Ht(1,arguments);var t=jt(e),r=t.getSeconds();return r}function ft(e){Ht(1,arguments);var t=jt(e),r=t.getTime();return r}function Bn(e){return Ht(1,arguments),jt(e).getFullYear()}function v2(e,t,r){Ht(2,arguments);var n=r||{},o=n.locale,a=o&&o.options&&o.options.weekStartsOn,i=a==null?0:Cr(a),s=n.weekStartsOn==null?i:Cr(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=jt(e),u=Cr(t),c=l.getUTCDay(),d=u%7,f=(d+7)%7,A=(f<s?7:0)+u-c;return l.setUTCDate(l.getUTCDate()+A),l}function vBe(e,t){Ht(2,arguments);var r=Cr(t);r%7===0&&(r=r-7);var n=1,o=jt(e),a=o.getUTCDay(),i=r%7,s=(i+7)%7,l=(s<n?7:0)+r-a;return o.setUTCDate(o.getUTCDate()+l),o}function pBe(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t),o=eq(r)-n;return r.setUTCDate(r.getUTCDate()-o*7),r}function gBe(e,t,r){Ht(2,arguments);var n=jt(e),o=Cr(t),a=tq(n,r)-o;return n.setUTCDate(n.getUTCDate()-a*7),n}var mBe=36e5,yBe=6e4,bBe=1e3,Vn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ds={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tn(e,t,r){var n=t.match(e);if(!n)return null;var o=parseInt(n[0],10);return{value:r?r(o):o,rest:t.slice(n[0].length)}}function Ms(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:n*(o*mBe+a*yBe+i*bBe),rest:t.slice(r[0].length)}}function SU(e,t){return Tn(Vn.anyDigitsSigned,e,t)}function Dn(e,t,r){switch(e){case 1:return Tn(Vn.singleDigit,t,r);case 2:return Tn(Vn.twoDigits,t,r);case 3:return Tn(Vn.threeDigits,t,r);case 4:return Tn(Vn.fourDigits,t,r);default:return Tn(new RegExp("^\\d{1,"+e+"}"),t,r)}}function $b(e,t,r){switch(e){case 1:return Tn(Vn.singleDigitSigned,t,r);case 2:return Tn(Vn.twoDigitsSigned,t,r);case 3:return Tn(Vn.threeDigitsSigned,t,r);case 4:return Tn(Vn.fourDigitsSigned,t,r);default:return Tn(new RegExp("^-?\\d{1,"+e+"}"),t,r)}}function p2(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _U(e,t){var r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{var a=n+50,i=Math.floor(a/100)*100,s=e>=a%100;o=e+i-(s?100:0)}return r?o:1-o}var xBe=[31,28,31,30,31,30,31,31,30,31,30,31],wBe=[31,29,31,30,31,30,31,31,30,31,30,31];function BU(e){return e%400===0||e%4===0&&e%100!==0}var CBe={G:{priority:140,parse:function(e,t,r,n){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}},set:function(e,t,r,n){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,r,n){var o=function(a){return{year:a,isTwoDigitYear:t==="yy"}};switch(t){case"y":return Dn(4,e,o);case"yo":return r.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Dn(t.length,e,o)}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var o=e.getUTCFullYear();if(r.isTwoDigitYear){var a=_U(r.year,o);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var i=!("era"in t)||t.era===1?r.year:1-r.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,r,n){var o=function(a){return{year:a,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return Dn(4,e,o);case"Yo":return r.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Dn(t.length,e,o)}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var o=eL(e,n);if(r.isTwoDigitYear){var a=_U(r.year,o);return e.setUTCFullYear(a,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ru(e,n)}var i=!("era"in t)||t.era===1?r.year:1-r.year;return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ru(e,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,r,n){return $b(t==="R"?4:t.length,e)},set:function(e,t,r,n){var o=new Date(0);return o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0),Mv(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,r,n){return $b(t==="u"?4:t.length,e)},set:function(e,t,r,n){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,r,n){switch(t){case"Q":case"QQ":return Dn(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,r,n){switch(t){case"q":case"qq":return Dn(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,r,n){var o=function(a){return a-1};switch(t){case"M":return Tn(Vn.month,e,o);case"MM":return Dn(2,e,o);case"Mo":return r.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,r,n){var o=function(a){return a-1};switch(t){case"L":return Tn(Vn.month,e,o);case"LL":return Dn(2,e,o);case"Lo":return r.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,r,n){switch(t){case"w":return Tn(Vn.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return ru(gBe(e,r,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,r,n){switch(t){case"I":return Tn(Vn.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return Mv(pBe(e,r,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,r,n){switch(t){case"d":return Tn(Vn.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Dn(t.length,e)}},validate:function(e,t,r){var n=e.getUTCFullYear(),o=BU(n),a=e.getUTCMonth();return o?t>=1&&t<=wBe[a]:t>=1&&t<=xBe[a]},set:function(e,t,r,n){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,r,n){switch(t){case"D":case"DD":return Tn(Vn.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Dn(t.length,e)}},validate:function(e,t,r){var n=e.getUTCFullYear(),o=BU(n);return o?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,r,n){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,r,n){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=v2(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,r,n){var o=function(a){var i=Math.floor((a-1)/7)*7;return(a+n.weekStartsOn+6)%7+i};switch(t){case"e":case"ee":return Dn(t.length,e,o);case"eo":return r.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=v2(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,r,n){var o=function(a){var i=Math.floor((a-1)/7)*7;return(a+n.weekStartsOn+6)%7+i};switch(t){case"c":case"cc":return Dn(t.length,e,o);case"co":return r.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=v2(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,r,n){var o=function(a){return a===0?7:a};switch(t){case"i":case"ii":return Dn(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||r.day(e,{width:"short",context:"formatting",valueCallback:o})||r.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return r.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return r.day(e,{width:"short",context:"formatting",valueCallback:o})||r.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiii":default:return r.day(e,{width:"wide",context:"formatting",valueCallback:o})||r.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||r.day(e,{width:"short",context:"formatting",valueCallback:o})||r.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,r){return t>=1&&t<=7},set:function(e,t,r,n){return e=vBe(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,r,n){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(p2(r),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,r,n){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(p2(r),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,r,n){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(p2(r),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,r,n){switch(t){case"h":return Tn(Vn.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=12},set:function(e,t,r,n){var o=e.getUTCHours()>=12;return o&&r<12?e.setUTCHours(r+12,0,0,0):!o&&r===12?e.setUTCHours(0,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,r,n){switch(t){case"H":return Tn(Vn.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=23},set:function(e,t,r,n){return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,r,n){switch(t){case"K":return Tn(Vn.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){var o=e.getUTCHours()>=12;return o&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,r,n){switch(t){case"k":return Tn(Vn.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=24},set:function(e,t,r,n){var o=r<=24?r%24:r;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,r,n){switch(t){case"m":return Tn(Vn.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCMinutes(r,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,r,n){switch(t){case"s":return Tn(Vn.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Dn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCSeconds(r,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,r,n){var o=function(a){return Math.floor(a*Math.pow(10,-t.length+3))};return Dn(t.length,e,o)},set:function(e,t,r,n){return e.setUTCMilliseconds(r),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,r,n){switch(t){case"X":return Ms(Ds.basicOptionalMinutes,e);case"XX":return Ms(Ds.basic,e);case"XXXX":return Ms(Ds.basicOptionalSeconds,e);case"XXXXX":return Ms(Ds.extendedOptionalSeconds,e);case"XXX":default:return Ms(Ds.extended,e)}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,r,n){switch(t){case"x":return Ms(Ds.basicOptionalMinutes,e);case"xx":return Ms(Ds.basic,e);case"xxxx":return Ms(Ds.basicOptionalSeconds,e);case"xxxxx":return Ms(Ds.extendedOptionalSeconds,e);case"xxx":default:return Ms(Ds.extended,e)}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,r,n){return SU(e)},set:function(e,t,r,n){return[new Date(r*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,r,n){return SU(e)},set:function(e,t,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const SBe=CBe;var _Be=10,BBe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TBe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EBe=/^'([^]*?)'?$/,IBe=/''/g,RBe=/\S/,DBe=/[a-zA-Z]/;function MBe(e,t,r,n){Ht(3,arguments);var o=String(e),a=String(t),i=n||{},s=i.locale||OS;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,u=l==null?1:Cr(l),c=i.firstWeekContainsDate==null?u:Cr(i.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,f=d==null?0:Cr(d),A=i.weekStartsOn==null?f:Cr(i.weekStartsOn);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(a==="")return o===""?jt(r):new Date(NaN);var h={firstWeekContainsDate:c,weekStartsOn:A,locale:s},v=[{priority:_Be,subPriority:-1,set:PBe,index:0}],p,g=a.match(TBe).map(function($){var O=$[0];if(O==="p"||O==="P"){var Q=nq[O];return Q($,s.formatLong,h)}return $}).join("").match(BBe),m=[];for(p=0;p<g.length;p++){var y=g[p];!i.useAdditionalWeekYearTokens&&aq(y)&&Ow(y,a,e),!i.useAdditionalDayOfYearTokens&&oq(y)&&Ow(y,a,e);var b=y[0],x=SBe[b];if(x){var w=x.incompatibleTokens;if(Array.isArray(w)){for(var C=void 0,_=0;_<m.length;_++){var B=m[_].token;if(w.indexOf(B)!==-1||B===b){C=m[_];break}}if(C)throw new RangeError("The format string mustn't contain `".concat(C.fullToken,"` and `").concat(y,"` at the same time"))}else if(x.incompatibleTokens==="*"&&m.length)throw new RangeError("The format string mustn't contain `".concat(y,"` and any other token at the same time"));m.push({token:b,fullToken:y});var T=x.parse(o,y,s.match,h);if(!T)return new Date(NaN);v.push({priority:x.priority,subPriority:x.subPriority||0,set:x.set,validate:x.validate,value:T.value,index:v.length}),o=T.rest}else{if(b.match(DBe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(y==="''"?y="'":b==="'"&&(y=FBe(y)),o.indexOf(y)===0)o=o.slice(y.length);else return new Date(NaN)}}if(o.length>0&&RBe.test(o))return new Date(NaN);var E=v.map(function($){return $.priority}).sort(function($,O){return O-$}).filter(function($,O,Q){return Q.indexOf($)===O}).map(function($){return v.filter(function(O){return O.priority===$}).sort(function(O,Q){return Q.subPriority-O.subPriority})}).map(function($){return $[0]}),I=jt(r);if(isNaN(I))return new Date(NaN);var R=ZX(I,kw(I)),D={};for(p=0;p<E.length;p++){var F=E[p];if(F.validate&&!F.validate(R,F.value,h))return new Date(NaN);var M=F.set(R,D,F.value,h);M[0]?(R=M[0],iq(D,M[1])):R=M}return R}function PBe(e,t){if(t.timestampIsSet)return e;var r=new Date(0);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}function FBe(e){return e.match(EBe)[1].replace(IBe,"'")}function kBe(e){Ht(1,arguments);var t=jt(e);return t.setMinutes(0,0,0),t}function NS(e,t){Ht(2,arguments);var r=jt(e),n=jt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function sq(e,t){Ht(2,arguments);var r=gm(e),n=gm(t);return r.getTime()===n.getTime()}function tL(e){Ht(1,arguments);var t=jt(e);return t.setMilliseconds(0),t}function lq(e,t){Ht(2,arguments);var r=jt(e),n=jt(t);return r.getFullYear()===n.getFullYear()}function rL(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t),o=r.getFullYear(),a=r.getDate(),i=new Date(0);i.setFullYear(o,n,15),i.setHours(0,0,0,0);var s=hBe(i);return r.setMonth(n,Math.min(a,s)),r}function To(e,t){if(Ht(2,arguments),typeof t!="object"||t===null)throw new RangeError("values parameter must be an object");var r=jt(e);return isNaN(r.getTime())?new Date(NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=rL(r,t.month)),t.date!=null&&r.setDate(Cr(t.date)),t.hours!=null&&r.setHours(Cr(t.hours)),t.minutes!=null&&r.setMinutes(Cr(t.minutes)),t.seconds!=null&&r.setSeconds(Cr(t.seconds)),t.milliseconds!=null&&r.setMilliseconds(Cr(t.milliseconds)),r)}function Dd(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t);return r.setHours(n),r}function g2(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t);return r.setMinutes(n),r}function LBe(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t),o=Math.floor(r.getMonth()/3)+1,a=n-o;return rL(r,r.getMonth()+a*3)}function m2(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t);return r.setSeconds(n),r}function TU(e,t){Ht(2,arguments);var r=jt(e),n=Cr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}const Hw=1901,fA=40,OBe={date:z_e,month:NS,year:lq,quarter:sq};function Vl(e,t,r){const n=OBe[r];return Array.isArray(e)?e.some(o=>n(o,t)):n(e,t)}function y2(e,t,r,n){let o=!1,a=!1,i=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(o=!0),Vl(r[0],e,"date")&&(a=!0),Vl(r[1],e,"date")&&(i=!0));const s=r!==null&&(Array.isArray(r)?Vl(r[0],e,"date")||Vl(r[1],e,"date"):Vl(r,e,"date"));return{type:"date",dateObject:{date:os(e),month:pn(e),year:Bn(e)},inCurrentMonth:NS(e,t),isCurrentDate:Vl(n,e,"date"),inSpan:o,startOfSpan:a,endOfSpan:i,selected:s,ts:ft(e)}}function $Be(e,t,r){return{type:"month",dateObject:{month:pn(e),year:Bn(e)},isCurrent:NS(r,e),selected:t!==null&&Vl(t,e,"month"),ts:ft(e)}}function UBe(e,t,r){return{type:"year",dateObject:{year:Bn(e)},isCurrent:lq(r,e),selected:t!==null&&Vl(t,e,"year"),ts:ft(e)}}function NBe(e,t,r){return{type:"quarter",dateObject:{quarter:V_e(e),year:Bn(e)},isCurrent:sq(r,e),selected:t!==null&&Vl(t,e,"quarter"),ts:ft(e)}}function AD(e,t,r,n,o=!1){const a=pn(e);let i=ft(Nl(e)),s=ft(Ob(i,-1));const l=[];let u=!o;for(;ABe(s)!==n||u;)l.unshift(y2(s,e,t,r)),s=ft(Ob(s,-1)),u=!1;for(;pn(i)===a;)l.push(y2(i,e,t,r)),i=ft(Ob(i,1));const c=o?l.length<=28?28:l.length<=35?35:42:42;for(;l.length<c;)l.push(y2(i,e,t,r)),i=ft(Ob(i,1));return l}function hD(e,t,r){const n=[],o=Jk(e);for(let a=0;a<12;a++)n.push($Be(ft(Bo(o,a)),t,r));return n}function vD(e,t,r){const n=[],o=Jk(e);for(let a=0;a<4;a++)n.push(NBe(ft(N_e(o,a)),t,r));return n}function pD(e,t){const r=[],n=new Date(Hw,0,1);for(let o=0;o<200;o++)r.push(UBe(ft(fD(n,o)),e,t));return r}function ya(e,t,r,n){const o=MBe(e,t,r,n);return _i(o)?An(o,t,n)===e?o:new Date(NaN):o}function Lx(e){if(e===void 0)return;if(typeof e=="number")return e;const[t,r,n]=e.split(":");return{hours:Number(t),minutes:Number(r),seconds:Number(n)}}function th(e,t){return Array.isArray(e)?e[t==="start"?0:1]:null}const HBe={titleFontSize:"22px"},zBe=e=>{const{borderRadius:t,fontSize:r,lineHeight:n,textColor2:o,textColor1:a,textColorDisabled:i,dividerColor:s,fontWeightStrong:l,primaryColor:u,baseColor:c,hoverColor:d,cardColor:f,modalColor:A,popoverColor:h}=e;return Object.assign(Object.assign({},HBe),{borderRadius:t,borderColor:Dt(f,s),borderColorModal:Dt(A,s),borderColorPopover:Dt(h,s),textColor:o,titleFontWeight:l,titleTextColor:a,dayTextColor:i,fontSize:r,lineHeight:n,dateColorCurrent:u,dateTextColorCurrent:c,cellColorHover:Dt(f,d),cellColorHoverModal:Dt(A,d),cellColorHoverPopover:Dt(h,d),cellColor:f,cellColorModal:A,cellColorPopover:h,barColor:u})},QBe={name:"Calendar",common:ct,peers:{Button:Fa},self:zBe},VBe=QBe,uq=e=>{const{fontSize:t,boxShadow2:r,popoverColor:n,textColor2:o,borderRadius:a,borderColor:i,heightSmall:s,heightMedium:l,heightLarge:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,dividerColor:A}=e;return{panelFontSize:t,boxShadow:r,color:n,textColor:o,borderRadius:a,border:`1px solid ${i}`,heightSmall:s,heightMedium:l,heightLarge:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,dividerColor:A}},WBe={name:"ColorPicker",common:Lt,peers:{Input:PA,Button:md},self:uq},GBe=WBe,KBe={name:"ColorPicker",common:ct,peers:{Input:Qi,Button:Fa},self:uq},jBe=KBe;function YBe(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function mm(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function XBe(e){return e=Math.round(e),e>=360?359:e<0?0:e}function qBe(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const ZBe={rgb:{hex(e){return Ic(Xn(e))},hsl(e){const[t,r,n,o]=Xn(e);return Ec([...HR(t,r,n),o])},hsv(e){const[t,r,n,o]=Xn(e);return Qf([...NR(t,r,n),o])}},hex:{rgb(e){return tl(Xn(e))},hsl(e){const[t,r,n,o]=Xn(e);return Ec([...HR(t,r,n),o])},hsv(e){const[t,r,n,o]=Xn(e);return Qf([...NR(t,r,n),o])}},hsl:{hex(e){const[t,r,n,o]=uv(e);return Ic([...zR(t,r,n),o])},rgb(e){const[t,r,n,o]=uv(e);return tl([...zR(t,r,n),o])},hsv(e){const[t,r,n,o]=uv(e);return Qf([...Mj(t,r,n),o])}},hsv:{hex(e){const[t,r,n,o]=zf(e);return Ic([...dc(t,r,n),o])},rgb(e){const[t,r,n,o]=zf(e);return tl([...dc(t,r,n),o])},hsl(e){const[t,r,n,o]=zf(e);return Ec([...Mx(t,r,n),o])}}};function cq(e,t,r){return r=r||mm(e),r?r===t?e:ZBe[r][t](e):null}const rh="12px",JBe=12,Md="6px",e2e=6,t2e="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",r2e=ge({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=q(null);function r(a){t.value&&(or("mousemove",document,n),or("mouseup",document,o),n(a))}function n(a){const{value:i}=t;if(!i)return;const{width:s,left:l}=i.getBoundingClientRect(),u=XBe((a.clientX-l-e2e)/(s-JBe)*360);e.onUpdateHue(u)}function o(){var a;qt("mousemove",document,n),qt("mouseup",document,o),(a=e.onComplete)===null||a===void 0||a.call(e)}return{railRef:t,handleMouseDown:r}},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-color-picker-slider`,style:{height:rh,borderRadius:Md}},S("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:t2e,height:rh,borderRadius:Md,position:"relative"},onMousedown:this.handleMouseDown},S("div",{style:{position:"absolute",left:Md,right:Md,top:0,bottom:0}},S("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Md})`,borderRadius:Md,width:rh,height:rh}},S("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Md,width:rh,height:rh}})))))}}),tg="12px",n2e=12,Pd="6px",o2e=ge({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=q(null);function r(a){!t.value||!e.rgba||(or("mousemove",document,n),or("mouseup",document,o),n(a))}function n(a){const{value:i}=t;if(!i)return;const{width:s,left:l}=i.getBoundingClientRect(),u=(a.clientX-l)/(s-n2e);e.onUpdateAlpha(qBe(u))}function o(){var a;qt("mousemove",document,n),qt("mouseup",document,o),(a=e.onComplete)===null||a===void 0||a.call(e)}return{railRef:t,railBackgroundImage:L(()=>{const{rgba:a}=e;return a?`linear-gradient(to right, rgba(${a[0]}, ${a[1]}, ${a[2]}, 0) 0%, rgba(${a[0]}, ${a[1]}, ${a[2]}, 1) 100%)`:""}),handleMouseDown:r}},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:tg,borderRadius:Pd},onMousedown:this.handleMouseDown},S("div",{style:{borderRadius:Pd,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},S("div",{class:`${e}-color-picker-checkboard`}),S("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&S("div",{style:{position:"absolute",left:Pd,right:Pd,top:0,bottom:0}},S("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Pd})`,borderRadius:Pd,width:tg,height:tg}},S("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:tl(this.rgba),borderRadius:Pd,width:tg,height:tg}}))))}}),Ub="12px",Nb="6px",a2e=ge({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=q(null);function r(a){t.value&&(or("mousemove",document,n),or("mouseup",document,o),n(a))}function n(a){const{value:i}=t;if(!i)return;const{width:s,height:l,left:u,bottom:c}=i.getBoundingClientRect(),d=(c-a.clientY)/l,f=(a.clientX-u)/s,A=100*(f>1?1:f<0?0:f),h=100*(d>1?1:d<0?0:d);e.onUpdateSV(A,h)}function o(){var a;qt("mousemove",document,n),qt("mouseup",document,o),(a=e.onComplete)===null||a===void 0||a.call(e)}return{palleteRef:t,handleColor:L(()=>{const{rgba:a}=e;return a?`rgb(${a[0]}, ${a[1]}, ${a[2]})`:""}),handleMouseDown:r}},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},S("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),S("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&S("div",{class:`${e}-color-picker-handle`,style:{width:Ub,height:Ub,borderRadius:Nb,left:`calc(${this.displayedSv[0]}% - ${Nb})`,bottom:`calc(${this.displayedSv[1]}% - ${Nb})`}},S("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:Nb,width:Ub,height:Ub}})))}}),nL="n-color-picker";function i2e(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function s2e(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function l2e(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function u2e(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function c2e(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const d2e={paddingSmall:"0 4px"},EU=ge({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=q(""),{themeRef:r}=Ke(nL,null);Sr(()=>{t.value=n()});function n(){const{value:i}=e;if(i===null)return"";const{label:s}=e;return s==="HEX"?i:s==="A"?`${Math.floor(i*100)}%`:String(Math.floor(i))}function o(i){t.value=i}function a(i){let s,l;switch(e.label){case"HEX":l=u2e(i),l&&e.onUpdateValue(i),t.value=n();break;case"H":s=s2e(i),s===!1?t.value=n():e.onUpdateValue(s);break;case"S":case"L":case"V":s=l2e(i),s===!1?t.value=n():e.onUpdateValue(s);break;case"A":s=c2e(i),s===!1?t.value=n():e.onUpdateValue(s);break;case"R":case"G":case"B":s=i2e(i),s===!1?t.value=n():e.onUpdateValue(s);break}}return{mergedTheme:r,inputValue:t,handleInputChange:a,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return S(ms,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:d2e,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),f2e=ge({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,r){const{showAlpha:n}=e;if(e.mode==="hex"){e.onUpdateValue((n?Ic:b0)(r));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=r,e.onUpdateValue((n?Qf:WR)(o));break;case"rgb":o[t]=r,e.onUpdateValue((n?tl:VR)(o));break;case"hsl":o[t]=r,e.onUpdateValue((n?Ec:GR)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return S("div",{class:`${e}-color-picker-input`},S("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),S(HX,null,{default:()=>{const{mode:r,valueArr:n,showAlpha:o}=this;if(r==="hex"){let a=null;try{a=n===null?null:(o?Ic:b0)(n)}catch(i){}return S(EU,{label:"HEX",showAlpha:o,value:a,onUpdateValue:i=>{this.handleUnitUpdateValue(0,i)}})}return(r+(o?"a":"")).split("").map((a,i)=>S(EU,{label:a.toUpperCase(),value:n===null?null:n[i],onUpdateValue:s=>{this.handleUnitUpdateValue(i,s)}}))}}))}}),A2e=ge({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:r}=Ke(nL,null);return()=>{const{hsla:n,value:o,clsPrefix:a,onClick:i,disabled:s}=e,l=t.label||r.value;return S("div",{class:[`${a}-color-picker-trigger`,s&&`${a}-color-picker-trigger--disabled`],onClick:s?void 0:i},S("div",{class:`${a}-color-picker-trigger__fill`},S("div",{class:`${a}-color-picker-checkboard`}),S("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:n?Ec(n):""}}),o&&n?S("div",{class:`${a}-color-picker-trigger__value`,style:{color:n[2]>50||n[3]<.5?"black":"white"}},l?l(o):o):null))}}});function h2e(e,t){if(t==="hsv"){const[r,n,o,a]=zf(e);return tl([...dc(r,n,o),a])}return e}function v2e(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const p2e=ge({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=L(()=>e.swatches.map(a=>{const i=mm(a);return{value:a,mode:i,legalValue:h2e(a,i)}}));function r(a){const{mode:i}=e;let{value:s,mode:l}=a;return l||(l="hex",/^[a-zA-Z]+$/.test(s)?s=v2e(s):(ei("color-picker",`color ${s} in swatches is invalid.`),s="#000000")),l===i?s:cq(s,i,l)}function n(a){e.onUpdateColor(r(a))}function o(a,i){a.key==="Enter"&&n(i)}return{parsedSwatchesRef:t,handleSwatchSelect:n,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>S("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:r=>this.handleSwatchKeyDown(r,t)},S("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),g2e=ge({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=mm(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(r){var n;const o=r.target.value;(n=e.onUpdateColor)===null||n===void 0||n.call(e,cq(o.toUpperCase(),e.mode,"hex")),r.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-color-picker-preview__preview`},S("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),S("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),m2e=N([P("color-picker",`
  1558. display: inline-block;
  1559. box-sizing: border-box;
  1560. height: var(--n-height);
  1561. font-size: var(--n-font-size);
  1562. width: 100%;
  1563. position: relative;
  1564. `),P("color-picker-panel",`
  1565. margin: 4px 0;
  1566. width: 240px;
  1567. font-size: var(--n-panel-font-size);
  1568. color: var(--n-text-color);
  1569. background-color: var(--n-color);
  1570. transition:
  1571. box-shadow .3s var(--n-bezier),
  1572. color .3s var(--n-bezier),
  1573. background-color .3s var(--n-bezier);
  1574. border-radius: var(--n-border-radius);
  1575. box-shadow: var(--n-box-shadow);
  1576. `,[Ia(),P("input",`
  1577. text-align: center;
  1578. `)]),P("color-picker-checkboard",`
  1579. background: white;
  1580. position: absolute;
  1581. left: 0;
  1582. right: 0;
  1583. top: 0;
  1584. bottom: 0;
  1585. `,[N("&::after",`
  1586. background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);
  1587. background-size: 12px 12px;
  1588. background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
  1589. background-repeat: repeat;
  1590. content: "";
  1591. position: absolute;
  1592. left: 0;
  1593. right: 0;
  1594. top: 0;
  1595. bottom: 0;
  1596. `)]),P("color-picker-slider",`
  1597. margin-bottom: 8px;
  1598. position: relative;
  1599. box-sizing: border-box;
  1600. `,[G("image",`
  1601. position: absolute;
  1602. left: 0;
  1603. right: 0;
  1604. top: 0;
  1605. bottom: 0;
  1606. `),N("&::after",`
  1607. content: "";
  1608. position: absolute;
  1609. border-radius: inherit;
  1610. left: 0;
  1611. right: 0;
  1612. top: 0;
  1613. bottom: 0;
  1614. box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
  1615. pointer-events: none;
  1616. `)]),P("color-picker-handle",`
  1617. z-index: 1;
  1618. box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45);
  1619. position: absolute;
  1620. background-color: white;
  1621. overflow: hidden;
  1622. `,[G("fill",`
  1623. box-sizing: border-box;
  1624. border: 2px solid white;
  1625. `)]),P("color-picker-pallete",`
  1626. height: 180px;
  1627. position: relative;
  1628. margin-bottom: 8px;
  1629. cursor: crosshair;
  1630. `,[G("layer",`
  1631. position: absolute;
  1632. left: 0;
  1633. right: 0;
  1634. top: 0;
  1635. bottom: 0;
  1636. `,[j("shadowed",`
  1637. box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
  1638. `)])]),P("color-picker-preview",`
  1639. display: flex;
  1640. `,[G("sliders",`
  1641. flex: 1 0 auto;
  1642. `),G("preview",`
  1643. position: relative;
  1644. height: 30px;
  1645. width: 30px;
  1646. margin: 0 0 8px 6px;
  1647. border-radius: 50%;
  1648. box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
  1649. overflow: hidden;
  1650. `),G("fill",`
  1651. display: block;
  1652. width: 30px;
  1653. height: 30px;
  1654. `),G("input",`
  1655. position: absolute;
  1656. top: 0;
  1657. left: 0;
  1658. width: 30px;
  1659. height: 30px;
  1660. opacity: 0;
  1661. z-index: 1;
  1662. `)]),P("color-picker-input",`
  1663. display: flex;
  1664. align-items: center;
  1665. `,[P("input",`
  1666. flex-grow: 1;
  1667. flex-basis: 0;
  1668. `),G("mode",`
  1669. width: 72px;
  1670. text-align: center;
  1671. `)]),P("color-picker-control",`
  1672. padding: 12px;
  1673. `),P("color-picker-action",`
  1674. display: flex;
  1675. margin-top: -4px;
  1676. border-top: 1px solid var(--n-divider-color);
  1677. padding: 8px 12px;
  1678. justify-content: flex-end;
  1679. `,[P("button","margin-left: 8px;")]),P("color-picker-trigger",`
  1680. border: var(--n-border);
  1681. height: 100%;
  1682. box-sizing: border-box;
  1683. border-radius: var(--n-border-radius);
  1684. transition: border-color .3s var(--n-bezier);
  1685. cursor: pointer;
  1686. `,[G("value",`
  1687. white-space: nowrap;
  1688. position: relative;
  1689. `),G("fill",`
  1690. border-radius: var(--n-border-radius);
  1691. position: absolute;
  1692. display: flex;
  1693. align-items: center;
  1694. justify-content: center;
  1695. left: 4px;
  1696. right: 4px;
  1697. top: 4px;
  1698. bottom: 4px;
  1699. `),j("disabled","cursor: not-allowed"),P("color-picker-checkboard",`
  1700. border-radius: var(--n-border-radius);
  1701. `,[N("&::after",`
  1702. --n-block-size: calc((var(--n-height) - 8px) / 3);
  1703. background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2);
  1704. background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px;
  1705. `)])]),P("color-picker-swatches",`
  1706. display: grid;
  1707. grid-gap: 8px;
  1708. flex-wrap: wrap;
  1709. position: relative;
  1710. grid-template-columns: repeat(auto-fill, 18px);
  1711. margin-top: 10px;
  1712. `,[P("color-picker-swatch",`
  1713. width: 18px;
  1714. height: 18px;
  1715. background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);
  1716. background-size: 8px 8px;
  1717. background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px;
  1718. background-repeat: repeat;
  1719. `,[G("fill",`
  1720. position: relative;
  1721. width: 100%;
  1722. height: 100%;
  1723. border-radius: 3px;
  1724. box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
  1725. cursor: pointer;
  1726. `),N("&:focus",`
  1727. outline: none;
  1728. `,[G("fill",[N("&::after",`
  1729. position: absolute;
  1730. top: 0;
  1731. right: 0;
  1732. bottom: 0;
  1733. left: 0;
  1734. background: inherit;
  1735. filter: blur(2px);
  1736. content: "";
  1737. `)])])])])]),y2e=Object.assign(Object.assign({},Me.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Un.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),b2e=ge({name:"ColorPicker",props:y2e,setup(e,{slots:t}){const r=q(null);let n=null;const o=Da(e),{mergedSizeRef:a,mergedDisabledRef:i}=o,{localeRef:s}=zi("global"),{mergedClsPrefixRef:l,namespaceRef:u,inlineThemeDisabled:c}=nt(e),d=Me("ColorPicker","-color-picker",m2e,GBe,e,l);_t(nL,{themeRef:d,renderLabelRef:Re(e,"renderLabel"),colorPickerSlots:t});const f=q(e.defaultShow),A=Ir(Re(e,"show"),f);function h(Y){const{onUpdateShow:oe,"onUpdate:show":he}=e;oe&&Te(oe,Y),he&&Te(he,Y),f.value=Y}const{defaultValue:v}=e,p=q(v===void 0?YBe(e.modes,e.showAlpha):v),g=Ir(Re(e,"value"),p),m=q([g.value]),y=q(0),b=L(()=>mm(g.value)),{modes:x}=e,w=q(mm(g.value)||x[0]||"rgb");function C(){const{modes:Y}=e,{value:oe}=w,he=Y.findIndex(ne=>ne===oe);~he?w.value=Y[(he+1)%Y.length]:w.value="rgb"}let _,B,T,E,I,R,D,F;const M=L(()=>{const{value:Y}=g;if(!Y)return null;switch(b.value){case"hsv":return zf(Y);case"hsl":return[_,B,T,F]=uv(Y),[...Mj(_,B,T),F];case"rgb":case"hex":return[I,R,D,F]=Xn(Y),[...NR(I,R,D),F]}}),$=L(()=>{const{value:Y}=g;if(!Y)return null;switch(b.value){case"rgb":case"hex":return Xn(Y);case"hsv":return[_,B,E,F]=zf(Y),[...dc(_,B,E),F];case"hsl":return[_,B,T,F]=uv(Y),[...zR(_,B,T),F]}}),O=L(()=>{const{value:Y}=g;if(!Y)return null;switch(b.value){case"hsl":return uv(Y);case"hsv":return[_,B,E,F]=zf(Y),[...Mx(_,B,E),F];case"rgb":case"hex":return[I,R,D,F]=Xn(Y),[...HR(I,R,D),F]}}),Q=L(()=>{switch(w.value){case"rgb":case"hex":return $.value;case"hsv":return M.value;case"hsl":return O.value}}),V=q(0),W=q(1),Z=q([0,0]);function te(Y,oe){const{value:he}=M,ne=V.value,Ae=he?he[3]:1;Z.value=[Y,oe];const{showAlpha:X}=e;switch(w.value){case"hsv":le((X?Qf:WR)([ne,Y,oe,Ae]),"cursor");break;case"hsl":le((X?Ec:GR)([...Mx(ne,Y,oe),Ae]),"cursor");break;case"rgb":le((X?tl:VR)([...dc(ne,Y,oe),Ae]),"cursor");break;case"hex":le((X?Ic:b0)([...dc(ne,Y,oe),Ae]),"cursor");break}}function ae(Y){V.value=Y;const{value:oe}=M;if(!oe)return;const[,he,ne,Ae]=oe,{showAlpha:X}=e;switch(w.value){case"hsv":le((X?Qf:WR)([Y,he,ne,Ae]),"cursor");break;case"rgb":le((X?tl:VR)([...dc(Y,he,ne),Ae]),"cursor");break;case"hex":le((X?Ic:b0)([...dc(Y,he,ne),Ae]),"cursor");break;case"hsl":le((X?Ec:GR)([...Mx(Y,he,ne),Ae]),"cursor");break}}function re(Y){switch(w.value){case"hsv":[_,B,E]=M.value,le(Qf([_,B,E,Y]),"cursor");break;case"rgb":[I,R,D]=$.value,le(tl([I,R,D,Y]),"cursor");break;case"hex":[I,R,D]=$.value,le(Ic([I,R,D,Y]),"cursor");break;case"hsl":[_,B,T]=O.value,le(Ec([_,B,T,Y]),"cursor");break}W.value=Y}function le(Y,oe){oe==="cursor"?n=Y:n=null;const{nTriggerFormChange:he,nTriggerFormInput:ne}=o,{onUpdateValue:Ae,"onUpdate:value":X}=e;Ae&&Te(Ae,Y),X&&Te(X,Y),he(),ne(),p.value=Y}function se(Y){le(Y,"input"),dr(ce)}function ce(Y=!0){const{value:oe}=g;if(oe){const{nTriggerFormChange:he,nTriggerFormInput:ne}=o,{onComplete:Ae}=e;Ae&&Ae(oe);const{value:X}=m,{value:ie}=y;Y&&(X.splice(ie+1,X.length,oe),y.value=ie+1),he(),ne()}}function be(){const{value:Y}=y;Y-1<0||(le(m.value[Y-1],"input"),ce(!1),y.value=Y-1)}function de(){const{value:Y}=y;Y<0||Y+1>=m.value.length||(le(m.value[Y+1],"input"),ce(!1),y.value=Y+1)}function pe(){le(null,"input"),h(!1)}function K(){const{value:Y}=g,{onConfirm:oe}=e;oe&&oe(Y),h(!1)}const U=L(()=>y.value>=1),k=L(()=>{const{value:Y}=m;return Y.length>1&&y.value<Y.length-1});gt(A,Y=>{Y||(m.value=[g.value],y.value=0)}),Sr(()=>{if(!(n&&n===g.value)){const{value:Y}=M;Y&&(V.value=Y[0],W.value=Y[3],Z.value=[Y[1],Y[2]])}n=null});const J=L(()=>{const{value:Y}=a,{common:{cubicBezierEaseInOut:oe},self:{textColor:he,color:ne,panelFontSize:Ae,boxShadow:X,border:ie,borderRadius:fe,dividerColor:ye,[_e("height",Y)]:Fe,[_e("fontSize",Y)]:Ne}}=d.value;return{"--n-bezier":oe,"--n-text-color":he,"--n-color":ne,"--n-panel-font-size":Ae,"--n-font-size":Ne,"--n-box-shadow":X,"--n-border":ie,"--n-border-radius":fe,"--n-height":Fe,"--n-divider-color":ye}}),ee=c?Et("color-picker",L(()=>a.value[0]),J,e):void 0;function H(){var Y;const{value:oe}=$,{value:he}=V,{internalActions:ne,modes:Ae,actions:X}=e,{value:ie}=d,{value:fe}=l;return S("div",{class:[`${fe}-color-picker-panel`,ee==null?void 0:ee.themeClass.value],onDragstart:ye=>{ye.preventDefault()},style:c?void 0:J.value},S("div",{class:`${fe}-color-picker-control`},S(a2e,{clsPrefix:fe,rgba:oe,displayedHue:he,displayedSv:Z.value,onUpdateSV:te,onComplete:ce}),S("div",{class:`${fe}-color-picker-preview`},S("div",{class:`${fe}-color-picker-preview__sliders`},S(r2e,{clsPrefix:fe,hue:he,onUpdateHue:ae,onComplete:ce}),e.showAlpha?S(o2e,{clsPrefix:fe,rgba:oe,alpha:W.value,onUpdateAlpha:re,onComplete:ce}):null),e.showPreview?S(g2e,{clsPrefix:fe,mode:w.value,color:$.value&&b0($.value),onUpdateColor:ye=>le(ye,"input")}):null),S(f2e,{clsPrefix:fe,showAlpha:e.showAlpha,mode:w.value,modes:Ae,onUpdateMode:C,value:g.value,valueArr:Q.value,onUpdateValue:se}),((Y=e.swatches)===null||Y===void 0?void 0:Y.length)&&S(p2e,{clsPrefix:fe,mode:w.value,swatches:e.swatches,onUpdateColor:ye=>le(ye,"input")})),X!=null&&X.length?S("div",{class:`${fe}-color-picker-action`},X.includes("confirm")&&S(sn,{size:"small",onClick:K,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>s.value.confirm}),X.includes("clear")&&S(sn,{size:"small",onClick:pe,disabled:!g.value,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>s.value.clear})):null,t.action?S("div",{class:`${fe}-color-picker-action`},{default:t.action}):ne?S("div",{class:`${fe}-color-picker-action`},ne.includes("undo")&&S(sn,{size:"small",onClick:be,disabled:!U.value,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>s.value.undo}),ne.includes("redo")&&S(sn,{size:"small",onClick:de,disabled:!k.value,theme:ie.peers.Button,themeOverrides:ie.peerOverrides.Button},{default:()=>s.value.redo})):null)}return{mergedClsPrefix:l,namespace:u,selfRef:r,hsla:O,rgba:$,mergedShow:A,mergedDisabled:i,isMounted:oi(),adjustedTo:Un(e),mergedValue:g,handleTriggerClick(){h(!0)},handleClickOutside(Y){var oe;!((oe=r.value)===null||oe===void 0)&&oe.contains(gs(Y))||h(!1)},renderPanel:H,cssVars:c?void 0:J,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),S("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},S(fd,null,{default:()=>[S(Ad,null,{default:()=>S(A2e,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),S(vd,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Un.tdkey,to:this.adjustedTo},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?en(this.renderPanel(),[[dl,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),x2e={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},dq=e=>{const{primaryColor:t,borderRadius:r,lineHeight:n,fontSize:o,cardColor:a,textColor2:i,textColor1:s,dividerColor:l,fontWeightStrong:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:A,closeColorPressed:h,modalColor:v,boxShadow1:p,popoverColor:g,actionColor:m}=e;return Object.assign(Object.assign({},x2e),{lineHeight:n,color:a,colorModal:v,colorPopover:g,colorTarget:t,colorEmbedded:m,colorEmbeddedModal:m,colorEmbeddedPopover:m,textColor:i,titleTextColor:s,borderColor:l,actionColor:m,titleFontWeight:u,closeColorHover:A,closeColorPressed:h,closeBorderRadius:r,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:p,borderRadius:r})},w2e={name:"Card",common:Lt,self:dq},fq=w2e,C2e={name:"Card",common:ct,self(e){const t=dq(e),{cardColor:r,modalColor:n,popoverColor:o}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=o,t}},Aq=C2e,S2e=N([P("card",`
  1738. font-size: var(--n-font-size);
  1739. line-height: var(--n-line-height);
  1740. display: flex;
  1741. flex-direction: column;
  1742. width: 100%;
  1743. box-sizing: border-box;
  1744. position: relative;
  1745. border-radius: var(--n-border-radius);
  1746. background-color: var(--n-color);
  1747. color: var(--n-text-color);
  1748. word-break: break-word;
  1749. transition:
  1750. color .3s var(--n-bezier),
  1751. background-color .3s var(--n-bezier),
  1752. box-shadow .3s var(--n-bezier),
  1753. border-color .3s var(--n-bezier);
  1754. `,[Vj({background:"var(--n-color-modal)"}),j("hoverable",[N("&:hover","box-shadow: var(--n-box-shadow);")]),j("content-segmented",[N(">",[G("content",{paddingTop:"var(--n-padding-bottom)"})])]),j("content-soft-segmented",[N(">",[G("content",`
  1755. margin: 0 var(--n-padding-left);
  1756. padding: var(--n-padding-bottom) 0;
  1757. `)])]),j("footer-segmented",[N(">",[G("footer",{paddingTop:"var(--n-padding-bottom)"})])]),j("footer-soft-segmented",[N(">",[G("footer",`
  1758. padding: var(--n-padding-bottom) 0;
  1759. margin: 0 var(--n-padding-left);
  1760. `)])]),N(">",[P("card-header",`
  1761. box-sizing: border-box;
  1762. display: flex;
  1763. align-items: center;
  1764. font-size: var(--n-title-font-size);
  1765. padding:
  1766. var(--n-padding-top)
  1767. var(--n-padding-left)
  1768. var(--n-padding-bottom)
  1769. var(--n-padding-left);
  1770. `,[G("main",`
  1771. font-weight: var(--n-title-font-weight);
  1772. transition: color .3s var(--n-bezier);
  1773. flex: 1;
  1774. min-width: 0;
  1775. color: var(--n-title-text-color);
  1776. `),G("extra",`
  1777. display: flex;
  1778. align-items: center;
  1779. font-size: var(--n-font-size);
  1780. font-weight: 400;
  1781. transition: color .3s var(--n-bezier);
  1782. color: var(--n-text-color);
  1783. `),G("close",`
  1784. margin: 0 0 0 8px;
  1785. transition:
  1786. background-color .3s var(--n-bezier),
  1787. color .3s var(--n-bezier);
  1788. `)]),G("action",`
  1789. box-sizing: border-box;
  1790. transition:
  1791. background-color .3s var(--n-bezier),
  1792. border-color .3s var(--n-bezier);
  1793. background-clip: padding-box;
  1794. background-color: var(--n-action-color);
  1795. `),G("content","flex: 1; min-width: 0;"),G("content, footer",`
  1796. box-sizing: border-box;
  1797. padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
  1798. font-size: var(--n-font-size);
  1799. `,[N("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),G("action",`
  1800. background-color: var(--n-action-color);
  1801. padding: var(--n-padding-bottom) var(--n-padding-left);
  1802. border-bottom-left-radius: var(--n-border-radius);
  1803. border-bottom-right-radius: var(--n-border-radius);
  1804. `)]),P("card-cover",`
  1805. overflow: hidden;
  1806. width: 100%;
  1807. border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
  1808. `,[N("img",`
  1809. display: block;
  1810. width: 100%;
  1811. `)]),j("bordered",`
  1812. border: 1px solid var(--n-border-color);
  1813. `,[N("&:target","border-color: var(--n-color-target);")]),j("action-segmented",[N(">",[G("action",[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),j("content-segmented, content-soft-segmented",[N(">",[G("content",{transition:"border-color 0.3s var(--n-bezier)"},[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),j("footer-segmented, footer-soft-segmented",[N(">",[G("footer",{transition:"border-color 0.3s var(--n-bezier)"},[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),j("embedded",`
  1814. background-color: var(--n-color-embedded);
  1815. `)]),_u(P("card",`
  1816. background: var(--n-color-modal);
  1817. `,[j("embedded",`
  1818. background-color: var(--n-color-embedded-modal);
  1819. `)])),dd(P("card",`
  1820. background: var(--n-color-popover);
  1821. `,[j("embedded",`
  1822. background-color: var(--n-color-embedded-popover);
  1823. `)]))]),oL={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},_2e=cl(oL),B2e=Object.assign(Object.assign({},Me.props),oL),hq=ge({name:"Card",props:B2e,setup(e){const t=()=>{const{onClose:u}=e;u&&Te(u)},{inlineThemeDisabled:r,mergedClsPrefixRef:n,mergedRtlRef:o}=nt(e),a=Me("Card","-card",S2e,fq,e,n),i=dn("Card",o,n),s=L(()=>{const{size:u}=e,{self:{color:c,colorModal:d,colorTarget:f,textColor:A,titleTextColor:h,titleFontWeight:v,borderColor:p,actionColor:g,borderRadius:m,lineHeight:y,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:w,closeColorHover:C,closeColorPressed:_,closeBorderRadius:B,closeIconSize:T,closeSize:E,boxShadow:I,colorPopover:R,colorEmbedded:D,colorEmbeddedModal:F,colorEmbeddedPopover:M,[_e("padding",u)]:$,[_e("fontSize",u)]:O,[_e("titleFontSize",u)]:Q},common:{cubicBezierEaseInOut:V}}=a.value,{top:W,left:Z,bottom:te}=Tc($);return{"--n-bezier":V,"--n-border-radius":m,"--n-color":c,"--n-color-modal":d,"--n-color-popover":R,"--n-color-embedded":D,"--n-color-embedded-modal":F,"--n-color-embedded-popover":M,"--n-color-target":f,"--n-text-color":A,"--n-line-height":y,"--n-action-color":g,"--n-title-text-color":h,"--n-title-font-weight":v,"--n-close-icon-color":b,"--n-close-icon-color-hover":x,"--n-close-icon-color-pressed":w,"--n-close-color-hover":C,"--n-close-color-pressed":_,"--n-border-color":p,"--n-box-shadow":I,"--n-padding-top":W,"--n-padding-bottom":te,"--n-padding-left":Z,"--n-font-size":O,"--n-title-font-size":Q,"--n-close-size":E,"--n-close-icon-size":T,"--n-close-border-radius":B}}),l=r?Et("card",L(()=>e.size[0]),s,e):void 0;return{rtlEnabled:i,mergedClsPrefix:n,mergedTheme:a,handleCloseClick:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:n,rtlEnabled:o,onRender:a,embedded:i,tag:s,$slots:l}=this;return a==null||a(),S(s,{class:[`${n}-card`,this.themeClass,i&&`${n}-card--embedded`,{[`${n}-card--rtl`]:o,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:r}],style:this.cssVars,role:this.role},Ar(l.cover,u=>u&&S("div",{class:`${n}-card-cover`,role:"none"},u)),Ar(l.header,u=>u||this.title||this.closable?S("div",{class:`${n}-card-header`,style:this.headerStyle},S("div",{class:`${n}-card-header__main`,role:"heading"},u||this.title),Ar(l["header-extra"],c=>c&&S("div",{class:`${n}-card-header__extra`,style:this.headerExtraStyle},c)),this.closable?S(pd,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ar(l.default,u=>u&&S("div",{class:`${n}-card__content`,style:this.contentStyle,role:"none"},u)),Ar(l.footer,u=>u&&[S("div",{class:`${n}-card__footer`,style:this.footerStyle,role:"none"},u)]),Ar(l.action,u=>u&&S("div",{class:`${n}-card__action`,role:"none"},u)))}}),vq=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),T2e={name:"Carousel",common:Lt,self:vq},E2e=T2e,I2e={name:"Carousel",common:ct,self:vq},R2e=I2e;function D2e(e){const{length:t}=e;return t>1&&(e.push(IU(e[0],0,"append")),e.unshift(IU(e[t-1],t-1,"prepend"))),e}function IU(e,t,r){return Fo(e,{key:`carousel-item-duplicate-${t}-${r}`})}function RU(e,t,r){return r?e===0?t-3:e===t-1?0:e-1:e}function b2(e,t){return t?e+1:e}function M2e(e,t,r){return e<0?null:e===0?r?t-1:null:e-1}function P2e(e,t,r){return e>t-1?null:e===t-1?r?0:null:e+1}function F2e(e,t){return t&&e>3?e-2:e}function DU(e){return window.TouchEvent&&e instanceof window.TouchEvent}function MU(e,t){let{offsetWidth:r,offsetHeight:n}=e;if(t){const o=getComputedStyle(e);r=r-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),n=n-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:r,height:n}}function Hb(e,t,r){return e<t?t:e>r?r:e}function k2e(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,r=e.match(t);if(r){const[,n,,o="ms"]=r;return Number(n)*(o==="ms"?1:1e3)}return 0}const pq="n-carousel-methods",L2e=e=>_t(pq,e),aL=(e="unknown",t="component")=>{const r=Ke(pq);return r||$o(e,`\`${t}\` must be placed inside \`n-carousel\`.`),r},O2e={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},$2e=ge({name:"CarouselDots",props:O2e,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=q([]),n=aL();function o(u,c){switch(u.key){case"Enter":case" ":u.preventDefault(),n.to(c);return}e.keyboard&&s(u)}function a(u){e.trigger==="hover"&&n.to(u)}function i(u){e.trigger==="click"&&n.to(u)}function s(u){var c;if(u.shiftKey||u.altKey||u.ctrlKey||u.metaKey)return;const d=(c=document.activeElement)===null||c===void 0?void 0:c.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:f}=u,A=f==="PageUp"||f==="ArrowUp",h=f==="PageDown"||f==="ArrowDown",v=f==="PageUp"||f==="ArrowRight",p=f==="PageDown"||f==="ArrowLeft",g=n.isVertical(),m=g?A:v,y=g?h:p;!m&&!y||(u.preventDefault(),m&&!n.isNextDisabled()?(n.next(),l(n.currentIndexRef.value)):y&&!n.isPrevDisabled()&&(n.prev(),l(n.currentIndexRef.value)))}function l(u){var c;(c=r.value[u])===null||c===void 0||c.focus()}return _S(()=>r.value.length=0),{mergedClsPrefix:t,dotEls:r,handleKeydown:o,handleMouseenter:a,handleClick:i}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return S("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},lve(this.total,r=>{const n=r===this.currentIndex;return S("div",{"aria-selected":n,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,n&&`${e}-carousel__dot--active`],key:r,onClick:()=>this.handleClick(r),onMouseenter:()=>this.handleMouseenter(r),onKeydown:o=>this.handleKeydown(o,r)})}))}}),U2e=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},S("g",{fill:"none"},S("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),N2e=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},S("g",{fill:"none"},S("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),H2e=ge({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=nt(e),{isVertical:r,isPrevDisabled:n,isNextDisabled:o,prev:a,next:i}=aL();return{mergedClsPrefix:t,isVertical:r,isPrevDisabled:n,isNextDisabled:o,prev:a,next:i}},render(){const{mergedClsPrefix:e}=this;return S("div",{class:`${e}-carousel__arrow-group`},S("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},U2e),S("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},N2e))}}),Ox="CarouselItem",z2e=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===Ox},Q2e=ge({name:Ox,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=aL(z$(Ox),`n-${z$(Ox)}`),n=q(),o=L(()=>{const{value:c}=n;return c?r.getSlideIndex(c):-1}),a=L(()=>r.isPrev(o.value)),i=L(()=>r.isNext(o.value)),s=L(()=>r.isActive(o.value)),l=L(()=>r.getSlideStyle(o.value));yr(()=>r.addSlide(n.value)),Hr(()=>{r.removeSlide(n.value)});function u(c){const{value:d}=o;d!==void 0&&(r==null||r.onCarouselItemClick(d,c))}return{mergedClsPrefix:t,selfElRef:n,isPrev:a,isNext:i,isActive:s,index:o,style:l,handleClick:u}},render(){var e;const{$slots:t,mergedClsPrefix:r,isPrev:n,isNext:o,isActive:a,index:i,style:s}=this,l=[`${r}-carousel__slide`,{[`${r}-carousel__slide--current`]:a,[`${r}-carousel__slide--prev`]:n,[`${r}-carousel__slide--next`]:o}];return S("div",{ref:"selfElRef",class:l,role:"option",tabindex:"-1","data-index":i,"aria-hidden":!a,style:s,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:n,isNext:o,isActive:a,index:i}))}}),V2e=P("carousel",`
  1824. position: relative;
  1825. width: 100%;
  1826. height: 100%;
  1827. touch-action: pan-y;
  1828. overflow: hidden;
  1829. `,[G("slides",`
  1830. display: flex;
  1831. width: 100%;
  1832. height: 100%;
  1833. transition-timing-function: var(--n-bezier);
  1834. transition-property: transform;
  1835. `,[G("slide",`
  1836. flex-shrink: 0;
  1837. position: relative;
  1838. width: 100%;
  1839. height: 100%;
  1840. outline: none;
  1841. overflow: hidden;
  1842. `,[N("> img",`
  1843. display: block;
  1844. `)])]),G("dots",`
  1845. position: absolute;
  1846. display: flex;
  1847. flex-wrap: nowrap;
  1848. `,[j("dot",[G("dot",`
  1849. height: var(--n-dot-size);
  1850. width: var(--n-dot-size);
  1851. background-color: var(--n-dot-color);
  1852. border-radius: 50%;
  1853. cursor: pointer;
  1854. transition:
  1855. box-shadow .3s var(--n-bezier),
  1856. background-color .3s var(--n-bezier);
  1857. outline: none;
  1858. `,[N("&:focus",`
  1859. background-color: var(--n-dot-color-focus);
  1860. `),j("active",`
  1861. background-color: var(--n-dot-color-active);
  1862. `)])]),j("line",[G("dot",`
  1863. border-radius: 9999px;
  1864. width: var(--n-dot-line-width);
  1865. height: 4px;
  1866. background-color: var(--n-dot-color);
  1867. cursor: pointer;
  1868. transition:
  1869. width .3s var(--n-bezier),
  1870. box-shadow .3s var(--n-bezier),
  1871. background-color .3s var(--n-bezier);
  1872. outline: none;
  1873. `,[N("&:focus",`
  1874. background-color: var(--n-dot-color-focus);
  1875. `),j("active",`
  1876. width: var(--n-dot-line-width-active);
  1877. background-color: var(--n-dot-color-active);
  1878. `)])])]),G("arrow",`
  1879. transition: background-color .3s var(--n-bezier);
  1880. cursor: pointer;
  1881. height: 28px;
  1882. width: 28px;
  1883. display: flex;
  1884. align-items: center;
  1885. justify-content: center;
  1886. background-color: rgba(255, 255, 255, .2);
  1887. color: var(--n-arrow-color);
  1888. border-radius: 8px;
  1889. user-select: none;
  1890. -webkit-user-select: none;
  1891. font-size: 18px;
  1892. `,[N("svg",`
  1893. height: 1em;
  1894. width: 1em;
  1895. `),N("&:hover",`
  1896. background-color: rgba(255, 255, 255, .3);
  1897. `)]),j("vertical",`
  1898. touch-action: pan-x;
  1899. `,[G("slides",`
  1900. flex-direction: column;
  1901. `),j("fade",[G("slide",`
  1902. top: 50%;
  1903. left: unset;
  1904. transform: translateY(-50%);
  1905. `)]),j("card",[G("slide",`
  1906. top: 50%;
  1907. left: unset;
  1908. transform: translateY(-50%) translateZ(-400px);
  1909. `,[j("current",`
  1910. transform: translateY(-50%) translateZ(0);
  1911. `),j("prev",`
  1912. transform: translateY(-100%) translateZ(-200px);
  1913. `),j("next",`
  1914. transform: translateY(0%) translateZ(-200px);
  1915. `)])])]),j("usercontrol",[G("slides",[N(">",[N("div",`
  1916. position: absolute;
  1917. top: 50%;
  1918. left: 50%;
  1919. width: 100%;
  1920. height: 100%;
  1921. transform: translate(-50%, -50%);
  1922. `)])])]),j("left",[G("dots",`
  1923. transform: translateY(-50%);
  1924. top: 50%;
  1925. left: 12px;
  1926. flex-direction: column;
  1927. `,[j("line",[G("dot",`
  1928. width: 4px;
  1929. height: var(--n-dot-line-width);
  1930. margin: 4px 0;
  1931. transition:
  1932. height .3s var(--n-bezier),
  1933. box-shadow .3s var(--n-bezier),
  1934. background-color .3s var(--n-bezier);
  1935. outline: none;
  1936. `,[j("active",`
  1937. height: var(--n-dot-line-width-active);
  1938. `)])])]),G("dot",`
  1939. margin: 4px 0;
  1940. `)]),G("arrow-group",`
  1941. position: absolute;
  1942. display: flex;
  1943. flex-wrap: nowrap;
  1944. `),j("vertical",[G("arrow",`
  1945. transform: rotate(90deg);
  1946. `)]),j("show-arrow",[j("bottom",[G("dots",`
  1947. transform: translateX(0);
  1948. bottom: 18px;
  1949. left: 18px;
  1950. `)]),j("top",[G("dots",`
  1951. transform: translateX(0);
  1952. top: 18px;
  1953. left: 18px;
  1954. `)]),j("left",[G("dots",`
  1955. transform: translateX(0);
  1956. top: 18px;
  1957. left: 18px;
  1958. `)]),j("right",[G("dots",`
  1959. transform: translateX(0);
  1960. top: 18px;
  1961. right: 18px;
  1962. `)])]),j("left",[G("arrow-group",`
  1963. bottom: 12px;
  1964. left: 12px;
  1965. flex-direction: column;
  1966. `,[N("> *:first-child",`
  1967. margin-bottom: 12px;
  1968. `)])]),j("right",[G("dots",`
  1969. transform: translateY(-50%);
  1970. top: 50%;
  1971. right: 12px;
  1972. flex-direction: column;
  1973. `,[j("line",[G("dot",`
  1974. width: 4px;
  1975. height: var(--n-dot-line-width);
  1976. margin: 4px 0;
  1977. transition:
  1978. height .3s var(--n-bezier),
  1979. box-shadow .3s var(--n-bezier),
  1980. background-color .3s var(--n-bezier);
  1981. outline: none;
  1982. `,[j("active",`
  1983. height: var(--n-dot-line-width-active);
  1984. `)])])]),G("dot",`
  1985. margin: 4px 0;
  1986. `),G("arrow-group",`
  1987. bottom: 12px;
  1988. right: 12px;
  1989. flex-direction: column;
  1990. `,[N("> *:first-child",`
  1991. margin-bottom: 12px;
  1992. `)])]),j("top",[G("dots",`
  1993. transform: translateX(-50%);
  1994. top: 12px;
  1995. left: 50%;
  1996. `,[j("line",[G("dot",`
  1997. margin: 0 4px;
  1998. `)])]),G("dot",`
  1999. margin: 0 4px;
  2000. `),G("arrow-group",`
  2001. top: 12px;
  2002. right: 12px;
  2003. `,[N("> *:first-child",`
  2004. margin-right: 12px;
  2005. `)])]),j("bottom",[G("dots",`
  2006. transform: translateX(-50%);
  2007. bottom: 12px;
  2008. left: 50%;
  2009. `,[j("line",[G("dot",`
  2010. margin: 0 4px;
  2011. `)])]),G("dot",`
  2012. margin: 0 4px;
  2013. `),G("arrow-group",`
  2014. bottom: 12px;
  2015. right: 12px;
  2016. `,[N("> *:first-child",`
  2017. margin-right: 12px;
  2018. `)])]),j("fade",[G("slide",`
  2019. position: absolute;
  2020. opacity: 0;
  2021. transition-property: opacity;
  2022. pointer-events: none;
  2023. `,[j("current",`
  2024. opacity: 1;
  2025. pointer-events: auto;
  2026. `)])]),j("card",[G("slides",`
  2027. perspective: 1000px;
  2028. `),G("slide",`
  2029. position: absolute;
  2030. left: 50%;
  2031. opacity: 0;
  2032. transform: translateX(-50%) translateZ(-400px);
  2033. transition-property: opacity, transform;
  2034. `,[j("current",`
  2035. opacity: 1;
  2036. transform: translateX(-50%) translateZ(0);
  2037. z-index: 1;
  2038. `),j("prev",`
  2039. opacity: 0.4;
  2040. transform: translateX(-100%) translateZ(-200px);
  2041. `),j("next",`
  2042. opacity: 0.4;
  2043. transform: translateX(0%) translateZ(-200px);
  2044. `)])])]),W2e=["transitionDuration","transitionTimingFunction"],G2e=Object.assign(Object.assign({},Me.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let x2=!1;const K2e=ge({name:"Carousel",props:G2e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=q(null),o=q(null),a=q([]),i={value:[]},s=L(()=>e.direction==="vertical"),l=L(()=>s.value?"height":"width"),u=L(()=>s.value?"bottom":"right"),c=L(()=>e.effect==="slide"),d=L(()=>e.loop&&e.slidesPerView===1&&c.value),f=L(()=>e.effect==="custom"),A=L(()=>!c.value||e.centeredSlides?1:e.slidesPerView),h=L(()=>f.value?1:e.slidesPerView),v=L(()=>A.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),p=q({width:0,height:0}),g=L(()=>{const{value:me}=a;if(!me.length)return[];const{value:ze}=v;if(ze)return me.map(ot=>MU(ot));const{value:dt}=h,{value:Rt}=p,{value:At}=l;let ve=Rt[At];if(dt!=="auto"){const{spaceBetween:ot}=e,Nt=ve-(dt-1)*ot,Ce=1/Math.max(1,dt);ve=Nt*Ce}const De=Object.assign(Object.assign({},Rt),{[At]:ve});return me.map(()=>De)}),m=L(()=>{const{value:me}=g;if(!me.length)return[];const{centeredSlides:ze,spaceBetween:dt}=e,{value:Rt}=l,{[Rt]:At}=p.value;let ve=0;return me.map(({[Rt]:De})=>{let ot=ve;return ze&&(ot+=(De-At)/2),ve+=De+dt,ot})}),y=q(!1),b=L(()=>{const{transitionStyle:me}=e;return me?Xa(me,W2e):{}}),x=L(()=>f.value?0:k2e(b.value.transitionDuration)),w=L(()=>{const{value:me}=a;if(!me.length)return[];const ze=!(v.value||h.value===1),dt=De=>{if(ze){const{value:ot}=l;return{[ot]:`${g.value[De][ot]}px`}}};if(f.value)return me.map((De,ot)=>dt(ot));const{effect:Rt,spaceBetween:At}=e,{value:ve}=u;return me.reduce((De,ot,Nt)=>{const Ce=Object.assign(Object.assign({},dt(Nt)),{[`margin-${ve}`]:`${At}px`});return De.push(Ce),y.value&&(Rt==="fade"||Rt==="card")&&Object.assign(Ce,b.value),De},[])}),C=L(()=>{const{value:me}=A,{length:ze}=a.value;if(me!=="auto")return Math.max(ze-me,0)+1;{const{value:dt}=g,{length:Rt}=dt;if(!Rt)return ze;const{value:At}=m,{value:ve}=l,De=p.value[ve];let ot=dt[dt.length-1][ve],Nt=Rt;for(;Nt>1&&ot<De;)Nt--,ot+=At[Nt]-At[Nt-1];return Hb(Nt+1,1,Rt)}}),_=L(()=>F2e(C.value,d.value)),B=b2(e.defaultIndex,d.value),T=q(RU(B,C.value,d.value)),E=Ir(Re(e,"currentIndex"),T),I=L(()=>b2(E.value,d.value));function R(me){var ze,dt;me=Hb(me,0,C.value-1);const Rt=RU(me,C.value,d.value),{value:At}=E;Rt!==E.value&&(T.value=Rt,(ze=e["onUpdate:currentIndex"])===null||ze===void 0||ze.call(e,Rt,At),(dt=e.onUpdateCurrentIndex)===null||dt===void 0||dt.call(e,Rt,At))}function D(me=I.value){return M2e(me,C.value,e.loop)}function F(me=I.value){return P2e(me,C.value,e.loop)}function M(me){const ze=Y(me);return ze!==null&&D()===ze}function $(me){const ze=Y(me);return ze!==null&&F()===ze}function O(me){return I.value===Y(me)}function Q(me){return E.value===me}function V(){return D()===null}function W(){return F()===null}function Z(me){const ze=Hb(b2(me,d.value),0,C.value);(me!==E.value||ze!==I.value)&&R(ze)}function te(){const me=D();me!==null&&R(me)}function ae(){const me=F();me!==null&&R(me)}function re(){(!se||!d.value)&&te()}function le(){(!se||!d.value)&&ae()}let se=!1,ce=0;const be=q({});function de(me,ze=0){be.value=Object.assign({},b.value,{transform:s.value?`translateY(${-me}px)`:`translateX(${-me}px)`,transitionDuration:`${ze}ms`})}function pe(me=0){c.value?K(I.value,me):ce!==0&&(!se&&me>0&&(se=!0),de(ce=0,me))}function K(me,ze){const dt=U(me);dt!==ce&&ze>0&&(se=!0),ce=U(I.value),de(dt,ze)}function U(me){let ze;return me>=C.value-1?ze=k():ze=m.value[me]||0,ze}function k(){if(A.value==="auto"){const{value:me}=l,{[me]:ze}=p.value,{value:dt}=m,Rt=dt[dt.length-1];let At;if(Rt===void 0)At=ze;else{const{value:ve}=g;At=Rt+ve[ve.length-1][me]}return At-ze}else{const{value:me}=m;return me[C.value-1]||0}}const J={currentIndexRef:E,to:Z,prev:re,next:le,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:M,isNext:$,isActive:O,isPrevDisabled:V,isNextDisabled:W,getSlideIndex:Y,getSlideStyle:oe,addSlide:ee,removeSlide:H,onCarouselItemClick:he};L2e(J);function ee(me){me&&a.value.push(me)}function H(me){if(!me)return;const ze=Y(me);ze!==-1&&a.value.splice(ze,1)}function Y(me){return typeof me=="number"?me:me?a.value.indexOf(me):-1}function oe(me){const ze=Y(me);if(ze!==-1){const dt=[w.value[ze]],Rt=J.isPrev(ze),At=J.isNext(ze);return Rt&&dt.push(e.prevSlideStyle||""),At&&dt.push(e.nextSlideStyle||""),Mi(dt)}}function he(me,ze){let dt=!se&&!Ne&&!rt;e.effect==="card"&&dt&&!O(me)&&(Z(me),dt=!1),dt||(ze.preventDefault(),ze.stopPropagation())}let ne=null;function Ae(){ne&&(clearInterval(ne),ne=null)}function X(){Ae(),!e.autoplay||_.value<2||(ne=window.setInterval(ae,e.interval))}let ie=0,fe=0,ye=0,Fe=0,Ne=!1,rt=!1;function lt(me){var ze;if(x2||!(!((ze=o.value)===null||ze===void 0)&&ze.contains(gs(me))))return;x2=!0,Ne=!0,rt=!1,Fe=Date.now(),Ae(),me.type!=="touchstart"&&!me.target.isContentEditable&&me.preventDefault();const dt=DU(me)?me.touches[0]:me;s.value?fe=dt.clientY:ie=dt.clientX,e.touchable&&(or("touchmove",document,mt,{passive:!0}),or("touchend",document,Ge),or("touchcancel",document,Ge)),e.draggable&&(or("mousemove",document,mt),or("mouseup",document,Ge))}function mt(me){const{value:ze}=s,{value:dt}=l,Rt=DU(me)?me.touches[0]:me,At=ze?Rt.clientY-fe:Rt.clientX-ie,ve=p.value[dt];ye=Hb(At,-ve,ve),me.cancelable&&me.preventDefault(),c.value&&de(ce-ye,0)}function Ge(){const{value:me}=I;let ze=me;if(!se&&ye!==0&&c.value){const dt=ce-ye,Rt=[...m.value.slice(0,C.value-1),k()];let At=null;for(let ve=0;ve<Rt.length;ve++){const De=Math.abs(Rt[ve]-dt);if(At!==null&&At<De)break;At=De,ze=ve}}if(ze===me){const dt=Date.now()-Fe,{value:Rt}=l,At=p.value[Rt];ye>At/2||ye/dt>.4?ze=D(me):(ye<-At/2||ye/dt<-.4)&&(ze=F(me))}ze!==null&&ze!==me?(rt=!0,R(ze),dr(()=>{(!d.value||T.value!==E.value)&&pe(x.value)})):pe(x.value),it(),X()}function it(){Ne&&(x2=!1),Ne=!1,ie=0,fe=0,ye=0,Fe=0,qt("touchmove",document,mt),qt("touchend",document,Ge),qt("touchcancel",document,Ge),qt("mousemove",document,mt),qt("mouseup",document,Ge)}function je(){if(c.value&&se){const{value:me}=I;K(me,0)}else X();c.value&&(be.value.transitionDuration="0ms"),se=!1}function Ye(me){if(me.preventDefault(),se)return;let{deltaX:ze,deltaY:dt}=me;me.shiftKey&&!ze&&(ze=dt);const Rt=-1,At=1,ve=(ze||dt)>0?At:Rt;let De=0,ot=0;s.value?ot=ve:De=ve;const Nt=10;(ot*dt>=Nt||De*ze>=Nt)&&(ve===At&&!W()?ae():ve===Rt&&!V()&&te())}function ue(){p.value=MU(n.value,!0),X()}function Ee(){var me,ze;v.value&&((ze=(me=g.effect).scheduler)===null||ze===void 0||ze.call(me),g.effect.run())}function Qe(){e.autoplay&&Ae()}function et(){e.autoplay&&X()}yr(()=>{Sr(X),requestAnimationFrame(()=>y.value=!0)}),Hr(()=>{it(),Ae()}),py(()=>{const{value:me}=a,{value:ze}=i,dt=new Map,Rt=ve=>dt.has(ve)?dt.get(ve):-1;let At=!1;for(let ve=0;ve<me.length;ve++){const De=ze.findIndex(ot=>ot.el===me[ve]);De!==ve&&(At=!0),dt.set(me[ve],De)}At&&me.sort((ve,De)=>Rt(ve)-Rt(De))}),gt(I,(me,ze)=>{if(me!==ze)if(X(),c.value){if(d.value&&_.value>2){const{value:dt}=C;me===dt-2&&ze===1?me=0:me===1&&ze===dt-2&&(me=dt-1)}K(me,x.value)}else pe()},{immediate:!0}),gt([d,A],()=>void dr(()=>R(I.value))),gt(m,()=>c.value&&pe(),{deep:!0}),gt(c,me=>{me?pe():(se=!1,de(ce=0))});const tt=L(()=>({onTouchstartPassive:e.touchable?lt:void 0,onMousedown:e.draggable?lt:void 0,onWheel:e.mousewheel?Ye:void 0})),xe=L(()=>Object.assign(Object.assign({},Xa(J,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:_.value,currentIndex:E.value})),$e=L(()=>({total:_.value,currentIndex:E.value,to:J.to})),Xe={getCurrentIndex:()=>E.value,to:Z,prev:te,next:ae},ht=Me("Carousel","-carousel",V2e,E2e,e,t),Se=L(()=>{const{common:{cubicBezierEaseInOut:me},self:{dotSize:ze,dotColor:dt,dotColorActive:Rt,dotColorFocus:At,dotLineWidth:ve,dotLineWidthActive:De,arrowColor:ot}}=ht.value;return{"--n-bezier":me,"--n-dot-color":dt,"--n-dot-color-focus":At,"--n-dot-color-active":Rt,"--n-dot-size":ze,"--n-dot-line-width":ve,"--n-dot-line-width-active":De,"--n-arrow-color":ot}}),He=r?Et("carousel",void 0,Se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:n,slidesElRef:o,slideVNodes:i,duplicatedable:d,userWantsControl:f,autoSlideSize:v,displayIndex:E,realIndex:I,slideStyles:w,translateStyle:be,slidesControlListeners:tt,handleTransitionEnd:je,handleResize:ue,handleSlideResize:Ee,handleMouseenter:Qe,handleMouseleave:et,isActive:Q,arrowSlotProps:xe,dotSlotProps:$e},Xe),{cssVars:r?void 0:Se,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:r,userWantsControl:n,slideStyles:o,dotType:a,dotPlacement:i,slidesControlListeners:s,transitionProps:l={},arrowSlotProps:u,dotSlotProps:c,$slots:{default:d,dots:f,arrow:A}}=this,h=d&&Ii(d())||[];let v=j2e(h);return v.length||(v=h.map(p=>S(Q2e,null,{default:()=>Fo(p)}))),this.duplicatedable&&(v=D2e(v)),this.slideVNodes.value=v,this.autoSlideSize&&(v=v.map(p=>S(Fi,{onResize:this.handleSlideResize},{default:()=>p}))),(e=this.onRender)===null||e===void 0||e.call(this),S("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${i}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,n&&`${t}-carousel--usercontrol`],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),S(Fi,{onResize:this.handleResize},{default:()=>S("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},n?v.map((p,g)=>S("div",{style:o[g],key:g},en(S(jr,Object.assign({},l),{default:()=>p}),[[Ln,this.isActive(g)]]))):v)}),this.showDots&&c.total>1&&um(f,c,()=>[S($2e,{key:a+i,total:c.total,currentIndex:c.currentIndex,dotType:a,trigger:this.trigger,keyboard:this.keyboard})]),r&&um(A,u,()=>[S(H2e,null)]))}});function j2e(e){return e.reduce((t,r)=>(z2e(r)&&t.push(r),t),[])}const Y2e={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},gq=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:n,modalColor:o,popoverColor:a,textColorDisabled:i,borderColor:s,primaryColor:l,textColor2:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:A,lineHeight:h}=e;return Object.assign(Object.assign({},Y2e),{labelLineHeight:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,borderRadius:A,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:n,colorTableHeaderModal:o,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:i,checkMarkColorDisabledChecked:i,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${Ve(l,{alpha:.3})}`,textColor:u,textColorDisabled:i})},X2e={name:"Checkbox",common:Lt,self:gq},iL=X2e,q2e={name:"Checkbox",common:ct,self(e){const{cardColor:t}=e,r=gq(e);return r.color="#0000",r.checkMarkColor=t,r}},fp=q2e,Z2e=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:o,textColor3:a,primaryColor:i,textColorDisabled:s,dividerColor:l,hoverColor:u,fontSizeMedium:c,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:r,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:a,optionHeight:d,optionFontSize:c,optionColorHover:u,optionTextColor:o,optionTextColorActive:i,optionTextColorDisabled:s,optionCheckMarkColor:i,loadingColor:i,columnWidth:"180px"}},J2e={name:"Cascader",common:ct,peers:{InternalSelectMenu:_y,InternalSelection:Zk,Scrollbar:Pa,Checkbox:fp,Empty:Sy},self:Z2e},eTe=J2e,tTe=S("svg",{viewBox:"0 0 64 64",class:"check-icon"},S("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),rTe=S("svg",{viewBox:"0 0 100 100",class:"line-icon"},S("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),mq="n-checkbox-group",nTe={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},yq=ge({name:"CheckboxGroup",props:nTe,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=Da(e),{mergedSizeRef:n,mergedDisabledRef:o}=r,a=q(e.defaultValue),i=L(()=>e.value),s=Ir(i,a),l=L(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),u=L(()=>Array.isArray(s.value)?new Set(s.value):new Set);function c(d,f){const{nTriggerFormInput:A,nTriggerFormChange:h}=r,{onChange:v,"onUpdate:value":p,onUpdateValue:g}=e;if(Array.isArray(s.value)){const m=Array.from(s.value),y=m.findIndex(b=>b===f);d?~y||(m.push(f),g&&Te(g,m,{actionType:"check",value:f}),p&&Te(p,m,{actionType:"check",value:f}),A(),h(),a.value=m,v&&Te(v,m)):~y&&(m.splice(y,1),g&&Te(g,m,{actionType:"uncheck",value:f}),p&&Te(p,m,{actionType:"uncheck",value:f}),v&&Te(v,m),a.value=m,A(),h())}else d?(g&&Te(g,[f],{actionType:"check",value:f}),p&&Te(p,[f],{actionType:"check",value:f}),v&&Te(v,[f]),a.value=[f],A(),h()):(g&&Te(g,[],{actionType:"uncheck",value:f}),p&&Te(p,[],{actionType:"uncheck",value:f}),v&&Te(v,[]),a.value=[],A(),h())}return _t(mq,{checkedCountRef:l,maxRef:Re(e,"max"),minRef:Re(e,"min"),valueSetRef:u,disabledRef:o,mergedSizeRef:n,toggleCheckbox:c}),{mergedClsPrefix:t}},render(){return S("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),oTe=N([P("checkbox",`
  2045. line-height: var(--n-label-line-height);
  2046. font-size: var(--n-font-size);
  2047. outline: none;
  2048. cursor: pointer;
  2049. display: inline-flex;
  2050. flex-wrap: nowrap;
  2051. align-items: flex-start;
  2052. word-break: break-word;
  2053. --n-merged-color-table: var(--n-color-table);
  2054. `,[N("&:hover",[P("checkbox-box",[G("border",{border:"var(--n-border-checked)"})])]),N("&:focus:not(:active)",[P("checkbox-box",[G("border",`
  2055. border: var(--n-border-focus);
  2056. box-shadow: var(--n-box-shadow-focus);
  2057. `)])]),j("inside-table",[P("checkbox-box",`
  2058. background-color: var(--n-merged-color-table);
  2059. `)]),j("checked",[P("checkbox-box",`
  2060. background-color: var(--n-color-checked);
  2061. `,[P("checkbox-icon",[N(".check-icon",`
  2062. opacity: 1;
  2063. transform: scale(1);
  2064. `)])])]),j("indeterminate",[P("checkbox-box",[P("checkbox-icon",[N(".check-icon",`
  2065. opacity: 0;
  2066. transform: scale(.5);
  2067. `),N(".line-icon",`
  2068. opacity: 1;
  2069. transform: scale(1);
  2070. `)])])]),j("checked, indeterminate",[N("&:focus:not(:active)",[P("checkbox-box",[G("border",`
  2071. border: var(--n-border-checked);
  2072. box-shadow: var(--n-box-shadow-focus);
  2073. `)])]),P("checkbox-box",`
  2074. background-color: var(--n-color-checked);
  2075. border-left: 0;
  2076. border-top: 0;
  2077. `,[G("border",{border:"var(--n-border-checked)"})])]),j("disabled",{cursor:"not-allowed"},[j("checked",[P("checkbox-box",`
  2078. background-color: var(--n-color-disabled-checked);
  2079. `,[G("border",{border:"var(--n-border-disabled-checked)"}),P("checkbox-icon",[N(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),P("checkbox-box",`
  2080. background-color: var(--n-color-disabled);
  2081. `,[G("border",{border:"var(--n-border-disabled)"}),P("checkbox-icon",[N(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),G("label",{color:"var(--n-text-color-disabled)"})]),P("checkbox-box-wrapper",`
  2082. position: relative;
  2083. width: var(--n-size);
  2084. flex-shrink: 0;
  2085. flex-grow: 0;
  2086. user-select: none;
  2087. -webkit-user-select: none;
  2088. `),P("checkbox-box",`
  2089. position: absolute;
  2090. left: 0;
  2091. top: 50%;
  2092. transform: translateY(-50%);
  2093. height: var(--n-size);
  2094. width: var(--n-size);
  2095. display: inline-block;
  2096. box-sizing: border-box;
  2097. border-radius: var(--n-border-radius);
  2098. background-color: var(--n-color);
  2099. transition: background-color 0.3s var(--n-bezier);
  2100. `,[G("border",`
  2101. transition:
  2102. border-color .3s var(--n-bezier),
  2103. box-shadow .3s var(--n-bezier);
  2104. border-radius: inherit;
  2105. position: absolute;
  2106. left: 0;
  2107. right: 0;
  2108. top: 0;
  2109. bottom: 0;
  2110. border: var(--n-border);
  2111. `),P("checkbox-icon",`
  2112. display: flex;
  2113. align-items: center;
  2114. justify-content: center;
  2115. position: absolute;
  2116. left: 1px;
  2117. right: 1px;
  2118. top: 1px;
  2119. bottom: 1px;
  2120. `,[N(".check-icon, .line-icon",`
  2121. width: 100%;
  2122. fill: var(--n-check-mark-color);
  2123. opacity: 0;
  2124. transform: scale(0.5);
  2125. transform-origin: center;
  2126. transition:
  2127. fill 0.3s var(--n-bezier),
  2128. transform 0.3s var(--n-bezier),
  2129. opacity 0.3s var(--n-bezier),
  2130. border-color 0.3s var(--n-bezier);
  2131. `),Jn({left:"1px",top:"1px"})])]),G("label",`
  2132. color: var(--n-text-color);
  2133. transition: color .3s var(--n-bezier);
  2134. user-select: none;
  2135. -webkit-user-select: none;
  2136. padding: var(--n-label-padding);
  2137. font-weight: var(--n-label-font-weight);
  2138. `,[N("&:empty",{display:"none"})])]),_u(P("checkbox",`
  2139. --n-merged-color-table: var(--n-color-table-modal);
  2140. `)),dd(P("checkbox",`
  2141. --n-merged-color-table: var(--n-color-table-popover);
  2142. `))]),aTe=Object.assign(Object.assign({},Me.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),By=ge({name:"Checkbox",props:aTe,setup(e){const t=q(null),{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=Da(e,{mergedSize(w){const{size:C}=e;if(C!==void 0)return C;if(l){const{value:_}=l.mergedSizeRef;if(_!==void 0)return _}if(w){const{mergedSize:_}=w;if(_!==void 0)return _.value}return"medium"},mergedDisabled(w){const{disabled:C}=e;if(C!==void 0)return C;if(l){if(l.disabledRef.value)return!0;const{maxRef:{value:_},checkedCountRef:B}=l;if(_!==void 0&&B.value>=_&&!f.value)return!0;const{minRef:{value:T}}=l;if(T!==void 0&&B.value<=T&&f.value)return!0}return w?w.disabled.value:!1}}),{mergedDisabledRef:i,mergedSizeRef:s}=a,l=Ke(mq,null),u=q(e.defaultChecked),c=Re(e,"checked"),d=Ir(c,u),f=Ft(()=>{if(l){const w=l.valueSetRef.value;return w&&e.value!==void 0?w.has(e.value):!1}else return d.value===e.checkedValue}),A=Me("Checkbox","-checkbox",oTe,iL,e,r);function h(w){if(l&&e.value!==void 0)l.toggleCheckbox(!f.value,e.value);else{const{onChange:C,"onUpdate:checked":_,onUpdateChecked:B}=e,{nTriggerFormInput:T,nTriggerFormChange:E}=a,I=f.value?e.uncheckedValue:e.checkedValue;_&&Te(_,I,w),B&&Te(B,I,w),C&&Te(C,I,w),T(),E(),u.value=I}}function v(w){i.value||h(w)}function p(w){if(!i.value)switch(w.key){case" ":case"Enter":h(w)}}function g(w){switch(w.key){case" ":w.preventDefault()}}const m={focus:()=>{var w;(w=t.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=t.value)===null||w===void 0||w.blur()}},y=dn("Checkbox",o,r),b=L(()=>{const{value:w}=s,{common:{cubicBezierEaseInOut:C},self:{borderRadius:_,color:B,colorChecked:T,colorDisabled:E,colorTableHeader:I,colorTableHeaderModal:R,colorTableHeaderPopover:D,checkMarkColor:F,checkMarkColorDisabled:M,border:$,borderFocus:O,borderDisabled:Q,borderChecked:V,boxShadowFocus:W,textColor:Z,textColorDisabled:te,checkMarkColorDisabledChecked:ae,colorDisabledChecked:re,borderDisabledChecked:le,labelPadding:se,labelLineHeight:ce,labelFontWeight:be,[_e("fontSize",w)]:de,[_e("size",w)]:pe}}=A.value;return{"--n-label-line-height":ce,"--n-label-font-weight":be,"--n-size":pe,"--n-bezier":C,"--n-border-radius":_,"--n-border":$,"--n-border-checked":V,"--n-border-focus":O,"--n-border-disabled":Q,"--n-border-disabled-checked":le,"--n-box-shadow-focus":W,"--n-color":B,"--n-color-checked":T,"--n-color-table":I,"--n-color-table-modal":R,"--n-color-table-popover":D,"--n-color-disabled":E,"--n-color-disabled-checked":re,"--n-text-color":Z,"--n-text-color-disabled":te,"--n-check-mark-color":F,"--n-check-mark-color-disabled":M,"--n-check-mark-color-disabled-checked":ae,"--n-font-size":de,"--n-label-padding":se}}),x=n?Et("checkbox",L(()=>s.value[0]),b,e):void 0;return Object.assign(a,m,{rtlEnabled:y,selfRef:t,mergedClsPrefix:r,mergedDisabled:i,renderedChecked:f,mergedTheme:A,labelId:Pi(),handleClick:v,handleKeyUp:p,handleKeyDown:g,cssVars:n?void 0:b,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender})},render(){var e;const{$slots:t,renderedChecked:r,mergedDisabled:n,indeterminate:o,privateInsideTable:a,cssVars:i,labelId:s,label:l,mergedClsPrefix:u,focusable:c,handleKeyUp:d,handleKeyDown:f,handleClick:A}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,r&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,o&&`${u}-checkbox--indeterminate`,a&&`${u}-checkbox--inside-table`],tabindex:n||!c?void 0:0,role:"checkbox","aria-checked":o?"mixed":r,"aria-labelledby":s,style:i,onKeyup:d,onKeydown:f,onClick:A,onMousedown:()=>{or("selectstart",window,h=>{h.preventDefault()},{once:!0})}},S("div",{class:`${u}-checkbox-box-wrapper`}," ",S("div",{class:`${u}-checkbox-box`},S(yl,null,{default:()=>this.indeterminate?S("div",{key:"indeterminate",class:`${u}-checkbox-icon`},rTe):S("div",{key:"check",class:`${u}-checkbox-icon`},tTe)}),S("div",{class:`${u}-checkbox-box__border`}))),l!==null||t.default?S("span",{class:`${u}-checkbox__label`,id:s},t.default?t.default():l):null)}}),iTe={name:"Code",common:ct,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:o}}},bq=iTe,sTe=e=>{const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},lTe={name:"Code",common:Lt,self:sTe},uTe=lTe,cTe=N([P("code",`
  2143. font-size: var(--n-font-size);
  2144. font-family: var(--n-font-family);
  2145. `,[j("show-line-numbers",`
  2146. display: flex;
  2147. `),G("line-numbers",`
  2148. user-select: none;
  2149. padding-right: 12px;
  2150. text-align: right;
  2151. transition: color .3s var(--n-bezier);
  2152. color: var(--n-line-number-text-color);
  2153. `),j("word-wrap",[N("pre",`
  2154. white-space: pre-wrap;
  2155. word-break: break-all;
  2156. `)]),N("pre",`
  2157. margin: 0;
  2158. line-height: inherit;
  2159. font-size: inherit;
  2160. font-family: inherit;
  2161. `),N("[class^=hljs]",`
  2162. color: var(--n-text-color);
  2163. transition:
  2164. color .3s var(--n-bezier),
  2165. background-color .3s var(--n-bezier);
  2166. `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment,
  2167. ${t} .hljs-quote {
  2168. color: var(--n-mono-3);
  2169. font-style: italic;
  2170. }`,`${t} .hljs-doctag,
  2171. ${t} .hljs-keyword,
  2172. ${t} .hljs-formula {
  2173. color: var(--n-hue-3);
  2174. }`,`${t} .hljs-section,
  2175. ${t} .hljs-name,
  2176. ${t} .hljs-selector-tag,
  2177. ${t} .hljs-deletion,
  2178. ${t} .hljs-subst {
  2179. color: var(--n-hue-5);
  2180. }`,`${t} .hljs-literal {
  2181. color: var(--n-hue-1);
  2182. }`,`${t} .hljs-string,
  2183. ${t} .hljs-regexp,
  2184. ${t} .hljs-addition,
  2185. ${t} .hljs-attribute,
  2186. ${t} .hljs-meta-string {
  2187. color: var(--n-hue-4);
  2188. }`,`${t} .hljs-built_in,
  2189. ${t} .hljs-class .hljs-title {
  2190. color: var(--n-hue-6-2);
  2191. }`,`${t} .hljs-attr,
  2192. ${t} .hljs-variable,
  2193. ${t} .hljs-template-variable,
  2194. ${t} .hljs-type,
  2195. ${t} .hljs-selector-class,
  2196. ${t} .hljs-selector-attr,
  2197. ${t} .hljs-selector-pseudo,
  2198. ${t} .hljs-number {
  2199. color: var(--n-hue-6);
  2200. }`,`${t} .hljs-symbol,
  2201. ${t} .hljs-bullet,
  2202. ${t} .hljs-link,
  2203. ${t} .hljs-meta,
  2204. ${t} .hljs-selector-id,
  2205. ${t} .hljs-title {
  2206. color: var(--n-hue-2);
  2207. }`,`${t} .hljs-emphasis {
  2208. font-style: italic;
  2209. }`,`${t} .hljs-strong {
  2210. font-weight: var(--n-font-weight-strong);
  2211. }`,`${t} .hljs-link {
  2212. text-decoration: underline;
  2213. }`]}]),dTe=Object.assign(Object.assign({},Me.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),fTe=ge({name:"Code",props:dTe,setup(e,{slots:t}){const{internalNoHighlight:r}=e,{mergedClsPrefixRef:n,inlineThemeDisabled:o}=nt(),a=q(null),i=r?{value:void 0}:Cwe(e),s=(A,h,v)=>{const{value:p}=i;return!p||!(A&&p.getLanguage(A))?null:p.highlight(v?h.trim():h,{language:A}).value},l=L(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),u=()=>{if(t.default)return;const{value:A}=a;if(!A)return;const{language:h}=e,v=e.uri?window.decodeURIComponent(e.code):e.code;if(h){const g=s(h,v,e.trim);if(g!==null){if(e.inline)A.innerHTML=g;else{const m=A.querySelector(".__code__");m&&A.removeChild(m);const y=document.createElement("pre");y.className="__code__",y.innerHTML=g,A.appendChild(y)}return}}if(e.inline){A.textContent=v;return}const p=A.querySelector(".__code__");if(p)p.textContent=v;else{const g=document.createElement("pre");g.className="__code__",g.textContent=v,A.innerHTML="",A.appendChild(g)}};yr(u),gt(Re(e,"language"),u),gt(Re(e,"code"),u),r||gt(i,u);const c=Me("Code","-code",cTe,uTe,e,n),d=L(()=>{const{common:{cubicBezierEaseInOut:A,fontFamilyMono:h},self:{textColor:v,fontSize:p,fontWeightStrong:g,lineNumberTextColor:m,"mono-3":y,"hue-1":b,"hue-2":x,"hue-3":w,"hue-4":C,"hue-5":_,"hue-5-2":B,"hue-6":T,"hue-6-2":E}}=c.value,{internalFontSize:I}=e;return{"--n-font-size":I?`${I}px`:p,"--n-font-family":h,"--n-font-weight-strong":g,"--n-bezier":A,"--n-text-color":v,"--n-mono-3":y,"--n-hue-1":b,"--n-hue-2":x,"--n-hue-3":w,"--n-hue-4":C,"--n-hue-5":_,"--n-hue-5-2":B,"--n-hue-6":T,"--n-hue-6-2":E,"--n-line-number-text-color":m}}),f=o?Et("code",L(()=>`${e.internalFontSize||"a"}`),d,e):void 0;return{mergedClsPrefix:n,codeRef:a,mergedShowLineNumbers:l,lineNumbers:L(()=>{let A=1;const h=[];let v=!1;for(const p of e.code)p===`
  2214. `?(v=!0,h.push(A++)):v=!1;return v||h.push(A++),h.join(`
  2215. `)}),cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e,t;const{mergedClsPrefix:r,wordWrap:n,mergedShowLineNumbers:o,onRender:a}=this;return a==null||a(),S("code",{class:[`${r}-code`,this.themeClass,n&&`${r}-code--word-wrap`,o&&`${r}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?S("pre",{class:`${r}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),xq=e=>{const{fontWeight:t,textColor1:r,textColor2:n,textColorDisabled:o,dividerColor:a,fontSize:i}=e;return{titleFontSize:i,titleFontWeight:t,dividerColor:a,titleTextColor:r,titleTextColorDisabled:o,fontSize:i,textColor:n,arrowColor:n,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},ATe={name:"Collapse",common:Lt,self:xq},hTe=ATe,vTe={name:"Collapse",common:ct,self:xq},pTe=vTe,gTe=P("collapse","width: 100%;",[P("collapse-item",`
  2216. font-size: var(--n-font-size);
  2217. color: var(--n-text-color);
  2218. transition:
  2219. color .3s var(--n-bezier),
  2220. border-color .3s var(--n-bezier);
  2221. margin: var(--n-item-margin);
  2222. `,[j("disabled",[G("header","cursor: not-allowed;",[G("header-main",`
  2223. color: var(--n-title-text-color-disabled);
  2224. `),P("collapse-item-arrow",`
  2225. color: var(--n-arrow-color-disabled);
  2226. `)])]),P("collapse-item","margin-left: 32px;"),N("&:first-child","margin-top: 0;"),N("&:first-child >",[G("header","padding-top: 0;")]),j("left-arrow-placement",[G("header",[P("collapse-item-arrow","margin-right: 4px;")])]),j("right-arrow-placement",[G("header",[P("collapse-item-arrow","margin-left: 4px;")])]),G("content-wrapper",[G("content-inner","padding-top: 16px;"),fu({duration:"0.15s"})]),j("active",[G("header",[j("active",[P("collapse-item-arrow","transform: rotate(90deg);")])])]),N("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),G("header",`
  2227. font-size: var(--n-title-font-size);
  2228. display: flex;
  2229. flex-wrap: nowrap;
  2230. align-items: center;
  2231. transition: color .3s var(--n-bezier);
  2232. position: relative;
  2233. padding: 16px 0 0 0;
  2234. color: var(--n-title-text-color);
  2235. cursor: pointer;
  2236. `,[G("header-main",`
  2237. display: flex;
  2238. flex-wrap: nowrap;
  2239. align-items: center;
  2240. font-weight: var(--n-title-font-weight);
  2241. transition: color .3s var(--n-bezier);
  2242. flex: 1;
  2243. color: var(--n-title-text-color);
  2244. `),G("header-extra",`
  2245. display: flex;
  2246. align-items: center;
  2247. transition: color .3s var(--n-bezier);
  2248. color: var(--n-text-color);
  2249. `),P("collapse-item-arrow",`
  2250. display: flex;
  2251. transition:
  2252. transform .15s var(--n-bezier),
  2253. color .3s var(--n-bezier);
  2254. font-size: 18px;
  2255. color: var(--n-arrow-color);
  2256. `)])])]),mTe=Object.assign(Object.assign({},Me.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),wq="n-collapse",yTe=ge({name:"Collapse",props:mTe,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=q(e.defaultExpandedNames),i=L(()=>e.expandedNames),s=Ir(i,a),l=Me("Collapse","-collapse",gTe,hTe,e,r);function u(v){const{"onUpdate:expandedNames":p,onUpdateExpandedNames:g,onExpandedNamesChange:m}=e;g&&Te(g,v),p&&Te(p,v),m&&Te(m,v),a.value=v}function c(v){const{onItemHeaderClick:p}=e;p&&Te(p,v)}function d(v,p,g){const{accordion:m}=e,{value:y}=s;if(m)v?(u([p]),c({name:p,expanded:!0,event:g})):(u([]),c({name:p,expanded:!1,event:g}));else if(!Array.isArray(y))u([p]),c({name:p,expanded:!0,event:g});else{const b=y.slice(),x=b.findIndex(w=>p===w);~x?(b.splice(x,1),u(b),c({name:p,expanded:!1,event:g})):(b.push(p),u(b),c({name:p,expanded:!0,event:g}))}}_t(wq,{props:e,mergedClsPrefixRef:r,expandedNamesRef:s,slots:t,toggleItem:d});const f=dn("Collapse",o,r),A=L(()=>{const{common:{cubicBezierEaseInOut:v},self:{titleFontWeight:p,dividerColor:g,titleTextColor:m,titleTextColorDisabled:y,textColor:b,arrowColor:x,fontSize:w,titleFontSize:C,arrowColorDisabled:_,itemMargin:B}}=l.value;return{"--n-font-size":w,"--n-bezier":v,"--n-text-color":b,"--n-divider-color":g,"--n-title-font-size":C,"--n-title-text-color":m,"--n-title-text-color-disabled":y,"--n-title-font-weight":p,"--n-arrow-color":x,"--n-arrow-color-disabled":_,"--n-item-margin":B}}),h=n?Et("collapse",void 0,A,e):void 0;return{rtlEnabled:f,mergedTheme:l,mergedClsPrefix:r,cssVars:n?void 0:A,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),bTe=ge({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Kj(Re(e,"show"))}},render(){return S(bl,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:r,clsPrefix:n}=this,o=t==="show"&&r,a=S("div",{class:`${n}-collapse-item__content-wrapper`},S("div",{class:`${n}-collapse-item__content-inner`},this.$slots));return o?en(a,[[Ln,e]]):e?a:null}})}}),xTe={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},wTe=ge({name:"CollapseItem",props:xTe,setup(e){const{mergedRtlRef:t}=nt(e),r=Pi(),n=Ft(()=>{var d;return(d=e.name)!==null&&d!==void 0?d:r}),o=Ke(wq);o||$o("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:a,props:i,mergedClsPrefixRef:s,slots:l}=o,u=L(()=>{const{value:d}=a;if(Array.isArray(d)){const{value:f}=n;return!~d.findIndex(A=>A===f)}else if(d){const{value:f}=n;return f!==d}return!0});return{rtlEnabled:dn("Collapse",t,s),collapseSlots:l,randomName:r,mergedClsPrefix:s,collapsed:u,mergedDisplayDirective:L(()=>{const{displayDirective:d}=e;return d||i.displayDirective}),arrowPlacement:L(()=>i.arrowPlacement),handleClick(d){o&&!e.disabled&&o.toggleItem(u.value,n.value,d)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:r,collapsed:n,mergedDisplayDirective:o,mergedClsPrefix:a,disabled:i}=this,s=um(t.header,{collapsed:n},()=>[this.title]),l=t["header-extra"]||e["header-extra"],u=t.arrow||e.arrow;return S("div",{class:[`${a}-collapse-item`,`${a}-collapse-item--${r}-arrow-placement`,i&&`${a}-collapse-item--disabled`,!n&&`${a}-collapse-item--active`]},S("div",{class:[`${a}-collapse-item__header`,!n&&`${a}-collapse-item__header--active`]},S("div",{class:`${a}-collapse-item__header-main`,onClick:this.handleClick},r==="right"&&s,S("div",{class:`${a}-collapse-item-arrow`,key:this.rtlEnabled?0:1},um(u,{collapsed:n},()=>{var c;return[S(zt,{clsPrefix:a},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>this.rtlEnabled?S(Bwe,null):S($S,null)})]})),r==="left"&&s),cve(l,{collapsed:n},c=>S("div",{class:`${a}-collapse-item__header-extra`,onClick:this.handleClick},c))),S(bTe,{clsPrefix:a,displayDirective:o,show:!n},t))}}),CTe=P("collapse-transition",{width:"100%"},[fu()]),Cq=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},STe={name:"CollapseTransition",common:Lt,self:Cq},_Te=STe,BTe={name:"CollapseTransition",common:ct,self:Cq},TTe=BTe,ETe=Object.assign(Object.assign({},Me.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),ITe=ge({name:"CollapseTransition",props:ETe,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=nt(e),o=Me("CollapseTransition","-collapse-transition",CTe,_Te,e,t),a=dn("CollapseTransition",n,t),i=L(()=>e.collapsed!==void 0?e.collapsed:e.show),s=L(()=>{const{self:{bezier:u}}=o.value;return{"--n-bezier":u}}),l=r?Et("collapse-transition",void 0,s,e):void 0;return{rtlEnabled:a,mergedShow:i,mergedClsPrefix:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){return S(bl,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),S("div",wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),RTe={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(ei("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},Sq=ge({name:"ConfigProvider",alias:["App"],props:RTe,setup(e){const t=Ke(fl,null),r=L(()=>{const{theme:h}=e;if(h===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return h===void 0?v:v===void 0?h:Object.assign({},v,h)}),n=L(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?h:Vg({},v,h)}}}),o=Ft(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),a=Ft(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),i=L(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),s=L(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),l=L(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t==null?void 0:t.mergedClsPrefixRef.value}),u=L(()=>{var h;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const p={};for(const g of v)p[g.name]=uu(g),(h=g.peers)===null||h===void 0||h.forEach(m=>{m.name in p||(p[m.name]=uu(m))});return p}),c=L(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),A=L(()=>{const{value:h}=r,{value:v}=n,p=v&&Object.keys(v).length!==0,g=h==null?void 0:h.name;return g?p?`${g}-${cm(JSON.stringify(n.value))}`:g:p?cm(JSON.stringify(n.value)):""});return _t(fl,{mergedThemeHashRef:A,mergedBreakpointsRef:c,mergedRtlRef:u,mergedIconsRef:i,mergedComponentPropsRef:s,mergedBorderedRef:a,mergedNamespaceRef:o,mergedClsPrefixRef:l,mergedLocaleRef:L(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:L(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:L(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedKatexRef:L(()=>{const{katex:h}=e;return h===void 0?t==null?void 0:t.mergedKatexRef.value:h}),mergedThemeRef:r,mergedThemeOverridesRef:n,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:a,mergedNamespace:o,mergedTheme:r,mergedThemeOverrides:n}},render(){var e,t,r,n;return this.abstract?(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r):S(this.as||this.tag,{class:`${this.mergedClsPrefix||iX}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),DTe={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},MTe=ge({name:"Countdown",props:DTe,setup(e){let t=null,r=0,n=!1;const o=q(0);Sr(()=>{o.value=e.duration});let a=-1;function i(A){return e.duration-r+a-A}function s(A){const h=Math.floor(A/36e5),v=Math.floor(A%36e5/6e4),p=Math.floor(A%6e4/1e3),g=Math.floor(A%1e3);return{hours:h,minutes:v,seconds:p,milliseconds:g}}function l(A){const{hours:h,minutes:v,seconds:p,milliseconds:g}=A,{precision:m}=e;switch(m){case 0:return`${String(h).padStart(2,"0")}:${String(v).padStart(2,"0")}:${String(p).padStart(2,"0")}`;default:return`${String(h).padStart(2,"0")}:${String(v).padStart(2,"0")}:${String(p).padStart(2,"0")}.${String(Math.floor(g/(m===1?100:m===2?10:1))).padStart(m,"0")}`}}const u=()=>{var A;const{precision:h}=e,v=i(performance.now());if(v<=0){o.value=0,c(),n||(n=!0,(A=e.onFinish)===null||A===void 0||A.call(e));return}let p;switch(h){case 3:case 2:p=v%34;break;case 1:p=v%100;break;default:p=v%1e3}o.value=v,t=window.setTimeout(()=>{u()},p)},c=()=>{t!==null&&(window.clearTimeout(t),t=null)};yr(()=>{Sr(()=>{if(e.active)a=performance.now(),u();else{const A=performance.now();a!==-1&&(r+=A-a),c()}})}),Hr(()=>{c()});function d(){o.value=e.duration,r=0,a=performance.now(),e.active&&n&&u(),n=!1}return Object.assign({reset:d},{distance:o,getTimeInfo:s,getDisplayValue:l})},render(){const{render:e,precision:t,distance:r,getTimeInfo:n,getDisplayValue:o}=this;let a;switch(t){case 0:a=n(r+999),a.milliseconds=0;break;case 1:a=n(r+99),a.milliseconds=Math.floor(a.milliseconds/100)*100;break;case 2:a=n(r+9),a.milliseconds=Math.floor(a.milliseconds/10)*10;break;case 3:a=n(r)}return e?e(a):o(a)}}),PTe=e=>1-Math.pow(1-e,5);function FTe(e){const{from:t,to:r,duration:n,onUpdate:o,onFinish:a}=e,i=()=>{const l=performance.now(),u=Math.min(l-s,n),c=t+(r-t)*PTe(u/n);if(u===n){a();return}o(c),requestAnimationFrame(i)},s=performance.now();i()}const kTe={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},LTe=ge({name:"NumberAnimation",props:kTe,setup(e){const{localeRef:t}=zi("name"),{duration:r}=e,n=q(e.from),o=L(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let a=!1;const i=f=>{n.value=f},s=()=>{var f;n.value=e.to,a=!1,(f=e.onFinish)===null||f===void 0||f.call(e)},l=(f=e.from,A=e.to)=>{a=!0,n.value=e.from,f!==A&&FTe({from:f,to:A,duration:r,onUpdate:i,onFinish:s})},u=L(()=>{var f;const h=Y1e(n.value,e.precision).toFixed(e.precision).split("."),v=new Intl.NumberFormat(o.value),p=(f=v.formatToParts(.5).find(y=>y.type==="decimal"))===null||f===void 0?void 0:f.value,g=e.showSeparator?v.format(Number(h[0])):h[0],m=h[1];return{integer:g,decimal:m,decimalSeparator:p}});function c(){a||l()}return yr(()=>{Sr(()=>{e.active&&l()})}),Object.assign({formattedValue:u},{play:c})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:r}}=this;return[e,t?r:null,t]}}),OTe={name:"Popselect",common:ct,peers:{Popover:MA,InternalSelectMenu:_y}},_q=OTe;function $Te(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const UTe={name:"Popselect",common:Lt,peers:{Popover:cp,InternalSelectMenu:qk},self:$Te},sL=UTe,Bq="n-popselect",NTe=P("popselect-menu",`
  2257. box-shadow: var(--n-menu-box-shadow);
  2258. `),lL={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},PU=cl(lL),HTe=ge({name:"PopselectPanel",props:lL,setup(e){const t=Ke(Bq),{mergedClsPrefixRef:r,inlineThemeDisabled:n}=nt(e),o=Me("Popselect","-pop-select",NTe,sL,t.props,r),a=L(()=>up(e.options,OX("value","children")));function i(f,A){const{onUpdateValue:h,"onUpdate:value":v,onChange:p}=e;h&&Te(h,f,A),v&&Te(v,f,A),p&&Te(p,f,A)}function s(f){u(f.key)}function l(f){Ja(f,"action")||f.preventDefault()}function u(f){const{value:{getNode:A}}=a;if(e.multiple)if(Array.isArray(e.value)){const h=[],v=[];let p=!0;e.value.forEach(g=>{if(g===f){p=!1;return}const m=A(g);m&&(h.push(m.key),v.push(m.rawNode))}),p&&(h.push(f),v.push(A(f).rawNode)),i(h,v)}else{const h=A(f);h&&i([f],[h.rawNode])}else if(e.value===f&&e.cancelable)i(null,null);else{const h=A(f);h&&i(f,h.rawNode);const{"onUpdate:show":v,onUpdateShow:p}=t.props;v&&Te(v,!1),p&&Te(p,!1),t.setShow(!1)}dr(()=>{t.syncPosition()})}gt(Re(e,"options"),()=>{dr(()=>{t.syncPosition()})});const c=L(()=>{const{self:{menuBoxShadow:f}}=o.value;return{"--n-menu-box-shadow":f}}),d=n?Et("select",void 0,c,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:a,handleToggle:s,handleMenuMousedown:l,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),S(CX,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,r;return((r=(t=this.$slots).action)===null||r===void 0?void 0:r.call(t))||[]},empty:()=>{var t,r;return((r=(t=this.$slots).empty)===null||r===void 0?void 0:r.call(t))||[]}})}}),zTe=Object.assign(Object.assign(Object.assign(Object.assign({},Me.props),ap(Dv,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Dv.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),lL),Tq=ge({name:"Popselect",props:zTe,inheritAttrs:!1,__popover__:!0,setup(e){const t=Me("Popselect","-popselect",void 0,sL,e),r=q(null);function n(){var i;(i=r.value)===null||i===void 0||i.syncPosition()}function o(i){var s;(s=r.value)===null||s===void 0||s.setShow(i)}return _t(Bq,{props:e,mergedThemeRef:t,syncPosition:n,setShow:o}),Object.assign(Object.assign({},{syncPosition:n,setShow:o}),{popoverInstRef:r,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,n,o,a,i)=>{const{$attrs:s}=this;return S(HTe,Object.assign({},s,{class:[s.class,r],style:[s.style,o]},Xa(this.$props,PU),{ref:Lj(n),onMouseenter:x0([a,s.onMouseenter]),onMouseleave:x0([i,s.onMouseleave])}),{action:()=>{var l,u;return(u=(l=this.$slots).action)===null||u===void 0?void 0:u.call(l)},empty:()=>{var l,u;return(u=(l=this.$slots).empty)===null||u===void 0?void 0:u.call(l)}})}};return S(dp,Object.assign({},ap(this.$props,PU),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var r,n;return(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r)}})}});function Eq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const QTe={name:"Select",common:Lt,peers:{InternalSelection:PX,InternalSelectMenu:qk},self:Eq},Iq=QTe,VTe={name:"Select",common:ct,peers:{InternalSelection:Zk,InternalSelectMenu:_y},self:Eq},Rq=VTe,WTe=N([P("select",`
  2259. z-index: auto;
  2260. outline: none;
  2261. width: 100%;
  2262. position: relative;
  2263. `),P("select-menu",`
  2264. margin: 4px 0;
  2265. box-shadow: var(--n-menu-box-shadow);
  2266. `,[Ia({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),GTe=Object.assign(Object.assign({},Me.props),{to:Un.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),Dq=ge({name:"Select",props:GTe,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,namespaceRef:n,inlineThemeDisabled:o}=nt(e),a=Me("Select","-select",WTe,Iq,e,t),i=q(e.defaultValue),s=Re(e,"value"),l=Ir(s,i),u=q(!1),c=q(""),d=L(()=>{const{valueField:ue,childrenField:Ee}=e,Qe=OX(ue,Ee);return up(I.value,Qe)}),f=L(()=>TSe(T.value,e.valueField,e.childrenField)),A=q(!1),h=Ir(Re(e,"show"),A),v=q(null),p=q(null),g=q(null),{localeRef:m}=zi("Select"),y=L(()=>{var ue;return(ue=e.placeholder)!==null&&ue!==void 0?ue:m.value.placeholder}),b=Kc(e,["items","options"]),x=[],w=q([]),C=q([]),_=q(new Map),B=L(()=>{const{fallbackOption:ue}=e;if(ue===void 0){const{labelField:Ee,valueField:Qe}=e;return et=>({[Ee]:String(et),[Qe]:et})}return ue===!1?!1:Ee=>Object.assign(ue(Ee),{value:Ee})}),T=L(()=>C.value.concat(w.value).concat(b.value)),E=L(()=>{const{filter:ue}=e;if(ue)return ue;const{labelField:Ee,valueField:Qe}=e;return(et,tt)=>{if(!tt)return!1;const xe=tt[Ee];if(typeof xe=="string")return d2(et,xe);const $e=tt[Qe];return typeof $e=="string"?d2(et,$e):typeof $e=="number"?d2(et,String($e)):!1}}),I=L(()=>{if(e.remote)return b.value;{const{value:ue}=T,{value:Ee}=c;return!Ee.length||!e.filterable?ue:BSe(ue,E.value,Ee,e.childrenField)}});function R(ue){const Ee=e.remote,{value:Qe}=_,{value:et}=f,{value:tt}=B,xe=[];return ue.forEach($e=>{if(et.has($e))xe.push(et.get($e));else if(Ee&&Qe.has($e))xe.push(Qe.get($e));else if(tt){const Xe=tt($e);Xe&&xe.push(Xe)}}),xe}const D=L(()=>{if(e.multiple){const{value:ue}=l;return Array.isArray(ue)?R(ue):[]}return null}),F=L(()=>{const{value:ue}=l;return!e.multiple&&!Array.isArray(ue)?ue===null?null:R([ue])[0]||null:null}),M=Da(e),{mergedSizeRef:$,mergedDisabledRef:O,mergedStatusRef:Q}=M;function V(ue,Ee){const{onChange:Qe,"onUpdate:value":et,onUpdateValue:tt}=e,{nTriggerFormChange:xe,nTriggerFormInput:$e}=M;Qe&&Te(Qe,ue,Ee),tt&&Te(tt,ue,Ee),et&&Te(et,ue,Ee),i.value=ue,xe(),$e()}function W(ue){const{onBlur:Ee}=e,{nTriggerFormBlur:Qe}=M;Ee&&Te(Ee,ue),Qe()}function Z(){const{onClear:ue}=e;ue&&Te(ue)}function te(ue){const{onFocus:Ee,showOnFocus:Qe}=e,{nTriggerFormFocus:et}=M;Ee&&Te(Ee,ue),et(),Qe&&ce()}function ae(ue){const{onSearch:Ee}=e;Ee&&Te(Ee,ue)}function re(ue){const{onScroll:Ee}=e;Ee&&Te(Ee,ue)}function le(){var ue;const{remote:Ee,multiple:Qe}=e;if(Ee){const{value:et}=_;if(Qe){const{valueField:tt}=e;(ue=D.value)===null||ue===void 0||ue.forEach(xe=>{et.set(xe[tt],xe)})}else{const tt=F.value;tt&&et.set(tt[e.valueField],tt)}}}function se(ue){const{onUpdateShow:Ee,"onUpdate:show":Qe}=e;Ee&&Te(Ee,ue),Qe&&Te(Qe,ue),A.value=ue}function ce(){O.value||(se(!0),A.value=!0,e.filterable&&mt())}function be(){se(!1)}function de(){c.value="",C.value=x}const pe=q(!1);function K(){e.filterable&&(pe.value=!0)}function U(){e.filterable&&(pe.value=!1,h.value||de())}function k(){O.value||(h.value?e.filterable?mt():be():ce())}function J(ue){var Ee,Qe;!((Qe=(Ee=g.value)===null||Ee===void 0?void 0:Ee.selfRef)===null||Qe===void 0)&&Qe.contains(ue.relatedTarget)||(u.value=!1,W(ue),be())}function ee(ue){te(ue),u.value=!0}function H(ue){u.value=!0}function Y(ue){var Ee;!((Ee=v.value)===null||Ee===void 0)&&Ee.$el.contains(ue.relatedTarget)||(u.value=!1,W(ue),be())}function oe(){var ue;(ue=v.value)===null||ue===void 0||ue.focus(),be()}function he(ue){var Ee;h.value&&(!((Ee=v.value)===null||Ee===void 0)&&Ee.$el.contains(gs(ue))||be())}function ne(ue){if(!Array.isArray(ue))return[];if(B.value)return Array.from(ue);{const{remote:Ee}=e,{value:Qe}=f;if(Ee){const{value:et}=_;return ue.filter(tt=>Qe.has(tt)||et.has(tt))}else return ue.filter(et=>Qe.has(et))}}function Ae(ue){X(ue.rawNode)}function X(ue){if(O.value)return;const{tag:Ee,remote:Qe,clearFilterAfterSelect:et,valueField:tt}=e;if(Ee&&!Qe){const{value:xe}=C,$e=xe[0]||null;if($e){const Xe=w.value;Xe.length?Xe.push($e):w.value=[$e],C.value=x}}if(Qe&&_.value.set(ue[tt],ue),e.multiple){const xe=ne(l.value),$e=xe.findIndex(Xe=>Xe===ue[tt]);if(~$e){if(xe.splice($e,1),Ee&&!Qe){const Xe=ie(ue[tt]);~Xe&&(w.value.splice(Xe,1),et&&(c.value=""))}}else xe.push(ue[tt]),et&&(c.value="");V(xe,R(xe))}else{if(Ee&&!Qe){const xe=ie(ue[tt]);~xe?w.value=[w.value[xe]]:w.value=x}lt(),be(),V(ue[tt],ue)}}function ie(ue){return w.value.findIndex(Qe=>Qe[e.valueField]===ue)}function fe(ue){h.value||ce();const{value:Ee}=ue.target;c.value=Ee;const{tag:Qe,remote:et}=e;if(ae(Ee),Qe&&!et){if(!Ee){C.value=x;return}const{onCreate:tt}=e,xe=tt?tt(Ee):{[e.labelField]:Ee,[e.valueField]:Ee},{valueField:$e}=e;b.value.some(Xe=>Xe[$e]===xe[$e])||w.value.some(Xe=>Xe[$e]===xe[$e])?C.value=x:C.value=[xe]}}function ye(ue){ue.stopPropagation();const{multiple:Ee}=e;!Ee&&e.filterable&&be(),Z(),Ee?V([],[]):V(null,null)}function Fe(ue){!Ja(ue,"action")&&!Ja(ue,"empty")&&ue.preventDefault()}function Ne(ue){re(ue)}function rt(ue){var Ee,Qe,et,tt,xe;switch(ue.key){case" ":if(e.filterable)break;ue.preventDefault();case"Enter":if(!(!((Ee=v.value)===null||Ee===void 0)&&Ee.isComposing)){if(h.value){const $e=(Qe=g.value)===null||Qe===void 0?void 0:Qe.getPendingTmNode();$e?Ae($e):e.filterable||(be(),lt())}else if(ce(),e.tag&&pe.value){const $e=C.value[0];if($e){const Xe=$e[e.valueField],{value:ht}=l;e.multiple&&Array.isArray(ht)&&ht.some(Se=>Se===Xe)||X($e)}}}ue.preventDefault();break;case"ArrowUp":if(ue.preventDefault(),e.loading)return;h.value&&((et=g.value)===null||et===void 0||et.prev());break;case"ArrowDown":if(ue.preventDefault(),e.loading)return;h.value?(tt=g.value)===null||tt===void 0||tt.next():ce();break;case"Escape":h.value&&(fm(ue),be()),(xe=v.value)===null||xe===void 0||xe.focus();break}}function lt(){var ue;(ue=v.value)===null||ue===void 0||ue.focus()}function mt(){var ue;(ue=v.value)===null||ue===void 0||ue.focusInput()}function Ge(){var ue;h.value&&((ue=p.value)===null||ue===void 0||ue.syncPosition())}le(),gt(Re(e,"options"),le);const it={focus:()=>{var ue;(ue=v.value)===null||ue===void 0||ue.focus()},blur:()=>{var ue;(ue=v.value)===null||ue===void 0||ue.blur()}},je=L(()=>{const{self:{menuBoxShadow:ue}}=a.value;return{"--n-menu-box-shadow":ue}}),Ye=o?Et("select",void 0,je,e):void 0;return Object.assign(Object.assign({},it),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:r,namespace:n,treeMate:d,isMounted:oi(),triggerRef:v,menuRef:g,pattern:c,uncontrolledShow:A,mergedShow:h,adjustedTo:Un(e),uncontrolledValue:i,mergedValue:l,followerRef:p,localizedPlaceholder:y,selectedOption:F,selectedOptions:D,mergedSize:$,mergedDisabled:O,focused:u,activeWithoutMenuOpen:pe,inlineThemeDisabled:o,onTriggerInputFocus:K,onTriggerInputBlur:U,handleTriggerOrMenuResize:Ge,handleMenuFocus:H,handleMenuBlur:Y,handleMenuTabOut:oe,handleTriggerClick:k,handleToggle:Ae,handleDeleteOption:X,handlePatternInput:fe,handleClear:ye,handleTriggerBlur:J,handleTriggerFocus:ee,handleKeydown:rt,handleMenuAfterLeave:de,handleMenuClickOutside:he,handleMenuScroll:Ne,handleMenuKeydown:rt,handleMenuMousedown:Fe,mergedTheme:a,cssVars:o?void 0:je,themeClass:Ye==null?void 0:Ye.themeClass,onRender:Ye==null?void 0:Ye.onRender})},render(){return S("div",{class:`${this.mergedClsPrefix}-select`},S(fd,null,{default:()=>[S(Ad,null,{default:()=>S(lSe,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),S(vd,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Un.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,r;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),en(S(CX,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(r=this.menuProps)===null||r===void 0?void 0:r.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,o;return[(o=(n=this.$slots).empty)===null||o===void 0?void 0:o.call(n)]},action:()=>{var n,o;return[(o=(n=this.$slots).action)===null||o===void 0?void 0:o.call(n)]}}),this.displayDirective==="show"?[[Ln,this.mergedShow],[dl,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[dl,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),KTe={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},Mq=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:n,primaryColorPressed:o,inputColorDisabled:a,textColorDisabled:i,borderColor:s,borderRadius:l,fontSizeTiny:u,fontSizeSmall:c,fontSizeMedium:d,heightTiny:f,heightSmall:A,heightMedium:h}=e;return Object.assign(Object.assign({},KTe),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:o,itemTextColorActive:r,itemTextColorDisabled:i,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:a,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:A,itemSizeLarge:h,itemFontSizeSmall:u,itemFontSizeMedium:c,itemFontSizeLarge:d,jumperFontSizeSmall:u,jumperFontSizeMedium:c,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:i})},jTe={name:"Pagination",common:Lt,peers:{Select:Iq,Input:PA,Popselect:sL},self:Mq},Pq=jTe,YTe={name:"Pagination",common:ct,peers:{Select:Rq,Input:Qi,Popselect:_q},self(e){const{primaryColor:t,opacity3:r}=e,n=Ve(t,{alpha:Number(r)}),o=Mq(e);return o.itemBorderActive=`1px solid ${n}`,o.itemBorderDisabled="1px solid #0000",o}},Fq=YTe;function XTe(e,t,r){let n=!1,o=!1,a=1,i=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:i,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:i,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,l=t;let u=e,c=e;const d=(r-5)/2;c+=Math.ceil(d),c=Math.min(Math.max(c,s+r-3),l-2),u-=Math.floor(d),u=Math.max(Math.min(u,l-r+3),s+2);let f=!1,A=!1;u>s+2&&(f=!0),c<l-2&&(A=!0);const h=[];h.push({type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),f?(n=!0,a=u-1,h.push({type:"fast-backward",active:!1,label:void 0,options:FU(s+1,u-1)})):l>=s+1&&h.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let v=u;v<=c;++v)h.push({type:"page",label:v,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===v});return A?(o=!0,i=c+1,h.push({type:"fast-forward",active:!1,label:void 0,options:FU(c+1,l-1)})):c===l-2&&h[h.length-1].label!==l-1&&h.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:l-1,active:e===l-1}),h[h.length-1].label!==l&&h.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:l,active:e===l}),{hasFastBackward:n,hasFastForward:o,fastBackwardTo:a,fastForwardTo:i,items:h}}function FU(e,t){const r=[];for(let n=e;n<=t;++n)r.push({label:`${n}`,value:n});return r}const kU=`
  2267. background: var(--n-item-color-hover);
  2268. color: var(--n-item-text-color-hover);
  2269. border: var(--n-item-border-hover);
  2270. `,LU=[j("button",`
  2271. background: var(--n-button-color-hover);
  2272. border: var(--n-button-border-hover);
  2273. color: var(--n-button-icon-color-hover);
  2274. `)],qTe=P("pagination",`
  2275. display: flex;
  2276. vertical-align: middle;
  2277. font-size: var(--n-item-font-size);
  2278. flex-wrap: nowrap;
  2279. `,[P("pagination-prefix",`
  2280. display: flex;
  2281. align-items: center;
  2282. margin: var(--n-prefix-margin);
  2283. `),P("pagination-suffix",`
  2284. display: flex;
  2285. align-items: center;
  2286. margin: var(--n-suffix-margin);
  2287. `),N("> *:not(:first-child)",`
  2288. margin: var(--n-item-margin);
  2289. `),P("select",`
  2290. width: var(--n-select-width);
  2291. `),N("&.transition-disabled",[P("pagination-item","transition: none!important;")]),P("pagination-quick-jumper",`
  2292. white-space: nowrap;
  2293. display: flex;
  2294. color: var(--n-jumper-text-color);
  2295. transition: color .3s var(--n-bezier);
  2296. align-items: center;
  2297. font-size: var(--n-jumper-font-size);
  2298. `,[P("input",`
  2299. margin: var(--n-input-margin);
  2300. width: var(--n-input-width);
  2301. `)]),P("pagination-item",`
  2302. position: relative;
  2303. cursor: pointer;
  2304. user-select: none;
  2305. -webkit-user-select: none;
  2306. display: flex;
  2307. align-items: center;
  2308. justify-content: center;
  2309. box-sizing: border-box;
  2310. min-width: var(--n-item-size);
  2311. height: var(--n-item-size);
  2312. padding: var(--n-item-padding);
  2313. background-color: var(--n-item-color);
  2314. color: var(--n-item-text-color);
  2315. border-radius: var(--n-item-border-radius);
  2316. border: var(--n-item-border);
  2317. fill: var(--n-button-icon-color);
  2318. transition:
  2319. color .3s var(--n-bezier),
  2320. border-color .3s var(--n-bezier),
  2321. background-color .3s var(--n-bezier),
  2322. fill .3s var(--n-bezier);
  2323. `,[j("button",`
  2324. background: var(--n-button-color);
  2325. color: var(--n-button-icon-color);
  2326. border: var(--n-button-border);
  2327. padding: 0;
  2328. `,[P("base-icon",`
  2329. font-size: var(--n-button-icon-size);
  2330. `)]),Wt("disabled",[j("hover",kU,LU),N("&:hover",kU,LU),N("&:active",`
  2331. background: var(--n-item-color-pressed);
  2332. color: var(--n-item-text-color-pressed);
  2333. border: var(--n-item-border-pressed);
  2334. `,[j("button",`
  2335. background: var(--n-button-color-pressed);
  2336. border: var(--n-button-border-pressed);
  2337. color: var(--n-button-icon-color-pressed);
  2338. `)]),j("active",`
  2339. background: var(--n-item-color-active);
  2340. color: var(--n-item-text-color-active);
  2341. border: var(--n-item-border-active);
  2342. `,[N("&:hover",`
  2343. background: var(--n-item-color-active-hover);
  2344. `)])]),j("disabled",`
  2345. cursor: not-allowed;
  2346. color: var(--n-item-text-color-disabled);
  2347. `,[j("active, button",`
  2348. background-color: var(--n-item-color-disabled);
  2349. border: var(--n-item-border-disabled);
  2350. `)])]),j("disabled",`
  2351. cursor: not-allowed;
  2352. `,[P("pagination-quick-jumper",`
  2353. color: var(--n-jumper-text-color-disabled);
  2354. `)]),j("simple",`
  2355. display: flex;
  2356. align-items: center;
  2357. flex-wrap: nowrap;
  2358. `,[P("pagination-quick-jumper",[P("input",`
  2359. margin: 0;
  2360. `)])])]),ZTe=Object.assign(Object.assign({},Me.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Un.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),kq=ge({name:"Pagination",props:ZTe,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=Me("Pagination","-pagination",qTe,Pq,e,r),{localeRef:i}=zi("Pagination"),s=q(null),l=q(e.defaultPage),c=q((()=>{const{defaultPageSize:de}=e;if(de!==void 0)return de;const pe=e.pageSizes[0];return typeof pe=="number"?pe:pe.value||10})()),d=Ir(Re(e,"page"),l),f=Ir(Re(e,"pageSize"),c),A=L(()=>{const{itemCount:de}=e;if(de!==void 0)return Math.max(1,Math.ceil(de/f.value));const{pageCount:pe}=e;return pe!==void 0?Math.max(pe,1):1}),h=q("");Sr(()=>{e.simple,h.value=String(d.value)});const v=q(!1),p=q(!1),g=q(!1),m=q(!1),y=()=>{e.disabled||(v.value=!0,M())},b=()=>{e.disabled||(v.value=!1,M())},x=()=>{p.value=!0,M()},w=()=>{p.value=!1,M()},C=de=>{$(de)},_=L(()=>XTe(d.value,A.value,e.pageSlot));Sr(()=>{_.value.hasFastBackward?_.value.hasFastForward||(v.value=!1,g.value=!1):(p.value=!1,m.value=!1)});const B=L(()=>{const de=i.value.selectionSuffix;return e.pageSizes.map(pe=>typeof pe=="number"?{label:`${pe} / ${de}`,value:pe}:pe)}),T=L(()=>{var de,pe;return((pe=(de=t==null?void 0:t.value)===null||de===void 0?void 0:de.Pagination)===null||pe===void 0?void 0:pe.inputSize)||V3(e.size)}),E=L(()=>{var de,pe;return((pe=(de=t==null?void 0:t.value)===null||de===void 0?void 0:de.Pagination)===null||pe===void 0?void 0:pe.selectSize)||V3(e.size)}),I=L(()=>(d.value-1)*f.value),R=L(()=>{const de=d.value*f.value-1,{itemCount:pe}=e;return pe!==void 0&&de>pe-1?pe-1:de}),D=L(()=>{const{itemCount:de}=e;return de!==void 0?de:(e.pageCount||1)*f.value}),F=dn("Pagination",o,r),M=()=>{dr(()=>{var de;const{value:pe}=s;pe&&(pe.classList.add("transition-disabled"),(de=s.value)===null||de===void 0||de.offsetWidth,pe.classList.remove("transition-disabled"))})};function $(de){if(de===d.value)return;const{"onUpdate:page":pe,onUpdatePage:K,onChange:U,simple:k}=e;pe&&Te(pe,de),K&&Te(K,de),U&&Te(U,de),l.value=de,k&&(h.value=String(de))}function O(de){if(de===f.value)return;const{"onUpdate:pageSize":pe,onUpdatePageSize:K,onPageSizeChange:U}=e;pe&&Te(pe,de),K&&Te(K,de),U&&Te(U,de),c.value=de,A.value<d.value&&$(A.value)}function Q(){if(e.disabled)return;const de=Math.min(d.value+1,A.value);$(de)}function V(){if(e.disabled)return;const de=Math.max(d.value-1,1);$(de)}function W(){if(e.disabled)return;const de=Math.min(_.value.fastForwardTo,A.value);$(de)}function Z(){if(e.disabled)return;const de=Math.max(_.value.fastBackwardTo,1);$(de)}function te(de){O(de)}function ae(){const de=parseInt(h.value);Number.isNaN(de)||($(Math.max(1,Math.min(de,A.value))),e.simple||(h.value=""))}function re(){ae()}function le(de){if(!e.disabled)switch(de.type){case"page":$(de.label);break;case"fast-backward":Z();break;case"fast-forward":W();break}}function se(de){h.value=de.replace(/\D+/g,"")}Sr(()=>{d.value,f.value,M()});const ce=L(()=>{const{size:de}=e,{self:{buttonBorder:pe,buttonBorderHover:K,buttonBorderPressed:U,buttonIconColor:k,buttonIconColorHover:J,buttonIconColorPressed:ee,itemTextColor:H,itemTextColorHover:Y,itemTextColorPressed:oe,itemTextColorActive:he,itemTextColorDisabled:ne,itemColor:Ae,itemColorHover:X,itemColorPressed:ie,itemColorActive:fe,itemColorActiveHover:ye,itemColorDisabled:Fe,itemBorder:Ne,itemBorderHover:rt,itemBorderPressed:lt,itemBorderActive:mt,itemBorderDisabled:Ge,itemBorderRadius:it,jumperTextColor:je,jumperTextColorDisabled:Ye,buttonColor:ue,buttonColorHover:Ee,buttonColorPressed:Qe,[_e("itemPadding",de)]:et,[_e("itemMargin",de)]:tt,[_e("inputWidth",de)]:xe,[_e("selectWidth",de)]:$e,[_e("inputMargin",de)]:Xe,[_e("selectMargin",de)]:ht,[_e("jumperFontSize",de)]:Se,[_e("prefixMargin",de)]:He,[_e("suffixMargin",de)]:me,[_e("itemSize",de)]:ze,[_e("buttonIconSize",de)]:dt,[_e("itemFontSize",de)]:Rt,[`${_e("itemMargin",de)}Rtl`]:At,[`${_e("inputMargin",de)}Rtl`]:ve},common:{cubicBezierEaseInOut:De}}=a.value;return{"--n-prefix-margin":He,"--n-suffix-margin":me,"--n-item-font-size":Rt,"--n-select-width":$e,"--n-select-margin":ht,"--n-input-width":xe,"--n-input-margin":Xe,"--n-input-margin-rtl":ve,"--n-item-size":ze,"--n-item-text-color":H,"--n-item-text-color-disabled":ne,"--n-item-text-color-hover":Y,"--n-item-text-color-active":he,"--n-item-text-color-pressed":oe,"--n-item-color":Ae,"--n-item-color-hover":X,"--n-item-color-disabled":Fe,"--n-item-color-active":fe,"--n-item-color-active-hover":ye,"--n-item-color-pressed":ie,"--n-item-border":Ne,"--n-item-border-hover":rt,"--n-item-border-disabled":Ge,"--n-item-border-active":mt,"--n-item-border-pressed":lt,"--n-item-padding":et,"--n-item-border-radius":it,"--n-bezier":De,"--n-jumper-font-size":Se,"--n-jumper-text-color":je,"--n-jumper-text-color-disabled":Ye,"--n-item-margin":tt,"--n-item-margin-rtl":At,"--n-button-icon-size":dt,"--n-button-icon-color":k,"--n-button-icon-color-hover":J,"--n-button-icon-color-pressed":ee,"--n-button-color-hover":Ee,"--n-button-color":ue,"--n-button-color-pressed":Qe,"--n-button-border":pe,"--n-button-border-hover":K,"--n-button-border-pressed":U}}),be=n?Et("pagination",L(()=>{let de="";const{size:pe}=e;return de+=pe[0],de}),ce,e):void 0;return{rtlEnabled:F,mergedClsPrefix:r,locale:i,selfRef:s,mergedPage:d,pageItems:L(()=>_.value.items),mergedItemCount:D,jumperValue:h,pageSizeOptions:B,mergedPageSize:f,inputSize:T,selectSize:E,mergedTheme:a,mergedPageCount:A,startIndex:I,endIndex:R,showFastForwardMenu:g,showFastBackwardMenu:m,fastForwardActive:v,fastBackwardActive:p,handleMenuSelect:C,handleFastForwardMouseenter:y,handleFastForwardMouseleave:b,handleFastBackwardMouseenter:x,handleFastBackwardMouseleave:w,handleJumperInput:se,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:le,handleSizePickerChange:te,handleQuickJumperChange:re,cssVars:n?void 0:ce,themeClass:be==null?void 0:be.themeClass,onRender:be==null?void 0:be.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:r,cssVars:n,mergedPage:o,mergedPageCount:a,pageItems:i,showSizePicker:s,showQuickJumper:l,mergedTheme:u,locale:c,inputSize:d,selectSize:f,mergedPageSize:A,pageSizeOptions:h,jumperValue:v,simple:p,prev:g,next:m,prefix:y,suffix:b,label:x,goto:w,handleJumperInput:C,handleSizePickerChange:_,handleBackwardClick:B,handlePageItemClick:T,handleForwardClick:E,handleQuickJumperChange:I,onRender:R}=this;R==null||R();const D=e.prefix||y,F=e.suffix||b,M=g||e.prev,$=m||e.next,O=x||e.label;return S("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,r&&`${t}-pagination--disabled`,p&&`${t}-pagination--simple`],style:n},D?S("div",{class:`${t}-pagination-prefix`},D({page:o,pageSize:A,pageCount:a,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return S(lr,null,S("div",{class:[`${t}-pagination-item`,!M&&`${t}-pagination-item--button`,(o<=1||o>a||r)&&`${t}-pagination-item--disabled`],onClick:B},M?M({page:o,pageSize:A,pageCount:a,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):S(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?S(Jc,null):S(Xc,null)})),p?S(lr,null,S("div",{class:`${t}-pagination-quick-jumper`},S(ms,{value:v,onUpdateValue:C,size:d,placeholder:"",disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:I}))," / ",a):i.map((V,W)=>{let Z,te,ae;const{type:re}=V;switch(re){case"page":const se=V.label;O?Z=O({type:"page",node:se,active:V.active}):Z=se;break;case"fast-forward":const ce=this.fastForwardActive?S(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?S(qc,null):S(Zc,null)}):S(zt,{clsPrefix:t},{default:()=>S(iU,null)});O?Z=O({type:"fast-forward",node:ce,active:this.fastForwardActive||this.showFastForwardMenu}):Z=ce,te=this.handleFastForwardMouseenter,ae=this.handleFastForwardMouseleave;break;case"fast-backward":const be=this.fastBackwardActive?S(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?S(Zc,null):S(qc,null)}):S(zt,{clsPrefix:t},{default:()=>S(iU,null)});O?Z=O({type:"fast-backward",node:be,active:this.fastBackwardActive||this.showFastBackwardMenu}):Z=be,te=this.handleFastBackwardMouseenter,ae=this.handleFastBackwardMouseleave;break}const le=S("div",{key:W,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,re!=="page"&&(re==="fast-backward"&&this.showFastBackwardMenu||re==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,r&&`${t}-pagination-item--disabled`,re==="page"&&`${t}-pagination-item--clickable`],onClick:()=>T(V),onMouseenter:te,onMouseleave:ae},Z);if(re==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return le;{const se=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return S(Tq,{to:this.to,key:se,disabled:r,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:re==="page"?!1:re==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:ce=>{re!=="page"&&(ce?re==="fast-backward"?this.showFastBackwardMenu=ce:this.showFastForwardMenu=ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>le})}}),S("div",{class:[`${t}-pagination-item`,!$&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=a||r}],onClick:E},$?$({page:o,pageSize:A,pageCount:a,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):S(zt,{clsPrefix:t},{default:()=>this.rtlEnabled?S(Xc,null):S(Jc,null)})));case"size-picker":return!p&&s?S(Dq,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:h,value:A,disabled:r,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:_})):null;case"quick-jumper":return!p&&l?S("div",{class:`${t}-pagination-quick-jumper`},w?w():Kt(this.$slots.goto,()=>[c.goto]),S(ms,{value:v,onUpdateValue:C,size:d,placeholder:"",disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:I})):null;default:return null}}),F?S("div",{class:`${t}-pagination-suffix`},F({page:o,pageSize:A,pageCount:a,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),Lq={padding:"8px 14px"},JTe={name:"Tooltip",common:ct,peers:{Popover:MA},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:o}=e;return Object.assign(Object.assign({},Lq),{borderRadius:t,boxShadow:r,color:n,textColor:o})}},HS=JTe,eEe=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},Lq),{borderRadius:t,boxShadow:r,color:Dt(n,"rgba(0, 0, 0, .85)"),textColor:n})},tEe={name:"Tooltip",common:Lt,peers:{Popover:cp},self:eEe},zS=tEe,rEe={name:"Ellipsis",common:ct,peers:{Tooltip:HS}},Oq=rEe,nEe={name:"Ellipsis",common:Lt,peers:{Tooltip:zS}},$q=nEe,Uq={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},oEe={name:"Radio",common:ct,self(e){const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:o,inputColorDisabled:a,textColor2:i,opacityDisabled:s,borderRadius:l,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,heightSmall:f,heightMedium:A,heightLarge:h,lineHeight:v}=e;return Object.assign(Object.assign({},Uq),{labelLineHeight:v,buttonHeightSmall:f,buttonHeightMedium:A,buttonHeightLarge:h,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:a,colorActive:"#0000",textColor:i,textColorDisabled:o,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:i,buttonTextColorActive:n,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},Nq=oEe,aEe=e=>{const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:o,inputColorDisabled:a,textColor2:i,opacityDisabled:s,borderRadius:l,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,heightSmall:f,heightMedium:A,heightLarge:h,lineHeight:v}=e;return Object.assign(Object.assign({},Uq),{labelLineHeight:v,buttonHeightSmall:f,buttonHeightMedium:A,buttonHeightLarge:h,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:a,colorActive:"#0000",textColor:i,textColorDisabled:o,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:i,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})},iEe={name:"Radio",common:Lt,self:aEe},uL=iEe,sEe={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},Hq=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:o,popoverColor:a,invertedColor:i,borderRadius:s,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:c,fontSizeHuge:d,heightSmall:f,heightMedium:A,heightLarge:h,heightHuge:v,textColor3:p,opacityDisabled:g}=e;return Object.assign(Object.assign({},sEe),{optionHeightSmall:f,optionHeightMedium:A,optionHeightLarge:h,optionHeightHuge:v,borderRadius:s,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:c,fontSizeHuge:d,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:o,optionColorActive:Ve(t,{alpha:.1}),groupHeaderTextColor:p,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:i,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},lEe={name:"Dropdown",common:Lt,peers:{Popover:cp},self:Hq},cL=lEe,uEe={name:"Dropdown",common:ct,peers:{Popover:MA},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:n}=e,o=Hq(e);return o.colorInverted=n,o.optionColorActive=Ve(r,{alpha:.15}),o.optionColorActiveInverted=t,o.optionColorHoverInverted=t,o}},dL=uEe,cEe={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},zq=e=>{const{cardColor:t,modalColor:r,popoverColor:n,textColor2:o,textColor1:a,tableHeaderColor:i,tableColorHover:s,iconColor:l,primaryColor:u,fontWeightStrong:c,borderRadius:d,lineHeight:f,fontSizeSmall:A,fontSizeMedium:h,fontSizeLarge:v,dividerColor:p,heightSmall:g,opacityDisabled:m,tableColorStriped:y}=e;return Object.assign(Object.assign({},cEe),{actionDividerColor:p,lineHeight:f,borderRadius:d,fontSizeSmall:A,fontSizeMedium:h,fontSizeLarge:v,borderColor:Dt(t,p),tdColorHover:Dt(t,s),tdColorStriped:Dt(t,y),thColor:Dt(t,i),thColorHover:Dt(Dt(t,i),s),tdColor:t,tdTextColor:o,thTextColor:a,thFontWeight:c,thButtonColorHover:s,thIconColor:l,thIconColorActive:u,borderColorModal:Dt(r,p),tdColorHoverModal:Dt(r,s),tdColorStripedModal:Dt(r,y),thColorModal:Dt(r,i),thColorHoverModal:Dt(Dt(r,i),s),tdColorModal:r,borderColorPopover:Dt(n,p),tdColorHoverPopover:Dt(n,s),tdColorStripedPopover:Dt(n,y),thColorPopover:Dt(n,i),thColorHoverPopover:Dt(Dt(n,i),s),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:u,loadingSize:g,opacityLoading:m})},dEe={name:"DataTable",common:Lt,peers:{Button:md,Checkbox:iL,Radio:uL,Pagination:Pq,Scrollbar:xl,Empty:Sy,Popover:cp,Ellipsis:$q,Dropdown:cL},self:zq},fEe=dEe,AEe={name:"DataTable",common:ct,peers:{Button:Fa,Checkbox:fp,Radio:Nq,Pagination:Fq,Scrollbar:Pa,Empty:DA,Popover:MA,Ellipsis:Oq,Dropdown:dL},self(e){const t=zq(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},hEe=AEe,vEe=Object.assign(Object.assign({},Dv),Me.props),QS=ge({name:"Tooltip",props:vEe,__popover__:!0,setup(e){const t=Me("Tooltip","-tooltip",void 0,zS,e),r=q(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(o){r.value.setShow(o)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:L(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return S(dp,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),pEe=P("ellipsis",{overflow:"hidden"},[Wt("line-clamp",`
  2361. white-space: nowrap;
  2362. display: inline-block;
  2363. vertical-align: bottom;
  2364. max-width: 100%;
  2365. `),j("line-clamp",`
  2366. display: -webkit-inline-box;
  2367. -webkit-box-orient: vertical;
  2368. `),j("cursor-pointer",`
  2369. cursor: pointer;
  2370. `)]);function OU(e){return`${e}-ellipsis--line-clamp`}function $U(e,t){return`${e}-ellipsis--cursor-${t}`}const gEe=Object.assign(Object.assign({},Me.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),fL=ge({name:"Ellipsis",inheritAttrs:!1,props:gEe,setup(e,{slots:t,attrs:r}){const{mergedClsPrefixRef:n}=nt(e),o=Me("Ellipsis","-ellipsis",pEe,$q,e,n),a=q(null),i=q(null),s=q(null),l=q(!1),u=L(()=>{const{lineClamp:p}=e,{value:g}=l;return p!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":p}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function c(){let p=!1;const{value:g}=l;if(g)return!0;const{value:m}=a;if(m){const{lineClamp:y}=e;if(A(m),y!==void 0)p=m.scrollHeight<=m.offsetHeight;else{const{value:b}=i;b&&(p=b.getBoundingClientRect().width<=m.getBoundingClientRect().width)}h(m,p)}return p}const d=L(()=>e.expandTrigger==="click"?()=>{var p;const{value:g}=l;g&&((p=s.value)===null||p===void 0||p.setShow(!1)),l.value=!g}:void 0);rp(()=>{var p;e.tooltip&&((p=s.value)===null||p===void 0||p.setShow(!1))});const f=()=>S("span",Object.assign({},wn(r,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?OU(n.value):void 0,e.expandTrigger==="click"?$U(n.value,"pointer"):void 0],style:u.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?c:void 0}),e.lineClamp?t:S("span",{ref:"triggerInnerRef"},t));function A(p){if(!p)return;const g=u.value,m=OU(n.value);e.lineClamp!==void 0?v(p,m,"add"):v(p,m,"remove");for(const y in g)p.style[y]!==g[y]&&(p.style[y]=g[y])}function h(p,g){const m=$U(n.value,"pointer");e.expandTrigger==="click"&&!g?v(p,m,"add"):v(p,m,"remove")}function v(p,g,m){m==="add"?p.classList.contains(g)||p.classList.add(g):p.classList.contains(g)&&p.classList.remove(g)}return{mergedTheme:o,triggerRef:a,triggerInnerRef:i,tooltipRef:s,handleClick:d,renderTrigger:f,getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:n}=this;if(t){const{mergedTheme:o}=this;return S(QS,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:r,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return r()}}),mEe=ge({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),yEe=Object.assign(Object.assign({},Me.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Ss="n-data-table",bEe=ge({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedSortStateRef:r,mergedClsPrefixRef:n}=Ke(Ss),o=L(()=>r.value.find(l=>l.columnKey===e.column.key)),a=L(()=>o.value!==void 0),i=L(()=>{const{value:l}=o;return l&&a.value?l.order:!1}),s=L(()=>{var l,u;return((u=(l=t==null?void 0:t.value)===null||l===void 0?void 0:l.DataTable)===null||u===void 0?void 0:u.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:a,mergedSortOrder:i,mergedRenderSorter:s}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:r}=this,{renderSorterIcon:n}=this.column;return e?S(mEe,{render:e,order:t}):S("span",{class:[`${r}-data-table-sorter`,t==="ascend"&&`${r}-data-table-sorter--asc`,t==="descend"&&`${r}-data-table-sorter--desc`]},n?n({order:t}):S(zt,{clsPrefix:r},{default:()=>S(Swe,null)}))}}),xEe=ge({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:r}=this;return e({active:t,show:r})}}),wEe={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Qq="n-radio-group";function CEe(e){const t=Da(e,{mergedSize(m){const{size:y}=e;if(y!==void 0)return y;if(i){const{mergedSizeRef:{value:b}}=i;if(b!==void 0)return b}return m?m.mergedSize.value:"medium"},mergedDisabled(m){return!!(e.disabled||i!=null&&i.disabledRef.value||m!=null&&m.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=t,o=q(null),a=q(null),i=Ke(Qq,null),s=q(e.defaultChecked),l=Re(e,"checked"),u=Ir(l,s),c=Ft(()=>i?i.valueRef.value===e.value:u.value),d=Ft(()=>{const{name:m}=e;if(m!==void 0)return m;if(i)return i.nameRef.value}),f=q(!1);function A(){if(i){const{doUpdateValue:m}=i,{value:y}=e;Te(m,y)}else{const{onUpdateChecked:m,"onUpdate:checked":y}=e,{nTriggerFormInput:b,nTriggerFormChange:x}=t;m&&Te(m,!0),y&&Te(y,!0),b(),x(),s.value=!0}}function h(){n.value||c.value||A()}function v(){h()}function p(){f.value=!1}function g(){f.value=!0}return{mergedClsPrefix:i?i.mergedClsPrefixRef:nt(e).mergedClsPrefixRef,inputRef:o,labelRef:a,mergedName:d,mergedDisabled:n,uncontrolledChecked:s,renderSafeChecked:c,focus:f,mergedSize:r,handleRadioInputChange:v,handleRadioInputBlur:p,handleRadioInputFocus:g}}const SEe=P("radio",`
  2371. line-height: var(--n-label-line-height);
  2372. outline: none;
  2373. position: relative;
  2374. user-select: none;
  2375. -webkit-user-select: none;
  2376. display: inline-flex;
  2377. align-items: flex-start;
  2378. flex-wrap: nowrap;
  2379. font-size: var(--n-font-size);
  2380. word-break: break-word;
  2381. `,[j("checked",[G("dot",`
  2382. background-color: var(--n-color-active);
  2383. `)]),G("dot-wrapper",`
  2384. position: relative;
  2385. flex-shrink: 0;
  2386. flex-grow: 0;
  2387. width: var(--n-radio-size);
  2388. `),P("radio-input",`
  2389. position: absolute;
  2390. border: 0;
  2391. border-radius: inherit;
  2392. left: 0;
  2393. right: 0;
  2394. top: 0;
  2395. bottom: 0;
  2396. opacity: 0;
  2397. z-index: 1;
  2398. cursor: pointer;
  2399. `),G("dot",`
  2400. position: absolute;
  2401. top: 50%;
  2402. left: 0;
  2403. transform: translateY(-50%);
  2404. height: var(--n-radio-size);
  2405. width: var(--n-radio-size);
  2406. background: var(--n-color);
  2407. box-shadow: var(--n-box-shadow);
  2408. border-radius: 50%;
  2409. transition:
  2410. background-color .3s var(--n-bezier),
  2411. box-shadow .3s var(--n-bezier);
  2412. `,[N("&::before",`
  2413. content: "";
  2414. opacity: 0;
  2415. position: absolute;
  2416. left: 4px;
  2417. top: 4px;
  2418. height: calc(100% - 8px);
  2419. width: calc(100% - 8px);
  2420. border-radius: 50%;
  2421. transform: scale(.8);
  2422. background: var(--n-dot-color-active);
  2423. transition:
  2424. opacity .3s var(--n-bezier),
  2425. background-color .3s var(--n-bezier),
  2426. transform .3s var(--n-bezier);
  2427. `),j("checked",{boxShadow:"var(--n-box-shadow-active)"},[N("&::before",`
  2428. opacity: 1;
  2429. transform: scale(1);
  2430. `)])]),G("label",`
  2431. color: var(--n-text-color);
  2432. padding: var(--n-label-padding);
  2433. font-weight: var(--n-label-font-weight);
  2434. display: inline-block;
  2435. transition: color .3s var(--n-bezier);
  2436. `),Wt("disabled",`
  2437. cursor: pointer;
  2438. `,[N("&:hover",[G("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),j("focus",[N("&:not(:active)",[G("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),j("disabled",`
  2439. cursor: not-allowed;
  2440. `,[G("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[N("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),j("checked",`
  2441. opacity: 1;
  2442. `)]),G("label",{color:"var(--n-text-color-disabled)"}),P("radio-input",`
  2443. cursor: not-allowed;
  2444. `)])]),AL=ge({name:"Radio",props:Object.assign(Object.assign({},Me.props),wEe),setup(e){const t=CEe(e),r=Me("Radio","-radio",SEe,uL,e,t.mergedClsPrefix),n=L(()=>{const{mergedSize:{value:u}}=t,{common:{cubicBezierEaseInOut:c},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:A,boxShadowFocus:h,boxShadowHover:v,color:p,colorDisabled:g,colorActive:m,textColor:y,textColorDisabled:b,dotColorActive:x,dotColorDisabled:w,labelPadding:C,labelLineHeight:_,labelFontWeight:B,[_e("fontSize",u)]:T,[_e("radioSize",u)]:E}}=r.value;return{"--n-bezier":c,"--n-label-line-height":_,"--n-label-font-weight":B,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":A,"--n-box-shadow-focus":h,"--n-box-shadow-hover":v,"--n-color":p,"--n-color-active":m,"--n-color-disabled":g,"--n-dot-color-active":x,"--n-dot-color-disabled":w,"--n-font-size":T,"--n-radio-size":E,"--n-text-color":y,"--n-text-color-disabled":b,"--n-label-padding":C}}),{inlineThemeDisabled:o,mergedClsPrefixRef:a,mergedRtlRef:i}=nt(e),s=dn("Radio",i,a),l=o?Et("radio",L(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:o?void 0:n,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:r,label:n}=this;return r==null||r(),S("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},S("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),S("div",{class:`${t}-radio__dot-wrapper`}," ",S("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ar(e.default,o=>!o&&!n?null:S("div",{ref:"labelRef",class:`${t}-radio__label`},o||n)))}}),_Ee=P("radio-group",`
  2445. display: inline-block;
  2446. font-size: var(--n-font-size);
  2447. `,[G("splitor",`
  2448. display: inline-block;
  2449. vertical-align: bottom;
  2450. width: 1px;
  2451. transition:
  2452. background-color .3s var(--n-bezier),
  2453. opacity .3s var(--n-bezier);
  2454. background: var(--n-button-border-color);
  2455. `,[j("checked",{backgroundColor:"var(--n-button-border-color-active)"}),j("disabled",{opacity:"var(--n-opacity-disabled)"})]),j("button-group",`
  2456. white-space: nowrap;
  2457. height: var(--n-height);
  2458. line-height: var(--n-height);
  2459. `,[P("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),G("splitor",{height:"var(--n-height)"})]),P("radio-button",`
  2460. vertical-align: bottom;
  2461. outline: none;
  2462. position: relative;
  2463. user-select: none;
  2464. -webkit-user-select: none;
  2465. display: inline-block;
  2466. box-sizing: border-box;
  2467. padding-left: 14px;
  2468. padding-right: 14px;
  2469. white-space: nowrap;
  2470. transition:
  2471. background-color .3s var(--n-bezier),
  2472. opacity .3s var(--n-bezier),
  2473. border-color .3s var(--n-bezier),
  2474. color .3s var(--n-bezier);
  2475. color: var(--n-button-text-color);
  2476. border-top: 1px solid var(--n-button-border-color);
  2477. border-bottom: 1px solid var(--n-button-border-color);
  2478. `,[P("radio-input",`
  2479. pointer-events: none;
  2480. position: absolute;
  2481. border: 0;
  2482. border-radius: inherit;
  2483. left: 0;
  2484. right: 0;
  2485. top: 0;
  2486. bottom: 0;
  2487. opacity: 0;
  2488. z-index: 1;
  2489. `),G("state-border",`
  2490. z-index: 1;
  2491. pointer-events: none;
  2492. position: absolute;
  2493. box-shadow: var(--n-button-box-shadow);
  2494. transition: box-shadow .3s var(--n-bezier);
  2495. left: -1px;
  2496. bottom: -1px;
  2497. right: -1px;
  2498. top: -1px;
  2499. `),N("&:first-child",`
  2500. border-top-left-radius: var(--n-button-border-radius);
  2501. border-bottom-left-radius: var(--n-button-border-radius);
  2502. border-left: 1px solid var(--n-button-border-color);
  2503. `,[G("state-border",`
  2504. border-top-left-radius: var(--n-button-border-radius);
  2505. border-bottom-left-radius: var(--n-button-border-radius);
  2506. `)]),N("&:last-child",`
  2507. border-top-right-radius: var(--n-button-border-radius);
  2508. border-bottom-right-radius: var(--n-button-border-radius);
  2509. border-right: 1px solid var(--n-button-border-color);
  2510. `,[G("state-border",`
  2511. border-top-right-radius: var(--n-button-border-radius);
  2512. border-bottom-right-radius: var(--n-button-border-radius);
  2513. `)]),Wt("disabled",`
  2514. cursor: pointer;
  2515. `,[N("&:hover",[G("state-border",`
  2516. transition: box-shadow .3s var(--n-bezier);
  2517. box-shadow: var(--n-button-box-shadow-hover);
  2518. `),Wt("checked",{color:"var(--n-button-text-color-hover)"})]),j("focus",[N("&:not(:active)",[G("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),j("checked",`
  2519. background: var(--n-button-color-active);
  2520. color: var(--n-button-text-color-active);
  2521. border-color: var(--n-button-border-color-active);
  2522. `),j("disabled",`
  2523. cursor: not-allowed;
  2524. opacity: var(--n-opacity-disabled);
  2525. `)])]);function BEe(e,t,r){var n;const o=[];let a=!1;for(let i=0;i<e.length;++i){const s=e[i],l=(n=s.type)===null||n===void 0?void 0:n.name;l==="RadioButton"&&(a=!0);const u=s.props;if(l!=="RadioButton"){o.push(s);continue}if(i===0)o.push(s);else{const c=o[o.length-1].props,d=t===c.value,f=c.disabled,A=t===u.value,h=u.disabled,v=(d?2:0)+(f?0:1),p=(A?2:0)+(h?0:1),g={[`${r}-radio-group__splitor--disabled`]:f,[`${r}-radio-group__splitor--checked`]:d},m={[`${r}-radio-group__splitor--disabled`]:h,[`${r}-radio-group__splitor--checked`]:A},y=v<p?m:g;o.push(S("div",{class:[`${r}-radio-group__splitor`,y]}),s)}}return{children:o,isButtonGroup:a}}const TEe=Object.assign(Object.assign({},Me.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Vq=ge({name:"RadioGroup",props:TEe,setup(e){const t=q(null),{mergedSizeRef:r,mergedDisabledRef:n,nTriggerFormChange:o,nTriggerFormInput:a,nTriggerFormBlur:i,nTriggerFormFocus:s}=Da(e),{mergedClsPrefixRef:l,inlineThemeDisabled:u,mergedRtlRef:c}=nt(e),d=Me("Radio","-radio-group",_Ee,uL,e,l),f=q(e.defaultValue),A=Re(e,"value"),h=Ir(A,f);function v(x){const{onUpdateValue:w,"onUpdate:value":C}=e;w&&Te(w,x),C&&Te(C,x),f.value=x,o(),a()}function p(x){const{value:w}=t;w&&(w.contains(x.relatedTarget)||s())}function g(x){const{value:w}=t;w&&(w.contains(x.relatedTarget)||i())}_t(Qq,{mergedClsPrefixRef:l,nameRef:Re(e,"name"),valueRef:h,disabledRef:n,mergedSizeRef:r,doUpdateValue:v});const m=dn("Radio",c,l),y=L(()=>{const{value:x}=r,{common:{cubicBezierEaseInOut:w},self:{buttonBorderColor:C,buttonBorderColorActive:_,buttonBorderRadius:B,buttonBoxShadow:T,buttonBoxShadowFocus:E,buttonBoxShadowHover:I,buttonColorActive:R,buttonTextColor:D,buttonTextColorActive:F,buttonTextColorHover:M,opacityDisabled:$,[_e("buttonHeight",x)]:O,[_e("fontSize",x)]:Q}}=d.value;return{"--n-font-size":Q,"--n-bezier":w,"--n-button-border-color":C,"--n-button-border-color-active":_,"--n-button-border-radius":B,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":E,"--n-button-box-shadow-hover":I,"--n-button-color-active":R,"--n-button-text-color":D,"--n-button-text-color-hover":M,"--n-button-text-color-active":F,"--n-height":O,"--n-opacity-disabled":$}}),b=u?Et("radio-group",L(()=>r.value[0]),y,e):void 0;return{selfElRef:t,rtlEnabled:m,mergedClsPrefix:l,mergedValue:h,handleFocusout:g,handleFocusin:p,cssVars:u?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:r,handleFocusin:n,handleFocusout:o}=this,{children:a,isButtonGroup:i}=BEe(Ii(my(this)),t,r);return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{onFocusin:n,onFocusout:o,ref:"selfElRef",class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,i&&`${r}-radio-group--button-group`],style:this.cssVars},a)}}),Wq=40,Gq=40;function UU(e){if(e.type==="selection")return e.width===void 0?Wq:Ro(e.width);if(e.type==="expand")return e.width===void 0?Gq:Ro(e.width);if(!("children"in e))return typeof e.width=="string"?Ro(e.width):e.width}function EEe(e){var t,r;if(e.type==="selection")return wr((t=e.width)!==null&&t!==void 0?t:Wq);if(e.type==="expand")return wr((r=e.width)!==null&&r!==void 0?r:Gq);if(!("children"in e))return wr(e.width)}function as(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function NU(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function IEe(e){return e==="ascend"?1:e==="descend"?-1:0}function REe(e,t,r){return r!==void 0&&(e=Math.min(e,typeof r=="number"?r:parseFloat(r))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function DEe(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const r=EEe(e),{minWidth:n,maxWidth:o}=e;return{width:r,minWidth:wr(n)||r,maxWidth:wr(o)}}function MEe(e,t,r){return typeof r=="function"?r(e,t):r||""}function w2(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function C2(e){return"children"in e?!1:!!e.sorter}function Kq(e){return"children"in e&&e.children.length?!1:!!e.resizable}function HU(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function zU(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function PEe(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:zU(!1)}:Object.assign(Object.assign({},t),{order:zU(t.order)})}function jq(e,t){return t.find(r=>r.columnKey===e.key&&r.order)!==void 0}const FEe=ge({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,localeRef:n}=Ke(Ss),o=q(e.value),a=L(()=>{const{value:d}=o;return Array.isArray(d)?d:null}),i=L(()=>{const{value:d}=o;return w2(e.column)?Array.isArray(d)&&d.length&&d[0]||null:Array.isArray(d)?null:d});function s(d){e.onChange(d)}function l(d){e.multiple&&Array.isArray(d)?o.value=d:w2(e.column)&&!Array.isArray(d)?o.value=[d]:o.value=d}function u(){s(o.value),e.onConfirm()}function c(){e.multiple||w2(e.column)?s([]):s(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:r,locale:n,checkboxGroupValue:a,radioGroupValue:i,handleChange:l,handleConfirmClick:u,handleClearClick:c}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:r}=this;return S("div",{class:`${r}-data-table-filter-menu`},S(Gn,null,{default:()=>{const{checkboxGroupValue:n,handleChange:o}=this;return this.multiple?S(yq,{value:n,class:`${r}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(a=>S(By,{key:a.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:a.value},{default:()=>a.label}))}):S(Vq,{name:this.radioGroupName,class:`${r}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(a=>S(AL,{key:a.value,value:a.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>a.label}))})}}),S("div",{class:`${r}-data-table-filter-menu__action`},S(sn,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),S(sn,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function kEe(e,t,r){const n=Object.assign({},e);return n[t]=r,n}const LEe=ge({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedThemeRef:r,mergedClsPrefixRef:n,mergedFilterStateRef:o,filterMenuCssVarsRef:a,paginationBehaviorOnFilterRef:i,doUpdatePage:s,doUpdateFilters:l}=Ke(Ss),u=q(!1),c=o,d=L(()=>e.column.filterMultiple!==!1),f=L(()=>{const m=c.value[e.column.key];if(m===void 0){const{value:y}=d;return y?[]:null}return m}),A=L(()=>{const{value:m}=f;return Array.isArray(m)?m.length>0:m!==null}),h=L(()=>{var m,y;return((y=(m=t==null?void 0:t.value)===null||m===void 0?void 0:m.DataTable)===null||y===void 0?void 0:y.renderFilter)||e.column.renderFilter});function v(m){const y=kEe(c.value,e.column.key,m);l(y,e.column),i.value==="first"&&s(1)}function p(){u.value=!1}function g(){u.value=!1}return{mergedTheme:r,mergedClsPrefix:n,active:A,showPopover:u,mergedRenderFilter:h,filterMultiple:d,mergedFilterValue:f,filterMenuCssVars:a,handleFilterChange:v,handleFilterMenuConfirm:g,handleFilterMenuCancel:p}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:r}=this;return S(dp,{show:this.showPopover,onUpdateShow:n=>this.showPopover=n,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:n}=this;if(n)return S(xEe,{"data-data-table-filter":!0,render:n,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return S("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):S(zt,{clsPrefix:t},{default:()=>S(Dwe,null)}))},default:()=>{const{renderFilterMenu:n}=this.column;return n?n({hide:r}):S(FEe,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),OEe=ge({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ke(Ss),r=q(!1);let n=0;function o(l){return l.clientX}function a(l){var u;const c=r.value;n=o(l),r.value=!0,c||(or("mousemove",window,i),or("mouseup",window,s),(u=e.onResizeStart)===null||u===void 0||u.call(e))}function i(l){var u;(u=e.onResize)===null||u===void 0||u.call(e,o(l)-n)}function s(){var l;r.value=!1,(l=e.onResizeEnd)===null||l===void 0||l.call(e),qt("mousemove",window,i),qt("mouseup",window,s)}return Hr(()=>{qt("mousemove",window,i),qt("mouseup",window,s)}),{mergedClsPrefix:t,active:r,handleMousedown:a}},render(){const{mergedClsPrefix:e}=this;return S("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Yq=ge({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return S("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Xq=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:a,opacity5:i}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:a,opacity5Depth:i}},$Ee={name:"Icon",common:Lt,self:Xq},UEe=$Ee,NEe={name:"Icon",common:ct,self:Xq},HEe=NEe,zEe=P("icon",`
  2526. height: 1em;
  2527. width: 1em;
  2528. line-height: 1em;
  2529. text-align: center;
  2530. display: inline-block;
  2531. position: relative;
  2532. fill: currentColor;
  2533. transform: translateZ(0);
  2534. `,[j("color-transition",{transition:"color .3s var(--n-bezier)"}),j("depth",{color:"var(--n-color)"},[N("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),N("svg",{height:"1em",width:"1em"})]),QEe=Object.assign(Object.assign({},Me.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),hL=ge({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:QEe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Icon","-icon",zEe,UEe,e,t),o=L(()=>{const{depth:i}=e,{common:{cubicBezierEaseInOut:s},self:l}=n.value;if(i!==void 0){const{color:u,[`opacity${i}Depth`]:c}=l;return{"--n-bezier":s,"--n-color":u,"--n-opacity":c}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),a=r?Et("icon",L(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:L(()=>{const{size:i,color:s}=e;return{fontSize:wr(i),color:s}}),cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:a,themeClass:i}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&ei("icon","don't wrap `n-icon` inside `n-icon`"),a==null||a(),S("i",wn(this.$attrs,{role:"img",class:[`${n}-icon`,i,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?S(o):this.$slots)}}),vL="n-dropdown-menu",VS="n-dropdown",QU="n-dropdown-option";function gD(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function VEe(e){return e.type==="group"}function qq(e){return e.type==="divider"}function WEe(e){return e.type==="render"}const Zq=ge({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ke(VS),{hoverKeyRef:r,keyboardKeyRef:n,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:a,activeKeyPathRef:i,animatedRef:s,mergedShowRef:l,renderLabelRef:u,renderIconRef:c,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:A,nodePropsRef:h,menuPropsRef:v}=t,p=Ke(QU,null),g=Ke(vL),m=Ke(sp),y=L(()=>e.tmNode.rawNode),b=L(()=>{const{value:$}=f;return gD(e.tmNode.rawNode,$)}),x=L(()=>{const{disabled:$}=e.tmNode;return $}),w=L(()=>{if(!b.value)return!1;const{key:$,disabled:O}=e.tmNode;if(O)return!1;const{value:Q}=r,{value:V}=n,{value:W}=o,{value:Z}=a;return Q!==null?Z.includes($):V!==null?Z.includes($)&&Z[Z.length-1]!==$:W!==null?Z.includes($):!1}),C=L(()=>n.value===null&&!s.value),_=Lve(w,300,C),B=L(()=>!!(p!=null&&p.enteringSubmenuRef.value)),T=q(!1);_t(QU,{enteringSubmenuRef:T});function E(){T.value=!0}function I(){T.value=!1}function R(){const{parentKey:$,tmNode:O}=e;O.disabled||l.value&&(o.value=$,n.value=null,r.value=O.key)}function D(){const{tmNode:$}=e;$.disabled||l.value&&r.value!==$.key&&R()}function F($){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:O}=$;O&&!Ja({target:O},"dropdownOption")&&!Ja({target:O},"scrollbarRail")&&(r.value=null)}function M(){const{value:$}=b,{tmNode:O}=e;l.value&&!$&&!O.disabled&&(t.doSelect(O.key,O.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:u,renderIcon:c,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:v,popoverBody:m,animated:s,mergedShowSubmenu:L(()=>_.value&&!B.value),rawNode:y,hasSubmenu:b,pending:Ft(()=>{const{value:$}=a,{key:O}=e.tmNode;return $.includes(O)}),childActive:Ft(()=>{const{value:$}=i,{key:O}=e.tmNode,Q=$.findIndex(V=>O===V);return Q===-1?!1:Q<$.length-1}),active:Ft(()=>{const{value:$}=i,{key:O}=e.tmNode,Q=$.findIndex(V=>O===V);return Q===-1?!1:Q===$.length-1}),mergedDisabled:x,renderOption:A,nodeProps:h,handleClick:M,handleMouseMove:D,handleMouseEnter:R,handleMouseLeave:F,handleSubmenuBeforeEnter:E,handleSubmenuAfterEnter:I}},render(){var e,t;const{animated:r,rawNode:n,mergedShowSubmenu:o,clsPrefix:a,siblingHasIcon:i,siblingHasSubmenu:s,renderLabel:l,renderIcon:u,renderOption:c,nodeProps:d,props:f,scrollable:A}=this;let h=null;if(o){const m=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);h=S(Jq,Object.assign({},m,{clsPrefix:a,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const v={class:[`${a}-dropdown-option-body`,this.pending&&`${a}-dropdown-option-body--pending`,this.active&&`${a}-dropdown-option-body--active`,this.childActive&&`${a}-dropdown-option-body--child-active`,this.mergedDisabled&&`${a}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},p=d==null?void 0:d(n),g=S("div",Object.assign({class:[`${a}-dropdown-option`,p==null?void 0:p.class],"data-dropdown-option":!0},p),S("div",wn(v,f),[S("div",{class:[`${a}-dropdown-option-body__prefix`,i&&`${a}-dropdown-option-body__prefix--show-icon`]},[u?u(n):Nr(n.icon)]),S("div",{"data-dropdown-option":!0,class:`${a}-dropdown-option-body__label`},l?l(n):Nr((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),S("div",{"data-dropdown-option":!0,class:[`${a}-dropdown-option-body__suffix`,s&&`${a}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?S(hL,null,{default:()=>S($S,null)}):null)]),this.hasSubmenu?S(fd,null,{default:()=>[S(Ad,null,{default:()=>S("div",{class:`${a}-dropdown-offset-container`},S(vd,{show:this.mergedShowSubmenu,placement:this.placement,to:A&&this.popoverBody||void 0,teleportDisabled:!A},{default:()=>S("div",{class:`${a}-dropdown-menu-wrapper`},r?S(jr,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return c?c({node:g,option:n}):g}}),GEe=ge({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ke(vL),{renderLabelRef:r,labelFieldRef:n,nodePropsRef:o,renderOptionRef:a}=Ke(VS);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:o,renderOption:a}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:n,nodeProps:o,renderLabel:a,renderOption:i}=this,{rawNode:s}=this.tmNode,l=S("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(s)),S("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},S("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Nr(s.icon)),S("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},a?a(s):Nr((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),S("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return i?i({node:l,option:s}):l}}),KEe=ge({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:n}=e;return S(lr,null,S(GEe,{clsPrefix:r,tmNode:e,key:e.key}),n==null?void 0:n.map(o=>{const{rawNode:a}=o;return a.show===!1?null:qq(a)?S(Yq,{clsPrefix:r,key:o.key}):o.isGroup?(ei("dropdown","`group` node is not allowed to be put in `group` node."),null):S(Zq,{clsPrefix:r,tmNode:o,parentKey:t,key:o.key})}))}}),jEe=ge({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return S("div",t,[e==null?void 0:e()])}}),Jq=ge({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=Ke(VS);_t(vL,{showIconRef:L(()=>{const o=t.value;return e.tmNodes.some(a=>{var i;if(a.isGroup)return(i=a.children)===null||i===void 0?void 0:i.some(({rawNode:l})=>o?o(l):l.icon);const{rawNode:s}=a;return o?o(s):s.icon})}),hasSubmenuRef:L(()=>{const{value:o}=r;return e.tmNodes.some(a=>{var i;if(a.isGroup)return(i=a.children)===null||i===void 0?void 0:i.some(({rawNode:l})=>gD(l,o));const{rawNode:s}=a;return gD(s,o)})})});const n=q(null);return _t(yy,null),_t(by,null),_t(sp,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,n=this.tmNodes.map(o=>{const{rawNode:a}=o;return a.show===!1?null:WEe(a)?S(jEe,{tmNode:o,key:o.key}):qq(a)?S(Yq,{clsPrefix:t,key:o.key}):VEe(a)?S(KEe,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):S(Zq,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:a.props,scrollable:r})});return S("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?S(Pw,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?TX({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),YEe=P("dropdown-menu",`
  2535. transform-origin: var(--v-transform-origin);
  2536. background-color: var(--n-color);
  2537. border-radius: var(--n-border-radius);
  2538. box-shadow: var(--n-box-shadow);
  2539. position: relative;
  2540. transition:
  2541. background-color .3s var(--n-bezier),
  2542. box-shadow .3s var(--n-bezier);
  2543. `,[Ia(),P("dropdown-option",`
  2544. position: relative;
  2545. `,[N("a",`
  2546. text-decoration: none;
  2547. color: inherit;
  2548. outline: none;
  2549. `,[N("&::before",`
  2550. content: "";
  2551. position: absolute;
  2552. left: 0;
  2553. right: 0;
  2554. top: 0;
  2555. bottom: 0;
  2556. `)]),P("dropdown-option-body",`
  2557. display: flex;
  2558. cursor: pointer;
  2559. position: relative;
  2560. height: var(--n-option-height);
  2561. line-height: var(--n-option-height);
  2562. font-size: var(--n-font-size);
  2563. color: var(--n-option-text-color);
  2564. transition: color .3s var(--n-bezier);
  2565. `,[N("&::before",`
  2566. content: "";
  2567. position: absolute;
  2568. top: 0;
  2569. bottom: 0;
  2570. left: 4px;
  2571. right: 4px;
  2572. transition: background-color .3s var(--n-bezier);
  2573. border-radius: var(--n-border-radius);
  2574. `),Wt("disabled",[j("pending",`
  2575. color: var(--n-option-text-color-hover);
  2576. `,[G("prefix, suffix",`
  2577. color: var(--n-option-text-color-hover);
  2578. `),N("&::before","background-color: var(--n-option-color-hover);")]),j("active",`
  2579. color: var(--n-option-text-color-active);
  2580. `,[G("prefix, suffix",`
  2581. color: var(--n-option-text-color-active);
  2582. `),N("&::before","background-color: var(--n-option-color-active);")]),j("child-active",`
  2583. color: var(--n-option-text-color-child-active);
  2584. `,[G("prefix, suffix",`
  2585. color: var(--n-option-text-color-child-active);
  2586. `)])]),j("disabled",`
  2587. cursor: not-allowed;
  2588. opacity: var(--n-option-opacity-disabled);
  2589. `),j("group",`
  2590. font-size: calc(var(--n-font-size) - 1px);
  2591. color: var(--n-group-header-text-color);
  2592. `,[G("prefix",`
  2593. width: calc(var(--n-option-prefix-width) / 2);
  2594. `,[j("show-icon",`
  2595. width: calc(var(--n-option-icon-prefix-width) / 2);
  2596. `)])]),G("prefix",`
  2597. width: var(--n-option-prefix-width);
  2598. display: flex;
  2599. justify-content: center;
  2600. align-items: center;
  2601. color: var(--n-prefix-color);
  2602. transition: color .3s var(--n-bezier);
  2603. z-index: 1;
  2604. `,[j("show-icon",`
  2605. width: var(--n-option-icon-prefix-width);
  2606. `),P("icon",`
  2607. font-size: var(--n-option-icon-size);
  2608. `)]),G("label",`
  2609. white-space: nowrap;
  2610. flex: 1;
  2611. z-index: 1;
  2612. `),G("suffix",`
  2613. box-sizing: border-box;
  2614. flex-grow: 0;
  2615. flex-shrink: 0;
  2616. display: flex;
  2617. justify-content: flex-end;
  2618. align-items: center;
  2619. min-width: var(--n-option-suffix-width);
  2620. padding: 0 8px;
  2621. transition: color .3s var(--n-bezier);
  2622. color: var(--n-suffix-color);
  2623. z-index: 1;
  2624. `,[j("has-submenu",`
  2625. width: var(--n-option-icon-suffix-width);
  2626. `),P("icon",`
  2627. font-size: var(--n-option-icon-size);
  2628. `)]),P("dropdown-menu","pointer-events: all;")]),P("dropdown-offset-container",`
  2629. pointer-events: none;
  2630. position: absolute;
  2631. left: 0;
  2632. right: 0;
  2633. top: -4px;
  2634. bottom: -4px;
  2635. `)]),P("dropdown-divider",`
  2636. transition: background-color .3s var(--n-bezier);
  2637. background-color: var(--n-divider-color);
  2638. height: 1px;
  2639. margin: 4px 0;
  2640. `),P("dropdown-menu-wrapper",`
  2641. transform-origin: var(--v-transform-origin);
  2642. width: fit-content;
  2643. `),N(">",[P("scrollbar",`
  2644. height: inherit;
  2645. max-height: inherit;
  2646. `)]),Wt("scrollable",`
  2647. padding: var(--n-padding);
  2648. `),j("scrollable",[G("content",`
  2649. padding: var(--n-padding);
  2650. `)])]),XEe={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},qEe=Object.keys(Dv),ZEe=Object.assign(Object.assign(Object.assign({},Dv),XEe),Me.props),pL=ge({name:"Dropdown",inheritAttrs:!1,props:ZEe,setup(e){const t=q(!1),r=Ir(Re(e,"show"),t),n=L(()=>{const{keyField:I,childrenField:R}=e;return up(e.options,{getKey(D){return D[I]},getDisabled(D){return D.disabled===!0},getIgnored(D){return D.type==="divider"||D.type==="render"},getChildren(D){return D[R]}})}),o=L(()=>n.value.treeNodes),a=q(null),i=q(null),s=q(null),l=L(()=>{var I,R,D;return(D=(R=(I=a.value)!==null&&I!==void 0?I:i.value)!==null&&R!==void 0?R:s.value)!==null&&D!==void 0?D:null}),u=L(()=>n.value.getPath(l.value).keyPath),c=L(()=>n.value.getPath(e.value).keyPath),d=Ft(()=>e.keyboard&&r.value);Rk({keydown:{ArrowUp:{prevent:!0,handler:x},ArrowRight:{prevent:!0,handler:b},ArrowDown:{prevent:!0,handler:w},ArrowLeft:{prevent:!0,handler:y},Enter:{prevent:!0,handler:C},Escape:m}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:A}=nt(e),h=Me("Dropdown","-dropdown",YEe,cL,e,f);_t(VS,{labelFieldRef:Re(e,"labelField"),childrenFieldRef:Re(e,"childrenField"),renderLabelRef:Re(e,"renderLabel"),renderIconRef:Re(e,"renderIcon"),hoverKeyRef:a,keyboardKeyRef:i,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:u,activeKeyPathRef:c,animatedRef:Re(e,"animated"),mergedShowRef:r,nodePropsRef:Re(e,"nodeProps"),renderOptionRef:Re(e,"renderOption"),menuPropsRef:Re(e,"menuProps"),doSelect:v,doUpdateShow:p}),gt(r,I=>{!e.animated&&!I&&g()});function v(I,R){const{onSelect:D}=e;D&&Te(D,I,R)}function p(I){const{"onUpdate:show":R,onUpdateShow:D}=e;R&&Te(R,I),D&&Te(D,I),t.value=I}function g(){a.value=null,i.value=null,s.value=null}function m(){p(!1)}function y(){B("left")}function b(){B("right")}function x(){B("up")}function w(){B("down")}function C(){const I=_();I!=null&&I.isLeaf&&r.value&&(v(I.key,I.rawNode),p(!1))}function _(){var I;const{value:R}=n,{value:D}=l;return!R||D===null?null:(I=R.getNode(D))!==null&&I!==void 0?I:null}function B(I){const{value:R}=l,{value:{getFirstAvailableNode:D}}=n;let F=null;if(R===null){const M=D();M!==null&&(F=M.key)}else{const M=_();if(M){let $;switch(I){case"down":$=M.getNext();break;case"up":$=M.getPrev();break;case"right":$=M.getChild();break;case"left":$=M.getParent();break}$&&(F=$.key)}}F!==null&&(a.value=null,i.value=F)}const T=L(()=>{const{size:I,inverted:R}=e,{common:{cubicBezierEaseInOut:D},self:F}=h.value,{padding:M,dividerColor:$,borderRadius:O,optionOpacityDisabled:Q,[_e("optionIconSuffixWidth",I)]:V,[_e("optionSuffixWidth",I)]:W,[_e("optionIconPrefixWidth",I)]:Z,[_e("optionPrefixWidth",I)]:te,[_e("fontSize",I)]:ae,[_e("optionHeight",I)]:re,[_e("optionIconSize",I)]:le}=F,se={"--n-bezier":D,"--n-font-size":ae,"--n-padding":M,"--n-border-radius":O,"--n-option-height":re,"--n-option-prefix-width":te,"--n-option-icon-prefix-width":Z,"--n-option-suffix-width":W,"--n-option-icon-suffix-width":V,"--n-option-icon-size":le,"--n-divider-color":$,"--n-option-opacity-disabled":Q};return R?(se["--n-color"]=F.colorInverted,se["--n-option-color-hover"]=F.optionColorHoverInverted,se["--n-option-color-active"]=F.optionColorActiveInverted,se["--n-option-text-color"]=F.optionTextColorInverted,se["--n-option-text-color-hover"]=F.optionTextColorHoverInverted,se["--n-option-text-color-active"]=F.optionTextColorActiveInverted,se["--n-option-text-color-child-active"]=F.optionTextColorChildActiveInverted,se["--n-prefix-color"]=F.prefixColorInverted,se["--n-suffix-color"]=F.suffixColorInverted,se["--n-group-header-text-color"]=F.groupHeaderTextColorInverted):(se["--n-color"]=F.color,se["--n-option-color-hover"]=F.optionColorHover,se["--n-option-color-active"]=F.optionColorActive,se["--n-option-text-color"]=F.optionTextColor,se["--n-option-text-color-hover"]=F.optionTextColorHover,se["--n-option-text-color-active"]=F.optionTextColorActive,se["--n-option-text-color-child-active"]=F.optionTextColorChildActive,se["--n-prefix-color"]=F.prefixColor,se["--n-suffix-color"]=F.suffixColor,se["--n-group-header-text-color"]=F.groupHeaderTextColor),se}),E=A?Et("dropdown",L(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:f,mergedTheme:h,tmNodes:o,mergedShow:r,handleAfterLeave:()=>{e.animated&&g()},doUpdateShow:p,cssVars:A?void 0:T,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const e=(n,o,a,i,s)=>{var l;const{mergedClsPrefix:u,menuProps:c}=this;(l=this.onRender)===null||l===void 0||l.call(this);const d=(c==null?void 0:c(void 0,this.tmNodes.map(A=>A.rawNode)))||{},f={ref:Lj(o),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[a,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:i,onMouseleave:s};return S(Jq,wn(this.$attrs,f,d))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return S(dp,Object.assign({},Xa(this.$props,qEe),r),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}}),eZ="_n_all__",tZ="_n_none__";function JEe(e,t,r,n){return e?o=>{for(const a of e)switch(o){case eZ:r(!0);return;case tZ:n(!0);return;default:if(typeof a=="object"&&a.key===o){a.onSelect(t.value);return}}}:()=>{}}function eIe(e,t){return e?e.map(r=>{switch(r){case"all":return{label:t.checkTableAll,key:eZ};case"none":return{label:t.uncheckTableAll,key:tZ};default:return r}}):[]}const tIe=ge({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:r,checkOptionsRef:n,rawPaginatedDataRef:o,doCheckAll:a,doUncheckAll:i}=Ke(Ss),s=L(()=>JEe(n.value,o,a,i)),l=L(()=>eIe(n.value,r.value));return()=>{var u,c,d,f;const{clsPrefix:A}=e;return S(pL,{theme:(c=(u=t.theme)===null||u===void 0?void 0:u.peers)===null||c===void 0?void 0:c.Dropdown,themeOverrides:(f=(d=t.themeOverrides)===null||d===void 0?void 0:d.peers)===null||f===void 0?void 0:f.Dropdown,options:l.value,onSelect:s.value},{default:()=>S(zt,{clsPrefix:A,class:`${A}-data-table-check-extra`},{default:()=>S(AX,null)})})}}});function S2(e){return typeof e.title=="function"?e.title(e):e.title}const rZ=ge({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:r,fixedColumnRightMapRef:n,mergedCurrentPageRef:o,allRowsCheckedRef:a,someRowsCheckedRef:i,rowsRef:s,colsRef:l,mergedThemeRef:u,checkOptionsRef:c,mergedSortStateRef:d,componentId:f,scrollPartRef:A,mergedTableLayoutRef:h,headerCheckboxDisabledRef:v,onUnstableColumnResize:p,doUpdateResizableWidth:g,handleTableHeaderScroll:m,deriveNextSorter:y,doUncheckAll:b,doCheckAll:x}=Ke(Ss),w=q({});function C(F){const M=w.value[F];return M==null?void 0:M.getBoundingClientRect().width}function _(){a.value?b():x()}function B(F,M){if(Ja(F,"dataTableFilter")||Ja(F,"dataTableResizable")||!C2(M))return;const $=d.value.find(Q=>Q.columnKey===M.key)||null,O=PEe(M,$);y(O)}function T(){A.value="head"}function E(){A.value="body"}const I=new Map;function R(F){I.set(F.key,C(F.key))}function D(F,M){const $=I.get(F.key);if($===void 0)return;const O=$+M,Q=REe(O,F.minWidth,F.maxWidth);p(O,Q,F,C),g(F,Q)}return{cellElsRef:w,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:r,fixedColumnRightMap:n,currentPage:o,allRowsChecked:a,someRowsChecked:i,rows:s,cols:l,mergedTheme:u,checkOptions:c,mergedTableLayout:h,headerCheckboxDisabled:v,handleMouseenter:T,handleMouseleave:E,handleCheckboxUpdateChecked:_,handleColHeaderClick:B,handleTableHeaderScroll:m,handleColumnResizeStart:R,handleColumnResize:D}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:r,fixedColumnRightMap:n,currentPage:o,allRowsChecked:a,someRowsChecked:i,rows:s,cols:l,mergedTheme:u,checkOptions:c,componentId:d,discrete:f,mergedTableLayout:A,headerCheckboxDisabled:h,mergedSortState:v,handleColHeaderClick:p,handleCheckboxUpdateChecked:g,handleColumnResizeStart:m,handleColumnResize:y}=this,b=S("thead",{class:`${t}-data-table-thead`,"data-n-id":d},s.map(B=>S("tr",{class:`${t}-data-table-tr`},B.map(({column:T,colSpan:E,rowSpan:I,isLast:R})=>{var D,F;const M=as(T),{ellipsis:$}=T,O=()=>T.type==="selection"?T.multiple!==!1?S(lr,null,S(By,{key:o,privateInsideTable:!0,checked:a,indeterminate:i,disabled:h,onUpdateChecked:g}),c?S(tIe,{clsPrefix:t}):null):null:S(lr,null,S("div",{class:`${t}-data-table-th__title-wrapper`},S("div",{class:`${t}-data-table-th__title`},$===!0||$&&!$.tooltip?S("div",{class:`${t}-data-table-th__ellipsis`},S2(T)):$&&typeof $=="object"?S(fL,Object.assign({},$,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>S2(T)}):S2(T)),C2(T)?S(bEe,{column:T}):null),HU(T)?S(LEe,{column:T,options:T.filterOptions}):null,Kq(T)?S(OEe,{onResizeStart:()=>m(T),onResize:W=>y(T,W)}):null),Q=M in r,V=M in n;return S("th",{ref:W=>e[M]=W,key:M,style:{textAlign:T.align,left:On((D=r[M])===null||D===void 0?void 0:D.start),right:On((F=n[M])===null||F===void 0?void 0:F.start)},colspan:E,rowspan:I,"data-col-key":M,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:jq(T,v),[`${t}-data-table-th--filterable`]:HU(T),[`${t}-data-table-th--sortable`]:C2(T),[`${t}-data-table-th--selection`]:T.type==="selection",[`${t}-data-table-th--last`]:R},T.className],onClick:T.type!=="selection"&&T.type!=="expand"&&!("children"in T)?W=>{p(W,T)}:void 0},O())}))));if(!f)return b;const{handleTableHeaderScroll:x,handleMouseenter:w,handleMouseleave:C,scrollX:_}=this;return S("div",{class:`${t}-data-table-base-table-header`,onScroll:x,onMouseenter:w,onMouseleave:C},S("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:wr(_),tableLayout:A}},S("colgroup",null,l.map(B=>S("col",{key:B.key,style:B.style}))),b))}}),rIe=ge({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:r,renderCell:n}=this;let o;const{render:a,key:i,ellipsis:s}=t;if(a&&!e?o=a(r,this.index):e?o=r[i].value:o=n?n(pm(r,i),r,t):pm(r,i),s)if(typeof s=="object"){const{mergedTheme:l}=this;return S(fL,Object.assign({},s,{theme:l.peers.Ellipsis,themeOverrides:l.peerOverrides.Ellipsis}),{default:()=>o})}else return S("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),VU=ge({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return S("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},S(yl,null,{default:()=>this.loading?S(Eu,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():S(zt,{clsPrefix:e,key:"base-icon"},{default:()=>S($S,null)})}))}}),nIe=ge({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:r}=Ke(Ss);return()=>{const{rowKey:n}=e;return S(By,{privateInsideTable:!0,disabled:e.disabled,indeterminate:r.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),oIe=ge({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:r}=Ke(Ss);return()=>{const{rowKey:n}=e;return S(AL,{name:r,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function aIe(e,t){const r=[];function n(o,a){o.forEach(i=>{i.children&&t.has(i.key)?(r.push({tmNode:i,striped:!1,key:i.key,index:a}),n(i.children,a)):r.push({key:i.key,tmNode:i,striped:!1,index:a})})}return e.forEach(o=>{r.push(o);const{children:a}=o.tmNode;a&&t.has(o.key)&&n(a,o.index)}),r}const iIe=ge({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:r,onMouseenter:n,onMouseleave:o}=this;return S("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:o},S("colgroup",null,r.map(a=>S("col",{key:a.key,style:a.style}))),S("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),sIe=ge({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:r,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:o,mergedThemeRef:a,scrollXRef:i,colsRef:s,paginatedDataRef:l,rawPaginatedDataRef:u,fixedColumnLeftMapRef:c,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:A,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:v,rightActiveFixedColKeyRef:p,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:m,hoverKeyRef:y,summaryRef:b,mergedSortStateRef:x,virtualScrollRef:w,componentId:C,scrollPartRef:_,mergedTableLayoutRef:B,childTriggerColIndexRef:T,indentRef:E,rowPropsRef:I,maxHeightRef:R,stripedRef:D,loadingRef:F,onLoadRef:M,loadingKeySetRef:$,expandableRef:O,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:W,treeMateRef:Z,scrollbarPropsRef:te,setHeaderScrollLeft:ae,doUpdateExpandedRowKeys:re,handleTableBodyScroll:le,doCheck:se,doUncheck:ce,renderCell:be}=Ke(Ss),de=q(null),pe=q(null),K=q(null),U=Ft(()=>l.value.length===0),k=Ft(()=>e.showHeader||!U.value),J=Ft(()=>e.showHeader||U.value);let ee="";const H=L(()=>new Set(n.value));function Y(Ge){var it;return(it=Z.value.getNode(Ge))===null||it===void 0?void 0:it.rawNode}function oe(Ge,it,je){const Ye=Y(Ge.key);if(!Ye){ei("data-table",`fail to get row data with key ${Ge.key}`);return}if(je){const ue=l.value.findIndex(Ee=>Ee.key===ee);if(ue!==-1){const Ee=l.value.findIndex(xe=>xe.key===Ge.key),Qe=Math.min(ue,Ee),et=Math.max(ue,Ee),tt=[];l.value.slice(Qe,et+1).forEach(xe=>{xe.disabled||tt.push(xe.key)}),it?se(tt,!1,Ye):ce(tt,Ye),ee=Ge.key;return}}it?se(Ge.key,!1,Ye):ce(Ge.key,Ye),ee=Ge.key}function he(Ge){const it=Y(Ge.key);if(!it){ei("data-table",`fail to get row data with key ${Ge.key}`);return}se(Ge.key,!0,it)}function ne(){if(!k.value){const{value:it}=K;return it||null}if(w.value)return fe();const{value:Ge}=de;return Ge?Ge.containerRef:null}function Ae(Ge,it){var je;if($.value.has(Ge))return;const{value:Ye}=n,ue=Ye.indexOf(Ge),Ee=Array.from(Ye);~ue?(Ee.splice(ue,1),re(Ee)):it&&!it.isLeaf&&!it.shallowLoaded?($.value.add(Ge),(je=M.value)===null||je===void 0||je.call(M,it.rawNode).then(()=>{const{value:Qe}=n,et=Array.from(Qe);~et.indexOf(Ge)||et.push(Ge),re(et)}).finally(()=>{$.value.delete(Ge)})):(Ee.push(Ge),re(Ee))}function X(){y.value=null}function ie(){_.value="body"}function fe(){const{value:Ge}=pe;return Ge==null?void 0:Ge.listElRef}function ye(){const{value:Ge}=pe;return Ge==null?void 0:Ge.itemsElRef}function Fe(Ge){var it;le(Ge),(it=de.value)===null||it===void 0||it.sync()}function Ne(Ge){var it;const{onResize:je}=e;je&&je(Ge),(it=de.value)===null||it===void 0||it.sync()}const rt={getScrollContainer:ne,scrollTo(Ge,it){var je,Ye;w.value?(je=pe.value)===null||je===void 0||je.scrollTo(Ge,it):(Ye=de.value)===null||Ye===void 0||Ye.scrollTo(Ge,it)}},lt=N([({props:Ge})=>{const it=Ye=>Ye===null?null:N(`[data-n-id="${Ge.componentId}"] [data-col-key="${Ye}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),je=Ye=>Ye===null?null:N(`[data-n-id="${Ge.componentId}"] [data-col-key="${Ye}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return N([it(Ge.leftActiveFixedColKey),je(Ge.rightActiveFixedColKey),Ge.leftActiveFixedChildrenColKeys.map(Ye=>it(Ye)),Ge.rightActiveFixedChildrenColKeys.map(Ye=>je(Ye))])}]);let mt=!1;return Sr(()=>{const{value:Ge}=h,{value:it}=v,{value:je}=p,{value:Ye}=g;if(!mt&&Ge===null&&je===null)return;const ue={leftActiveFixedColKey:Ge,leftActiveFixedChildrenColKeys:it,rightActiveFixedColKey:je,rightActiveFixedChildrenColKeys:Ye,componentId:C};lt.mount({id:`n-${C}`,force:!0,props:ue,anchorMetaName:Rv}),mt=!0}),SA(()=>{lt.unmount({id:`n-${C}`})}),Object.assign({bodyWidth:r,summaryPlacement:W,dataTableSlots:t,componentId:C,scrollbarInstRef:de,virtualListRef:pe,emptyElRef:K,summary:b,mergedClsPrefix:o,mergedTheme:a,scrollX:i,cols:s,loading:F,bodyShowHeaderOnly:J,shouldDisplaySomeTablePart:k,empty:U,paginatedDataAndInfo:L(()=>{const{value:Ge}=D;let it=!1;return{data:l.value.map(Ge?(Ye,ue)=>(Ye.isLeaf||(it=!0),{tmNode:Ye,key:Ye.key,striped:ue%2===1,index:ue}):(Ye,ue)=>(Ye.isLeaf||(it=!0),{tmNode:Ye,key:Ye.key,striped:!1,index:ue})),hasChildren:it}}),rawPaginatedData:u,fixedColumnLeftMap:c,fixedColumnRightMap:d,currentPage:f,rowClassName:A,renderExpand:m,mergedExpandedRowKeySet:H,hoverKey:y,mergedSortState:x,virtualScroll:w,mergedTableLayout:B,childTriggerColIndex:T,indent:E,rowProps:I,maxHeight:R,loadingKeySet:$,expandable:O,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:te,setHeaderScrollLeft:ae,handleMouseenterTable:ie,handleVirtualListScroll:Fe,handleVirtualListResize:Ne,handleMouseleaveTable:X,virtualListContainer:fe,virtualListContent:ye,handleTableBodyScroll:le,handleCheckboxUpdateChecked:oe,handleRadioUpdateChecked:he,handleUpdateExpanded:Ae,renderCell:be},rt)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:r,virtualScroll:n,maxHeight:o,mergedTableLayout:a,flexHeight:i,loadingKeySet:s,onResize:l,setHeaderScrollLeft:u}=this,c=t!==void 0||o!==void 0||i,d=!c&&a==="auto",f=t!==void 0||d,A={minWidth:wr(t)||"100%"};t&&(A.width="100%");const h=S(Gn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:c||d,class:`${r}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:A,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:u,onResize:l}),{default:()=>{const v={},p={},{cols:g,paginatedDataAndInfo:m,mergedTheme:y,fixedColumnLeftMap:b,fixedColumnRightMap:x,currentPage:w,rowClassName:C,mergedSortState:_,mergedExpandedRowKeySet:B,stickyExpandedRows:T,componentId:E,childTriggerColIndex:I,expandable:R,rowProps:D,handleMouseenterTable:F,handleMouseleaveTable:M,renderExpand:$,summary:O,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:W}=this,{length:Z}=g;let te;const{data:ae,hasChildren:re}=m,le=re?aIe(ae,B):ae;if(O){const k=O(this.rawPaginatedData);if(Array.isArray(k)){const J=k.map((ee,H)=>({isSummaryRow:!0,key:`__n_summary__${H}`,tmNode:{rawNode:ee,disabled:!0},index:-1}));te=this.summaryPlacement==="top"?[...J,...le]:[...le,...J]}else{const J={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:k,disabled:!0},index:-1};te=this.summaryPlacement==="top"?[J,...le]:[...le,J]}}else te=le;const se=re?{width:On(this.indent)}:void 0,ce=[];te.forEach(k=>{$&&B.has(k.key)&&(!R||R(k.tmNode.rawNode))?ce.push(k,{isExpandedRow:!0,key:`${k.key}-expand`,tmNode:k.tmNode,index:k.index}):ce.push(k)});const{length:be}=ce,de={};ae.forEach(({tmNode:k},J)=>{de[J]=k.key});const pe=T?this.bodyWidth:null,K=pe===null?void 0:`${pe}px`,U=(k,J,ee)=>{const{index:H}=k;if("isExpandedRow"in k){const{tmNode:{key:Fe,rawNode:Ne}}=k;return S("tr",{class:`${r}-data-table-tr`,key:`${Fe}__expand`},S("td",{class:[`${r}-data-table-td`,`${r}-data-table-td--last-col`,J+1===be&&`${r}-data-table-td--last-row`],colspan:Z},T?S("div",{class:`${r}-data-table-expand`,style:{width:K}},$(Ne,H)):$(Ne,H)))}const Y="isSummaryRow"in k,oe=!Y&&k.striped,{tmNode:he,key:ne}=k,{rawNode:Ae}=he,X=B.has(ne),ie=D?D(Ae,H):void 0,fe=typeof C=="string"?C:MEe(Ae,H,C);return S("tr",Object.assign({onMouseenter:()=>{this.hoverKey=ne},key:ne,class:[`${r}-data-table-tr`,Y&&`${r}-data-table-tr--summary`,oe&&`${r}-data-table-tr--striped`,fe]},ie),g.map((Fe,Ne)=>{var rt,lt,mt,Ge,it;if(J in v){const He=v[J],me=He.indexOf(Ne);if(~me)return He.splice(me,1),null}const{column:je}=Fe,Ye=as(Fe),{rowSpan:ue,colSpan:Ee}=je,Qe=Y?((rt=k.tmNode.rawNode[Ye])===null||rt===void 0?void 0:rt.colSpan)||1:Ee?Ee(Ae,H):1,et=Y?((lt=k.tmNode.rawNode[Ye])===null||lt===void 0?void 0:lt.rowSpan)||1:ue?ue(Ae,H):1,tt=Ne+Qe===Z,xe=J+et===be,$e=et>1;if($e&&(p[J]={[Ne]:[]}),Qe>1||$e)for(let He=J;He<J+et;++He){$e&&p[J][Ne].push(de[He]);for(let me=Ne;me<Ne+Qe;++me)He===J&&me===Ne||(He in v?v[He].push(me):v[He]=[me])}const Xe=$e?this.hoverKey:null,{cellProps:ht}=je,Se=ht==null?void 0:ht(Ae,H);return S("td",Object.assign({},Se,{key:Ye,style:[{textAlign:je.align||void 0,left:On((mt=b[Ye])===null||mt===void 0?void 0:mt.start),right:On((Ge=x[Ye])===null||Ge===void 0?void 0:Ge.start)},(Se==null?void 0:Se.style)||""],colspan:Qe,rowspan:ee?void 0:et,"data-col-key":Ye,class:[`${r}-data-table-td`,je.className,Se==null?void 0:Se.class,Y&&`${r}-data-table-td--summary`,(Xe!==null&&p[J][Ne].includes(Xe)||jq(je,_))&&`${r}-data-table-td--hover`,je.fixed&&`${r}-data-table-td--fixed-${je.fixed}`,je.align&&`${r}-data-table-td--${je.align}-align`,je.type==="selection"&&`${r}-data-table-td--selection`,je.type==="expand"&&`${r}-data-table-td--expand`,tt&&`${r}-data-table-td--last-col`,xe&&`${r}-data-table-td--last-row`]}),re&&Ne===I?[Pj(Y?0:k.tmNode.level,S("div",{class:`${r}-data-table-indent`,style:se})),Y||k.tmNode.isLeaf?S("div",{class:`${r}-data-table-expand-placeholder`}):S(VU,{class:`${r}-data-table-expand-trigger`,clsPrefix:r,expanded:X,renderExpandIcon:this.renderExpandIcon,loading:s.has(k.key),onClick:()=>{W(ne,k.tmNode)}})]:null,je.type==="selection"?Y?null:je.multiple===!1?S(oIe,{key:w,rowKey:ne,disabled:k.tmNode.disabled,onUpdateChecked:()=>V(k.tmNode)}):S(nIe,{key:w,rowKey:ne,disabled:k.tmNode.disabled,onUpdateChecked:(He,me)=>Q(k.tmNode,He,me.shiftKey)}):je.type==="expand"?Y?null:!je.expandable||!((it=je.expandable)===null||it===void 0)&&it.call(je,Ae)?S(VU,{clsPrefix:r,expanded:X,renderExpandIcon:this.renderExpandIcon,onClick:()=>W(ne,null)}):null:S(rIe,{clsPrefix:r,index:H,row:Ae,column:je,isSummary:Y,mergedTheme:y,renderCell:this.renderCell}))}))};return n?S(Iv,{ref:"virtualListRef",items:ce,itemSize:28,visibleItemsTag:iIe,visibleItemsProps:{clsPrefix:r,id:E,cols:g,onMouseenter:F,onMouseleave:M},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:A,itemResizable:!0},{default:({item:k,index:J})=>U(k,J,!0)}):S("table",{class:`${r}-data-table-table`,onMouseleave:M,onMouseenter:F,style:{tableLayout:this.mergedTableLayout}},S("colgroup",null,g.map(k=>S("col",{key:k.key,style:k.style}))),this.showHeader?S(rZ,{discrete:!1}):null,this.empty?null:S("tbody",{"data-n-id":E,class:`${r}-data-table-tbody`},ce.map((k,J)=>U(k,J,!1))))}});if(this.empty){const v=()=>S("div",{class:[`${r}-data-table-empty`,this.loading&&`${r}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},Kt(this.dataTableSlots.empty,()=>[S(US,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?S(lr,null,h,v()):S(Fi,{onResize:this.onResize},{default:v})}return h}}),lIe=ge({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:r,bodyWidthRef:n,maxHeightRef:o,minHeightRef:a,flexHeightRef:i,syncScrollState:s}=Ke(Ss),l=q(null),u=q(null),c=q(null),d=q(!(r.value.length||t.value.length)),f=L(()=>({maxHeight:wr(o.value),minHeight:wr(a.value)}));function A(g){n.value=g.contentRect.width,s(),d.value||(d.value=!0)}function h(){const{value:g}=l;return g?g.$el:null}function v(){const{value:g}=u;return g?g.getScrollContainer():null}const p={getBodyElement:v,getHeaderElement:h,scrollTo(g,m){var y;(y=u.value)===null||y===void 0||y.scrollTo(g,m)}};return Sr(()=>{const{value:g}=c;if(!g)return;const m=`${e.value}-data-table-base-table--transition-disabled`;d.value?setTimeout(()=>{g.classList.remove(m)},0):g.classList.add(m)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:c,headerInstRef:l,bodyInstRef:u,bodyStyle:f,flexHeight:i,handleBodyResize:A},p)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:r}=this,n=t===void 0&&!r;return S("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:S(rZ,{ref:"headerInstRef"}),S(sIe,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:r,onResize:this.handleBodyResize}))}});function uIe(e,t){const{paginatedDataRef:r,treeMateRef:n,selectionColumnRef:o}=t,a=q(e.defaultCheckedRowKeys),i=L(()=>{var x;const{checkedRowKeys:w}=e,C=w===void 0?a.value:w;return((x=o.value)===null||x===void 0?void 0:x.multiple)===!1?{checkedKeys:C.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(C,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),s=L(()=>i.value.checkedKeys),l=L(()=>i.value.indeterminateKeys),u=L(()=>new Set(s.value)),c=L(()=>new Set(l.value)),d=L(()=>{const{value:x}=u;return r.value.reduce((w,C)=>{const{key:_,disabled:B}=C;return w+(!B&&x.has(_)?1:0)},0)}),f=L(()=>r.value.filter(x=>x.disabled).length),A=L(()=>{const{length:x}=r.value,{value:w}=c;return d.value>0&&d.value<x-f.value||r.value.some(C=>w.has(C.key))}),h=L(()=>{const{length:x}=r.value;return d.value!==0&&d.value===x-f.value}),v=L(()=>r.value.length===0);function p(x,w,C){const{"onUpdate:checkedRowKeys":_,onUpdateCheckedRowKeys:B,onCheckedRowKeysChange:T}=e,E=[],{value:{getNode:I}}=n;x.forEach(R=>{var D;const F=(D=I(R))===null||D===void 0?void 0:D.rawNode;E.push(F)}),_&&Te(_,x,E,{row:w,action:C}),B&&Te(B,x,E,{row:w,action:C}),T&&Te(T,x,E,{row:w,action:C}),a.value=x}function g(x,w=!1,C){if(!e.loading){if(w){p(Array.isArray(x)?x.slice(0,1):[x],C,"check");return}p(n.value.check(x,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,C,"check")}}function m(x,w){e.loading||p(n.value.uncheck(x,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,w,"uncheck")}function y(x=!1){const{value:w}=o;if(!w||e.loading)return;const C=[];(x?n.value.treeNodes:r.value).forEach(_=>{_.disabled||C.push(_.key)}),p(n.value.check(C,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function b(x=!1){const{value:w}=o;if(!w||e.loading)return;const C=[];(x?n.value.treeNodes:r.value).forEach(_=>{_.disabled||C.push(_.key)}),p(n.value.uncheck(C,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:s,mergedInderminateRowKeySetRef:c,someRowsCheckedRef:A,allRowsCheckedRef:h,headerCheckboxDisabledRef:v,doUpdateCheckedRowKeys:p,doCheckAll:y,doUncheckAll:b,doCheck:g,doUncheck:m}}function zb(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function cIe(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?dIe(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function dIe(e){return(t,r)=>{const n=t[e],o=r[e];return typeof n=="number"&&typeof o=="number"?n-o:typeof n=="string"&&typeof o=="string"?n.localeCompare(o):0}}function fIe(e,{dataRelatedColsRef:t,filteredDataRef:r}){const n=[];t.value.forEach(A=>{var h;A.sorter!==void 0&&f(n,{columnKey:A.key,sorter:A.sorter,order:(h=A.defaultSortOrder)!==null&&h!==void 0?h:!1})});const o=q(n),a=L(()=>{const A=t.value.filter(p=>p.type!=="selection"&&p.sorter!==void 0&&(p.sortOrder==="ascend"||p.sortOrder==="descend"||p.sortOrder===!1)),h=A.filter(p=>p.sortOrder!==!1);if(h.length)return h.map(p=>({columnKey:p.key,order:p.sortOrder,sorter:p.sorter}));if(A.length)return[];const{value:v}=o;return Array.isArray(v)?v:v?[v]:[]}),i=L(()=>{const A=a.value.slice().sort((h,v)=>{const p=zb(h.sorter)||0;return(zb(v.sorter)||0)-p});return A.length?r.value.slice().sort((v,p)=>{let g=0;return A.some(m=>{const{columnKey:y,sorter:b,order:x}=m,w=cIe(b,y);return w&&x&&(g=w(v.rawNode,p.rawNode),g!==0)?(g=g*IEe(x),!0):!1}),g}):r.value});function s(A){let h=a.value.slice();return A&&zb(A.sorter)!==!1?(h=h.filter(v=>zb(v.sorter)!==!1),f(h,A),h):A||null}function l(A){const h=s(A);u(h)}function u(A){const{"onUpdate:sorter":h,onUpdateSorter:v,onSorterChange:p}=e;h&&Te(h,A),v&&Te(v,A),p&&Te(p,A),o.value=A}function c(A,h="ascend"){if(!A)d();else{const v=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===A);if(!(v!=null&&v.sorter))return;const p=v.sorter;l({columnKey:A,sorter:p,order:h})}}function d(){u(null)}function f(A,h){const v=A.findIndex(p=>(h==null?void 0:h.columnKey)&&p.columnKey===h.columnKey);v!==void 0&&v>=0?A[v]=h:A.push(h)}return{clearSorter:d,sort:c,sortedDataRef:i,mergedSortStateRef:a,deriveNextSorter:l}}function AIe(e,{dataRelatedColsRef:t}){const r=L(()=>{const V=W=>{for(let Z=0;Z<W.length;++Z){const te=W[Z];if("children"in te)return V(te.children);if(te.type==="selection")return te}return null};return V(e.columns)}),n=L(()=>{const{childrenKey:V}=e;return up(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:W=>W[V],getDisabled:W=>{var Z,te;return!!(!((te=(Z=r.value)===null||Z===void 0?void 0:Z.disabled)===null||te===void 0)&&te.call(Z,W))}})}),o=Ft(()=>{const{columns:V}=e,{length:W}=V;let Z=null;for(let te=0;te<W;++te){const ae=V[te];if(!ae.type&&Z===null&&(Z=te),"tree"in ae&&ae.tree)return te}return Z||0}),a=q({}),i=q(1),s=q(10),l=L(()=>{const V=t.value.filter(te=>te.filterOptionValues!==void 0||te.filterOptionValue!==void 0),W={};return V.forEach(te=>{var ae;te.type==="selection"||te.type==="expand"||(te.filterOptionValues===void 0?W[te.key]=(ae=te.filterOptionValue)!==null&&ae!==void 0?ae:null:W[te.key]=te.filterOptionValues)}),Object.assign(NU(a.value),W)}),u=L(()=>{const V=l.value,{columns:W}=e;function Z(re){return(le,se)=>!!~String(se[re]).indexOf(String(le))}const{value:{treeNodes:te}}=n,ae=[];return W.forEach(re=>{re.type==="selection"||re.type==="expand"||"children"in re||ae.push([re.key,re])}),te?te.filter(re=>{const{rawNode:le}=re;for(const[se,ce]of ae){let be=V[se];if(be==null||(Array.isArray(be)||(be=[be]),!be.length))continue;const de=ce.filter==="default"?Z(se):ce.filter;if(ce&&typeof de=="function")if(ce.filterMode==="and"){if(be.some(pe=>!de(pe,le)))return!1}else{if(be.some(pe=>de(pe,le)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:d,mergedSortStateRef:f,sort:A,clearSorter:h}=fIe(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(V=>{var W;if(V.filter){const Z=V.defaultFilterOptionValues;V.filterMultiple?a.value[V.key]=Z||[]:Z!==void 0?a.value[V.key]=Z===null?[]:Z:a.value[V.key]=(W=V.defaultFilterOptionValue)!==null&&W!==void 0?W:null}});const v=L(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),p=L(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=Ir(v,i),m=Ir(p,s),y=Ft(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(u.value.length/m.value),V))}),b=L(()=>{const{pagination:V}=e;if(V){const{pageCount:W}=V;if(W!==void 0)return W}}),x=L(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const V=m.value,W=(y.value-1)*V;return c.value.slice(W,W+V)}),w=L(()=>x.value.map(V=>V.rawNode));function C(V){const{pagination:W}=e;if(W){const{onChange:Z,"onUpdate:page":te,onUpdatePage:ae}=W;Z&&Te(Z,V),ae&&Te(ae,V),te&&Te(te,V),E(V)}}function _(V){const{pagination:W}=e;if(W){const{onPageSizeChange:Z,"onUpdate:pageSize":te,onUpdatePageSize:ae}=W;Z&&Te(Z,V),ae&&Te(ae,V),te&&Te(te,V),I(V)}}const B=L(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:W}=V;if(W!==void 0)return W}return}return u.value.length}),T=L(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":C,"onUpdate:pageSize":_,page:y.value,pageSize:m.value,pageCount:B.value===void 0?b.value:void 0,itemCount:B.value}));function E(V){const{"onUpdate:page":W,onPageChange:Z,onUpdatePage:te}=e;te&&Te(te,V),W&&Te(W,V),Z&&Te(Z,V),i.value=V}function I(V){const{"onUpdate:pageSize":W,onPageSizeChange:Z,onUpdatePageSize:te}=e;Z&&Te(Z,V),te&&Te(te,V),W&&Te(W,V),s.value=V}function R(V,W){const{onUpdateFilters:Z,"onUpdate:filters":te,onFiltersChange:ae}=e;Z&&Te(Z,V,W),te&&Te(te,V,W),ae&&Te(ae,V,W),a.value=V}function D(V,W,Z,te){var ae;(ae=e.onUnstableColumnResize)===null||ae===void 0||ae.call(e,V,W,Z,te)}function F(V){E(V)}function M(){$()}function $(){O({})}function O(V){Q(V)}function Q(V){V?V&&(a.value=NU(V)):a.value={}}return{treeMateRef:n,mergedCurrentPageRef:y,mergedPaginationRef:T,paginatedDataRef:x,rawPaginatedDataRef:w,mergedFilterStateRef:l,mergedSortStateRef:f,hoverKeyRef:q(null),selectionColumnRef:r,childTriggerColIndexRef:o,doUpdateFilters:R,deriveNextSorter:d,doUpdatePageSize:I,doUpdatePage:E,onUnstableColumnResize:D,filter:Q,filters:O,clearFilter:M,clearFilters:$,clearSorter:h,page:F,sort:A}}function hIe(e,{mainTableInstRef:t,mergedCurrentPageRef:r,bodyWidthRef:n,scrollPartRef:o}){let a=0;const i=q(null),s=q([]),l=q(null),u=q([]),c=L(()=>wr(e.scrollX)),d=L(()=>e.columns.filter(B=>B.fixed==="left")),f=L(()=>e.columns.filter(B=>B.fixed==="right")),A=L(()=>{const B={};let T=0;function E(I){I.forEach(R=>{const D={start:T,end:0};B[as(R)]=D,"children"in R?(E(R.children),D.end=T):(T+=UU(R)||0,D.end=T)})}return E(d.value),B}),h=L(()=>{const B={};let T=0;function E(I){for(let R=I.length-1;R>=0;--R){const D=I[R],F={start:T,end:0};B[as(D)]=F,"children"in D?(E(D.children),F.end=T):(T+=UU(D)||0,F.end=T)}}return E(f.value),B});function v(){var B,T;const{value:E}=d;let I=0;const{value:R}=A;let D=null;for(let F=0;F<E.length;++F){const M=as(E[F]);if(a>(((B=R[M])===null||B===void 0?void 0:B.start)||0)-I)D=M,I=((T=R[M])===null||T===void 0?void 0:T.end)||0;else break}i.value=D}function p(){s.value=[];let B=e.columns.find(T=>as(T)===i.value);for(;B&&"children"in B;){const T=B.children.length;if(T===0)break;const E=B.children[T-1];s.value.push(as(E)),B=E}}function g(){var B,T;const{value:E}=f,I=Number(e.scrollX),{value:R}=n;if(R===null)return;let D=0,F=null;const{value:M}=h;for(let $=E.length-1;$>=0;--$){const O=as(E[$]);if(Math.round(a+(((B=M[O])===null||B===void 0?void 0:B.start)||0)+R-D)<I)F=O,D=((T=M[O])===null||T===void 0?void 0:T.end)||0;else break}l.value=F}function m(){u.value=[];let B=e.columns.find(T=>as(T)===l.value);for(;B&&"children"in B&&B.children.length;){const T=B.children[0];u.value.push(as(T)),B=T}}function y(){const B=t.value?t.value.getHeaderElement():null,T=t.value?t.value.getBodyElement():null;return{header:B,body:T}}function b(){const{body:B}=y();B&&(B.scrollTop=0)}function x(){o.value==="head"&&Tv(C)}function w(B){var T;(T=e.onScroll)===null||T===void 0||T.call(e,B),o.value==="body"&&Tv(C)}function C(){const{header:B,body:T}=y();if(!T)return;const{value:E}=n;if(E===null)return;const{value:I}=o;if(e.maxHeight||e.flexHeight){if(!B)return;I==="head"?(a=B.scrollLeft,T.scrollLeft=a):(a=T.scrollLeft,B.scrollLeft=a)}else a=T.scrollLeft;v(),p(),g(),m()}function _(B){const{header:T}=y();T&&(T.scrollLeft=B,C())}return gt(r,()=>{b()}),{styleScrollXRef:c,fixedColumnLeftMapRef:A,fixedColumnRightMapRef:h,leftFixedColumnsRef:d,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:i,leftActiveFixedChildrenColKeysRef:s,rightActiveFixedColKeyRef:l,rightActiveFixedChildrenColKeysRef:u,syncScrollState:C,handleTableBodyScroll:w,handleTableHeaderScroll:x,setHeaderScrollLeft:_}}function vIe(){const e=q({});function t(o){return e.value[o]}function r(o,a){Kq(o)&&"key"in o&&(e.value[o.key]=a)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:r,clearResizableWidth:n}}function pIe(e,t){const r=[],n=[],o=[],a=new WeakMap;let i=-1,s=0,l=!1;function u(f,A){A>i&&(r[A]=[],i=A);for(const h of f)if("children"in h)u(h.children,A+1);else{const v="key"in h?h.key:void 0;n.push({key:as(h),style:DEe(h,v!==void 0?wr(t(v)):void 0),column:h}),s+=1,l||(l=!!h.ellipsis),o.push(h)}}u(e,0);let c=0;function d(f,A){let h=0;f.forEach((v,p)=>{var g;if("children"in v){const m=c,y={column:v,colSpan:0,rowSpan:1,isLast:!1};d(v.children,A+1),v.children.forEach(b=>{var x,w;y.colSpan+=(w=(x=a.get(b))===null||x===void 0?void 0:x.colSpan)!==null&&w!==void 0?w:0}),m+y.colSpan===s&&(y.isLast=!0),a.set(v,y),r[A].push(y)}else{if(c<h){c+=1;return}let m=1;"titleColSpan"in v&&(m=(g=v.titleColSpan)!==null&&g!==void 0?g:1),m>1&&(h=c+m);const y=c+m===s,b={column:v,colSpan:m,rowSpan:i-A+1,isLast:y};a.set(v,b),r[A].push(b),c+=1}})}return d(e,0),{hasEllipsis:l,rows:r,cols:n,dataRelatedCols:o}}function gIe(e,t){const r=L(()=>pIe(e.columns,t));return{rowsRef:L(()=>r.value.rows),colsRef:L(()=>r.value.cols),hasEllipsisRef:L(()=>r.value.hasEllipsis),dataRelatedColsRef:L(()=>r.value.dataRelatedCols)}}function mIe(e,t){const r=Ft(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=Ft(()=>{let u;for(const c of e.columns)if(c.type==="expand"){u=c.expandable;break}return u}),o=q(e.defaultExpandAll?r!=null&&r.value?(()=>{const u=[];return t.value.treeNodes.forEach(c=>{var d;!((d=n.value)===null||d===void 0)&&d.call(n,c.rawNode)&&u.push(c.key)}),u})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),a=Re(e,"expandedRowKeys"),i=Re(e,"stickyExpandedRows"),s=Ir(a,o);function l(u){const{onUpdateExpandedRowKeys:c,"onUpdate:expandedRowKeys":d}=e;c&&Te(c,u),d&&Te(d,u),o.value=u}return{stickyExpandedRowsRef:i,mergedExpandedRowKeysRef:s,renderExpandRef:r,expandableRef:n,doUpdateExpandedRowKeys:l}}const WU=bIe(),yIe=N([P("data-table",`
  2651. width: 100%;
  2652. font-size: var(--n-font-size);
  2653. display: flex;
  2654. flex-direction: column;
  2655. position: relative;
  2656. --n-merged-th-color: var(--n-th-color);
  2657. --n-merged-td-color: var(--n-td-color);
  2658. --n-merged-border-color: var(--n-border-color);
  2659. --n-merged-th-color-hover: var(--n-th-color-hover);
  2660. --n-merged-td-color-hover: var(--n-td-color-hover);
  2661. --n-merged-td-color-striped: var(--n-td-color-striped);
  2662. `,[P("data-table-wrapper",`
  2663. flex-grow: 1;
  2664. display: flex;
  2665. flex-direction: column;
  2666. `),j("flex-height",[N(">",[P("data-table-wrapper",[N(">",[P("data-table-base-table",`
  2667. display: flex;
  2668. flex-direction: column;
  2669. flex-grow: 1;
  2670. `,[N(">",[P("data-table-base-table-body","flex-basis: 0;",[N("&:last-child","flex-grow: 1;")])])])])])])]),N(">",[P("data-table-loading-wrapper",`
  2671. color: var(--n-loading-color);
  2672. font-size: var(--n-loading-size);
  2673. position: absolute;
  2674. left: 50%;
  2675. top: 50%;
  2676. transform: translateX(-50%) translateY(-50%);
  2677. transition: color .3s var(--n-bezier);
  2678. display: flex;
  2679. align-items: center;
  2680. justify-content: center;
  2681. `,[Ia({originalTransform:"translateX(-50%) translateY(-50%)"})])]),P("data-table-expand-placeholder",`
  2682. margin-right: 8px;
  2683. display: inline-block;
  2684. width: 16px;
  2685. height: 1px;
  2686. `),P("data-table-indent",`
  2687. display: inline-block;
  2688. height: 1px;
  2689. `),P("data-table-expand-trigger",`
  2690. display: inline-flex;
  2691. margin-right: 8px;
  2692. cursor: pointer;
  2693. font-size: 16px;
  2694. vertical-align: -0.2em;
  2695. position: relative;
  2696. width: 16px;
  2697. height: 16px;
  2698. color: var(--n-td-text-color);
  2699. transition: color .3s var(--n-bezier);
  2700. `,[j("expanded",[P("icon","transform: rotate(90deg);",[Jn({originalTransform:"rotate(90deg)"})]),P("base-icon","transform: rotate(90deg);",[Jn({originalTransform:"rotate(90deg)"})])]),P("base-loading",`
  2701. color: var(--n-loading-color);
  2702. transition: color .3s var(--n-bezier);
  2703. position: absolute;
  2704. left: 0;
  2705. right: 0;
  2706. top: 0;
  2707. bottom: 0;
  2708. `,[Jn()]),P("icon",`
  2709. position: absolute;
  2710. left: 0;
  2711. right: 0;
  2712. top: 0;
  2713. bottom: 0;
  2714. `,[Jn()]),P("base-icon",`
  2715. position: absolute;
  2716. left: 0;
  2717. right: 0;
  2718. top: 0;
  2719. bottom: 0;
  2720. `,[Jn()])]),P("data-table-thead",`
  2721. transition: background-color .3s var(--n-bezier);
  2722. background-color: var(--n-merged-th-color);
  2723. `),P("data-table-tr",`
  2724. box-sizing: border-box;
  2725. background-clip: padding-box;
  2726. transition: background-color .3s var(--n-bezier);
  2727. `,[P("data-table-expand",`
  2728. position: sticky;
  2729. left: 0;
  2730. overflow: hidden;
  2731. margin: calc(var(--n-th-padding) * -1);
  2732. padding: var(--n-th-padding);
  2733. box-sizing: border-box;
  2734. `),j("striped","background-color: var(--n-merged-td-color-striped);",[P("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Wt("summary",[N("&:hover","background-color: var(--n-merged-td-color-hover);",[N(">",[P("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),P("data-table-th",`
  2735. padding: var(--n-th-padding);
  2736. position: relative;
  2737. text-align: start;
  2738. box-sizing: border-box;
  2739. background-color: var(--n-merged-th-color);
  2740. border-color: var(--n-merged-border-color);
  2741. border-bottom: 1px solid var(--n-merged-border-color);
  2742. color: var(--n-th-text-color);
  2743. transition:
  2744. border-color .3s var(--n-bezier),
  2745. color .3s var(--n-bezier),
  2746. background-color .3s var(--n-bezier);
  2747. font-weight: var(--n-th-font-weight);
  2748. `,[j("filterable",`
  2749. padding-right: 36px;
  2750. `,[j("sortable",`
  2751. padding-right: calc(var(--n-th-padding) + 36px);
  2752. `)]),WU,j("selection",`
  2753. padding: 0;
  2754. text-align: center;
  2755. line-height: 0;
  2756. z-index: 3;
  2757. `),G("title-wrapper",`
  2758. display: flex;
  2759. align-items: center;
  2760. flex-wrap: nowrap;
  2761. max-width: 100%;
  2762. `,[G("title",`
  2763. flex: 1;
  2764. min-width: 0;
  2765. `)]),G("ellipsis",`
  2766. display: inline-block;
  2767. vertical-align: bottom;
  2768. text-overflow: ellipsis;
  2769. overflow: hidden;
  2770. white-space: nowrap;
  2771. max-width: 100%;
  2772. `),j("hover",`
  2773. background-color: var(--n-merged-th-color-hover);
  2774. `),j("sortable",`
  2775. cursor: pointer;
  2776. `,[G("ellipsis",`
  2777. max-width: calc(100% - 18px);
  2778. `),N("&:hover",`
  2779. background-color: var(--n-merged-th-color-hover);
  2780. `)]),P("data-table-sorter",`
  2781. height: var(--n-sorter-size);
  2782. width: var(--n-sorter-size);
  2783. margin-left: 4px;
  2784. position: relative;
  2785. display: inline-flex;
  2786. align-items: center;
  2787. justify-content: center;
  2788. vertical-align: -0.2em;
  2789. color: var(--n-th-icon-color);
  2790. transition: color .3s var(--n-bezier);
  2791. `,[P("base-icon","transition: transform .3s var(--n-bezier)"),j("desc",[P("base-icon",`
  2792. transform: rotate(0deg);
  2793. `)]),j("asc",[P("base-icon",`
  2794. transform: rotate(-180deg);
  2795. `)]),j("asc, desc",`
  2796. color: var(--n-th-icon-color-active);
  2797. `)]),P("data-table-resize-button",`
  2798. width: var(--n-resizable-container-size);
  2799. position: absolute;
  2800. top: 0;
  2801. right: calc(var(--n-resizable-container-size) / 2);
  2802. bottom: 0;
  2803. cursor: col-resize;
  2804. user-select: none;
  2805. `,[N("&::after",`
  2806. width: var(--n-resizable-size);
  2807. height: 50%;
  2808. position: absolute;
  2809. top: 50%;
  2810. left: calc(var(--n-resizable-container-size) / 2);
  2811. bottom: 0;
  2812. background-color: var(--n-merged-border-color);
  2813. transform: translateY(-50%);
  2814. transition: background-color .3s var(--n-bezier);
  2815. z-index: 1;
  2816. content: '';
  2817. `),j("active",[N("&::after",`
  2818. background-color: var(--n-th-icon-color-active);
  2819. `)]),N("&:hover::after",`
  2820. background-color: var(--n-th-icon-color-active);
  2821. `)]),P("data-table-filter",`
  2822. position: absolute;
  2823. z-index: auto;
  2824. right: 0;
  2825. width: 36px;
  2826. top: 0;
  2827. bottom: 0;
  2828. cursor: pointer;
  2829. display: flex;
  2830. justify-content: center;
  2831. align-items: center;
  2832. transition:
  2833. background-color .3s var(--n-bezier),
  2834. color .3s var(--n-bezier);
  2835. font-size: var(--n-filter-size);
  2836. color: var(--n-th-icon-color);
  2837. `,[N("&:hover",`
  2838. background-color: var(--n-th-button-color-hover);
  2839. `),j("show",`
  2840. background-color: var(--n-th-button-color-hover);
  2841. `),j("active",`
  2842. background-color: var(--n-th-button-color-hover);
  2843. color: var(--n-th-icon-color-active);
  2844. `)])]),P("data-table-td",`
  2845. padding: var(--n-td-padding);
  2846. text-align: start;
  2847. box-sizing: border-box;
  2848. border: none;
  2849. background-color: var(--n-merged-td-color);
  2850. color: var(--n-td-text-color);
  2851. border-bottom: 1px solid var(--n-merged-border-color);
  2852. transition:
  2853. box-shadow .3s var(--n-bezier),
  2854. background-color .3s var(--n-bezier),
  2855. border-color .3s var(--n-bezier),
  2856. color .3s var(--n-bezier);
  2857. `,[j("expand",[P("data-table-expand-trigger",`
  2858. margin-right: 0;
  2859. `)]),j("last-row",`
  2860. border-bottom: 0 solid var(--n-merged-border-color);
  2861. `,[N("&::after",`
  2862. bottom: 0 !important;
  2863. `),N("&::before",`
  2864. bottom: 0 !important;
  2865. `)]),j("summary",`
  2866. background-color: var(--n-merged-th-color);
  2867. `),j("hover",`
  2868. background-color: var(--n-merged-td-color-hover);
  2869. `),G("ellipsis",`
  2870. display: inline-block;
  2871. text-overflow: ellipsis;
  2872. overflow: hidden;
  2873. white-space: nowrap;
  2874. max-width: 100%;
  2875. vertical-align: bottom;
  2876. `),j("selection, expand",`
  2877. text-align: center;
  2878. padding: 0;
  2879. line-height: 0;
  2880. `),WU]),P("data-table-empty",`
  2881. box-sizing: border-box;
  2882. padding: var(--n-empty-padding);
  2883. flex-grow: 1;
  2884. flex-shrink: 0;
  2885. opacity: 1;
  2886. display: flex;
  2887. align-items: center;
  2888. justify-content: center;
  2889. transition: opacity .3s var(--n-bezier);
  2890. `,[j("hide",`
  2891. opacity: 0;
  2892. `)]),G("pagination",`
  2893. margin: var(--n-pagination-margin);
  2894. display: flex;
  2895. justify-content: flex-end;
  2896. `),P("data-table-wrapper",`
  2897. position: relative;
  2898. opacity: 1;
  2899. transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
  2900. border-top-left-radius: var(--n-border-radius);
  2901. border-top-right-radius: var(--n-border-radius);
  2902. line-height: var(--n-line-height);
  2903. `),j("loading",[P("data-table-wrapper",`
  2904. opacity: var(--n-opacity-loading);
  2905. pointer-events: none;
  2906. `)]),j("single-column",[P("data-table-td",`
  2907. border-bottom: 0 solid var(--n-merged-border-color);
  2908. `,[N("&::after, &::before",`
  2909. bottom: 0 !important;
  2910. `)])]),Wt("single-line",[P("data-table-th",`
  2911. border-right: 1px solid var(--n-merged-border-color);
  2912. `,[j("last",`
  2913. border-right: 0 solid var(--n-merged-border-color);
  2914. `)]),P("data-table-td",`
  2915. border-right: 1px solid var(--n-merged-border-color);
  2916. `,[j("last-col",`
  2917. border-right: 0 solid var(--n-merged-border-color);
  2918. `)])]),j("bordered",[P("data-table-wrapper",`
  2919. border: 1px solid var(--n-merged-border-color);
  2920. border-bottom-left-radius: var(--n-border-radius);
  2921. border-bottom-right-radius: var(--n-border-radius);
  2922. overflow: hidden;
  2923. `)]),P("data-table-base-table",[j("transition-disabled",[P("data-table-th",[N("&::after, &::before","transition: none;")]),P("data-table-td",[N("&::after, &::before","transition: none;")])])]),j("bottom-bordered",[P("data-table-td",[j("last-row",`
  2924. border-bottom: 1px solid var(--n-merged-border-color);
  2925. `)])]),P("data-table-table",`
  2926. font-variant-numeric: tabular-nums;
  2927. width: 100%;
  2928. word-break: break-word;
  2929. transition: background-color .3s var(--n-bezier);
  2930. border-collapse: separate;
  2931. border-spacing: 0;
  2932. background-color: var(--n-merged-td-color);
  2933. `),P("data-table-base-table-header",`
  2934. border-top-left-radius: calc(var(--n-border-radius) - 1px);
  2935. border-top-right-radius: calc(var(--n-border-radius) - 1px);
  2936. z-index: 3;
  2937. overflow: scroll;
  2938. flex-shrink: 0;
  2939. transition: border-color .3s var(--n-bezier);
  2940. scrollbar-width: none;
  2941. `,[N("&::-webkit-scrollbar",`
  2942. width: 0;
  2943. height: 0;
  2944. `)]),P("data-table-check-extra",`
  2945. transition: color .3s var(--n-bezier);
  2946. color: var(--n-th-icon-color);
  2947. position: absolute;
  2948. font-size: 14px;
  2949. right: -4px;
  2950. top: 50%;
  2951. transform: translateY(-50%);
  2952. z-index: 1;
  2953. `)]),P("data-table-filter-menu",[P("scrollbar",`
  2954. max-height: 240px;
  2955. `),G("group",`
  2956. display: flex;
  2957. flex-direction: column;
  2958. padding: 12px 12px 0 12px;
  2959. `,[P("checkbox",`
  2960. margin-bottom: 12px;
  2961. margin-right: 0;
  2962. `),P("radio",`
  2963. margin-bottom: 12px;
  2964. margin-right: 0;
  2965. `)]),G("action",`
  2966. padding: var(--n-action-padding);
  2967. display: flex;
  2968. flex-wrap: nowrap;
  2969. justify-content: space-evenly;
  2970. border-top: 1px solid var(--n-action-divider-color);
  2971. `,[P("button",[N("&:not(:last-child)",`
  2972. margin: var(--n-action-button-margin);
  2973. `),N("&:last-child",`
  2974. margin-right: 0;
  2975. `)])]),P("divider",`
  2976. margin: 0 !important;
  2977. `)]),_u(P("data-table",`
  2978. --n-merged-th-color: var(--n-th-color-modal);
  2979. --n-merged-td-color: var(--n-td-color-modal);
  2980. --n-merged-border-color: var(--n-border-color-modal);
  2981. --n-merged-th-color-hover: var(--n-th-color-hover-modal);
  2982. --n-merged-td-color-hover: var(--n-td-color-hover-modal);
  2983. --n-merged-td-color-striped: var(--n-td-color-striped-modal);
  2984. `)),dd(P("data-table",`
  2985. --n-merged-th-color: var(--n-th-color-popover);
  2986. --n-merged-td-color: var(--n-td-color-popover);
  2987. --n-merged-border-color: var(--n-border-color-popover);
  2988. --n-merged-th-color-hover: var(--n-th-color-hover-popover);
  2989. --n-merged-td-color-hover: var(--n-td-color-hover-popover);
  2990. --n-merged-td-color-striped: var(--n-td-color-striped-popover);
  2991. `))]);function bIe(){return[j("fixed-left",`
  2992. left: 0;
  2993. position: sticky;
  2994. z-index: 2;
  2995. `,[N("&::after",`
  2996. pointer-events: none;
  2997. content: "";
  2998. width: 36px;
  2999. display: inline-block;
  3000. position: absolute;
  3001. top: 0;
  3002. bottom: -1px;
  3003. transition: box-shadow .2s var(--n-bezier);
  3004. right: -36px;
  3005. `)]),j("fixed-right",`
  3006. right: 0;
  3007. position: sticky;
  3008. z-index: 1;
  3009. `,[N("&::before",`
  3010. pointer-events: none;
  3011. content: "";
  3012. width: 36px;
  3013. display: inline-block;
  3014. position: absolute;
  3015. top: 0;
  3016. bottom: -1px;
  3017. transition: box-shadow .2s var(--n-bezier);
  3018. left: -36px;
  3019. `)])]}const xIe=ge({name:"DataTable",alias:["AdvancedTable"],props:yEe,setup(e,{slots:t}){const{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o}=nt(e),a=L(()=>{const{bottomBordered:je}=e;return r.value?!1:je!==void 0?je:!0}),i=Me("DataTable","-data-table",yIe,fEe,e,n),s=q(null),l=q("body");rp(()=>{l.value="body"});const u=q(null),{getResizableWidth:c,clearResizableWidth:d,doUpdateResizableWidth:f}=vIe(),{rowsRef:A,colsRef:h,dataRelatedColsRef:v,hasEllipsisRef:p}=gIe(e,c),{treeMateRef:g,mergedCurrentPageRef:m,paginatedDataRef:y,rawPaginatedDataRef:b,selectionColumnRef:x,hoverKeyRef:w,mergedPaginationRef:C,mergedFilterStateRef:_,mergedSortStateRef:B,childTriggerColIndexRef:T,doUpdatePage:E,doUpdateFilters:I,onUnstableColumnResize:R,deriveNextSorter:D,filter:F,filters:M,clearFilter:$,clearFilters:O,clearSorter:Q,page:V,sort:W}=AIe(e,{dataRelatedColsRef:v}),{doCheckAll:Z,doUncheckAll:te,doCheck:ae,doUncheck:re,headerCheckboxDisabledRef:le,someRowsCheckedRef:se,allRowsCheckedRef:ce,mergedCheckedRowKeySetRef:be,mergedInderminateRowKeySetRef:de}=uIe(e,{selectionColumnRef:x,treeMateRef:g,paginatedDataRef:y}),{stickyExpandedRowsRef:pe,mergedExpandedRowKeysRef:K,renderExpandRef:U,expandableRef:k,doUpdateExpandedRowKeys:J}=mIe(e,g),{handleTableBodyScroll:ee,handleTableHeaderScroll:H,syncScrollState:Y,setHeaderScrollLeft:oe,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:ne,rightActiveFixedColKeyRef:Ae,rightActiveFixedChildrenColKeysRef:X,leftFixedColumnsRef:ie,rightFixedColumnsRef:fe,fixedColumnLeftMapRef:ye,fixedColumnRightMapRef:Fe}=hIe(e,{scrollPartRef:l,bodyWidthRef:s,mainTableInstRef:u,mergedCurrentPageRef:m}),{localeRef:Ne}=zi("DataTable"),rt=L(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||p.value?"fixed":e.tableLayout);_t(Ss,{props:e,treeMateRef:g,renderExpandIconRef:Re(e,"renderExpandIcon"),loadingKeySetRef:q(new Set),slots:t,indentRef:Re(e,"indent"),childTriggerColIndexRef:T,bodyWidthRef:s,componentId:Pi(),hoverKeyRef:w,mergedClsPrefixRef:n,mergedThemeRef:i,scrollXRef:L(()=>e.scrollX),rowsRef:A,colsRef:h,paginatedDataRef:y,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:ne,rightActiveFixedColKeyRef:Ae,rightActiveFixedChildrenColKeysRef:X,leftFixedColumnsRef:ie,rightFixedColumnsRef:fe,fixedColumnLeftMapRef:ye,fixedColumnRightMapRef:Fe,mergedCurrentPageRef:m,someRowsCheckedRef:se,allRowsCheckedRef:ce,mergedSortStateRef:B,mergedFilterStateRef:_,loadingRef:Re(e,"loading"),rowClassNameRef:Re(e,"rowClassName"),mergedCheckedRowKeySetRef:be,mergedExpandedRowKeysRef:K,mergedInderminateRowKeySetRef:de,localeRef:Ne,scrollPartRef:l,expandableRef:k,stickyExpandedRowsRef:pe,rowKeyRef:Re(e,"rowKey"),renderExpandRef:U,summaryRef:Re(e,"summary"),virtualScrollRef:Re(e,"virtualScroll"),rowPropsRef:Re(e,"rowProps"),stripedRef:Re(e,"striped"),checkOptionsRef:L(()=>{const{value:je}=x;return je==null?void 0:je.options}),rawPaginatedDataRef:b,filterMenuCssVarsRef:L(()=>{const{self:{actionDividerColor:je,actionPadding:Ye,actionButtonMargin:ue}}=i.value;return{"--n-action-padding":Ye,"--n-action-button-margin":ue,"--n-action-divider-color":je}}),onLoadRef:Re(e,"onLoad"),mergedTableLayoutRef:rt,maxHeightRef:Re(e,"maxHeight"),minHeightRef:Re(e,"minHeight"),flexHeightRef:Re(e,"flexHeight"),headerCheckboxDisabledRef:le,paginationBehaviorOnFilterRef:Re(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Re(e,"summaryPlacement"),scrollbarPropsRef:Re(e,"scrollbarProps"),syncScrollState:Y,doUpdatePage:E,doUpdateFilters:I,getResizableWidth:c,onUnstableColumnResize:R,clearResizableWidth:d,doUpdateResizableWidth:f,deriveNextSorter:D,doCheck:ae,doUncheck:re,doCheckAll:Z,doUncheckAll:te,doUpdateExpandedRowKeys:J,handleTableHeaderScroll:H,handleTableBodyScroll:ee,setHeaderScrollLeft:oe,renderCell:Re(e,"renderCell")});const lt={filter:F,filters:M,clearFilters:O,clearSorter:Q,page:V,sort:W,clearFilter:$,scrollTo:(je,Ye)=>{var ue;(ue=u.value)===null||ue===void 0||ue.scrollTo(je,Ye)}},mt=L(()=>{const{size:je}=e,{common:{cubicBezierEaseInOut:Ye},self:{borderColor:ue,tdColorHover:Ee,thColor:Qe,thColorHover:et,tdColor:tt,tdTextColor:xe,thTextColor:$e,thFontWeight:Xe,thButtonColorHover:ht,thIconColor:Se,thIconColorActive:He,filterSize:me,borderRadius:ze,lineHeight:dt,tdColorModal:Rt,thColorModal:At,borderColorModal:ve,thColorHoverModal:De,tdColorHoverModal:ot,borderColorPopover:Nt,thColorPopover:Ce,tdColorPopover:Le,tdColorHoverPopover:ut,thColorHoverPopover:vt,paginationMargin:xt,emptyPadding:Kr,boxShadowAfter:zr,boxShadowBefore:Be,sorterSize:Ze,resizableContainerSize:yt,resizableSize:ar,loadingColor:Qr,loadingSize:_r,opacityLoading:Xi,tdColorStriped:Dr,tdColorStripedModal:bn,tdColorStripedPopover:Rl,[_e("fontSize",je)]:Mu,[_e("thPadding",je)]:Pu,[_e("tdPadding",je)]:Fu}}=i.value;return{"--n-font-size":Mu,"--n-th-padding":Pu,"--n-td-padding":Fu,"--n-bezier":Ye,"--n-border-radius":ze,"--n-line-height":dt,"--n-border-color":ue,"--n-border-color-modal":ve,"--n-border-color-popover":Nt,"--n-th-color":Qe,"--n-th-color-hover":et,"--n-th-color-modal":At,"--n-th-color-hover-modal":De,"--n-th-color-popover":Ce,"--n-th-color-hover-popover":vt,"--n-td-color":tt,"--n-td-color-hover":Ee,"--n-td-color-modal":Rt,"--n-td-color-hover-modal":ot,"--n-td-color-popover":Le,"--n-td-color-hover-popover":ut,"--n-th-text-color":$e,"--n-td-text-color":xe,"--n-th-font-weight":Xe,"--n-th-button-color-hover":ht,"--n-th-icon-color":Se,"--n-th-icon-color-active":He,"--n-filter-size":me,"--n-pagination-margin":xt,"--n-empty-padding":Kr,"--n-box-shadow-before":Be,"--n-box-shadow-after":zr,"--n-sorter-size":Ze,"--n-resizable-container-size":yt,"--n-resizable-size":ar,"--n-loading-size":_r,"--n-loading-color":Qr,"--n-opacity-loading":Xi,"--n-td-color-striped":Dr,"--n-td-color-striped-modal":bn,"--n-td-color-striped-popover":Rl}}),Ge=o?Et("data-table",L(()=>e.size[0]),mt,e):void 0,it=L(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const je=C.value,{pageCount:Ye}=je;return Ye!==void 0?Ye>1:je.itemCount&&je.pageSize&&je.itemCount>je.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:n,mergedTheme:i,paginatedData:y,mergedBordered:r,mergedBottomBordered:a,mergedPagination:C,mergedShowPagination:it,cssVars:o?void 0:mt,themeClass:Ge==null?void 0:Ge.themeClass,onRender:Ge==null?void 0:Ge.onRender},lt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:r,$slots:n,spinProps:o}=this;return r==null||r(),S("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},S("div",{class:`${e}-data-table-wrapper`},S(lIe,{ref:"mainTableInstRef"})),this.mergedShowPagination?S("div",{class:`${e}-data-table__pagination`},S(kq,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,S(jr,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?S("div",{class:`${e}-data-table-loading-wrapper`},Kt(n.loading,()=>[S(Eu,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),wIe={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},nZ=e=>{const{popoverColor:t,textColor2:r,primaryColor:n,hoverColor:o,dividerColor:a,opacityDisabled:i,boxShadow2:s,borderRadius:l,iconColor:u,iconColorDisabled:c}=e;return Object.assign(Object.assign({},wIe),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:r,itemTextColorActive:n,itemColorHover:o,itemOpacityDisabled:i,itemBorderRadius:l,borderRadius:l,iconColor:u,iconColorDisabled:c})},CIe={name:"TimePicker",common:Lt,peers:{Scrollbar:xl,Button:md,Input:PA},self:nZ},oZ=CIe,SIe={name:"TimePicker",common:ct,peers:{Scrollbar:Pa,Button:Fa,Input:Qi},self:nZ},aZ=SIe,_Ie={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},iZ=e=>{const{hoverColor:t,fontSize:r,textColor2:n,textColorDisabled:o,popoverColor:a,primaryColor:i,borderRadiusSmall:s,iconColor:l,iconColorDisabled:u,textColor1:c,dividerColor:d,boxShadow2:f,borderRadius:A,fontWeightStrong:h}=e;return Object.assign(Object.assign({},_Ie),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:n,itemTextColorDisabled:o,itemTextColorActive:a,itemTextColorCurrent:i,itemColorIncluded:Ve(i,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:i,itemBorderRadius:s,panelColor:a,panelTextColor:n,arrowColor:l,calendarTitleTextColor:c,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:A,calendarTitleFontWeight:h,scrollItemBorderRadius:A,iconColor:l,iconColorDisabled:u})},BIe={name:"DatePicker",common:Lt,peers:{Input:PA,Button:md,TimePicker:oZ,Scrollbar:xl},self:iZ},TIe=BIe,EIe={name:"DatePicker",common:ct,peers:{Input:Qi,Button:Fa,TimePicker:aZ,Scrollbar:Pa},self(e){const{popoverColor:t,hoverColor:r,primaryColor:n}=e,o=iZ(e);return o.itemColorDisabled=Dt(t,r),o.itemColorIncluded=Ve(n,{alpha:.15}),o.itemColorHover=Dt(t,r),o}},IIe=EIe;function RIe(e,t){const r=L(()=>{const{isTimeDisabled:c}=e,{value:d}=t;if(!(d===null||Array.isArray(d)))return c==null?void 0:c(d)}),n=L(()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.isHourDisabled}),o=L(()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.isMinuteDisabled}),a=L(()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.isSecondDisabled}),i=L(()=>{const{type:c,isDateDisabled:d}=e,{value:f}=t;return f===null||Array.isArray(f)||!["date","datetime"].includes(c)||!d?!1:d(f)}),s=L(()=>{const{type:c}=e,{value:d}=t;if(d===null||c==="datetime"||Array.isArray(d))return!1;const f=new Date(d),A=f.getHours(),h=f.getMinutes(),v=f.getMinutes();return(n.value?n.value(A):!1)||(o.value?o.value(h,A):!1)||(a.value?a.value(v,h,A):!1)}),l=L(()=>i.value||s.value);return{isValueInvalidRef:L(()=>{const{type:c}=e;return c==="date"?i.value:c==="datetime"?l.value:!1}),isDateInvalidRef:i,isTimeInvalidRef:s,isDateTimeInvalidRef:l,isHourDisabledRef:n,isMinuteDisabledRef:o,isSecondDisabledRef:a}}function DIe(e,t){const r=L(()=>{const{isTimeDisabled:d}=e,{value:f}=t;return!Array.isArray(f)||!d?[void 0,void 0]:[d==null?void 0:d(f[0],"start",f),d==null?void 0:d(f[1],"end",f)]}),n={isStartHourDisabledRef:L(()=>{var d;return(d=r.value[0])===null||d===void 0?void 0:d.isHourDisabled}),isEndHourDisabledRef:L(()=>{var d;return(d=r.value[1])===null||d===void 0?void 0:d.isHourDisabled}),isStartMinuteDisabledRef:L(()=>{var d;return(d=r.value[0])===null||d===void 0?void 0:d.isMinuteDisabled}),isEndMinuteDisabledRef:L(()=>{var d;return(d=r.value[1])===null||d===void 0?void 0:d.isMinuteDisabled}),isStartSecondDisabledRef:L(()=>{var d;return(d=r.value[0])===null||d===void 0?void 0:d.isSecondDisabled}),isEndSecondDisabledRef:L(()=>{var d;return(d=r.value[1])===null||d===void 0?void 0:d.isSecondDisabled})},o=L(()=>{const{type:d,isDateDisabled:f}=e,{value:A}=t;return A===null||!Array.isArray(A)||!["daterange","datetimerange"].includes(d)||!f?!1:f(A[0],"start",A)}),a=L(()=>{const{type:d,isDateDisabled:f}=e,{value:A}=t;return A===null||!Array.isArray(A)||!["daterange","datetimerange"].includes(d)||!f?!1:f(A[1],"end",A)}),i=L(()=>{const{type:d}=e,{value:f}=t;if(f===null||!Array.isArray(f)||d!=="datetimerange")return!1;const A=fc(f[0]),h=Uw(f[0]),v=Nw(f[0]),{isStartHourDisabledRef:p,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:m}=n;return(p.value?p.value(A):!1)||(g.value?g.value(h,A):!1)||(m.value?m.value(v,h,A):!1)}),s=L(()=>{const{type:d}=e,{value:f}=t;if(f===null||!Array.isArray(f)||d!=="datetimerange")return!1;const A=fc(f[1]),h=Uw(f[1]),v=Nw(f[1]),{isEndHourDisabledRef:p,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:m}=n;return(p.value?p.value(A):!1)||(g.value?g.value(h,A):!1)||(m.value?m.value(v,h,A):!1)}),l=L(()=>o.value||i.value),u=L(()=>a.value||s.value),c=L(()=>l.value||u.value);return Object.assign(Object.assign({},n),{isStartDateInvalidRef:o,isEndDateInvalidRef:a,isStartTimeInvalidRef:i,isEndTimeInvalidRef:s,isStartValueInvalidRef:l,isEndValueInvalidRef:u,isRangeInvalidRef:c})}const WS="n-date-picker";var cr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sZ(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var a=Function.bind.apply(t,o);return new a}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var mD={exports:{}},yD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");o=o||{};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a]);return n}e.exports=t.default})(yD,yD.exports);var MIe=yD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(MIe);function n(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,r.default)({},a)}e.exports=t.default})(mD,mD.exports);var PIe=mD.exports;const FIe=ai(PIe);var bD={exports:{}},xD={exports:{}},wD={exports:{}},CD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){if(o.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(CD,CD.exports);var ca=CD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(ca);function n(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,r.default)(1,arguments),a instanceof Date||typeof a=="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(wD,wD.exports);var kIe=wD.exports,SD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(ca);function n(a){return a&&a.__esModule?a:{default:a}}function o(a){(0,r.default)(1,arguments);var i=Object.prototype.toString.call(a);return a instanceof Date||typeof a=="object"&&i==="[object Date]"?new Date(a.getTime()):typeof a=="number"||i==="[object Number]"?new Date(a):((typeof a=="string"||i==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(SD,SD.exports);var wl=SD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(kIe),n=a(wl),o=a(ca);function a(s){return s&&s.__esModule?s:{default:s}}function i(s){if((0,o.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,n.default)(s);return!isNaN(Number(l))}e.exports=t.default})(xD,xD.exports);var LIe=xD.exports,_D={exports:{}},BD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(a,i,s){var l,u=r[a];return typeof u=="string"?l=u:i===1?l=u.one:l=u.other.replace("{{count}}",i.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+l:l+" ago":l},o=n;t.default=o,e.exports=t.default})(BD,BD.exports);var OIe=BD.exports,TD={exports:{}},ED={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.width?String(o.width):n.defaultWidth,i=n.formats[a]||n.formats[n.defaultWidth];return i}}e.exports=t.default})(ED,ED.exports);var $Ie=ED.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n($Ie);function n(u){return u&&u.__esModule?u:{default:u}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:i,defaultWidth:"full"})},l=s;t.default=l,e.exports=t.default})(TD,TD.exports);var UIe=TD.exports,ID={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(a,i,s,l){return r[a]},o=n;t.default=o,e.exports=t.default})(ID,ID.exports);var NIe=ID.exports,RD={exports:{}},DD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(o,a){var i=a||{},s=i.context?String(i.context):"standalone",l;if(s==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,c=i.width?String(i.width):u;l=n.formattingValues[c]||n.formattingValues[u]}else{var d=n.defaultWidth,f=i.width?String(i.width):n.defaultWidth;l=n.values[f]||n.values[d]}var A=n.argumentCallback?n.argumentCallback(o):o;return l[A]}}e.exports=t.default})(DD,DD.exports);var HIe=DD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(HIe);function n(A){return A&&A.__esModule?A:{default:A}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(A,h){var v=Number(A),p=v%100;if(p>20||p<10)switch(p%10){case 1:return v+"st";case 2:return v+"nd";case 3:return v+"rd"}return v+"th"},d={ordinalNumber:c,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(A){return A-1}}),month:(0,r.default)({values:i,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;t.default=f,e.exports=t.default})(RD,RD.exports);var zIe=RD.exports,MD={exports:{}},PD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&a.matchPatterns[l]||a.matchPatterns[a.defaultMatchWidth],c=i.match(u);if(!c)return null;var d=c[0],f=l&&a.parsePatterns[l]||a.parsePatterns[a.defaultParseWidth],A=Array.isArray(f)?o(f,function(p){return p.test(d)}):n(f,function(p){return p.test(d)}),h;h=a.valueCallback?a.valueCallback(A):A,h=s.valueCallback?s.valueCallback(h):h;var v=i.slice(d.length);return{value:h,rest:v}}}function n(a,i){for(var s in a)if(a.hasOwnProperty(s)&&i(a[s]))return s}function o(a,i){for(var s=0;s<a.length;s++)if(i(a[s]))return s}e.exports=t.default})(PD,PD.exports);var QIe=PD.exports,FD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.match(n.matchPattern);if(!i)return null;var s=i[0],l=o.match(n.parsePattern);if(!l)return null;var u=n.valueCallback?n.valueCallback(l[0]):l[0];u=a.valueCallback?a.valueCallback(u):u;var c=o.slice(s.length);return{value:u,rest:c}}}e.exports=t.default})(FD,FD.exports);var VIe=FD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(QIe),n=o(VIe);function o(y){return y&&y.__esModule?y:{default:y}}var a=/^(\d+)(th|st|nd|rd)?/i,i=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},A={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,n.default)({matchPattern:a,parsePattern:i,valueCallback:function(y){return parseInt(y,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(y){return y+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:A,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:v,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},m=g;t.default=m,e.exports=t.default})(MD,MD.exports);var WIe=MD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(OIe),n=s(UIe),o=s(NIe),a=s(zIe),i=s(WIe);function s(c){return c&&c.__esModule?c:{default:c}}var l={code:"en-US",formatDistance:r.default,formatLong:n.default,formatRelative:o.default,localize:a.default,match:i.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;t.default=u,e.exports=t.default})(_D,_D.exports);var GIe=_D.exports,kD={exports:{}},LD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var o=Number(n);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(LD,LD.exports);var FA=LD.exports;const KIe=ai(FA);var OD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(FA),n=a(wl),o=a(ca);function a(s){return s&&s.__esModule?s:{default:s}}function i(s,l){(0,o.default)(2,arguments);var u=(0,n.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}e.exports=t.default})(OD,OD.exports);var jIe=OD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(FA),n=a(jIe),o=a(ca);function a(s){return s&&s.__esModule?s:{default:s}}function i(s,l){(0,o.default)(2,arguments);var u=(0,r.default)(l);return(0,n.default)(s,-u)}e.exports=t.default})(kD,kD.exports);var YIe=kD.exports,$D={exports:{}},UD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(wl),n=o(ca);function o(s){return s&&s.__esModule?s:{default:s}}var a=864e5;function i(s){(0,n.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/a)+1}e.exports=t.default})(UD,UD.exports);var XIe=UD.exports,ND={exports:{}},HD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=o(wl),n=o(ca);function o(i){return i&&i.__esModule?i:{default:i}}function a(i){(0,n.default)(1,arguments);var s=1,l=(0,r.default)(i),u=l.getUTCDay(),c=(u<s?7:0)+u-s;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}e.exports=t.default})(HD,HD.exports);var gL=HD.exports,zD={exports:{}},QD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(wl),n=a(ca),o=a(gL);function a(s){return s&&s.__esModule?s:{default:s}}function i(s){(0,n.default)(1,arguments);var l=(0,r.default)(s),u=l.getUTCFullYear(),c=new Date(0);c.setUTCFullYear(u+1,0,4),c.setUTCHours(0,0,0,0);var d=(0,o.default)(c),f=new Date(0);f.setUTCFullYear(u,0,4),f.setUTCHours(0,0,0,0);var A=(0,o.default)(f);return l.getTime()>=d.getTime()?u+1:l.getTime()>=A.getTime()?u:u-1}e.exports=t.default})(QD,QD.exports);var lZ=QD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(lZ),n=a(gL),o=a(ca);function a(s){return s&&s.__esModule?s:{default:s}}function i(s){(0,o.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,n.default)(u);return c}e.exports=t.default})(zD,zD.exports);var qIe=zD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=i(wl),n=i(gL),o=i(qIe),a=i(ca);function i(u){return u&&u.__esModule?u:{default:u}}var s=6048e5;function l(u){(0,a.default)(1,arguments);var c=(0,r.default)(u),d=(0,n.default)(c).getTime()-(0,o.default)(c).getTime();return Math.round(d/s)+1}e.exports=t.default})(ND,ND.exports);var ZIe=ND.exports,VD={exports:{}},WD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(wl),n=a(ca),o=a(FA);function a(s){return s&&s.__esModule?s:{default:s}}function i(s,l){(0,n.default)(1,arguments);var u=l||{},c=u.locale,d=c&&c.options&&c.options.weekStartsOn,f=d==null?0:(0,o.default)(d),A=u.weekStartsOn==null?f:(0,o.default)(u.weekStartsOn);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=(0,r.default)(s),v=h.getUTCDay(),p=(v<A?7:0)+v-A;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}e.exports=t.default})(WD,WD.exports);var mL=WD.exports,GD={exports:{}},KD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(wl),n=i(ca),o=i(mL),a=i(FA);function i(l){return l&&l.__esModule?l:{default:l}}function s(l,u){(0,n.default)(1,arguments);var c=(0,r.default)(l),d=c.getUTCFullYear(),f=u||{},A=f.locale,h=A&&A.options&&A.options.firstWeekContainsDate,v=h==null?1:(0,a.default)(h),p=f.firstWeekContainsDate==null?v:(0,a.default)(f.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,p),g.setUTCHours(0,0,0,0);var m=(0,o.default)(g,u),y=new Date(0);y.setUTCFullYear(d,0,p),y.setUTCHours(0,0,0,0);var b=(0,o.default)(y,u);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}e.exports=t.default})(KD,KD.exports);var uZ=KD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=i(uZ),n=i(ca),o=i(mL),a=i(FA);function i(l){return l&&l.__esModule?l:{default:l}}function s(l,u){(0,n.default)(1,arguments);var c=u||{},d=c.locale,f=d&&d.options&&d.options.firstWeekContainsDate,A=f==null?1:(0,a.default)(f),h=c.firstWeekContainsDate==null?A:(0,a.default)(c.firstWeekContainsDate),v=(0,r.default)(l,u),p=new Date(0);p.setUTCFullYear(v,0,h),p.setUTCHours(0,0,0,0);var g=(0,o.default)(p,u);return g}e.exports=t.default})(GD,GD.exports);var JIe=GD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=i(wl),n=i(mL),o=i(JIe),a=i(ca);function i(u){return u&&u.__esModule?u:{default:u}}var s=6048e5;function l(u,c){(0,a.default)(1,arguments);var d=(0,r.default)(u),f=(0,n.default)(d,c).getTime()-(0,o.default)(d,c).getTime();return Math.round(f/s)+1}e.exports=t.default})(VD,VD.exports);var eRe=VD.exports,jD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){for(var a=n<0?"-":"",i=Math.abs(n).toString();i.length<o;)i="0"+i;return a+i}e.exports=t.default})(jD,jD.exports);var cZ=jD.exports,YD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(cZ);function n(i){return i&&i.__esModule?i:{default:i}}var o={y:function(i,s){var l=i.getUTCFullYear(),u=l>0?l:1-l;return(0,r.default)(s==="yy"?u%100:u,s.length)},M:function(i,s){var l=i.getUTCMonth();return s==="M"?String(l+1):(0,r.default)(l+1,2)},d:function(i,s){return(0,r.default)(i.getUTCDate(),s.length)},a:function(i,s){var l=i.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h:function(i,s){return(0,r.default)(i.getUTCHours()%12||12,s.length)},H:function(i,s){return(0,r.default)(i.getUTCHours(),s.length)},m:function(i,s){return(0,r.default)(i.getUTCMinutes(),s.length)},s:function(i,s){return(0,r.default)(i.getUTCSeconds(),s.length)},S:function(i,s){var l=s.length,u=i.getUTCMilliseconds(),c=Math.floor(u*Math.pow(10,l-3));return(0,r.default)(c,s.length)}},a=o;t.default=a,e.exports=t.default})(YD,YD.exports);var tRe=YD.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(XIe),n=u(ZIe),o=u(lZ),a=u(eRe),i=u(uZ),s=u(cZ),l=u(tRe);function u(p){return p&&p.__esModule?p:{default:p}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(p,g,m){var y=p.getUTCFullYear()>0?1:0;switch(g){case"G":case"GG":case"GGG":return m.era(y,{width:"abbreviated"});case"GGGGG":return m.era(y,{width:"narrow"});case"GGGG":default:return m.era(y,{width:"wide"})}},y:function(p,g,m){if(g==="yo"){var y=p.getUTCFullYear(),b=y>0?y:1-y;return m.ordinalNumber(b,{unit:"year"})}return l.default.y(p,g)},Y:function(p,g,m,y){var b=(0,i.default)(p,y),x=b>0?b:1-b;if(g==="YY"){var w=x%100;return(0,s.default)(w,2)}return g==="Yo"?m.ordinalNumber(x,{unit:"year"}):(0,s.default)(x,g.length)},R:function(p,g){var m=(0,o.default)(p);return(0,s.default)(m,g.length)},u:function(p,g){var m=p.getUTCFullYear();return(0,s.default)(m,g.length)},Q:function(p,g,m){var y=Math.ceil((p.getUTCMonth()+1)/3);switch(g){case"Q":return String(y);case"QQ":return(0,s.default)(y,2);case"Qo":return m.ordinalNumber(y,{unit:"quarter"});case"QQQ":return m.quarter(y,{width:"abbreviated",context:"formatting"});case"QQQQQ":return m.quarter(y,{width:"narrow",context:"formatting"});case"QQQQ":default:return m.quarter(y,{width:"wide",context:"formatting"})}},q:function(p,g,m){var y=Math.ceil((p.getUTCMonth()+1)/3);switch(g){case"q":return String(y);case"qq":return(0,s.default)(y,2);case"qo":return m.ordinalNumber(y,{unit:"quarter"});case"qqq":return m.quarter(y,{width:"abbreviated",context:"standalone"});case"qqqqq":return m.quarter(y,{width:"narrow",context:"standalone"});case"qqqq":default:return m.quarter(y,{width:"wide",context:"standalone"})}},M:function(p,g,m){var y=p.getUTCMonth();switch(g){case"M":case"MM":return l.default.M(p,g);case"Mo":return m.ordinalNumber(y+1,{unit:"month"});case"MMM":return m.month(y,{width:"abbreviated",context:"formatting"});case"MMMMM":return m.month(y,{width:"narrow",context:"formatting"});case"MMMM":default:return m.month(y,{width:"wide",context:"formatting"})}},L:function(p,g,m){var y=p.getUTCMonth();switch(g){case"L":return String(y+1);case"LL":return(0,s.default)(y+1,2);case"Lo":return m.ordinalNumber(y+1,{unit:"month"});case"LLL":return m.month(y,{width:"abbreviated",context:"standalone"});case"LLLLL":return m.month(y,{width:"narrow",context:"standalone"});case"LLLL":default:return m.month(y,{width:"wide",context:"standalone"})}},w:function(p,g,m,y){var b=(0,a.default)(p,y);return g==="wo"?m.ordinalNumber(b,{unit:"week"}):(0,s.default)(b,g.length)},I:function(p,g,m){var y=(0,n.default)(p);return g==="Io"?m.ordinalNumber(y,{unit:"week"}):(0,s.default)(y,g.length)},d:function(p,g,m){return g==="do"?m.ordinalNumber(p.getUTCDate(),{unit:"date"}):l.default.d(p,g)},D:function(p,g,m){var y=(0,r.default)(p);return g==="Do"?m.ordinalNumber(y,{unit:"dayOfYear"}):(0,s.default)(y,g.length)},E:function(p,g,m){var y=p.getUTCDay();switch(g){case"E":case"EE":case"EEE":return m.day(y,{width:"abbreviated",context:"formatting"});case"EEEEE":return m.day(y,{width:"narrow",context:"formatting"});case"EEEEEE":return m.day(y,{width:"short",context:"formatting"});case"EEEE":default:return m.day(y,{width:"wide",context:"formatting"})}},e:function(p,g,m,y){var b=p.getUTCDay(),x=(b-y.weekStartsOn+8)%7||7;switch(g){case"e":return String(x);case"ee":return(0,s.default)(x,2);case"eo":return m.ordinalNumber(x,{unit:"day"});case"eee":return m.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return m.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return m.day(b,{width:"short",context:"formatting"});case"eeee":default:return m.day(b,{width:"wide",context:"formatting"})}},c:function(p,g,m,y){var b=p.getUTCDay(),x=(b-y.weekStartsOn+8)%7||7;switch(g){case"c":return String(x);case"cc":return(0,s.default)(x,g.length);case"co":return m.ordinalNumber(x,{unit:"day"});case"ccc":return m.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return m.day(b,{width:"narrow",context:"standalone"});case"cccccc":return m.day(b,{width:"short",context:"standalone"});case"cccc":default:return m.day(b,{width:"wide",context:"standalone"})}},i:function(p,g,m){var y=p.getUTCDay(),b=y===0?7:y;switch(g){case"i":return String(b);case"ii":return(0,s.default)(b,g.length);case"io":return m.ordinalNumber(b,{unit:"day"});case"iii":return m.day(y,{width:"abbreviated",context:"formatting"});case"iiiii":return m.day(y,{width:"narrow",context:"formatting"});case"iiiiii":return m.day(y,{width:"short",context:"formatting"});case"iiii":default:return m.day(y,{width:"wide",context:"formatting"})}},a:function(p,g,m){var y=p.getUTCHours(),b=y/12>=1?"pm":"am";switch(g){case"a":case"aa":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return m.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return m.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(p,g,m){var y=p.getUTCHours(),b;switch(y===12?b=c.noon:y===0?b=c.midnight:b=y/12>=1?"pm":"am",g){case"b":case"bb":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return m.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return m.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(p,g,m){var y=p.getUTCHours(),b;switch(y>=17?b=c.evening:y>=12?b=c.afternoon:y>=4?b=c.morning:b=c.night,g){case"B":case"BB":case"BBB":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return m.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return m.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(p,g,m){if(g==="ho"){var y=p.getUTCHours()%12;return y===0&&(y=12),m.ordinalNumber(y,{unit:"hour"})}return l.default.h(p,g)},H:function(p,g,m){return g==="Ho"?m.ordinalNumber(p.getUTCHours(),{unit:"hour"}):l.default.H(p,g)},K:function(p,g,m){var y=p.getUTCHours()%12;return g==="Ko"?m.ordinalNumber(y,{unit:"hour"}):(0,s.default)(y,g.length)},k:function(p,g,m){var y=p.getUTCHours();return y===0&&(y=24),g==="ko"?m.ordinalNumber(y,{unit:"hour"}):(0,s.default)(y,g.length)},m:function(p,g,m){return g==="mo"?m.ordinalNumber(p.getUTCMinutes(),{unit:"minute"}):l.default.m(p,g)},s:function(p,g,m){return g==="so"?m.ordinalNumber(p.getUTCSeconds(),{unit:"second"}):l.default.s(p,g)},S:function(p,g){return l.default.S(p,g)},X:function(p,g,m,y){var b=y._originalDate||p,x=b.getTimezoneOffset();if(x===0)return"Z";switch(g){case"X":return A(x);case"XXXX":case"XX":return h(x);case"XXXXX":case"XXX":default:return h(x,":")}},x:function(p,g,m,y){var b=y._originalDate||p,x=b.getTimezoneOffset();switch(g){case"x":return A(x);case"xxxx":case"xx":return h(x);case"xxxxx":case"xxx":default:return h(x,":")}},O:function(p,g,m,y){var b=y._originalDate||p,x=b.getTimezoneOffset();switch(g){case"O":case"OO":case"OOO":return"GMT"+f(x,":");case"OOOO":default:return"GMT"+h(x,":")}},z:function(p,g,m,y){var b=y._originalDate||p,x=b.getTimezoneOffset();switch(g){case"z":case"zz":case"zzz":return"GMT"+f(x,":");case"zzzz":default:return"GMT"+h(x,":")}},t:function(p,g,m,y){var b=y._originalDate||p,x=Math.floor(b.getTime()/1e3);return(0,s.default)(x,g.length)},T:function(p,g,m,y){var b=y._originalDate||p,x=b.getTime();return(0,s.default)(x,g.length)}};function f(p,g){var m=p>0?"-":"+",y=Math.abs(p),b=Math.floor(y/60),x=y%60;if(x===0)return m+String(b);var w=g||"";return m+String(b)+w+(0,s.default)(x,2)}function A(p,g){if(p%60===0){var m=p>0?"-":"+";return m+(0,s.default)(Math.abs(p)/60,2)}return h(p,g)}function h(p,g){var m=g||"",y=p>0?"-":"+",b=Math.abs(p),x=(0,s.default)(Math.floor(b/60),2),w=(0,s.default)(b%60,2);return y+x+m+w}var v=d;t.default=v,e.exports=t.default})($D,$D.exports);var rRe=$D.exports,XD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function r(s,l){switch(s){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}}function n(s,l){switch(s){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}}function o(s,l){var u=s.match(/(P+)(p+)?/)||[],c=u[1],d=u[2];if(!d)return r(s,l);var f;switch(c){case"P":f=l.dateTime({width:"short"});break;case"PP":f=l.dateTime({width:"medium"});break;case"PPP":f=l.dateTime({width:"long"});break;case"PPPP":default:f=l.dateTime({width:"full"});break}return f.replace("{{date}}",r(c,l)).replace("{{time}}",n(d,l))}var a={p:n,P:o},i=a;t.default=i,e.exports=t.default})(XD,XD.exports);var nRe=XD.exports,qD={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var o=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return o.setUTCFullYear(n.getFullYear()),n.getTime()-o.getTime()}e.exports=t.default})(qD,qD.exports);var dZ=qD.exports;const GU=ai(dZ);var Ty={};Object.defineProperty(Ty,"__esModule",{value:!0});Ty.isProtectedDayOfYearToken=iRe;Ty.isProtectedWeekYearToken=sRe;Ty.throwProtectedError=lRe;var oRe=["D","DD"],aRe=["YY","YYYY"];function iRe(e){return oRe.indexOf(e)!==-1}function sRe(e){return aRe.indexOf(e)!==-1}function lRe(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=f(LIe),n=f(GIe),o=f(YIe),a=f(wl),i=f(rRe),s=f(nRe),l=f(dZ),u=Ty,c=f(FA),d=f(ca);function f(b){return b&&b.__esModule?b:{default:b}}var A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,h=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,p=/''/g,g=/[a-zA-Z]/;function m(b,x,w){(0,d.default)(2,arguments);var C=String(x),_=w||{},B=_.locale||n.default,T=B.options&&B.options.firstWeekContainsDate,E=T==null?1:(0,c.default)(T),I=_.firstWeekContainsDate==null?E:(0,c.default)(_.firstWeekContainsDate);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=B.options&&B.options.weekStartsOn,D=R==null?0:(0,c.default)(R),F=_.weekStartsOn==null?D:(0,c.default)(_.weekStartsOn);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var M=(0,a.default)(b);if(!(0,r.default)(M))throw new RangeError("Invalid time value");var $=(0,l.default)(M),O=(0,o.default)(M,$),Q={firstWeekContainsDate:I,weekStartsOn:F,locale:B,_originalDate:M},V=C.match(h).map(function(W){var Z=W[0];if(Z==="p"||Z==="P"){var te=s.default[Z];return te(W,B.formatLong,Q)}return W}).join("").match(A).map(function(W){if(W==="''")return"'";var Z=W[0];if(Z==="'")return y(W);var te=i.default[Z];if(te)return!_.useAdditionalWeekYearTokens&&(0,u.isProtectedWeekYearToken)(W)&&(0,u.throwProtectedError)(W,x,b),!_.useAdditionalDayOfYearTokens&&(0,u.isProtectedDayOfYearToken)(W)&&(0,u.throwProtectedError)(W,x,b),te(O,W,B.localize,Q);if(Z.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return W}).join("");return V}function y(b){return b.match(v)[1].replace(p,"'")}e.exports=t.default})(bD,bD.exports);var uRe=bD.exports;const cRe=ai(uRe);function KU(e,t,r){var n=ARe(e,r.timeZone,r.locale);return n.formatToParts?dRe(n,t):fRe(n,t)}function dRe(e,t){var r=e.formatToParts(t);return r[r.length-1].value}function fRe(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function ARe(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function hRe(e,t){var r=mRe(t);return r.formatToParts?pRe(r,e):gRe(r,e)}var vRe={year:0,month:1,day:2,hour:3,minute:4,second:5};function pRe(e,t){try{for(var r=e.formatToParts(t),n=[],o=0;o<r.length;o++){var a=vRe[r[o].type];a>=0&&(n[a]=parseInt(r[o].value,10))}return n}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function gRe(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var _2={};function mRe(e){if(!_2[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";_2[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return _2[e]}function fZ(e,t,r,n,o,a,i){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,o,a,i),s}var jU=36e5,yRe=6e4,B2={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function yL(e,t,r){var n,o;if(e===""||(n=B2.timezoneZ.exec(e),n))return 0;var a;if(n=B2.timezoneHH.exec(e),n)return a=parseInt(n[1],10),YU(a)?-(a*jU):NaN;if(n=B2.timezoneHHMM.exec(e),n){a=parseInt(n[1],10);var i=parseInt(n[2],10);return YU(a,i)?(o=Math.abs(a)*jU+i*yRe,a>0?-o:o):NaN}if(wRe(e)){t=new Date(t||Date.now());var s=r?t:bRe(t),l=ZD(s,e),u=r?l:xRe(t,l,e);return-u}return NaN}function bRe(e){return fZ(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function ZD(e,t){var r=hRe(e,t),n=fZ(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),o=e.getTime(),a=o%1e3;return o-=a>=0?a:1e3+a,n-o}function xRe(e,t,r){var n=e.getTime(),o=n-t,a=ZD(new Date(o),r);if(t===a)return t;o-=a-t;var i=ZD(new Date(o),r);return a===i?a:Math.max(a,i)}function YU(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var XU={};function wRe(e){if(XU[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),XU[e]=!0,!0}catch(t){return!1}}var CRe=60*1e3,SRe={X:function(e,t,r,n){var o=T2(n.timeZone,n._originalDate||e);if(o===0)return"Z";switch(t){case"X":return qU(o);case"XXXX":case"XX":return $h(o);case"XXXXX":case"XXX":default:return $h(o,":")}},x:function(e,t,r,n){var o=T2(n.timeZone,n._originalDate||e);switch(t){case"x":return qU(o);case"xxxx":case"xx":return $h(o);case"xxxxx":case"xxx":default:return $h(o,":")}},O:function(e,t,r,n){var o=T2(n.timeZone,n._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+_Re(o,":");case"OOOO":default:return"GMT"+$h(o,":")}},z:function(e,t,r,n){var o=n._originalDate||e;switch(t){case"z":case"zz":case"zzz":return KU("short",o,n);case"zzzz":default:return KU("long",o,n)}}};function T2(e,t){var r=e?yL(e,t,!0)/CRe:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function zw(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function $h(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),a=zw(Math.floor(o/60),2),i=zw(Math.floor(o%60),2);return n+a+r+i}function qU(e,t){if(e%60===0){var r=e>0?"-":"+";return r+zw(Math.abs(e)/60,2)}return $h(e,t)}function _Re(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(a===0)return r+String(o);var i=t||"";return r+String(o)+i+zw(a,2)}const BRe=SRe;var TRe=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,E2=36e5,ZU=6e4,ERe=2,aa={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:TRe};function AZ(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?ERe:KIe(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=IRe(e),a=RRe(o.date,n),i=a.year,s=a.restDateString,l=DRe(s,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(o.time&&(c=MRe(o.time),isNaN(c)))return new Date(NaN);if(o.timeZone||r.timeZone){if(d=yL(o.timeZone||r.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN)}else d=GU(new Date(u+c)),d=GU(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function IRe(e){var t={},r=aa.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=aa.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var o=aa.timeZone.exec(n);o?(t.time=n.replace(o[1],""),t.timeZone=o[1].trim()):t.time=n}return t}function RRe(e,t){var r=aa.YYY[t],n=aa.YYYYY[t],o;if(o=aa.YYYY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=aa.YY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function DRe(e,t){if(t===null)return null;var r,n,o,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=aa.MM.exec(e),r)return n=new Date(0),o=parseInt(r[1],10)-1,eN(t,o)?(n.setUTCFullYear(t,o),n):new Date(NaN);if(r=aa.DDD.exec(e),r){n=new Date(0);var i=parseInt(r[1],10);return kRe(t,i)?(n.setUTCFullYear(t,0,i),n):new Date(NaN)}if(r=aa.MMDD.exec(e),r){n=new Date(0),o=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return eN(t,o,s)?(n.setUTCFullYear(t,o,s),n):new Date(NaN)}if(r=aa.Www.exec(e),r)return a=parseInt(r[1],10)-1,tN(t,a)?JU(t,a):new Date(NaN);if(r=aa.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var l=parseInt(r[2],10)-1;return tN(t,a,l)?JU(t,a,l):new Date(NaN)}return null}function MRe(e){var t,r,n;if(t=aa.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),I2(r)?r%24*E2:NaN;if(t=aa.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),I2(r,n)?r%24*E2+n*ZU:NaN;if(t=aa.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return I2(r,n,o)?r%24*E2+n*ZU+o*1e3:NaN}return null}function JU(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,a=t*7+r+1-o;return n.setUTCDate(n.getUTCDate()+a),n}var PRe=[31,28,31,30,31,30,31,31,30,31,30,31],FRe=[31,29,31,30,31,30,31,31,30,31,30,31];function hZ(e){return e%400===0||e%4===0&&e%100!==0}function eN(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=hZ(e);if(n&&r>FRe[t]||!n&&r>PRe[t])return!1}return!0}function kRe(e,t){if(t<1)return!1;var r=hZ(e);return!(r&&t>366||!r&&t>365)}function tN(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function I2(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var LRe=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ORe(e,t,r){var n=String(t),o=r||{},a=n.match(LRe);if(a){var i=AZ(e,o);n=a.reduce(function(s,l){if(l[0]==="'")return s;var u=s.indexOf(l),c=s[u-1]==="'",d=s.replace(l,"'"+BRe[l[0]](i,l,null,o)+"'");return c?d.substring(0,u-1)+d.substring(u+1):d},n)}return cRe(e,n,o)}function $Re(e,t,r){var n=AZ(e,r),o=yL(t,n,!0),a=new Date(n.getTime()-o);return new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())}function vZ(e,t,r,n){var o=FIe(n);return o.timeZone=t,ORe($Re(e,t),r,o)}const Wg={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function R2(e){return`00${e}`.slice(-2)}function Gg(e,t,r){return Array.isArray(t)?(r==="am"?t.filter(n=>n<12):r==="pm"?t.filter(n=>n>=12).map(n=>n===12?12:n-12):t).map(n=>R2(n)):typeof t=="number"?r==="am"?e.filter(n=>{const o=Number(n);return o<12&&o%t===0}):r==="pm"?e.filter(n=>{const o=Number(n);return o>=12&&o%t===0}).map(n=>{const o=Number(n);return R2(o===12?12:o-12)}):e.filter(n=>Number(n)%t===0):r==="am"?e.filter(n=>Number(n)<12):r==="pm"?e.map(n=>Number(n)).filter(n=>Number(n)>=12).map(n=>R2(n===12?12:n-12)):e}function Qb(e,t,r){return r?typeof r=="number"?e%r===0:r.includes(e):!0}function URe(e,t,r){const n=Gg(Wg[t],r).map(Number);let o,a;for(let i=0;i<n.length;++i){const s=n[i];if(s===e)return s;if(s>e){a=s;break}o=s}return o===void 0?(a||$o("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),a):a===void 0||a-e>e-o?o:a}function NRe(e){return fc(e)<12?"am":"pm"}const pZ="n-time-picker",Vb=ge({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:r}=this;return this.data.map(n=>{const{label:o,disabled:a,value:i}=n,s=e===i;return S("div",{key:o,"data-active":s?"":null,class:[`${r}-time-picker-col__item`,s&&`${r}-time-picker-col__item--active`,a&&`${r}-time-picker-col__item--disabled`],onClick:t&&!a?()=>t(i):void 0},o)})}}),HRe={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},zRe=ge({name:"TimePickerPanel",props:HRe,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:r}=Ke(pZ),n=L(()=>{const{isHourDisabled:s,hours:l,use12Hours:u,amPmValue:c}=e;if(u){const d=c!=null?c:NRe(Date.now());return Gg(Wg.hours,l,d).map(f=>{const A=Number(f),h=d==="pm"&&A!==12?A+12:A;return{label:f,value:h,disabled:s?s(h):!1}})}else return Gg(Wg.hours,l).map(d=>({label:d,value:Number(d),disabled:s?s(Number(d)):!1}))}),o=L(()=>{const{isMinuteDisabled:s,minutes:l}=e;return Gg(Wg.minutes,l).map(u=>({label:u,value:Number(u),disabled:s?s(Number(u),e.hourValue):!1}))}),a=L(()=>{const{isSecondDisabled:s,seconds:l}=e;return Gg(Wg.seconds,l).map(u=>({label:u,value:Number(u),disabled:s?s(Number(u),e.minuteValue,e.hourValue):!1}))}),i=L(()=>{const{isHourDisabled:s}=e;let l=!0,u=!0;for(let c=0;c<12;++c)if(!(s!=null&&s(c))){l=!1;break}for(let c=12;c<24;++c)if(!(s!=null&&s(c))){u=!1;break}return[{label:"AM",value:"am",disabled:l},{label:"PM",value:"pm",disabled:u}]});return{mergedTheme:t,mergedClsPrefix:r,hours:n,minutes:o,seconds:a,amPm:i,hourScrollRef:q(null),minuteScrollRef:q(null),secondScrollRef:q(null),amPmScrollRef:q(null)}},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:o}=this;return S("div",{tabindex:0,class:`${n}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},S("div",{class:`${n}-time-picker-cols`},this.showHour?S("div",{class:[`${n}-time-picker-col`,this.isHourInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},S(Gn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[S(Vb,{clsPrefix:n,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),S("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showMinute?S("div",{class:[`${n}-time-picker-col`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${n}-time-picker-col--invalid`]},S(Gn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[S(Vb,{clsPrefix:n,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),S("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showSecond?S("div",{class:[`${n}-time-picker-col`,this.isSecondInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},S(Gn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[S(Vb,{clsPrefix:n,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),S("div",{class:`${n}-time-picker-col__padding`})]})):null,this.use12Hours?S("div",{class:[`${n}-time-picker-col`,this.isAmPmInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},S(Gn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[S(Vb,{clsPrefix:n,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),S("div",{class:`${n}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?S("div",{class:`${n}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?S(sn,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?S(sn,{size:"tiny",type:"primary",class:`${n}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,S(gd,{onFocus:this.onFocusDetectorFocus}))}}),QRe=N([P("time-picker",`
  3020. z-index: auto;
  3021. position: relative;
  3022. `,[P("time-picker-icon",`
  3023. color: var(--n-icon-color-override);
  3024. transition: color .3s var(--n-bezier);
  3025. `),j("disabled",[P("time-picker-icon",`
  3026. color: var(--n-icon-color-disabled-override);
  3027. `)])]),P("time-picker-panel",`
  3028. transition:
  3029. box-shadow .3s var(--n-bezier),
  3030. background-color .3s var(--n-bezier);
  3031. outline: none;
  3032. font-size: var(--n-item-font-size);
  3033. border-radius: var(--n-border-radius);
  3034. margin: 4px 0;
  3035. min-width: 104px;
  3036. overflow: hidden;
  3037. background-color: var(--n-panel-color);
  3038. box-shadow: var(--n-panel-box-shadow);
  3039. `,[Ia(),P("time-picker-actions",`
  3040. padding: var(--n-panel-action-padding);
  3041. align-items: center;
  3042. display: flex;
  3043. justify-content: space-evenly;
  3044. `),P("time-picker-cols",`
  3045. height: calc(var(--n-item-height) * 6);
  3046. display: flex;
  3047. position: relative;
  3048. transition: border-color .3s var(--n-bezier);
  3049. border-bottom: 1px solid var(--n-panel-divider-color);
  3050. `),P("time-picker-col",`
  3051. flex-grow: 1;
  3052. min-width: var(--n-item-width);
  3053. height: calc(var(--n-item-height) * 6);
  3054. flex-direction: column;
  3055. transition: box-shadow .3s var(--n-bezier);
  3056. `,[j("transition-disabled",[G("item","transition: none;",[N("&::before","transition: none;")])]),G("padding",`
  3057. height: calc(var(--n-item-height) * 5);
  3058. `),N("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[G("item",[N("&::before","left: 4px;")])]),G("item",`
  3059. cursor: pointer;
  3060. height: var(--n-item-height);
  3061. display: flex;
  3062. align-items: center;
  3063. justify-content: center;
  3064. transition:
  3065. color .3s var(--n-bezier),
  3066. background-color .3s var(--n-bezier),
  3067. opacity .3s var(--n-bezier),
  3068. text-decoration-color .3s var(--n-bezier);
  3069. background: #0000;
  3070. text-decoration-color: #0000;
  3071. color: var(--n-item-text-color);
  3072. z-index: 0;
  3073. box-sizing: border-box;
  3074. padding-top: 4px;
  3075. position: relative;
  3076. `,[N("&::before",`
  3077. content: "";
  3078. transition: background-color .3s var(--n-bezier);
  3079. z-index: -1;
  3080. position: absolute;
  3081. left: 0;
  3082. right: 4px;
  3083. top: 4px;
  3084. bottom: 0;
  3085. border-radius: var(--n-item-border-radius);
  3086. `),Wt("disabled",[N("&:hover::before",`
  3087. background-color: var(--n-item-color-hover);
  3088. `)]),j("active",`
  3089. color: var(--n-item-text-color-active);
  3090. `,[N("&::before",`
  3091. background-color: var(--n-item-color-hover);
  3092. `)]),j("disabled",`
  3093. opacity: var(--n-item-opacity-disabled);
  3094. cursor: not-allowed;
  3095. `)]),j("invalid",[G("item",[j("active",`
  3096. text-decoration: line-through;
  3097. text-decoration-color: var(--n-item-text-color-active);
  3098. `)])])])])]);function D2(e,t){return e===void 0?!0:Array.isArray(e)?e.every(r=>r>=0&&r<=t):e>=0&&e<=t}const VRe=Object.assign(Object.assign({},Me.props),{to:Un.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>D2(e,23)},minutes:{type:[Number,Array],validator:e=>D2(e,59)},seconds:{type:[Number,Array],validator:e=>D2(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Qw=ge({name:"TimePicker",props:VRe,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:o}=nt(e),{localeRef:a,dateLocaleRef:i}=zi("TimePicker"),s=Da(e),{mergedSizeRef:l,mergedDisabledRef:u,mergedStatusRef:c}=s,d=Me("TimePicker","-time-picker",QRe,oZ,e,r),f=Rk(),A=q(null),h=q(null),v=L(()=>({locale:i.value.locale}));function p(Se){return Se===null?null:ya(Se,e.valueFormat||e.format,new Date,v.value).getTime()}const{defaultValue:g,defaultFormattedValue:m}=e,y=q(m!==void 0?p(m):g),b=L(()=>{const{formattedValue:Se}=e;if(Se!==void 0)return p(Se);const{value:He}=e;return He!==void 0?He:y.value}),x=L(()=>{const{timeZone:Se}=e;return Se?(He,me,ze)=>vZ(He,Se,me,ze):(He,me,ze)=>An(He,me,ze)}),w=q("");gt(()=>e.timeZone,()=>{const Se=b.value;w.value=Se===null?"":x.value(Se,e.format,v.value)},{immediate:!0});const C=q(!1),_=Re(e,"show"),B=Ir(_,C),T=q(b.value),E=q(!1),I=L(()=>a.value.now),R=L(()=>e.placeholder!==void 0?e.placeholder:a.value.placeholder),D=L(()=>a.value.negativeText),F=L(()=>a.value.positiveText),M=L(()=>/H|h|K|k/.test(e.format)),$=L(()=>e.format.includes("m")),O=L(()=>e.format.includes("s")),Q=L(()=>{const{isHourDisabled:Se}=e;return re.value===null?!1:Qb(re.value,"hours",e.hours)?Se?Se(re.value):!1:!0}),V=L(()=>{const{value:Se}=le,{value:He}=re;if(Se===null||He===null)return!1;if(!Qb(Se,"minutes",e.minutes))return!0;const{isMinuteDisabled:me}=e;return me?me(Se,He):!1}),W=L(()=>{const{value:Se}=le,{value:He}=re,{value:me}=se;if(me===null||Se===null||He===null)return!1;if(!Qb(me,"seconds",e.seconds))return!0;const{isSecondDisabled:ze}=e;return ze?ze(me,Se,He):!1}),Z=L(()=>Q.value||V.value||W.value),te=L(()=>e.format.length+4),ae=L(()=>{const{value:Se}=b;return Se===null?null:fc(Se)<12?"am":"pm"}),re=L(()=>{const{value:Se}=b;return Se===null?null:Number(x.value(Se,"HH",v.value))}),le=L(()=>{const{value:Se}=b;return Se===null?null:Number(x.value(Se,"mm",v.value))}),se=L(()=>{const{value:Se}=b;return Se===null?null:Number(x.value(Se,"ss",v.value))});function ce(Se,He){const{onUpdateFormattedValue:me,"onUpdate:formattedValue":ze}=e;me&&Te(me,Se,He),ze&&Te(ze,Se,He)}function be(Se){return Se===null?null:x.value(Se,e.valueFormat||e.format)}function de(Se){const{onUpdateValue:He,"onUpdate:value":me,onChange:ze}=e,{nTriggerFormChange:dt,nTriggerFormInput:Rt}=s,At=be(Se);He&&Te(He,Se,At),me&&Te(me,Se,At),ze&&Te(ze,Se,At),ce(At,Se),y.value=Se,dt(),Rt()}function pe(Se){const{onFocus:He}=e,{nTriggerFormFocus:me}=s;He&&Te(He,Se),me()}function K(Se){const{onBlur:He}=e,{nTriggerFormBlur:me}=s;He&&Te(He,Se),me()}function U(){const{onConfirm:Se}=e;Se&&Te(Se,b.value,be(b.value))}function k(Se){var He;Se.stopPropagation(),de(null),ie(null),(He=e.onClear)===null||He===void 0||He.call(e)}function J(){je({returnFocus:!0})}function ee(Se){Se.key==="Escape"&&B.value&&fm(Se)}function H(Se){var He;switch(Se.key){case"Escape":B.value&&(fm(Se),je({returnFocus:!0}));break;case"Tab":f.shift&&Se.target===((He=h.value)===null||He===void 0?void 0:He.$el)&&(Se.preventDefault(),je({returnFocus:!0}));break}}function Y(){E.value=!0,dr(()=>{E.value=!1})}function oe(Se){u.value||Ja(Se,"clear")||B.value||Ge()}function he(Se){typeof Se!="string"&&(b.value===null?de(ft(Dd(kBe(new Date),Se))):de(ft(Dd(b.value,Se))))}function ne(Se){typeof Se!="string"&&(b.value===null?de(ft(g2(W_e(new Date),Se))):de(ft(g2(b.value,Se))))}function Ae(Se){typeof Se!="string"&&(b.value===null?de(ft(m2(tL(new Date),Se))):de(ft(m2(b.value,Se))))}function X(Se){const{value:He}=b;if(He===null){const me=new Date,ze=fc(me);Se==="pm"&&ze<12?de(ft(Dd(me,ze+12))):Se==="am"&&ze>=12&&de(ft(Dd(me,ze-12))),de(ft(me))}else{const me=fc(He);Se==="pm"&&me<12?de(ft(Dd(He,me+12))):Se==="am"&&me>=12&&de(ft(Dd(He,me-12)))}}function ie(Se){Se===void 0&&(Se=b.value),Se===null?w.value="":w.value=x.value(Se,e.format,v.value)}function fe(Se){mt(Se)||pe(Se)}function ye(Se){var He;if(!mt(Se))if(B.value){const me=(He=h.value)===null||He===void 0?void 0:He.$el;me!=null&&me.contains(Se.relatedTarget)||(ie(),K(Se),je({returnFocus:!1}))}else ie(),K(Se)}function Fe(){u.value||B.value||Ge()}function Ne(){u.value||(ie(),je({returnFocus:!1}))}function rt(){if(!h.value)return;const{hourScrollRef:Se,minuteScrollRef:He,secondScrollRef:me,amPmScrollRef:ze}=h.value;[Se,He,me,ze].forEach(dt=>{var Rt;if(!dt)return;const At=(Rt=dt.contentRef)===null||Rt===void 0?void 0:Rt.querySelector("[data-active]");At&&dt.scrollTo({top:At.offsetTop})})}function lt(Se){C.value=Se;const{onUpdateShow:He,"onUpdate:show":me}=e;He&&Te(He,Se),me&&Te(me,Se)}function mt(Se){var He,me,ze;return!!(!((me=(He=A.value)===null||He===void 0?void 0:He.wrapperElRef)===null||me===void 0)&&me.contains(Se.relatedTarget)||!((ze=h.value)===null||ze===void 0)&&ze.$el.contains(Se.relatedTarget))}function Ge(){T.value=b.value,lt(!0),dr(rt)}function it(Se){var He,me;B.value&&!(!((me=(He=A.value)===null||He===void 0?void 0:He.wrapperElRef)===null||me===void 0)&&me.contains(gs(Se)))&&je({returnFocus:!1})}function je({returnFocus:Se}){var He;B.value&&(lt(!1),Se&&((He=A.value)===null||He===void 0||He.focus()))}function Ye(Se){if(Se===""){de(null);return}const He=ya(Se,e.format,new Date,v.value);if(w.value=Se,_i(He)){const{value:me}=b;if(me!==null){const ze=To(me,{hours:fc(He),minutes:Uw(He),seconds:Nw(He)});de(ft(ze))}else de(ft(He))}}function ue(){de(T.value),lt(!1)}function Ee(){const Se=new Date,He={hours:fc,minutes:Uw,seconds:Nw},[me,ze,dt]=["hours","minutes","seconds"].map(At=>!e[At]||Qb(He[At](Se),At,e[At])?He[At](Se):URe(He[At](Se),At,e[At])),Rt=m2(g2(Dd(b.value?b.value:ft(Se),me),ze),dt);de(ft(Rt))}function Qe(){ie(),U(),je({returnFocus:!0})}function et(Se){mt(Se)||(ie(),K(Se),je({returnFocus:!1}))}gt(b,Se=>{ie(Se),Y(),dr(rt)}),gt(B,()=>{Z.value&&de(T.value)}),_t(pZ,{mergedThemeRef:d,mergedClsPrefixRef:r});const tt={focus:()=>{var Se;(Se=A.value)===null||Se===void 0||Se.focus()},blur:()=>{var Se;(Se=A.value)===null||Se===void 0||Se.blur()}},xe=L(()=>{const{common:{cubicBezierEaseInOut:Se},self:{iconColor:He,iconColorDisabled:me}}=d.value;return{"--n-icon-color-override":He,"--n-icon-color-disabled-override":me,"--n-bezier":Se}}),$e=o?Et("time-picker-trigger",void 0,xe,e):void 0,Xe=L(()=>{const{self:{panelColor:Se,itemTextColor:He,itemTextColorActive:me,itemColorHover:ze,panelDividerColor:dt,panelBoxShadow:Rt,itemOpacityDisabled:At,borderRadius:ve,itemFontSize:De,itemWidth:ot,itemHeight:Nt,panelActionPadding:Ce,itemBorderRadius:Le},common:{cubicBezierEaseInOut:ut}}=d.value;return{"--n-bezier":ut,"--n-border-radius":ve,"--n-item-color-hover":ze,"--n-item-font-size":De,"--n-item-height":Nt,"--n-item-opacity-disabled":At,"--n-item-text-color":He,"--n-item-text-color-active":me,"--n-item-width":ot,"--n-panel-action-padding":Ce,"--n-panel-box-shadow":Rt,"--n-panel-color":Se,"--n-panel-divider-color":dt,"--n-item-border-radius":Le}}),ht=o?Et("time-picker",void 0,Xe,e):void 0;return{focus:tt.focus,blur:tt.blur,mergedStatus:c,mergedBordered:t,mergedClsPrefix:r,namespace:n,uncontrolledValue:y,mergedValue:b,isMounted:oi(),inputInstRef:A,panelInstRef:h,adjustedTo:Un(e),mergedShow:B,localizedNow:I,localizedPlaceholder:R,localizedNegativeText:D,localizedPositiveText:F,hourInFormat:M,minuteInFormat:$,secondInFormat:O,mergedAttrSize:te,displayTimeString:w,mergedSize:l,mergedDisabled:u,isValueInvalid:Z,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:W,transitionDisabled:E,hourValue:re,minuteValue:le,secondValue:se,amPmValue:ae,handleInputKeydown:ee,handleTimeInputFocus:fe,handleTimeInputBlur:ye,handleNowClick:Ee,handleConfirmClick:Qe,handleTimeInputUpdateValue:Ye,handleMenuFocusOut:et,handleCancelClick:ue,handleClickOutside:it,handleTimeInputActivate:Fe,handleTimeInputDeactivate:Ne,handleHourClick:he,handleMinuteClick:ne,handleSecondClick:Ae,handleAmPmClick:X,handleTimeInputClear:k,handleFocusDetectorFocus:J,handleMenuKeydown:H,handleTriggerClick:oe,mergedTheme:d,triggerCssVars:o?void 0:xe,triggerThemeClass:$e==null?void 0:$e.themeClass,triggerOnRender:$e==null?void 0:$e.onRender,cssVars:o?void 0:Xe,themeClass:ht==null?void 0:ht.themeClass,onRender:ht==null?void 0:ht.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:r}=this;return r==null||r(),S("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},S(fd,null,{default:()=>[S(Ad,null,{default:()=>S(ms,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>S(zt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():S(Fwe,null)})}:null)}),S(vd,{teleportDisabled:this.adjustedTo===Un.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var n;return this.mergedShow?((n=this.onRender)===null||n===void 0||n.call(this),en(S(zRe,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[dl,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),WRe="HH:mm:ss",gZ={active:Boolean,dateFormat:String,timeFormat:{type:String,value:WRe},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function mZ(e){const{dateLocaleRef:t,timePickerSizeRef:r,timePickerPropsRef:n,localeRef:o,mergedClsPrefixRef:a,mergedThemeRef:i}=Ke(WS),s=L(()=>({locale:t.value.locale})),l=q(null),u=Rk();function c(){const{onClear:I}=e;I&&I()}function d(){const{onConfirm:I,value:R}=e;I&&I(R)}function f(I,R){const{onUpdateValue:D}=e;D(I,R)}function A(I=!1){const{onClose:R}=e;R&&R(I)}function h(){const{onTabOut:I}=e;I&&I()}function v(){f(null,!0),A(!0),c()}function p(){h()}function g(){(e.active||e.panel)&&dr(()=>{const{value:I}=l;if(!I)return;const R=I.querySelectorAll("[data-n-date]");R.forEach(D=>{D.classList.add("transition-disabled")}),I.offsetWidth,R.forEach(D=>{D.classList.remove("transition-disabled")})})}function m(I){I.key==="Tab"&&I.target===l.value&&u.shift&&(I.preventDefault(),h())}function y(I){const{value:R}=l;u.tab&&I.target===R&&(R!=null&&R.contains(I.relatedTarget))&&h()}let b=null,x=!1;function w(){b=e.value,x=!0}function C(){x=!1}function _(){x&&(f(b,!1),x=!1)}function B(I){return typeof I=="function"?I():I}const T=q(!1);function E(){T.value=!T.value}return{mergedTheme:i,mergedClsPrefix:a,dateFnsOptions:s,timePickerSize:r,timePickerProps:n,selfRef:l,locale:o,doConfirm:d,doClose:A,doUpdateValue:f,doTabOut:h,handleClearClick:v,handleFocusDetectorFocus:p,disableTransitionOneTick:g,handlePanelKeyDown:m,handlePanelFocus:y,cachePendingValue:w,clearPendingValue:C,restorePendingValue:_,getShortcutValue:B,handleShortcutMouseleave:_,showMonthYearPanel:T,handleOpenQuickSelectMonthPanel:E}}const bL=Object.assign(Object.assign({},gZ),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function xL(e,t){const r=mZ(e),{isValueInvalidRef:n,isDateDisabledRef:o,isDateInvalidRef:a,isTimeInvalidRef:i,isDateTimeInvalidRef:s,isHourDisabledRef:l,isMinuteDisabledRef:u,isSecondDisabledRef:c,localeRef:d,firstDayOfWeekRef:f,datePickerSlots:A}=Ke(WS),h={isValueInvalid:n,isDateDisabled:o,isDateInvalid:a,isTimeInvalid:i,isDateTimeInvalid:s,isHourDisabled:l,isMinuteDisabled:u,isSecondDisabled:c},v=L(()=>e.dateFormat||d.value.dateFormat),p=q(e.value===null||Array.isArray(e.value)?"":An(e.value,v.value)),g=q(e.value===null||Array.isArray(e.value)?Date.now():e.value),m=q(null),y=q(null),b=q(null),x=q(Date.now()),w=L(()=>{var H;return AD(g.value,e.value,x.value,(H=f.value)!==null&&H!==void 0?H:d.value.firstDayOfWeek)}),C=L(()=>{const{value:H}=e;return hD(g.value,Array.isArray(H)?null:H,x.value)}),_=L(()=>{const{value:H}=e;return pD(Array.isArray(H)?null:H,x.value)}),B=L(()=>{const{value:H}=e;return vD(g.value,Array.isArray(H)?null:H,x.value)}),T=L(()=>w.value.slice(0,7).map(H=>{const{ts:Y}=H;return An(Y,d.value.dayFormat,r.dateFnsOptions.value)})),E=L(()=>An(g.value,d.value.monthFormat,r.dateFnsOptions.value)),I=L(()=>An(g.value,d.value.yearFormat,r.dateFnsOptions.value));gt(g,(H,Y)=>{(t==="date"||t==="datetime")&&(NS(H,Y)||r.disableTransitionOneTick())}),gt(L(()=>e.value),H=>{H!==null&&!Array.isArray(H)?(p.value=An(H,v.value,r.dateFnsOptions.value),g.value=H):p.value=""});function R(H){return ft(t==="datetime"?tL(H):t==="month"?Nl(H):t==="year"?Jk(H):t==="quarter"?gm(H):Lw(H))}function D(H){const{isDateDisabled:{value:Y}}=h;return Y?Y(H):!1}function F(H){const Y=ya(H,v.value,new Date,r.dateFnsOptions.value);if(_i(Y)){if(e.value===null)r.doUpdateValue(ft(R(Date.now())),e.panel);else if(!Array.isArray(e.value)){const oe=To(e.value,{year:Bn(Y),month:pn(Y),date:os(Y)});r.doUpdateValue(ft(R(ft(oe))),e.panel)}}else p.value=H}function M(){const H=ya(p.value,v.value,new Date,r.dateFnsOptions.value);if(_i(H)){if(e.value===null)r.doUpdateValue(ft(R(Date.now())),!1);else if(!Array.isArray(e.value)){const Y=To(e.value,{year:Bn(H),month:pn(H),date:os(H)});r.doUpdateValue(ft(R(ft(Y))),!1)}}else Z()}function $(){r.doUpdateValue(null,!0),p.value="",r.doClose(!0),r.handleClearClick()}function O(){r.doUpdateValue(ft(R(Date.now())),!0);const H=Date.now();g.value=H,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),J(H))}function Q(H){if(D(H.ts))return;let Y;if(e.value!==null&&!Array.isArray(e.value)?Y=e.value:Y=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const oe=Lx(e.defaultTime);oe&&(Y=ft(To(Y,oe)))}switch(Y=ft(H.type==="quarter"&&H.dateObject.quarter?LBe(TU(Y,H.dateObject.year),H.dateObject.quarter):To(Y,H.dateObject)),r.doUpdateValue(R(Y),e.panel||t==="date"||t==="year"),t){case"date":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),J(Y);break;case"quarter":r.disableTransitionOneTick(),J(Y);break}}function V(H,Y){let oe;e.value!==null&&!Array.isArray(e.value)?oe=e.value:oe=Date.now(),oe=ft(H.type==="month"?rL(oe,H.dateObject.month):TU(oe,H.dateObject.year)),Y(oe),J(oe)}function W(H){g.value=H}function Z(H){if(e.value===null||Array.isArray(e.value)){p.value="";return}H===void 0&&(H=e.value),p.value=An(H,v.value,r.dateFnsOptions.value)}function te(){h.isDateInvalid.value||h.isTimeInvalid.value||(r.doConfirm(),ae())}function ae(){e.active&&r.doClose()}function re(){g.value=ft(fD(g.value,1))}function le(){g.value=ft(fD(g.value,-1))}function se(){g.value=ft(Bo(g.value,1))}function ce(){g.value=ft(Bo(g.value,-1))}function be(){const{value:H}=m;return H==null?void 0:H.listElRef}function de(){const{value:H}=m;return H==null?void 0:H.itemsElRef}function pe(H){var Y;(Y=y.value)===null||Y===void 0||Y.sync()}function K(H){H!==null&&r.doUpdateValue(H,e.panel)}function U(H){r.cachePendingValue();const Y=r.getShortcutValue(H);typeof Y=="number"&&r.doUpdateValue(Y,!1)}function k(H){const Y=r.getShortcutValue(H);typeof Y=="number"&&(r.doUpdateValue(Y,e.panel),r.clearPendingValue(),te())}function J(H){const{value:Y}=e;if(b.value){const oe=pn(H===void 0?Y===null?Date.now():Y:H);b.value.scrollTo({top:oe*fA})}if(m.value){const oe=Bn(H===void 0?Y===null?Date.now():Y:H)-Hw;m.value.scrollTo({top:oe*fA})}}const ee={monthScrollbarRef:b,yearScrollbarRef:y,yearVlRef:m};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:w,monthArray:C,yearArray:_,quarterArray:B,calendarYear:I,calendarMonth:E,weekdays:T,mergedIsDateDisabled:D,nextYear:re,prevYear:le,nextMonth:se,prevMonth:ce,handleNowClick:O,handleConfirmClick:te,handleSingleShortcutMouseenter:U,handleSingleShortcutClick:k},h),r),ee),{handleDateClick:Q,handleDateInputBlur:M,handleDateInput:F,handleTimePickerChange:K,clearSelectedDateTime:$,virtualListContainer:be,virtualListContent:de,handleVirtualListScroll:pe,timePickerSize:r.timePickerSize,dateInputValue:p,datePickerSlots:A,handleQuickMonthClick:V,justifyColumnsScrollState:J,calendarValue:g,onUpdateCalendarValue:W})}const yZ=ge({name:"MonthPanel",props:Object.assign(Object.assign({},bL),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=xL(e,e.type),r=a=>{switch(a.type){case"year":return a.dateObject.year;case"month":return a.dateObject.month+1;case"quarter":return`Q${a.dateObject.quarter}`}},{useAsQuickJump:n}=e,o=(a,i,s)=>{const{mergedIsDateDisabled:l,handleDateClick:u,handleQuickMonthClick:c}=t;return S("div",{"data-n-date":!0,key:i,class:[`${s}-date-panel-month-calendar__picker-col-item`,{[`${s}-date-panel-month-calendar__picker-col-item--current`]:a.isCurrent,[`${s}-date-panel-month-calendar__picker-col-item--selected`]:a.selected,[`${s}-date-panel-month-calendar__picker-col-item--disabled`]:!n&&l(a.ts)}],onClick:()=>{n?c(a,d=>e.onUpdateValue(d,!1)):u(a)}},r(a))};return yr(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:r,actions:n,renderItem:o,type:a,onRender:i}=this;return i==null||i(),S("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},S("div",{class:`${e}-date-panel-month-calendar`},S(Gn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>S(Iv,{ref:"yearVlRef",items:this.yearArray,itemSize:fA,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:s,index:l})=>o(s,l,e)})}),a==="month"||a==="quarter"?S("div",{class:`${e}-date-panel-month-calendar__picker-col`},S(Gn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(a==="month"?this.monthArray:this.quarterArray).map((s,l)=>o(s,l,e)),S("div",{class:`${e}-date-panel-${a}-calendar__padding`})]})):null),this.datePickerSlots.footer?S("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,n!=null&&n.length||r?S("div",{class:`${e}-date-panel-actions`},S("div",{class:`${e}-date-panel-actions__prefix`},r&&Object.keys(r).map(s=>{const l=r[s];return Array.isArray(l)?null:S(nl,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(l)},onClick:()=>{this.handleSingleShortcutClick(l)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),S("div",{class:`${e}-date-panel-actions__suffix`},n!=null&&n.includes("clear")?S(sn,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,n!=null&&n.includes("now")?S(sn,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,n!=null&&n.includes("confirm")?S(sn,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,S(gd,{onFocus:this.handleFocusDetectorFocus}))}}),Pv=ge({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=q(null),t=q(null),r=q(!1);function n(a){var i;r.value&&!(!((i=e.value)===null||i===void 0)&&i.contains(gs(a)))&&(r.value=!1)}function o(){r.value=!r.value}return{show:r,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:n}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return S("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},S(fd,null,{default:()=>[S(Ad,null,{default:()=>S("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),S(vd,{show:this.show,teleportDisabled:!0},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?en(S(yZ,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[dl,e,void 0,{capture:!0}]]):null})})]}))}}),GRe=ge({name:"DateTimePanel",props:bL,setup(e){return xL(e,"datetime")},render(){var e,t,r,n;const{mergedClsPrefix:o,mergedTheme:a,shortcuts:i,timePickerProps:s,onRender:l,$slots:u}=this;return l==null||l(),S("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},S("div",{class:`${o}-date-panel-header`},S(ms,{value:this.dateInputValue,theme:a.peers.Input,themeOverrides:a.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),S(Qw,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(s)?void 0:s,{showIcon:!1,to:!1,theme:a.peers.TimePicker,themeOverrides:a.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),S("div",{class:`${o}-date-panel-calendar`},S("div",{class:`${o}-date-panel-month`},S("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},Kt(u["prev-year"],()=>[S(qc,null)])),S("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},Kt(u["prev-month"],()=>[S(Xc,null)])),S(Pv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),S("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},Kt(u["next-month"],()=>[S(Jc,null)])),S("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},Kt(u["next-year"],()=>[S(Zc,null)]))),S("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(c=>S("div",{key:c,class:`${o}-date-panel-weekdays__day`},c))),S("div",{class:`${o}-date-panel-dates`},this.dateArray.map((c,d)=>S("div",{"data-n-date":!0,key:d,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:c.isCurrentDate,[`${o}-date-panel-date--selected`]:c.selected,[`${o}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts)}],onClick:()=>this.handleDateClick(c)},S("div",{class:`${o}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?S("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?S("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?S("div",{class:`${o}-date-panel-actions`},S("div",{class:`${o}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)?null:S(nl,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),S("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?S(sn,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("now")?S(sn,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?S(sn,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,S(gd,{onFocus:this.handleFocusDetectorFocus}))}}),wL=Object.assign(Object.assign({},gZ),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function CL(e,t){var r,n;const{isDateDisabledRef:o,isStartHourDisabledRef:a,isEndHourDisabledRef:i,isStartMinuteDisabledRef:s,isEndMinuteDisabledRef:l,isStartSecondDisabledRef:u,isEndSecondDisabledRef:c,isStartDateInvalidRef:d,isEndDateInvalidRef:f,isStartTimeInvalidRef:A,isEndTimeInvalidRef:h,isStartValueInvalidRef:v,isEndValueInvalidRef:p,isRangeInvalidRef:g,localeRef:m,rangesRef:y,closeOnSelectRef:b,updateValueOnCloseRef:x,firstDayOfWeekRef:w,datePickerSlots:C}=Ke(WS),_={isDateDisabled:o,isStartHourDisabled:a,isEndHourDisabled:i,isStartMinuteDisabled:s,isEndMinuteDisabled:l,isStartSecondDisabled:u,isEndSecondDisabled:c,isStartDateInvalid:d,isEndDateInvalid:f,isStartTimeInvalid:A,isEndTimeInvalid:h,isStartValueInvalid:v,isEndValueInvalid:p,isRangeInvalid:g},B=mZ(e),T=q(null),E=q(null),I=q(null),R=q(null),D=q(null),F=q(null),M=q(null),$=q(null),{value:O}=e,Q=(r=e.defaultCalendarStartTime)!==null&&r!==void 0?r:Array.isArray(O)&&typeof O[0]=="number"?O[0]:Date.now(),V=q(Q),W=q((n=e.defaultCalendarEndTime)!==null&&n!==void 0?n:Array.isArray(O)&&typeof O[1]=="number"?O[1]:ft(Bo(Q,1)));ye(!0);const Z=q(Date.now()),te=q(!1),ae=q(0),re=L(()=>e.dateFormat||m.value.dateFormat),le=q(Array.isArray(O)?An(O[0],re.value,B.dateFnsOptions.value):""),se=q(Array.isArray(O)?An(O[1],re.value,B.dateFnsOptions.value):""),ce=L(()=>te.value?"end":"start"),be=L(()=>{var Be;return AD(V.value,e.value,Z.value,(Be=w.value)!==null&&Be!==void 0?Be:m.value.firstDayOfWeek)}),de=L(()=>{var Be;return AD(W.value,e.value,Z.value,(Be=w.value)!==null&&Be!==void 0?Be:m.value.firstDayOfWeek)}),pe=L(()=>be.value.slice(0,7).map(Be=>{const{ts:Ze}=Be;return An(Ze,m.value.dayFormat,B.dateFnsOptions.value)})),K=L(()=>An(V.value,m.value.monthFormat,B.dateFnsOptions.value)),U=L(()=>An(W.value,m.value.monthFormat,B.dateFnsOptions.value)),k=L(()=>An(V.value,m.value.yearFormat,B.dateFnsOptions.value)),J=L(()=>An(W.value,m.value.yearFormat,B.dateFnsOptions.value)),ee=L(()=>{const{value:Be}=e;return Array.isArray(Be)?Be[0]:null}),H=L(()=>{const{value:Be}=e;return Array.isArray(Be)?Be[1]:null}),Y=L(()=>{const{shortcuts:Be}=e;return Be||y.value}),oe=L(()=>pD(th(e.value,"start"),Z.value)),he=L(()=>pD(th(e.value,"end"),Z.value)),ne=L(()=>{const Be=th(e.value,"start");return vD(Be!=null?Be:Date.now(),Be,Z.value)}),Ae=L(()=>{const Be=th(e.value,"end");return vD(Be!=null?Be:Date.now(),Be,Z.value)}),X=L(()=>{const Be=th(e.value,"start");return hD(Be!=null?Be:Date.now(),Be,Z.value)}),ie=L(()=>{const Be=th(e.value,"end");return hD(Be!=null?Be:Date.now(),Be,Z.value)});gt(L(()=>e.value),Be=>{if(Be!==null&&Array.isArray(Be)){const[Ze,yt]=Be;le.value=An(Ze,re.value,B.dateFnsOptions.value),se.value=An(yt,re.value,B.dateFnsOptions.value),te.value||Qe(Be)}else le.value="",se.value=""});function fe(Be,Ze){(t==="daterange"||t==="datetimerange")&&(Bn(Be)!==Bn(Ze)||pn(Be)!==pn(Ze))&&B.disableTransitionOneTick()}gt(V,fe),gt(W,fe);function ye(Be){const Ze=Nl(V.value),yt=Nl(W.value);(e.bindCalendarMonths||Ze>=yt)&&(Be?W.value=ft(Bo(Ze,1)):V.value=ft(Bo(yt,-1)))}function Fe(){V.value=ft(Bo(V.value,12)),ye(!0)}function Ne(){V.value=ft(Bo(V.value,-12)),ye(!0)}function rt(){V.value=ft(Bo(V.value,1)),ye(!0)}function lt(){V.value=ft(Bo(V.value,-1)),ye(!0)}function mt(){W.value=ft(Bo(W.value,12)),ye(!1)}function Ge(){W.value=ft(Bo(W.value,-12)),ye(!1)}function it(){W.value=ft(Bo(W.value,1)),ye(!1)}function je(){W.value=ft(Bo(W.value,-1)),ye(!1)}function Ye(Be){V.value=Be,ye(!0)}function ue(Be){W.value=Be,ye(!1)}function Ee(Be){const Ze=o.value;if(!Ze)return!1;if(!Array.isArray(e.value)||ce.value==="start")return Ze(Be,"start",null);{const{value:yt}=ae;return Be<ae.value?Ze(Be,"start",[yt,yt]):Ze(Be,"end",[yt,yt])}}function Qe(Be){if(Be===null)return;const[Ze,yt]=Be;V.value=Ze,Nl(yt)<=Nl(Ze)?W.value=ft(Nl(Bo(Ze,1))):W.value=ft(Nl(yt))}function et(Be){if(!te.value)te.value=!0,ae.value=Be.ts,Se(Be.ts,Be.ts,"done");else{te.value=!1;const{value:Ze}=e;e.panel&&Array.isArray(Ze)?Se(Ze[0],Ze[1],"done"):b.value&&t==="daterange"&&(x.value?$e():xe())}}function tt(Be){if(te.value){if(Ee(Be.ts))return;Be.ts>=ae.value?Se(ae.value,Be.ts,"wipPreview"):Se(Be.ts,ae.value,"wipPreview")}}function xe(){g.value||(B.doConfirm(),$e())}function $e(){te.value=!1,e.active&&B.doClose()}function Xe(Be){typeof Be!="number"&&(Be=ft(Be)),e.value===null?B.doUpdateValue([Be,Be],e.panel):Array.isArray(e.value)&&B.doUpdateValue([Be,Math.max(e.value[1],Be)],e.panel)}function ht(Be){typeof Be!="number"&&(Be=ft(Be)),e.value===null?B.doUpdateValue([Be,Be],e.panel):Array.isArray(e.value)&&B.doUpdateValue([Math.min(e.value[0],Be),Be],e.panel)}function Se(Be,Ze,yt){if(typeof Be!="number"&&(Be=ft(Be)),yt!=="shortcutPreview"){let ar,Qr;if(t==="datetimerange"){const{defaultTime:_r}=e;Array.isArray(_r)?(ar=Lx(_r[0]),Qr=Lx(_r[1])):(ar=Lx(_r),Qr=ar)}ar&&(Be=ft(To(Be,ar))),Qr&&(Ze=ft(To(Ze,Qr)))}B.doUpdateValue([Be,Ze],e.panel&&yt==="done")}function He(Be){return ft(t==="datetimerange"?tL(Be):t==="monthrange"?Nl(Be):Lw(Be))}function me(Be){const Ze=ya(Be,re.value,new Date,B.dateFnsOptions.value);if(_i(Ze))if(e.value){if(Array.isArray(e.value)){const yt=To(e.value[0],{year:Bn(Ze),month:pn(Ze),date:os(Ze)});Xe(He(ft(yt)))}}else{const yt=To(new Date,{year:Bn(Ze),month:pn(Ze),date:os(Ze)});Xe(He(ft(yt)))}else le.value=Be}function ze(Be){const Ze=ya(Be,re.value,new Date,B.dateFnsOptions.value);if(_i(Ze)){if(e.value===null){const yt=To(new Date,{year:Bn(Ze),month:pn(Ze),date:os(Ze)});ht(He(ft(yt)))}else if(Array.isArray(e.value)){const yt=To(e.value[1],{year:Bn(Ze),month:pn(Ze),date:os(Ze)});ht(He(ft(yt)))}}else se.value=Be}function dt(){const Be=ya(le.value,re.value,new Date,B.dateFnsOptions.value),{value:Ze}=e;if(_i(Be)){if(Ze===null){const yt=To(new Date,{year:Bn(Be),month:pn(Be),date:os(Be)});Xe(He(ft(yt)))}else if(Array.isArray(Ze)){const yt=To(Ze[0],{year:Bn(Be),month:pn(Be),date:os(Be)});Xe(He(ft(yt)))}}else At()}function Rt(){const Be=ya(se.value,re.value,new Date,B.dateFnsOptions.value),{value:Ze}=e;if(_i(Be)){if(Ze===null){const yt=To(new Date,{year:Bn(Be),month:pn(Be),date:os(Be)});ht(He(ft(yt)))}else if(Array.isArray(Ze)){const yt=To(Ze[1],{year:Bn(Be),month:pn(Be),date:os(Be)});ht(He(ft(yt)))}}else At()}function At(Be){const{value:Ze}=e;if(Ze===null||!Array.isArray(Ze)){le.value="",se.value="";return}Be===void 0&&(Be=Ze),le.value=An(Be[0],re.value,B.dateFnsOptions.value),se.value=An(Be[1],re.value,B.dateFnsOptions.value)}function ve(Be){Be!==null&&Xe(Be)}function De(Be){Be!==null&&ht(Be)}function ot(Be){B.cachePendingValue();const Ze=B.getShortcutValue(Be);Array.isArray(Ze)&&Se(Ze[0],Ze[1],"shortcutPreview")}function Nt(Be){const Ze=B.getShortcutValue(Be);Array.isArray(Ze)&&(Se(Ze[0],Ze[1],"done"),B.clearPendingValue(),xe())}function Ce(Be,Ze){const yt=Be===void 0?e.value:Be;if(Be===void 0||Ze==="start"){if(M.value){const ar=Array.isArray(yt)?pn(yt[0]):pn(Date.now());M.value.scrollTo({debounce:!1,index:ar,elSize:fA})}if(D.value){const ar=(Array.isArray(yt)?Bn(yt[0]):Bn(Date.now()))-Hw;D.value.scrollTo({index:ar,debounce:!1})}}if(Be===void 0||Ze==="end"){if($.value){const ar=Array.isArray(yt)?pn(yt[1]):pn(Date.now());$.value.scrollTo({debounce:!1,index:ar,elSize:fA})}if(F.value){const ar=(Array.isArray(yt)?Bn(yt[1]):Bn(Date.now()))-Hw;F.value.scrollTo({index:ar,debounce:!1})}}}function Le(Be,Ze){const{value:yt}=e,ar=!Array.isArray(yt),Qr=Be.type==="year"&&t!=="yearrange"?ar?To(Be.ts,{month:pn(t==="quarterrange"?gm(new Date):new Date)}).valueOf():To(Be.ts,{month:pn(t==="quarterrange"?gm(yt[Ze==="start"?0:1]):yt[Ze==="start"?0:1])}).valueOf():Be.ts;if(ar){const Dr=He(Qr),bn=[Dr,Dr];B.doUpdateValue(bn,e.panel),Ce(bn,"start"),Ce(bn,"end"),B.disableTransitionOneTick();return}const _r=[yt[0],yt[1]];let Xi=!1;switch(Ze==="start"?(_r[0]=He(Qr),_r[0]>_r[1]&&(_r[1]=_r[0],Xi=!0)):(_r[1]=He(Qr),_r[0]>_r[1]&&(_r[0]=_r[1],Xi=!0)),B.doUpdateValue(_r,e.panel),t){case"monthrange":case"quarterrange":B.disableTransitionOneTick(),Xi?(Ce(_r,"start"),Ce(_r,"end")):Ce(_r,Ze);break;case"yearrange":B.disableTransitionOneTick(),Ce(_r,"start"),Ce(_r,"end")}}function ut(){var Be;(Be=I.value)===null||Be===void 0||Be.sync()}function vt(){var Be;(Be=R.value)===null||Be===void 0||Be.sync()}function xt(Be){var Ze,yt;return Be==="start"?(Ze=D.value)===null||Ze===void 0?void 0:Ze.listElRef:(yt=F.value)===null||yt===void 0?void 0:yt.listElRef}function Kr(Be){var Ze,yt;return Be==="start"?(Ze=D.value)===null||Ze===void 0?void 0:Ze.itemsElRef:(yt=F.value)===null||yt===void 0?void 0:yt.itemsElRef}const zr={startYearVlRef:D,endYearVlRef:F,startMonthScrollbarRef:M,endMonthScrollbarRef:$,startYearScrollbarRef:I,endYearScrollbarRef:R};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:T,endDatesElRef:E,handleDateClick:et,handleColItemClick:Le,handleDateMouseEnter:tt,handleConfirmClick:xe,startCalendarPrevYear:Ne,startCalendarPrevMonth:lt,startCalendarNextYear:Fe,startCalendarNextMonth:rt,endCalendarPrevYear:Ge,endCalendarPrevMonth:je,endCalendarNextMonth:it,endCalendarNextYear:mt,mergedIsDateDisabled:Ee,changeStartEndTime:Se,ranges:y,startCalendarMonth:K,startCalendarYear:k,endCalendarMonth:U,endCalendarYear:J,weekdays:pe,startDateArray:be,endDateArray:de,startYearArray:oe,startMonthArray:X,startQuarterArray:ne,endYearArray:he,endMonthArray:ie,endQuarterArray:Ae,isSelecting:te,handleRangeShortcutMouseenter:ot,handleRangeShortcutClick:Nt},B),_),zr),{startDateDisplayString:le,endDateInput:se,timePickerSize:B.timePickerSize,startTimeValue:ee,endTimeValue:H,datePickerSlots:C,shortcuts:Y,startCalendarDateTime:V,endCalendarDateTime:W,justifyColumnsScrollState:Ce,handleFocusDetectorFocus:B.handleFocusDetectorFocus,handleStartTimePickerChange:ve,handleEndTimePickerChange:De,handleStartDateInput:me,handleStartDateInputBlur:dt,handleEndDateInput:ze,handleEndDateInputBlur:Rt,handleStartYearVlScroll:ut,handleEndYearVlScroll:vt,virtualListContainer:xt,virtualListContent:Kr,onUpdateStartCalendarValue:Ye,onUpdateEndCalendarValue:ue})}const KRe=ge({name:"DateTimeRangePanel",props:wL,setup(e){return CL(e,"datetimerange")},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:o,shortcuts:a,timePickerProps:i,onRender:s,$slots:l}=this;return s==null||s(),S("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--datetimerange`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},S("div",{class:`${n}-date-panel-header`},S(ms,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${n}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),S(Qw,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(i)?i[0]:i,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),S(ms,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${n}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),S(Qw,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(i)?i[1]:i,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),S("div",{ref:"startDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--start`},S("div",{class:`${n}-date-panel-month`},S("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Kt(l["prev-year"],()=>[S(qc,null)])),S("div",{class:`${n}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Kt(l["prev-month"],()=>[S(Xc,null)])),S(Pv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:n,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),S("div",{class:`${n}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Kt(l["next-month"],()=>[S(Jc,null)])),S("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Kt(l["next-year"],()=>[S(Zc,null)]))),S("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>S("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),S("div",{class:`${n}-date-panel__divider`}),S("div",{class:`${n}-date-panel-dates`},this.startDateArray.map((u,c)=>{const d=this.mergedIsDateDisabled(u.ts);return S("div",{"data-n-date":!0,key:c,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--covered`]:u.inSpan,[`${n}-date-panel-date--start`]:u.startOfSpan,[`${n}-date-panel-date--end`]:u.endOfSpan,[`${n}-date-panel-date--disabled`]:d}],onClick:d?void 0:()=>this.handleDateClick(u),onMouseenter:d?void 0:()=>this.handleDateMouseEnter(u)},S("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?S("div",{class:`${n}-date-panel-date__sup`}):null)}))),S("div",{class:`${n}-date-panel__vertical-divider`}),S("div",{ref:"endDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--end`},S("div",{class:`${n}-date-panel-month`},S("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Kt(l["prev-year"],()=>[S(qc,null)])),S("div",{class:`${n}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Kt(l["prev-month"],()=>[S(Xc,null)])),S(Pv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:n,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),S("div",{class:`${n}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Kt(l["next-month"],()=>[S(Jc,null)])),S("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Kt(l["next-year"],()=>[S(Zc,null)]))),S("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>S("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),S("div",{class:`${n}-date-panel__divider`}),S("div",{class:`${n}-date-panel-dates`},this.endDateArray.map((u,c)=>{const d=this.mergedIsDateDisabled(u.ts);return S("div",{"data-n-date":!0,key:c,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--covered`]:u.inSpan,[`${n}-date-panel-date--start`]:u.startOfSpan,[`${n}-date-panel-date--end`]:u.endOfSpan,[`${n}-date-panel-date--disabled`]:d}],onClick:d?void 0:()=>this.handleDateClick(u),onMouseenter:d?void 0:()=>this.handleDateMouseEnter(u)},S("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?S("div",{class:`${n}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?S("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?S("div",{class:`${n}-date-panel-actions`},S("div",{class:`${n}-date-panel-actions__prefix`},a&&Object.keys(a).map(u=>{const c=a[u];return Array.isArray(c)||typeof c=="function"?S(nl,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u}):null})),S("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?S(sn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?S(sn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,S(gd,{onFocus:this.handleFocusDetectorFocus}))}}),jRe=ge({name:"DatePanel",props:bL,setup(e){return xL(e,"date")},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:o,shortcuts:a,onRender:i,$slots:s}=this;return i==null||i(),S("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--date`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},S("div",{class:`${n}-date-panel-calendar`},S("div",{class:`${n}-date-panel-month`},S("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.prevYear},Kt(s["prev-year"],()=>[S(qc,null)])),S("div",{class:`${n}-date-panel-month__prev`,onClick:this.prevMonth},Kt(s["prev-month"],()=>[S(Xc,null)])),S(Pv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:n,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),S("div",{class:`${n}-date-panel-month__next`,onClick:this.nextMonth},Kt(s["next-month"],()=>[S(Jc,null)])),S("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.nextYear},Kt(s["next-year"],()=>[S(Zc,null)]))),S("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(l=>S("div",{key:l,class:`${n}-date-panel-weekdays__day`},l))),S("div",{class:`${n}-date-panel-dates`},this.dateArray.map((l,u)=>S("div",{"data-n-date":!0,key:u,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--current`]:l.isCurrentDate,[`${n}-date-panel-date--selected`]:l.selected,[`${n}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>this.handleDateClick(l)},S("div",{class:`${n}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?S("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?S("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?S("div",{class:`${n}-date-panel-actions`},S("div",{class:`${n}-date-panel-actions__prefix`},a&&Object.keys(a).map(l=>{const u=a[l];return Array.isArray(u)?null:S(nl,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),S("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?S(sn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("now")?S(sn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,S(gd,{onFocus:this.handleFocusDetectorFocus}))}}),YRe=ge({name:"DateRangePanel",props:wL,setup(e){return CL(e,"daterange")},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:o,shortcuts:a,onRender:i,$slots:s}=this;return i==null||i(),S("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--daterange`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},S("div",{ref:"startDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--start`},S("div",{class:`${n}-date-panel-month`},S("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Kt(s["prev-year"],()=>[S(qc,null)])),S("div",{class:`${n}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Kt(s["prev-month"],()=>[S(Xc,null)])),S(Pv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:n,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),S("div",{class:`${n}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Kt(s["next-month"],()=>[S(Jc,null)])),S("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Kt(s["next-year"],()=>[S(Zc,null)]))),S("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(l=>S("div",{key:l,class:`${n}-date-panel-weekdays__day`},l))),S("div",{class:`${n}-date-panel__divider`}),S("div",{class:`${n}-date-panel-dates`},this.startDateArray.map((l,u)=>S("div",{"data-n-date":!0,key:u,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${n}-date-panel-date--current`]:l.isCurrentDate,[`${n}-date-panel-date--selected`]:l.selected,[`${n}-date-panel-date--covered`]:l.inSpan,[`${n}-date-panel-date--start`]:l.startOfSpan,[`${n}-date-panel-date--end`]:l.endOfSpan,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>this.handleDateClick(l),onMouseenter:()=>this.handleDateMouseEnter(l)},S("div",{class:`${n}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?S("div",{class:`${n}-date-panel-date__sup`}):null)))),S("div",{class:`${n}-date-panel__vertical-divider`}),S("div",{ref:"endDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--end`},S("div",{class:`${n}-date-panel-month`},S("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Kt(s["prev-year"],()=>[S(qc,null)])),S("div",{class:`${n}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Kt(s["prev-month"],()=>[S(Xc,null)])),S(Pv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:n,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),S("div",{class:`${n}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Kt(s["next-month"],()=>[S(Jc,null)])),S("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Kt(s["next-year"],()=>[S(Zc,null)]))),S("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(l=>S("div",{key:l,class:`${n}-date-panel-weekdays__day`},l))),S("div",{class:`${n}-date-panel__divider`}),S("div",{class:`${n}-date-panel-dates`},this.endDateArray.map((l,u)=>S("div",{"data-n-date":!0,key:u,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${n}-date-panel-date--current`]:l.isCurrentDate,[`${n}-date-panel-date--selected`]:l.selected,[`${n}-date-panel-date--covered`]:l.inSpan,[`${n}-date-panel-date--start`]:l.startOfSpan,[`${n}-date-panel-date--end`]:l.endOfSpan,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>this.handleDateClick(l),onMouseenter:()=>this.handleDateMouseEnter(l)},S("div",{class:`${n}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?S("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?S("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?S("div",{class:`${n}-date-panel-actions`},S("div",{class:`${n}-date-panel-actions__prefix`},a&&Object.keys(a).map(l=>{const u=a[l];return Array.isArray(u)||typeof u=="function"?S(nl,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l}):null})),S("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?S(sn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?S(sn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,S(gd,{onFocus:this.handleFocusDetectorFocus}))}}),XRe=ge({name:"MonthRangePanel",props:Object.assign(Object.assign({},wL),{type:{type:String,required:!0}}),setup(e){const t=CL(e,e.type),r=(n,o,a,i)=>{const{handleColItemClick:s}=t,l=!1;return S("div",{"data-n-date":!0,key:o,class:[`${a}-date-panel-month-calendar__picker-col-item`,{[`${a}-date-panel-month-calendar__picker-col-item--current`]:n.isCurrent,[`${a}-date-panel-month-calendar__picker-col-item--selected`]:n.selected,[`${a}-date-panel-month-calendar__picker-col-item--disabled`]:l}],onClick:()=>{s(n,i)}},n.type==="month"?n.dateObject.month+1:n.type==="quarter"?`Q${n.dateObject.quarter}`:n.dateObject.year)};return yr(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:o,shortcuts:a,type:i,renderItem:s,onRender:l}=this;return l==null||l(),S("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--daterange`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},S("div",{ref:"startDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--start`},S("div",{class:`${n}-date-panel-month-calendar`},S(Gn,{ref:"startYearScrollbarRef",class:`${n}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>S(Iv,{ref:"startYearVlRef",items:this.startYearArray,itemSize:fA,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:u,index:c})=>s(u,c,n,"start")})}),i==="monthrange"||i==="quarterrange"?S("div",{class:`${n}-date-panel-month-calendar__picker-col`},S(Gn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(i==="monthrange"?this.startMonthArray:this.startQuarterArray).map((u,c)=>s(u,c,n,"start")),i==="monthrange"&&S("div",{class:`${n}-date-panel-month-calendar__padding`})]})):null)),S("div",{class:`${n}-date-panel__vertical-divider`}),S("div",{ref:"endDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--end`},S("div",{class:`${n}-date-panel-month-calendar`},S(Gn,{ref:"endYearScrollbarRef",class:`${n}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>S(Iv,{ref:"endYearVlRef",items:this.endYearArray,itemSize:fA,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:u,index:c})=>s(u,c,n,"end")})}),i==="monthrange"||i==="quarterrange"?S("div",{class:`${n}-date-panel-month-calendar__picker-col`},S(Gn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(i==="monthrange"?this.endMonthArray:this.endQuarterArray).map((u,c)=>s(u,c,n,"end")),i==="monthrange"&&S("div",{class:`${n}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?S("div",{class:`${n}-date-panel-footer`},gy(this.datePickerSlots,"footer")):null,!((e=this.actions)===null||e===void 0)&&e.length||a?S("div",{class:`${n}-date-panel-actions`},S("div",{class:`${n}-date-panel-actions__prefix`},a&&Object.keys(a).map(u=>{const c=a[u];return Array.isArray(c)||typeof c=="function"?S(nl,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u}):null})),S("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?S(nl,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?S(nl,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,S(gd,{onFocus:this.handleFocusDetectorFocus}))}}),qRe=N([P("date-picker",`
  3099. position: relative;
  3100. z-index: auto;
  3101. `,[P("date-picker-icon",`
  3102. color: var(--n-icon-color-override);
  3103. transition: color .3s var(--n-bezier);
  3104. `),P("icon",`
  3105. color: var(--n-icon-color-override);
  3106. transition: color .3s var(--n-bezier);
  3107. `),j("disabled",[P("date-picker-icon",`
  3108. color: var(--n-icon-color-disabled-override);
  3109. `),P("icon",`
  3110. color: var(--n-icon-color-disabled-override);
  3111. `)])]),P("date-panel",`
  3112. width: fit-content;
  3113. outline: none;
  3114. margin: 4px 0;
  3115. display: grid;
  3116. grid-template-columns: 0fr;
  3117. border-radius: var(--n-panel-border-radius);
  3118. background-color: var(--n-panel-color);
  3119. color: var(--n-panel-text-color);
  3120. `,[Ia(),j("shadow",`
  3121. box-shadow: var(--n-panel-box-shadow);
  3122. `),P("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[j("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),P("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[G("picker-col",`
  3123. min-width: var(--n-scroll-item-width);
  3124. height: calc(var(--n-scroll-item-height) * 6);
  3125. user-select: none;
  3126. -webkit-user-select: none;
  3127. `,[N("&:first-child",`
  3128. min-width: calc(var(--n-scroll-item-width) + 4px);
  3129. `,[G("picker-col-item",[N("&::before","left: 4px;")])]),G("padding",`
  3130. height: calc(var(--n-scroll-item-height) * 5)
  3131. `)]),G("picker-col-item",`
  3132. z-index: 0;
  3133. cursor: pointer;
  3134. height: var(--n-scroll-item-height);
  3135. box-sizing: border-box;
  3136. padding-top: 4px;
  3137. display: flex;
  3138. align-items: center;
  3139. justify-content: center;
  3140. position: relative;
  3141. transition:
  3142. color .3s var(--n-bezier),
  3143. background-color .3s var(--n-bezier);
  3144. background: #0000;
  3145. color: var(--n-item-text-color);
  3146. `,[N("&::before",`
  3147. z-index: -1;
  3148. content: "";
  3149. position: absolute;
  3150. left: 0;
  3151. right: 4px;
  3152. top: 4px;
  3153. bottom: 0;
  3154. border-radius: var(--n-scroll-item-border-radius);
  3155. transition:
  3156. background-color .3s var(--n-bezier);
  3157. `),Wt("disabled",[N("&:hover::before",`
  3158. background-color: var(--n-item-color-hover);
  3159. `),j("selected",`
  3160. color: var(--n-item-color-active);
  3161. `,[N("&::before","background-color: var(--n-item-color-hover);")])]),j("disabled",`
  3162. color: var(--n-item-text-color-disabled);
  3163. cursor: not-allowed;
  3164. `,[j("selected",[N("&::before",`
  3165. background-color: var(--n-item-color-disabled);
  3166. `)])])])]),j("date",{gridTemplateAreas:`
  3167. "left-calendar"
  3168. "footer"
  3169. "action"
  3170. `}),j("daterange",{gridTemplateAreas:`
  3171. "left-calendar divider right-calendar"
  3172. "footer footer footer"
  3173. "action action action"
  3174. `}),j("datetime",{gridTemplateAreas:`
  3175. "header"
  3176. "left-calendar"
  3177. "footer"
  3178. "action"
  3179. `}),j("datetimerange",{gridTemplateAreas:`
  3180. "header header header"
  3181. "left-calendar divider right-calendar"
  3182. "footer footer footer"
  3183. "action action action"
  3184. `}),j("month",{gridTemplateAreas:`
  3185. "left-calendar"
  3186. "footer"
  3187. "action"
  3188. `}),P("date-panel-footer",{gridArea:"footer"}),P("date-panel-actions",{gridArea:"action"}),P("date-panel-header",{gridArea:"header"}),P("date-panel-header",`
  3189. box-sizing: border-box;
  3190. width: 100%;
  3191. align-items: center;
  3192. padding: var(--n-panel-header-padding);
  3193. display: flex;
  3194. justify-content: space-between;
  3195. border-bottom: 1px solid var(--n-panel-header-divider-color);
  3196. `,[N(">",[N("*:not(:last-child)",{marginRight:"10px"}),N("*",{flex:1,width:0}),P("time-picker",{zIndex:1})])]),P("date-panel-month",`
  3197. box-sizing: border-box;
  3198. display: grid;
  3199. grid-template-columns: var(--n-calendar-title-grid-template-columns);
  3200. align-items: center;
  3201. justify-items: center;
  3202. padding: var(--n-calendar-title-padding);
  3203. height: var(--n-calendar-title-height);
  3204. `,[G("prev, next, fast-prev, fast-next",`
  3205. line-height: 0;
  3206. cursor: pointer;
  3207. width: var(--n-arrow-size);
  3208. height: var(--n-arrow-size);
  3209. color: var(--n-arrow-color);
  3210. `),G("month-year",`
  3211. user-select: none;
  3212. -webkit-user-select: none;
  3213. flex-grow: 1;
  3214. position: relative;
  3215. `,[G("text",`
  3216. font-size: var(--n-calendar-title-font-size);
  3217. line-height: var(--n-calendar-title-font-size);
  3218. font-weight: var(--n-calendar-title-font-weight);
  3219. padding: 6px 8px;
  3220. text-align: center;
  3221. color: var(--n-calendar-title-text-color);
  3222. cursor: pointer;
  3223. transition: background-color .3s var(--n-bezier);
  3224. border-radius: var(--n-panel-border-radius);
  3225. `,[j("active",`
  3226. background-color: var(--n-calendar-title-color-hover);
  3227. `),N("&:hover",`
  3228. background-color: var(--n-calendar-title-color-hover);
  3229. `)])])]),P("date-panel-weekdays",`
  3230. display: grid;
  3231. margin: auto;
  3232. grid-template-columns: repeat(7, var(--n-item-cell-width));
  3233. grid-template-rows: repeat(1, var(--n-item-cell-height));
  3234. align-items: center;
  3235. justify-items: center;
  3236. margin-bottom: 4px;
  3237. border-bottom: 1px solid var(--n-calendar-days-divider-color);
  3238. `,[G("day",`
  3239. user-select: none;
  3240. -webkit-user-select: none;
  3241. line-height: 15px;
  3242. width: var(--n-item-size);
  3243. text-align: center;
  3244. font-size: var(--n-calendar-days-font-size);
  3245. color: var(--n-item-text-color);
  3246. `)]),P("date-panel-dates",`
  3247. margin: auto;
  3248. display: grid;
  3249. grid-template-columns: repeat(7, var(--n-item-cell-width));
  3250. grid-template-rows: repeat(6, var(--n-item-cell-height));
  3251. align-items: center;
  3252. justify-items: center;
  3253. flex-wrap: wrap;
  3254. `,[P("date-panel-date",`
  3255. user-select: none;
  3256. -webkit-user-select: none;
  3257. position: relative;
  3258. width: var(--n-item-size);
  3259. height: var(--n-item-size);
  3260. line-height: var(--n-item-size);
  3261. text-align: center;
  3262. font-size: var(--n-item-font-size);
  3263. border-radius: var(--n-item-border-radius);
  3264. z-index: 0;
  3265. cursor: pointer;
  3266. transition:
  3267. background-color .2s var(--n-bezier),
  3268. color .2s var(--n-bezier);
  3269. `,[G("trigger",`
  3270. position: absolute;
  3271. left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
  3272. top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
  3273. width: var(--n-item-cell-width);
  3274. height: var(--n-item-cell-height);
  3275. `),Wt("disabled",[Wt("selected",[N("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),j("current",[G("sup",`
  3276. position: absolute;
  3277. top: 2px;
  3278. right: 2px;
  3279. content: "";
  3280. height: 4px;
  3281. width: 4px;
  3282. border-radius: 2px;
  3283. background-color: var(--n-item-color-active);
  3284. transition:
  3285. background-color .2s var(--n-bezier);
  3286. `)]),N("&::after",`
  3287. content: "";
  3288. z-index: -1;
  3289. position: absolute;
  3290. left: 0;
  3291. right: 0;
  3292. top: 0;
  3293. bottom: 0;
  3294. border-radius: inherit;
  3295. transition: background-color .3s var(--n-bezier);
  3296. `),j("covered, start, end",[Wt("excluded",[N("&::before",`
  3297. content: "";
  3298. z-index: -2;
  3299. position: absolute;
  3300. left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
  3301. right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
  3302. top: 0;
  3303. bottom: 0;
  3304. background-color: var(--n-item-color-included);
  3305. `),N("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),N("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),j("selected",{color:"var(--n-item-text-color-active)"},[N("&::after",{backgroundColor:"var(--n-item-color-active)"}),j("start",[N("&::before",{left:"50%"})]),j("end",[N("&::before",{right:"50%"})]),G("sup",{backgroundColor:"var(--n-panel-color)"})]),j("excluded",{color:"var(--n-item-text-color-disabled)"},[j("selected",[N("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),j("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[j("covered",[N("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),j("selected",[N("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),N("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),G("vertical-divider",`
  3306. grid-area: divider;
  3307. height: 100%;
  3308. width: 1px;
  3309. background-color: var(--n-calendar-divider-color);
  3310. `),P("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),P("date-panel-actions",`
  3311. flex: 1;
  3312. padding: var(--n-panel-action-padding);
  3313. display: flex;
  3314. align-items: center;
  3315. justify-content: space-between;
  3316. border-top: 1px solid var(--n-panel-action-divider-color);
  3317. `,[G("prefix, suffix",`
  3318. display: flex;
  3319. margin-bottom: -8px;
  3320. `),G("suffix",`
  3321. align-self: flex-end;
  3322. `),G("prefix",`
  3323. flex-wrap: wrap;
  3324. `),P("button",`
  3325. margin-bottom: 8px;
  3326. `,[N("&:not(:last-child)",`
  3327. margin-right: 8px;
  3328. `)])])]),N("[data-n-date].transition-disabled",{transition:"none !important"},[N("&::before, &::after",{transition:"none !important"})])]),ZRe=Object.assign(Object.assign({},Me.props),{to:Un.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),JRe=ge({name:"DatePicker",props:ZRe,setup(e,{slots:t}){var r;const{localeRef:n,dateLocaleRef:o}=zi("DatePicker"),a=Da(e),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l}=a,{mergedComponentPropsRef:u,mergedClsPrefixRef:c,mergedBorderedRef:d,namespaceRef:f,inlineThemeDisabled:A}=nt(e),h=q(null),v=q(null),p=q(null),g=q(!1),m=Re(e,"show"),y=Ir(m,g),b=L(()=>({locale:o.value.locale})),x=L(()=>{const{format:xe}=e;if(xe)return xe;switch(e.type){case"date":case"daterange":return n.value.dateFormat;case"datetime":case"datetimerange":return n.value.dateTimeFormat;case"year":case"yearrange":return n.value.yearTypeFormat;case"month":case"monthrange":return n.value.monthTypeFormat;case"quarter":case"quarterrange":return n.value.quarterFormat}}),w=L(()=>{var xe;return(xe=e.valueFormat)!==null&&xe!==void 0?xe:x.value});function C(xe){if(xe===null)return null;const{value:$e}=w,{value:Xe}=b;return Array.isArray(xe)?[ya(xe[0],$e,new Date,Xe).getTime(),ya(xe[1],$e,new Date,Xe).getTime()]:ya(xe,$e,new Date,Xe).getTime()}const{defaultFormattedValue:_,defaultValue:B}=e,T=q((r=_!==void 0?C(_):B)!==null&&r!==void 0?r:null),E=L(()=>{const{formattedValue:xe}=e;return xe!==void 0?C(xe):e.value}),I=Ir(E,T),R=q(null);Sr(()=>{R.value=I.value});const D=q(""),F=q(""),M=q(""),$=Me("DatePicker","-date-picker",qRe,TIe,e,c),O=L(()=>{var xe,$e;return(($e=(xe=u==null?void 0:u.value)===null||xe===void 0?void 0:xe.DatePicker)===null||$e===void 0?void 0:$e.timePickerSize)||"small"}),Q=L(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=L(()=>{const{placeholder:xe}=e;if(xe===void 0){const{type:$e}=e;switch($e){case"date":return n.value.datePlaceholder;case"datetime":return n.value.datetimePlaceholder;case"month":return n.value.monthPlaceholder;case"year":return n.value.yearPlaceholder;case"quarter":return n.value.quarterPlaceholder;default:return""}}else return xe}),W=L(()=>e.startPlaceholder===void 0?e.type==="daterange"?n.value.startDatePlaceholder:e.type==="datetimerange"?n.value.startDatetimePlaceholder:e.type==="monthrange"?n.value.startMonthPlaceholder:"":e.startPlaceholder),Z=L(()=>e.endPlaceholder===void 0?e.type==="daterange"?n.value.endDatePlaceholder:e.type==="datetimerange"?n.value.endDatetimePlaceholder:e.type==="monthrange"?n.value.endMonthPlaceholder:"":e.endPlaceholder),te=L(()=>{const{actions:xe,type:$e,clearable:Xe}=e;if(xe===null)return[];if(xe!==void 0)return xe;const ht=Xe?["clear"]:[];switch($e){case"date":return ht.push("now"),ht;case"datetime":return ht.push("now","confirm"),ht;case"daterange":return ht.push("confirm"),ht;case"datetimerange":return ht.push("confirm"),ht;case"month":return ht.push("now","confirm"),ht;case"year":return ht.push("now"),ht;case"quarter":return ht.push("now","confirm"),ht;case"monthrange":case"yearrange":case"quarterrange":return ht.push("confirm"),ht;default:{ei("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function ae(xe){if(xe===null)return null;if(Array.isArray(xe)){const{value:$e}=w,{value:Xe}=b;return[An(xe[0],$e,Xe),An(xe[1],$e,b.value)]}else return An(xe,w.value,b.value)}function re(xe){R.value=xe}function le(xe,$e){const{"onUpdate:formattedValue":Xe,onUpdateFormattedValue:ht}=e;Xe&&Te(Xe,xe,$e),ht&&Te(ht,xe,$e)}function se(xe,$e){const{"onUpdate:value":Xe,onUpdateValue:ht,onChange:Se}=e,{nTriggerFormChange:He,nTriggerFormInput:me}=a,ze=ae(xe);$e.doConfirm&&be(xe,ze),ht&&Te(ht,xe,ze),Xe&&Te(Xe,xe,ze),Se&&Te(Se,xe,ze),T.value=xe,le(ze,xe),He(),me()}function ce(){const{onClear:xe}=e;xe==null||xe()}function be(xe,$e){const{onConfirm:Xe}=e;Xe&&Xe(xe,$e)}function de(xe){const{onFocus:$e}=e,{nTriggerFormFocus:Xe}=a;$e&&Te($e,xe),Xe()}function pe(xe){const{onBlur:$e}=e,{nTriggerFormBlur:Xe}=a;$e&&Te($e,xe),Xe()}function K(xe){const{"onUpdate:show":$e,onUpdateShow:Xe}=e;$e&&Te($e,xe),Xe&&Te(Xe,xe),g.value=xe}function U(xe){xe.key==="Escape"&&y.value&&(fm(xe),it({returnFocus:!0}))}function k(xe){xe.key==="Escape"&&y.value&&fm(xe)}function J(){var xe;K(!1),(xe=p.value)===null||xe===void 0||xe.deactivate(),ce()}function ee(){var xe;(xe=p.value)===null||xe===void 0||xe.deactivate(),ce()}function H(){it({returnFocus:!0})}function Y(xe){var $e;y.value&&!(!(($e=v.value)===null||$e===void 0)&&$e.contains(gs(xe)))&&it({returnFocus:!1})}function oe(xe){it({returnFocus:!0,disableUpdateOnClose:xe})}function he(xe,$e){$e?se(xe,{doConfirm:!1}):re(xe)}function ne(){const xe=R.value;se(Array.isArray(xe)?[xe[0],xe[1]]:xe,{doConfirm:!0})}function Ae(){const{value:xe}=R;Q.value?(Array.isArray(xe)||xe===null)&&ie(xe):Array.isArray(xe)||X(xe)}function X(xe){xe===null?D.value="":D.value=An(xe,x.value,b.value)}function ie(xe){if(xe===null)F.value="",M.value="";else{const $e=b.value;F.value=An(xe[0],x.value,$e),M.value=An(xe[1],x.value,$e)}}function fe(){y.value||Ge()}function ye(xe){var $e;!(($e=h.value)===null||$e===void 0)&&$e.$el.contains(xe.relatedTarget)||(pe(xe),Ae(),it({returnFocus:!1}))}function Fe(){s.value||(Ae(),it({returnFocus:!1}))}function Ne(xe){if(xe===""){se(null,{doConfirm:!1}),R.value=null,D.value="";return}const $e=ya(xe,x.value,new Date,b.value);_i($e)?(se(ft($e),{doConfirm:!1}),Ae()):D.value=xe}function rt(xe){if(xe[0]===""&&xe[1]===""){se(null,{doConfirm:!1}),R.value=null,F.value="",M.value="";return}const[$e,Xe]=xe,ht=ya($e,x.value,new Date,b.value),Se=ya(Xe,x.value,new Date,b.value);_i(ht)&&_i(Se)?(se([ft(ht),ft(Se)],{doConfirm:!1}),Ae()):[F.value,M.value]=xe}function lt(xe){s.value||Ja(xe,"clear")||y.value||Ge()}function mt(xe){s.value||de(xe)}function Ge(){s.value||y.value||K(!0)}function it({returnFocus:xe,disableUpdateOnClose:$e}){var Xe;y.value&&(K(!1),e.type!=="date"&&e.updateValueOnClose&&!$e&&ne(),xe&&((Xe=p.value)===null||Xe===void 0||Xe.focus()))}gt(R,()=>{Ae()}),Ae(),gt(y,xe=>{xe||(R.value=I.value)});const je=RIe(e,R),Ye=DIe(e,R);_t(WS,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:c,mergedThemeRef:$,timePickerSizeRef:O,localeRef:n,dateLocaleRef:o,firstDayOfWeekRef:Re(e,"firstDayOfWeek"),isDateDisabledRef:Re(e,"isDateDisabled"),rangesRef:Re(e,"ranges"),timePickerPropsRef:Re(e,"timePickerProps"),closeOnSelectRef:Re(e,"closeOnSelect"),updateValueOnCloseRef:Re(e,"updateValueOnClose")},je),Ye),{datePickerSlots:t}));const ue={focus:()=>{var xe;(xe=p.value)===null||xe===void 0||xe.focus()},blur:()=>{var xe;(xe=p.value)===null||xe===void 0||xe.blur()}},Ee=L(()=>{const{common:{cubicBezierEaseInOut:xe},self:{iconColor:$e,iconColorDisabled:Xe}}=$.value;return{"--n-bezier":xe,"--n-icon-color-override":$e,"--n-icon-color-disabled-override":Xe}}),Qe=A?Et("date-picker-trigger",void 0,Ee,e):void 0,et=L(()=>{const{type:xe}=e,{common:{cubicBezierEaseInOut:$e},self:{calendarTitleFontSize:Xe,calendarDaysFontSize:ht,itemFontSize:Se,itemTextColor:He,itemColorDisabled:me,itemColorIncluded:ze,itemColorHover:dt,itemColorActive:Rt,itemBorderRadius:At,itemTextColorDisabled:ve,itemTextColorActive:De,panelColor:ot,panelTextColor:Nt,arrowColor:Ce,calendarTitleTextColor:Le,panelActionDividerColor:ut,panelHeaderDividerColor:vt,calendarDaysDividerColor:xt,panelBoxShadow:Kr,panelBorderRadius:zr,calendarTitleFontWeight:Be,panelExtraFooterPadding:Ze,panelActionPadding:yt,itemSize:ar,itemCellWidth:Qr,itemCellHeight:_r,scrollItemWidth:Xi,scrollItemHeight:Dr,calendarTitlePadding:bn,calendarTitleHeight:Rl,calendarDaysHeight:Mu,calendarDaysTextColor:Pu,arrowSize:Fu,panelHeaderPadding:Bd,calendarDividerColor:MB,calendarTitleGridTempateColumns:PB,iconColor:FB,iconColorDisabled:kB,scrollItemBorderRadius:LB,calendarTitleColorHover:OB,[_e("calendarLeftPadding",xe)]:$B,[_e("calendarRightPadding",xe)]:UB}}=$.value;return{"--n-bezier":$e,"--n-panel-border-radius":zr,"--n-panel-color":ot,"--n-panel-box-shadow":Kr,"--n-panel-text-color":Nt,"--n-panel-header-padding":Bd,"--n-panel-header-divider-color":vt,"--n-calendar-left-padding":$B,"--n-calendar-right-padding":UB,"--n-calendar-title-color-hover":OB,"--n-calendar-title-height":Rl,"--n-calendar-title-padding":bn,"--n-calendar-title-font-size":Xe,"--n-calendar-title-font-weight":Be,"--n-calendar-title-text-color":Le,"--n-calendar-title-grid-template-columns":PB,"--n-calendar-days-height":Mu,"--n-calendar-days-divider-color":xt,"--n-calendar-days-font-size":ht,"--n-calendar-days-text-color":Pu,"--n-calendar-divider-color":MB,"--n-panel-action-padding":yt,"--n-panel-extra-footer-padding":Ze,"--n-panel-action-divider-color":ut,"--n-item-font-size":Se,"--n-item-border-radius":At,"--n-item-size":ar,"--n-item-cell-width":Qr,"--n-item-cell-height":_r,"--n-item-text-color":He,"--n-item-color-included":ze,"--n-item-color-disabled":me,"--n-item-color-hover":dt,"--n-item-color-active":Rt,"--n-item-text-color-disabled":ve,"--n-item-text-color-active":De,"--n-scroll-item-width":Xi,"--n-scroll-item-height":Dr,"--n-scroll-item-border-radius":LB,"--n-arrow-size":Fu,"--n-arrow-color":Ce,"--n-icon-color":FB,"--n-icon-color-disabled":kB}}),tt=A?Et("date-picker",L(()=>e.type),et,e):void 0;return Object.assign(Object.assign({},ue),{mergedStatus:l,mergedClsPrefix:c,mergedBordered:d,namespace:f,uncontrolledValue:T,pendingValue:R,panelInstRef:h,triggerElRef:v,inputInstRef:p,isMounted:oi(),displayTime:D,displayStartTime:F,displayEndTime:M,mergedShow:y,adjustedTo:Un(e),isRange:Q,localizedStartPlaceholder:W,localizedEndPlaceholder:Z,mergedSize:i,mergedDisabled:s,localizedPlacehoder:V,isValueInvalid:je.isValueInvalidRef,isStartValueInvalid:Ye.isStartValueInvalidRef,isEndValueInvalid:Ye.isEndValueInvalidRef,handleInputKeydown:k,handleClickOutside:Y,handleKeydown:U,handleClear:J,handlePanelClear:ee,handleTriggerClick:lt,handleInputActivate:fe,handleInputDeactivate:Fe,handleInputFocus:mt,handleInputBlur:ye,handlePanelTabOut:H,handlePanelClose:oe,handleRangeUpdateValue:rt,handleSingleUpdateValue:Ne,handlePanelUpdateValue:he,handlePanelConfirm:ne,mergedTheme:$,actions:te,triggerCssVars:A?void 0:Ee,triggerThemeClass:Qe==null?void 0:Qe.themeClass,triggerOnRender:Qe==null?void 0:Qe.onRender,cssVars:A?void 0:et,themeClass:tt==null?void 0:tt.themeClass,onRender:tt==null?void 0:tt.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:r,$slots:n}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},a=()=>{const{type:s}=this;return s==="datetime"?S(GRe,Object.assign({},o),n):s==="daterange"?S(YRe,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),n):s==="datetimerange"?S(KRe,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),n):s==="month"||s==="year"||s==="quarter"?S(yZ,Object.assign({},o,{type:s,key:s})):s==="monthrange"||s==="yearrange"||s==="quarterrange"?S(XRe,Object.assign({},o,{type:s})):S(jRe,Object.assign({},o),n)};if(this.panel)return a();t==null||t();const i={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return S("div",{ref:"triggerElRef",class:[`${r}-date-picker`,this.mergedDisabled&&`${r}-date-picker--disabled`,this.isRange&&`${r}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},S(fd,null,{default:()=>[S(Ad,null,{default:()=>this.isRange?S(ms,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},i),{separator:()=>this.separator===void 0?Kt(n.separator,()=>[S(zt,{clsPrefix:r,class:`${r}-date-picker-icon`},{default:()=>S($we,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>Kt(n["date-icon"],()=>[S(zt,{clsPrefix:r,class:`${r}-date-picker-icon`},{default:()=>S(aU,null)})])}):S(ms,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},i),{[e?"clear-icon-placeholder":"suffix"]:()=>S(zt,{clsPrefix:r,class:`${r}-date-picker-icon`},{default:()=>Kt(n["date-icon"],()=>[S(aU,null)])})})}),S(vd,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Un.tdkey,placement:this.placement},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?en(a(),[[dl,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),eDe={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},bZ=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:n,cardColor:o,modalColor:a,popoverColor:i,dividerColor:s,borderRadius:l,fontWeightStrong:u,lineHeight:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:A}=e;return Object.assign(Object.assign({},eDe),{lineHeight:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:A,titleTextColor:n,thColor:Dt(o,t),thColorModal:Dt(a,t),thColorPopover:Dt(i,t),thTextColor:n,thFontWeight:u,tdTextColor:r,tdColor:o,tdColorModal:a,tdColorPopover:i,borderColor:Dt(o,s),borderColorModal:Dt(a,s),borderColorPopover:Dt(i,s),borderRadius:l})},tDe={name:"Descriptions",common:Lt,self:bZ},rDe=tDe,nDe={name:"Descriptions",common:ct,self:bZ},oDe=nDe,xZ="DESCRIPTION_ITEM_FLAG";function aDe(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[xZ]:!1}const iDe=N([P("descriptions",{fontSize:"var(--n-font-size)"},[P("descriptions-separator",`
  3329. display: inline-block;
  3330. margin: 0 8px 0 2px;
  3331. `),P("descriptions-table-wrapper",[P("descriptions-table",[P("descriptions-table-row",[P("descriptions-table-header",{padding:"var(--n-th-padding)"}),P("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),Wt("bordered",[P("descriptions-table-wrapper",[P("descriptions-table",[P("descriptions-table-row",[N("&:last-child",[P("descriptions-table-content",{paddingBottom:0})])])])])]),j("left-label-placement",[P("descriptions-table-content",[N("> *",{verticalAlign:"top"})])]),j("left-label-align",[N("th",{textAlign:"left"})]),j("center-label-align",[N("th",{textAlign:"center"})]),j("right-label-align",[N("th",{textAlign:"right"})]),j("bordered",[P("descriptions-table-wrapper",`
  3332. border-radius: var(--n-border-radius);
  3333. overflow: hidden;
  3334. background: var(--n-merged-td-color);
  3335. border: 1px solid var(--n-merged-border-color);
  3336. `,[P("descriptions-table",[P("descriptions-table-row",[N("&:not(:last-child)",[P("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),P("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),P("descriptions-table-header",`
  3337. font-weight: 400;
  3338. background-clip: padding-box;
  3339. background-color: var(--n-merged-th-color);
  3340. `,[N("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),P("descriptions-table-content",[N("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),P("descriptions-header",`
  3341. font-weight: var(--n-th-font-weight);
  3342. font-size: 18px;
  3343. transition: color .3s var(--n-bezier);
  3344. line-height: var(--n-line-height);
  3345. margin-bottom: 16px;
  3346. color: var(--n-title-text-color);
  3347. `),P("descriptions-table-wrapper",`
  3348. transition:
  3349. background-color .3s var(--n-bezier),
  3350. border-color .3s var(--n-bezier);
  3351. `,[P("descriptions-table",`
  3352. width: 100%;
  3353. border-collapse: separate;
  3354. border-spacing: 0;
  3355. box-sizing: border-box;
  3356. `,[P("descriptions-table-row",`
  3357. box-sizing: border-box;
  3358. transition: border-color .3s var(--n-bezier);
  3359. `,[P("descriptions-table-header",`
  3360. font-weight: var(--n-th-font-weight);
  3361. line-height: var(--n-line-height);
  3362. display: table-cell;
  3363. box-sizing: border-box;
  3364. color: var(--n-th-text-color);
  3365. transition:
  3366. color .3s var(--n-bezier),
  3367. background-color .3s var(--n-bezier),
  3368. border-color .3s var(--n-bezier);
  3369. `),P("descriptions-table-content",`
  3370. vertical-align: top;
  3371. line-height: var(--n-line-height);
  3372. display: table-cell;
  3373. box-sizing: border-box;
  3374. color: var(--n-td-text-color);
  3375. transition:
  3376. color .3s var(--n-bezier),
  3377. background-color .3s var(--n-bezier),
  3378. border-color .3s var(--n-bezier);
  3379. `,[G("content",`
  3380. transition: color .3s var(--n-bezier);
  3381. display: inline-block;
  3382. color: var(--n-td-text-color);
  3383. `)]),G("label",`
  3384. font-weight: var(--n-th-font-weight);
  3385. transition: color .3s var(--n-bezier);
  3386. display: inline-block;
  3387. margin-right: 14px;
  3388. color: var(--n-th-text-color);
  3389. `)])])])]),P("descriptions-table-wrapper",`
  3390. --n-merged-th-color: var(--n-th-color);
  3391. --n-merged-td-color: var(--n-td-color);
  3392. --n-merged-border-color: var(--n-border-color);
  3393. `),_u(P("descriptions-table-wrapper",`
  3394. --n-merged-th-color: var(--n-th-color-modal);
  3395. --n-merged-td-color: var(--n-td-color-modal);
  3396. --n-merged-border-color: var(--n-border-color-modal);
  3397. `)),dd(P("descriptions-table-wrapper",`
  3398. --n-merged-th-color: var(--n-th-color-popover);
  3399. --n-merged-td-color: var(--n-td-color-popover);
  3400. --n-merged-border-color: var(--n-border-color-popover);
  3401. `))]),sDe=Object.assign(Object.assign({},Me.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),lDe=ge({name:"Descriptions",props:sDe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Descriptions","-descriptions",iDe,rDe,e,t),o=L(()=>{const{size:i,bordered:s}=e,{common:{cubicBezierEaseInOut:l},self:{titleTextColor:u,thColor:c,thColorModal:d,thColorPopover:f,thTextColor:A,thFontWeight:h,tdTextColor:v,tdColor:p,tdColorModal:g,tdColorPopover:m,borderColor:y,borderColorModal:b,borderColorPopover:x,borderRadius:w,lineHeight:C,[_e("fontSize",i)]:_,[_e(s?"thPaddingBordered":"thPadding",i)]:B,[_e(s?"tdPaddingBordered":"tdPadding",i)]:T}}=n.value;return{"--n-title-text-color":u,"--n-th-padding":B,"--n-td-padding":T,"--n-font-size":_,"--n-bezier":l,"--n-th-font-weight":h,"--n-line-height":C,"--n-th-text-color":A,"--n-td-text-color":v,"--n-th-color":c,"--n-th-color-modal":d,"--n-th-color-popover":f,"--n-td-color":p,"--n-td-color-modal":g,"--n-td-color-popover":m,"--n-border-radius":w,"--n-border-color":y,"--n-border-color-modal":b,"--n-border-color-popover":x}}),a=r?Et("descriptions",L(()=>{let i="";const{size:s,bordered:l}=e;return l&&(i+="a"),i+=s[0],i}),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender,compitableColumn:Kc(e,["columns","column"]),inlineThemeDisabled:r}},render(){const e=this.$slots.default,t=e?Ii(e()):[];t.length;const{compitableColumn:r,labelPlacement:n,labelAlign:o,size:a,bordered:i,title:s,cssVars:l,mergedClsPrefix:u,separator:c,onRender:d}=this;d==null||d();const f=t.filter(p=>aDe(p)),A={span:0,row:[],secondRow:[],rows:[]},v=f.reduce((p,g,m)=>{const y=g.props||{},b=f.length-1===m,x=["label"in y?y.label:z3(g,"label")],w=[z3(g)],C=y.span||1,_=p.span;p.span+=C;const B=y.labelStyle||y["label-style"]||this.labelStyle,T=y.contentStyle||y["content-style"]||this.contentStyle;if(n==="left")i?p.row.push(S("th",{class:`${u}-descriptions-table-header`,colspan:1,style:B},x),S("td",{class:`${u}-descriptions-table-content`,colspan:b?(r-_)*2+1:C*2-1,style:T},w)):p.row.push(S("td",{class:`${u}-descriptions-table-content`,colspan:b?(r-_)*2:C*2},S("span",{class:`${u}-descriptions-table-content__label`,style:B},[...x,c&&S("span",{class:`${u}-descriptions-separator`},c)]),S("span",{class:`${u}-descriptions-table-content__content`,style:T},w)));else{const E=b?(r-_)*2:C*2;p.row.push(S("th",{class:`${u}-descriptions-table-header`,colspan:E,style:B},x)),p.secondRow.push(S("td",{class:`${u}-descriptions-table-content`,colspan:E,style:T},w))}return(p.span>=r||b)&&(p.span=0,p.row.length&&(p.rows.push(p.row),p.row=[]),n!=="left"&&p.secondRow.length&&(p.rows.push(p.secondRow),p.secondRow=[])),p},A).rows.map(p=>S("tr",{class:`${u}-descriptions-table-row`},p));return S("div",{style:l,class:[`${u}-descriptions`,this.themeClass,`${u}-descriptions--${n}-label-placement`,`${u}-descriptions--${o}-label-align`,`${u}-descriptions--${a}-size`,i&&`${u}-descriptions--bordered`]},s||this.$slots.header?S("div",{class:`${u}-descriptions-header`},s||my(this,"header")):null,S("div",{class:`${u}-descriptions-table-wrapper`},S("table",{class:`${u}-descriptions-table`},S("tbody",null,v))))}}),uDe={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},cDe=ge({name:"DescriptionsItem",[xZ]:!0,props:uDe,render(){return null}}),dDe={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},wZ=e=>{const{textColor1:t,textColor2:r,modalColor:n,closeIconColor:o,closeIconColorHover:a,closeIconColorPressed:i,closeColorHover:s,closeColorPressed:l,infoColor:u,successColor:c,warningColor:d,errorColor:f,primaryColor:A,dividerColor:h,borderRadius:v,fontWeightStrong:p,lineHeight:g,fontSize:m}=e;return Object.assign(Object.assign({},dDe),{fontSize:m,lineHeight:g,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:o,closeIconColorHover:a,closeIconColorPressed:i,closeBorderRadius:v,iconColor:A,iconColorInfo:u,iconColorSuccess:c,iconColorWarning:d,iconColorError:f,borderRadius:v,titleFontWeight:p})},fDe={name:"Dialog",common:Lt,peers:{Button:md},self:wZ},CZ=fDe,ADe={name:"Dialog",common:ct,peers:{Button:Fa},self:wZ},SZ=ADe,GS={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},_Z=cl(GS),hDe=N([P("dialog",`
  3402. word-break: break-word;
  3403. line-height: var(--n-line-height);
  3404. position: relative;
  3405. background: var(--n-color);
  3406. color: var(--n-text-color);
  3407. box-sizing: border-box;
  3408. margin: auto;
  3409. border-radius: var(--n-border-radius);
  3410. padding: var(--n-padding);
  3411. transition:
  3412. border-color .3s var(--n-bezier),
  3413. background-color .3s var(--n-bezier),
  3414. color .3s var(--n-bezier);
  3415. `,[G("icon",{color:"var(--n-icon-color)"}),j("bordered",{border:"var(--n-border)"}),j("icon-top",[G("close",{margin:"var(--n-close-margin)"}),G("icon",{margin:"var(--n-icon-margin)"}),G("content",{textAlign:"center"}),G("title",{justifyContent:"center"}),G("action",{justifyContent:"center"})]),j("icon-left",[G("icon",{margin:"var(--n-icon-margin)"}),j("closable",[G("title",`
  3416. padding-right: calc(var(--n-close-size) + 6px);
  3417. `)])]),G("close",`
  3418. position: absolute;
  3419. right: 0;
  3420. top: 0;
  3421. margin: var(--n-close-margin);
  3422. transition:
  3423. background-color .3s var(--n-bezier),
  3424. color .3s var(--n-bezier);
  3425. z-index: 1;
  3426. `),G("content",`
  3427. font-size: var(--n-font-size);
  3428. margin: var(--n-content-margin);
  3429. position: relative;
  3430. word-break: break-word;
  3431. `,[j("last","margin-bottom: 0;")]),G("action",`
  3432. display: flex;
  3433. justify-content: flex-end;
  3434. `,[N("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),G("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),G("title",`
  3435. transition: color .3s var(--n-bezier);
  3436. display: flex;
  3437. align-items: center;
  3438. font-size: var(--n-title-font-size);
  3439. font-weight: var(--n-title-font-weight);
  3440. color: var(--n-title-text-color);
  3441. `),P("dialog-icon-container",{display:"flex",justifyContent:"center"})]),_u(P("dialog",`
  3442. width: 446px;
  3443. max-width: calc(100vw - 32px);
  3444. `)),P("dialog",[Vj(`
  3445. width: 446px;
  3446. max-width: calc(100vw - 32px);
  3447. `)])]),vDe={default:()=>S(ed,null),info:()=>S(ed,null),success:()=>S(IA,null),warning:()=>S(RA,null),error:()=>S(EA,null)},BZ=ge({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Me.props),GS),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n}=nt(e),o=L(()=>{var d,f;const{iconPlacement:A}=e;return A||((f=(d=t==null?void 0:t.value)===null||d===void 0?void 0:d.Dialog)===null||f===void 0?void 0:f.iconPlacement)||"left"});function a(d){const{onPositiveClick:f}=e;f&&f(d)}function i(d){const{onNegativeClick:f}=e;f&&f(d)}function s(){const{onClose:d}=e;d&&d()}const l=Me("Dialog","-dialog",hDe,CZ,e,r),u=L(()=>{const{type:d}=e,f=o.value,{common:{cubicBezierEaseInOut:A},self:{fontSize:h,lineHeight:v,border:p,titleTextColor:g,textColor:m,color:y,closeBorderRadius:b,closeColorHover:x,closeColorPressed:w,closeIconColor:C,closeIconColorHover:_,closeIconColorPressed:B,closeIconSize:T,borderRadius:E,titleFontWeight:I,titleFontSize:R,padding:D,iconSize:F,actionSpace:M,contentMargin:$,closeSize:O,[f==="top"?"iconMarginIconTop":"iconMargin"]:Q,[f==="top"?"closeMarginIconTop":"closeMargin"]:V,[_e("iconColor",d)]:W}}=l.value;return{"--n-font-size":h,"--n-icon-color":W,"--n-bezier":A,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":F,"--n-close-size":O,"--n-close-icon-size":T,"--n-close-border-radius":b,"--n-close-color-hover":x,"--n-close-color-pressed":w,"--n-close-icon-color":C,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":B,"--n-color":y,"--n-text-color":m,"--n-border-radius":E,"--n-padding":D,"--n-line-height":v,"--n-border":p,"--n-content-margin":$,"--n-title-font-size":R,"--n-title-font-weight":I,"--n-title-text-color":g,"--n-action-space":M}}),c=n?Et("dialog",L(()=>`${e.type[0]}${o.value[0]}`),u,e):void 0;return{mergedClsPrefix:r,mergedIconPlacement:o,mergedTheme:l,handlePositiveClick:a,handleNegativeClick:i,handleCloseClick:s,cssVars:n?void 0:u,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:r,cssVars:n,closable:o,showIcon:a,title:i,content:s,action:l,negativeText:u,positiveText:c,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:A,handleNegativeClick:h,mergedTheme:v,loading:p,type:g,mergedClsPrefix:m}=this;(e=this.onRender)===null||e===void 0||e.call(this);const y=a?S(zt,{clsPrefix:m,class:`${m}-dialog__icon`},{default:()=>Ar(this.$slots.icon,x=>x||(this.icon?Nr(this.icon):vDe[this.type]()))}):null,b=Ar(this.$slots.action,x=>x||c||u||l?S("div",{class:`${m}-dialog__action`},x||(l?[Nr(l)]:[this.negativeText&&S(sn,Object.assign({theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,ghost:!0,size:"small",onClick:h},f),{default:()=>Nr(this.negativeText)}),this.positiveText&&S(sn,Object.assign({theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:p,loading:p,onClick:A},d),{default:()=>Nr(this.positiveText)})])):null);return S("div",{class:[`${m}-dialog`,this.themeClass,this.closable&&`${m}-dialog--closable`,`${m}-dialog--icon-${r}`,t&&`${m}-dialog--bordered`],style:n,role:"dialog"},o?S(pd,{clsPrefix:m,class:`${m}-dialog__close`,onClick:this.handleCloseClick}):null,a&&r==="top"?S("div",{class:`${m}-dialog-icon-container`},y):null,S("div",{class:`${m}-dialog__title`},a&&r==="left"?y:null,Kt(this.$slots.header,()=>[Nr(i)])),S("div",{class:[`${m}-dialog__content`,b?"":`${m}-dialog__content--last`]},Kt(this.$slots.default,()=>[Nr(s)])),b)}}),TZ="n-dialog-provider",EZ="n-dialog-api",pDe="n-dialog-reactive-list",IZ=e=>{const{modalColor:t,textColor2:r,boxShadow3:n}=e;return{color:t,textColor:r,boxShadow:n}},gDe={name:"Modal",common:Lt,peers:{Scrollbar:xl,Dialog:CZ,Card:fq},self:IZ},mDe=gDe,yDe={name:"Modal",common:ct,peers:{Scrollbar:Pa,Dialog:SZ,Card:Aq},self:IZ},bDe=yDe,SL=Object.assign(Object.assign({},oL),GS),xDe=cl(SL),wDe=ge({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},SL),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=q(null),r=q(null),n=q(e.show),o=q(null),a=q(null);gt(Re(e,"show"),p=>{p&&(n.value=!0)}),hY(L(()=>e.blockScroll&&n.value));const i=Ke(Zj);function s(){if(i.transformOriginRef.value==="center")return"";const{value:p}=o,{value:g}=a;if(p===null||g===null)return"";if(r.value){const m=r.value.containerScrollTop;return`${p}px ${g+m}px`}return""}function l(p){if(i.transformOriginRef.value==="center")return;const g=i.getMousePosition();if(!g||!r.value)return;const m=r.value.containerScrollTop,{offsetLeft:y,offsetTop:b}=p;if(g){const x=g.y,w=g.x;o.value=-(y-w),a.value=-(b-x-m)}p.style.transformOrigin=s()}function u(p){dr(()=>{l(p)})}function c(p){p.style.transformOrigin=s(),e.onBeforeLeave()}function d(){n.value=!1,o.value=null,a.value=null,e.onAfterLeave()}function f(){const{onClose:p}=e;p&&p()}function A(){e.onNegativeClick()}function h(){e.onPositiveClick()}const v=q(null);return gt(v,p=>{p&&dr(()=>{const g=p.el;g&&t.value!==g&&(t.value=g)})}),_t(yy,t),_t(by,null),_t(sp,null),{mergedTheme:i.mergedThemeRef,appear:i.appearRef,isMounted:i.isMountedRef,mergedClsPrefix:i.mergedClsPrefixRef,bodyRef:t,scrollbarRef:r,displayed:n,childNodeRef:v,handlePositiveClick:h,handleNegativeClick:A,handleCloseClick:f,handleAfterLeave:d,handleBeforeLeave:c,handleEnter:u}},render(){const{$slots:e,$attrs:t,handleEnter:r,handleAfterLeave:n,handleBeforeLeave:o,preset:a,mergedClsPrefix:i}=this;let s=null;if(!a){if(s=KR(e),!s){ei("modal","default slot is empty");return}s=Fo(s),s.props=wn({class:`${i}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?en(S("div",{role:"none",class:`${i}-modal-body-wrapper`},S(Gn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${i}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),S(kk,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return S(jr,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:r,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:o},{default:()=>{const c=[[Ln,this.show]],{onClickoutside:d}=this;return d&&c.push([dl,this.onClickoutside,void 0,{capture:!0}]),en(this.preset==="confirm"||this.preset==="dialog"?S(BZ,Object.assign({},this.$attrs,{class:[`${i}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},Xa(this.$props,_Z),{"aria-modal":"true"}),e):this.preset==="card"?S(hq,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${i}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},Xa(this.$props,_2e),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,c)}})}})]}})),[[Ln,this.displayDirective==="if"||this.displayed||this.show]]):null}}),CDe=N([P("modal-container",`
  3448. position: fixed;
  3449. left: 0;
  3450. top: 0;
  3451. height: 0;
  3452. width: 0;
  3453. display: flex;
  3454. `),P("modal-mask",`
  3455. position: fixed;
  3456. left: 0;
  3457. right: 0;
  3458. top: 0;
  3459. bottom: 0;
  3460. background-color: rgba(0, 0, 0, .4);
  3461. `,[dA({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),P("modal-body-wrapper",`
  3462. position: fixed;
  3463. left: 0;
  3464. right: 0;
  3465. top: 0;
  3466. bottom: 0;
  3467. overflow: visible;
  3468. `,[P("modal-scroll-content",`
  3469. min-height: 100%;
  3470. display: flex;
  3471. position: relative;
  3472. `)]),P("modal",`
  3473. position: relative;
  3474. align-self: center;
  3475. color: var(--n-text-color);
  3476. margin: auto;
  3477. box-shadow: var(--n-box-shadow);
  3478. `,[Ia({duration:".25s",enterScale:".5"})])]),SDe=Object.assign(Object.assign(Object.assign(Object.assign({},Me.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),SL),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),RZ=ge({name:"Modal",inheritAttrs:!1,props:SDe,setup(e){const t=q(null),{mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:o}=nt(e),a=Me("Modal","-modal",CDe,mDe,e,r),i=Xj(64),s=Yj(),l=oi(),u=e.internalDialog?Ke(TZ,null):null,c=vY();function d(x){const{onUpdateShow:w,"onUpdate:show":C,onHide:_}=e;w&&Te(w,x),C&&Te(C,x),_&&!x&&_(x)}function f(){const{onClose:x}=e;x?Promise.resolve(x()).then(w=>{w!==!1&&d(!1)}):d(!1)}function A(){const{onPositiveClick:x}=e;x?Promise.resolve(x()).then(w=>{w!==!1&&d(!1)}):d(!1)}function h(){const{onNegativeClick:x}=e;x?Promise.resolve(x()).then(w=>{w!==!1&&d(!1)}):d(!1)}function v(){const{onBeforeLeave:x,onBeforeHide:w}=e;x&&Te(x),w&&w()}function p(){const{onAfterLeave:x,onAfterHide:w}=e;x&&Te(x),w&&w()}function g(x){var w;const{onMaskClick:C}=e;C&&C(x),e.maskClosable&&!((w=t.value)===null||w===void 0)&&w.contains(gs(x))&&d(!1)}function m(x){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&Gj(x)&&!c.value&&d(!1)}_t(Zj,{getMousePosition:()=>{if(u){const{clickedRef:x,clickPositionRef:w}=u;if(x.value&&w.value)return w.value}return i.value?s.value:null},mergedClsPrefixRef:r,mergedThemeRef:a,isMountedRef:l,appearRef:Re(e,"internalAppear"),transformOriginRef:Re(e,"transformOrigin")});const y=L(()=>{const{common:{cubicBezierEaseOut:x},self:{boxShadow:w,color:C,textColor:_}}=a.value;return{"--n-bezier-ease-out":x,"--n-box-shadow":w,"--n-color":C,"--n-text-color":_}}),b=o?Et("theme-class",void 0,y,e):void 0;return{mergedClsPrefix:r,namespace:n,isMounted:l,containerRef:t,presetProps:L(()=>Xa(e,xDe)),handleEsc:m,handleAfterLeave:p,handleClickoutside:g,handleBeforeLeave:v,doUpdateShow:d,handleNegativeClick:h,handlePositiveClick:A,handleCloseClick:f,cssVars:o?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){const{mergedClsPrefix:e}=this;return S(wy,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:r}=this;return en(S("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},S(wDe,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:r?void 0:this.handleClickoutside,renderMask:r?()=>{var n;return S(jr,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?S("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[xy,{zIndex:this.zIndex,enabled:this.show}]])}})}}),_De=Object.assign(Object.assign({},GS),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),BDe=ge({name:"DialogEnvironment",props:Object.assign(Object.assign({},_De),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=q(!0);function r(){const{onInternalAfterLeave:c,internalKey:d,onAfterLeave:f}=e;c&&c(d),f&&f()}function n(c){const{onPositiveClick:d}=e;d?Promise.resolve(d(c)).then(f=>{f!==!1&&l()}):l()}function o(c){const{onNegativeClick:d}=e;d?Promise.resolve(d(c)).then(f=>{f!==!1&&l()}):l()}function a(){const{onClose:c}=e;c?Promise.resolve(c()).then(d=>{d!==!1&&l()}):l()}function i(c){const{onMaskClick:d,maskClosable:f}=e;d&&(d(c),f&&l())}function s(){const{onEsc:c}=e;c&&c()}function l(){t.value=!1}function u(c){t.value=c}return{show:t,hide:l,handleUpdateShow:u,handleAfterLeave:r,handleCloseClick:a,handleNegativeClick:o,handlePositiveClick:n,handleMaskClick:i,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:r,handleCloseClick:n,handleAfterLeave:o,handleMaskClick:a,handleEsc:i,to:s,maskClosable:l,show:u}=this;return S(RZ,{show:u,onUpdateShow:t,onMaskClick:a,onEsc:i,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>S(BZ,Object.assign({},Xa(this.$props,_Z),{style:this.internalStyle,onClose:n,onNegativeClick:r,onPositiveClick:e}))})}}),TDe={injectionKey:String,to:[String,Object]},DZ=ge({name:"DialogProvider",props:TDe,setup(){const e=q([]),t={};function r(s={}){const l=Pi(),u=Ni(Object.assign(Object.assign({},s),{key:l,destroy:()=>{t[`n-dialog-${l}`].hide()}}));return e.value.push(u),u}const n=["info","success","warning","error"].map(s=>l=>r(Object.assign(Object.assign({},l),{type:s})));function o(s){const{value:l}=e;l.splice(l.findIndex(u=>u.key===s),1)}function a(){Object.values(t).forEach(s=>s.hide())}const i={create:r,destroyAll:a,info:n[0],success:n[1],warning:n[2],error:n[3]};return _t(EZ,i),_t(TZ,{clickedRef:Xj(64),clickPositionRef:Yj()}),_t(pDe,e),Object.assign(Object.assign({},i),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return S(lr,null,[this.dialogList.map(r=>S(BDe,ap(r,["destroy","style"],{internalStyle:r.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${r.key}`]:this.dialogInstRefs[`n-dialog-${r.key}`]=n},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function EDe(){const e=Ke(EZ,null);return e===null&&$o("use-dialog","No outer <n-dialog-provider /> founded."),e}const MZ=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:n}=e;return{textColor:t,color:r,fontWeight:n}},IDe={name:"Divider",common:Lt,self:MZ},RDe=IDe,DDe={name:"Divider",common:ct,self:MZ},MDe=DDe,PDe=P("divider",`
  3479. position: relative;
  3480. display: flex;
  3481. width: 100%;
  3482. box-sizing: border-box;
  3483. font-size: 16px;
  3484. color: var(--n-text-color);
  3485. transition:
  3486. color .3s var(--n-bezier),
  3487. background-color .3s var(--n-bezier);
  3488. `,[Wt("vertical",`
  3489. margin-top: 24px;
  3490. margin-bottom: 24px;
  3491. `,[Wt("no-title",`
  3492. display: flex;
  3493. align-items: center;
  3494. `)]),G("title",`
  3495. display: flex;
  3496. align-items: center;
  3497. margin-left: 12px;
  3498. margin-right: 12px;
  3499. white-space: nowrap;
  3500. font-weight: var(--n-font-weight);
  3501. `),j("title-position-left",[G("line",[j("left",{width:"28px"})])]),j("title-position-right",[G("line",[j("right",{width:"28px"})])]),j("dashed",[G("line",`
  3502. background-color: #0000;
  3503. height: 0px;
  3504. width: 100%;
  3505. border-style: dashed;
  3506. border-width: 1px 0 0;
  3507. `)]),j("vertical",`
  3508. display: inline-block;
  3509. height: 1em;
  3510. margin: 0 8px;
  3511. vertical-align: middle;
  3512. width: 1px;
  3513. `),G("line",`
  3514. border: none;
  3515. transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
  3516. height: 1px;
  3517. width: 100%;
  3518. margin: 0;
  3519. `),Wt("dashed",[G("line",{backgroundColor:"var(--n-color)"})]),j("dashed",[G("line",{borderColor:"var(--n-color)"})]),j("vertical",{backgroundColor:"var(--n-color)"})]),FDe=Object.assign(Object.assign({},Me.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),kDe=ge({name:"Divider",props:FDe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Divider","-divider",PDe,RDe,e,t),o=L(()=>{const{common:{cubicBezierEaseInOut:i},self:{color:s,textColor:l,fontWeight:u}}=n.value;return{"--n-bezier":i,"--n-color":s,"--n-text-color":l,"--n-font-weight":u}}),a=r?Et("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{$slots:t,titlePlacement:r,vertical:n,dashed:o,cssVars:a,mergedClsPrefix:i}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{role:"separator",class:[`${i}-divider`,this.themeClass,{[`${i}-divider--vertical`]:n,[`${i}-divider--no-title`]:!t.default,[`${i}-divider--dashed`]:o,[`${i}-divider--title-position-${r}`]:t.default&&r}],style:a},n?null:S("div",{class:`${i}-divider__line ${i}-divider__line--left`}),!n&&t.default?S(lr,null,S("div",{class:`${i}-divider__title`},this.$slots),S("div",{class:`${i}-divider__line ${i}-divider__line--right`})):null)}}),PZ=e=>{const{modalColor:t,textColor1:r,textColor2:n,boxShadow3:o,lineHeight:a,fontWeightStrong:i,dividerColor:s,closeColorHover:l,closeColorPressed:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:A,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:r,titleFontSize:"18px",titleFontWeight:i,boxShadow:o,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:u,closeBorderRadius:A,resizableTriggerColorHover:h}},LDe={name:"Drawer",common:Lt,peers:{Scrollbar:xl},self:PZ},ODe=LDe,$De={name:"Drawer",common:ct,peers:{Scrollbar:Pa},self:PZ},UDe=$De,NDe=ge({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=q(!!e.show),r=q(null),n=Ke(Mk);let o=0,a="",i=null;const s=q(!1),l=q(!1),u=L(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:c,mergedRtlRef:d}=nt(e),f=dn("Drawer",d,c),A=C=>{l.value=!0,o=u.value?C.clientY:C.clientX,a=document.body.style.cursor,document.body.style.cursor=u.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",m),document.body.addEventListener("mouseleave",b),document.body.addEventListener("mouseup",y)},h=()=>{i!==null&&(window.clearTimeout(i),i=null),l.value?s.value=!0:i=window.setTimeout(()=>{s.value=!0},300)},v=()=>{i!==null&&(window.clearTimeout(i),i=null),s.value=!1},{doUpdateHeight:p,doUpdateWidth:g}=n,m=C=>{var _,B;if(l.value)if(u.value){let T=((_=r.value)===null||_===void 0?void 0:_.offsetHeight)||0;const E=o-C.clientY;T+=e.placement==="bottom"?E:-E,p(T),o=C.clientY}else{let T=((B=r.value)===null||B===void 0?void 0:B.offsetWidth)||0;const E=o-C.clientX;T+=e.placement==="right"?E:-E,g(T),o=C.clientX}},y=()=>{l.value&&(o=0,l.value=!1,document.body.style.cursor=a,document.body.removeEventListener("mousemove",m),document.body.removeEventListener("mouseup",y),document.body.removeEventListener("mouseleave",b))},b=y;Sr(()=>{e.show&&(t.value=!0)}),gt(()=>e.show,C=>{C||y()}),Hr(()=>{y()});const x=L(()=>{const{show:C}=e,_=[[Ln,C]];return e.showMask||_.push([dl,e.onClickoutside,void 0,{capture:!0}]),_});function w(){var C;t.value=!1,(C=e.onAfterLeave)===null||C===void 0||C.call(e)}return hY(L(()=>e.blockScroll&&t.value)),_t(by,r),_t(sp,null),_t(yy,null),{bodyRef:r,rtlEnabled:f,mergedClsPrefix:n.mergedClsPrefixRef,isMounted:n.isMountedRef,mergedTheme:n.mergedThemeRef,displayed:t,transitionName:L(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:w,bodyDirectives:x,handleMousedownResizeTrigger:A,handleMouseenterResizeTrigger:h,handleMouseleaveResizeTrigger:v,isDragging:l,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?en(S("div",{role:"none"},S(kk,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>S(jr,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>en(S("div",wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?S("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?S("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):S(Gn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Ln,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:HDe,cubicBezierEaseOut:zDe}=Ma;function QDe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-right"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${HDe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${zDe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateX(100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:VDe,cubicBezierEaseOut:WDe}=Ma;function GDe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-left"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${VDe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${WDe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateX(-100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:KDe,cubicBezierEaseOut:jDe}=Ma;function YDe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-top"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${KDe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${jDe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateY(-100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:XDe,cubicBezierEaseOut:qDe}=Ma;function ZDe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-bottom"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${XDe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${qDe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateY(100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateY(100%)"})]}const JDe=N([P("drawer",`
  3520. word-break: break-word;
  3521. line-height: var(--n-line-height);
  3522. position: absolute;
  3523. pointer-events: all;
  3524. box-shadow: var(--n-box-shadow);
  3525. transition:
  3526. background-color .3s var(--n-bezier),
  3527. color .3s var(--n-bezier);
  3528. background-color: var(--n-color);
  3529. color: var(--n-text-color);
  3530. box-sizing: border-box;
  3531. `,[QDe(),GDe(),YDe(),ZDe(),j("unselectable",`
  3532. user-select: none;
  3533. -webkit-user-select: none;
  3534. `),j("native-scrollbar",[P("drawer-content-wrapper",`
  3535. overflow: auto;
  3536. height: 100%;
  3537. `)]),G("resize-trigger",`
  3538. position: absolute;
  3539. background-color: #0000;
  3540. transition: background-color .3s var(--n-bezier);
  3541. `,[j("hover",`
  3542. background-color: var(--n-resize-trigger-color-hover);
  3543. `)]),P("drawer-content-wrapper",`
  3544. box-sizing: border-box;
  3545. `),P("drawer-content",`
  3546. height: 100%;
  3547. display: flex;
  3548. flex-direction: column;
  3549. `,[j("native-scrollbar",[P("drawer-body-content-wrapper",`
  3550. height: 100%;
  3551. overflow: auto;
  3552. `)]),P("drawer-body",`
  3553. flex: 1 0 0;
  3554. overflow: hidden;
  3555. `),P("drawer-body-content-wrapper",`
  3556. box-sizing: border-box;
  3557. padding: var(--n-body-padding);
  3558. `),P("drawer-header",`
  3559. font-weight: var(--n-title-font-weight);
  3560. line-height: 1;
  3561. font-size: var(--n-title-font-size);
  3562. color: var(--n-title-text-color);
  3563. padding: var(--n-header-padding);
  3564. transition: border .3s var(--n-bezier);
  3565. border-bottom: 1px solid var(--n-divider-color);
  3566. border-bottom: var(--n-header-border-bottom);
  3567. display: flex;
  3568. justify-content: space-between;
  3569. align-items: center;
  3570. `,[G("close",`
  3571. margin-left: 6px;
  3572. transition:
  3573. background-color .3s var(--n-bezier),
  3574. color .3s var(--n-bezier);
  3575. `)]),P("drawer-footer",`
  3576. display: flex;
  3577. justify-content: flex-end;
  3578. border-top: var(--n-footer-border-top);
  3579. transition: border .3s var(--n-bezier);
  3580. padding: var(--n-footer-padding);
  3581. `)]),j("right-placement",`
  3582. top: 0;
  3583. bottom: 0;
  3584. right: 0;
  3585. `,[G("resize-trigger",`
  3586. width: 3px;
  3587. height: 100%;
  3588. top: 0;
  3589. left: 0;
  3590. transform: translateX(-1.5px);
  3591. cursor: ew-resize;
  3592. `)]),j("left-placement",`
  3593. top: 0;
  3594. bottom: 0;
  3595. left: 0;
  3596. `,[G("resize-trigger",`
  3597. width: 3px;
  3598. height: 100%;
  3599. top: 0;
  3600. right: 0;
  3601. transform: translateX(1.5px);
  3602. cursor: ew-resize;
  3603. `)]),j("top-placement",`
  3604. top: 0;
  3605. left: 0;
  3606. right: 0;
  3607. `,[G("resize-trigger",`
  3608. width: 100%;
  3609. height: 3px;
  3610. bottom: 0;
  3611. left: 0;
  3612. transform: translateY(1.5px);
  3613. cursor: ns-resize;
  3614. `)]),j("bottom-placement",`
  3615. left: 0;
  3616. bottom: 0;
  3617. right: 0;
  3618. `,[G("resize-trigger",`
  3619. width: 100%;
  3620. height: 3px;
  3621. top: 0;
  3622. left: 0;
  3623. transform: translateY(-1.5px);
  3624. cursor: ns-resize;
  3625. `)])]),N("body",[N(">",[P("drawer-container",{position:"fixed"})])]),P("drawer-container",`
  3626. position: relative;
  3627. position: absolute;
  3628. left: 0;
  3629. right: 0;
  3630. top: 0;
  3631. bottom: 0;
  3632. pointer-events: none;
  3633. `,[N("> *",{pointerEvents:"all"})]),P("drawer-mask",`
  3634. background-color: rgba(0, 0, 0, .3);
  3635. position: absolute;
  3636. left: 0;
  3637. right: 0;
  3638. top: 0;
  3639. bottom: 0;
  3640. `,[j("invisible",`
  3641. background-color: rgba(0, 0, 0, 0)
  3642. `),dA({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),eMe=Object.assign(Object.assign({},Me.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),tMe=ge({name:"Drawer",inheritAttrs:!1,props:eMe,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:n}=nt(e),o=oi(),a=Me("Drawer","-drawer",JDe,ODe,e,t),i=q(e.defaultWidth),s=q(e.defaultHeight),l=Ir(Re(e,"width"),i),u=Ir(Re(e,"height"),s),c=L(()=>{const{placement:x}=e;return x==="top"||x==="bottom"?"":wr(l.value)}),d=L(()=>{const{placement:x}=e;return x==="left"||x==="right"?"":wr(u.value)}),f=x=>{const{onUpdateWidth:w,"onUpdate:width":C}=e;w&&Te(w,x),C&&Te(C,x),i.value=x},A=x=>{const{onUpdateHeight:w,"onUpdate:width":C}=e;w&&Te(w,x),C&&Te(C,x),s.value=x},h=L(()=>[{width:c.value,height:d.value},e.drawerStyle||""]);function v(x){const{onMaskClick:w,maskClosable:C}=e;C&&m(!1),w&&w(x)}const p=vY();function g(x){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&Gj(x)&&!p.value&&m(!1)}function m(x){const{onHide:w,onUpdateShow:C,"onUpdate:show":_}=e;C&&Te(C,x),_&&Te(_,x),w&&!x&&Te(w,x)}_t(Mk,{isMountedRef:o,mergedThemeRef:a,mergedClsPrefixRef:t,doUpdateShow:m,doUpdateHeight:A,doUpdateWidth:f});const y=L(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:w,cubicBezierEaseOut:C},self:{color:_,textColor:B,boxShadow:T,lineHeight:E,headerPadding:I,footerPadding:R,bodyPadding:D,titleFontSize:F,titleTextColor:M,titleFontWeight:$,headerBorderBottom:O,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:W,closeIconColorPressed:Z,closeColorHover:te,closeColorPressed:ae,closeIconSize:re,closeSize:le,closeBorderRadius:se,resizableTriggerColorHover:ce}}=a.value;return{"--n-line-height":E,"--n-color":_,"--n-text-color":B,"--n-box-shadow":T,"--n-bezier":x,"--n-bezier-out":C,"--n-bezier-in":w,"--n-header-padding":I,"--n-body-padding":D,"--n-footer-padding":R,"--n-title-text-color":M,"--n-title-font-size":F,"--n-title-font-weight":$,"--n-header-border-bottom":O,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":W,"--n-close-icon-color-pressed":Z,"--n-close-size":le,"--n-close-color-hover":te,"--n-close-color-pressed":ae,"--n-close-icon-size":re,"--n-close-border-radius":se,"--n-resize-trigger-color-hover":ce}}),b=n?Et("drawer",void 0,y,e):void 0;return{mergedClsPrefix:t,namespace:r,mergedBodyStyle:h,handleMaskClick:v,handleEsc:g,mergedTheme:a,cssVars:n?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return S(wy,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),en(S("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?S(jr,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?S("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,S(NDe,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[xy,{zIndex:this.zIndex,enabled:this.show}]])}})}}),rMe={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},nMe=ge({name:"DrawerContent",props:rMe,setup(){const e=Ke(Mk,null);e||$o("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function r(){t(!1)}return{handleCloseClick:r,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:r,mergedTheme:n,bodyStyle:o,bodyContentStyle:a,headerStyle:i,footerStyle:s,scrollbarProps:l,closable:u,$slots:c}=this;return S("div",{role:"none",class:[`${t}-drawer-content`,r&&`${t}-drawer-content--native-scrollbar`]},c.header||e||u?S("div",{class:`${t}-drawer-header`,style:i,role:"none"},S("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},c.header!==void 0?c.header():e),u&&S(pd,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,r?S("div",{class:`${t}-drawer-body`,style:o,role:"none"},S("div",{class:`${t}-drawer-body-content-wrapper`,style:a,role:"none"},c)):S(Gn,Object.assign({themeOverrides:n.peerOverrides.Scrollbar,theme:n.peers.Scrollbar},l,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:a}),c),c.footer?S("div",{class:`${t}-drawer-footer`,style:s,role:"none"},c.footer()):null)}}),oMe={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},aMe={name:"DynamicInput",common:ct,peers:{Input:Qi,Button:Fa},self(){return oMe}},iMe=aMe,FZ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},sMe={name:"Space",self(){return FZ}},kZ=sMe,lMe=()=>FZ,uMe={name:"Space",self:lMe},cMe=uMe;let M2;const dMe=()=>{if(!ni)return!0;if(M2===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),M2=t}return M2},fMe=Object.assign(Object.assign({},Me.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),AMe=ge({name:"Space",props:fMe,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e),n=Me("Space","-space",void 0,cMe,e,t),o=dn("Space",r,t);return{useGap:dMe(),rtlEnabled:o,mergedClsPrefix:t,margin:L(()=>{const{size:a}=e;if(Array.isArray(a))return{horizontal:a[0],vertical:a[1]};if(typeof a=="number")return{horizontal:a,vertical:a};const{self:{[_e("gap",a)]:i}}=n.value,{row:s,col:l}=Jhe(i);return{horizontal:Ro(l),vertical:Ro(s)}})}},render(){const{vertical:e,align:t,inline:r,justify:n,itemStyle:o,margin:a,wrap:i,mergedClsPrefix:s,rtlEnabled:l,useGap:u,wrapItem:c,internalUseGap:d}=this,f=Ii(my(this));if(!f.length)return null;const A=`${a.horizontal}px`,h=`${a.horizontal/2}px`,v=`${a.vertical}px`,p=`${a.vertical/2}px`,g=f.length-1,m=n.startsWith("space-");return S("div",{role:"none",class:[`${s}-space`,l&&`${s}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!i||e?"nowrap":"wrap",marginTop:u||e?"":`-${p}`,marginBottom:u||e?"":`-${p}`,alignItems:t,gap:u?`${a.vertical}px ${a.horizontal}px`:""}},!c&&(u||d)?f:f.map((y,b)=>S("div",{role:"none",style:[o,{maxWidth:"100%"},u?"":e?{marginBottom:b!==g?v:""}:l?{marginLeft:m?n==="space-between"&&b===g?"":h:b!==g?A:"",marginRight:m?n==="space-between"&&b===0?"":h:"",paddingTop:p,paddingBottom:p}:{marginRight:m?n==="space-between"&&b===g?"":h:b!==g?A:"",marginLeft:m?n==="space-between"&&b===0?"":h:"",paddingTop:p,paddingBottom:p}]},y)))}}),hMe={name:"DynamicTags",common:ct,peers:{Input:Qi,Button:Fa,Tag:IX,Space:kZ},self(){return{inputWidth:"64px"}}},vMe=hMe,pMe={name:"Element",common:ct},gMe=pMe,mMe={name:"Element",common:Lt},yMe=mMe,bMe=Object.assign(Object.assign({},Me.props),{tag:{type:String,default:"div"}}),xMe=ge({name:"Element",alias:["El"],props:bMe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Element","-element",void 0,yMe,e,t),o=L(()=>{const{common:i}=n.value;return Object.keys(i).reduce((s,l)=>(s[`--${oX(l)}`]=i[l],s),{})}),a=r?Et("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{tag:t,mergedClsPrefix:r,cssVars:n,themeClass:o,onRender:a,$slots:i}=this;return a==null||a(),S(t,{role:"none",class:[`${r}-element`,o],style:n},(e=i.default)===null||e===void 0?void 0:e.call(i))}}),wMe={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},LZ=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,textColor1:o,errorColor:a,warningColor:i,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},wMe),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:n,lineHeight:s,labelTextColor:o,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:i,feedbackTextColor:l})},CMe={name:"Form",common:Lt,self:LZ},OZ=CMe,SMe={name:"Form",common:ct,self:LZ},_Me=SMe,BMe=P("form",[j("inline",`
  3643. width: 100%;
  3644. display: inline-flex;
  3645. align-items: flex-start;
  3646. align-content: space-around;
  3647. `,[P("form-item",{width:"auto",marginRight:"18px"},[N("&:last-child",{marginRight:0})])])]),Ey="n-form",$Z="n-form-item-insts";var TMe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const EMe=Object.assign(Object.assign({},Me.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),IMe=ge({name:"Form",props:EMe,setup(e){const{mergedClsPrefixRef:t}=nt(e);Me("Form","-form",BMe,OZ,e,t);const r={},n=q(void 0),o=l=>{const u=n.value;(u===void 0||l>=u)&&(n.value=l)};function a(l,u=()=>!0){return TMe(this,void 0,void 0,function*(){return yield new Promise((c,d)=>{const f=[];for(const A of cl(r)){const h=r[A];for(const v of h)v.path&&f.push(v.internalValidate(null,u))}Promise.all(f).then(A=>{if(A.some(h=>!h.valid)){const h=A.filter(v=>v.errors).map(v=>v.errors);l&&l(h),d(h)}else l&&l(),c()})})})}function i(){for(const l of cl(r)){const u=r[l];for(const c of u)c.restoreValidation()}}return _t(Ey,{props:e,maxChildLabelWidthRef:n,deriveMaxChildLabelWidth:o}),_t($Z,{formItems:r}),Object.assign({validate:a,restoreValidation:i},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return S("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function Rf(){return Rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}function RMe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ym(e,t)}function JD(e){return JD=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},JD(e)}function ym(e,t){return ym=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},ym(e,t)}function DMe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $x(e,t,r){return DMe()?$x=Reflect.construct:$x=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),u=new l;return i&&ym(u,i.prototype),u},$x.apply(null,arguments)}function MMe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function eM(e){var t=typeof Map=="function"?new Map:void 0;return eM=function(n){if(n===null||!MMe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return $x(n,arguments,JD(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ym(o,n)},eM(e)}var PMe=/%[sdj%]/g,FMe=function(){};typeof process!="undefined"&&process.env;function tM(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ga(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(PMe,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch(l){return"[Circular]"}break;default:return s}});return i}return e}function kMe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ao(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||kMe(t)&&typeof e=="string"&&!e)}function LMe(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,s||[]),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function rN(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function OMe(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var nN=function(e){RMe(t,e);function t(r,n){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=r,o.fields=n,o}return t}(eM(Error));function $Me(e,t,r,n,o){if(t.first){var a=new Promise(function(f,A){var h=function(g){return n(g),g.length?A(new nN(g,tM(g))):f(o)},v=OMe(e);rN(v,r,h)});return a.catch(function(f){return f}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise(function(f,A){var h=function(p){if(c.push.apply(c,p),u++,u===l)return n(c),c.length?A(new nN(c,tM(c))):f(o)};s.length||(n(c),f(o)),s.forEach(function(v){var p=e[v];i.indexOf(v)!==-1?rN(p,r,h):LMe(p,r,h)})});return d.catch(function(f){return f}),d}function UMe(e){return!!(e&&e.message!==void 0)}function NMe(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function oN(e,t){return function(r){var n;return e.fullFields?n=NMe(t,e.fullFields):n=t[r.field||e.fullField],UMe(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function aN(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Rf({},e[r],n):e[r]=n}}return e}var UZ=function(t,r,n,o,a,i){t.required&&(!n.hasOwnProperty(t.field)||Ao(r,i||t.type))&&o.push(Ga(a.messages.required,t.fullField))},HMe=function(t,r,n,o,a){(/^\s+$/.test(r)||r==="")&&o.push(Ga(a.messages.whitespace,t.fullField))},P2={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,}))$/,url:new RegExp("^(?!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]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Kg={integer:function(t){return Kg.number(t)&&parseInt(t,10)===t},float:function(t){return Kg.number(t)&&!Kg.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(r){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Kg.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(P2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(P2.url)},hex:function(t){return typeof t=="string"&&!!t.match(P2.hex)}},zMe=function(t,r,n,o,a){if(t.required&&r===void 0){UZ(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Kg[s](r)||o.push(Ga(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&o.push(Ga(a.messages.types[s],t.fullField,t.type))},QMe=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,d=null,f=typeof r=="number",A=typeof r=="string",h=Array.isArray(r);if(f?d="number":A?d="string":h&&(d="array"),!d)return!1;h&&(c=r.length),A&&(c=r.replace(u,"_").length),i?c!==t.len&&o.push(Ga(a.messages[d].len,t.fullField,t.len)):s&&!l&&c<t.min?o.push(Ga(a.messages[d].min,t.fullField,t.min)):l&&!s&&c>t.max?o.push(Ga(a.messages[d].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&o.push(Ga(a.messages[d].range,t.fullField,t.min,t.max))},nh="enum",VMe=function(t,r,n,o,a){t[nh]=Array.isArray(t[nh])?t[nh]:[],t[nh].indexOf(r)===-1&&o.push(Ga(a.messages[nh],t.fullField,t[nh].join(", ")))},WMe=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Ga(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(Ga(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Er={required:UZ,whitespace:HMe,type:zMe,range:QMe,enum:VMe,pattern:WMe},GMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r,"string")&&!t.required)return n();Er.required(t,r,o,i,a,"string"),Ao(r,"string")||(Er.type(t,r,o,i,a),Er.range(t,r,o,i,a),Er.pattern(t,r,o,i,a),t.whitespace===!0&&Er.whitespace(t,r,o,i,a))}n(i)},KMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&Er.type(t,r,o,i,a)}n(i)},jMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&(Er.type(t,r,o,i,a),Er.range(t,r,o,i,a))}n(i)},YMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&Er.type(t,r,o,i,a)}n(i)},XMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),Ao(r)||Er.type(t,r,o,i,a)}n(i)},qMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&(Er.type(t,r,o,i,a),Er.range(t,r,o,i,a))}n(i)},ZMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&(Er.type(t,r,o,i,a),Er.range(t,r,o,i,a))}n(i)},JMe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Er.required(t,r,o,i,a,"array"),r!=null&&(Er.type(t,r,o,i,a),Er.range(t,r,o,i,a))}n(i)},ePe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&Er.type(t,r,o,i,a)}n(i)},tPe="enum",rPe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a),r!==void 0&&Er[tPe](t,r,o,i,a)}n(i)},nPe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r,"string")&&!t.required)return n();Er.required(t,r,o,i,a),Ao(r,"string")||Er.pattern(t,r,o,i,a)}n(i)},oPe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r,"date")&&!t.required)return n();if(Er.required(t,r,o,i,a),!Ao(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Er.type(t,l,o,i,a),l&&Er.range(t,l.getTime(),o,i,a)}}n(i)},aPe=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":typeof r;Er.required(t,r,o,i,a,s),n(i)},F2=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ao(r,i)&&!t.required)return n();Er.required(t,r,o,s,a,i),Ao(r,i)||Er.type(t,r,o,s,a)}n(s)},iPe=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ao(r)&&!t.required)return n();Er.required(t,r,o,i,a)}n(i)},_0={string:GMe,method:KMe,number:jMe,boolean:YMe,regexp:XMe,integer:qMe,float:ZMe,array:JMe,object:ePe,enum:rPe,pattern:nPe,date:oPe,url:F2,hex:F2,email:F2,required:aPe,any:iPe};function rM(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var nM=rM(),Iy=function(){function e(r){this.rules=null,this._messages=nM,this.define(r)}var t=e.prototype;return t.define=function(n){var o=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var i=n[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(n){return n&&(this._messages=aN(rM(),n)),this._messages},t.validate=function(n,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=n,l=o,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var p=[],g={};function m(b){if(Array.isArray(b)){var x;p=(x=p).concat.apply(x,b)}else p.push(b)}for(var y=0;y<v.length;y++)m(v[y]);p.length?(g=tM(p),u(p,g)):u(null,s)}if(l.messages){var d=this.messages();d===nM&&(d=rM()),aN(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},A=l.keys||Object.keys(this.rules);A.forEach(function(v){var p=i.rules[v],g=s[v];p.forEach(function(m){var y=m;typeof y.transform=="function"&&(s===n&&(s=Rf({},s)),g=s[v]=y.transform(g)),typeof y=="function"?y={validator:y}:y=Rf({},y),y.validator=i.getValidationMethod(y),y.validator&&(y.field=v,y.fullField=y.fullField||v,y.type=i.getType(y),f[v]=f[v]||[],f[v].push({rule:y,value:g,source:s,field:v}))})});var h={};return $Me(f,l,function(v,p){var g=v.rule,m=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");m=m&&(g.required||!g.required&&v.value),g.field=v.field;function y(w,C){return Rf({},C,{fullField:g.fullField+"."+w,fullFields:g.fullFields?[].concat(g.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var C=Array.isArray(w)?w:[w];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&g.message!==void 0&&(C=[].concat(g.message));var _=C.map(oN(g,s));if(l.first&&_.length)return h[g.field]=1,p(_);if(!m)p(_);else{if(g.required&&!v.value)return g.message!==void 0?_=[].concat(g.message).map(oN(g,s)):l.error&&(_=[l.error(g,Ga(l.messages.required,g.field))]),p(_);var B={};g.defaultField&&Object.keys(v.value).map(function(I){B[I]=g.defaultField}),B=Rf({},B,v.rule.fields);var T={};Object.keys(B).forEach(function(I){var R=B[I],D=Array.isArray(R)?R:[R];T[I]=D.map(y.bind(null,I))});var E=new e(T);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(I){var R=[];_&&_.length&&R.push.apply(R,_),I&&I.length&&R.push.apply(R,I),p(R.length?R:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,v.value,b,v.source,l);else if(g.validator){try{x=g.validator(g,v.value,b,v.source,l)}catch(w){console.error==null||console.error(w),setTimeout(function(){throw w},0),b(w.message)}x===!0?b():x===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(w){return b(w)})},function(v){c(v)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!_0.hasOwnProperty(n.type))throw new Error(Ga("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var o=Object.keys(n),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?_0.required:_0[this.getType(n)]||void 0},e}();Iy.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");_0[t]=r};Iy.warning=FMe;Iy.messages=nM;Iy.validators=_0;function sPe(e){const t=Ke(Ey,null);return{mergedSize:L(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function lPe(e){const t=Ke(Ey,null),r=L(()=>{const{labelPlacement:A}=e;return A!==void 0?A:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),n=L(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=L(()=>{if(r.value==="top")return;const{labelWidth:A}=e;if(A!==void 0&&A!=="auto")return wr(A);if(n.value){const h=t==null?void 0:t.maxChildLabelWidthRef.value;return h!==void 0?wr(h):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return wr(t.props.labelWidth)}),a=L(()=>{const{labelAlign:A}=e;if(A)return A;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),i=L(()=>{var A;return[(A=e.labelProps)===null||A===void 0?void 0:A.style,e.labelStyle,{width:o.value}]}),s=L(()=>{const{showRequireMark:A}=e;return A!==void 0?A:t==null?void 0:t.props.showRequireMark}),l=L(()=>{const{requireMarkPlacement:A}=e;return A!==void 0?A:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),u=q(!1),c=L(()=>{const{validationStatus:A}=e;if(A!==void 0)return A;if(u.value)return"error"}),d=L(()=>{const{showFeedback:A}=e;return A!==void 0?A:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),f=L(()=>{const{showLabel:A}=e;return A!==void 0?A:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:u,mergedLabelStyle:i,mergedLabelPlacement:r,mergedLabelAlign:a,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:c,mergedShowFeedback:d,mergedShowLabel:f,isAutoLabelWidth:n}}function uPe(e){const t=Ke(Ey,null),r=L(()=>{const{rulePath:i}=e;if(i!==void 0)return i;const{path:s}=e;if(s!==void 0)return s}),n=L(()=>{const i=[],{rule:s}=e;if(s!==void 0&&(Array.isArray(s)?i.push(...s):i.push(s)),t){const{rules:l}=t.props,{value:u}=r;if(l!==void 0&&u!==void 0){const c=pm(l,u);c!==void 0&&(Array.isArray(c)?i.push(...c):i.push(c))}}return i}),o=L(()=>n.value.some(i=>i.required)),a=L(()=>o.value||e.required);return{mergedRules:n,mergedRequired:a}}const{cubicBezierEaseInOut:iN}=Ma;function cPe({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:n=".3s",enterCubicBezier:o=iN,leaveCubicBezier:a=iN}={}){return[N(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),N(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),N(`&.${e}-transition-leave-active`,{transition:`opacity ${n} ${a}, transform ${n} ${a}`}),N(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${o}, transform ${r} ${o}`})]}const dPe=P("form-item",`
  3648. display: grid;
  3649. line-height: var(--n-line-height);
  3650. `,[P("form-item-label",`
  3651. grid-area: label;
  3652. align-items: center;
  3653. line-height: 1.25;
  3654. text-align: var(--n-label-text-align);
  3655. font-size: var(--n-label-font-size);
  3656. min-height: var(--n-label-height);
  3657. padding: var(--n-label-padding);
  3658. color: var(--n-label-text-color);
  3659. transition: color .3s var(--n-bezier);
  3660. box-sizing: border-box;
  3661. font-weight: var(--n-label-font-weight);
  3662. `,[G("asterisk",`
  3663. white-space: nowrap;
  3664. user-select: none;
  3665. -webkit-user-select: none;
  3666. color: var(--n-asterisk-color);
  3667. transition: color .3s var(--n-bezier);
  3668. `),G("asterisk-placeholder",`
  3669. grid-area: mark;
  3670. user-select: none;
  3671. -webkit-user-select: none;
  3672. visibility: hidden;
  3673. `)]),P("form-item-blank",`
  3674. grid-area: blank;
  3675. min-height: var(--n-blank-height);
  3676. `),j("auto-label-width",[P("form-item-label","white-space: nowrap;")]),j("left-labelled",`
  3677. grid-template-areas:
  3678. "label blank"
  3679. "label feedback";
  3680. grid-template-columns: auto minmax(0, 1fr);
  3681. grid-template-rows: auto 1fr;
  3682. align-items: start;
  3683. `,[P("form-item-label",`
  3684. display: grid;
  3685. grid-template-columns: 1fr auto;
  3686. min-height: var(--n-blank-height);
  3687. height: auto;
  3688. box-sizing: border-box;
  3689. flex-shrink: 0;
  3690. flex-grow: 0;
  3691. `,[j("reverse-columns-space",`
  3692. grid-template-columns: auto 1fr;
  3693. `),j("left-mark",`
  3694. grid-template-areas:
  3695. "mark text"
  3696. ". text";
  3697. `),j("right-mark",`
  3698. grid-template-areas:
  3699. "text mark"
  3700. "text .";
  3701. `),j("right-hanging-mark",`
  3702. grid-template-areas:
  3703. "text mark"
  3704. "text .";
  3705. `),G("text",`
  3706. grid-area: text;
  3707. `),G("asterisk",`
  3708. grid-area: mark;
  3709. align-self: end;
  3710. `)])]),j("top-labelled",`
  3711. grid-template-areas:
  3712. "label"
  3713. "blank"
  3714. "feedback";
  3715. grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
  3716. grid-template-columns: minmax(0, 100%);
  3717. `,[j("no-label",`
  3718. grid-template-areas:
  3719. "blank"
  3720. "feedback";
  3721. grid-template-rows: 1fr;
  3722. `),P("form-item-label",`
  3723. display: flex;
  3724. align-items: flex-start;
  3725. justify-content: var(--n-label-text-align);
  3726. `)]),P("form-item-blank",`
  3727. box-sizing: border-box;
  3728. display: flex;
  3729. align-items: center;
  3730. position: relative;
  3731. `),P("form-item-feedback-wrapper",`
  3732. grid-area: feedback;
  3733. box-sizing: border-box;
  3734. min-height: var(--n-feedback-height);
  3735. font-size: var(--n-feedback-font-size);
  3736. line-height: 1.25;
  3737. transform-origin: top left;
  3738. `,[N("&:not(:empty)",`
  3739. padding: var(--n-feedback-padding);
  3740. `),P("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[j("warning",{color:"var(--n-feedback-text-color-warning)"}),j("error",{color:"var(--n-feedback-text-color-error)"}),cPe({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var sN=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const fPe=Object.assign(Object.assign({},Me.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function lN(e,t){return(...r)=>{try{const n=e(...r);return!t&&(typeof n=="boolean"||n instanceof Error||Array.isArray(n))||n!=null&&n.then?n:(n===void 0||ei("form-item/validate",`You return a ${typeof n} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(n){ei("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(n);return}}}const APe=ge({name:"FormItem",props:fPe,setup(e){kve($Z,"formItems",Re(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Ke(Ey,null),o=sPe(e),a=lPe(e),{validationErrored:i}=a,{mergedRequired:s,mergedRules:l}=uPe(e),{mergedSize:u}=o,{mergedLabelPlacement:c,mergedLabelAlign:d,mergedRequireMarkPlacement:f}=a,A=q([]),h=q(Pi()),v=n?Re(n.props,"disabled"):q(!1),p=Me("Form","-form-item",dPe,OZ,e,t);gt(Re(e,"path"),()=>{e.ignorePathChange||g()});function g(){A.value=[],i.value=!1,e.feedback&&(h.value=Pi())}function m(){C("blur")}function y(){C("change")}function b(){C("focus")}function x(){C("input")}function w(R,D){return sN(this,void 0,void 0,function*(){let F,M,$,O;return typeof R=="string"?(F=R,M=D):R!==null&&typeof R=="object"&&(F=R.trigger,M=R.callback,$=R.shouldRuleBeApplied,O=R.options),yield new Promise((Q,V)=>{C(F,$,O).then(({valid:W,errors:Z})=>{W?(M&&M(),Q()):(M&&M(Z),V(Z))})})})}const C=(R=null,D=()=>!0,F={suppressWarning:!0})=>sN(this,void 0,void 0,function*(){const{path:M}=e;F?F.first||(F.first=e.first):F={};const{value:$}=l,O=n?pm(n.props.model,M||""):void 0,Q={},V={},W=(R?$.filter(re=>Array.isArray(re.trigger)?re.trigger.includes(R):re.trigger===R):$).filter(D).map((re,le)=>{const se=Object.assign({},re);if(se.validator&&(se.validator=lN(se.validator,!1)),se.asyncValidator&&(se.asyncValidator=lN(se.asyncValidator,!0)),se.renderMessage){const ce=`__renderMessage__${le}`;V[ce]=se.message,se.message=ce,Q[ce]=se.renderMessage}return se});if(!W.length)return{valid:!0};const Z=M!=null?M:"__n_no_path__",te=new Iy({[Z]:W}),{validateMessages:ae}=(n==null?void 0:n.props)||{};return ae&&te.messages(ae),yield new Promise(re=>{te.validate({[Z]:O},F,le=>{le!=null&&le.length?(A.value=le.map(se=>{const ce=(se==null?void 0:se.message)||"";return{key:ce,render:()=>ce.startsWith("__renderMessage__")?Q[ce]():ce}}),le.forEach(se=>{var ce;!((ce=se.message)===null||ce===void 0)&&ce.startsWith("__renderMessage__")&&(se.message=V[se.message])}),i.value=!0,re({valid:!1,errors:le})):(g(),re({valid:!0}))})})});_t(eD,{path:Re(e,"path"),disabled:v,mergedSize:o.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:g,handleContentBlur:m,handleContentChange:y,handleContentFocus:b,handleContentInput:x});const _={validate:w,restoreValidation:g,internalValidate:C},B=q(null);yr(()=>{if(!a.isAutoLabelWidth.value)return;const R=B.value;if(R!==null){const D=R.style.whiteSpace;R.style.whiteSpace="nowrap",R.style.width="",n==null||n.deriveMaxChildLabelWidth(Number(getComputedStyle(R).width.slice(0,-2))),R.style.whiteSpace=D}});const T=L(()=>{var R;const{value:D}=u,{value:F}=c,M=F==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:$},self:{labelTextColor:O,asteriskColor:Q,lineHeight:V,feedbackTextColor:W,feedbackTextColorWarning:Z,feedbackTextColorError:te,feedbackPadding:ae,labelFontWeight:re,[_e("labelHeight",D)]:le,[_e("blankHeight",D)]:se,[_e("feedbackFontSize",D)]:ce,[_e("feedbackHeight",D)]:be,[_e("labelPadding",M)]:de,[_e("labelTextAlign",M)]:pe,[_e(_e("labelFontSize",F),D)]:K}}=p.value;let U=(R=d.value)!==null&&R!==void 0?R:pe;return F==="top"&&(U=U==="right"?"flex-end":"flex-start"),{"--n-bezier":$,"--n-line-height":V,"--n-blank-height":se,"--n-label-font-size":K,"--n-label-text-align":U,"--n-label-height":le,"--n-label-padding":de,"--n-label-font-weight":re,"--n-asterisk-color":Q,"--n-label-text-color":O,"--n-feedback-padding":ae,"--n-feedback-font-size":ce,"--n-feedback-height":be,"--n-feedback-text-color":W,"--n-feedback-text-color-warning":Z,"--n-feedback-text-color-error":te}}),E=r?Et("form-item",L(()=>{var R;return`${u.value[0]}${c.value[0]}${((R=d.value)===null||R===void 0?void 0:R[0])||""}`}),T,e):void 0,I=L(()=>c.value==="left"&&f.value==="left"&&d.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:B,mergedClsPrefix:t,mergedRequired:s,feedbackId:h,renderExplains:A,reverseColSpace:I},a),o),_),{cssVars:r?void 0:T,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:n,mergedRequireMarkPlacement:o,onRender:a}=this,i=n!==void 0?n:this.mergedRequired;a==null||a();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const u=S("span",{class:`${t}-form-item-label__text`},l),c=i?S("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?" *":"* "):o==="right-hanging"&&S("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:d}=this;return S("label",Object.assign({},d,{class:[d==null?void 0:d.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[c,u]:[u,c])};return S("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&s(),S("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?S("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},S(jr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return Ar(e.feedback,u=>{var c;const{feedback:d}=this,f=u||d?S("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},u||d):this.renderExplains.length?(c=this.renderExplains)===null||c===void 0?void 0:c.map(({key:A,render:h})=>S("div",{key:A,class:`${t}-form-item-feedback__line`},h())):null;return f?l==="warning"?S("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},f):l==="error"?S("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},f):l==="success"?S("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},f):S("div",{key:"controlled-default",class:`${t}-form-item-feedback`},f):null})}})):null)}}),uN=1,NZ="n-grid",HZ=1,hPe={span:{type:[Number,String],default:HZ},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},cN=ge({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:hPe,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:r,overflowRef:n,layoutShiftDisabledRef:o}=Ke(NZ),a=Co();return{overflow:n,itemStyle:r,layoutShiftDisabled:o,mergedXGap:L(()=>On(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:i=HZ,privateShow:s=!0,privateColStart:l=void 0,privateOffset:u=0}=a.vnode.props,{value:c}=t,d=On(c||0);return{display:s?"":"none",gridColumn:`${l!=null?l:`span ${i}`} / span ${i}`,marginLeft:u?`calc((100% - (${i} - 1) * ${d}) / ${i} * ${u} + ${d} * ${u})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:r,offset:n,mergedXGap:o}=this;return S("div",{style:{gridColumn:`span ${r} / span ${r}`,marginLeft:n?`calc((100% - (${r} - 1) * ${o}) / ${r} * ${n} + ${o} * ${n})`:""}},this.$slots)}return S("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),vPe=Array.apply(null,{length:24}).map((e,t)=>{const r=t+1,n=`calc(100% / 24 * ${r})`;return[j(`${r}-span`,{width:n}),j(`${r}-offset`,{marginLeft:n}),j(`${r}-push`,{left:n}),j(`${r}-pull`,{right:n})]}),pPe=N([P("row",{width:"100%",display:"flex",flexWrap:"wrap"}),P("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[G("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),vPe])]),zZ="n-row",gPe={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},mPe=ge({name:"Row",props:gPe,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e);ml("-legacy-grid",pPe,t);const n=dn("Row",r,t),o=Ft(()=>{const{gutter:i}=e;return Array.isArray(i)&&i[1]||0}),a=Ft(()=>{const{gutter:i}=e;return Array.isArray(i)?i[0]:Number(i)});return _t(zZ,{mergedClsPrefixRef:t,gutterRef:Re(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:a}),{mergedClsPrefix:t,rtlEnabled:n,styleMargin:Ft(()=>`-${wr(o.value,{c:.5})} -${wr(a.value,{c:.5})}`),styleWidth:Ft(()=>`calc(100% + ${wr(a.value)})`)}},render(){return S("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),yPe={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},bPe=ge({name:"Col",props:yPe,setup(e){const t=Ke(zZ,null);return t||$o("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:L(()=>`${wr(t.verticalGutterRef.value,{c:.5})} ${wr(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:L(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:r,offset:n,stylePadding:o,gutter:a,mergedClsPrefix:i}=this;return S("div",{class:[`${i}-col`,{[`${i}-col--${t}-span`]:!0,[`${i}-col--${r}-push`]:r>0,[`${i}-col--${-r}-pull`]:r<0,[`${i}-col--${n}-offset`]:n}],style:{padding:o}},a?S("div",null,e):e)}}),xPe={name:"GradientText",common:ct,self(e){const{primaryColor:t,successColor:r,warningColor:n,errorColor:o,infoColor:a,primaryColorSuppl:i,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:u,infoColorSuppl:c,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:i,colorStartInfo:a,colorEndInfo:c,colorStartWarning:n,colorEndWarning:l,colorStartError:o,colorEndError:u,colorStartSuccess:r,colorEndSuccess:s}}},wPe=xPe,CPe=e=>{const{primaryColor:t,successColor:r,warningColor:n,errorColor:o,infoColor:a,fontWeightStrong:i}=e;return{fontWeight:i,rotate:"252deg",colorStartPrimary:Ve(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Ve(a,{alpha:.6}),colorEndInfo:a,colorStartWarning:Ve(n,{alpha:.6}),colorEndWarning:n,colorStartError:Ve(o,{alpha:.6}),colorEndError:o,colorStartSuccess:Ve(r,{alpha:.6}),colorEndSuccess:r}},SPe={name:"GradientText",common:Lt,self:CPe},_Pe=SPe,BPe=P("gradient-text",`
  3741. display: inline-block;
  3742. font-weight: var(--n-font-weight);
  3743. -webkit-background-clip: text;
  3744. background-clip: text;
  3745. color: #0000;
  3746. white-space: nowrap;
  3747. background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
  3748. transition:
  3749. --n-color-start .3s var(--n-bezier),
  3750. --n-color-end .3s var(--n-bezier);
  3751. `),TPe=Object.assign(Object.assign({},Me.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),EPe=ge({name:"GradientText",props:TPe,setup(e){Pk();const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=L(()=>{const{type:u}=e;return u==="danger"?"error":u}),o=L(()=>{let u=e.size||e.fontSize;return u&&(u=wr(u)),u||void 0}),a=L(()=>{const u=e.color||e.gradient;if(typeof u=="string")return u;if(u){const c=u.deg||0,d=u.from,f=u.to;return`linear-gradient(${c}deg, ${d} 0%, ${f} 100%)`}}),i=Me("GradientText","-gradient-text",BPe,_Pe,e,t),s=L(()=>{const{value:u}=n,{common:{cubicBezierEaseInOut:c},self:{rotate:d,[_e("colorStart",u)]:f,[_e("colorEnd",u)]:A,fontWeight:h}}=i.value;return{"--n-bezier":c,"--n-rotate":d,"--n-color-start":f,"--n-color-end":A,"--n-font-weight":h}}),l=r?Et("gradient-text",L(()=>n.value[0]),s,e):void 0;return{mergedClsPrefix:t,compatibleType:n,styleFontSize:o,styleBgImage:a,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),S("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),IPe={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},QZ=24,k2="__ssr__",RPe={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:QZ},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},DPe=ge({name:"Grid",inheritAttrs:!1,props:RPe,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:r}=nt(e),n=/^\d+$/,o=q(void 0),a=jve((r==null?void 0:r.value)||IPe),i=Ft(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),s=L(()=>{if(i.value)return e.responsive==="self"?o.value:a.value}),l=Ft(()=>{var g;return(g=Number(Xp(e.cols.toString(),s.value)))!==null&&g!==void 0?g:QZ}),u=Ft(()=>Xp(e.xGap.toString(),s.value)),c=Ft(()=>Xp(e.yGap.toString(),s.value)),d=g=>{o.value=g.contentRect.width},f=g=>{Tv(d,g)},A=q(!1),h=L(()=>{if(e.responsive==="self")return f}),v=q(!1),p=q();return yr(()=>{const{value:g}=p;g&&g.hasAttribute(k2)&&(g.removeAttribute(k2),v.value=!0)}),_t(NZ,{layoutShiftDisabledRef:Re(e,"layoutShiftDisabled"),isSsrRef:v,itemStyleRef:Re(e,"itemStyle"),xGapRef:u,overflowRef:A}),{isSsr:!ni,contentEl:p,mergedClsPrefix:t,style:L(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:On(e.xGap),rowGap:On(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${l.value}, minmax(0, 1fr))`,columnGap:On(u.value),rowGap:On(c.value)}),isResponsive:i,responsiveQuery:s,responsiveCols:l,handleResize:h,overflow:A}},render(){if(this.layoutShiftDisabled)return S("div",wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,r,n,o,a,i,s;this.overflow=!1;const l=Ii(my(this)),u=[],{collapsed:c,collapsedRows:d,responsiveCols:f,responsiveQuery:A}=this;l.forEach(m=>{var y,b,x,w;if(((y=m==null?void 0:m.type)===null||y===void 0?void 0:y.__GRID_ITEM__)!==!0)return;if(dve(m)){const B=Fo(m);B.props?B.props.privateShow=!1:B.props={privateShow:!1},u.push({child:B,rawChildSpan:0});return}m.dirs=((b=m.dirs)===null||b===void 0?void 0:b.filter(({dir:B})=>B!==Ln))||null;const C=Fo(m),_=Number((w=Xp((x=C.props)===null||x===void 0?void 0:x.span,A))!==null&&w!==void 0?w:uN);_!==0&&u.push({child:C,rawChildSpan:_})});let h=0;const v=(t=u[u.length-1])===null||t===void 0?void 0:t.child;if(v!=null&&v.props){const m=(r=v.props)===null||r===void 0?void 0:r.suffix;m!==void 0&&m!==!1&&(h=(o=(n=v.props)===null||n===void 0?void 0:n.span)!==null&&o!==void 0?o:uN,v.props.privateSpan=h,v.props.privateColStart=f+1-h,v.props.privateShow=(a=v.props.privateShow)!==null&&a!==void 0?a:!0)}let p=0,g=!1;for(const{child:m,rawChildSpan:y}of u){if(g&&(this.overflow=!0),!g){const b=Number((s=Xp((i=m.props)===null||i===void 0?void 0:i.offset,A))!==null&&s!==void 0?s:0),x=Math.min(y+b,f);if(m.props?(m.props.privateSpan=x,m.props.privateOffset=b):m.props={privateSpan:x,privateOffset:b},c){const w=p%f;x+w>f&&(p+=f-w),x+p+h>d*f?g=!0:p+=x}}g&&(m.props?m.props.privateShow!==!0&&(m.props.privateShow=!1):m.props={privateShow:!1})}return S("div",wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[k2]:this.isSsr||void 0},this.$attrs),u.map(({child:m})=>m))};return this.isResponsive&&this.responsive==="self"?S(Fi,{onResize:this.handleResize},{default:e}):e()}}),MPe=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},PPe={name:"IconWrapper",common:ct,self:MPe},FPe=PPe,_L=Object.assign(Object.assign({},Me.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),VZ="n-image";function kPe(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const LPe={name:"Image",common:Lt,peers:{Tooltip:zS},self:kPe},OPe={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},WZ=e=>{const{textColor2:t,successColor:r,infoColor:n,warningColor:o,errorColor:a,popoverColor:i,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:u,closeColorHover:c,closeColorPressed:d,textColor1:f,textColor3:A,borderRadius:h,fontWeightStrong:v,boxShadow2:p,lineHeight:g,fontSize:m}=e;return Object.assign(Object.assign({},OPe),{borderRadius:h,lineHeight:g,fontSize:m,headerFontWeight:v,iconColor:t,iconColorSuccess:r,iconColorInfo:n,iconColorWarning:o,iconColorError:a,color:i,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:u,closeBorderRadius:h,closeColorHover:c,closeColorPressed:d,headerTextColor:f,descriptionTextColor:A,actionTextColor:t,boxShadow:p})},$Pe={name:"Notification",common:Lt,peers:{Scrollbar:xl},self:WZ},UPe=$Pe,NPe={name:"Notification",common:ct,peers:{Scrollbar:Pa},self:WZ},HPe=NPe,zPe={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},GZ=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:o,infoColor:a,successColor:i,errorColor:s,warningColor:l,popoverColor:u,boxShadow2:c,primaryColor:d,lineHeight:f,borderRadius:A,closeColorHover:h,closeColorPressed:v}=e;return Object.assign(Object.assign({},zPe),{closeBorderRadius:A,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:c,boxShadowInfo:c,boxShadowSuccess:c,boxShadowError:c,boxShadowWarning:c,boxShadowLoading:c,iconColor:t,iconColorInfo:a,iconColorSuccess:i,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:h,closeColorPressed:v,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:o,closeColorHoverInfo:h,closeColorPressedInfo:v,closeIconColorInfo:r,closeIconColorHoverInfo:n,closeIconColorPressedInfo:o,closeColorHoverSuccess:h,closeColorPressedSuccess:v,closeIconColorSuccess:r,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:o,closeColorHoverError:h,closeColorPressedError:v,closeIconColorError:r,closeIconColorHoverError:n,closeIconColorPressedError:o,closeColorHoverWarning:h,closeColorPressedWarning:v,closeIconColorWarning:r,closeIconColorHoverWarning:n,closeIconColorPressedWarning:o,closeColorHoverLoading:h,closeColorPressedLoading:v,closeIconColorLoading:r,closeIconColorHoverLoading:n,closeIconColorPressedLoading:o,loadingColor:d,lineHeight:f,borderRadius:A})},QPe={name:"Message",common:Lt,self:GZ},VPe=QPe,WPe={name:"Message",common:ct,self:GZ},GPe=WPe,KPe={name:"ButtonGroup",common:ct},jPe=KPe,YPe={name:"InputNumber",common:ct,peers:{Button:Fa,Input:Qi},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},XPe=YPe,qPe=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},ZPe={name:"InputNumber",common:Lt,peers:{Button:md,Input:PA},self:qPe},JPe=ZPe,eFe={name:"Layout",common:ct,peers:{Scrollbar:Pa},self(e){const{textColor2:t,bodyColor:r,popoverColor:n,cardColor:o,dividerColor:a,scrollbarColor:i,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:o,headerColorInverted:o,footerColor:o,footerColorInverted:o,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:o,siderColorInverted:o,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Dt(r,i),siderToggleBarColorHover:Dt(r,s),__invertScrollbar:"false"}}},tFe=eFe,rFe=e=>{const{baseColor:t,textColor2:r,bodyColor:n,cardColor:o,dividerColor:a,actionColor:i,scrollbarColor:s,scrollbarColorHover:l,invertedColor:u}=e;return{textColor:r,textColorInverted:"#FFF",color:n,colorEmbedded:i,headerColor:o,headerColorInverted:u,footerColor:i,footerColorInverted:u,headerBorderColor:a,headerBorderColorInverted:u,footerBorderColor:a,footerBorderColorInverted:u,siderBorderColor:a,siderBorderColorInverted:u,siderColor:o,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${a}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Dt(n,s),siderToggleBarColorHover:Dt(n,l),__invertScrollbar:"true"}},nFe={name:"Layout",common:Lt,peers:{Scrollbar:xl},self:rFe},KS=nFe,KZ=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:o,dividerColor:a,borderRadius:i,fontSize:s,hoverColor:l}=e;return{textColor:t,color:r,colorHover:l,colorModal:n,colorHoverModal:Dt(n,l),colorPopover:o,colorHoverPopover:Dt(o,l),borderColor:a,borderColorModal:Dt(n,a),borderColorPopover:Dt(o,a),borderRadius:i,fontSize:s}},oFe={name:"List",common:Lt,self:KZ},aFe=oFe,iFe={name:"List",common:ct,self:KZ},sFe=iFe,lFe={name:"LoadingBar",common:ct,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},uFe=lFe,cFe=e=>{const{primaryColor:t,errorColor:r}=e;return{colorError:r,colorLoading:t,height:"2px"}},dFe={name:"LoadingBar",common:Lt,self:cFe},fFe=dFe,AFe={name:"Log",common:ct,peers:{Scrollbar:Pa,Code:bq},self(e){const{textColor2:t,inputColor:r,fontSize:n,primaryColor:o}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:o}}},hFe=AFe,vFe={name:"Mention",common:ct,peers:{InternalSelectMenu:_y,Input:Qi},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},pFe=vFe;function gFe(e,t,r,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:n}}const jZ=e=>{const{borderRadius:t,textColor3:r,primaryColor:n,textColor2:o,textColor1:a,fontSize:i,dividerColor:s,hoverColor:l,primaryColorHover:u}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:l,itemColorActive:Ve(n,{alpha:.1}),itemColorActiveHover:Ve(n,{alpha:.1}),itemColorActiveCollapsed:Ve(n,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:i,dividerColor:s},gFe("#BBB",n,"#FFF","#AAA"))},mFe={name:"Menu",common:Lt,peers:{Tooltip:zS,Dropdown:cL},self:jZ},yFe=mFe,bFe={name:"Menu",common:ct,peers:{Tooltip:HS,Dropdown:dL},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,n=jZ(e);return n.itemColorActive=Ve(t,{alpha:.15}),n.itemColorActiveHover=Ve(t,{alpha:.15}),n.itemColorActiveCollapsed=Ve(t,{alpha:.15}),n.itemColorActiveInverted=r,n.itemColorActiveHoverInverted=r,n.itemColorActiveCollapsedInverted=r,n}},xFe=bFe,wFe={titleFontSize:"18px",backSize:"22px"};function CFe(e){const{textColor1:t,textColor2:r,textColor3:n,fontSize:o,fontWeightStrong:a,primaryColorHover:i,primaryColorPressed:s}=e;return Object.assign(Object.assign({},wFe),{titleFontWeight:a,fontSize:o,titleTextColor:t,backColor:r,backColorHover:i,backColorPressed:s,subtitleTextColor:n})}const SFe={name:"PageHeader",common:ct,self:CFe},_Fe={iconSize:"22px"},BFe=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},_Fe),{fontSize:t,iconColor:r})},TFe={name:"Popconfirm",common:ct,peers:{Button:Fa,Popover:MA},self:BFe},EFe=TFe,YZ=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,textColor2:a,progressRailColor:i,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:i,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:o,textColorCircle:a,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},IFe={name:"Progress",common:Lt,self:YZ},XZ=IFe,RFe={name:"Progress",common:ct,self(e){const t=YZ(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},qZ=RFe,DFe={name:"Rate",common:ct,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},MFe=DFe,PFe={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},ZZ=e=>{const{textColor2:t,textColor1:r,errorColor:n,successColor:o,infoColor:a,warningColor:i,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},PFe),{lineHeight:s,titleFontWeight:l,titleTextColor:r,textColor:t,iconColorError:n,iconColorSuccess:o,iconColorInfo:a,iconColorWarning:i})},FFe={name:"Result",common:Lt,self:ZZ},kFe=FFe,LFe={name:"Result",common:ct,self:ZZ},OFe=LFe,JZ={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},$Fe={name:"Slider",common:ct,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:n,primaryColorSuppl:o,popoverColor:a,textColor2:i,cardColor:s,borderRadius:l,fontSize:u,opacityDisabled:c}=e;return Object.assign(Object.assign({},JZ),{fontSize:u,markFontSize:u,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:c,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:a,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:a,indicatorBoxShadow:t,indicatorTextColor:i,indicatorBorderRadius:l,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}},UFe=$Fe,NFe=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:o,baseColor:a,cardColor:i,modalColor:s,popoverColor:l,borderRadius:u,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},JZ),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:o,fillColorHover:o,opacityDisabled:d,handleColor:"#FFF",dotColor:i,dotColorModal:s,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:a,indicatorBorderRadius:u,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},HFe={name:"Slider",common:Lt,self:NFe},zFe=HFe,eJ=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:n,heightMedium:o,heightLarge:a,heightHuge:i,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:r,sizeSmall:n,sizeMedium:o,sizeLarge:a,sizeHuge:i,color:s,opacitySpinning:t}},QFe={name:"Spin",common:Lt,self:eJ},VFe=QFe,WFe={name:"Spin",common:ct,self:eJ},GFe=WFe,tJ=e=>{const{textColor2:t,textColor3:r,fontSize:n,fontWeight:o}=e;return{labelFontSize:n,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},KFe={name:"Statistic",common:Lt,self:tJ},jFe=KFe,YFe={name:"Statistic",common:ct,self:tJ},XFe=YFe,qFe={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},rJ=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:n,primaryColor:o,errorColor:a,textColor1:i,textColor2:s}=e;return Object.assign(Object.assign({},qFe),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:n,indicatorTextColorFinish:o,indicatorTextColorError:a,indicatorBorderColorProcess:o,indicatorBorderColorWait:n,indicatorBorderColorFinish:o,indicatorBorderColorError:a,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:o,splitorColorError:n,headerTextColorProcess:i,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:a})},ZFe={name:"Steps",common:Lt,self:rJ},JFe=ZFe,eke={name:"Steps",common:ct,self:rJ},tke=eke,nJ={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},rke={name:"Switch",common:ct,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:n,primaryColor:o,textColor2:a,baseColor:i}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},nJ),{iconColor:i,textColor:a,loadingColor:t,opacityDisabled:r,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${Ve(o,{alpha:.3})}`})}},nke=rke,oke=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:n,textColor3:o}=e,a="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},nJ),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:r,railColor:a,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${Ve(t,{alpha:.2})}`})},ake={name:"Switch",common:Lt,self:oke},ike=ake,ske={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},oJ=e=>{const{dividerColor:t,cardColor:r,modalColor:n,popoverColor:o,tableHeaderColor:a,tableColorStriped:i,textColor1:s,textColor2:l,borderRadius:u,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:A,fontSizeLarge:h}=e;return Object.assign(Object.assign({},ske),{fontSizeSmall:f,fontSizeMedium:A,fontSizeLarge:h,lineHeight:d,borderRadius:u,borderColor:Dt(r,t),borderColorModal:Dt(n,t),borderColorPopover:Dt(o,t),tdColor:r,tdColorModal:n,tdColorPopover:o,tdColorStriped:Dt(r,i),tdColorStripedModal:Dt(n,i),tdColorStripedPopover:Dt(o,i),thColor:Dt(r,a),thColorModal:Dt(n,a),thColorPopover:Dt(o,a),thTextColor:s,tdTextColor:l,thFontWeight:c})},lke={name:"Table",common:Lt,self:oJ},uke=lke,cke={name:"Table",common:ct,self:oJ},dke=cke,fke={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},aJ=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:n,closeIconColor:o,closeIconColorHover:a,closeIconColorPressed:i,closeColorHover:s,closeColorPressed:l,tabColor:u,baseColor:c,dividerColor:d,fontWeight:f,textColor1:A,borderRadius:h,fontSize:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},fke),{colorSegment:u,tabFontSizeCard:v,tabTextColorLine:A,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:n,tabTextColorSegment:A,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:A,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:n,tabTextColorCard:A,tabTextColorHoverCard:A,tabTextColorActiveCard:r,tabTextColorDisabledCard:n,barColor:r,closeIconColor:o,closeIconColorHover:a,closeIconColorPressed:i,closeColorHover:s,closeColorPressed:l,closeBorderRadius:h,tabColor:u,tabColorSegment:c,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:p})},Ake={name:"Tabs",common:Lt,self:aJ},hke=Ake,vke={name:"Tabs",common:ct,self(e){const t=aJ(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},pke=vke,iJ=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:r,titleFontWeight:n}},gke={name:"Thing",common:Lt,self:iJ},mke=gke,yke={name:"Thing",common:ct,self:iJ},bke=yke,sJ={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},xke={name:"Timeline",common:ct,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:n,successColorSuppl:o,warningColorSuppl:a,textColor1:i,textColor2:s,railColor:l,fontWeightStrong:u,fontSize:c}=e;return Object.assign(Object.assign({},sJ),{contentFontSize:c,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:o,iconColorWarning:a,titleTextColor:i,contentTextColor:s,metaTextColor:t,lineColor:l})}},wke=xke,Cke=e=>{const{textColor3:t,infoColor:r,errorColor:n,successColor:o,warningColor:a,textColor1:i,textColor2:s,railColor:l,fontWeightStrong:u,fontSize:c}=e;return Object.assign(Object.assign({},sJ),{contentFontSize:c,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:o,iconColorWarning:a,titleTextColor:i,contentTextColor:s,metaTextColor:t,lineColor:l})},Ske={name:"Timeline",common:Lt,self:Cke},_ke=Ske,Bke={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},Tke={name:"Transfer",common:ct,peers:{Checkbox:fp,Scrollbar:Pa,Input:Qi,Empty:DA,Button:Fa},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:n,fontSizeSmall:o,heightLarge:a,heightMedium:i,borderRadius:s,inputColor:l,tableHeaderColor:u,textColor1:c,textColorDisabled:d,textColor2:f,textColor3:A,hoverColor:h,closeColorHover:v,closeColorPressed:p,closeIconColor:g,closeIconColorHover:m,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},Bke),{itemHeightSmall:i,itemHeightMedium:i,itemHeightLarge:a,fontSizeSmall:o,fontSizeMedium:n,fontSizeLarge:r,borderRadius:s,dividerColor:b,borderColor:"#0000",listColor:l,headerColor:u,titleTextColor:c,titleTextColorDisabled:d,extraTextColor:A,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:h,titleFontWeight:t,closeColorHover:v,closeColorPressed:p,closeIconColor:g,closeIconColorHover:m,closeIconColorPressed:y})}},Eke=Tke,lJ=e=>{const{borderRadiusSmall:t,hoverColor:r,pressedColor:n,primaryColor:o,textColor3:a,textColor2:i,textColorDisabled:s,fontSize:l}=e;return{fontSize:l,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:Ve(o,{alpha:.1}),arrowColor:a,nodeTextColor:i,nodeTextColorDisabled:s,loadingColor:o,dropMarkColor:o}},Ike={name:"Tree",common:Lt,peers:{Checkbox:iL,Scrollbar:xl,Empty:Sy},self:lJ},Rke=Ike,Dke={name:"Tree",common:ct,peers:{Checkbox:fp,Scrollbar:Pa,Empty:DA},self(e){const{primaryColor:t}=e,r=lJ(e);return r.nodeColorActive=Ve(t,{alpha:.15}),r}},uJ=Dke,Mke={name:"TreeSelect",common:ct,peers:{Tree:uJ,Empty:DA,InternalSelection:Zk}},Pke=Mke,Fke={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},cJ=e=>{const{primaryColor:t,textColor2:r,borderColor:n,lineHeight:o,fontSize:a,borderRadiusSmall:i,dividerColor:s,fontWeightStrong:l,textColor1:u,textColor3:c,infoColor:d,warningColor:f,errorColor:A,successColor:h,codeColor:v}=e;return Object.assign(Object.assign({},Fke),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:n,blockquoteLineHeight:o,blockquoteFontSize:a,codeBorderRadius:i,liTextColor:r,liLineHeight:o,liFontSize:a,hrColor:s,headerFontWeight:l,headerTextColor:u,pTextColor:r,pTextColor1Depth:u,pTextColor2Depth:r,pTextColor3Depth:c,pLineHeight:o,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:A,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:r,textColor1Depth:u,textColor2Depth:r,textColor3Depth:c,textColorPrimary:t,textColorInfo:d,textColorSuccess:h,textColorWarning:f,textColorError:A,codeTextColor:r,codeColor:v,codeBorder:"1px solid #0000"})},kke={name:"Typography",common:Lt,self:cJ},jS=kke,Lke={name:"Typography",common:ct,self:cJ},Oke=Lke,dJ=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:a,opacityDisabled:i,actionColor:s,borderColor:l,hoverColor:u,lineHeight:c,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:u,itemColorHoverError:Ve(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:i,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}},$ke={name:"Upload",common:Lt,peers:{Button:md,Progress:XZ},self:dJ},Uke=$ke,Nke={name:"Upload",common:ct,peers:{Button:Fa,Progress:qZ},self(e){const{errorColor:t}=e,r=dJ(e);return r.itemColorHoverError=Ve(t,{alpha:.09}),r}},Hke=Nke,zke={name:"Watermark",common:ct,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Qke=zke,Vke={name:"Watermark",common:Lt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Wke=Vke,Gke={name:"Row",common:ct},Kke=Gke,jke={name:"Image",common:ct,peers:{Tooltip:HS},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},Yke=S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Xke=S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),qke=S("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Zke=N([N("body >",[P("image-container","position: fixed;")]),P("image-preview-container",`
  3752. position: fixed;
  3753. left: 0;
  3754. right: 0;
  3755. top: 0;
  3756. bottom: 0;
  3757. display: flex;
  3758. `),P("image-preview-overlay",`
  3759. z-index: -1;
  3760. position: absolute;
  3761. left: 0;
  3762. right: 0;
  3763. top: 0;
  3764. bottom: 0;
  3765. background: rgba(0, 0, 0, .3);
  3766. `,[dA()]),P("image-preview-toolbar",`
  3767. z-index: 1;
  3768. position: absolute;
  3769. left: 50%;
  3770. transform: translateX(-50%);
  3771. border-radius: var(--n-toolbar-border-radius);
  3772. height: 48px;
  3773. bottom: 40px;
  3774. padding: 0 12px;
  3775. background: var(--n-toolbar-color);
  3776. box-shadow: var(--n-toolbar-box-shadow);
  3777. color: var(--n-toolbar-icon-color);
  3778. transition: color .3s var(--n-bezier);
  3779. display: flex;
  3780. align-items: center;
  3781. `,[P("base-icon",`
  3782. padding: 0 8px;
  3783. font-size: 28px;
  3784. cursor: pointer;
  3785. `),dA()]),P("image-preview-wrapper",`
  3786. position: absolute;
  3787. left: 0;
  3788. right: 0;
  3789. top: 0;
  3790. bottom: 0;
  3791. display: flex;
  3792. pointer-events: none;
  3793. `,[Ia()]),P("image-preview",`
  3794. user-select: none;
  3795. -webkit-user-select: none;
  3796. pointer-events: all;
  3797. margin: auto;
  3798. max-height: calc(100vh - 32px);
  3799. max-width: calc(100vw - 32px);
  3800. transition: transform .3s var(--n-bezier);
  3801. `),P("image",`
  3802. display: inline-flex;
  3803. max-height: 100%;
  3804. max-width: 100%;
  3805. `,[Wt("preview-disabled",`
  3806. cursor: pointer;
  3807. `),N("img",`
  3808. border-radius: inherit;
  3809. `)])]),Wb=32,fJ=ge({name:"ImagePreview",props:Object.assign(Object.assign({},_L),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Me("Image","-image",Zke,LPe,e,Re(e,"clsPrefix"));let r=null;const n=q(null),o=q(null),a=q(void 0),i=q(!1),s=q(!1),{localeRef:l}=zi("Image");function u(){const{value:K}=o;if(!r||!K)return;const{style:U}=K,k=r.getBoundingClientRect(),J=k.left+k.width/2,ee=k.top+k.height/2;U.transformOrigin=`${J}px ${ee}px`}function c(K){var U,k;switch(K.key){case" ":K.preventDefault();break;case"ArrowLeft":(U=e.onPrev)===null||U===void 0||U.call(e);break;case"ArrowRight":(k=e.onNext)===null||k===void 0||k.call(e);break;case"Escape":re();break}}gt(i,K=>{K?or("keydown",document,c):qt("keydown",document,c)}),Hr(()=>{qt("keydown",document,c)});let d=0,f=0,A=0,h=0,v=0,p=0,g=0,m=0,y=!1;function b(K){const{clientX:U,clientY:k}=K;A=U-d,h=k-f,Tv(ae)}function x(K){const{mouseUpClientX:U,mouseUpClientY:k,mouseDownClientX:J,mouseDownClientY:ee}=K,H=J-U,Y=ee-k,oe=`vertical${Y>0?"Top":"Bottom"}`,he=`horizontal${H>0?"Left":"Right"}`;return{moveVerticalDirection:oe,moveHorizontalDirection:he,deltaHorizontal:H,deltaVertical:Y}}function w(K){const{value:U}=n;if(!U)return{offsetX:0,offsetY:0};const k=U.getBoundingClientRect(),{moveVerticalDirection:J,moveHorizontalDirection:ee,deltaHorizontal:H,deltaVertical:Y}=K||{};let oe=0,he=0;return k.width<=window.innerWidth?oe=0:k.left>0?oe=(k.width-window.innerWidth)/2:k.right<window.innerWidth?oe=-(k.width-window.innerWidth)/2:ee==="horizontalRight"?oe=Math.min((k.width-window.innerWidth)/2,v-(H!=null?H:0)):oe=Math.max(-((k.width-window.innerWidth)/2),v-(H!=null?H:0)),k.height<=window.innerHeight?he=0:k.top>0?he=(k.height-window.innerHeight)/2:k.bottom<window.innerHeight?he=-(k.height-window.innerHeight)/2:J==="verticalBottom"?he=Math.min((k.height-window.innerHeight)/2,p-(Y!=null?Y:0)):he=Math.max(-((k.height-window.innerHeight)/2),p-(Y!=null?Y:0)),{offsetX:oe,offsetY:he}}function C(K){qt("mousemove",document,b),qt("mouseup",document,C);const{clientX:U,clientY:k}=K;y=!1;const J=x({mouseUpClientX:U,mouseUpClientY:k,mouseDownClientX:g,mouseDownClientY:m}),ee=w(J);A=ee.offsetX,h=ee.offsetY,ae()}const _=Ke(VZ,null);function B(K){var U,k;if((k=(U=_==null?void 0:_.previewedImgPropsRef.value)===null||U===void 0?void 0:U.onMousedown)===null||k===void 0||k.call(U,K),K.button!==0)return;const{clientX:J,clientY:ee}=K;y=!0,d=J-A,f=ee-h,v=A,p=h,g=J,m=ee,ae(),or("mousemove",document,b),or("mouseup",document,C)}function T(K){var U,k;(k=(U=_==null?void 0:_.previewedImgPropsRef.value)===null||U===void 0?void 0:U.onDblclick)===null||k===void 0||k.call(U,K);const J=W();R=R===J?1:J,ae()}const E=1.5;let I=0,R=1,D=0;function F(){R=1,I=0}function M(){var K;F(),D=0,(K=e.onPrev)===null||K===void 0||K.call(e)}function $(){var K;F(),D=0,(K=e.onNext)===null||K===void 0||K.call(e)}function O(){D-=90,ae()}function Q(){D+=90,ae()}function V(){const{value:K}=n;if(!K)return 1;const{innerWidth:U,innerHeight:k}=window,J=Math.max(1,K.naturalHeight/(k-Wb)),ee=Math.max(1,K.naturalWidth/(U-Wb));return Math.max(3,J*2,ee*2)}function W(){const{value:K}=n;if(!K)return 1;const{innerWidth:U,innerHeight:k}=window,J=K.naturalHeight/(k-Wb),ee=K.naturalWidth/(U-Wb);return J<1&&ee<1?1:Math.max(J,ee)}function Z(){const K=V();R<K&&(I+=1,R=Math.min(K,Math.pow(E,I)),ae())}function te(){if(R>.5){const K=R;I-=1,R=Math.max(.5,Math.pow(E,I));const U=K-R;ae(!1);const k=w();R+=U,ae(!1),R-=U,A=k.offsetX,h=k.offsetY,ae()}}function ae(K=!0){var U;const{value:k}=n;if(!k)return;const{style:J}=k,ee=Mi((U=_==null?void 0:_.previewedImgPropsRef.value)===null||U===void 0?void 0:U.style);let H="";if(typeof ee=="string")H=ee+";";else for(const oe in ee)H+=`${oX(oe)}: ${ee[oe]};`;const Y=`transform-origin: center; transform: translateX(${A}px) translateY(${h}px) rotate(${D}deg) scale(${R});`;y?J.cssText=H+"cursor: grabbing; transition: none;"+Y:J.cssText=H+"cursor: grab;"+Y+(K?"":"transition: none;"),K||k.offsetHeight}function re(){i.value=!i.value,s.value=!0}function le(){R=W(),I=Math.ceil(Math.log(R)/Math.log(E)),A=0,h=0,ae()}const se={setPreviewSrc:K=>{a.value=K},setThumbnailEl:K=>{r=K},toggleShow:re};function ce(K,U){if(e.showToolbarTooltip){const{value:k}=t;return S(QS,{to:!1,theme:k.peers.Tooltip,themeOverrides:k.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[U],trigger:()=>K})}else return K}const be=L(()=>{const{common:{cubicBezierEaseInOut:K},self:{toolbarIconColor:U,toolbarBorderRadius:k,toolbarBoxShadow:J,toolbarColor:ee}}=t.value;return{"--n-bezier":K,"--n-toolbar-icon-color":U,"--n-toolbar-color":ee,"--n-toolbar-border-radius":k,"--n-toolbar-box-shadow":J}}),{inlineThemeDisabled:de}=nt(),pe=de?Et("image-preview",void 0,be,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:a,show:i,appear:oi(),displayed:s,previewedImgProps:_==null?void 0:_.previewedImgPropsRef,handleWheel(K){K.preventDefault()},handlePreviewMousedown:B,handlePreviewDblclick:T,syncTransformOrigin:u,handleAfterLeave:()=>{F(),D=0,s.value=!1},handleDragStart:K=>{var U,k;(k=(U=_==null?void 0:_.previewedImgPropsRef.value)===null||U===void 0?void 0:U.onDragstart)===null||k===void 0||k.call(U,K),K.preventDefault()},zoomIn:Z,zoomOut:te,rotateCounterclockwise:O,rotateClockwise:Q,handleSwitchPrev:M,handleSwitchNext:$,withTooltip:ce,resizeToOrignalImageSize:le,cssVars:de?void 0:be,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender},se)},render(){var e,t;const{clsPrefix:r}=this;return S(lr,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),S(wy,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),en(S("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},S(jr,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?S("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?S(jr,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return S("div",{class:`${r}-image-preview-toolbar`},this.onPrev?S(lr,null,o(S(zt,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>Yke}),"tipPrevious"),o(S(zt,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>Xke}),"tipNext")):null,o(S(zt,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>S(Hwe,null)}),"tipCounterclockwise"),o(S(zt,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>S(Nwe,null)}),"tipClockwise"),o(S(zt,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>S(Vwe,null)}),"tipOriginalSize"),o(S(zt,{clsPrefix:r,onClick:this.zoomOut},{default:()=>S(Qwe,null)}),"tipZoomOut"),o(S(zt,{clsPrefix:r,onClick:this.zoomIn},{default:()=>S(zwe,null)}),"tipZoomIn"),o(S(zt,{clsPrefix:r,onClick:this.toggleShow},{default:()=>qke}),"tipClose"))}}):null,S(jr,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return en(S("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},S("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Ln,this.show]])}})),[[xy,{enabled:this.show}]])):null}}))}}),AJ="n-image-group",Jke=_L,eLe=ge({name:"ImageGroup",props:Jke,setup(e){let t;const{mergedClsPrefixRef:r}=nt(e),n=`c${Pi()}`,o=Co(),a=l=>{var u;t=l,(u=s.value)===null||u===void 0||u.setPreviewSrc(l)};function i(l){if(!(o!=null&&o.proxy))return;const c=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!c.length)return;const d=Array.from(c).findIndex(f=>f.dataset.previewSrc===t);~d?a(c[(d+l+c.length)%c.length].dataset.previewSrc):a(c[0].dataset.previewSrc)}_t(AJ,{mergedClsPrefixRef:r,setPreviewSrc:a,setThumbnailEl:l=>{var u;(u=s.value)===null||u===void 0||u.setThumbnailEl(l)},toggleShow:()=>{var l;(l=s.value)===null||l===void 0||l.toggleShow()},groupId:n});const s=q(null);return{mergedClsPrefix:r,previewInstRef:s,next:()=>i(1),prev:()=>i(-1)}},render(){return S(fJ,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),tLe=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},_L),hJ=ge({name:"Image",props:tLe,inheritAttrs:!1,setup(e){const t=q(null),r=q(!1),n=q(null),o=Ke(AJ,null),{mergedClsPrefixRef:a}=o||nt(e),i={click:()=>{if(e.previewDisabled||r.value)return;const u=e.previewSrc||e.src;if(o){o.setPreviewSrc(u),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=n;c&&(c.setPreviewSrc(u),c.setThumbnailEl(t.value),c.toggleShow())}},s=q(!e.lazy);yr(()=>{var u;(u=t.value)===null||u===void 0||u.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),yr(()=>{if(Av)return;let u;const c=Sr(()=>{u==null||u(),u=void 0,e.lazy&&(u=zX(t.value,e.intersectionObserverOptions,s))});Hr(()=>{c(),u==null||u()})}),Sr(()=>{var u;e.src,(u=e.imgProps)===null||u===void 0||u.src,r.value=!1});const l=q(!1);return _t(VZ,{previewedImgPropsRef:Re(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:a,groupId:o==null?void 0:o.groupId,previewInstRef:n,imageRef:t,showError:r,shouldStartLoading:s,loaded:l,mergedOnClick:u=>{var c,d;i.click(),(d=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||d===void 0||d.call(c,u)},mergedOnError:u=>{if(!s.value)return;r.value=!0;const{onError:c,imgProps:{onError:d}={}}=e;c==null||c(u),d==null||d(u)},mergedOnLoad:u=>{const{onLoad:c,imgProps:{onLoad:d}={}}=e;c==null||c(u),d==null||d(u),l.value=!0}},i)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},loaded:o,$attrs:a,lazy:i}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),l=this.src||n.src||"",u=S("img",Object.assign(Object.assign({},n),{ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:Av?l:this.showError?this.fallbackSrc:this.shouldStartLoading?l:void 0,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Av&&i&&!this.intersectionObserverOptions?"lazy":"eager",style:[n.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return S("div",Object.assign({},a,{role:"none",class:[a.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?u:S(fJ,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>u}),!o&&s)}});function rLe(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function nLe(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function L2(e){return e==null?!0:!Number.isNaN(e)}function dN(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function O2(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const oLe=N([P("input-number-suffix",`
  3810. display: inline-block;
  3811. margin-right: 10px;
  3812. `),P("input-number-prefix",`
  3813. display: inline-block;
  3814. margin-left: 10px;
  3815. `)]),fN=800,AN=100,aLe=Object.assign(Object.assign({},Me.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),iLe=ge({name:"InputNumber",props:aLe,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r,mergedRtlRef:n}=nt(e),o=Me("InputNumber","-input-number",oLe,JPe,e,r),{localeRef:a}=zi("InputNumber"),i=Da(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:u}=i,c=q(null),d=q(null),f=q(null),A=q(e.defaultValue),h=Re(e,"value"),v=Ir(h,A),p=q(""),g=H=>{const Y=String(H).split(".")[1];return Y?Y.length:0},m=H=>{const Y=[e.min,e.max,e.step,H].map(oe=>oe===void 0?0:g(oe));return Math.max(...Y)},y=Ft(()=>{const{placeholder:H}=e;return H!==void 0?H:a.value.placeholder}),b=Ft(()=>{const H=O2(e.step);return H!==null?H===0?1:Math.abs(H):1}),x=Ft(()=>{const H=O2(e.min);return H!==null?H:null}),w=Ft(()=>{const H=O2(e.max);return H!==null?H:null}),C=H=>{const{value:Y}=v;if(H===Y){B();return}const{"onUpdate:value":oe,onUpdateValue:he,onChange:ne}=e,{nTriggerFormInput:Ae,nTriggerFormChange:X}=i;ne&&Te(ne,H),he&&Te(he,H),oe&&Te(oe,H),A.value=H,Ae(),X()},_=({offset:H,doUpdateIfValid:Y,fixPrecision:oe,isInputing:he})=>{const{value:ne}=p;if(he&&nLe(ne))return!1;const Ae=(e.parse||rLe)(ne);if(Ae===null)return Y&&C(null),null;if(L2(Ae)){const X=g(Ae),{precision:ie}=e;if(ie!==void 0&&ie<X&&!oe)return!1;let fe=parseFloat((Ae+H).toFixed(ie!=null?ie:m(Ae)));if(L2(fe)){const{value:ye}=w,{value:Fe}=x;if(ye!==null&&fe>ye){if(!Y||he)return!1;fe=ye}if(Fe!==null&&fe<Fe){if(!Y||he)return!1;fe=Fe}return e.validator&&!e.validator(fe)?!1:(Y&&C(fe),fe)}}return!1},B=()=>{const{value:H}=v;if(L2(H)){const{format:Y,precision:oe}=e;Y?p.value=Y(H):H===null||oe===void 0||g(H)>oe?p.value=dN(H,void 0):p.value=dN(H,oe)}else p.value=String(H)};B();const T=Ft(()=>_({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),E=Ft(()=>{const{value:H}=v;if(e.validator&&H===null)return!1;const{value:Y}=b;return _({offset:-Y,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),I=Ft(()=>{const{value:H}=v;if(e.validator&&H===null)return!1;const{value:Y}=b;return _({offset:+Y,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function R(H){const{onFocus:Y}=e,{nTriggerFormFocus:oe}=i;Y&&Te(Y,H),oe()}function D(H){var Y,oe;if(H.target===((Y=c.value)===null||Y===void 0?void 0:Y.wrapperElRef))return;const he=_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(he!==!1){const X=(oe=c.value)===null||oe===void 0?void 0:oe.inputElRef;X&&(X.value=String(he||"")),v.value===he&&B()}else B();const{onBlur:ne}=e,{nTriggerFormBlur:Ae}=i;ne&&Te(ne,H),Ae(),dr(()=>{B()})}function F(H){const{onClear:Y}=e;Y&&Te(Y,H)}function M(){const{value:H}=I;if(!H){se();return}const{value:Y}=v;if(Y===null)e.validator||C(V());else{const{value:oe}=b;_({offset:oe,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function $(){const{value:H}=E;if(!H){le();return}const{value:Y}=v;if(Y===null)e.validator||C(V());else{const{value:oe}=b;_({offset:-oe,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const O=R,Q=D;function V(){if(e.validator)return null;const{value:H}=x,{value:Y}=w;return H!==null?Math.max(0,H):Y!==null?Math.min(0,Y):0}function W(H){F(H),C(null)}function Z(H){var Y,oe,he;!((Y=f.value)===null||Y===void 0)&&Y.$el.contains(H.target)&&H.preventDefault(),!((oe=d.value)===null||oe===void 0)&&oe.$el.contains(H.target)&&H.preventDefault(),(he=c.value)===null||he===void 0||he.activate()}let te=null,ae=null,re=null;function le(){re&&(window.clearTimeout(re),re=null),te&&(window.clearInterval(te),te=null)}function se(){be&&(window.clearTimeout(be),be=null),ae&&(window.clearInterval(ae),ae=null)}function ce(){le(),re=window.setTimeout(()=>{te=window.setInterval(()=>{$()},AN)},fN),or("mouseup",document,le,{once:!0})}let be=null;function de(){se(),be=window.setTimeout(()=>{ae=window.setInterval(()=>{M()},AN)},fN),or("mouseup",document,se,{once:!0})}const pe=()=>{ae||M()},K=()=>{te||$()};function U(H){var Y,oe;if(H.key==="Enter"){if(H.target===((Y=c.value)===null||Y===void 0?void 0:Y.wrapperElRef))return;_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((oe=c.value)===null||oe===void 0||oe.deactivate())}else if(H.key==="ArrowUp"){if(!I.value||e.keyboard.ArrowUp===!1)return;H.preventDefault(),_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&M()}else if(H.key==="ArrowDown"){if(!E.value||e.keyboard.ArrowDown===!1)return;H.preventDefault(),_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&$()}}function k(H){p.value=H,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&_({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}gt(v,()=>{B()});const J={focus:()=>{var H;return(H=c.value)===null||H===void 0?void 0:H.focus()},blur:()=>{var H;return(H=c.value)===null||H===void 0?void 0:H.blur()}},ee=dn("InputNumber",n,r);return Object.assign(Object.assign({},J),{rtlEnabled:ee,inputInstRef:c,minusButtonInstRef:d,addButtonInstRef:f,mergedClsPrefix:r,mergedBordered:t,uncontrolledValue:A,mergedValue:v,mergedPlaceholder:y,displayedValueInvalid:T,mergedSize:s,mergedDisabled:l,displayedValue:p,addable:I,minusable:E,mergedStatus:u,handleFocus:O,handleBlur:Q,handleClear:W,handleMouseDown:Z,handleAddClick:pe,handleMinusClick:K,handleAddMousedown:de,handleMinusMousedown:ce,handleKeyDown:U,handleUpdateDisplayedValue:k,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:L(()=>{const{self:{iconColorDisabled:H}}=o.value,[Y,oe,he,ne]=Xn(H);return{textColorTextDisabled:`rgb(${Y}, ${oe}, ${he})`,opacityDisabled:`${ne}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,r=()=>S(nl,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Kt(t["minus-icon"],()=>[S(zt,{clsPrefix:e},{default:()=>S(Mwe,null)})])}),n=()=>S(nl,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Kt(t["add-icon"],()=>[S(zt,{clsPrefix:e},{default:()=>S(Yk,null)})])});return S("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},S(ms,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[r(),Ar(t.prefix,a=>a?S("span",{class:`${e}-input-number-prefix`},a):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ar(t.suffix,a=>a?S("span",{class:`${e}-input-number-suffix`},a):null),this.buttonPlacement==="right"?r():null,n()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),vJ="n-layout-sider",YS={type:String,default:"static"},sLe=P("layout",`
  3816. color: var(--n-text-color);
  3817. background-color: var(--n-color);
  3818. box-sizing: border-box;
  3819. position: relative;
  3820. z-index: auto;
  3821. flex: auto;
  3822. overflow: hidden;
  3823. transition:
  3824. box-shadow .3s var(--n-bezier),
  3825. background-color .3s var(--n-bezier),
  3826. color .3s var(--n-bezier);
  3827. `,[P("layout-scroll-container",`
  3828. overflow-x: hidden;
  3829. box-sizing: border-box;
  3830. height: 100%;
  3831. `),j("absolute-positioned",`
  3832. position: absolute;
  3833. left: 0;
  3834. right: 0;
  3835. top: 0;
  3836. bottom: 0;
  3837. `)]),lLe={embedded:Boolean,position:YS,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},pJ="n-layout";function gJ(e){return ge({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Me.props),lLe),setup(t){const r=q(null),n=q(null),{mergedClsPrefixRef:o,inlineThemeDisabled:a}=nt(t),i=Me("Layout","-layout",sLe,KS,t,o);function s(v,p){if(t.nativeScrollbar){const{value:g}=r;g&&(p===void 0?g.scrollTo(v):g.scrollTo(v,p))}else{const{value:g}=n;g&&g.scrollTo(v,p)}}_t(pJ,t);let l=0,u=0;const c=v=>{var p;const g=v.target;l=g.scrollLeft,u=g.scrollTop,(p=t.onScroll)===null||p===void 0||p.call(t,v)};Ok(()=>{if(t.nativeScrollbar){const v=r.value;v&&(v.scrollTop=u,v.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},A=L(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value;return{"--n-bezier":v,"--n-color":t.embedded?p.colorEmbedded:p.color,"--n-text-color":p.textColor}}),h=a?Et("layout",L(()=>t.embedded?"e":""),A,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:r,scrollbarInstRef:n,hasSiderStyle:d,mergedTheme:i,handleNativeElScroll:c,cssVars:a?void 0:A,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=n?this.hasSiderStyle:void 0,a=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return S("div",{class:a,style:this.cssVars},this.nativeScrollbar?S("div",{ref:"scrollableElRef",class:`${r}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):S(Gn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const uLe=gJ(!1),cLe=gJ(!0),dLe=P("layout-header",`
  3838. transition:
  3839. color .3s var(--n-bezier),
  3840. background-color .3s var(--n-bezier),
  3841. box-shadow .3s var(--n-bezier),
  3842. border-color .3s var(--n-bezier);
  3843. box-sizing: border-box;
  3844. width: 100%;
  3845. background-color: var(--n-color);
  3846. color: var(--n-text-color);
  3847. `,[j("absolute-positioned",`
  3848. position: absolute;
  3849. left: 0;
  3850. right: 0;
  3851. top: 0;
  3852. `),j("bordered",`
  3853. border-bottom: solid 1px var(--n-border-color);
  3854. `)]),fLe={position:YS,inverted:Boolean,bordered:{type:Boolean,default:!1}},ALe=ge({name:"LayoutHeader",props:Object.assign(Object.assign({},Me.props),fLe),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Layout","-layout-header",dLe,KS,e,t),o=L(()=>{const{common:{cubicBezierEaseInOut:i},self:s}=n.value,l={"--n-bezier":i};return e.inverted?(l["--n-color"]=s.headerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.headerBorderColorInverted):(l["--n-color"]=s.headerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.headerBorderColor),l}),a=r?Et("layout-header",L(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),hLe=P("layout-footer",`
  3855. transition:
  3856. box-shadow .3s var(--n-bezier),
  3857. color .3s var(--n-bezier),
  3858. background-color .3s var(--n-bezier),
  3859. border-color .3s var(--n-bezier);
  3860. color: var(--n-text-color);
  3861. background-color: var(--n-color);
  3862. box-sizing: border-box;
  3863. `,[j("absolute-positioned",`
  3864. position: absolute;
  3865. left: 0;
  3866. right: 0;
  3867. bottom: 0;
  3868. `),j("bordered",`
  3869. border-top: solid 1px var(--n-border-color);
  3870. `)]),vLe=Object.assign(Object.assign({},Me.props),{inverted:Boolean,position:YS,bordered:Boolean}),pLe=ge({name:"LayoutFooter",props:vLe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Layout","-layout-footer",hLe,KS,e,t),o=L(()=>{const{common:{cubicBezierEaseInOut:i},self:s}=n.value,l={"--n-bezier":i};return e.inverted?(l["--n-color"]=s.footerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.footerBorderColorInverted):(l["--n-color"]=s.footerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.footerBorderColor),l}),a=r?Et("layout-footer",L(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),gLe=P("layout-sider",`
  3871. flex-shrink: 0;
  3872. box-sizing: border-box;
  3873. position: relative;
  3874. z-index: 1;
  3875. color: var(--n-text-color);
  3876. transition:
  3877. color .3s var(--n-bezier),
  3878. border-color .3s var(--n-bezier),
  3879. min-width .3s var(--n-bezier),
  3880. max-width .3s var(--n-bezier),
  3881. transform .3s var(--n-bezier),
  3882. background-color .3s var(--n-bezier);
  3883. background-color: var(--n-color);
  3884. display: flex;
  3885. justify-content: flex-end;
  3886. `,[j("bordered",[G("border",`
  3887. content: "";
  3888. position: absolute;
  3889. top: 0;
  3890. bottom: 0;
  3891. width: 1px;
  3892. background-color: var(--n-border-color);
  3893. transition: background-color .3s var(--n-bezier);
  3894. `)]),G("left-placement",[j("bordered",[G("border",`
  3895. right: 0;
  3896. `)])]),j("right-placement",`
  3897. justify-content: flex-start;
  3898. `,[j("bordered",[G("border",`
  3899. left: 0;
  3900. `)]),j("collapsed",[P("layout-toggle-button",[P("base-icon",`
  3901. transform: rotate(180deg);
  3902. `)]),P("layout-toggle-bar",[N("&:hover",[G("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),P("layout-toggle-button",`
  3903. left: 0;
  3904. transform: translateX(-50%) translateY(-50%);
  3905. `,[P("base-icon",`
  3906. transform: rotate(0);
  3907. `)]),P("layout-toggle-bar",`
  3908. left: -28px;
  3909. transform: rotate(180deg);
  3910. `,[N("&:hover",[G("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),j("collapsed",[P("layout-toggle-bar",[N("&:hover",[G("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),P("layout-toggle-button",[P("base-icon",`
  3911. transform: rotate(0);
  3912. `)])]),P("layout-toggle-button",`
  3913. transition:
  3914. color .3s var(--n-bezier),
  3915. right .3s var(--n-bezier),
  3916. left .3s var(--n-bezier),
  3917. border-color .3s var(--n-bezier),
  3918. background-color .3s var(--n-bezier);
  3919. cursor: pointer;
  3920. width: 24px;
  3921. height: 24px;
  3922. position: absolute;
  3923. top: 50%;
  3924. right: 0;
  3925. border-radius: 50%;
  3926. display: flex;
  3927. align-items: center;
  3928. justify-content: center;
  3929. font-size: 18px;
  3930. color: var(--n-toggle-button-icon-color);
  3931. border: var(--n-toggle-button-border);
  3932. background-color: var(--n-toggle-button-color);
  3933. box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
  3934. transform: translateX(50%) translateY(-50%);
  3935. z-index: 1;
  3936. `,[P("base-icon",`
  3937. transition: transform .3s var(--n-bezier);
  3938. transform: rotate(180deg);
  3939. `)]),P("layout-toggle-bar",`
  3940. cursor: pointer;
  3941. height: 72px;
  3942. width: 32px;
  3943. position: absolute;
  3944. top: calc(50% - 36px);
  3945. right: -28px;
  3946. `,[G("top, bottom",`
  3947. position: absolute;
  3948. width: 4px;
  3949. border-radius: 2px;
  3950. height: 38px;
  3951. left: 14px;
  3952. transition:
  3953. background-color .3s var(--n-bezier),
  3954. transform .3s var(--n-bezier);
  3955. `),G("bottom",`
  3956. position: absolute;
  3957. top: 34px;
  3958. `),N("&:hover",[G("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),G("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),N("&:hover",[G("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),G("border",`
  3959. position: absolute;
  3960. top: 0;
  3961. right: 0;
  3962. bottom: 0;
  3963. width: 1px;
  3964. transition: background-color .3s var(--n-bezier);
  3965. `),P("layout-sider-scroll-container",`
  3966. flex-grow: 1;
  3967. flex-shrink: 0;
  3968. box-sizing: border-box;
  3969. height: 100%;
  3970. opacity: 0;
  3971. transition: opacity .3s var(--n-bezier);
  3972. max-width: 100%;
  3973. `),j("show-content",[P("layout-sider-scroll-container",{opacity:1})]),j("absolute-positioned",`
  3974. position: absolute;
  3975. left: 0;
  3976. top: 0;
  3977. bottom: 0;
  3978. `)]),mLe=ge({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return S("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},S(zt,{clsPrefix:e},{default:()=>S($S,null)}))}}),yLe=ge({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return S("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},S("div",{class:`${e}-layout-toggle-bar__top`}),S("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),bLe={position:YS,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},xLe=ge({name:"LayoutSider",props:Object.assign(Object.assign({},Me.props),bLe),setup(e){const t=Ke(pJ),r=q(null),n=q(null),o=L(()=>wr(l.value?e.collapsedWidth:e.width)),a=L(()=>e.collapseMode!=="transform"?{}:{minWidth:wr(e.width)}),i=L(()=>t?t.siderPlacement:"left"),s=q(e.defaultCollapsed),l=Ir(Re(e,"collapsed"),s);function u(x,w){if(e.nativeScrollbar){const{value:C}=r;C&&(w===void 0?C.scrollTo(x):C.scrollTo(x,w))}else{const{value:C}=n;C&&C.scrollTo(x,w)}}function c(){const{"onUpdate:collapsed":x,onUpdateCollapsed:w,onExpand:C,onCollapse:_}=e,{value:B}=l;w&&Te(w,!B),x&&Te(x,!B),s.value=!B,B?C&&Te(C):_&&Te(_)}let d=0,f=0;const A=x=>{var w;const C=x.target;d=C.scrollLeft,f=C.scrollTop,(w=e.onScroll)===null||w===void 0||w.call(e,x)};Ok(()=>{if(e.nativeScrollbar){const x=r.value;x&&(x.scrollTop=f,x.scrollLeft=d)}}),_t(vJ,{collapsedRef:l,collapseModeRef:Re(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=nt(e),p=Me("Layout","-layout-sider",gLe,KS,e,h);function g(x){var w,C;x.propertyName==="max-width"&&(l.value?(w=e.onAfterLeave)===null||w===void 0||w.call(e):(C=e.onAfterEnter)===null||C===void 0||C.call(e))}const m={scrollTo:u},y=L(()=>{const{common:{cubicBezierEaseInOut:x},self:w}=p.value,{siderToggleButtonColor:C,siderToggleButtonBorder:_,siderToggleBarColor:B,siderToggleBarColorHover:T}=w,E={"--n-bezier":x,"--n-toggle-button-color":C,"--n-toggle-button-border":_,"--n-toggle-bar-color":B,"--n-toggle-bar-color-hover":T};return e.inverted?(E["--n-color"]=w.siderColorInverted,E["--n-text-color"]=w.textColorInverted,E["--n-border-color"]=w.siderBorderColorInverted,E["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColorInverted,E.__invertScrollbar=w.__invertScrollbar):(E["--n-color"]=w.siderColor,E["--n-text-color"]=w.textColor,E["--n-border-color"]=w.siderBorderColor,E["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColor),E}),b=v?Et("layout-sider",L(()=>e.inverted?"a":"b"),y,e):void 0;return Object.assign({scrollableElRef:r,scrollbarInstRef:n,mergedClsPrefix:h,mergedTheme:p,styleMaxWidth:o,mergedCollapsed:l,scrollContainerStyle:a,siderPlacement:i,handleNativeElScroll:A,handleTransitionend:g,handleTriggerClick:c,inlineThemeDisabled:v,cssVars:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender},m)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:r,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,r&&`${t}-layout-sider--collapsed`,(!r||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:wr(this.width)}]},this.nativeScrollbar?S("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):S(Gn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?S(yLe,{clsPrefix:t,style:r?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):S(mLe,{clsPrefix:t,style:r?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?S("div",{class:`${t}-layout-sider__border`}):null)}}),wLe={extraFontSize:"12px",width:"440px"},CLe={name:"Transfer",common:ct,peers:{Checkbox:fp,Scrollbar:Pa,Input:Qi,Empty:DA,Button:Fa},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:n,fontSizeLarge:o,fontSizeMedium:a,fontSizeSmall:i,heightLarge:s,heightMedium:l,heightSmall:u,borderRadius:c,inputColor:d,tableHeaderColor:f,textColor1:A,textColorDisabled:h,textColor2:v,hoverColor:p}=e;return Object.assign(Object.assign({},wLe),{itemHeightSmall:u,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:o,borderRadius:c,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:A,titleTextColorDisabled:h,extraTextColor:v,filterDividerColor:"#0000",itemTextColor:v,itemTextColorDisabled:h,itemColorPending:p,titleFontWeight:n,iconColor:r,iconColorDisabled:t})}},SLe=CLe,_Le=N([P("list",`
  3979. --n-merged-border-color: var(--n-border-color);
  3980. --n-merged-color: var(--n-color);
  3981. --n-merged-color-hover: var(--n-color-hover);
  3982. margin: 0;
  3983. font-size: var(--n-font-size);
  3984. transition:
  3985. background-color .3s var(--n-bezier),
  3986. color .3s var(--n-bezier),
  3987. border-color .3s var(--n-bezier);
  3988. padding: 0;
  3989. list-style-type: none;
  3990. color: var(--n-text-color);
  3991. background-color: var(--n-merged-color);
  3992. `,[j("show-divider",[P("list-item",[N("&:not(:last-child)",[G("divider",`
  3993. background-color: var(--n-merged-border-color);
  3994. `)])])]),j("clickable",[P("list-item",`
  3995. cursor: pointer;
  3996. `)]),j("bordered",`
  3997. border: 1px solid var(--n-merged-border-color);
  3998. border-radius: var(--n-border-radius);
  3999. `),j("hoverable",[P("list-item",`
  4000. border-radius: var(--n-border-radius);
  4001. `,[N("&:hover",`
  4002. background-color: var(--n-merged-color-hover);
  4003. `,[G("divider",`
  4004. background-color: transparent;
  4005. `)])])]),j("bordered, hoverable",[P("list-item",`
  4006. padding: 12px 20px;
  4007. `),G("header, footer",`
  4008. padding: 12px 20px;
  4009. `)]),G("header, footer",`
  4010. padding: 12px 0;
  4011. box-sizing: border-box;
  4012. transition: border-color .3s var(--n-bezier);
  4013. `,[N("&:not(:last-child)",`
  4014. border-bottom: 1px solid var(--n-merged-border-color);
  4015. `)]),P("list-item",`
  4016. position: relative;
  4017. padding: 12px 0;
  4018. box-sizing: border-box;
  4019. display: flex;
  4020. flex-wrap: nowrap;
  4021. align-items: center;
  4022. transition:
  4023. background-color .3s var(--n-bezier),
  4024. border-color .3s var(--n-bezier);
  4025. `,[G("prefix",`
  4026. margin-right: 20px;
  4027. flex: 0;
  4028. `),G("suffix",`
  4029. margin-left: 20px;
  4030. flex: 0;
  4031. `),G("main",`
  4032. flex: 1;
  4033. `),G("divider",`
  4034. height: 1px;
  4035. position: absolute;
  4036. bottom: 0;
  4037. left: 0;
  4038. right: 0;
  4039. background-color: transparent;
  4040. transition: background-color .3s var(--n-bezier);
  4041. pointer-events: none;
  4042. `)])]),_u(P("list",`
  4043. --n-merged-color-hover: var(--n-color-hover-modal);
  4044. --n-merged-color: var(--n-color-modal);
  4045. --n-merged-border-color: var(--n-border-color-modal);
  4046. `)),dd(P("list",`
  4047. --n-merged-color-hover: var(--n-color-hover-popover);
  4048. --n-merged-color: var(--n-color-popover);
  4049. --n-merged-border-color: var(--n-border-color-popover);
  4050. `))]),BLe=Object.assign(Object.assign({},Me.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),mJ="n-list",TLe=ge({name:"List",props:BLe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=nt(e),o=dn("List",n,t),a=Me("List","-list",_Le,aFe,e,t);_t(mJ,{showDividerRef:Re(e,"showDivider"),mergedClsPrefixRef:t});const i=L(()=>{const{common:{cubicBezierEaseInOut:l},self:{fontSize:u,textColor:c,color:d,colorModal:f,colorPopover:A,borderColor:h,borderColorModal:v,borderColorPopover:p,borderRadius:g,colorHover:m,colorHoverModal:y,colorHoverPopover:b}}=a.value;return{"--n-font-size":u,"--n-bezier":l,"--n-text-color":c,"--n-color":d,"--n-border-radius":g,"--n-border-color":h,"--n-border-color-modal":v,"--n-border-color-popover":p,"--n-color-modal":f,"--n-color-popover":A,"--n-color-hover":m,"--n-color-hover-modal":y,"--n-color-hover-popover":b}}),s=r?Et("list",void 0,i,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:r?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),S("ul",{class:[`${r}-list`,this.rtlEnabled&&`${r}-list--rtl`,this.bordered&&`${r}-list--bordered`,this.showDivider&&`${r}-list--show-divider`,this.hoverable&&`${r}-list--hoverable`,this.clickable&&`${r}-list--clickable`,this.themeClass],style:this.cssVars},t.header?S("div",{class:`${r}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?S("div",{class:`${r}-list__footer`},t.footer()):null)}}),ELe=ge({name:"ListItem",setup(){const e=Ke(mJ,null);return e||$o("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return S("li",{class:`${t}-list-item`},e.prefix?S("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?S("div",{class:`${t}-list-item__main`},e):null,e.suffix?S("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&S("div",{class:`${t}-list-item__divider`}))}}),yJ="n-loading-bar",bJ="n-loading-bar-api",ILe=P("loading-bar-container",`
  4051. z-index: 5999;
  4052. position: fixed;
  4053. top: 0;
  4054. left: 0;
  4055. right: 0;
  4056. height: 2px;
  4057. `,[dA({enterDuration:"0.3s",leaveDuration:"0.8s"}),P("loading-bar",`
  4058. width: 100%;
  4059. transition:
  4060. max-width 4s linear,
  4061. background .2s linear;
  4062. height: var(--n-height);
  4063. `,[j("starting",`
  4064. background: var(--n-color-loading);
  4065. `),j("finishing",`
  4066. background: var(--n-color-loading);
  4067. transition:
  4068. max-width .2s linear,
  4069. background .2s linear;
  4070. `),j("error",`
  4071. background: var(--n-color-error);
  4072. transition:
  4073. max-width .2s linear,
  4074. background .2s linear;
  4075. `)])]);var $2=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};function Gb(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const RLe=ge({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=nt(),{props:t,mergedClsPrefixRef:r}=Ke(yJ),n=q(null),o=q(!1),a=q(!1),i=q(!1),s=q(!1);let l=!1;const u=q(!1),c=L(()=>{const{loadingBarStyle:x}=t;return x?x[u.value?"error":"loading"]:""});function d(){return $2(this,void 0,void 0,function*(){o.value=!1,i.value=!1,l=!1,u.value=!1,s.value=!0,yield dr(),s.value=!1})}function f(x=0,w=80,C="starting"){return $2(this,void 0,void 0,function*(){yield d(),i.value=!0,a.value=!0,yield dr();const _=n.value;_&&(_.style.maxWidth=`${x}%`,_.style.transition="none",_.offsetWidth,_.className=Gb(C,r.value),_.style.transition="",_.style.maxWidth=`${w}%`)})}function A(){if(l||u.value||!i.value)return;l=!0;const x=n.value;x&&(x.className=Gb("finishing",r.value),x.style.maxWidth="100%",x.offsetWidth,i.value=!1)}function h(){if(!(l||u.value))if(!i.value)f(100,100,"error").then(()=>{u.value=!0;const x=n.value;x&&(x.className=Gb("error",r.value),x.offsetWidth,i.value=!1)});else{u.value=!0;const x=n.value;if(!x)return;x.className=Gb("error",r.value),x.style.maxWidth="100%",x.offsetWidth,i.value=!1}}function v(){o.value=!0}function p(){o.value=!1}function g(){return $2(this,void 0,void 0,function*(){yield d()})}const m=Me("LoadingBar","-loading-bar",ILe,fFe,t,r),y=L(()=>{const{self:{height:x,colorError:w,colorLoading:C}}=m.value;return{"--n-height":x,"--n-color-loading":C,"--n-color-error":w}}),b=e?Et("loading-bar",void 0,y,t):void 0;return{mergedClsPrefix:r,loadingBarRef:n,started:a,loading:i,entering:o,transitionDisabled:s,start:f,error:h,finish:A,handleEnter:v,handleAfterEnter:p,handleAfterLeave:g,mergedLoadingBarStyle:c,cssVars:e?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return S(jr,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),en(S("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},S("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Ln,this.loading||!this.loading&&this.entering]])}})}}),DLe=Object.assign(Object.assign({},Me.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),xJ=ge({name:"LoadingBarProvider",props:DLe,setup(e){const t=oi(),r=q(null),n={start(){var a;t.value?(a=r.value)===null||a===void 0||a.start():dr(()=>{var i;(i=r.value)===null||i===void 0||i.start()})},error(){var a;t.value?(a=r.value)===null||a===void 0||a.error():dr(()=>{var i;(i=r.value)===null||i===void 0||i.error()})},finish(){var a;t.value?(a=r.value)===null||a===void 0||a.finish():dr(()=>{var i;(i=r.value)===null||i===void 0||i.finish()})}},{mergedClsPrefixRef:o}=nt(e);return _t(bJ,n),_t(yJ,{props:e,mergedClsPrefixRef:o}),Object.assign(n,{loadingBarRef:r})},render(){var e,t;return S(lr,null,S(np,{disabled:this.to===!1,to:this.to||"body"},S(RLe,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function MLe(){const e=Ke(bJ,null);return e===null&&$o("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const Ry="n-menu",BL="n-submenu",TL="n-menu-item-group",Kb=8;function EL(e){const t=Ke(Ry),{props:r,mergedCollapsedRef:n}=t,o=Ke(BL,null),a=Ke(TL,null),i=L(()=>r.mode==="horizontal"),s=L(()=>i.value?r.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=L(()=>{var f;return Math.max((f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize,r.iconSize)}),u=L(()=>{var f;return!i.value&&e.root&&n.value&&(f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize}),c=L(()=>{if(i.value)return;const{collapsedWidth:f,indent:A,rootIndent:h}=r,{root:v,isGroup:p}=e,g=h===void 0?A:h;if(v)return n.value?f/2-l.value/2:g;if(a)return A/2+a.paddingLeftRef.value;if(o)return(p?A/2:A)+o.paddingLeftRef.value}),d=L(()=>{const{collapsedWidth:f,indent:A,rootIndent:h}=r,{value:v}=l,{root:p}=e;return i.value||!p||!n.value?Kb:(h===void 0?A:h)+v+Kb-(f+v)/2});return{dropdownPlacement:s,activeIconSize:u,maxIconSize:l,paddingLeft:c,iconMarginRight:d,NMenu:t,NSubmenu:o}}const IL={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},wJ=Object.assign(Object.assign({},IL),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),PLe=ge({name:"MenuOptionGroup",props:wJ,setup(e){_t(BL,null);const t=EL(e);_t(TL,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:r,props:n}=Ke(Ry);return function(){const{value:o}=r,a=t.paddingLeft.value,{nodeProps:i}=n,s=i==null?void 0:i(e.tmNode.rawNode);return S("div",{class:`${o}-menu-item-group`,role:"group"},S("div",Object.assign({},s,{class:[`${o}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",a!==void 0?`padding-left: ${a}px;`:""]}),Nr(e.title),e.extra?S(lr,null," ",Nr(e.extra)):null),S("div",null,e.tmNodes.map(l=>RL(l,n))))}}}),CJ=ge({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Ke(Ry);return{menuProps:t,style:L(()=>{const{paddingLeft:r}=e;return{paddingLeft:r&&`${r}px`}}),iconStyle:L(()=>{const{maxIconSize:r,activeIconSize:n,iconMarginRight:o}=e;return{width:`${r}px`,height:`${r}px`,fontSize:`${n}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:r,renderLabel:n,renderExtra:o,expandIcon:a}}=this,i=r?r(t.rawNode):Nr(this.icon);return S("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},i&&S("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[i]),S("div",{class:`${e}-menu-item-content-header`,role:"none"},n?n(t.rawNode):Nr(this.title),this.extra||o?S("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):Nr(this.extra)):null),this.showArrow?S(zt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>a?a(t.rawNode):S(Owe,null)}):null)}}),SJ=Object.assign(Object.assign({},IL),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),FLe=ge({name:"Submenu",props:SJ,setup(e){const t=EL(e),{NMenu:r,NSubmenu:n}=t,{props:o,mergedCollapsedRef:a,mergedThemeRef:i}=r,s=L(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||o.disabled?!0:f}),l=q(!1);_t(BL,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),_t(TL,null);function u(){const{onClick:f}=e;f&&f()}function c(){s.value||(a.value||r.toggleExpand(e.internalKey),u())}function d(f){l.value=f}return{menuProps:o,mergedTheme:i,doSelect:r.doSelect,inverted:r.invertedRef,isHorizontal:r.isHorizontalRef,mergedClsPrefix:r.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:r.mergedValueRef,childActive:Ft(()=>r.activePathRef.value.includes(e.internalKey)),collapsed:L(()=>o.mode==="horizontal"?!1:a.value?!0:!r.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:L(()=>!s.value&&(o.mode==="horizontal"||a.value)),handlePopoverShowChange:d,handleClick:c}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:r,renderLabel:n}}=this,o=()=>{const{isHorizontal:i,paddingLeft:s,collapsed:l,mergedDisabled:u,maxIconSize:c,activeIconSize:d,title:f,childActive:A,icon:h,handleClick:v,menuProps:{nodeProps:p},dropdownShow:g,iconMarginRight:m,tmNode:y,mergedClsPrefix:b}=this,x=p==null?void 0:p(y.rawNode);return S("div",Object.assign({},x,{class:[`${b}-menu-item`,x==null?void 0:x.class],role:"menuitem"}),S(CJ,{tmNode:y,paddingLeft:s,collapsed:l,disabled:u,iconMarginRight:m,maxIconSize:c,activeIconSize:d,title:f,extra:this.extra,showArrow:!i,childActive:A,clsPrefix:b,icon:h,hover:g,onClick:v}))},a=()=>S(bl,null,{default:()=>{const{tmNodes:i,collapsed:s}=this;return s?null:S("div",{class:`${t}-submenu-children`,role:"menu"},i.map(l=>RL(l,this.menuProps)))}});return this.root?S(pL,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:r,renderLabel:n}),{default:()=>S("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:a())}):S("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),a())}}),_J=Object.assign(Object.assign({},IL),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),kLe=ge({name:"MenuOption",props:_J,setup(e){const t=EL(e),{NSubmenu:r,NMenu:n}=t,{props:o,mergedClsPrefixRef:a,mergedCollapsedRef:i}=n,s=r?r.mergedDisabledRef:{value:!1},l=L(()=>s.value||e.disabled);function u(d){const{onClick:f}=e;f&&f(d)}function c(d){l.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),u(d))}return{mergedClsPrefix:a,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:o,dropdownEnabled:Ft(()=>e.root&&i.value&&o.mode!=="horizontal"&&!l.value),selected:Ft(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:c}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:r,menuProps:{renderLabel:n,nodeProps:o}}=this,a=o==null?void 0:o(r.rawNode);return S("div",Object.assign({},a,{role:"menuitem",class:[`${e}-menu-item`,a==null?void 0:a.class]}),S(QS,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(r.rawNode):Nr(this.title),trigger:()=>S(CJ,{tmNode:r,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),LLe=ge({name:"MenuDivider",setup(){const e=Ke(Ry),{mergedClsPrefixRef:t,isHorizontalRef:r}=e;return()=>r.value?null:S("div",{class:`${t.value}-menu-divider`})}}),OLe=cl(wJ),$Le=cl(_J),ULe=cl(SJ);function BJ(e){return e.type==="divider"||e.type==="render"}function NLe(e){return e.type==="divider"}function RL(e,t){const{rawNode:r}=e,{show:n}=r;if(n===!1)return null;if(BJ(r))return NLe(r)?S(LLe,Object.assign({key:e.key},r.props)):null;const{labelField:o}=t,{key:a,level:i,isGroup:s}=e,l=Object.assign(Object.assign({},r),{title:r.title||r[o],extra:r.titleExtra||r.extra,key:a,internalKey:a,level:i,root:i===0,isGroup:s});return e.children?e.isGroup?S(PLe,Xa(l,OLe,{tmNode:e,tmNodes:e.children,key:a})):S(FLe,Xa(l,ULe,{key:a,rawNodes:r[t.childrenField],tmNodes:e.children,tmNode:e})):S(kLe,Xa(l,$Le,{key:a,tmNode:e}))}const hN=[N("&::before","background-color: var(--n-item-color-hover);"),G("arrow",`
  4076. color: var(--n-arrow-color-hover);
  4077. `),G("icon",`
  4078. color: var(--n-item-icon-color-hover);
  4079. `),P("menu-item-content-header",`
  4080. color: var(--n-item-text-color-hover);
  4081. `,[N("a",`
  4082. color: var(--n-item-text-color-hover);
  4083. `),G("extra",`
  4084. color: var(--n-item-text-color-hover);
  4085. `)])],vN=[G("icon",`
  4086. color: var(--n-item-icon-color-hover-horizontal);
  4087. `),P("menu-item-content-header",`
  4088. color: var(--n-item-text-color-hover-horizontal);
  4089. `,[N("a",`
  4090. color: var(--n-item-text-color-hover-horizontal);
  4091. `),G("extra",`
  4092. color: var(--n-item-text-color-hover-horizontal);
  4093. `)])],HLe=N([P("menu",`
  4094. background-color: var(--n-color);
  4095. color: var(--n-item-text-color);
  4096. overflow: hidden;
  4097. transition: background-color .3s var(--n-bezier);
  4098. box-sizing: border-box;
  4099. font-size: var(--n-font-size);
  4100. padding-bottom: 6px;
  4101. `,[j("horizontal",`
  4102. display: inline-flex;
  4103. padding-bottom: 0;
  4104. `,[P("submenu","margin: 0;"),P("menu-item","margin: 0;"),P("menu-item-content",`
  4105. padding: 0 20px;
  4106. border-bottom: 2px solid #0000;
  4107. `,[N("&::before","display: none;"),j("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),P("menu-item-content",[j("selected",[G("icon","color: var(--n-item-icon-color-active-horizontal);"),P("menu-item-content-header",`
  4108. color: var(--n-item-text-color-active-horizontal);
  4109. `,[N("a","color: var(--n-item-text-color-active-horizontal);"),G("extra","color: var(--n-item-text-color-active-horizontal);")])]),j("child-active",`
  4110. border-bottom: 2px solid var(--n-border-color-horizontal);
  4111. `,[P("menu-item-content-header",`
  4112. color: var(--n-item-text-color-child-active-horizontal);
  4113. `,[N("a",`
  4114. color: var(--n-item-text-color-child-active-horizontal);
  4115. `),G("extra",`
  4116. color: var(--n-item-text-color-child-active-horizontal);
  4117. `)]),G("icon",`
  4118. color: var(--n-item-icon-color-child-active-horizontal);
  4119. `)]),Wt("disabled",[Wt("selected, child-active",[N("&:focus-within",vN)]),j("selected",[Fd(null,[G("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),P("menu-item-content-header",`
  4120. color: var(--n-item-text-color-active-hover-horizontal);
  4121. `,[N("a","color: var(--n-item-text-color-active-hover-horizontal);"),G("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),j("child-active",[Fd(null,[G("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),P("menu-item-content-header",`
  4122. color: var(--n-item-text-color-child-active-hover-horizontal);
  4123. `,[N("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),G("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Fd("border-bottom: 2px solid var(--n-border-color-horizontal);",vN)]),P("menu-item-content-header",[N("a","color: var(--n-item-text-color-horizontal);")])])]),j("collapsed",[P("menu-item-content",[j("selected",[N("&::before",`
  4124. background-color: var(--n-item-color-active-collapsed) !important;
  4125. `)]),P("menu-item-content-header","opacity: 0;"),G("arrow","opacity: 0;"),G("icon","color: var(--n-item-icon-color-collapsed);")])]),P("menu-item",`
  4126. height: var(--n-item-height);
  4127. margin-top: 6px;
  4128. position: relative;
  4129. `),P("menu-item-content",`
  4130. box-sizing: border-box;
  4131. line-height: 1.75;
  4132. height: 100%;
  4133. display: grid;
  4134. grid-template-areas: "icon content arrow";
  4135. grid-template-columns: auto 1fr auto;
  4136. align-items: center;
  4137. cursor: pointer;
  4138. position: relative;
  4139. padding-right: 18px;
  4140. transition:
  4141. background-color .3s var(--n-bezier),
  4142. padding-left .3s var(--n-bezier),
  4143. border-color .3s var(--n-bezier);
  4144. `,[N("> *","z-index: 1;"),N("&::before",`
  4145. z-index: auto;
  4146. content: "";
  4147. background-color: #0000;
  4148. position: absolute;
  4149. left: 8px;
  4150. right: 8px;
  4151. top: 0;
  4152. bottom: 0;
  4153. pointer-events: none;
  4154. border-radius: var(--n-border-radius);
  4155. transition: background-color .3s var(--n-bezier);
  4156. `),j("disabled",`
  4157. opacity: .45;
  4158. cursor: not-allowed;
  4159. `),j("collapsed",[G("arrow","transform: rotate(0);")]),j("selected",[N("&::before","background-color: var(--n-item-color-active);"),G("arrow","color: var(--n-arrow-color-active);"),G("icon","color: var(--n-item-icon-color-active);"),P("menu-item-content-header",`
  4160. color: var(--n-item-text-color-active);
  4161. `,[N("a","color: var(--n-item-text-color-active);"),G("extra","color: var(--n-item-text-color-active);")])]),j("child-active",[P("menu-item-content-header",`
  4162. color: var(--n-item-text-color-child-active);
  4163. `,[N("a",`
  4164. color: var(--n-item-text-color-child-active);
  4165. `),G("extra",`
  4166. color: var(--n-item-text-color-child-active);
  4167. `)]),G("arrow",`
  4168. color: var(--n-arrow-color-child-active);
  4169. `),G("icon",`
  4170. color: var(--n-item-icon-color-child-active);
  4171. `)]),Wt("disabled",[Wt("selected, child-active",[N("&:focus-within",hN)]),j("selected",[Fd(null,[G("arrow","color: var(--n-arrow-color-active-hover);"),G("icon","color: var(--n-item-icon-color-active-hover);"),P("menu-item-content-header",`
  4172. color: var(--n-item-text-color-active-hover);
  4173. `,[N("a","color: var(--n-item-text-color-active-hover);"),G("extra","color: var(--n-item-text-color-active-hover);")])])]),j("child-active",[Fd(null,[G("arrow","color: var(--n-arrow-color-child-active-hover);"),G("icon","color: var(--n-item-icon-color-child-active-hover);"),P("menu-item-content-header",`
  4174. color: var(--n-item-text-color-child-active-hover);
  4175. `,[N("a","color: var(--n-item-text-color-child-active-hover);"),G("extra","color: var(--n-item-text-color-child-active-hover);")])])]),j("selected",[Fd(null,[N("&::before","background-color: var(--n-item-color-active-hover);")])]),Fd(null,hN)]),G("icon",`
  4176. grid-area: icon;
  4177. color: var(--n-item-icon-color);
  4178. transition:
  4179. color .3s var(--n-bezier),
  4180. font-size .3s var(--n-bezier),
  4181. margin-right .3s var(--n-bezier);
  4182. box-sizing: content-box;
  4183. display: inline-flex;
  4184. align-items: center;
  4185. justify-content: center;
  4186. `),G("arrow",`
  4187. grid-area: arrow;
  4188. font-size: 16px;
  4189. color: var(--n-arrow-color);
  4190. transform: rotate(180deg);
  4191. opacity: 1;
  4192. transition:
  4193. color .3s var(--n-bezier),
  4194. transform 0.2s var(--n-bezier),
  4195. opacity 0.2s var(--n-bezier);
  4196. `),P("menu-item-content-header",`
  4197. grid-area: content;
  4198. transition:
  4199. color .3s var(--n-bezier),
  4200. opacity .3s var(--n-bezier);
  4201. opacity: 1;
  4202. white-space: nowrap;
  4203. overflow: hidden;
  4204. text-overflow: ellipsis;
  4205. color: var(--n-item-text-color);
  4206. `,[N("a",`
  4207. outline: none;
  4208. text-decoration: none;
  4209. transition: color .3s var(--n-bezier);
  4210. color: var(--n-item-text-color);
  4211. `,[N("&::before",`
  4212. content: "";
  4213. position: absolute;
  4214. left: 0;
  4215. right: 0;
  4216. top: 0;
  4217. bottom: 0;
  4218. `)]),G("extra",`
  4219. font-size: .93em;
  4220. color: var(--n-group-text-color);
  4221. transition: color .3s var(--n-bezier);
  4222. `)])]),P("submenu",`
  4223. cursor: pointer;
  4224. position: relative;
  4225. margin-top: 6px;
  4226. `,[P("menu-item-content",`
  4227. height: var(--n-item-height);
  4228. `),P("submenu-children",`
  4229. overflow: hidden;
  4230. padding: 0;
  4231. `,[fu({duration:".2s"})])]),P("menu-item-group",[P("menu-item-group-title",`
  4232. margin-top: 6px;
  4233. color: var(--n-group-text-color);
  4234. cursor: default;
  4235. font-size: .93em;
  4236. height: 36px;
  4237. display: flex;
  4238. align-items: center;
  4239. transition:
  4240. padding-left .3s var(--n-bezier),
  4241. color .3s var(--n-bezier);
  4242. `)])]),P("menu-tooltip",[N("a",`
  4243. color: inherit;
  4244. text-decoration: none;
  4245. `)]),P("menu-divider",`
  4246. transition: background-color .3s var(--n-bezier);
  4247. background-color: var(--n-divider-color);
  4248. height: 1px;
  4249. margin: 6px 18px;
  4250. `)]);function Fd(e,t){return[j("hover",e,t),N("&:hover",e,t)]}const zLe=Object.assign(Object.assign({},Me.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),QLe=ge({name:"Menu",props:zLe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Menu","-menu",HLe,yFe,e,t),o=Ke(vJ,null),a=L(()=>{var _;const{collapsed:B}=e;if(B!==void 0)return B;if(o){const{collapseModeRef:T,collapsedRef:E}=o;if(T.value==="width")return(_=E.value)!==null&&_!==void 0?_:!1}return!1}),i=L(()=>{const{keyField:_,childrenField:B,disabledField:T}=e;return up(e.items||e.options,{getIgnored(E){return BJ(E)},getChildren(E){return E[B]},getDisabled(E){return E[T]},getKey(E){var I;return(I=E[_])!==null&&I!==void 0?I:E.name}})}),s=L(()=>new Set(i.value.treeNodes.map(_=>_.key))),{watchProps:l}=e,u=q(null);l!=null&&l.includes("defaultValue")?Sr(()=>{u.value=e.defaultValue}):u.value=e.defaultValue;const c=Re(e,"value"),d=Ir(c,u),f=q([]),A=()=>{f.value=e.defaultExpandAll?i.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||i.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Sr(A):A();const h=Kc(e,["expandedNames","expandedKeys"]),v=Ir(h,f),p=L(()=>i.value.treeNodes),g=L(()=>i.value.getPath(d.value).keyPath);_t(Ry,{props:e,mergedCollapsedRef:a,mergedThemeRef:n,mergedValueRef:d,mergedExpandedKeysRef:v,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:L(()=>e.mode==="horizontal"),invertedRef:Re(e,"inverted"),doSelect:m,toggleExpand:b});function m(_,B){const{"onUpdate:value":T,onUpdateValue:E,onSelect:I}=e;E&&Te(E,_,B),T&&Te(T,_,B),I&&Te(I,_,B),u.value=_}function y(_){const{"onUpdate:expandedKeys":B,onUpdateExpandedKeys:T,onExpandedNamesChange:E,onOpenNamesChange:I}=e;B&&Te(B,_),T&&Te(T,_),E&&Te(E,_),I&&Te(I,_),f.value=_}function b(_){const B=Array.from(v.value),T=B.findIndex(E=>E===_);if(~T)B.splice(T,1);else{if(e.accordion&&s.value.has(_)){const E=B.findIndex(I=>s.value.has(I));E>-1&&B.splice(E,1)}B.push(_)}y(B)}const x=_=>{const B=i.value.getPath(_!=null?_:d.value,{includeSelf:!1}).keyPath;if(!B.length)return;const T=Array.from(v.value),E=new Set([...T,...B]);e.accordion&&s.value.forEach(I=>{E.has(I)&&!B.includes(I)&&E.delete(I)}),y(Array.from(E))},w=L(()=>{const{inverted:_}=e,{common:{cubicBezierEaseInOut:B},self:T}=n.value,{borderRadius:E,borderColorHorizontal:I,fontSize:R,itemHeight:D,dividerColor:F}=T,M={"--n-divider-color":F,"--n-bezier":B,"--n-font-size":R,"--n-border-color-horizontal":I,"--n-border-radius":E,"--n-item-height":D};return _?(M["--n-group-text-color"]=T.groupTextColorInverted,M["--n-color"]=T.colorInverted,M["--n-item-text-color"]=T.itemTextColorInverted,M["--n-item-text-color-hover"]=T.itemTextColorHoverInverted,M["--n-item-text-color-active"]=T.itemTextColorActiveInverted,M["--n-item-text-color-child-active"]=T.itemTextColorChildActiveInverted,M["--n-item-text-color-child-active-hover"]=T.itemTextColorChildActiveInverted,M["--n-item-text-color-active-hover"]=T.itemTextColorActiveHoverInverted,M["--n-item-icon-color"]=T.itemIconColorInverted,M["--n-item-icon-color-hover"]=T.itemIconColorHoverInverted,M["--n-item-icon-color-active"]=T.itemIconColorActiveInverted,M["--n-item-icon-color-active-hover"]=T.itemIconColorActiveHoverInverted,M["--n-item-icon-color-child-active"]=T.itemIconColorChildActiveInverted,M["--n-item-icon-color-child-active-hover"]=T.itemIconColorChildActiveHoverInverted,M["--n-item-icon-color-collapsed"]=T.itemIconColorCollapsedInverted,M["--n-item-text-color-horizontal"]=T.itemTextColorHorizontalInverted,M["--n-item-text-color-hover-horizontal"]=T.itemTextColorHoverHorizontalInverted,M["--n-item-text-color-active-horizontal"]=T.itemTextColorActiveHorizontalInverted,M["--n-item-text-color-child-active-horizontal"]=T.itemTextColorChildActiveHorizontalInverted,M["--n-item-text-color-child-active-hover-horizontal"]=T.itemTextColorChildActiveHoverHorizontalInverted,M["--n-item-text-color-active-hover-horizontal"]=T.itemTextColorActiveHoverHorizontalInverted,M["--n-item-icon-color-horizontal"]=T.itemIconColorHorizontalInverted,M["--n-item-icon-color-hover-horizontal"]=T.itemIconColorHoverHorizontalInverted,M["--n-item-icon-color-active-horizontal"]=T.itemIconColorActiveHorizontalInverted,M["--n-item-icon-color-active-hover-horizontal"]=T.itemIconColorActiveHoverHorizontalInverted,M["--n-item-icon-color-child-active-horizontal"]=T.itemIconColorChildActiveHorizontalInverted,M["--n-item-icon-color-child-active-hover-horizontal"]=T.itemIconColorChildActiveHoverHorizontalInverted,M["--n-arrow-color"]=T.arrowColorInverted,M["--n-arrow-color-hover"]=T.arrowColorHoverInverted,M["--n-arrow-color-active"]=T.arrowColorActiveInverted,M["--n-arrow-color-active-hover"]=T.arrowColorActiveHoverInverted,M["--n-arrow-color-child-active"]=T.arrowColorChildActiveInverted,M["--n-arrow-color-child-active-hover"]=T.arrowColorChildActiveHoverInverted,M["--n-item-color-hover"]=T.itemColorHoverInverted,M["--n-item-color-active"]=T.itemColorActiveInverted,M["--n-item-color-active-hover"]=T.itemColorActiveHoverInverted,M["--n-item-color-active-collapsed"]=T.itemColorActiveCollapsedInverted):(M["--n-group-text-color"]=T.groupTextColor,M["--n-color"]=T.color,M["--n-item-text-color"]=T.itemTextColor,M["--n-item-text-color-hover"]=T.itemTextColorHover,M["--n-item-text-color-active"]=T.itemTextColorActive,M["--n-item-text-color-child-active"]=T.itemTextColorChildActive,M["--n-item-text-color-child-active-hover"]=T.itemTextColorChildActiveHover,M["--n-item-text-color-active-hover"]=T.itemTextColorActiveHover,M["--n-item-icon-color"]=T.itemIconColor,M["--n-item-icon-color-hover"]=T.itemIconColorHover,M["--n-item-icon-color-active"]=T.itemIconColorActive,M["--n-item-icon-color-active-hover"]=T.itemIconColorActiveHover,M["--n-item-icon-color-child-active"]=T.itemIconColorChildActive,M["--n-item-icon-color-child-active-hover"]=T.itemIconColorChildActiveHover,M["--n-item-icon-color-collapsed"]=T.itemIconColorCollapsed,M["--n-item-text-color-horizontal"]=T.itemTextColorHorizontal,M["--n-item-text-color-hover-horizontal"]=T.itemTextColorHoverHorizontal,M["--n-item-text-color-active-horizontal"]=T.itemTextColorActiveHorizontal,M["--n-item-text-color-child-active-horizontal"]=T.itemTextColorChildActiveHorizontal,M["--n-item-text-color-child-active-hover-horizontal"]=T.itemTextColorChildActiveHoverHorizontal,M["--n-item-text-color-active-hover-horizontal"]=T.itemTextColorActiveHoverHorizontal,M["--n-item-icon-color-horizontal"]=T.itemIconColorHorizontal,M["--n-item-icon-color-hover-horizontal"]=T.itemIconColorHoverHorizontal,M["--n-item-icon-color-active-horizontal"]=T.itemIconColorActiveHorizontal,M["--n-item-icon-color-active-hover-horizontal"]=T.itemIconColorActiveHoverHorizontal,M["--n-item-icon-color-child-active-horizontal"]=T.itemIconColorChildActiveHorizontal,M["--n-item-icon-color-child-active-hover-horizontal"]=T.itemIconColorChildActiveHoverHorizontal,M["--n-arrow-color"]=T.arrowColor,M["--n-arrow-color-hover"]=T.arrowColorHover,M["--n-arrow-color-active"]=T.arrowColorActive,M["--n-arrow-color-active-hover"]=T.arrowColorActiveHover,M["--n-arrow-color-child-active"]=T.arrowColorChildActive,M["--n-arrow-color-child-active-hover"]=T.arrowColorChildActiveHover,M["--n-item-color-hover"]=T.itemColorHover,M["--n-item-color-active"]=T.itemColorActive,M["--n-item-color-active-hover"]=T.itemColorActiveHover,M["--n-item-color-active-collapsed"]=T.itemColorActiveCollapsed),M}),C=r?Et("menu",L(()=>e.inverted?"a":"b"),w,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:f,mergedExpandedKeys:v,uncontrolledValue:u,mergedValue:d,activePath:g,tmNodes:p,mergedTheme:n,mergedCollapsed:a,cssVars:r?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender,showOption:x}},render(){const{mergedClsPrefix:e,mode:t,themeClass:r,onRender:n}=this;return n==null||n(),S("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,r,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>RL(o,this.$props)))}}),TJ={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},EJ="n-message-api",IJ="n-message-provider",VLe=N([P("message-wrapper",`
  4251. margin: var(--n-margin);
  4252. z-index: 0;
  4253. transform-origin: top center;
  4254. display: flex;
  4255. `,[fu({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),P("message",`
  4256. box-sizing: border-box;
  4257. display: flex;
  4258. align-items: center;
  4259. transition:
  4260. color .3s var(--n-bezier),
  4261. box-shadow .3s var(--n-bezier),
  4262. background-color .3s var(--n-bezier),
  4263. opacity .3s var(--n-bezier),
  4264. transform .3s var(--n-bezier),
  4265. margin-bottom .3s var(--n-bezier);
  4266. padding: var(--n-padding);
  4267. border-radius: var(--n-border-radius);
  4268. flex-wrap: nowrap;
  4269. overflow: hidden;
  4270. max-width: var(--n-max-width);
  4271. color: var(--n-text-color);
  4272. background-color: var(--n-color);
  4273. box-shadow: var(--n-box-shadow);
  4274. `,[G("content",`
  4275. display: inline-block;
  4276. line-height: var(--n-line-height);
  4277. font-size: var(--n-font-size);
  4278. `),G("icon",`
  4279. position: relative;
  4280. margin: var(--n-icon-margin);
  4281. height: var(--n-icon-size);
  4282. width: var(--n-icon-size);
  4283. font-size: var(--n-icon-size);
  4284. flex-shrink: 0;
  4285. `,[["default","info","success","warning","error","loading"].map(e=>j(`${e}-type`,[N("> *",`
  4286. color: var(--n-icon-color-${e});
  4287. transition: color .3s var(--n-bezier);
  4288. `)])),N("> *",`
  4289. position: absolute;
  4290. left: 0;
  4291. top: 0;
  4292. right: 0;
  4293. bottom: 0;
  4294. `,[Jn()])]),G("close",`
  4295. margin: var(--n-close-margin);
  4296. transition:
  4297. background-color .3s var(--n-bezier),
  4298. color .3s var(--n-bezier);
  4299. flex-shrink: 0;
  4300. `,[N("&:hover",`
  4301. color: var(--n-close-icon-color-hover);
  4302. `),N("&:active",`
  4303. color: var(--n-close-icon-color-pressed);
  4304. `)])]),P("message-container",`
  4305. z-index: 6000;
  4306. position: fixed;
  4307. height: 0;
  4308. overflow: visible;
  4309. display: flex;
  4310. flex-direction: column;
  4311. align-items: center;
  4312. `,[j("top",`
  4313. top: 12px;
  4314. left: 0;
  4315. right: 0;
  4316. `),j("top-left",`
  4317. top: 12px;
  4318. left: 12px;
  4319. right: 0;
  4320. align-items: flex-start;
  4321. `),j("top-right",`
  4322. top: 12px;
  4323. left: 0;
  4324. right: 12px;
  4325. align-items: flex-end;
  4326. `),j("bottom",`
  4327. bottom: 4px;
  4328. left: 0;
  4329. right: 0;
  4330. justify-content: flex-end;
  4331. `),j("bottom-left",`
  4332. bottom: 4px;
  4333. left: 12px;
  4334. right: 0;
  4335. justify-content: flex-end;
  4336. align-items: flex-start;
  4337. `),j("bottom-right",`
  4338. bottom: 4px;
  4339. left: 0;
  4340. right: 12px;
  4341. justify-content: flex-end;
  4342. align-items: flex-end;
  4343. `)])]),WLe={info:()=>S(ed,null),success:()=>S(IA,null),warning:()=>S(RA,null),error:()=>S(EA,null),default:()=>null},GLe=ge({name:"Message",props:Object.assign(Object.assign({},TJ),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=nt(e),{props:n,mergedClsPrefixRef:o}=Ke(IJ),a=dn("Message",r,o),i=Me("Message","-message",VLe,VPe,n,o),s=L(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:c},self:{padding:d,margin:f,maxWidth:A,iconMargin:h,closeMargin:v,closeSize:p,iconSize:g,fontSize:m,lineHeight:y,borderRadius:b,iconColorInfo:x,iconColorSuccess:w,iconColorWarning:C,iconColorError:_,iconColorLoading:B,closeIconSize:T,closeBorderRadius:E,[_e("textColor",u)]:I,[_e("boxShadow",u)]:R,[_e("color",u)]:D,[_e("closeColorHover",u)]:F,[_e("closeColorPressed",u)]:M,[_e("closeIconColor",u)]:$,[_e("closeIconColorPressed",u)]:O,[_e("closeIconColorHover",u)]:Q}}=i.value;return{"--n-bezier":c,"--n-margin":f,"--n-padding":d,"--n-max-width":A,"--n-font-size":m,"--n-icon-margin":h,"--n-icon-size":g,"--n-close-icon-size":T,"--n-close-border-radius":E,"--n-close-size":p,"--n-close-margin":v,"--n-text-color":I,"--n-color":D,"--n-box-shadow":R,"--n-icon-color-info":x,"--n-icon-color-success":w,"--n-icon-color-warning":C,"--n-icon-color-error":_,"--n-icon-color-loading":B,"--n-close-color-hover":F,"--n-close-color-pressed":M,"--n-close-icon-color":$,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":Q,"--n-line-height":y,"--n-border-radius":b}}),l=t?Et("message",L(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:a,messageProviderProps:n,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:r,content:n,mergedClsPrefix:o,cssVars:a,themeClass:i,onRender:s,icon:l,handleClose:u,showIcon:c}=this;s==null||s();let d;return S("div",{class:[`${o}-message-wrapper`,i],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},a]},e?e(this.$props):S("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(d=KLe(l,t,o))&&c?S("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},S(yl,null,{default:()=>d})):null,S("div",{class:`${o}-message__content`},Nr(n)),r?S(pd,{clsPrefix:o,class:`${o}-message__close`,onClick:u,absolute:!0}):null))}});function KLe(e,t,r){if(typeof e=="function")return e();{const n=t==="loading"?S(Eu,{clsPrefix:r,strokeWidth:24,scale:.85}):WLe[t]();return n?S(zt,{clsPrefix:r,key:t},{default:()=>n}):null}}const jLe=ge({name:"MessageEnvironment",props:Object.assign(Object.assign({},TJ),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=q(!0);yr(()=>{n()});function n(){const{duration:c}=e;c&&(t=window.setTimeout(i,c))}function o(c){c.currentTarget===c.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(c){c.currentTarget===c.target&&n()}function i(){const{onHide:c}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),c&&c()}function s(){const{onClose:c}=e;c&&c(),i()}function l(){const{onAfterLeave:c,onInternalAfterLeave:d,onAfterHide:f,internalKey:A}=e;c&&c(),d&&d(A),f&&f()}function u(){i()}return{show:r,hide:i,handleClose:s,handleAfterLeave:l,handleMouseleave:a,handleMouseenter:o,deactivate:u}},render(){return S(bl,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?S(GLe,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),YLe=Object.assign(Object.assign({},Me.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),RJ=ge({name:"MessageProvider",props:YLe,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=q([]),n=q({}),o={create(l,u){return a(l,Object.assign({type:"default"},u))},info(l,u){return a(l,Object.assign(Object.assign({},u),{type:"info"}))},success(l,u){return a(l,Object.assign(Object.assign({},u),{type:"success"}))},warning(l,u){return a(l,Object.assign(Object.assign({},u),{type:"warning"}))},error(l,u){return a(l,Object.assign(Object.assign({},u),{type:"error"}))},loading(l,u){return a(l,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:s};_t(IJ,{props:e,mergedClsPrefixRef:t}),_t(EJ,o);function a(l,u){const c=Pi(),d=Ni(Object.assign(Object.assign({},u),{content:l,key:c,destroy:()=>{var A;(A=n.value[c])===null||A===void 0||A.hide()}})),{max:f}=e;return f&&r.value.length>=f&&r.value.shift(),r.value.push(d),d}function i(l){r.value.splice(r.value.findIndex(u=>u.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:r,handleAfterLeave:i},o)},render(){var e,t,r;return S(lr,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?S(np,{to:(r=this.to)!==null&&r!==void 0?r:"body"},S("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(n=>S(jLe,Object.assign({ref:o=>{o&&(this.messageRefs[n.key]=o)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},ap(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function XLe(){const e=Ke(EJ,null);return e===null&&$o("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const XS="n-notification-provider",qLe=ge({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=Ke(XS),n=q(null);return Sr(()=>{var o,a;r.value>0?(o=n==null?void 0:n.value)===null||o===void 0||o.classList.add("transitioning"):(a=n==null?void 0:n.value)===null||a===void 0||a.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:n,placement:o}=this;return S("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${o}`]},t?S(Gn,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),ZLe={info:()=>S(ed,null),success:()=>S(IA,null),warning:()=>S(RA,null),error:()=>S(EA,null),default:()=>null},DL={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},JLe=cl(DL),eOe=ge({name:"Notification",props:DL,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:n}=Ke(XS),{inlineThemeDisabled:o,mergedRtlRef:a}=nt(),i=dn("Notification",a,t),s=L(()=>{const{type:u}=e,{self:{color:c,textColor:d,closeIconColor:f,closeIconColorHover:A,closeIconColorPressed:h,headerTextColor:v,descriptionTextColor:p,actionTextColor:g,borderRadius:m,headerFontWeight:y,boxShadow:b,lineHeight:x,fontSize:w,closeMargin:C,closeSize:_,width:B,padding:T,closeIconSize:E,closeBorderRadius:I,closeColorHover:R,closeColorPressed:D,titleFontSize:F,metaFontSize:M,descriptionFontSize:$,[_e("iconColor",u)]:O},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:W}}=r.value,{left:Z,right:te,top:ae,bottom:re}=Tc(T);return{"--n-color":c,"--n-font-size":w,"--n-text-color":d,"--n-description-text-color":p,"--n-action-text-color":g,"--n-title-text-color":v,"--n-title-font-weight":y,"--n-bezier":W,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":m,"--n-box-shadow":b,"--n-close-border-radius":I,"--n-close-color-hover":R,"--n-close-color-pressed":D,"--n-close-icon-color":f,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":h,"--n-line-height":x,"--n-icon-color":O,"--n-close-margin":C,"--n-close-size":_,"--n-close-icon-size":E,"--n-width":B,"--n-padding-left":Z,"--n-padding-right":te,"--n-padding-top":ae,"--n-padding-bottom":re,"--n-title-font-size":F,"--n-meta-font-size":M,"--n-description-font-size":$}}),l=o?Et("notification",L(()=>e.type[0]),s,n):void 0;return{mergedClsPrefix:t,showAvatar:L(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:i,cssVars:o?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},S("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?S("div",{class:`${t}-notification__avatar`},this.avatar?Nr(this.avatar):this.type!=="default"?S(zt,{clsPrefix:t},{default:()=>ZLe[this.type]()}):null):null,this.closable?S(pd,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,S("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?S("div",{class:`${t}-notification-main__header`},Nr(this.title)):null,this.description?S("div",{class:`${t}-notification-main__description`},Nr(this.description)):null,this.content?S("pre",{class:`${t}-notification-main__content`},Nr(this.content)):null,this.meta||this.action?S("div",{class:`${t}-notification-main-footer`},this.meta?S("div",{class:`${t}-notification-main-footer__meta`},Nr(this.meta)):null,this.action?S("div",{class:`${t}-notification-main-footer__action`},Nr(this.action)):null):null)))}}),tOe=Object.assign(Object.assign({},DL),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),rOe=ge({name:"NotificationEnvironment",props:Object.assign(Object.assign({},tOe),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ke(XS),r=q(!0);let n=null;function o(){r.value=!1,n&&window.clearTimeout(n)}function a(h){t.value++,dr(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function i(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:v,onAfterShow:p}=e;v&&v(),p&&p()}function s(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function l(h){const{onHide:v}=e;v&&v(),h.style.maxHeight="0",h.offsetHeight}function u(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:v,onAfterHide:p,internalKey:g}=e;h&&h(),v(g),p&&p()}function c(){const{duration:h}=e;h&&(n=window.setTimeout(o,h))}function d(h){h.currentTarget===h.target&&n!==null&&(window.clearTimeout(n),n=null)}function f(h){h.currentTarget===h.target&&c()}function A(){const{onClose:h}=e;h?Promise.resolve(h()).then(v=>{v!==!1&&o()}):o()}return yr(()=>{e.duration&&(n=window.setTimeout(o,e.duration))}),{show:r,hide:o,handleClose:A,handleAfterLeave:u,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:i,handleBeforeEnter:a,handleMouseenter:d,handleMouseleave:f}},render(){return S(jr,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?S(eOe,Object.assign({},Xa(this.$props,JLe),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),nOe=N([P("notification-container",`
  4344. z-index: 4000;
  4345. position: fixed;
  4346. overflow: visible;
  4347. display: flex;
  4348. flex-direction: column;
  4349. align-items: flex-end;
  4350. `,[N(">",[P("scrollbar",`
  4351. width: initial;
  4352. overflow: visible;
  4353. height: -moz-fit-content !important;
  4354. height: fit-content !important;
  4355. max-height: 100vh !important;
  4356. `,[N(">",[P("scrollbar-container",`
  4357. height: -moz-fit-content !important;
  4358. height: fit-content !important;
  4359. max-height: 100vh !important;
  4360. `,[P("scrollbar-content",`
  4361. padding-top: 12px;
  4362. padding-bottom: 33px;
  4363. `)])])])]),j("top, top-right, top-left",`
  4364. top: 12px;
  4365. `,[N("&.transitioning >",[P("scrollbar",[N(">",[P("scrollbar-container",`
  4366. min-height: 100vh !important;
  4367. `)])])])]),j("bottom, bottom-right, bottom-left",`
  4368. bottom: 12px;
  4369. `,[N(">",[P("scrollbar",[N(">",[P("scrollbar-container",[P("scrollbar-content",`
  4370. padding-bottom: 12px;
  4371. `)])])])]),P("notification-wrapper",`
  4372. display: flex;
  4373. align-items: flex-end;
  4374. margin-bottom: 0;
  4375. margin-top: 12px;
  4376. `)]),j("top, bottom",`
  4377. left: 50%;
  4378. transform: translateX(-50%);
  4379. `,[P("notification-wrapper",[N("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  4380. transform: scale(0.85);
  4381. `),N("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  4382. transform: scale(1);
  4383. `)])]),j("top",[P("notification-wrapper",`
  4384. transform-origin: top center;
  4385. `)]),j("bottom",[P("notification-wrapper",`
  4386. transform-origin: bottom center;
  4387. `)]),j("top-right, bottom-right",[P("notification",`
  4388. margin-left: 28px;
  4389. margin-right: 16px;
  4390. `)]),j("top-left, bottom-left",[P("notification",`
  4391. margin-left: 16px;
  4392. margin-right: 28px;
  4393. `)]),j("top-right",`
  4394. right: 0;
  4395. `,[jb("top-right")]),j("top-left",`
  4396. left: 0;
  4397. `,[jb("top-left")]),j("bottom-right",`
  4398. right: 0;
  4399. `,[jb("bottom-right")]),j("bottom-left",`
  4400. left: 0;
  4401. `,[jb("bottom-left")]),j("scrollable",[j("top-right",`
  4402. top: 0;
  4403. `),j("top-left",`
  4404. top: 0;
  4405. `),j("bottom-right",`
  4406. bottom: 0;
  4407. `),j("bottom-left",`
  4408. bottom: 0;
  4409. `)]),P("notification-wrapper",`
  4410. margin-bottom: 12px;
  4411. `,[N("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  4412. opacity: 0;
  4413. margin-top: 0 !important;
  4414. margin-bottom: 0 !important;
  4415. `),N("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  4416. opacity: 1;
  4417. `),N("&.notification-transition-leave-active",`
  4418. transition:
  4419. background-color .3s var(--n-bezier),
  4420. color .3s var(--n-bezier),
  4421. opacity .3s var(--n-bezier),
  4422. transform .3s var(--n-bezier-ease-in),
  4423. max-height .3s var(--n-bezier),
  4424. margin-top .3s linear,
  4425. margin-bottom .3s linear,
  4426. box-shadow .3s var(--n-bezier);
  4427. `),N("&.notification-transition-enter-active",`
  4428. transition:
  4429. background-color .3s var(--n-bezier),
  4430. color .3s var(--n-bezier),
  4431. opacity .3s var(--n-bezier),
  4432. transform .3s var(--n-bezier-ease-out),
  4433. max-height .3s var(--n-bezier),
  4434. margin-top .3s linear,
  4435. margin-bottom .3s linear,
  4436. box-shadow .3s var(--n-bezier);
  4437. `)]),P("notification",`
  4438. background-color: var(--n-color);
  4439. color: var(--n-text-color);
  4440. transition:
  4441. background-color .3s var(--n-bezier),
  4442. color .3s var(--n-bezier),
  4443. opacity .3s var(--n-bezier),
  4444. box-shadow .3s var(--n-bezier);
  4445. font-family: inherit;
  4446. font-size: var(--n-font-size);
  4447. font-weight: 400;
  4448. position: relative;
  4449. display: flex;
  4450. overflow: hidden;
  4451. flex-shrink: 0;
  4452. padding-left: var(--n-padding-left);
  4453. padding-right: var(--n-padding-right);
  4454. width: var(--n-width);
  4455. border-radius: var(--n-border-radius);
  4456. box-shadow: var(--n-box-shadow);
  4457. box-sizing: border-box;
  4458. opacity: 1;
  4459. `,[G("avatar",[P("icon",{color:"var(--n-icon-color)"}),P("base-icon",{color:"var(--n-icon-color)"})]),j("show-avatar",[P("notification-main",`
  4460. margin-left: 40px;
  4461. width: calc(100% - 40px);
  4462. `)]),j("closable",[P("notification-main",[N("> *:first-child",{paddingRight:"20px"})]),G("close",`
  4463. position: absolute;
  4464. top: 0;
  4465. right: 0;
  4466. margin: var(--n-close-margin);
  4467. transition:
  4468. background-color .3s var(--n-bezier),
  4469. color .3s var(--n-bezier);
  4470. `)]),G("avatar",`
  4471. position: absolute;
  4472. top: var(--n-padding-top);
  4473. left: var(--n-padding-left);
  4474. width: 28px;
  4475. height: 28px;
  4476. font-size: 28px;
  4477. display: flex;
  4478. align-items: center;
  4479. justify-content: center;
  4480. `,[P("icon","transition: color .3s var(--n-bezier);")]),P("notification-main",`
  4481. padding-top: var(--n-padding-top);
  4482. padding-bottom: var(--n-padding-bottom);
  4483. box-sizing: border-box;
  4484. display: flex;
  4485. flex-direction: column;
  4486. margin-left: 8px;
  4487. width: calc(100% - 8px);
  4488. `,[P("notification-main-footer",`
  4489. display: flex;
  4490. align-items: center;
  4491. justify-content: space-between;
  4492. margin-top: 12px;
  4493. `,[G("meta",`
  4494. font-size: var(--n-meta-font-size);
  4495. transition: color .3s var(--n-bezier-ease-out);
  4496. color: var(--n-description-text-color);
  4497. `),G("action",`
  4498. cursor: pointer;
  4499. transition: color .3s var(--n-bezier-ease-out);
  4500. color: var(--n-action-text-color);
  4501. `)]),G("header",`
  4502. font-weight: var(--n-title-font-weight);
  4503. font-size: var(--n-title-font-size);
  4504. transition: color .3s var(--n-bezier-ease-out);
  4505. color: var(--n-title-text-color);
  4506. `),G("description",`
  4507. margin-top: 8px;
  4508. font-size: var(--n-description-font-size);
  4509. transition: color .3s var(--n-bezier-ease-out);
  4510. color: var(--n-description-text-color);
  4511. `),G("content",`
  4512. line-height: var(--n-line-height);
  4513. margin: 12px 0 0 0;
  4514. font-family: inherit;
  4515. white-space: pre-wrap;
  4516. word-wrap: break-word;
  4517. transition: color .3s var(--n-bezier-ease-out);
  4518. color: var(--n-text-color);
  4519. `,[N("&:first-child",{margin:0})])])])])]);function jb(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",n="0";return P("notification-wrapper",[N("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  4520. transform: translate(${r}, 0);
  4521. `),N("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  4522. transform: translate(${n}, 0);
  4523. `)])}const oOe="n-notification-api",aOe=Object.assign(Object.assign({},Me.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),DJ=ge({name:"NotificationProvider",props:aOe,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=q([]),n={},o=new Set;function a(A){const h=Pi(),v=()=>{o.add(h),n[h]&&n[h].hide()},p=Ni(Object.assign(Object.assign({},A),{key:h,destroy:v,hide:v,deactivate:v})),{max:g}=e;if(g&&r.value.length-o.size>=g){let m=!1,y=0;for(const b of r.value){if(!o.has(b.key)){n[b.key]&&(b.destroy(),m=!0);break}y++}m||r.value.splice(y,1)}return r.value.push(p),p}const i=["info","success","warning","error"].map(A=>h=>a(Object.assign(Object.assign({},h),{type:A})));function s(A){o.delete(A),r.value.splice(r.value.findIndex(h=>h.key===A),1)}const l=Me("Notification","-notification",nOe,UPe,e,t),u={create:a,info:i[0],success:i[1],warning:i[2],error:i[3],open:d,destroyAll:f},c=q(0);_t(oOe,u),_t(XS,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function d(A){return a(A)}function f(){Object.values(r.value).forEach(A=>{A.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:n,handleAfterLeave:s},u)},render(){var e,t,r;const{placement:n}=this;return S(lr,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?S(np,{to:(r=this.to)!==null&&r!==void 0?r:"body"},S(qLe,{style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(o=>S(rOe,Object.assign({ref:a=>{const i=o.key;a===null?delete this.notificationRefs[i]:this.notificationRefs[i]=a}},ap(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}}),iOe=N([P("progress",{display:"inline-block"},[P("progress-icon",`
  4524. color: var(--n-icon-color);
  4525. transition: color .3s var(--n-bezier);
  4526. `),j("line",`
  4527. width: 100%;
  4528. display: block;
  4529. `,[P("progress-content",`
  4530. display: flex;
  4531. align-items: center;
  4532. `,[P("progress-graph",{flex:1})]),P("progress-custom-content",{marginLeft:"14px"}),P("progress-icon",`
  4533. width: 30px;
  4534. padding-left: 14px;
  4535. height: var(--n-icon-size-line);
  4536. line-height: var(--n-icon-size-line);
  4537. font-size: var(--n-icon-size-line);
  4538. `,[j("as-text",`
  4539. color: var(--n-text-color-line-outer);
  4540. text-align: center;
  4541. width: 40px;
  4542. font-size: var(--n-font-size);
  4543. padding-left: 4px;
  4544. transition: color .3s var(--n-bezier);
  4545. `)])]),j("circle, dashboard",{width:"120px"},[P("progress-custom-content",`
  4546. position: absolute;
  4547. left: 50%;
  4548. top: 50%;
  4549. transform: translateX(-50%) translateY(-50%);
  4550. display: flex;
  4551. align-items: center;
  4552. justify-content: center;
  4553. `),P("progress-text",`
  4554. position: absolute;
  4555. left: 50%;
  4556. top: 50%;
  4557. transform: translateX(-50%) translateY(-50%);
  4558. display: flex;
  4559. align-items: center;
  4560. color: inherit;
  4561. font-size: var(--n-font-size-circle);
  4562. color: var(--n-text-color-circle);
  4563. font-weight: var(--n-font-weight-circle);
  4564. transition: color .3s var(--n-bezier);
  4565. white-space: nowrap;
  4566. `),P("progress-icon",`
  4567. position: absolute;
  4568. left: 50%;
  4569. top: 50%;
  4570. transform: translateX(-50%) translateY(-50%);
  4571. display: flex;
  4572. align-items: center;
  4573. color: var(--n-icon-color);
  4574. font-size: var(--n-icon-size-circle);
  4575. `)]),j("multiple-circle",`
  4576. width: 200px;
  4577. color: inherit;
  4578. `,[P("progress-text",`
  4579. font-weight: var(--n-font-weight-circle);
  4580. color: var(--n-text-color-circle);
  4581. position: absolute;
  4582. left: 50%;
  4583. top: 50%;
  4584. transform: translateX(-50%) translateY(-50%);
  4585. display: flex;
  4586. align-items: center;
  4587. justify-content: center;
  4588. transition: color .3s var(--n-bezier);
  4589. `)]),P("progress-content",{position:"relative"}),P("progress-graph",{position:"relative"},[P("progress-graph-circle",[N("svg",{verticalAlign:"bottom"}),P("progress-graph-circle-fill",`
  4590. stroke: var(--n-fill-color);
  4591. transition:
  4592. opacity .3s var(--n-bezier),
  4593. stroke .3s var(--n-bezier),
  4594. stroke-dasharray .3s var(--n-bezier);
  4595. `,[j("empty",{opacity:0})]),P("progress-graph-circle-rail",`
  4596. transition: stroke .3s var(--n-bezier);
  4597. overflow: hidden;
  4598. stroke: var(--n-rail-color);
  4599. `)]),P("progress-graph-line",[j("indicator-inside",[P("progress-graph-line-rail",`
  4600. height: 16px;
  4601. line-height: 16px;
  4602. border-radius: 10px;
  4603. `,[P("progress-graph-line-fill",`
  4604. height: inherit;
  4605. border-radius: 10px;
  4606. `),P("progress-graph-line-indicator",`
  4607. background: #0000;
  4608. white-space: nowrap;
  4609. text-align: right;
  4610. margin-left: 14px;
  4611. margin-right: 14px;
  4612. height: inherit;
  4613. font-size: 12px;
  4614. color: var(--n-text-color-line-inner);
  4615. transition: color .3s var(--n-bezier);
  4616. `)])]),j("indicator-inside-label",`
  4617. height: 16px;
  4618. display: flex;
  4619. align-items: center;
  4620. `,[P("progress-graph-line-rail",`
  4621. flex: 1;
  4622. transition: background-color .3s var(--n-bezier);
  4623. `),P("progress-graph-line-indicator",`
  4624. background: var(--n-fill-color);
  4625. font-size: 12px;
  4626. transform: translateZ(0);
  4627. display: flex;
  4628. vertical-align: middle;
  4629. height: 16px;
  4630. line-height: 16px;
  4631. padding: 0 10px;
  4632. border-radius: 10px;
  4633. position: absolute;
  4634. white-space: nowrap;
  4635. color: var(--n-text-color-line-inner);
  4636. transition:
  4637. right .2s var(--n-bezier),
  4638. color .3s var(--n-bezier),
  4639. background-color .3s var(--n-bezier);
  4640. `)]),P("progress-graph-line-rail",`
  4641. position: relative;
  4642. overflow: hidden;
  4643. height: var(--n-rail-height);
  4644. border-radius: 5px;
  4645. background-color: var(--n-rail-color);
  4646. transition: background-color .3s var(--n-bezier);
  4647. `,[P("progress-graph-line-fill",`
  4648. background: var(--n-fill-color);
  4649. position: relative;
  4650. border-radius: 5px;
  4651. height: inherit;
  4652. width: 100%;
  4653. max-width: 0%;
  4654. transition:
  4655. background-color .3s var(--n-bezier),
  4656. max-width .2s var(--n-bezier);
  4657. `,[j("processing",[N("&::after",`
  4658. content: "";
  4659. background-image: var(--n-line-bg-processing);
  4660. animation: progress-processing-animation 2s var(--n-bezier) infinite;
  4661. `)])])])])])]),N("@keyframes progress-processing-animation",`
  4662. 0% {
  4663. position: absolute;
  4664. left: 0;
  4665. top: 0;
  4666. bottom: 0;
  4667. right: 100%;
  4668. opacity: 1;
  4669. }
  4670. 66% {
  4671. position: absolute;
  4672. left: 0;
  4673. top: 0;
  4674. bottom: 0;
  4675. right: 0;
  4676. opacity: 0;
  4677. }
  4678. 100% {
  4679. position: absolute;
  4680. left: 0;
  4681. top: 0;
  4682. bottom: 0;
  4683. right: 0;
  4684. opacity: 0;
  4685. }
  4686. `)]),sOe={success:S(IA,null),error:S(EA,null),warning:S(RA,null),info:S(ed,null)},lOe=ge({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=L(()=>wr(e.height)),n=L(()=>e.railBorderRadius!==void 0?wr(e.railBorderRadius):e.height!==void 0?wr(e.height,{c:.5}):""),o=L(()=>e.fillBorderRadius!==void 0?wr(e.fillBorderRadius):e.railBorderRadius!==void 0?wr(e.railBorderRadius):e.height!==void 0?wr(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:a,railColor:i,railStyle:s,percentage:l,unit:u,indicatorTextColor:c,status:d,showIndicator:f,fillColor:A,processing:h,clsPrefix:v}=e;return S("div",{class:`${v}-progress-content`,role:"none"},S("div",{class:`${v}-progress-graph`,"aria-hidden":!0},S("div",{class:[`${v}-progress-graph-line`,{[`${v}-progress-graph-line--indicator-${a}`]:!0}]},S("div",{class:`${v}-progress-graph-line-rail`,style:[{backgroundColor:i,height:r.value,borderRadius:n.value},s]},S("div",{class:[`${v}-progress-graph-line-fill`,h&&`${v}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:A,height:r.value,lineHeight:r.value,borderRadius:o.value}},a==="inside"?S("div",{class:`${v}-progress-graph-line-indicator`,style:{color:c}},l,u):null)))),f&&a==="outside"?S("div",null,t.default?S("div",{class:`${v}-progress-custom-content`,style:{color:c},role:"none"},t.default()):d==="default"?S("div",{role:"none",class:`${v}-progress-icon ${v}-progress-icon--as-text`,style:{color:c}},l,u):S("div",{class:`${v}-progress-icon`,"aria-hidden":!0},S(zt,{clsPrefix:v},{default:()=>sOe[d]}))):null)}}}),uOe={success:S(IA,null),error:S(EA,null),warning:S(RA,null),info:S(ed,null)},cOe=ge({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(n,o,a){const{gapDegree:i,viewBoxWidth:s,strokeWidth:l}=e,u=50,c=0,d=u,f=0,A=2*u,h=50+l/2,v=`M ${h},${h} m ${c},${d}
  4687. a ${u},${u} 0 1 1 ${f},${-A}
  4688. a ${u},${u} 0 1 1 ${-f},${A}`,p=Math.PI*2*u,g={stroke:a,strokeDasharray:`${n/100*(p-i)}px ${s*8}px`,strokeDashoffset:`-${i/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:v,pathStyle:g}}return()=>{const{fillColor:n,railColor:o,strokeWidth:a,offsetDegree:i,status:s,percentage:l,showIndicator:u,indicatorTextColor:c,unit:d,gapOffsetDegree:f,clsPrefix:A}=e,{pathString:h,pathStyle:v}=r(100,0,o),{pathString:p,pathStyle:g}=r(l,i,n),m=100+a;return S("div",{class:`${A}-progress-content`,role:"none"},S("div",{class:`${A}-progress-graph`,"aria-hidden":!0},S("div",{class:`${A}-progress-graph-circle`,style:{transform:f?`rotate(${f}deg)`:void 0}},S("svg",{viewBox:`0 0 ${m} ${m}`},S("g",null,S("path",{class:`${A}-progress-graph-circle-rail`,d:h,"stroke-width":a,"stroke-linecap":"round",fill:"none",style:v})),S("g",null,S("path",{class:[`${A}-progress-graph-circle-fill`,l===0&&`${A}-progress-graph-circle-fill--empty`],d:p,"stroke-width":a,"stroke-linecap":"round",fill:"none",style:g}))))),u?S("div",null,t.default?S("div",{class:`${A}-progress-custom-content`,role:"none"},t.default()):s!=="default"?S("div",{class:`${A}-progress-icon`,"aria-hidden":!0},S(zt,{clsPrefix:A},{default:()=>uOe[s]})):S("div",{class:`${A}-progress-text`,style:{color:c},role:"none"},S("span",{class:`${A}-progress-text__percentage`},l),S("span",{class:`${A}-progress-text__unit`},d))):null)}}});function pN(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const dOe=ge({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=L(()=>e.percentage.map((o,a)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*a)-e.circleGap*a)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:n,strokeWidth:o,circleGap:a,showIndicator:i,fillColor:s,railColor:l,railStyle:u,percentage:c,clsPrefix:d}=e;return S("div",{class:`${d}-progress-content`,role:"none"},S("div",{class:`${d}-progress-graph`,"aria-hidden":!0},S("div",{class:`${d}-progress-graph-circle`},S("svg",{viewBox:`0 0 ${n} ${n}`},c.map((f,A)=>S("g",{key:A},S("path",{class:`${d}-progress-graph-circle-rail`,d:pN(n/2-o/2*(1+2*A)-a*A,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[A]},u[A]]}),S("path",{class:[`${d}-progress-graph-circle-fill`,f===0&&`${d}-progress-graph-circle-fill--empty`],d:pN(n/2-o/2*(1+2*A)-a*A,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[A],strokeDashoffset:0,stroke:s[A]}})))))),i&&t.default?S("div",null,S("div",{class:`${d}-progress-text`},t.default())):null)}}}),fOe=Object.assign(Object.assign({},Me.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),MJ=ge({name:"Progress",props:fOe,setup(e){const t=L(()=>e.indicatorPlacement||e.indicatorPosition),r=L(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=nt(e),a=Me("Progress","-progress",iOe,XZ,e,n),i=L(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:u},self:{fontSize:c,fontSizeCircle:d,railColor:f,railHeight:A,iconSizeCircle:h,iconSizeLine:v,textColorCircle:p,textColorLineInner:g,textColorLineOuter:m,lineBgProcessing:y,fontWeightCircle:b,[_e("iconColor",l)]:x,[_e("fillColor",l)]:w}}=a.value;return{"--n-bezier":u,"--n-fill-color":w,"--n-font-size":c,"--n-font-size-circle":d,"--n-font-weight-circle":b,"--n-icon-color":x,"--n-icon-size-circle":h,"--n-icon-size-line":v,"--n-line-bg-processing":y,"--n-rail-color":f,"--n-rail-height":A,"--n-text-color-circle":p,"--n-text-color-line-inner":g,"--n-text-color-line-outer":m}}),s=o?Et("progress",L(()=>e.status[0]),i,e):void 0;return{mergedClsPrefix:n,mergedIndicatorPlacement:t,gapDeg:r,cssVars:o?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:n,status:o,railColor:a,railStyle:i,color:s,percentage:l,viewBoxWidth:u,strokeWidth:c,mergedIndicatorPlacement:d,unit:f,borderRadius:A,fillBorderRadius:h,height:v,processing:p,circleGap:g,mergedClsPrefix:m,gapDeg:y,gapOffsetDegree:b,themeClass:x,$slots:w,onRender:C}=this;return C==null||C(),S("div",{class:[x,`${m}-progress`,`${m}-progress--${e}`,`${m}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?S(cOe,{clsPrefix:m,status:o,showIndicator:n,indicatorTextColor:r,railColor:a,fillColor:s,railStyle:i,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:u,strokeWidth:c,gapDegree:y===void 0?e==="dashboard"?75:0:y,gapOffsetDegree:b,unit:f},w):e==="line"?S(lOe,{clsPrefix:m,status:o,showIndicator:n,indicatorTextColor:r,railColor:a,fillColor:s,railStyle:i,percentage:l,processing:p,indicatorPlacement:d,unit:f,fillBorderRadius:h,railBorderRadius:A,height:v},w):e==="multiple-circle"?S(dOe,{clsPrefix:m,strokeWidth:c,railColor:a,fillColor:s,railStyle:i,viewBoxWidth:u,percentage:l,showIndicator:n,circleGap:g},w):null)}}),AOe=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),S("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),S("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),S("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),S("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),S("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),hOe=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),S("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),S("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),vOe=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),S("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),S("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),S("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),S("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),S("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),pOe=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),S("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),gOe=P("result",`
  4689. color: var(--n-text-color);
  4690. line-height: var(--n-line-height);
  4691. font-size: var(--n-font-size);
  4692. transition:
  4693. color .3s var(--n-bezier);
  4694. `,[P("result-icon",`
  4695. display: flex;
  4696. justify-content: center;
  4697. transition: color .3s var(--n-bezier);
  4698. `,[G("status-image",`
  4699. font-size: var(--n-icon-size);
  4700. width: 1em;
  4701. height: 1em;
  4702. `),P("base-icon",`
  4703. color: var(--n-icon-color);
  4704. font-size: var(--n-icon-size);
  4705. `)]),P("result-content",{marginTop:"24px"}),P("result-footer",`
  4706. margin-top: 24px;
  4707. text-align: center;
  4708. `),P("result-header",[G("title",`
  4709. margin-top: 16px;
  4710. font-weight: var(--n-title-font-weight);
  4711. transition: color .3s var(--n-bezier);
  4712. text-align: center;
  4713. color: var(--n-title-text-color);
  4714. font-size: var(--n-title-font-size);
  4715. `),G("description",`
  4716. margin-top: 4px;
  4717. text-align: center;
  4718. font-size: var(--n-font-size);
  4719. `)])]),mOe={403:pOe,404:AOe,418:vOe,500:hOe,info:S(ed,null),success:S(IA,null),warning:S(RA,null),error:S(EA,null)},yOe=Object.assign(Object.assign({},Me.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),bOe=ge({name:"Result",props:yOe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Result","-result",gOe,kFe,e,t),o=L(()=>{const{size:i,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:u,lineHeight:c,titleTextColor:d,titleFontWeight:f,[_e("iconColor",s)]:A,[_e("fontSize",i)]:h,[_e("titleFontSize",i)]:v,[_e("iconSize",i)]:p}}=n.value;return{"--n-bezier":l,"--n-font-size":h,"--n-icon-size":p,"--n-line-height":c,"--n-text-color":u,"--n-title-font-size":v,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":A||""}}),a=r?Et("result",L(()=>{const{size:i,status:s}=e;let l="";return i&&(l+=i[0]),s&&(l+=s[0]),l}),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{status:t,$slots:r,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),S("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},S("div",{class:`${n}-result-icon`},((e=r.icon)===null||e===void 0?void 0:e.call(r))||S(zt,{clsPrefix:n},{default:()=>mOe[t]})),S("div",{class:`${n}-result-header`},this.title?S("div",{class:`${n}-result-header__title`},this.title):null,this.description?S("div",{class:`${n}-result-header__description`},this.description):null),r.default&&S("div",{class:`${n}-result-content`},r),r.footer&&S("div",{class:`${n}-result-footer`},r.footer()))}}),xOe=Object.assign(Object.assign({},Me.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),wOe=ge({name:"Scrollbar",props:xOe,setup(){const e=q(null);return Object.assign(Object.assign({},{scrollTo:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollTo(r[0],r[1])},scrollBy:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollBy(r[0],r[1])}}),{scrollbarInstRef:e})},render(){return S(Gn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),COe=wOe,SOe={name:"Skeleton",common:ct,self(e){const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}}},_Oe=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}},BOe={name:"Skeleton",common:Lt,self:_Oe},TOe=N([P("skeleton",`
  4720. height: 1em;
  4721. width: 100%;
  4722. transition: background-color .3s var(--n-bezier);
  4723. transition:
  4724. --n-color-start .3s var(--n-bezier),
  4725. --n-color-end .3s var(--n-bezier),
  4726. background-color .3s var(--n-bezier);
  4727. animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
  4728. background-color: var(--n-color-start);
  4729. `),N("@keyframes skeleton-loading",`
  4730. 0% {
  4731. background: var(--n-color-start);
  4732. }
  4733. 40% {
  4734. background: var(--n-color-end);
  4735. }
  4736. 80% {
  4737. background: var(--n-color-start);
  4738. }
  4739. 100% {
  4740. background: var(--n-color-start);
  4741. }
  4742. `)]),EOe=Object.assign(Object.assign({},Me.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),IOe=ge({name:"Skeleton",inheritAttrs:!1,props:EOe,setup(e){Pk();const{mergedClsPrefixRef:t}=nt(e),r=Me("Skeleton","-skeleton",TOe,BOe,e,t);return{mergedClsPrefix:t,style:L(()=>{var n,o;const a=r.value,{common:{cubicBezierEaseInOut:i}}=a,s=a.self,{color:l,colorEnd:u,borderRadius:c}=s;let d;const{circle:f,sharp:A,round:h,width:v,height:p,size:g,text:m,animated:y}=e;g!==void 0&&(d=s[_e("height",g)]);const b=f?(n=v!=null?v:p)!==null&&n!==void 0?n:d:v,x=(o=f&&v!=null?v:p)!==null&&o!==void 0?o:d;return{display:m?"inline-block":"",verticalAlign:m?"-0.125em":"",borderRadius:f?"50%":h?"4096px":A?"":c,width:typeof b=="number"?On(b):b,height:typeof x=="number"?On(x):x,animation:y?"":"none","--n-bezier":i,"--n-color-start":l,"--n-color-end":u}})}},render(){const{repeat:e,style:t,mergedClsPrefix:r,$attrs:n}=this,o=S("div",wn({class:`${r}-skeleton`,style:t},n));return e>1?S(lr,null,Array.apply(null,{length:e}).map(a=>[o,`
  4743. `])):o}});function gN(e){return window.TouchEvent&&e instanceof window.TouchEvent}function mN(){const e=q(new Map),t=r=>n=>{e.value.set(r,n)};return _S(()=>e.value.clear()),[e,t]}const ROe=N([P("slider",`
  4744. display: block;
  4745. padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
  4746. position: relative;
  4747. z-index: 0;
  4748. width: 100%;
  4749. cursor: pointer;
  4750. user-select: none;
  4751. -webkit-user-select: none;
  4752. `,[j("reverse",[P("slider-handles",[P("slider-handle-wrapper",`
  4753. transform: translate(50%, -50%);
  4754. `)]),P("slider-dots",[P("slider-dot",`
  4755. transform: translateX(50%, -50%);
  4756. `)]),j("vertical",[P("slider-handles",[P("slider-handle-wrapper",`
  4757. transform: translate(-50%, -50%);
  4758. `)]),P("slider-marks",[P("slider-mark",`
  4759. transform: translateY(calc(-50% + var(--n-dot-height) / 2));
  4760. `)]),P("slider-dots",[P("slider-dot",`
  4761. transform: translateX(-50%) translateY(0);
  4762. `)])])]),j("vertical",`
  4763. padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
  4764. width: var(--n-rail-width-vertical);
  4765. height: 100%;
  4766. `,[P("slider-handles",`
  4767. top: calc(var(--n-handle-size) / 2);
  4768. right: 0;
  4769. bottom: calc(var(--n-handle-size) / 2);
  4770. left: 0;
  4771. `,[P("slider-handle-wrapper",`
  4772. top: unset;
  4773. left: 50%;
  4774. transform: translate(-50%, 50%);
  4775. `)]),P("slider-rail",`
  4776. height: 100%;
  4777. `,[G("fill",`
  4778. top: unset;
  4779. right: 0;
  4780. bottom: unset;
  4781. left: 0;
  4782. `)]),j("with-mark",`
  4783. width: var(--n-rail-width-vertical);
  4784. margin: 0 32px 0 8px;
  4785. `),P("slider-marks",`
  4786. top: calc(var(--n-handle-size) / 2);
  4787. right: unset;
  4788. bottom: calc(var(--n-handle-size) / 2);
  4789. left: 22px;
  4790. font-size: var(--n-mark-font-size);
  4791. `,[P("slider-mark",`
  4792. transform: translateY(50%);
  4793. white-space: nowrap;
  4794. `)]),P("slider-dots",`
  4795. top: calc(var(--n-handle-size) / 2);
  4796. right: unset;
  4797. bottom: calc(var(--n-handle-size) / 2);
  4798. left: 50%;
  4799. `,[P("slider-dot",`
  4800. transform: translateX(-50%) translateY(50%);
  4801. `)])]),j("disabled",`
  4802. cursor: not-allowed;
  4803. opacity: var(--n-opacity-disabled);
  4804. `,[P("slider-handle",`
  4805. cursor: not-allowed;
  4806. `)]),j("with-mark",`
  4807. width: 100%;
  4808. margin: 8px 0 32px 0;
  4809. `),N("&:hover",[P("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[G("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),P("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),j("active",[P("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[G("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),P("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),P("slider-marks",`
  4810. position: absolute;
  4811. top: 18px;
  4812. left: calc(var(--n-handle-size) / 2);
  4813. right: calc(var(--n-handle-size) / 2);
  4814. `,[P("slider-mark",`
  4815. position: absolute;
  4816. transform: translateX(-50%);
  4817. white-space: nowrap;
  4818. `)]),P("slider-rail",`
  4819. width: 100%;
  4820. position: relative;
  4821. height: var(--n-rail-height);
  4822. background-color: var(--n-rail-color);
  4823. transition: background-color .3s var(--n-bezier);
  4824. border-radius: calc(var(--n-rail-height) / 2);
  4825. `,[G("fill",`
  4826. position: absolute;
  4827. top: 0;
  4828. bottom: 0;
  4829. border-radius: calc(var(--n-rail-height) / 2);
  4830. transition: background-color .3s var(--n-bezier);
  4831. background-color: var(--n-fill-color);
  4832. `)]),P("slider-handles",`
  4833. position: absolute;
  4834. top: 0;
  4835. right: calc(var(--n-handle-size) / 2);
  4836. bottom: 0;
  4837. left: calc(var(--n-handle-size) / 2);
  4838. `,[P("slider-handle-wrapper",`
  4839. outline: none;
  4840. position: absolute;
  4841. top: 50%;
  4842. transform: translate(-50%, -50%);
  4843. cursor: pointer;
  4844. display: flex;
  4845. `,[P("slider-handle",`
  4846. height: var(--n-handle-size);
  4847. width: var(--n-handle-size);
  4848. border-radius: 50%;
  4849. overflow: hidden;
  4850. transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
  4851. background-color: var(--n-handle-color);
  4852. box-shadow: var(--n-handle-box-shadow);
  4853. `,[N("&:hover",`
  4854. box-shadow: var(--n-handle-box-shadow-hover);
  4855. `)]),N("&:focus",[P("slider-handle",`
  4856. box-shadow: var(--n-handle-box-shadow-focus);
  4857. `,[N("&:hover",`
  4858. box-shadow: var(--n-handle-box-shadow-active);
  4859. `)])])])]),P("slider-dots",`
  4860. position: absolute;
  4861. top: 50%;
  4862. left: calc(var(--n-handle-size) / 2);
  4863. right: calc(var(--n-handle-size) / 2);
  4864. `,[j("transition-disabled",[P("slider-dot","transition: none;")]),P("slider-dot",`
  4865. transition:
  4866. border-color .3s var(--n-bezier),
  4867. box-shadow .3s var(--n-bezier),
  4868. background-color .3s var(--n-bezier);
  4869. position: absolute;
  4870. transform: translate(-50%, -50%);
  4871. height: var(--n-dot-height);
  4872. width: var(--n-dot-width);
  4873. border-radius: var(--n-dot-border-radius);
  4874. overflow: hidden;
  4875. box-sizing: border-box;
  4876. border: var(--n-dot-border);
  4877. background-color: var(--n-dot-color);
  4878. `,[j("active","border: var(--n-dot-border-active);")])])]),P("slider-handle-indicator",`
  4879. font-size: var(--n-font-size);
  4880. padding: 6px 10px;
  4881. border-radius: var(--n-indicator-border-radius);
  4882. color: var(--n-indicator-text-color);
  4883. background-color: var(--n-indicator-color);
  4884. box-shadow: var(--n-indicator-box-shadow);
  4885. `,[Ia()]),P("slider-handle-indicator",`
  4886. font-size: var(--n-font-size);
  4887. padding: 6px 10px;
  4888. border-radius: var(--n-indicator-border-radius);
  4889. color: var(--n-indicator-text-color);
  4890. background-color: var(--n-indicator-color);
  4891. box-shadow: var(--n-indicator-box-shadow);
  4892. `,[j("top",`
  4893. margin-bottom: 12px;
  4894. `),j("right",`
  4895. margin-left: 12px;
  4896. `),j("bottom",`
  4897. margin-top: 12px;
  4898. `),j("left",`
  4899. margin-right: 12px;
  4900. `),Ia()]),_u(P("slider",[P("slider-dot","background-color: var(--n-dot-color-modal);")])),dd(P("slider",[P("slider-dot","background-color: var(--n-dot-color-popover);")]))]),DOe=0,MOe=Object.assign(Object.assign({},Me.props),{to:Un.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),POe=ge({name:"Slider",props:MOe,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:n}=nt(e),o=Me("Slider","-slider",ROe,zFe,e,t),a=q(null),[i,s]=mN(),[l,u]=mN(),c=q(new Set),d=Da(e),{mergedDisabledRef:f}=d,A=L(()=>{const{step:X}=e;if(X<=0||X==="mark")return 0;const ie=X.toString();let fe=0;return ie.includes(".")&&(fe=ie.length-ie.indexOf(".")-1),fe}),h=q(e.defaultValue),v=Re(e,"value"),p=Ir(v,h),g=L(()=>{const{value:X}=p;return(e.range?X:[X]).map(Z)}),m=L(()=>g.value.length>2),y=L(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),b=L(()=>{const{marks:X}=e;return X?Object.keys(X).map(parseFloat):null}),x=q(-1),w=q(-1),C=q(-1),_=q(!1),B=q(!1),T=L(()=>{const{vertical:X,reverse:ie}=e;return X?ie?"top":"bottom":ie?"right":"left"}),E=L(()=>{if(m.value)return;const X=g.value,ie=te(e.range?Math.min(...X):e.min),fe=te(e.range?Math.max(...X):X[0]),{value:ye}=T;return e.vertical?{[ye]:`${ie}%`,height:`${fe-ie}%`}:{[ye]:`${ie}%`,width:`${fe-ie}%`}}),I=L(()=>{const X=[],{marks:ie}=e;if(ie){const fe=g.value.slice();fe.sort((lt,mt)=>lt-mt);const{value:ye}=T,{value:Fe}=m,{range:Ne}=e,rt=Fe?()=>!1:lt=>Ne?lt>=fe[0]&&lt<=fe[fe.length-1]:lt<=fe[0];for(const lt of Object.keys(ie)){const mt=Number(lt);X.push({active:rt(mt),label:ie[lt],style:{[ye]:`${te(mt)}%`}})}}return X});function R(X,ie){const fe=te(X),{value:ye}=T;return{[ye]:`${fe}%`,zIndex:ie===x.value?1:0}}function D(X){return e.showTooltip||C.value===X||x.value===X&&_.value}function F(X){return _.value?!(x.value===X&&w.value===X):!0}function M(X){var ie;~X&&(x.value=X,(ie=i.value.get(X))===null||ie===void 0||ie.focus())}function $(){l.value.forEach((X,ie)=>{D(ie)&&X.syncPosition()})}function O(X){const{"onUpdate:value":ie,onUpdateValue:fe}=e,{nTriggerFormInput:ye,nTriggerFormChange:Fe}=d;fe&&Te(fe,X),ie&&Te(ie,X),h.value=X,ye(),Fe()}function Q(X){const{range:ie}=e;if(ie){if(Array.isArray(X)){const{value:fe}=g;X.join()!==fe.join()&&O(X)}}else Array.isArray(X)||g.value[0]!==X&&O(X)}function V(X,ie){if(e.range){const fe=g.value.slice();fe.splice(ie,1,X),Q(fe)}else Q(X)}function W(X,ie,fe){const ye=fe!==void 0;fe||(fe=X-ie>0?1:-1);const Fe=b.value||[],{step:Ne}=e;if(Ne==="mark"){const mt=le(X,Fe.concat(ie),ye?fe:void 0);return mt?mt.value:ie}if(Ne<=0)return ie;const{value:rt}=A;let lt;if(ye){const mt=Number((ie/Ne).toFixed(rt)),Ge=Math.floor(mt),it=mt>Ge?Ge:Ge-1,je=mt<Ge?Ge:Ge+1;lt=le(ie,[Number((it*Ne).toFixed(rt)),Number((je*Ne).toFixed(rt)),...Fe],fe)}else{const mt=re(X);lt=le(X,[...Fe,mt])}return lt?Z(lt.value):ie}function Z(X){return Math.min(e.max,Math.max(e.min,X))}function te(X){const{max:ie,min:fe}=e;return(X-fe)/(ie-fe)*100}function ae(X){const{max:ie,min:fe}=e;return fe+(ie-fe)*X}function re(X){const{step:ie,min:fe}=e;if(ie<=0||ie==="mark")return X;const ye=Math.round((X-fe)/ie)*ie+fe;return Number(ye.toFixed(A.value))}function le(X,ie=b.value,fe){if(!(ie!=null&&ie.length))return null;let ye=null,Fe=-1;for(;++Fe<ie.length;){const Ne=ie[Fe]-X,rt=Math.abs(Ne);(fe===void 0||Ne*fe>0)&&(ye===null||rt<ye.distance)&&(ye={index:Fe,distance:rt,value:ie[Fe]})}return ye}function se(X){const ie=a.value;if(!ie)return;const fe=gN(X)?X.touches[0]:X,ye=ie.getBoundingClientRect();let Fe;return e.vertical?Fe=(ye.bottom-fe.clientY)/ye.height:Fe=(fe.clientX-ye.left)/ye.width,e.reverse&&(Fe=1-Fe),ae(Fe)}function ce(X){if(f.value||!e.keyboard)return;const{vertical:ie,reverse:fe}=e;switch(X.key){case"ArrowUp":X.preventDefault(),be(ie&&fe?-1:1);break;case"ArrowRight":X.preventDefault(),be(!ie&&fe?-1:1);break;case"ArrowDown":X.preventDefault(),be(ie&&fe?1:-1);break;case"ArrowLeft":X.preventDefault(),be(!ie&&fe?1:-1);break}}function be(X){const ie=x.value;if(ie===-1)return;const{step:fe}=e,ye=g.value[ie],Fe=fe<=0||fe==="mark"?ye:ye+fe*X;V(W(Fe,ye,X>0?1:-1),ie)}function de(X){var ie,fe;if(f.value||!gN(X)&&X.button!==DOe)return;const ye=se(X);if(ye===void 0)return;const Fe=g.value.slice(),Ne=e.range?(fe=(ie=le(ye,Fe))===null||ie===void 0?void 0:ie.index)!==null&&fe!==void 0?fe:-1:0;Ne!==-1&&(X.preventDefault(),M(Ne),pe(),V(W(ye,g.value[Ne]),Ne))}function pe(){_.value||(_.value=!0,or("touchend",document,k),or("mouseup",document,k),or("touchmove",document,U),or("mousemove",document,U))}function K(){_.value&&(_.value=!1,qt("touchend",document,k),qt("mouseup",document,k),qt("touchmove",document,U),qt("mousemove",document,U))}function U(X){const{value:ie}=x;if(!_.value||ie===-1){K();return}const fe=se(X);V(W(fe,g.value[ie]),ie)}function k(){K()}function J(X){x.value=X,f.value||(C.value=X)}function ee(X){x.value===X&&(x.value=-1,K()),C.value===X&&(C.value=-1)}function H(X){C.value=X}function Y(X){C.value===X&&(C.value=-1)}gt(x,(X,ie)=>void dr(()=>w.value=ie)),gt(p,()=>{if(e.marks){if(B.value)return;B.value=!0,dr(()=>{B.value=!1})}dr($)}),Hr(()=>{K()});const oe=L(()=>{const{self:{markFontSize:X,railColor:ie,railColorHover:fe,fillColor:ye,fillColorHover:Fe,handleColor:Ne,opacityDisabled:rt,dotColor:lt,dotColorModal:mt,handleBoxShadow:Ge,handleBoxShadowHover:it,handleBoxShadowActive:je,handleBoxShadowFocus:Ye,dotBorder:ue,dotBoxShadow:Ee,railHeight:Qe,railWidthVertical:et,handleSize:tt,dotHeight:xe,dotWidth:$e,dotBorderRadius:Xe,fontSize:ht,dotBorderActive:Se,dotColorPopover:He},common:{cubicBezierEaseInOut:me}}=o.value;return{"--n-bezier":me,"--n-dot-border":ue,"--n-dot-border-active":Se,"--n-dot-border-radius":Xe,"--n-dot-box-shadow":Ee,"--n-dot-color":lt,"--n-dot-color-modal":mt,"--n-dot-color-popover":He,"--n-dot-height":xe,"--n-dot-width":$e,"--n-fill-color":ye,"--n-fill-color-hover":Fe,"--n-font-size":ht,"--n-handle-box-shadow":Ge,"--n-handle-box-shadow-active":je,"--n-handle-box-shadow-focus":Ye,"--n-handle-box-shadow-hover":it,"--n-handle-color":Ne,"--n-handle-size":tt,"--n-opacity-disabled":rt,"--n-rail-color":ie,"--n-rail-color-hover":fe,"--n-rail-height":Qe,"--n-rail-width-vertical":et,"--n-mark-font-size":X}}),he=n?Et("slider",void 0,oe,e):void 0,ne=L(()=>{const{self:{fontSize:X,indicatorColor:ie,indicatorBoxShadow:fe,indicatorTextColor:ye,indicatorBorderRadius:Fe}}=o.value;return{"--n-font-size":X,"--n-indicator-border-radius":Fe,"--n-indicator-box-shadow":fe,"--n-indicator-color":ie,"--n-indicator-text-color":ye}}),Ae=n?Et("slider-indicator",void 0,ne,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:h,mergedValue:p,mergedDisabled:f,mergedPlacement:y,isMounted:oi(),adjustedTo:Un(e),dotTransitionDisabled:B,markInfos:I,isShowTooltip:D,shouldKeepTooltipTransition:F,handleRailRef:a,setHandleRefs:s,setFollowerRefs:u,fillStyle:E,getHandleStyle:R,activeIndex:x,arrifiedValues:g,followerEnabledIndexSet:c,handleRailMouseDown:de,handleHandleFocus:J,handleHandleBlur:ee,handleHandleMouseEnter:H,handleHandleMouseLeave:Y,handleRailKeyDown:ce,indicatorCssVars:n?void 0:ne,indicatorThemeClass:Ae==null?void 0:Ae.themeClass,indicatorOnRender:Ae==null?void 0:Ae.onRender,cssVars:n?void 0:oe,themeClass:he==null?void 0:he.themeClass,onRender:he==null?void 0:he.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},S("div",{class:`${t}-slider-rail`},S("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?S("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>S("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,S("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,a)=>{const i=this.isShowTooltip(a);return S(fd,null,{default:()=>[S(Ad,null,{default:()=>S("div",{ref:this.setHandleRefs(a),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,a),onFocus:()=>this.handleHandleFocus(a),onBlur:()=>this.handleHandleBlur(a),onMouseenter:()=>this.handleHandleMouseEnter(a),onMouseleave:()=>this.handleHandleMouseLeave(a)},Kt(this.$slots.thumb,()=>[S("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&S(vd,{ref:this.setFollowerRefs(a),show:i,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(a),teleportDisabled:this.adjustedTo===Un.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>S(jr,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(a),onEnter:()=>{this.followerEnabledIndexSet.add(a)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(a)}},{default:()=>{var s;return i?((s=this.indicatorOnRender)===null||s===void 0||s.call(this),S("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(o):o)):null}})})]})})),this.marks?S("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>S("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),FOe=N([N("@keyframes spin-rotate",`
  4901. from {
  4902. transform: rotate(0);
  4903. }
  4904. to {
  4905. transform: rotate(360deg);
  4906. }
  4907. `),P("spin-container",{position:"relative"},[P("spin-body",`
  4908. position: absolute;
  4909. top: 50%;
  4910. left: 50%;
  4911. transform: translateX(-50%) translateY(-50%);
  4912. `,[dA()])]),P("spin-body",`
  4913. display: inline-flex;
  4914. align-items: center;
  4915. justify-content: center;
  4916. flex-direction: column;
  4917. `),P("spin",`
  4918. display: inline-flex;
  4919. height: var(--n-size);
  4920. width: var(--n-size);
  4921. font-size: var(--n-size);
  4922. color: var(--n-color);
  4923. `,[j("rotate",`
  4924. animation: spin-rotate 2s linear infinite;
  4925. `)]),P("spin-description",`
  4926. display: inline-block;
  4927. font-size: var(--n-font-size);
  4928. color: var(--n-text-color);
  4929. transition: color .3s var(--n-bezier);
  4930. margin-top: 8px;
  4931. `),P("spin-content",`
  4932. opacity: 1;
  4933. transition: opacity .3s var(--n-bezier);
  4934. pointer-events: all;
  4935. `,[j("spinning",`
  4936. user-select: none;
  4937. -webkit-user-select: none;
  4938. pointer-events: none;
  4939. opacity: var(--n-opacity-spinning);
  4940. `)])]),kOe={small:20,medium:18,large:16},LOe=Object.assign(Object.assign({},Me.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),OOe=ge({name:"Spin",props:LOe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Spin","-spin",FOe,VFe,e,t),o=L(()=>{const{size:i}=e,{common:{cubicBezierEaseInOut:s},self:l}=n.value,{opacitySpinning:u,color:c,textColor:d}=l,f=typeof i=="number"?On(i):l[_e("size",i)];return{"--n-bezier":s,"--n-opacity-spinning":u,"--n-size":f,"--n-color":c,"--n-text-color":d}}),a=r?Et("spin",L(()=>{const{size:i}=e;return typeof i=="number"?String(i):i[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Kc(e,["spinning","show"]),mergedStrokeWidth:L(()=>{const{strokeWidth:i}=e;if(i!==void 0)return i;const{size:s}=e;return kOe[typeof s=="number"?"medium":s]}),cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t;const{$slots:r,mergedClsPrefix:n,description:o}=this,a=r.icon&&this.rotate,i=(o||r.description)&&S("div",{class:`${n}-spin-description`},o||((e=r.description)===null||e===void 0?void 0:e.call(r))),s=r.icon?S("div",{class:[`${n}-spin-body`,this.themeClass]},S("div",{class:[`${n}-spin`,a&&`${n}-spin--rotate`],style:r.default?"":this.cssVars},r.icon()),i):S("div",{class:[`${n}-spin-body`,this.themeClass]},S(Eu,{clsPrefix:n,style:r.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),i);return(t=this.onRender)===null||t===void 0||t.call(this),r.default?S("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},S("div",{class:[`${n}-spin-content`,this.compitableShow&&`${n}-spin-content--spinning`]},r),S(jr,{name:"fade-in-transition"},{default:()=>this.compitableShow?s:null})):s}}),$Oe=P("statistic",[G("label",`
  4941. font-weight: var(--n-label-font-weight);
  4942. transition: .3s color var(--n-bezier);
  4943. font-size: var(--n-label-font-size);
  4944. color: var(--n-label-text-color);
  4945. `),P("statistic-value",`
  4946. margin-top: 4px;
  4947. font-weight: var(--n-value-font-weight);
  4948. `,[G("prefix",`
  4949. margin: 0 4px 0 0;
  4950. font-size: var(--n-value-font-size);
  4951. transition: .3s color var(--n-bezier);
  4952. color: var(--n-value-prefix-text-color);
  4953. `,[P("icon",{verticalAlign:"-0.125em"})]),G("content",`
  4954. font-size: var(--n-value-font-size);
  4955. transition: .3s color var(--n-bezier);
  4956. color: var(--n-value-text-color);
  4957. `),G("suffix",`
  4958. margin: 0 0 0 4px;
  4959. font-size: var(--n-value-font-size);
  4960. transition: .3s color var(--n-bezier);
  4961. color: var(--n-value-suffix-text-color);
  4962. `,[P("icon",{verticalAlign:"-0.125em"})])])]),UOe=Object.assign(Object.assign({},Me.props),{tabularNums:Boolean,label:String,value:[String,Number]}),NOe=ge({name:"Statistic",props:UOe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=nt(e),o=Me("Statistic","-statistic",$Oe,jFe,e,t),a=dn("Statistic",n,t),i=L(()=>{const{self:{labelFontWeight:l,valueFontSize:u,valueFontWeight:c,valuePrefixTextColor:d,labelTextColor:f,valueSuffixTextColor:A,valueTextColor:h,labelFontSize:v},common:{cubicBezierEaseInOut:p}}=o.value;return{"--n-bezier":p,"--n-label-font-size":v,"--n-label-font-weight":l,"--n-label-text-color":f,"--n-value-font-weight":c,"--n-value-font-size":u,"--n-value-prefix-text-color":d,"--n-value-suffix-text-color":A,"--n-value-text-color":h}}),s=r?Et("statistic",void 0,i,e):void 0;return{rtlEnabled:a,mergedClsPrefix:t,cssVars:r?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:r,label:n,prefix:o,suffix:a}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ar(n,i=>S("div",{class:`${t}-statistic__label`},this.label||i)),S("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ar(o,i=>i&&S("span",{class:`${t}-statistic-value__prefix`},i)),this.value!==void 0?S("span",{class:`${t}-statistic-value__content`},this.value):Ar(r,i=>i&&S("span",{class:`${t}-statistic-value__content`},i)),Ar(a,i=>i&&S("span",{class:`${t}-statistic-value__suffix`},i))))}}),HOe=P("steps",`
  4963. width: 100%;
  4964. display: flex;
  4965. `,[P("step",`
  4966. position: relative;
  4967. display: flex;
  4968. flex: 1;
  4969. `,[j("disabled","cursor: not-allowed"),j("clickable",`
  4970. cursor: pointer;
  4971. `),N("&:last-child",[P("step-splitor","display: none;")])]),P("step-splitor",`
  4972. background-color: var(--n-splitor-color);
  4973. margin-top: calc(var(--n-step-header-font-size) / 2);
  4974. height: 1px;
  4975. flex: 1;
  4976. align-self: flex-start;
  4977. margin-left: 12px;
  4978. margin-right: 12px;
  4979. transition:
  4980. color .3s var(--n-bezier),
  4981. background-color .3s var(--n-bezier);
  4982. `),P("step-content","flex: 1;",[P("step-content-header",`
  4983. color: var(--n-header-text-color);
  4984. margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
  4985. line-height: var(--n-step-header-font-size);
  4986. font-size: var(--n-step-header-font-size);
  4987. position: relative;
  4988. display: flex;
  4989. font-weight: var(--n-step-header-font-weight);
  4990. margin-left: 9px;
  4991. transition:
  4992. color .3s var(--n-bezier),
  4993. background-color .3s var(--n-bezier);
  4994. `,[G("title",`
  4995. white-space: nowrap;
  4996. flex: 0;
  4997. `)]),G("description",`
  4998. color: var(--n-description-text-color);
  4999. margin-top: 12px;
  5000. margin-left: 9px;
  5001. transition:
  5002. color .3s var(--n-bezier),
  5003. background-color .3s var(--n-bezier);
  5004. `)]),P("step-indicator",`
  5005. background-color: var(--n-indicator-color);
  5006. box-shadow: 0 0 0 1px var(--n-indicator-border-color);
  5007. height: var(--n-indicator-size);
  5008. width: var(--n-indicator-size);
  5009. border-radius: 50%;
  5010. display: flex;
  5011. align-items: center;
  5012. justify-content: center;
  5013. transition:
  5014. background-color .3s var(--n-bezier),
  5015. box-shadow .3s var(--n-bezier);
  5016. `,[P("step-indicator-slot",`
  5017. position: relative;
  5018. width: var(--n-indicator-icon-size);
  5019. height: var(--n-indicator-icon-size);
  5020. font-size: var(--n-indicator-icon-size);
  5021. line-height: var(--n-indicator-icon-size);
  5022. `,[G("index",`
  5023. display: inline-block;
  5024. text-align: center;
  5025. position: absolute;
  5026. left: 0;
  5027. top: 0;
  5028. font-size: var(--n-indicator-index-font-size);
  5029. width: var(--n-indicator-icon-size);
  5030. height: var(--n-indicator-icon-size);
  5031. line-height: var(--n-indicator-icon-size);
  5032. color: var(--n-indicator-text-color);
  5033. transition: color .3s var(--n-bezier);
  5034. `,[Jn()]),P("icon",`
  5035. color: var(--n-indicator-text-color);
  5036. transition: color .3s var(--n-bezier);
  5037. `,[Jn()]),P("base-icon",`
  5038. color: var(--n-indicator-text-color);
  5039. transition: color .3s var(--n-bezier);
  5040. `,[Jn()])])]),j("vertical","flex-direction: column;",[Wt("show-description",[N(">",[P("step","padding-bottom: 8px;")])]),N(">",[P("step","margin-bottom: 16px;",[N("&:last-child","margin-bottom: 0;"),N(">",[P("step-indicator",[N(">",[P("step-splitor",`
  5041. position: absolute;
  5042. bottom: -8px;
  5043. width: 1px;
  5044. margin: 0 !important;
  5045. left: calc(var(--n-indicator-size) / 2);
  5046. height: calc(100% - var(--n-indicator-size));
  5047. `)])]),P("step-content",[G("description","margin-top: 8px;")])])])])])]);function zOe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function QOe(e){return e.map((t,r)=>zOe(t,r))}const VOe=Object.assign(Object.assign({},Me.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),PJ="n-steps",WOe=ge({name:"Steps",props:VOe,setup(e,{slots:t}){const{mergedClsPrefixRef:r,mergedRtlRef:n}=nt(e),o=dn("Steps",n,r),a=Me("Steps","-steps",HOe,JFe,e,r);return _t(PJ,{props:e,mergedThemeRef:a,mergedClsPrefixRef:r,stepsSlots:t}),{mergedClsPrefix:r,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return S("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},QOe(Ii(my(this))))}}),GOe={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},KOe=ge({name:"Step",props:GOe,setup(e){const t=Ke(PJ,null);t||$o("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:r}=nt(),{props:n,mergedThemeRef:o,mergedClsPrefixRef:a,stepsSlots:i}=t,s=L(()=>n.vertical),l=L(()=>{const{status:f}=e;if(f)return f;{const{internalIndex:A}=e,{current:h}=n;if(h===void 0)return"process";if(A<h)return"finish";if(A===h)return n.status||"process";if(A>h)return"wait"}return"process"}),u=L(()=>{const{value:f}=l,{size:A}=n,{common:{cubicBezierEaseInOut:h},self:{stepHeaderFontWeight:v,[_e("stepHeaderFontSize",A)]:p,[_e("indicatorIndexFontSize",A)]:g,[_e("indicatorSize",A)]:m,[_e("indicatorIconSize",A)]:y,[_e("indicatorTextColor",f)]:b,[_e("indicatorBorderColor",f)]:x,[_e("headerTextColor",f)]:w,[_e("splitorColor",f)]:C,[_e("indicatorColor",f)]:_,[_e("descriptionTextColor",f)]:B}}=o.value;return{"--n-bezier":h,"--n-description-text-color":B,"--n-header-text-color":w,"--n-indicator-border-color":x,"--n-indicator-color":_,"--n-indicator-icon-size":y,"--n-indicator-index-font-size":g,"--n-indicator-size":m,"--n-indicator-text-color":b,"--n-splitor-color":C,"--n-step-header-font-size":p,"--n-step-header-font-weight":v}}),c=r?Et("step",L(()=>{const{value:f}=l,{size:A}=n;return`${f[0]}${A[0]}`}),u,n):void 0,d=L(()=>{if(e.disabled)return;const{onUpdateCurrent:f,"onUpdate:current":A}=n;return f||A?()=>{f&&Te(f,e.internalIndex),A&&Te(A,e.internalIndex)}:void 0});return{stepsSlots:i,mergedClsPrefix:a,vertical:s,mergedStatus:l,handleStepClick:d,cssVars:r?void 0:u,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:r,disabled:n}=this,o=Ar(this.$slots.default,a=>{const i=a||this.description;return i?S("div",{class:`${e}-step-content__description`},i):null});return t==null||t(),S("div",{class:[`${e}-step`,n&&`${e}-step--disabled`,!n&&r&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:r},S("div",{class:`${e}-step-indicator`},S("div",{class:`${e}-step-indicator-slot`},S(yl,null,{default:()=>Ar(this.$slots.icon,a=>{const{mergedStatus:i,stepsSlots:s}=this;return i==="finish"||i==="error"?i==="finish"?S(zt,{clsPrefix:e,key:"finish"},{default:()=>Kt(s["finish-icon"],()=>[S(cX,null)])}):i==="error"?S(zt,{clsPrefix:e,key:"error"},{default:()=>Kt(s["error-icon"],()=>[S(dX,null)])}):null:a||S("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?S("div",{class:`${e}-step-splitor`}):null),S("div",{class:`${e}-step-content`},S("div",{class:`${e}-step-content-header`},S("div",{class:`${e}-step-content-header__title`},Kt(this.$slots.title,()=>[this.title])),this.vertical?null:S("div",{class:`${e}-step-splitor`})),o))}}),jOe=P("switch",`
  5048. height: var(--n-height);
  5049. min-width: var(--n-width);
  5050. vertical-align: middle;
  5051. user-select: none;
  5052. -webkit-user-select: none;
  5053. display: inline-flex;
  5054. outline: none;
  5055. justify-content: center;
  5056. align-items: center;
  5057. `,[G("children-placeholder",`
  5058. height: var(--n-rail-height);
  5059. display: flex;
  5060. flex-direction: column;
  5061. overflow: hidden;
  5062. pointer-events: none;
  5063. visibility: hidden;
  5064. `),G("rail-placeholder",`
  5065. display: flex;
  5066. flex-wrap: none;
  5067. `),G("button-placeholder",`
  5068. width: calc(1.75 * var(--n-rail-height));
  5069. height: var(--n-rail-height);
  5070. `),P("base-loading",`
  5071. position: absolute;
  5072. top: 50%;
  5073. left: 50%;
  5074. transform: translateX(-50%) translateY(-50%);
  5075. font-size: calc(var(--n-button-width) - 4px);
  5076. color: var(--n-loading-color);
  5077. transition: color .3s var(--n-bezier);
  5078. `,[Jn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),G("checked, unchecked",`
  5079. transition: color .3s var(--n-bezier);
  5080. color: var(--n-text-color);
  5081. box-sizing: border-box;
  5082. position: absolute;
  5083. white-space: nowrap;
  5084. top: 0;
  5085. bottom: 0;
  5086. display: flex;
  5087. align-items: center;
  5088. line-height: 1;
  5089. `),G("checked",`
  5090. right: 0;
  5091. padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
  5092. `),G("unchecked",`
  5093. left: 0;
  5094. justify-content: flex-end;
  5095. padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
  5096. `),N("&:focus",[G("rail",`
  5097. box-shadow: var(--n-box-shadow-focus);
  5098. `)]),j("round",[G("rail","border-radius: calc(var(--n-rail-height) / 2);",[G("button","border-radius: calc(var(--n-button-height) / 2);")])]),Wt("disabled",[Wt("icon",[j("rubber-band",[j("pressed",[G("rail",[G("button","max-width: var(--n-button-width-pressed);")])]),G("rail",[N("&:active",[G("button","max-width: var(--n-button-width-pressed);")])]),j("active",[j("pressed",[G("rail",[G("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),G("rail",[N("&:active",[G("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),j("active",[G("rail",[G("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),G("rail",`
  5099. overflow: hidden;
  5100. height: var(--n-rail-height);
  5101. min-width: var(--n-rail-width);
  5102. border-radius: var(--n-rail-border-radius);
  5103. cursor: pointer;
  5104. position: relative;
  5105. transition:
  5106. opacity .3s var(--n-bezier),
  5107. background .3s var(--n-bezier),
  5108. box-shadow .3s var(--n-bezier);
  5109. background-color: var(--n-rail-color);
  5110. `,[G("button-icon",`
  5111. color: var(--n-icon-color);
  5112. transition: color .3s var(--n-bezier);
  5113. font-size: calc(var(--n-button-height) - 4px);
  5114. position: absolute;
  5115. left: 0;
  5116. right: 0;
  5117. top: 0;
  5118. bottom: 0;
  5119. display: flex;
  5120. justify-content: center;
  5121. align-items: center;
  5122. line-height: 1;
  5123. `,[Jn()]),G("button",`
  5124. align-items: center;
  5125. top: var(--n-offset);
  5126. left: var(--n-offset);
  5127. height: var(--n-button-height);
  5128. width: var(--n-button-width-pressed);
  5129. max-width: var(--n-button-width);
  5130. border-radius: var(--n-button-border-radius);
  5131. background-color: var(--n-button-color);
  5132. box-shadow: var(--n-button-box-shadow);
  5133. box-sizing: border-box;
  5134. cursor: inherit;
  5135. content: "";
  5136. position: absolute;
  5137. transition:
  5138. background-color .3s var(--n-bezier),
  5139. left .3s var(--n-bezier),
  5140. opacity .3s var(--n-bezier),
  5141. max-width .3s var(--n-bezier),
  5142. box-shadow .3s var(--n-bezier);
  5143. `)]),j("active",[G("rail","background-color: var(--n-rail-color-active);")]),j("loading",[G("rail",`
  5144. cursor: wait;
  5145. `)]),j("disabled",[G("rail",`
  5146. cursor: not-allowed;
  5147. opacity: .5;
  5148. `)])]),YOe=Object.assign(Object.assign({},Me.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let rg;const XOe=ge({name:"Switch",props:YOe,setup(e){rg===void 0&&(typeof CSS!="undefined"?typeof CSS.supports!="undefined"?rg=CSS.supports("width","max(1px)"):rg=!1:rg=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Switch","-switch",jOe,ike,e,t),o=Da(e),{mergedSizeRef:a,mergedDisabledRef:i}=o,s=q(e.defaultValue),l=Re(e,"value"),u=Ir(l,s),c=L(()=>u.value===e.checkedValue),d=q(!1),f=q(!1),A=L(()=>{const{railStyle:_}=e;if(_)return _({focused:f.value,checked:c.value})});function h(_){const{"onUpdate:value":B,onChange:T,onUpdateValue:E}=e,{nTriggerFormInput:I,nTriggerFormChange:R}=o;B&&Te(B,_),E&&Te(E,_),T&&Te(T,_),s.value=_,I(),R()}function v(){const{nTriggerFormFocus:_}=o;_()}function p(){const{nTriggerFormBlur:_}=o;_()}function g(){e.loading||i.value||(u.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function m(){f.value=!0,v()}function y(){f.value=!1,p(),d.value=!1}function b(_){e.loading||i.value||_.key===" "&&(u.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),d.value=!1)}function x(_){e.loading||i.value||_.key===" "&&(_.preventDefault(),d.value=!0)}const w=L(()=>{const{value:_}=a,{self:{opacityDisabled:B,railColor:T,railColorActive:E,buttonBoxShadow:I,buttonColor:R,boxShadowFocus:D,loadingColor:F,textColor:M,iconColor:$,[_e("buttonHeight",_)]:O,[_e("buttonWidth",_)]:Q,[_e("buttonWidthPressed",_)]:V,[_e("railHeight",_)]:W,[_e("railWidth",_)]:Z,[_e("railBorderRadius",_)]:te,[_e("buttonBorderRadius",_)]:ae},common:{cubicBezierEaseInOut:re}}=n.value;let le,se,ce;return rg?(le=`calc((${W} - ${O}) / 2)`,se=`max(${W}, ${O})`,ce=`max(${Z}, calc(${Z} + ${O} - ${W}))`):(le=On((Ro(W)-Ro(O))/2),se=On(Math.max(Ro(W),Ro(O))),ce=Ro(W)>Ro(O)?Z:On(Ro(Z)+Ro(O)-Ro(W))),{"--n-bezier":re,"--n-button-border-radius":ae,"--n-button-box-shadow":I,"--n-button-color":R,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":O,"--n-height":se,"--n-offset":le,"--n-opacity-disabled":B,"--n-rail-border-radius":te,"--n-rail-color":T,"--n-rail-color-active":E,"--n-rail-height":W,"--n-rail-width":Z,"--n-width":ce,"--n-box-shadow-focus":D,"--n-loading-color":F,"--n-text-color":M,"--n-icon-color":$}}),C=r?Et("switch",L(()=>a.value[0]),w,e):void 0;return{handleClick:g,handleBlur:y,handleFocus:m,handleKeyup:b,handleKeydown:x,mergedRailStyle:A,pressed:d,mergedClsPrefix:t,mergedValue:u,checked:c,mergedDisabled:i,cssVars:r?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:r,mergedRailStyle:n,onRender:o,$slots:a}=this;o==null||o();const{checked:i,unchecked:s,icon:l,"checked-icon":u,"unchecked-icon":c}=a,d=!(Vf(l)&&Vf(u)&&Vf(c));return S("div",{role:"switch","aria-checked":r,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,r&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},S("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:n},Ar(i,f=>Ar(s,A=>f||A?S("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},S("div",{class:`${e}-switch__rail-placeholder`},S("div",{class:`${e}-switch__button-placeholder`}),f),S("div",{class:`${e}-switch__rail-placeholder`},S("div",{class:`${e}-switch__button-placeholder`}),A)):null)),S("div",{class:`${e}-switch__button`},Ar(l,f=>Ar(u,A=>Ar(c,h=>S(yl,null,{default:()=>this.loading?S(Eu,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(A||f)?S("div",{class:`${e}-switch__button-icon`,key:A?"checked-icon":"icon"},A||f):!this.checked&&(h||f)?S("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||f):null})))),Ar(i,f=>f&&S("div",{key:"checked",class:`${e}-switch__checked`},f)),Ar(s,f=>f&&S("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}}),qOe=N([P("table",`
  5149. font-size: var(--n-font-size);
  5150. font-variant-numeric: tabular-nums;
  5151. line-height: var(--n-line-height);
  5152. width: 100%;
  5153. border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
  5154. text-align: left;
  5155. border-collapse: separate;
  5156. border-spacing: 0;
  5157. overflow: hidden;
  5158. background-color: var(--n-td-color);
  5159. border-color: var(--n-merged-border-color);
  5160. transition:
  5161. background-color .3s var(--n-bezier),
  5162. border-color .3s var(--n-bezier),
  5163. color .3s var(--n-bezier);
  5164. --n-merged-border-color: var(--n-border-color);
  5165. `,[N("th",`
  5166. white-space: nowrap;
  5167. transition:
  5168. background-color .3s var(--n-bezier),
  5169. border-color .3s var(--n-bezier),
  5170. color .3s var(--n-bezier);
  5171. text-align: inherit;
  5172. padding: var(--n-th-padding);
  5173. vertical-align: inherit;
  5174. text-transform: none;
  5175. border: 0px solid var(--n-merged-border-color);
  5176. font-weight: var(--n-th-font-weight);
  5177. color: var(--n-th-text-color);
  5178. background-color: var(--n-th-color);
  5179. border-bottom: 1px solid var(--n-merged-border-color);
  5180. border-right: 1px solid var(--n-merged-border-color);
  5181. `,[N("&:last-child",`
  5182. border-right: 0px solid var(--n-merged-border-color);
  5183. `)]),N("td",`
  5184. transition:
  5185. background-color .3s var(--n-bezier),
  5186. border-color .3s var(--n-bezier),
  5187. color .3s var(--n-bezier);
  5188. padding: var(--n-td-padding);
  5189. color: var(--n-td-text-color);
  5190. background-color: var(--n-td-color);
  5191. border: 0px solid var(--n-merged-border-color);
  5192. border-right: 1px solid var(--n-merged-border-color);
  5193. border-bottom: 1px solid var(--n-merged-border-color);
  5194. `,[N("&:last-child",`
  5195. border-right: 0px solid var(--n-merged-border-color);
  5196. `)]),j("bordered",`
  5197. border: 1px solid var(--n-merged-border-color);
  5198. border-radius: var(--n-border-radius);
  5199. `,[N("tr",[N("&:last-child",[N("td",`
  5200. border-bottom: 0 solid var(--n-merged-border-color);
  5201. `)])])]),j("single-line",[N("th",`
  5202. border-right: 0px solid var(--n-merged-border-color);
  5203. `),N("td",`
  5204. border-right: 0px solid var(--n-merged-border-color);
  5205. `)]),j("single-column",[N("tr",[N("&:not(:last-child)",[N("td",`
  5206. border-bottom: 0px solid var(--n-merged-border-color);
  5207. `)])])]),j("striped",[N("tr:nth-of-type(even)",[N("td","background-color: var(--n-td-color-striped)")])]),Wt("bottom-bordered",[N("tr",[N("&:last-child",[N("td",`
  5208. border-bottom: 0px solid var(--n-merged-border-color);
  5209. `)])])])]),_u(P("table",`
  5210. background-color: var(--n-td-color-modal);
  5211. --n-merged-border-color: var(--n-border-color-modal);
  5212. `,[N("th",`
  5213. background-color: var(--n-th-color-modal);
  5214. `),N("td",`
  5215. background-color: var(--n-td-color-modal);
  5216. `)])),dd(P("table",`
  5217. background-color: var(--n-td-color-popover);
  5218. --n-merged-border-color: var(--n-border-color-popover);
  5219. `,[N("th",`
  5220. background-color: var(--n-th-color-popover);
  5221. `),N("td",`
  5222. background-color: var(--n-td-color-popover);
  5223. `)]))]),ZOe=Object.assign(Object.assign({},Me.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),JOe=ge({name:"Table",props:ZOe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=nt(e),o=Me("Table","-table",qOe,uke,e,t),a=dn("Table",n,t),i=L(()=>{const{size:l}=e,{self:{borderColor:u,tdColor:c,tdColorModal:d,tdColorPopover:f,thColor:A,thColorModal:h,thColorPopover:v,thTextColor:p,tdTextColor:g,borderRadius:m,thFontWeight:y,lineHeight:b,borderColorModal:x,borderColorPopover:w,tdColorStriped:C,tdColorStripedModal:_,tdColorStripedPopover:B,[_e("fontSize",l)]:T,[_e("tdPadding",l)]:E,[_e("thPadding",l)]:I},common:{cubicBezierEaseInOut:R}}=o.value;return{"--n-bezier":R,"--n-td-color":c,"--n-td-color-modal":d,"--n-td-color-popover":f,"--n-td-text-color":g,"--n-border-color":u,"--n-border-color-modal":x,"--n-border-color-popover":w,"--n-border-radius":m,"--n-font-size":T,"--n-th-color":A,"--n-th-color-modal":h,"--n-th-color-popover":v,"--n-th-font-weight":y,"--n-th-text-color":p,"--n-line-height":b,"--n-td-padding":E,"--n-th-padding":I,"--n-td-color-striped":C,"--n-td-color-striped-modal":_,"--n-td-color-striped-popover":B}}),s=r?Et("table",L(()=>e.size[0]),i,e):void 0;return{rtlEnabled:a,mergedClsPrefix:t,cssVars:r?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),S("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),ML="n-tabs",FJ={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},e4e=ge({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:FJ,setup(e){const t=Ke(ML,null);return t||$o("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return S("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),t4e=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},ap(FJ,["displayDirective"])),Vw=ge({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:t4e,setup(e){const{mergedClsPrefixRef:t,valueRef:r,typeRef:n,closableRef:o,tabStyleRef:a,tabChangeIdRef:i,onBeforeLeaveRef:s,triggerRef:l,handleAdd:u,activateTab:c,handleClose:d}=Ke(ML);return{trigger:l,mergedClosable:L(()=>{if(e.internalAddable)return!1;const{closable:f}=e;return f===void 0?o.value:f}),style:a,clsPrefix:t,value:r,type:n,handleClose(f){f.stopPropagation(),!e.disabled&&d(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){u();return}const{name:f}=e,A=++i.id;if(f!==r.value){const{value:h}=s;h?Promise.resolve(h(e.name,r.value)).then(v=>{v&&i.id===A&&c(f)}):c(f)}}}},render(){const{internalAddable:e,clsPrefix:t,name:r,disabled:n,label:o,tab:a,value:i,mergedClosable:s,style:l,trigger:u,$slots:{default:c}}=this,d=o!=null?o:a;return S("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?S("div",{class:`${t}-tabs-tab-pad`}):null,S("div",Object.assign({key:r,"data-name":r,"data-disabled":n?!0:void 0},wn({class:[`${t}-tabs-tab`,i===r&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:u==="click"?this.activateTab:void 0,onMouseenter:u==="hover"?this.activateTab:void 0,style:e?void 0:l},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),S("span",{class:`${t}-tabs-tab__label`},e?S(lr,null,S("div",{class:`${t}-tabs-tab__height-placeholder`}," "),S(zt,{clsPrefix:t},{default:()=>S(Yk,null)})):c?c():typeof d=="object"?d:Nr(d!=null?d:r)),s&&this.type==="card"?S(pd,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),r4e=P("tabs",`
  5224. box-sizing: border-box;
  5225. width: 100%;
  5226. display: flex;
  5227. flex-direction: column;
  5228. transition:
  5229. background-color .3s var(--n-bezier),
  5230. border-color .3s var(--n-bezier);
  5231. `,[j("segment-type",[P("tabs-rail",[N("&.transition-disabled","color: red;",[P("tabs-tab",`
  5232. transition: none;
  5233. `)])])]),j("left, right",`
  5234. flex-direction: row;
  5235. `,[P("tabs-bar",`
  5236. width: 2px;
  5237. right: 0;
  5238. transition:
  5239. top .2s var(--n-bezier),
  5240. max-height .2s var(--n-bezier),
  5241. background-color .3s var(--n-bezier);
  5242. `),P("tabs-tab",`
  5243. padding: var(--n-tab-padding-vertical);
  5244. `)]),j("right",`
  5245. flex-direction: row-reverse;
  5246. `,[P("tabs-bar",`
  5247. left: 0;
  5248. `)]),j("bottom",`
  5249. flex-direction: column-reverse;
  5250. justify-content: flex-end;
  5251. `,[P("tabs-bar",`
  5252. top: 0;
  5253. `)]),P("tabs-rail",`
  5254. padding: 3px;
  5255. border-radius: var(--n-tab-border-radius);
  5256. width: 100%;
  5257. background-color: var(--n-color-segment);
  5258. transition: background-color .3s var(--n-bezier);
  5259. display: flex;
  5260. align-items: center;
  5261. `,[P("tabs-tab-wrapper",`
  5262. flex-basis: 0;
  5263. flex-grow: 1;
  5264. display: flex;
  5265. align-items: center;
  5266. justify-content: center;
  5267. `,[P("tabs-tab",`
  5268. overflow: hidden;
  5269. border-radius: var(--n-tab-border-radius);
  5270. width: 100%;
  5271. display: flex;
  5272. align-items: center;
  5273. justify-content: center;
  5274. `,[j("active",`
  5275. font-weight: var(--n-font-weight-strong);
  5276. color: var(--n-tab-text-color-active);
  5277. background-color: var(--n-tab-color-segment);
  5278. box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
  5279. `),N("&:hover",`
  5280. color: var(--n-tab-text-color-hover);
  5281. `)])])]),j("flex",[P("tabs-nav",{width:"100%"},[P("tabs-wrapper",{width:"100%"},[P("tabs-tab",{marginRight:0})])])]),P("tabs-nav",`
  5282. box-sizing: border-box;
  5283. line-height: 1.5;
  5284. display: flex;
  5285. transition: border-color .3s var(--n-bezier);
  5286. `,[G("prefix, suffix",`
  5287. display: flex;
  5288. align-items: center;
  5289. `),G("prefix","padding-right: 16px;"),G("suffix","padding-left: 16px;")]),P("tabs-nav-scroll-wrapper",`
  5290. flex: 1;
  5291. position: relative;
  5292. overflow: hidden;
  5293. `,[j("shadow-before",[N("&::before",`
  5294. box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
  5295. `)]),j("shadow-after",[N("&::after",`
  5296. box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
  5297. `)]),P("tabs-nav-y-scroll",`
  5298. height: 100%;
  5299. width: 100%;
  5300. overflow-y: auto;
  5301. scrollbar-width: none;
  5302. `,[N("&::-webkit-scrollbar",`
  5303. width: 0;
  5304. height: 0;
  5305. `)]),N("&::before, &::after",`
  5306. transition: box-shadow .3s var(--n-bezier);
  5307. pointer-events: none;
  5308. content: "";
  5309. position: absolute;
  5310. top: 0;
  5311. bottom: 0;
  5312. width: 20px;
  5313. z-index: 1;
  5314. `),N("&::before",`
  5315. left: 0;
  5316. `),N("&::after",`
  5317. right: 0;
  5318. `)]),P("tabs-nav-scroll-content",`
  5319. display: flex;
  5320. position: relative;
  5321. min-width: 100%;
  5322. width: fit-content;
  5323. `),P("tabs-wrapper",`
  5324. display: inline-flex;
  5325. flex-wrap: nowrap;
  5326. position: relative;
  5327. `),P("tabs-tab-wrapper",`
  5328. display: flex;
  5329. flex-wrap: nowrap;
  5330. flex-shrink: 0;
  5331. flex-grow: 0;
  5332. `),P("tabs-tab",`
  5333. cursor: pointer;
  5334. white-space: nowrap;
  5335. flex-wrap: nowrap;
  5336. display: inline-flex;
  5337. align-items: center;
  5338. color: var(--n-tab-text-color);
  5339. font-size: var(--n-tab-font-size);
  5340. background-clip: padding-box;
  5341. padding: var(--n-tab-padding);
  5342. transition:
  5343. box-shadow .3s var(--n-bezier),
  5344. color .3s var(--n-bezier),
  5345. background-color .3s var(--n-bezier),
  5346. border-color .3s var(--n-bezier);
  5347. `,[j("disabled",{cursor:"not-allowed"}),G("close",`
  5348. margin-left: 6px;
  5349. transition:
  5350. background-color .3s var(--n-bezier),
  5351. color .3s var(--n-bezier);
  5352. `),G("label",`
  5353. display: flex;
  5354. align-items: center;
  5355. `)]),P("tabs-bar",`
  5356. position: absolute;
  5357. bottom: 0;
  5358. height: 2px;
  5359. border-radius: 1px;
  5360. background-color: var(--n-bar-color);
  5361. transition:
  5362. left .2s var(--n-bezier),
  5363. max-width .2s var(--n-bezier),
  5364. background-color .3s var(--n-bezier);
  5365. `,[N("&.transition-disabled",`
  5366. transition: none;
  5367. `),j("disabled",`
  5368. background-color: var(--n-tab-text-color-disabled)
  5369. `)]),P("tabs-pane-wrapper",`
  5370. position: relative;
  5371. overflow: hidden;
  5372. transition: max-height .2s var(--n-bezier);
  5373. `),P("tab-pane",`
  5374. color: var(--n-pane-text-color);
  5375. width: 100%;
  5376. padding: var(--n-pane-padding);
  5377. transition:
  5378. color .3s var(--n-bezier),
  5379. background-color .3s var(--n-bezier),
  5380. opacity .2s var(--n-bezier);
  5381. left: 0;
  5382. right: 0;
  5383. top: 0;
  5384. `,[N("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
  5385. transition:
  5386. color .3s var(--n-bezier),
  5387. background-color .3s var(--n-bezier),
  5388. transform .2s var(--n-bezier),
  5389. opacity .2s var(--n-bezier);
  5390. `),N("&.next-transition-leave-active, &.prev-transition-leave-active",`
  5391. position: absolute;
  5392. `),N("&.next-transition-enter-from, &.prev-transition-leave-to",`
  5393. transform: translateX(32px);
  5394. opacity: 0;
  5395. `),N("&.next-transition-leave-to, &.prev-transition-enter-from",`
  5396. transform: translateX(-32px);
  5397. opacity: 0;
  5398. `),N("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
  5399. transform: translateX(0);
  5400. opacity: 1;
  5401. `)]),P("tabs-tab-pad",`
  5402. width: var(--n-tab-gap);
  5403. flex-grow: 0;
  5404. flex-shrink: 0;
  5405. `),j("line-type, bar-type",[P("tabs-tab",`
  5406. font-weight: var(--n-tab-font-weight);
  5407. box-sizing: border-box;
  5408. vertical-align: bottom;
  5409. `,[N("&:hover",{color:"var(--n-tab-text-color-hover)"}),j("active",`
  5410. color: var(--n-tab-text-color-active);
  5411. font-weight: var(--n-tab-font-weight-active);
  5412. `),j("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),P("tabs-nav",[j("line-type",[G("prefix, suffix",`
  5413. transition: border-color .3s var(--n-bezier);
  5414. border-bottom: 1px solid var(--n-tab-border-color);
  5415. `),P("tabs-nav-scroll-content",`
  5416. transition: border-color .3s var(--n-bezier);
  5417. border-bottom: 1px solid var(--n-tab-border-color);
  5418. `),P("tabs-bar",`
  5419. border-radius: 0;
  5420. bottom: -1px;
  5421. `)]),j("card-type",[G("prefix, suffix",`
  5422. transition: border-color .3s var(--n-bezier);
  5423. border-bottom: 1px solid var(--n-tab-border-color);
  5424. `),P("tabs-pad",`
  5425. flex-grow: 1;
  5426. transition: border-color .3s var(--n-bezier);
  5427. border-bottom: 1px solid var(--n-tab-border-color);
  5428. `),P("tabs-tab-pad",`
  5429. transition: border-color .3s var(--n-bezier);
  5430. border-bottom: 1px solid var(--n-tab-border-color);
  5431. `),P("tabs-tab",`
  5432. font-weight: var(--n-tab-font-weight);
  5433. border: 1px solid var(--n-tab-border-color);
  5434. border-top-left-radius: var(--n-tab-border-radius);
  5435. border-top-right-radius: var(--n-tab-border-radius);
  5436. background-color: var(--n-tab-color);
  5437. box-sizing: border-box;
  5438. position: relative;
  5439. vertical-align: bottom;
  5440. display: flex;
  5441. justify-content: space-between;
  5442. font-size: var(--n-tab-font-size);
  5443. color: var(--n-tab-text-color);
  5444. `,[j("addable",`
  5445. padding-left: 8px;
  5446. padding-right: 8px;
  5447. font-size: 16px;
  5448. `,[G("height-placeholder",`
  5449. width: 0;
  5450. font-size: var(--n-tab-font-size);
  5451. `),Wt("disabled",[N("&:hover",`
  5452. color: var(--n-tab-text-color-hover);
  5453. `)])]),j("closable","padding-right: 6px;"),j("active",`
  5454. border-bottom: 1px solid #0000;
  5455. background-color: #0000;
  5456. font-weight: var(--n-tab-font-weight-active);
  5457. color: var(--n-tab-text-color-active);
  5458. `),j("disabled","color: var(--n-tab-text-color-disabled);")]),P("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),j("left, right",[P("tabs-wrapper",`
  5459. flex-direction: column;
  5460. `,[P("tabs-tab-wrapper",`
  5461. flex-direction: column;
  5462. `,[P("tabs-tab-pad",`
  5463. height: var(--n-tab-gap);
  5464. width: 100%;
  5465. `)])]),P("tabs-nav-scroll-content",`
  5466. border-bottom: none;
  5467. `)]),j("left",[P("tabs-nav-scroll-content",`
  5468. box-sizing: border-box;
  5469. border-right: 1px solid var(--n-tab-border-color);
  5470. `)]),j("right",[P("tabs-nav-scroll-content",`
  5471. border-left: 1px solid var(--n-tab-border-color);
  5472. `)]),j("bottom",[P("tabs-nav-scroll-content",`
  5473. border-top: 1px solid var(--n-tab-border-color);
  5474. border-bottom: none;
  5475. `)])])]),n4e=Object.assign(Object.assign({},Me.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),o4e=ge({name:"Tabs",props:n4e,setup(e,{slots:t}){var r,n,o,a;const{mergedClsPrefixRef:i,inlineThemeDisabled:s}=nt(e),l=Me("Tabs","-tabs",r4e,hke,e,i),u=q(null),c=q(null),d=q(null),f=q(null),A=q(null),h=q(!0),v=q(!0),p=Kc(e,["labelSize","size"]),g=Kc(e,["activeName","value"]),m=q((n=(r=g.value)!==null&&r!==void 0?r:e.defaultValue)!==null&&n!==void 0?n:t.default?(a=(o=Ii(t.default())[0])===null||o===void 0?void 0:o.props)===null||a===void 0?void 0:a.name:null),y=Ir(g,m),b={id:0},x=L(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});gt(y,()=>{b.id=0,B(),T()});function w(){var ee;const{value:H}=y;return H===null?null:(ee=u.value)===null||ee===void 0?void 0:ee.querySelector(`[data-name="${H}"]`)}function C(ee){if(e.type==="card")return;const{value:H}=c;if(H&&ee){const Y=`${i.value}-tabs-bar--disabled`,{barWidth:oe,placement:he}=e;if(ee.dataset.disabled==="true"?H.classList.add(Y):H.classList.remove(Y),["top","bottom"].includes(he)){if(_(["top","maxHeight","height"]),typeof oe=="number"&&ee.offsetWidth>=oe){const ne=Math.floor((ee.offsetWidth-oe)/2)+ee.offsetLeft;H.style.left=`${ne}px`,H.style.maxWidth=`${oe}px`}else H.style.left=`${ee.offsetLeft}px`,H.style.maxWidth=`${ee.offsetWidth}px`;H.style.width="8192px",H.offsetWidth}else{if(_(["left","maxWidth","width"]),typeof oe=="number"&&ee.offsetHeight>=oe){const ne=Math.floor((ee.offsetHeight-oe)/2)+ee.offsetTop;H.style.top=`${ne}px`,H.style.maxHeight=`${oe}px`}else H.style.top=`${ee.offsetTop}px`,H.style.maxHeight=`${ee.offsetHeight}px`;H.style.height="8192px",H.offsetHeight}}}function _(ee){const{value:H}=c;if(H)for(const Y of ee)H.style[Y]=""}function B(){if(e.type==="card")return;const ee=w();ee&&C(ee)}function T(ee){var H;const Y=(H=A.value)===null||H===void 0?void 0:H.$el;if(!Y)return;const oe=w();if(!oe)return;const{scrollLeft:he,offsetWidth:ne}=Y,{offsetLeft:Ae,offsetWidth:X}=oe;he>Ae?Y.scrollTo({top:0,left:Ae,behavior:"smooth"}):Ae+X>he+ne&&Y.scrollTo({top:0,left:Ae+X-ne,behavior:"smooth"})}const E=q(null);let I=0,R=null;function D(ee){const H=E.value;if(H){I=ee.getBoundingClientRect().height;const Y=`${I}px`,oe=()=>{H.style.height=Y,H.style.maxHeight=Y};R?(oe(),R(),R=null):R=oe}}function F(ee){const H=E.value;if(H){const Y=ee.getBoundingClientRect().height,oe=()=>{document.body.offsetHeight,H.style.maxHeight=`${Y}px`,H.style.height=`${Math.max(I,Y)}px`};R?(R(),R=null,oe()):R=oe}}function M(){const ee=E.value;ee&&(ee.style.maxHeight="",ee.style.height="")}const $={value:[]},O=q("next");function Q(ee){const H=y.value;let Y="next";for(const oe of $.value){if(oe===H)break;if(oe===ee){Y="prev";break}}O.value=Y,V(ee)}function V(ee){const{onActiveNameChange:H,onUpdateValue:Y,"onUpdate:value":oe}=e;H&&Te(H,ee),Y&&Te(Y,ee),oe&&Te(oe,ee),m.value=ee}function W(ee){const{onClose:H}=e;H&&Te(H,ee)}function Z(){const{value:ee}=c;if(!ee)return;const H="transition-disabled";ee.classList.add(H),B(),ee.classList.remove(H)}let te=0;function ae(ee){var H;if(ee.contentRect.width===0&&ee.contentRect.height===0||te===ee.contentRect.width)return;te=ee.contentRect.width;const{type:Y}=e;(Y==="line"||Y==="bar")&&Z(),Y!=="segment"&&de((H=A.value)===null||H===void 0?void 0:H.$el)}const re=i2(ae,64);gt([()=>e.justifyContent,()=>e.size],()=>{dr(()=>{const{type:ee}=e;(ee==="line"||ee==="bar")&&Z()})});const le=q(!1);function se(ee){var H;const{target:Y,contentRect:{width:oe}}=ee,he=Y.parentElement.offsetWidth;if(!le.value)he<oe&&(le.value=!0);else{const{value:ne}=f;if(!ne)return;he-oe>ne.$el.offsetWidth&&(le.value=!1)}de((H=A.value)===null||H===void 0?void 0:H.$el)}const ce=i2(se,64);function be(){const{onAdd:ee}=e;ee&&ee(),dr(()=>{const H=w(),{value:Y}=A;!H||!Y||Y.scrollTo({left:H.offsetLeft,top:0,behavior:"smooth"})})}function de(ee){if(!ee)return;const{scrollLeft:H,scrollWidth:Y,offsetWidth:oe}=ee;h.value=H<=0,v.value=H+oe>=Y}const pe=i2(ee=>{de(ee.target)},64);_t(ML,{triggerRef:Re(e,"trigger"),tabStyleRef:Re(e,"tabStyle"),paneClassRef:Re(e,"paneClass"),paneStyleRef:Re(e,"paneStyle"),mergedClsPrefixRef:i,typeRef:Re(e,"type"),closableRef:Re(e,"closable"),valueRef:y,tabChangeIdRef:b,onBeforeLeaveRef:Re(e,"onBeforeLeave"),activateTab:Q,handleClose:W,handleAdd:be}),Ik(()=>{B(),T()}),Sr(()=>{const{value:ee}=d;if(!ee||["left","right"].includes(e.placement))return;const{value:H}=i,Y=`${H}-tabs-nav-scroll-wrapper--shadow-before`,oe=`${H}-tabs-nav-scroll-wrapper--shadow-after`;h.value?ee.classList.remove(Y):ee.classList.add(Y),v.value?ee.classList.remove(oe):ee.classList.add(oe)});const K=q(null);gt(y,()=>{if(e.type==="segment"){const ee=K.value;ee&&dr(()=>{ee.classList.add("transition-disabled"),ee.offsetWidth,ee.classList.remove("transition-disabled")})}});const U={syncBarPosition:()=>{B()}},k=L(()=>{const{value:ee}=p,{type:H}=e,Y={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[H],oe=`${ee}${Y}`,{self:{barColor:he,closeIconColor:ne,closeIconColorHover:Ae,closeIconColorPressed:X,tabColor:ie,tabBorderColor:fe,paneTextColor:ye,tabFontWeight:Fe,tabBorderRadius:Ne,tabFontWeightActive:rt,colorSegment:lt,fontWeightStrong:mt,tabColorSegment:Ge,closeSize:it,closeIconSize:je,closeColorHover:Ye,closeColorPressed:ue,closeBorderRadius:Ee,[_e("panePadding",ee)]:Qe,[_e("tabPadding",oe)]:et,[_e("tabPaddingVertical",oe)]:tt,[_e("tabGap",oe)]:xe,[_e("tabTextColor",H)]:$e,[_e("tabTextColorActive",H)]:Xe,[_e("tabTextColorHover",H)]:ht,[_e("tabTextColorDisabled",H)]:Se,[_e("tabFontSize",ee)]:He},common:{cubicBezierEaseInOut:me}}=l.value;return{"--n-bezier":me,"--n-color-segment":lt,"--n-bar-color":he,"--n-tab-font-size":He,"--n-tab-text-color":$e,"--n-tab-text-color-active":Xe,"--n-tab-text-color-disabled":Se,"--n-tab-text-color-hover":ht,"--n-pane-text-color":ye,"--n-tab-border-color":fe,"--n-tab-border-radius":Ne,"--n-close-size":it,"--n-close-icon-size":je,"--n-close-color-hover":Ye,"--n-close-color-pressed":ue,"--n-close-border-radius":Ee,"--n-close-icon-color":ne,"--n-close-icon-color-hover":Ae,"--n-close-icon-color-pressed":X,"--n-tab-color":ie,"--n-tab-font-weight":Fe,"--n-tab-font-weight-active":rt,"--n-tab-padding":et,"--n-tab-padding-vertical":tt,"--n-tab-gap":xe,"--n-pane-padding":Qe,"--n-font-weight-strong":mt,"--n-tab-color-segment":Ge}}),J=s?Et("tabs",L(()=>`${p.value[0]}${e.type[0]}`),k,e):void 0;return Object.assign({mergedClsPrefix:i,mergedValue:y,renderedNames:new Set,tabsRailElRef:K,tabsPaneWrapperRef:E,tabsElRef:u,barElRef:c,addTabInstRef:f,xScrollInstRef:A,scrollWrapperElRef:d,addTabFixed:le,tabWrapperStyle:x,handleNavResize:re,mergedSize:p,handleScroll:pe,handleTabsResize:ce,cssVars:s?void 0:k,themeClass:J==null?void 0:J.themeClass,animationDirection:O,renderNameListRef:$,onAnimationBeforeLeave:D,onAnimationEnter:F,onAnimationAfterEnter:M,onRender:J==null?void 0:J.onRender},U)},render(){const{mergedClsPrefix:e,type:t,placement:r,addTabFixed:n,addable:o,mergedSize:a,renderNameListRef:i,onRender:s,$slots:{default:l,prefix:u,suffix:c}}=this;s==null||s();const d=l?Ii(l()).filter(m=>m.type.__TAB_PANE__===!0):[],f=l?Ii(l()).filter(m=>m.type.__TAB__===!0):[],A=!f.length,h=t==="card",v=t==="segment",p=!h&&!v&&this.justifyContent;i.value=[];const g=()=>{const m=S("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},p?null:S("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),A?d.map((y,b)=>(i.value.push(y.props.name),U2(S(Vw,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:b!==0&&(!p||p==="center"||p==="start"||p==="end")}),y.children?{default:y.children.tab}:void 0)))):f.map((y,b)=>(i.value.push(y.props.name),U2(b!==0&&!p?xN(y):y))),!n&&o&&h?bN(o,(A?d.length:f.length)!==0):null,p?null:S("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return S("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},h&&o?S(Fi,{onResize:this.handleTabsResize},{default:()=>m}):m,h?S("div",{class:`${e}-tabs-pad`}):null,h?null:S("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return S("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,p&&`${e}-tabs--flex`,`${e}-tabs--${r}`],style:this.cssVars},S("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${r}`,`${e}-tabs-nav`]},Ar(u,m=>m&&S("div",{class:`${e}-tabs-nav__prefix`},m)),v?S("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},A?d.map((m,y)=>(i.value.push(m.props.name),S(Vw,Object.assign({},m.props,{internalCreatedByPane:!0,internalLeftPadded:y!==0}),m.children?{default:m.children.tab}:void 0))):f.map((m,y)=>(i.value.push(m.props.name),y===0?m:xN(m)))):S(Fi,{onResize:this.handleNavResize},{default:()=>S("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(r)?S(Npe,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):S("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),n&&o&&h?bN(o,!0):null,Ar(c,m=>m&&S("div",{class:`${e}-tabs-nav__suffix`},m))),A&&(this.animated?S("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},yN(d,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yN(d,this.mergedValue,this.renderedNames)))}});function yN(e,t,r,n,o,a,i){const s=[];return e.forEach(l=>{const{name:u,displayDirective:c,"display-directive":d}=l.props,f=h=>c===h||d===h,A=t===u;if(l.key!==void 0&&(l.key=u),A||f("show")||f("show:lazy")&&r.has(u)){r.has(u)||r.add(u);const h=!f("if");s.push(h?en(l,[[Ln,A]]):l)}}),i?S(IS,{name:`${i}-transition`,onBeforeLeave:n,onEnter:o,onAfterEnter:a},{default:()=>s}):s}function bN(e,t){return S(Vw,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function xN(e){const t=Fo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function U2(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const a4e=P("thing",`
  5476. display: flex;
  5477. transition: color .3s var(--n-bezier);
  5478. font-size: var(--n-font-size);
  5479. color: var(--n-text-color);
  5480. `,[P("thing-avatar",`
  5481. margin-right: 12px;
  5482. margin-top: 2px;
  5483. `),P("thing-avatar-header-wrapper",`
  5484. display: flex;
  5485. flex-wrap: nowrap;
  5486. `,[P("thing-header-wrapper",`
  5487. flex: 1;
  5488. `)]),P("thing-main",`
  5489. flex-grow: 1;
  5490. `,[P("thing-header",`
  5491. display: flex;
  5492. margin-bottom: 4px;
  5493. justify-content: space-between;
  5494. align-items: center;
  5495. `,[G("title",`
  5496. font-size: 16px;
  5497. font-weight: var(--n-title-font-weight);
  5498. transition: color .3s var(--n-bezier);
  5499. color: var(--n-title-text-color);
  5500. `)]),G("description",[N("&:not(:last-child)",`
  5501. margin-bottom: 4px;
  5502. `)]),G("content",[N("&:not(:first-child)",`
  5503. margin-top: 12px;
  5504. `)]),G("footer",[N("&:not(:first-child)",`
  5505. margin-top: 12px;
  5506. `)]),G("action",[N("&:not(:first-child)",`
  5507. margin-top: 12px;
  5508. `)])])]),i4e=Object.assign(Object.assign({},Me.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),s4e=ge({name:"Thing",props:i4e,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=nt(e),a=Me("Thing","-thing",a4e,mke,e,r),i=dn("Thing",o,r),s=L(()=>{const{self:{titleTextColor:u,textColor:c,titleFontWeight:d,fontSize:f},common:{cubicBezierEaseInOut:A}}=a.value;return{"--n-bezier":A,"--n-font-size":f,"--n-text-color":c,"--n-title-font-weight":d,"--n-title-text-color":u}}),l=n?Et("thing",void 0,s,e):void 0;return()=>{var u;const{value:c}=r,d=i?i.value:!1;return(u=l==null?void 0:l.onRender)===null||u===void 0||u.call(l),S("div",{class:[`${c}-thing`,l==null?void 0:l.themeClass,d&&`${c}-thing--rtl`],style:n?void 0:s.value},t.avatar&&e.contentIndented?S("div",{class:`${c}-thing-avatar`},t.avatar()):null,S("div",{class:`${c}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?S("div",{class:`${c}-thing-avatar-header-wrapper`},t.avatar?S("div",{class:`${c}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?S("div",{class:`${c}-thing-header-wrapper`},S("div",{class:`${c}-thing-header`},t.header||e.title?S("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?S("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?S("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):S(lr,null,t.header||e.title||t["header-extra"]||e.titleExtra?S("div",{class:`${c}-thing-header`},t.header||e.title?S("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?S("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?S("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?S("div",{class:`${c}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?S("div",{class:`${c}-thing-main__footer`},t.footer()):null,t.action?S("div",{class:`${c}-thing-main__action`},t.action()):null))}}}),l4e={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},u4e=ge({name:"Time",props:l4e,setup(e){const t=Date.now(),{localeRef:r,dateLocaleRef:n}=zi("Time"),o=L(()=>{const{timeZone:u}=e;return u?(c,d,f)=>vZ(c,u,d,f):An}),a=L(()=>({locale:n.value.locale})),i=L(()=>{const{time:u}=e;return e.unix?u===void 0?t:CU(typeof u=="number"?u:u.valueOf()):u!=null?u:t}),s=L(()=>{const{to:u}=e;return e.unix?u===void 0?t:CU(typeof u=="number"?u:u.valueOf()):u!=null?u:t});return{renderedTime:L(()=>e.format?o.value(i.value,e.format,a.value):e.type==="date"?o.value(i.value,r.value.dateFormat,a.value):e.type==="datetime"?o.value(i.value,r.value.dateTimeFormat,a.value):fBe(i.value,s.value,{addSuffix:!0,locale:n.value.locale}))}},render(){return this.text?du(this.renderedTime):S("time",[this.renderedTime])}}),wN=1.25,c4e=P("timeline",`
  5509. position: relative;
  5510. width: 100%;
  5511. display: flex;
  5512. flex-direction: column;
  5513. line-height: ${wN};
  5514. `,[j("horizontal",`
  5515. flex-direction: row;
  5516. `,[N(">",[P("timeline-item",`
  5517. flex-shrink: 0;
  5518. padding-right: 40px;
  5519. `,[j("dashed-line-type",[N(">",[P("timeline-item-timeline",[G("line",`
  5520. background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%);
  5521. background-size: 10px 1px;
  5522. `)])])]),N(">",[P("timeline-item-content",`
  5523. margin-top: calc(var(--n-icon-size) + 12px);
  5524. `,[N(">",[G("meta",`
  5525. margin-top: 6px;
  5526. margin-bottom: unset;
  5527. `)])]),P("timeline-item-timeline",`
  5528. width: 100%;
  5529. height: calc(var(--n-icon-size) + 12px);
  5530. `,[G("line",`
  5531. left: var(--n-icon-size);
  5532. top: calc(var(--n-icon-size) / 2 - 1px);
  5533. right: 0px;
  5534. width: unset;
  5535. height: 2px;
  5536. `)])])])])]),j("right-placement",[P("timeline-item",[P("timeline-item-content",`
  5537. text-align: right;
  5538. margin-right: calc(var(--n-icon-size) + 12px);
  5539. `),P("timeline-item-timeline",`
  5540. width: var(--n-icon-size);
  5541. right: 0;
  5542. `)])]),j("left-placement",[P("timeline-item",[P("timeline-item-content",`
  5543. margin-left: calc(var(--n-icon-size) + 12px);
  5544. `),P("timeline-item-timeline",`
  5545. left: 0;
  5546. `)])]),P("timeline-item",`
  5547. position: relative;
  5548. `,[N("&:last-child",[P("timeline-item-timeline",[G("line",`
  5549. display: none;
  5550. `)]),P("timeline-item-content",[G("meta",`
  5551. margin-bottom: 0;
  5552. `)])]),P("timeline-item-content",[G("title",`
  5553. margin: var(--n-title-margin);
  5554. font-size: var(--n-title-font-size);
  5555. transition: color .3s var(--n-bezier);
  5556. font-weight: var(--n-title-font-weight);
  5557. color: var(--n-title-text-color);
  5558. `),G("content",`
  5559. transition: color .3s var(--n-bezier);
  5560. font-size: var(--n-content-font-size);
  5561. color: var(--n-content-text-color);
  5562. `),G("meta",`
  5563. transition: color .3s var(--n-bezier);
  5564. font-size: 12px;
  5565. margin-top: 6px;
  5566. margin-bottom: 20px;
  5567. color: var(--n-meta-text-color);
  5568. `)]),j("dashed-line-type",[P("timeline-item-timeline",[G("line",`
  5569. --n-color-start: var(--n-line-color);
  5570. transition: --n-color-start .3s var(--n-bezier);
  5571. background-color: transparent;
  5572. background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%);
  5573. background-size: 1px 10px;
  5574. `)])]),P("timeline-item-timeline",`
  5575. width: calc(var(--n-icon-size) + 12px);
  5576. position: absolute;
  5577. top: calc(var(--n-title-font-size) * ${wN} / 2 - var(--n-icon-size) / 2);
  5578. height: 100%;
  5579. `,[G("circle",`
  5580. border: var(--n-circle-border);
  5581. transition:
  5582. background-color .3s var(--n-bezier),
  5583. border-color .3s var(--n-bezier);
  5584. width: var(--n-icon-size);
  5585. height: var(--n-icon-size);
  5586. border-radius: var(--n-icon-size);
  5587. box-sizing: border-box;
  5588. `),G("icon",`
  5589. color: var(--n-icon-color);
  5590. font-size: var(--n-icon-size);
  5591. height: var(--n-icon-size);
  5592. width: var(--n-icon-size);
  5593. display: flex;
  5594. align-items: center;
  5595. justify-content: center;
  5596. `),G("line",`
  5597. transition: background-color .3s var(--n-bezier);
  5598. position: absolute;
  5599. top: var(--n-icon-size);
  5600. left: calc(var(--n-icon-size) / 2 - 1px);
  5601. bottom: 0px;
  5602. width: 2px;
  5603. background-color: var(--n-line-color);
  5604. `)])])]),d4e=Object.assign(Object.assign({},Me.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),kJ="n-timeline",f4e=ge({name:"Timeline",props:d4e,setup(e,{slots:t}){const{mergedClsPrefixRef:r}=nt(e),n=Me("Timeline","-timeline",c4e,_ke,e,r);return _t(kJ,{props:e,mergedThemeRef:n,mergedClsPrefixRef:r}),()=>{const{value:o}=r;return S("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),A4e={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},h4e=ge({name:"TimelineItem",props:A4e,setup(e){const t=Ke(kJ);t||$o("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),Pk();const{inlineThemeDisabled:r}=nt(),n=L(()=>{const{props:{size:a,iconSize:i},mergedThemeRef:s}=t,{type:l}=e,{self:{titleTextColor:u,contentTextColor:c,metaTextColor:d,lineColor:f,titleFontWeight:A,contentFontSize:h,[_e("iconSize",a)]:v,[_e("titleMargin",a)]:p,[_e("titleFontSize",a)]:g,[_e("circleBorder",l)]:m,[_e("iconColor",l)]:y},common:{cubicBezierEaseInOut:b}}=s.value;return{"--n-bezier":b,"--n-circle-border":m,"--n-icon-color":y,"--n-content-font-size":h,"--n-content-text-color":c,"--n-line-color":f,"--n-meta-text-color":d,"--n-title-font-size":g,"--n-title-font-weight":A,"--n-title-margin":p,"--n-title-text-color":u,"--n-icon-size":wr(i)||v}}),o=r?Et("timeline-item",L(()=>{const{props:{size:a,iconSize:i}}=t,{type:s}=e;return`${a[0]}${i||"a"}${s[0]}`}),n,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:r?void 0:n,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:r,$slots:n}=this;return r==null||r(),S("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},S("div",{class:`${e}-timeline-item-timeline`},S("div",{class:`${e}-timeline-item-timeline__line`}),Ar(n.icon,o=>o?S("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):S("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),S("div",{class:`${e}-timeline-item-content`},Ar(n.header,o=>o||this.title?S("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),S("div",{class:`${e}-timeline-item-content__content`},Kt(n.default,()=>[this.content])),S("div",{class:`${e}-timeline-item-content__meta`},Kt(n.footer,()=>[this.time]))))}}),LJ="n-tree-select",Dy="n-tree",v4e=ge({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Ke(Dy,null);return()=>{const{clsPrefix:r}=e;return S("span",{"data-switcher":!0,class:[`${r}-tree-node-switcher`,e.expanded&&`${r}-tree-node-switcher--expanded`,e.hide&&`${r}-tree-node-switcher--hide`],onClick:e.onClick},S("div",{class:`${r}-tree-node-switcher__icon`},S(yl,null,{default:()=>{if(e.loading)return S(Eu,{clsPrefix:r,key:"loading",radius:85,strokeWidth:20});const{value:n}=t;return n?n({expanded:e.expanded,selected:e.selected}):S(zt,{clsPrefix:r,key:"switcher"},{default:()=>S(Pwe,null)})}})))}}}),p4e=ge({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Ke(Dy);function r(o){const{onCheck:a}=e;if(a)return a(o)}function n(o){e.indeterminate?r(!1):r(o)}return{handleUpdateValue:n,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:r,indeterminate:n,disabled:o,focusable:a,handleUpdateValue:i}=this;return S("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},S(By,{focusable:a,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:r,indeterminate:n,onUpdateChecked:i}))}}),g4e=ge({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:r,renderSuffixRef:n,labelFieldRef:o}=Ke(Dy),a=q(null);function i(l){const{onClick:u}=e;u&&u(l)}function s(l){i(l)}return{selfRef:a,renderLabel:t,renderPrefix:r,renderSuffix:n,labelField:o,handleClick:s}},render(){const{clsPrefix:e,labelField:t,nodeProps:r,checked:n=!1,selected:o=!1,renderLabel:a,renderPrefix:i,renderSuffix:s,handleClick:l,onDragstart:u,tmNode:{rawNode:c,rawNode:{prefix:d,suffix:f,[t]:A}}}=this;return S("span",Object.assign({},r,{ref:"selfRef",class:[`${e}-tree-node-content`,r==null?void 0:r.class],onClick:l,draggable:u===void 0?void 0:!0,onDragstart:u}),i||d?S("div",{class:`${e}-tree-node-content__prefix`},i?i({option:c,selected:o,checked:n}):Nr(d)):null,S("div",{class:`${e}-tree-node-content__text`},a?a({option:c,selected:o,checked:n}):Nr(A)),s||f?S("div",{class:`${e}-tree-node-content__suffix`},s?s({option:c,selected:o,checked:n}):Nr(f)):null)}});function CN({position:e,offsetLevel:t,indent:r,el:n}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const a=e==="before"?"top":"bottom";o[a]=0,o.left=`${n.offsetLeft+6-t*r}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=a,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return S("div",{style:o})}function m4e({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function y4e(e){return L(()=>e.leafOnly?"child":e.checkStrategy)}function ec(e,t){return!!e.rawNode[t]}function OJ(e,t,r,n){e==null||e.forEach(o=>{r(o),OJ(o[t],t,r,n),n(o)})}function b4e(e,t,r,n,o){const a=new Set,i=new Set,s=[];return OJ(e,n,l=>{if(s.push(l),o(t,l)){i.add(l[r]);for(let u=s.length-2;u>=0;--u)if(!a.has(s[u][r]))a.add(s[u][r]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(a),highlightKeySet:i}}if(ni&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function x4e(e,t,r,n,o){const a=new Set,i=new Set,s=new Set,l=[],u=[],c=[];function d(A){A.forEach(h=>{if(c.push(h),t(r,h)){a.add(h[n]),s.add(h[n]);for(let p=c.length-2;p>=0;--p){const g=c[p][n];if(!i.has(g))i.add(g),a.has(g)&&a.delete(g);else break}}const v=h[o];v&&d(v),c.pop()})}d(e);function f(A,h){A.forEach(v=>{const p=v[n],g=a.has(p),m=i.has(p);if(!g&&!m)return;const y=v[o];if(y)if(g)h.push(v);else{l.push(p);const b=Object.assign(Object.assign({},v),{[o]:[]});h.push(b),f(y,b[o])}else h.push(v)})}return f(e,u),{filteredTree:u,highlightKeySet:s,expandedKeys:l}}const w4e=ge({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Ke(Dy),{droppingNodeParentRef:r,droppingMouseNodeRef:n,draggingNodeRef:o,droppingPositionRef:a,droppingOffsetLevelRef:i,nodePropsRef:s,indentRef:l,blockLineRef:u,checkboxPlacementRef:c,checkOnClickRef:d,disabledFieldRef:f}=t,A=Ft(()=>!!e.tmNode.rawNode.checkboxDisabled),h=Ft(()=>ec(e.tmNode,f.value)),v=Ft(()=>t.disabledRef.value||h.value),p=L(()=>{const{value:O}=s;if(O)return O({option:e.tmNode.rawNode})}),g=q(null),m={value:null};yr(()=>{m.value=g.value.$el});function y(){const{tmNode:O}=e;if(!O.isLeaf&&!O.shallowLoaded){if(!t.loadingKeysRef.value.has(O.key))t.loadingKeysRef.value.add(O.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(O.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(O)}).finally(()=>{t.loadingKeysRef.value.delete(O.key)})}else t.handleSwitcherClick(O)}const b=Ft(()=>!h.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),x=Ft(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),w=Ft(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),C=Ft(()=>{const{value:O}=x;if(!O)return!1;const{value:Q}=d;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function _(O){const{value:Q}=t.expandOnClickRef,{value:V}=b,{value:W}=C;if(!V&&!Q&&!W||Ja(O,"checkbox")||Ja(O,"switcher"))return;const{tmNode:Z}=e;V&&t.handleSelect(Z),Q&&!Z.isLeaf&&y(),W&&E(!w.value)}function B(O){var Q,V;u.value||(v.value||_(O),(V=(Q=p.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,O))}function T(O){var Q,V;u.value&&(v.value||_(O),(V=(Q=p.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,O))}function E(O){t.handleCheck(e.tmNode,O)}function I(O){t.handleDragStart({event:O,node:e.tmNode})}function R(O){O.currentTarget===O.target&&t.handleDragEnter({event:O,node:e.tmNode})}function D(O){O.preventDefault(),t.handleDragOver({event:O,node:e.tmNode})}function F(O){t.handleDragEnd({event:O,node:e.tmNode})}function M(O){O.currentTarget===O.target&&t.handleDragLeave({event:O,node:e.tmNode})}function $(O){O.preventDefault(),a.value!==null&&t.handleDrop({event:O,node:e.tmNode,dropPosition:a.value})}return{showDropMark:Ft(()=>{const{value:O}=o;if(!O)return;const{value:Q}=a;if(!Q)return;const{value:V}=n;if(!V)return;const{tmNode:W}=e;return W.key===V.key}),showDropMarkAsParent:Ft(()=>{const{value:O}=r;if(!O)return!1;const{tmNode:Q}=e,{value:V}=a;return V==="before"||V==="after"?O.key===Q.key:!1}),pending:Ft(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Ft(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Ft(()=>{var O;return(O=t.highlightKeySetRef.value)===null||O===void 0?void 0:O.has(e.tmNode.key)}),checked:w,indeterminate:Ft(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Ft(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Ft(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:v,checkable:x,mergedCheckOnClick:C,checkboxDisabled:A,selectable:b,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:u,nodeProps:p,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:a,droppingOffsetLevel:i,indent:l,checkboxPlacement:c,contentInstRef:g,contentElRef:m,handleCheck:E,handleDrop:$,handleDragStart:I,handleDragEnter:R,handleDragOver:D,handleDragEnd:F,handleDragLeave:M,handleLineClick:T,handleContentClick:B,handleSwitcherClick:y}},render(){const{tmNode:e,clsPrefix:t,checkable:r,expandOnClick:n,selectable:o,selected:a,checked:i,highlight:s,draggable:l,blockLine:u,indent:c,disabled:d,pending:f,internalScrollable:A,nodeProps:h,checkboxPlacement:v}=this,p=l&&!d?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=A?kj(e.key):void 0,m=v==="right",y=r?S(p4e,{right:m,focusable:this.checkboxFocusable,disabled:d||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return S("div",Object.assign({class:`${t}-tree-node-wrapper`},p),S("div",Object.assign({},u?h:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:a,[`${t}-tree-node--checkable`]:r,[`${t}-tree-node--highlight`]:s,[`${t}-tree-node--pending`]:f,[`${t}-tree-node--disabled`]:d,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||n||this.mergedCheckOnClick},h==null?void 0:h.class],"data-key":g,draggable:l&&u,onClick:this.handleLineClick,onDragstart:l&&u&&!d?this.handleDragStart:void 0}),Pj(e.level,S("div",{class:`${t}-tree-node-indent`},S("div",{style:{width:`${c}px`}}))),S(v4e,{clsPrefix:t,expanded:this.expanded,selected:a,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),m?null:y,S(g4e,{ref:"contentInstRef",clsPrefix:t,checked:i,selected:a,onClick:this.handleContentClick,nodeProps:u?void 0:h,onDragstart:l&&!u&&!d?this.handleDragStart:void 0,tmNode:e}),l?this.showDropMark?CN({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:c}):this.showDropMarkAsParent?CN({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:c}):null:null,m?y:null))}}),$J=w4e;function C4e({props:e,fNodesRef:t,mergedExpandedKeysRef:r,mergedSelectedKeysRef:n,handleSelect:o,handleSwitcherClick:a}){const{value:i}=n,s=Ke(LJ,null),l=s?s.pendingNodeKeyRef:q(i.length?i[i.length-1]:null);function u(c){if(!e.keyboard)return;const{value:d}=l;if(d===null){if((c.key==="ArrowDown"||c.key==="ArrowUp")&&c.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(c.key)&&d===null){const{value:f}=t;let A=0;for(;A<f.length;){if(!f[A].disabled){l.value=f[A].key;break}A+=1}}}else{const{value:f}=t;let A=f.findIndex(h=>h.key===d);if(!~A)return;if(c.key==="Enter")o(f[A]);else if(c.key==="ArrowDown")for(c.preventDefault(),A+=1;A<f.length;){if(!f[A].disabled){l.value=f[A].key;break}A+=1}else if(c.key==="ArrowUp")for(c.preventDefault(),A-=1;A>=0;){if(!f[A].disabled){l.value=f[A].key;break}A-=1}else if(c.key==="ArrowLeft"){const h=f[A];if(h.isLeaf||!r.value.includes(d)){const v=h.getParent();v&&(l.value=v.key)}else a(h)}else if(c.key==="ArrowRight"){const h=f[A];if(h.isLeaf)return;if(!r.value.includes(d))a(h);else for(A+=1;A<f.length;){if(!f[A].disabled){l.value=f[A].key;break}A+=1}}}}return{pendingNodeKeyRef:l,handleKeydown:u}}const S4e=ge({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:e}=this;return S(bl,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>S("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:On(this.height)}},this.nodes.map(t=>S($J,{clsPrefix:e,tmNode:t})))})}}),_4e=P("tree",`
  5605. font-size: var(--n-font-size);
  5606. outline: none;
  5607. `,[N("ul, li",`
  5608. margin: 0;
  5609. padding: 0;
  5610. list-style: none;
  5611. `),N(">",[P("tree-node",[N("&:first-child",{marginTop:0})])]),P("tree-node-indent",`
  5612. flex-grow: 0;
  5613. flex-shrink: 0;
  5614. height: 0;
  5615. `),P("tree-motion-wrapper",[j("expand",[fu({duration:"0.2s"})]),j("collapse",[fu({duration:"0.2s",reverse:!0})])]),P("tree-node-wrapper",`
  5616. box-sizing: border-box;
  5617. padding: 3px 0;
  5618. `),P("tree-node",`
  5619. transform: translate3d(0,0,0);
  5620. position: relative;
  5621. display: flex;
  5622. border-radius: var(--n-node-border-radius);
  5623. transition: background-color .3s var(--n-bezier);
  5624. `,[j("highlight",[P("tree-node-content",[G("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),j("disabled",[P("tree-node-content",`
  5625. color: var(--n-node-text-color-disabled);
  5626. cursor: not-allowed;
  5627. `)]),Wt("disabled",[j("clickable",[P("tree-node-content",`
  5628. cursor: pointer;
  5629. `)])])]),j("block-node",[P("tree-node-content",`
  5630. flex: 1;
  5631. min-width: 0;
  5632. `)]),Wt("block-line",[P("tree-node",[Wt("disabled",[P("tree-node-content",[N("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),j("selectable",[P("tree-node-content",[N("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),j("pending",[P("tree-node-content",`
  5633. background-color: var(--n-node-color-hover);
  5634. `)]),j("selected",[P("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),j("block-line",[P("tree-node",[Wt("disabled",[N("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),j("pending",`
  5635. background-color: var(--n-node-color-hover);
  5636. `),j("selectable",[Wt("selected",[N("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),j("selected",{backgroundColor:"var(--n-node-color-active)"})]),j("disabled",`
  5637. cursor: not-allowed;
  5638. `)])]),P("tree-node-switcher",`
  5639. cursor: pointer;
  5640. display: inline-flex;
  5641. flex-shrink: 0;
  5642. height: 24px;
  5643. width: 24px;
  5644. align-items: center;
  5645. justify-content: center;
  5646. transition: transform .15s var(--n-bezier);
  5647. vertical-align: bottom;
  5648. `,[G("icon",`
  5649. position: relative;
  5650. height: 14px;
  5651. width: 14px;
  5652. display: flex;
  5653. color: var(--n-arrow-color);
  5654. transition: color .3s var(--n-bezier);
  5655. font-size: 14px;
  5656. `,[P("icon",[Jn()]),P("base-loading",`
  5657. color: var(--n-loading-color);
  5658. position: absolute;
  5659. left: 0;
  5660. top: 0;
  5661. right: 0;
  5662. bottom: 0;
  5663. `,[Jn()]),P("base-icon",[Jn()])]),j("hide",{visibility:"hidden"}),j("expanded",{transform:"rotate(90deg)"})]),P("tree-node-checkbox",`
  5664. display: inline-flex;
  5665. height: 24px;
  5666. width: 16px;
  5667. vertical-align: bottom;
  5668. align-items: center;
  5669. justify-content: center;
  5670. margin-right: 4px;
  5671. `,[j("right","margin-left: 4px;")]),j("checkable",[P("tree-node-content",`
  5672. padding: 0 6px;
  5673. `)]),P("tree-node-content",`
  5674. position: relative;
  5675. display: inline-flex;
  5676. align-items: center;
  5677. min-height: 24px;
  5678. box-sizing: border-box;
  5679. line-height: 1.5;
  5680. vertical-align: bottom;
  5681. padding: 0 6px 0 4px;
  5682. cursor: default;
  5683. border-radius: var(--n-node-border-radius);
  5684. text-decoration-color: #0000;
  5685. text-decoration-line: underline;
  5686. color: var(--n-node-text-color);
  5687. transition:
  5688. color .3s var(--n-bezier),
  5689. text-decoration-color .3s var(--n-bezier),
  5690. background-color .3s var(--n-bezier),
  5691. border-color .3s var(--n-bezier);
  5692. `,[N("&:last-child",{marginBottom:0}),G("prefix",`
  5693. display: inline-flex;
  5694. margin-right: 8px;
  5695. `),G("text",`
  5696. border-bottom: 1px solid #0000;
  5697. transition: border-color .3s var(--n-bezier);
  5698. flex-grow: 1;
  5699. max-width: 100%;
  5700. `),G("suffix",`
  5701. display: inline-flex;
  5702. `)]),G("empty","margin: auto;")]);var B4e=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const Yb=30;function T4e(e,t,r,n){return{getIsGroup(){return!1},getKey(a){return a[e]},getChildren:n||(a=>a[t]),getDisabled(a){return!!(a[r]||a.checkboxDisabled)}}}const E4e={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},I4e=Object.assign(Object.assign(Object.assign(Object.assign({},Me.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:m4e},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),E4e),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),R4e=ge({name:"Tree",props:I4e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=nt(e),o=dn("Tree",n,t),a=Me("Tree","-tree",_4e,Rke,e,t),i=q(null),s=q(null),l=q(null);function u(){var Ce;return(Ce=l.value)===null||Ce===void 0?void 0:Ce.listElRef}function c(){var Ce;return(Ce=l.value)===null||Ce===void 0?void 0:Ce.itemsElRef}const d=L(()=>{const{filter:Ce}=e;if(Ce)return Ce;const{labelField:Le}=e;return(ut,vt)=>{if(!ut.length)return!0;const xt=vt[Le];return typeof xt=="string"?xt.toLowerCase().includes(ut.toLowerCase()):!1}}),f=L(()=>{const{pattern:Ce}=e;return Ce?!Ce.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:x4e(e.data,d.value,Ce,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),A=L(()=>up(e.showIrrelevantNodes?e.data:f.value.filteredTree,T4e(e.keyField,e.childrenField,e.disabledField,e.getChildren))),h=Ke(LJ,null),v=e.internalTreeSelect?h.dataTreeMate:A,{watchProps:p}=e,g=q([]);p!=null&&p.includes("defaultCheckedKeys")?Sr(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const m=Re(e,"checkedKeys"),y=Ir(m,g),b=L(()=>v.value.getCheckedKeys(y.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),x=y4e(e),w=L(()=>b.value.checkedKeys),C=L(()=>{const{indeterminateKeys:Ce}=e;return Ce!==void 0?Ce:b.value.indeterminateKeys}),_=q([]);p!=null&&p.includes("defaultSelectedKeys")?Sr(()=>{_.value=e.defaultSelectedKeys}):_.value=e.defaultSelectedKeys;const B=Re(e,"selectedKeys"),T=Ir(B,_),E=q([]),I=Ce=>{E.value=e.defaultExpandAll?v.value.getNonLeafKeys():Ce===void 0?e.defaultExpandedKeys:Ce};p!=null&&p.includes("defaultExpandedKeys")?Sr(()=>I(void 0)):Sr(()=>I(e.defaultExpandedKeys));const R=Re(e,"expandedKeys"),D=Ir(R,E),F=L(()=>A.value.getFlattenedNodes(D.value)),{pendingNodeKeyRef:M,handleKeydown:$}=C4e({props:e,mergedSelectedKeysRef:T,fNodesRef:F,mergedExpandedKeysRef:D,handleSelect:tt,handleSwitcherClick:et});let O=null,Q=null;const V=q(new Set),W=L(()=>e.internalHighlightKeySet||f.value.highlightKeySet),Z=Ir(W,V),te=q(new Set),ae=L(()=>D.value.filter(Ce=>!te.value.has(Ce)));let re=0;const le=q(null),se=q(null),ce=q(null),be=q(null),de=q(0),pe=L(()=>{const{value:Ce}=se;return Ce?Ce.parent:null});gt(Re(e,"data"),()=>{te.value.clear(),M.value=null,it()},{deep:!1});let K=!1;const U=()=>{K=!0,dr(()=>{K=!1})};let k;gt(Re(e,"pattern"),(Ce,Le)=>{if(e.showIrrelevantNodes)if(k=void 0,Ce){const{expandedKeys:ut,highlightKeySet:vt}=b4e(e.data,e.pattern,e.keyField,e.childrenField,d.value);V.value=vt,U(),X(ut,Ae(ut),{node:null,action:"filter"})}else V.value=new Set;else if(!Ce.length)k!==void 0&&(U(),X(k,Ae(k),{node:null,action:"filter"}));else{Le.length||(k=D.value);const{expandedKeys:ut}=f.value;ut!==void 0&&(U(),X(ut,Ae(ut),{node:null,action:"filter"}))}});function J(Ce){return B4e(this,void 0,void 0,function*(){const{onLoad:Le}=e;if(!Le)return yield Promise.resolve();const{value:ut}=te;if(!ut.has(Ce.key)){ut.add(Ce.key);try{(yield Le(Ce.rawNode))===!1&&ue()}catch(vt){console.error(vt),ue()}ut.delete(Ce.key)}})}Sr(()=>{var Ce;const{value:Le}=A;if(!Le)return;const{getNode:ut}=Le;(Ce=D.value)===null||Ce===void 0||Ce.forEach(vt=>{const xt=ut(vt);xt&&!xt.shallowLoaded&&J(xt)})});const ee=q(!1),H=q([]);gt(ae,(Ce,Le)=>{if(!e.animated||K){dr(he);return}const ut=new Set(Le);let vt=null,xt=null;for(const ar of Ce)if(!ut.has(ar)){if(vt!==null)return;vt=ar}const Kr=new Set(Ce);for(const ar of Le)if(!Kr.has(ar)){if(xt!==null)return;xt=ar}if(vt===null&&xt===null)return;const{virtualScroll:zr}=e,Be=(zr?l.value.listElRef:i.value).offsetHeight,Ze=Math.ceil(Be/Yb)+1;let yt;if(vt!==null&&(yt=Le),xt!==null&&(yt===void 0?yt=Ce:yt=yt.filter(ar=>ar!==xt)),ee.value=!0,H.value=A.value.getFlattenedNodes(yt),vt!==null){const ar=H.value.findIndex(Qr=>Qr.key===vt);if(~ar){const Qr=H.value[ar].children;if(Qr){const _r=cD(Qr,Ce);H.value.splice(ar+1,0,{__motion:!0,mode:"expand",height:zr?_r.length*Yb:void 0,nodes:zr?_r.slice(0,Ze):_r})}}}if(xt!==null){const ar=H.value.findIndex(Qr=>Qr.key===xt);if(~ar){const Qr=H.value[ar].children;if(!Qr)return;ee.value=!0;const _r=cD(Qr,Ce);H.value.splice(ar+1,0,{__motion:!0,mode:"collapse",height:zr?_r.length*Yb:void 0,nodes:zr?_r.slice(0,Ze):_r})}}});const Y=L(()=>vX(F.value)),oe=L(()=>ee.value?H.value:F.value);function he(){const{value:Ce}=s;Ce&&Ce.sync()}function ne(){ee.value=!1,e.virtualScroll&&dr(he)}function Ae(Ce){const{getNode:Le}=v.value;return Ce.map(ut=>{var vt;return((vt=Le(ut))===null||vt===void 0?void 0:vt.rawNode)||null})}function X(Ce,Le,ut){const{"onUpdate:expandedKeys":vt,onUpdateExpandedKeys:xt}=e;E.value=Ce,vt&&Te(vt,Ce,Le,ut),xt&&Te(xt,Ce,Le,ut)}function ie(Ce,Le,ut){const{"onUpdate:checkedKeys":vt,onUpdateCheckedKeys:xt}=e;g.value=Ce,xt&&Te(xt,Ce,Le,ut),vt&&Te(vt,Ce,Le,ut)}function fe(Ce,Le){const{"onUpdate:indeterminateKeys":ut,onUpdateIndeterminateKeys:vt}=e;ut&&Te(ut,Ce,Le),vt&&Te(vt,Ce,Le)}function ye(Ce,Le,ut){const{"onUpdate:selectedKeys":vt,onUpdateSelectedKeys:xt}=e;_.value=Ce,xt&&Te(xt,Ce,Le,ut),vt&&Te(vt,Ce,Le,ut)}function Fe(Ce){const{onDragenter:Le}=e;Le&&Te(Le,Ce)}function Ne(Ce){const{onDragleave:Le}=e;Le&&Te(Le,Ce)}function rt(Ce){const{onDragend:Le}=e;Le&&Te(Le,Ce)}function lt(Ce){const{onDragstart:Le}=e;Le&&Te(Le,Ce)}function mt(Ce){const{onDragover:Le}=e;Le&&Te(Le,Ce)}function Ge(Ce){const{onDrop:Le}=e;Le&&Te(Le,Ce)}function it(){je(),Ye()}function je(){le.value=null}function Ye(){de.value=0,se.value=null,ce.value=null,be.value=null,ue()}function ue(){O&&(window.clearTimeout(O),O=null),Q=null}function Ee(Ce,Le){if(e.disabled||ec(Ce,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){tt(Ce);return}const ut=Le?"check":"uncheck",{checkedKeys:vt,indeterminateKeys:xt}=v.value[ut](Ce.key,w.value,{cascade:e.cascade,checkStrategy:x.value,allowNotLoaded:e.allowCheckingNotLoaded});ie(vt,Ae(vt),{node:Ce.rawNode,action:ut}),fe(xt,Ae(xt))}function Qe(Ce){if(e.disabled)return;const{key:Le}=Ce,{value:ut}=D,vt=ut.findIndex(xt=>xt===Le);if(~vt){const xt=Array.from(ut);xt.splice(vt,1),X(xt,Ae(xt),{node:Ce.rawNode,action:"collapse"})}else{const xt=A.value.getNode(Le);if(!xt||xt.isLeaf)return;let Kr;if(e.accordion){const zr=new Set(Ce.siblings.map(({key:Be})=>Be));Kr=ut.filter(Be=>!zr.has(Be)),Kr.push(Le)}else Kr=ut.concat(Le);X(Kr,Ae(Kr),{node:Ce.rawNode,action:"expand"})}}function et(Ce){e.disabled||ee.value||Qe(Ce)}function tt(Ce){if(!(e.disabled||!e.selectable)){if(M.value=Ce.key,e.internalUnifySelectCheck){const{value:{checkedKeys:Le,indeterminateKeys:ut}}=b;e.multiple?Ee(Ce,!(Le.includes(Ce.key)||ut.includes(Ce.key))):ie([Ce.key],Ae([Ce.key]),{node:Ce.rawNode,action:"check"})}if(e.multiple){const Le=Array.from(T.value),ut=Le.findIndex(vt=>vt===Ce.key);~ut?e.cancelable&&Le.splice(ut,1):~ut||Le.push(Ce.key),ye(Le,Ae(Le),{node:Ce.rawNode,action:~ut?"unselect":"select"})}else T.value.includes(Ce.key)?e.cancelable&&ye([],[],{node:Ce.rawNode,action:"unselect"}):ye([Ce.key],Ae([Ce.key]),{node:Ce.rawNode,action:"select"})}}function xe(Ce){if(O&&(window.clearTimeout(O),O=null),Ce.isLeaf)return;Q=Ce.key;const Le=()=>{if(Q!==Ce.key)return;const{value:ut}=ce;if(ut&&ut.key===Ce.key&&!D.value.includes(Ce.key)){const vt=D.value.concat(Ce.key);X(vt,Ae(vt),{node:Ce.rawNode,action:"expand"})}O=null,Q=null};Ce.shallowLoaded?O=window.setTimeout(()=>{Le()},1e3):O=window.setTimeout(()=>{J(Ce).then(()=>{Le()})},1e3)}function $e({event:Ce,node:Le}){!e.draggable||e.disabled||ec(Le,e.disabledField)||(me({event:Ce,node:Le},!1),Fe({event:Ce,node:Le.rawNode}))}function Xe({event:Ce,node:Le}){!e.draggable||e.disabled||ec(Le,e.disabledField)||Ne({event:Ce,node:Le.rawNode})}function ht(Ce){Ce.target===Ce.currentTarget&&Ye()}function Se({event:Ce,node:Le}){it(),!(!e.draggable||e.disabled||ec(Le,e.disabledField))&&rt({event:Ce,node:Le.rawNode})}function He({event:Ce,node:Le}){!e.draggable||e.disabled||ec(Le,e.disabledField)||(re=Ce.clientX,le.value=Le,lt({event:Ce,node:Le.rawNode}))}function me({event:Ce,node:Le},ut=!0){var vt;if(!e.draggable||e.disabled||ec(Le,e.disabledField))return;const{value:xt}=le;if(!xt)return;const{allowDrop:Kr,indent:zr}=e;ut&&mt({event:Ce,node:Le.rawNode});const Be=Ce.currentTarget,{height:Ze,top:yt}=Be.getBoundingClientRect(),ar=Ce.clientY-yt;let Qr;Kr({node:Le.rawNode,dropPosition:"inside",phase:"drag"})?ar<=8?Qr="before":ar>=Ze-8?Qr="after":Qr="inside":ar<=Ze/2?Qr="before":Qr="after";const{value:Xi}=Y;let Dr,bn;const Rl=Xi(Le.key);if(Rl===null){Ye();return}let Mu=!1;Qr==="inside"?(Dr=Le,bn="inside"):Qr==="before"?Le.isFirstChild?(Dr=Le,bn="before"):(Dr=F.value[Rl-1],bn="after"):(Dr=Le,bn="after"),!Dr.isLeaf&&D.value.includes(Dr.key)&&(Mu=!0,bn==="after"&&(Dr=F.value[Rl+1],Dr?bn="before":(Dr=Le,bn="inside")));const Pu=Dr;if(ce.value=Pu,!Mu&&xt.isLastChild&&xt.key===Dr.key&&(bn="after"),bn==="after"){let Fu=re-Ce.clientX,Bd=0;for(;Fu>=zr/2&&Dr.parent!==null&&Dr.isLastChild&&Bd<1;)Fu-=zr,Bd+=1,Dr=Dr.parent;de.value=Bd}else de.value=0;if((xt.contains(Dr)||bn==="inside"&&((vt=xt.parent)===null||vt===void 0?void 0:vt.key)===Dr.key)&&!(xt.key===Pu.key&&xt.key===Dr.key)){Ye();return}if(!Kr({node:Dr.rawNode,dropPosition:bn,phase:"drag"})){Ye();return}if(xt.key===Dr.key)ue();else if(Q!==Dr.key)if(bn==="inside"){if(e.expandOnDragenter){if(xe(Dr),!Dr.shallowLoaded&&Q!==Dr.key){it();return}}else if(!Dr.shallowLoaded){it();return}}else ue();else bn!=="inside"&&ue();be.value=bn,se.value=Dr}function ze({event:Ce,node:Le,dropPosition:ut}){if(!e.draggable||e.disabled||ec(Le,e.disabledField))return;const{value:vt}=le,{value:xt}=se,{value:Kr}=be;if(!(!vt||!xt||!Kr)&&e.allowDrop({node:xt.rawNode,dropPosition:Kr,phase:"drag"})&&vt.key!==xt.key){if(Kr==="before"){const zr=vt.getNext({includeDisabled:!0});if(zr&&zr.key===xt.key){Ye();return}}if(Kr==="after"){const zr=vt.getPrev({includeDisabled:!0});if(zr&&zr.key===xt.key){Ye();return}}Ge({event:Ce,node:xt.rawNode,dragNode:vt.rawNode,dropPosition:ut}),it()}}function dt(){he()}function Rt(){he()}function At(Ce){var Le;if(e.virtualScroll||e.internalScrollable){const{value:ut}=s;if(!((Le=ut==null?void 0:ut.containerRef)===null||Le===void 0)&&Le.contains(Ce.relatedTarget))return;M.value=null}else{const{value:ut}=i;if(ut!=null&&ut.contains(Ce.relatedTarget))return;M.value=null}}gt(M,Ce=>{var Le,ut;if(Ce!==null){if(e.virtualScroll)(Le=l.value)===null||Le===void 0||Le.scrollTo({key:Ce});else if(e.internalScrollable){const{value:vt}=s;if(vt===null)return;const xt=(ut=vt.contentRef)===null||ut===void 0?void 0:ut.querySelector(`[data-key="${kj(Ce)}"]`);if(!xt)return;vt.scrollTo({el:xt})}}}),_t(Dy,{loadingKeysRef:te,highlightKeySetRef:Z,displayedCheckedKeysRef:w,displayedIndeterminateKeysRef:C,mergedSelectedKeysRef:T,mergedExpandedKeysRef:D,mergedThemeRef:a,mergedCheckStrategyRef:x,nodePropsRef:Re(e,"nodeProps"),disabledRef:Re(e,"disabled"),checkableRef:Re(e,"checkable"),selectableRef:Re(e,"selectable"),expandOnClickRef:Re(e,"expandOnClick"),onLoadRef:Re(e,"onLoad"),draggableRef:Re(e,"draggable"),blockLineRef:Re(e,"blockLine"),indentRef:Re(e,"indent"),cascadeRef:Re(e,"cascade"),checkOnClickRef:Re(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:ce,droppingNodeParentRef:pe,draggingNodeRef:le,droppingPositionRef:be,droppingOffsetLevelRef:de,fNodesRef:F,pendingNodeKeyRef:M,disabledFieldRef:Re(e,"disabledField"),internalScrollableRef:Re(e,"internalScrollable"),internalCheckboxFocusableRef:Re(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:Re(e,"renderLabel"),renderPrefixRef:Re(e,"renderPrefix"),renderSuffixRef:Re(e,"renderSuffix"),renderSwitcherIconRef:Re(e,"renderSwitcherIcon"),labelFieldRef:Re(e,"labelField"),multipleRef:Re(e,"multiple"),handleSwitcherClick:et,handleDragEnd:Se,handleDragEnter:$e,handleDragLeave:Xe,handleDragStart:He,handleDrop:ze,handleDragOver:me,handleSelect:tt,handleCheck:Ee});function ve(Ce){var Le;(Le=l.value)===null||Le===void 0||Le.scrollTo(Ce)}const De={handleKeydown:$,scrollTo:ve,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:Ce}=b.value;return{keys:Ce,options:Ae(Ce)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:Ce}=b.value;return{keys:Ce,options:Ae(Ce)}}},ot=L(()=>{const{common:{cubicBezierEaseInOut:Ce},self:{fontSize:Le,nodeBorderRadius:ut,nodeColorHover:vt,nodeColorPressed:xt,nodeColorActive:Kr,arrowColor:zr,loadingColor:Be,nodeTextColor:Ze,nodeTextColorDisabled:yt,dropMarkColor:ar}}=a.value;return{"--n-arrow-color":zr,"--n-loading-color":Be,"--n-bezier":Ce,"--n-font-size":Le,"--n-node-border-radius":ut,"--n-node-color-active":Kr,"--n-node-color-hover":vt,"--n-node-color-pressed":xt,"--n-node-text-color":Ze,"--n-node-text-color-disabled":yt,"--n-drop-mark-color":ar}}),Nt=r?Et("tree",void 0,ot,e):void 0;return Object.assign(Object.assign({},De),{mergedClsPrefix:t,mergedTheme:a,rtlEnabled:o,fNodes:oe,aip:ee,selfElRef:i,virtualListInstRef:l,scrollbarInstRef:s,handleFocusout:At,handleDragLeaveTree:ht,handleScroll:dt,getScrollContainer:u,getScrollContent:c,handleAfterEnter:ne,handleResize:Rt,cssVars:r?void 0:ot,themeClass:Nt==null?void 0:Nt.themeClass,onRender:Nt==null?void 0:Nt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:r}=this;if(!t.length&&r)return r();const{mergedClsPrefix:n,blockNode:o,blockLine:a,draggable:i,disabled:s,internalFocusable:l,checkable:u,handleKeydown:c,rtlEnabled:d,handleFocusout:f}=this,A=l&&!s,h=A?"0":void 0,v=[`${n}-tree`,d&&`${n}-tree--rtl`,u&&`${n}-tree--checkable`,(a||o)&&`${n}-tree--block-node`,a&&`${n}-tree--block-line`],p=m=>"__motion"in m?S(S4e,{height:m.height,nodes:m.nodes,clsPrefix:n,mode:m.mode,onAfterEnter:this.handleAfterEnter}):S($J,{key:m.key,tmNode:m,clsPrefix:n});if(this.virtualScroll){const{mergedTheme:m,internalScrollablePadding:y}=this,b=Tc(y||"0");return S(Pw,{ref:"scrollbarInstRef",onDragleave:i?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:v,theme:m.peers.Scrollbar,themeOverrides:m.peerOverrides.Scrollbar,tabindex:h,onKeydown:A?c:void 0,onFocusout:A?f:void 0},{default:()=>{var x;return(x=this.onRender)===null||x===void 0||x.call(this),S(Iv,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Yb,ignoreItemResize:this.aip,paddingTop:b.top,paddingBottom:b.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:b.left,paddingRight:b.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:w})=>p(w)})}})}const{internalScrollable:g}=this;return v.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?S(Pw,{class:v,tabindex:h,onKeydown:A?c:void 0,onFocusout:A?f:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>S("div",{onDragleave:i?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(p))}):S("div",{class:v,tabindex:h,ref:"selfElRef",style:this.cssVars,onKeydown:A?c:void 0,onFocusout:A?f:void 0,onDragleave:i?this.handleDragLeaveTree:void 0},t.length?t.map(p):Kt(this.$slots.empty,()=>[S(US,{class:`${n}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),D4e=P("h",`
  5703. font-size: var(--n-font-size);
  5704. font-weight: var(--n-font-weight);
  5705. margin: var(--n-margin);
  5706. transition: color .3s var(--n-bezier);
  5707. color: var(--n-text-color);
  5708. `,[N("&:first-child",{marginTop:0}),j("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[j("align-text",{paddingLeft:0},[N("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),N("&::before",`
  5709. content: "";
  5710. width: var(--n-bar-width);
  5711. border-radius: calc(var(--n-bar-width) / 2);
  5712. transition: background-color .3s var(--n-bezier);
  5713. left: 0;
  5714. top: 0;
  5715. bottom: 0;
  5716. position: absolute;
  5717. `),N("&::before",{backgroundColor:"var(--n-bar-color)"})])]),M4e=Object.assign(Object.assign({},Me.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Ap=e=>ge({name:`H${e}`,props:M4e,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=nt(t),o=Me("Typography","-h",D4e,jS,t,r),a=L(()=>{const{type:s}=t,{common:{cubicBezierEaseInOut:l},self:{headerFontWeight:u,headerTextColor:c,[_e("headerPrefixWidth",e)]:d,[_e("headerFontSize",e)]:f,[_e("headerMargin",e)]:A,[_e("headerBarWidth",e)]:h,[_e("headerBarColor",s)]:v}}=o.value;return{"--n-bezier":l,"--n-font-size":f,"--n-margin":A,"--n-bar-color":v,"--n-bar-width":h,"--n-font-weight":u,"--n-text-color":c,"--n-prefix-width":d}}),i=n?Et(`h${e}`,L(()=>t.type[0]),a,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var t;const{prefix:r,alignText:n,mergedClsPrefix:o,cssVars:a,$slots:i}=this;return(t=this.onRender)===null||t===void 0||t.call(this),S(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:r,[`${o}-h--align-text`]:n}],style:a},i)}}),P4e=Ap("1"),F4e=Ap("2"),k4e=Ap("3"),L4e=Ap("4"),O4e=Ap("5");Ap("6");const $4e=P("a",`
  5718. cursor: pointer;
  5719. transition:
  5720. color .3s var(--n-bezier),
  5721. text-decoration-color .3s var(--n-bezier);
  5722. text-decoration-color: var(--n-text-color);
  5723. color: var(--n-text-color);
  5724. `),U4e=Object.assign({},Me.props),N4e=ge({name:"A",props:U4e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Typography","-a",$4e,jS,e,t),o=L(()=>{const{common:{cubicBezierEaseInOut:i},self:{aTextColor:s}}=n.value;return{"--n-text-color":s,"--n-bezier":i}}),a=r?Et("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),S("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),H4e=P("p",`
  5725. box-sizing: border-box;
  5726. transition: color .3s var(--n-bezier);
  5727. margin: var(--n-margin);
  5728. font-size: var(--n-font-size);
  5729. line-height: var(--n-line-height);
  5730. color: var(--n-text-color);
  5731. `,[N("&:first-child","margin-top: 0;"),N("&:last-child","margin-bottom: 0;")]),z4e=Object.assign(Object.assign({},Me.props),{depth:[String,Number]}),Q4e=ge({name:"P",props:z4e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Typography","-p",H4e,jS,e,t),o=L(()=>{const{depth:i}=e,s=i||"1",{common:{cubicBezierEaseInOut:l},self:{pFontSize:u,pLineHeight:c,pMargin:d,pTextColor:f,[`pTextColor${s}Depth`]:A}}=n.value;return{"--n-bezier":l,"--n-font-size":u,"--n-line-height":c,"--n-margin":d,"--n-text-color":i===void 0?f:A}}),a=r?Et("p",L(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),S("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),V4e=P("text",`
  5732. transition: color .3s var(--n-bezier);
  5733. color: var(--n-text-color);
  5734. `,[j("strong",`
  5735. font-weight: var(--n-font-weight-strong);
  5736. `),j("italic",{fontStyle:"italic"}),j("underline",{textDecoration:"underline"}),j("code",`
  5737. line-height: 1.4;
  5738. display: inline-block;
  5739. font-family: var(--n-font-famliy-mono);
  5740. transition:
  5741. color .3s var(--n-bezier),
  5742. border-color .3s var(--n-bezier),
  5743. background-color .3s var(--n-bezier);
  5744. box-sizing: border-box;
  5745. padding: .05em .35em 0 .35em;
  5746. border-radius: var(--n-code-border-radius);
  5747. font-size: .9em;
  5748. color: var(--n-code-text-color);
  5749. background-color: var(--n-code-color);
  5750. border: var(--n-code-border);
  5751. `)]),W4e=Object.assign(Object.assign({},Me.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),G4e=ge({name:"Text",props:W4e,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Typography","-text",V4e,jS,e,t),o=L(()=>{const{depth:i,type:s}=e,l=s==="default"?i===void 0?"textColor":`textColor${i}Depth`:_e("textColor",s),{common:{fontWeightStrong:u,fontFamilyMono:c,cubicBezierEaseInOut:d},self:{codeTextColor:f,codeBorderRadius:A,codeColor:h,codeBorder:v,[l]:p}}=n.value;return{"--n-bezier":d,"--n-text-color":p,"--n-font-weight-strong":u,"--n-font-famliy-mono":c,"--n-code-border-radius":A,"--n-code-text-color":f,"--n-code-color":h,"--n-code-border":v}}),a=r?Et("text",L(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Kc(e,["as","tag"]),cssVars:r?void 0:o,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,r;const{mergedClsPrefix:n}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${n}-text`,this.themeClass,{[`${n}-text--code`]:this.code,[`${n}-text--delete`]:this.delete,[`${n}-text--strong`]:this.strong,[`${n}-text--italic`]:this.italic,[`${n}-text--underline`]:this.underline}],a=(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t);return this.code?S("code",{class:o,style:this.cssVars},this.delete?S("del",null,a):a):this.delete?S("del",{class:o,style:this.cssVars},a):S(this.compitableTag||"span",{class:o,style:this.cssVars},a)}}),hp="n-upload",UJ="__UPLOAD_DRAGGER__",NJ=ge({name:"UploadDragger",[UJ]:!0,setup(e,{slots:t}){const r=Ke(hp,null);return r||$o("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:n},mergedDisabledRef:{value:o},maxReachedRef:{value:a}}=r;return S("div",{class:[`${n}-upload-dragger`,(o||a)&&`${n}-upload-dragger--disabled`]},t)}}});var HJ=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const zJ=e=>e.includes("image/"),SN=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},_N=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,QJ=e=>{if(e.type)return zJ(e.type);const t=SN(e.name||"");if(_N.test(t))return!0;const r=e.thumbnailUrl||e.url||"",n=SN(r);return!!(/^data:image\//.test(r)||_N.test(n))};function K4e(e){return HJ(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!zJ(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const j4e=ni&&window.FileReader&&window.File;function Y4e(e){return e.isDirectory}function X4e(e){return e.isFile}function q4e(e,t){return HJ(this,void 0,void 0,function*(){const r=[];let n,o=0;function a(){o++}function i(){o--,o||n(r)}function s(l){l.forEach(u=>{if(u){if(a(),t&&Y4e(u)){const c=u.createReader();a(),c.readEntries(d=>{s(d),i()},()=>{i()})}else X4e(u)&&(a(),u.file(c=>{r.push({file:c,entry:u,source:"dnd"}),i()},()=>{i()}));i()}})}return yield new Promise(l=>{n=l,s(e)}),r})}function bm(e){const{id:t,name:r,percentage:n,status:o,url:a,file:i,thumbnailUrl:s,type:l,fullPath:u,batchId:c}=e;return{id:t,name:r,percentage:n!=null?n:null,status:o,url:a!=null?a:null,file:i!=null?i:null,thumbnailUrl:s!=null?s:null,type:l!=null?l:null,fullPath:u!=null?u:null,batchId:c!=null?c:null}}function Z4e(e,t,r){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),r=r.toLocaleLowerCase(),r.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[a,i]=t.split("/"),[s,l]=o.split("/");if((s==="*"||a&&s&&s===a)&&(l==="*"||i&&l&&l===i))return!0}else return!0;return!1})}const J4e=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},PL=ge({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=Ke(hp,null);r||$o("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:n,mergedDisabledRef:o,maxReachedRef:a,listTypeRef:i,dragOverRef:s,openOpenFileDialog:l,draggerInsideRef:u,handleFileAddition:c,mergedDirectoryDndRef:d,triggerStyleRef:f}=r,A=L(()=>i.value==="image-card");function h(){o.value||a.value||l()}function v(y){y.preventDefault(),s.value=!0}function p(y){y.preventDefault(),s.value=!0}function g(y){y.preventDefault(),s.value=!1}function m(y){var b;if(y.preventDefault(),!u.value||o.value||a.value){s.value=!1;return}const x=(b=y.dataTransfer)===null||b===void 0?void 0:b.items;x!=null&&x.length?q4e(Array.from(x).map(w=>w.webkitGetAsEntry()),d.value).then(w=>{c(w)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{var y;const{value:b}=n;return e.abstract?(y=t.default)===null||y===void 0?void 0:y.call(t,{handleClick:h,handleDrop:m,handleDragOver:v,handleDragEnter:p,handleDragLeave:g}):S("div",{class:[`${b}-upload-trigger`,(o.value||a.value)&&`${b}-upload-trigger--disabled`,A.value&&`${b}-upload-trigger--image-card`],style:f.value,onClick:h,onDrop:m,onDragover:v,onDragenter:p,onDragleave:g},A.value?S(NJ,null,{default:()=>Kt(t.default,()=>[S(zt,{clsPrefix:b},{default:()=>S(Yk,null)})])}):t)}}}),e5e=ge({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Ke(hp).mergedThemeRef}},render(){return S(bl,null,{default:()=>this.show?S(MJ,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),t5e=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},S("g",{fill:"none"},S("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),r5e=S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},S("g",{fill:"none"},S("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var n5e=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const Xb={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},o5e=ge({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Ke(hp),r=q(null),n=q(""),o=L(()=>{const{file:x}=e;return x.status==="finished"?"success":x.status==="error"?"error":"info"}),a=L(()=>{const{file:x}=e;if(x.status==="error")return"error"}),i=L(()=>{const{file:x}=e;return x.status==="uploading"}),s=L(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:x}=e;return["uploading","pending","error"].includes(x.status)}),l=L(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:x}=e;return["finished"].includes(x.status)}),u=L(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:x}=e;return["finished"].includes(x.status)}),c=L(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:x}=e;return["error"].includes(x.status)}),d=Ft(()=>n.value||e.file.thumbnailUrl||e.file.url),f=L(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:x},listType:w}=e;return["finished"].includes(x)&&d.value&&w==="image-card"});function A(){t.submit(e.file.id)}function h(x){x.preventDefault();const{file:w}=e;["finished","pending","error"].includes(w.status)?p(w):["uploading"].includes(w.status)?m(w):ei("upload","The button clicked type is unknown.")}function v(x){x.preventDefault(),g(e.file)}function p(x){const{xhrMap:w,doChange:C,onRemoveRef:{value:_},mergedFileListRef:{value:B}}=t;Promise.resolve(_?_({file:Object.assign({},x),fileList:B}):!0).then(T=>{if(T===!1)return;const E=Object.assign({},x,{status:"removed"});w.delete(x.id),C(E,void 0,{remove:!0})})}function g(x){const{onDownloadRef:{value:w}}=t;Promise.resolve(w?w(Object.assign({},x)):!0).then(C=>{C!==!1&&J4e(x.url,x.name)})}function m(x){const{xhrMap:w}=t,C=w.get(x.id);C==null||C.abort(),p(Object.assign({},x))}function y(){const{onPreviewRef:{value:x}}=t;if(x)x(e.file);else if(e.listType==="image-card"){const{value:w}=r;if(!w)return;w.click()}}const b=()=>n5e(this,void 0,void 0,function*(){const{listType:x}=e;x!=="image"&&x!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(n.value=yield t.getFileThumbnailUrlResolver(e.file))});return Sr(()=>{b()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:a,showProgress:i,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:l,showDownloadButton:u,showRetryButton:c,showPreviewButton:f,mergedThumbnailUrl:d,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:r,handleRemoveOrCancelClick:h,handleDownloadClick:v,handleRetryClick:A,handlePreviewClick:y}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:n,renderIcon:o}=this;let a;const i=r==="image";i||r==="image-card"?a=!this.shouldUseThumbnailUrl(n)||!this.mergedThumbnailUrl?S("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):QJ(n)?S(zt,{clsPrefix:e},{default:()=>t5e}):S(zt,{clsPrefix:e},{default:()=>r5e})):S("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?S(hJ,{src:this.mergedThumbnailUrl||void 0,previewSrc:n.url||void 0,alt:n.name,ref:"imageRef"}):S("img",{src:this.mergedThumbnailUrl||void 0,alt:n.name})):a=S("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):S(zt,{clsPrefix:e},{default:()=>S(_we,null)}));const l=S(e5e,{show:this.showProgress,percentage:n.percentage||0,status:this.progressStatus}),u=r==="text"||r==="image";return S("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,n.url&&n.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},S("div",{class:`${e}-upload-file-info`},a,S("div",{class:`${e}-upload-file-info__name`},u&&(n.url&&n.status!=="error"?S("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,onClick:this.handlePreviewClick},n.name):S("span",{onClick:this.handlePreviewClick},n.name)),i&&l),S("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?S(sn,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Xb},{icon:()=>S(zt,{clsPrefix:e},{default:()=>S(fX,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&S(sn,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Xb,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>S(yl,null,{default:()=>this.showRemoveButton?S(zt,{clsPrefix:e,key:"trash"},{default:()=>S(Ewe,null)}):S(zt,{clsPrefix:e,key:"cancel"},{default:()=>S(kwe,null)})})}),this.showRetryButton&&!this.disabled&&S(sn,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Xb},{icon:()=>S(zt,{clsPrefix:e},{default:()=>S(Uwe,null)})}),this.showDownloadButton?S(sn,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Xb},{icon:()=>S(zt,{clsPrefix:e},{default:()=>S(Iwe,null)})}):null)),!i&&l)}}),VJ=ge({name:"UploadFileList",setup(e,{slots:t}){const r=Ke(hp,null);r||$o("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:n,mergedClsPrefixRef:o,listTypeRef:a,mergedFileListRef:i,fileListStyleRef:s,cssVarsRef:l,themeClassRef:u,maxReachedRef:c,showTriggerRef:d,imageGroupPropsRef:f}=r,A=L(()=>a.value==="image-card"),h=()=>i.value.map(p=>S(o5e,{clsPrefix:o.value,key:p.id,file:p,listType:a.value})),v=()=>A.value?S(eLe,Object.assign({},f.value),{default:h}):S(bl,{group:!0},{default:h});return()=>{const{value:p}=o,{value:g}=n;return S("div",{class:[`${p}-upload-file-list`,A.value&&`${p}-upload-file-list--grid`,g?u==null?void 0:u.value:void 0],style:[g&&l?l.value:"",s.value]},v(),d.value&&!c.value&&A.value&&S(PL,null,t))}}}),a5e=N([P("upload","width: 100%;",[j("dragger-inside",[P("upload-trigger",`
  5752. display: block;
  5753. `)]),j("drag-over",[P("upload-dragger",`
  5754. border: var(--n-dragger-border-hover);
  5755. `)])]),P("upload-dragger",`
  5756. cursor: pointer;
  5757. box-sizing: border-box;
  5758. width: 100%;
  5759. text-align: center;
  5760. border-radius: var(--n-border-radius);
  5761. padding: 24px;
  5762. opacity: 1;
  5763. transition:
  5764. opacity .3s var(--n-bezier),
  5765. border-color .3s var(--n-bezier),
  5766. background-color .3s var(--n-bezier);
  5767. background-color: var(--n-dragger-color);
  5768. border: var(--n-dragger-border);
  5769. `,[N("&:hover",`
  5770. border: var(--n-dragger-border-hover);
  5771. `),j("disabled",`
  5772. cursor: not-allowed;
  5773. `)]),P("upload-trigger",`
  5774. display: inline-block;
  5775. box-sizing: border-box;
  5776. opacity: 1;
  5777. transition: opacity .3s var(--n-bezier);
  5778. `,[N("+",[P("upload-file-list","margin-top: 8px;")]),j("disabled",`
  5779. opacity: var(--n-item-disabled-opacity);
  5780. cursor: not-allowed;
  5781. `),j("image-card",`
  5782. width: 96px;
  5783. height: 96px;
  5784. `,[P("base-icon",`
  5785. font-size: 24px;
  5786. `),P("upload-dragger",`
  5787. padding: 0;
  5788. height: 100%;
  5789. width: 100%;
  5790. display: flex;
  5791. align-items: center;
  5792. justify-content: center;
  5793. `)])]),P("upload-file-list",`
  5794. line-height: var(--n-line-height);
  5795. opacity: 1;
  5796. transition: opacity .3s var(--n-bezier);
  5797. `,[N("a, img","outline: none;"),j("disabled",`
  5798. opacity: var(--n-item-disabled-opacity);
  5799. cursor: not-allowed;
  5800. `,[P("upload-file","cursor: not-allowed;")]),j("grid",`
  5801. display: grid;
  5802. grid-template-columns: repeat(auto-fill, 96px);
  5803. grid-gap: 8px;
  5804. margin-top: 0;
  5805. `),P("upload-file",`
  5806. display: block;
  5807. box-sizing: border-box;
  5808. cursor: default;
  5809. padding: 0px 12px 0 6px;
  5810. transition: background-color .3s var(--n-bezier);
  5811. border-radius: var(--n-border-radius);
  5812. `,[fu(),P("progress",[fu({foldPadding:!0})]),N("&:hover",`
  5813. background-color: var(--n-item-color-hover);
  5814. `,[P("upload-file-info",[G("action",`
  5815. opacity: 1;
  5816. `)])]),j("image-type",`
  5817. border-radius: var(--n-border-radius);
  5818. text-decoration: underline;
  5819. text-decoration-color: #0000;
  5820. `,[P("upload-file-info",`
  5821. padding-top: 0px;
  5822. padding-bottom: 0px;
  5823. width: 100%;
  5824. height: 100%;
  5825. display: flex;
  5826. justify-content: space-between;
  5827. align-items: center;
  5828. padding: 6px 0;
  5829. `,[P("progress",`
  5830. padding: 2px 0;
  5831. margin-bottom: 0;
  5832. `),G("name",`
  5833. padding: 0 8px;
  5834. `),G("thumbnail",`
  5835. width: 32px;
  5836. height: 32px;
  5837. font-size: 28px;
  5838. display: flex;
  5839. justify-content: center;
  5840. align-items: center;
  5841. `,[N("img",`
  5842. width: 100%;
  5843. `)])])]),j("text-type",[P("progress",`
  5844. box-sizing: border-box;
  5845. padding-bottom: 6px;
  5846. margin-bottom: 6px;
  5847. `)]),j("image-card-type",`
  5848. position: relative;
  5849. width: 96px;
  5850. height: 96px;
  5851. border: var(--n-item-border-image-card);
  5852. border-radius: var(--n-border-radius);
  5853. padding: 0;
  5854. display: flex;
  5855. align-items: center;
  5856. justify-content: center;
  5857. transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier);
  5858. border-radius: var(--n-border-radius);
  5859. overflow: hidden;
  5860. `,[P("progress",`
  5861. position: absolute;
  5862. left: 8px;
  5863. bottom: 8px;
  5864. right: 8px;
  5865. width: unset;
  5866. `),P("upload-file-info",`
  5867. padding: 0;
  5868. width: 100%;
  5869. height: 100%;
  5870. `,[G("thumbnail",`
  5871. width: 100%;
  5872. height: 100%;
  5873. display: flex;
  5874. flex-direction: column;
  5875. align-items: center;
  5876. justify-content: center;
  5877. font-size: 36px;
  5878. `,[N("img",`
  5879. width: 100%;
  5880. `)])]),N("&::before",`
  5881. position: absolute;
  5882. z-index: 1;
  5883. left: 0;
  5884. right: 0;
  5885. top: 0;
  5886. bottom: 0;
  5887. border-radius: inherit;
  5888. opacity: 0;
  5889. transition: opacity .2s var(--n-bezier);
  5890. content: "";
  5891. `),N("&:hover",[N("&::before","opacity: 1;"),P("upload-file-info",[G("thumbnail","opacity: .12;")])])]),j("error-status",[N("&:hover",`
  5892. background-color: var(--n-item-color-hover-error);
  5893. `),P("upload-file-info",[G("name","color: var(--n-item-text-color-error);"),G("thumbnail","color: var(--n-item-text-color-error);")]),j("image-card-type",`
  5894. border: var(--n-item-border-image-card-error);
  5895. `)]),j("with-url",`
  5896. cursor: pointer;
  5897. `,[P("upload-file-info",[G("name",`
  5898. color: var(--n-item-text-color-success);
  5899. text-decoration-color: var(--n-item-text-color-success);
  5900. `,[N("a",`
  5901. text-decoration: underline;
  5902. `)])])]),P("upload-file-info",`
  5903. position: relative;
  5904. padding-top: 6px;
  5905. padding-bottom: 6px;
  5906. display: flex;
  5907. flex-wrap: nowrap;
  5908. `,[G("thumbnail",`
  5909. font-size: 18px;
  5910. opacity: 1;
  5911. transition: opacity .2s var(--n-bezier);
  5912. color: var(--n-item-icon-color);
  5913. `,[P("base-icon",`
  5914. margin-right: 2px;
  5915. vertical-align: middle;
  5916. transition: color .3s var(--n-bezier);
  5917. `)]),G("action",`
  5918. padding-top: inherit;
  5919. padding-bottom: inherit;
  5920. position: absolute;
  5921. right: 0;
  5922. top: 0;
  5923. bottom: 0;
  5924. width: 80px;
  5925. display: flex;
  5926. align-items: center;
  5927. transition: opacity .2s var(--n-bezier);
  5928. justify-content: flex-end;
  5929. opacity: 0;
  5930. `,[P("button",[N("&:not(:last-child)",{marginRight:"4px"}),P("base-icon",[N("svg",[Jn()])])]),j("image-type",`
  5931. position: relative;
  5932. max-width: 80px;
  5933. width: auto;
  5934. `),j("image-card-type",`
  5935. z-index: 2;
  5936. position: absolute;
  5937. width: 100%;
  5938. height: 100%;
  5939. left: 0;
  5940. right: 0;
  5941. bottom: 0;
  5942. top: 0;
  5943. display: flex;
  5944. justify-content: center;
  5945. align-items: center;
  5946. `)]),G("name",`
  5947. color: var(--n-item-text-color);
  5948. flex: 1;
  5949. display: flex;
  5950. justify-content: center;
  5951. text-overflow: ellipsis;
  5952. overflow: hidden;
  5953. flex-direction: column;
  5954. text-decoration-color: #0000;
  5955. font-size: var(--n-font-size);
  5956. transition:
  5957. color .3s var(--n-bezier),
  5958. text-decoration-color .3s var(--n-bezier);
  5959. `,[N("a",`
  5960. color: inherit;
  5961. text-decoration: underline;
  5962. `)])])])]),P("upload-file-input",`
  5963. display: block;
  5964. width: 0;
  5965. height: 0;
  5966. opacity: 0;
  5967. `)]);var BN=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};function i5e(e,t,r){const{doChange:n,xhrMap:o}=e;let a=0;function i(l){var u;let c=Object.assign({},t,{status:"error",percentage:a});o.delete(t.id),c=bm(((u=e.onError)===null||u===void 0?void 0:u.call(e,{file:c,event:l}))||c),n(c,l)}function s(l){var u;if(e.isErrorState){if(e.isErrorState(r)){i(l);return}}else if(r.status<200||r.status>=300){i(l);return}let c=Object.assign({},t,{status:"finished",percentage:a});o.delete(t.id),c=bm(((u=e.onFinish)===null||u===void 0?void 0:u.call(e,{file:c,event:l}))||c),n(c,l)}return{handleXHRLoad:s,handleXHRError:i,handleXHRAbort(l){const u=Object.assign({},t,{status:"removed",file:null,percentage:a});o.delete(t.id),n(u,l)},handleXHRProgress(l){const u=Object.assign({},t,{status:"uploading"});if(l.lengthComputable){const c=Math.ceil(l.loaded/l.total*100);u.percentage=c,a=c}n(u,l)}}}function s5e(e){const{inst:t,file:r,data:n,headers:o,withCredentials:a,action:i,customRequest:s}=e,{doChange:l}=e.inst;let u=0;s({file:r,data:n,headers:o,withCredentials:a,action:i,onProgress(c){const d=Object.assign({},r,{status:"uploading"}),f=c.percent;d.percentage=f,u=f,l(d)},onFinish(){var c;let d=Object.assign({},r,{status:"finished",percentage:u});d=bm(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:d}))||d),l(d)},onError(){var c;let d=Object.assign({},r,{status:"error",percentage:u});d=bm(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:d}))||d),l(d)}})}function l5e(e,t,r){const n=i5e(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function WJ(e,t){return typeof e=="function"?e({file:t}):e||{}}function u5e(e,t,r){const n=WJ(t,r);n&&Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function c5e(e,t,r){const n=WJ(t,r);n&&Object.keys(n).forEach(o=>{e.append(o,n[o])})}function d5e(e,t,r,{method:n,action:o,withCredentials:a,responseType:i,headers:s,data:l}){const u=new XMLHttpRequest;u.responseType=i,e.xhrMap.set(r.id,u),u.withCredentials=a;const c=new FormData;if(c5e(c,l,r),c.append(t,r.file),l5e(e,r,u),o!==void 0){u.open(n.toUpperCase(),o),u5e(u,s,r),u.send(c);const d=Object.assign({},r,{status:"uploading"});e.doChange(d)}}const f5e=Object.assign(Object.assign({},Me.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>j4e?QJ(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),A5e=ge({name:"Upload",props:f5e,setup(e){e.abstract&&e.listType==="image-card"&&$o("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),n=Me("Upload","-upload",a5e,Uke,e,t),o=Da(e),a=L(()=>{const{max:B}=e;return B!==void 0?A.value.length>=B:!1}),i=q(e.defaultFileList),s=Re(e,"fileList"),l=q(null),u={value:!1},c=q(!1),d=new Map,f=Ir(s,i),A=L(()=>f.value.map(bm));function h(){var B;(B=l.value)===null||B===void 0||B.click()}function v(B){const T=B.target;m(T.files?Array.from(T.files).map(E=>({file:E,entry:null,source:"input"})):null,B),T.value=""}function p(B){const{"onUpdate:fileList":T,onUpdateFileList:E}=e;T&&Te(T,B),E&&Te(E,B),i.value=B}const g=L(()=>e.multiple||e.directory);function m(B,T){if(!B||B.length===0)return;const{onBeforeUpload:E}=e;B=g.value?B:[B[0]];const{max:I,accept:R}=e;B=B.filter(({file:F,source:M})=>M==="dnd"&&(R!=null&&R.trim())?Z4e(F.name,F.type,R):!0),I&&(B=B.slice(0,I-A.value.length));const D=Pi();Promise.all(B.map(({file:F,entry:M})=>BN(this,void 0,void 0,function*(){var $;const O={id:Pi(),batchId:D,name:F.name,status:"pending",percentage:0,file:F,url:null,type:F.type,thumbnailUrl:null,fullPath:($=M==null?void 0:M.fullPath)!==null&&$!==void 0?$:`/${F.webkitRelativePath||F.name}`};return!E||(yield E({file:O,fileList:A.value}))!==!1?O:null}))).then(F=>BN(this,void 0,void 0,function*(){let M=Promise.resolve();return F.forEach($=>{M=M.then(dr).then(()=>{$&&b($,T,{append:!0})})}),yield M})).then(()=>{e.defaultUpload&&y()})}function y(B){const{method:T,action:E,withCredentials:I,headers:R,data:D,name:F}=e,M=B!==void 0?A.value.filter(O=>O.id===B):A.value,$=B!==void 0;M.forEach(O=>{const{status:Q}=O;(Q==="pending"||Q==="error"&&$)&&(e.customRequest?s5e({inst:{doChange:b,xhrMap:d,onFinish:e.onFinish,onError:e.onError},file:O,action:E,withCredentials:I,headers:R,data:D,customRequest:e.customRequest}):d5e({doChange:b,xhrMap:d,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},F,O,{method:T,action:E,withCredentials:I,responseType:e.responseType,headers:R,data:D}))})}const b=(B,T,E={append:!1,remove:!1})=>{const{append:I,remove:R}=E,D=Array.from(A.value),F=D.findIndex(M=>M.id===B.id);if(I||R||~F){I?D.push(B):R?D.splice(F,1):D.splice(F,1,B);const{onChange:M}=e;M&&M({file:B,fileList:D,event:T}),p(D)}};function x(B){var T;if(B.thumbnailUrl)return B.thumbnailUrl;const{createThumbnailUrl:E}=e;return E?(T=E(B.file,B))!==null&&T!==void 0?T:B.url||"":B.url?B.url:B.file?K4e(B.file):""}const w=L(()=>{const{common:{cubicBezierEaseInOut:B},self:{draggerColor:T,draggerBorder:E,draggerBorderHover:I,itemColorHover:R,itemColorHoverError:D,itemTextColorError:F,itemTextColorSuccess:M,itemTextColor:$,itemIconColor:O,itemDisabledOpacity:Q,lineHeight:V,borderRadius:W,fontSize:Z,itemBorderImageCardError:te,itemBorderImageCard:ae}}=n.value;return{"--n-bezier":B,"--n-border-radius":W,"--n-dragger-border":E,"--n-dragger-border-hover":I,"--n-dragger-color":T,"--n-font-size":Z,"--n-item-color-hover":R,"--n-item-color-hover-error":D,"--n-item-disabled-opacity":Q,"--n-item-icon-color":O,"--n-item-text-color":$,"--n-item-text-color-error":F,"--n-item-text-color-success":M,"--n-line-height":V,"--n-item-border-image-card-error":te,"--n-item-border-image-card":ae}}),C=r?Et("upload",void 0,w,e):void 0;_t(hp,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:Re(e,"showCancelButton"),showDownloadButtonRef:Re(e,"showDownloadButton"),showRemoveButtonRef:Re(e,"showRemoveButton"),showRetryButtonRef:Re(e,"showRetryButton"),onRemoveRef:Re(e,"onRemove"),onDownloadRef:Re(e,"onDownload"),mergedFileListRef:A,triggerStyleRef:Re(e,"triggerStyle"),shouldUseThumbnailUrlRef:Re(e,"shouldUseThumbnailUrl"),renderIconRef:Re(e,"renderIcon"),xhrMap:d,submit:y,doChange:b,showPreviewButtonRef:Re(e,"showPreviewButton"),onPreviewRef:Re(e,"onPreview"),getFileThumbnailUrlResolver:x,listTypeRef:Re(e,"listType"),dragOverRef:c,openOpenFileDialog:h,draggerInsideRef:u,handleFileAddition:m,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:a,fileListStyleRef:Re(e,"fileListStyle"),abstractRef:Re(e,"abstract"),acceptRef:Re(e,"accept"),cssVarsRef:r?void 0:w,themeClassRef:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender,showTriggerRef:Re(e,"showTrigger"),imageGroupPropsRef:Re(e,"imageGroupProps"),mergedDirectoryDndRef:L(()=>{var B;return(B=e.directoryDnd)!==null&&B!==void 0?B:e.directory})});const _={clear:()=>{i.value=[]},submit:y,openOpenFileDialog:h};return Object.assign({mergedClsPrefix:t,draggerInsideRef:u,inputElRef:l,mergedTheme:n,dragOver:c,mergedMultiple:g,cssVars:r?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender,handleFileInputChange:v},_)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:a,onRender:i}=this;if(o.default&&!this.abstract){const l=o.default()[0];!((e=l==null?void 0:l.type)===null||e===void 0)&&e[UJ]&&(r.value=!0)}const s=S("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:a||void 0,directory:a||void 0}));return this.abstract?S(lr,null,(t=o.default)===null||t===void 0?void 0:t.call(o),S(np,{to:"body"},s)):(i==null||i(),S("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&S(PL,null,o),this.showFileList&&S(VJ,null,o)))}}),h5e=N([P("watermark-container",`
  5968. position: relative;
  5969. `,[Wt("selectable",`
  5970. user-select: none;
  5971. -webkit-user-select: none;
  5972. `),j("global-rotate",`
  5973. overflow: hidden;
  5974. `),j("fullscreen",`
  5975. top: 0;
  5976. left: 0;
  5977. width: 100%;
  5978. height: 100%;
  5979. pointer-events: none;
  5980. position: fixed;
  5981. `)]),P("watermark",`
  5982. position: absolute;
  5983. top: 0;
  5984. left: 0;
  5985. width: 100%;
  5986. height: 100%;
  5987. pointer-events: none;
  5988. background-repeat: repeat;
  5989. `,[j("fullscreen",`
  5990. position: fixed;
  5991. `),j("global-rotate",`
  5992. position: absolute;
  5993. height: max(284vh, 284vw);
  5994. width: max(284vh, 284vw);
  5995. `)])]);function v5e(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const p5e=Object.assign(Object.assign({},Me.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),g5e=ge({name:"Watermark",props:p5e,setup(e,{slots:t}){const{mergedClsPrefixRef:r}=nt(e),n=Me("Watermark","-watermark",h5e,Wke,e,r),o=q(""),a=ni?document.createElement("canvas"):null,i=a?a.getContext("2d"):null,s=q(!1);return Ik(()=>s.value=!0),Sr(()=>{if(!a)return;s.value;const l=v5e(i),{xGap:u,yGap:c,width:d,height:f,yOffset:A,xOffset:h,rotate:v,image:p,content:g,fontColor:m,fontStyle:y,fontVariant:b,fontStretch:x,fontWeight:w,fontFamily:C,fontSize:_,lineHeight:B,debug:T}=e,E=(u+d)*l,I=(c+f)*l,R=h*l,D=A*l;if(a.width=E,a.height=I,i){i.translate(0,0);const F=d*l,M=f*l;if(T&&(i.strokeStyle="grey",i.strokeRect(0,0,F,M)),i.rotate(v*(Math.PI/180)),p){const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=p,$.onload=()=>{i.globalAlpha=e.imageOpacity;const{imageWidth:O,imageHeight:Q}=e;i.drawImage($,R,D,(e.imageWidth||(Q?$.width*Q/$.height:$.width))*l,(e.imageHeight||(O?$.height*O/$.width:$.height))*l),o.value=a.toDataURL()}}else g&&(T&&(i.strokeStyle="green",i.strokeRect(0,0,F,M)),i.font=`${y} ${b} ${w} ${x} ${_*l}px/${B*l}px ${C||n.value.self.fontFamily}`,i.fillStyle=m,i.fillText(g,R,D+B*l),o.value=a.toDataURL())}else uve("watermark","Canvas is not supported in the browser.")}),()=>{var l;const{globalRotate:u,fullscreen:c,zIndex:d}=e,f=r.value,A=u!==0&&c,h="max(142vh, 142vw)",v=S("div",{class:[`${f}-watermark`,u!==0&&`${f}-watermark--global-rotate`,c&&`${f}-watermark--fullscreen`],style:{transform:u?`translateX(-50%) translateY(-50%) rotate(${u}deg)`:void 0,zIndex:A?void 0:d,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:u===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!u?v:S("div",{class:[`${f}-watermark-container`,u!==0&&`${f}-watermark-container--global-rotate`,c&&`${f}-watermark-container--fullscreen`,e.selectable&&`${f}-watermark-container--selectable`],style:{zIndex:A?d:void 0}},(l=t.default)===null||l===void 0?void 0:l.call(t),v)}}}),m5e="2.34.3";function y5e({componentPrefix:e="N",components:t=[]}={}){const r=[];function n(a,i,s){a.component(e+i)||a.component(e+i,s)}function o(a){r.includes(a)||(r.push(a),t.forEach(i=>{const{name:s,alias:l}=i;n(a,s,i),l&&l.forEach(u=>{n(a,u,i)})}))}return{version:m5e,componentPrefix:e,install:o}}const b5e=()=>({}),x5e={name:"Equation",common:ct,self:b5e},w5e=x5e,C5e={name:"dark",common:ct,Alert:ASe,Anchor:_Se,AutoComplete:VSe,Avatar:VX,AvatarGroup:t_e,BackTop:n_e,Badge:f_e,Breadcrumb:C_e,Button:Fa,ButtonGroup:jPe,Calendar:VBe,Card:Aq,Carousel:R2e,Cascader:eTe,Checkbox:fp,Code:bq,Collapse:pTe,CollapseTransition:TTe,ColorPicker:jBe,DataTable:hEe,DatePicker:IIe,Descriptions:oDe,Dialog:SZ,Divider:MDe,Drawer:UDe,Dropdown:dL,DynamicInput:iMe,DynamicTags:vMe,Element:gMe,Empty:DA,Ellipsis:Oq,Equation:w5e,Form:_Me,GradientText:wPe,Icon:HEe,IconWrapper:FPe,Image:jke,Input:Qi,InputNumber:XPe,LegacyTransfer:SLe,Layout:tFe,List:sFe,LoadingBar:uFe,Log:hFe,Menu:xFe,Mention:pFe,Message:GPe,Modal:bDe,Notification:HPe,PageHeader:SFe,Pagination:Fq,Popconfirm:EFe,Popover:MA,Popselect:_q,Progress:qZ,Radio:Nq,Rate:MFe,Result:OFe,Row:Kke,Scrollbar:Pa,Select:Rq,Skeleton:SOe,Slider:UFe,Space:kZ,Spin:GFe,Statistic:XFe,Steps:tke,Switch:nke,Table:dke,Tabs:pke,Tag:IX,Thing:bke,TimePicker:aZ,Timeline:wke,Tooltip:HS,Transfer:Eke,Tree:uJ,TreeSelect:Pke,Typography:Oke,Upload:Hke,Watermark:Qke},S5e=ge({__name:"index",setup(e){return window.$message=XLe(),(t,r)=>null}}),_5e=ge({__name:"index",setup(e){return window.$dialog=EDe(),(t,r)=>null}}),B5e=ge({__name:"index",setup(e){return window.$loading=MLe(),window.$loading.finish(),(t,r)=>null}}),GJ=ge({__name:"index",setup(e){return(t,r)=>(jo(),op(Fn(xJ),null,{default:Kl(()=>[ur(Fn(DZ),null,{default:Kl(()=>[ur(Fn(_5e)),ur(Fn(B5e)),ur(Fn(DJ),null,{default:Kl(()=>[ur(Fn(RJ),null,{default:Kl(()=>[ur(Fn(S5e)),gy(t.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3}))}});var Cl={},KJ={exports:{}},Yr={};/*!
  5996. * shared v9.2.2
  5997. * (c) 2022 kazuya kawaguchi
  5998. * Released under the MIT License.
  5999. */Object.defineProperty(Yr,"__esModule",{value:!0});const T5e=typeof window!="undefined";let E5e,I5e;const R5e=/\{([0-9a-zA-Z]+)\}/g;function D5e(e,...t){return t.length===1&&FL(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(R5e,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const M5e=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",P5e=e=>M5e?Symbol(e):e,F5e=(e,t,r)=>jJ({l:e,k:t,s:r}),jJ=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),k5e=e=>typeof e=="number"&&isFinite(e),L5e=e=>qS(e)==="[object Date]",O5e=e=>qS(e)==="[object RegExp]",$5e=e=>LL(e)&&Object.keys(e).length===0;function U5e(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const N5e=Object.assign;let TN;const H5e=()=>TN||(TN=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof cr!="undefined"?cr:{});function z5e(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Q5e=Object.prototype.hasOwnProperty;function V5e(e,t){return Q5e.call(e,t)}const YJ=Array.isArray,oM=e=>typeof e=="function",W5e=e=>typeof e=="string",G5e=e=>typeof e=="boolean",K5e=e=>typeof e=="symbol",FL=e=>e!==null&&typeof e=="object",j5e=e=>FL(e)&&oM(e.then)&&oM(e.catch),kL=Object.prototype.toString,qS=e=>kL.call(e),LL=e=>qS(e)==="[object Object]",Y5e=e=>e==null?"":YJ(e)||LL(e)&&e.toString===kL?JSON.stringify(e,null,2):String(e),EN=2;function X5e(e,t=0,r=e.length){const n=e.split(/\r?\n/);let o=0;const a=[];for(let i=0;i<n.length;i++)if(o+=n[i].length+1,o>=t){for(let s=i-EN;s<=i+EN||r>o;s++){if(s<0||s>=n.length)continue;const l=s+1;a.push(`${l}${" ".repeat(3-String(l).length)}| ${n[s]}`);const u=n[s].length;if(s===i){const c=t-(o-u)+1,d=Math.max(1,r>o?u-c:r-t);a.push(" | "+" ".repeat(c)+"^".repeat(d))}else if(s>i){if(r>o){const c=Math.max(Math.min(r-o,u),1);a.push(" | "+"^".repeat(c))}o+=u+1}}break}return a.join(`
  6000. `)}function q5e(){const e=new Map;return{events:e,on(r,n){const o=e.get(r);o&&o.push(n)||e.set(r,[n])},off(r,n){const o=e.get(r);o&&o.splice(o.indexOf(n)>>>0,1)},emit(r,n){(e.get(r)||[]).slice().map(o=>o(n)),(e.get("*")||[]).slice().map(o=>o(r,n))}}}Yr.assign=N5e;Yr.createEmitter=q5e;Yr.escapeHtml=z5e;Yr.format=D5e;Yr.friendlyJSONstringify=jJ;Yr.generateCodeFrame=X5e;Yr.generateFormatCacheKey=F5e;Yr.getGlobalThis=H5e;Yr.hasOwn=V5e;Yr.inBrowser=T5e;Yr.isArray=YJ;Yr.isBoolean=G5e;Yr.isDate=L5e;Yr.isEmptyObject=$5e;Yr.isFunction=oM;Yr.isNumber=k5e;Yr.isObject=FL;Yr.isPlainObject=LL;Yr.isPromise=j5e;Yr.isRegExp=O5e;Yr.isString=W5e;Yr.isSymbol=K5e;Yr.makeSymbol=P5e;Yr.mark=E5e;Yr.measure=I5e;Yr.objectToString=kL;Yr.toDisplayString=Y5e;Yr.toTypeString=qS;Yr.warn=U5e;KJ.exports=Yr;var OL=KJ.exports,XJ={exports:{}},rr={},qJ={exports:{}},Vi={},ZS={},$L={},JS={},UL={},IN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");UL.encode=function(e){if(0<=e&&e<IN.length)return IN[e];throw new TypeError("Must be between 0 and 63: "+e)};UL.decode=function(e){var t=65,r=90,n=97,o=122,a=48,i=57,s=43,l=47,u=26,c=52;return t<=e&&e<=r?e-t:n<=e&&e<=o?e-n+u:a<=e&&e<=i?e-a+c:e==s?62:e==l?63:-1};var ZJ=UL,NL=5,JJ=1<<NL,eee=JJ-1,tee=JJ;function Z5e(e){return e<0?(-e<<1)+1:(e<<1)+0}function J5e(e){var t=(e&1)===1,r=e>>1;return t?-r:r}JS.encode=function(t){var r="",n,o=Z5e(t);do n=o&eee,o>>>=NL,o>0&&(n|=tee),r+=ZJ.encode(n);while(o>0);return r};JS.decode=function(t,r,n){var o=t.length,a=0,i=0,s,l;do{if(r>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(l=ZJ.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));s=!!(l&tee),l&=eee,a=a+(l<<i),i+=NL}while(s);n.value=J5e(a),n.rest=r};var vp={};(function(e){function t(b,x,w){if(x in b)return b[x];if(arguments.length===3)return w;throw new Error('"'+x+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function o(b){var x=b.match(r);return x?{scheme:x[1],auth:x[2],host:x[3],port:x[4],path:x[5]}:null}e.urlParse=o;function a(b){var x="";return b.scheme&&(x+=b.scheme+":"),x+="//",b.auth&&(x+=b.auth+"@"),b.host&&(x+=b.host),b.port&&(x+=":"+b.port),b.path&&(x+=b.path),x}e.urlGenerate=a;function i(b){var x=b,w=o(b);if(w){if(!w.path)return b;x=w.path}for(var C=e.isAbsolute(x),_=x.split(/\/+/),B,T=0,E=_.length-1;E>=0;E--)B=_[E],B==="."?_.splice(E,1):B===".."?T++:T>0&&(B===""?(_.splice(E+1,T),T=0):(_.splice(E,2),T--));return x=_.join("/"),x===""&&(x=C?"/":"."),w?(w.path=x,a(w)):x}e.normalize=i;function s(b,x){b===""&&(b="."),x===""&&(x=".");var w=o(x),C=o(b);if(C&&(b=C.path||"/"),w&&!w.scheme)return C&&(w.scheme=C.scheme),a(w);if(w||x.match(n))return x;if(C&&!C.host&&!C.path)return C.host=x,a(C);var _=x.charAt(0)==="/"?x:i(b.replace(/\/+$/,"")+"/"+x);return C?(C.path=_,a(C)):_}e.join=s,e.isAbsolute=function(b){return b.charAt(0)==="/"||r.test(b)};function l(b,x){b===""&&(b="."),b=b.replace(/\/$/,"");for(var w=0;x.indexOf(b+"/")!==0;){var C=b.lastIndexOf("/");if(C<0||(b=b.slice(0,C),b.match(/^([^\/]+:\/)?\/*$/)))return x;++w}return Array(w+1).join("../")+x.substr(b.length+1)}e.relative=l;var u=function(){var b=Object.create(null);return!("__proto__"in b)}();function c(b){return b}function d(b){return A(b)?"$"+b:b}e.toSetString=u?c:d;function f(b){return A(b)?b.slice(1):b}e.fromSetString=u?c:f;function A(b){if(!b)return!1;var x=b.length;if(x<9||b.charCodeAt(x-1)!==95||b.charCodeAt(x-2)!==95||b.charCodeAt(x-3)!==111||b.charCodeAt(x-4)!==116||b.charCodeAt(x-5)!==111||b.charCodeAt(x-6)!==114||b.charCodeAt(x-7)!==112||b.charCodeAt(x-8)!==95||b.charCodeAt(x-9)!==95)return!1;for(var w=x-10;w>=0;w--)if(b.charCodeAt(w)!==36)return!1;return!0}function h(b,x,w){var C=p(b.source,x.source);return C!==0||(C=b.originalLine-x.originalLine,C!==0)||(C=b.originalColumn-x.originalColumn,C!==0||w)||(C=b.generatedColumn-x.generatedColumn,C!==0)||(C=b.generatedLine-x.generatedLine,C!==0)?C:p(b.name,x.name)}e.compareByOriginalPositions=h;function v(b,x,w){var C=b.generatedLine-x.generatedLine;return C!==0||(C=b.generatedColumn-x.generatedColumn,C!==0||w)||(C=p(b.source,x.source),C!==0)||(C=b.originalLine-x.originalLine,C!==0)||(C=b.originalColumn-x.originalColumn,C!==0)?C:p(b.name,x.name)}e.compareByGeneratedPositionsDeflated=v;function p(b,x){return b===x?0:b===null?1:x===null?-1:b>x?1:-1}function g(b,x){var w=b.generatedLine-x.generatedLine;return w!==0||(w=b.generatedColumn-x.generatedColumn,w!==0)||(w=p(b.source,x.source),w!==0)||(w=b.originalLine-x.originalLine,w!==0)||(w=b.originalColumn-x.originalColumn,w!==0)?w:p(b.name,x.name)}e.compareByGeneratedPositionsInflated=g;function m(b){return JSON.parse(b.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=m;function y(b,x,w){if(x=x||"",b&&(b[b.length-1]!=="/"&&x[0]!=="/"&&(b+="/"),x=b+x),w){var C=o(w);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var _=C.path.lastIndexOf("/");_>=0&&(C.path=C.path.substring(0,_+1))}x=s(a(C),x)}return i(x)}e.computeSourceURL=y})(vp);var HL={},zL=vp,QL=Object.prototype.hasOwnProperty,Kf=typeof Map!="undefined";function Au(){this._array=[],this._set=Kf?new Map:Object.create(null)}Au.fromArray=function(t,r){for(var n=new Au,o=0,a=t.length;o<a;o++)n.add(t[o],r);return n};Au.prototype.size=function(){return Kf?this._set.size:Object.getOwnPropertyNames(this._set).length};Au.prototype.add=function(t,r){var n=Kf?t:zL.toSetString(t),o=Kf?this.has(t):QL.call(this._set,n),a=this._array.length;(!o||r)&&this._array.push(t),o||(Kf?this._set.set(t,a):this._set[n]=a)};Au.prototype.has=function(t){if(Kf)return this._set.has(t);var r=zL.toSetString(t);return QL.call(this._set,r)};Au.prototype.indexOf=function(t){if(Kf){var r=this._set.get(t);if(r>=0)return r}else{var n=zL.toSetString(t);if(QL.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};Au.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Au.prototype.toArray=function(){return this._array.slice()};HL.ArraySet=Au;var ree={},nee=vp;function e3e(e,t){var r=e.generatedLine,n=t.generatedLine,o=e.generatedColumn,a=t.generatedColumn;return n>r||n==r&&a>=o||nee.compareByGeneratedPositionsInflated(e,t)<=0}function e_(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}e_.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};e_.prototype.add=function(t){e3e(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};e_.prototype.toArray=function(){return this._sorted||(this._array.sort(nee.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};ree.MappingList=e_;var ng=JS,eo=vp,Ww=HL.ArraySet,t3e=ree.MappingList;function Oi(e){e||(e={}),this._file=eo.getArg(e,"file",null),this._sourceRoot=eo.getArg(e,"sourceRoot",null),this._skipValidation=eo.getArg(e,"skipValidation",!1),this._sources=new Ww,this._names=new Ww,this._mappings=new t3e,this._sourcesContents=null}Oi.prototype._version=3;Oi.fromSourceMap=function(t){var r=t.sourceRoot,n=new Oi({file:t.file,sourceRoot:r});return t.eachMapping(function(o){var a={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(a.source=o.source,r!=null&&(a.source=eo.relative(r,a.source)),a.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(a.name=o.name)),n.addMapping(a)}),t.sources.forEach(function(o){var a=o;r!==null&&(a=eo.relative(r,o)),n._sources.has(a)||n._sources.add(a);var i=t.sourceContentFor(o);i!=null&&n.setSourceContent(o,i)}),n};Oi.prototype.addMapping=function(t){var r=eo.getArg(t,"generated"),n=eo.getArg(t,"original",null),o=eo.getArg(t,"source",null),a=eo.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,o,a),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:o,name:a})};Oi.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=eo.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[eo.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[eo.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Oi.prototype.applySourceMap=function(t,r,n){var o=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);o=t.file}var a=this._sourceRoot;a!=null&&(o=eo.relative(a,o));var i=new Ww,s=new Ww;this._mappings.unsortedForEach(function(l){if(l.source===o&&l.originalLine!=null){var u=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=eo.join(n,l.source)),a!=null&&(l.source=eo.relative(a,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var c=l.source;c!=null&&!i.has(c)&&i.add(c);var d=l.name;d!=null&&!s.has(d)&&s.add(d)},this),this._sources=i,this._names=s,t.sources.forEach(function(l){var u=t.sourceContentFor(l);u!=null&&(n!=null&&(l=eo.join(n,l)),a!=null&&(l=eo.relative(a,l)),this.setSourceContent(l,u))},this)};Oi.prototype._validateMapping=function(t,r,n,o){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!o)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:o}))}};Oi.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,o=0,a=0,i=0,s="",l,u,c,d,f=this._mappings.toArray(),A=0,h=f.length;A<h;A++){if(u=f[A],l="",u.generatedLine!==r)for(t=0;u.generatedLine!==r;)l+=";",r++;else if(A>0){if(!eo.compareByGeneratedPositionsInflated(u,f[A-1]))continue;l+=","}l+=ng.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(d=this._sources.indexOf(u.source),l+=ng.encode(d-i),i=d,l+=ng.encode(u.originalLine-1-o),o=u.originalLine-1,l+=ng.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(c=this._names.indexOf(u.name),l+=ng.encode(c-a),a=c)),s+=l}return s};Oi.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=eo.relative(r,n));var o=eo.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};Oi.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Oi.prototype.toString=function(){return JSON.stringify(this.toJSON())};$L.SourceMapGenerator=Oi;var t_={},oee={};(function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,o,a,i,s){var l=Math.floor((n-r)/2)+r,u=i(o,a[l],!0);return u===0?l:u>0?n-l>1?t(l,n,o,a,i,s):s==e.LEAST_UPPER_BOUND?n<a.length?n:-1:l:l-r>1?t(r,l,o,a,i,s):s==e.LEAST_UPPER_BOUND?l:r<0?-1:r}e.search=function(n,o,a,i){if(o.length===0)return-1;var s=t(-1,o.length,n,o,a,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&a(o[s],o[s-1],!0)===0;)--s;return s}})(oee);var aee={};function N2(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function r3e(e,t){return Math.round(e+Math.random()*(t-e))}function aM(e,t,r,n){if(r<n){var o=r3e(r,n),a=r-1;N2(e,o,n);for(var i=e[n],s=r;s<n;s++)t(e[s],i)<=0&&(a+=1,N2(e,a,s));N2(e,a+1,s);var l=a+1;aM(e,t,r,l-1),aM(e,t,l+1,n)}}aee.quickSort=function(e,t){aM(e,t,0,e.length-1)};var kt=vp,VL=oee,Fv=HL.ArraySet,n3e=JS,xm=aee.quickSort;function yn(e,t){var r=e;return typeof e=="string"&&(r=kt.parseSourceMapInput(e)),r.sections!=null?new _s(r,t):new ko(r,t)}yn.fromSourceMap=function(e,t){return ko.fromSourceMap(e,t)};yn.prototype._version=3;yn.prototype.__generatedMappings=null;Object.defineProperty(yn.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});yn.prototype.__originalMappings=null;Object.defineProperty(yn.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});yn.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};yn.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};yn.GENERATED_ORDER=1;yn.ORIGINAL_ORDER=2;yn.GREATEST_LOWER_BOUND=1;yn.LEAST_UPPER_BOUND=2;yn.prototype.eachMapping=function(t,r,n){var o=r||null,a=n||yn.GENERATED_ORDER,i;switch(a){case yn.GENERATED_ORDER:i=this._generatedMappings;break;case yn.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;i.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=kt.computeSourceURL(s,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,o)};yn.prototype.allGeneratedPositionsFor=function(t){var r=kt.getArg(t,"line"),n={source:kt.getArg(t,"source"),originalLine:r,originalColumn:kt.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var o=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",kt.compareByOriginalPositions,VL.LEAST_UPPER_BOUND);if(a>=0){var i=this._originalMappings[a];if(t.column===void 0)for(var s=i.originalLine;i&&i.originalLine===s;)o.push({line:kt.getArg(i,"generatedLine",null),column:kt.getArg(i,"generatedColumn",null),lastColumn:kt.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++a];else for(var l=i.originalColumn;i&&i.originalLine===r&&i.originalColumn==l;)o.push({line:kt.getArg(i,"generatedLine",null),column:kt.getArg(i,"generatedColumn",null),lastColumn:kt.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++a]}return o};t_.SourceMapConsumer=yn;function ko(e,t){var r=e;typeof e=="string"&&(r=kt.parseSourceMapInput(e));var n=kt.getArg(r,"version"),o=kt.getArg(r,"sources"),a=kt.getArg(r,"names",[]),i=kt.getArg(r,"sourceRoot",null),s=kt.getArg(r,"sourcesContent",null),l=kt.getArg(r,"mappings"),u=kt.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);i&&(i=kt.normalize(i)),o=o.map(String).map(kt.normalize).map(function(c){return i&&kt.isAbsolute(i)&&kt.isAbsolute(c)?kt.relative(i,c):c}),this._names=Fv.fromArray(a.map(String),!0),this._sources=Fv.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(c){return kt.computeSourceURL(i,c,t)}),this.sourceRoot=i,this.sourcesContent=s,this._mappings=l,this._sourceMapURL=t,this.file=u}ko.prototype=Object.create(yn.prototype);ko.prototype.consumer=yn;ko.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=kt.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ko.fromSourceMap=function(t,r){var n=Object.create(ko.prototype),o=n._names=Fv.fromArray(t._names.toArray(),!0),a=n._sources=Fv.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(A){return kt.computeSourceURL(n.sourceRoot,A,r)});for(var i=t._mappings.toArray().slice(),s=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,c=i.length;u<c;u++){var d=i[u],f=new iee;f.generatedLine=d.generatedLine,f.generatedColumn=d.generatedColumn,d.source&&(f.source=a.indexOf(d.source),f.originalLine=d.originalLine,f.originalColumn=d.originalColumn,d.name&&(f.name=o.indexOf(d.name)),l.push(f)),s.push(f)}return xm(n.__originalMappings,kt.compareByOriginalPositions),n};ko.prototype._version=3;Object.defineProperty(ko.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function iee(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ko.prototype._parseMappings=function(t,r){for(var n=1,o=0,a=0,i=0,s=0,l=0,u=t.length,c=0,d={},f={},A=[],h=[],v,p,g,m,y;c<u;)if(t.charAt(c)===";")n++,c++,o=0;else if(t.charAt(c)===",")c++;else{for(v=new iee,v.generatedLine=n,m=c;m<u&&!this._charIsMappingSeparator(t,m);m++);if(p=t.slice(c,m),g=d[p],g)c+=p.length;else{for(g=[];c<m;)n3e.decode(t,c,f),y=f.value,c=f.rest,g.push(y);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");d[p]=g}v.generatedColumn=o+g[0],o=v.generatedColumn,g.length>1&&(v.source=s+g[1],s+=g[1],v.originalLine=a+g[2],a=v.originalLine,v.originalLine+=1,v.originalColumn=i+g[3],i=v.originalColumn,g.length>4&&(v.name=l+g[4],l+=g[4])),h.push(v),typeof v.originalLine=="number"&&A.push(v)}xm(h,kt.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,xm(A,kt.compareByOriginalPositions),this.__originalMappings=A};ko.prototype._findMapping=function(t,r,n,o,a,i){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[o]);return VL.search(t,r,a,i)};ko.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};ko.prototype.originalPositionFor=function(t){var r={generatedLine:kt.getArg(t,"line"),generatedColumn:kt.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",kt.compareByGeneratedPositionsDeflated,kt.getArg(t,"bias",yn.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===r.generatedLine){var a=kt.getArg(o,"source",null);a!==null&&(a=this._sources.at(a),a=kt.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var i=kt.getArg(o,"name",null);return i!==null&&(i=this._names.at(i)),{source:a,line:kt.getArg(o,"originalLine",null),column:kt.getArg(o,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}};ko.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};ko.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var o=t;this.sourceRoot!=null&&(o=kt.relative(this.sourceRoot,o));var a;if(this.sourceRoot!=null&&(a=kt.urlParse(this.sourceRoot))){var i=o.replace(/^file:\/\//,"");if(a.scheme=="file"&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!a.path||a.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(r)return null;throw new Error('"'+o+'" is not in the SourceMap.')};ko.prototype.generatedPositionFor=function(t){var r=kt.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:kt.getArg(t,"line"),originalColumn:kt.getArg(t,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",kt.compareByOriginalPositions,kt.getArg(t,"bias",yn.GREATEST_LOWER_BOUND));if(o>=0){var a=this._originalMappings[o];if(a.source===n.source)return{line:kt.getArg(a,"generatedLine",null),column:kt.getArg(a,"generatedColumn",null),lastColumn:kt.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};t_.BasicSourceMapConsumer=ko;function _s(e,t){var r=e;typeof e=="string"&&(r=kt.parseSourceMapInput(e));var n=kt.getArg(r,"version"),o=kt.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Fv,this._names=new Fv;var a={line:-1,column:0};this._sections=o.map(function(i){if(i.url)throw new Error("Support for url field in sections not implemented.");var s=kt.getArg(i,"offset"),l=kt.getArg(s,"line"),u=kt.getArg(s,"column");if(l<a.line||l===a.line&&u<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=s,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new yn(kt.getArg(i,"map"),t)}})}_s.prototype=Object.create(yn.prototype);_s.prototype.constructor=yn;_s.prototype._version=3;Object.defineProperty(_s.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});_s.prototype.originalPositionFor=function(t){var r={generatedLine:kt.getArg(t,"line"),generatedColumn:kt.getArg(t,"column")},n=VL.search(r,this._sections,function(a,i){var s=a.generatedLine-i.generatedOffset.generatedLine;return s||a.generatedColumn-i.generatedOffset.generatedColumn}),o=this._sections[n];return o?o.consumer.originalPositionFor({line:r.generatedLine-(o.generatedOffset.generatedLine-1),column:r.generatedColumn-(o.generatedOffset.generatedLine===r.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};_s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};_s.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var o=this._sections[n],a=o.consumer.sourceContentFor(t,!0);if(a)return a}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};_s.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(kt.getArg(t,"source"))!==-1){var o=n.consumer.generatedPositionFor(t);if(o){var a={line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)};return a}}}return{line:null,column:null}};_s.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],a=o.consumer._generatedMappings,i=0;i<a.length;i++){var s=a[i],l=o.consumer._sources.at(s.source);l=kt.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;s.name&&(u=o.consumer._names.at(s.name),this._names.add(u),u=this._names.indexOf(u));var c={source:l,generatedLine:s.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(o.generatedOffset.generatedLine===s.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:u};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}xm(this.__generatedMappings,kt.compareByGeneratedPositionsDeflated),xm(this.__originalMappings,kt.compareByOriginalPositions)};t_.IndexedSourceMapConsumer=_s;var see={},o3e=$L.SourceMapGenerator,Gw=vp,a3e=/(\r?\n)/,i3e=10,pp="$$$isSourceNode$$$";function qa(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=r==null?null:r,this.name=o==null?null:o,this[pp]=!0,n!=null&&this.add(n)}qa.fromStringWithSourceMap=function(t,r,n){var o=new qa,a=t.split(a3e),i=0,s=function(){var f=h(),A=h()||"";return f+A;function h(){return i<a.length?a[i++]:void 0}},l=1,u=0,c=null;return r.eachMapping(function(f){if(c!==null)if(l<f.generatedLine)d(c,s()),l++,u=0;else{var A=a[i]||"",h=A.substr(0,f.generatedColumn-u);a[i]=A.substr(f.generatedColumn-u),u=f.generatedColumn,d(c,h),c=f;return}for(;l<f.generatedLine;)o.add(s()),l++;if(u<f.generatedColumn){var A=a[i]||"";o.add(A.substr(0,f.generatedColumn)),a[i]=A.substr(f.generatedColumn),u=f.generatedColumn}c=f},this),i<a.length&&(c&&d(c,s()),o.add(a.splice(i).join(""))),r.sources.forEach(function(f){var A=r.sourceContentFor(f);A!=null&&(n!=null&&(f=Gw.join(n,f)),o.setSourceContent(f,A))}),o;function d(f,A){if(f===null||f.source===void 0)o.add(A);else{var h=n?Gw.join(n,f.source):f.source;o.add(new qa(f.originalLine,f.originalColumn,h,A,f.name))}}};qa.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[pp]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};qa.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[pp]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};qa.prototype.walk=function(t){for(var r,n=0,o=this.children.length;n<o;n++)r=this.children[n],r[pp]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};qa.prototype.join=function(t){var r,n,o=this.children.length;if(o>0){for(r=[],n=0;n<o-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};qa.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[pp]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};qa.prototype.setSourceContent=function(t,r){this.sourceContents[Gw.toSetString(t)]=r};qa.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][pp]&&this.children[r].walkSourceContents(t);for(var o=Object.keys(this.sourceContents),r=0,n=o.length;r<n;r++)t(Gw.fromSetString(o[r]),this.sourceContents[o[r]])};qa.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};qa.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new o3e(t),o=!1,a=null,i=null,s=null,l=null;return this.walk(function(u,c){r.code+=u,c.source!==null&&c.line!==null&&c.column!==null?((a!==c.source||i!==c.line||s!==c.column||l!==c.name)&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name}),a=c.source,i=c.line,s=c.column,l=c.name,o=!0):o&&(n.addMapping({generated:{line:r.line,column:r.column}}),a=null,o=!1);for(var d=0,f=u.length;d<f;d++)u.charCodeAt(d)===i3e?(r.line++,r.column=0,d+1===f?(a=null,o=!1):o&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})):r.column++}),this.walkSourceContents(function(u,c){n.setSourceContent(u,c)}),{code:r.code,map:n}};see.SourceNode=qa;ZS.SourceMapGenerator=$L.SourceMapGenerator;ZS.SourceMapConsumer=t_.SourceMapConsumer;ZS.SourceNode=see.SourceNode;/*!
  6001. * message-compiler v9.2.2
  6002. * (c) 2022 kazuya kawaguchi
  6003. * Released under the MIT License.
  6004. */Object.defineProperty(Vi,"__esModule",{value:!0});var Kw=OL,s3e=ZS;const ir={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},l3e={[ir.EXPECTED_TOKEN]:"Expected token: '{0}'",[ir.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ir.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ir.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ir.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ir.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ir.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ir.EMPTY_PLACEHOLDER]:"Empty placeholder",[ir.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ir.INVALID_LINKED_FORMAT]:"Invalid linked format",[ir.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ir.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ir.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ir.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function WL(e,t,r={}){const{domain:n,messages:o,args:a}=r,i=e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=n,s}function u3e(e){throw e}const lee={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function uee(e,t,r){return{line:e,column:t,offset:r}}function jw(e,t,r){const n={start:e,end:t};return r!=null&&(n.source=r),n}const Ml=" ",c3e="\r",ta=`
  6005. `,d3e=String.fromCharCode(8232),f3e=String.fromCharCode(8233);function A3e(e){const t=e;let r=0,n=1,o=1,a=0;const i=C=>t[C]===c3e&&t[C+1]===ta,s=C=>t[C]===ta,l=C=>t[C]===f3e,u=C=>t[C]===d3e,c=C=>i(C)||s(C)||l(C)||u(C),d=()=>r,f=()=>n,A=()=>o,h=()=>a,v=C=>i(C)||l(C)||u(C)?ta:t[C],p=()=>v(r),g=()=>v(r+a);function m(){return a=0,c(r)&&(n++,o=0),i(r)&&r++,r++,o++,t[r]}function y(){return i(r+a)&&a++,a++,t[r+a]}function b(){r=0,n=1,o=1,a=0}function x(C=0){a=C}function w(){const C=r+a;for(;C!==r;)m();a=0}return{index:d,line:f,column:A,peekOffset:h,charAt:v,currentChar:p,currentPeek:g,next:m,peek:y,reset:b,resetPeek:x,skipToPeek:w}}const zu=void 0,RN="'",h3e="tokenizer";function v3e(e,t={}){const r=t.location!==!1,n=A3e(e),o=()=>n.index(),a=()=>uee(n.line(),n.column(),n.index()),i=a(),s=o(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(U,k,J,...ee){const H=u();if(k.column+=J,k.offset+=J,c){const Y=jw(H.startLoc,k),oe=WL(U,Y,{domain:h3e,args:ee});c(oe)}}function f(U,k,J){U.endLoc=a(),U.currentType=k;const ee={type:k};return r&&(ee.loc=jw(U.startLoc,U.endLoc)),J!=null&&(ee.value=J),ee}const A=U=>f(U,14);function h(U,k){return U.currentChar()===k?(U.next(),k):(d(ir.EXPECTED_TOKEN,a(),0,k),"")}function v(U){let k="";for(;U.currentPeek()===Ml||U.currentPeek()===ta;)k+=U.currentPeek(),U.peek();return k}function p(U){const k=v(U);return U.skipToPeek(),k}function g(U){if(U===zu)return!1;const k=U.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k===95}function m(U){if(U===zu)return!1;const k=U.charCodeAt(0);return k>=48&&k<=57}function y(U,k){const{currentType:J}=k;if(J!==2)return!1;v(U);const ee=g(U.currentPeek());return U.resetPeek(),ee}function b(U,k){const{currentType:J}=k;if(J!==2)return!1;v(U);const ee=U.currentPeek()==="-"?U.peek():U.currentPeek(),H=m(ee);return U.resetPeek(),H}function x(U,k){const{currentType:J}=k;if(J!==2)return!1;v(U);const ee=U.currentPeek()===RN;return U.resetPeek(),ee}function w(U,k){const{currentType:J}=k;if(J!==8)return!1;v(U);const ee=U.currentPeek()===".";return U.resetPeek(),ee}function C(U,k){const{currentType:J}=k;if(J!==9)return!1;v(U);const ee=g(U.currentPeek());return U.resetPeek(),ee}function _(U,k){const{currentType:J}=k;if(!(J===8||J===12))return!1;v(U);const ee=U.currentPeek()===":";return U.resetPeek(),ee}function B(U,k){const{currentType:J}=k;if(J!==10)return!1;const ee=()=>{const Y=U.currentPeek();return Y==="{"?g(U.peek()):Y==="@"||Y==="%"||Y==="|"||Y===":"||Y==="."||Y===Ml||!Y?!1:Y===ta?(U.peek(),ee()):g(Y)},H=ee();return U.resetPeek(),H}function T(U){v(U);const k=U.currentPeek()==="|";return U.resetPeek(),k}function E(U){const k=v(U),J=U.currentPeek()==="%"&&U.peek()==="{";return U.resetPeek(),{isModulo:J,hasSpace:k.length>0}}function I(U,k=!0){const J=(H=!1,Y="",oe=!1)=>{const he=U.currentPeek();return he==="{"?Y==="%"?!1:H:he==="@"||!he?Y==="%"?!0:H:he==="%"?(U.peek(),J(H,"%",!0)):he==="|"?Y==="%"||oe?!0:!(Y===Ml||Y===ta):he===Ml?(U.peek(),J(!0,Ml,oe)):he===ta?(U.peek(),J(!0,ta,oe)):!0},ee=J();return k&&U.resetPeek(),ee}function R(U,k){const J=U.currentChar();return J===zu?zu:k(J)?(U.next(),J):null}function D(U){return R(U,J=>{const ee=J.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===95||ee===36})}function F(U){return R(U,J=>{const ee=J.charCodeAt(0);return ee>=48&&ee<=57})}function M(U){return R(U,J=>{const ee=J.charCodeAt(0);return ee>=48&&ee<=57||ee>=65&&ee<=70||ee>=97&&ee<=102})}function $(U){let k="",J="";for(;k=F(U);)J+=k;return J}function O(U){p(U);const k=U.currentChar();return k!=="%"&&d(ir.EXPECTED_TOKEN,a(),0,k),U.next(),"%"}function Q(U){let k="";for(;;){const J=U.currentChar();if(J==="{"||J==="}"||J==="@"||J==="|"||!J)break;if(J==="%")if(I(U))k+=J,U.next();else break;else if(J===Ml||J===ta)if(I(U))k+=J,U.next();else{if(T(U))break;k+=J,U.next()}else k+=J,U.next()}return k}function V(U){p(U);let k="",J="";for(;k=D(U);)J+=k;return U.currentChar()===zu&&d(ir.UNTERMINATED_CLOSING_BRACE,a(),0),J}function W(U){p(U);let k="";return U.currentChar()==="-"?(U.next(),k+=`-${$(U)}`):k+=$(U),U.currentChar()===zu&&d(ir.UNTERMINATED_CLOSING_BRACE,a(),0),k}function Z(U){p(U),h(U,"'");let k="",J="";const ee=Y=>Y!==RN&&Y!==ta;for(;k=R(U,ee);)k==="\\"?J+=te(U):J+=k;const H=U.currentChar();return H===ta||H===zu?(d(ir.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),H===ta&&(U.next(),h(U,"'")),J):(h(U,"'"),J)}function te(U){const k=U.currentChar();switch(k){case"\\":case"'":return U.next(),`\\${k}`;case"u":return ae(U,k,4);case"U":return ae(U,k,6);default:return d(ir.UNKNOWN_ESCAPE_SEQUENCE,a(),0,k),""}}function ae(U,k,J){h(U,k);let ee="";for(let H=0;H<J;H++){const Y=M(U);if(!Y){d(ir.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${k}${ee}${U.currentChar()}`);break}ee+=Y}return`\\${k}${ee}`}function re(U){p(U);let k="",J="";const ee=H=>H!=="{"&&H!=="}"&&H!==Ml&&H!==ta;for(;k=R(U,ee);)J+=k;return J}function le(U){let k="",J="";for(;k=D(U);)J+=k;return J}function se(U){const k=(J=!1,ee)=>{const H=U.currentChar();return H==="{"||H==="%"||H==="@"||H==="|"||!H||H===Ml?ee:H===ta?(ee+=H,U.next(),k(J,ee)):(ee+=H,U.next(),k(!0,ee))};return k(!1,"")}function ce(U){p(U);const k=h(U,"|");return p(U),k}function be(U,k){let J=null;switch(U.currentChar()){case"{":return k.braceNest>=1&&d(ir.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),U.next(),J=f(k,2,"{"),p(U),k.braceNest++,J;case"}":return k.braceNest>0&&k.currentType===2&&d(ir.EMPTY_PLACEHOLDER,a(),0),U.next(),J=f(k,3,"}"),k.braceNest--,k.braceNest>0&&p(U),k.inLinked&&k.braceNest===0&&(k.inLinked=!1),J;case"@":return k.braceNest>0&&d(ir.UNTERMINATED_CLOSING_BRACE,a(),0),J=de(U,k)||A(k),k.braceNest=0,J;default:let H=!0,Y=!0,oe=!0;if(T(U))return k.braceNest>0&&d(ir.UNTERMINATED_CLOSING_BRACE,a(),0),J=f(k,1,ce(U)),k.braceNest=0,k.inLinked=!1,J;if(k.braceNest>0&&(k.currentType===5||k.currentType===6||k.currentType===7))return d(ir.UNTERMINATED_CLOSING_BRACE,a(),0),k.braceNest=0,pe(U,k);if(H=y(U,k))return J=f(k,5,V(U)),p(U),J;if(Y=b(U,k))return J=f(k,6,W(U)),p(U),J;if(oe=x(U,k))return J=f(k,7,Z(U)),p(U),J;if(!H&&!Y&&!oe)return J=f(k,13,re(U)),d(ir.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,J.value),p(U),J;break}return J}function de(U,k){const{currentType:J}=k;let ee=null;const H=U.currentChar();switch((J===8||J===9||J===12||J===10)&&(H===ta||H===Ml)&&d(ir.INVALID_LINKED_FORMAT,a(),0),H){case"@":return U.next(),ee=f(k,8,"@"),k.inLinked=!0,ee;case".":return p(U),U.next(),f(k,9,".");case":":return p(U),U.next(),f(k,10,":");default:return T(U)?(ee=f(k,1,ce(U)),k.braceNest=0,k.inLinked=!1,ee):w(U,k)||_(U,k)?(p(U),de(U,k)):C(U,k)?(p(U),f(k,12,le(U))):B(U,k)?(p(U),H==="{"?be(U,k)||ee:f(k,11,se(U))):(J===8&&d(ir.INVALID_LINKED_FORMAT,a(),0),k.braceNest=0,k.inLinked=!1,pe(U,k))}}function pe(U,k){let J={type:14};if(k.braceNest>0)return be(U,k)||A(k);if(k.inLinked)return de(U,k)||A(k);switch(U.currentChar()){case"{":return be(U,k)||A(k);case"}":return d(ir.UNBALANCED_CLOSING_BRACE,a(),0),U.next(),f(k,3,"}");case"@":return de(U,k)||A(k);default:if(T(U))return J=f(k,1,ce(U)),k.braceNest=0,k.inLinked=!1,J;const{isModulo:H,hasSpace:Y}=E(U);if(H)return Y?f(k,0,Q(U)):f(k,4,O(U));if(I(U))return f(k,0,Q(U));break}return J}function K(){const{currentType:U,offset:k,startLoc:J,endLoc:ee}=l;return l.lastType=U,l.lastOffset=k,l.lastStartLoc=J,l.lastEndLoc=ee,l.offset=o(),l.startLoc=a(),n.currentChar()===zu?f(l,14):pe(n,l)}return{nextToken:K,currentOffset:o,currentPosition:a,context:u}}const cee="parser",p3e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function g3e(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function dee(e={}){const t=e.location!==!1,{onError:r}=e;function n(g,m,y,b,...x){const w=g.currentPosition();if(w.offset+=b,w.column+=b,r){const C=jw(y,w),_=WL(m,C,{domain:cee,args:x});r(_)}}function o(g,m,y){const b={type:g,start:m,end:m};return t&&(b.loc={start:y,end:y}),b}function a(g,m,y,b){g.end=m,b&&(g.type=b),t&&g.loc&&(g.loc.end=y)}function i(g,m){const y=g.context(),b=o(3,y.offset,y.startLoc);return b.value=m,a(b,g.currentOffset(),g.currentPosition()),b}function s(g,m){const y=g.context(),{lastOffset:b,lastStartLoc:x}=y,w=o(5,b,x);return w.index=parseInt(m,10),g.nextToken(),a(w,g.currentOffset(),g.currentPosition()),w}function l(g,m){const y=g.context(),{lastOffset:b,lastStartLoc:x}=y,w=o(4,b,x);return w.key=m,g.nextToken(),a(w,g.currentOffset(),g.currentPosition()),w}function u(g,m){const y=g.context(),{lastOffset:b,lastStartLoc:x}=y,w=o(9,b,x);return w.value=m.replace(p3e,g3e),g.nextToken(),a(w,g.currentOffset(),g.currentPosition()),w}function c(g){const m=g.nextToken(),y=g.context(),{lastOffset:b,lastStartLoc:x}=y,w=o(8,b,x);return m.type!==12?(n(g,ir.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),w.value="",a(w,b,x),{nextConsumeToken:m,node:w}):(m.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ps(m)),w.value=m.value||"",a(w,g.currentOffset(),g.currentPosition()),{node:w})}function d(g,m){const y=g.context(),b=o(7,y.offset,y.startLoc);return b.value=m,a(b,g.currentOffset(),g.currentPosition()),b}function f(g){const m=g.context(),y=o(6,m.offset,m.startLoc);let b=g.nextToken();if(b.type===9){const x=c(g);y.modifier=x.node,b=x.nextConsumeToken||g.nextToken()}switch(b.type!==10&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(b)),b=g.nextToken(),b.type===2&&(b=g.nextToken()),b.type){case 11:b.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(b)),y.key=d(g,b.value||"");break;case 5:b.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(b)),y.key=l(g,b.value||"");break;case 6:b.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(b)),y.key=s(g,b.value||"");break;case 7:b.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(b)),y.key=u(g,b.value||"");break;default:n(g,ir.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const x=g.context(),w=o(7,x.offset,x.startLoc);return w.value="",a(w,x.offset,x.startLoc),y.key=w,a(y,x.offset,x.startLoc),{nextConsumeToken:b,node:y}}return a(y,g.currentOffset(),g.currentPosition()),{node:y}}function A(g){const m=g.context(),y=m.currentType===1?g.currentOffset():m.offset,b=m.currentType===1?m.endLoc:m.startLoc,x=o(2,y,b);x.items=[];let w=null;do{const B=w||g.nextToken();switch(w=null,B.type){case 0:B.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(B)),x.items.push(i(g,B.value||""));break;case 6:B.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(B)),x.items.push(s(g,B.value||""));break;case 5:B.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(B)),x.items.push(l(g,B.value||""));break;case 7:B.value==null&&n(g,ir.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Ps(B)),x.items.push(u(g,B.value||""));break;case 8:const T=f(g);x.items.push(T.node),w=T.nextConsumeToken||null;break}}while(m.currentType!==14&&m.currentType!==1);const C=m.currentType===1?m.lastOffset:g.currentOffset(),_=m.currentType===1?m.lastEndLoc:g.currentPosition();return a(x,C,_),x}function h(g,m,y,b){const x=g.context();let w=b.items.length===0;const C=o(1,m,y);C.cases=[],C.cases.push(b);do{const _=A(g);w||(w=_.items.length===0),C.cases.push(_)}while(x.currentType!==14);return w&&n(g,ir.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),a(C,g.currentOffset(),g.currentPosition()),C}function v(g){const m=g.context(),{offset:y,startLoc:b}=m,x=A(g);return m.currentType===14?x:h(g,y,b,x)}function p(g){const m=v3e(g,Kw.assign({},e)),y=m.context(),b=o(0,y.offset,y.startLoc);return t&&b.loc&&(b.loc.source=g),b.body=v(m),y.currentType!==14&&n(m,ir.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,g[y.offset]||""),a(b,m.currentOffset(),m.currentPosition()),b}return{parse:p}}function Ps(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function m3e(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function DN(e,t){for(let r=0;r<e.length;r++)GL(e[r],t)}function GL(e,t){switch(e.type){case 1:DN(e.cases,t),t.helper("plural");break;case 2:DN(e.items,t);break;case 6:GL(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function y3e(e,t={}){const r=m3e(e);r.helper("normalize"),e.body&&GL(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function b3e(e,t){const{sourceMap:r,filename:n,breakLineCode:o,needIndent:a}=t,i={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0},s=()=>i;function l(p,g){i.code+=p,i.map&&(g&&g.loc&&g.loc!==lee&&v(g.loc.start,B3e(g)),T3e(i,p))}function u(p,g=!0){const m=g?o:"";l(a?m+" ".repeat(p):m)}function c(p=!0){const g=++i.indentLevel;p&&u(g)}function d(p=!0){const g=--i.indentLevel;p&&u(g)}function f(){u(i.indentLevel)}const A=p=>`_${p}`,h=()=>i.needIndent;function v(p,g){i.map.addMapping({name:g,source:i.filename,original:{line:p.line,column:p.column-1},generated:{line:i.line,column:i.column-1}})}return r&&(i.map=new s3e.SourceMapGenerator,i.map.setSourceContent(n,i.source)),{context:s,push:l,indent:c,deindent:d,newline:f,helper:A,needIndent:h}}function x3e(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),kv(e,t.key),t.modifier?(e.push(", "),kv(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function w3e(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const o=t.items.length;for(let a=0;a<o&&(kv(e,t.items[a]),a!==o-1);a++)e.push(", ");e.deindent(n()),e.push("])")}function C3e(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const o=t.cases.length;for(let a=0;a<o&&(kv(e,t.cases[a]),a!==o-1);a++)e.push(", ");e.deindent(n()),e.push("])")}}function S3e(e,t){t.body?kv(e,t.body):e.push("null")}function kv(e,t){const{helper:r}=e;switch(t.type){case 0:S3e(e,t);break;case 1:C3e(e,t);break;case 2:w3e(e,t);break;case 6:x3e(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const _3e=(e,t={})=>{const r=Kw.isString(t.mode)?t.mode:"normal",n=Kw.isString(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
  6006. `,i=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=b3e(e,{mode:r,filename:n,sourceMap:o,breakLineCode:a,needIndent:i});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),s.length>0&&(l.push(`const { ${s.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),kv(l,e),l.deindent(i),l.push("}");const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function B3e(e){switch(e.type){case 3:case 9:case 8:case 7:return e.value;case 5:return e.index.toString();case 4:return e.key;default:return}}function T3e(e,t,r=t.length){let n=0,o=-1;for(let a=0;a<r;a++)t.charCodeAt(a)===10&&(n++,o=a);return e.offset+=r,e.line+=n,e.column=o===-1?e.column+r:r-o,e}function E3e(e,t={}){const r=Kw.assign({},t),o=dee(r).parse(e);return y3e(o,r),_3e(o,r)}Vi.CompileErrorCodes=ir;Vi.ERROR_DOMAIN=cee;Vi.LocationStub=lee;Vi.baseCompile=E3e;Vi.createCompileError=WL;Vi.createLocation=jw;Vi.createParser=dee;Vi.createPosition=uee;Vi.defaultOnError=u3e;Vi.errorMessages=l3e;qJ.exports=Vi;var I3e=qJ.exports,fee={exports:{}},KL={};/*!
  6007. * devtools-if v9.2.2
  6008. * (c) 2022 kazuya kawaguchi
  6009. * Released under the MIT License.
  6010. */Object.defineProperty(KL,"__esModule",{value:!0});const R3e={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};KL.IntlifyDevToolsHooks=R3e;fee.exports=KL;var D3e=fee.exports;/*!
  6011. * core-base v9.2.2
  6012. * (c) 2022 kazuya kawaguchi
  6013. * Released under the MIT License.
  6014. */Object.defineProperty(rr,"__esModule",{value:!0});var Lv=I3e,ke=OL,Aee=D3e;const yd=[];yd[0]={w:[0],i:[3,0],["["]:[4],o:[7]};yd[1]={w:[1],["."]:[2],["["]:[4],o:[7]};yd[2]={w:[2],i:[3,0],[0]:[3,0]};yd[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};yd[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};yd[5]={["'"]:[4,0],o:8,l:[5,0]};yd[6]={['"']:[4,0],o:8,l:[6,0]};const M3e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function P3e(e){return M3e.test(e)}function F3e(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function k3e(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function L3e(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:P3e(t)?F3e(t):"*"+t}function hee(e){const t=[];let r=-1,n=0,o=0,a,i,s,l,u,c,d;const f=[];f[0]=()=>{i===void 0?i=s:i+=s},f[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,n=4,f[0]();else{if(o=0,i===void 0||(i=L3e(i),i===!1))return!1;f[1]()}};function A(){const h=e[r+1];if(n===5&&h==="'"||n===6&&h==='"')return r++,s="\\"+h,f[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&A())){if(l=k3e(a),d=yd[n],u=d[l]||d.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=a,c()===!1))))return;if(n===7)return t}}const MN=new Map;function vee(e,t){return ke.isObject(e)?e[t]:null}function O3e(e,t){if(!ke.isObject(e))return null;let r=MN.get(t);if(r||(r=hee(t),r&&MN.set(t,r)),!r)return null;const n=r.length;let o=e,a=0;for(;a<n;){const i=o[r[a]];if(i===void 0)return null;o=i,a++}return o}const $3e=e=>e,U3e=e=>"",pee="text",N3e=e=>e.length===0?"":e.join(""),H3e=ke.toDisplayString;function PN(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function z3e(e){const t=ke.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke.isNumber(e.named.count)||ke.isNumber(e.named.n))?ke.isNumber(e.named.count)?e.named.count:ke.isNumber(e.named.n)?e.named.n:t:t}function Q3e(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gee(e={}){const t=e.locale,r=z3e(e),n=ke.isObject(e.pluralRules)&&ke.isString(t)&&ke.isFunction(e.pluralRules[t])?e.pluralRules[t]:PN,o=ke.isObject(e.pluralRules)&&ke.isString(t)&&ke.isFunction(e.pluralRules[t])?PN:void 0,a=g=>g[n(r,g.length,o)],i=e.list||[],s=g=>i[g],l=e.named||{};ke.isNumber(e.pluralIndex)&&Q3e(r,l);const u=g=>l[g];function c(g){const m=ke.isFunction(e.messages)?e.messages(g):ke.isObject(e.messages)?e.messages[g]:!1;return m||(e.parent?e.parent.message(g):U3e)}const d=g=>e.modifiers?e.modifiers[g]:$3e,f=ke.isPlainObject(e.processor)&&ke.isFunction(e.processor.normalize)?e.processor.normalize:N3e,A=ke.isPlainObject(e.processor)&&ke.isFunction(e.processor.interpolate)?e.processor.interpolate:H3e,h=ke.isPlainObject(e.processor)&&ke.isString(e.processor.type)?e.processor.type:pee,p={list:s,named:u,plural:a,linked:(g,...m)=>{const[y,b]=m;let x="text",w="";m.length===1?ke.isObject(y)?(w=y.modifier||w,x=y.type||x):ke.isString(y)&&(w=y||w):m.length===2&&(ke.isString(y)&&(w=y||w),ke.isString(b)&&(x=b||x));let C=c(g)(p);return x==="vnode"&&ke.isArray(C)&&w&&(C=C[0]),w?d(w)(C,x):C},message:c,type:h,interpolate:A,normalize:f};return p}let Ov=null;function V3e(e){Ov=e}function W3e(){return Ov}function G3e(e,t,r){Ov&&Ov.emit(Aee.IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:r})}const K3e=j3e(Aee.IntlifyDevToolsHooks.FunctionTranslate);function j3e(e){return t=>Ov&&Ov.emit(e,t)}const cf={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},Y3e={[cf.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[cf.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[cf.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[cf.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[cf.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[cf.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function X3e(e,...t){return ke.format(Y3e[e],...t)}function mee(e,t,r){return[...new Set([r,...ke.isArray(t)?t:ke.isObject(t)?Object.keys(t):ke.isString(t)?[t]:[r]])]}function q3e(e,t,r){const n=ke.isString(r)?r:jL,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(n);if(!a){a=[];let i=[r];for(;ke.isArray(i);)i=FN(a,i,t);const s=ke.isArray(t)||!ke.isPlainObject(t)?t:t.default?t.default:null;i=ke.isString(s)?[s]:s,ke.isArray(i)&&FN(a,i,!1),o.__localeChainCache.set(n,a)}return a}function FN(e,t,r){let n=!0;for(let o=0;o<t.length&&ke.isBoolean(n);o++){const a=t[o];ke.isString(a)&&(n=Z3e(e,t[o],r))}return n}function Z3e(e,t,r){let n;const o=t.split("-");do{const a=o.join("-");n=J3e(e,a,r),o.splice(-1,1)}while(o.length&&n===!0);return n}function J3e(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(ke.isArray(r)||ke.isPlainObject(r))&&r[o]&&(n=r[o])}return n}const yee="9.2.2",r_=-1,jL="en-US",e$e="",kN=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function t$e(){return{upper:(e,t)=>t==="text"&&ke.isString(e)?e.toUpperCase():t==="vnode"&&ke.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ke.isString(e)?e.toLowerCase():t==="vnode"&&ke.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ke.isString(e)?kN(e):t==="vnode"&&ke.isObject(e)&&"__v_isVNode"in e?kN(e.children):e}}let bee;function r$e(e){bee=e}let xee;function n$e(e){xee=e}let wee;function o$e(e){wee=e}let Cee=null;const a$e=e=>{Cee=e},i$e=()=>Cee;let See=null;const s$e=e=>{See=e},l$e=()=>See;let LN=0;function u$e(e={}){const t=ke.isString(e.version)?e.version:yee,r=ke.isString(e.locale)?e.locale:jL,n=ke.isArray(e.fallbackLocale)||ke.isPlainObject(e.fallbackLocale)||ke.isString(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,o=ke.isPlainObject(e.messages)?e.messages:{[r]:{}},a=ke.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=ke.isPlainObject(e.numberFormats)?e.numberFormats:{[r]:{}},s=ke.assign({},e.modifiers||{},t$e()),l=e.pluralRules||{},u=ke.isFunction(e.missing)?e.missing:null,c=ke.isBoolean(e.missingWarn)||ke.isRegExp(e.missingWarn)?e.missingWarn:!0,d=ke.isBoolean(e.fallbackWarn)||ke.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,A=!!e.unresolving,h=ke.isFunction(e.postTranslation)?e.postTranslation:null,v=ke.isPlainObject(e.processor)?e.processor:null,p=ke.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,m=ke.isFunction(e.messageCompiler)?e.messageCompiler:bee,y=ke.isFunction(e.messageResolver)?e.messageResolver:xee||vee,b=ke.isFunction(e.localeFallbacker)?e.localeFallbacker:wee||mee,x=ke.isObject(e.fallbackContext)?e.fallbackContext:void 0,w=ke.isFunction(e.onWarn)?e.onWarn:ke.warn,C=e,_=ke.isObject(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,B=ke.isObject(C.__numberFormatters)?C.__numberFormatters:new Map,T=ke.isObject(C.__meta)?C.__meta:{};LN++;const E={version:t,cid:LN,locale:r,fallbackLocale:n,messages:o,modifiers:s,pluralRules:l,missing:u,missingWarn:c,fallbackWarn:d,fallbackFormat:f,unresolving:A,postTranslation:h,processor:v,warnHtmlMessage:p,escapeParameter:g,messageCompiler:m,messageResolver:y,localeFallbacker:b,fallbackContext:x,onWarn:w,__meta:T};return E.datetimeFormats=a,E.numberFormats=i,E.__datetimeFormatters=_,E.__numberFormatters=B,E}function c$e(e,t){return e instanceof RegExp?e.test(t):e}function d$e(e,t){return e instanceof RegExp?e.test(t):e}function n_(e,t,r,n,o){const{missing:a,onWarn:i}=e;if(a!==null){const s=a(e,r,t,o);return ke.isString(s)?s:t}else return t}function f$e(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}const A$e=e=>e;let iM=Object.create(null);function h$e(){iM=Object.create(null)}function v$e(e,t={}){{const n=(t.onCacheKey||A$e)(e),o=iM[n];if(o)return o;let a=!1;const i=t.onError||Lv.defaultOnError;t.onError=u=>{a=!0,i(u)};const{code:s}=Lv.baseCompile(e,t),l=new Function(`return ${s}`)();return a?l:iM[n]=l}}let _ee=Lv.CompileErrorCodes.__EXTEND_POINT__;const H2=()=>++_ee,Xs={INVALID_ARGUMENT:_ee,INVALID_DATE_ARGUMENT:H2(),INVALID_ISO_DATE_ARGUMENT:H2(),__EXTEND_POINT__:H2()};function Df(e){return Lv.createCompileError(e,null,void 0)}Xs.INVALID_ARGUMENT+"",Xs.INVALID_DATE_ARGUMENT+"",Xs.INVALID_ISO_DATE_ARGUMENT+"";const ON=()=>"",Rc=e=>ke.isFunction(e);function p$e(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:a,fallbackLocale:i,messages:s}=e,[l,u]=Eee(...t),c=ke.isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,d=ke.isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=ke.isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter,A=!!u.resolvedMessage,h=ke.isString(u.default)||ke.isBoolean(u.default)?ke.isBoolean(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:"",v=r||h!=="",p=ke.isString(u.locale)?u.locale:e.locale;f&&g$e(u);let[g,m,y]=A?[l,p,s[p]||{}]:Bee(e,l,p,i,d,c),b=g,x=l;if(!A&&!(ke.isString(b)||Rc(b))&&v&&(b=h,x=b),!A&&(!(ke.isString(b)||Rc(b))||!ke.isString(m)))return o?r_:l;let w=!1;const C=()=>{w=!0},_=Rc(b)?b:Tee(e,l,m,b,x,C);if(w)return b;const B=b$e(e,m,y,u),T=gee(B),E=m$e(e,_,T);return n?n(E,l):E}function g$e(e){ke.isArray(e.list)?e.list=e.list.map(t=>ke.isString(t)?ke.escapeHtml(t):t):ke.isObject(e.named)&&Object.keys(e.named).forEach(t=>{ke.isString(e.named[t])&&(e.named[t]=ke.escapeHtml(e.named[t]))})}function Bee(e,t,r,n,o,a){const{messages:i,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let d={},f,A=null;const h="translate";for(let v=0;v<c.length&&(f=c[v],d=i[f]||{},(A=l(d,t))===null&&(A=d[t]),!(ke.isString(A)||ke.isFunction(A)));v++){const p=n_(e,t,f,a,h);p!==t&&(A=p)}return[A,f,d]}function Tee(e,t,r,n,o,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Rc(n)){const u=n;return u.locale=u.locale||r,u.key=u.key||t,u}if(i==null){const u=()=>n;return u.locale=r,u.key=t,u}const l=i(n,y$e(e,r,o,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function m$e(e,t,r){return t(r)}function Eee(...e){const[t,r,n]=e,o={};if(!ke.isString(t)&&!ke.isNumber(t)&&!Rc(t))throw Df(Xs.INVALID_ARGUMENT);const a=ke.isNumber(t)?String(t):(Rc(t),t);return ke.isNumber(r)?o.plural=r:ke.isString(r)?o.default=r:ke.isPlainObject(r)&&!ke.isEmptyObject(r)?o.named=r:ke.isArray(r)&&(o.list=r),ke.isNumber(n)?o.plural=n:ke.isString(n)?o.default=n:ke.isPlainObject(n)&&ke.assign(o,n),[a,o]}function y$e(e,t,r,n,o,a){return{warnHtmlMessage:o,onError:i=>{throw a&&a(i),i},onCacheKey:i=>ke.generateFormatCacheKey(t,r,i)}}function b$e(e,t,r,n){const{modifiers:o,pluralRules:a,messageResolver:i,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,f={locale:t,modifiers:o,pluralRules:a,messages:A=>{let h=i(r,A);if(h==null&&c){const[,,v]=Bee(c,A,t,s,l,u);h=i(v,A)}if(ke.isString(h)){let v=!1;const g=Tee(e,A,t,h,A,()=>{v=!0});return v?ON:g}else return Rc(h)?h:ON}};return e.processor&&(f.processor=e.processor),n.list&&(f.list=n.list),n.named&&(f.named=n.named),ke.isNumber(n.plural)&&(f.pluralIndex=n.plural),f}function x$e(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:o,onWarn:a,localeFallbacker:i}=e,{__datetimeFormatters:s}=e,[l,u,c,d]=Ree(...t),f=ke.isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn;ke.isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const A=!!c.part,h=ke.isString(c.locale)?c.locale:e.locale,v=i(e,o,h);if(!ke.isString(l)||l==="")return new Intl.DateTimeFormat(h,d).format(u);let p={},g,m=null;const y="datetime format";for(let w=0;w<v.length&&(g=v[w],p=r[g]||{},m=p[l],!ke.isPlainObject(m));w++)n_(e,l,g,f,y);if(!ke.isPlainObject(m)||!ke.isString(g))return n?r_:l;let b=`${g}__${l}`;ke.isEmptyObject(d)||(b=`${b}__${JSON.stringify(d)}`);let x=s.get(b);return x||(x=new Intl.DateTimeFormat(g,ke.assign({},m,d)),s.set(b,x)),A?x.formatToParts(u):x.format(u)}const Iee=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ree(...e){const[t,r,n,o]=e,a={};let i={},s;if(ke.isString(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Df(Xs.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch(c){throw Df(Xs.INVALID_ISO_DATE_ARGUMENT)}}else if(ke.isDate(t)){if(isNaN(t.getTime()))throw Df(Xs.INVALID_DATE_ARGUMENT);s=t}else if(ke.isNumber(t))s=t;else throw Df(Xs.INVALID_ARGUMENT);return ke.isString(r)?a.key=r:ke.isPlainObject(r)&&Object.keys(r).forEach(l=>{Iee.includes(l)?i[l]=r[l]:a[l]=r[l]}),ke.isString(n)?a.locale=n:ke.isPlainObject(n)&&(i=n),ke.isPlainObject(o)&&(i=o),[a.key||"",s,a,i]}function w$e(e,t,r){const n=e;for(const o in r){const a=`${t}__${o}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function C$e(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:a,localeFallbacker:i}=e,{__numberFormatters:s}=e,[l,u,c,d]=Mee(...t),f=ke.isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn;ke.isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const A=!!c.part,h=ke.isString(c.locale)?c.locale:e.locale,v=i(e,o,h);if(!ke.isString(l)||l==="")return new Intl.NumberFormat(h,d).format(u);let p={},g,m=null;const y="number format";for(let w=0;w<v.length&&(g=v[w],p=r[g]||{},m=p[l],!ke.isPlainObject(m));w++)n_(e,l,g,f,y);if(!ke.isPlainObject(m)||!ke.isString(g))return n?r_:l;let b=`${g}__${l}`;ke.isEmptyObject(d)||(b=`${b}__${JSON.stringify(d)}`);let x=s.get(b);return x||(x=new Intl.NumberFormat(g,ke.assign({},m,d)),s.set(b,x)),A?x.formatToParts(u):x.format(u)}const Dee=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Mee(...e){const[t,r,n,o]=e,a={};let i={};if(!ke.isNumber(t))throw Df(Xs.INVALID_ARGUMENT);const s=t;return ke.isString(r)?a.key=r:ke.isPlainObject(r)&&Object.keys(r).forEach(l=>{Dee.includes(l)?i[l]=r[l]:a[l]=r[l]}),ke.isString(n)?a.locale=n:ke.isPlainObject(n)&&(i=n),ke.isPlainObject(o)&&(i=o),[a.key||"",s,a,i]}function S$e(e,t,r){const n=e;for(const o in r){const a=`${t}__${o}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}rr.CompileErrorCodes=Lv.CompileErrorCodes;rr.createCompileError=Lv.createCompileError;rr.CoreErrorCodes=Xs;rr.CoreWarnCodes=cf;rr.DATETIME_FORMAT_OPTIONS_KEYS=Iee;rr.DEFAULT_LOCALE=jL;rr.DEFAULT_MESSAGE_DATA_TYPE=pee;rr.MISSING_RESOLVE_VALUE=e$e;rr.NOT_REOSLVED=r_;rr.NUMBER_FORMAT_OPTIONS_KEYS=Dee;rr.VERSION=yee;rr.clearCompileCache=h$e;rr.clearDateTimeFormat=w$e;rr.clearNumberFormat=S$e;rr.compileToFunction=v$e;rr.createCoreContext=u$e;rr.createCoreError=Df;rr.createMessageContext=gee;rr.datetime=x$e;rr.fallbackWithLocaleChain=q3e;rr.fallbackWithSimple=mee;rr.getAdditionalMeta=i$e;rr.getDevToolsHook=W3e;rr.getFallbackContext=l$e;rr.getWarnMessage=X3e;rr.handleMissing=n_;rr.initI18nDevTools=G3e;rr.isMessageFunction=Rc;rr.isTranslateFallbackWarn=c$e;rr.isTranslateMissingWarn=d$e;rr.number=C$e;rr.parse=hee;rr.parseDateTimeArgs=Ree;rr.parseNumberArgs=Mee;rr.parseTranslateArgs=Eee;rr.registerLocaleFallbacker=o$e;rr.registerMessageCompiler=r$e;rr.registerMessageResolver=n$e;rr.resolveValue=O3e;rr.resolveWithKeyValue=vee;rr.setAdditionalMeta=a$e;rr.setDevToolsHook=V3e;rr.setFallbackContext=s$e;rr.translate=p$e;rr.translateDevTools=K3e;rr.updateFallbackLocale=f$e;XJ.exports=rr;var _$e=XJ.exports;const B$e=sZ(jhe);/*!
  6015. * vue-i18n v9.2.2
  6016. * (c) 2022 kazuya kawaguchi
  6017. * Released under the MIT License.
  6018. */Object.defineProperty(Cl,"__esModule",{value:!0});var Ie=OL,er=_$e,mr=B$e;const Pee="9.2.2";let Fee=er.CoreWarnCodes.__EXTEND_POINT__;const oh=()=>++Fee,yo={FALLBACK_TO_ROOT:Fee,NOT_SUPPORTED_PRESERVE:oh(),NOT_SUPPORTED_FORMATTER:oh(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:oh(),NOT_SUPPORTED_GET_CHOICE_INDEX:oh(),COMPONENT_NAME_LEGACY_COMPATIBLE:oh(),NOT_FOUND_PARENT_SCOPE:oh()},T$e={[yo.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[yo.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[yo.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[yo.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[yo.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[yo.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[yo.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function us(e,...t){return Ie.format(T$e[e],...t)}let kee=er.CompileErrorCodes.__EXTEND_POINT__;const Aa=()=>++kee,Mr={UNEXPECTED_RETURN_TYPE:kee,INVALID_ARGUMENT:Aa(),MUST_BE_CALL_SETUP_TOP:Aa(),NOT_INSLALLED:Aa(),NOT_AVAILABLE_IN_LEGACY_MODE:Aa(),REQUIRED_VALUE:Aa(),INVALID_VALUE:Aa(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Aa(),NOT_INSLALLED_WITH_PROVIDE:Aa(),UNEXPECTED_ERROR:Aa(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Aa(),BRIDGE_SUPPORT_VUE_2_ONLY:Aa(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Aa(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Aa(),__EXTEND_POINT__:Aa()};function no(e,...t){return er.createCompileError(e,null,{messages:E$e,args:t})}const E$e={[Mr.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Mr.INVALID_ARGUMENT]:"Invalid argument",[Mr.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Mr.NOT_INSLALLED]:"Need to install with `app.use` function",[Mr.UNEXPECTED_ERROR]:"Unexpected error",[Mr.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Mr.REQUIRED_VALUE]:"Required in value: {0}",[Mr.INVALID_VALUE]:"Invalid value",[Mr.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Mr.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Mr.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Mr.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Mr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Mr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},sM=Ie.makeSymbol("__transrateVNode"),lM=Ie.makeSymbol("__datetimeParts"),uM=Ie.makeSymbol("__numberParts"),cM=Ie.makeSymbol("__enableEmitter"),dM=Ie.makeSymbol("__disableEmitter"),Lee=Ie.makeSymbol("__setPluralRules");Ie.makeSymbol("__intlifyMeta");const Oee=Ie.makeSymbol("__injectWithOption"),I$e="__VUE_I18N_BRIDGE__";function fM(e){if(!Ie.isObject(e))return e;for(const t in e)if(Ie.hasOwn(e,t))if(!t.includes("."))Ie.isObject(e[t])&&fM(e[t]);else{const r=t.split("."),n=r.length-1;let o=e;for(let a=0;a<n;a++)r[a]in o||(o[r[a]]={}),o=o[r[a]];o[r[n]]=e[t],delete e[t],Ie.isObject(o[r[n]])&&fM(o[r[n]])}return e}function o_(e,t){const{messages:r,__i18n:n,messageResolver:o,flatJson:a}=t,i=Ie.isPlainObject(r)?r:Ie.isArray(n)?{}:{[e]:{}};if(Ie.isArray(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(i[l]=i[l]||{},B0(u,i[l])):B0(u,i)}else Ie.isString(s)&&B0(JSON.parse(s),i)}),o==null&&a)for(const s in i)Ie.hasOwn(i,s)&&fM(i[s]);return i}const qb=e=>!Ie.isObject(e)||Ie.isArray(e);function B0(e,t){if(qb(e)||qb(t))throw no(Mr.INVALID_VALUE);for(const r in e)Ie.hasOwn(e,r)&&(qb(e[r])||qb(t[r])?t[r]=e[r]:B0(e[r],t[r]))}function $ee(e){return e.type}function Uee(e,t,r){let n=Ie.isObject(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=o_(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(Ie.isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Ie.isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function $N(e){return mr.createVNode(mr.Text,null,e,0)}const UN="__INTLIFY_META__";let NN=0;function HN(e){return(t,r,n,o)=>e(r,n,mr.getCurrentInstance()||void 0,o)}const R$e=()=>{const e=mr.getCurrentInstance();let t=null;return e&&(t=$ee(e)[UN])?{[UN]:t}:null};function YL(e={},t){const{__root:r}=e,n=r===void 0;let o=Ie.isBoolean(e.inheritLocale)?e.inheritLocale:!0;const a=mr.ref(r&&o?r.locale.value:Ie.isString(e.locale)?e.locale:er.DEFAULT_LOCALE),i=mr.ref(r&&o?r.fallbackLocale.value:Ie.isString(e.fallbackLocale)||Ie.isArray(e.fallbackLocale)||Ie.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),s=mr.ref(o_(a.value,e)),l=mr.ref(Ie.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),u=mr.ref(Ie.isPlainObject(e.numberFormats)?e.numberFormats:{[a.value]:{}});let c=r?r.missingWarn:Ie.isBoolean(e.missingWarn)||Ie.isRegExp(e.missingWarn)?e.missingWarn:!0,d=r?r.fallbackWarn:Ie.isBoolean(e.fallbackWarn)||Ie.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,f=r?r.fallbackRoot:Ie.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,h=Ie.isFunction(e.missing)?e.missing:null,v=Ie.isFunction(e.missing)?HN(e.missing):null,p=Ie.isFunction(e.postTranslation)?e.postTranslation:null,g=r?r.warnHtmlMessage:Ie.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const y=r?r.modifiers:Ie.isPlainObject(e.modifiers)?e.modifiers:{};let b=e.pluralRules||r&&r.pluralRules,x;x=(()=>{n&&er.setFallbackContext(null);const X={version:Pee,locale:a.value,fallbackLocale:i.value,messages:s.value,modifiers:y,pluralRules:b,missing:v===null?void 0:v,missingWarn:c,fallbackWarn:d,fallbackFormat:A,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:g,escapeParameter:m,messageResolver:e.messageResolver,__meta:{framework:"vue"}};X.datetimeFormats=l.value,X.numberFormats=u.value,X.__datetimeFormatters=Ie.isPlainObject(x)?x.__datetimeFormatters:void 0,X.__numberFormatters=Ie.isPlainObject(x)?x.__numberFormatters:void 0,X.__v_emitter=Ie.isPlainObject(x)?x.__v_emitter:void 0;const ie=er.createCoreContext(X);return n&&er.setFallbackContext(ie),ie})(),er.updateFallbackLocale(x,a.value,i.value);function C(){return[a.value,i.value,s.value,l.value,u.value]}const _=mr.computed({get:()=>a.value,set:X=>{a.value=X,x.locale=a.value}}),B=mr.computed({get:()=>i.value,set:X=>{i.value=X,x.fallbackLocale=i.value,er.updateFallbackLocale(x,a.value,X)}}),T=mr.computed(()=>s.value),E=mr.computed(()=>l.value),I=mr.computed(()=>u.value);function R(){return Ie.isFunction(p)?p:null}function D(X){p=X,x.postTranslation=X}function F(){return h}function M(X){X!==null&&(v=HN(X)),h=X,x.missing=v}function $(X,ie){return X!=="translate"||!ie.resolvedMessage}const O=(X,ie,fe,ye,Fe,Ne)=>{C();let rt;try{er.setAdditionalMeta(R$e()),n||(x.fallbackContext=r?er.getFallbackContext():void 0),rt=X(x)}finally{er.setAdditionalMeta(null),n||(x.fallbackContext=void 0)}if(Ie.isNumber(rt)&&rt===er.NOT_REOSLVED){const[lt,mt]=ie();if(r&&Ie.isString(lt)&&$(fe,mt)){f&&(er.isTranslateFallbackWarn(d,lt)||er.isTranslateMissingWarn(c,lt))&&Ie.warn(us(yo.FALLBACK_TO_ROOT,{key:lt,type:fe}));{const{__v_emitter:Ge}=x;Ge&&f&&Ge.emit("fallback",{type:fe,key:lt,to:"global",groupId:`${fe}:${lt}`})}}return r&&f?ye(r):Fe(lt)}else{if(Ne(rt))return rt;throw no(Mr.UNEXPECTED_RETURN_TYPE)}};function Q(...X){return O(ie=>Reflect.apply(er.translate,null,[ie,...X]),()=>er.parseTranslateArgs(...X),"translate",ie=>Reflect.apply(ie.t,ie,[...X]),ie=>ie,ie=>Ie.isString(ie))}function V(...X){const[ie,fe,ye]=X;if(ye&&!Ie.isObject(ye))throw no(Mr.INVALID_ARGUMENT);return Q(ie,fe,Ie.assign({resolvedMessage:!0},ye||{}))}function W(...X){return O(ie=>Reflect.apply(er.datetime,null,[ie,...X]),()=>er.parseDateTimeArgs(...X),"datetime format",ie=>Reflect.apply(ie.d,ie,[...X]),()=>er.MISSING_RESOLVE_VALUE,ie=>Ie.isString(ie))}function Z(...X){return O(ie=>Reflect.apply(er.number,null,[ie,...X]),()=>er.parseNumberArgs(...X),"number format",ie=>Reflect.apply(ie.n,ie,[...X]),()=>er.MISSING_RESOLVE_VALUE,ie=>Ie.isString(ie))}function te(X){return X.map(ie=>Ie.isString(ie)||Ie.isNumber(ie)||Ie.isBoolean(ie)?$N(String(ie)):ie)}const re={normalize:te,interpolate:X=>X,type:"vnode"};function le(...X){return O(ie=>{let fe;const ye=ie;try{ye.processor=re,fe=Reflect.apply(er.translate,null,[ye,...X])}finally{ye.processor=null}return fe},()=>er.parseTranslateArgs(...X),"translate",ie=>ie[sM](...X),ie=>[$N(ie)],ie=>Ie.isArray(ie))}function se(...X){return O(ie=>Reflect.apply(er.number,null,[ie,...X]),()=>er.parseNumberArgs(...X),"number format",ie=>ie[uM](...X),()=>[],ie=>Ie.isString(ie)||Ie.isArray(ie))}function ce(...X){return O(ie=>Reflect.apply(er.datetime,null,[ie,...X]),()=>er.parseDateTimeArgs(...X),"datetime format",ie=>ie[lM](...X),()=>[],ie=>Ie.isString(ie)||Ie.isArray(ie))}function be(X){b=X,x.pluralRules=b}function de(X,ie){const fe=Ie.isString(ie)?ie:a.value,ye=U(fe);return x.messageResolver(ye,X)!==null}function pe(X){let ie=null;const fe=er.fallbackWithLocaleChain(x,i.value,a.value);for(let ye=0;ye<fe.length;ye++){const Fe=s.value[fe[ye]]||{},Ne=x.messageResolver(Fe,X);if(Ne!=null){ie=Ne;break}}return ie}function K(X){const ie=pe(X);return ie!=null?ie:r?r.tm(X)||{}:{}}function U(X){return s.value[X]||{}}function k(X,ie){s.value[X]=ie,x.messages=s.value}function J(X,ie){s.value[X]=s.value[X]||{},B0(ie,s.value[X]),x.messages=s.value}function ee(X){return l.value[X]||{}}function H(X,ie){l.value[X]=ie,x.datetimeFormats=l.value,er.clearDateTimeFormat(x,X,ie)}function Y(X,ie){l.value[X]=Ie.assign(l.value[X]||{},ie),x.datetimeFormats=l.value,er.clearDateTimeFormat(x,X,ie)}function oe(X){return u.value[X]||{}}function he(X,ie){u.value[X]=ie,x.numberFormats=u.value,er.clearNumberFormat(x,X,ie)}function ne(X,ie){u.value[X]=Ie.assign(u.value[X]||{},ie),x.numberFormats=u.value,er.clearNumberFormat(x,X,ie)}NN++,r&&Ie.inBrowser&&(mr.watch(r.locale,X=>{o&&(a.value=X,x.locale=X,er.updateFallbackLocale(x,a.value,i.value))}),mr.watch(r.fallbackLocale,X=>{o&&(i.value=X,x.fallbackLocale=X,er.updateFallbackLocale(x,a.value,i.value))}));const Ae={id:NN,locale:_,fallbackLocale:B,get inheritLocale(){return o},set inheritLocale(X){o=X,X&&r&&(a.value=r.locale.value,i.value=r.fallbackLocale.value,er.updateFallbackLocale(x,a.value,i.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:T,get modifiers(){return y},get pluralRules(){return b||{}},get isGlobal(){return n},get missingWarn(){return c},set missingWarn(X){c=X,x.missingWarn=c},get fallbackWarn(){return d},set fallbackWarn(X){d=X,x.fallbackWarn=d},get fallbackRoot(){return f},set fallbackRoot(X){f=X},get fallbackFormat(){return A},set fallbackFormat(X){A=X,x.fallbackFormat=A},get warnHtmlMessage(){return g},set warnHtmlMessage(X){g=X,x.warnHtmlMessage=X},get escapeParameter(){return m},set escapeParameter(X){m=X,x.escapeParameter=X},t:Q,getLocaleMessage:U,setLocaleMessage:k,mergeLocaleMessage:J,getPostTranslationHandler:R,setPostTranslationHandler:D,getMissingHandler:F,setMissingHandler:M,[Lee]:be};return Ae.datetimeFormats=E,Ae.numberFormats=I,Ae.rt=V,Ae.te=de,Ae.tm=K,Ae.d=W,Ae.n=Z,Ae.getDateTimeFormat=ee,Ae.setDateTimeFormat=H,Ae.mergeDateTimeFormat=Y,Ae.getNumberFormat=oe,Ae.setNumberFormat=he,Ae.mergeNumberFormat=ne,Ae[Oee]=e.__injectWithOption,Ae[sM]=le,Ae[lM]=ce,Ae[uM]=se,Ae[cM]=X=>{x.__v_emitter=X},Ae[dM]=()=>{x.__v_emitter=void 0},Ae}function D$e(e){const t=Ie.isString(e.locale)?e.locale:er.DEFAULT_LOCALE,r=Ie.isString(e.fallbackLocale)||Ie.isArray(e.fallbackLocale)||Ie.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Ie.isFunction(e.missing)?e.missing:void 0,o=Ie.isBoolean(e.silentTranslationWarn)||Ie.isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=Ie.isBoolean(e.silentFallbackWarn)||Ie.isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Ie.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Ie.isPlainObject(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Ie.isFunction(e.postTranslation)?e.postTranslation:void 0,d=Ie.isString(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,A=Ie.isBoolean(e.sync)?e.sync:!0;e.formatter&&Ie.warn(us(yo.NOT_SUPPORTED_FORMATTER)),e.preserveDirectiveContent&&Ie.warn(us(yo.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let h=e.messages;if(Ie.isPlainObject(e.sharedMessages)){const x=e.sharedMessages;h=Object.keys(x).reduce((C,_)=>{const B=C[_]||(C[_]={});return Ie.assign(B,x[_]),C},h||{})}const{__i18n:v,__root:p,__injectWithOption:g}=e,m=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:r,messages:h,flatJson:b,datetimeFormats:m,numberFormats:y,missing:n,missingWarn:o,fallbackWarn:a,fallbackRoot:i,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:A,__i18n:v,__root:p,__injectWithOption:g}}function AM(e={},t){{const r=YL(D$e(e)),n={id:r.id,get locale(){return r.locale.value},set locale(o){r.locale.value=o},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(o){r.fallbackLocale.value=o},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return Ie.warn(us(yo.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){Ie.warn(us(yo.NOT_SUPPORTED_FORMATTER))},get missing(){return r.getMissingHandler()},set missing(o){r.setMissingHandler(o)},get silentTranslationWarn(){return Ie.isBoolean(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(o){r.missingWarn=Ie.isBoolean(o)?!o:o},get silentFallbackWarn(){return Ie.isBoolean(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(o){r.fallbackWarn=Ie.isBoolean(o)?!o:o},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(o){r.fallbackFormat=o},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(o){r.setPostTranslationHandler(o)},get sync(){return r.inheritLocale},set sync(o){r.inheritLocale=o},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){r.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(o){r.escapeParameter=o},get preserveDirectiveContent(){return Ie.warn(us(yo.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){Ie.warn(us(yo.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...o){const[a,i,s]=o,l={};let u=null,c=null;if(!Ie.isString(a))throw no(Mr.INVALID_ARGUMENT);const d=a;return Ie.isString(i)?l.locale=i:Ie.isArray(i)?u=i:Ie.isPlainObject(i)&&(c=i),Ie.isArray(s)?u=s:Ie.isPlainObject(s)&&(c=s),Reflect.apply(r.t,r,[d,u||c||{},l])},rt(...o){return Reflect.apply(r.rt,r,[...o])},tc(...o){const[a,i,s]=o,l={plural:1};let u=null,c=null;if(!Ie.isString(a))throw no(Mr.INVALID_ARGUMENT);const d=a;return Ie.isString(i)?l.locale=i:Ie.isNumber(i)?l.plural=i:Ie.isArray(i)?u=i:Ie.isPlainObject(i)&&(c=i),Ie.isString(s)?l.locale=s:Ie.isArray(s)?u=s:Ie.isPlainObject(s)&&(c=s),Reflect.apply(r.t,r,[d,u||c||{},l])},te(o,a){return r.te(o,a)},tm(o){return r.tm(o)},getLocaleMessage(o){return r.getLocaleMessage(o)},setLocaleMessage(o,a){r.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){r.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(r.d,r,[...o])},getDateTimeFormat(o){return r.getDateTimeFormat(o)},setDateTimeFormat(o,a){r.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){r.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(r.n,r,[...o])},getNumberFormat(o){return r.getNumberFormat(o)},setNumberFormat(o,a){r.setNumberFormat(o,a)},mergeNumberFormat(o,a){r.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return Ie.warn(us(yo.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(o){const{componentInstanceCreatedListener:a}=e;a&&a(o,n)}};return n.__enableEmitter=o=>{const a=r;a[cM]&&a[cM](o)},n.__disableEmitter=()=>{const o=r;o[dM]&&o[dM]()},n}}const XL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function M$e({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>n=[...n,...Ie.isArray(o.children)?o.children:[o]],[]):t.reduce((r,n)=>{const o=e[n];return o&&(r[n]=o()),r},{})}function Nee(e){return mr.Fragment}const Ux={name:"i18n-t",props:Ie.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie.isNumber(e)||!isNaN(e)}},XL),setup(e,t){const{slots:r,attrs:n}=t,o=e.i18n||a_({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(r).filter(d=>d!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Ie.isString(e.plural)?+e.plural:e.plural);const s=M$e(t,a),l=o[sM](e.keypath,s,i),u=Ie.assign({},n),c=Ie.isString(e.tag)||Ie.isObject(e.tag)?e.tag:Nee();return mr.h(c,u,l)}}};function P$e(e){return Ie.isArray(e)&&!Ie.isString(e[0])}function Hee(e,t,r,n){const{slots:o,attrs:a}=t;return()=>{const i={part:!0};let s={};e.locale&&(i.locale=e.locale),Ie.isString(e.format)?i.key=e.format:Ie.isObject(e.format)&&(Ie.isString(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((f,A)=>r.includes(A)?Ie.assign({},f,{[A]:e.format[A]}):f,{}));const l=n(e.value,i,s);let u=[i.key];Ie.isArray(l)?u=l.map((f,A)=>{const h=o[f.type],v=h?h({[f.type]:f.value,index:A,parts:l}):[f.value];return P$e(v)&&(v[0].key=`${f.type}-${A}`),v}):Ie.isString(l)&&(u=[l]);const c=Ie.assign({},a),d=Ie.isString(e.tag)||Ie.isObject(e.tag)?e.tag:Nee();return mr.h(d,c,u)}}const hM={name:"i18n-n",props:Ie.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},XL),setup(e,t){const r=e.i18n||a_({useScope:"parent",__useComponent:!0});return Hee(e,t,er.NUMBER_FORMAT_OPTIONS_KEYS,(...n)=>r[uM](...n))}},vM={name:"i18n-d",props:Ie.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},XL),setup(e,t){const r=e.i18n||a_({useScope:"parent",__useComponent:!0});return Hee(e,t,er.DATETIME_FORMAT_OPTIONS_KEYS,(...n)=>r[lM](...n))}};function F$e(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function zee(e){const t=i=>{const{instance:s,modifiers:l,value:u}=i;if(!s||!s.$)throw no(Mr.UNEXPECTED_ERROR);const c=F$e(e,s.$);l.preserve&&Ie.warn(us(yo.NOT_SUPPORTED_PRESERVE));const d=zN(u);return[Reflect.apply(c.t,c,[...QN(d)]),c]};return{created:(i,s)=>{const[l,u]=t(s);Ie.inBrowser&&e.global===u&&(i.__i18nWatcher=mr.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=u,i.textContent=l},unmounted:i=>{Ie.inBrowser&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const l=i.__composer,u=zN(s);i.textContent=Reflect.apply(l.t,l,[...QN(u)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function zN(e){if(Ie.isString(e))return{path:e};if(Ie.isPlainObject(e)){if(!("path"in e))throw no(Mr.REQUIRED_VALUE,"path");return e}else throw no(Mr.INVALID_VALUE)}function QN(e){const{path:t,locale:r,args:n,choice:o,plural:a}=e,i={},s=n||{};return Ie.isString(r)&&(i.locale=r),Ie.isNumber(o)&&(i.plural=o),Ie.isNumber(a)&&(i.plural=a),[t,s,i]}function k$e(e,t,...r){const n=Ie.isPlainObject(r[0])?r[0]:{},o=!!n.useI18nComponentName,a=Ie.isBoolean(n.globalInstall)?n.globalInstall:!0;a&&o&&Ie.warn(us(yo.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Ux.name})),a&&(e.component(o?"i18n":Ux.name,Ux),e.component(hM.name,hM),e.component(vM.name,vM)),e.directive("t",zee(t))}function L$e(e,t,r){return{beforeCreate(){const n=mr.getCurrentInstance();if(!n)throw no(Mr.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const a=o.i18n;o.__i18n&&(a.__i18n=o.__i18n),a.__root=t,this===this.$root?this.$i18n=VN(e,a):(a.__injectWithOption=!0,this.$i18n=AM(a))}else o.__i18n?this===this.$root?this.$i18n=VN(e,o):this.$i18n=AM({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;o.__i18nGlobal&&Uee(t,o,o),e.__onComponentInstanceCreated(this.$i18n),r.__setInstance(n,this.$i18n),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,i)=>this.$i18n.te(a,i),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a)},mounted(){},unmounted(){const n=mr.getCurrentInstance();if(!n)throw no(Mr.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(n),delete this.$i18n}}}function VN(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Lee](t.pluralizationRules||e.pluralizationRules);const r=o_(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const Qee=Ie.makeSymbol("global-vue-i18n");function O$e(e={},t){const r=Ie.isBoolean(e.legacy)?e.legacy:!0,n=Ie.isBoolean(e.globalInjection)?e.globalInjection:!0,o=r?!!e.allowComposition:!0,a=new Map,[i,s]=U$e(e,r),l=Ie.makeSymbol("vue-i18n");function u(f){return a.get(f)||null}function c(f,A){a.set(f,A)}function d(f){a.delete(f)}{let A;const f={get mode(){return r?"legacy":"composition"},get allowComposition(){return o},install(h,...v){return ku(this,null,function*(){h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),!r&&n&&j$e(h,f.global),k$e(h,f,...v),r&&h.mixin(L$e(s,s.__composer,f));const p=h.unmount;h.unmount=()=>{f.dispose(),p()}})},get global(){return s},dispose(){i.stop()},__instances:a,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function a_(e={}){const t=mr.getCurrentInstance();if(t==null)throw no(Mr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Mr.NOT_INSLALLED);const r=N$e(t),n=z$e(r),o=$ee(t),a=H$e(e,o);if(r.mode==="legacy"&&!e.__useComponent){if(!r.allowComposition)throw no(Mr.NOT_AVAILABLE_IN_LEGACY_MODE);return W$e(t,a,n,e)}if(a==="global")return Uee(n,e,o),n;if(a==="parent"){let l=Q$e(r,t,e.__useComponent);return l==null&&(Ie.warn(us(yo.NOT_FOUND_PARENT_SCOPE)),l=n),l}const i=r;let s=i.__getInstance(t);if(s==null){const l=Ie.assign({},e);"__i18n"in o&&(l.__i18n=o.__i18n),n&&(l.__root=n),s=YL(l),V$e(i,t),i.__setInstance(t,s)}return s}const $$e=e=>{if(!(I$e in e))throw no(Mr.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function U$e(e,t,r){const n=mr.effectScope();{const o=t?n.run(()=>AM(e)):n.run(()=>YL(e));if(o==null)throw no(Mr.UNEXPECTED_ERROR);return[n,o]}}function N$e(e){{const t=mr.inject(e.isCE?Qee:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Mr.NOT_INSLALLED_WITH_PROVIDE:Mr.UNEXPECTED_ERROR);return t}}function H$e(e,t){return Ie.isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function z$e(e){return e.mode==="composition"?e.global:e.global.__composer}function Q$e(e,t,r=!1){let n=null;const o=t.root;let a=t.parent;for(;a!=null;){const i=e;if(e.mode==="composition")n=i.__getInstance(a);else{const s=i.__getInstance(a);s!=null&&(n=s.__composer,r&&n&&!n[Oee]&&(n=null))}if(n!=null||o===a)break;a=a.parent}return n}function V$e(e,t,r){mr.onMounted(()=>{},t),mr.onUnmounted(()=>{e.__deleteInstance(t)},t)}function W$e(e,t,r,n={}){const o=t==="local",a=mr.shallowRef(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw no(Mr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Ie.isBoolean(n.inheritLocale)?n.inheritLocale:!0,s=mr.ref(o&&i?r.locale.value:Ie.isString(n.locale)?n.locale:er.DEFAULT_LOCALE),l=mr.ref(o&&i?r.fallbackLocale.value:Ie.isString(n.fallbackLocale)||Ie.isArray(n.fallbackLocale)||Ie.isPlainObject(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),u=mr.ref(o_(s.value,n)),c=mr.ref(Ie.isPlainObject(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),d=mr.ref(Ie.isPlainObject(n.numberFormats)?n.numberFormats:{[s.value]:{}}),f=o?r.missingWarn:Ie.isBoolean(n.missingWarn)||Ie.isRegExp(n.missingWarn)?n.missingWarn:!0,A=o?r.fallbackWarn:Ie.isBoolean(n.fallbackWarn)||Ie.isRegExp(n.fallbackWarn)?n.fallbackWarn:!0,h=o?r.fallbackRoot:Ie.isBoolean(n.fallbackRoot)?n.fallbackRoot:!0,v=!!n.fallbackFormat,p=Ie.isFunction(n.missing)?n.missing:null,g=Ie.isFunction(n.postTranslation)?n.postTranslation:null,m=o?r.warnHtmlMessage:Ie.isBoolean(n.warnHtmlMessage)?n.warnHtmlMessage:!0,y=!!n.escapeParameter,b=o?r.modifiers:Ie.isPlainObject(n.modifiers)?n.modifiers:{},x=n.pluralRules||o&&r.pluralRules;function w(){return[s.value,l.value,u.value,c.value,d.value]}const C=mr.computed({get:()=>a.value?a.value.locale.value:s.value,set:k=>{a.value&&(a.value.locale.value=k),s.value=k}}),_=mr.computed({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:k=>{a.value&&(a.value.fallbackLocale.value=k),l.value=k}}),B=mr.computed(()=>a.value?a.value.messages.value:u.value),T=mr.computed(()=>c.value),E=mr.computed(()=>d.value);function I(){return a.value?a.value.getPostTranslationHandler():g}function R(k){a.value&&a.value.setPostTranslationHandler(k)}function D(){return a.value?a.value.getMissingHandler():p}function F(k){a.value&&a.value.setMissingHandler(k)}function M(k){return w(),k()}function $(...k){return a.value?M(()=>Reflect.apply(a.value.t,null,[...k])):M(()=>"")}function O(...k){return a.value?Reflect.apply(a.value.rt,null,[...k]):""}function Q(...k){return a.value?M(()=>Reflect.apply(a.value.d,null,[...k])):M(()=>"")}function V(...k){return a.value?M(()=>Reflect.apply(a.value.n,null,[...k])):M(()=>"")}function W(k){return a.value?a.value.tm(k):{}}function Z(k,J){return a.value?a.value.te(k,J):!1}function te(k){return a.value?a.value.getLocaleMessage(k):{}}function ae(k,J){a.value&&(a.value.setLocaleMessage(k,J),u.value[k]=J)}function re(k,J){a.value&&a.value.mergeLocaleMessage(k,J)}function le(k){return a.value?a.value.getDateTimeFormat(k):{}}function se(k,J){a.value&&(a.value.setDateTimeFormat(k,J),c.value[k]=J)}function ce(k,J){a.value&&a.value.mergeDateTimeFormat(k,J)}function be(k){return a.value?a.value.getNumberFormat(k):{}}function de(k,J){a.value&&(a.value.setNumberFormat(k,J),d.value[k]=J)}function pe(k,J){a.value&&a.value.mergeNumberFormat(k,J)}const K={get id(){return a.value?a.value.id:-1},locale:C,fallbackLocale:_,messages:B,datetimeFormats:T,numberFormats:E,get inheritLocale(){return a.value?a.value.inheritLocale:i},set inheritLocale(k){a.value&&(a.value.inheritLocale=k)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(u.value)},get modifiers(){return a.value?a.value.modifiers:b},get pluralRules(){return a.value?a.value.pluralRules:x},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:f},set missingWarn(k){a.value&&(a.value.missingWarn=k)},get fallbackWarn(){return a.value?a.value.fallbackWarn:A},set fallbackWarn(k){a.value&&(a.value.missingWarn=k)},get fallbackRoot(){return a.value?a.value.fallbackRoot:h},set fallbackRoot(k){a.value&&(a.value.fallbackRoot=k)},get fallbackFormat(){return a.value?a.value.fallbackFormat:v},set fallbackFormat(k){a.value&&(a.value.fallbackFormat=k)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:m},set warnHtmlMessage(k){a.value&&(a.value.warnHtmlMessage=k)},get escapeParameter(){return a.value?a.value.escapeParameter:y},set escapeParameter(k){a.value&&(a.value.escapeParameter=k)},t:$,getPostTranslationHandler:I,setPostTranslationHandler:R,getMissingHandler:D,setMissingHandler:F,rt:O,d:Q,n:V,tm:W,te:Z,getLocaleMessage:te,setLocaleMessage:ae,mergeLocaleMessage:re,getDateTimeFormat:le,setDateTimeFormat:se,mergeDateTimeFormat:ce,getNumberFormat:be,setNumberFormat:de,mergeNumberFormat:pe};function U(k){k.locale.value=s.value,k.fallbackLocale.value=l.value,Object.keys(u.value).forEach(J=>{k.mergeLocaleMessage(J,u.value[J])}),Object.keys(c.value).forEach(J=>{k.mergeDateTimeFormat(J,c.value[J])}),Object.keys(d.value).forEach(J=>{k.mergeNumberFormat(J,d.value[J])}),k.escapeParameter=y,k.fallbackFormat=v,k.fallbackRoot=h,k.fallbackWarn=A,k.missingWarn=f,k.warnHtmlMessage=m}return mr.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw no(Mr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const k=a.value=e.proxy.$i18n.__composer;t==="global"?(s.value=k.locale.value,l.value=k.fallbackLocale.value,u.value=k.messages.value,c.value=k.datetimeFormats.value,d.value=k.numberFormats.value):o&&U(k)}),K}const G$e=["locale","fallbackLocale","availableLocales"],K$e=["t","rt","d","n","tm"];function j$e(e,t){const r=Object.create(null);G$e.forEach(n=>{const o=Object.getOwnPropertyDescriptor(t,n);if(!o)throw no(Mr.UNEXPECTED_ERROR);const a=mr.isRef(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(r,n,a)}),e.config.globalProperties.$i18n=r,K$e.forEach(n=>{const o=Object.getOwnPropertyDescriptor(t,n);if(!o||!o.value)throw no(Mr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,o)})}er.registerMessageCompiler(er.compileToFunction);er.registerMessageResolver(er.resolveValue);er.registerLocaleFallbacker(er.fallbackWithLocaleChain);{const e=Ie.getGlobalThis();e.__INTLIFY__=!0,er.setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}Cl.DatetimeFormat=vM;Cl.I18nInjectionKey=Qee;Cl.NumberFormat=hM;Cl.Translation=Ux;Cl.VERSION=Pee;Cl.castToVueI18n=$$e;var Y$e=Cl.createI18n=O$e,X$e=Cl.useI18n=a_;Cl.vTDirective=zee;const q$e=ge({__name:"index",setup(e){const{t}=X$e();return window.$t=t,(r,n)=>null}});var Z$e=!1;/*!
  6019. * pinia v2.0.14
  6020. * (c) 2022 Eduardo San Martin Morote
  6021. * @license MIT
  6022. */let Vee;const i_=e=>Vee=e,Wee=Symbol();function pM(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var T0;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(T0||(T0={}));function J$e(){const e=tk(!0),t=e.run(()=>q({}));let r=[],n=[];const o=uu({install(a){i_(o),o._a=a,a.provide(Wee,o),a.config.globalProperties.$pinia=o,n.forEach(i=>r.push(i)),n=[]},use(a){return!this._a&&!Z$e?n.push(a):r.push(a),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const Gee=()=>{};function WN(e,t,r,n=Gee){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),n())};return!r&&Co()&&SA(o),o}function ah(e,...t){e.slice().forEach(r=>{r(...t)})}function gM(e,t){for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];pM(o)&&pM(n)&&e.hasOwnProperty(r)&&!En(n)&&!Jl(n)?e[r]=gM(o,n):e[r]=n}return e}const eUe=Symbol();function tUe(e){return!pM(e)||!e.hasOwnProperty(eUe)}const{assign:Hl}=Object;function rUe(e){return!!(En(e)&&e.effect)}function nUe(e,t,r,n){const{state:o,actions:a,getters:i}=t,s=r.state.value[e];let l;function u(){s||(r.state.value[e]=o?o():{});const c=lk(r.state.value[e]);return Hl(c,a,Object.keys(i||{}).reduce((d,f)=>(d[f]=uu(L(()=>{i_(r);const A=r._s.get(e);return i[f].call(A,A)})),d),{}))}return l=Kee(e,u,t,r,n,!0),l.$reset=function(){const d=o?o():{};this.$patch(f=>{Hl(f,d)})},l}function Kee(e,t,r={},n,o,a){let i;const s=Hl({actions:{}},r),l={deep:!0};let u,c,d=uu([]),f=uu([]),A;const h=n.state.value[e];!a&&!h&&(n.state.value[e]={}),q({});let v;function p(C){let _;u=c=!1,typeof C=="function"?(C(n.state.value[e]),_={type:T0.patchFunction,storeId:e,events:A}):(gM(n.state.value[e],C),_={type:T0.patchObject,payload:C,storeId:e,events:A});const B=v=Symbol();dr().then(()=>{v===B&&(u=!0)}),c=!0,ah(d,_,n.state.value[e])}const g=Gee;function m(){i.stop(),d=[],f=[],n._s.delete(e)}function y(C,_){return function(){i_(n);const B=Array.from(arguments),T=[],E=[];function I(F){T.push(F)}function R(F){E.push(F)}ah(f,{args:B,name:C,store:x,after:I,onError:R});let D;try{D=_.apply(this&&this.$id===e?this:x,B)}catch(F){throw ah(E,F),F}return D instanceof Promise?D.then(F=>(ah(T,F),F)).catch(F=>(ah(E,F),Promise.reject(F))):(ah(T,D),D)}}const b={_p:n,$id:e,$onAction:WN.bind(null,f),$patch:p,$reset:g,$subscribe(C,_={}){const B=WN(d,C,_.detached,()=>T()),T=i.run(()=>gt(()=>n.state.value[e],E=>{(_.flush==="sync"?c:u)&&C({storeId:e,type:T0.direct,events:A},E)},Hl({},l,_)));return B},$dispose:m},x=Ni(Hl({},b));n._s.set(e,x);const w=n._e.run(()=>(i=tk(),i.run(()=>t())));for(const C in w){const _=w[C];if(En(_)&&!rUe(_)||Jl(_))a||(h&&tUe(_)&&(En(_)?_.value=h[C]:gM(_,h[C])),n.state.value[e][C]=_);else if(typeof _=="function"){const B=y(C,_);w[C]=B,s.actions[C]=_}}return Hl(x,w),Hl(Rr(x),w),Object.defineProperty(x,"$state",{get:()=>n.state.value[e],set:C=>{p(_=>{Hl(_,C)})}}),n._p.forEach(C=>{Hl(x,i.run(()=>C({store:x,app:n._a,pinia:n,options:s})))}),h&&a&&r.hydrate&&r.hydrate(x.$state,h),u=!0,c=!0,x}function s_(e,t,r){let n,o;const a=typeof t=="function";typeof e=="string"?(n=e,o=a?r:t):(o=e,n=e.id);function i(s,l){const u=Co();return s=s||u&&Ke(Wee),s&&i_(s),s=Vee,s._s.has(n)||(a?Kee(n,t,o,s):nUe(n,o,s)),s._s.get(n)}return i.$id=n,i}var jg=(e=>(e.DARK="dark",e.LIGHT="light",e))(jg||{}),td=(e=>(e.ZH="ZH",e.EN="EN",e))(td||{}),jee=(e=>(e.FIT="fit",e.SCROLL_Y="scrollY",e.SCROLL_X="scrollX",e.FULL="full",e))(jee||{}),hv=(e=>(e.SYSTEM="sys",e.PROJECT="project",e))(hv||{}),Dc=(e=>(e[e.DATA_SUCCESS=0]="DATA_SUCCESS",e[e.SUCCESS=0]="SUCCESS",e[e.SERVER_ERROR=500]="SERVER_ERROR",e[e.SERVER_FORBIDDEN=403]="SERVER_FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.TOKEN_OVERDUE=401]="TOKEN_OVERDUE",e[e.TIMEOUT=6e4]="TIMEOUT",e))(Dc||{}),Yee=(e=>(e[e.STATIC=0]="STATIC",e[e.AJAX=1]="AJAX",e[e.Pond=2]="Pond",e))(Yee||{}),Xee=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.SQL=1]="SQL",e))(Xee||{}),qee=(e=>(e.TOKEN="Token",e.COOKIE="Cookie",e))(qee||{}),Ha=(e=>(e.GET="get",e.POST="post",e.PATCH="patch",e.PUT="put",e.DELETE="delete",e))(Ha||{}),Xh=(e=>(e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e))(Xh||{});const aRt={second:"秒",minute:"分",hour:"时",day:"天"};var Uh=(e=>(e.NONE="none",e.FORM_DATA="form-data",e.X_WWW_FORM_URLENCODED="x-www-form-urlencoded",e.JSON="json",e.XML="xml",e))(Uh||{});const iRt=["none","form-data","x-www-form-urlencoded","json","xml"];var oUe=(e=>(e.PARAMS="Params",e.BODY="Body",e.HEADER="Header",e))(oUe||{}),Gl=(e=>(e.JSON="application/json;charset=UTF-8",e.TEXT="text/plain;charset=UTF-8",e.XML="application/xml;charset=UTF-8",e.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",e.FORM_DATA="multipart/form-data;charset=UTF-8",e))(Gl||{});const mM=td.ZH,sRt="SagooDataView 低代码平台",lRt="分组",aUe={darkTheme:!0,appTheme:"#51d6a9",appThemeDetail:null},uRt={x:50,y:50,w:500,h:300,offsetX:0,offsetY:0},cRt="20",dRt="270",iUe=60,fRt=!1,sUe="4px",ARt=4e3,hRt=5,vRt=jee.FIT,pRt=30,gRt=30,mRt=Xh.SECOND,yRt=100,lUe=9999,bRt=lUe+10,GN=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],nu=(()=>{const e=GN[0],t={};for(const r of GN)if((r==null?void 0:r[1])in document){for(const[o,a]of r.entries())t[e[o]]=a;return t}return!1})(),KN={change:nu.fullscreenchange,error:nu.fullscreenerror};let $a={request(e=document.documentElement,t){return new Promise((r,n)=>{const o=()=>{$a.off("change",o),r()};$a.on("change",o);const a=e[nu.requestFullscreen](t);a instanceof Promise&&a.then(o).catch(n)})},exit(){return new Promise((e,t)=>{if(!$a.isFullscreen){e();return}const r=()=>{$a.off("change",r),e()};$a.on("change",r);const n=document[nu.exitFullscreen]();n instanceof Promise&&n.then(r).catch(t)})},toggle(e,t){return $a.isFullscreen?$a.exit():$a.request(e,t)},onchange(e){$a.on("change",e)},onerror(e){$a.on("error",e)},on(e,t){const r=KN[e];r&&document.addEventListener(r,t,!1)},off(e,t){const r=KN[e];r&&document.removeEventListener(r,t,!1)},raw:nu};Object.defineProperties($a,{isFullscreen:{get:()=>!!document[nu.fullscreenElement]},element:{enumerable:!0,get:()=>{var e;return(e=document[nu.fullscreenElement])!=null?e:void 0}},isEnabled:{enumerable:!0,get:()=>!!document[nu.fullscreenEnabled]}});nu||($a={isEnabled:!1});const Zb=$a;function uUe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ii=uUe;const cUe=ai(ii);var dUe=typeof cr=="object"&&cr&&cr.Object===Object&&cr,Zee=dUe,fUe=Zee,AUe=typeof self=="object"&&self&&self.Object===Object&&self,hUe=fUe||AUe||Function("return this")(),Bs=hUe,vUe=Bs,pUe=function(){return vUe.Date.now()},gUe=pUe,mUe=/\s/;function yUe(e){for(var t=e.length;t--&&mUe.test(e.charAt(t)););return t}var bUe=yUe,xUe=bUe,wUe=/^\s+/;function CUe(e){return e&&e.slice(0,xUe(e)+1).replace(wUe,"")}var SUe=CUe,_Ue=Bs,BUe=_Ue.Symbol,My=BUe,jN=My,Jee=Object.prototype,TUe=Jee.hasOwnProperty,EUe=Jee.toString,og=jN?jN.toStringTag:void 0;function IUe(e){var t=TUe.call(e,og),r=e[og];try{e[og]=void 0;var n=!0}catch(a){}var o=EUe.call(e);return n&&(t?e[og]=r:delete e[og]),o}var RUe=IUe,DUe=Object.prototype,MUe=DUe.toString;function PUe(e){return MUe.call(e)}var FUe=PUe,YN=My,kUe=RUe,LUe=FUe,OUe="[object Null]",$Ue="[object Undefined]",XN=YN?YN.toStringTag:void 0;function UUe(e){return e==null?e===void 0?$Ue:OUe:XN&&XN in Object(e)?kUe(e):LUe(e)}var kA=UUe;function NUe(e){return e!=null&&typeof e=="object"}var Iu=NUe,HUe=kA,zUe=Iu,QUe="[object Symbol]";function VUe(e){return typeof e=="symbol"||zUe(e)&&HUe(e)==QUe}var l_=VUe,WUe=SUe,qN=ii,GUe=l_,ZN=0/0,KUe=/^[-+]0x[0-9a-f]+$/i,jUe=/^0b[01]+$/i,YUe=/^0o[0-7]+$/i,XUe=parseInt;function qUe(e){if(typeof e=="number")return e;if(GUe(e))return ZN;if(qN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=WUe(e);var r=jUe.test(e);return r||YUe.test(e)?XUe(e.slice(2),r?2:8):KUe.test(e)?ZN:+e}var ete=qUe,ZUe=ii,z2=gUe,JN=ete,JUe="Expected a function",eNe=Math.max,tNe=Math.min;function rNe(e,t,r){var n,o,a,i,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(JUe);t=JN(t)||0,ZUe(r)&&(c=!!r.leading,d="maxWait"in r,a=d?eNe(JN(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function A(w){var C=n,_=o;return n=o=void 0,u=w,i=e.apply(_,C),i}function h(w){return u=w,s=setTimeout(g,t),c?A(w):i}function v(w){var C=w-l,_=w-u,B=t-C;return d?tNe(B,a-_):B}function p(w){var C=w-l,_=w-u;return l===void 0||C>=t||C<0||d&&_>=a}function g(){var w=z2();if(p(w))return m(w);s=setTimeout(g,v(w))}function m(w){return s=void 0,f&&n?A(w):(n=o=void 0,i)}function y(){s!==void 0&&clearTimeout(s),u=0,n=l=o=s=void 0}function b(){return s===void 0?i:m(z2())}function x(){var w=z2(),C=p(w);if(n=arguments,o=this,l=w,C){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),A(l)}return s===void 0&&(s=setTimeout(g,t)),i}return x.cancel=y,x.flush=b,x}var tte=rNe;const xRt=ai(tte);var nNe=tte,oNe=ii,aNe="Expected a function";function iNe(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(aNe);return oNe(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),nNe(e,t,{leading:n,maxWait:t,trailing:o})}var sNe=iNe;const lNe=ai(sNe),uNe="/plugin/screen/static/png/image-404.png";/*!
  6023. * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
  6024. * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
  6025. * Released under MIT License
  6026. *//*! *****************************************************************************
  6027. Copyright (c) Microsoft Corporation.
  6028. Permission to use, copy, modify, and/or distribute this software for any
  6029. purpose with or without fee is hereby granted.
  6030. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6031. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  6032. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  6033. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  6034. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  6035. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  6036. PERFORMANCE OF THIS SOFTWARE.
  6037. ***************************************************************************** */var yM=function(e,t){return yM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},yM(e,t)};function Ts(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yM(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bM=function(){return bM=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},bM.apply(this,arguments)};function ra(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(c){try{u(n.next(c))}catch(d){i(d)}}function l(c){try{u(n.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function Qo(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Jb(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||t)}var hu=function(){function e(t,r,n,o){this.left=t,this.top=r,this.width=n,this.height=o}return e.prototype.add=function(t,r,n,o){return new e(this.left+t,this.top+r,this.width+n,this.height+o)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var n=Array.from(r).find(function(o){return o.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),u_=function(e,t){return hu.fromClientRect(e,t.getBoundingClientRect())},cNe=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),o=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new hu(0,0,n,o)},c_=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)===56320?t.push(((o&1023)<<10)+(a&1023)+65536):(t.push(o),r--)}else t.push(o)}return t},Qn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],o=-1,a="";++o<r;){var i=e[o];i<=65535?n.push(i):(i-=65536,n.push((i>>10)+55296,i%1024+56320)),(o+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},eH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dNe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var e1=0;e1<eH.length;e1++)dNe[eH.charCodeAt(e1)]=e1;var tH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yg=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var t1=0;t1<tH.length;t1++)Yg[tH.charCodeAt(t1)]=t1;var fNe=function(e){var t=e.length*.75,r=e.length,n,o=0,a,i,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(t):new Array(t),c=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)a=Yg[e.charCodeAt(n)],i=Yg[e.charCodeAt(n+1)],s=Yg[e.charCodeAt(n+2)],l=Yg[e.charCodeAt(n+3)],c[o++]=a<<2|i>>4,c[o++]=(i&15)<<4|s>>2,c[o++]=(s&3)<<6|l&63;return u},ANe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},hNe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},jf=5,qL=6+5,Q2=2,vNe=qL-jf,rte=65536>>jf,pNe=1<<jf,V2=pNe-1,gNe=1024>>jf,mNe=rte+gNe,yNe=mNe,bNe=32,xNe=yNe+bNe,wNe=65536>>qL,CNe=1<<vNe,SNe=CNe-1,rH=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},_Ne=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},BNe=function(e,t){var r=fNe(e),n=Array.isArray(r)?hNe(r):new Uint32Array(r),o=Array.isArray(r)?ANe(r):new Uint16Array(r),a=24,i=rH(o,a/2,n[4]/2),s=n[5]===2?rH(o,(a+n[4])/2):_Ne(n,Math.ceil((a+n[4])/4));return new TNe(n[0],n[1],n[2],n[3],i,s)},TNe=function(){function e(t,r,n,o,a,i){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=o,this.index=a,this.data=i}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>jf],r=(r<<Q2)+(t&V2),this.data[r];if(t<=65535)return r=this.index[rte+(t-55296>>jf)],r=(r<<Q2)+(t&V2),this.data[r];if(t<this.highStart)return r=xNe-wNe+(t>>qL),r=this.index[r],r+=t>>jf&SNe,r=this.index[r],r=(r<<Q2)+(t&V2),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),nH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ENe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var r1=0;r1<nH.length;r1++)ENe[nH.charCodeAt(r1)]=r1;var INe="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",oH=50,RNe=1,nte=2,ote=3,DNe=4,MNe=5,aH=7,ate=8,iH=9,Ac=10,xM=11,sH=12,wM=13,PNe=14,Xg=15,CM=16,n1=17,ag=18,FNe=19,lH=20,SM=21,ig=22,W2=23,ih=24,Oa=25,qg=26,Zg=27,sh=28,kNe=29,wf=30,LNe=31,o1=32,a1=33,_M=34,BM=35,TM=36,wm=37,EM=38,Nx=39,Hx=40,G2=41,ite=42,ONe=43,$Ne=[9001,65288],ste="!",Br="×",i1="÷",IM=BNe(INe),Pl=[wf,TM],RM=[RNe,nte,ote,MNe],lte=[Ac,ate],uH=[Zg,qg],UNe=RM.concat(lte),cH=[EM,Nx,Hx,_M,BM],NNe=[Xg,wM],HNe=function(e,t){t===void 0&&(t="strict");var r=[],n=[],o=[];return e.forEach(function(a,i){var s=IM.get(a);if(s>oH?(o.push(!0),s-=oH):o.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(i),r.push(CM);if(s===DNe||s===xM){if(i===0)return n.push(i),r.push(wf);var l=r[i-1];return UNe.indexOf(l)===-1?(n.push(n[i-1]),r.push(l)):(n.push(i),r.push(wf))}if(n.push(i),s===LNe)return r.push(t==="strict"?SM:wm);if(s===ite||s===kNe)return r.push(wf);if(s===ONe)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(wm):r.push(wf);r.push(s)}),[n,r,o]},K2=function(e,t,r,n){var o=n[r];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var a=r;a<=n.length;){a++;var i=n[a];if(i===t)return!0;if(i!==Ac)break}if(o===Ac)for(var a=r;a>0;){a--;var s=n[a];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=r;l<=n.length;){l++;var i=n[l];if(i===t)return!0;if(i!==Ac)break}if(s!==Ac)break}return!1},dH=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n===Ac)r--;else return n}return 0},zNe=function(e,t,r,n,o){if(r[n]===0)return Br;var a=n-1;if(Array.isArray(o)&&o[a]===!0)return Br;var i=a-1,s=a+1,l=t[a],u=i>=0?t[i]:0,c=t[s];if(l===nte&&c===ote)return Br;if(RM.indexOf(l)!==-1)return ste;if(RM.indexOf(c)!==-1||lte.indexOf(c)!==-1)return Br;if(dH(a,t)===ate)return i1;if(IM.get(e[a])===xM||(l===o1||l===a1)&&IM.get(e[s])===xM||l===aH||c===aH||l===iH||[Ac,wM,Xg].indexOf(l)===-1&&c===iH||[n1,ag,FNe,ih,sh].indexOf(c)!==-1||dH(a,t)===ig||K2(W2,ig,a,t)||K2([n1,ag],SM,a,t)||K2(sH,sH,a,t))return Br;if(l===Ac)return i1;if(l===W2||c===W2)return Br;if(c===CM||l===CM)return i1;if([wM,Xg,SM].indexOf(c)!==-1||l===PNe||u===TM&&NNe.indexOf(l)!==-1||l===sh&&c===TM||c===lH||Pl.indexOf(c)!==-1&&l===Oa||Pl.indexOf(l)!==-1&&c===Oa||l===Zg&&[wm,o1,a1].indexOf(c)!==-1||[wm,o1,a1].indexOf(l)!==-1&&c===qg||Pl.indexOf(l)!==-1&&uH.indexOf(c)!==-1||uH.indexOf(l)!==-1&&Pl.indexOf(c)!==-1||[Zg,qg].indexOf(l)!==-1&&(c===Oa||[ig,Xg].indexOf(c)!==-1&&t[s+1]===Oa)||[ig,Xg].indexOf(l)!==-1&&c===Oa||l===Oa&&[Oa,sh,ih].indexOf(c)!==-1)return Br;if([Oa,sh,ih,n1,ag].indexOf(c)!==-1)for(var d=a;d>=0;){var f=t[d];if(f===Oa)return Br;if([sh,ih].indexOf(f)!==-1)d--;else break}if([Zg,qg].indexOf(c)!==-1)for(var d=[n1,ag].indexOf(l)!==-1?i:a;d>=0;){var f=t[d];if(f===Oa)return Br;if([sh,ih].indexOf(f)!==-1)d--;else break}if(EM===l&&[EM,Nx,_M,BM].indexOf(c)!==-1||[Nx,_M].indexOf(l)!==-1&&[Nx,Hx].indexOf(c)!==-1||[Hx,BM].indexOf(l)!==-1&&c===Hx||cH.indexOf(l)!==-1&&[lH,qg].indexOf(c)!==-1||cH.indexOf(c)!==-1&&l===Zg||Pl.indexOf(l)!==-1&&Pl.indexOf(c)!==-1||l===ih&&Pl.indexOf(c)!==-1||Pl.concat(Oa).indexOf(l)!==-1&&c===ig&&$Ne.indexOf(e[s])===-1||Pl.concat(Oa).indexOf(c)!==-1&&l===ag)return Br;if(l===G2&&c===G2){for(var A=r[a],h=1;A>0&&(A--,t[A]===G2);)h++;if(h%2!==0)return Br}return l===o1&&c===a1?Br:i1},QNe=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=HNe(e,t.lineBreak),n=r[0],o=r[1],a=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(o=o.map(function(s){return[Oa,wf,ite].indexOf(s)!==-1?wm:s}));var i=t.wordBreak==="keep-all"?a.map(function(s,l){return s&&e[l]>=19968&&e[l]<=40959}):void 0;return[n,o,i]},VNe=function(){function e(t,r,n,o){this.codePoints=t,this.required=r===ste,this.start=n,this.end=o}return e.prototype.slice=function(){return Qn.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),WNe=function(e,t){var r=c_(e),n=QNe(r,t),o=n[0],a=n[1],i=n[2],s=r.length,l=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var c=Br;u<s&&(c=zNe(r,a,o,++u,i))===Br;);if(c!==Br||u===s){var d=new VNe(r,c,l,u);return l=u,{value:d,done:!1}}return{done:!0,value:null}}}},GNe=1,KNe=2,Py=4,fH=8,Yw=10,AH=47,E0=92,jNe=9,YNe=32,s1=34,sg=61,XNe=35,qNe=36,ZNe=37,l1=39,u1=40,lg=41,JNe=95,ga=45,eHe=33,tHe=60,rHe=62,nHe=64,oHe=91,aHe=93,iHe=61,sHe=123,c1=63,lHe=125,hH=124,uHe=126,cHe=128,vH=65533,j2=42,Mf=43,dHe=44,fHe=58,AHe=59,Cm=46,hHe=0,vHe=8,pHe=11,gHe=14,mHe=31,yHe=127,Fs=-1,ute=48,cte=97,dte=101,bHe=102,xHe=117,wHe=122,fte=65,Ate=69,hte=70,CHe=85,SHe=90,Go=function(e){return e>=ute&&e<=57},_He=function(e){return e>=55296&&e<=57343},lh=function(e){return Go(e)||e>=fte&&e<=hte||e>=cte&&e<=bHe},BHe=function(e){return e>=cte&&e<=wHe},THe=function(e){return e>=fte&&e<=SHe},EHe=function(e){return BHe(e)||THe(e)},IHe=function(e){return e>=cHe},d1=function(e){return e===Yw||e===jNe||e===YNe},Xw=function(e){return EHe(e)||IHe(e)||e===JNe},pH=function(e){return Xw(e)||Go(e)||e===ga},RHe=function(e){return e>=hHe&&e<=vHe||e===pHe||e>=gHe&&e<=mHe||e===yHe},sc=function(e,t){return e!==E0?!1:t!==Yw},f1=function(e,t,r){return e===ga?Xw(t)||sc(t,r):Xw(e)?!0:!!(e===E0&&sc(e,t))},Y2=function(e,t,r){return e===Mf||e===ga?Go(t)?!0:t===Cm&&Go(r):Go(e===Cm?t:e)},DHe=function(e){var t=0,r=1;(e[t]===Mf||e[t]===ga)&&(e[t]===ga&&(r=-1),t++);for(var n=[];Go(e[t]);)n.push(e[t++]);var o=n.length?parseInt(Qn.apply(void 0,n),10):0;e[t]===Cm&&t++;for(var a=[];Go(e[t]);)a.push(e[t++]);var i=a.length,s=i?parseInt(Qn.apply(void 0,a),10):0;(e[t]===Ate||e[t]===dte)&&t++;var l=1;(e[t]===Mf||e[t]===ga)&&(e[t]===ga&&(l=-1),t++);for(var u=[];Go(e[t]);)u.push(e[t++]);var c=u.length?parseInt(Qn.apply(void 0,u),10):0;return r*(o+s*Math.pow(10,-i))*Math.pow(10,l*c)},MHe={type:2},PHe={type:3},FHe={type:4},kHe={type:13},LHe={type:8},OHe={type:21},$He={type:9},UHe={type:10},NHe={type:11},HHe={type:12},zHe={type:14},A1={type:23},QHe={type:1},VHe={type:25},WHe={type:24},GHe={type:26},KHe={type:27},jHe={type:28},YHe={type:29},XHe={type:31},DM={type:32},vte=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(c_(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==DM;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case s1:return this.consumeStringToken(s1);case XNe:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),o=this.peekCodePoint(2);if(pH(r)||sc(n,o)){var a=f1(r,n,o)?KNe:GNe,i=this.consumeName();return{type:5,value:i,flags:a}}break;case qNe:if(this.peekCodePoint(0)===sg)return this.consumeCodePoint(),kHe;break;case l1:return this.consumeStringToken(l1);case u1:return MHe;case lg:return PHe;case j2:if(this.peekCodePoint(0)===sg)return this.consumeCodePoint(),zHe;break;case Mf:if(Y2(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case dHe:return FHe;case ga:var s=t,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Y2(s,l,u))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(f1(s,l,u))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===ga&&u===rHe)return this.consumeCodePoint(),this.consumeCodePoint(),WHe;break;case Cm:if(Y2(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case AH:if(this.peekCodePoint(0)===j2)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===j2&&(c=this.consumeCodePoint(),c===AH))return this.consumeToken();if(c===Fs)return this.consumeToken()}break;case fHe:return GHe;case AHe:return KHe;case tHe:if(this.peekCodePoint(0)===eHe&&this.peekCodePoint(1)===ga&&this.peekCodePoint(2)===ga)return this.consumeCodePoint(),this.consumeCodePoint(),VHe;break;case nHe:var d=this.peekCodePoint(0),f=this.peekCodePoint(1),A=this.peekCodePoint(2);if(f1(d,f,A)){var i=this.consumeName();return{type:7,value:i}}break;case oHe:return jHe;case E0:if(sc(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case aHe:return YHe;case iHe:if(this.peekCodePoint(0)===sg)return this.consumeCodePoint(),LHe;break;case sHe:return NHe;case lHe:return HHe;case xHe:case CHe:var h=this.peekCodePoint(0),v=this.peekCodePoint(1);return h===Mf&&(lh(v)||v===c1)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case hH:if(this.peekCodePoint(0)===sg)return this.consumeCodePoint(),$He;if(this.peekCodePoint(0)===hH)return this.consumeCodePoint(),OHe;break;case uHe:if(this.peekCodePoint(0)===sg)return this.consumeCodePoint(),UHe;break;case Fs:return DM}return d1(t)?(this.consumeWhiteSpace(),XHe):Go(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Xw(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Qn(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t=="undefined"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();lh(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var n=!1;r===c1&&t.length<6;)t.push(r),r=this.consumeCodePoint(),n=!0;if(n){var o=parseInt(Qn.apply(void 0,t.map(function(l){return l===c1?ute:l})),16),a=parseInt(Qn.apply(void 0,t.map(function(l){return l===c1?hte:l})),16);return{type:30,start:o,end:a}}var i=parseInt(Qn.apply(void 0,t),16);if(this.peekCodePoint(0)===ga&&lh(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var s=[];lh(r)&&s.length<6;)s.push(r),r=this.consumeCodePoint();var a=parseInt(Qn.apply(void 0,s),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===u1?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===u1?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Fs)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===l1||r===s1){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Fs||this.peekCodePoint(0)===lg)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),A1)}for(;;){var o=this.consumeCodePoint();if(o===Fs||o===lg)return{type:22,value:Qn.apply(void 0,t)};if(d1(o))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Fs||this.peekCodePoint(0)===lg?(this.consumeCodePoint(),{type:22,value:Qn.apply(void 0,t)}):(this.consumeBadUrlRemnants(),A1);if(o===s1||o===l1||o===u1||RHe(o))return this.consumeBadUrlRemnants(),A1;if(o===E0)if(sc(o,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),A1;else t.push(o)}},e.prototype.consumeWhiteSpace=function(){for(;d1(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===lg||t===Fs)return;sc(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,n="";t>0;){var o=Math.min(r,t);n+=Qn.apply(void 0,this._value.splice(0,o)),t-=o}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var r="",n=0;do{var o=this._value[n];if(o===Fs||o===void 0||o===t)return r+=this.consumeStringSlice(n),{type:0,value:r};if(o===Yw)return this._value.splice(0,n),QHe;if(o===E0){var a=this._value[n+1];a!==Fs&&a!==void 0&&(a===Yw?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):sc(o,a)&&(r+=this.consumeStringSlice(n),r+=Qn(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=Py,n=this.peekCodePoint(0);for((n===Mf||n===ga)&&t.push(this.consumeCodePoint());Go(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var o=this.peekCodePoint(1);if(n===Cm&&Go(o))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=fH;Go(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),o=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===Ate||n===dte)&&((o===Mf||o===ga)&&Go(a)||Go(o)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=fH;Go(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[DHe(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],n=t[1],o=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(f1(o,a,i)){var s=this.consumeName();return{type:15,number:r,flags:n,unit:s}}return o===ZNe?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(lh(t)){for(var r=Qn(t);lh(this.peekCodePoint(0))&&r.length<6;)r+=Qn(this.consumeCodePoint());d1(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||_He(n)||n>1114111?vH:n}return t===Fs?vH:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(pH(r))t+=Qn(r);else if(sc(r,this.peekCodePoint(0)))t+=Qn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e}(),pte=function(){function e(t){this._tokens=t}return e.create=function(t){var r=new vte;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||ZHe(n,t))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t=="undefined"?DM:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Fy=function(e){return e.type===15},gp=function(e){return e.type===17},nn=function(e){return e.type===20},qHe=function(e){return e.type===0},MM=function(e,t){return nn(e)&&e.value===t},gte=function(e){return e.type!==31},$v=function(e){return e.type!==31&&e.type!==4},Sl=function(e){var t=[],r=[];return e.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&t.push(r),t},ZHe=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},rd=function(e){return e.type===17||e.type===15},qn=function(e){return e.type===16||rd(e)},mte=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Mo={type:17,number:0,flags:Py},ZL={type:16,number:50,flags:Py},hc={type:16,number:100,flags:Py},Jg=function(e,t,r){var n=e[0],o=e[1];return[hn(n,t),hn(typeof o!="undefined"?o:n,r)]},hn=function(e,t){if(e.type===16)return e.number/100*t;if(Fy(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},yte="deg",bte="grad",xte="rad",wte="turn",d_={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case yte:return Math.PI*t.number/180;case bte:return Math.PI/200*t.number;case xte:return t.number;case wte:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},Cte=function(e){return e.type===15&&(e.unit===yte||e.unit===bte||e.unit===xte||e.unit===wte)},Ste=function(e){var t=e.filter(nn).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Mo,Mo];case"to top":case"bottom":return Bi(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Mo,hc];case"to right":case"left":return Bi(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hc,hc];case"to bottom":case"top":return Bi(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hc,Mo];case"to left":case"right":return Bi(270)}return 0},Bi=function(e){return Math.PI*e/180},Mc={name:"color",parse:function(e,t){if(t.type===18){var r=JHe[t.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),o=t.value.substring(1,2),a=t.value.substring(2,3);return vc(parseInt(n+n,16),parseInt(o+o,16),parseInt(a+a,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),o=t.value.substring(1,2),a=t.value.substring(2,3),i=t.value.substring(3,4);return vc(parseInt(n+n,16),parseInt(o+o,16),parseInt(a+a,16),parseInt(i+i,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),o=t.value.substring(2,4),a=t.value.substring(4,6);return vc(parseInt(n,16),parseInt(o,16),parseInt(a,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),o=t.value.substring(2,4),a=t.value.substring(4,6),i=t.value.substring(6,8);return vc(parseInt(n,16),parseInt(o,16),parseInt(a,16),parseInt(i,16)/255)}}if(t.type===20){var s=ou[t.value.toUpperCase()];if(typeof s!="undefined")return s}return ou.TRANSPARENT}},Pc=function(e){return(255&e)===0},po=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+n+","+r+","+t/255+")":"rgb("+o+","+n+","+r+")"},vc=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(n*255)<<0)>>>0},gH=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},mH=function(e,t){var r=t.filter($v);if(r.length===3){var n=r.map(gH),o=n[0],a=n[1],i=n[2];return vc(o,a,i,1)}if(r.length===4){var s=r.map(gH),o=s[0],a=s[1],i=s[2],l=s[3];return vc(o,a,i,l)}return 0};function X2(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<1/2?t:r<2/3?(t-e)*6*(2/3-r)+e:e}var yH=function(e,t){var r=t.filter($v),n=r[0],o=r[1],a=r[2],i=r[3],s=(n.type===17?Bi(n.number):d_.parse(e,n))/(Math.PI*2),l=qn(o)?o.number/100:0,u=qn(a)?a.number/100:0,c=typeof i!="undefined"&&qn(i)?hn(i,1):1;if(l===0)return vc(u*255,u*255,u*255,1);var d=u<=.5?u*(l+1):u+l-u*l,f=u*2-d,A=X2(f,d,s+1/3),h=X2(f,d,s),v=X2(f,d,s-1/3);return vc(A*255,h*255,v*255,c)},JHe={hsl:yH,hsla:yH,rgb:mH,rgba:mH},I0=function(e,t){return Mc.parse(e,pte.create(t).parseComponentValue())},ou={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},eze={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(nn(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},tze={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},f_=function(e,t){var r=Mc.parse(e,t[0]),n=t[1];return n&&qn(n)?{color:r,stop:n}:{color:r,stop:null}},bH=function(e,t){var r=e[0],n=e[e.length-1];r.stop===null&&(r.stop=Mo),n.stop===null&&(n.stop=hc);for(var o=[],a=0,i=0;i<e.length;i++){var s=e[i].stop;if(s!==null){var l=hn(s,t);l>a?o.push(l):o.push(a),a=l}else o.push(null)}for(var u=null,i=0;i<o.length;i++){var c=o[i];if(c===null)u===null&&(u=i);else if(u!==null){for(var d=i-u,f=o[u-1],A=(c-f)/(d+1),h=1;h<=d;h++)o[u+h-1]=A*h;u=null}}return e.map(function(v,p){var g=v.color;return{color:g,stop:Math.max(Math.min(1,o[p]/t),0)}})},rze=function(e,t,r){var n=t/2,o=r/2,a=hn(e[0],t)-n,i=o-hn(e[1],r);return(Math.atan2(i,a)+Math.PI*2)%(Math.PI*2)},nze=function(e,t,r){var n=typeof e=="number"?e:rze(e,t,r),o=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),a=t/2,i=r/2,s=o/2,l=Math.sin(n-Math.PI/2)*s,u=Math.cos(n-Math.PI/2)*s;return[o,a-u,a+u,i-l,i+l]},Ji=function(e,t){return Math.sqrt(e*e+t*t)},xH=function(e,t,r,n,o){var a=[[0,0],[0,t],[e,0],[e,t]];return a.reduce(function(i,s){var l=s[0],u=s[1],c=Ji(r-l,n-u);return(o?c<i.optimumDistance:c>i.optimumDistance)?{optimumCorner:s,optimumDistance:c}:i},{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},oze=function(e,t,r,n,o){var a=0,i=0;switch(e.size){case 0:e.shape===0?a=i=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-o)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-n)),i=Math.min(Math.abs(r),Math.abs(r-o)));break;case 2:if(e.shape===0)a=i=Math.min(Ji(t,r),Ji(t,r-o),Ji(t-n,r),Ji(t-n,r-o));else if(e.shape===1){var s=Math.min(Math.abs(r),Math.abs(r-o))/Math.min(Math.abs(t),Math.abs(t-n)),l=xH(n,o,t,r,!0),u=l[0],c=l[1];a=Ji(u-t,(c-r)/s),i=s*a}break;case 1:e.shape===0?a=i=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-o)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-n)),i=Math.max(Math.abs(r),Math.abs(r-o)));break;case 3:if(e.shape===0)a=i=Math.max(Ji(t,r),Ji(t,r-o),Ji(t-n,r),Ji(t-n,r-o));else if(e.shape===1){var s=Math.max(Math.abs(r),Math.abs(r-o))/Math.max(Math.abs(t),Math.abs(t-n)),d=xH(n,o,t,r,!1),u=d[0],c=d[1];a=Ji(u-t,(c-r)/s),i=s*a}break}return Array.isArray(e.size)&&(a=hn(e.size[0],n),i=e.size.length===2?hn(e.size[1],o):a),[a,i]},aze=function(e,t){var r=Bi(180),n=[];return Sl(t).forEach(function(o,a){if(a===0){var i=o[0];if(i.type===20&&i.value==="to"){r=Ste(o);return}else if(Cte(i)){r=d_.parse(e,i);return}}var s=f_(e,o);n.push(s)}),{angle:r,stops:n,type:1}},h1=function(e,t){var r=Bi(180),n=[];return Sl(t).forEach(function(o,a){if(a===0){var i=o[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=Ste(o);return}else if(Cte(i)){r=(d_.parse(e,i)+Bi(270))%Bi(360);return}}var s=f_(e,o);n.push(s)}),{angle:r,stops:n,type:1}},ize=function(e,t){var r=Bi(180),n=[],o=1,a=0,i=3,s=[];return Sl(t).forEach(function(l,u){var c=l[0];if(u===0){if(nn(c)&&c.value==="linear"){o=1;return}else if(nn(c)&&c.value==="radial"){o=2;return}}if(c.type===18){if(c.name==="from"){var d=Mc.parse(e,c.values[0]);n.push({stop:Mo,color:d})}else if(c.name==="to"){var d=Mc.parse(e,c.values[0]);n.push({stop:hc,color:d})}else if(c.name==="color-stop"){var f=c.values.filter($v);if(f.length===2){var d=Mc.parse(e,f[1]),A=f[0];gp(A)&&n.push({stop:{type:16,number:A.number*100,flags:A.flags},color:d})}}}}),o===1?{angle:(r+Bi(180))%Bi(360),stops:n,type:o}:{size:i,shape:a,stops:n,position:s,type:o}},_te="closest-side",Bte="farthest-side",Tte="closest-corner",Ete="farthest-corner",Ite="circle",Rte="ellipse",Dte="cover",Mte="contain",sze=function(e,t){var r=0,n=3,o=[],a=[];return Sl(t).forEach(function(i,s){var l=!0;if(s===0){var u=!1;l=i.reduce(function(d,f){if(u)if(nn(f))switch(f.value){case"center":return a.push(ZL),d;case"top":case"left":return a.push(Mo),d;case"right":case"bottom":return a.push(hc),d}else(qn(f)||rd(f))&&a.push(f);else if(nn(f))switch(f.value){case Ite:return r=0,!1;case Rte:return r=1,!1;case"at":return u=!0,!1;case _te:return n=0,!1;case Dte:case Bte:return n=1,!1;case Mte:case Tte:return n=2,!1;case Ete:return n=3,!1}else if(rd(f)||qn(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return d},l)}if(l){var c=f_(e,i);o.push(c)}}),{size:n,shape:r,stops:o,position:a,type:2}},v1=function(e,t){var r=0,n=3,o=[],a=[];return Sl(t).forEach(function(i,s){var l=!0;if(s===0?l=i.reduce(function(c,d){if(nn(d))switch(d.value){case"center":return a.push(ZL),!1;case"top":case"left":return a.push(Mo),!1;case"right":case"bottom":return a.push(hc),!1}else if(qn(d)||rd(d))return a.push(d),!1;return c},l):s===1&&(l=i.reduce(function(c,d){if(nn(d))switch(d.value){case Ite:return r=0,!1;case Rte:return r=1,!1;case Mte:case _te:return n=0,!1;case Bte:return n=1,!1;case Tte:return n=2,!1;case Dte:case Ete:return n=3,!1}else if(rd(d)||qn(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return c},l)),l){var u=f_(e,i);o.push(u)}}),{size:n,shape:r,stops:o,position:a,type:2}},lze=function(e){return e.type===1},uze=function(e){return e.type===2},JL={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var n=Pte[t.name];if(typeof n=="undefined")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function cze(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Pte[e.name])}var Pte={"linear-gradient":aze,"-moz-linear-gradient":h1,"-ms-linear-gradient":h1,"-o-linear-gradient":h1,"-webkit-linear-gradient":h1,"radial-gradient":sze,"-moz-radial-gradient":v1,"-ms-radial-gradient":v1,"-o-radial-gradient":v1,"-webkit-radial-gradient":v1,"-webkit-gradient":ize},dze={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(n){return $v(n)&&cze(n)}).map(function(n){return JL.parse(e,n)})}},fze={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(nn(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Aze={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Sl(t).map(function(r){return r.filter(qn)}).map(mte)}},hze={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Sl(t).map(function(r){return r.filter(nn).map(function(n){return n.value}).join(" ")}).map(vze)}},vze=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},vv;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(vv||(vv={}));var pze={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Sl(t).map(function(r){return r.filter(gze)})}},gze=function(e){return nn(e)||qn(e)},A_=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},mze=A_("top"),yze=A_("right"),bze=A_("bottom"),xze=A_("left"),h_=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return mte(r.filter(qn))}}},wze=h_("top-left"),Cze=h_("top-right"),Sze=h_("bottom-right"),_ze=h_("bottom-left"),v_=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Bze=v_("top"),Tze=v_("right"),Eze=v_("bottom"),Ize=v_("left"),p_=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Fy(r)?r.number:0}}},Rze=p_("top"),Dze=p_("right"),Mze=p_("bottom"),Pze=p_("left"),Fze={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},kze={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Lze={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(nn).reduce(function(r,n){return r|Oze(n.value)},0)}},Oze=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},$ze={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Uze={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},qw;(function(e){e.NORMAL="normal",e.STRICT="strict"})(qw||(qw={}));var Nze={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return qw.STRICT;case"normal":default:return qw.NORMAL}}},Hze={name:"line-height",initialValue:"normal",prefix:!1,type:4},wH=function(e,t){return nn(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:qn(e)?hn(e,t):t},zze={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:JL.parse(e,t)}},Qze={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},PM={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},g_=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Vze=g_("top"),Wze=g_("right"),Gze=g_("bottom"),Kze=g_("left"),jze={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(nn).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Yze={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},m_=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Xze=m_("top"),qze=m_("right"),Zze=m_("bottom"),Jze=m_("left"),e8e={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},t8e={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},r8e={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&MM(t[0],"none")?[]:Sl(t).map(function(r){for(var n={color:ou.TRANSPARENT,offsetX:Mo,offsetY:Mo,blur:Mo},o=0,a=0;a<r.length;a++){var i=r[a];rd(i)?(o===0?n.offsetX=i:o===1?n.offsetY=i:n.blur=i,o++):n.color=Mc.parse(e,i)}return n})}},n8e={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},o8e={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=s8e[t.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},a8e=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},i8e=function(e){var t=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=t[0],n=t[1];t[2],t[3];var o=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var i=t[12],s=t[13];return t[14],t[15],t.length===16?[r,n,o,a,i,s]:null},s8e={matrix:a8e,matrix3d:i8e},CH={type:16,number:50,flags:Py},l8e=[CH,CH],u8e={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(qn);return r.length!==2?l8e:[r[0],r[1]]}},c8e={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},R0;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(R0||(R0={}));var d8e={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return R0.BREAK_ALL;case"keep-all":return R0.KEEP_ALL;case"normal":default:return R0.NORMAL}}},f8e={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(gp(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Fte={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},A8e={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return gp(t)?t.number:1}},h8e={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},v8e={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(nn).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},p8e={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],n=[];return t.forEach(function(o){switch(o.type){case 20:case 0:r.push(o.value);break;case 17:r.push(o.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(o){return o.indexOf(" ")===-1?o:"'"+o+"'"})}},g8e={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},m8e={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(gp(t))return t.number;if(nn(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},y8e={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(nn).map(function(r){return r.value})}},b8e={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},so=function(e,t){return(e&t)!==0},x8e={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},w8e={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var n=[],o=t.filter(gte),a=0;a<o.length;a++){var i=o[a],s=o[a+1];if(i.type===20){var l=s&&gp(s)?s.number:1;n.push({counter:i.value,increment:l})}}return n}},C8e={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],n=t.filter(gte),o=0;o<n.length;o++){var a=n[o],i=n[o+1];if(nn(a)&&a.value!=="none"){var s=i&&gp(i)?i.number:0;r.push({counter:a.value,reset:s})}}return r}},S8e={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Fy).map(function(r){return Fte.parse(e,r)})}},_8e={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var n=[],o=t.filter(qHe);if(o.length%2!==0)return null;for(var a=0;a<o.length;a+=2){var i=o[a].value,s=o[a+1].value;n.push({open:i,close:s})}return n}},SH=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},B8e={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&MM(t[0],"none")?[]:Sl(t).map(function(r){for(var n={color:255,offsetX:Mo,offsetY:Mo,blur:Mo,spread:Mo,inset:!1},o=0,a=0;a<r.length;a++){var i=r[a];MM(i,"inset")?n.inset=!0:rd(i)?(o===0?n.offsetX=i:o===1?n.offsetY=i:o===2?n.blur=i:n.spread=i,o++):n.color=Mc.parse(e,i)}return n})}},T8e={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],n=[];return t.filter(nn).forEach(function(o){switch(o.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(o){n.indexOf(o)===-1&&n.push(o)}),n}},E8e={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},I8e={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fy(t)?t.number:0}},R8e=function(){function e(t,r){var n,o;this.animationDuration=Bt(t,S8e,r.animationDuration),this.backgroundClip=Bt(t,eze,r.backgroundClip),this.backgroundColor=Bt(t,tze,r.backgroundColor),this.backgroundImage=Bt(t,dze,r.backgroundImage),this.backgroundOrigin=Bt(t,fze,r.backgroundOrigin),this.backgroundPosition=Bt(t,Aze,r.backgroundPosition),this.backgroundRepeat=Bt(t,hze,r.backgroundRepeat),this.backgroundSize=Bt(t,pze,r.backgroundSize),this.borderTopColor=Bt(t,mze,r.borderTopColor),this.borderRightColor=Bt(t,yze,r.borderRightColor),this.borderBottomColor=Bt(t,bze,r.borderBottomColor),this.borderLeftColor=Bt(t,xze,r.borderLeftColor),this.borderTopLeftRadius=Bt(t,wze,r.borderTopLeftRadius),this.borderTopRightRadius=Bt(t,Cze,r.borderTopRightRadius),this.borderBottomRightRadius=Bt(t,Sze,r.borderBottomRightRadius),this.borderBottomLeftRadius=Bt(t,_ze,r.borderBottomLeftRadius),this.borderTopStyle=Bt(t,Bze,r.borderTopStyle),this.borderRightStyle=Bt(t,Tze,r.borderRightStyle),this.borderBottomStyle=Bt(t,Eze,r.borderBottomStyle),this.borderLeftStyle=Bt(t,Ize,r.borderLeftStyle),this.borderTopWidth=Bt(t,Rze,r.borderTopWidth),this.borderRightWidth=Bt(t,Dze,r.borderRightWidth),this.borderBottomWidth=Bt(t,Mze,r.borderBottomWidth),this.borderLeftWidth=Bt(t,Pze,r.borderLeftWidth),this.boxShadow=Bt(t,B8e,r.boxShadow),this.color=Bt(t,Fze,r.color),this.direction=Bt(t,kze,r.direction),this.display=Bt(t,Lze,r.display),this.float=Bt(t,$ze,r.cssFloat),this.fontFamily=Bt(t,p8e,r.fontFamily),this.fontSize=Bt(t,g8e,r.fontSize),this.fontStyle=Bt(t,b8e,r.fontStyle),this.fontVariant=Bt(t,y8e,r.fontVariant),this.fontWeight=Bt(t,m8e,r.fontWeight),this.letterSpacing=Bt(t,Uze,r.letterSpacing),this.lineBreak=Bt(t,Nze,r.lineBreak),this.lineHeight=Bt(t,Hze,r.lineHeight),this.listStyleImage=Bt(t,zze,r.listStyleImage),this.listStylePosition=Bt(t,Qze,r.listStylePosition),this.listStyleType=Bt(t,PM,r.listStyleType),this.marginTop=Bt(t,Vze,r.marginTop),this.marginRight=Bt(t,Wze,r.marginRight),this.marginBottom=Bt(t,Gze,r.marginBottom),this.marginLeft=Bt(t,Kze,r.marginLeft),this.opacity=Bt(t,A8e,r.opacity);var a=Bt(t,jze,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=Bt(t,Yze,r.overflowWrap),this.paddingTop=Bt(t,Xze,r.paddingTop),this.paddingRight=Bt(t,qze,r.paddingRight),this.paddingBottom=Bt(t,Zze,r.paddingBottom),this.paddingLeft=Bt(t,Jze,r.paddingLeft),this.paintOrder=Bt(t,T8e,r.paintOrder),this.position=Bt(t,t8e,r.position),this.textAlign=Bt(t,e8e,r.textAlign),this.textDecorationColor=Bt(t,h8e,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Bt(t,v8e,(o=r.textDecorationLine)!==null&&o!==void 0?o:r.textDecoration),this.textShadow=Bt(t,r8e,r.textShadow),this.textTransform=Bt(t,n8e,r.textTransform),this.transform=Bt(t,o8e,r.transform),this.transformOrigin=Bt(t,u8e,r.transformOrigin),this.visibility=Bt(t,c8e,r.visibility),this.webkitTextStrokeColor=Bt(t,E8e,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Bt(t,I8e,r.webkitTextStrokeWidth),this.wordBreak=Bt(t,d8e,r.wordBreak),this.zIndex=Bt(t,f8e,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return Pc(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return so(this.display,4)||so(this.display,33554432)||so(this.display,268435456)||so(this.display,536870912)||so(this.display,67108864)||so(this.display,134217728)},e}(),D8e=function(){function e(t,r){this.content=Bt(t,x8e,r.content),this.quotes=Bt(t,_8e,r.quotes)}return e}(),_H=function(){function e(t,r){this.counterIncrement=Bt(t,w8e,r.counterIncrement),this.counterReset=Bt(t,C8e,r.counterReset)}return e}(),Bt=function(e,t,r){var n=new vte,o=r!==null&&typeof r!="undefined"?r.toString():t.initialValue;n.write(o);var a=new pte(n.read());switch(t.type){case 2:var i=a.parseComponentValue();return t.parse(e,nn(i)?i.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return d_.parse(e,a.parseComponentValue());case"color":return Mc.parse(e,a.parseComponentValue());case"image":return JL.parse(e,a.parseComponentValue());case"length":var s=a.parseComponentValue();return rd(s)?s:Mo;case"length-percentage":var l=a.parseComponentValue();return qn(l)?l:Mo;case"time":return Fte.parse(e,a.parseComponentValue())}break}},M8e="data-html2canvas-debug",P8e=function(e){var t=e.getAttribute(M8e);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},FM=function(e,t){var r=P8e(e);return r===1||t===r},_l=function(){function e(t,r){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,FM(r,3))debugger;this.styles=new R8e(t,window.getComputedStyle(r,null)),OM(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=u_(this.context,r),FM(r,4)&&(this.flags|=16)}return e}(),F8e="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",BH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e0=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var p1=0;p1<BH.length;p1++)e0[BH.charCodeAt(p1)]=p1;var k8e=function(e){var t=e.length*.75,r=e.length,n,o=0,a,i,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(t):new Array(t),c=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)a=e0[e.charCodeAt(n)],i=e0[e.charCodeAt(n+1)],s=e0[e.charCodeAt(n+2)],l=e0[e.charCodeAt(n+3)],c[o++]=a<<2|i>>4,c[o++]=(i&15)<<4|s>>2,c[o++]=(s&3)<<6|l&63;return u},L8e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},O8e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Yf=5,eO=6+5,q2=2,$8e=eO-Yf,kte=65536>>Yf,U8e=1<<Yf,Z2=U8e-1,N8e=1024>>Yf,H8e=kte+N8e,z8e=H8e,Q8e=32,V8e=z8e+Q8e,W8e=65536>>eO,G8e=1<<$8e,K8e=G8e-1,TH=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},j8e=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},Y8e=function(e,t){var r=k8e(e),n=Array.isArray(r)?O8e(r):new Uint32Array(r),o=Array.isArray(r)?L8e(r):new Uint16Array(r),a=24,i=TH(o,a/2,n[4]/2),s=n[5]===2?TH(o,(a+n[4])/2):j8e(n,Math.ceil((a+n[4])/4));return new X8e(n[0],n[1],n[2],n[3],i,s)},X8e=function(){function e(t,r,n,o,a,i){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=o,this.index=a,this.data=i}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Yf],r=(r<<q2)+(t&Z2),this.data[r];if(t<=65535)return r=this.index[kte+(t-55296>>Yf)],r=(r<<q2)+(t&Z2),this.data[r];if(t<this.highStart)return r=V8e-W8e+(t>>eO),r=this.index[r],r+=t>>Yf&K8e,r=this.index[r],r=(r<<q2)+(t&Z2),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),EH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q8e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var g1=0;g1<EH.length;g1++)q8e[EH.charCodeAt(g1)]=g1;var Z8e=1,J2=2,eT=3,IH=4,RH=5,J8e=7,DH=8,tT=9,rT=10,MH=11,PH=12,FH=13,kH=14,nT=15,e6e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)===56320?t.push(((o&1023)<<10)+(a&1023)+65536):(t.push(o),r--)}else t.push(o)}return t},t6e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],o=-1,a="";++o<r;){var i=e[o];i<=65535?n.push(i):(i-=65536,n.push((i>>10)+55296,i%1024+56320)),(o+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},r6e=Y8e(F8e),vi="×",oT="÷",n6e=function(e){return r6e.get(e)},o6e=function(e,t,r){var n=r-2,o=t[n],a=t[r-1],i=t[r];if(a===J2&&i===eT)return vi;if(a===J2||a===eT||a===IH||i===J2||i===eT||i===IH)return oT;if(a===DH&&[DH,tT,MH,PH].indexOf(i)!==-1||(a===MH||a===tT)&&(i===tT||i===rT)||(a===PH||a===rT)&&i===rT||i===FH||i===RH||i===J8e||a===Z8e)return vi;if(a===FH&&i===kH){for(;o===RH;)o=t[--n];if(o===kH)return vi}if(a===nT&&i===nT){for(var s=0;o===nT;)s++,o=t[--n];if(s%2===0)return vi}return oT},a6e=function(e){var t=e6e(e),r=t.length,n=0,o=0,a=t.map(n6e);return{next:function(){if(n>=r)return{done:!0,value:null};for(var i=vi;n<r&&(i=o6e(t,a,++n))===vi;);if(i!==vi||n===r){var s=t6e.apply(null,t.slice(o,n));return o=n,{value:s,done:!1}}return{done:!0,value:null}}}},i6e=function(e){for(var t=a6e(e),r=[],n;!(n=t.next()).done;)n.value&&r.push(n.value.slice());return r},s6e=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),r.selectNode(n);var o=r.getBoundingClientRect(),a=Math.round(o.height);if(e.body.removeChild(n),a===t)return!0}}return!1},l6e=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=t.firstChild,o=c_(n.data).map(function(l){return Qn(l)}),a=0,i={},s=o.every(function(l,u){r.setStart(n,a),r.setEnd(n,a+l.length);var c=r.getBoundingClientRect();a+=l.length;var d=c.x>i.x||c.y>i.y;return i=c,u===0?!0:d});return e.body.removeChild(t),s},u6e=function(){return typeof new Image().crossOrigin!="undefined"},c6e=function(){return typeof new XMLHttpRequest().responseType=="string"},d6e=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch(o){return!1}return!0},LH=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},f6e=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var o=new Image,a=t.toDataURL();o.src=a;var i=kM(r,r,0,0,o);return n.fillStyle="red",n.fillRect(0,0,r,r),OH(i).then(function(s){n.drawImage(s,0,0);var l=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var u=e.createElement("div");return u.style.backgroundImage="url("+a+")",u.style.height=r+"px",LH(l)?OH(kM(r,r,0,0,u)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),LH(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},kM=function(e,t,r,n,o){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",r.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(o),i},OH=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Do={get SUPPORT_RANGE_BOUNDS(){var e=s6e(document);return Object.defineProperty(Do,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Do.SUPPORT_RANGE_BOUNDS&&l6e(document);return Object.defineProperty(Do,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=d6e(document);return Object.defineProperty(Do,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?f6e(document):Promise.resolve(!1);return Object.defineProperty(Do,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=u6e();return Object.defineProperty(Do,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=c6e();return Object.defineProperty(Do,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Do,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Do,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},D0=function(){function e(t,r){this.text=t,this.bounds=r}return e}(),A6e=function(e,t,r,n){var o=p6e(t,r),a=[],i=0;return o.forEach(function(s){if(r.textDecorationLine.length||s.trim().length>0)if(Do.SUPPORT_RANGE_BOUNDS){var l=$H(n,i,s.length).getClientRects();if(l.length>1){var u=tO(s),c=0;u.forEach(function(f){a.push(new D0(f,hu.fromDOMRectList(e,$H(n,c+i,f.length).getClientRects()))),c+=f.length})}else a.push(new D0(s,hu.fromDOMRectList(e,l)))}else{var d=n.splitText(s.length);a.push(new D0(s,h6e(e,n))),n=d}else Do.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));i+=s.length}),a},h6e=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(n,t);var a=u_(e,n);return n.firstChild&&o.replaceChild(n.firstChild,n),a}}return hu.EMPTY},$H=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var o=n.createRange();return o.setStart(e,t),o.setEnd(e,t+r),o},tO=function(e){if(Do.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return i6e(e)},v6e=function(e,t){if(Do.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(n){return n.segment})}return m6e(e,t)},p6e=function(e,t){return t.letterSpacing!==0?tO(e):v6e(e,t)},g6e=[32,160,4961,65792,65793,4153,4241],m6e=function(e,t){for(var r=WNe(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],o,a=function(){if(o.value){var i=o.value.slice(),s=c_(i),l="";s.forEach(function(u){g6e.indexOf(u)===-1?l+=Qn(u):(l.length&&n.push(l),n.push(Qn(u)),l="")}),l.length&&n.push(l)}};!(o=r.next()).done;)a();return n},y6e=function(){function e(t,r,n){this.text=b6e(r.data,n.textTransform),this.textBounds=A6e(t,this.text,n,r)}return e}(),b6e=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(x6e,w6e);case 2:return e.toUpperCase();default:return e}},x6e=/(^|\s|:|-|\(|\))([a-z])/g,w6e=function(e,t,r){return e.length>0?t+r.toUpperCase():e},Lte=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.src=n.currentSrc||n.src,o.intrinsicWidth=n.naturalWidth,o.intrinsicHeight=n.naturalHeight,o.context.cache.addImage(o.src),o}return t}(_l),Ote=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.canvas=n,o.intrinsicWidth=n.width,o.intrinsicHeight=n.height,o}return t}(_l),$te=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this,a=new XMLSerializer,i=u_(r,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),o.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),o.intrinsicWidth=n.width.baseVal.value,o.intrinsicHeight=n.height.baseVal.value,o.context.cache.addImage(o.svg),o}return t}(_l),Ute=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.value=n.value,o}return t}(_l),LM=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.start=n.start,o.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,o}return t}(_l),C6e=[{type:15,flags:0,unit:"px",number:3}],S6e=[{type:16,flags:0,number:50}],_6e=function(e){return e.width>e.height?new hu(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new hu(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},B6e=function(e){var t=e.type===T6e?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},Zw="checkbox",Jw="radio",T6e="password",UH=707406591,rO=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;switch(o.type=n.type.toLowerCase(),o.checked=n.checked,o.value=B6e(n),(o.type===Zw||o.type===Jw)&&(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=_6e(o.bounds)),o.type){case Zw:o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=C6e;break;case Jw:o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=S6e;break}return o}return t}(_l),Nte=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this,a=n.options[n.selectedIndex||0];return o.value=a&&a.text||"",o}return t}(_l),Hte=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.value=n.value,o}return t}(_l),zte=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;o.src=n.src,o.width=parseInt(n.width,10)||0,o.height=parseInt(n.height,10)||0,o.backgroundColor=o.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){o.tree=Vte(r,n.contentWindow.document.documentElement);var a=n.contentWindow.document.documentElement?I0(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):ou.TRANSPARENT,i=n.contentWindow.document.body?I0(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):ou.TRANSPARENT;o.backgroundColor=Pc(a)?Pc(i)?o.styles.backgroundColor:i:a}}catch(s){}return o}return t}(_l),E6e=["OL","UL","MENU"],zx=function(e,t,r,n){for(var o=t.firstChild,a=void 0;o;o=a)if(a=o.nextSibling,Wte(o)&&o.data.trim().length>0)r.textNodes.push(new y6e(e,o,r.styles));else if(qh(o))if(Yte(o)&&o.assignedNodes)o.assignedNodes().forEach(function(s){return zx(e,s,r,n)});else{var i=Qte(e,o);i.styles.isVisible()&&(I6e(o,i,n)?i.flags|=4:R6e(i.styles)&&(i.flags|=2),E6e.indexOf(o.tagName)!==-1&&(i.flags|=8),r.elements.push(i),o.slot,o.shadowRoot?zx(e,o.shadowRoot,i,n):!eC(o)&&!Gte(o)&&!tC(o)&&zx(e,o,i,n))}},Qte=function(e,t){return $M(t)?new Lte(e,t):Kte(t)?new Ote(e,t):Gte(t)?new $te(e,t):D6e(t)?new Ute(e,t):M6e(t)?new LM(e,t):P6e(t)?new rO(e,t):tC(t)?new Nte(e,t):eC(t)?new Hte(e,t):jte(t)?new zte(e,t):new _l(e,t)},Vte=function(e,t){var r=Qte(e,t);return r.flags|=4,zx(e,t,r,r),r},I6e=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||nO(e)&&r.styles.isTransparent()},R6e=function(e){return e.isPositioned()||e.isFloating()},Wte=function(e){return e.nodeType===Node.TEXT_NODE},qh=function(e){return e.nodeType===Node.ELEMENT_NODE},OM=function(e){return qh(e)&&typeof e.style!="undefined"&&!Qx(e)},Qx=function(e){return typeof e.className=="object"},D6e=function(e){return e.tagName==="LI"},M6e=function(e){return e.tagName==="OL"},P6e=function(e){return e.tagName==="INPUT"},F6e=function(e){return e.tagName==="HTML"},Gte=function(e){return e.tagName==="svg"},nO=function(e){return e.tagName==="BODY"},Kte=function(e){return e.tagName==="CANVAS"},NH=function(e){return e.tagName==="VIDEO"},$M=function(e){return e.tagName==="IMG"},jte=function(e){return e.tagName==="IFRAME"},HH=function(e){return e.tagName==="STYLE"},k6e=function(e){return e.tagName==="SCRIPT"},eC=function(e){return e.tagName==="TEXTAREA"},tC=function(e){return e.tagName==="SELECT"},Yte=function(e){return e.tagName==="SLOT"},zH=function(e){return e.tagName.indexOf("-")>0},L6e=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(n){return r.counters[n].pop()})},e.prototype.parse=function(t){var r=this,n=t.counterIncrement,o=t.counterReset,a=!0;n!==null&&n.forEach(function(s){var l=r.counters[s.counter];l&&s.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var i=[];return a&&o.forEach(function(s){var l=r.counters[s.counter];i.push(s.counter),l||(l=r.counters[s.counter]=[]),l.push(s.reset)}),i},e}(),QH={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},VH={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},O6e={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},$6e={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},uh=function(e,t,r,n,o,a){return e<t||e>r?Sm(e,o,a.length>0):n.integers.reduce(function(i,s,l){for(;e>=s;)e-=s,i+=n.values[l];return i},"")+a},Xte=function(e,t,r,n){var o="";do r||e--,o=n(e)+o,e/=t;while(e*t>=t);return o},Hn=function(e,t,r,n,o){var a=r-t+1;return(e<0?"-":"")+(Xte(Math.abs(e),a,n,function(i){return Qn(Math.floor(i%a)+t)})+o)},kd=function(e,t,r){r===void 0&&(r=". ");var n=t.length;return Xte(Math.abs(e),n,!1,function(o){return t[Math.floor(o%n)]})+r},Nh=1,tc=2,rc=4,t0=8,Fl=function(e,t,r,n,o,a){if(e<-9999||e>9999)return Sm(e,4,o.length>0);var i=Math.abs(e),s=o;if(i===0)return t[0]+s;for(var l=0;i>0&&l<=4;l++){var u=i%10;u===0&&so(a,Nh)&&s!==""?s=t[u]+s:u>1||u===1&&l===0||u===1&&l===1&&so(a,tc)||u===1&&l===1&&so(a,rc)&&e>100||u===1&&l>1&&so(a,t0)?s=t[u]+(l>0?r[l-1]:"")+s:u===1&&l>0&&(s=r[l-1]+s),i=Math.floor(i/10)}return(e<0?n:"")+s},WH="十百千萬",GH="拾佰仟萬",KH="マイナス",aT="마이너스",Sm=function(e,t,r){var n=r?". ":"",o=r?"、":"",a=r?", ":"",i=r?" ":"";switch(t){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var s=Hn(e,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return kd(e,"〇一二三四五六七八九",o);case 6:return uh(e,1,3999,QH,3,n).toLowerCase();case 7:return uh(e,1,3999,QH,3,n);case 8:return Hn(e,945,969,!1,n);case 9:return Hn(e,97,122,!1,n);case 10:return Hn(e,65,90,!1,n);case 11:return Hn(e,1632,1641,!0,n);case 12:case 49:return uh(e,1,9999,VH,3,n);case 35:return uh(e,1,9999,VH,3,n).toLowerCase();case 13:return Hn(e,2534,2543,!0,n);case 14:case 30:return Hn(e,6112,6121,!0,n);case 15:return kd(e,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return kd(e,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return Fl(e,"零一二三四五六七八九",WH,"負",o,tc|rc|t0);case 47:return Fl(e,"零壹貳參肆伍陸柒捌玖",GH,"負",o,Nh|tc|rc|t0);case 42:return Fl(e,"零一二三四五六七八九",WH,"负",o,tc|rc|t0);case 41:return Fl(e,"零壹贰叁肆伍陆柒捌玖",GH,"负",o,Nh|tc|rc|t0);case 26:return Fl(e,"〇一二三四五六七八九","十百千万",KH,o,0);case 25:return Fl(e,"零壱弐参四伍六七八九","拾百千万",KH,o,Nh|tc|rc);case 31:return Fl(e,"영일이삼사오육칠팔구","십백천만",aT,a,Nh|tc|rc);case 33:return Fl(e,"零一二三四五六七八九","十百千萬",aT,a,0);case 32:return Fl(e,"零壹貳參四五六七八九","拾百千",aT,a,Nh|tc|rc);case 18:return Hn(e,2406,2415,!0,n);case 20:return uh(e,1,19999,$6e,3,n);case 21:return Hn(e,2790,2799,!0,n);case 22:return Hn(e,2662,2671,!0,n);case 22:return uh(e,1,10999,O6e,3,n);case 23:return kd(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return kd(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Hn(e,3302,3311,!0,n);case 28:return kd(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return kd(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return Hn(e,3792,3801,!0,n);case 37:return Hn(e,6160,6169,!0,n);case 38:return Hn(e,4160,4169,!0,n);case 39:return Hn(e,2918,2927,!0,n);case 40:return Hn(e,1776,1785,!0,n);case 43:return Hn(e,3046,3055,!0,n);case 44:return Hn(e,3174,3183,!0,n);case 45:return Hn(e,3664,3673,!0,n);case 46:return Hn(e,3872,3881,!0,n);case 3:default:return Hn(e,48,57,!0,n)}},qte="data-html2canvas-ignore",jH=function(){function e(t,r,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new L6e,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var n=this,o=U6e(t,r);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,s=o.contentWindow,l=s.document,u=z6e(o).then(function(){return ra(n,void 0,void 0,function(){var c,d;return Qo(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(G6e),s&&(s.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==r.top||s.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-r.left,s.scrollY-r.top,0,0))),c=this.options.onclone,d=this.clonedReferenceElement,typeof d=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,H6e(l)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(l,d)}).then(function(){return o})]:[2,o]}})})});return l.open(),l.write(V6e(document.doctype)+"<html></html>"),W6e(this.referenceElement.ownerDocument,a,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},e.prototype.createElementClone=function(t){if(FM(t,2))debugger;if(Kte(t))return this.createCanvasClone(t);if(NH(t))return this.createVideoClone(t);if(HH(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return $M(r)&&($M(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),zH(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return iT(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(a,i){return i&&typeof i.cssText=="string"?a+i.cssText:a},""),o=t.cloneNode(!1);return o.textContent=n,o}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(u){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var o=t.cloneNode(!1);try{o.width=t.width,o.height=t.height;var a=t.getContext("2d"),i=o.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.putImageData(a.getImageData(0,0,t.width,t.height),0,0);else{var s=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(s){var l=s.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return o}catch(u){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return o},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch(a){this.context.logger.info("Unable to clone video as it is tainted",t)}var o=t.ownerDocument.createElement("canvas");return o.width=t.offsetWidth,o.height=t.offsetHeight,o},e.prototype.appendChildNode=function(t,r,n){(!qh(r)||!k6e(r)&&!r.hasAttribute(qte)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!qh(r)||!HH(r))&&t.appendChild(this.cloneNode(r,n))},e.prototype.cloneChildNodes=function(t,r,n){for(var o=this,a=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;a;a=a.nextSibling)if(qh(a)&&Yte(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(s){return o.appendChildNode(r,s,n)})}else this.appendChildNode(r,a,n)},e.prototype.cloneNode=function(t,r){if(Wte(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&qh(t)&&(OM(t)||Qx(t))){var o=this.createElementClone(t);o.style.transitionProperty="none";var a=n.getComputedStyle(t),i=n.getComputedStyle(t,":before"),s=n.getComputedStyle(t,":after");this.referenceElement===t&&OM(o)&&(this.clonedReferenceElement=o),nO(o)&&Y6e(o);var l=this.counters.parse(new _H(this.context,a)),u=this.resolvePseudoContent(t,o,i,M0.BEFORE);zH(t)&&(r=!0),NH(t)||this.cloneChildNodes(t,o,r),u&&o.insertBefore(u,o.firstChild);var c=this.resolvePseudoContent(t,o,s,M0.AFTER);return c&&o.appendChild(c),this.counters.pop(l),(a&&(this.options.copyStyles||Qx(t))&&!jte(t)||r)&&iT(a,o),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([o,t.scrollLeft,t.scrollTop]),(eC(t)||tC(t))&&(eC(o)||tC(o))&&(o.value=t.value),o}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,n,o){var a=this;if(n){var i=n.content,s=r.ownerDocument;if(!(!s||!i||i==="none"||i==="-moz-alt-content"||n.display==="none")){this.counters.parse(new _H(this.context,n));var l=new D8e(this.context,n),u=s.createElement("html2canvaspseudoelement");iT(n,u),l.content.forEach(function(d){if(d.type===0)u.appendChild(s.createTextNode(d.value));else if(d.type===22){var f=s.createElement("img");f.src=d.value,f.style.opacity="1",u.appendChild(f)}else if(d.type===18){if(d.name==="attr"){var A=d.values.filter(nn);A.length&&u.appendChild(s.createTextNode(t.getAttribute(A[0].value)||""))}else if(d.name==="counter"){var h=d.values.filter($v),v=h[0],p=h[1];if(v&&nn(v)){var g=a.counters.getCounterValue(v.value),m=p&&nn(p)?PM.parse(a.context,p.value):3;u.appendChild(s.createTextNode(Sm(g,m,!1)))}}else if(d.name==="counters"){var y=d.values.filter($v),v=y[0],b=y[1],p=y[2];if(v&&nn(v)){var x=a.counters.getCounterValues(v.value),w=p&&nn(p)?PM.parse(a.context,p.value):3,C=b&&b.type===0?b.value:"",_=x.map(function(E){return Sm(E,w,!1)}).join(C);u.appendChild(s.createTextNode(_))}}}else if(d.type===20)switch(d.value){case"open-quote":u.appendChild(s.createTextNode(SH(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(SH(l.quotes,--a.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(d.value))}}),u.className=UM+" "+NM;var c=o===M0.BEFORE?" "+UM:" "+NM;return Qx(r)?r.className.baseValue+=c:r.className+=c,u}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),M0;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(M0||(M0={}));var U6e=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(qte,"true"),e.body.appendChild(r),r},N6e=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},H6e=function(e){return Promise.all([].slice.call(e.images,0).map(N6e))},z6e=function(e){return new Promise(function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var o=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var a=setInterval(function(){o.body.childNodes.length>0&&o.readyState==="complete"&&(clearInterval(a),t(e))},50)}})},Q6e=["all","d","content"],iT=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);Q6e.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},V6e=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},W6e=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},G6e=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},K6e=":before",j6e=":after",UM="___html2canvas___pseudoelement_before",NM="___html2canvas___pseudoelement_after",YH=`{
  6038. content: "" !important;
  6039. display: none !important;
  6040. }`,Y6e=function(e){X6e(e,"."+UM+K6e+YH+`
  6041. .`+NM+j6e+YH)},X6e=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},Zte=function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),q6e=function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(lT(t)||tQe(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return ra(this,void 0,void 0,function(){var r,n,o,a,i=this;return Qo(this,function(s){switch(s.label){case 0:return r=Zte.isSameOrigin(t),n=!sT(t)&&this._options.useCORS===!0&&Do.SUPPORT_CORS_IMAGES&&!r,o=!sT(t)&&!r&&!lT(t)&&typeof this._options.proxy=="string"&&Do.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!sT(t)&&!lT(t)&&!o&&!n?[2]:(a=t,o?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,u){var c=new Image;c.onload=function(){return l(c)},c.onerror=u,(rQe(a)||n)&&(c.crossOrigin="anonymous"),c.src=a,c.complete===!0&&setTimeout(function(){return l(c)},500),i._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]!="undefined"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var o=t.substring(0,256);return new Promise(function(a,i){var s=Do.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")a(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return a(d.result)},!1),d.addEventListener("error",function(f){return i(f)},!1),d.readAsDataURL(l.response)}else i("Failed to proxy resource "+o+" with status code "+l.status)},l.onerror=i;var u=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+u+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),r._options.imageTimeout){var c=r._options.imageTimeout;l.timeout=c,l.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+o)}}l.send()})},e}(),Z6e=/^data:image\/svg\+xml/i,J6e=/^data:image\/.*;base64,/i,eQe=/^data:image\/.*/i,tQe=function(e){return Do.SUPPORT_SVG_DRAWING||!nQe(e)},sT=function(e){return eQe.test(e)},rQe=function(e){return J6e.test(e)},lT=function(e){return e.substr(0,4)==="blob"},nQe=function(e){return e.substr(-3).toLowerCase()==="svg"||Z6e.test(e)},wt=function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),ch=function(e,t,r){return new wt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},m1=function(){function e(t,r,n,o){this.type=1,this.start=t,this.startControl=r,this.endControl=n,this.end=o}return e.prototype.subdivide=function(t,r){var n=ch(this.start,this.startControl,t),o=ch(this.startControl,this.endControl,t),a=ch(this.endControl,this.end,t),i=ch(n,o,t),s=ch(o,a,t),l=ch(i,s,t);return r?new e(this.start,n,i,l):new e(l,s,a,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),bi=function(e){return e.type===1},oQe=function(){function e(t){var r=t.styles,n=t.bounds,o=Jg(r.borderTopLeftRadius,n.width,n.height),a=o[0],i=o[1],s=Jg(r.borderTopRightRadius,n.width,n.height),l=s[0],u=s[1],c=Jg(r.borderBottomRightRadius,n.width,n.height),d=c[0],f=c[1],A=Jg(r.borderBottomLeftRadius,n.width,n.height),h=A[0],v=A[1],p=[];p.push((a+l)/n.width),p.push((h+d)/n.width),p.push((i+v)/n.height),p.push((u+f)/n.height);var g=Math.max.apply(Math,p);g>1&&(a/=g,i/=g,l/=g,u/=g,d/=g,f/=g,h/=g,v/=g);var m=n.width-l,y=n.height-f,b=n.width-d,x=n.height-v,w=r.borderTopWidth,C=r.borderRightWidth,_=r.borderBottomWidth,B=r.borderLeftWidth,T=hn(r.paddingTop,t.bounds.width),E=hn(r.paddingRight,t.bounds.width),I=hn(r.paddingBottom,t.bounds.width),R=hn(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?xn(n.left+B/3,n.top+w/3,a-B/3,i-w/3,qr.TOP_LEFT):new wt(n.left+B/3,n.top+w/3),this.topRightBorderDoubleOuterBox=a>0||i>0?xn(n.left+m,n.top+w/3,l-C/3,u-w/3,qr.TOP_RIGHT):new wt(n.left+n.width-C/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?xn(n.left+b,n.top+y,d-C/3,f-_/3,qr.BOTTOM_RIGHT):new wt(n.left+n.width-C/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=h>0||v>0?xn(n.left+B/3,n.top+x,h-B/3,v-_/3,qr.BOTTOM_LEFT):new wt(n.left+B/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?xn(n.left+B*2/3,n.top+w*2/3,a-B*2/3,i-w*2/3,qr.TOP_LEFT):new wt(n.left+B*2/3,n.top+w*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?xn(n.left+m,n.top+w*2/3,l-C*2/3,u-w*2/3,qr.TOP_RIGHT):new wt(n.left+n.width-C*2/3,n.top+w*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?xn(n.left+b,n.top+y,d-C*2/3,f-_*2/3,qr.BOTTOM_RIGHT):new wt(n.left+n.width-C*2/3,n.top+n.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=h>0||v>0?xn(n.left+B*2/3,n.top+x,h-B*2/3,v-_*2/3,qr.BOTTOM_LEFT):new wt(n.left+B*2/3,n.top+n.height-_*2/3),this.topLeftBorderStroke=a>0||i>0?xn(n.left+B/2,n.top+w/2,a-B/2,i-w/2,qr.TOP_LEFT):new wt(n.left+B/2,n.top+w/2),this.topRightBorderStroke=a>0||i>0?xn(n.left+m,n.top+w/2,l-C/2,u-w/2,qr.TOP_RIGHT):new wt(n.left+n.width-C/2,n.top+w/2),this.bottomRightBorderStroke=d>0||f>0?xn(n.left+b,n.top+y,d-C/2,f-_/2,qr.BOTTOM_RIGHT):new wt(n.left+n.width-C/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=h>0||v>0?xn(n.left+B/2,n.top+x,h-B/2,v-_/2,qr.BOTTOM_LEFT):new wt(n.left+B/2,n.top+n.height-_/2),this.topLeftBorderBox=a>0||i>0?xn(n.left,n.top,a,i,qr.TOP_LEFT):new wt(n.left,n.top),this.topRightBorderBox=l>0||u>0?xn(n.left+m,n.top,l,u,qr.TOP_RIGHT):new wt(n.left+n.width,n.top),this.bottomRightBorderBox=d>0||f>0?xn(n.left+b,n.top+y,d,f,qr.BOTTOM_RIGHT):new wt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||v>0?xn(n.left,n.top+x,h,v,qr.BOTTOM_LEFT):new wt(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||i>0?xn(n.left+B,n.top+w,Math.max(0,a-B),Math.max(0,i-w),qr.TOP_LEFT):new wt(n.left+B,n.top+w),this.topRightPaddingBox=l>0||u>0?xn(n.left+Math.min(m,n.width-C),n.top+w,m>n.width+C?0:Math.max(0,l-C),Math.max(0,u-w),qr.TOP_RIGHT):new wt(n.left+n.width-C,n.top+w),this.bottomRightPaddingBox=d>0||f>0?xn(n.left+Math.min(b,n.width-B),n.top+Math.min(y,n.height-_),Math.max(0,d-C),Math.max(0,f-_),qr.BOTTOM_RIGHT):new wt(n.left+n.width-C,n.top+n.height-_),this.bottomLeftPaddingBox=h>0||v>0?xn(n.left+B,n.top+Math.min(x,n.height-_),Math.max(0,h-B),Math.max(0,v-_),qr.BOTTOM_LEFT):new wt(n.left+B,n.top+n.height-_),this.topLeftContentBox=a>0||i>0?xn(n.left+B+R,n.top+w+T,Math.max(0,a-(B+R)),Math.max(0,i-(w+T)),qr.TOP_LEFT):new wt(n.left+B+R,n.top+w+T),this.topRightContentBox=l>0||u>0?xn(n.left+Math.min(m,n.width+B+R),n.top+w+T,m>n.width+B+R?0:l-B+R,u-(w+T),qr.TOP_RIGHT):new wt(n.left+n.width-(C+E),n.top+w+T),this.bottomRightContentBox=d>0||f>0?xn(n.left+Math.min(b,n.width-(B+R)),n.top+Math.min(y,n.height+w+T),Math.max(0,d-(C+E)),f-(_+I),qr.BOTTOM_RIGHT):new wt(n.left+n.width-(C+E),n.top+n.height-(_+I)),this.bottomLeftContentBox=h>0||v>0?xn(n.left+B+R,n.top+x,Math.max(0,h-(B+R)),v-(_+I),qr.BOTTOM_LEFT):new wt(n.left+B+R,n.top+n.height-(_+I))}return e}(),qr;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(qr||(qr={}));var xn=function(e,t,r,n,o){var a=4*((Math.sqrt(2)-1)/3),i=r*a,s=n*a,l=e+r,u=t+n;switch(o){case qr.TOP_LEFT:return new m1(new wt(e,u),new wt(e,u-s),new wt(l-i,t),new wt(l,t));case qr.TOP_RIGHT:return new m1(new wt(e,t),new wt(e+i,t),new wt(l,u-s),new wt(l,u));case qr.BOTTOM_RIGHT:return new m1(new wt(l,t),new wt(l,t+s),new wt(e+i,u),new wt(e,u));case qr.BOTTOM_LEFT:default:return new m1(new wt(l,u),new wt(l-i,u),new wt(e,t+s),new wt(e,t))}},rC=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},aQe=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},nC=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},iQe=function(){function e(t,r,n){this.offsetX=t,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return e}(),y1=function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e}(),sQe=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),lQe=function(e){return e.type===0},Jte=function(e){return e.type===1},uQe=function(e){return e.type===2},XH=function(e,t){return e.length===t.length?e.some(function(r,n){return r===t[n]}):!1},cQe=function(e,t,r,n,o){return e.map(function(a,i){switch(i){case 0:return a.add(t,r);case 1:return a.add(t+n,r);case 2:return a.add(t+n,r+o);case 3:return a.add(t,r+o)}return a})},ere=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),tre=function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new oQe(this.container),this.container.styles.opacity<1&&this.effects.push(new sQe(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,o=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new iQe(n,o,a))}if(this.container.styles.overflowX!==0){var i=rC(this.curves),s=nC(this.curves);XH(i,s)?this.effects.push(new y1(i,6)):(this.effects.push(new y1(i,2)),this.effects.push(new y1(s,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,o=this.effects.slice(0);n;){var a=n.effects.filter(function(l){return!Jte(l)});if(r||n.container.styles.position!==0||!n.parent){if(o.unshift.apply(o,a),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var i=rC(n.curves),s=nC(n.curves);XH(i,s)||o.unshift(new y1(s,6))}}else o.unshift.apply(o,a);n=n.parent}return o.filter(function(l){return so(l.target,t)})},e}(),HM=function(e,t,r,n){e.container.elements.forEach(function(o){var a=so(o.flags,4),i=so(o.flags,2),s=new tre(o,e);so(o.styles.display,2048)&&n.push(s);var l=so(o.flags,8)?[]:n;if(a||i){var u=a||o.styles.isPositioned()?r:t,c=new ere(s);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var f=0;u.negativeZIndex.some(function(h,v){return d>h.element.container.styles.zIndex.order?(f=v,!1):f>0}),u.negativeZIndex.splice(f,0,c)}else if(d>0){var A=0;u.positiveZIndex.some(function(h,v){return d>=h.element.container.styles.zIndex.order?(A=v+1,!1):A>0}),u.positiveZIndex.splice(A,0,c)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else o.styles.isFloating()?u.nonPositionedFloats.push(c):u.nonPositionedInlineLevel.push(c);HM(s,c,a?c:r,l)}else o.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),HM(s,t,r,l);so(o.flags,8)&&rre(o,l)})},rre=function(e,t){for(var r=e instanceof LM?e.start:1,n=e instanceof LM?e.reversed:!1,o=0;o<t.length;o++){var a=t[o];a.container instanceof Ute&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=Sm(r,a.container.styles.listStyleType,!0),r+=n?-1:1}},dQe=function(e){var t=new tre(e,null),r=new ere(t),n=[];return HM(t,r,r,n),rre(t.container,n),r},qH=function(e,t){switch(t){case 0:return Ti(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Ti(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Ti(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Ti(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},fQe=function(e,t){switch(t){case 0:return Ti(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Ti(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Ti(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Ti(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},AQe=function(e,t){switch(t){case 0:return Ti(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Ti(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Ti(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Ti(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},hQe=function(e,t){switch(t){case 0:return b1(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return b1(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return b1(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return b1(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},b1=function(e,t){var r=[];return bi(e)?r.push(e.subdivide(.5,!1)):r.push(e),bi(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Ti=function(e,t,r,n){var o=[];return bi(e)?o.push(e.subdivide(.5,!1)):o.push(e),bi(r)?o.push(r.subdivide(.5,!0)):o.push(r),bi(n)?o.push(n.subdivide(.5,!0).reverse()):o.push(n),bi(t)?o.push(t.subdivide(.5,!1).reverse()):o.push(t),o},nre=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},oC=function(e){var t=e.styles,r=e.bounds,n=hn(t.paddingLeft,r.width),o=hn(t.paddingRight,r.width),a=hn(t.paddingTop,r.width),i=hn(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+o),-(t.borderTopWidth+t.borderBottomWidth+a+i))},vQe=function(e,t){return e===0?t.bounds:e===2?oC(t):nre(t)},pQe=function(e,t){return e===0?t.bounds:e===2?oC(t):nre(t)},uT=function(e,t,r){var n=vQe(Hh(e.styles.backgroundOrigin,t),e),o=pQe(Hh(e.styles.backgroundClip,t),e),a=gQe(Hh(e.styles.backgroundSize,t),r,n),i=a[0],s=a[1],l=Jg(Hh(e.styles.backgroundPosition,t),n.width-i,n.height-s),u=mQe(Hh(e.styles.backgroundRepeat,t),l,a,n,o),c=Math.round(n.left+l[0]),d=Math.round(n.top+l[1]);return[u,c,d,i,s]},dh=function(e){return nn(e)&&e.value===vv.AUTO},x1=function(e){return typeof e=="number"},gQe=function(e,t,r){var n=t[0],o=t[1],a=t[2],i=e[0],s=e[1];if(!i)return[0,0];if(qn(i)&&s&&qn(s))return[hn(i,r.width),hn(s,r.height)];var l=x1(a);if(nn(i)&&(i.value===vv.CONTAIN||i.value===vv.COVER)){if(x1(a)){var u=r.width/r.height;return u<a!=(i.value===vv.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var c=x1(n),d=x1(o),f=c||d;if(dh(i)&&(!s||dh(s))){if(c&&d)return[n,o];if(!l&&!f)return[r.width,r.height];if(f&&l){var A=c?n:o*a,h=d?o:n/a;return[A,h]}var v=c?n:r.width,p=d?o:r.height;return[v,p]}if(l){var g=0,m=0;return qn(i)?g=hn(i,r.width):qn(s)&&(m=hn(s,r.height)),dh(i)?g=m*a:(!s||dh(s))&&(m=g/a),[g,m]}var y=null,b=null;if(qn(i)?y=hn(i,r.width):s&&qn(s)&&(b=hn(s,r.height)),y!==null&&(!s||dh(s))&&(b=c&&d?y/n*o:r.height),b!==null&&dh(i)&&(y=c&&d?b/o*n:r.width),y!==null&&b!==null)return[y,b];throw new Error("Unable to calculate background-size for element")},Hh=function(e,t){var r=e[t];return typeof r=="undefined"?e[0]:r},mQe=function(e,t,r,n,o){var a=t[0],i=t[1],s=r[0],l=r[1];switch(e){case 2:return[new wt(Math.round(n.left),Math.round(n.top+i)),new wt(Math.round(n.left+n.width),Math.round(n.top+i)),new wt(Math.round(n.left+n.width),Math.round(l+n.top+i)),new wt(Math.round(n.left),Math.round(l+n.top+i))];case 3:return[new wt(Math.round(n.left+a),Math.round(n.top)),new wt(Math.round(n.left+a+s),Math.round(n.top)),new wt(Math.round(n.left+a+s),Math.round(n.height+n.top)),new wt(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new wt(Math.round(n.left+a),Math.round(n.top+i)),new wt(Math.round(n.left+a+s),Math.round(n.top+i)),new wt(Math.round(n.left+a+s),Math.round(n.top+i+l)),new wt(Math.round(n.left+a),Math.round(n.top+i+l))];default:return[new wt(Math.round(o.left),Math.round(o.top)),new wt(Math.round(o.left+o.width),Math.round(o.top)),new wt(Math.round(o.left+o.width),Math.round(o.height+o.top)),new wt(Math.round(o.left),Math.round(o.height+o.top))]}},yQe="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ZH="Hidden Text",bQe=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var n=this._document.createElement("div"),o=this._document.createElement("img"),a=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),o.src=yQe,o.width=1,o.height=1,o.style.margin="0",o.style.padding="0",o.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ZH)),n.appendChild(a),n.appendChild(o);var s=o.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(ZH)),n.style.lineHeight="normal",o.style.verticalAlign="super";var l=o.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:s,middle:l}},e.prototype.getMetrics=function(t,r){var n=t+" "+r;return typeof this._data[n]=="undefined"&&(this._data[n]=this.parseMetrics(t,r)),this._data[n]},e}(),ore=function(){function e(t,r){this.context=t,this.options=r}return e}(),xQe=1e4,wQe=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o._activeEffects=[],o.canvas=n.canvas?n.canvas:document.createElement("canvas"),o.ctx=o.canvas.getContext("2d"),n.canvas||(o.canvas.width=Math.floor(n.width*n.scale),o.canvas.height=Math.floor(n.height*n.scale),o.canvas.style.width=n.width+"px",o.canvas.style.height=n.height+"px"),o.fontMetrics=new bQe(document),o.ctx.scale(o.options.scale,o.options.scale),o.ctx.translate(-n.x,-n.y),o.ctx.textBaseline="bottom",o._activeEffects=[],o.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),o}return t.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(o){return n.applyEffect(o)})},t.prototype.applyEffect=function(r){this.ctx.save(),uQe(r)&&(this.ctx.globalAlpha=r.opacity),lQe(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Jte(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return ra(this,void 0,void 0,function(){var n;return Qo(this,function(o){switch(o.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return ra(this,void 0,void 0,function(){return Qo(this,function(n){switch(n.label){case 0:if(so(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,n,o){var a=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+o);else{var i=tO(r.text);i.reduce(function(s,l){return a.ctx.fillText(l,s,r.bounds.top+o),s+a.ctx.measureText(l).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),o=TQe(r.fontFamily).join(", "),a=Fy(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,a,o].join(" "),o,a]},t.prototype.renderTextNode=function(r,n){return ra(this,void 0,void 0,function(){var o,a,i,s,l,u,c,d,f=this;return Qo(this,function(A){return o=this.createFontStyle(n),a=o[0],i=o[1],s=o[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(i,s),u=l.baseline,c=l.middle,d=n.paintOrder,r.textBounds.forEach(function(h){d.forEach(function(v){switch(v){case 0:f.ctx.fillStyle=po(n.color),f.renderTextWithLetterSpacing(h,n.letterSpacing,u);var p=n.textShadow;p.length&&h.text.trim().length&&(p.slice(0).reverse().forEach(function(g){f.ctx.shadowColor=po(g.color),f.ctx.shadowOffsetX=g.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=g.offsetY.number*f.options.scale,f.ctx.shadowBlur=g.blur.number,f.renderTextWithLetterSpacing(h,n.letterSpacing,u)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),n.textDecorationLine.length&&(f.ctx.fillStyle=po(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top+u),h.bounds.width,1);break;case 2:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top),h.bounds.width,1);break;case 3:f.ctx.fillRect(h.bounds.left,Math.ceil(h.bounds.top+c),h.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&h.text.trim().length&&(f.ctx.strokeStyle=po(n.webkitTextStrokeColor),f.ctx.lineWidth=n.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(h.text,h.bounds.left,h.bounds.top+u)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,n,o){if(o&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=oC(r),i=nC(n);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(o,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return ra(this,void 0,void 0,function(){var n,o,a,i,s,l,m,m,u,c,d,f,b,A,h,x,v,p,g,m,y,b,x;return Qo(this,function(w){switch(w.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,o=r.curves,a=n.styles,i=0,s=n.textNodes,w.label=1;case 1:return i<s.length?(l=s[i],[4,this.renderTextNode(l,a)]):[3,4];case 2:w.sent(),w.label=3;case 3:return i++,[3,1];case 4:if(!(n instanceof Lte))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return m=w.sent(),this.renderReplacedElement(n,o,m),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Ote&&this.renderReplacedElement(n,o,n.canvas),!(n instanceof $te))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return m=w.sent(),this.renderReplacedElement(n,o,m),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof zte&&n.tree?(u=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:c=w.sent(),n.width&&n.height&&this.ctx.drawImage(c,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),w.label=14;case 14:if(n instanceof rO&&(d=Math.min(n.bounds.width,n.bounds.height),n.type===Zw?n.checked&&(this.ctx.save(),this.path([new wt(n.bounds.left+d*.39363,n.bounds.top+d*.79),new wt(n.bounds.left+d*.16,n.bounds.top+d*.5549),new wt(n.bounds.left+d*.27347,n.bounds.top+d*.44071),new wt(n.bounds.left+d*.39694,n.bounds.top+d*.5649),new wt(n.bounds.left+d*.72983,n.bounds.top+d*.23),new wt(n.bounds.left+d*.84,n.bounds.top+d*.34085),new wt(n.bounds.left+d*.39363,n.bounds.top+d*.79)]),this.ctx.fillStyle=po(UH),this.ctx.fill(),this.ctx.restore()):n.type===Jw&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+d/2,n.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=po(UH),this.ctx.fill(),this.ctx.restore())),CQe(n)&&n.value.length){switch(f=this.createFontStyle(a),b=f[0],A=f[1],h=this.fontMetrics.getMetrics(b,A).baseline,this.ctx.font=b,this.ctx.fillStyle=po(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_Qe(n.styles.textAlign),x=oC(n),v=0,n.styles.textAlign){case 1:v+=x.width/2;break;case 2:v+=x.width;break}p=x.add(v,0,0,-x.height/2+1),this.ctx.save(),this.path([new wt(x.left,x.top),new wt(x.left+x.width,x.top),new wt(x.left+x.width,x.top+x.height),new wt(x.left,x.top+x.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new D0(n.value,p),a.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!so(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(g=n.styles.listStyleImage,g.type!==0)return[3,18];m=void 0,y=g.url,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return m=w.sent(),this.ctx.drawImage(m,n.bounds.left-(m.width+10),n.bounds.top),[3,18];case 17:return w.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(b=this.createFontStyle(a)[0],this.ctx.font=b,this.ctx.fillStyle=po(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",x=new hu(n.bounds.left,n.bounds.top+hn(n.styles.paddingTop,n.bounds.width),n.bounds.width,wH(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new D0(r.listValue,x),a.letterSpacing,wH(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return ra(this,void 0,void 0,function(){var n,o,g,a,i,g,s,l,g,u,c,g,d,f,g,A,h,g,v,p,g;return Qo(this,function(m){switch(m.label){case 0:if(so(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:m.sent(),n=0,o=r.negativeZIndex,m.label=2;case 2:return n<o.length?(g=o[n],[4,this.renderStack(g)]):[3,5];case 3:m.sent(),m.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:m.sent(),a=0,i=r.nonInlineLevel,m.label=7;case 7:return a<i.length?(g=i[a],[4,this.renderNode(g)]):[3,10];case 8:m.sent(),m.label=9;case 9:return a++,[3,7];case 10:s=0,l=r.nonPositionedFloats,m.label=11;case 11:return s<l.length?(g=l[s],[4,this.renderStack(g)]):[3,14];case 12:m.sent(),m.label=13;case 13:return s++,[3,11];case 14:u=0,c=r.nonPositionedInlineLevel,m.label=15;case 15:return u<c.length?(g=c[u],[4,this.renderStack(g)]):[3,18];case 16:m.sent(),m.label=17;case 17:return u++,[3,15];case 18:d=0,f=r.inlineLevel,m.label=19;case 19:return d<f.length?(g=f[d],[4,this.renderNode(g)]):[3,22];case 20:m.sent(),m.label=21;case 21:return d++,[3,19];case 22:A=0,h=r.zeroOrAutoZIndexOrTransformedOrOpacity,m.label=23;case 23:return A<h.length?(g=h[A],[4,this.renderStack(g)]):[3,26];case 24:m.sent(),m.label=25;case 25:return A++,[3,23];case 26:v=0,p=r.positiveZIndex,m.label=27;case 27:return v<p.length?(g=p[v],[4,this.renderStack(g)]):[3,30];case 28:m.sent(),m.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var n=this;r.forEach(function(o,a){var i=bi(o)?o.start:o;a===0?n.ctx.moveTo(i.x,i.y):n.ctx.lineTo(i.x,i.y),bi(o)&&n.ctx.bezierCurveTo(o.startControl.x,o.startControl.y,o.endControl.x,o.endControl.y,o.end.x,o.end.y)})},t.prototype.renderRepeat=function(r,n,o,a){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(o,a),this.ctx.fill(),this.ctx.translate(-o,-a)},t.prototype.resizeImage=function(r,n,o){var a;if(r.width===n&&r.height===o)return r;var i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,s=i.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,o);var l=s.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,n,o),s},t.prototype.renderBackgroundImage=function(r){return ra(this,void 0,void 0,function(){var n,o,a,i,s,l;return Qo(this,function(u){switch(u.label){case 0:n=r.styles.backgroundImage.length-1,o=function(c){var d,f,A,T,M,$,R,D,_,h,T,M,$,R,D,v,p,g,m,y,b,x,w,C,_,B,T,E,I,R,D,F,M,$,O,Q,V,W,Z,te,ae,re;return Qo(this,function(le){switch(le.label){case 0:if(c.type!==0)return[3,5];d=void 0,f=c.url,le.label=1;case 1:return le.trys.push([1,3,,4]),[4,a.context.cache.match(f)];case 2:return d=le.sent(),[3,4];case 3:return le.sent(),a.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(A=uT(r,n,[d.width,d.height,d.width/d.height]),T=A[0],M=A[1],$=A[2],R=A[3],D=A[4],_=a.ctx.createPattern(a.resizeImage(d,R,D),"repeat"),a.renderRepeat(T,_,M,$)),[3,6];case 5:lze(c)?(h=uT(r,n,[null,null,null]),T=h[0],M=h[1],$=h[2],R=h[3],D=h[4],v=nze(c.angle,R,D),p=v[0],g=v[1],m=v[2],y=v[3],b=v[4],x=document.createElement("canvas"),x.width=R,x.height=D,w=x.getContext("2d"),C=w.createLinearGradient(g,y,m,b),bH(c.stops,p).forEach(function(se){return C.addColorStop(se.stop,po(se.color))}),w.fillStyle=C,w.fillRect(0,0,R,D),R>0&&D>0&&(_=a.ctx.createPattern(x,"repeat"),a.renderRepeat(T,_,M,$))):uze(c)&&(B=uT(r,n,[null,null,null]),T=B[0],E=B[1],I=B[2],R=B[3],D=B[4],F=c.position.length===0?[ZL]:c.position,M=hn(F[0],R),$=hn(F[F.length-1],D),O=oze(c,M,$,R,D),Q=O[0],V=O[1],Q>0&&V>0&&(W=a.ctx.createRadialGradient(E+M,I+$,0,E+M,I+$,Q),bH(c.stops,Q*2).forEach(function(se){return W.addColorStop(se.stop,po(se.color))}),a.path(T),a.ctx.fillStyle=W,Q!==V?(Z=r.bounds.left+.5*r.bounds.width,te=r.bounds.top+.5*r.bounds.height,ae=V/Q,re=1/ae,a.ctx.save(),a.ctx.translate(Z,te),a.ctx.transform(1,0,0,ae,0,0),a.ctx.translate(-Z,-te),a.ctx.fillRect(E,re*(I-te)+te,R,D*re),a.ctx.restore()):a.ctx.fill())),le.label=6;case 6:return n--,[2]}})},a=this,i=0,s=r.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return i<s.length?(l=s[i],[5,o(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,n,o){return ra(this,void 0,void 0,function(){return Qo(this,function(a){return this.path(qH(o,n)),this.ctx.fillStyle=po(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,n,o,a){return ra(this,void 0,void 0,function(){var i,s;return Qo(this,function(l){switch(l.label){case 0:return n<3?[4,this.renderSolidBorder(r,o,a)]:[3,2];case 1:return l.sent(),[2];case 2:return i=fQe(a,o),this.path(i),this.ctx.fillStyle=po(r),this.ctx.fill(),s=AQe(a,o),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return ra(this,void 0,void 0,function(){var n,o,a,i,s,l,u,c,d=this;return Qo(this,function(f){switch(f.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,o=!Pc(n.backgroundColor)||n.backgroundImage.length,a=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],i=SQe(Hh(n.backgroundClip,0),r.curves),o||n.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),Pc(n.backgroundColor)||(this.ctx.fillStyle=po(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(A){d.ctx.save();var h=rC(r.curves),v=A.inset?0:xQe,p=cQe(h,-v+(A.inset?1:-1)*A.spread.number,(A.inset?1:-1)*A.spread.number,A.spread.number*(A.inset?-2:2),A.spread.number*(A.inset?-2:2));A.inset?(d.path(h),d.ctx.clip(),d.mask(p)):(d.mask(h),d.ctx.clip(),d.path(p)),d.ctx.shadowOffsetX=A.offsetX.number+v,d.ctx.shadowOffsetY=A.offsetY.number,d.ctx.shadowColor=po(A.color),d.ctx.shadowBlur=A.blur.number,d.ctx.fillStyle=A.inset?po(A.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:s=0,l=0,u=a,f.label=3;case 3:return l<u.length?(c=u[l],c.style!==0&&!Pc(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,r.curves,3)];case 6:return f.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,r.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,r.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,n,o,a,i){return ra(this,void 0,void 0,function(){var s,l,u,c,d,f,A,h,v,p,g,m,y,b,x,w,x,w;return Qo(this,function(C){return this.ctx.save(),s=hQe(a,o),l=qH(a,o),i===2&&(this.path(l),this.ctx.clip()),bi(l[0])?(u=l[0].start.x,c=l[0].start.y):(u=l[0].x,c=l[0].y),bi(l[1])?(d=l[1].end.x,f=l[1].end.y):(d=l[1].x,f=l[1].y),o===0||o===2?A=Math.abs(u-d):A=Math.abs(c-f),this.ctx.beginPath(),i===3?this.formatPath(s):this.formatPath(l.slice(0,2)),h=n<3?n*3:n*2,v=n<3?n*2:n,i===3&&(h=n,v=n),p=!0,A<=h*2?p=!1:A<=h*2+v?(g=A/(2*h+v),h*=g,v*=g):(m=Math.floor((A+v)/(h+v)),y=(A-m*h)/(m-1),b=(A-(m+1)*h)/m,v=b<=0||Math.abs(v-y)<Math.abs(v-b)?y:b),p&&(i===3?this.ctx.setLineDash([0,h+v]):this.ctx.setLineDash([h,v])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=po(r),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(bi(l[0])&&(x=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new wt(x.end.x,x.end.y),new wt(w.start.x,w.start.y)]),this.ctx.stroke()),bi(l[1])&&(x=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new wt(x.end.x,x.end.y),new wt(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return ra(this,void 0,void 0,function(){var n;return Qo(this,function(o){switch(o.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=po(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=dQe(r),[4,this.renderStack(n)];case 1:return o.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(ore),CQe=function(e){return e instanceof Hte||e instanceof Nte?!0:e instanceof rO&&e.type!==Jw&&e.type!==Zw},SQe=function(e,t){switch(e){case 0:return rC(t);case 2:return aQe(t);case 1:default:return nC(t)}},_Qe=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},BQe=["-apple-system","system-ui"],TQe=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return BQe.indexOf(t)===-1}):e},EQe=function(e){Ts(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.canvas=n.canvas?n.canvas:document.createElement("canvas"),o.ctx=o.canvas.getContext("2d"),o.options=n,o.canvas.width=Math.floor(n.width*n.scale),o.canvas.height=Math.floor(n.height*n.scale),o.canvas.style.width=n.width+"px",o.canvas.style.height=n.height+"px",o.ctx.scale(o.options.scale,o.options.scale),o.ctx.translate(-n.x,-n.y),o.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),o}return t.prototype.render=function(r){return ra(this,void 0,void 0,function(){var n,o;return Qo(this,function(a){switch(a.label){case 0:return n=kM(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,IQe(n)];case 1:return o=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=po(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(o,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(ore),IQe=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},RQe=function(){function e(t){var r=t.id,n=t.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Jb([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Jb([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Jb([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Jb([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),DQe=function(){function e(t,r){var n;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new RQe({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new q6e(this,t)}return e.instanceCount=1,e}(),MQe=function(e,t){return t===void 0&&(t={}),PQe(e,t)};typeof window!="undefined"&&Zte.setContext(window);var PQe=function(e,t){return ra(void 0,void 0,void 0,function(){var r,n,o,a,i,s,l,u,c,d,f,A,h,v,p,g,m,y,b,x,C,w,C,_,B,T,E,I,R,D,F,M,$,O,Q,V,W,Z,te,ae;return Qo(this,function(re){switch(re.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return o={allowTaint:(_=t.allowTaint)!==null&&_!==void 0?_:!1,imageTimeout:(B=t.imageTimeout)!==null&&B!==void 0?B:15e3,proxy:t.proxy,useCORS:(T=t.useCORS)!==null&&T!==void 0?T:!1},a=bM({logging:(E=t.logging)!==null&&E!==void 0?E:!0,cache:t.cache},o),i={windowWidth:(I=t.windowWidth)!==null&&I!==void 0?I:n.innerWidth,windowHeight:(R=t.windowHeight)!==null&&R!==void 0?R:n.innerHeight,scrollX:(D=t.scrollX)!==null&&D!==void 0?D:n.pageXOffset,scrollY:(F=t.scrollY)!==null&&F!==void 0?F:n.pageYOffset},s=new hu(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new DQe(a,s),u=(M=t.foreignObjectRendering)!==null&&M!==void 0?M:!1,c={allowTaint:($=t.allowTaint)!==null&&$!==void 0?$:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new jH(l,e,c),f=d.clonedReferenceElement,f?[4,d.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return A=re.sent(),h=nO(f)||F6e(f)?cNe(f.ownerDocument):u_(l,f),v=h.width,p=h.height,g=h.left,m=h.top,y=FQe(l,f,t.backgroundColor),b={canvas:t.canvas,backgroundColor:y,scale:(Q=(O=t.scale)!==null&&O!==void 0?O:n.devicePixelRatio)!==null&&Q!==void 0?Q:1,x:((V=t.x)!==null&&V!==void 0?V:0)+g,y:((W=t.y)!==null&&W!==void 0?W:0)+m,width:(Z=t.width)!==null&&Z!==void 0?Z:Math.ceil(v),height:(te=t.height)!==null&&te!==void 0?te:Math.ceil(p)},u?(l.logger.debug("Document cloned, using foreign object rendering"),C=new EQe(l,b),[4,C.render(f)]):[3,3];case 2:return x=re.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+g+","+m+" with size "+v+"x"+p+" using computed rendering"),l.logger.debug("Starting DOM parsing"),w=Vte(l,f),y===w.styles.backgroundColor&&(w.styles.backgroundColor=ou.TRANSPARENT),l.logger.debug("Starting renderer for element at "+b.x+","+b.y+" with size "+b.width+"x"+b.height),C=new wQe(l,b),[4,C.render(w)];case 4:x=re.sent(),re.label=5;case 5:return(!((ae=t.removeContainer)!==null&&ae!==void 0)||ae)&&(jH.destroy(A)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,x]}})})},FQe=function(e,t,r){var n=t.ownerDocument,o=n.documentElement?I0(e,getComputedStyle(n.documentElement).backgroundColor):ou.TRANSPARENT,a=n.body?I0(e,getComputedStyle(n.body).backgroundColor):ou.TRANSPARENT,i=typeof r=="string"?I0(e,r):r===null?ou.TRANSPARENT:4294967295;return t===n.documentElement?Pc(o)?Pc(a)?i:a:o:i};const wRt=(e,t)=>{let r=e.split(","),n=r[0].match(/:(.*?);/)[1],o=atob(r[1]),a=o.length,i=new Uint8Array(a);for(;a--;)i[a]=o.charCodeAt(a);return new File([i],t,{type:n})},CRt=e=>new Promise(t=>{try{const r=new FileReader;r.onload=n=>{n.target&&t(n.target.result)},r.readAsText(e)}catch(r){window.$message.error("文件读取失败!")}}),are=(e,t=new Date().getTime(),r)=>{const n=document.createElement("a");n.download=`${t}.${r}`,n.style.display="none",n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},SRt=(e,t=new Date().getTime(),r)=>{const n=new Blob([e]);are(URL.createObjectURL(n),t,r)};function kQe(e){return typeof e=="string"}function LQe(e){return typeof e=="number"}function _Rt(e){return Array.isArray(e)}const BRt=(e,t=2)=>kQe(e)?parseFloat(parseFloat(e).toFixed(2)):e,OQe=e=>LQe(e)?`${e}`:cUe(e)?JSON.stringify(e):e;function $Qe(){this.__data__=[],this.size=0}var UQe=$Qe;function NQe(e,t){return e===t||e!==e&&t!==t}var y_=NQe,HQe=y_;function zQe(e,t){for(var r=e.length;r--;)if(HQe(e[r][0],t))return r;return-1}var b_=zQe,QQe=b_,VQe=Array.prototype,WQe=VQe.splice;function GQe(e){var t=this.__data__,r=QQe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():WQe.call(t,r,1),--this.size,!0}var KQe=GQe,jQe=b_;function YQe(e){var t=this.__data__,r=jQe(t,e);return r<0?void 0:t[r][1]}var XQe=YQe,qQe=b_;function ZQe(e){return qQe(this.__data__,e)>-1}var JQe=ZQe,eVe=b_;function tVe(e,t){var r=this.__data__,n=eVe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var rVe=tVe,nVe=UQe,oVe=KQe,aVe=XQe,iVe=JQe,sVe=rVe;function mp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mp.prototype.clear=nVe;mp.prototype.delete=oVe;mp.prototype.get=aVe;mp.prototype.has=iVe;mp.prototype.set=sVe;var x_=mp,lVe=x_;function uVe(){this.__data__=new lVe,this.size=0}var cVe=uVe;function dVe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var fVe=dVe;function AVe(e){return this.__data__.get(e)}var hVe=AVe;function vVe(e){return this.__data__.has(e)}var pVe=vVe,gVe=kA,mVe=ii,yVe="[object AsyncFunction]",bVe="[object Function]",xVe="[object GeneratorFunction]",wVe="[object Proxy]";function CVe(e){if(!mVe(e))return!1;var t=gVe(e);return t==bVe||t==xVe||t==yVe||t==wVe}var oO=CVe,SVe=Bs,_Ve=SVe["__core-js_shared__"],BVe=_Ve,cT=BVe,JH=function(){var e=/[^.]+$/.exec(cT&&cT.keys&&cT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function TVe(e){return!!JH&&JH in e}var EVe=TVe,IVe=Function.prototype,RVe=IVe.toString;function DVe(e){if(e!=null){try{return RVe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var ire=DVe,MVe=oO,PVe=EVe,FVe=ii,kVe=ire,LVe=/[\\^$.*+?()[\]{}|]/g,OVe=/^\[object .+?Constructor\]$/,$Ve=Function.prototype,UVe=Object.prototype,NVe=$Ve.toString,HVe=UVe.hasOwnProperty,zVe=RegExp("^"+NVe.call(HVe).replace(LVe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QVe(e){if(!FVe(e)||PVe(e))return!1;var t=MVe(e)?zVe:OVe;return t.test(kVe(e))}var VVe=QVe;function WVe(e,t){return e==null?void 0:e[t]}var GVe=WVe,KVe=VVe,jVe=GVe;function YVe(e,t){var r=jVe(e,t);return KVe(r)?r:void 0}var LA=YVe,XVe=LA,qVe=Bs,ZVe=XVe(qVe,"Map"),aO=ZVe,JVe=LA,e7e=JVe(Object,"create"),w_=e7e,ez=w_;function t7e(){this.__data__=ez?ez(null):{},this.size=0}var r7e=t7e;function n7e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var o7e=n7e,a7e=w_,i7e="__lodash_hash_undefined__",s7e=Object.prototype,l7e=s7e.hasOwnProperty;function u7e(e){var t=this.__data__;if(a7e){var r=t[e];return r===i7e?void 0:r}return l7e.call(t,e)?t[e]:void 0}var c7e=u7e,d7e=w_,f7e=Object.prototype,A7e=f7e.hasOwnProperty;function h7e(e){var t=this.__data__;return d7e?t[e]!==void 0:A7e.call(t,e)}var v7e=h7e,p7e=w_,g7e="__lodash_hash_undefined__";function m7e(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=p7e&&t===void 0?g7e:t,this}var y7e=m7e,b7e=r7e,x7e=o7e,w7e=c7e,C7e=v7e,S7e=y7e;function yp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yp.prototype.clear=b7e;yp.prototype.delete=x7e;yp.prototype.get=w7e;yp.prototype.has=C7e;yp.prototype.set=S7e;var _7e=yp,tz=_7e,B7e=x_,T7e=aO;function E7e(){this.size=0,this.__data__={hash:new tz,map:new(T7e||B7e),string:new tz}}var I7e=E7e;function R7e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var D7e=R7e,M7e=D7e;function P7e(e,t){var r=e.__data__;return M7e(t)?r[typeof t=="string"?"string":"hash"]:r.map}var C_=P7e,F7e=C_;function k7e(e){var t=F7e(this,e).delete(e);return this.size-=t?1:0,t}var L7e=k7e,O7e=C_;function $7e(e){return O7e(this,e).get(e)}var U7e=$7e,N7e=C_;function H7e(e){return N7e(this,e).has(e)}var z7e=H7e,Q7e=C_;function V7e(e,t){var r=Q7e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var W7e=V7e,G7e=I7e,K7e=L7e,j7e=U7e,Y7e=z7e,X7e=W7e;function bp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bp.prototype.clear=G7e;bp.prototype.delete=K7e;bp.prototype.get=j7e;bp.prototype.has=Y7e;bp.prototype.set=X7e;var sre=bp,q7e=x_,Z7e=aO,J7e=sre,e9e=200;function t9e(e,t){var r=this.__data__;if(r instanceof q7e){var n=r.__data__;if(!Z7e||n.length<e9e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new J7e(n)}return r.set(e,t),this.size=r.size,this}var r9e=t9e,n9e=x_,o9e=cVe,a9e=fVe,i9e=hVe,s9e=pVe,l9e=r9e;function xp(e){var t=this.__data__=new n9e(e);this.size=t.size}xp.prototype.clear=o9e;xp.prototype.delete=a9e;xp.prototype.get=i9e;xp.prototype.has=s9e;xp.prototype.set=l9e;var lre=xp;function u9e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var c9e=u9e,d9e=LA,f9e=function(){try{var e=d9e(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),ure=f9e,rz=ure;function A9e(e,t,r){t=="__proto__"&&rz?rz(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var iO=A9e,h9e=iO,v9e=y_,p9e=Object.prototype,g9e=p9e.hasOwnProperty;function m9e(e,t,r){var n=e[t];(!(g9e.call(e,t)&&v9e(n,r))||r===void 0&&!(t in e))&&h9e(e,t,r)}var sO=m9e,y9e=sO,b9e=iO;function x9e(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?b9e(r,s,l):y9e(r,s,l)}return r}var ky=x9e;function w9e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var C9e=w9e,S9e=kA,_9e=Iu,B9e="[object Arguments]";function T9e(e){return _9e(e)&&S9e(e)==B9e}var E9e=T9e,nz=E9e,I9e=Iu,cre=Object.prototype,R9e=cre.hasOwnProperty,D9e=cre.propertyIsEnumerable,M9e=nz(function(){return arguments}())?nz:function(e){return I9e(e)&&R9e.call(e,"callee")&&!D9e.call(e,"callee")},S_=M9e,P9e=Array.isArray,Bl=P9e,aC={exports:{}};function F9e(){return!1}var k9e=F9e;aC.exports;(function(e,t){var r=Bs,n=k9e,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(aC,aC.exports);var lO=aC.exports,L9e=9007199254740991,O9e=/^(?:0|[1-9]\d*)$/;function $9e(e,t){var r=typeof e;return t=t==null?L9e:t,!!t&&(r=="number"||r!="symbol"&&O9e.test(e))&&e>-1&&e%1==0&&e<t}var __=$9e,U9e=9007199254740991;function N9e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U9e}var uO=N9e,H9e=kA,z9e=uO,Q9e=Iu,V9e="[object Arguments]",W9e="[object Array]",G9e="[object Boolean]",K9e="[object Date]",j9e="[object Error]",Y9e="[object Function]",X9e="[object Map]",q9e="[object Number]",Z9e="[object Object]",J9e="[object RegExp]",eWe="[object Set]",tWe="[object String]",rWe="[object WeakMap]",nWe="[object ArrayBuffer]",oWe="[object DataView]",aWe="[object Float32Array]",iWe="[object Float64Array]",sWe="[object Int8Array]",lWe="[object Int16Array]",uWe="[object Int32Array]",cWe="[object Uint8Array]",dWe="[object Uint8ClampedArray]",fWe="[object Uint16Array]",AWe="[object Uint32Array]",mn={};mn[aWe]=mn[iWe]=mn[sWe]=mn[lWe]=mn[uWe]=mn[cWe]=mn[dWe]=mn[fWe]=mn[AWe]=!0;mn[V9e]=mn[W9e]=mn[nWe]=mn[G9e]=mn[oWe]=mn[K9e]=mn[j9e]=mn[Y9e]=mn[X9e]=mn[q9e]=mn[Z9e]=mn[J9e]=mn[eWe]=mn[tWe]=mn[rWe]=!1;function hWe(e){return Q9e(e)&&z9e(e.length)&&!!mn[H9e(e)]}var vWe=hWe;function pWe(e){return function(t){return e(t)}}var cO=pWe,iC={exports:{}};iC.exports;(function(e,t){var r=Zee,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch(u){}}();e.exports=s})(iC,iC.exports);var dO=iC.exports,gWe=vWe,mWe=cO,oz=dO,az=oz&&oz.isTypedArray,yWe=az?mWe(az):gWe,dre=yWe,bWe=C9e,xWe=S_,wWe=Bl,CWe=lO,SWe=__,_We=dre,BWe=Object.prototype,TWe=BWe.hasOwnProperty;function EWe(e,t){var r=wWe(e),n=!r&&xWe(e),o=!r&&!n&&CWe(e),a=!r&&!n&&!o&&_We(e),i=r||n||o||a,s=i?bWe(e.length,String):[],l=s.length;for(var u in e)(t||TWe.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||SWe(u,l)))&&s.push(u);return s}var fre=EWe,IWe=Object.prototype;function RWe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||IWe;return e===r}var fO=RWe;function DWe(e,t){return function(r){return e(t(r))}}var Are=DWe,MWe=Are,PWe=MWe(Object.keys,Object),FWe=PWe,kWe=fO,LWe=FWe,OWe=Object.prototype,$We=OWe.hasOwnProperty;function UWe(e){if(!kWe(e))return LWe(e);var t=[];for(var r in Object(e))$We.call(e,r)&&r!="constructor"&&t.push(r);return t}var NWe=UWe,HWe=oO,zWe=uO;function QWe(e){return e!=null&&zWe(e.length)&&!HWe(e)}var Ly=QWe,VWe=fre,WWe=NWe,GWe=Ly;function KWe(e){return GWe(e)?VWe(e):WWe(e)}var B_=KWe,jWe=ky,YWe=B_;function XWe(e,t){return e&&jWe(t,YWe(t),e)}var qWe=XWe;function ZWe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var JWe=ZWe,eGe=ii,tGe=fO,rGe=JWe,nGe=Object.prototype,oGe=nGe.hasOwnProperty;function aGe(e){if(!eGe(e))return rGe(e);var t=tGe(e),r=[];for(var n in e)n=="constructor"&&(t||!oGe.call(e,n))||r.push(n);return r}var iGe=aGe,sGe=fre,lGe=iGe,uGe=Ly;function cGe(e){return uGe(e)?sGe(e,!0):lGe(e)}var Oy=cGe,dGe=ky,fGe=Oy;function AGe(e,t){return e&&dGe(t,fGe(t),e)}var hGe=AGe,sC={exports:{}};sC.exports;(function(e,t){var r=Bs,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=l})(sC,sC.exports);var hre=sC.exports;function vGe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var vre=vGe;function pGe(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}var gGe=pGe;function mGe(){return[]}var pre=mGe,yGe=gGe,bGe=pre,xGe=Object.prototype,wGe=xGe.propertyIsEnumerable,iz=Object.getOwnPropertySymbols,CGe=iz?function(e){return e==null?[]:(e=Object(e),yGe(iz(e),function(t){return wGe.call(e,t)}))}:bGe,AO=CGe,SGe=ky,_Ge=AO;function BGe(e,t){return SGe(e,_Ge(e),t)}var TGe=BGe;function EGe(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var hO=EGe,IGe=Are,RGe=IGe(Object.getPrototypeOf,Object),vO=RGe,DGe=hO,MGe=vO,PGe=AO,FGe=pre,kGe=Object.getOwnPropertySymbols,LGe=kGe?function(e){for(var t=[];e;)DGe(t,PGe(e)),e=MGe(e);return t}:FGe,gre=LGe,OGe=ky,$Ge=gre;function UGe(e,t){return OGe(e,$Ge(e),t)}var NGe=UGe,HGe=hO,zGe=Bl;function QGe(e,t,r){var n=t(e);return zGe(e)?n:HGe(n,r(e))}var mre=QGe,VGe=mre,WGe=AO,GGe=B_;function KGe(e){return VGe(e,GGe,WGe)}var jGe=KGe,YGe=mre,XGe=gre,qGe=Oy;function ZGe(e){return YGe(e,qGe,XGe)}var JGe=ZGe,eKe=LA,tKe=Bs,rKe=eKe(tKe,"DataView"),nKe=rKe,oKe=LA,aKe=Bs,iKe=oKe(aKe,"Promise"),sKe=iKe,lKe=LA,uKe=Bs,cKe=lKe(uKe,"Set"),dKe=cKe,fKe=LA,AKe=Bs,hKe=fKe(AKe,"WeakMap"),vKe=hKe,zM=nKe,QM=aO,VM=sKe,WM=dKe,GM=vKe,yre=kA,wp=ire,sz="[object Map]",pKe="[object Object]",lz="[object Promise]",uz="[object Set]",cz="[object WeakMap]",dz="[object DataView]",gKe=wp(zM),mKe=wp(QM),yKe=wp(VM),bKe=wp(WM),xKe=wp(GM),df=yre;(zM&&df(new zM(new ArrayBuffer(1)))!=dz||QM&&df(new QM)!=sz||VM&&df(VM.resolve())!=lz||WM&&df(new WM)!=uz||GM&&df(new GM)!=cz)&&(df=function(e){var t=yre(e),r=t==pKe?e.constructor:void 0,n=r?wp(r):"";if(n)switch(n){case gKe:return dz;case mKe:return sz;case yKe:return lz;case bKe:return uz;case xKe:return cz}return t});var pO=df,wKe=Object.prototype,CKe=wKe.hasOwnProperty;function SKe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&CKe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var _Ke=SKe,BKe=Bs,TKe=BKe.Uint8Array,EKe=TKe,fz=EKe;function IKe(e){var t=new e.constructor(e.byteLength);return new fz(t).set(new fz(e)),t}var gO=IKe,RKe=gO;function DKe(e,t){var r=t?RKe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var MKe=DKe,PKe=/\w*$/;function FKe(e){var t=new e.constructor(e.source,PKe.exec(e));return t.lastIndex=e.lastIndex,t}var kKe=FKe,Az=My,hz=Az?Az.prototype:void 0,vz=hz?hz.valueOf:void 0;function LKe(e){return vz?Object(vz.call(e)):{}}var OKe=LKe,$Ke=gO;function UKe(e,t){var r=t?$Ke(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var bre=UKe,NKe=gO,HKe=MKe,zKe=kKe,QKe=OKe,VKe=bre,WKe="[object Boolean]",GKe="[object Date]",KKe="[object Map]",jKe="[object Number]",YKe="[object RegExp]",XKe="[object Set]",qKe="[object String]",ZKe="[object Symbol]",JKe="[object ArrayBuffer]",eje="[object DataView]",tje="[object Float32Array]",rje="[object Float64Array]",nje="[object Int8Array]",oje="[object Int16Array]",aje="[object Int32Array]",ije="[object Uint8Array]",sje="[object Uint8ClampedArray]",lje="[object Uint16Array]",uje="[object Uint32Array]";function cje(e,t,r){var n=e.constructor;switch(t){case JKe:return NKe(e);case WKe:case GKe:return new n(+e);case eje:return HKe(e,r);case tje:case rje:case nje:case oje:case aje:case ije:case sje:case lje:case uje:return VKe(e,r);case KKe:return new n;case jKe:case qKe:return new n(e);case YKe:return zKe(e);case XKe:return new n;case ZKe:return QKe(e)}}var dje=cje,fje=ii,pz=Object.create,Aje=function(){function e(){}return function(t){if(!fje(t))return{};if(pz)return pz(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),hje=Aje,vje=hje,pje=vO,gje=fO;function mje(e){return typeof e.constructor=="function"&&!gje(e)?vje(pje(e)):{}}var xre=mje,yje=pO,bje=Iu,xje="[object Map]";function wje(e){return bje(e)&&yje(e)==xje}var Cje=wje,Sje=Cje,_je=cO,gz=dO,mz=gz&&gz.isMap,Bje=mz?_je(mz):Sje,Tje=Bje,Eje=pO,Ije=Iu,Rje="[object Set]";function Dje(e){return Ije(e)&&Eje(e)==Rje}var Mje=Dje,Pje=Mje,Fje=cO,yz=dO,bz=yz&&yz.isSet,kje=bz?Fje(bz):Pje,Lje=kje,Oje=lre,$je=c9e,Uje=sO,Nje=qWe,Hje=hGe,zje=hre,Qje=vre,Vje=TGe,Wje=NGe,Gje=jGe,Kje=JGe,jje=pO,Yje=_Ke,Xje=dje,qje=xre,Zje=Bl,Jje=lO,eYe=Tje,tYe=ii,rYe=Lje,nYe=B_,oYe=Oy,aYe=1,iYe=2,sYe=4,wre="[object Arguments]",lYe="[object Array]",uYe="[object Boolean]",cYe="[object Date]",dYe="[object Error]",Cre="[object Function]",fYe="[object GeneratorFunction]",AYe="[object Map]",hYe="[object Number]",Sre="[object Object]",vYe="[object RegExp]",pYe="[object Set]",gYe="[object String]",mYe="[object Symbol]",yYe="[object WeakMap]",bYe="[object ArrayBuffer]",xYe="[object DataView]",wYe="[object Float32Array]",CYe="[object Float64Array]",SYe="[object Int8Array]",_Ye="[object Int16Array]",BYe="[object Int32Array]",TYe="[object Uint8Array]",EYe="[object Uint8ClampedArray]",IYe="[object Uint16Array]",RYe="[object Uint32Array]",fn={};fn[wre]=fn[lYe]=fn[bYe]=fn[xYe]=fn[uYe]=fn[cYe]=fn[wYe]=fn[CYe]=fn[SYe]=fn[_Ye]=fn[BYe]=fn[AYe]=fn[hYe]=fn[Sre]=fn[vYe]=fn[pYe]=fn[gYe]=fn[mYe]=fn[TYe]=fn[EYe]=fn[IYe]=fn[RYe]=!0;fn[dYe]=fn[Cre]=fn[yYe]=!1;function Vx(e,t,r,n,o,a){var i,s=t&aYe,l=t&iYe,u=t&sYe;if(r&&(i=o?r(e,n,o,a):r(e)),i!==void 0)return i;if(!tYe(e))return e;var c=Zje(e);if(c){if(i=Yje(e),!s)return Qje(e,i)}else{var d=jje(e),f=d==Cre||d==fYe;if(Jje(e))return zje(e,s);if(d==Sre||d==wre||f&&!o){if(i=l||f?{}:qje(e),!s)return l?Wje(e,Hje(i,e)):Vje(e,Nje(i,e))}else{if(!fn[d])return o?e:{};i=Xje(e,d,s)}}a||(a=new Oje);var A=a.get(e);if(A)return A;a.set(e,i),rYe(e)?e.forEach(function(p){i.add(Vx(p,t,r,p,e,a))}):eYe(e)&&e.forEach(function(p,g){i.set(g,Vx(p,t,r,g,e,a))});var h=u?l?Kje:Gje:l?oYe:nYe,v=c?void 0:h(e);return $je(v||e,function(p,g){v&&(g=p,p=e[g]),Uje(i,g,Vx(p,t,r,g,e,a))}),i}var DYe=Vx,MYe=DYe,PYe=1,FYe=4;function kYe(e){return MYe(e,PYe|FYe)}var LYe=kYe;const xz=ai(LYe);var OYe=(e=>(e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e))(OYe||{}),$Ye=(e=>(e.DRAG_KEY="ChartData",e))($Ye||{}),UYe=(e=>(e.CHART="SaveChart",e.CHART_TO_PREVIEW="ChartToPreview",e.JSON="SaveJSON",e.CLOSE="close",e))(UYe||{}),NYe=(e=>(e.ARROW_UP="up",e.ARROW_RIGHT="right",e.ARROW_DOWN="down",e.ARROW_LEFT="left",e.DELETE="delete",e.COPY="copy",e.CUT="cut",e.PARSE="parse",e.TOP="top",e.BOTTOM="bottom",e.UP="up",e.DOWN="down",e.CLEAR="clear",e.GROUP="group",e.UN_GROUP="unGroup",e.BACK="back",e.FORWORD="forward",e.SAVE="save",e.LOCK="lock",e.UNLOCK="unLock",e.HIDE="hide",e.SHOW="show",e))(NYe||{}),KM=(e=>(e.CTRL="ctrl",e.SHIFT="shift",e.ALT=" alt",e.CTRL_SOURCE_KEY="control",e.SHIFT_SOURCE_KEY="shift",e.ALT_SOURCE_KEY="alt",e.SPACE="Space",e))(KM||{}),HYe=(e=>(e.CTRL="⌘",e.SHIFT="⇧",e.ALT="⌥",e.CTRL_SOURCE_KEY="⌘",e.SHIFT_SOURCE_KEY="⇧",e.ALT_SOURCE_KEY="⌥",e.SPACE="Space",e))(HYe||{}),zYe=(e=>(e[e.PENDING=0]="PENDING",e[e.START=1]="START",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE",e))(zYe||{}),QYe=(e=>(e.ON_CLICK="click",e.ON_DBL_CLICK="dblclick",e.ON_MOUSE_ENTER="mouseenter",e.ON_MOUSE_LEAVE="mouseleave",e))(QYe||{}),VYe=(e=>(e.CLICK="click",e.CHANGE="change",e))(VYe||{});const TRt="componentInteractEventKey";var WYe=(e=>(e.VNODE_MOUNTED="vnodeMounted",e.VNODE_BEFORE_MOUNT="vnodeBeforeMount",e))(WYe||{});const GYe=["vnodeBeforeMount","vnodeMounted","click","dblclick","mouseenter","mouseleave","filter"],KYe=["javascript:"],ERt=()=>!1,IRt=(e=10)=>Number(Math.random().toString().substring(2,e)+Date.now()).toString(36),RRt=(e,t={})=>()=>S(hL,t,{default:()=>S(e)}),DRt=(e,t={},r="span")=>()=>S(r,t,{default:()=>window.$t(e)}),jYe=()=>uNe,MRt=(e,t)=>{if(e)return Zb.isFullscreen;if(t)return Zb.isEnabled;if(Zb.isEnabled){Zb.toggle();return}window.$message.warning("您的浏览器不支持全屏功能!")},PRt=(e,t,r)=>{t&&(e.attr.x=t),r&&(e.attr.y=r)},FRt=(e,t,r,n,o)=>{e&&e.addEventListener(t,lNe(r,n||300,{leading:!0,trailing:!1}),o)},kRt=(e,t,r)=>{e&&e.removeEventListener(t,r)},LRt=(e,t)=>{if(!e){window.$message.error("导出失败!"),t&&t();return}MQe(e,{backgroundColor:null,allowTaint:!0,useCORS:!0}).then(r=>{window.$message.success("导出成功!"),are(r.toDataURL(),void 0,"png"),t&&t()})},ORt=(e,t,r,n,o,a)=>{try{if(!r)return e;const s=new Function("data","res",r)(xz(e),xz(t)),l=n?OQe(s):s;return a&&a(l),l}catch(i){return o&&o(i),"函数执行错误"}},$Rt=(e,t)=>{switch(t){case Xh.SECOND:return e*1e3;case Xh.MINUTE:return e*1e3*60;case Xh.HOUR:return e*1e3*60*60;case Xh.DAY:return e*1e3*60*60*24;default:return e*1e3}},URt=e=>{var n,o;const t=new Map([[17,KM.CTRL],[32,KM.SPACE]]),r=document.getElementById("keyboard-dress-show");if(r){if(!e){(n=window.onKeySpacePressHold)==null||n.call(window,!1),r.innerText="";return}e&&t.has(e)&&(e==32&&((o=window.onKeySpacePressHold)==null||o.call(window,!0)),r.innerText=`按下了「${t.get(e)}」键`)}},_re=e=>JSON.stringify(e,(t,r)=>typeof r=="function"?`${r}`:typeof r=="undefined"?null:r,2),wz=e=>{var t=Function;return new t("return "+e)()},Bre=e=>JSON.parse(e,(t,r)=>{if(GYe.includes(t)||typeof r=="string"&&KYe.some(o=>r.indexOf(o)>-1))return r;if(typeof r=="string"&&r.indexOf&&(r.indexOf("function")>-1||r.indexOf("=>")>-1))return wz(`(function(){return ${r}})()`);if(typeof r=="string"&&r.indexOf&&r.indexOf("return ")>-1){const n=r.indexOf("(");if(n>-1){const o=`function ${r.substring(n)}`;return wz(`(function(){return ${o}})()`)}}return r}),NRt=e=>{e&&(document.title=e)},HRt=()=>(window.onbeforeunload=function(e){return e=e||window.event,e&&(e.returnValue="您确定要离开当前页面吗?请确认是否保存数据!"),"您确定要离开当前页面吗?请确认是否保存数据!"},()=>{window.onbeforeunload=null});var YYe={exports:{}};function XYe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dT={exports:{}};const qYe={},ZYe=Object.freeze(Object.defineProperty({__proto__:null,default:qYe},Symbol.toStringTag,{value:"Module"})),JYe=sZ(ZYe);var Cz;function Lr(){return Cz||(Cz=1,function(e,t){(function(r,n){e.exports=n()})(cr,function(){var r=r||function(n,o){var a;if(typeof window!="undefined"&&window.crypto&&(a=window.crypto),typeof self!="undefined"&&self.crypto&&(a=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window!="undefined"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof cr!="undefined"&&cr.crypto&&(a=cr.crypto),!a&&typeof XYe=="function")try{a=JYe}catch(m){}var i=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function m(){}return function(y){var b;return m.prototype=y,b=new m,m.prototype=null,b}}(),l={},u=l.lib={},c=u.Base=function(){return{extend:function(m){var y=s(this);return m&&y.mixIn(m),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var y in m)m.hasOwnProperty(y)&&(this[y]=m[y]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=u.WordArray=c.extend({init:function(m,y){m=this.words=m||[],y!=o?this.sigBytes=y:this.sigBytes=m.length*4},toString:function(m){return(m||A).stringify(this)},concat:function(m){var y=this.words,b=m.words,x=this.sigBytes,w=m.sigBytes;if(this.clamp(),x%4)for(var C=0;C<w;C++){var _=b[C>>>2]>>>24-C%4*8&255;y[x+C>>>2]|=_<<24-(x+C)%4*8}else for(var B=0;B<w;B+=4)y[x+B>>>2]=b[B>>>2];return this.sigBytes+=w,this},clamp:function(){var m=this.words,y=this.sigBytes;m[y>>>2]&=4294967295<<32-y%4*8,m.length=n.ceil(y/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var y=[],b=0;b<m;b+=4)y.push(i());return new d.init(y,m)}}),f=l.enc={},A=f.Hex={stringify:function(m){for(var y=m.words,b=m.sigBytes,x=[],w=0;w<b;w++){var C=y[w>>>2]>>>24-w%4*8&255;x.push((C>>>4).toString(16)),x.push((C&15).toString(16))}return x.join("")},parse:function(m){for(var y=m.length,b=[],x=0;x<y;x+=2)b[x>>>3]|=parseInt(m.substr(x,2),16)<<24-x%8*4;return new d.init(b,y/2)}},h=f.Latin1={stringify:function(m){for(var y=m.words,b=m.sigBytes,x=[],w=0;w<b;w++){var C=y[w>>>2]>>>24-w%4*8&255;x.push(String.fromCharCode(C))}return x.join("")},parse:function(m){for(var y=m.length,b=[],x=0;x<y;x++)b[x>>>2]|=(m.charCodeAt(x)&255)<<24-x%4*8;return new d.init(b,y)}},v=f.Utf8={stringify:function(m){try{return decodeURIComponent(escape(h.stringify(m)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(m){return h.parse(unescape(encodeURIComponent(m)))}},p=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=v.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var y,b=this._data,x=b.words,w=b.sigBytes,C=this.blockSize,_=C*4,B=w/_;m?B=n.ceil(B):B=n.max((B|0)-this._minBufferSize,0);var T=B*C,E=n.min(T*4,w);if(T){for(var I=0;I<T;I+=C)this._doProcessBlock(x,I);y=x.splice(0,T),b.sigBytes-=E}return new d.init(y,E)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});u.Hasher=p.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(m){return function(y,b){return new m.init(b).finalize(y)}},_createHmacHelper:function(m){return function(y,b){return new g.HMAC.init(m,b).finalize(y)}}});var g=l.algo={};return l}(Math);return r})}(dT)),dT.exports}var fT={exports:{}},Sz;function T_(){return Sz||(Sz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(n){var o=r,a=o.lib,i=a.Base,s=a.WordArray,l=o.x64={};l.Word=i.extend({init:function(u,c){this.high=u,this.low=c}}),l.WordArray=i.extend({init:function(u,c){u=this.words=u||[],c!=n?this.sigBytes=c:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,c=u.length,d=[],f=0;f<c;f++){var A=u[f];d.push(A.high),d.push(A.low)}return s.create(d,this.sigBytes)},clone:function(){for(var u=i.clone.call(this),c=u.words=this.words.slice(0),d=c.length,f=0;f<d;f++)c[f]=c[f].clone();return u}})}(),r})}(fT)),fT.exports}var AT={exports:{}},_z;function eXe(){return _z||(_z=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,a=o.WordArray,i=a.init,s=a.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,c=[],d=0;d<u;d++)c[d>>>2]|=l[d]<<24-d%4*8;i.call(this,c,u)}else i.apply(this,arguments)};s.prototype=a}}(),r.lib.WordArray})}(AT)),AT.exports}var hT={exports:{}},Bz;function tXe(){return Bz||(Bz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,i=n.enc;i.Utf16=i.Utf16BE={stringify:function(l){for(var u=l.words,c=l.sigBytes,d=[],f=0;f<c;f+=2){var A=u[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(A))}return d.join("")},parse:function(l){for(var u=l.length,c=[],d=0;d<u;d++)c[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return a.create(c,u*2)}},i.Utf16LE={stringify:function(l){for(var u=l.words,c=l.sigBytes,d=[],f=0;f<c;f+=2){var A=s(u[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(A))}return d.join("")},parse:function(l){for(var u=l.length,c=[],d=0;d<u;d++)c[d>>>1]|=s(l.charCodeAt(d)<<16-d%2*16);return a.create(c,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(hT)),hT.exports}var vT={exports:{}},Tz;function Cp(){return Tz||(Tz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,i=n.enc;i.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,d=this._map;l.clamp();for(var f=[],A=0;A<c;A+=3)for(var h=u[A>>>2]>>>24-A%4*8&255,v=u[A+1>>>2]>>>24-(A+1)%4*8&255,p=u[A+2>>>2]>>>24-(A+2)%4*8&255,g=h<<16|v<<8|p,m=0;m<4&&A+m*.75<c;m++)f.push(d.charAt(g>>>6*(3-m)&63));var y=d.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l){var u=l.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var A=c.charAt(64);if(A){var h=l.indexOf(A);h!==-1&&(u=h)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,c){for(var d=[],f=0,A=0;A<u;A++)if(A%4){var h=c[l.charCodeAt(A-1)]<<A%4*2,v=c[l.charCodeAt(A)]>>>6-A%4*2,p=h|v;d[f>>>2]|=p<<24-f%4*8,f++}return a.create(d,f)}}(),r.enc.Base64})}(vT)),vT.exports}var pT={exports:{}},Ez;function rXe(){return Ez||(Ez=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,i=n.enc;i.Base64url={stringify:function(l,u=!0){var c=l.words,d=l.sigBytes,f=u?this._safe_map:this._map;l.clamp();for(var A=[],h=0;h<d;h+=3)for(var v=c[h>>>2]>>>24-h%4*8&255,p=c[h+1>>>2]>>>24-(h+1)%4*8&255,g=c[h+2>>>2]>>>24-(h+2)%4*8&255,m=v<<16|p<<8|g,y=0;y<4&&h+y*.75<d;y++)A.push(f.charAt(m>>>6*(3-y)&63));var b=f.charAt(64);if(b)for(;A.length%4;)A.push(b);return A.join("")},parse:function(l,u=!0){var c=l.length,d=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var A=0;A<d.length;A++)f[d.charCodeAt(A)]=A}var h=d.charAt(64);if(h){var v=l.indexOf(h);v!==-1&&(c=v)}return s(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,u,c){for(var d=[],f=0,A=0;A<u;A++)if(A%4){var h=c[l.charCodeAt(A-1)]<<A%4*2,v=c[l.charCodeAt(A)]>>>6-A%4*2,p=h|v;d[f>>>2]|=p<<24-f%4*8,f++}return a.create(d,f)}}(),r.enc.Base64url})}(pT)),pT.exports}var gT={exports:{}},Iz;function Sp(){return Iz||(Iz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(n){var o=r,a=o.lib,i=a.WordArray,s=a.Hasher,l=o.algo,u=[];(function(){for(var v=0;v<64;v++)u[v]=n.abs(n.sin(v+1))*4294967296|0})();var c=l.MD5=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,p){for(var g=0;g<16;g++){var m=p+g,y=v[m];v[m]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var b=this._hash.words,x=v[p+0],w=v[p+1],C=v[p+2],_=v[p+3],B=v[p+4],T=v[p+5],E=v[p+6],I=v[p+7],R=v[p+8],D=v[p+9],F=v[p+10],M=v[p+11],$=v[p+12],O=v[p+13],Q=v[p+14],V=v[p+15],W=b[0],Z=b[1],te=b[2],ae=b[3];W=d(W,Z,te,ae,x,7,u[0]),ae=d(ae,W,Z,te,w,12,u[1]),te=d(te,ae,W,Z,C,17,u[2]),Z=d(Z,te,ae,W,_,22,u[3]),W=d(W,Z,te,ae,B,7,u[4]),ae=d(ae,W,Z,te,T,12,u[5]),te=d(te,ae,W,Z,E,17,u[6]),Z=d(Z,te,ae,W,I,22,u[7]),W=d(W,Z,te,ae,R,7,u[8]),ae=d(ae,W,Z,te,D,12,u[9]),te=d(te,ae,W,Z,F,17,u[10]),Z=d(Z,te,ae,W,M,22,u[11]),W=d(W,Z,te,ae,$,7,u[12]),ae=d(ae,W,Z,te,O,12,u[13]),te=d(te,ae,W,Z,Q,17,u[14]),Z=d(Z,te,ae,W,V,22,u[15]),W=f(W,Z,te,ae,w,5,u[16]),ae=f(ae,W,Z,te,E,9,u[17]),te=f(te,ae,W,Z,M,14,u[18]),Z=f(Z,te,ae,W,x,20,u[19]),W=f(W,Z,te,ae,T,5,u[20]),ae=f(ae,W,Z,te,F,9,u[21]),te=f(te,ae,W,Z,V,14,u[22]),Z=f(Z,te,ae,W,B,20,u[23]),W=f(W,Z,te,ae,D,5,u[24]),ae=f(ae,W,Z,te,Q,9,u[25]),te=f(te,ae,W,Z,_,14,u[26]),Z=f(Z,te,ae,W,R,20,u[27]),W=f(W,Z,te,ae,O,5,u[28]),ae=f(ae,W,Z,te,C,9,u[29]),te=f(te,ae,W,Z,I,14,u[30]),Z=f(Z,te,ae,W,$,20,u[31]),W=A(W,Z,te,ae,T,4,u[32]),ae=A(ae,W,Z,te,R,11,u[33]),te=A(te,ae,W,Z,M,16,u[34]),Z=A(Z,te,ae,W,Q,23,u[35]),W=A(W,Z,te,ae,w,4,u[36]),ae=A(ae,W,Z,te,B,11,u[37]),te=A(te,ae,W,Z,I,16,u[38]),Z=A(Z,te,ae,W,F,23,u[39]),W=A(W,Z,te,ae,O,4,u[40]),ae=A(ae,W,Z,te,x,11,u[41]),te=A(te,ae,W,Z,_,16,u[42]),Z=A(Z,te,ae,W,E,23,u[43]),W=A(W,Z,te,ae,D,4,u[44]),ae=A(ae,W,Z,te,$,11,u[45]),te=A(te,ae,W,Z,V,16,u[46]),Z=A(Z,te,ae,W,C,23,u[47]),W=h(W,Z,te,ae,x,6,u[48]),ae=h(ae,W,Z,te,I,10,u[49]),te=h(te,ae,W,Z,Q,15,u[50]),Z=h(Z,te,ae,W,T,21,u[51]),W=h(W,Z,te,ae,$,6,u[52]),ae=h(ae,W,Z,te,_,10,u[53]),te=h(te,ae,W,Z,F,15,u[54]),Z=h(Z,te,ae,W,w,21,u[55]),W=h(W,Z,te,ae,R,6,u[56]),ae=h(ae,W,Z,te,V,10,u[57]),te=h(te,ae,W,Z,E,15,u[58]),Z=h(Z,te,ae,W,O,21,u[59]),W=h(W,Z,te,ae,B,6,u[60]),ae=h(ae,W,Z,te,M,10,u[61]),te=h(te,ae,W,Z,C,15,u[62]),Z=h(Z,te,ae,W,D,21,u[63]),b[0]=b[0]+W|0,b[1]=b[1]+Z|0,b[2]=b[2]+te|0,b[3]=b[3]+ae|0},_doFinalize:function(){var v=this._data,p=v.words,g=this._nDataBytes*8,m=v.sigBytes*8;p[m>>>5]|=128<<24-m%32;var y=n.floor(g/4294967296),b=g;p[(m+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,p[(m+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v.sigBytes=(p.length+1)*4,this._process();for(var x=this._hash,w=x.words,C=0;C<4;C++){var _=w[C];w[C]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return x},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function d(v,p,g,m,y,b,x){var w=v+(p&g|~p&m)+y+x;return(w<<b|w>>>32-b)+p}function f(v,p,g,m,y,b,x){var w=v+(p&m|g&~m)+y+x;return(w<<b|w>>>32-b)+p}function A(v,p,g,m,y,b,x){var w=v+(p^g^m)+y+x;return(w<<b|w>>>32-b)+p}function h(v,p,g,m,y,b,x){var w=v+(g^(p|~m))+y+x;return(w<<b|w>>>32-b)+p}o.MD5=s._createHelper(c),o.HmacMD5=s._createHmacHelper(c)}(Math),r.MD5})}(gT)),gT.exports}var mT={exports:{}},Rz;function mO(){return Rz||(Rz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,i=o.Hasher,s=n.algo,l=[],u=s.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,d){for(var f=this._hash.words,A=f[0],h=f[1],v=f[2],p=f[3],g=f[4],m=0;m<80;m++){if(m<16)l[m]=c[d+m]|0;else{var y=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=y<<1|y>>>31}var b=(A<<5|A>>>27)+g+l[m];m<20?b+=(h&v|~h&p)+1518500249:m<40?b+=(h^v^p)+1859775393:m<60?b+=(h&v|h&p|v&p)-1894007588:b+=(h^v^p)-899497514,g=p,p=v,v=h<<30|h>>>2,h=A,A=b}f[0]=f[0]+A|0,f[1]=f[1]+h|0,f[2]=f[2]+v|0,f[3]=f[3]+p|0,f[4]=f[4]+g|0},_doFinalize:function(){var c=this._data,d=c.words,f=this._nDataBytes*8,A=c.sigBytes*8;return d[A>>>5]|=128<<24-A%32,d[(A+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(A+64>>>9<<4)+15]=f,c.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var c=i.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=i._createHelper(u),n.HmacSHA1=i._createHmacHelper(u)}(),r.SHA1})}(mT)),mT.exports}var yT={exports:{}},Dz;function Tre(){return Dz||(Dz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){return function(n){var o=r,a=o.lib,i=a.WordArray,s=a.Hasher,l=o.algo,u=[],c=[];(function(){function A(g){for(var m=n.sqrt(g),y=2;y<=m;y++)if(!(g%y))return!1;return!0}function h(g){return(g-(g|0))*4294967296|0}for(var v=2,p=0;p<64;)A(v)&&(p<8&&(u[p]=h(n.pow(v,1/2))),c[p]=h(n.pow(v,1/3)),p++),v++})();var d=[],f=l.SHA256=s.extend({_doReset:function(){this._hash=new i.init(u.slice(0))},_doProcessBlock:function(A,h){for(var v=this._hash.words,p=v[0],g=v[1],m=v[2],y=v[3],b=v[4],x=v[5],w=v[6],C=v[7],_=0;_<64;_++){if(_<16)d[_]=A[h+_]|0;else{var B=d[_-15],T=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,E=d[_-2],I=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;d[_]=T+d[_-7]+I+d[_-16]}var R=b&x^~b&w,D=p&g^p&m^g&m,F=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),M=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),$=C+M+R+c[_]+d[_],O=F+D;C=w,w=x,x=b,b=y+$|0,y=m,m=g,g=p,p=$+O|0}v[0]=v[0]+p|0,v[1]=v[1]+g|0,v[2]=v[2]+m|0,v[3]=v[3]+y|0,v[4]=v[4]+b|0,v[5]=v[5]+x|0,v[6]=v[6]+w|0,v[7]=v[7]+C|0},_doFinalize:function(){var A=this._data,h=A.words,v=this._nDataBytes*8,p=A.sigBytes*8;return h[p>>>5]|=128<<24-p%32,h[(p+64>>>9<<4)+14]=n.floor(v/4294967296),h[(p+64>>>9<<4)+15]=v,A.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var A=s.clone.call(this);return A._hash=this._hash.clone(),A}});o.SHA256=s._createHelper(f),o.HmacSHA256=s._createHmacHelper(f)}(Math),r.SHA256})}(yT)),yT.exports}var bT={exports:{}},Mz;function nXe(){return Mz||(Mz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Tre())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,i=n.algo,s=i.SHA256,l=i.SHA224=s.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(bT)),bT.exports}var xT={exports:{}},Pz;function Ere(){return Pz||(Pz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),T_())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.Hasher,i=n.x64,s=i.Word,l=i.WordArray,u=n.algo;function c(){return s.create.apply(s,arguments)}var d=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],f=[];(function(){for(var h=0;h<80;h++)f[h]=c()})();var A=u.SHA512=a.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(h,v){for(var p=this._hash.words,g=p[0],m=p[1],y=p[2],b=p[3],x=p[4],w=p[5],C=p[6],_=p[7],B=g.high,T=g.low,E=m.high,I=m.low,R=y.high,D=y.low,F=b.high,M=b.low,$=x.high,O=x.low,Q=w.high,V=w.low,W=C.high,Z=C.low,te=_.high,ae=_.low,re=B,le=T,se=E,ce=I,be=R,de=D,pe=F,K=M,U=$,k=O,J=Q,ee=V,H=W,Y=Z,oe=te,he=ae,ne=0;ne<80;ne++){var Ae,X,ie=f[ne];if(ne<16)X=ie.high=h[v+ne*2]|0,Ae=ie.low=h[v+ne*2+1]|0;else{var fe=f[ne-15],ye=fe.high,Fe=fe.low,Ne=(ye>>>1|Fe<<31)^(ye>>>8|Fe<<24)^ye>>>7,rt=(Fe>>>1|ye<<31)^(Fe>>>8|ye<<24)^(Fe>>>7|ye<<25),lt=f[ne-2],mt=lt.high,Ge=lt.low,it=(mt>>>19|Ge<<13)^(mt<<3|Ge>>>29)^mt>>>6,je=(Ge>>>19|mt<<13)^(Ge<<3|mt>>>29)^(Ge>>>6|mt<<26),Ye=f[ne-7],ue=Ye.high,Ee=Ye.low,Qe=f[ne-16],et=Qe.high,tt=Qe.low;Ae=rt+Ee,X=Ne+ue+(Ae>>>0<rt>>>0?1:0),Ae=Ae+je,X=X+it+(Ae>>>0<je>>>0?1:0),Ae=Ae+tt,X=X+et+(Ae>>>0<tt>>>0?1:0),ie.high=X,ie.low=Ae}var xe=U&J^~U&H,$e=k&ee^~k&Y,Xe=re&se^re&be^se&be,ht=le&ce^le&de^ce&de,Se=(re>>>28|le<<4)^(re<<30|le>>>2)^(re<<25|le>>>7),He=(le>>>28|re<<4)^(le<<30|re>>>2)^(le<<25|re>>>7),me=(U>>>14|k<<18)^(U>>>18|k<<14)^(U<<23|k>>>9),ze=(k>>>14|U<<18)^(k>>>18|U<<14)^(k<<23|U>>>9),dt=d[ne],Rt=dt.high,At=dt.low,ve=he+ze,De=oe+me+(ve>>>0<he>>>0?1:0),ve=ve+$e,De=De+xe+(ve>>>0<$e>>>0?1:0),ve=ve+At,De=De+Rt+(ve>>>0<At>>>0?1:0),ve=ve+Ae,De=De+X+(ve>>>0<Ae>>>0?1:0),ot=He+ht,Nt=Se+Xe+(ot>>>0<He>>>0?1:0);oe=H,he=Y,H=J,Y=ee,J=U,ee=k,k=K+ve|0,U=pe+De+(k>>>0<K>>>0?1:0)|0,pe=be,K=de,be=se,de=ce,se=re,ce=le,le=ve+ot|0,re=De+Nt+(le>>>0<ve>>>0?1:0)|0}T=g.low=T+le,g.high=B+re+(T>>>0<le>>>0?1:0),I=m.low=I+ce,m.high=E+se+(I>>>0<ce>>>0?1:0),D=y.low=D+de,y.high=R+be+(D>>>0<de>>>0?1:0),M=b.low=M+K,b.high=F+pe+(M>>>0<K>>>0?1:0),O=x.low=O+k,x.high=$+U+(O>>>0<k>>>0?1:0),V=w.low=V+ee,w.high=Q+J+(V>>>0<ee>>>0?1:0),Z=C.low=Z+Y,C.high=W+H+(Z>>>0<Y>>>0?1:0),ae=_.low=ae+he,_.high=te+oe+(ae>>>0<he>>>0?1:0)},_doFinalize:function(){var h=this._data,v=h.words,p=this._nDataBytes*8,g=h.sigBytes*8;v[g>>>5]|=128<<24-g%32,v[(g+128>>>10<<5)+30]=Math.floor(p/4294967296),v[(g+128>>>10<<5)+31]=p,h.sigBytes=v.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var h=a.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});n.SHA512=a._createHelper(A),n.HmacSHA512=a._createHmacHelper(A)}(),r.SHA512})}(xT)),xT.exports}var wT={exports:{}},Fz;function oXe(){return Fz||(Fz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),T_(),Ere())})(cr,function(r){return function(){var n=r,o=n.x64,a=o.Word,i=o.WordArray,s=n.algo,l=s.SHA512,u=s.SHA384=l.extend({_doReset:function(){this._hash=new i.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=16,c}});n.SHA384=l._createHelper(u),n.HmacSHA384=l._createHmacHelper(u)}(),r.SHA384})}(wT)),wT.exports}var CT={exports:{}},kz;function aXe(){return kz||(kz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),T_())})(cr,function(r){return function(n){var o=r,a=o.lib,i=a.WordArray,s=a.Hasher,l=o.x64,u=l.Word,c=o.algo,d=[],f=[],A=[];(function(){for(var p=1,g=0,m=0;m<24;m++){d[p+5*g]=(m+1)*(m+2)/2%64;var y=g%5,b=(2*p+3*g)%5;p=y,g=b}for(var p=0;p<5;p++)for(var g=0;g<5;g++)f[p+5*g]=g+(2*p+3*g)%5*5;for(var x=1,w=0;w<24;w++){for(var C=0,_=0,B=0;B<7;B++){if(x&1){var T=(1<<B)-1;T<32?_^=1<<T:C^=1<<T-32}x&128?x=x<<1^113:x<<=1}A[w]=u.create(C,_)}})();var h=[];(function(){for(var p=0;p<25;p++)h[p]=u.create()})();var v=c.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],g=0;g<25;g++)p[g]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,g){for(var m=this._state,y=this.blockSize/2,b=0;b<y;b++){var x=p[g+2*b],w=p[g+2*b+1];x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var C=m[b];C.high^=w,C.low^=x}for(var _=0;_<24;_++){for(var B=0;B<5;B++){for(var T=0,E=0,I=0;I<5;I++){var C=m[B+5*I];T^=C.high,E^=C.low}var R=h[B];R.high=T,R.low=E}for(var B=0;B<5;B++)for(var D=h[(B+4)%5],F=h[(B+1)%5],M=F.high,$=F.low,T=D.high^(M<<1|$>>>31),E=D.low^($<<1|M>>>31),I=0;I<5;I++){var C=m[B+5*I];C.high^=T,C.low^=E}for(var O=1;O<25;O++){var T,E,C=m[O],Q=C.high,V=C.low,W=d[O];W<32?(T=Q<<W|V>>>32-W,E=V<<W|Q>>>32-W):(T=V<<W-32|Q>>>64-W,E=Q<<W-32|V>>>64-W);var Z=h[f[O]];Z.high=T,Z.low=E}var te=h[0],ae=m[0];te.high=ae.high,te.low=ae.low;for(var B=0;B<5;B++)for(var I=0;I<5;I++){var O=B+5*I,C=m[O],re=h[O],le=h[(B+1)%5+5*I],se=h[(B+2)%5+5*I];C.high=re.high^~le.high&se.high,C.low=re.low^~le.low&se.low}var C=m[0],ce=A[_];C.high^=ce.high,C.low^=ce.low}},_doFinalize:function(){var p=this._data,g=p.words;this._nDataBytes*8;var m=p.sigBytes*8,y=this.blockSize*32;g[m>>>5]|=1<<24-m%32,g[(n.ceil((m+1)/y)*y>>>5)-1]|=128,p.sigBytes=g.length*4,this._process();for(var b=this._state,x=this.cfg.outputLength/8,w=x/8,C=[],_=0;_<w;_++){var B=b[_],T=B.high,E=B.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,C.push(E),C.push(T)}return new i.init(C,x)},clone:function(){for(var p=s.clone.call(this),g=p._state=this._state.slice(0),m=0;m<25;m++)g[m]=g[m].clone();return p}});o.SHA3=s._createHelper(v),o.HmacSHA3=s._createHmacHelper(v)}(Math),r.SHA3})}(CT)),CT.exports}var ST={exports:{}},Lz;function iXe(){return Lz||(Lz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){/** @preserve
  6042. (c) 2012 by Cédric Mesnil. All rights reserved.
  6043. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  6044. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  6045. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  6046. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  6047. */return function(n){var o=r,a=o.lib,i=a.WordArray,s=a.Hasher,l=o.algo,u=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),A=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=l.RIPEMD160=s.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,C){for(var _=0;_<16;_++){var B=C+_,T=w[B];w[B]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var E=this._hash.words,I=A.words,R=h.words,D=u.words,F=c.words,M=d.words,$=f.words,O,Q,V,W,Z,te,ae,re,le,se;te=O=E[0],ae=Q=E[1],re=V=E[2],le=W=E[3],se=Z=E[4];for(var ce,_=0;_<80;_+=1)ce=O+w[C+D[_]]|0,_<16?ce+=p(Q,V,W)+I[0]:_<32?ce+=g(Q,V,W)+I[1]:_<48?ce+=m(Q,V,W)+I[2]:_<64?ce+=y(Q,V,W)+I[3]:ce+=b(Q,V,W)+I[4],ce=ce|0,ce=x(ce,M[_]),ce=ce+Z|0,O=Z,Z=W,W=x(V,10),V=Q,Q=ce,ce=te+w[C+F[_]]|0,_<16?ce+=b(ae,re,le)+R[0]:_<32?ce+=y(ae,re,le)+R[1]:_<48?ce+=m(ae,re,le)+R[2]:_<64?ce+=g(ae,re,le)+R[3]:ce+=p(ae,re,le)+R[4],ce=ce|0,ce=x(ce,$[_]),ce=ce+se|0,te=se,se=le,le=x(re,10),re=ae,ae=ce;ce=E[1]+V+le|0,E[1]=E[2]+W+se|0,E[2]=E[3]+Z+te|0,E[3]=E[4]+O+ae|0,E[4]=E[0]+Q+re|0,E[0]=ce},_doFinalize:function(){var w=this._data,C=w.words,_=this._nDataBytes*8,B=w.sigBytes*8;C[B>>>5]|=128<<24-B%32,C[(B+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w.sigBytes=(C.length+1)*4,this._process();for(var T=this._hash,E=T.words,I=0;I<5;I++){var R=E[I];E[I]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return T},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});function p(w,C,_){return w^C^_}function g(w,C,_){return w&C|~w&_}function m(w,C,_){return(w|~C)^_}function y(w,C,_){return w&_|C&~_}function b(w,C,_){return w^(C|~_)}function x(w,C){return w<<C|w>>>32-C}o.RIPEMD160=s._createHelper(v),o.HmacRIPEMD160=s._createHmacHelper(v)}(),r.RIPEMD160})}(ST)),ST.exports}var _T={exports:{}},Oz;function yO(){return Oz||(Oz=1,function(e,t){(function(r,n){e.exports=n(Lr())})(cr,function(r){(function(){var n=r,o=n.lib,a=o.Base,i=n.enc,s=i.Utf8,l=n.algo;l.HMAC=a.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=s.parse(c));var d=u.blockSize,f=d*4;c.sigBytes>f&&(c=u.finalize(c)),c.clamp();for(var A=this._oKey=c.clone(),h=this._iKey=c.clone(),v=A.words,p=h.words,g=0;g<d;g++)v[g]^=1549556828,p[g]^=909522486;A.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,d=c.finalize(u);c.reset();var f=c.finalize(this._oKey.clone().concat(d));return f}})})()})}(_T)),_T.exports}var BT={exports:{}},$z;function sXe(){return $z||($z=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),mO(),yO())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.Base,i=o.WordArray,s=n.algo,l=s.SHA1,u=s.HMAC,c=s.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var A=this.cfg,h=u.create(A.hasher,d),v=i.create(),p=i.create([1]),g=v.words,m=p.words,y=A.keySize,b=A.iterations;g.length<y;){var x=h.update(f).finalize(p);h.reset();for(var w=x.words,C=w.length,_=x,B=1;B<b;B++){_=h.finalize(_),h.reset();for(var T=_.words,E=0;E<C;E++)w[E]^=T[E]}v.concat(x),m[0]++}return v.sigBytes=y*4,v}});n.PBKDF2=function(d,f,A){return c.create(A).compute(d,f)}}(),r.PBKDF2})}(BT)),BT.exports}var TT={exports:{}},Uz;function OA(){return Uz||(Uz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),mO(),yO())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.Base,i=o.WordArray,s=n.algo,l=s.MD5,u=s.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,d){for(var f,A=this.cfg,h=A.hasher.create(),v=i.create(),p=v.words,g=A.keySize,m=A.iterations;p.length<g;){f&&h.update(f),f=h.update(c).finalize(d),h.reset();for(var y=1;y<m;y++)f=h.finalize(f),h.reset();v.concat(f)}return v.sigBytes=g*4,v}});n.EvpKDF=function(c,d,f){return u.create(f).compute(c,d)}}(),r.EvpKDF})}(TT)),TT.exports}var ET={exports:{}},Nz;function Uo(){return Nz||(Nz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),OA())})(cr,function(r){r.lib.Cipher||function(n){var o=r,a=o.lib,i=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,u=o.enc;u.Utf8;var c=u.Base64,d=o.algo,f=d.EvpKDF,A=a.Cipher=l.extend({cfg:i.extend(),createEncryptor:function(T,E){return this.create(this._ENC_XFORM_MODE,T,E)},createDecryptor:function(T,E){return this.create(this._DEC_XFORM_MODE,T,E)},init:function(T,E,I){this.cfg=this.cfg.extend(I),this._xformMode=T,this._key=E,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(E){return typeof E=="string"?B:w}return function(E){return{encrypt:function(I,R,D){return T(R).encrypt(E,I,R,D)},decrypt:function(I,R,D){return T(R).decrypt(E,I,R,D)}}}}()});a.StreamCipher=A.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var h=o.mode={},v=a.BlockCipherMode=i.extend({createEncryptor:function(T,E){return this.Encryptor.create(T,E)},createDecryptor:function(T,E){return this.Decryptor.create(T,E)},init:function(T,E){this._cipher=T,this._iv=E}}),p=h.CBC=function(){var T=v.extend();T.Encryptor=T.extend({processBlock:function(I,R){var D=this._cipher,F=D.blockSize;E.call(this,I,R,F),D.encryptBlock(I,R),this._prevBlock=I.slice(R,R+F)}}),T.Decryptor=T.extend({processBlock:function(I,R){var D=this._cipher,F=D.blockSize,M=I.slice(R,R+F);D.decryptBlock(I,R),E.call(this,I,R,F),this._prevBlock=M}});function E(I,R,D){var F,M=this._iv;M?(F=M,this._iv=n):F=this._prevBlock;for(var $=0;$<D;$++)I[R+$]^=F[$]}return T}(),g=o.pad={},m=g.Pkcs7={pad:function(T,E){for(var I=E*4,R=I-T.sigBytes%I,D=R<<24|R<<16|R<<8|R,F=[],M=0;M<R;M+=4)F.push(D);var $=s.create(F,R);T.concat($)},unpad:function(T){var E=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=E}};a.BlockCipher=A.extend({cfg:A.cfg.extend({mode:p,padding:m}),reset:function(){var T;A.reset.call(this);var E=this.cfg,I=E.iv,R=E.mode;this._xformMode==this._ENC_XFORM_MODE?T=R.createEncryptor:(T=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,I&&I.words):(this._mode=T.call(R,this,I&&I.words),this._mode.__creator=T)},_doProcessBlock:function(T,E){this._mode.processBlock(T,E)},_doFinalize:function(){var T,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),E.unpad(T)),T},blockSize:128/32});var y=a.CipherParams=i.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),b=o.format={},x=b.OpenSSL={stringify:function(T){var E,I=T.ciphertext,R=T.salt;return R?E=s.create([1398893684,1701076831]).concat(R).concat(I):E=I,E.toString(c)},parse:function(T){var E,I=c.parse(T),R=I.words;return R[0]==1398893684&&R[1]==1701076831&&(E=s.create(R.slice(2,4)),R.splice(0,4),I.sigBytes-=16),y.create({ciphertext:I,salt:E})}},w=a.SerializableCipher=i.extend({cfg:i.extend({format:x}),encrypt:function(T,E,I,R){R=this.cfg.extend(R);var D=T.createEncryptor(I,R),F=D.finalize(E),M=D.cfg;return y.create({ciphertext:F,key:I,iv:M.iv,algorithm:T,mode:M.mode,padding:M.padding,blockSize:T.blockSize,formatter:R.format})},decrypt:function(T,E,I,R){R=this.cfg.extend(R),E=this._parse(E,R.format);var D=T.createDecryptor(I,R).finalize(E.ciphertext);return D},_parse:function(T,E){return typeof T=="string"?E.parse(T,this):T}}),C=o.kdf={},_=C.OpenSSL={execute:function(T,E,I,R){R||(R=s.random(64/8));var D=f.create({keySize:E+I}).compute(T,R),F=s.create(D.words.slice(E),I*4);return D.sigBytes=E*4,y.create({key:D,iv:F,salt:R})}},B=a.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:_}),encrypt:function(T,E,I,R){R=this.cfg.extend(R);var D=R.kdf.execute(I,T.keySize,T.ivSize);R.iv=D.iv;var F=w.encrypt.call(this,T,E,D.key,R);return F.mixIn(D),F},decrypt:function(T,E,I,R){R=this.cfg.extend(R),E=this._parse(E,R.format);var D=R.kdf.execute(I,T.keySize,T.ivSize,E.salt);R.iv=D.iv;var F=w.decrypt.call(this,T,E,D.key,R);return F}})}()})}(ET)),ET.exports}var IT={exports:{}},Hz;function lXe(){return Hz||(Hz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(a,i){var s=this._cipher,l=s.blockSize;o.call(this,a,i,l,s),this._prevBlock=a.slice(i,i+l)}}),n.Decryptor=n.extend({processBlock:function(a,i){var s=this._cipher,l=s.blockSize,u=a.slice(i,i+l);o.call(this,a,i,l,s),this._prevBlock=u}});function o(a,i,s,l){var u,c=this._iv;c?(u=c.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var d=0;d<s;d++)a[i+d]^=u[d]}return n}(),r.mode.CFB})}(IT)),IT.exports}var RT={exports:{}},zz;function uXe(){return zz||(zz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(a,i){var s=this._cipher,l=s.blockSize,u=this._iv,c=this._counter;u&&(c=this._counter=u.slice(0),this._iv=void 0);var d=c.slice(0);s.encryptBlock(d,0),c[l-1]=c[l-1]+1|0;for(var f=0;f<l;f++)a[i+f]^=d[f]}});return n.Decryptor=o,n}(),r.mode.CTR})}(RT)),RT.exports}var DT={exports:{}},Qz;function cXe(){return Qz||(Qz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){/** @preserve
  6048. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  6049. * derived from CryptoJS.mode.CTR
  6050. * Jan Hruby jhruby.web@gmail.com
  6051. */return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function o(s){if((s>>24&255)===255){var l=s>>16&255,u=s>>8&255,c=s&255;l===255?(l=0,u===255?(u=0,c===255?c=0:++c):++u):++l,s=0,s+=l<<16,s+=u<<8,s+=c}else s+=1<<24;return s}function a(s){return(s[0]=o(s[0]))===0&&(s[1]=o(s[1])),s}var i=n.Encryptor=n.extend({processBlock:function(s,l){var u=this._cipher,c=u.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),a(f);var A=f.slice(0);u.encryptBlock(A,0);for(var h=0;h<c;h++)s[l+h]^=A[h]}});return n.Decryptor=i,n}(),r.mode.CTRGladman})}(DT)),DT.exports}var MT={exports:{}},Vz;function dXe(){return Vz||(Vz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(a,i){var s=this._cipher,l=s.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),s.encryptBlock(c,0);for(var d=0;d<l;d++)a[i+d]^=c[d]}});return n.Decryptor=o,n}(),r.mode.OFB})}(MT)),MT.exports}var PT={exports:{}},Wz;function fXe(){return Wz||(Wz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,a){this._cipher.encryptBlock(o,a)}}),n.Decryptor=n.extend({processBlock:function(o,a){this._cipher.decryptBlock(o,a)}}),n}(),r.mode.ECB})}(PT)),PT.exports}var FT={exports:{}},Gz;function AXe(){return Gz||(Gz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.pad.AnsiX923={pad:function(n,o){var a=n.sigBytes,i=o*4,s=i-a%i,l=a+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})}(FT)),FT.exports}var kT={exports:{}},Kz;function hXe(){return Kz||(Kz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.pad.Iso10126={pad:function(n,o){var a=o*4,i=a-n.sigBytes%a;n.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})}(kT)),kT.exports}var LT={exports:{}},jz;function vXe(){return jz||(jz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(LT)),LT.exports}var OT={exports:{}},Yz;function pXe(){return Yz||(Yz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.pad.ZeroPadding={pad:function(n,o){var a=o*4;n.clamp(),n.sigBytes+=a-(n.sigBytes%a||a)},unpad:function(n){for(var o=n.words,a=n.sigBytes-1,a=n.sigBytes-1;a>=0;a--)if(o[a>>>2]>>>24-a%4*8&255){n.sigBytes=a+1;break}}},r.pad.ZeroPadding})}(OT)),OT.exports}var $T={exports:{}},Xz;function gXe(){return Xz||(Xz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}($T)),$T.exports}var UT={exports:{}},qz;function mXe(){return qz||(qz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Uo())})(cr,function(r){return function(n){var o=r,a=o.lib,i=a.CipherParams,s=o.enc,l=s.Hex,u=o.format;u.Hex={stringify:function(c){return c.ciphertext.toString(l)},parse:function(c){var d=l.parse(c);return i.create({ciphertext:d})}}}(),r.format.Hex})}(UT)),UT.exports}var NT={exports:{}},Zz;function yXe(){return Zz||(Zz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Cp(),Sp(),OA(),Uo())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.BlockCipher,i=n.algo,s=[],l=[],u=[],c=[],d=[],f=[],A=[],h=[],v=[],p=[];(function(){for(var y=[],b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(var x=0,w=0,b=0;b<256;b++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,s[x]=C,l[C]=x;var _=y[x],B=y[_],T=y[B],E=y[C]*257^C*16843008;u[x]=E<<24|E>>>8,c[x]=E<<16|E>>>16,d[x]=E<<8|E>>>24,f[x]=E;var E=T*16843009^B*65537^_*257^x*16843008;A[C]=E<<24|E>>>8,h[C]=E<<16|E>>>16,v[C]=E<<8|E>>>24,p[C]=E,x?(x=_^y[y[y[T^_]]],w^=y[y[w]]):x=w=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=a.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,x=b.words,w=b.sigBytes/4,C=this._nRounds=w+6,_=(C+1)*4,B=this._keySchedule=[],T=0;T<_;T++)T<w?B[T]=x[T]:(y=B[T-1],T%w?w>6&&T%w==4&&(y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255]):(y=y<<8|y>>>24,y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255],y^=g[T/w|0]<<24),B[T]=B[T-w]^y);for(var E=this._invKeySchedule=[],I=0;I<_;I++){var T=_-I;if(I%4)var y=B[T];else var y=B[T-4];I<4||T<=4?E[I]=y:E[I]=A[s[y>>>24]]^h[s[y>>>16&255]]^v[s[y>>>8&255]]^p[s[y&255]]}}},encryptBlock:function(y,b){this._doCryptBlock(y,b,this._keySchedule,u,c,d,f,s)},decryptBlock:function(y,b){var x=y[b+1];y[b+1]=y[b+3],y[b+3]=x,this._doCryptBlock(y,b,this._invKeySchedule,A,h,v,p,l);var x=y[b+1];y[b+1]=y[b+3],y[b+3]=x},_doCryptBlock:function(y,b,x,w,C,_,B,T){for(var E=this._nRounds,I=y[b]^x[0],R=y[b+1]^x[1],D=y[b+2]^x[2],F=y[b+3]^x[3],M=4,$=1;$<E;$++){var O=w[I>>>24]^C[R>>>16&255]^_[D>>>8&255]^B[F&255]^x[M++],Q=w[R>>>24]^C[D>>>16&255]^_[F>>>8&255]^B[I&255]^x[M++],V=w[D>>>24]^C[F>>>16&255]^_[I>>>8&255]^B[R&255]^x[M++],W=w[F>>>24]^C[I>>>16&255]^_[R>>>8&255]^B[D&255]^x[M++];I=O,R=Q,D=V,F=W}var O=(T[I>>>24]<<24|T[R>>>16&255]<<16|T[D>>>8&255]<<8|T[F&255])^x[M++],Q=(T[R>>>24]<<24|T[D>>>16&255]<<16|T[F>>>8&255]<<8|T[I&255])^x[M++],V=(T[D>>>24]<<24|T[F>>>16&255]<<16|T[I>>>8&255]<<8|T[R&255])^x[M++],W=(T[F>>>24]<<24|T[I>>>16&255]<<16|T[R>>>8&255]<<8|T[D&255])^x[M++];y[b]=O,y[b+1]=Q,y[b+2]=V,y[b+3]=W},keySize:256/32});n.AES=a._createHelper(m)}(),r.AES})}(NT)),NT.exports}var HT={exports:{}},Jz;function bXe(){return Jz||(Jz=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Cp(),Sp(),OA(),Uo())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,i=o.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],A=s.DES=i.extend({_doReset:function(){for(var g=this._key,m=g.words,y=[],b=0;b<56;b++){var x=l[b]-1;y[b]=m[x>>>5]>>>31-x%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var _=w[C]=[],B=c[C],b=0;b<24;b++)_[b/6|0]|=y[(u[b]-1+B)%28]<<31-b%6,_[4+(b/6|0)]|=y[28+(u[b+24]-1+B)%28]<<31-b%6;_[0]=_[0]<<1|_[0]>>>31;for(var b=1;b<7;b++)_[b]=_[b]>>>(b-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var T=this._invSubKeys=[],b=0;b<16;b++)T[b]=w[15-b]},encryptBlock:function(g,m){this._doCryptBlock(g,m,this._subKeys)},decryptBlock:function(g,m){this._doCryptBlock(g,m,this._invSubKeys)},_doCryptBlock:function(g,m,y){this._lBlock=g[m],this._rBlock=g[m+1],h.call(this,4,252645135),h.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),h.call(this,1,1431655765);for(var b=0;b<16;b++){for(var x=y[b],w=this._lBlock,C=this._rBlock,_=0,B=0;B<8;B++)_|=d[B][((C^x[B])&f[B])>>>0];this._lBlock=C,this._rBlock=w^_}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,h.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),g[m]=this._lBlock,g[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(g,m){var y=(this._lBlock>>>g^this._rBlock)&m;this._rBlock^=y,this._lBlock^=y<<g}function v(g,m){var y=(this._rBlock>>>g^this._lBlock)&m;this._lBlock^=y,this._rBlock^=y<<g}n.DES=i._createHelper(A);var p=s.TripleDES=i.extend({_doReset:function(){var g=this._key,m=g.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=m.slice(0,2),b=m.length<4?m.slice(0,2):m.slice(2,4),x=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=A.createEncryptor(a.create(y)),this._des2=A.createEncryptor(a.create(b)),this._des3=A.createEncryptor(a.create(x))},encryptBlock:function(g,m){this._des1.encryptBlock(g,m),this._des2.decryptBlock(g,m),this._des3.encryptBlock(g,m)},decryptBlock:function(g,m){this._des3.decryptBlock(g,m),this._des2.encryptBlock(g,m),this._des1.decryptBlock(g,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=i._createHelper(p)}(),r.TripleDES})}(HT)),HT.exports}var zT={exports:{}},e8;function xXe(){return e8||(e8=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Cp(),Sp(),OA(),Uo())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.StreamCipher,i=n.algo,s=i.RC4=a.extend({_doReset:function(){for(var c=this._key,d=c.words,f=c.sigBytes,A=this._S=[],h=0;h<256;h++)A[h]=h;for(var h=0,v=0;h<256;h++){var p=h%f,g=d[p>>>2]>>>24-p%4*8&255;v=(v+A[h]+g)%256;var m=A[h];A[h]=A[v],A[v]=m}this._i=this._j=0},_doProcessBlock:function(c,d){c[d]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var c=this._S,d=this._i,f=this._j,A=0,h=0;h<4;h++){d=(d+1)%256,f=(f+c[d])%256;var v=c[d];c[d]=c[f],c[f]=v,A|=c[(c[d]+c[f])%256]<<24-h*8}return this._i=d,this._j=f,A}n.RC4=a._createHelper(s);var u=i.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)l.call(this)}});n.RC4Drop=a._createHelper(u)}(),r.RC4})}(zT)),zT.exports}var QT={exports:{}},t8;function wXe(){return t8||(t8=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Cp(),Sp(),OA(),Uo())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.StreamCipher,i=n.algo,s=[],l=[],u=[],c=i.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,A=this.cfg.iv,h=0;h<4;h++)f[h]=(f[h]<<8|f[h]>>>24)&16711935|(f[h]<<24|f[h]>>>8)&4278255360;var v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],p=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)d.call(this);for(var h=0;h<8;h++)p[h]^=v[h+4&7];if(A){var g=A.words,m=g[0],y=g[1],b=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,x=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=b>>>16|x&4294901760,C=x<<16|b&65535;p[0]^=b,p[1]^=w,p[2]^=x,p[3]^=C,p[4]^=b,p[5]^=w,p[6]^=x,p[7]^=C;for(var h=0;h<4;h++)d.call(this)}},_doProcessBlock:function(f,A){var h=this._X;d.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,f[A+v]^=s[v]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,A=this._C,h=0;h<8;h++)l[h]=A[h];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<l[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<l[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<l[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<l[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<l[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<l[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<l[6]>>>0?1:0)|0,this._b=A[7]>>>0<l[7]>>>0?1:0;for(var h=0;h<8;h++){var v=f[h]+A[h],p=v&65535,g=v>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);u[h]=m^y}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=a._createHelper(c)}(),r.Rabbit})}(QT)),QT.exports}var VT={exports:{}},r8;function CXe(){return r8||(r8=1,function(e,t){(function(r,n,o){e.exports=n(Lr(),Cp(),Sp(),OA(),Uo())})(cr,function(r){return function(){var n=r,o=n.lib,a=o.StreamCipher,i=n.algo,s=[],l=[],u=[],c=i.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,A=this.cfg.iv,h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var p=0;p<4;p++)d.call(this);for(var p=0;p<8;p++)v[p]^=h[p+4&7];if(A){var g=A.words,m=g[0],y=g[1],b=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,x=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,w=b>>>16|x&4294901760,C=x<<16|b&65535;v[0]^=b,v[1]^=w,v[2]^=x,v[3]^=C,v[4]^=b,v[5]^=w,v[6]^=x,v[7]^=C;for(var p=0;p<4;p++)d.call(this)}},_doProcessBlock:function(f,A){var h=this._X;d.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,f[A+v]^=s[v]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,A=this._C,h=0;h<8;h++)l[h]=A[h];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<l[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<l[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<l[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<l[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<l[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<l[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<l[6]>>>0?1:0)|0,this._b=A[7]>>>0<l[7]>>>0?1:0;for(var h=0;h<8;h++){var v=f[h]+A[h],p=v&65535,g=v>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);u[h]=m^y}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=a._createHelper(c)}(),r.RabbitLegacy})}(VT)),VT.exports}(function(e,t){(function(r,n,o){e.exports=n(Lr(),T_(),eXe(),tXe(),Cp(),rXe(),Sp(),mO(),Tre(),nXe(),Ere(),oXe(),aXe(),iXe(),yO(),sXe(),OA(),Uo(),lXe(),uXe(),cXe(),dXe(),fXe(),AXe(),hXe(),vXe(),pXe(),gXe(),mXe(),yXe(),bXe(),xXe(),wXe(),CXe())})(cr,function(r){return r})})(YYe);/*!
  6052. * vue-router v4.0.12
  6053. * (c) 2021 Eduardo San Martin Morote
  6054. * @license MIT
  6055. */const Ire=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",_p=e=>Ire?Symbol(e):"_vr_"+e,SXe=_p("rvlm"),n8=_p("rvd"),E_=_p("r"),bO=_p("rl"),jM=_p("rvl"),zh=typeof window!="undefined";function _Xe(e){return e.__esModule||Ire&&e[Symbol.toStringTag]==="Module"}const an=Object.assign;function WT(e,t){const r={};for(const n in t){const o=t[n];r[n]=Array.isArray(o)?o.map(e):e(o)}return r}const P0=()=>{},BXe=/\/$/,TXe=e=>e.replace(BXe,"");function GT(e,t,r="/"){let n,o={},a="",i="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(n=t.slice(0,s),a=t.slice(s+1,l>-1?l:t.length),o=e(a)),l>-1&&(n=n||t.slice(0,l),i=t.slice(l,t.length)),n=DXe(n!=null?n:t,r),{fullPath:n+(a&&"?")+a+i,path:n,query:o,hash:i}}function EXe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function o8(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function IXe(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Uv(t.matched[n],r.matched[o])&&Rre(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Uv(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rre(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!RXe(e[r],t[r]))return!1;return!0}function RXe(e,t){return Array.isArray(e)?a8(e,t):Array.isArray(t)?a8(t,e):e===t}function a8(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function DXe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let o=r.length-1,a,i;for(a=0;a<n.length;a++)if(i=n[a],!(o===1||i==="."))if(i==="..")o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var _m;(function(e){e.pop="pop",e.push="push"})(_m||(_m={}));var F0;(function(e){e.back="back",e.forward="forward",e.unknown=""})(F0||(F0={}));function MXe(e){if(!e)if(zh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),TXe(e)}const PXe=/^[^#]+#/;function FXe(e,t){return e.replace(PXe,"#")+t}function kXe(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const I_=()=>({left:window.pageXOffset,top:window.pageYOffset});function LXe(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=kXe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function i8(e,t){return(history.state?history.state.position-t:-1)+e}const YM=new Map;function OXe(e,t){YM.set(e,t)}function $Xe(e){const t=YM.get(e);return YM.delete(e),t}let UXe=()=>location.protocol+"//"+location.host;function Dre(e,t){const{pathname:r,search:n,hash:o}=t,a=e.indexOf("#");if(a>-1){let s=o.includes(e.slice(a))?e.slice(a).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),o8(l,"")}return o8(r,e)+n+o}function NXe(e,t,r,n){let o=[],a=[],i=null;const s=({state:f})=>{const A=Dre(e,location),h=r.value,v=t.value;let p=0;if(f){if(r.value=A,t.value=f,i&&i===h){i=null;return}p=v?f.position-v.position:0}else n(A);o.forEach(g=>{g(r.value,h,{delta:p,type:_m.pop,direction:p?p>0?F0.forward:F0.back:F0.unknown})})};function l(){i=r.value}function u(f){o.push(f);const A=()=>{const h=o.indexOf(f);h>-1&&o.splice(h,1)};return a.push(A),A}function c(){const{history:f}=window;f.state&&f.replaceState(an({},f.state,{scroll:I_()}),"")}function d(){for(const f of a)f();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:d}}function s8(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?I_():null}}function HXe(e){const{history:t,location:r}=window,n={value:Dre(e,r)},o={value:t.state};o.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const d=e.indexOf("#"),f=d>-1?(r.host&&document.querySelector("base")?e:e.slice(d))+l:UXe()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),o.value=u}catch(A){console.error(A),r[c?"replace":"assign"](f)}}function i(l,u){const c=an({},t.state,s8(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=an({},o.value,t.state,{forward:l,scroll:I_()});a(c.current,c,!0);const d=an({},s8(n.value,l,null),{position:c.position+1},u);a(l,d,!1),n.value=l}return{location:n,state:o,push:s,replace:i}}function zXe(e){e=MXe(e);const t=HXe(e),r=NXe(e,t.state,t.location,t.replace);function n(a,i=!0){i||r.pauseListeners(),history.go(a)}const o=an({location:"",base:e,go:n,createHref:FXe.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function QXe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),zXe(e)}function VXe(e){return typeof e=="string"||e&&typeof e=="object"}function Mre(e){return typeof e=="string"||typeof e=="symbol"}const Qu={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pre=_p("nf");var l8;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(l8||(l8={}));function Nv(e,t){return an(new Error,{type:e,[Pre]:!0},t)}function Ld(e,t){return e instanceof Error&&Pre in e&&(t==null||!!(e.type&t))}const u8="[^/]+?",WXe={sensitive:!1,strict:!1,start:!0,end:!0},GXe=/[.+*?^${}()[\]/\\]/g;function KXe(e,t){const r=an({},WXe,t),n=[];let o=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(o+="/");for(let d=0;d<u.length;d++){const f=u[d];let A=40+(r.sensitive?.25:0);if(f.type===0)d||(o+="/"),o+=f.value.replace(GXe,"\\$&"),A+=40;else if(f.type===1){const{value:h,repeatable:v,optional:p,regexp:g}=f;a.push({name:h,repeatable:v,optional:p});const m=g||u8;if(m!==u8){A+=10;try{new RegExp(`(${m})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${h}" (${m}): `+b.message)}}let y=v?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;d||(y=p&&u.length<2?`(?:/${y})`:"/"+y),p&&(y+="?"),o+=y,A+=20,p&&(A+=-8),v&&(A+=-20),m===".*"&&(A+=-50)}c.push(A)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&(o+="(?:/|$)");const i=new RegExp(o,r.sensitive?"":"i");function s(u){const c=u.match(i),d={};if(!c)return null;for(let f=1;f<c.length;f++){const A=c[f]||"",h=a[f-1];d[h.name]=A&&h.repeatable?A.split("/"):A}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const A of f)if(A.type===0)c+=A.value;else if(A.type===1){const{value:h,repeatable:v,optional:p}=A,g=h in u?u[h]:"";if(Array.isArray(g)&&!v)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const m=Array.isArray(g)?g.join("/"):g;if(!m)if(p)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);c+=m}}return c}return{re:i,score:n,keys:a,parse:s,stringify:l}}function jXe(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function YXe(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const a=jXe(n[r],o[r]);if(a)return a;r++}return o.length-n.length}const XXe={type:0,value:""},qXe=/[a-zA-Z0-9_]/;function ZXe(e){if(!e)return[[]];if(e==="/")return[[XXe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(A){throw new Error(`ERR (${r})/"${u}": ${A}`)}let r=0,n=r;const o=[];let a;function i(){a&&o.push(a),a=[]}let s=0,l,u="",c="";function d(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&d(),i()):l===":"?(d(),r=1):f();break;case 4:f(),r=n;break;case 1:l==="("?r=2:qXe.test(l)?f():(d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),o}function JXe(e,t,r){const n=KXe(ZXe(e.path),r),o=an(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function eqe(e,t){const r=[],n=new Map;t=d8({strict:!1,end:!0,sensitive:!1},t);function o(c){return n.get(c)}function a(c,d,f){const A=!f,h=rqe(c);h.aliasOf=f&&f.record;const v=d8(t,c),p=[h];if("alias"in c){const y=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of y)p.push(an({},h,{components:f?f.record.components:h.components,path:b,aliasOf:f?f.record:h}))}let g,m;for(const y of p){const{path:b}=y;if(d&&b[0]!=="/"){const x=d.record.path,w=x[x.length-1]==="/"?"":"/";y.path=d.record.path+(b&&w+b)}if(g=JXe(y,d,v),f?f.alias.push(g):(m=m||g,m!==g&&m.alias.push(g),A&&c.name&&!c8(g)&&i(c.name)),"children"in h){const x=h.children;for(let w=0;w<x.length;w++)a(x[w],g,f&&f.children[w])}f=f||g,l(g)}return m?()=>{i(m)}:P0}function i(c){if(Mre(c)){const d=n.get(c);d&&(n.delete(c),r.splice(r.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=r.indexOf(c);d>-1&&(r.splice(d,1),c.record.name&&n.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function s(){return r}function l(c){let d=0;for(;d<r.length&&YXe(c,r[d])>=0;)d++;r.splice(d,0,c),c.record.name&&!c8(c)&&n.set(c.record.name,c)}function u(c,d){let f,A={},h,v;if("name"in c&&c.name){if(f=n.get(c.name),!f)throw Nv(1,{location:c});v=f.record.name,A=an(tqe(d.params,f.keys.filter(m=>!m.optional).map(m=>m.name)),c.params),h=f.stringify(A)}else if("path"in c)h=c.path,f=r.find(m=>m.re.test(h)),f&&(A=f.parse(h),v=f.record.name);else{if(f=d.name?n.get(d.name):r.find(m=>m.re.test(d.path)),!f)throw Nv(1,{location:c,currentLocation:d});v=f.record.name,A=an({},d.params,c.params),h=f.stringify(A)}const p=[];let g=f;for(;g;)p.unshift(g.record),g=g.parent;return{name:v,path:h,params:A,matched:p,meta:oqe(p)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:i,getRoutes:s,getRecordMatcher:o}}function tqe(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function rqe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nqe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function nqe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function c8(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function oqe(e){return e.reduce((t,r)=>an(t,r.meta),{})}function d8(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const Fre=/#/g,aqe=/&/g,iqe=/\//g,sqe=/=/g,lqe=/\?/g,kre=/\+/g,uqe=/%5B/g,cqe=/%5D/g,Lre=/%5E/g,dqe=/%60/g,Ore=/%7B/g,fqe=/%7C/g,$re=/%7D/g,Aqe=/%20/g;function xO(e){return encodeURI(""+e).replace(fqe,"|").replace(uqe,"[").replace(cqe,"]")}function hqe(e){return xO(e).replace(Ore,"{").replace($re,"}").replace(Lre,"^")}function XM(e){return xO(e).replace(kre,"%2B").replace(Aqe,"+").replace(Fre,"%23").replace(aqe,"%26").replace(dqe,"`").replace(Ore,"{").replace($re,"}").replace(Lre,"^")}function vqe(e){return XM(e).replace(sqe,"%3D")}function pqe(e){return xO(e).replace(Fre,"%23").replace(lqe,"%3F")}function gqe(e){return e==null?"":pqe(e).replace(iqe,"%2F")}function lC(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function mqe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const a=n[o].replace(kre," "),i=a.indexOf("="),s=lC(i<0?a:a.slice(0,i)),l=i<0?null:lC(a.slice(i+1));if(s in t){let u=t[s];Array.isArray(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function f8(e){let t="";for(let r in e){const n=e[r];if(r=vqe(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Array.isArray(n)?n.map(a=>a&&XM(a)):[n&&XM(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function yqe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}function ug(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function lc(e,t,r,n,o){const a=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((i,s)=>{const l=d=>{d===!1?s(Nv(4,{from:r,to:t})):d instanceof Error?s(d):VXe(d)?s(Nv(2,{from:t,to:d})):(a&&n.enterCallbacks[o]===a&&typeof d=="function"&&a.push(d),i())},u=e.call(n&&n.instances[o],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(d=>s(d))})}function KT(e,t,r,n){const o=[];for(const a of e)for(const i in a.components){let s=a.components[i];if(!(t!=="beforeRouteEnter"&&!a.instances[i]))if(bqe(s)){const u=(s.__vccOpts||s)[t];u&&o.push(lc(u,r,n,a,i))}else{let l=s();o.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${a.path}"`));const c=_Xe(u)?u.default:u;a.components[i]=c;const f=(c.__vccOpts||c)[t];return f&&lc(f,r,n,a,i)()}))}}return o}function bqe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function A8(e){const t=Ke(E_),r=Ke(bO),n=L(()=>t.resolve(Fn(e.to))),o=L(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],d=r.matched;if(!c||!d.length)return-1;const f=d.findIndex(Uv.bind(null,c));if(f>-1)return f;const A=h8(l[u-2]);return u>1&&h8(c)===A&&d[d.length-1].path!==A?d.findIndex(Uv.bind(null,l[u-2])):f}),a=L(()=>o.value>-1&&Sqe(r.params,n.value.params)),i=L(()=>o.value>-1&&o.value===r.matched.length-1&&Rre(r.params,n.value.params));function s(l={}){return Cqe(l)?t[Fn(e.replace)?"replace":"push"](Fn(e.to)).catch(P0):Promise.resolve()}return{route:n,href:L(()=>n.value.href),isActive:a,isExactActive:i,navigate:s}}const xqe=ge({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:A8,setup(e,{slots:t}){const r=Ni(A8(e)),{options:n}=Ke(E_),o=L(()=>({[v8(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[v8(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:S("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},a)}}}),wqe=xqe;function Cqe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Sqe(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!Array.isArray(o)||o.length!==n.length||n.some((a,i)=>a!==o[i]))return!1}return!0}function h8(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const v8=(e,t,r)=>e!=null?e:t!=null?t:r,_qe=ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const n=Ke(jM),o=L(()=>e.route||n.value),a=Ke(n8,0),i=L(()=>o.value.matched[a]);_t(n8,a+1),_t(SXe,i),_t(jM,o);const s=q();return gt(()=>[s.value,i.value,e.name],([l,u,c],[d,f,A])=>{u&&(u.instances[c]=l,f&&f!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!Uv(u,f)||!d)&&(u.enterCallbacks[c]||[]).forEach(h=>h(l))},{flush:"post"}),()=>{const l=o.value,u=i.value,c=u&&u.components[e.name],d=e.name;if(!c)return p8(r.default,{Component:c,route:l});const f=u.props[e.name],A=f?f===!0?l.params:typeof f=="function"?f(l):f:null,v=S(c,an({},A,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return p8(r.default,{Component:v,route:l})||v}}});function p8(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Bqe=_qe;function Tqe(e){const t=eqe(e.routes,e),r=e.parseQuery||mqe,n=e.stringifyQuery||f8,o=e.history,a=ug(),i=ug(),s=ug(),l=mK(Qu);let u=Qu;zh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=WT.bind(null,re=>""+re),d=WT.bind(null,gqe),f=WT.bind(null,lC);function A(re,le){let se,ce;return Mre(re)?(se=t.getRecordMatcher(re),ce=le):ce=re,t.addRoute(ce,se)}function h(re){const le=t.getRecordMatcher(re);le&&t.removeRoute(le)}function v(){return t.getRoutes().map(re=>re.record)}function p(re){return!!t.getRecordMatcher(re)}function g(re,le){if(le=an({},le||l.value),typeof re=="string"){const K=GT(r,re,le.path),U=t.resolve({path:K.path},le),k=o.createHref(K.fullPath);return an(K,U,{params:f(U.params),hash:lC(K.hash),redirectedFrom:void 0,href:k})}let se;if("path"in re)se=an({},re,{path:GT(r,re.path,le.path).path});else{const K=an({},re.params);for(const U in K)K[U]==null&&delete K[U];se=an({},re,{params:d(re.params)}),le.params=d(le.params)}const ce=t.resolve(se,le),be=re.hash||"";ce.params=c(f(ce.params));const de=EXe(n,an({},re,{hash:hqe(be),path:ce.path})),pe=o.createHref(de);return an({fullPath:de,hash:be,query:n===f8?yqe(re.query):re.query||{}},ce,{redirectedFrom:void 0,href:pe})}function m(re){return typeof re=="string"?GT(r,re,l.value.path):an({},re)}function y(re,le){if(u!==re)return Nv(8,{from:le,to:re})}function b(re){return C(re)}function x(re){return b(an(m(re),{replace:!0}))}function w(re){const le=re.matched[re.matched.length-1];if(le&&le.redirect){const{redirect:se}=le;let ce=typeof se=="function"?se(re):se;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=m(ce):{path:ce},ce.params={}),an({query:re.query,hash:re.hash,params:re.params},ce)}}function C(re,le){const se=u=g(re),ce=l.value,be=re.state,de=re.force,pe=re.replace===!0,K=w(se);if(K)return C(an(m(K),{state:be,force:de,replace:pe}),le||se);const U=se;U.redirectedFrom=le;let k;return!de&&IXe(n,ce,se)&&(k=Nv(16,{to:U,from:ce}),V(ce,ce,!0,!1)),(k?Promise.resolve(k):B(U,ce)).catch(J=>Ld(J)?J:$(J,U,ce)).then(J=>{if(J){if(Ld(J,2))return C(an(m(J.to),{state:be,force:de,replace:pe}),le||U)}else J=E(U,ce,!0,pe,be);return T(U,ce,J),J})}function _(re,le){const se=y(re,le);return se?Promise.reject(se):Promise.resolve()}function B(re,le){let se;const[ce,be,de]=Eqe(re,le);se=KT(ce.reverse(),"beforeRouteLeave",re,le);for(const K of ce)K.leaveGuards.forEach(U=>{se.push(lc(U,re,le))});const pe=_.bind(null,re,le);return se.push(pe),fh(se).then(()=>{se=[];for(const K of a.list())se.push(lc(K,re,le));return se.push(pe),fh(se)}).then(()=>{se=KT(be,"beforeRouteUpdate",re,le);for(const K of be)K.updateGuards.forEach(U=>{se.push(lc(U,re,le))});return se.push(pe),fh(se)}).then(()=>{se=[];for(const K of re.matched)if(K.beforeEnter&&!le.matched.includes(K))if(Array.isArray(K.beforeEnter))for(const U of K.beforeEnter)se.push(lc(U,re,le));else se.push(lc(K.beforeEnter,re,le));return se.push(pe),fh(se)}).then(()=>(re.matched.forEach(K=>K.enterCallbacks={}),se=KT(de,"beforeRouteEnter",re,le),se.push(pe),fh(se))).then(()=>{se=[];for(const K of i.list())se.push(lc(K,re,le));return se.push(pe),fh(se)}).catch(K=>Ld(K,8)?K:Promise.reject(K))}function T(re,le,se){for(const ce of s.list())ce(re,le,se)}function E(re,le,se,ce,be){const de=y(re,le);if(de)return de;const pe=le===Qu,K=zh?history.state:{};se&&(ce||pe?o.replace(re.fullPath,an({scroll:pe&&K&&K.scroll},be)):o.push(re.fullPath,be)),l.value=re,V(re,le,se,pe),Q()}let I;function R(){I=o.listen((re,le,se)=>{const ce=g(re),be=w(ce);if(be){C(an(be,{replace:!0}),ce).catch(P0);return}u=ce;const de=l.value;zh&&OXe(i8(de.fullPath,se.delta),I_()),B(ce,de).catch(pe=>Ld(pe,12)?pe:Ld(pe,2)?(C(pe.to,ce).then(K=>{Ld(K,20)&&!se.delta&&se.type===_m.pop&&o.go(-1,!1)}).catch(P0),Promise.reject()):(se.delta&&o.go(-se.delta,!1),$(pe,ce,de))).then(pe=>{pe=pe||E(ce,de,!1),pe&&(se.delta?o.go(-se.delta,!1):se.type===_m.pop&&Ld(pe,20)&&o.go(-1,!1)),T(ce,de,pe)}).catch(P0)})}let D=ug(),F=ug(),M;function $(re,le,se){Q(re);const ce=F.list();return ce.length?ce.forEach(be=>be(re,le,se)):console.error(re),Promise.reject(re)}function O(){return M&&l.value!==Qu?Promise.resolve():new Promise((re,le)=>{D.add([re,le])})}function Q(re){M||(M=!0,R(),D.list().forEach(([le,se])=>re?se(re):le()),D.reset())}function V(re,le,se,ce){const{scrollBehavior:be}=e;if(!zh||!be)return Promise.resolve();const de=!se&&$Xe(i8(re.fullPath,0))||(ce||!se)&&history.state&&history.state.scroll||null;return dr().then(()=>be(re,le,de)).then(pe=>pe&&LXe(pe)).catch(pe=>$(pe,re,le))}const W=re=>o.go(re);let Z;const te=new Set;return{currentRoute:l,addRoute:A,removeRoute:h,hasRoute:p,getRoutes:v,resolve:g,options:e,push:b,replace:x,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:a.add,beforeResolve:i.add,afterEach:s.add,onError:F.add,isReady:O,install(re){const le=this;re.component("RouterLink",wqe),re.component("RouterView",Bqe),re.config.globalProperties.$router=le,Object.defineProperty(re.config.globalProperties,"$route",{enumerable:!0,get:()=>Fn(l)}),zh&&!Z&&l.value===Qu&&(Z=!0,b(o.location).catch(be=>{}));const se={};for(const be in Qu)se[be]=L(()=>l.value[be]);re.provide(E_,le),re.provide(bO,Ni(se)),re.provide(jM,l);const ce=re.unmount;te.add(re),re.unmount=function(){te.delete(re),te.size<1&&(u=Qu,I&&I(),l.value=Qu,Z=!1,M=!1),ce()}}}}function fh(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function Eqe(e,t){const r=[],n=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const s=t.matched[i];s&&(e.matched.find(u=>Uv(u,s))?n.push(s):r.push(s));const l=e.matched[i];l&&(t.matched.find(u=>Uv(u,l))||o.push(l))}return[r,n,o]}function zRt(){return Ke(E_)}function QRt(){return Ke(bO)}var qM=(e=>(e.CHART_HOME="/chart/home/:id(.*)*",e.CHART_HOME_NAME="ChartHome",e))(qM||{}),Bm=(e=>(e.CHART_PREVIEW="/chart/preview/:id(.*)*",e.CHART_PREVIEW_NAME="ChartPreview",e))(Bm||{}),k0=(e=>(e.CHART_EDIT="/chart/edit/:id(.*)*",e.CHART_EDIT_NAME="ChartEdit",e))(k0||{}),Pr=(e=>(e.BASE_LOGIN="/login",e.BASE_LOGIN_NAME="Login",e.REDIRECT="/redirect",e.REDIRECT_NAME="Redirect",e.REDIRECT_UN_PUBLISH="/redirect/unPublish",e.REDIRECT_UN_PUBLISH_NAME="redirect-un-publish",e.RELOAD="/reload",e.RELOAD_NAME="Reload",e.BASE_HOME="/project",e.BASE_HOME_NAME="Project",e.BASE_HOME_ITEMS="/project/items",e.BASE_HOME_ITEMS_NAME="Project-Items",e.BASE_HOME_TEMPLATE="/project/my-template",e.BASE_HOME_TEMPLATE_NAME="Project-My-Template",e.BASE_HOME_TEMPLATE_MARKET="/project/template-market",e.BASE_HOME_TEMPLATE_MARKET_NAME="Project-Template-Market",e.ERROR_PAGE_NAME_403="ErrorPage403",e.ERROR_PAGE_NAME_404="ErrorPage404",e.ERROR_PAGE_NAME_500="ErrorPage500",e))(Pr||{});const Ure=new Map([[Dc.NOT_FOUND,"ErrorPage404"],[Dc.SERVER_FORBIDDEN,"ErrorPage403"],[Dc.SERVER_ERROR,"ErrorPage500"]]);var $A=(e=>(e.GO_SETTING_STORE="GO_SETTING",e.GO_SYSTEM_STORE="GO_SYSTEM",e.GO_LANG_STORE="GO_LANG",e.GO_DESIGN_STORE="GO_DESIGN",e.GO_CHART_LAYOUT_STORE="GO_CHART_LAYOUT",e.GO_CHART_STORAGE_LIST="GO_CHART_STORAGE_LIST",e.GO_USER_MEDIA_PHOTOS="GO_USER_MEDIA_PHOTOS",e))($A||{});const Tm=(e,t)=>{try{window.localStorage.setItem(e,_re(t))}catch(r){return!1}},$y=e=>{const t=window.localStorage.getItem(e);try{return t&&Bre(t)}catch(r){return t}},Iqe=e=>{window.localStorage.removeItem(e)},VRt=(e,t)=>{try{window.sessionStorage.setItem(e,_re(t))}catch(r){return!1}},WRt=e=>{const t=window.sessionStorage.getItem(e);try{return t&&Bre(t)}catch(r){return t}},Rqe=(e,t,r)=>{const n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);const o="expires="+n.toUTCString();document.cookie=e+"="+t+"; "+o},Dqe=e=>{Rqe(e,"",-1)},Mqe=[Pr.BASE_LOGIN_NAME,Bm.CHART_PREVIEW_NAME];function Pqe(e){e.beforeEach((t,r,n)=>ku(this,null,function*(){window.route||(window.route={params:{}}),Object.assign(window.route.params,t.query);const o=window.$loading;o&&o.start(),e.getRoutes().findIndex(i=>i.name===t.name)===-1&&n({name:Pr.ERROR_PAGE_NAME_404}),!Mqe.includes(t.name)&&!bet()&&n({name:Pr.BASE_LOGIN_NAME}),n()})),e.afterEach((t,r,n)=>{var a;const o=window.$loading;document.title=((a=t==null?void 0:t.meta)==null?void 0:a.title)||document.title,o&&o.finish()}),e.onError(t=>{console.log(t,"路由错误")})}const Fqe="modulepreload",kqe=function(e){return"/plugin/screen/"+e},g8={},_a=function(t,r,n){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=kqe(a),a in g8)return;g8[a]=!0;const i=a.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":Fqe,i||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())},Nre=()=>_a(()=>import("./404-e15829f2.js"),["static/js/404-e15829f2.js","static/css/404-366e2e76.css"]),Lqe=()=>_a(()=>import("./403-6db71c94.js"),["static/js/403-6db71c94.js","static/css/403-045f062f.css"]),Oqe=()=>_a(()=>import("./500-faa2c5d7.js"),["static/js/500-faa2c5d7.js","static/css/500-5003991a.css"]),$qe=()=>_a(()=>import("./index-2c668a0c.js"),["static/js/index-2c668a0c.js","static/css/index-55202e86.css"]),Uqe=()=>_a(()=>import("./UnPublish-a8577cac.js"),["static/js/UnPublish-a8577cac.js","static/css/UnPublish-3bd2924c.css"]),Nqe=()=>_a(()=>import("./index-c86d2b08.js"),[]),Hqe={class:"go-reload"},zqe=ge({__name:"index",setup(e){return yr(()=>{vu.go(-1)}),(t,r)=>(jo(),ll("div",Hqe))}});const R_=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Qqe=R_(zqe,[["__scopeId","data-v-5419dc67"]]),Vqe={path:Pr.BASE_LOGIN,name:Pr.BASE_LOGIN_NAME,component:()=>_a(()=>import("./index-0af1eed5.js"),["static/js/index-0af1eed5.js","static/js/index-a89a2ac9.js","static/js/icon-e082edd4.js","static/css/index-59c0af28.css","static/css/index-6d755a14.css"]),meta:{title:"登录"}},Wqe=[{path:"/error/404",name:Pr.ERROR_PAGE_NAME_404,component:Nre,meta:{title:Pr.ERROR_PAGE_NAME_404}},{path:"/error/403",name:Pr.ERROR_PAGE_NAME_403,component:Lqe,meta:{title:Pr.ERROR_PAGE_NAME_403}},{path:"/error/500",name:Pr.ERROR_PAGE_NAME_500,component:Oqe,meta:{title:Pr.ERROR_PAGE_NAME_500}}];Pr.ERROR_PAGE_NAME_404;const Gqe={path:Pr.RELOAD,name:Pr.RELOAD_NAME,component:Qqe,meta:{title:Pr.RELOAD_NAME}},Kqe=[{path:Pr.REDIRECT,name:Pr.REDIRECT_NAME,component:$qe,meta:{title:Pr.REDIRECT_NAME}},{path:Pr.REDIRECT_UN_PUBLISH,name:Pr.REDIRECT_UN_PUBLISH_NAME,component:Uqe,meta:{title:Pr.REDIRECT_UN_PUBLISH_NAME}}],w1={"PageEnum.BASE_HOME_NAME":()=>_a(()=>import("./index-79c27514.js"),["static/js/index-79c27514.js","static/js/icon-e082edd4.js","static/js/project.api-d0c67421.js","static/js/index.vue_vue_type_script_setup_true_lang-68edf174.js","static/js/index-a89a2ac9.js","static/css/index-59c0af28.css","static/css/index-b9d509fc.css","static/css/index-79dd6351.css"]),"PageEnum.BASE_HOME_ITEMS_NAME":()=>_a(()=>import("./index-4b3b4858.js"),["static/js/index-4b3b4858.js","static/js/icon-e082edd4.js","static/js/index-6189d68b.js","static/css/index-247c99bc.css","static/js/project.api-d0c67421.js","static/js/plugin-165ba3a0.js","static/css/index-a295b2eb.css"]),"PageEnum.BASE_HOME_TEMPLATE_NAME":()=>_a(()=>import("./index-569bc0e3.js"),["static/js/index-569bc0e3.js","static/css/index-99b41a4b.css"]),"PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME":()=>_a(()=>import("./index-de471621.js"),["static/js/index-de471621.js","static/css/index-27c827f9.css"])},jqe={path:Pr.BASE_HOME,name:Pr.BASE_HOME_NAME,component:w1["PageEnum.BASE_HOME_NAME"],redirect:Pr.BASE_HOME_ITEMS,meta:{title:"项目",isRoot:!0},children:[{path:Pr.BASE_HOME_ITEMS,name:Pr.BASE_HOME_ITEMS_NAME,component:w1["PageEnum.BASE_HOME_ITEMS_NAME"],meta:{title:"我的项目"}},{path:Pr.BASE_HOME_TEMPLATE,name:Pr.BASE_HOME_TEMPLATE_NAME,component:w1["PageEnum.BASE_HOME_TEMPLATE_NAME"],meta:{title:"我的模板"}},{path:Pr.BASE_HOME_TEMPLATE_MARKET,name:Pr.BASE_HOME_TEMPLATE_MARKET_NAME,component:w1["PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME"],meta:{title:"模板市场"}}]},Yqe={"ChartEnum.CHART_HOME_NAME":()=>_a(()=>import("./index-2d96129b.js").then(e=>e.i),["static/js/index-2d96129b.js","static/js/index-a89a2ac9.js","static/js/icon-e082edd4.js","static/css/index-59c0af28.css","static/js/index.vue_vue_type_script_setup_true_lang-68edf174.js","static/css/index-b9d509fc.css","static/js/chartEditStore-5b626e9c.js","static/js/plugin-165ba3a0.js","static/css/index-f4c427ee.css"])},Xqe={path:qM.CHART_HOME,name:qM.CHART_HOME_NAME,component:Yqe["ChartEnum.CHART_HOME_NAME"],meta:{title:"工作空间",isRoot:!0,noKeepAlive:!0}},qqe={"PreviewEnum.CHART_PREVIEW_NAME":()=>_a(()=>import("./wrapper-35bf1af0.js"),["static/js/wrapper-35bf1af0.js","static/js/storage-d2c3115b.js","static/js/project.api-d0c67421.js","static/js/chartEditStore-5b626e9c.js","static/js/plugin-165ba3a0.js","static/js/icon-e082edd4.js","static/js/querySelectorAll-a1c431d2.js","static/js/index-1ad9294e.js","static/js/SettingItem-57ad16d5.js","static/css/StylesSetting-7ca7a4ce.css","static/js/SettingItemBox-13bc4e98.js","static/js/CollapseItem.vue_vue_type_script_setup_true_lang-e650e2b4.js","static/js/index.esm.min-63667608.js","static/js/fileTypeEnum-21359a08.js","static/css/index-a4069b2a.css","static/js/useLifeHandler.hook-9e3bea6f.js","static/js/listen-92ff7612.js","static/css/wrapper-30d48a15.css"])},Zqe={path:Bm.CHART_PREVIEW,name:Bm.CHART_PREVIEW_NAME,component:qqe["PreviewEnum.CHART_PREVIEW_NAME"],meta:{title:"预览",isRoot:!0}},Jqe={[k0.CHART_EDIT_NAME]:()=>_a(()=>import("./index-313646af.js"),["static/js/index-313646af.js","static/js/EditorWorker-2763fe79.js","static/js/editorWorker-43a98755.js","static/css/EditorWorker-99fc9b4e.css","static/js/storage-d2c3115b.js","static/js/project.api-d0c67421.js","static/js/chartEditStore-5b626e9c.js","static/js/plugin-165ba3a0.js","static/js/icon-e082edd4.js","static/js/querySelectorAll-a1c431d2.js","static/js/useSync.hook-4ea0eef2.js","static/js/chartLayoutStore-fd1db715.js","static/js/index-1ad9294e.js","static/js/SettingItem-57ad16d5.js","static/css/StylesSetting-7ca7a4ce.css","static/js/SettingItemBox-13bc4e98.js","static/js/CollapseItem.vue_vue_type_script_setup_true_lang-e650e2b4.js","static/js/index.esm.min-63667608.js","static/js/fileTypeEnum-21359a08.js","static/css/index-a4069b2a.css","static/css/index-b3d290ad.css"])},eZe={path:k0.CHART_EDIT,name:k0.CHART_EDIT_NAME,component:Jqe[k0.CHART_EDIT_NAME],meta:{title:"编辑",isRoot:!0}},C1={projectRoutes:jqe,chartRoutes:Xqe,previewRoutes:Zqe,editRoutes:eZe},tZe=[{path:"/",name:"Root",redirect:Pr.BASE_HOME,component:Nqe,meta:{title:"Root"},children:[...Wqe,...Kqe,C1.projectRoutes,C1.chartRoutes,C1.previewRoutes,C1.editRoutes]}],rZe=[Vqe,...tZe,Gqe],vu=Tqe({history:QXe(""),routes:rZe,strict:!0});function nZe(e){e.use(vu),Pqe(vu)}function Hre(e,t){return function(){return e.apply(t,arguments)}}const{toString:oZe}=Object.prototype,{getPrototypeOf:wO}=Object,D_=(e=>t=>{const r=oZe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Tl=e=>(e=e.toLowerCase(),t=>D_(t)===e),M_=e=>t=>typeof t===e,{isArray:Bp}=Array,Em=M_("undefined");function aZe(e){return e!==null&&!Em(e)&&e.constructor!==null&&!Em(e.constructor)&&Ri(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zre=Tl("ArrayBuffer");function iZe(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zre(e.buffer),t}const sZe=M_("string"),Ri=M_("function"),Qre=M_("number"),P_=e=>e!==null&&typeof e=="object",lZe=e=>e===!0||e===!1,Wx=e=>{if(D_(e)!=="object")return!1;const t=wO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uZe=Tl("Date"),cZe=Tl("File"),dZe=Tl("Blob"),fZe=Tl("FileList"),AZe=e=>P_(e)&&Ri(e.pipe),hZe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ri(e.append)&&((t=D_(e))==="formdata"||t==="object"&&Ri(e.toString)&&e.toString()==="[object FormData]"))},vZe=Tl("URLSearchParams"),pZe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Uy(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let n,o;if(typeof e!="object"&&(e=[e]),Bp(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(n=0;n<i;n++)s=a[n],t.call(null,e[s],s,e)}}function Vre(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Wre=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),Gre=e=>!Em(e)&&e!==Wre;function ZM(){const{caseless:e}=Gre(this)&&this||{},t={},r=(n,o)=>{const a=e&&Vre(t,o)||o;Wx(t[a])&&Wx(n)?t[a]=ZM(t[a],n):Wx(n)?t[a]=ZM({},n):Bp(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Uy(arguments[n],r);return t}const gZe=(e,t,r,{allOwnKeys:n}={})=>(Uy(t,(o,a)=>{r&&Ri(o)?e[a]=Hre(o,r):e[a]=o},{allOwnKeys:n}),e),mZe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yZe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},bZe=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&wO(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},xZe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},wZe=e=>{if(!e)return null;if(Bp(e))return e;let t=e.length;if(!Qre(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},CZe=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&wO(Uint8Array)),SZe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},_Ze=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},BZe=Tl("HTMLFormElement"),TZe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),m8=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),EZe=Tl("RegExp"),Kre=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Uy(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o)}),Object.defineProperties(e,n)},IZe=e=>{Kre(e,(t,r)=>{if(Ri(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ri(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},RZe=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Bp(e)?n(e):n(String(e).split(t)),r},DZe=()=>{},MZe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jT="abcdefghijklmnopqrstuvwxyz",y8="0123456789",jre={DIGIT:y8,ALPHA:jT,ALPHA_DIGIT:jT+jT.toUpperCase()+y8},PZe=(e=16,t=jre.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function FZe(e){return!!(e&&Ri(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kZe=e=>{const t=new Array(10),r=(n,o)=>{if(P_(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Bp(n)?[]:{};return Uy(n,(i,s)=>{const l=r(i,o+1);!Em(l)&&(a[s]=l)}),t[o]=void 0,a}}return n};return r(e,0)},LZe=Tl("AsyncFunction"),OZe=e=>e&&(P_(e)||Ri(e))&&Ri(e.then)&&Ri(e.catch),We={isArray:Bp,isArrayBuffer:zre,isBuffer:aZe,isFormData:hZe,isArrayBufferView:iZe,isString:sZe,isNumber:Qre,isBoolean:lZe,isObject:P_,isPlainObject:Wx,isUndefined:Em,isDate:uZe,isFile:cZe,isBlob:dZe,isRegExp:EZe,isFunction:Ri,isStream:AZe,isURLSearchParams:vZe,isTypedArray:CZe,isFileList:fZe,forEach:Uy,merge:ZM,extend:gZe,trim:pZe,stripBOM:mZe,inherits:yZe,toFlatObject:bZe,kindOf:D_,kindOfTest:Tl,endsWith:xZe,toArray:wZe,forEachEntry:SZe,matchAll:_Ze,isHTMLForm:BZe,hasOwnProperty:m8,hasOwnProp:m8,reduceDescriptors:Kre,freezeMethods:IZe,toObjectSet:RZe,toCamelCase:TZe,noop:DZe,toFiniteNumber:MZe,findKey:Vre,global:Wre,isContextDefined:Gre,ALPHABET:jre,generateString:PZe,isSpecCompliantForm:FZe,toJSONObject:kZe,isAsyncFn:LZe,isThenable:OZe};function Ur(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}We.inherits(Ur,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:We.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yre=Ur.prototype,Xre={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xre[e]={value:e}});Object.defineProperties(Ur,Xre);Object.defineProperty(Yre,"isAxiosError",{value:!0});Ur.from=(e,t,r,n,o,a)=>{const i=Object.create(Yre);return We.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ur.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const $Ze=null;function JM(e){return We.isPlainObject(e)||We.isArray(e)}function qre(e){return We.endsWith(e,"[]")?e.slice(0,-2):e}function b8(e,t,r){return e?e.concat(t).map(function(o,a){return o=qre(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function UZe(e){return We.isArray(e)&&!e.some(JM)}const NZe=We.toFlatObject(We,{},null,function(t){return/^is[A-Z]/.test(t)});function F_(e,t,r){if(!We.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=We.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,p){return!We.isUndefined(p[v])});const n=r.metaTokens,o=r.visitor||c,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob!="undefined"&&Blob)&&We.isSpecCompliantForm(t);if(!We.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(We.isDate(h))return h.toISOString();if(!l&&We.isBlob(h))throw new Ur("Blob is not supported. Use a Buffer instead.");return We.isArrayBuffer(h)||We.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,p){let g=h;if(h&&!p&&typeof h=="object"){if(We.endsWith(v,"{}"))v=n?v:v.slice(0,-2),h=JSON.stringify(h);else if(We.isArray(h)&&UZe(h)||(We.isFileList(h)||We.endsWith(v,"[]"))&&(g=We.toArray(h)))return v=qre(v),g.forEach(function(y,b){!(We.isUndefined(y)||y===null)&&t.append(i===!0?b8([v],b,a):i===null?v:v+"[]",u(y))}),!1}return JM(h)?!0:(t.append(b8(p,v,a),u(h)),!1)}const d=[],f=Object.assign(NZe,{defaultVisitor:c,convertValue:u,isVisitable:JM});function A(h,v){if(!We.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(h),We.forEach(h,function(g,m){(!(We.isUndefined(g)||g===null)&&o.call(t,g,We.isString(m)?m.trim():m,v,f))===!0&&A(g,v?v.concat(m):[m])}),d.pop()}}if(!We.isObject(e))throw new TypeError("data must be an object");return A(e),t}function x8(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function CO(e,t){this._pairs=[],e&&F_(e,this,t)}const Zre=CO.prototype;Zre.append=function(t,r){this._pairs.push([t,r])};Zre.toString=function(t){const r=t?function(n){return t.call(this,n,x8)}:x8;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function HZe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jre(e,t,r){if(!t)return e;const n=r&&r.encode||HZe,o=r&&r.serialize;let a;if(o?a=o(t,r):a=We.isURLSearchParams(t)?t.toString():new CO(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class zZe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){We.forEach(this.handlers,function(n){n!==null&&t(n)})}}const w8=zZe,ene={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QZe=typeof URLSearchParams!="undefined"?URLSearchParams:CO,VZe=typeof FormData!="undefined"?FormData:null,WZe=typeof Blob!="undefined"?Blob:null,GZe=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),KZe=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qs={isBrowser:!0,classes:{URLSearchParams:QZe,FormData:VZe,Blob:WZe},isStandardBrowserEnv:GZe,isStandardBrowserWebWorkerEnv:KZe,protocols:["http","https","file","blob","url","data"]};function jZe(e,t){return F_(e,new qs.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return qs.isNode&&We.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function YZe(e){return We.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XZe(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function tne(e){function t(r,n,o,a){let i=r[a++];const s=Number.isFinite(+i),l=a>=r.length;return i=!i&&We.isArray(o)?o.length:i,l?(We.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!We.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&We.isArray(o[i])&&(o[i]=XZe(o[i])),!s)}if(We.isFormData(e)&&We.isFunction(e.entries)){const r={};return We.forEachEntry(e,(n,o)=>{t(YZe(n),o,r,0)}),r}return null}const qZe={"Content-Type":void 0};function ZZe(e,t,r){if(We.isString(e))try{return(t||JSON.parse)(e),We.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const k_={transitional:ene,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=We.isObject(t);if(a&&We.isHTMLForm(t)&&(t=new FormData(t)),We.isFormData(t))return o&&o?JSON.stringify(tne(t)):t;if(We.isArrayBuffer(t)||We.isBuffer(t)||We.isStream(t)||We.isFile(t)||We.isBlob(t))return t;if(We.isArrayBufferView(t))return t.buffer;if(We.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return jZe(t,this.formSerializer).toString();if((s=We.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return F_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),ZZe(t)):t}],transformResponse:[function(t){const r=this.transitional||k_.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&We.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?Ur.from(s,Ur.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qs.classes.FormData,Blob:qs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};We.forEach(["delete","get","head"],function(t){k_.headers[t]={}});We.forEach(["post","put","patch"],function(t){k_.headers[t]=We.merge(qZe)});const SO=k_,JZe=We.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eJe=e=>{const t={};let r,n,o;return e&&e.split(`
  6056. `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&JZe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},C8=Symbol("internals");function cg(e){return e&&String(e).trim().toLowerCase()}function Gx(e){return e===!1||e==null?e:We.isArray(e)?e.map(Gx):String(e)}function tJe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const rJe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function YT(e,t,r,n,o){if(We.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!We.isString(t)){if(We.isString(n))return t.indexOf(n)!==-1;if(We.isRegExp(n))return n.test(t)}}function nJe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function oJe(e,t){const r=We.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}class L_{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,l,u){const c=cg(l);if(!c)throw new Error("header name must be a non-empty string");const d=We.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Gx(s))}const i=(s,l)=>We.forEach(s,(u,c)=>a(u,c,l));return We.isPlainObject(t)||t instanceof this.constructor?i(t,r):We.isString(t)&&(t=t.trim())&&!rJe(t)?i(eJe(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=cg(t),t){const n=We.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return tJe(o);if(We.isFunction(r))return r.call(this,o,n);if(We.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=cg(t),t){const n=We.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||YT(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=cg(i),i){const s=We.findKey(n,i);s&&(!r||YT(n,n[s],s,r))&&(delete n[s],o=!0)}}return We.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||YT(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return We.forEach(this,(o,a)=>{const i=We.findKey(n,a);if(i){r[i]=Gx(o),delete r[a];return}const s=t?nJe(a):String(a).trim();s!==a&&delete r[a],r[s]=Gx(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return We.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&We.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
  6057. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[C8]=this[C8]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=cg(i);n[s]||(oJe(o,i),n[s]=!0)}return We.isArray(t)?t.forEach(a):a(t),this}}L_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);We.freezeMethods(L_.prototype);We.freezeMethods(L_);const au=L_;function XT(e,t){const r=this||SO,n=t||r,o=au.from(n.headers);let a=n.data;return We.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function rne(e){return!!(e&&e.__CANCEL__)}function Ny(e,t,r){Ur.call(this,e==null?"canceled":e,Ur.ERR_CANCELED,t,r),this.name="CanceledError"}We.inherits(Ny,Ur,{__CANCEL__:!0});function aJe(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ur("Request failed with status code "+r.status,[Ur.ERR_BAD_REQUEST,Ur.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const iJe=qs.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,s){const l=[];l.push(r+"="+encodeURIComponent(n)),We.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),We.isString(a)&&l.push("path="+a),We.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sJe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lJe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function nne(e,t){return e&&!sJe(t)?lJe(e,t):t}const uJe=qs.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const s=We.isString(i)?o(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function cJe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dJe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[a];i||(i=u),r[o]=l,n[o]=u;let d=a,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const A=c&&u-c;return A?Math.round(f*1e3/A):void 0}}function S8(e,t){let r=0;const n=dJe(50,250);return o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-r,l=n(s),u=a<=i;r=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&u?(i-a)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const fJe=typeof XMLHttpRequest!="undefined",AJe=fJe&&function(e){return new Promise(function(r,n){let o=e.data;const a=au.from(e.headers).normalize(),i=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}We.isFormData(o)&&(qs.isStandardBrowserEnv||qs.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const A=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(A+":"+h))}const c=nne(e.baseURL,e.url);u.open(e.method.toUpperCase(),Jre(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const A=au.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:A,config:e,request:u};aJe(function(g){r(g),l()},function(g){n(g),l()},v),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(n(new Ur("Request aborted",Ur.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Ur("Network Error",Ur.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||ene;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),n(new Ur(h,v.clarifyTimeoutError?Ur.ETIMEDOUT:Ur.ECONNABORTED,e,u)),u=null},qs.isStandardBrowserEnv){const A=(e.withCredentials||uJe(c))&&e.xsrfCookieName&&iJe.read(e.xsrfCookieName);A&&a.set(e.xsrfHeaderName,A)}o===void 0&&a.setContentType(null),"setRequestHeader"in u&&We.forEach(a.toJSON(),function(h,v){u.setRequestHeader(v,h)}),We.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",S8(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",S8(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=A=>{u&&(n(!A||A.type?new Ny(null,e,u):A),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=cJe(c);if(f&&qs.protocols.indexOf(f)===-1){n(new Ur("Unsupported protocol "+f+":",Ur.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Kx={http:$Ze,xhr:AJe};We.forEach(Kx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const hJe={getAdapter:e=>{e=We.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=We.isString(r)?Kx[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new Ur(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(We.hasOwnProp(Kx,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!We.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Kx};function qT(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ny(null,e)}function _8(e){return qT(e),e.headers=au.from(e.headers),e.data=XT.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hJe.getAdapter(e.adapter||SO.adapter)(e).then(function(n){return qT(e),n.data=XT.call(e,e.transformResponse,n),n.headers=au.from(n.headers),n},function(n){return rne(n)||(qT(e),n&&n.response&&(n.response.data=XT.call(e,e.transformResponse,n.response),n.response.headers=au.from(n.response.headers))),Promise.reject(n)})}const B8=e=>e instanceof au?e.toJSON():e;function Hv(e,t){t=t||{};const r={};function n(u,c,d){return We.isPlainObject(u)&&We.isPlainObject(c)?We.merge.call({caseless:d},u,c):We.isPlainObject(c)?We.merge({},c):We.isArray(c)?c.slice():c}function o(u,c,d){if(We.isUndefined(c)){if(!We.isUndefined(u))return n(void 0,u,d)}else return n(u,c,d)}function a(u,c){if(!We.isUndefined(c))return n(void 0,c)}function i(u,c){if(We.isUndefined(c)){if(!We.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,c)=>o(B8(u),B8(c),!0)};return We.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);We.isUndefined(f)&&d!==s||(r[c]=f)}),r}const one="1.4.0",_O={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_O[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const T8={};_O.transitional=function(t,r,n){function o(a,i){return"[Axios v"+one+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new Ur(o(i," has been removed"+(r?" in "+r:"")),Ur.ERR_DEPRECATED);return r&&!T8[i]&&(T8[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};function vJe(e,t,r){if(typeof e!="object")throw new Ur("options must be an object",Ur.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new Ur("option "+a+" must be "+l,Ur.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ur("Unknown option "+a,Ur.ERR_BAD_OPTION)}}const eP={assertOptions:vJe,validators:_O},Vu=eP.validators;class uC{constructor(t){this.defaults=t,this.interceptors={request:new w8,response:new w8}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Hv(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&eP.assertOptions(n,{silentJSONParsing:Vu.transitional(Vu.boolean),forcedJSONParsing:Vu.transitional(Vu.boolean),clarifyTimeoutError:Vu.transitional(Vu.boolean)},!1),o!=null&&(We.isFunction(o)?r.paramsSerializer={serialize:o}:eP.assertOptions(o,{encode:Vu.function,serialize:Vu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&We.merge(a.common,a[r.method]),i&&We.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),r.headers=au.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const h=[_8.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,u),f=h.length,c=Promise.resolve(r);d<f;)c=c.then(h[d++],h[d++]);return c}f=s.length;let A=r;for(d=0;d<f;){const h=s[d++],v=s[d++];try{A=h(A)}catch(p){v.call(this,p);break}}try{c=_8.call(this,A)}catch(h){return Promise.reject(h)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Hv(this.defaults,t);const r=nne(t.baseURL,t.url);return Jre(r,t.params,t.paramsSerializer)}}We.forEach(["delete","get","head","options"],function(t){uC.prototype[t]=function(r,n){return this.request(Hv(n||{},{method:t,url:r,data:(n||{}).data}))}});We.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(Hv(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}uC.prototype[t]=r(),uC.prototype[t+"Form"]=r(!0)});const jx=uC;class BO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Ny(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new BO(function(o){t=o}),cancel:t}}}const pJe=BO;function gJe(e){return function(r){return e.apply(null,r)}}function mJe(e){return We.isObject(e)&&e.isAxiosError===!0}const tP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tP).forEach(([e,t])=>{tP[t]=e});const yJe=tP;function ane(e){const t=new jx(e),r=Hre(jx.prototype.request,t);return We.extend(r,jx.prototype,t,{allOwnKeys:!0}),We.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ane(Hv(e,o))},r}const ho=ane(SO);ho.Axios=jx;ho.CanceledError=Ny;ho.CancelToken=pJe;ho.isCancel=rne;ho.VERSION=one;ho.toFormData=F_;ho.AxiosError=Ur;ho.Cancel=ho.CanceledError;ho.all=function(t){return Promise.all(t)};ho.spread=gJe;ho.isAxiosError=mJe;ho.mergeConfig=Hv;ho.AxiosHeaders=au;ho.formToJSON=e=>tne(We.isHTMLForm(e)?new FormData(e):e);ho.HttpStatusCode=yJe;ho.default=ho;const bJe=ho,rP="/api/v1",xJe=[`${hv.SYSTEM}/login`,`${hv.SYSTEM}/getOssInfo`,`${hv.PROJECT}/getData`];function wJe(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var CJe=wJe;function SJe(e){return e!==e}var _Je=SJe;function BJe(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}var TJe=BJe,EJe=CJe,IJe=_Je,RJe=TJe;function DJe(e,t,r){return t===t?RJe(e,t,r):EJe(e,IJe,r)}var MJe=DJe,PJe=kA,FJe=Bl,kJe=Iu,LJe="[object String]";function OJe(e){return typeof e=="string"||!FJe(e)&&kJe(e)&&PJe(e)==LJe}var $Je=OJe,UJe=ete,E8=1/0,NJe=17976931348623157e292;function HJe(e){if(!e)return e===0?e:0;if(e=UJe(e),e===E8||e===-E8){var t=e<0?-1:1;return t*NJe}return e===e?e:0}var zJe=HJe,QJe=zJe;function VJe(e){var t=QJe(e),r=t%1;return t===t?r?t-r:t:0}var WJe=VJe;function GJe(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ine=GJe,KJe=ine;function jJe(e,t){return KJe(t,function(r){return e[r]})}var YJe=jJe,XJe=YJe,qJe=B_;function ZJe(e){return e==null?[]:XJe(e,qJe(e))}var JJe=ZJe,eet=MJe,tet=Ly,ret=$Je,net=WJe,oet=JJe,aet=Math.max;function iet(e,t,r,n){e=tet(e)?e:oet(e),r=r&&!n?net(r):0;var o=e.length;return r<0&&(r=aet(o+r,0)),ret(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&eet(e,t,r)>-1}var set=iet;const uet=ai(set);function cet(e="",t="http"){return t==="ws"?`wss://zhgy.sagoo.cn${e}`:`https://zhgy.sagoo.cn${e}`}const bd=bJe.create({baseURL:cet(`/base-api${rP}`),timeout:Dc.TIMEOUT});bd.interceptors.request.use(e=>{if(uet(xJe,e.url))return e;const t=localStorage.token;return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>{Promise.reject(e)});bd.interceptors.response.use(e=>{var r,n,o,a,i;if(met()){const s=e.data;return(n=(r=s==null?void 0:s.data)==null?void 0:r.Data)!=null&&n.projectName&&((o=s==null?void 0:s.data.Data)!=null&&o.content)?Promise.resolve(e.data):Promise.resolve(e.data.data)}const{code:t}=e.data;return t==null?Promise.resolve(e.data):t===Dc.SUCCESS?((a=e.data.data)==null?void 0:a.Data)!==void 0&&!((i=e.data.data)!=null&&i.Total)?Promise.resolve(e.data.data.Data):Promise.resolve(e.data.data):(t===Dc.TOKEN_OVERDUE&&(window.$message.error(window.$t("http.token_overdue_message")),setTimeout(()=>{window.location.href=window.location.origin},1e3)),Ure.get(t)?(pet(t),Promise.resolve(e.data)):(window.$message.error(window.$t(e.data.msg)),Promise.resolve(e.data)))},e=>{var r;switch((r=e.response)==null?void 0:r.status){case 401:O_(Pr.BASE_LOGIN_NAME),Promise.reject(e);break;default:Promise.reject(e);break}});const I8=(e,t)=>bd({url:e,method:Ha.GET,params:t}),det=(e,t,r)=>bd({url:e,method:Ha.POST,data:t,headers:{"Content-Type":r||Gl.JSON}}),fet=(e,t,r)=>bd({url:e,method:Ha.PATCH,data:t,headers:{"Content-Type":r||Gl.JSON}}),Aet=(e,t,r)=>bd({url:e,method:Ha.PUT,data:t,headers:{"Content-Type":r||Gl.JSON}}),het=(e,t)=>bd({url:e,method:Ha.DELETE,params:t}),sne=e=>{switch(e){case Ha.GET:return I8;case Ha.POST:return det;case Ha.PATCH:return fet;case Ha.PUT:return Aet;case Ha.DELETE:return het;default:return I8}},R8="javascript:",ff=e=>{if(typeof e=="string")if(e.startsWith(R8)){const t=e.split(R8)[1];let r;try{r=new Function(`${t}`)()}catch(n){console.log(n),window.$message.error("js内容解析有误!")}return r}else return e;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];e[t]=ff(r)}return e},GRt=(e,t)=>{if(!e||!t)return;const{requestOriginUrl:r,requestParams:n}=t,{innerRequestUrl:o,requestType:a,requestUrl:i,requestContentType:s,requestDataType:l,requestHttpType:u,requestParamsBodyType:c,requestSQLContent:d,requestParams:f}=e;if(l===Yee.STATIC||a==="outer"&&!i||a==="inner"&&!o)return;let A=qi(qi({},a==="outer"?n.Header:{}),f.Header);A=ff(A);let h={},v=qi({},f.Params);v=ff(v);let p=new FormData;switch(c){case Uh.NONE:break;case Uh.JSON:A["Content-Type"]=Gl.JSON,h=ff(f.Body.json),typeof h=="string"&&(h=JSON.parse(h));break;case Uh.XML:A["Content-Type"]=Gl.XML,h=ff(f.Body.xml);break;case Uh.X_WWW_FORM_URLENCODED:{A["Content-Type"]=Gl.FORM_URLENCODED;const g=f.Body["x-www-form-urlencoded"];for(const m in g)p.set(m,ff(g[m]));h=p;break}case Uh.FORM_DATA:{A["Content-Type"]=Gl.FORM_DATA;const g=f.Body["form-data"];for(const m in g)p.set(m,ff(g[m]));h=p;break}}s===Xee.SQL&&(A["Content-Type"]=Gl.JSON,h=d);try{const g=a==="outer"?`${r}${i}`:o.startsWith(rP)?o.replace(rP,""):o,m=new Function("return `"+g.trim()+"`")();return bd({url:m,method:u,data:h,params:v,headers:A})}catch(g){console.log(g),window.$message.error("URL地址格式有误!")}},KRt=e=>ku(void 0,null,function*(){try{return yield sne(Ha.POST)(`${hv.SYSTEM}/login`,e)}catch(t){yne()}}),vet=()=>ku(void 0,null,function*(){try{return yield sne(Ha.GET)(`${hv.SYSTEM}/logout`)}catch(e){yne()}}),O_=(e,t,r)=>{if(r){const n=lne(e,"href");une(n);return}if(t){vu.replace({name:e});return}vu.push({name:e})},lne=(e,t)=>{try{const r=vu.resolve({name:e});return t?r[t]:r}catch(r){window.$message.warning("查询路由信息失败,请联系管理员!")}},jRt=(e,t,r,n)=>{let o="";if(t!=null&&t.length&&(o=`${e}/${t.join("/")}`),n)return une(o);if(r){vu.replace({path:o});return}vu.push({path:o})},pet=e=>{if(!e)return!1;const t=Ure.get(e);if(!t)return!1;O_(t)},get=()=>{O_(Pr.RELOAD_NAME)},YRt=()=>ku(void 0,null,function*(){try{const e=yield vet();e&&e.code===Dc.SUCCESS&&(window.$message.success(window.$t("global.logout_success")),Dqe(qee.COOKIE),Iqe($A.GO_SYSTEM_STORE),O_(Pr.BASE_LOGIN_NAME))}catch(e){window.$message.success(window.$t("global.logout_failure"))}}),une=e=>window.open(e,"_blank"),met=()=>document.location.hash.includes("preview"),yet=()=>{try{return document.location.hash.split("?")[0].split("/").pop()||""}catch(e){return window.$message.warning("查询路由信息失败,请联系管理员!"),""}},bet=()=>localStorage.token,XRt=e=>{const{origin:t,pathname:r}=document.location,n=lne(Bm.CHART_PREVIEW_NAME,"href");return`${t}${r}${n}/${e||yet()}`};var cne={exports:{}},dne={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},fne={exports:{}},xet=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},wet=xet,Cet=Array.prototype.concat,_et=Array.prototype.slice,D8=fne.exports=function(t){for(var r=[],n=0,o=t.length;n<o;n++){var a=t[n];wet(a)?r=Cet.call(r,_et.call(a)):r.push(a)}return r};D8.wrap=function(e){return function(){return e(D8(arguments))}};var Bet=fne.exports,L0=dne,Hy=Bet,Ane=Object.hasOwnProperty,hne=Object.create(null);for(var ZT in L0)Ane.call(L0,ZT)&&(hne[L0[ZT]]=ZT);var Ka=cne.exports={to:{},get:{}};Ka.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=Ka.get.hsl(e),n="hsl";break;case"hwb":r=Ka.get.hwb(e),n="hwb";break;default:r=Ka.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null};Ka.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,i=[0,0,0,1],s,l,u;if(s=e.match(r)){for(u=s[2],s=s[1],l=0;l<3;l++){var c=l*2;i[l]=parseInt(s.slice(c,c+2),16)}u&&(i[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)i[l]=parseInt(s[l]+s[l],16);u&&(i[3]=parseInt(u+u,16)/255)}else if(s=e.match(n)){for(l=0;l<3;l++)i[l]=parseInt(s[l+1],0);s[4]&&(s[5]?i[3]=parseFloat(s[4])*.01:i[3]=parseFloat(s[4]))}else if(s=e.match(o)){for(l=0;l<3;l++)i[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?i[3]=parseFloat(s[4])*.01:i[3]=parseFloat(s[4]))}else return(s=e.match(a))?s[1]==="transparent"?[0,0,0,0]:Ane.call(L0,s[1])?(i=L0[s[1]],i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=Fc(i[l],0,255);return i[3]=Fc(i[3],0,1),i};Ka.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),o=(parseFloat(r[1])%360+360)%360,a=Fc(parseFloat(r[2]),0,100),i=Fc(parseFloat(r[3]),0,100),s=Fc(isNaN(n)?1:n,0,1);return[o,a,i,s]}return null};Ka.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),o=(parseFloat(r[1])%360+360)%360,a=Fc(parseFloat(r[2]),0,100),i=Fc(parseFloat(r[3]),0,100),s=Fc(isNaN(n)?1:n,0,1);return[o,a,i,s]}return null};Ka.to.hex=function(){var e=Hy(arguments);return"#"+S1(e[0])+S1(e[1])+S1(e[2])+(e[3]<1?S1(Math.round(e[3]*255)):"")};Ka.to.rgb=function(){var e=Hy(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Ka.to.rgb.percent=function(){var e=Hy(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"};Ka.to.hsl=function(){var e=Hy(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Ka.to.hwb=function(){var e=Hy(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Ka.to.keyword=function(e){return hne[e.slice(0,3)]};function Fc(e,t,r){return Math.min(Math.max(t,e),r)}function S1(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Tet=cne.exports;const Im=dne,vne={};for(const e of Object.keys(Im))vne[Im[e]]=e;const Ot={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var pne=Ot;for(const e of Object.keys(Ot)){if(!("channels"in Ot[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ot[e]))throw new Error("missing channel labels property: "+e);if(Ot[e].labels.length!==Ot[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Ot[e];delete Ot[e].channels,delete Ot[e].labels,Object.defineProperty(Ot[e],"channels",{value:t}),Object.defineProperty(Ot[e],"labels",{value:r})}Ot.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=a-o;let s,l;a===o?s=0:t===a?s=(r-n)/i:r===a?s=2+(n-t)/i:n===a&&(s=4+(t-r)/i),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+a)/2;return a===o?l=0:u<=.5?l=i/(a+o):l=i/(2-a-o),[s,l*100,u*100]};Ot.rgb.hsv=function(e){let t,r,n,o,a;const i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),d=function(f){return(u-f)/6/c+1/2};return c===0?(o=0,a=0):(a=c/u,t=d(i),r=d(s),n=d(l),i===u?o=n-r:s===u?o=1/3+t-n:l===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,u*100]};Ot.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=Ot.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,a*100,n*100]};Ot.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),a=(1-t-o)/(1-o)||0,i=(1-r-o)/(1-o)||0,s=(1-n-o)/(1-o)||0;return[a*100,i*100,s*100,o*100]};function Eet(e,t){return Yn(e[0]-t[0],2)+Yn(e[1]-t[1],2)+Yn(e[2]-t[2],2)}Ot.rgb.keyword=function(e){const t=vne[e];if(t)return t;let r=1/0,n;for(const o of Object.keys(Im)){const a=Im[o],i=Eet(e,a);i<r&&(r=i,n=o)}return n};Ot.keyword.rgb=function(e){return Im[e]};Ot.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Yn((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Yn((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Yn((n+.055)/1.055,2.4):n/12.92;const o=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[o*100,a*100,i*100]};Ot.rgb.lab=function(e){const t=Ot.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?Yn(r,1/3):7.787*r+16/116,n=n>.008856?Yn(n,1/3):7.787*n+16/116,o=o>.008856?Yn(o,1/3):7.787*o+16/116;const a=116*n-16,i=500*(r-n),s=200*(n-o);return[a,i,s]};Ot.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,a,i;if(r===0)return i=n*255,[i,i,i];n<.5?o=n*(1+r):o=n+r-n*r;const s=2*n-o,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?i=s+(o-s)*6*a:2*a<1?i=o:3*a<2?i=s+(o-s)*(2/3-a)*6:i=s,l[u]=i*255;return l};Ot.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=a<=1?a:2-a;const i=(n+r)/2,s=n===0?2*o/(a+o):2*r/(n+r);return[t,s*100,i*100]};Ot.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*a),l=255*n*(1-r*(1-a));switch(n*=255,o){case 0:return[n,l,i];case 1:return[s,n,i];case 2:return[i,n,l];case 3:return[i,s,n];case 4:return[l,i,n];case 5:return[n,i,s]}};Ot.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let a,i;i=(2-r)*n;const s=(2-r)*o;return a=r*o,a/=s<=1?s:2-s,a=a||0,i/=2,[t,a*100,i*100]};Ot.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let a;o>1&&(r/=o,n/=o);const i=Math.floor(6*t),s=1-n;a=6*t-i,i&1&&(a=1-a);const l=r+a*(s-r);let u,c,d;switch(i){default:case 6:case 0:u=s,c=l,d=r;break;case 1:u=l,c=s,d=r;break;case 2:u=r,c=s,d=l;break;case 3:u=r,c=l,d=s;break;case 4:u=l,c=r,d=s;break;case 5:u=s,c=r,d=l;break}return[u*255,c*255,d*255]};Ot.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,r*(1-o)+o),s=1-Math.min(1,n*(1-o)+o);return[a*255,i*255,s*255]};Ot.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,a,i;return o=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*Yn(o,1/2.4)-.055:o*12.92,a=a>.0031308?1.055*Yn(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Yn(i,1/2.4)-.055:i*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[o*255,a*255,i*255]};Ot.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?Yn(t,1/3):7.787*t+16/116,r=r>.008856?Yn(r,1/3):7.787*r+16/116,n=n>.008856?Yn(n,1/3):7.787*n+16/116;const o=116*r-16,a=500*(t-r),i=200*(r-n);return[o,a,i]};Ot.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let o,a,i;a=(t+16)/116,o=r/500+a,i=a-n/200;const s=Yn(a,3),l=Yn(o,3),u=Yn(i,3);return a=s>.008856?s:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o*=95.047,a*=100,i*=108.883,[o,a,i]};Ot.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);const i=Math.sqrt(r*r+n*n);return[t,i,o]};Ot.lch.lab=function(e){const t=e[0],r=e[1],o=e[2]/360*2*Math.PI,a=r*Math.cos(o),i=r*Math.sin(o);return[t,a,i]};Ot.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let a=t===null?Ot.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(i+=60),i};Ot.hsv.ansi16=function(e){return Ot.rgb.ansi16(Ot.hsv.rgb(e),e[2])};Ot.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Ot.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,o,a]};Ot.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};Ot.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Ot.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return[o,a,i]};Ot.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),i=o-a;let s,l;return i<1?s=a/(1-i):s=0,i<=0?l=0:o===t?l=(r-n)/i%6:o===r?l=2+(n-t)/i:l=4+(t-r)/i,l/=6,l%=1,[l*360,i*100,s*100]};Ot.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};Ot.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};Ot.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const o=[0,0,0],a=t%1*6,i=a%1,s=1-i;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[(r*o[0]+l)*255,(r*o[1]+l)*255,(r*o[2]+l)*255]};Ot.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};Ot.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};Ot.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Ot.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,o=n-t;let a=0;return o<1&&(a=(n-o)/(1-o)),[e[0],o*100,a*100]};Ot.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Ot.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Ot.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Ot.gray.hsl=function(e){return[0,0,e[0]]};Ot.gray.hsv=Ot.gray.hsl;Ot.gray.hwb=function(e){return[0,100,e[0]]};Ot.gray.cmyk=function(e){return[0,0,0,e[0]]};Ot.gray.lab=function(e){return[e[0],0,0]};Ot.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ot.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const cC=pne;function Iet(){const e={},t=Object.keys(cC);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Ret(e){const t=Iet(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),o=Object.keys(cC[n]);for(let a=o.length,i=0;i<a;i++){const s=o[i],l=t[s];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(s))}}return t}function Det(e,t){return function(r){return t(e(r))}}function Met(e,t){const r=[t[e].parent,e];let n=cC[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Det(cC[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}var Pet=function(e){const t=Ret(e),r={},n=Object.keys(t);for(let o=n.length,a=0;a<o;a++){const i=n[a];t[i].parent!==null&&(r[i]=Met(i,t))}return r};const nP=pne,Fet=Pet,Qh={},ket=Object.keys(nP);function Let(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Oet(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const o=e(r);if(typeof o=="object")for(let a=o.length,i=0;i<a;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}ket.forEach(e=>{Qh[e]={},Object.defineProperty(Qh[e],"channels",{value:nP[e].channels}),Object.defineProperty(Qh[e],"labels",{value:nP[e].labels});const t=Fet(e);Object.keys(t).forEach(n=>{const o=t[n];Qh[e][n]=Oet(o),Qh[e][n].raw=Let(o)})});var $et=Qh;const Vh=Tet,za=$et,gne=["keyword","gray","hex"],oP={};for(const e of Object.keys(za))oP[[...za[e].labels].sort().join("")]=e;const dC={};function go(e,t){if(!(this instanceof go))return new go(e,t);if(t&&t in gne&&(t=null),t&&!(t in za))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof go)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=Vh.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,n=za[this.model].channels,this.color=o.value.slice(0,n),this.valpha=typeof o.value[n]=="number"?o.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=za[this.model].channels;const o=Array.prototype.slice.call(e,0,n);this.color=aP(o,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=o.sort().join("");if(!(a in oP))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=oP[a];const{labels:i}=za[this.model],s=[];for(r=0;r<i.length;r++)s.push(e[i[r]]);this.color=aP(s)}if(dC[this.model])for(n=za[this.model].channels,r=0;r<n;r++){const o=dC[this.model][r];o&&(this.color[r]=o(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}go.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Vh.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Vh.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Vh.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=za[this.model],{labels:r}=za[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new go([...this.color.map(Net(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new go([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Mn("rgb",0,ao(255)),green:Mn("rgb",1,ao(255)),blue:Mn("rgb",2,ao(255)),hue:Mn(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Mn("hsl",1,ao(100)),lightness:Mn("hsl",2,ao(100)),saturationv:Mn("hsv",1,ao(100)),value:Mn("hsv",2,ao(100)),chroma:Mn("hcg",1,ao(100)),gray:Mn("hcg",2,ao(100)),white:Mn("hwb",1,ao(100)),wblack:Mn("hwb",2,ao(100)),cyan:Mn("cmyk",0,ao(100)),magenta:Mn("cmyk",1,ao(100)),yellow:Mn("cmyk",2,ao(100)),black:Mn("cmyk",3,ao(100)),x:Mn("xyz",0,ao(95.047)),y:Mn("xyz",1,ao(100)),z:Mn("xyz",2,ao(108.833)),l:Mn("lab",0,ao(100)),a:Mn("lab",1),b:Mn("lab",2),keyword(e){return e!==void 0?new go(e):za[this.model].keyword(this.color)},hex(e){return e!==void 0?new go(e):Vh.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new go(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Vh.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const o=n/255;t[r]=o<=.04045?o/12.92:Yn((o+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return go.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=t===void 0?.5:t,a=2*o-1,i=r.alpha()-n.alpha(),s=((a*i===-1?a:(a+i)/(1+a*i))+1)/2,l=1-s;return go.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(za)){if(gne.includes(e))continue;const{channels:t}=za[e];go.prototype[e]=function(...r){return this.model===e?new go(this):r.length>0?new go(r,e):new go([...Het(za[this.model][e].raw(this.color)),this.valpha],e)},go[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=aP(r,t)),new go(n,e)}}function Uet(e,t){return Number(e.toFixed(t))}function Net(e){return function(t){return Uet(t,e)}}function Mn(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(dC[n]||(dC[n]=[]))[t]=r;return e=e[0],function(n){let o;return n!==void 0?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function ao(e){return function(t){return Math.max(0,Math.min(e,t))}}function Het(e){return Array.isArray(e)?e:[e]}function aP(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var zet=go;const Tp=ai(zet),Qet=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],Vet="暗淡",Wet={color:Qet,name:Vet},Get=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ket="明亮",jet={color:Get,name:Ket},Yet=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],Xet="粉青",qet={color:Yet,name:Xet},Zet=["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],Jet="橘红",ett={color:Zet,name:Jet},ttt=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],rtt="马卡龙",ntt={color:ttt,name:rtt},ott=["#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"],att="深紫",itt={color:ott,name:att},stt=["#e01f54","#5e4ea5","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"],ltt="罗马红",utt={color:stt,name:ltt},ctt=["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8","#cda819","#32a487"],dtt="深色",ftt={color:ctt,name:dtt},Att=["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d","#787464","#cc7e63","#724e58","#4b565b"],htt="复古",vtt={color:Att,name:htt},ptt=["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],gtt="蓝绿",mtt={color:ptt,name:gtt},ytt=["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],btt="灰粉",xtt={color:ytt,name:btt},wtt=["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],Ctt="青草",Stt={color:wtt,name:Ctt},_tt={show:!0,textStyle:{color:"#BFBFBF",fontSize:18},subtextStyle:{color:"#A2A2A2",fontSize:14}},Btt={show:!0,name:"",nameGap:15,nameTextStyle:{color:"#B9B8CE",fontSize:12},inverse:!1,axisLabel:{show:!0,fontSize:12,color:"#B9B8CE",rotate:0},position:"bottom",axisLine:{show:!0,lineStyle:{color:"#B9B8CE",width:1},onZero:!0},axisTick:{show:!0,length:5},splitLine:{show:!1,lineStyle:{color:"#484753",width:1,type:"solid"}}},Ttt={show:!0,name:"",nameGap:15,nameTextStyle:{color:"#B9B8CE",fontSize:12},inverse:!1,axisLabel:{show:!0,fontSize:12,color:"#B9B8CE",rotate:0},position:"left",axisLine:{show:!0,lineStyle:{color:"#B9B8CE",width:1},onZero:!0},axisTick:{show:!0,length:5},splitLine:{show:!0,lineStyle:{color:"#484753",width:1,type:"solid"}}},Ett={show:!0,type:"scroll",x:"center",y:"top",icon:"circle",orient:"horizontal",textStyle:{color:"#B9B8CE",fontSize:18},itemHeight:15,itemWidth:15,pageTextStyle:{color:"#B9B8CE"}},Itt={show:!1,left:"10%",top:"60",right:"10%",bottom:"60"},Rtt={title:_tt,xAxis:Btt,yAxis:Ttt,legend:Ett,grid:Itt},Dtt={dark:jet,customed:Wet,macarons:ntt,walden:mtt,purplePassion:itt,vintage:vtt,chalk:qet,westeros:xtt,wonderland:Stt,essos:ett,shine:ftt,roma:utt},qRt="dark",ZRt=["#232324","#2a2a2b","#313132","#373739","#757575","#e0e0e0","#eeeeee","#fafafa"],Mtt={dark:["#4992ff","#7cffb2","rgba(68, 181, 226, 0.3)","rgba(73, 146, 255, 0.5)","rgba(124, 255, 178, 0.5)"],customed:["#5470c6","#91cc75","rgba(84, 112, 198, 0.5)","rgba(84, 112, 198, 0.5)","rgba(145, 204, 117, 0.5)"],macarons:["#2ec7c9","#b6a2de","rgba(182, 162, 222, 0.3)","rgba(46, 199, 201, 0.5)","rgba(182, 162, 222, 0.5)"],walden:["#3fb1e3","#6be6c1","rgba(68, 181, 226, 0.3)","rgba(63, 177, 227, 0.5)","rgba(107, 230, 193, 0.5)"],purplePassion:["#9b8bba","#e098c7","rgba(182, 162, 222, 0.3)","rgba(155, 139, 186, 0.5)","rgba(237, 175, 218, 0.5)"],vintage:["#d87c7c","#919e8b","rgba(182, 162, 222, 0.3)","rgba(216, 124, 124, 0.5)","rgba(145, 158, 139, 0.5)"],chalk:["#fc97af","#87f7cf","rgba(135, 247, 207, 0.3)","rgba(252, 151, 175, 0.5)","rgba(135, 247, 207, 0.5)"],westeros:["#516b91","#edafda","rgba(81, 107, 145, 0.3)","rgba(81, 107, 145, 0.5)","rgba(89, 196, 230, 0.5)"],wonderland:["#4ea397","#22c3aa","rgba(68, 181, 226, 0.3)","rgba(78, 163, 151, 0.5)","rgba(34, 195, 170, 0.5)"],essos:["#893448","#d95850","rgba(137, 52, 72, 0.3)","rgba(137, 52, 72, 0.5)","rgba(217, 88, 80, 0.5)"],shine:["#c12e34","#0098d9","rgba(137, 52, 72, 0.3)","rgba(193, 46, 52, 0.5)","rgba(230, 182, 0, 0.5)"],roma:["#e01f54","#5e4ea5","rgba(137, 52, 72, 0.3)","rgba(224, 31, 84, 0.5)","rgba(94, 78, 165, 0.5)"]},JRt=t3(qi({},Rtt),{dataset:null,renderer:"svg"}),eDt=e=>e.length?`animate__animated animate__${e[0]}`:"",tDt=e=>{if(!e||!e.filterShow)return{};const{opacity:t,saturate:r,contrast:n,hueRotate:o,brightness:a}=e;return{opacity:t,filter:`saturate(${r}) contrast(${n}) hue-rotate(${o}deg) brightness(${a})`}},rDt=e=>{const{rotateZ:t,rotateX:r,rotateY:n,skewX:o,skewY:a}=e;return{transform:`rotateZ(${t||0}deg) rotateX(${r||0}deg) rotateY(${n||0}deg) skewX(${o||0}deg) skewY(${a||0}deg)`}},nDt=e=>{if(!e||!e.filterShow)return{};const{blendMode:t}=e;return{"mix-blend-mode":t}};function M8(e,t=1){return Tp(e).alpha(t).toString()}function JT(e,t){return Tp(e).fade(t).toString()}function P8(e,t){return Tp(e).lighten(t).toString()}function oDt(e,t){return Tp(e).darken(t).toString()}function aDt(e){return Tp(e).hexa()}function iDt(e){return Tp(e).hex()}const Ptt=e=>{const t=window.document.documentElement;if(e){t.setAttribute("data-theme",e);return}const r=TO();t.setAttribute("data-theme",r.themeName)},sDt=e=>{const t={};return e==null||e.forEach(r=>{t[r.id]={color:r.color,name:r.name}}),qi(qi({},t),Dtt)},lDt=e=>{const t={};return e==null||e.forEach(r=>{t[r.id]=[r.color[0],r.color[1],JT(r.color[0],.3),JT(r.color[0],.5),JT(r.color[1],.5)]}),qi(qi({},t),Mtt)},Ftt=y5e({components:[N4e,Q4e,P4e,F4e,k4e,L4e,O4e,fTe,MTe,G4e,u4e,fL,RJ,DZ,Sq,EPe,ms,sn,$_e,IMe,APe,yq,By,hL,hJ,uLe,ALe,cLe,pLe,xLe,QLe,B_e,R_e,pL,AMe,QS,ZSe,o4e,Vw,e4e,hq,mPe,bPe,tMe,nMe,kDe,XOe,m_e,xSe,xMe,kx,DJ,LTe,MJ,JRe,DPe,cN,cN,TLe,ELe,s4e,xIe,dp,kq,POe,Dq,Vq,AL,WOe,KOe,HX,HSe,bOe,lDe,cDe,JOe,iLe,xJ,RZ,A5e,VJ,PL,NJ,R4e,OOe,f4e,h4e,Qw,c_e,IOe,NOe,K2e,COe,Tq,yTe,wTe,b2e,g5e,US,ITe]});function ktt(e){e.use(Ftt)}/*!
  6058. * Vue3-Lazyload.js v0.2.5-beta
  6059. * A Vue3.x image lazyload plugin
  6060. * (c) 2021 MuRong <admin@imuboy.cn>
  6061. * Released under the MIT License.
  6062. */var ts;(function(e){e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"})(ts||(ts={}));var Ltt=typeof window!="undefined"&&window!==null,Ott=Htt(),$tt=Object.prototype.propertyIsEnumerable,F8=Object.getOwnPropertySymbols;function O0(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function Utt(e){return typeof e=="object"?e===null:typeof e!="function"}function Ntt(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function Htt(){return Ltt&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0):!1}function ztt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!O0(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof F8!="function")return e;for(var n=0,o=t;n<o.length;n++)for(var a=o[n],i=F8(a),s=0,l=i;s<l.length;s++){var u=l[s];$tt.call(a,u)&&(e[u]=a[u])}return e}function mne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=0;for(Utt(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(O0(t[n])){for(var o=0,a=Object.keys(t[n]);o<a.length;o++){var i=a[o];Ntt(i)&&(O0(e[i])&&O0(t[n][i])?mne(e[i],t[n][i]):e[i]=t[n][i])}ztt(e,t[n])}return e}var Qtt={rootMargin:"0px",threshold:0},k8="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Vtt="",Wtt=function(){function e(t){this.options={loading:k8,error:Vtt,observerOptions:Qtt,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}return e.prototype.config=function(t){t===void 0&&(t={}),mne(this.options,t)},e.prototype.mount=function(t,r){var n=this._valueFormatter(r.value),o=n.src,a=n.loading,i=n.error,s=n.lifecycle;this._lifecycle(ts.LOADING,s,t),t.setAttribute("src",a||k8),Ott||(this.loadImages(t,o,i,s),this._log(function(){throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,o,i,s)},e.prototype.update=function(t,r){var n;(n=this._realObserver(t))===null||n===void 0||n.unobserve(t);var o=this._valueFormatter(r.value),a=o.src,i=o.error,s=o.lifecycle;this._initIntersectionObserver(t,a,i,s)},e.prototype.unmount=function(t){var r;(r=this._realObserver(t))===null||r===void 0||r.unobserve(t),this._images.delete(t)},e.prototype.loadImages=function(t,r,n,o){this._setImageSrc(t,r,n,o)},e.prototype._setImageSrc=function(t,r,n,o){var a=this;if(t.tagName.toLowerCase()==="img"){if(r){var i=t.getAttribute("src");i!==r&&t.setAttribute("src",r)}this._listenImageStatus(t,function(){a._lifecycle(ts.LOADED,o,t)},function(){var s;t.onload=null,a._lifecycle(ts.ERROR,o,t),(s=a._realObserver(t))===null||s===void 0||s.disconnect(),n&&t.setAttribute("src",n),a._log(function(){throw new Error("Image failed to load!")})})}else t.style.backgroundImage="url('"+r+"')"},e.prototype._initIntersectionObserver=function(t,r,n,o){var a=this,i,s=this.options.observerOptions;this._images.set(t,new IntersectionObserver(function(l){Array.prototype.forEach.call(l,function(u){var c;u.isIntersecting&&((c=a._realObserver(t))===null||c===void 0||c.unobserve(u.target),a._setImageSrc(t,r,n,o))})},s)),(i=this._realObserver(t))===null||i===void 0||i.observe(t)},e.prototype._listenImageStatus=function(t,r,n){t.onload=r,t.onerror=n},e.prototype._valueFormatter=function(t){var r=t,n=this.options.loading,o=this.options.error,a=this.options.lifecycle;return O0(t)&&(r=t.src,n=t.loading||this.options.loading,o=t.error||this.options.error,a=t.lifecycle||this.options.lifecycle),{src:r,loading:n,error:o,lifecycle:a}},e.prototype._log=function(t){this.options.log&&t()},e.prototype._lifecycle=function(t,r,n){switch(t){case ts.LOADING:n==null||n.setAttribute("lazy",ts.LOADING),r!=null&&r.loading&&r.loading(n);break;case ts.LOADED:n==null||n.setAttribute("lazy",ts.LOADED),r!=null&&r.loaded&&r.loaded(n);break;case ts.ERROR:n==null||n.setAttribute("lazy",ts.ERROR),r!=null&&r.error&&r.error(n);break}},e.prototype._realObserver=function(t){return this._images.get(t)},e}(),Gtt={install:function(e,t){var r=new Wtt(t);e.config.globalProperties.$Lazyload=r,e.provide("Lazyload",r),e.directive("lazy",{mounted:r.mount.bind(r),updated:r.update.bind(r),unmounted:r.unmount.bind(r)})}};function Ktt(e){e.use(Gtt,{error:jYe()})}const jtt={class:"go-skeleton"},Ytt=ge({__name:"index",props:{repeat:{type:Number,default:1},load:{type:Boolean,default:!0}},setup(e){return(t,r)=>{const n=iA("n-skeleton");return en((jo(),ll("div",jtt,[en(Ta("div",null,[ur(n,wn({class:"item"},t.$attrs),null,16)],512),[[Ln,e.repeat==1]]),en(Ta("div",null,[ur(n,wn({class:"item"},t.$attrs),null,16),ur(n,wn({class:"item"},t.$attrs,{style:{width:"60%"}}),null,16)],512),[[Ln,e.repeat==2]]),en(Ta("div",null,[ur(n,wn({class:"item"},t.$attrs,{repeat:e.repeat-2}),null,16,["repeat"]),ur(n,wn({class:"item"},t.$attrs,{style:{width:"60%"}}),null,16),ur(n,wn({class:"item"},t.$attrs,{style:{width:"50%"}}),null,16)],512),[[Ln,e.repeat>2]])],512)),[[Ln,e.load]])}}});const Xtt=R_(Ytt,[["__scopeId","data-v-7d26a531"]]),qtt="/plugin/screen/static/svg/loadingSvg-633775fd.svg";const Ztt={},Jtt=e=>(BK("data-v-dfe3b9d1"),e=e(),TK(),e),ert={class:"go-loading-svg go-flex-center"},trt=Jtt(()=>Ta("img",{src:qtt,alt:""},null,-1)),rrt=[trt];function nrt(e,t){return jo(),ll("div",ert,rrt)}const iP=R_(Ztt,[["render",nrt],["__scopeId","data-v-dfe3b9d1"]]),ort={};function art(e,t){const r=iA("go-skeleton");return jo(),ll("div",null,[ur(r,{repeat:3,show:!0})])}const L8=R_(ort,[["render",art]]);iP.install=e=>{e.component("AsyncLoading",iP)};L8.install=e=>{e.component("AsyncSkeletonLoading",L8)};var irt=Object.defineProperty,O8=Object.getOwnPropertySymbols,srt=Object.prototype.hasOwnProperty,lrt=Object.prototype.propertyIsEnumerable,$8=(e,t,r)=>t in e?irt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,urt=(e,t)=>{for(var r in t||(t={}))srt.call(t,r)&&$8(e,r,t[r]);if(O8)for(var r of O8(t))lrt.call(t,r)&&$8(e,r,t[r]);return e},$_=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const crt=ge({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:t}){const r=q(0),n=q(!0);yr(()=>{r.value=e.value});const o=c=>{n.value=c>=0},a=L(()=>{const c=(r.value-e.start)*e.scale;o(c);const d=c+"px";return e.vertical?{top:d}:{left:d}}),i=L(()=>{var c;const d=`1px solid ${(c=e.palette)==null?void 0:c.lineColor}`,f=e.vertical?{borderTop:d}:{borderLeft:d},A=e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none";return urt({cursor:A},f)}),s=L(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:r,showLine:n,offset:a,borderCursor:i,actionStyle:s,handleDown:c=>{const d=e.vertical?c.clientY:c.clientX,f=r.value;t("onMouseDown");const A=v=>{const p=e.vertical?v.clientY:v.clientX,g=Math.round(f+(p-d)/e.scale);r.value=g},h=()=>{t("onRelease",r.value,e.index),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",h)},handleRemove:()=>{t("onRemove",e.index)}}}}),drt={class:"value"};function frt(e,t,r,n,o,a){return en((jo(),ll("div",{class:"line",style:Mi([e.offset,e.borderCursor]),onMousedown:t[1]||(t[1]=(...i)=>e.handleDown&&e.handleDown(...i))},[Ta("div",{class:"action",style:Mi(e.actionStyle)},[Ta("span",{class:"del",onClick:t[0]||(t[0]=(...i)=>e.handleRemove&&e.handleRemove(...i))},"×"),Ta("span",drt,JF(e.startValue),1)],4)],36)),[[Ln,e.showLine]])}var Art=$_(crt,[["render",frt],["__scopeId","data-v-074b3d94"]]);const hrt=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,U8=.83,vrt=(e,t,r,n,o,a)=>{const{scale:i,width:s,height:l,ratio:u,palette:c}=o,{bgColor:d,fontColor:f,shadowColor:A,longfgColor:h,shortfgColor:v}=c;if(e.scale(u,u),e.clearRect(0,0,s,l),e.fillStyle=d,e.fillRect(0,0,s,l),n){const B=(r-t)*i,T=n*i;e.fillStyle=A,a?e.fillRect(B,0,T,l*3/8):e.fillRect(0,B,s*3/8,T)}const p=hrt(i),g=p*i,m=p*10,y=m*i,b=Math.floor(t/p)*p,x=Math.floor(t/m)*m,w=(b-t)/p*g,C=(x-t)/m*y,_=t+Math.ceil((a?s:l)/i);e.beginPath(),e.fillStyle=f,e.strokeStyle=h;for(let B=x,T=0;B<_;B+=m,T++){const E=C+T*y+.5;a?e.moveTo(E,0):e.moveTo(0,E),e.save(),a?e.translate(E,l*.4):e.translate(s*.4,E),a||e.rotate(-Math.PI/2),e.scale(U8/u,U8/u),e.fillText(B.toString(),4*u,7*u),e.restore(),a?e.lineTo(E,l*9/16):e.lineTo(s*9/16,E)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=v;for(let B=b,T=0;B<_;B+=p,T++){const E=w+T*g+.5;a?e.moveTo(E,0):e.moveTo(0,E),B%m!==0&&(a?e.lineTo(E,l*1/4):e.lineTo(s*1/4,E))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},prt=ge({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:t}){const r=Ni({canvasContext:null});let n=1;const o=q(null);yr(()=>{n=e.ratio||window.devicePixelRatio||1,a(),i(n),s(n)});const a=()=>{r.canvasContext=o.value&&o.value.getContext("2d")},i=u=>{if(o.value){o.value.width=e.width*u,o.value.height=e.height*u;const c=r.canvasContext;c&&(c.font=`${12*u}px -apple-system,
  6063. "Helvetica Neue", ".SFNSText-Regular",
  6064. "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
  6065. "Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,c.lineWidth=1,c.textBaseline="middle")}},s=u=>{const c={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:u};r.canvasContext&&vrt(r.canvasContext,e.start,e.selectStart,e.selectLength,c,!e.vertical)};return gt(()=>e.start,()=>s(n)),gt([()=>e.width,()=>e.height],()=>{i(n),s(n)}),{handle:(u,c)=>{const d=(h,v,p)=>Math.round(v+h/p),f=e.vertical?u.offsetY:u.offsetX,A=d(f,e.start,e.scale);switch(c){case"click":t("onAddLine",A);break;case"enter":t("update:valueNum",A),t("update:showIndicator",!0);break;default:t("update:valueNum",A);break}},canvas:o}}});function grt(e,t,r,n,o,a){return jo(),ll("canvas",{ref:"canvas",class:"ruler",onClick:t[0]||(t[0]=i=>e.handle(i,"click")),onMouseenter:t[1]||(t[1]=i=>e.handle(i,"enter")),onMousemove:t[2]||(t[2]=i=>e.handle(i,"move")),onMouseleave:t[3]||(t[3]=i=>e.$emit("update:showIndicator",!1))},null,544)}var mrt=$_(prt,[["render",grt]]);const yrt={scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},brt=ge({name:"RulerWrapper",components:{CanvasRuler:mrt,RulerLine:Art},props:yrt,setup(e){const t=q(!1),r=q(0),n=L(()=>e.vertical?"v-container":"h-container"),o=L(()=>{const u={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},c={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?c:u}),a=L(()=>{var u;const c=(r.value-e.start)*e.scale;let d="top",f="borderLeft";return d=e.vertical?"top":"left",f=e.vertical?"borderBottom":"borderLeft",{[d]:c+"px",[f]:`1px solid ${(u=e.palette)==null?void 0:u.lineColor}`}}),i=u=>{e.lines.push(u)},s=(u,c)=>{const d=u-e.start,f=(e.vertical?e.height:e.width)/e.scale;d<0||d>f?l(c):e.lines[c]=u},l=u=>{e.lines.splice(u,1)};return{showIndicator:t,valueNum:r,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:i,handleLineRelease:s,handleLineRemove:l}}}),xrt={class:"lines"},wrt={class:"value"};function Crt(e,t,r,n,o,a){const i=iA("CanvasRuler"),s=iA("RulerLine");return jo(),ll("div",{class:wA(e.rwClassName),style:Mi(e.rwStyle)},[ur(i,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":t[0]||(t[0]=l=>e.valueNum=l),showIndicator:e.showIndicator,"onUpdate:showIndicator":t[1]||(t[1]=l=>e.showIndicator=l),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),en(Ta("div",xrt,[(jo(!0),ll(lr,null,NK(e.lines,(l,u)=>(jo(),op(s,{key:l+u,index:u,value:l>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[Ln,e.isShowReferLine]]),en(Ta("div",{class:"indicator",style:Mi(e.indicatorStyle)},[Ta("div",wrt,JF(e.valueNum),1)],4),[[Ln,e.showIndicator]])],6)}var Srt=$_(brt,[["render",Crt],["__scopeId","data-v-5cc064d4"]]);const _rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC",Brt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",Trt={eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},cornerActive:{type:Boolean,default:!1},isShowReferLine:{type:Boolean,default:!0}},Ert=ge({name:"SketchRule",components:{RulerWrapper:Srt},props:Trt,emits:["onCornerClick","handleLine"],setup(e,{emit:t}){let r=q(!0);r.value=e.isShowReferLine;const n=L(()=>{function s(u,c){return Object.keys(u).forEach(d=>{d&&u.hasOwnProperty(d)&&(typeof c.key=="object"?u[d]=s(u[d],c[d]):c.hasOwnProperty(d)&&(u[d]=c[d]))}),u}return s({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=L(()=>e.cornerActive?" active":""),a=L(()=>({backgroundImage:r.value?`url(${e.eyeIcon||_rt})`:`url(${e.closeEyeIcon||Brt})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`}));return{showReferLine:r,paletteCpu:n,cornerActiveClass:o,cornerStyle:a,onCornerClick:s=>{r.value=!r.value,t("onCornerClick",s)}}}}),Irt={id:"mb-ruler",class:"style-ruler mb-ruler"};function Rrt(e,t,r,n,o,a){const i=iA("RulerWrapper");return jo(),ll("div",Irt,[ur(i,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),ur(i,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),Ta("a",{class:wA(["corner",e.cornerActiveClass]),style:Mi(e.cornerStyle),onClick:t[0]||(t[0]=(...s)=>e.onCornerClick&&e.onCornerClick(...s))},null,6)])}var Drt=$_(Ert,[["render",Rrt]]);function Mrt(e){e.component("GoSkeleton",Xtt),e.component("GoLoading",iP),e.component("SketchRule",Drt)}const Prt=()=>ku(void 0,null,function*(){window.addEventListener("unhandledrejection",e=>{console.warn(`UNHANDLED PROMISE REJECTION: ${e.reason}`)})}),yne=()=>{window.$message.error(window.$t("http.error_message"))},{GO_DESIGN_STORE:sP}=$A,{darkTheme:N8,appTheme:Frt,appThemeDetail:krt}=aUe,Lrt=$y(sP),TO=s_({id:"useDesignStore",state:()=>Lrt||{darkTheme:N8,themeName:N8&&jg.DARK||jg.LIGHT,appTheme:Frt,appThemeDetail:krt},getters:{getDarkTheme(e){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeDetail(){return this.appThemeDetail}},actions:{changeTheme(){this.darkTheme=!this.darkTheme,this.themeName=this.darkTheme?jg.DARK:jg.LIGHT,Tm(sP,this.$state)},setAppColor(e){this.appTheme=e.hex,this.appThemeDetail=e,Tm(sP,this.$state)}}}),Ort=()=>{const e=TO(),{getAppTheme:t}=lk(e);return L(()=>{const n={common:{primaryColor:t.value,primaryColorHover:P8(M8(t.value),.1),primaryColorPressed:P8(M8(t.value),.1),primaryColorSuppl:t.value,borderRadius:sUe}},o={common:qi({},n.common)},a={common:qi({},n.common),LoadingBar:{colorLoading:t.value}};return e.getDarkTheme?a:o})},$rt=()=>{const e=TO();return L(()=>e.getDarkTheme?C5e:void 0)};var EO={exports:{}};function IO(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r=="object"&&!Object.isFrozen(r)&&IO(r)}),e}EO.exports=IO;EO.exports.default=IO;var Urt=EO.exports;class H8{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function bne(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function pc(e,...t){const r=Object.create(null);for(const n in e)r[n]=e[n];return t.forEach(function(n){for(const o in n)r[o]=n[o]}),r}const Nrt="</span>",z8=e=>!!e.kind,Hrt=(e,{prefix:t})=>{if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((n,o)=>`${n}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`};class zrt{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=bne(t)}openNode(t){if(!z8(t))return;let r=t.kind;t.sublanguage?r=`language-${r}`:r=Hrt(r,{prefix:this.classPrefix}),this.span(r)}closeNode(t){z8(t)&&(this.buffer+=Nrt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class RO{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r={kind:t,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(n=>this._walk(t,n)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{RO._collapse(r)}))}}class Qrt extends RO{constructor(t){super(),this.options=t}addKeyword(t,r){t!==""&&(this.openNode(r),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,r){const n=t.root;n.kind=r,n.sublanguage=!0,this.add(n)}toHTML(){return new zrt(this,this.options).value()}finalize(){return!0}}function Rm(e){return e?typeof e=="string"?e:e.source:null}function xne(e){return UA("(?=",e,")")}function Vrt(e){return UA("(?:",e,")*")}function Wrt(e){return UA("(?:",e,")?")}function UA(...e){return e.map(r=>Rm(r)).join("")}function Grt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function DO(...e){return"("+(Grt(e).capture?"":"?:")+e.map(n=>Rm(n)).join("|")+")"}function wne(e){return new RegExp(e.toString()+"|").exec("").length-1}function Krt(e,t){const r=e&&e.exec(t);return r&&r.index===0}const jrt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function MO(e,{joinWith:t}){let r=0;return e.map(n=>{r+=1;const o=r;let a=Rm(n),i="";for(;a.length>0;){const s=jrt.exec(a);if(!s){i+=a;break}i+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?i+="\\"+String(Number(s[1])+o):(i+=s[0],s[0]==="("&&r++)}return i}).map(n=>`(${n})`).join(t)}const Yrt=/\b\B/,Cne="[a-zA-Z]\\w*",PO="[a-zA-Z_]\\w*",Sne="\\b\\d+(\\.\\d+)?",_ne="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Bne="\\b(0b[01]+)",Xrt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",qrt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=UA(t,/.*\b/,e.binary,/\b.*/)),pc({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,n)=>{r.index!==0&&n.ignoreMatch()}},e)},Dm={begin:"\\\\[\\s\\S]",relevance:0},Zrt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dm]},Jrt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dm]},ent={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},U_=function(e,t,r={}){const n=pc({scope:"comment",begin:e,end:t,contains:[]},r);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=DO("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:UA(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},tnt=U_("//","$"),rnt=U_("/\\*","\\*/"),nnt=U_("#","$"),ont={scope:"number",begin:Sne,relevance:0},ant={scope:"number",begin:_ne,relevance:0},int={scope:"number",begin:Bne,relevance:0},snt={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Dm,{begin:/\[/,end:/\]/,relevance:0,contains:[Dm]}]}]},lnt={scope:"title",begin:Cne,relevance:0},unt={scope:"title",begin:PO,relevance:0},cnt={begin:"\\.\\s*"+PO,relevance:0},dnt=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var _1=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Yrt,IDENT_RE:Cne,UNDERSCORE_IDENT_RE:PO,NUMBER_RE:Sne,C_NUMBER_RE:_ne,BINARY_NUMBER_RE:Bne,RE_STARTERS_RE:Xrt,SHEBANG:qrt,BACKSLASH_ESCAPE:Dm,APOS_STRING_MODE:Zrt,QUOTE_STRING_MODE:Jrt,PHRASAL_WORDS_MODE:ent,COMMENT:U_,C_LINE_COMMENT_MODE:tnt,C_BLOCK_COMMENT_MODE:rnt,HASH_COMMENT_MODE:nnt,NUMBER_MODE:ont,C_NUMBER_MODE:ant,BINARY_NUMBER_MODE:int,REGEXP_MODE:snt,TITLE_MODE:lnt,UNDERSCORE_TITLE_MODE:unt,METHOD_GUARD:cnt,END_SAME_AS_BEGIN:dnt});function fnt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Ant(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function hnt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=fnt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function vnt(e,t){Array.isArray(e.illegal)&&(e.illegal=DO(...e.illegal))}function pnt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function gnt(e,t){e.relevance===void 0&&(e.relevance=1)}const mnt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=r.keywords,e.begin=UA(r.beforeMatch,xne(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},ynt=["of","and","for","in","not","or","if","then","parent","list","value"],bnt="keyword";function Tne(e,t,r=bnt){const n=Object.create(null);return typeof e=="string"?o(r,e.split(" ")):Array.isArray(e)?o(r,e):Object.keys(e).forEach(function(a){Object.assign(n,Tne(e[a],t,a))}),n;function o(a,i){t&&(i=i.map(s=>s.toLowerCase())),i.forEach(function(s){const l=s.split("|");n[l[0]]=[a,xnt(l[0],l[1])]})}}function xnt(e,t){return t?Number(t):wnt(e)?0:1}function wnt(e){return ynt.includes(e.toLowerCase())}const Q8={},Xf=e=>{console.error(e)},V8=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ah=(e,t)=>{Q8[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Q8[`${e}/${t}`]=!0)},fC=new Error;function Ene(e,t,{key:r}){let n=0;const o=e[r],a={},i={};for(let s=1;s<=t.length;s++)i[s+n]=o[s],a[s+n]=!0,n+=wne(t[s-1]);e[r]=i,e[r]._emit=a,e[r]._multi=!0}function Cnt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Xf("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fC;if(typeof e.beginScope!="object"||e.beginScope===null)throw Xf("beginScope must be object"),fC;Ene(e,e.begin,{key:"beginScope"}),e.begin=MO(e.begin,{joinWith:""})}}function Snt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Xf("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fC;if(typeof e.endScope!="object"||e.endScope===null)throw Xf("endScope must be object"),fC;Ene(e,e.end,{key:"endScope"}),e.end=MO(e.end,{joinWith:""})}}function _nt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Bnt(e){_nt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Cnt(e),Snt(e)}function Tnt(e){function t(i,s){return new RegExp(Rm(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=wne(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(MO(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new r;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function o(i){const s=new n;return i.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),i.terminatorEnd&&s.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&s.addRule(i.illegal,{type:"illegal"}),s}function a(i,s){const l=i;if(i.isCompiled)return l;[Ant,pnt,Bnt,mnt].forEach(c=>c(i,s)),e.compilerExtensions.forEach(c=>c(i,s)),i.__beforeBegin=null,[hnt,vnt,gnt].forEach(c=>c(i,s)),i.isCompiled=!0;let u=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),u=i.keywords.$pattern,delete i.keywords.$pattern),u=u||/\w+/,i.keywords&&(i.keywords=Tne(i.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),s&&(i.begin||(i.begin=/\B|\b/),l.beginRe=t(l.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(l.endRe=t(l.end)),l.terminatorEnd=Rm(l.end)||"",i.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+s.terminatorEnd)),i.illegal&&(l.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(c){return Ent(c==="self"?i:c)})),i.contains.forEach(function(c){a(c,l)}),i.starts&&a(i.starts,s),l.matcher=o(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=pc(e.classNameAliases||{}),a(e)}function Ine(e){return e?e.endsWithParent||Ine(e.starts):!1}function Ent(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return pc(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ine(e)?pc(e,{starts:e.starts?pc(e.starts):null}):Object.isFrozen(e)?pc(e):e}var Int="11.5.1";class Rnt extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const eE=bne,W8=pc,G8=Symbol("nomatch"),Dnt=7,Mnt=function(e){const t=Object.create(null),r=Object.create(null),n=[];let o=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Qrt};function l(M){return s.noHighlightRe.test(M)}function u(M){let $=M.className+" ";$+=M.parentNode?M.parentNode.className:"";const O=s.languageDetectRe.exec($);if(O){const Q=B(O[1]);return Q||(V8(a.replace("{}",O[1])),V8("Falling back to no-highlight mode for this block.",M)),Q?O[1]:"no-highlight"}return $.split(/\s+/).find(Q=>l(Q)||B(Q))}function c(M,$,O){let Q="",V="";typeof $=="object"?(Q=M,O=$.ignoreIllegals,V=$.language):(Ah("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ah("10.7.0",`Please use highlight(code, options) instead.
  6066. https://github.com/highlightjs/highlight.js/issues/2277`),V=M,Q=$),O===void 0&&(O=!0);const W={code:Q,language:V};D("before:highlight",W);const Z=W.result?W.result:d(W.language,W.code,O);return Z.code=W.code,D("after:highlight",Z),Z}function d(M,$,O,Q){const V=Object.create(null);function W(fe,ye){return fe.keywords[ye]}function Z(){if(!H.keywords){oe.addText(he);return}let fe=0;H.keywordPatternRe.lastIndex=0;let ye=H.keywordPatternRe.exec(he),Fe="";for(;ye;){Fe+=he.substring(fe,ye.index);const Ne=k.case_insensitive?ye[0].toLowerCase():ye[0],rt=W(H,Ne);if(rt){const[lt,mt]=rt;if(oe.addText(Fe),Fe="",V[Ne]=(V[Ne]||0)+1,V[Ne]<=Dnt&&(ne+=mt),lt.startsWith("_"))Fe+=ye[0];else{const Ge=k.classNameAliases[lt]||lt;oe.addKeyword(ye[0],Ge)}}else Fe+=ye[0];fe=H.keywordPatternRe.lastIndex,ye=H.keywordPatternRe.exec(he)}Fe+=he.substr(fe),oe.addText(Fe)}function te(){if(he==="")return;let fe=null;if(typeof H.subLanguage=="string"){if(!t[H.subLanguage]){oe.addText(he);return}fe=d(H.subLanguage,he,!0,Y[H.subLanguage]),Y[H.subLanguage]=fe._top}else fe=A(he,H.subLanguage.length?H.subLanguage:null);H.relevance>0&&(ne+=fe.relevance),oe.addSublanguage(fe._emitter,fe.language)}function ae(){H.subLanguage!=null?te():Z(),he=""}function re(fe,ye){let Fe=1;const Ne=ye.length-1;for(;Fe<=Ne;){if(!fe._emit[Fe]){Fe++;continue}const rt=k.classNameAliases[fe[Fe]]||fe[Fe],lt=ye[Fe];rt?oe.addKeyword(lt,rt):(he=lt,Z(),he=""),Fe++}}function le(fe,ye){return fe.scope&&typeof fe.scope=="string"&&oe.openNode(k.classNameAliases[fe.scope]||fe.scope),fe.beginScope&&(fe.beginScope._wrap?(oe.addKeyword(he,k.classNameAliases[fe.beginScope._wrap]||fe.beginScope._wrap),he=""):fe.beginScope._multi&&(re(fe.beginScope,ye),he="")),H=Object.create(fe,{parent:{value:H}}),H}function se(fe,ye,Fe){let Ne=Krt(fe.endRe,Fe);if(Ne){if(fe["on:end"]){const rt=new H8(fe);fe["on:end"](ye,rt),rt.isMatchIgnored&&(Ne=!1)}if(Ne){for(;fe.endsParent&&fe.parent;)fe=fe.parent;return fe}}if(fe.endsWithParent)return se(fe.parent,ye,Fe)}function ce(fe){return H.matcher.regexIndex===0?(he+=fe[0],1):(ie=!0,0)}function be(fe){const ye=fe[0],Fe=fe.rule,Ne=new H8(Fe),rt=[Fe.__beforeBegin,Fe["on:begin"]];for(const lt of rt)if(lt&&(lt(fe,Ne),Ne.isMatchIgnored))return ce(ye);return Fe.skip?he+=ye:(Fe.excludeBegin&&(he+=ye),ae(),!Fe.returnBegin&&!Fe.excludeBegin&&(he=ye)),le(Fe,fe),Fe.returnBegin?0:ye.length}function de(fe){const ye=fe[0],Fe=$.substr(fe.index),Ne=se(H,fe,Fe);if(!Ne)return G8;const rt=H;H.endScope&&H.endScope._wrap?(ae(),oe.addKeyword(ye,H.endScope._wrap)):H.endScope&&H.endScope._multi?(ae(),re(H.endScope,fe)):rt.skip?he+=ye:(rt.returnEnd||rt.excludeEnd||(he+=ye),ae(),rt.excludeEnd&&(he=ye));do H.scope&&oe.closeNode(),!H.skip&&!H.subLanguage&&(ne+=H.relevance),H=H.parent;while(H!==Ne.parent);return Ne.starts&&le(Ne.starts,fe),rt.returnEnd?0:ye.length}function pe(){const fe=[];for(let ye=H;ye!==k;ye=ye.parent)ye.scope&&fe.unshift(ye.scope);fe.forEach(ye=>oe.openNode(ye))}let K={};function U(fe,ye){const Fe=ye&&ye[0];if(he+=fe,Fe==null)return ae(),0;if(K.type==="begin"&&ye.type==="end"&&K.index===ye.index&&Fe===""){if(he+=$.slice(ye.index,ye.index+1),!o){const Ne=new Error(`0 width match regex (${M})`);throw Ne.languageName=M,Ne.badRule=K.rule,Ne}return 1}if(K=ye,ye.type==="begin")return be(ye);if(ye.type==="illegal"&&!O){const Ne=new Error('Illegal lexeme "'+Fe+'" for mode "'+(H.scope||"<unnamed>")+'"');throw Ne.mode=H,Ne}else if(ye.type==="end"){const Ne=de(ye);if(Ne!==G8)return Ne}if(ye.type==="illegal"&&Fe==="")return 1;if(X>1e5&&X>ye.index*3)throw new Error("potential infinite loop, way more iterations than matches");return he+=Fe,Fe.length}const k=B(M);if(!k)throw Xf(a.replace("{}",M)),new Error('Unknown language: "'+M+'"');const J=Tnt(k);let ee="",H=Q||J;const Y={},oe=new s.__emitter(s);pe();let he="",ne=0,Ae=0,X=0,ie=!1;try{for(H.matcher.considerAll();;){X++,ie?ie=!1:H.matcher.considerAll(),H.matcher.lastIndex=Ae;const fe=H.matcher.exec($);if(!fe)break;const ye=$.substring(Ae,fe.index),Fe=U(ye,fe);Ae=fe.index+Fe}return U($.substr(Ae)),oe.closeAllNodes(),oe.finalize(),ee=oe.toHTML(),{language:M,value:ee,relevance:ne,illegal:!1,_emitter:oe,_top:H}}catch(fe){if(fe.message&&fe.message.includes("Illegal"))return{language:M,value:eE($),illegal:!0,relevance:0,_illegalBy:{message:fe.message,index:Ae,context:$.slice(Ae-100,Ae+100),mode:fe.mode,resultSoFar:ee},_emitter:oe};if(o)return{language:M,value:eE($),illegal:!1,relevance:0,errorRaised:fe,_emitter:oe,_top:H};throw fe}}function f(M){const $={value:eE(M),illegal:!1,relevance:0,_top:i,_emitter:new s.__emitter(s)};return $._emitter.addText(M),$}function A(M,$){$=$||s.languages||Object.keys(t);const O=f(M),Q=$.filter(B).filter(E).map(ae=>d(ae,M,!1));Q.unshift(O);const V=Q.sort((ae,re)=>{if(ae.relevance!==re.relevance)return re.relevance-ae.relevance;if(ae.language&&re.language){if(B(ae.language).supersetOf===re.language)return 1;if(B(re.language).supersetOf===ae.language)return-1}return 0}),[W,Z]=V,te=W;return te.secondBest=Z,te}function h(M,$,O){const Q=$&&r[$]||O;M.classList.add("hljs"),M.classList.add(`language-${Q}`)}function v(M){let $=null;const O=u(M);if(l(O))return;if(D("before:highlightElement",{el:M,language:O}),M.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),s.throwUnescapedHTML))throw new Rnt("One of your code blocks includes unescaped HTML.",M.innerHTML);$=M;const Q=$.textContent,V=O?c(Q,{language:O,ignoreIllegals:!0}):A(Q);M.innerHTML=V.value,h(M,O,V.language),M.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(M.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),D("after:highlightElement",{el:M,result:V,text:Q})}function p(M){s=W8(s,M)}const g=()=>{b(),Ah("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function m(){b(),Ah("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function b(){if(document.readyState==="loading"){y=!0;return}document.querySelectorAll(s.cssSelector).forEach(v)}function x(){y&&b()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1);function w(M,$){let O=null;try{O=$(e)}catch(Q){if(Xf("Language definition for '{}' could not be registered.".replace("{}",M)),o)Xf(Q);else throw Q;O=i}O.name||(O.name=M),t[M]=O,O.rawDefinition=$.bind(null,e),O.aliases&&T(O.aliases,{languageName:M})}function C(M){delete t[M];for(const $ of Object.keys(r))r[$]===M&&delete r[$]}function _(){return Object.keys(t)}function B(M){return M=(M||"").toLowerCase(),t[M]||t[r[M]]}function T(M,{languageName:$}){typeof M=="string"&&(M=[M]),M.forEach(O=>{r[O.toLowerCase()]=$})}function E(M){const $=B(M);return $&&!$.disableAutodetect}function I(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=$=>{M["before:highlightBlock"](Object.assign({block:$.el},$))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=$=>{M["after:highlightBlock"](Object.assign({block:$.el},$))})}function R(M){I(M),n.push(M)}function D(M,$){const O=M;n.forEach(function(Q){Q[O]&&Q[O]($)})}function F(M){return Ah("10.7.0","highlightBlock will be removed entirely in v12.0"),Ah("10.7.0","Please use highlightElement now."),v(M)}Object.assign(e,{highlight:c,highlightAuto:A,highlightAll:b,highlightElement:v,highlightBlock:F,configure:p,initHighlighting:g,initHighlightingOnLoad:m,registerLanguage:w,unregisterLanguage:C,listLanguages:_,getLanguage:B,registerAliases:T,autoDetection:E,inherit:W8,addPlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Int,e.regex={concat:UA,lookahead:xne,either:DO,optional:Wrt,anyNumberOfTimes:Vrt};for(const M in _1)typeof _1[M]=="object"&&Urt(_1[M]);return Object.assign(e,_1),e};var Mm=Mnt({}),Pnt=Mm;Mm.HighlightJS=Mm;Mm.default=Mm;const tE=ai(Pnt);function Fnt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[t,r,e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const AC="[A-Za-z$_][0-9A-Za-z$_]*",Rne=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Dne=["true","false","null","undefined","NaN","Infinity"],Mne=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Pne=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Fne=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],kne=["arguments","this","super","console","window","document","localStorage","module","global"],Lne=[].concat(Fne,Mne,Pne);function knt(e){const t=e.regex,r=($,{after:O})=>{const Q="</"+$[0].slice(1);return $.input.indexOf(Q,O)!==-1},n=AC,o={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:($,O)=>{const Q=$[0].length+$.index,V=$.input[Q];if(V==="<"||V===","){O.ignoreMatch();return}V===">"&&(r($,{after:Q})||O.ignoreMatch());let W;if((W=$.input.substr(Q).match(/^\s+extends\s+/))&&W.index===0){O.ignoreMatch();return}}},s={$pattern:AC,keyword:Rne,literal:Dne,built_in:Lne,"variable.language":kne},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},A={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},g={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},m=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,A,h,v,d];f.contains=m.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(m)});const y=[].concat(g,f.contains),b=y.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(y)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},w={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Mne,...Pne]}},_={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function E($){return t.concat("(?!",$.join("|"),")")}const I={match:t.concat(/\b/,E([...Fne,"super"]),n,t.lookahead(/\(/)),className:"title.function",relevance:0},R={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},F="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(F)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,A,h,v,g,d,C,{className:"attr",begin:n+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:F,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:a},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},R,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},I,T,w,D,{match:/\$[(.]/}]}}function Lnt(e){const t=knt(e),r=AC,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[t.exports.CLASS_REFERENCE]},i={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:AC,keyword:Rne.concat(s),literal:Dne,built_in:Lne.concat(n),"variable.language":kne},u={className:"meta",begin:"@"+r},c=(f,A,h)=>{const v=f.contains.findIndex(p=>p.label===A);if(v===-1)throw new Error("can not find mode to replace");f.contains.splice(v,1,h)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(u),t.contains=t.contains.concat([u,o,a]),c(t,"shebang",e.SHEBANG()),c(t,"use_strict",i);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx"]}),t}const Ont=()=>(tE.registerLanguage("json",Fnt),tE.registerLanguage("typescript",Lnt),tE);var $nt=iO,Unt=y_;function Nnt(e,t,r){(r!==void 0&&!Unt(e[t],r)||r===void 0&&!(t in e))&&$nt(e,t,r)}var One=Nnt;function Hnt(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(r(a[l],l,a)===!1)break}return t}}var znt=Hnt,Qnt=znt,Vnt=Qnt(),Wnt=Vnt,Gnt=Ly,Knt=Iu;function jnt(e){return Knt(e)&&Gnt(e)}var Ynt=jnt,Xnt=kA,qnt=vO,Znt=Iu,Jnt="[object Object]",eot=Function.prototype,tot=Object.prototype,$ne=eot.toString,rot=tot.hasOwnProperty,not=$ne.call(Object);function oot(e){if(!Znt(e)||Xnt(e)!=Jnt)return!1;var t=qnt(e);if(t===null)return!0;var r=rot.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&$ne.call(r)==not}var aot=oot;function iot(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Une=iot,sot=ky,lot=Oy;function uot(e){return sot(e,lot(e))}var cot=uot,K8=One,dot=hre,fot=bre,Aot=vre,hot=xre,j8=S_,Y8=Bl,vot=Ynt,pot=lO,got=oO,mot=ii,yot=aot,bot=dre,X8=Une,xot=cot;function wot(e,t,r,n,o,a,i){var s=X8(e,r),l=X8(t,r),u=i.get(l);if(u){K8(e,r,u);return}var c=a?a(s,l,r+"",e,t,i):void 0,d=c===void 0;if(d){var f=Y8(l),A=!f&&pot(l),h=!f&&!A&&bot(l);c=l,f||A||h?Y8(s)?c=s:vot(s)?c=Aot(s):A?(d=!1,c=dot(l,!0)):h?(d=!1,c=fot(l,!0)):c=[]:yot(l)||j8(l)?(c=s,j8(s)?c=xot(s):(!mot(s)||got(s))&&(c=hot(l))):d=!1}d&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),K8(e,r,c)}var Cot=wot,Sot=lre,_ot=One,Bot=Wnt,Tot=Cot,Eot=ii,Iot=Oy,Rot=Une;function Nne(e,t,r,n,o){e!==t&&Bot(t,function(a,i){if(o||(o=new Sot),Eot(a))Tot(e,t,i,r,Nne,n,o);else{var s=n?n(Rot(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),_ot(e,i,s)}},Iot)}var Dot=Nne;function Mot(e){return e}var Hne=Mot;function Pot(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Fot=Pot,kot=Fot,q8=Math.max;function Lot(e,t,r){return t=q8(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=q8(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),kot(e,this,s)}}var zne=Lot;function Oot(e){return function(){return e}}var $ot=Oot,Uot=$ot,Z8=ure,Not=Hne,Hot=Z8?function(e,t){return Z8(e,"toString",{configurable:!0,enumerable:!1,value:Uot(t),writable:!0})}:Not,zot=Hot,Qot=800,Vot=16,Wot=Date.now;function Got(e){var t=0,r=0;return function(){var n=Wot(),o=Vot-(n-r);if(r=n,o>0){if(++t>=Qot)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Kot=Got,jot=zot,Yot=Kot,Xot=Yot(jot),Qne=Xot,qot=Hne,Zot=zne,Jot=Qne;function eat(e,t){return Jot(Zot(e,t,qot),e+"")}var tat=eat,rat=y_,nat=Ly,oat=__,aat=ii;function iat(e,t,r){if(!aat(r))return!1;var n=typeof t;return(n=="number"?nat(r)&&oat(t,r.length):n=="string"&&t in r)?rat(r[t],e):!1}var sat=iat,lat=tat,uat=sat;function cat(e){return lat(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&uat(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t})}var dat=cat,fat=Dot,Aat=dat,hat=Aat(function(e,t,r){fat(e,t,r)}),vat=hat;const uDt=ai(vat);var pat=Bl,gat=l_,mat=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yat=/^\w*$/;function bat(e,t){if(pat(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gat(e)?!0:yat.test(e)||!mat.test(e)||t!=null&&e in Object(t)}var xat=bat,Vne=sre,wat="Expected a function";function FO(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wat);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(FO.Cache||Vne),r}FO.Cache=Vne;var Cat=FO,Sat=Cat,_at=500;function Bat(e){var t=Sat(e,function(n){return r.size===_at&&r.clear(),n}),r=t.cache;return t}var Tat=Bat,Eat=Tat,Iat=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rat=/\\(\\)?/g,Dat=Eat(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Iat,function(r,n,o,a){t.push(o?a.replace(Rat,"$1"):n||r)}),t}),Mat=Dat,J8=My,Pat=ine,Fat=Bl,kat=l_,Lat=1/0,e6=J8?J8.prototype:void 0,t6=e6?e6.toString:void 0;function Wne(e){if(typeof e=="string")return e;if(Fat(e))return Pat(e,Wne)+"";if(kat(e))return t6?t6.call(e):"";var t=e+"";return t=="0"&&1/e==-Lat?"-0":t}var Oat=Wne,$at=Oat;function Uat(e){return e==null?"":$at(e)}var Nat=Uat,Hat=Bl,zat=xat,Qat=Mat,Vat=Nat;function Wat(e,t){return Hat(e)?e:zat(e,t)?[e]:Qat(Vat(e))}var N_=Wat,Gat=l_,Kat=1/0;function jat(e){if(typeof e=="string"||Gat(e))return e;var t=e+"";return t=="0"&&1/e==-Kat?"-0":t}var kO=jat,Yat=N_,Xat=kO;function qat(e,t){t=Yat(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Xat(t[r++])];return r&&r==n?e:void 0}var Zat=qat,Jat=sO,eit=N_,tit=__,r6=ii,rit=kO;function nit(e,t,r,n){if(!r6(e))return e;t=eit(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=rit(t[o]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var c=s[l];u=n?n(c,l,s):void 0,u===void 0&&(u=r6(c)?c:tit(t[o+1])?[]:{})}Jat(s,l,u),s=s[l]}return e}var oit=nit,ait=Zat,iit=oit,sit=N_;function lit(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=ait(e,i);r(s,i)&&iit(a,sit(i,e),s)}return a}var uit=lit;function cit(e,t){return e!=null&&t in Object(e)}var dit=cit,fit=N_,Ait=S_,hit=Bl,vit=__,pit=uO,git=kO;function mit(e,t,r){t=fit(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=git(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&pit(o)&&vit(i,o)&&(hit(e)||Ait(e)))}var yit=mit,bit=dit,xit=yit;function wit(e,t){return e!=null&&xit(e,t,bit)}var Cit=wit,Sit=uit,_it=Cit;function Bit(e,t){return Sit(e,t,function(r,n){return _it(e,n)})}var Tit=Bit,n6=My,Eit=S_,Iit=Bl,o6=n6?n6.isConcatSpreadable:void 0;function Rit(e){return Iit(e)||Eit(e)||!!(o6&&e&&e[o6])}var Dit=Rit,Mit=hO,Pit=Dit;function Gne(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=Pit),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?Gne(s,t-1,r,n,o):Mit(o,s):n||(o[o.length]=s)}return o}var Fit=Gne,kit=Fit;function Lit(e){var t=e==null?0:e.length;return t?kit(e,1):[]}var Oit=Lit,$it=Oit,Uit=zne,Nit=Qne;function Hit(e){return Nit(Uit(e,void 0,$it),e+"")}var zit=Hit,Qit=Tit,Vit=zit,Wit=Vit(function(e,t){return e==null?{}:Qit(e,t)}),Git=Wit;const cDt=ai(Git),{GO_SYSTEM_STORE:Kne}=$A,Kit=$y(Kne),dDt=s_({id:"useSystemStore",state:()=>Kit||{userInfo:{userId:void 0,userName:void 0,userToken:void 0,nickName:void 0},fetchInfo:{OSSUrl:void 0}},getters:{getUserInfo(){return this.userInfo},getFetchInfo(){return this.fetchInfo}},actions:{setItem(e,t){this.$patch(r=>{r[e]=t}),Tm(Kne,this.$state)}}});/*! *****************************************************************************
  6067. Copyright (c) Microsoft Corporation.
  6068. Permission to use, copy, modify, and/or distribute this software for any
  6069. purpose with or without fee is hereby granted.
  6070. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6071. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  6072. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  6073. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  6074. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  6075. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  6076. PERFORMANCE OF THIS SOFTWARE.
  6077. ***************************************************************************** */var lP=function(e,t){return lP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},lP(e,t)};function we(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lP(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jit=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Yit=function(){function e(){this.browser=new jit,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!="undefined"}return e}(),Af=new Yit;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Af.wxa=!0,Af.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Af.worker=!0:typeof navigator=="undefined"?(Af.node=!0,Af.svgSupported=!0):Xit(navigator.userAgent,Af);function Xit(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),o&&(r.ie=!0,r.version=o[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),i&&(r.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const xr=Af;var LO=12,jne="sans-serif",nd=LO+"px "+jne,qit=20,Zit=100,Jit="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function est(e){var t={};if(typeof JSON=="undefined")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),o=(e.charCodeAt(r)-qit)/Zit;t[n]=o}return t}var tst=est(Jit),ys={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var o=ys.createCanvas();e=o&&o.getContext("2d")}if(e)return t!==n&&(t=e.font=n||nd),e.measureText(r);r=r||"",n=n||nd;var a=/^([0-9]*?)px$/.exec(n),i=+(a&&a[1])||LO,s=0;if(n.indexOf("mono")>=0)s=i*r.length;else for(var l=0;l<r.length;l++){var u=tst[r[l]];s+=u==null?i:u*i}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function Yne(e){for(var t in ys)e[t]&&(ys[t]=e[t])}var Xne=$i(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),qne=$i(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ep=Object.prototype.toString,H_=Array.prototype,rst=H_.forEach,nst=H_.filter,OO=H_.slice,ost=H_.map,a6=function(){}.constructor,B1=a6?a6.prototype:null,$O="__proto__",ast=2311;function UO(){return ast++}function z_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,e)}function It(e){if(e==null||typeof e!="object")return e;var t=e,r=Ep.call(e);if(r==="[object Array]"){if(!pv(e)){t=[];for(var n=0,o=e.length;n<o;n++)t[n]=It(e[n])}}else if(qne[r]){if(!pv(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,o=e.length;n<o;n++)t[n]=e[n]}}}else if(!Xne[r]&&!pv(e)&&!zv(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==$O&&(t[i]=It(e[i]))}return t}function Qt(e,t,r){if(!Tt(t)||!Tt(e))return r?It(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==$O){var o=e[n],a=t[n];Tt(a)&&Tt(o)&&!Oe(a)&&!Oe(o)&&!zv(a)&&!zv(o)&&!uP(a)&&!uP(o)&&!pv(a)&&!pv(o)?Qt(o,a,r):(r||!(n in e))&&(e[n]=It(t[n]))}return e}function Q_(e,t){for(var r=e[0],n=1,o=e.length;n<o;n++)r=Qt(r,e[n],t);return r}function Pe(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==$O&&(e[r]=t[r]);return e}function Ct(e,t,r){for(var n=sr(t),o=0;o<n.length;o++){var a=n[o];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var ist=ys.createCanvas;function Yt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function NO(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var o in r)r.hasOwnProperty(o)&&(e.prototype[o]=r[o]);e.prototype.constructor=e,e.superClass=t}function Rn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var a=n[o];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ct(e,t,r)}function Lo(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function z(e,t,r){if(e&&t)if(e.forEach&&e.forEach===rst)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,o=e.length;n<o;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Ue(e,t,r){if(!e)return[];if(!t)return V_(e);if(e.map&&e.map===ost)return e.map(t,r);for(var n=[],o=0,a=e.length;o<a;o++)n.push(t.call(r,e[o],o,e));return n}function $i(e,t,r,n){if(e&&t){for(var o=0,a=e.length;o<a;o++)r=t.call(n,r,e[o],o,e);return r}}function kr(e,t,r){if(!e)return[];if(!t)return V_(e);if(e.filter&&e.filter===nst)return e.filter(t,r);for(var n=[],o=0,a=e.length;o<a;o++)t.call(r,e[o],o,e)&&n.push(e[o]);return n}function Zne(e,t,r){if(e&&t){for(var n=0,o=e.length;n<o;n++)if(t.call(r,e[n],n,e))return e[n]}}function sr(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function sst(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(OO.call(arguments)))}}var at=B1&&bt(B1.bind)?B1.call.bind(B1.bind):sst;function Ut(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(OO.call(arguments)))}}function Oe(e){return Array.isArray?Array.isArray(e):Ep.call(e)==="[object Array]"}function bt(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function hC(e){return Ep.call(e)==="[object String]"}function vr(e){return typeof e=="number"}function Tt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function uP(e){return!!Xne[Ep.call(e)]}function Ra(e){return!!qne[Ep.call(e)]}function zv(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function zy(e){return e.colorStops!=null}function Jne(e){return e.image!=null}function eoe(e){return Ep.call(e)==="[object RegExp]"}function Qv(e){return e!==e}function uo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Zt(e,t){return e!=null?e:t}function ol(e,t,r){return e!=null?e:t!=null?t:r}function V_(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return OO.apply(e,t)}function W_(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Xo(e,t){if(!e)throw new Error(t)}function Ei(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var toe="__ec_primitive__";function Pm(e){e[toe]=!0}function pv(e){return e[toe]}var roe=function(){function e(t){this.data={};var r=Oe(t);this.data={};var n=this;t instanceof e?t.each(o):t&&z(t,o);function o(a,i){r?n.set(a,i):n.set(i,a)}}return e.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},e.prototype.set=function(t,r){return this.data[t]=r},e.prototype.each=function(t,r){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(r,this.data[n],n)},e.prototype.keys=function(){return sr(this.data)},e.prototype.removeKey=function(t){delete this.data[t]},e}();function pt(e){return new roe(e)}function Fm(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var o=e.length,n=0;n<t.length;n++)r[n+o]=t[n];return r}function Qy(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Pe(r,t),r}function HO(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function st(e,t){return e.hasOwnProperty(t)}function $n(){}var $0=180/Math.PI;const lst=Object.freeze(Object.defineProperty({__proto__:null,HashMap:roe,RADIAN_TO_DEGREE:$0,assert:Xo,bind:at,clone:It,concatArray:Fm,createCanvas:ist,createHashMap:pt,createObject:Qy,curry:Ut,defaults:Ct,disableUserSelect:HO,each:z,eqNaN:Qv,extend:Pe,filter:kr,find:Zne,guid:UO,hasOwn:st,indexOf:Yt,inherits:NO,isArray:Oe,isArrayLike:Lo,isBuiltInObject:uP,isDom:zv,isFunction:bt,isGradientObject:zy,isImagePatternObject:Jne,isNumber:vr,isObject:Tt,isPrimitive:pv,isRegExp:eoe,isString:Je,isStringSafe:hC,isTypedArray:Ra,keys:sr,logError:z_,map:Ue,merge:Qt,mergeAll:Q_,mixin:Rn,noop:$n,normalizeCssArray:W_,reduce:$i,retrieve:uo,retrieve2:Zt,retrieve3:ol,setAsPrimitive:Pm,slice:V_,trim:Ei},Symbol.toStringTag,{value:"Module"}));function xd(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Vo(e,t){return e[0]=t[0],e[1]=t[1],e}function al(e){return[e[0],e[1]]}function noe(e,t,r){return e[0]=t,e[1]=r,e}function cP(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function vC(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function gc(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function km(e){return Math.sqrt(zO(e))}var ust=km;function zO(e){return e[0]*e[0]+e[1]*e[1]}var cst=zO;function dst(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function fst(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Ast(e,t){return e[0]*t[0]+e[1]*t[1]}function Yx(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Ip(e,t){var r=km(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function pC(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var jl=pC;function ooe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var kc=ooe;function hst(e,t){return e[0]=-t[0],e[1]=-t[1],e}function U0(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function xo(e,t,r){var n=t[0],o=t[1];return e[0]=r[0]*n+r[2]*o+r[4],e[1]=r[1]*n+r[3]*o+r[5],e}function Yl(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Xl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const vst=Object.freeze(Object.defineProperty({__proto__:null,add:cP,applyTransform:xo,clone:al,copy:Vo,create:xd,dist:jl,distSquare:kc,distance:pC,distanceSquare:ooe,div:fst,dot:Ast,len:km,lenSquare:zO,length:ust,lengthSquare:cst,lerp:U0,max:Xl,min:Yl,mul:dst,negate:hst,normalize:Ip,scale:Yx,scaleAndAdd:vC,set:noe,sub:gc},Symbol.toStringTag,{value:"Module"}));var hh=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),pst=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new hh(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,o=t.offsetY,a=n-this._x,i=o-this._y;this._x=n,this._y=o,r.drift(a,i,t),this.handler.dispatchToElement(new hh(r,t),"drag",t.event);var s=this.handler.findHover(n,o,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new hh(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new hh(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new hh(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new hh(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const gst=pst;var mst=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,o){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(o=n,n=r,r=null),!n||!t)return this;var i=this._$eventProcessor;r!=null&&i&&i.normalizeQuery&&(r=i.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:o||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var o=[],a=0,i=n[t].length;a<i;a++)n[t][a].h!==r&&o.push(n[t][a]);n[t]=o}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var o=this._$handlers[t],a=this._$eventProcessor;if(o)for(var i=r.length,s=o.length,l=0;l<s;l++){var u=o[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(i){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var o=this._$handlers[t],a=this._$eventProcessor;if(o)for(var i=r.length,s=r[i-1],l=o.length,u=0;u<l;u++){var c=o[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(i){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,i-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const Wi=mst;var yst=Math.log(2);function dP(e,t,r,n,o,a){var i=n+"-"+o,s=e.length;if(a.hasOwnProperty(i))return a[i];if(t===1){var l=Math.round(Math.log((1<<s)-1&~o)/yst);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var d=0,f=0,A=0;f<s;f++){var h=1<<f;h&o||(d+=(A%2?-1:1)*e[r][f]*dP(e,t-1,c,u,o|h,a),A++)}return a[i]=d,d}function i6(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},o=dP(r,8,0,0,0,n);if(o!==0){for(var a=[],i=0;i<8;i++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((i+s)%2?-1:1)*dP(r,7,i===0?1:0,1<<i,1<<s,n)/o*t[i];return function(l,u,c){var d=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/d,l[1]=(u*a[3]+c*a[4]+a[5])/d}}}var s6="___zrEVENTSAVED",rE=[];function bst(e,t,r,n,o){return fP(rE,t,n,o,!0)&&fP(e,r,rE[0],rE[1])}function fP(e,t,r,n,o){if(t.getBoundingClientRect&&xr.domSupported&&!aoe(t)){var a=t[s6]||(t[s6]={}),i=xst(t,a),s=wst(i,a,o);if(s)return s(e,r,n),!0}return!1}function xst(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],o=["top","bottom"],a=0;a<4;a++){var i=document.createElement("div"),s=i.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[u]+":0",n[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),e.appendChild(i),r.push(i)}return r}function wst(e,t,r){for(var n=r?"invTrans":"trans",o=t[n],a=t.srcCoords,i=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,A=c.top;i.push(f,A),l=l&&a&&f===a[d]&&A===a[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&o?o:(t.srcCoords=i,t[n]=r?i6(s,i):i6(i,s))}function aoe(e){return e.nodeName.toUpperCase()==="CANVAS"}var Cst=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,nE=[],Sst=xr.browser.firefox&&+xr.browser.version.split(".")[0]<39;function AP(e,t,r,n){return r=r||{},n?l6(e,t,r):Sst&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):l6(e,t,r),r}function l6(e,t,r){if(xr.domSupported&&e.getBoundingClientRect){var n=t.clientX,o=t.clientY;if(aoe(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=o-a.top;return}else if(fP(nE,e,n,o)){r.zrX=nE[0],r.zrY=nE[1];return}}r.zrX=r.zrY=0}function QO(e){return e||window.event}function pi(e,t,r){if(t=QO(t),t.zrX!=null)return t;var n=t.type,o=n&&n.indexOf("touch")>=0;if(o){var i=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];i&&AP(e,i,t,r)}else{AP(e,t,t,r);var a=_st(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Cst.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _st(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var o=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*o*a}function hP(e,t,r,n){e.addEventListener(t,r,n)}function Bst(e,t,r,n){e.removeEventListener(t,r,n)}var pu=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function u6(e){return e.which===2||e.which===3}var Tst=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var o=t.touches;if(o){for(var a={points:[],touches:[],target:r,event:t},i=0,s=o.length;i<s;i++){var l=o[i],u=AP(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in oE)if(oE.hasOwnProperty(r)){var n=oE[r](this._track,t);if(n)return n}},e}();function c6(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Est(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var oE={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,o=(e[r-2]||{}).points||n;if(o&&o.length>1&&n&&n.length>1){var a=c6(n)/c6(o);!isFinite(a)&&(a=1),t.pinchScale=a;var i=Est(n);return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}},ioe="silent";function Ist(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Rst}}function Rst(){pu(this.event)}var Dst=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Wi),dg=function(){function e(t,r){this.x=t,this.y=r}return e}(),Mst=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],soe=function(e){we(t,e);function t(r,n,o,a){var i=e.call(this)||this;return i._hovered=new dg(0,0),i.storage=r,i.painter=n,i.painterRoot=a,o=o||new Dst,i.proxy=null,i.setHandlerProxy(o),i._draggingMgr=new gst(i),i}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(z(Mst,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,o=r.zrY,a=loe(this,n,o),i=this._hovered,s=i.target;s&&!s.__zr&&(i=this.findHover(i.x,i.y),s=i.target);var l=this._hovered=a?new dg(n,o):this.findHover(n,o),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(i,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new dg(0,0)},t.prototype.dispatch=function(r,n){var o=this[r];o&&o.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,o){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var i="on"+n,s=Ist(n,r,o);a&&(a[i]&&(s.cancelBubble=!!a[i].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[i]=="function"&&l[i].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,o){for(var a=this.storage.getDisplayList(),i=new dg(r,n),s=a.length-1;s>=0;s--){var l=void 0;if(a[s]!==o&&!a[s].ignore&&(l=Pst(a[s],r,n))&&(!i.topTarget&&(i.topTarget=a[s]),l!==ioe)){i.target=a[s];break}}return i},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Tst);var o=this._gestureMgr;n==="start"&&o.clear();var a=o.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&o.clear(),a){var i=a.type;r.gestureEvent=i;var s=new dg;s.target=a.target,this.dispatchToElement(s,i,a.event)}},t}(Wi);z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){soe.prototype[e]=function(t){var r=t.zrX,n=t.zrY,o=loe(this,r,n),a,i;if((e!=="mouseup"||!o)&&(a=this.findHover(r,n),i=a.target),e==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(e==="mouseup")this._upEl=i;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||jl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Pst(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,o=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var i=n.getClipPath();if(i&&!i.contain(t,r))return!1;n.silent&&(o=!0)}var s=n.__hostTarget;n=s||n.parent}return o?ioe:!0}return!1}function loe(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Fst=soe;var uoe=32,fg=7;function kst(e){for(var t=0;e>=uoe;)t|=e&1,e>>=1;return e+t}function d6(e,t,r,n){var o=t+1;if(o===r)return 1;if(n(e[o++],e[t])<0){for(;o<r&&n(e[o],e[o-1])<0;)o++;Lst(e,t,o)}else for(;o<r&&n(e[o],e[o-1])>=0;)o++;return o-t}function Lst(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function f6(e,t,r,n,o){for(n===t&&n++;n<r;n++){for(var a=e[n],i=t,s=n,l;i<s;)l=i+s>>>1,o(a,e[l])<0?s=l:i=l+1;var u=n-i;switch(u){case 3:e[i+3]=e[i+2];case 2:e[i+2]=e[i+1];case 1:e[i+1]=e[i];break;default:for(;u>0;)e[i+u]=e[i+u-1],u--}e[i]=a}}function aE(e,t,r,n,o,a){var i=0,s=0,l=1;if(a(e,t[r+o])>0){for(s=n-o;l<s&&a(e,t[r+o+l])>0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=o,l+=o}else{for(s=o+1;l<s&&a(e,t[r+o-l])<=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=o-l,l=o-u}for(i++;i<l;){var c=i+(l-i>>>1);a(e,t[r+c])>0?i=c+1:l=c}return l}function iE(e,t,r,n,o,a){var i=0,s=0,l=1;if(a(e,t[r+o])<0){for(s=o+1;l<s&&a(e,t[r+o-l])<0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=o-l,l=o-u}else{for(s=n-o;l<s&&a(e,t[r+o+l])>=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=o,l+=o}for(i++;i<l;){var c=i+(l-i>>>1);a(e,t[r+c])<0?l=c:i=c+1}return l}function Ost(e,t){var r=fg,n,o,a=0;e.length;var i=[];n=[],o=[];function s(A,h){n[a]=A,o[a]=h,a+=1}function l(){for(;a>1;){var A=a-2;if(A>=1&&o[A-1]<=o[A]+o[A+1]||A>=2&&o[A-2]<=o[A]+o[A-1])o[A-1]<o[A+1]&&A--;else if(o[A]>o[A+1])break;c(A)}}function u(){for(;a>1;){var A=a-2;A>0&&o[A-1]<o[A+1]&&A--,c(A)}}function c(A){var h=n[A],v=o[A],p=n[A+1],g=o[A+1];o[A]=v+g,A===a-3&&(n[A+1]=n[A+2],o[A+1]=o[A+2]),a--;var m=iE(e[p],e,h,v,0,t);h+=m,v-=m,v!==0&&(g=aE(e[h+v-1],e,p,g,g-1,t),g!==0&&(v<=g?d(h,v,p,g):f(h,v,p,g)))}function d(A,h,v,p){var g=0;for(g=0;g<h;g++)i[g]=e[A+g];var m=0,y=v,b=A;if(e[b++]=e[y++],--p===0){for(g=0;g<h;g++)e[b+g]=i[m+g];return}if(h===1){for(g=0;g<p;g++)e[b+g]=e[y+g];e[b+p]=i[m];return}for(var x=r,w,C,_;;){w=0,C=0,_=!1;do if(t(e[y],i[m])<0){if(e[b++]=e[y++],C++,w=0,--p===0){_=!0;break}}else if(e[b++]=i[m++],w++,C=0,--h===1){_=!0;break}while((w|C)<x);if(_)break;do{if(w=iE(e[y],i,m,h,0,t),w!==0){for(g=0;g<w;g++)e[b+g]=i[m+g];if(b+=w,m+=w,h-=w,h<=1){_=!0;break}}if(e[b++]=e[y++],--p===0){_=!0;break}if(C=aE(i[m],e,y,p,0,t),C!==0){for(g=0;g<C;g++)e[b+g]=e[y+g];if(b+=C,y+=C,p-=C,p===0){_=!0;break}}if(e[b++]=i[m++],--h===1){_=!0;break}x--}while(w>=fg||C>=fg);if(_)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),h===1){for(g=0;g<p;g++)e[b+g]=e[y+g];e[b+p]=i[m]}else{if(h===0)throw new Error;for(g=0;g<h;g++)e[b+g]=i[m+g]}}function f(A,h,v,p){var g=0;for(g=0;g<p;g++)i[g]=e[v+g];var m=A+h-1,y=p-1,b=v+p-1,x=0,w=0;if(e[b--]=e[m--],--h===0){for(x=b-(p-1),g=0;g<p;g++)e[x+g]=i[g];return}if(p===1){for(b-=h,m-=h,w=b+1,x=m+1,g=h-1;g>=0;g--)e[w+g]=e[x+g];e[b]=i[y];return}for(var C=r;;){var _=0,B=0,T=!1;do if(t(i[y],e[m])<0){if(e[b--]=e[m--],_++,B=0,--h===0){T=!0;break}}else if(e[b--]=i[y--],B++,_=0,--p===1){T=!0;break}while((_|B)<C);if(T)break;do{if(_=h-iE(i[y],e,A,h,h-1,t),_!==0){for(b-=_,m-=_,h-=_,w=b+1,x=m+1,g=_-1;g>=0;g--)e[w+g]=e[x+g];if(h===0){T=!0;break}}if(e[b--]=i[y--],--p===1){T=!0;break}if(B=p-aE(e[m],i,0,p,p-1,t),B!==0){for(b-=B,y-=B,p-=B,w=b+1,x=y+1,g=0;g<B;g++)e[w+g]=i[x+g];if(p<=1){T=!0;break}}if(e[b--]=e[m--],--h===0){T=!0;break}C--}while(_>=fg||B>=fg);if(T)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),p===1){for(b-=h,m-=h,w=b+1,x=m+1,g=h-1;g>=0;g--)e[w+g]=e[x+g];e[b]=i[y]}else{if(p===0)throw new Error;for(x=b-(p-1),g=0;g<p;g++)e[x+g]=i[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Xx(e,t,r,n){r||(r=0),n||(n=e.length);var o=n-r;if(!(o<2)){var a=0;if(o<uoe){a=d6(e,r,n,t),f6(e,r,n,r+a,t);return}var i=Ost(e,t),s=kst(o);do{if(a=d6(e,r,n,t),a<s){var l=o;l>s&&(l=s),f6(e,r,r+l,r+a,t),a=l}i.pushRun(r,a),i.mergeRuns(),o-=a,r+=a}while(o!==0);i.forceMergeRuns()}}var Qa=1,r0=2,Wh=4,A6=!1;function sE(){A6||(A6=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function h6(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $st=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=h6}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,o=0,a=r.length;o<a;o++)this._updateAndAddDisplayable(r[o],null,t);n.length=this._displayListLen,Xx(n,h6)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var o=t.getClipPath();if(t.ignoreClip)r=null;else if(o){r?r=r.slice():r=[];for(var a=o,i=t;a;)a.parent=i,a.updateTransform(),r.push(a),i=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Qa),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(sE(),c.z=0),isNaN(c.z2)&&(sE(),c.z2=0),isNaN(c.zlevel)&&(sE(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,r,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,r,n);var A=t.getTextContent();A&&this._updateAndAddDisplayable(A,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var o=Yt(this._roots,t);o>=0&&this._roots.splice(o,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Ust=$st;var coe;coe=xr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const vP=coe;var qx={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-qx.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?qx.bounceIn(e*2)*.5:qx.bounceOut(e*2-1)*.5+.5}};const doe=qx;var T1=Math.pow,Lc=Math.sqrt,gC=1e-8,foe=1e-4,v6=Lc(3),E1=1/3,Ks=xd(),xi=xd(),gv=xd();function mc(e){return e>-gC&&e<gC}function Aoe(e){return e>gC||e<-gC}function io(e,t,r,n,o){var a=1-o;return a*a*(a*e+3*o*t)+o*o*(o*n+3*a*r)}function p6(e,t,r,n,o){var a=1-o;return 3*(((t-e)*a+2*(r-t)*o)*a+(n-r)*o*o)}function mC(e,t,r,n,o,a){var i=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-o,c=s*s-3*i*l,d=s*l-9*i*u,f=l*l-3*s*u,A=0;if(mc(c)&&mc(d))if(mc(s))a[0]=0;else{var h=-l/s;h>=0&&h<=1&&(a[A++]=h)}else{var v=d*d-4*c*f;if(mc(v)){var p=d/c,h=-s/i+p,g=-p/2;h>=0&&h<=1&&(a[A++]=h),g>=0&&g<=1&&(a[A++]=g)}else if(v>0){var m=Lc(v),y=c*s+1.5*i*(-d+m),b=c*s+1.5*i*(-d-m);y<0?y=-T1(-y,E1):y=T1(y,E1),b<0?b=-T1(-b,E1):b=T1(b,E1);var h=(-s-(y+b))/(3*i);h>=0&&h<=1&&(a[A++]=h)}else{var x=(2*c*s-3*i*d)/(2*Lc(c*c*c)),w=Math.acos(x)/3,C=Lc(c),_=Math.cos(w),h=(-s-2*C*_)/(3*i),g=(-s+C*(_+v6*Math.sin(w)))/(3*i),B=(-s+C*(_-v6*Math.sin(w)))/(3*i);h>=0&&h<=1&&(a[A++]=h),g>=0&&g<=1&&(a[A++]=g),B>=0&&B<=1&&(a[A++]=B)}}return A}function hoe(e,t,r,n,o){var a=6*r-12*t+6*e,i=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(mc(i)){if(Aoe(a)){var u=-s/a;u>=0&&u<=1&&(o[l++]=u)}}else{var c=a*a-4*i*s;if(mc(c))o[0]=-a/(2*i);else if(c>0){var d=Lc(c),u=(-a+d)/(2*i),f=(-a-d)/(2*i);u>=0&&u<=1&&(o[l++]=u),f>=0&&f<=1&&(o[l++]=f)}}return l}function od(e,t,r,n,o,a){var i=(t-e)*o+e,s=(r-t)*o+t,l=(n-r)*o+r,u=(s-i)*o+i,c=(l-s)*o+s,d=(c-u)*o+u;a[0]=e,a[1]=i,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=n}function voe(e,t,r,n,o,a,i,s,l,u,c){var d,f=.005,A=1/0,h,v,p,g;Ks[0]=l,Ks[1]=u;for(var m=0;m<1;m+=.05)xi[0]=io(e,r,o,i,m),xi[1]=io(t,n,a,s,m),p=kc(Ks,xi),p<A&&(d=m,A=p);A=1/0;for(var y=0;y<32&&!(f<foe);y++)h=d-f,v=d+f,xi[0]=io(e,r,o,i,h),xi[1]=io(t,n,a,s,h),p=kc(xi,Ks),h>=0&&p<A?(d=h,A=p):(gv[0]=io(e,r,o,i,v),gv[1]=io(t,n,a,s,v),g=kc(gv,Ks),v<=1&&g<A?(d=v,A=g):f*=.5);return c&&(c[0]=io(e,r,o,i,d),c[1]=io(t,n,a,s,d)),Lc(A)}function Nst(e,t,r,n,o,a,i,s,l){for(var u=e,c=t,d=0,f=1/l,A=1;A<=l;A++){var h=A*f,v=io(e,r,o,i,h),p=io(t,n,a,s,h),g=v-u,m=p-c;d+=Math.sqrt(g*g+m*m),u=v,c=p}return d}function mo(e,t,r,n){var o=1-n;return o*(o*e+2*n*t)+n*n*r}function pP(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Hst(e,t,r,n,o){var a=e-2*t+r,i=2*(t-e),s=e-n,l=0;if(mc(a)){if(Aoe(i)){var u=-s/i;u>=0&&u<=1&&(o[l++]=u)}}else{var c=i*i-4*a*s;if(mc(c)){var u=-i/(2*a);u>=0&&u<=1&&(o[l++]=u)}else if(c>0){var d=Lc(c),u=(-i+d)/(2*a),f=(-i-d)/(2*a);u>=0&&u<=1&&(o[l++]=u),f>=0&&f<=1&&(o[l++]=f)}}return l}function poe(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Lm(e,t,r,n,o){var a=(t-e)*n+e,i=(r-t)*n+t,s=(i-a)*n+a;o[0]=e,o[1]=a,o[2]=s,o[3]=s,o[4]=i,o[5]=r}function goe(e,t,r,n,o,a,i,s,l){var u,c=.005,d=1/0;Ks[0]=i,Ks[1]=s;for(var f=0;f<1;f+=.05){xi[0]=mo(e,r,o,f),xi[1]=mo(t,n,a,f);var A=kc(Ks,xi);A<d&&(u=f,d=A)}d=1/0;for(var h=0;h<32&&!(c<foe);h++){var v=u-c,p=u+c;xi[0]=mo(e,r,o,v),xi[1]=mo(t,n,a,v);var A=kc(xi,Ks);if(v>=0&&A<d)u=v,d=A;else{gv[0]=mo(e,r,o,p),gv[1]=mo(t,n,a,p);var g=kc(gv,Ks);p<=1&&g<d?(u=p,d=g):c*=.5}}return l&&(l[0]=mo(e,r,o,u),l[1]=mo(t,n,a,u)),Lc(d)}function zst(e,t,r,n,o,a,i){for(var s=e,l=t,u=0,c=1/i,d=1;d<=i;d++){var f=d*c,A=mo(e,r,o,f),h=mo(t,n,a,f),v=A-s,p=h-l;u+=Math.sqrt(v*v+p*p),s=A,l=h}return u}var Qst=/cubic-bezier\(([0-9,\.e ]+)\)/;function VO(e){var t=e&&Qst.exec(e);if(t){var r=t[1].split(","),n=+Ei(r[0]),o=+Ei(r[1]),a=+Ei(r[2]),i=+Ei(r[3]);if(isNaN(n+o+a+i))return;var s=[];return function(l){return l<=0?0:l>=1?1:mC(0,n,a,1,l,s)&&io(0,o,i,1,s[0])}}}var Vst=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||$n,this.ondestroy=t.ondestroy||$n,this.onrestart=t.onrestart||$n,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,o=t-this._startTime-this._pausedTime,a=o/n;a<0&&(a=0),a=Math.min(a,1);var i=this.easingFunc,s=i?i(a):a;if(this.onframe(s),a===1)if(this.loop){var l=o%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=bt(t)?t:doe[t]||VO(t)},e}();const Wst=Vst;var moe=function(){function e(t){this.value=t}return e}(),Gst=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new moe(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Kst=function(){function e(t){this._list=new Gst,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,o=this._map,a=null;if(o[t]==null){var i=n.len(),s=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=n.head;n.remove(l),delete o[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new moe(r),s.key=t,n.insertEntry(s),o[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Vy=Kst;var g6={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function As(e){return e=Math.round(e),e<0?0:e>255?255:e}function jst(e){return e=Math.round(e),e<0?0:e>360?360:e}function Om(e){return e<0?0:e>1?1:e}function lE(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?As(parseFloat(t)/100*255):As(parseInt(t,10))}function Vv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Om(parseFloat(t)/100):Om(parseFloat(t))}function uE(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function yc(e,t,r){return e+(t-e)*r}function hi(e,t,r,n,o){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e}function gP(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yoe=new Vy(20),I1=null;function vh(e,t){I1&&gP(I1,t),I1=yoe.put(e,I1||t.slice())}function ia(e,t){if(e){t=t||[];var r=yoe.get(e);if(r)return gP(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in g6)return gP(t,g6[n]),vh(e,t),t;var o=n.length;if(n.charAt(0)==="#"){if(o===4||o===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){hi(t,0,0,0,1);return}return hi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,o===5?parseInt(n.slice(4),16)/15:1),vh(e,t),t}else if(o===7||o===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){hi(t,0,0,0,1);return}return hi(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(n.slice(7),16)/255:1),vh(e,t),t}return}var i=n.indexOf("("),s=n.indexOf(")");if(i!==-1&&s+1===o){var l=n.substr(0,i),u=n.substr(i+1,s-(i+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?hi(t,+u[0],+u[1],+u[2],1):hi(t,0,0,0,1);c=Vv(u.pop());case"rgb":if(u.length!==3){hi(t,0,0,0,1);return}return hi(t,lE(u[0]),lE(u[1]),lE(u[2]),c),vh(e,t),t;case"hsla":if(u.length!==4){hi(t,0,0,0,1);return}return u[3]=Vv(u[3]),mP(u,t),vh(e,t),t;case"hsl":if(u.length!==3){hi(t,0,0,0,1);return}return mP(u,t),vh(e,t),t;default:return}}hi(t,0,0,0,1)}}function mP(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Vv(e[1]),o=Vv(e[2]),a=o<=.5?o*(n+1):o+n-o*n,i=o*2-a;return t=t||[],hi(t,As(uE(i,a,r+1/3)*255),As(uE(i,a,r)*255),As(uE(i,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Yst(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=a-o,s=(a+o)/2,l,u;if(i===0)l=0,u=0;else{s<.5?u=i/(a+o):u=i/(2-a-o);var c=((a-t)/6+i/2)/i,d=((a-r)/6+i/2)/i,f=((a-n)/6+i/2)/i;t===a?l=f-d:r===a?l=1/3+c-f:n===a&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var A=[l*360,u,s];return e[3]!=null&&A.push(e[3]),A}}function yC(e,t){var r=ia(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return hs(r,r.length===4?"rgba":"rgb")}}function Xst(e){var t=ia(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function N0(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),o=Math.floor(n),a=Math.ceil(n),i=t[o],s=t[a],l=n-o;return r[0]=As(yc(i[0],s[0],l)),r[1]=As(yc(i[1],s[1],l)),r[2]=As(yc(i[2],s[2],l)),r[3]=Om(yc(i[3],s[3],l)),r}}var qst=N0;function WO(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),o=Math.floor(n),a=Math.ceil(n),i=ia(t[o]),s=ia(t[a]),l=n-o,u=hs([As(yc(i[0],s[0],l)),As(yc(i[1],s[1],l)),As(yc(i[2],s[2],l)),Om(yc(i[3],s[3],l))],"rgba");return r?{color:u,leftIndex:o,rightIndex:a,value:n}:u}}var Zst=WO;function mv(e,t,r,n){var o=ia(e);if(e)return o=Yst(o),t!=null&&(o[0]=jst(t)),r!=null&&(o[1]=Vv(r)),n!=null&&(o[2]=Vv(n)),hs(mP(o),"rgba")}function $m(e,t){var r=ia(e);if(r&&t!=null)return r[3]=Om(t),hs(r,"rgba")}function hs(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Um(e,t){var r=ia(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Jst(){return hs([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const elt=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:N0,fastMapToColor:qst,lerp:WO,lift:yC,lum:Um,mapToColor:Zst,modifyAlpha:$m,modifyHSL:mv,parse:ia,random:Jst,stringify:hs,toHex:Xst},Symbol.toStringTag,{value:"Module"}));var bC=Math.round;function Wv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ia(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t==null?1:t}}var m6=1e-4;function bc(e){return e<m6&&e>-m6}function R1(e){return bC(e*1e3)/1e3}function yP(e){return bC(e*1e4)/1e4}function tlt(e){return"matrix("+R1(e[0])+","+R1(e[1])+","+R1(e[2])+","+R1(e[3])+","+yP(e[4])+","+yP(e[5])+")"}var rlt={left:"start",right:"end",center:"middle",middle:"middle"};function nlt(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function olt(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function alt(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function boe(e){return e&&!!e.image}function ilt(e){return e&&!!e.svgElement}function slt(e){return boe(e)||ilt(e)}function xoe(e){return e.type==="linear"}function woe(e){return e.type==="radial"}function llt(e){return e&&(e.type==="linear"||e.type==="radial")}function G_(e){return"url(#"+e+")"}function Coe(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Soe(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*$0,o=Zt(e.scaleX,1),a=Zt(e.scaleY,1),i=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(o!==1||a!==1)&&l.push("scale("+o+","+a+")"),(i||s)&&l.push("skew("+bC(i*$0)+"deg, "+bC(s*$0)+"deg)"),l.join(" ")}var ult=function(){return xr.hasGlobalWindow&&bt(window.btoa)?function(e){return window.btoa(unescape(e))}:typeof Buffer!="undefined"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),bP=Array.prototype.slice;function zl(e,t,r){return(t-e)*r+e}function cE(e,t,r,n){for(var o=t.length,a=0;a<o;a++)e[a]=zl(t[a],r[a],n);return e}function clt(e,t,r,n){for(var o=t.length,a=o&&t[0].length,i=0;i<o;i++){e[i]||(e[i]=[]);for(var s=0;s<a;s++)e[i][s]=zl(t[i][s],r[i][s],n)}return e}function D1(e,t,r,n){for(var o=t.length,a=0;a<o;a++)e[a]=t[a]+r[a]*n;return e}function y6(e,t,r,n){for(var o=t.length,a=o&&t[0].length,i=0;i<o;i++){e[i]||(e[i]=[]);for(var s=0;s<a;s++)e[i][s]=t[i][s]+r[i][s]*n}return e}function dlt(e,t){for(var r=e.length,n=t.length,o=r>n?t:e,a=Math.min(r,n),i=o[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)o.push({offset:i.offset,color:i.color.slice()})}function flt(e,t,r){var n=e,o=t;if(!(!n.push||!o.push)){var a=n.length,i=o.length;if(a!==i){var s=a>i;if(s)n.length=i;else for(var l=a;l<i;l++)n.push(r===1?o[l]:bP.call(o[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=o[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=o[l][c])}}function H0(e){if(Lo(e)){var t=e.length;if(Lo(e[0])){for(var r=[],n=0;n<t;n++)r.push(bP.call(e[n]));return r}return bP.call(e)}return e}function Zx(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Alt(e){return Lo(e&&e[0])?2:1}var M1=0,Jx=1,_oe=2,n0=3,xP=4,wP=5,b6=6;function x6(e){return e===xP||e===wP}function P1(e){return e===Jx||e===_oe}var Ag=[0,0,0,0],hlt=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var o=this.keyframes,a=o.length,i=!1,s=b6,l=r;if(Lo(r)){var u=Alt(r);s=u,(u===1&&!vr(r[0])||u===2&&!vr(r[0][0]))&&(i=!0)}else if(vr(r)&&!Qv(r))s=M1;else if(Je(r))if(!isNaN(+r))s=M1;else{var c=ia(r);c&&(l=c,s=n0)}else if(zy(r)){var d=Pe({},l);d.colorStops=Ue(r.colorStops,function(A){return{offset:A.offset,color:ia(A.color)}}),xoe(r)?s=xP:woe(r)&&(s=wP),l=d}a===0?this.valType=s:(s!==this.valType||s===b6)&&(i=!0),this.discrete=this.discrete||i;var f={time:t,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=bt(n)?n:doe[n]||VO(n)),o.push(f),f},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,p){return v.time-p.time});for(var o=this.valType,a=n.length,i=n[a-1],s=this.discrete,l=P1(o),u=x6(o),c=0;c<a;c++){var d=n[c],f=d.value,A=i.value;d.percent=d.time/t,s||(l&&c!==a-1?flt(f,A,o):u&&dlt(f.colorStops,A.colorStops))}if(!s&&o!==wP&&r&&this.needsAnimate()&&r.needsAnimate()&&o===r.valType&&!r._finished){this._additiveTrack=r;for(var h=n[0].value,c=0;c<a;c++)o===M1?n[c].additiveValue=n[c].value-h:o===n0?n[c].additiveValue=D1([],n[c].value,h,-1):P1(o)&&(n[c].additiveValue=o===Jx?D1([],n[c].value,h,-1):y6([],n[c].value,h,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,o=n?"additiveValue":"value",a=this.valType,i=this.keyframes,s=i.length,l=this.propName,u=a===n0,c,d=this._lastFr,f=Math.min,A,h;if(s===1)A=h=i[0];else{if(r<0)c=0;else if(r<this._lastFrP){var v=f(d+1,s-1);for(c=v;c>=0&&!(i[c].percent<=r);c--);c=f(c,s-2)}else{for(c=d;c<s&&!(i[c].percent>r);c++);c=f(c-1,s-2)}h=i[c+1],A=i[c]}if(A&&h){this._lastFr=c,this._lastFrP=r;var p=h.percent-A.percent,g=p===0?1:f((r-A.percent)/p,1);h.easingFunc&&(g=h.easingFunc(g));var m=n?this._additiveValue:u?Ag:t[l];if((P1(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=g<1?A.rawValue:h.rawValue;else if(P1(a))a===Jx?cE(m,A[o],h[o],g):clt(m,A[o],h[o],g);else if(x6(a)){var y=A[o],b=h[o],x=a===xP;t[l]={type:x?"linear":"radial",x:zl(y.x,b.x,g),y:zl(y.y,b.y,g),colorStops:Ue(y.colorStops,function(C,_){var B=b.colorStops[_];return{offset:zl(C.offset,B.offset,g),color:Zx(cE([],C.color,B.color,g))}}),global:b.global},x?(t[l].x2=zl(y.x2,b.x2,g),t[l].y2=zl(y.y2,b.y2,g)):t[l].r=zl(y.r,b.r,g)}else if(u)cE(m,A[o],h[o],g),n||(t[l]=Zx(m));else{var w=zl(A[o],h[o],g);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,o=this._additiveValue;r===M1?t[n]=t[n]+o:r===n0?(ia(t[n],Ag),D1(Ag,Ag,o,1),t[n]=Zx(Ag)):r===Jx?D1(t[n],t[n],o,1):r===_oe&&y6(t[n],t[n],o,1)},e}(),vlt=function(){function e(t,r,n,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&o){z_("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,sr(r),n)},e.prototype.whenWithKeys=function(t,r,n,o){for(var a=this._tracks,i=0;i<n.length;i++){var s=n[i],l=a[s];if(!l){l=a[s]=new hlt(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,f=d[d.length-1];u=f&&f.value,c.valType===n0&&u&&(u=Zx(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,H0(u),o),this._trackKeys.push(s)}l.addKeyframe(t,H0(r[s]),o)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var o=0;o<n.length;o++){var a=n[o].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],o=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var i=this._trackKeys[a],s=this._tracks[i],l=this._getAdditiveTrack(i),u=s.keyframes,c=u.length;if(s.prepare(o,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(r._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new Wst({life:o,loop:this._loop,delay:this._delay||0,onframe:function(A){r._started=2;var h=r._additiveAnimators;if(h){for(var v=!1,p=0;p<h.length;p++)if(h[p]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,A);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,A)},ondestroy:function(){r._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Ue(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,o=this._trackKeys,a=0;a<t.length;a++){var i=n[t[a]];i&&!i.isFinished()&&(r?i.step(this._target,1):this._started===1&&i.step(this._target,0),i.setFinished())}for(var s=!0,a=0;a<o.length;a++)if(!n[o[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var o=0;o<r.length;o++){var a=r[o],i=this._tracks[a];if(!(!i||i.isFinished())){var s=i.keyframes,l=s[n?0:s.length-1];l&&(t[a]=H0(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||sr(t);for(var n=0;n<r.length;n++){var o=r[n],a=this._tracks[o];if(a){var i=a.keyframes;if(i.length>1){var s=i.pop();a.addKeyframe(s.time,t[o]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const GO=vlt;function Zh(){return new Date().getTime()}var plt=function(e){we(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,o=r.next;n?n.next=o:this._head=o,o?o.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Zh()-this._pausedTime,o=n-this._time,a=this._head;a;){var i=a.next,s=a.step(n,o);s&&(a.ondestroy(),this.removeClip(a)),a=i}this._time=n,r||(this.trigger("frame",o),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(vP(n),!r._paused&&r.update())}vP(n)},t.prototype.start=function(){this._running||(this._time=Zh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zh()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var o=new GO(r,n.loop);return this.addAnimator(o),o},t}(Wi);const glt=plt;var mlt=300,dE=xr.domSupported,fE=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Ue(e,function(o){var a=o.replace("mouse","pointer");return r.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:n}}(),w6={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},C6=!1;function CP(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ylt(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function AE(e){e&&(e.zrByTouch=!0)}function blt(e,t){return pi(e.dom,new xlt(e,t),!0)}function Boe(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var xlt=function(){function e(t,r){this.stopPropagation=$n,this.stopImmediatePropagation=$n,this.preventDefault=$n,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),rs={mousedown:function(e){e=pi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pi(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pi(this.dom,e);var t=e.toElement||e.relatedTarget;Boe(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){C6=!0,e=pi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){C6||(e=pi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pi(this.dom,e),AE(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),rs.mousemove.call(this,e),rs.mousedown.call(this,e)},touchmove:function(e){e=pi(this.dom,e),AE(e),this.handler.processGesture(e,"change"),rs.mousemove.call(this,e)},touchend:function(e){e=pi(this.dom,e),AE(e),this.handler.processGesture(e,"end"),rs.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<mlt&&rs.click.call(this,e)},pointerdown:function(e){rs.mousedown.call(this,e)},pointermove:function(e){CP(e)||rs.mousemove.call(this,e)},pointerup:function(e){rs.mouseup.call(this,e)},pointerout:function(e){CP(e)||rs.mouseout.call(this,e)}};z(["click","dblclick","contextmenu"],function(e){rs[e]=function(t){t=pi(this.dom,t),this.trigger(e,t)}});var SP={pointermove:function(e){CP(e)||SP.mousemove.call(this,e)},pointerup:function(e){SP.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function wlt(e,t){var r=t.domHandlers;xr.pointerEventsSupported?z(fE.pointer,function(n){ew(t,n,function(o){r[n].call(e,o)})}):(xr.touchEventsSupported&&z(fE.touch,function(n){ew(t,n,function(o){r[n].call(e,o),ylt(t)})}),z(fE.mouse,function(n){ew(t,n,function(o){o=QO(o),t.touching||r[n].call(e,o)})}))}function Clt(e,t){xr.pointerEventsSupported?z(w6.pointer,r):xr.touchEventsSupported||z(w6.mouse,r);function r(n){function o(a){a=QO(a),Boe(e,a.target)||(a=blt(e,a),t.domHandlers[n].call(e,a))}ew(t,n,o,{capture:!0})}}function ew(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,hP(e.domTarget,t,r,n)}function hE(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Bst(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var S6=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Slt=function(e){we(t,e);function t(r,n){var o=e.call(this)||this;return o.__pointerCapturing=!1,o.dom=r,o.painterRoot=n,o._localHandlerScope=new S6(r,rs),dE&&(o._globalHandlerScope=new S6(document,SP)),wlt(o,o._localHandlerScope),o}return t.prototype.dispose=function(){hE(this._localHandlerScope),dE&&hE(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,dE&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Clt(this,n):hE(n)}},t}(Wi);const _lt=Slt;var Toe=1;xr.hasGlobalWindow&&(Toe=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xC=Toe,_P=.4,BP="#333",TP="#ccc",Blt="#eee";function ti(){return[1,0,0,1,0,0]}function Wy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function K_(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function il(e,t,r){var n=t[0]*r[0]+t[2]*r[1],o=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],i=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=o,e[2]=a,e[3]=i,e[4]=s,e[5]=l,e}function bs(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function wd(e,t,r){var n=t[0],o=t[2],a=t[4],i=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+i*u,e[1]=-n*u+i*c,e[2]=o*c+s*u,e[3]=-o*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function j_(e,t,r){var n=r[0],o=r[1];return e[0]=t[0]*n,e[1]=t[1]*o,e[2]=t[2]*n,e[3]=t[3]*o,e[4]=t[4]*n,e[5]=t[5]*o,e}function NA(e,t){var r=t[0],n=t[2],o=t[4],a=t[1],i=t[3],s=t[5],l=r*i-a*n;return l?(l=1/l,e[0]=i*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-i*o)*l,e[5]=(a*o-r*s)*l,e):null}function Eoe(e){var t=ti();return K_(t,e),t}const Tlt=Object.freeze(Object.defineProperty({__proto__:null,clone:Eoe,copy:K_,create:ti,identity:Wy,invert:NA,mul:il,rotate:wd,scale:j_,translate:bs},Symbol.toStringTag,{value:"Module"}));var _6=Wy,B6=5e-5;function Od(e){return e>B6||e<-B6}var $d=[],ph=[],vE=ti(),pE=Math.abs,Elt=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Od(this.rotation)||Od(this.x)||Od(this.y)||Od(this.scaleX-1)||Od(this.scaleY-1)||Od(this.skewX)||Od(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&_6(n);return}n=n||ti(),r?this.getLocalTransform(n):_6(n),t&&(r?il(n,t,n):K_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale($d);var n=$d[0]<0?-1:1,o=$d[1]<0?-1:1,a=(($d[0]-n)*r+n)/$d[0]||0,i=(($d[1]-o)*r+o)/$d[1]||0;t[0]*=a,t[1]*=a,t[2]*=i,t[3]*=i}this.invTransform=this.invTransform||ti(),NA(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],o=Math.atan2(t[1],t[0]),a=Math.PI/2+o-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-o,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(il(ph,t.invTransform,r),r=ph);var n=this.originX,o=this.originY;(n||o)&&(vE[4]=n,vE[5]=o,il(ph,r,vE),ph[4]-=n,ph[5]-=o,r=ph),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],o=this.invTransform;return o&&xo(n,n,o),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],o=this.transform;return o&&xo(n,n,o),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&pE(t[0]-1)>1e-10&&pE(t[3]-1)>1e-10?Math.sqrt(pE(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ioe(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,o=t.originY||0,a=t.scaleX,i=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,A=t.skewY?Math.tan(-t.skewY):0;if(n||o||s||l){var h=n+s,v=o+l;r[4]=-h*a-f*v*i,r[5]=-v*i-A*h*a}else r[4]=r[5]=0;return r[0]=a,r[3]=i,r[1]=A*a,r[2]=f*i,u&&wd(r,r,u),r[4]+=n+c,r[5]+=o+d,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Al=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ioe(e,t){for(var r=0;r<Al.length;r++){var n=Al[r];e[n]=t[n]}}const ql=Elt;var Ilt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,o){t.x=r.x+n.x*o,t.y=r.y+n.y*o},e.lerp=function(t,r,n,o){var a=1-o;t.x=a*r.x+o*n.x,t.y=a*r.y+o*n.y},e}();const Vt=Ilt;var F1=Math.min,k1=Math.max,Ud=new Vt,Nd=new Vt,Hd=new Vt,zd=new Vt,hg=new Vt,vg=new Vt,Rlt=function(){function e(t,r,n,o){n<0&&(t=t+n,n=-n),o<0&&(r=r+o,o=-o),this.x=t,this.y=r,this.width=n,this.height=o}return e.prototype.union=function(t){var r=F1(t.x,this.x),n=F1(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=k1(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=k1(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,o=t.height/r.height,a=ti();return bs(a,a,[-r.x,-r.y]),j_(a,a,[n,o]),bs(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,o=n.x,a=n.x+n.width,i=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,f=!(a<l||u<o||s<c||d<i);if(r){var A=1/0,h=0,v=Math.abs(a-l),p=Math.abs(u-o),g=Math.abs(s-c),m=Math.abs(d-i),y=Math.min(v,p),b=Math.min(g,m);a<l||u<o?y>h&&(h=y,v<p?Vt.set(vg,-v,0):Vt.set(vg,p,0)):y<A&&(A=y,v<p?Vt.set(hg,v,0):Vt.set(hg,-p,0)),s<c||d<i?b>h&&(h=b,g<m?Vt.set(vg,0,-g):Vt.set(vg,0,m)):y<A&&(A=y,g<m?Vt.set(hg,0,g):Vt.set(hg,0,-m))}return r&&Vt.copy(r,f?hg:vg),f},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var o=n[0],a=n[3],i=n[4],s=n[5];t.x=r.x*o+i,t.y=r.y*a+s,t.width=r.width*o,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ud.x=Hd.x=r.x,Ud.y=zd.y=r.y,Nd.x=zd.x=r.x+r.width,Nd.y=Hd.y=r.y+r.height,Ud.transform(n),zd.transform(n),Nd.transform(n),Hd.transform(n),t.x=F1(Ud.x,Nd.x,Hd.x,zd.x),t.y=F1(Ud.y,Nd.y,Hd.y,zd.y);var l=k1(Ud.x,Nd.x,Hd.x,zd.x),u=k1(Ud.y,Nd.y,Hd.y,zd.y);t.width=l-t.x,t.height=u-t.y},e}();const Xt=Rlt;var T6={};function Za(e,t){t=t||nd;var r=T6[t];r||(r=T6[t]=new Vy(500));var n=r.get(e);return n==null&&(n=ys.measureText(e,t).width,r.put(e,n)),n}function E6(e,t,r,n){var o=Za(e,t),a=Y_(t),i=o0(0,o,r),s=Gh(0,a,n),l=new Xt(i,s,o,a);return l}function Gy(e,t,r,n){var o=((e||"")+"").split(`
  6078. `),a=o.length;if(a===1)return E6(o[0],t,r,n);for(var i=new Xt(0,0,0,0),s=0;s<o.length;s++){var l=E6(o[s],t,r,n);s===0?i.copy(l):i.union(l)}return i}function o0(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Gh(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Y_(e){return Za("国",e)}function xs(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function wC(e,t,r){var n=t.position||"inside",o=t.distance!=null?t.distance:5,a=r.height,i=r.width,s=a/2,l=r.x,u=r.y,c="left",d="top";if(n instanceof Array)l+=xs(n[0],r.width),u+=xs(n[1],r.height),c=null,d=null;else switch(n){case"left":l-=o,u+=s,c="right",d="middle";break;case"right":l+=o+i,u+=s,d="middle";break;case"top":l+=i/2,u-=o,c="center",d="bottom";break;case"bottom":l+=i/2,u+=a+o,c="center";break;case"inside":l+=i/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=o,u+=s,d="middle";break;case"insideRight":l+=i-o,u+=s,c="right",d="middle";break;case"insideTop":l+=i/2,u+=o,c="center";break;case"insideBottom":l+=i/2,u+=a-o,c="center",d="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=i-o,u+=o,c="right";break;case"insideBottomLeft":l+=o,u+=a-o,d="bottom";break;case"insideBottomRight":l+=i-o,u+=a-o,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var gE="__zr_normal__",mE=Al.concat(["ignore"]),Dlt=$i(Al,function(e,t){return e[t]=!0,e},{ignore:!1}),gh={},Mlt=new Xt(0,0,0,0),KO=function(){function e(t){this.id=UO(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=t,o[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,o=n.local,a=r.innerTransformable,i=void 0,s=void 0,l=!1;a.parent=o?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Mlt;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),o||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gh,n,c):wC(gh,n,c),a.x=gh.x,a.y=gh.y,i=gh.align,s=gh.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var f=void 0,A=void 0;d==="center"?(f=c.width*.5,A=c.height*.5):(f=xs(d[0],c.width),A=xs(d[1],c.height)),u=!0,a.originX=-a.x+f+(o?0:c.x),a.originY=-a.y+A+(o?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var h=n.offset;h&&(a.x+=h[0],a.y+=h[1],u||(a.originX=-h[0],a.originY=-h[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,y=void 0;v&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),y=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),y=!0)),g=g||"#000",(g!==p.fill||m!==p.stroke||y!==p.autoStroke||i!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=m,p.autoStroke=y,p.align=i,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Qa,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?TP:BP},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ia(r);n||(n=[255,255,255,1]);for(var o=n[3],a=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*o+(a?0:255)*(1-o);return n[3]=1,hs(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Pe(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Tt(t))for(var n=t,o=sr(n),a=0;a<o.length;a++){var i=o[a];this.attrKV(i,t[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var o=this.animators[n],a=o.__fromStateTransition;if(!(o.getLoop()||a&&a!==gE)){var i=o.targetName,s=i?r[i]:r;o.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,mE)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var o=0;o<n.length;o++){var a=n[o];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(gE,!1,t)},e.prototype.useState=function(t,r,n,o){var a=t===gE,i=this.hasState();if(!(!i&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Yt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){z_("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||o);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(t,r,n,c),f&&f.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qa),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var o=[],a=this.currentStates,i=t.length,s=i===a.length;if(s){for(var l=0;l<i;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<i;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&o.push(c)}var d=o[i-1],f=!!(d&&d.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var A=this._mergeStates(o),h=this.stateTransition;this.saveCurrentToNormalState(A),this._applyStateObj(t.join(","),A,this._normalState,!1,!r&&!this.__inHover&&h&&h.duration>0,h);var v=this._textContent,p=this._textGuide;v&&v.useStates(t,r,f),p&&p.useStates(t,r,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qa)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Yt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var o=this.currentStates.slice(),a=Yt(o,t),i=Yt(o,r)>=0;a>=0?i?o.splice(a,1):o[a]=r:n&&!i&&o.push(r),this.useStates(o)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,o=0;o<t.length;o++){var a=t[o];Pe(r,a),a.textConfig&&(n=n||{},Pe(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,o,a,i){var s=!(r&&o);r&&r.textConfig?(this.textConfig=Pe({},o?this.textConfig:n.textConfig),Pe(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<mE.length;c++){var d=mE[c],f=a&&Dlt[d];r&&r[d]!=null?f?(u=!0,l[d]=r[d]):this[d]=r[d]:s&&n[d]!=null&&(f?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!a)for(var c=0;c<this.animators.length;c++){var A=this.animators[c],h=A.targetName;A.getLoop()||A.__changeFinalValue(h?(r||n)[h]:r||n)}u&&this._transitionState(t,l,i)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new ql,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Pe(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Qa;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var o=t?this[t]:this,a=new GO(o,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,o=this;t.during(function(){o.updateDuringAnimation(r)}).done(function(){var a=o.animators,i=Yt(a,t);i>=0&&a.splice(i,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,o=n.length,a=[],i=0;i<o;i++){var s=n[i];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){yE(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){yE(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,o){for(var a=yE(this,r,n,o),i=0;i<a.length;i++)a[i].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Qa;function r(n,o,a,i){Object.defineProperty(t,n,{get:function(){if(!this[o]){var l=this[o]=[];s(this,l)}return this[o]},set:function(l){this[a]=l[0],this[i]=l[1],this[o]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[i]},set:function(c){l[i]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Rn(KO,Wi);Rn(KO,ql);function yE(e,t,r,n,o){r=r||{};var a=[];Roe(e,"",e,t,r,n,a,o);var i=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,i--,i<=0&&(s?l&&l():u&&u())},d=function(){i--,i<=0&&(s?l&&l():u&&u())};i||l&&l(),a.length>0&&r.during&&a[0].during(function(h,v){r.during(v)});for(var f=0;f<a.length;f++){var A=a[f];c&&A.done(c),d&&A.aborted(d),r.force&&A.duration(r.duration),A.start(r.easing)}return a}function bE(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Plt(e){return Lo(e[0])}function Flt(e,t,r){if(Lo(t[r]))if(Lo(e[r])||(e[r]=[]),Ra(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),bE(e[r],t[r],n))}else{var o=t[r],a=e[r],i=o.length;if(Plt(o))for(var s=o[0].length,l=0;l<i;l++)a[l]?bE(a[l],o[l],s):a[l]=Array.prototype.slice.call(o[l]);else bE(a,o,i);a.length=o.length}else e[r]=t[r]}function klt(e,t){return e===t||Lo(e)&&Lo(t)&&Llt(e,t)}function Llt(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Roe(e,t,r,n,o,a,i,s){for(var l=sr(n),u=o.duration,c=o.delay,d=o.additive,f=o.setToFinal,A=!Tt(a),h=e.animators,v=[],p=0;p<l.length;p++){var g=l[p],m=n[g];if(m!=null&&r[g]!=null&&(A||a[g]))if(Tt(m)&&!Lo(m)&&!zy(m)){if(t){s||(r[g]=m,e.updateDuringAnimation(t));continue}Roe(e,g,r[g],m,o,a&&a[g],i,s)}else v.push(g);else s||(r[g]=m,e.updateDuringAnimation(t),v.push(g))}var y=v.length;if(!d&&y)for(var b=0;b<h.length;b++){var x=h[b];if(x.targetName===t){var w=x.stopTracks(v);if(w){var C=Yt(h,x);h.splice(C,1)}}}if(o.force||(v=kr(v,function(E){return!klt(n[E],r[E])}),y=v.length),y>0||o.force&&!i.length){var _=void 0,B=void 0,T=void 0;if(s){B={},f&&(_={});for(var b=0;b<y;b++){var g=v[b];B[g]=r[g],f?_[g]=n[g]:r[g]=n[g]}}else if(f){T={};for(var b=0;b<y;b++){var g=v[b];T[g]=H0(r[g]),Flt(r,n,g)}}var x=new GO(r,!1,!1,d?kr(h,function(I){return I.targetName===t}):null);x.targetName=t,o.scope&&(x.scope=o.scope),f&&_&&x.whenWithKeys(0,_,v),T&&x.whenWithKeys(0,T,v),x.whenWithKeys(u==null?500:u,s?B:n,v).delay(c||0),e.addAnimator(x,t),i.push(x)}}const Doe=KO;var Moe=function(e){we(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,o=0;o<n.length;o++)if(n[o].name===r)return n[o]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var o=this._children,a=o.indexOf(n);a>=0&&(o.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var o=Yt(this._children,r);return o>=0&&this.replaceAt(n,o),this},t.prototype.replaceAt=function(r,n){var o=this._children,a=o[n];if(r&&r!==this&&r.parent!==this&&r!==a){o[n]=r,a.parent=null;var i=this.__zr;i&&a.removeSelfFromZr(i),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,o=this._children,a=Yt(o,r);return a<0?this:(o.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,o=0;o<r.length;o++){var a=r[o];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var o=this._children,a=0;a<o.length;a++){var i=o[a];r.call(n,i,a)}return this},t.prototype.traverse=function(r,n){for(var o=0;o<this._children.length;o++){var a=this._children[o],i=r.call(n,a);a.isGroup&&!i&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var o=this._children[n];o.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var o=this._children[n];o.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Xt(0,0,0,0),o=r||this._children,a=[],i=null,s=0;s<o.length;s++){var l=o[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(Xt.applyTransform(n,u,c),i=i||n.clone(),i.union(n)):(i=i||u.clone(),i.union(u))}}return i||n},t}(Doe);Moe.prototype.type="group";const Pt=Moe;/*!
  6079. * ZRender, a high performance 2d drawing library.
  6080. *
  6081. * Copyright (c) 2013, Baidu Inc.
  6082. * All rights reserved.
  6083. *
  6084. * LICENSE
  6085. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  6086. */var tw={},Pf={};function Olt(e){delete Pf[e]}function $lt(e){if(!e)return!1;if(typeof e=="string")return Um(e,1)<_P;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,o=0;o<n;o++)r+=Um(t[o].color,1);return r/=n,r<_P}return!1}var Ult=function(){function e(t,r,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new Ust,i=n.renderer||"canvas";tw[i]||(i=sr(tw)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new tw[i](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!xr.node&&!xr.worker&&!l?new _lt(s.getViewportRoot(),s.root):null;this.handler=new Fst(a,s,u,s.root),this.animation=new glt({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=$lt(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Zh();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var o=Zh();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Pt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Olt(this.id)},e}();function EP(e,t){var r=new Ult(UO(),e,t);return Pf[r.id]=r,r}function Nlt(e){e.dispose()}function Hlt(){for(var e in Pf)Pf.hasOwnProperty(e)&&Pf[e].dispose();Pf={}}function zlt(e){return Pf[e]}function Poe(e,t){tw[e]=t}var Qlt="5.3.2";const Vlt=Object.freeze(Object.defineProperty({__proto__:null,dispose:Nlt,disposeAll:Hlt,getInstance:zlt,init:EP,registerPainter:Poe,version:Qlt},Symbol.toStringTag,{value:"Module"}));var I6=1e-4,Foe=20;function Wlt(e){return e.replace(/^\s+|\s+$/g,"")}function Fr(e,t,r,n){var o=t[0],a=t[1],i=r[0],s=r[1],l=a-o,u=s-i;if(l===0)return u===0?i:(i+s)/2;if(n)if(l>0){if(e<=o)return i;if(e>=a)return s}else{if(e>=o)return i;if(e<=a)return s}else{if(e===o)return i;if(e===a)return s}return(e-o)/l*u+i}function qe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Je(e)?Wlt(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Cn(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Foe),e=(+e).toFixed(t),r?e:+e}function ja(e){return e.sort(function(t,r){return t-r}),e}function cs(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return koe(e)}function koe(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,o=r>0?r:t.length,a=t.indexOf("."),i=a<0?0:o-1-a;return Math.max(0,i-n)}function jO(e,t){var r=Math.log,n=Math.LN10,o=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),i=Math.min(Math.max(-o+a,0),20);return isFinite(i)?i:20}function Loe(e,t,r){if(!e[t])return 0;var n=$i(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return 0;for(var o=Math.pow(10,r),a=Ue(e,function(h){return(isNaN(h)?0:h)/n*o*100}),i=o*100,s=Ue(a,function(h){return Math.floor(h)}),l=$i(s,function(h,v){return h+v},0),u=Ue(a,function(h,v){return h-s[v]});l<i;){for(var c=Number.NEGATIVE_INFINITY,d=null,f=0,A=u.length;f<A;++f)u[f]>c&&(c=u[f],d=f);++s[d],u[d]=0,++l}return s[t]/o}function Glt(e,t){var r=Math.max(cs(e),cs(t)),n=e+t;return r>Foe?n:Cn(n,r)}var IP=9007199254740991;function YO(e){var t=Math.PI*2;return(e%t+t)%t}function Nm(e){return e>-I6&&e<I6}var Klt=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ri(e){if(e instanceof Date)return e;if(Je(e)){var t=Klt.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Ooe(e){return Math.pow(10,X_(e))}function X_(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function XO(e,t){var r=X_(e),n=Math.pow(10,r),o=e/n,a;return t?o<1.5?a=1:o<2.5?a=2:o<4?a=3:o<7?a=5:a=10:o<1?a=1:o<2?a=2:o<3?a=3:o<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function rw(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),o=+e[n-1],a=r-n;return a?o+a*(e[n]-o):o}function RP(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var o=e[n].interval,a=e[n].close,i=0;i<2;i++)o[i]<=t&&(o[i]=t,a[i]=i?1:1-r),t=o[i],r=a[i];o[0]===o[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){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))}}function hl(e){var t=parseFloat(e);return t==e&&(t!==0||!Je(e)||e.indexOf("x")<=0)?t:NaN}function qO(e){return!isNaN(hl(e))}function $oe(){return Math.round(Math.random()*9)}function Uoe(e,t){return t===0?e:Uoe(t,e%t)}function R6(e,t){return e==null?t:t==null?e:e*t/Uoe(e,t)}function Tr(e){throw new Error(e)}function D6(e,t,r){return(t-e)*r+e}var Noe="series\0",Hoe="\0_ec_\0";function Wr(e){return e instanceof Array?e:e==null?[]:[e]}function AA(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,o=r.length;n<o;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var M6=["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"];function Rp(e){return Tt(e)&&!Oe(e)&&!(e instanceof Date)?e.value:e}function jlt(e){return Tt(e)&&!(e instanceof Array)}function zoe(e,t,r){var n=r==="normalMerge",o=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var i=pt();z(t,function(l,u){if(!Tt(l)){t[u]=null;return}});var s=Ylt(e,i,r);return(n||o)&&Xlt(s,e,i,t),n&&qlt(s,t),n||o?Zlt(s,t,o):a&&Jlt(s,t),eut(s),s}function Ylt(e,t,r){var n=[];if(r==="replaceAll")return n;for(var o=0;o<e.length;o++){var a=e[o];a&&a.id!=null&&t.set(a.id,o),n.push({existing:r==="replaceMerge"||Hm(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Xlt(e,t,r,n){z(n,function(o,a){if(!(!o||o.id==null)){var i=z0(o.id),s=r.get(i);if(s!=null){var l=e[s];Xo(!l.newOption,'Duplicated option on id "'+i+'".'),l.newOption=o,l.existing=t[s],n[a]=null}}})}function qlt(e,t){z(t,function(r,n){if(!(!r||r.name==null))for(var o=0;o<e.length;o++){var a=e[o].existing;if(!e[o].newOption&&a&&(a.id==null||r.id==null)&&!Hm(r)&&!Hm(a)&&Qoe("name",a,r)){e[o].newOption=r,t[n]=null;return}}})}function Zlt(e,t,r){z(t,function(n){if(n){for(var o,a=0;(o=e[a])&&(o.newOption||Hm(o.existing)||o.existing&&n.id!=null&&!Qoe("id",n,o.existing));)a++;o?(o.newOption=n,o.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Jlt(e,t){z(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function eut(e){var t=pt();z(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),z(e,function(r){var n=r.newOption;Xo(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),z(e,function(r,n){var o=r.existing,a=r.newOption,i=r.keyInfo;if(Tt(a)){if(i.name=a.name!=null?z0(a.name):o?o.name:Noe+n,o)i.id=z0(o.id);else if(a.id!=null)i.id=z0(a.id);else{var s=0;do i.id="\0"+i.name+"\0"+s++;while(t.get(i.id))}t.set(i.id,r)}})}function Qoe(e,t,r){var n=ro(t[e],null),o=ro(r[e],null);return n!=null&&o!=null&&n===o}function z0(e){return ro(e,"")}function ro(e,t){return e==null?t:Je(e)?e:vr(e)||hC(e)?e+"":t}function ZO(e){var t=e.name;return!!(t&&t.indexOf(Noe))}function Hm(e){return e&&e.id!=null&&z0(e.id).indexOf(Hoe)===0}function tut(e){return Hoe+e}function rut(e,t,r){z(e,function(n){var o=n.newOption;Tt(o)&&(n.keyInfo.mainType=t,n.keyInfo.subType=nut(t,o,n.existing,r))})}function nut(e,t,r,n){var o=t.type?t.type:r?r.subType:n.determineSubType(e,t);return o}function out(e,t){var r={},n={};return o(e||[],r),o(t||[],n,r),[a(r),a(n)];function o(i,s,l){for(var u=0,c=i.length;u<c;u++){var d=ro(i[u].seriesId,null);if(d==null)return;for(var f=Wr(i[u].dataIndex),A=l&&l[d],h=0,v=f.length;h<v;h++){var p=f[h];A&&A[p]?A[p]=null:(s[d]||(s[d]={}))[p]=1}}}function a(i,s){var l=[];for(var u in i)if(i.hasOwnProperty(u)&&i[u]!=null)if(s)l.push(+u);else{var c=a(i[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function hA(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Oe(t.dataIndex)?Ue(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Oe(t.name)?Ue(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function br(){var e="__ec_inner_"+aut++;return function(t){return t[e]||(t[e]={})}}var aut=$oe();function Q0(e,t,r){var n=JO(t,r),o=n.mainTypeSpecified,a=n.queryOptionMap,i=n.others,s=i,l=r?r.defaultMainType:null;return!o&&l&&a.set(l,{}),a.each(function(u,c){var d=Ky(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=d.models,s[c+"Model"]=d.models[0]}),s}function JO(e,t){var r;if(Je(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var o=pt(),a={},i=!1;return z(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],d=(u[2]||"").toLowerCase();if(!(!c||!d||t&&t.includeMainTypes&&Yt(t.includeMainTypes,c)<0)){i=i||!!c;var f=o.get(c)||o.set(c,{});f[d]=s}}),{mainTypeSpecified:i,queryOptionMap:o,others:a}}var Kn={useDefault:!0,enableAll:!1,enableNone:!1},iut={useDefault:!1,enableAll:!0,enableNone:!0};function Ky(e,t,r,n){n=n||Kn;var o=r.index,a=r.id,i=r.name,s={models:null,specified:o!=null||a!=null||i!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return o==="none"||o===!1?(Xo(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(o==="all"&&(Xo(n.enableAll,'`"all"` is not a valid value on index option.'),o=a=i=null),s.models=e.queryComponents({mainType:t,index:o,id:a,name:i}),s)}function Voe(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function sut(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function lut(e){return e==="auto"?xr.domSupported?"html":"richText":e||"html"}function DP(e,t){var r=pt(),n=[];return z(e,function(o){var a=t(o);(r.get(a)||(n.push(a),r.set(a,[]))).push(o)}),{keys:n,buckets:r}}function Woe(e,t,r,n,o){var a=t==null||t==="auto";if(n==null)return n;if(vr(n)){var i=D6(r||0,n,o);return Cn(i,a?Math.max(cs(r||0),cs(n)):t)}else{if(Je(n))return o<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var f=e.getDimensionInfo(d);if(f&&f.type==="ordinal")s[d]=(o<1&&l?l:u)[d];else{var A=l&&l[d]?l[d]:0,h=u[d],i=D6(A,h,o);s[d]=Cn(i,a?Math.max(cs(A),cs(h)):t)}}return s}}var uut=".",Qd="___EC__COMPONENT__CONTAINER___",Goe="___EC__EXTENDED_CLASS___";function Zs(e){var t={main:"",sub:""};if(e){var r=e.split(uut);t.main=r[0]||"",t.sub=r[1]||""}return t}function cut(e){Xo(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function dut(e){return!!(e&&e[Goe])}function e4(e,t){e.$constructor=e,e.extend=function(r){var n=this,o;return fut(n)?o=function(a){we(i,a);function i(){return a.apply(this,arguments)||this}return i}(n):(o=function(){(r.$constructor||n).apply(this,arguments)},NO(o,this)),Pe(o.prototype,r),o[Goe]=!0,o.extend=this.extend,o.superCall=vut,o.superApply=put,o.superClass=n,o}}function fut(e){return bt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Koe(e,t){e.extend=t.extend}var Aut=Math.round(Math.random()*10);function hut(e){var t=["__\0is_clz",Aut++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function vut(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function put(e,t,r){return this.superClass.prototype[t].apply(e,r)}function q_(e){var t={};e.registerClass=function(n){var o=n.type||n.prototype.type;if(o){cut(o),n.prototype.type=o;var a=Zs(o);if(!a.sub)t[a.main]=n;else if(a.sub!==Qd){var i=r(a);i[a.sub]=n}}return n},e.getClass=function(n,o,a){var i=t[n];if(i&&i[Qd]&&(i=o?i[o]:null),a&&!i)throw new Error(o?"Component "+n+"."+(o||"")+" is used but not imported.":n+".type should be specified.");return i},e.getClassesByMainType=function(n){var o=Zs(n),a=[],i=t[o.main];return i&&i[Qd]?z(i,function(s,l){l!==Qd&&a.push(s)}):a.push(i),a},e.hasClass=function(n){var o=Zs(n);return!!t[o.main]},e.getAllClassMainTypes=function(){var n=[];return z(t,function(o,a){n.push(a)}),n},e.hasSubTypes=function(n){var o=Zs(n),a=t[o.main];return a&&a[Qd]};function r(n){var o=t[n.main];return(!o||!o[Qd])&&(o=t[n.main]={},o[Qd]=!0),o}}function vA(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,o,a){for(var i={},s=0;s<e.length;s++){var l=e[s][1];if(!(o&&Yt(o,l)>=0||a&&Yt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(i[e[s][0]]=u)}}return i}}var gut=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],mut=vA(gut),yut=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return mut(this,t,r)},e}(),MP=new Vy(50);function but(e){if(typeof e=="string"){var t=MP.get(e);return t&&t.image}else return e}function t4(e,t,r,n,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=MP.get(e),i={hostEl:r,cb:n,cbPayload:o};return a?(t=a.image,!Z_(t)&&a.pending.push(i)):(t=ys.loadImage(e,P6,P6),t.__zrImageSrc=e,MP.put(e,t.__cachedImgObj={image:t,pending:[i]})),t}else return e;else return t}function P6(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Z_(e){return e&&e.width&&e.height}var xE=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function joe(e,t,r,n,o){if(!t)return"";var a=(e+"").split(`
  6087. `);o=Yoe(t,r,n,o);for(var i=0,s=a.length;i<s;i++)a[i]=Xoe(a[i],o);return a.join(`
  6088. `)}function Yoe(e,t,r,n){n=n||{};var o=Pe({},n);o.font=t,r=Zt(r,"..."),o.maxIterations=Zt(n.maxIterations,2);var a=o.minChar=Zt(n.minChar,0);o.cnCharWidth=Za("国",t);var i=o.ascCharWidth=Za("a",t);o.placeholder=Zt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=i;l++)s-=i;var u=Za(r,t);return u>s&&(r="",u=0),s=e-u,o.ellipsis=r,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=e,o}function Xoe(e,t){var r=t.containerWidth,n=t.font,o=t.contentWidth;if(!r)return"";var a=Za(e,n);if(a<=r)return e;for(var i=0;;i++){if(a<=o||i>=t.maxIterations){e+=t.ellipsis;break}var s=i===0?xut(e,o,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*o/a):0;e=e.substr(0,s),a=Za(e,n)}return e===""&&(e=t.placeholder),e}function xut(e,t,r,n){for(var o=0,a=0,i=e.length;a<i&&o<t;a++){var s=e.charCodeAt(a);o+=0<=s&&s<=127?r:n}return a}function wut(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,o=t.font,a=r==="truncate",i=Y_(o),s=Zt(t.lineHeight,i),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,d;c!=null&&(r==="break"||r==="breakAll")?d=e?qoe(e,t.font,c,r==="breakAll",0).lines:[]:d=e?e.split(`
  6089. `):[];var f=d.length*s,A=Zt(t.height,f);if(f>A&&u){var h=Math.floor(A/s);d=d.slice(0,h)}if(e&&a&&c!=null)for(var v=Yoe(c,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<d.length;p++)d[p]=Xoe(d[p],v);for(var g=A,m=0,p=0;p<d.length;p++)m=Math.max(Za(d[p],o),m);c==null&&(c=m);var y=m;return n&&(g+=n[0]+n[2],y+=n[1]+n[3],c+=n[1]+n[3]),l&&(y=c),{lines:d,height:A,outerWidth:y,outerHeight:g,lineHeight:s,calculatedLineHeight:i,contentWidth:m,contentHeight:f,width:c}}var Cut=function(){function e(){}return e}(),F6=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Sut=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function _ut(e,t){var r=new Sut;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,o=t.height,a=t.overflow,i=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=xE.lastIndex=0,l;(l=xE.exec(e))!=null;){var u=l.index;u>s&&wE(r,e.substring(s,u),t,i),wE(r,l[2],t,i,l[1]),s=xE.lastIndex}s<e.length&&wE(r,e.substring(s,e.length),t,i);var c=[],d=0,f=0,A=t.padding,h=a==="truncate",v=t.lineOverflow==="truncate";function p(O,Q,V){O.width=Q,O.lineHeight=V,d+=V,f=Math.max(f,Q)}e:for(var g=0;g<r.lines.length;g++){for(var m=r.lines[g],y=0,b=0,x=0;x<m.tokens.length;x++){var w=m.tokens[x],C=w.styleName&&t.rich[w.styleName]||{},_=w.textPadding=C.padding,B=_?_[1]+_[3]:0,T=w.font=C.font||t.font;w.contentHeight=Y_(T);var E=Zt(C.height,w.contentHeight);if(w.innerHeight=E,_&&(E+=_[0]+_[2]),w.height=E,w.lineHeight=ol(C.lineHeight,t.lineHeight,E),w.align=C&&C.align||t.align,w.verticalAlign=C&&C.verticalAlign||"middle",v&&o!=null&&d+w.lineHeight>o){x>0?(m.tokens=m.tokens.slice(0,x),p(m,b,y),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break e}var I=C.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")w.percentWidth=I,c.push(w),w.contentWidth=Za(w.text,T);else{if(R){var D=C.backgroundColor,F=D&&D.image;F&&(F=but(F),Z_(F)&&(w.width=Math.max(w.width,F.width*E/F.height)))}var M=h&&n!=null?n-b:null;M!=null&&M<w.width?!R||M<B?(w.text="",w.width=w.contentWidth=0):(w.text=joe(w.text,M-B,T,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Za(w.text,T)):w.contentWidth=Za(w.text,T)}w.width+=B,b+=w.width,C&&(y=Math.max(y,w.lineHeight))}p(m,b,y)}r.outerWidth=r.width=Zt(n,f),r.outerHeight=r.height=Zt(o,d),r.contentHeight=d,r.contentWidth=f,A&&(r.outerWidth+=A[1]+A[3],r.outerHeight+=A[0]+A[2]);for(var g=0;g<c.length;g++){var w=c[g],$=w.percentWidth;w.width=parseInt($,10)/100*r.width}return r}function wE(e,t,r,n,o){var a=t==="",i=o&&r.rich[o]||{},s=e.lines,l=i.font||r.font,u=!1,c,d;if(n){var f=i.padding,A=f?f[1]+f[3]:0;if(i.width!=null&&i.width!=="auto"){var h=xs(i.width,n.width)+A;s.length>0&&h+n.accumWidth>n.width&&(c=t.split(`
  6090. `),u=!0),n.accumWidth=h}else{var v=qoe(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+A,d=v.linesWidths,c=v.lines}}else c=t.split(`
  6091. `);for(var p=0;p<c.length;p++){var g=c[p],m=new Cut;if(m.styleName=o,m.text=g,m.isLineHolder=!g&&!a,typeof i.width=="number"?m.width=i.width:m.width=d?d[p]:Za(g,l),!p&&!u){var y=(s[s.length-1]||(s[0]=new F6)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=m:(g||!b||a)&&y.push(m)}else s.push(new F6([m]))}}function But(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var Tut=$i(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Eut(e){return But(e)?!!Tut[e]:!0}function qoe(e,t,r,n,o){for(var a=[],i=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
  6092. `){l&&(s+=l,c+=u),a.push(s),i.push(c),s="",l="",u=0,c=0;continue}var A=Za(f,t),h=n?!1:!Eut(f);if(a.length?c+A>r:o+c+A>r){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),a.push(s),i.push(c-u),l+=f,u+=A,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),i.push(c),s=f,c=A)):h?(a.push(l),i.push(u),l=f,u=A):(a.push(f),i.push(A));continue}c+=A,h?(l+=f,u+=A):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),i.push(c)),a.length===1&&(c+=o),{accumWidth:c,lines:a,linesWidths:i}}var PP="__zr_style_"+Math.round(Math.random()*10),qf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},J_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qf[PP]=!0;var k6=["z","z2","invisible"],Iut=["invisible"],Rut=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=sr(r),o=0;o<n.length;o++){var a=n[o];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,o,a){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Dut(this,r,n)||i&&!i[0]&&!i[3])return!1;if(o&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var o=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(o[0],o[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,o=this.getBoundingRect(),a=this.style,i=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Xt(0,0,0,0)),n?Xt.applyTransform(r,o,n):r.copy(o),(i||s||l)&&(r.width+=i*2+Math.abs(s),r.height+=i*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-i),r.y=Math.min(r.y,r.y+l-i));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Xt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Pe(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=r0,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&r0)},t.prototype.styleUpdated=function(){this.__dirty&=~r0},t.prototype.createStyle=function(r){return Qy(qf,r)},t.prototype.useStyle=function(r){r[PP]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[PP]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,k6)},t.prototype._applyStateObj=function(r,n,o,a,i,s){e.prototype._applyStateObj.call(this,r,n,o,a,i,s);var l=!(n&&a),u;if(n&&n.style?i?a?u=n.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:o.style),this._mergeStyle(u,n.style)):l&&(u=o.style),u)if(i){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=sr(c),f=0;f<d.length;f++){var A=d[f];A in u&&(u[A]=u[A],this.style[A]=c[A])}for(var h=sr(u),f=0;f<h.length;f++){var A=h[f];this.style[A]=this.style[A]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?Iut:k6,f=0;f<v.length;f++){var A=v[f];n&&n[A]!=null?this[A]=n[A]:l&&o[A]!=null&&(this[A]=o[A])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),o,a=0;a<r.length;a++){var i=r[a];i.style&&(o=o||{},this._mergeStyle(o,i.style))}return o&&(n.style=o),n},t.prototype._mergeStyle=function(r,n){return Pe(r,n),r},t.prototype.getAnimationStyleProps=function(){return J_},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Qa|r0}(),t}(Doe),CE=new Xt(0,0,0,0),SE=new Xt(0,0,0,0);function Dut(e,t,r){return CE.copy(e.getBoundingRect()),e.transform&&CE.applyTransform(e.transform),SE.width=t,SE.height=r,!CE.intersect(SE)}const Ui=Rut;var ba=Math.min,xa=Math.max,_E=Math.sin,BE=Math.cos,Vd=Math.PI*2,L1=xd(),O1=xd(),$1=xd();function eB(e,t,r){if(e.length!==0){for(var n=e[0],o=n[0],a=n[0],i=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],o=ba(o,n[0]),a=xa(a,n[0]),i=ba(i,n[1]),s=xa(s,n[1]);t[0]=o,t[1]=i,r[0]=a,r[1]=s}}function L6(e,t,r,n,o,a){o[0]=ba(e,r),o[1]=ba(t,n),a[0]=xa(e,r),a[1]=xa(t,n)}var O6=[],$6=[];function Mut(e,t,r,n,o,a,i,s,l,u){var c=hoe,d=io,f=c(e,r,o,i,O6);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var A=0;A<f;A++){var h=d(e,r,o,i,O6[A]);l[0]=ba(h,l[0]),u[0]=xa(h,u[0])}f=c(t,n,a,s,$6);for(var A=0;A<f;A++){var v=d(t,n,a,s,$6[A]);l[1]=ba(v,l[1]),u[1]=xa(v,u[1])}l[0]=ba(e,l[0]),u[0]=xa(e,u[0]),l[0]=ba(i,l[0]),u[0]=xa(i,u[0]),l[1]=ba(t,l[1]),u[1]=xa(t,u[1]),l[1]=ba(s,l[1]),u[1]=xa(s,u[1])}function Put(e,t,r,n,o,a,i,s){var l=poe,u=mo,c=xa(ba(l(e,r,o),1),0),d=xa(ba(l(t,n,a),1),0),f=u(e,r,o,c),A=u(t,n,a,d);i[0]=ba(e,o,f),i[1]=ba(t,a,A),s[0]=xa(e,o,f),s[1]=xa(t,a,A)}function Fut(e,t,r,n,o,a,i,s,l){var u=Yl,c=Xl,d=Math.abs(o-a);if(d%Vd<1e-4&&d>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(L1[0]=BE(o)*r+e,L1[1]=_E(o)*n+t,O1[0]=BE(a)*r+e,O1[1]=_E(a)*n+t,u(s,L1,O1),c(l,L1,O1),o=o%Vd,o<0&&(o=o+Vd),a=a%Vd,a<0&&(a=a+Vd),o>a&&!i?a+=Vd:o<a&&i&&(o+=Vd),i){var f=a;a=o,o=f}for(var A=0;A<a;A+=Math.PI/2)A>o&&($1[0]=BE(A)*r+e,$1[1]=_E(A)*n+t,u(s,$1,s),c(l,$1,l))}var Xr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Wd=[],Gd=[],ks=[],Wu=[],Ls=[],Os=[],TE=Math.min,EE=Math.max,Kd=Math.cos,jd=Math.sin,kl=Math.abs,FP=Math.PI,nc=FP*2,IE=typeof Float32Array!="undefined",pg=[];function RE(e){var t=Math.round(e/FP*1e8)/1e8;return t%2*FP}function Zoe(e,t){var r=RE(e[0]);r<0&&(r+=nc);var n=r-e[0],o=e[1];o+=n,!t&&o-r>=nc?o=r+nc:t&&r-o>=nc?o=r-nc:!t&&r>o?o=r+(nc-RE(r-o)):t&&r<o&&(o=r-(nc-RE(o-r))),e[0]=r,e[1]=o}var kut=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=kl(n/xC/t)||0,this._uy=kl(n/xC/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Xr.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=kl(t-this._xi),o=kl(r-this._yi),a=n>this._ux||o>this._uy;if(this.addData(Xr.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var i=n*n+o*o;i>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(t,r,n,o,a,i){return this._drawPendingPt(),this.addData(Xr.C,t,r,n,o,a,i),this._ctx&&this._ctx.bezierCurveTo(t,r,n,o,a,i),this._xi=a,this._yi=i,this},e.prototype.quadraticCurveTo=function(t,r,n,o){return this._drawPendingPt(),this.addData(Xr.Q,t,r,n,o),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,o),this._xi=n,this._yi=o,this},e.prototype.arc=function(t,r,n,o,a,i){this._drawPendingPt(),pg[0]=o,pg[1]=a,Zoe(pg,i),o=pg[0],a=pg[1];var s=a-o;return this.addData(Xr.A,t,r,n,n,o,s,0,i?0:1),this._ctx&&this._ctx.arc(t,r,n,o,a,i),this._xi=Kd(a)*n+t,this._yi=jd(a)*n+r,this},e.prototype.arcTo=function(t,r,n,o,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,o,a),this},e.prototype.rect=function(t,r,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,o),this.addData(Xr.R,t,r,n,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xr.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&IE&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,o=this._len,a=0;a<r;a++)n+=t[a].len();IE&&this.data instanceof Float32Array&&(this.data=new Float32Array(o+n));for(var a=0;a<r;a++)for(var i=t[a].data,s=0;s<i.length;s++)this.data[o++]=i[s];this._len=o},e.prototype.addData=function(t,r,n,o,a,i,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,IE&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ks[0]=ks[1]=Ls[0]=Ls[1]=Number.MAX_VALUE,Wu[0]=Wu[1]=Os[0]=Os[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,o=0,a=0,i;for(i=0;i<this._len;){var s=t[i++],l=i===1;switch(l&&(r=t[i],n=t[i+1],o=r,a=n),s){case Xr.M:r=o=t[i++],n=a=t[i++],Ls[0]=o,Ls[1]=a,Os[0]=o,Os[1]=a;break;case Xr.L:L6(r,n,t[i],t[i+1],Ls,Os),r=t[i++],n=t[i++];break;case Xr.C:Mut(r,n,t[i++],t[i++],t[i++],t[i++],t[i],t[i+1],Ls,Os),r=t[i++],n=t[i++];break;case Xr.Q:Put(r,n,t[i++],t[i++],t[i],t[i+1],Ls,Os),r=t[i++],n=t[i++];break;case Xr.A:var u=t[i++],c=t[i++],d=t[i++],f=t[i++],A=t[i++],h=t[i++]+A;i+=1;var v=!t[i++];l&&(o=Kd(A)*d+u,a=jd(A)*f+c),Fut(u,c,d,f,A,h,v,Ls,Os),r=Kd(h)*d+u,n=jd(h)*f+c;break;case Xr.R:o=r=t[i++],a=n=t[i++];var p=t[i++],g=t[i++];L6(o,a,o+p,a+g,Ls,Os);break;case Xr.Z:r=o,n=a;break}Yl(ks,ks,Ls),Xl(Wu,Wu,Os)}return i===0&&(ks[0]=ks[1]=Wu[0]=Wu[1]=0),new Xt(ks[0],ks[1],Wu[0]-ks[0],Wu[1]-ks[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,o=this._uy,a=0,i=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,d=0,f=0;f<r;){var A=t[f++],h=f===1;h&&(a=t[f],i=t[f+1],s=a,l=i);var v=-1;switch(A){case Xr.M:a=s=t[f++],i=l=t[f++];break;case Xr.L:{var p=t[f++],g=t[f++],m=p-a,y=g-i;(kl(m)>n||kl(y)>o||f===r-1)&&(v=Math.sqrt(m*m+y*y),a=p,i=g);break}case Xr.C:{var b=t[f++],x=t[f++],p=t[f++],g=t[f++],w=t[f++],C=t[f++];v=Nst(a,i,b,x,p,g,w,C,10),a=w,i=C;break}case Xr.Q:{var b=t[f++],x=t[f++],p=t[f++],g=t[f++];v=zst(a,i,b,x,p,g,10),a=p,i=g;break}case Xr.A:var _=t[f++],B=t[f++],T=t[f++],E=t[f++],I=t[f++],R=t[f++],D=R+I;f+=1,t[f++],h&&(s=Kd(I)*T+_,l=jd(I)*E+B),v=EE(T,E)*TE(nc,Math.abs(R)),a=Kd(D)*T+_,i=jd(D)*E+B;break;case Xr.R:{s=a=t[f++],l=i=t[f++];var F=t[f++],M=t[f++];v=F*2+M*2;break}case Xr.Z:{var m=s-a,y=l-i;v=Math.sqrt(m*m+y*y),a=s,i=l;break}}v>=0&&(u[d++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,o=this._ux,a=this._uy,i=this._len,s,l,u,c,d,f,A=r<1,h,v,p=0,g=0,m,y=0,b,x;if(!(A&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,v=this._pathLen,m=r*v,!m)))e:for(var w=0;w<i;){var C=n[w++],_=w===1;switch(_&&(u=n[w],c=n[w+1],s=u,l=c),C!==Xr.L&&y>0&&(t.lineTo(b,x),y=0),C){case Xr.M:s=u=n[w++],l=c=n[w++],t.moveTo(u,c);break;case Xr.L:{d=n[w++],f=n[w++];var B=kl(d-u),T=kl(f-c);if(B>o||T>a){if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;t.lineTo(u*(1-I)+d*I,c*(1-I)+f*I);break e}p+=E}t.lineTo(d,f),u=d,c=f,y=0}else{var R=B*B+T*T;R>y&&(b=d,x=f,y=R)}break}case Xr.C:{var D=n[w++],F=n[w++],M=n[w++],$=n[w++],O=n[w++],Q=n[w++];if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;od(u,D,M,O,I,Wd),od(c,F,$,Q,I,Gd),t.bezierCurveTo(Wd[1],Gd[1],Wd[2],Gd[2],Wd[3],Gd[3]);break e}p+=E}t.bezierCurveTo(D,F,M,$,O,Q),u=O,c=Q;break}case Xr.Q:{var D=n[w++],F=n[w++],M=n[w++],$=n[w++];if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;Lm(u,D,M,I,Wd),Lm(c,F,$,I,Gd),t.quadraticCurveTo(Wd[1],Gd[1],Wd[2],Gd[2]);break e}p+=E}t.quadraticCurveTo(D,F,M,$),u=M,c=$;break}case Xr.A:var V=n[w++],W=n[w++],Z=n[w++],te=n[w++],ae=n[w++],re=n[w++],le=n[w++],se=!n[w++],ce=Z>te?Z:te,be=kl(Z-te)>.001,de=ae+re,pe=!1;if(A){var E=h[g++];p+E>m&&(de=ae+re*(m-p)/E,pe=!0),p+=E}if(be&&t.ellipse?t.ellipse(V,W,Z,te,le,ae,de,se):t.arc(V,W,ce,ae,de,se),pe)break e;_&&(s=Kd(ae)*Z+V,l=jd(ae)*te+W),u=Kd(de)*Z+V,c=jd(de)*te+W;break;case Xr.R:s=u=n[w],l=c=n[w+1],d=n[w++],f=n[w++];var K=n[w++],U=n[w++];if(A){var E=h[g++];if(p+E>m){var k=m-p;t.moveTo(d,f),t.lineTo(d+TE(k,K),f),k-=K,k>0&&t.lineTo(d+K,f+TE(k,U)),k-=U,k>0&&t.lineTo(d+EE(K-k,0),f+U),k-=K,k>0&&t.lineTo(d,f+EE(U-k,0));break e}p+=E}t.rect(d,f,K,U);break;case Xr.Z:if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}p+=E}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Xr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const vl=kut;function uc(e,t,r,n,o,a,i){if(o===0)return!1;var s=o,l=0,u=e;if(i>t+s&&i>n+s||i<t-s&&i<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-i+u,d=c*c/(l*l+1);return d<=s/2*s/2}function Lut(e,t,r,n,o,a,i,s,l,u,c){if(l===0)return!1;var d=l;if(c>t+d&&c>n+d&&c>a+d&&c>s+d||c<t-d&&c<n-d&&c<a-d&&c<s-d||u>e+d&&u>r+d&&u>o+d&&u>i+d||u<e-d&&u<r-d&&u<o-d&&u<i-d)return!1;var f=voe(e,t,r,n,o,a,i,s,u,c,null);return f<=d/2}function Joe(e,t,r,n,o,a,i,s,l){if(i===0)return!1;var u=i;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>o+u||s<e-u&&s<r-u&&s<o-u)return!1;var c=goe(e,t,r,n,o,a,s,l,null);return c<=u/2}var U6=Math.PI*2;function xc(e){return e%=U6,e<0&&(e+=U6),e}var gg=Math.PI*2;function Out(e,t,r,n,o,a,i,s,l){if(i===0)return!1;var u=i;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-o)%gg<1e-4)return!0;if(a){var d=n;n=xc(o),o=xc(d)}else n=xc(n),o=xc(o);n>o&&(o+=gg);var f=Math.atan2(l,s);return f<0&&(f+=gg),f>=n&&f<=o||f+gg>=n&&f+gg<=o}function Ql(e,t,r,n,o,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var i=(a-t)/(n-t),s=n<t?1:-1;(i===1||i===0)&&(s=n<t?.5:-.5);var l=i*(r-e)+e;return l===o?1/0:l>o?s:0}var Gu=vl.CMD,Yd=Math.PI*2,$ut=1e-4;function Uut(e,t){return Math.abs(e-t)<$ut}var na=[-1,-1,-1],mi=[-1,-1];function Nut(){var e=mi[0];mi[0]=mi[1],mi[1]=e}function Hut(e,t,r,n,o,a,i,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=mC(t,n,a,s,u,na);if(c===0)return 0;for(var d=0,f=-1,A=void 0,h=void 0,v=0;v<c;v++){var p=na[v],g=p===0||p===1?.5:1,m=io(e,r,o,i,p);m<l||(f<0&&(f=hoe(t,n,a,s,mi),mi[1]<mi[0]&&f>1&&Nut(),A=io(t,n,a,s,mi[0]),f>1&&(h=io(t,n,a,s,mi[1]))),f===2?p<mi[0]?d+=A<t?g:-g:p<mi[1]?d+=h<A?g:-g:d+=s<h?g:-g:p<mi[0]?d+=A<t?g:-g:d+=s<A?g:-g)}return d}function zut(e,t,r,n,o,a,i,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Hst(t,n,a,s,na);if(l===0)return 0;var u=poe(t,n,a);if(u>=0&&u<=1){for(var c=0,d=mo(t,n,a,u),f=0;f<l;f++){var A=na[f]===0||na[f]===1?.5:1,h=mo(e,r,o,na[f]);h<i||(na[f]<u?c+=d<t?A:-A:c+=a<d?A:-A)}return c}else{var A=na[0]===0||na[0]===1?.5:1,h=mo(e,r,o,na[0]);return h<i?0:a<t?A:-A}}function Qut(e,t,r,n,o,a,i,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);na[0]=-l,na[1]=l;var u=Math.abs(n-o);if(u<1e-4)return 0;if(u>=Yd-1e-4){n=0,o=Yd;var c=a?1:-1;return i>=na[0]+e&&i<=na[1]+e?c:0}if(n>o){var d=n;n=o,o=d}n<0&&(n+=Yd,o+=Yd);for(var f=0,A=0;A<2;A++){var h=na[A];if(h+e>i){var v=Math.atan2(s,h),c=a?1:-1;v<0&&(v=Yd+v),(v>=n&&v<=o||v+Yd>=n&&v+Yd<=o)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),f+=c)}}return f}function eae(e,t,r,n,o){for(var a=e.data,i=e.len(),s=0,l=0,u=0,c=0,d=0,f,A,h=0;h<i;){var v=a[h++],p=h===1;switch(v===Gu.M&&h>1&&(r||(s+=Ql(l,u,c,d,n,o))),p&&(l=a[h],u=a[h+1],c=l,d=u),v){case Gu.M:c=a[h++],d=a[h++],l=c,u=d;break;case Gu.L:if(r){if(uc(l,u,a[h],a[h+1],t,n,o))return!0}else s+=Ql(l,u,a[h],a[h+1],n,o)||0;l=a[h++],u=a[h++];break;case Gu.C:if(r){if(Lut(l,u,a[h++],a[h++],a[h++],a[h++],a[h],a[h+1],t,n,o))return!0}else s+=Hut(l,u,a[h++],a[h++],a[h++],a[h++],a[h],a[h+1],n,o)||0;l=a[h++],u=a[h++];break;case Gu.Q:if(r){if(Joe(l,u,a[h++],a[h++],a[h],a[h+1],t,n,o))return!0}else s+=zut(l,u,a[h++],a[h++],a[h],a[h+1],n,o)||0;l=a[h++],u=a[h++];break;case Gu.A:var g=a[h++],m=a[h++],y=a[h++],b=a[h++],x=a[h++],w=a[h++];h+=1;var C=!!(1-a[h++]);f=Math.cos(x)*y+g,A=Math.sin(x)*b+m,p?(c=f,d=A):s+=Ql(l,u,f,A,n,o);var _=(n-g)*b/y+g;if(r){if(Out(g,m,b,x,x+w,C,t,_,o))return!0}else s+=Qut(g,m,b,x,x+w,C,_,o);l=Math.cos(x+w)*y+g,u=Math.sin(x+w)*b+m;break;case Gu.R:c=l=a[h++],d=u=a[h++];var B=a[h++],T=a[h++];if(f=c+B,A=d+T,r){if(uc(c,d,f,d,t,n,o)||uc(f,d,f,A,t,n,o)||uc(f,A,c,A,t,n,o)||uc(c,A,c,d,t,n,o))return!0}else s+=Ql(f,d,f,A,n,o),s+=Ql(c,A,c,d,n,o);break;case Gu.Z:if(r){if(uc(l,u,c,d,t,n,o))return!0}else s+=Ql(l,u,c,d,n,o);l=c,u=d;break}}return!r&&!Uut(u,d)&&(s+=Ql(l,u,c,d,n,o)||0),s!==0}function Vut(e,t,r){return eae(e,0,!1,t,r)}function Wut(e,t,r,n){return eae(e,t,!0,r,n)}var CC=Ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qf),Gut={style:Ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},J_.style)},DE=Al.concat(["invisible","culling","z","z2","zlevel","parent"]),Kut=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(l){r.buildPath(l,r.shape)}),o.silent=!0;var a=o.style;for(var i in n)a[i]!==n[i]&&(a[i]=n[i]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<DE.length;++s)o[DE[s]]=this[DE[s]];o.__dirty|=Qa}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=sr(r);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var a=0;a<n.length;a++){var i=n[a],s=r[i];i==="style"?this.style?Pe(this.style,s):this.useStyle(s):i==="shape"?Pe(this.shape,s):e.prototype.attrKV.call(this,i,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Je(r)){var n=Um(r,0);return n>.5?BP:n>.2?Blt:TP}else if(r)return TP}return BP},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Je(n)){var o=this.__zr,a=!!(o&&o.isDarkMode()),i=Um(r,0)<_P;if(a===i)return n}},t.prototype.buildPath=function(r,n,o){},t.prototype.pathUpdated=function(){this.__dirty&=~Wh},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new vl(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,o=!r;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var i=this.path;(a||this.__dirty&Wh)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),r=i.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||o){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var o=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),i=this.style;if(r=o[0],n=o[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Wut(s,l/u,r,n)))return!0}if(this.hasFill())return Vut(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Wh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var o=this.shape;return o||(o=this.shape={}),typeof r=="string"?o[r]=n:Pe(o,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Wh)},t.prototype.createStyle=function(r){return Qy(CC,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Pe({},this.shape))},t.prototype._applyStateObj=function(r,n,o,a,i,s){e.prototype._applyStateObj.call(this,r,n,o,a,i,s);var l=!(n&&a),u;if(n&&n.shape?i?a?u=n.shape:(u=Pe({},o.shape),Pe(u,n.shape)):(u=Pe({},a?this.shape:o.shape),Pe(u,n.shape)):l&&(u=o.shape),u)if(i){this.shape=Pe({},this.shape);for(var c={},d=sr(u),f=0;f<d.length;f++){var A=d[f];typeof u[A]=="object"?this.shape[A]=u[A]:c[A]=u[A]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),o,a=0;a<r.length;a++){var i=r[a];i.shape&&(o=o||{},this._mergeStyle(o,i.shape))}return o&&(n.shape=o),n},t.prototype.getAnimationStyleProps=function(){return Gut},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){we(i,a);function i(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return i.prototype.getDefaultStyle=function(){return It(r.style)},i.prototype.getDefaultShape=function(){return It(r.shape)},i}(t);for(var o in r)typeof r[o]=="function"&&(n.prototype[o]=r[o]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Qa|r0|Wh}(),t}(Ui);const tr=Kut;var jut=Ct({strokeFirst:!0,font:nd,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},CC),tae=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Qy(jut,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var o=Gy(n,r.font,r.textAlign,r.textBaseline);if(o.x+=r.x||0,o.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;o.x-=a/2,o.y-=a/2,o.width+=a,o.height+=a}this._rect=o}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ui);tae.prototype.type="tspan";const zm=tae;var Yut=Ct({x:0,y:0},qf),Xut={style:Ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},J_.style)};function qut(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var rae=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qy(Yut,r)},t.prototype._getSize=function(r){var n=this.style,o=n[r];if(o!=null)return o;var a=qut(n.image)?n.image:this.__image;if(!a)return 0;var i=r==="width"?"height":"width",s=n[i];return s==null?a[r]:a[r]/a[i]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Xut},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Xt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ui);rae.prototype.type="image";const _o=rae;function Zut(e,t){var r=t.x,n=t.y,o=t.width,a=t.height,i=t.r,s,l,u,c;o<0&&(r=r+o,o=-o),a<0&&(n=n+a,a=-a),typeof i=="number"?s=l=u=c=i:i instanceof Array?i.length===1?s=l=u=c=i[0]:i.length===2?(s=u=i[0],l=c=i[1]):i.length===3?(s=i[0],l=c=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],c=i[3]):s=l=u=c=0;var d;s+l>o&&(d=s+l,s*=o/d,l*=o/d),u+c>o&&(d=u+c,u*=o/d,c*=o/d),l+u>a&&(d=l+u,l*=a/d,u*=a/d),s+c>a&&(d=s+c,s*=a/d,c*=a/d),e.moveTo(r+s,n),e.lineTo(r+o-l,n),l!==0&&e.arc(r+o-l,n+l,l,-Math.PI/2,0),e.lineTo(r+o,n+a-u),u!==0&&e.arc(r+o-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Jh=Math.round;function nae(e,t,r){if(t){var n=t.x1,o=t.x2,a=t.y1,i=t.y2;e.x1=n,e.x2=o,e.y1=a,e.y2=i;var s=r&&r.lineWidth;return s&&(Jh(n*2)===Jh(o*2)&&(e.x1=e.x2=Ff(n,s,!0)),Jh(a*2)===Jh(i*2)&&(e.y1=e.y2=Ff(a,s,!0))),e}}function oae(e,t,r){if(t){var n=t.x,o=t.y,a=t.width,i=t.height;e.x=n,e.y=o,e.width=a,e.height=i;var s=r&&r.lineWidth;return s&&(e.x=Ff(n,s,!0),e.y=Ff(o,s,!0),e.width=Math.max(Ff(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ff(o+i,s,!1)-e.y,i===0?0:1)),e}}function Ff(e,t,r){if(!t)return e;var n=Jh(e*2);return(n+Jh(t))%2===0?n/2:(n+(r?1:-1))/2}var Jut=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),ect={},aae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Jut},t.prototype.buildPath=function(r,n){var o,a,i,s;if(this.subPixelOptimize){var l=oae(ect,n,this.style);o=l.x,a=l.y,i=l.width,s=l.height,l.r=n.r,n=l}else o=n.x,a=n.y,i=n.width,s=n.height;n.r?Zut(r,n):r.rect(o,a,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(tr);aae.prototype.type="rect";const hr=aae;var N6={fill:"#000"},H6=2,tct={style:Ct({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},J_.style)},iae=function(e){we(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=N6,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,oct(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Xt(0,0,0,0),n=this._children,o=[],a=null,i=0;i<n.length;i++){var s=n[i],l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||N6},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var o=n.rich,a=r.rich||o&&{};return Pe(r,n),o&&a?(this._mergeRich(a,o),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var o=sr(n),a=0;a<o.length;a++){var i=o[a];r[i]=r[i]||{},Pe(r[i],n[i])}},t.prototype.getAnimationStyleProps=function(){return tct},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||nd,o=r.padding,a=j6(r),i=wut(a,r),s=ME(r),l=!!r.backgroundColor,u=i.outerHeight,c=i.outerWidth,d=i.contentWidth,f=i.lines,A=i.lineHeight,h=this._defaultStyle,v=r.x||0,p=r.y||0,g=r.align||h.align||"left",m=r.verticalAlign||h.verticalAlign||"top",y=v,b=Gh(p,i.contentHeight,m);if(s||o){var x=o0(v,c,g),w=Gh(p,u,m);s&&this._renderBackground(r,r,x,w,c,u)}b+=A/2,o&&(y=K6(v,g,o),m==="top"?b+=o[0]:m==="bottom"&&(b-=o[2]));for(var C=0,_=!1,B=G6("fill"in r?r.fill:(_=!0,h.fill)),T=W6("stroke"in r?r.stroke:!l&&(!h.autoStroke||_)?(C=H6,h.stroke):null),E=r.textShadowBlur>0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),R=i.calculatedLineHeight,D=0;D<f.length;D++){var F=this._getOrCreateChild(zm),M=F.createStyle();F.useStyle(M),M.text=f[D],M.x=y,M.y=b,g&&(M.textAlign=g),M.textBaseline="middle",M.opacity=r.opacity,M.strokeFirst=!0,E&&(M.shadowBlur=r.textShadowBlur||0,M.shadowColor=r.textShadowColor||"transparent",M.shadowOffsetX=r.textShadowOffsetX||0,M.shadowOffsetY=r.textShadowOffsetY||0),M.stroke=T,M.fill=B,T&&(M.lineWidth=r.lineWidth||C,M.lineDash=r.lineDash,M.lineDashOffset=r.lineDashOffset||0),M.font=n,Q6(M,r),b+=A,I&&F.setBoundingRect(new Xt(o0(M.x,r.width,M.textAlign),Gh(M.y,R,M.textBaseline),d,R))}},t.prototype._updateRichTexts=function(){var r=this.style,n=j6(r),o=_ut(n,r),a=o.width,i=o.outerWidth,s=o.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,d=this._defaultStyle,f=r.align||d.align,A=r.verticalAlign||d.verticalAlign,h=o0(u,i,f),v=Gh(c,s,A),p=h,g=v;l&&(p+=l[3],g+=l[0]);var m=p+a;ME(r)&&this._renderBackground(r,r,h,v,i,s);for(var y=!!r.backgroundColor,b=0;b<o.lines.length;b++){for(var x=o.lines[b],w=x.tokens,C=w.length,_=x.lineHeight,B=x.width,T=0,E=p,I=m,R=C-1,D=void 0;T<C&&(D=w[T],!D.align||D.align==="left");)this._placeToken(D,r,_,g,E,"left",y),B-=D.width,E+=D.width,T++;for(;R>=0&&(D=w[R],D.align==="right");)this._placeToken(D,r,_,g,I,"right",y),B-=D.width,I-=D.width,R--;for(E+=(a-(E-p)-(m-I)-B)/2;T<=R;)D=w[T],this._placeToken(D,r,_,g,E+D.width/2,"center",y),E+=D.width,T++;g+=_}},t.prototype._placeToken=function(r,n,o,a,i,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,d=a+o/2;c==="top"?d=a+r.height/2:c==="bottom"&&(d=a+o-r.height/2);var f=!r.isLineHolder&&ME(u);f&&this._renderBackground(u,n,s==="right"?i-r.width:s==="center"?i-r.width/2:i,d-r.height/2,r.width,r.height);var A=!!u.backgroundColor,h=r.textPadding;h&&(i=K6(i,s,h),d-=r.height/2-h[0]-r.innerHeight/2);var v=this._getOrCreateChild(zm),p=v.createStyle();v.useStyle(p);var g=this._defaultStyle,m=!1,y=0,b=G6("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),x=W6("stroke"in u?u.stroke:"stroke"in n?n.stroke:!A&&!l&&(!g.autoStroke||m)?(y=H6,g.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=i,p.y=d,w&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||nd,p.opacity=ol(u.opacity,n.opacity,1),Q6(p,u),x&&(p.lineWidth=ol(u.lineWidth,n.lineWidth,y),p.lineDash=Zt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=x),b&&(p.fill=b);var C=r.contentWidth,_=r.contentHeight;v.setBoundingRect(new Xt(o0(p.x,C,p.textAlign),Gh(p.y,_,p.textBaseline),C,_))},t.prototype._renderBackground=function(r,n,o,a,i,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,d=l&&l.image,f=l&&!d,A=r.borderRadius,h=this,v,p;if(f||r.lineHeight||u&&c){v=this._getOrCreateChild(hr),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=o,g.y=a,g.width=i,g.height=s,g.r=A,v.dirtyShape()}if(f){var m=v.style;m.fill=l||null,m.fillOpacity=Zt(r.fillOpacity,1)}else if(d){p=this._getOrCreateChild(_o),p.onload=function(){h.dirtyStyle()};var y=p.style;y.image=l.image,y.x=o,y.y=a,y.width=i,y.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=Zt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var b=(v||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=ol(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return lae(r)&&(n=[r.fontStyle,r.fontWeight,sae(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ei(n)||r.textFont||r.font},t}(Ui),rct={left:!0,right:1,center:1},nct={top:1,bottom:1,middle:1},z6=["fontStyle","fontWeight","fontSize","fontFamily"];function sae(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?LO+"px":e+"px"}function Q6(e,t){for(var r=0;r<z6.length;r++){var n=z6[r],o=t[n];o!=null&&(e[n]=o)}}function lae(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function oct(e){return V6(e),z(e.rich,V6),e}function V6(e){if(e){e.font=iae.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||rct[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||nct[r]?r:"top";var n=e.padding;n&&(e.padding=W_(e.padding))}}function W6(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function G6(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function K6(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function j6(e){var t=e.text;return t!=null&&(t+=""),t}function ME(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const pr=iae;var $t=br(),kP=function(e,t,r,n){if(n){var o=$t(n);o.dataIndex=r,o.dataType=t,o.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var i=$t(a);i.seriesIndex=e,i.dataIndex=r,i.dataType=t})}},Y6=1,X6={},uae=br(),r4=br(),n4=0,jy=1,tB=2,sa=["emphasis","blur","select"],Qm=["normal","emphasis","blur","select"],Dp=10,act=9,Zf="highlight",nw="downplay",V0="select",ow="unselect",W0="toggleSelect";function mh(e){return e!=null&&e!=="none"}var q6=new Vy(100);function Z6(e){if(Je(e)){var t=q6.get(e);return t||(t=yC(e,-.1),q6.put(e,t)),t}else if(zy(e)){var r=Pe({},e);return r.colorStops=Ue(e.colorStops,function(n){return{offset:n.offset,color:yC(n.color,-.1)}}),r}return e}function rB(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function cae(e){rB(e,"emphasis",tB)}function dae(e){e.hoverState===tB&&rB(e,"normal",n4)}function o4(e){rB(e,"blur",jy)}function fae(e){e.hoverState===jy&&rB(e,"normal",n4)}function ict(e){e.selected=!0}function sct(e){e.selected=!1}function J6(e,t,r){t(e,r)}function Ru(e,t,r){J6(e,t,r),e.isGroup&&e.traverse(function(n){J6(n,t,r)})}function SC(e,t){switch(t){case"emphasis":e.hoverState=tB;break;case"normal":e.hoverState=n4;break;case"blur":e.hoverState=jy;break;case"select":e.selected=!0}}function lct(e,t,r,n){for(var o=e.style,a={},i=0;i<t.length;i++){var s=t[i],l=o[s];a[s]=l==null?n&&n[s]:l}for(var i=0;i<e.animators.length;i++){var u=e.animators[i];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function uct(e,t,r,n){var o=r&&Yt(r,"select")>=0,a=!1;if(e instanceof tr){var i=uae(e),s=o&&i.selectFill||i.normalFill,l=o&&i.selectStroke||i.normalStroke;if(mh(s)||mh(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Pe({},n),u=Pe({},u),u.fill=s):!mh(u.fill)&&mh(s)?(a=!0,n=Pe({},n),u=Pe({},u),u.fill=Z6(s)):!mh(u.stroke)&&mh(l)&&(a||(n=Pe({},n),u=Pe({},u)),u.stroke=Z6(l)),n.style=u}}if(n&&n.z2==null){a||(n=Pe({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c!=null?c:Dp)}return n}function cct(e,t,r){if(r&&r.z2==null){r=Pe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:act)}return r}function dct(e,t,r){var n=Yt(e.currentStates,t)>=0,o=e.style.opacity,a=n?null:lct(e,["opacity"],t,{opacity:1});r=r||{};var i=r.style||{};return i.opacity==null&&(r=Pe({},r),i=Pe({opacity:n?o:a.opacity*.1},i),r.style=i),r}function PE(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return uct(this,e,t,r);if(e==="blur")return dct(this,e,r);if(e==="select")return cct(this,e,r)}return r}function pA(e){e.stateProxy=PE;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=PE),r&&(r.stateProxy=PE)}function eQ(e,t){!pae(e,t)&&!e.__highByOuter&&Ru(e,cae)}function tQ(e,t){!pae(e,t)&&!e.__highByOuter&&Ru(e,dae)}function gu(e,t){e.__highByOuter|=1<<(t||0),Ru(e,cae)}function mu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ru(e,dae)}function Aae(e){Ru(e,o4)}function a4(e){Ru(e,fae)}function hae(e){Ru(e,ict)}function vae(e){Ru(e,sct)}function pae(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function gae(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(o,a){var i=r4(a),s=o==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),i.isBlured&&(l.group.traverse(function(u){fae(u)}),s&&r.push(a)),i.isBlured=!1}),z(n,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(r,!1,t)})}function LP(e,t,r,n){var o=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var d=0;d<c.length;d++){var f=u.getItemGraphicEl(c[d]);f&&a4(f)}}if(e!=null&&!(!t||t==="none")){var i=o.getSeriesByIndex(e),s=i.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(u){var c=i===u,d=u.coordinateSystem;d&&d.master&&(d=d.master);var f=d&&s?d===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!f||t==="series"&&c)){var A=n.getViewOfSeriesModel(u);if(A.group.traverse(function(p){o4(p)}),Lo(t))a(u.getData(),t);else if(Tt(t))for(var h=sr(t),v=0;v<h.length;v++)a(u.getData(h[v]),t[h[v]]);l.push(u),r4(u).isBlured=!0}}),o.eachComponent(function(u,c){if(u!=="series"){var d=n.getViewOfComponentModel(c);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,o)}})}}function OP(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){r4(n).isBlured=!0;var o=r.getViewOfComponentModel(n);!o||!o.focusBlurEnabled||o.group.traverse(function(a){o4(a)})}}}function fct(e,t,r){var n=e.seriesIndex,o=e.getData(t.dataType);if(o){var a=hA(o,t);a=(Oe(a)?a[0]:a)||0;var i=o.getItemGraphicEl(a);if(!i)for(var s=o.count(),l=0;!i&&l<s;)i=o.getItemGraphicEl(l++);if(i){var u=$t(i);LP(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);c!=null&&LP(n,c,d,r)}}}function i4(e,t,r,n){var o={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return o;var a=n.getModel().getComponent(e,t);if(!a)return o;var i=n.getViewOfComponentModel(a);if(!i||!i.findHighDownDispatchers)return o;for(var s=i.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if($t(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Act(e,t,r){var n=$t(e),o=i4(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=o.dispatchers,i=o.focusSelf;a?(i&&OP(n.componentMainType,n.componentIndex,r),z(a,function(s){return eQ(s,t)})):(LP(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&OP(n.componentMainType,n.componentIndex,r),eQ(e,t))}function hct(e,t,r){gae(r);var n=$t(e),o=i4(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;o?z(o,function(a){return tQ(a,t)}):tQ(e,t)}function vct(e,t,r){if(UP(t)){var n=t.dataType,o=e.getData(n),a=hA(o,t);Oe(a)||(a=[a]),e[t.type===W0?"toggleSelect":t.type===V0?"select":"unselect"](a,n)}}function rQ(e){var t=e.getAllData();z(t,function(r){var n=r.data,o=r.type;n.eachItemGraphicEl(function(a,i){e.isSelected(i,o)?hae(a):vae(a)})})}function pct(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();z(n,function(o){o.data;var a=o.type,i=r.getSelectedDataIndices();if(i.length>0){var s={dataIndex:i,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Oc(e,t,r){kf(e,!0),Ru(e,pA),$P(e,t,r)}function gct(e){kf(e,!1)}function In(e,t,r,n){n?gct(e):Oc(e,t,r)}function $P(e,t,r){var n=$t(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var nQ=["emphasis","blur","select"],mct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Oo(e,t,r,n){r=r||"itemStyle";for(var o=0;o<nQ.length;o++){var a=nQ[o],i=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(i):i[mct[r]]()}}function kf(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Vm(e){return!!(e&&e.__highDownDispatcher)}function yct(e,t,r){var n=$t(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function bct(e){var t=X6[e];return t==null&&Y6<=32&&(t=X6[e]=Y6++),t}function UP(e){var t=e.type;return t===V0||t===ow||t===W0}function oQ(e){var t=e.type;return t===Zf||t===nw}function xct(e){var t=uae(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var yh=vl.CMD,wct=[[],[],[]],aQ=Math.sqrt,Cct=Math.atan2;function mae(e,t){if(t){var r=e.data,n=e.len(),o,a,i,s,l,u,c=yh.M,d=yh.C,f=yh.L,A=yh.R,h=yh.A,v=yh.Q;for(i=0,s=0;i<n;){switch(o=r[i++],s=i,a=0,o){case c:a=1;break;case f:a=1;break;case d:a=3;break;case v:a=2;break;case h:var p=t[4],g=t[5],m=aQ(t[0]*t[0]+t[1]*t[1]),y=aQ(t[2]*t[2]+t[3]*t[3]),b=Cct(-t[1]/y,t[0]/m);r[i]*=m,r[i++]+=p,r[i]*=y,r[i++]+=g,r[i++]*=m,r[i++]*=y,r[i++]+=b,r[i++]+=b,i+=2,s=i;break;case A:u[0]=r[i++],u[1]=r[i++],xo(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[i++],u[1]+=r[i++],xo(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=wct[l];x[0]=r[i++],x[1]=r[i++],xo(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var FE=Math.sqrt,U1=Math.sin,N1=Math.cos,mg=Math.PI;function iQ(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function NP(e,t){return(e[0]*t[0]+e[1]*t[1])/(iQ(e)*iQ(t))}function sQ(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(NP(e,t))}function lQ(e,t,r,n,o,a,i,s,l,u,c){var d=l*(mg/180),f=N1(d)*(e-r)/2+U1(d)*(t-n)/2,A=-1*U1(d)*(e-r)/2+N1(d)*(t-n)/2,h=f*f/(i*i)+A*A/(s*s);h>1&&(i*=FE(h),s*=FE(h));var v=(o===a?-1:1)*FE((i*i*(s*s)-i*i*(A*A)-s*s*(f*f))/(i*i*(A*A)+s*s*(f*f)))||0,p=v*i*A/s,g=v*-s*f/i,m=(e+r)/2+N1(d)*p-U1(d)*g,y=(t+n)/2+U1(d)*p+N1(d)*g,b=sQ([1,0],[(f-p)/i,(A-g)/s]),x=[(f-p)/i,(A-g)/s],w=[(-1*f-p)/i,(-1*A-g)/s],C=sQ(x,w);if(NP(x,w)<=-1&&(C=mg),NP(x,w)>=1&&(C=0),C<0){var _=Math.round(C/mg*1e6)/1e6;C=mg*2+_%2*mg}c.addData(u,m,y,i,s,b,C,d,a)}var Sct=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_ct=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Bct(e){var t=new vl;if(!e)return t;var r=0,n=0,o=r,a=n,i,s=vl.CMD,l=e.match(Sct);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),f=void 0,A=c.match(_ct)||[],h=A.length,v=0;v<h;v++)A[v]=parseFloat(A[v]);for(var p=0;p<h;){var g=void 0,m=void 0,y=void 0,b=void 0,x=void 0,w=void 0,C=void 0,_=r,B=n,T=void 0,E=void 0;switch(d){case"l":r+=A[p++],n+=A[p++],f=s.L,t.addData(f,r,n);break;case"L":r=A[p++],n=A[p++],f=s.L,t.addData(f,r,n);break;case"m":r+=A[p++],n+=A[p++],f=s.M,t.addData(f,r,n),o=r,a=n,d="l";break;case"M":r=A[p++],n=A[p++],f=s.M,t.addData(f,r,n),o=r,a=n,d="L";break;case"h":r+=A[p++],f=s.L,t.addData(f,r,n);break;case"H":r=A[p++],f=s.L,t.addData(f,r,n);break;case"v":n+=A[p++],f=s.L,t.addData(f,r,n);break;case"V":n=A[p++],f=s.L,t.addData(f,r,n);break;case"C":f=s.C,t.addData(f,A[p++],A[p++],A[p++],A[p++],A[p++],A[p++]),r=A[p-2],n=A[p-1];break;case"c":f=s.C,t.addData(f,A[p++]+r,A[p++]+n,A[p++]+r,A[p++]+n,A[p++]+r,A[p++]+n),r+=A[p-2],n+=A[p-1];break;case"S":g=r,m=n,T=t.len(),E=t.data,i===s.C&&(g+=r-E[T-4],m+=n-E[T-3]),f=s.C,_=A[p++],B=A[p++],r=A[p++],n=A[p++],t.addData(f,g,m,_,B,r,n);break;case"s":g=r,m=n,T=t.len(),E=t.data,i===s.C&&(g+=r-E[T-4],m+=n-E[T-3]),f=s.C,_=r+A[p++],B=n+A[p++],r+=A[p++],n+=A[p++],t.addData(f,g,m,_,B,r,n);break;case"Q":_=A[p++],B=A[p++],r=A[p++],n=A[p++],f=s.Q,t.addData(f,_,B,r,n);break;case"q":_=A[p++]+r,B=A[p++]+n,r+=A[p++],n+=A[p++],f=s.Q,t.addData(f,_,B,r,n);break;case"T":g=r,m=n,T=t.len(),E=t.data,i===s.Q&&(g+=r-E[T-4],m+=n-E[T-3]),r=A[p++],n=A[p++],f=s.Q,t.addData(f,g,m,r,n);break;case"t":g=r,m=n,T=t.len(),E=t.data,i===s.Q&&(g+=r-E[T-4],m+=n-E[T-3]),r+=A[p++],n+=A[p++],f=s.Q,t.addData(f,g,m,r,n);break;case"A":y=A[p++],b=A[p++],x=A[p++],w=A[p++],C=A[p++],_=r,B=n,r=A[p++],n=A[p++],f=s.A,lQ(_,B,r,n,w,C,y,b,x,f,t);break;case"a":y=A[p++],b=A[p++],x=A[p++],w=A[p++],C=A[p++],_=r,B=n,r+=A[p++],n+=A[p++],f=s.A,lQ(_,B,r,n,w,C,y,b,x,f,t);break}}(d==="z"||d==="Z")&&(f=s.Z,t.addData(f),r=o,n=a),i=f}return t.toStatic(),t}var yae=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(tr);function bae(e){return e.setData!=null}function xae(e,t){var r=Bct(e),n=Pe({},t);return n.buildPath=function(o){if(bae(o)){o.setData(r.data);var a=o.getContext();a&&o.rebuildPath(a,1)}else{var a=o;r.rebuildPath(a,1)}},n.applyTransform=function(o){mae(r,o),this.dirtyShape()},n}function wae(e,t){return new yae(xae(e,t))}function Tct(e,t){var r=xae(e,t),n=function(o){we(a,o);function a(i){var s=o.call(this,i)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(yae);return n}function Ect(e,t){for(var r=[],n=e.length,o=0;o<n;o++){var a=e[o];r.push(a.getUpdatedPathProxy(!0))}var i=new tr(t);return i.createPathProxy(),i.buildPath=function(s){if(bae(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},i}function s4(e,t){t=t||{};var r=new tr;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?mae(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Ict=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Cae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ict},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(tr);Cae.prototype.type="circle";const ws=Cae;var Rct=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Sae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Rct},t.prototype.buildPath=function(r,n){var o=.5522848,a=n.cx,i=n.cy,s=n.rx,l=n.ry,u=s*o,c=l*o;r.moveTo(a-s,i),r.bezierCurveTo(a-s,i-c,a-u,i-l,a,i-l),r.bezierCurveTo(a+u,i-l,a+s,i-c,a+s,i),r.bezierCurveTo(a+s,i+c,a+u,i+l,a,i+l),r.bezierCurveTo(a-u,i+l,a-s,i+c,a-s,i),r.closePath()},t}(tr);Sae.prototype.type="ellipse";const nB=Sae;var _ae=Math.PI,kE=_ae*2,Xd=Math.sin,bh=Math.cos,Dct=Math.acos,Ho=Math.atan2,uQ=Math.abs,G0=Math.sqrt,a0=Math.max,$s=Math.min,es=1e-4;function Mct(e,t,r,n,o,a,i,s){var l=r-e,u=n-t,c=i-o,d=s-a,f=d*l-c*u;if(!(f*f<es))return f=(c*(t-a)-d*(e-o))/f,[e+f*l,t+f*u]}function H1(e,t,r,n,o,a,i){var s=e-r,l=t-n,u=(i?a:-a)/G0(s*s+l*l),c=u*l,d=-u*s,f=e+c,A=t+d,h=r+c,v=n+d,p=(f+h)/2,g=(A+v)/2,m=h-f,y=v-A,b=m*m+y*y,x=o-a,w=f*v-h*A,C=(y<0?-1:1)*G0(a0(0,x*x*b-w*w)),_=(w*y-m*C)/b,B=(-w*m-y*C)/b,T=(w*y+m*C)/b,E=(-w*m+y*C)/b,I=_-p,R=B-g,D=T-p,F=E-g;return I*I+R*R>D*D+F*F&&(_=T,B=E),{cx:_,cy:B,x0:-c,y0:-d,x1:_*(o/x-1),y1:B*(o/x-1)}}function Pct(e){var t;if(Oe(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Fct(e,t){var r,n=a0(t.r,0),o=a0(t.r0||0,0),a=n>0,i=o>0;if(!(!a&&!i)){if(a||(n=o,o=0),o>n){var s=n;n=o,o=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,f=!!t.clockwise,A=uQ(u-l),h=A>kE&&A%kE;if(h>es&&(A=h),!(n>es))e.moveTo(c,d);else if(A>kE-es)e.moveTo(c+n*bh(l),d+n*Xd(l)),e.arc(c,d,n,l,u,!f),o>es&&(e.moveTo(c+o*bh(u),d+o*Xd(u)),e.arc(c,d,o,u,l,f));else{var v=void 0,p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,x=void 0,w=void 0,C=void 0,_=void 0,B=void 0,T=void 0,E=void 0,I=void 0,R=void 0,D=void 0,F=n*bh(l),M=n*Xd(l),$=o*bh(u),O=o*Xd(u),Q=A>es;if(Q){var V=t.cornerRadius;V&&(r=Pct(V),v=r[0],p=r[1],g=r[2],m=r[3]);var W=uQ(n-o)/2;if(y=$s(W,g),b=$s(W,m),x=$s(W,v),w=$s(W,p),B=C=a0(y,b),T=_=a0(x,w),(C>es||_>es)&&(E=n*bh(u),I=n*Xd(u),R=o*bh(l),D=o*Xd(l),A<_ae)){var Z=Mct(F,M,R,D,E,I,$,O);if(Z){var te=F-Z[0],ae=M-Z[1],re=E-Z[0],le=I-Z[1],se=1/Xd(Dct((te*re+ae*le)/(G0(te*te+ae*ae)*G0(re*re+le*le)))/2),ce=G0(Z[0]*Z[0]+Z[1]*Z[1]);B=$s(C,(n-ce)/(se+1)),T=$s(_,(o-ce)/(se-1))}}}if(!Q)e.moveTo(c+F,d+M);else if(B>es){var be=$s(g,B),de=$s(m,B),pe=H1(R,D,F,M,n,be,f),K=H1(E,I,$,O,n,de,f);e.moveTo(c+pe.cx+pe.x0,d+pe.cy+pe.y0),B<C&&be===de?e.arc(c+pe.cx,d+pe.cy,B,Ho(pe.y0,pe.x0),Ho(K.y0,K.x0),!f):(be>0&&e.arc(c+pe.cx,d+pe.cy,be,Ho(pe.y0,pe.x0),Ho(pe.y1,pe.x1),!f),e.arc(c,d,n,Ho(pe.cy+pe.y1,pe.cx+pe.x1),Ho(K.cy+K.y1,K.cx+K.x1),!f),de>0&&e.arc(c+K.cx,d+K.cy,de,Ho(K.y1,K.x1),Ho(K.y0,K.x0),!f))}else e.moveTo(c+F,d+M),e.arc(c,d,n,l,u,!f);if(!(o>es)||!Q)e.lineTo(c+$,d+O);else if(T>es){var be=$s(v,T),de=$s(p,T),pe=H1($,O,E,I,o,-de,f),K=H1(F,M,R,D,o,-be,f);e.lineTo(c+pe.cx+pe.x0,d+pe.cy+pe.y0),T<_&&be===de?e.arc(c+pe.cx,d+pe.cy,T,Ho(pe.y0,pe.x0),Ho(K.y0,K.x0),!f):(de>0&&e.arc(c+pe.cx,d+pe.cy,de,Ho(pe.y0,pe.x0),Ho(pe.y1,pe.x1),!f),e.arc(c,d,o,Ho(pe.cy+pe.y1,pe.cx+pe.x1),Ho(K.cy+K.y1,K.cx+K.x1),f),be>0&&e.arc(c+K.cx,d+K.cy,be,Ho(K.y1,K.x1),Ho(K.y0,K.x0),!f))}else e.lineTo(c+$,d+O),e.arc(c,d,o,u,l,f)}e.closePath()}}}var kct=function(){function e(){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}return e}(),Bae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new kct},t.prototype.buildPath=function(r,n){Fct(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(tr);Bae.prototype.type="sector";const la=Bae;var Lct=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Tae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Lct},t.prototype.buildPath=function(r,n){var o=n.cx,a=n.cy,i=Math.PI*2;r.moveTo(o+n.r,a),r.arc(o,a,n.r,0,i,!1),r.moveTo(o+n.r0,a),r.arc(o,a,n.r0,0,i,!0)},t}(tr);Tae.prototype.type="ring";const Yy=Tae;function Oct(e,t,r,n){var o=[],a=[],i=[],s=[],l,u,c,d;if(n){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,A=e.length;f<A;f++)Yl(c,c,e[f]),Xl(d,d,e[f]);Yl(c,c,n[0]),Xl(d,d,n[1])}for(var f=0,A=e.length;f<A;f++){var h=e[f];if(r)l=e[f?f-1:A-1],u=e[(f+1)%A];else if(f===0||f===A-1){o.push(al(e[f]));continue}else l=e[f-1],u=e[f+1];gc(a,u,l),Yx(a,a,t);var v=pC(h,l),p=pC(h,u),g=v+p;g!==0&&(v/=g,p/=g),Yx(i,a,-v),Yx(s,a,p);var m=cP([],h,i),y=cP([],h,s);n&&(Xl(m,m,c),Yl(m,m,d),Xl(y,y,c),Yl(y,y,d)),o.push(m),o.push(y)}return r&&o.push(o.shift()),o}function Eae(e,t,r){var n=t.smooth,o=t.points;if(o&&o.length>=2){if(n){var a=Oct(o,n,r,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var i=o.length,s=0;s<(r?i:i-1);s++){var l=a[s*2],u=a[s*2+1],c=o[(s+1)%i];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(o[0][0],o[0][1]);for(var s=1,d=o.length;s<d;s++)e.lineTo(o[s][0],o[s][1])}r&&e.closePath()}}var $ct=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Iae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $ct},t.prototype.buildPath=function(r,n){Eae(r,n,!0)},t}(tr);Iae.prototype.type="polygon";const ua=Iae;var Uct=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Rae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Uct},t.prototype.buildPath=function(r,n){Eae(r,n,!1)},t}(tr);Rae.prototype.type="polyline";const da=Rae;var Nct={},Hct=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Dae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hct},t.prototype.buildPath=function(r,n){var o,a,i,s;if(this.subPixelOptimize){var l=nae(Nct,n,this.style);o=l.x1,a=l.y1,i=l.x2,s=l.y2}else o=n.x1,a=n.y1,i=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(o,a),u<1&&(i=o*(1-u)+i*u,s=a*(1-u)+s*u),r.lineTo(i,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(tr);Dae.prototype.type="line";const co=Dae;var ha=[],zct=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function cQ(e,t,r){var n=e.cpx2,o=e.cpy2;return n!=null||o!=null?[(r?p6:io)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?p6:io)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?pP:mo)(e.x1,e.cpx1,e.x2,t),(r?pP:mo)(e.y1,e.cpy1,e.y2,t)]}var Mae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zct},t.prototype.buildPath=function(r,n){var o=n.x1,a=n.y1,i=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,d=n.cpy2,f=n.percent;f!==0&&(r.moveTo(o,a),c==null||d==null?(f<1&&(Lm(o,l,i,f,ha),l=ha[1],i=ha[2],Lm(a,u,s,f,ha),u=ha[1],s=ha[2]),r.quadraticCurveTo(l,u,i,s)):(f<1&&(od(o,l,c,i,f,ha),l=ha[1],c=ha[2],i=ha[3],od(a,u,d,s,f,ha),u=ha[1],d=ha[2],s=ha[3]),r.bezierCurveTo(l,u,c,d,i,s)))},t.prototype.pointAt=function(r){return cQ(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=cQ(this.shape,r,!0);return Ip(n,n)},t}(tr);Mae.prototype.type="bezier-curve";const Xy=Mae;var Qct=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Pae=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qct},t.prototype.buildPath=function(r,n){var o=n.cx,a=n.cy,i=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),d=Math.sin(s);r.moveTo(c*i+o,d*i+a),r.arc(o,a,i,s,l,!u)},t}(tr);Pae.prototype.type="arc";const oB=Pae;var Vct=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),o=0;o<r.length;o++)n=n||r[o].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),o=0;o<r.length;o++)r[o].path||r[o].createPathProxy(),r[o].path.setScale(n[0],n[1],r[o].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var o=n.paths||[],a=0;a<o.length;a++)o[a].buildPath(r,o[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),tr.prototype.getBoundingRect.call(this)},t}(tr);const aB=Vct;var Wct=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const Fae=Wct;var Gct=function(e){we(t,e);function t(r,n,o,a,i,s){var l=e.call(this,i)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=o==null?1:o,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(Fae);const Mp=Gct;var Kct=function(e){we(t,e);function t(r,n,o,a,i){var s=e.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=o==null?.5:o,s.type="radial",s.global=i||!1,s}return t}(Fae);const l4=Kct;var qd=[0,0],Zd=[0,0],z1=new Vt,Q1=new Vt,jct=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Vt;for(var n=0;n<2;n++)this._axes[n]=new Vt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,o=this._axes,a=t.x,i=t.y,s=a+t.width,l=i+t.height;if(n[0].set(a,i),n[1].set(s,i),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Vt.sub(o[0],n[1],n[0]),Vt.sub(o[1],n[3],n[0]),o[0].normalize(),o[1].normalize();for(var u=0;u<2;u++)this._origin[u]=o[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,o=!r;return z1.set(1/0,1/0),Q1.set(0,0),!this._intersectCheckOneSide(this,t,z1,Q1,o,1)&&(n=!1,o)||!this._intersectCheckOneSide(t,this,z1,Q1,o,-1)&&(n=!1,o)||o||Vt.copy(r,n?z1:Q1),n},e.prototype._intersectCheckOneSide=function(t,r,n,o,a,i){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,qd),this._getProjMinMaxOnAxis(l,r._corners,Zd),qd[1]<Zd[0]||qd[0]>Zd[1]){if(s=!1,a)return s;var c=Math.abs(Zd[0]-qd[1]),d=Math.abs(qd[0]-Zd[1]);Math.min(c,d)>o.len()&&(c<d?Vt.scale(o,u,-c*i):Vt.scale(o,u,d*i))}else if(n){var c=Math.abs(Zd[0]-qd[1]),d=Math.abs(qd[0]-Zd[1]);Math.min(c,d)<n.len()&&(c<d?Vt.scale(n,u,c*i):Vt.scale(n,u,-d*i))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var o=this._axes[t],a=this._origin,i=r[0].dot(o)+a[t],s=i,l=i,u=1;u<r.length;u++){var c=r[u].dot(o)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const _C=jct;var Yct=[],Xct=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var o=0;o<r.length;o++)this.addDisplayable(r[o],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Xt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var o=this._displayables[n],a=o.getBoundingRect().clone();o.needLocalTransform()&&a.applyTransform(o.getLocalTransform(Yct)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var o=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(o[0],o[1]))for(var i=0;i<this._displayables.length;i++){var s=this._displayables[i];if(s.contain(r,n))return!0}return!1},t}(Ui);const kae=Xct;var Lae=br();function Pp(e,t,r,n,o){var a;if(t&&t.ecModel){var i=t.ecModel.getUpdatePayload();a=i&&i.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,d=void 0;n?(u=Zt(n.duration,200),c=Zt(n.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(d=a.delay)),bt(d)&&(d=d(r,o)),bt(u)&&(u=u(r));var f={duration:u||0,delay:d,easing:c};return f}else return null}function u4(e,t,r,n,o,a,i){var s=!1,l;bt(o)?(i=a,a=o,o=null):Tt(o)&&(a=o.cb,i=o.during,s=o.isFrom,l=o.removeOpt,o=o.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Pp(e,n,o,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,o):null);if(c&&c.duration>0){var d=c.duration,f=c.delay,A=c.easing,h={duration:d,delay:f||0,easing:A,done:a,force:!!a||!!i,setToFinal:!u,scope:e,during:i};s?t.animateFrom(r,h):t.animateTo(r,h)}else t.stopAnimation(),!s&&t.attr(r),i&&i(1),a&&a()}function gr(e,t,r,n,o,a){u4("update",e,t,r,n,o,a)}function ln(e,t,r,n,o,a){u4("enter",e,t,r,n,o,a)}function yv(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function ad(e,t,r,n,o,a){yv(e)||u4("leave",e,t,r,n,o,a)}function dQ(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),ad(e,{style:{opacity:0}},t,r,n)}function Wm(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(o){o.isGroup||dQ(o,t,r,n)}):dQ(e,t,r,n)}function Cs(e){Lae(e).oldStyle=e.style}function qct(e){return Lae(e).oldStyle}var BC=Math.max,TC=Math.min,HP={};function Oae(e){return tr.extend(e)}var Zct=Tct;function $ae(e,t){return Zct(e,t)}function Gi(e,t){HP[e]=t}function iB(e){if(HP.hasOwnProperty(e))return HP[e]}function qy(e,t,r,n){var o=wae(e,t);return r&&(n==="center"&&(r=Uae(r,o.getBoundingRect())),d4(o,r)),o}function c4(e,t,r){var n=new _o({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(o){if(r==="center"){var a={width:o.width,height:o.height};n.setStyle(Uae(t,a))}}});return n}function Uae(e,t){var r=t.width/t.height,n=e.height*r,o;n<=e.width?o=e.height:(n=e.width,o=n/r);var a=e.x+e.width/2,i=e.y+e.height/2;return{x:a-n/2,y:i-o/2,width:n,height:o}}var Va=Ect;function d4(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Jct(e){return nae(e.shape,e.shape,e.style),e}function edt(e){return oae(e.shape,e.shape,e.style),e}var aw=Ff;function $c(e,t){for(var r=Wy([]);e&&e!==t;)il(r,e.getLocalTransform(),r),e=e.parent;return r}function vs(e,t,r){return t&&!Lo(t)&&(t=ql.getLocalTransform(t)),r&&(t=NA([],t)),xo([],e,t)}function sB(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),o=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-o:e==="bottom"?o:0];return a=vs(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function fQ(e){return!e.isGroup}function tdt(e){return e.shape!=null}function Zy(e,t,r){if(!e||!t)return;function n(i){var s={};return i.traverse(function(l){fQ(l)&&l.anid&&(s[l.anid]=l)}),s}function o(i){var s={x:i.x,y:i.y,rotation:i.rotation};return tdt(i)&&(s.shape=Pe({},i.shape)),s}var a=n(e);t.traverse(function(i){if(fQ(i)&&i.anid){var s=a[i.anid];if(s){var l=o(i);i.attr(o(s)),gr(i,l,r,$t(i).dataIndex)}}})}function f4(e,t){return Ue(e,function(r){var n=r[0];n=BC(n,t.x),n=TC(n,t.x+t.width);var o=r[1];return o=BC(o,t.y),o=TC(o,t.y+t.height),[n,o]})}function Nae(e,t){var r=BC(e.x,t.x),n=TC(e.x+e.width,t.x+t.width),o=BC(e.y,t.y),a=TC(e.y+e.height,t.y+t.height);if(n>=r&&a>=o)return{x:r,y:o,width:n-r,height:a-o}}function Fp(e,t,r){var n=Pe({rectHover:!0},t),o=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(o.image=e.slice(8),Ct(o,r),new _o(n)):qy(e.replace("path://",""),n,r,"center")}function i0(e,t,r,n,o){for(var a=0,i=o[o.length-1];a<o.length;a++){var s=o[a];if(Hae(e,t,r,n,s[0],s[1],i[0],i[1]))return!0;i=s}}function Hae(e,t,r,n,o,a,i,s){var l=r-e,u=n-t,c=i-o,d=s-a,f=LE(c,d,l,u);if(rdt(f))return!1;var A=e-o,h=t-a,v=LE(A,h,l,u)/f;if(v<0||v>1)return!1;var p=LE(A,h,c,d)/f;return!(p<0||p>1)}function LE(e,t,r,n){return e*n-r*t}function rdt(e){return e<=1e-6&&e>=-1e-6}function kp(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,o=Je(t)?{formatter:t}:t,a=r.mainType,i=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=i;var l=e.formatterParamsExtra;l&&z(sr(l),function(c){st(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=$t(e.el);u.componentMainType=a,u.componentIndex=i,u.tooltipConfig={name:n,option:Ct({content:n,formatterParams:s},o)}}function AQ(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Cd(e,t){if(e)if(Oe(e))for(var r=0;r<e.length;r++)AQ(e[r],t);else AQ(e,t)}Gi("circle",ws);Gi("ellipse",nB);Gi("sector",la);Gi("ring",Yy);Gi("polygon",ua);Gi("polyline",da);Gi("rect",hr);Gi("line",co);Gi("bezierCurve",Xy);Gi("arc",oB);const Jy=Object.freeze(Object.defineProperty({__proto__:null,Arc:oB,BezierCurve:Xy,BoundingRect:Xt,Circle:ws,CompoundPath:aB,Ellipse:nB,Group:Pt,Image:_o,IncrementalDisplayable:kae,Line:co,LinearGradient:Mp,OrientedBoundingRect:_C,Path:tr,Point:Vt,Polygon:ua,Polyline:da,RadialGradient:l4,Rect:hr,Ring:Yy,Sector:la,Text:pr,applyTransform:vs,clipPointsByRect:f4,clipRectByRect:Nae,createIcon:Fp,extendPath:$ae,extendShape:Oae,getShapeClass:iB,getTransform:$c,groupTransition:Zy,initProps:ln,isElementRemoved:yv,lineLineIntersect:Hae,linePolygonIntersect:i0,makeImage:c4,makePath:qy,mergePath:Va,registerShape:Gi,removeElement:ad,removeElementWithFadeOut:Wm,resizePath:d4,setTooltipConfig:kp,subPixelOptimize:aw,subPixelOptimizeLine:Jct,subPixelOptimizeRect:edt,transformDirection:sB,traverseElements:Cd,updateProps:gr},Symbol.toStringTag,{value:"Module"}));var lB={};function zae(e,t){for(var r=0;r<sa.length;r++){var n=sa[r],o=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=o}var i=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(i,!0)}function zP(e,t,r){var n=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,i=t.normal,s;n&&(s=n.getFormattedLabel(o,"normal",null,a,i&&i.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=bt(e.defaultText)?e.defaultText(o,e,r):e.defaultText);for(var l={normal:s},u=0;u<sa.length;u++){var c=sa[u],d=t[c];l[c]=Zt(n?n.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,s)}return l}function Zo(e,t,r,n){r=r||lB;for(var o=e instanceof pr,a=!1,i=0;i<Qm.length;i++){var s=t[Qm[i]];if(s&&s.getShallow("show")){a=!0;break}}var l=o?e:e.getTextContent();if(a){o||(l||(l=new pr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=zP(r,t),c=t.normal,d=!!c.getShallow("show"),f=un(c,n&&n.normal,r,!1,!o);f.text=u.normal,o||e.setTextConfig(EC(c,r,!1));for(var i=0;i<sa.length;i++){var A=sa[i],s=t[A];if(s){var h=l.ensureState(A),v=!!Zt(s.getShallow("show"),d);if(v!==d&&(h.ignore=!v),h.style=un(s,n&&n[A],r,!0,!o),h.style.text=u[A],!o){var p=e.ensureState(A);p.textConfig=EC(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!d,l.useStyle(f),l.dirty(),r.enableTextSetter&&(Lp(l).setLabelText=function(g){var m=zP(r,t,g);zae(l,m)})}else l&&(l.ignore=!0);e.dirty()}function wo(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<sa.length;n++){var o=sa[n];r[o]=e.getModel([o,t])}return r}function un(e,t,r,n,o){var a={};return ndt(a,e,r,n,o),t&&Pe(a,t),a}function EC(e,t,r){t=t||{};var n={},o,a=e.getShallow("rotate"),i=Zt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return o=e.getShallow("position")||(r?null:"inside"),o==="outside"&&(o=t.defaultOutsidePosition||"top"),o!=null&&(n.position=o),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),i!=null&&(n.distance=i),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function ndt(e,t,r,n,o){r=r||lB;var a=t.ecModel,i=a&&a.option.textStyle,s=odt(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);gQ(l[u]={},c,i,r,n,o,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");f!=null&&(e.margin=f),gQ(e,t,i,r,n,o,!0,!1)}function odt(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||lB).rich;if(r){t=t||{};for(var n=sr(r),o=0;o<n.length;o++){var a=n[o];t[a]=1}}e=e.parentModel}return t}var hQ=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vQ=["align","lineHeight","width","height","tag","verticalAlign"],pQ=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gQ(e,t,r,n,o,a,i,s){r=!o&&r||lB;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=Zt(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var f=Zt(t.getShallow("textBorderWidth"),r.textBorderWidth);f!=null&&(e.lineWidth=f);var A=Zt(t.getShallow("textBorderType"),r.textBorderType);A!=null&&(e.lineDash=A);var h=Zt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);h!=null&&(e.lineDashOffset=h),!o&&d==null&&!s&&(d=n&&n.defaultOpacity),d!=null&&(e.opacity=d),!o&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var v=0;v<hQ.length;v++){var p=hQ[v],g=Zt(t.getShallow(p),r[p]);g!=null&&(e[p]=g)}for(var v=0;v<vQ.length;v++){var p=vQ[v],g=t.getShallow(p);g!=null&&(e[p]=g)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!i||!n.disableBox){for(var v=0;v<pQ.length;v++){var p=pQ[v],g=t.getShallow(p);g!=null&&(e[p]=g)}var y=t.getShallow("borderType");y!=null&&(e.borderDash=y),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function Qae(e,t){var r=t&&t.getModel("textStyle");return Ei([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Lp=br();function Vae(e,t,r,n){if(e){var o=Lp(e);o.prevValue=o.value,o.value=r;var a=t.normal;o.valueAnimation=a.get("valueAnimation"),o.valueAnimation&&(o.precision=a.get("precision"),o.defaultInterpolatedText=n,o.statesModels=t)}}function Wae(e,t,r,n,o){var a=Lp(e);if(!a.valueAnimation||a.prevValue===a.value)return;var i=a.defaultInterpolatedText,s=Zt(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var d=Woe(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:d;var f=zP({labelDataIndex:t,labelFetcher:o,defaultText:i?i(d):d+""},a.statesModels,d);zae(e,f)}e.percent=0,(a.prevValue==null?ln:gr)(e,{percent:1},n,t,null,u)}var adt=["textStyle","color"],OE=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$E=new pr,idt=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(adt):null)},e.prototype.getFont=function(){return Qae({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<OE.length;n++)r[OE[n]]=this.getShallow(OE[n]);return $E.useStyle(r),$E.update(),$E.getBoundingRect()},e}();const sdt=idt;var Gae=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ldt=vA(Gae),udt=function(){function e(){}return e.prototype.getLineStyle=function(t){return ldt(this,t)},e}(),Kae=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],cdt=vA(Kae),ddt=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return cdt(this,t,r)},e}(),HA=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Qt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,o=n==null?n:n[t];if(o==null&&!r){var a=this.parentModel;a&&(o=a.getShallow(t))}return o},e.prototype.getModel=function(t,r){var n=t!=null,o=n?this.parsePath(t):null,a=n?this._doGet(o):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(It(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!xr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var o=0;o<t.length&&!(t[o]&&(n=n&&typeof n=="object"?n[t[o]]:null,n==null));o++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();e4(HA);hut(HA);Rn(HA,udt);Rn(HA,ddt);Rn(HA,yut);Rn(HA,sdt);const Vr=HA;var fdt=Math.round(Math.random()*10);function Op(e){return[e||"",fdt++].join("_")}function Adt(e){var t={};e.registerSubTypeDefaulter=function(r,n){var o=Zs(r);t[o.main]=n},e.determineSubType=function(r,n){var o=n.type;if(!o){var a=Zs(r).main;e.hasSubTypes(r)&&t[a]&&(o=t[a](n))}return o}}function hdt(e,t){e.topologicalTravel=function(a,i,s,l){if(!a.length)return;var u=r(i),c=u.graph,d=u.noEntryList,f={};for(z(a,function(m){f[m]=!0});d.length;){var A=d.pop(),h=c[A],v=!!f[A];v&&(s.call(l,A,h.originalDeps.slice()),delete f[A]),z(h.successor,v?g:p)}z(f,function(){var m="";throw new Error(m)});function p(m){c[m].entryCount--,c[m].entryCount===0&&d.push(m)}function g(m){f[m]=!0,p(m)}};function r(a){var i={},s=[];return z(a,function(l){var u=n(i,l),c=u.originalDeps=t(l),d=o(c,a);u.entryCount=d.length,u.entryCount===0&&s.push(l),z(d,function(f){Yt(u.predecessor,f)<0&&u.predecessor.push(f);var A=n(i,f);Yt(A.successor,f)<0&&A.successor.push(l)})}),{graph:i,noEntryList:s}}function n(a,i){return a[i]||(a[i]={predecessor:[],successor:[]}),a[i]}function o(a,i){var s=[];return z(a,function(l){Yt(i,l)>=0&&s.push(l)}),s}}function Sd(e,t){return Qt(Qt({},e,!0),t,!0)}const vdt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},pdt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var IC="ZH",A4="EN",Gm=A4,iw={},h4={},jae=xr.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(IC)>-1?IC:Gm}():Gm;function v4(e,t){e=e.toUpperCase(),h4[e]=new Vr(t),iw[e]=t}function gdt(e){if(Je(e)){var t=iw[e.toUpperCase()]||{};return e===IC||e===A4?It(t):Qt(It(t),It(iw[Gm]),!1)}else return Qt(It(e),It(iw[Gm]),!1)}function QP(e){return h4[e]}function mdt(){return h4[Gm]}v4(A4,vdt);v4(IC,pdt);var p4=1e3,g4=p4*60,K0=g4*60,Si=K0*24,mQ=Si*365,s0={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},V1="{yyyy}-{MM}-{dd}",yQ={year:"{yyyy}",month:"{yyyy}-{MM}",day:V1,hour:V1+" "+s0.hour,minute:V1+" "+s0.minute,second:V1+" "+s0.second,millisecond:s0.none},UE=["year","month","day","hour","minute","second","millisecond"],Yae=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ma(e,t){return e+="","0000".substr(0,t-e.length)+e}function bv(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ydt(e){return e===bv(e)}function bdt(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function eb(e,t,r,n){var o=ri(e),a=o[m4(r)](),i=o[xv(r)]()+1,s=Math.floor((i-1)/3)+1,l=o[uB(r)](),u=o["get"+(r?"UTC":"")+"Day"](),c=o[Km(r)](),d=(c-1)%12+1,f=o[cB(r)](),A=o[dB(r)](),h=o[fB(r)](),v=n instanceof Vr?n:QP(n||jae)||mdt(),p=v.getModel("time"),g=p.get("month"),m=p.get("monthAbbr"),y=p.get("dayOfWeek"),b=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[i-1]).replace(/{MMM}/g,m[i-1]).replace(/{MM}/g,ma(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,ma(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ma(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ma(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,ma(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,ma(A,2)).replace(/{s}/g,A+"").replace(/{SSS}/g,ma(h,3)).replace(/{S}/g,h+"")}function xdt(e,t,r,n,o){var a=null;if(Je(r))a=r;else if(bt(r))a=r(e.value,t,{level:e.level});else{var i=Pe({},s0);if(e.level>0)for(var s=0;s<UE.length;++s)i[UE[s]]="{primary|"+i[UE[s]]+"}";var l=r?r.inherit===!1?r:Ct(r,i):i,u=Xae(e.value,o);if(l[u])a=l[u];else if(l.inherit){for(var c=Yae.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||i.none}if(Oe(a)){var d=e.level==null?0:e.level>=0?e.level:a.length+e.level;d=Math.min(d,a.length-1),a=a[d]}}return eb(new Date(e.value),a,o,n)}function Xae(e,t){var r=ri(e),n=r[xv(t)]()+1,o=r[uB(t)](),a=r[Km(t)](),i=r[cB(t)](),s=r[dB(t)](),l=r[fB(t)](),u=l===0,c=u&&s===0,d=c&&i===0,f=d&&a===0,A=f&&o===1,h=A&&n===1;return h?"year":A?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function bQ(e,t,r){var n=vr(e)?ri(e):e;switch(t=t||Xae(e,r),t){case"year":return n[m4(r)]();case"half-year":return n[xv(r)]()>=6?1:0;case"quarter":return Math.floor((n[xv(r)]()+1)/4);case"month":return n[xv(r)]();case"day":return n[uB(r)]();case"half-day":return n[Km(r)]()/24;case"hour":return n[Km(r)]();case"minute":return n[cB(r)]();case"second":return n[dB(r)]();case"millisecond":return n[fB(r)]()}}function m4(e){return e?"getUTCFullYear":"getFullYear"}function xv(e){return e?"getUTCMonth":"getMonth"}function uB(e){return e?"getUTCDate":"getDate"}function Km(e){return e?"getUTCHours":"getHours"}function cB(e){return e?"getUTCMinutes":"getMinutes"}function dB(e){return e?"getUTCSeconds":"getSeconds"}function fB(e){return e?"getUTCMilliseconds":"getMilliseconds"}function wdt(e){return e?"setUTCFullYear":"setFullYear"}function qae(e){return e?"setUTCMonth":"setMonth"}function Zae(e){return e?"setUTCDate":"setDate"}function Jae(e){return e?"setUTCHours":"setHours"}function eie(e){return e?"setUTCMinutes":"setMinutes"}function tie(e){return e?"setUTCSeconds":"setSeconds"}function rie(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Cdt(e,t,r,n,o,a,i,s){var l=new pr({style:{text:e,font:t,align:r,verticalAlign:n,padding:o,rich:a,overflow:i?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function y4(e){if(!qO(e))return Je(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function b4(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var zA=W_,Sdt=/([&<>"'])/g,_dt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function wa(e){return e==null?"":(e+"").replace(Sdt,function(t,r){return _dt[r]})}function VP(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(c){return c&&Ei(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?ri(e):e;if(isNaN(+l)){if(s)return"-"}else return eb(l,n,r)}if(t==="ordinal")return hC(e)?o(e):vr(e)&&a(e)?e+"":"-";var u=hl(e);return a(u)?y4(u):hC(e)?o(e):typeof e=="boolean"?e+"":"-"}var xQ=["a","b","c","d","e","f","g"],NE=function(e,t){return"{"+e+(t==null?"":t)+"}"};function x4(e,t,r){Oe(t)||(t=[t]);var n=t.length;if(!n)return"";for(var o=t[0].$vars||[],a=0;a<o.length;a++){var i=xQ[a];e=e.replace(NE(i),NE(i,0))}for(var s=0;s<n;s++)for(var l=0;l<o.length;l++){var u=t[s][o[l]];e=e.replace(NE(xQ[l],s),r?wa(u):u)}return e}function Bdt(e,t,r){return z(t,function(n,o){e=e.replace("{"+o+"}",r?wa(n):n)}),e}function nie(e,t){var r=Je(e)?{color:e,extraCssText:t}:e||{},n=r.color,o=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return o==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+wa(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wa(n)+";"+(t||"")+'"></span>';var i=r.markerId||"markerX";return{renderMode:a,content:"{"+i+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Tdt(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
  6093. yyyy`);var n=ri(t),o=r?"getUTC":"get",a=n[o+"FullYear"](),i=n[o+"Month"]()+1,s=n[o+"Date"](),l=n[o+"Hours"](),u=n[o+"Minutes"](),c=n[o+"Seconds"](),d=n[o+"Milliseconds"]();return e=e.replace("MM",ma(i,2)).replace("M",i).replace("yyyy",a).replace("yy",ma(a%100+"",2)).replace("dd",ma(s,2)).replace("d",s).replace("hh",ma(l,2)).replace("h",l).replace("mm",ma(u,2)).replace("m",u).replace("ss",ma(c,2)).replace("s",c).replace("SSS",ma(d,3)),e}function Edt(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function gA(e,t){return t=t||"transparent",Je(e)?e:Tt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function RC(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var sw=z,oie=["left","right","top","bottom","width","height"],Lf=[["width","left","right"],["height","top","bottom"]];function w4(e,t,r,n,o){var a=0,i=0;n==null&&(n=1/0),o==null&&(o=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),d=t.childAt(u+1),f=d&&d.getBoundingRect(),A,h;if(e==="horizontal"){var v=c.width+(f?-f.x+c.x:0);A=a+v,A>n||l.newline?(a=0,A=v,i+=s+r,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(f?-f.y+c.y:0);h=i+p,h>o||l.newline?(a+=s+r,i=0,h=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=i,l.markRedraw(),e==="horizontal"?a=A+r:i=h+r)})}var Jf=w4;Ut(w4,"vertical");Ut(w4,"horizontal");function Idt(e,t,r){var n=t.width,o=t.height,a=qe(e.left,n),i=qe(e.top,o),s=qe(e.right,n),l=qe(e.bottom,o);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(i)||isNaN(parseFloat(e.top)))&&(i=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=o),r=zA(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-i-r[0]-r[2],0)}}function jn(e,t,r){r=zA(r||0);var n=t.width,o=t.height,a=qe(e.left,n),i=qe(e.top,o),s=qe(e.right,n),l=qe(e.bottom,o),u=qe(e.width,n),c=qe(e.height,o),d=r[2]+r[0],f=r[1]+r[3],A=e.aspect;switch(isNaN(u)&&(u=n-s-f-a),isNaN(c)&&(c=o-l-d-i),A!=null&&(isNaN(u)&&isNaN(c)&&(A>n/o?u=n*.8:c=o*.8),isNaN(u)&&(u=A*c),isNaN(c)&&(c=u/A)),isNaN(a)&&(a=n-s-u-f),isNaN(i)&&(i=o-l-c-d),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":i=o/2-c/2-r[0];break;case"bottom":i=o-c-d;break}a=a||0,i=i||0,isNaN(u)&&(u=n-f-a-(s||0)),isNaN(c)&&(c=o-d-i-(l||0));var h=new Xt(a+r[3],i+r[0],u,c);return h.margin=r,h}function AB(e,t,r,n,o,a){var i=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!i&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Xt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=jn(Ct({width:u.width,height:u.height},t),r,n),f=i?d.x-u.x:0,A=s?d.y-u.y:0;return l==="raw"?(a.x=f,a.y=A):(a.x+=f,a.y+=A),a===e&&e.markRedraw(),!0}function Rdt(e,t){return e[Lf[t][0]]!=null||e[Lf[t][1]]!=null&&e[Lf[t][2]]!=null}function jm(e){var t=e.layoutMode||e.constructor.layoutMode;return Tt(t)?t:t?{type:t}:null}function id(e,t,r){var n=r&&r.ignoreSize;!Oe(n)&&(n=[n,n]);var o=i(Lf[0],0),a=i(Lf[1],1);u(Lf[0],e,o),u(Lf[1],e,a);function i(c,d){var f={},A=0,h={},v=0,p=2;if(sw(c,function(y){h[y]=e[y]}),sw(c,function(y){s(t,y)&&(f[y]=h[y]=t[y]),l(f,y)&&A++,l(h,y)&&v++}),n[d])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(v===p||!A)return h;if(A>=p)return f;for(var g=0;g<c.length;g++){var m=c[g];if(!s(f,m)&&s(e,m)){f[m]=e[m];break}}return f}function s(c,d){return c.hasOwnProperty(d)}function l(c,d){return c[d]!=null&&c[d]!=="auto"}function u(c,d,f){sw(c,function(A){d[A]=f[A]})}}function $p(e){return aie({},e)}function aie(e,t){return t&&e&&sw(oie,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Ddt=br(),Up=function(e){we(t,e);function t(r,n,o){var a=e.call(this,r,n,o)||this;return a.uid=Op("ec_cpt_model"),a}return t.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o)},t.prototype.mergeDefaultAndTheme=function(r,n){var o=jm(this),a=o?$p(r):{},i=n.getTheme();Qt(r,i.get(this.mainType)),Qt(r,this.getDefaultOption()),o&&id(r,a,o)},t.prototype.mergeOption=function(r,n){Qt(this.option,r,!0);var o=jm(this);o&&id(this.option,r,o)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!dut(r))return r.defaultOption;var n=Ddt(this);if(!n.defaultOption){for(var o=[],a=r;a;){var i=a.prototype.defaultOption;i&&o.push(i),a=a.superClass}for(var s={},l=o.length-1;l>=0;l--)s=Qt(s,o[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var o=r+"Index",a=r+"Id";return Ky(this.ecModel,r,{index:this.get(o,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Vr);Koe(Up,Vr);q_(Up);Adt(Up);hdt(Up,Mdt);function Mdt(e){var t=[];return z(Up.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Ue(t,function(r){return Zs(r).main}),e!=="dataset"&&Yt(t,"dataset")<=0&&t.unshift("dataset"),t}const fr=Up;var iie="";typeof navigator!="undefined"&&(iie=navigator.platform||"");var xh="rgba(0, 0, 0, 0.2)";const Pdt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:iie.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var sie=pt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ki="original",qo="arrayRows",ji="objectRows",El="keyedColumns",Uc="typedArray",lie="unknown",sl="column",Np="row",Io={Must:1,Might:2,Not:3},uie=br();function Fdt(e){uie(e).datasetMap=pt()}function cie(e,t,r){var n={},o=S4(t);if(!o||!e)return n;var a=[],i=[],s=t.ecModel,l=uie(s).datasetMap,u=o.uid+"_"+r.seriesLayoutBy,c,d;e=e.slice(),z(e,function(v,p){var g=Tt(v)?v:e[p]={name:v};g.type==="ordinal"&&c==null&&(c=p,d=h(g)),n[g.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});z(e,function(v,p){var g=v.name,m=h(v);if(c==null){var y=f.valueWayDim;A(n[g],y,m),A(i,y,m),f.valueWayDim+=m}else if(c===p)A(n[g],0,m),A(a,0,m);else{var y=f.categoryWayDim;A(n[g],y,m),A(i,y,m),f.categoryWayDim+=m}});function A(v,p,g){for(var m=0;m<g;m++)v.push(p+m)}function h(v){var p=v.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),i.length&&(n.seriesName=i),n}function C4(e,t,r){var n={},o=S4(e);if(!o)return n;var a=t.sourceFormat,i=t.dimensionsDefine,s;(a===ji||a===El)&&z(i,function(c,d){(Tt(c)?c.name:c)==="name"&&(s=d)});var l=function(){for(var c={},d={},f=[],A=0,h=Math.min(5,r);A<h;A++){var v=fie(t.data,a,t.seriesLayoutBy,i,t.startIndex,A);f.push(v);var p=v===Io.Not;if(p&&c.v==null&&A!==s&&(c.v=A),(c.n==null||c.n===c.v||!p&&f[c.n]===Io.Not)&&(c.n=A),g(c)&&f[c.n]!==Io.Not)return c;p||(v===Io.Might&&d.v==null&&A!==s&&(d.v=A),(d.n==null||d.n===d.v)&&(d.n=A))}function g(m){return m.v!=null&&m.n!=null}return g(c)?c:g(d)?d:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function S4(e){var t=e.get("data",!0);if(!t)return Ky(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Kn).models[0]}function kdt(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ky(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Kn).models}function die(e,t){return fie(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function fie(e,t,r,n,o,a){var i,s=5;if(Ra(e))return Io.Not;var l,u;if(n){var c=n[a];Tt(c)?(l=c.name,u=c.type):Je(c)&&(l=c)}if(u!=null)return u==="ordinal"?Io.Must:Io.Not;if(t===qo){var d=e;if(r===Np){for(var f=d[a],A=0;A<(f||[]).length&&A<s;A++)if((i=b(f[o+A]))!=null)return i}else for(var A=0;A<d.length&&A<s;A++){var h=d[o+A];if(h&&(i=b(h[a]))!=null)return i}}else if(t===ji){var v=e;if(!l)return Io.Not;for(var A=0;A<v.length&&A<s;A++){var p=v[A];if(p&&(i=b(p[l]))!=null)return i}}else if(t===El){var g=e;if(!l)return Io.Not;var f=g[l];if(!f||Ra(f))return Io.Not;for(var A=0;A<f.length&&A<s;A++)if((i=b(f[A]))!=null)return i}else if(t===Ki)for(var m=e,A=0;A<m.length&&A<s;A++){var p=m[A],y=Rp(p);if(!Oe(y))return Io.Not;if((i=b(y[a]))!=null)return i}function b(x){var w=Je(x);if(x!=null&&isFinite(x)&&x!=="")return w?Io.Might:Io.Not;if(w&&x!=="-")return Io.Must}return Io.Not}var WP=pt();function Ldt(e,t){Xo(WP.get(e)==null&&t),WP.set(e,t)}function Odt(e,t,r){var n=WP.get(t);if(!n)return r;var o=n(e);return o?r.concat(o):r}var wQ=br(),$dt=br(),_4=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var o=Wr(this.get("color",!0)),a=this.get("colorLayer",!0);return Aie(this,wQ,o,a,t,r,n)},e.prototype.clearColorPalette=function(){Ndt(this,wQ)},e}();function GP(e,t,r,n){var o=Wr(e.get(["aria","decal","decals"]));return Aie(e,$dt,o,null,t,r,n)}function Udt(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Aie(e,t,r,n,o,a,i){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var c=i==null||!n?r:Udt(n,i);if(c=c||r,!(!c||!c.length)){var d=c[l];return o&&(u[o]=d),s.paletteIdx=(l+1)%c.length,d}}function Ndt(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var W1,yg,CQ,SQ="\0_ec_inner",Hdt=1,hie=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,o,a,i,s){a=a||{},this.option=null,this._theme=new Vr(a),this._locale=new Vr(i),this._optionManager=s},t.prototype.setOption=function(r,n,o){var a=TQ(n);this._optionManager.setOption(r,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,TQ(n))},t.prototype._resetOption=function(r,n){var o=!1,a=this._optionManager;if(!r||r==="recreate"){var i=a.mountOption(r==="recreate");!this.option||r==="recreate"?CQ(this,i):(this.restoreData(),this._mergeOption(i,n)),o=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(o=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&z(l,function(u){o=!0,this._mergeOption(u,n)},this)}return o},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var o=this.option,a=this._componentsMap,i=this._componentsCount,s=[],l=pt(),u=n&&n.replaceMergeMainTypeMap;Fdt(this),z(r,function(d,f){d!=null&&(fr.hasClass(f)?f&&(s.push(f),l.set(f,!0)):o[f]=o[f]==null?It(d):Qt(o[f],d,!0))}),u&&u.each(function(d,f){fr.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),fr.topologicalTravel(s,fr.getAllClassMainTypes(),c,this);function c(d){var f=Odt(this,d,Wr(r[d])),A=a.get(d),h=A?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",v=zoe(A,f,h);rut(v,d,fr),o[d]=null,a.set(d,null),i.set(d,0);var p=[],g=[],m=0,y;z(v,function(b,x){var w=b.existing,C=b.newOption;if(!C)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var _=d==="series",B=fr.getClass(d,b.keyInfo.subType,!_);if(!B)return;if(d==="tooltip"){if(y)return;y=!0}if(w&&w.constructor===B)w.name=b.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var T=Pe({componentIndex:x},b.keyInfo);w=new B(C,this,this,T),Pe(w,T),b.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),m++):(p.push(void 0),g.push(void 0))},this),o[d]=p,a.set(d,g),i.set(d,m),d==="series"&&W1(this)}this._seriesIndices||W1(this)},t.prototype.getOption=function(){var r=It(this.option);return z(r,function(n,o){if(fr.hasClass(o)){for(var a=Wr(n),i=a.length,s=!1,l=i-1;l>=0;l--)a[l]&&!Hm(a[l])?s=!0:(a[l]=null,!s&&i--);a.length=i,r[o]=a}}),delete r[SQ],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var o=this._componentsMap.get(r);if(o){var a=o[n||0];if(a)return a;if(n==null){for(var i=0;i<o.length;i++)if(o[i])return o[i]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var o=r.index,a=r.id,i=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return o!=null?(l=[],z(Wr(o),function(u){s[u]&&l.push(s[u])})):a!=null?l=_Q("id",a,s):i!=null?l=_Q("name",i,s):l=kr(s,function(u){return!!u}),BQ(l,r)},t.prototype.findComponents=function(r){var n=r.query,o=r.mainType,a=s(n),i=a?this.queryComponents(a):kr(this._componentsMap.get(o),function(u){return!!u});return l(BQ(i,r));function s(u){var c=o+"Index",d=o+"Id",f=o+"Name";return u&&(u[c]!=null||u[d]!=null||u[f]!=null)?{mainType:o,index:u[c],id:u[d],name:u[f]}:null}function l(u){return r.filter?kr(u,r.filter):u}},t.prototype.eachComponent=function(r,n,o){var a=this._componentsMap;if(bt(r)){var i=n,s=r;a.each(function(d,f){for(var A=0;d&&A<d.length;A++){var h=d[A];h&&s.call(i,f,h,h.componentIndex)}})}else for(var l=Je(r)?a.get(r):Tt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(o,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=ro(r,null);return kr(this._componentsMap.get("series"),function(o){return!!o&&n!=null&&o.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return kr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return kr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){yg(this),z(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];r.call(n,a,o)},this)},t.prototype.eachRawSeries=function(r,n){z(this._componentsMap.get("series"),function(o){o&&r.call(n,o,o.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,o){yg(this),z(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];i.subType===r&&n.call(o,i,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,o){return z(this.getSeriesByType(r),n,o)},t.prototype.isSeriesFiltered=function(r){return yg(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){yg(this);var o=[];z(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)&&o.push(a)},this),this._seriesIndices=o,this._seriesIndicesMap=pt(o)},t.prototype.restoreData=function(r){W1(this);var n=this._componentsMap,o=[];n.each(function(a,i){fr.hasClass(i)&&o.push(i)}),fr.topologicalTravel(o,fr.getAllClassMainTypes(),function(a){z(n.get(a),function(i){i&&(a!=="series"||!zdt(i,r))&&i.restoreData()})})},t.internalField=function(){W1=function(r){var n=r._seriesIndices=[];z(r._componentsMap.get("series"),function(o){o&&n.push(o.componentIndex)}),r._seriesIndicesMap=pt(n)},yg=function(r){},CQ=function(r,n){r.option={},r.option[SQ]=Hdt,r._componentsMap=pt({series:[]}),r._componentsCount=pt();var o=n.aria;Tt(o)&&o.enabled==null&&(o.enabled=!0),Qdt(n,r._theme.option),Qt(n,Pdt,!1),r._mergeOption(n,null)}}(),t}(Vr);function zdt(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,o=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||o!=null&&e.name!==o}}function Qdt(e,t){var r=e.color&&!e.colorLayer;z(t,function(n,o){o==="colorLayer"&&r||fr.hasClass(o)||(typeof n=="object"?e[o]=e[o]?Qt(e[o],n,!1):It(n):e[o]==null&&(e[o]=n))})}function _Q(e,t,r){if(Oe(t)){var n=pt();return z(t,function(a){if(a!=null){var i=ro(a,null);i!=null&&n.set(a,!0)}}),kr(r,function(a){return a&&n.get(a[e])})}else{var o=ro(t,null);return kr(r,function(a){return a&&o!=null&&a[e]===o})}}function BQ(e,t){return t.hasOwnProperty("subType")?kr(e,function(r){return r&&r.subType===t.subType}):e}function TQ(e){var t=pt();return e&&z(Wr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Rn(hie,_4);const vie=hie;var Vdt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Wdt=function(){function e(t){z(Vdt,function(r){this[r]=at(t[r],t)},this)}return e}();const pie=Wdt;var HE={},Gdt=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];z(HE,function(o,a){var i=o.create(t,r);n=n.concat(i||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){z(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){HE[t]=r},e.get=function(t){return HE[t]},e}();const Hp=Gdt;var Kdt=/^(min|max)?(.+)$/,jdt=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(z(Wr(t.series),function(i){i&&i.data&&Ra(i.data)&&Pm(i.data)}),z(Wr(t.dataset),function(i){i&&i.source&&Ra(i.source)&&Pm(i.source)})),t=It(t);var o=this._optionBackup,a=Ydt(t,r,!o);this._newBaseOption=a.baseOption,o?(a.timelineOptions.length&&(o.timelineOptions=a.timelineOptions),a.mediaList.length&&(o.mediaList=a.mediaList),a.mediaDefault&&(o.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],It(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var o=t.getComponent("timeline");o&&(r=It(n[o.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,i=[],s=[];if(!o.length&&!a)return s;for(var l=0,u=o.length;l<u;l++)Xdt(o[l].query,r,n)&&i.push(l);return!i.length&&a&&(i=[-1]),i.length&&!Zdt(i,this._currentMediaIndices)&&(s=Ue(i,function(c){return It(c===-1?a.option:o[c].option)})),this._currentMediaIndices=i,s},e}();function Ydt(e,t,r){var n=[],o,a,i=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||i&&i.timeline);i?(a=i,a.timeline||(a.timeline=s)):((d||c)&&(e.options=e.media=null),a=e),c&&Oe(u)&&z(u,function(A){A&&A.option&&(A.query?n.push(A):o||(o=A))}),f(a),z(l,function(A){return f(A)}),z(n,function(A){return f(A.option)});function f(A){z(t,function(h){h(A,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:o,mediaList:n}}function Xdt(e,t,r){var n={width:t,height:r,aspectratio:t/r},o=!0;return z(e,function(a,i){var s=i.match(Kdt);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();qdt(n[u],a,l)||(o=!1)}}),o}function qdt(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Zdt(e,t){return e.join(",")===t.join(",")}const Jdt=jdt;var Zi=z,Ym=Tt,EQ=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zE(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=EQ.length;r<n;r++){var o=EQ[r],a=t.normal,i=t.emphasis;a&&a[o]&&(e[o]=e[o]||{},e[o].normal?Qt(e[o].normal,a[o]):e[o].normal=a[o],a[o]=null),i&&i[o]&&(e[o]=e[o]||{},e[o].emphasis?Qt(e[o].emphasis,i[o]):e[o].emphasis=i[o],i[o]=null)}}function Wo(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,o=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Ct(e[t],n)):e[t]=n),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o,o.focus&&(e.emphasis.focus=o.focus),o.blurScope&&(e.emphasis.blurScope=o.blurScope))}}function l0(e){Wo(e,"itemStyle"),Wo(e,"lineStyle"),Wo(e,"areaStyle"),Wo(e,"label"),Wo(e,"labelLine"),Wo(e,"upperLabel"),Wo(e,"edgeLabel")}function Wn(e,t){var r=Ym(e)&&e[t],n=Ym(r)&&r.textStyle;if(n)for(var o=0,a=M6.length;o<a;o++){var i=M6[o];n.hasOwnProperty(i)&&(r[i]=n[i])}}function gi(e){e&&(l0(e),Wn(e,"label"),e.emphasis&&Wn(e.emphasis,"label"))}function eft(e){if(Ym(e)){zE(e),l0(e),Wn(e,"label"),Wn(e,"upperLabel"),Wn(e,"edgeLabel"),e.emphasis&&(Wn(e.emphasis,"label"),Wn(e.emphasis,"upperLabel"),Wn(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(zE(t),gi(t));var r=e.markLine;r&&(zE(r),gi(r));var n=e.markArea;n&&gi(n);var o=e.data;if(e.type==="graph"){o=o||e.nodes;var a=e.links||e.edges;if(a&&!Ra(a))for(var i=0;i<a.length;i++)gi(a[i]);z(e.categories,function(u){l0(u)})}if(o&&!Ra(o))for(var i=0;i<o.length;i++)gi(o[i]);if(t=e.markPoint,t&&t.data)for(var s=t.data,i=0;i<s.length;i++)gi(s[i]);if(r=e.markLine,r&&r.data)for(var l=r.data,i=0;i<l.length;i++)Oe(l[i])?(gi(l[i][0]),gi(l[i][1])):gi(l[i]);e.type==="gauge"?(Wn(e,"axisLabel"),Wn(e,"title"),Wn(e,"detail")):e.type==="treemap"?(Wo(e.breadcrumb,"itemStyle"),z(e.levels,function(u){l0(u)})):e.type==="tree"&&l0(e.leaves)}}function Ll(e){return Oe(e)?e:e?[e]:[]}function IQ(e){return(Oe(e)?e[0]:e)||{}}function tft(e,t){Zi(Ll(e.series),function(n){Ym(n)&&eft(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Zi(r,function(n){Zi(Ll(e[n]),function(o){o&&(Wn(o,"axisLabel"),Wn(o.axisPointer,"label"))})}),Zi(Ll(e.parallel),function(n){var o=n&&n.parallelAxisDefault;Wn(o,"axisLabel"),Wn(o&&o.axisPointer,"label")}),Zi(Ll(e.calendar),function(n){Wo(n,"itemStyle"),Wn(n,"dayLabel"),Wn(n,"monthLabel"),Wn(n,"yearLabel")}),Zi(Ll(e.radar),function(n){Wn(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Zi(Ll(e.geo),function(n){Ym(n)&&(gi(n),Zi(Ll(n.regions),function(o){gi(o)}))}),Zi(Ll(e.timeline),function(n){gi(n),Wo(n,"label"),Wo(n,"itemStyle"),Wo(n,"controlStyle",!0);var o=n.data;Oe(o)&&z(o,function(a){Tt(a)&&(Wo(a,"label"),Wo(a,"itemStyle"))})}),Zi(Ll(e.toolbox),function(n){Wo(n,"iconStyle"),Zi(n.feature,function(o){Wo(o,"iconStyle")})}),Wn(IQ(e.axisPointer),"label"),Wn(IQ(e.tooltip).axisPointer,"label")}function rft(e,t){for(var r=t.split(","),n=e,o=0;o<r.length&&(n=n&&n[r[o]],n!=null);o++);return n}function nft(e,t,r,n){for(var o=t.split(","),a=e,i,s=0;s<o.length-1;s++)i=o[s],a[i]==null&&(a[i]={}),a=a[i];(n||a[o[s]]==null)&&(a[o[s]]=r)}function RQ(e){e&&z(oft,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var oft=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],aft=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],QE=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bg(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<QE.length;r++){var n=QE[r][1],o=QE[r][0];t[n]!=null&&(t[o]=t[n])}}function DQ(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function MQ(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ift(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function gie(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&gie(e[r].children,t)}function mie(e,t){tft(e,t),e.series=Wr(e.series),z(e.series,function(r){if(Tt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),DQ(r.label);var o=r.data;if(o&&!Ra(o))for(var a=0;a<o.length;a++)DQ(o[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var i=rft(r,"pointer.color");i!=null&&nft(r,"itemStyle.color",i)}else if(n==="bar"){bg(r),bg(r.backgroundStyle),bg(r.emphasis);var o=r.data;if(o&&!Ra(o))for(var a=0;a<o.length;a++)typeof o[a]=="object"&&(bg(o[a]),bg(o[a]&&o[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),MQ(r),gie(r.data,MQ)}else n==="graph"||n==="sankey"?ift(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ct(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),RQ(r)}}),e.dataRange&&(e.visualMap=e.dataRange),z(aft,function(r){var n=e[r];n&&(Oe(n)||(n=[n]),z(n,function(o){RQ(o)}))})}function sft(e){var t=pt();e.eachSeries(function(r){var n=r.get("stack");if(n){var o=t.get(n)||t.set(n,[]),a=r.getData(),i={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;o.length&&a.setCalculationInfo("stackedOnSeries",o[o.length-1].seriesModel),o.push(i)}}),t.each(lft)}function lft(e){z(e,function(t,r){var n=[],o=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],i=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";i.modify(a,function(u,c,d){var f=i.get(t.stackedDimension,d);if(isNaN(f))return o;var A,h;s?h=i.getRawIndex(d):A=i.get(t.stackedByDimension,d);for(var v=NaN,p=r-1;p>=0;p--){var g=e[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,A)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=Glt(f,m),v=m;break}}}return n[0]=f,n[1]=v,n})})}var hB=function(){function e(t){this.data=t.data||(t.sourceFormat===El?{}:[]),this.sourceFormat=t.sourceFormat||lie,this.seriesLayoutBy=t.seriesLayoutBy||sl,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var o=r[n];o.type==null&&die(this,n)===Io.Must&&(o.type="ordinal")}}return e}();function B4(e){return e instanceof hB}function KP(e,t,r){r=r||yie(e);var n=t.seriesLayoutBy,o=cft(e,r,n,t.sourceHeader,t.dimensions),a=new hB({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:It(t)});return a}function T4(e){return new hB({data:e,sourceFormat:Ra(e)?Uc:Ki})}function uft(e){return new hB({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:It(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function yie(e){var t=lie;if(Ra(e))t=Uc;else if(Oe(e)){e.length===0&&(t=qo);for(var r=0,n=e.length;r<n;r++){var o=e[r];if(o!=null){if(Oe(o)){t=qo;break}else if(Tt(o)){t=ji;break}}}}else if(Tt(e)){for(var a in e)if(st(e,a)&&Lo(e[a])){t=El;break}}return t}function cft(e,t,r,n,o){var a,i;if(!e)return{dimensionsDefine:PQ(o),startIndex:i,dimensionsDetectedCount:a};if(t===qo){var s=e;n==="auto"||n==null?FQ(function(u){u!=null&&u!=="-"&&(Je(u)?i==null&&(i=1):i=0)},r,s,10):i=vr(n)?n:n?1:0,!o&&i===1&&(o=[],FQ(function(u,c){o[c]=u!=null?u+"":""},r,s,1/0)),a=o?o.length:r===Np?s.length:s[0]?s[0].length:null}else if(t===ji)o||(o=dft(e));else if(t===El)o||(o=[],z(e,function(u,c){o.push(c)}));else if(t===Ki){var l=Rp(e[0]);a=Oe(l)&&l.length||1}return{startIndex:i,dimensionsDefine:PQ(o),dimensionsDetectedCount:a}}function dft(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return z(r,function(o,a){n.push(a)}),n}}function PQ(e){if(e){var t=pt();return Ue(e,function(r,n){r=Tt(r)?r:{name:r};var o={name:r.name,displayName:r.displayName,type:r.type};if(o.name==null)return o;o.name+="",o.displayName==null&&(o.displayName=o.name);var a=t.get(o.name);return a?o.name+="-"+a.count++:t.set(o.name,{count:1}),o})}}function FQ(e,t,r,n){if(t===Np)for(var o=0;o<r.length&&o<n;o++)e(r[o]?r[o][0]:null,o);else for(var a=r[0]||[],o=0;o<a.length&&o<n;o++)e(a[o],o)}function bie(e){var t=e.sourceFormat;return t===ji||t===El}var Jd,ef,tf,kQ,LQ,xie=function(){function e(t,r){var n=B4(t)?t:T4(t);this._source=n;var o=this._data=n.data;n.sourceFormat===Uc&&(this._offset=0,this._dimSize=r,this._data=o),LQ(this,o,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;LQ=function(i,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,d=l.startIndex,f=l.dimensionsDefine,A=kQ[E4(u,c)];if(Pe(i,A),u===Uc)i.getItem=r,i.count=o,i.fillStorage=n;else{var h=wie(u,c);i.getItem=at(h,null,s,d,f);var v=Cie(u,c);i.count=at(v,null,s,d,f)}};var r=function(i,s){i=i-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*i,d=0;d<u;d++)s[d]=l[c+d];return s},n=function(i,s,l,u){for(var c=this._data,d=this._dimSize,f=0;f<d;f++){for(var A=u[f],h=A[0]==null?1/0:A[0],v=A[1]==null?-1/0:A[1],p=s-i,g=l[f],m=0;m<p;m++){var y=c[m*d+f];g[i+m]=y,y<h&&(h=y),y>v&&(v=y)}A[0]=h,A[1]=v}},o=function(){return this._data?this._data.length/this._dimSize:0};kQ=(t={},t[qo+"_"+sl]={pure:!0,appendData:a},t[qo+"_"+Np]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ji]={pure:!0,appendData:a},t[El]={pure:!0,appendData:function(i){var s=this._data;z(i,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},t[Ki]={appendData:a},t[Uc]={persistent:!1,pure:!0,appendData:function(i){this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(i){for(var s=0;s<i.length;s++)this._data.push(i[s])}}(),e}(),OQ=function(e,t,r,n){return e[n]},fft=(Jd={},Jd[qo+"_"+sl]=function(e,t,r,n){return e[n+t]},Jd[qo+"_"+Np]=function(e,t,r,n,o){n+=t;for(var a=o||[],i=e,s=0;s<i.length;s++){var l=i[s];a[s]=l?l[n]:null}return a},Jd[ji]=OQ,Jd[El]=function(e,t,r,n,o){for(var a=o||[],i=0;i<r.length;i++){var s=r[i].name,l=e[s];a[i]=l?l[n]:null}return a},Jd[Ki]=OQ,Jd);function wie(e,t){var r=fft[E4(e,t)];return r}var $Q=function(e,t,r){return e.length},Aft=(ef={},ef[qo+"_"+sl]=function(e,t,r){return Math.max(0,e.length-t)},ef[qo+"_"+Np]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},ef[ji]=$Q,ef[El]=function(e,t,r){var n=r[0].name,o=e[n];return o?o.length:0},ef[Ki]=$Q,ef);function Cie(e,t){var r=Aft[E4(e,t)];return r}var VE=function(e,t,r){return e[t]},hft=(tf={},tf[qo]=VE,tf[ji]=function(e,t,r){return e[r]},tf[El]=VE,tf[Ki]=function(e,t,r){var n=Rp(e);return n instanceof Array?n[t]:n},tf[Uc]=VE,tf);function Sie(e){var t=hft[e];return t}function E4(e,t){return e===qo?e+"_"+t:e}function Gv(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var o=e.getStore(),a=o.getSource().sourceFormat;if(r!=null){var i=e.getDimensionIndex(r),s=o.getDimensionProperty(i);return Sie(a)(n,i,s)}else{var l=n;return a===Ki&&(l=Rp(n)),l}}}}var vft=/\{@(.+?)\}/g,I4=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),o=this.getRawValue(t,r),a=n.getRawIndex(t),i=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,d=this.mainType,f=d==="series",A=n.userOutput&&n.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:i,dataIndex:a,data:s,dataType:r,value:o,color:u,borderColor:c,dimensionNames:A?A.fullDimensions:null,encode:A?A.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,o,a,i){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(i&&(l.value=i.interpolatedValue),o!=null&&Oe(l.value)&&(l.value=l.value[o]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(bt(a))return l.status=r,l.dimensionIndex=o,a(l);if(Je(a)){var c=x4(a,l);return c.replace(vft,function(d,f){var A=f.length,h=f;h.charAt(0)==="["&&h.charAt(A-1)==="]"&&(h=+h.slice(1,A-1));var v=Gv(s,t,h);if(i&&Oe(i.interpolatedValue)){var p=s.getDimensionIndex(h);p>=0&&(v=i.interpolatedValue[p])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return Gv(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function UQ(e){var t,r;return Tt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function j0(e){return new pft(e)}var pft=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var o=this.context;o.data=o.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var i=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(a="reset");function c(m){return!(m>=1)&&(m=1),m}var d;(this._dirty||a==="reset")&&(this._dirty=!1,d=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var A=this._dueIndex,h=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(d||A<h)){var v=this._progress;if(Oe(v))for(var p=0;p<v.length;p++)this._doProgress(v[p],A,h,l,u);else this._doProgress(v,A,h,l,u)}this._dueIndex=h;var g=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,o,a){NQ.reset(r,n,o,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:NQ.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Oe(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var o=this._downstream;return o&&o.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),NQ=function(){var e,t,r,n,o,a={reset:function(l,u,c,d){t=l,e=u,r=c,n=d,o=Math.ceil(n/r),a.next=r>1&&n>0?s:i}};return a;function i(){return t<e?t++:null}function s(){var l=t%o*r+Math.ceil(t/o),u=t>=e?null:l<n?l:t;return t++,u}}();function Nc(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!vr(e)&&e!=null&&e!=="-"&&(e=+ri(e)),e==null||e===""?NaN:+e)}var gft=pt({number:function(e){return parseFloat(e)},time:function(e){return+ri(e)},trim:function(e){return Je(e)?Ei(e):e}});function _ie(e){return gft.get(e)}var Bie={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},mft=function(){function e(t,r){if(!vr(r)){var n="";Tr(n)}this._opFn=Bie[t],this._rvalFloat=hl(r)}return e.prototype.evaluate=function(t){return vr(t)?this._opFn(t,this._rvalFloat):this._opFn(hl(t),this._rvalFloat)},e}(),Tie=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=vr(t)?t:hl(t),o=vr(r)?r:hl(r),a=isNaN(n),i=isNaN(o);if(a&&(n=this._incomparable),i&&(o=this._incomparable),a&&i){var s=Je(t),l=Je(r);s&&(n=l?t:0),l&&(o=s?r:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},e}(),yft=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=hl(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=hl(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function bft(e,t){return e==="eq"||e==="ne"?new yft(e==="eq",t):st(Bie,e)?new mft(e,t):null}var xft=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Nc(t,r)},e}();function wft(e,t){var r=new xft,n=e.data,o=r.sourceFormat=e.sourceFormat,a=e.startIndex,i="";e.seriesLayoutBy!==sl&&Tr(i);var s=[],l={},u=e.dimensionsDefine;if(u)z(u,function(v,p){var g=v.name,m={index:p,name:g,displayName:v.displayName};if(s.push(m),g!=null){var y="";st(l,g)&&Tr(y),l[g]=m}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var d=wie(o,sl);t.__isBuiltIn&&(r.getRawDataItem=function(v){return d(n,a,s,v)},r.getRawData=at(Cft,null,e)),r.cloneRawData=at(Sft,null,e);var f=Cie(o,sl);r.count=at(f,null,n,a,s);var A=Sie(o);r.retrieveValue=function(v,p){var g=d(n,a,s,v);return h(g,p)};var h=r.retrieveValueFromItem=function(v,p){if(v!=null){var g=s[p];if(g)return A(v,p,g.name)}};return r.getDimensionInfo=at(_ft,null,s,l),r.cloneAllDimensionInfo=at(Bft,null,s),r}function Cft(e){var t=e.sourceFormat;if(!R4(t)){var r="";Tr(r)}return e.data}function Sft(e){var t=e.sourceFormat,r=e.data;if(!R4(t)){var n="";Tr(n)}if(t===qo){for(var o=[],a=0,i=r.length;a<i;a++)o.push(r[a].slice());return o}else if(t===ji){for(var o=[],a=0,i=r.length;a<i;a++)o.push(Pe({},r[a]));return o}}function _ft(e,t,r){if(r!=null){if(vr(r)||!isNaN(r)&&!st(t,r))return e[r];if(st(t,r))return t[r]}}function Bft(e){return It(e)}var Eie=pt();function Tft(e){e=It(e);var t=e.type,r="";t||Tr(r);var n=t.split(":");n.length!==2&&Tr(r);var o=!1;n[0]==="echarts"&&(t=n[1],o=!0),e.__isBuiltIn=o,Eie.set(t,e)}function Eft(e,t,r){var n=Wr(e),o=n.length,a="";o||Tr(a);for(var i=0,s=o;i<s;i++){var l=n[i];t=Ift(l,t),i!==s-1&&(t.length=Math.max(t.length,1))}return t}function Ift(e,t,r,n){var o="";t.length||Tr(o),Tt(e)||Tr(o);var a=e.type,i=Eie.get(a);i||Tr(o);var s=Ue(t,function(u){return wft(u,i)}),l=Wr(i.transform({upstream:s[0],upstreamList:s,config:It(e.config)}));return Ue(l,function(u,c){var d="";Tt(u)||Tr(d),u.data||Tr(d);var f=yie(u.data);R4(f)||Tr(d);var A,h=t[0];if(h&&c===0&&!u.dimensions){var v=h.startIndex;v&&(u.data=h.data.slice(0,v).concat(u.data)),A={seriesLayoutBy:sl,sourceHeader:v,dimensions:h.metaRawOption.dimensions}}else A={seriesLayoutBy:sl,sourceHeader:0,dimensions:u.dimensions};return KP(u.data,A,null)})}function R4(e){return e===qo||e===ji}var vB="undefined",Rft=typeof Uint32Array===vB?Array:Uint32Array,Dft=typeof Uint16Array===vB?Array:Uint16Array,Iie=typeof Int32Array===vB?Array:Int32Array,HQ=typeof Float64Array===vB?Array:Float64Array,Rie={float:HQ,int:Iie,ordinal:Array,number:Array,time:HQ},WE;function xg(e){return e>65535?Rft:Dft}function wh(){return[1/0,-1/0]}function Mft(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zQ(e,t,r,n,o){var a=Rie[r||"float"];if(o){var i=e[t],s=i&&i.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=i[u];e[t]=l}}else e[t]=new a(n)}var jP=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=pt()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),a=this.defaultDimValueGetter=WE[o.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],bie(o),this._dimensions=Ue(r,function(i){return{type:i.type,property:i.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,o=this._dimensions,a=n.get(t);if(a!=null){if(o[a].type===r)return a}else a=o.length;return o[a]={type:r},n.set(t,a),this._chunks[a]=new Rie[r||"float"](this._rawCount),this._rawExtent[a]=wh(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],o=this._dimensions[t],a=this._rawExtent,i=o.ordinalOffset||0,s=n.length;i===0&&(a[t]=wh());for(var l=a[t],u=i;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}o.ordinalMeta=r,o.ordinalOffset=s,o.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var o=r.count();return r.persistent||(o+=n),n<o&&this._initDataFromProvider(n,o,!0),[n,o]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,o=this._dimensions,a=o.length,i=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=o[u];zQ(n,u,c.type,l,!0)}for(var d=[],f=s;f<l;f++)for(var A=f-s,h=0;h<a;h++){var c=o[h],v=WE.arrayRows.call(this,t[A]||d,c.property,A,h);n[h][f]=v;var p=i[h];v<p[0]&&(p[0]=v),v>p[1]&&(p[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var o=this._provider,a=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,u=Ue(i,function(m){return m.property}),c=0;c<s;c++){var d=i[c];l[c]||(l[c]=wh()),zQ(a,c,d.type,r,n)}if(o.fillStorage)o.fillStorage(t,r,a,l);else for(var f=[],A=t;A<r;A++){f=o.getItem(A,f);for(var h=0;h<s;h++){var v=a[h],p=this._dimValueGetter(f,u[h],A,h);v[A]=p;var g=l[h];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],o=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)o.push(a)}else o=t;for(var a=0,i=o.length;a<i;a++)n.push(this.get(o[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var o=0,a=this.count();o<a;o++){var i=this.get(t,o);isNaN(i)||(n+=i)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,i){return a-i}),o=this.count();return o===0?0:o%2===1?n[(o-1)/2]:(n[o/2]+n[o/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var o=0,a=this._count-1;o<=a;){var i=(o+a)/2|0;if(r[i]<t)o=i+1;else if(r[i]>t)a=i-1;else return i}return-1},e.prototype.indicesOfNearest=function(t,r,n){var o=this._chunks,a=o[t],i=[];if(!a)return i;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c<d;c++){var f=this.getRawIndex(c),A=r-a[f],h=Math.abs(A);h<=n&&((h<s||h===s&&A>=0&&l<0)&&(s=h,l=A,u=0),A===l&&(i[u++]=c))}return i.length=u,i},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,o=this._count;if(n===Array){t=new n(o);for(var a=0;a<o;a++)t[a]=r[a]}else t=new n(r.buffer,0,o)}else{var n=xg(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),o=n.count(),a=xg(n._rawCount),i=new a(o),s=[],l=t.length,u=0,c=t[0],d=n._chunks,f=0;f<o;f++){var A=void 0,h=n.getRawIndex(f);if(l===0)A=r(f);else if(l===1){var v=d[c][h];A=r(v,f)}else{for(var p=0;p<l;p++)s[p]=d[t[p]][h];s[p]=f,A=r.apply(null,s)}A&&(i[u++]=h)}return u<o&&(n._indices=i),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var o=sr(t),a=o.length;if(!a)return this;var i=r.count(),s=xg(r._rawCount),l=new s(i),u=0,c=o[0],d=t[c][0],f=t[c][1],A=r._chunks,h=!1;if(!r._indices){var v=0;if(a===1){for(var p=A[o[0]],g=0;g<n;g++){var m=p[g];(m>=d&&m<=f||isNaN(m))&&(l[u++]=v),v++}h=!0}else if(a===2){for(var p=A[o[0]],y=A[o[1]],b=t[o[1]][0],x=t[o[1]][1],g=0;g<n;g++){var m=p[g],w=y[g];(m>=d&&m<=f||isNaN(m))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=v),v++}h=!0}}if(!h)if(a===1)for(var g=0;g<i;g++){var C=r.getRawIndex(g),m=A[o[0]][C];(m>=d&&m<=f||isNaN(m))&&(l[u++]=C)}else for(var g=0;g<i;g++){for(var _=!0,C=r.getRawIndex(g),B=0;B<a;B++){var T=o[B],m=A[T][C];(m<t[T][0]||m>t[T][1])&&(_=!1)}_&&(l[u++]=r.getRawIndex(g))}return u<i&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var o=t._chunks,a=[],i=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=wh();for(var d=0;d<s;d++){for(var f=t.getRawIndex(d),A=0;A<i;A++)l[A]=o[r[A]][f];l[i]=d;var h=n&&n.apply(null,l);if(h!=null){typeof h!="object"&&(a[0]=h,h=a);for(var c=0;c<h.length;c++){var v=r[c],p=h[c],g=u[v],m=o[v];m&&(m[f]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),o=n._chunks,a=o[t],i=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,d,f,A=new(xg(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));A[s++]=u;for(var h=1;h<i-1;h+=l){for(var v=Math.min(h+l,i-1),p=Math.min(h+l*2,i),g=(p+v)/2,m=0,y=v;y<p;y++){var b=this.getRawIndex(y),x=a[b];isNaN(x)||(m+=x)}m/=p-v;var w=h,C=Math.min(h+l,i),_=h-1,B=a[u];c=-1,f=w;for(var T=-1,E=0,y=w;y<C;y++){var b=this.getRawIndex(y),x=a[b];if(isNaN(x)){E++,T<0&&(T=b);continue}d=Math.abs((_-g)*(x-B)-(_-y)*(m-B)),d>c&&(c=d,f=b)}E>0&&E<C-w&&(A[s++]=Math.min(T,f),f=Math.max(T,f)),A[s++]=f,u=f}return A[s++]=this.getRawIndex(i-1),n._count=s,n._indices=A,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,o){for(var a=this.clone([t],!0),i=a._chunks,s=[],l=Math.floor(1/r),u=i[t],c=this.count(),d=a._rawExtent[t]=wh(),f=new(xg(this._rawCount))(Math.ceil(c/l)),A=0,h=0;h<c;h+=l){l>c-h&&(l=c-h,s.length=l);for(var v=0;v<l;v++){var p=this.getRawIndex(h+v);s[v]=u[p]}var g=n(s),m=this.getRawIndex(Math.min(h+o(s,g)||0,c-1));u[m]=g,g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g),f[A++]=m}return a._count=A,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,o=this._chunks,a=0,i=this.count();a<i;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(o[t[0]][s],a);break;case 2:r(o[t[0]][s],o[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=o[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=wh();if(!r)return n;var o=this.count(),a=!this._indices,i;if(a)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var s=i[0],l=i[1],u=0;u<o;u++){var c=this.getRawIndex(u),d=r[c];d<s&&(s=d),d>l&&(l=d)}return i=[s,l],this._extent[t]=i,i},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],o=this._chunks,a=0;a<o.length;a++)n.push(o[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,o=this._chunks,a=t&&$i(t,function(s,l){return s[l]=!0,s},{});if(a)for(var i=0;i<o.length;i++)n._chunks[i]=a[i]?Mft(o[i]):o[i];else n._chunks=o;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=It(this._extent),t._rawExtent=It(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var o=0;o<n;o++)r[o]=this._indices[o]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,o,a){return Nc(r[a],this._dimensions[a])}WE={arrayRows:t,objectRows:function(r,n,o,a){return Nc(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,o,a){var i=r&&(r.value==null?r:r.value);return Nc(i instanceof Array?i[a]:i,this._dimensions[a])},typedArray:function(r,n,o,a){return r[a]}}}(),e}(),Die=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,o,a;if(G1(t)){var i=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=i.get("data",!0),l=Ra(s)?Uc:Ki,a=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},A=Zt(d.seriesLayoutBy,f.seriesLayoutBy)||null,h=Zt(d.sourceHeader,f.sourceHeader),v=Zt(d.dimensions,f.dimensions),p=A!==f.seriesLayoutBy||!!h!=!!f.sourceHeader||v;o=p?[KP(s,{seriesLayoutBy:A,sourceHeader:h,dimensions:v},l)]:[]}else{var g=t;if(n){var m=this._applyTransform(r);o=m.sourceList,a=m.upstreamSignList}else{var y=g.get("source",!0);o=[KP(y,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(o,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),o=r.get("fromTransformResult",!0);if(o!=null){var a="";t.length!==1&&VQ(a)}var i,s=[],l=[];return z(t,function(u){u.prepareSource();var c=u.getSource(o||0),d="";o!=null&&!c&&VQ(d),s.push(c),l.push(u._getVersionSign())}),n?i=Eft(n,s,{datasetIndex:r.componentIndex}):o!=null&&(i=[uft(s[0])]),{sourceList:i,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var o=0,a=this._storeList,i=a[o];i||(i=a[o]={});var s=i[n];if(!s){var l=this._getUpstreamSourceManagers()[0];G1(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new jP,s.initData(new xie(r,t.length),t)),i[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(G1(t)){var r=S4(t);return r?[r.getSourceManager()]:[]}else return Ue(kdt(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,o;if(G1(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),o=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),o=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:o}},e}();function QQ(e){var t=e.option.transform;t&&Pm(e.option.transform)}function G1(e){return e.mainType==="series"}function VQ(e){throw new Error(e)}var Mie="line-height:1";function Pie(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,o=e.fontWeight||"400",a=e.color||"#464646",i=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+wa(n+"")+"px;color:"+wa(r)+";font-weight:"+wa(o+""),valueStyle:"font-size:"+wa(i+"")+"px;color:"+wa(a)+";font-weight:"+wa(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:o},valueStyle:{fontSize:i,fill:a,fontWeight:s}}}var Pft=[0,10,20,30],Fft=["",`
  6094. `,`
  6095. `,`
  6096. `];function vo(e,t){return t.type=e,t}function YP(e){return e.type==="section"}function Fie(e){return YP(e)?kft:Lft}function kie(e){if(YP(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return z(e.blocks,function(o){var a=kie(o);a>=t&&(t=a+ +(n&&(!a||YP(o)&&!o.noHeader)))}),t}return 0}function kft(e,t,r,n){var o=t.noHeader,a=Oft(kie(t)),i=[],s=t.blocks||[];Xo(!s||Oe(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var c=new Tie(u[l],null);s.sort(function(h,v){return c.evaluate(h.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}z(s,function(h,v){var p=t.valueFormatter,g=Fie(h)(p?Pe(Pe({},e),{valueFormatter:p}):e,h,v>0?a.html:0,n);g!=null&&i.push(g)});var d=e.renderMode==="richText"?i.join(a.richText):XP(i.join(""),o?r:a.html);if(o)return d;var f=VP(t.header,"ordinal",e.useUTC),A=Pie(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Lie(e,f,A)+a.richText+d:XP('<div style="'+A+";"+Mie+';">'+wa(f)+"</div>"+d,r)}function Lft(e,t,r,n){var o=e.renderMode,a=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=Oe(b)?b:[b],Ue(b,function(x,w){return VP(x,Oe(A)?A[w]:A,u)})};if(!(a&&i)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),f=a?"":VP(l,"ordinal",u),A=t.valueType,h=i?[]:c(t.value),v=!s||!a,p=!s&&a,g=Pie(n,o),m=g.nameStyle,y=g.valueStyle;return o==="richText"?(s?"":d)+(a?"":Lie(e,f,m))+(i?"":Nft(e,h,v,p,y)):XP((s?"":d)+(a?"":$ft(f,!s,m))+(i?"":Uft(h,v,p,y)),r)}}function WQ(e,t,r,n,o,a){if(e){var i=Fie(e),s={useUTC:o,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,a)}}function Oft(e){return{html:Pft[e],richText:Fft[e]}}function XP(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Mie+';">'+e+r+"</div>"}function $ft(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+wa(e)+"</span>"}function Uft(e,t,r,n){var o=r?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=Oe(e)?e:[e],'<span style="'+a+";"+n+'">'+Ue(e,function(i){return wa(i)}).join("&nbsp;&nbsp;")+"</span>"}function Lie(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Nft(e,t,r,n,o){var a=[o],i=n?10:20;return r&&a.push({padding:[0,0,0,i],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Oe(t)?t.join(" "):t,a)}function Oie(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return gA(n)}function $ie(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var GE=function(){function e(){this.richTextStyles={},this._nextStyleNameId=$oe()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var o=n==="richText"?this._generateStyleName():null,a=nie({color:r,type:t,renderMode:n,markerId:o});return Je(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Oe(r)?z(r,function(a){return Pe(n,a)}):Pe(n,r);var o=this._generateStyleName();return this.richTextStyles[o]=n,"{"+o+"|"+t+"}"},e}();function Uie(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,o=t.getData(),a=o.mapDimensionsAll("defaultedTooltip"),i=a.length,s=t.getRawValue(r),l=Oe(s),u=Oie(t,r),c,d,f,A;if(i>1||l&&!i){var h=Hft(s,t,r,a,u);c=h.inlineValues,d=h.inlineValueTypes,f=h.blocks,A=h.inlineValues[0]}else if(i){var v=o.getDimensionInfo(a[0]);A=c=Gv(o,r,a[0]),d=v.type}else A=c=l?s[0]:s;var p=ZO(t),g=p&&t.name||"",m=o.getName(r),y=n?g:m;return vo("section",{header:g,noHeader:n||!p,sortParam:A,blocks:[vo("nameValue",{markerType:"item",markerColor:u,name:y,noName:!Ei(y),value:c,valueType:d})].concat(f||[])})}function Hft(e,t,r,n,o){var a=t.getData(),i=$i(e,function(d,f,A){var h=a.getDimensionInfo(A);return d=d||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];n.length?z(n,function(d){c(Gv(a,r,d),d)}):z(e,c);function c(d,f){var A=a.getDimensionInfo(f);!A||A.otherDims.tooltip===!1||(i?u.push(vo("nameValue",{markerType:"subItem",markerColor:o,name:A.displayName,value:d,valueType:A.type})):(s.push(d),l.push(A.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ku=br();function K1(e,t){return e.getName(t)||e.getId(t)}var lw="__universalTransitionEnabled",pB=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,o){this.seriesIndex=this.componentIndex,this.dataTask=j0({count:Qft,reset:Vft}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,o);var a=Ku(this).sourceManager=new Die(this);a.prepareSource();var i=this.getInitialData(r,o);KQ(i,this),this.dataTask.context.data=i,Ku(this).dataBeforeProcessed=i,GQ(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(r,n){var o=jm(this),a=o?$p(r):{},i=this.subType;fr.hasClass(i)&&(i+="Series"),Qt(r,n.getTheme().get(this.subType)),Qt(r,this.getDefaultOption()),AA(r,"label",["show"]),this.fillDataTextStyle(r.data),o&&id(r,a,o)},t.prototype.mergeOption=function(r,n){r=Qt(this.option,r,!0),this.fillDataTextStyle(r.data);var o=jm(this);o&&id(this.option,r,o);var a=Ku(this).sourceManager;a.dirty(),a.prepareSource();var i=this.getInitialData(r,n);KQ(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ku(this).dataBeforeProcessed=i,GQ(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(r){if(r&&!Ra(r))for(var n=["show"],o=0;o<r.length;o++)r[o]&&r[o].label&&AA(r[o],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=qP(this);if(n){var o=n.context.data;return r==null?o:o.getLinkedData(r)}else return Ku(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=qP(this);if(n){var o=n.context;o.outputData=r,n!==this.dataTask&&(o.data=r)}Ku(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return pt(r)},t.prototype.getSourceManager=function(){return Ku(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ku(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,o){return Uie({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(xr.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,o){var a=this.ecModel,i=_4.prototype.getColorFromPalette.call(this,r,n,o);return i||(i=a.getColorFromPalette(r,n,o)),i},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var o=this.option.selectedMap;if(o){var a=this.option.selectedMode,i=this.getData(n);if(a==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=K1(i,l);o[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var o=[],a=0;a<r.length;a++)o[0]=r[a],this.isSelected(r[a],n)?this.unselect(o,n):this.select(o,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=sr(r),o=[],a=0;a<n.length;a++){var i=r[n[a]];i>=0&&o.push(i)}return o},t.prototype.isSelected=function(r,n){var o=this.option.selectedMap;if(!o)return!1;var a=this.getData(n);return(o==="all"||o[K1(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[lw])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var o,a,i=this.option,s=i.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){Tt(i.selectedMap)||(i.selectedMap={});for(var u=i.selectedMap,c=0;c<l;c++){var d=n[c],f=K1(r,d);u[f]=!0,this._selectedDataIndicesMap[f]=r.getRawIndex(d)}}else if(s==="single"||s===!0){var A=n[l-1],f=K1(r,A);i.selectedMap=(o={},o[f]=!0,o),this._selectedDataIndicesMap=(a={},a[f]=r.getRawIndex(A),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(o){var a=r.getRawDataItem(o);a&&a.selected&&n.push(o)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return fr.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(fr);Rn(pB,I4);Rn(pB,_4);Koe(pB,fr);function GQ(e){var t=e.name;ZO(e)||(e.name=zft(e)||t)}function zft(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return z(r,function(o){var a=t.getDimensionInfo(o);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Qft(e){return e.model.getRawData().count()}function Vft(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Wft}function Wft(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function KQ(e,t){z(Fm(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ut(Gft,t))})}function Gft(e,t){var r=qP(e);return r&&r.setOutputEnd((t||this).count()),t}function qP(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var o=n.agentStubMap;o&&(n=o.get(e.uid))}return n}}const tn=pB;var D4=function(){function e(){this.group=new Pt,this.uid=Op("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,o){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,o){},e.prototype.updateLayout=function(t,r,n,o){},e.prototype.updateVisual=function(t,r,n,o){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();e4(D4);q_(D4);const cn=D4;function zp(){var e=br();return function(t){var r=e(t),n=t.pipelineContext,o=!!r.large,a=!!r.progressiveRender,i=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(o!==i||a!==s)&&"reset"}}var Nie=br(),Kft=zp(),M4=function(){function e(){this.group=new Pt,this.uid=Op("viewChart"),this.renderTask=j0({plan:jft,reset:Yft}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,o){},e.prototype.highlight=function(t,r,n,o){var a=t.getData(o&&o.dataType);a&&YQ(a,o,"emphasis")},e.prototype.downplay=function(t,r,n,o){var a=t.getData(o&&o.dataType);a&&YQ(a,o,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,o){this.render(t,r,n,o)},e.prototype.updateLayout=function(t,r,n,o){this.render(t,r,n,o)},e.prototype.updateVisual=function(t,r,n,o){this.render(t,r,n,o)},e.prototype.eachRendered=function(t){Cd(this.group,t)},e.markUpdateMethod=function(t,r){Nie(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function jQ(e,t,r){e&&Vm(e)&&(t==="emphasis"?gu:mu)(e,r)}function YQ(e,t,r){var n=hA(e,t),o=t&&t.highlightKey!=null?bct(t.highlightKey):null;n!=null?z(Wr(n),function(a){jQ(e.getItemGraphicEl(a),r,o)}):e.eachItemGraphicEl(function(a){jQ(a,r,o)})}e4(M4);q_(M4);function jft(e){return Kft(e.model)}function Yft(e){var t=e.model,r=e.ecModel,n=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,i=e.view,s=o&&Nie(o).updateMethod,l=a?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](t,r,n,o),Xft[l]}var Xft={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Gr=M4;var DC="\0__throttleOriginMethod",XQ="\0__throttleRate",qQ="\0__throttleType";function gB(e,t,r){var n,o=0,a=0,i=null,s,l,u,c;t=t||0;function d(){a=new Date().getTime(),i=null,e.apply(l,u||[])}var f=function(){for(var A=[],h=0;h<arguments.length;h++)A[h]=arguments[h];n=new Date().getTime(),l=this,u=A;var v=c||t,p=c||r;c=null,s=n-(p?o:a)-v,clearTimeout(i),p?i=setTimeout(d,v):s>=0?d():i=setTimeout(d,-s),o=n};return f.clear=function(){i&&(clearTimeout(i),i=null)},f.debounceNextCall=function(A){c=A},f}function Qp(e,t,r,n){var o=e[t];if(o){var a=o[DC]||o,i=o[qQ],s=o[XQ];if(s!==r||i!==n){if(r==null||!n)return e[t]=a;o=e[t]=gB(a,r,n==="debounce"),o[DC]=a,o[qQ]=n,o[XQ]=r}return o}}function Xm(e,t){var r=e[t];r&&r[DC]&&(r.clear&&r.clear(),e[t]=r[DC])}var ZQ=br(),JQ={itemStyle:vA(Kae,!0),lineStyle:vA(Gae,!0)},qft={lineStyle:"stroke",itemStyle:"fill"};function Hie(e,t){var r=e.visualStyleMapper||JQ[t];return r||(console.warn("Unkown style type '"+t+"'."),JQ.itemStyle)}function zie(e,t){var r=e.visualDrawType||qft[t];return r||(console.warn("Unkown style type '"+t+"'."),"fill")}var Zft={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",o=e.getModel(n),a=Hie(e,n),i=a(o),s=o.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=zie(e,n),u=i[l],c=bt(u)?u:null,d=i.fill==="auto"||i.stroke==="auto";if(!i[l]||c||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=f,r.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||bt(i.fill)?f:i.fill,i.stroke=i.stroke==="auto"||bt(i.stroke)?f:i.stroke}if(r.setVisual("style",i),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(A,h){var v=e.getDataParams(h),p=Pe({},i);p[l]=c(v),A.setItemVisual(h,"style",p)}}}},wg=new Vr,Jft={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",o=Hie(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[n]){wg.option=l[n];var u=o(wg),c=i.ensureUniqueItemVisual(s,"style");Pe(c,u),wg.option.decal&&(i.setItemVisual(s,"decal",wg.option.decal),wg.option.decal.dirty=!0),a in u&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},eAt={performRawSeries:!0,overallReset:function(e){var t=pt();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var o=r.type+"-"+n,a=t.get(o);a||(a={},t.set(o,a)),ZQ(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),o={},a=r.getData(),i=ZQ(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=zie(r,s);a.each(function(u){var c=a.getRawIndex(u);o[c]=u}),n.each(function(u){var c=o[u],d=a.getItemVisual(c,"colorFromPalette");if(d){var f=a.ensureUniqueItemVisual(c,"style"),A=n.getName(u)||u+"",h=n.count();f[l]=r.getColorFromPalette(A,i,h)}})}})}},j1=Math.PI;function tAt(e,t){t=t||{},Ct(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Pt,n=new hr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var o=new pr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new hr({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var i;return t.showSpinner&&(i=new oB({shape:{startAngle:-j1/2,endAngle:-j1/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:j1*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:j1*3/2}).delay(300).start("circularInOut"),r.add(i)),r.resize=function(){var s=o.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var rAt=function(){function e(t,r,n,o){this._stageTaskMap=pt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=n.concat(o)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var o=n.overallTask;o&&o.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),o=n.context,a=!r&&n.progressiveEnabled&&(!o||o.progressiveRender)&&t.__idxInPipeline>n.blockIndex,i=a?n.step:null,s=o&&o.modDataCount,l=s!=null?Math.ceil(s/i):null;return{step:i,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),o=t.getData(),a=o.count(),i=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=pt();t.eachSeries(function(o){var a=o.getProgressive(),i=o.uid;n.set(i,{id:i,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(o,o.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;z(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),i="";Xo(!(o.reset&&o.overallReset),i),o.reset&&this._createSeriesStageTask(o,a,r,n),o.overallReset&&this._createOverallStageTask(o,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,o){var a=t.renderTask,i=a.context;i.model=r,i.ecModel=n,i.api=o,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,o){o=o||{};var a=!1,i=this;z(t,function(l,u){if(!(o.visualType&&o.visualType!==l.visualType)){var c=i._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var A,h=f.agentStubMap;h.each(function(p){s(o,p)&&(p.dirty(),A=!0)}),A&&f.dirty(),i.updatePayload(f,n);var v=i.getPerformArgs(f,o.block);h.each(function(p){p.perform(v)}),f.perform(v)&&(a=!0)}else d&&d.each(function(p,g){s(o,p)&&p.dirty();var m=i.getPerformArgs(p,o.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),i.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,o){var a=this,i=r.seriesTaskMap,s=r.seriesTaskMap=pt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,o).each(c);function c(d){var f=d.uid,A=s.set(f,i&&i.get(f)||j0({plan:sAt,reset:lAt,count:cAt}));A.context={model:d,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(d,A)}},e.prototype._createOverallStageTask=function(t,r,n,o){var a=this,i=r.overallTask=r.overallTask||j0({reset:nAt});i.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:a};var s=i.agentStubMap,l=i.agentStubMap=pt(),u=t.seriesType,c=t.getTargetSeries,d=!0,f=!1,A="";Xo(!t.createOnAllSeries,A),u?n.eachRawSeriesByType(u,h):c?c(n,o).each(h):(d=!1,z(n.getSeries(),h));function h(v){var p=v.uid,g=l.set(p,s&&s.get(p)||(f=!0,j0({reset:oAt,onDirty:iAt})));g.context={model:v,overallProgress:d},g.agent=i,g.__block=d,a._pipe(v,g)}f&&i.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,o=this._pipelineMap.get(n);!o.head&&(o.head=r),o.tail&&o.tail.pipe(r),o.tail=r,r.__idxInPipeline=o.count++,r.__pipeline=o},e.wrapStageHandler=function(t,r){return bt(t)&&(t={overallReset:t,seriesType:dAt(t)}),t.uid=Op("stageHandler"),r&&(t.visualType=r),t},e}();function nAt(e){e.overallReset(e.ecModel,e.api,e.payload)}function oAt(e){return e.overallProgress&&aAt}function aAt(){this.agent.dirty(),this.getDownstream().dirty()}function iAt(){this.agent&&this.agent.dirty()}function sAt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function lAt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Wr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ue(t,function(r,n){return Qie(n)}):uAt}var uAt=Qie(0);function Qie(e){return function(t,r){var n=r.data,o=r.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a<t.end;a++)o.dataEach(n,a);else o&&o.progress&&o.progress(t,n)}}function cAt(e){return e.data.count()}function dAt(e){MC=null;try{e(qm,Vie)}catch(t){}return MC}var qm={},Vie={},MC;Wie(qm,vie);Wie(Vie,pie);qm.eachSeriesByType=qm.eachRawSeriesByType=function(e){MC=e};qm.eachComponent=function(e){e.mainType==="series"&&e.subType&&(MC=e.subType)};function Wie(e,t){for(var r in t.prototype)e[r]=$n}const Gie=rAt;var eV=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const fAt={color:eV,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],eV]};var ea="#B9B8CE",tV="#100C2A",Y1=function(){return{axisLine:{lineStyle:{color:ea}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},rV=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Kie={darkMode:!0,color:rV,backgroundColor:tV,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ea}},textStyle:{color:ea},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ea}},dataZoom:{borderColor:"#71708A",textStyle:{color:ea},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ea}},timeline:{lineStyle:{color:ea},label:{color:ea},controlStyle:{color:ea,borderColor:ea}},calendar:{itemStyle:{color:tV},dayLabel:{color:ea},monthLabel:{color:ea},yearLabel:{color:ea}},timeAxis:Y1(),logAxis:Y1(),valueAxis:Y1(),categoryAxis:Y1(),line:{symbol:"circle"},graph:{color:rV},gauge:{title:{color:ea},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ea},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Kie.categoryAxis.splitLine.show=!1;const AAt=Kie;var hAt=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},o={};if(Je(t)){var a=Zs(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var i=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};z(t,function(l,u){for(var c=!1,d=0;d<i.length;d++){var f=i[d],A=u.lastIndexOf(f);if(A>0&&A===u.length-f.length){var h=u.slice(0,A);h!=="data"&&(r.mainType=h,r[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(o[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:o}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var o=n.targetEl,a=n.packedEvent,i=n.model,s=n.view;if(!i||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,i,"mainType")&&c(l,i,"subType")&&c(l,i,"index","componentIndex")&&c(l,i,"name")&&c(l,i,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,o,a));function c(d,f,A,h){return d[A]==null||f[h||A]===d[A]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ZP=["symbol","symbolSize","symbolRotate","symbolOffset"],nV=ZP.concat(["symbolKeepAspect"]),vAt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},o={},a=!1,i=0;i<ZP.length;i++){var s=ZP[i],l=e.get(s);bt(l)?(a=!0,o[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Pe({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=sr(o);function c(d,f){for(var A=e.getRawValue(f),h=e.getDataParams(f),v=0;v<u.length;v++){var p=u[v];d.setItemVisual(f,p,o[p](A,h))}}return{dataEach:a?c:null}}},pAt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(o,a){for(var i=o.getItemModel(a),s=0;s<nV.length;s++){var l=nV[s],u=i.getShallow(l,!0);u!=null&&o.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function P4(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function tb(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function jie(e,t,r,n){switch(r){case"color":var o=e.ensureUniqueItemVisual(t,"style");o[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function Yie(e,t){function r(n,o){var a=[];return n.eachComponent({mainType:"series",subType:e,query:o},function(i){a.push(i.seriesIndex)}),a}z([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(o,a,i){o=Pe({},o),i.dispatchAction(Pe(o,{type:n[1],seriesIndex:r(a,o)}))})})}function Ch(e,t,r,n,o){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(i){for(var s=i.seriesIndex,l=i.option.selectedMap,u=o.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var d=i.getData(),f=hA(d,o.fromActionPayload);r.trigger(a,{type:a,seriesId:i.id,name:Oe(f)?d.getName(f[0]):d.getName(f),selected:Je(l)?l:Pe({},l)})}})}function gAt(e,t,r){e.on("selectchanged",function(n){var o=r.getModel();n.isFromClick?(Ch("map","selectchanged",t,o,n),Ch("pie","selectchanged",t,o,n)):n.fromAction==="select"?(Ch("map","selected",t,o,n),Ch("pie","selected",t,o,n)):n.fromAction==="unselect"&&(Ch("map","unselected",t,o,n),Ch("pie","unselected",t,o,n))})}function ev(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var mAt=Math.round(Math.random()*9),yAt=typeof Object.defineProperty=="function",bAt=function(){function e(){this._id="__ec_inner_"+mAt++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return yAt?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const xAt=bAt;var wAt=tr.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,o=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+o,n+a),e.lineTo(r-o,n+a),e.closePath()}}),CAt=tr.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,o=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+o,n),e.lineTo(r,n+a),e.lineTo(r-o,n),e.closePath()}}),SAt=tr.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,o=t.width/5*3,a=Math.max(o,t.height),i=o/2,s=i*i/(a-i),l=n-a+i+s,u=Math.asin(s/i),c=Math.cos(u)*i,d=Math.sin(u),f=Math.cos(u),A=i*.6,h=i*.7;e.moveTo(r-c,l+s),e.arc(r,l,i,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-d*A,l+s+f*A,r,n-h,r,n),e.bezierCurveTo(r,n-h,r-c+d*A,l+s+f*A,r-c,l+s),e.closePath()}}),_At=tr.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,o=t.x,a=t.y,i=n/3*2;e.moveTo(o,a),e.lineTo(o+i,a+r),e.lineTo(o,a+r/4*3),e.lineTo(o-i,a+r),e.lineTo(o,a),e.closePath()}}),BAt={line:co,rect:hr,roundRect:hr,square:hr,circle:ws,diamond:CAt,pin:SAt,arrow:_At,triangle:wAt},TAt={line:function(e,t,r,n,o){o.x1=e,o.y1=t+n/2,o.x2=e+r,o.y2=t+n/2},rect:function(e,t,r,n,o){o.x=e,o.y=t,o.width=r,o.height=n},roundRect:function(e,t,r,n,o){o.x=e,o.y=t,o.width=r,o.height=n,o.r=Math.min(r,n)/4},square:function(e,t,r,n,o){var a=Math.min(r,n);o.x=e,o.y=t,o.width=a,o.height=a},circle:function(e,t,r,n,o){o.cx=e+r/2,o.cy=t+n/2,o.r=Math.min(r,n)/2},diamond:function(e,t,r,n,o){o.cx=e+r/2,o.cy=t+n/2,o.width=r,o.height=n},pin:function(e,t,r,n,o){o.x=e+r/2,o.y=t+n/2,o.width=r,o.height=n},arrow:function(e,t,r,n,o){o.x=e+r/2,o.y=t+n/2,o.width=r,o.height=n},triangle:function(e,t,r,n,o){o.cx=e+r/2,o.cy=t+n/2,o.width=r,o.height=n}},PC={};z(BAt,function(e,t){PC[t]=new e});var EAt=tr.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=wC(e,t,r),o=this.shape;return o&&o.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var o=PC[n];o||(n="rect",o=PC[n]),TAt[n](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,r)}}});function IAt(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Nn(e,t,r,n,o,a,i){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=c4(e.slice(8),new Xt(t,r,n,o),i?"center":"cover"):e.indexOf("path://")===0?l=qy(e.slice(7),{},new Xt(t,r,n,o),i?"center":"cover"):l=new EAt({shape:{symbolType:e,x:t,y:r,width:n,height:o}}),l.__isEmptyBrush=s,l.setColor=IAt,a&&l.setColor(a),l}function rb(e){return Oe(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Vp(e,t){if(e!=null)return Oe(e)||(e=[e,e]),[qe(e[0],t[0])||0,qe(Zt(e[1],e[0]),t[1])||0]}function Of(e){return isFinite(e)}function RAt(e,t,r){var n=t.x==null?0:t.x,o=t.x2==null?1:t.x2,a=t.y==null?0:t.y,i=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,o=o*r.width+r.x,a=a*r.height+r.y,i=i*r.height+r.y),n=Of(n)?n:0,o=Of(o)?o:1,a=Of(a)?a:0,i=Of(i)?i:0;var s=e.createLinearGradient(n,a,o,i);return s}function DAt(e,t,r){var n=r.width,o=r.height,a=Math.min(n,o),i=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(i=i*n+r.x,s=s*o+r.y,l=l*a),i=Of(i)?i:.5,s=Of(s)?s:.5,l=l>=0&&Of(l)?l:.5;var u=e.createRadialGradient(i,s,0,i,s,l);return u}function JP(e,t,r){for(var n=t.type==="radial"?DAt(e,t,r):RAt(e,t,r),o=t.colorStops,a=0;a<o.length;a++)n.addColorStop(o[a].offset,o[a].color);return n}function MAt(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function X1(e){return parseInt(e,10)}function tv(e,t,r){var n=["width","height"][t],o=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],i=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[o]||X1(s[n])||X1(e.style[n]))-(X1(s[a])||0)-(X1(s[i])||0)|0}function PAt(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:vr(e)?[e]:Oe(e)?e:null}function F4(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&PAt(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(r=Ue(r,function(a){return a/o}),n/=o)}return[r,n]}var FAt=new vl(!0);function FC(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function oV(e){return typeof e=="string"&&e!=="none"}function kC(e){var t=e.fill;return t!=null&&t!=="none"}function aV(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function iV(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function eF(e,t,r){var n=t4(t.image,t.__image,r);if(Z_(n)){var o=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*$0),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function kAt(e,t,r,n){var o,a=FC(r),i=kC(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||FAt,d=t.__dirty;if(!n){var f=r.fill,A=r.stroke,h=i&&!!f.colorStops,v=a&&!!A.colorStops,p=i&&!!f.image,g=a&&!!A.image,m=void 0,y=void 0,b=void 0,x=void 0,w=void 0;(h||v)&&(w=t.getBoundingRect()),h&&(m=d?JP(e,f,w):t.__canvasFillGradient,t.__canvasFillGradient=m),v&&(y=d?JP(e,A,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),p&&(b=d||!t.__canvasFillPattern?eF(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),g&&(x=d||!t.__canvasStrokePattern?eF(e,A,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=m:p&&(b?e.fillStyle=b:i=!1),v?e.strokeStyle=y:g&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var _,B;e.setLineDash&&r.lineDash&&(o=F4(t),_=o[0],B=o[1]);var T=!0;(u||d&Wh)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),_&&(e.setLineDash(_),e.lineDashOffset=B),n||(r.strokeFirst?(a&&iV(e,r),i&&aV(e,r)):(i&&aV(e,r),a&&iV(e,r))),_&&e.setLineDash([])}function LAt(e,t,r){var n=t.__image=t4(r.image,t.__image,t,t.onload);if(!(!n||!Z_(n))){var o=r.x||0,a=r.y||0,i=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(i==null&&s!=null?i=s*l:s==null&&i!=null?s=i/l:i==null&&s==null&&(i=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,o,a,i,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,d=i-u,f=s-c;e.drawImage(n,u,c,d,f,o,a,i,s)}else e.drawImage(n,o,a,i,s)}}function OAt(e,t,r){var n,o=r.text;if(o!=null&&(o+=""),o){e.font=r.font||nd,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,i=void 0;e.setLineDash&&r.lineDash&&(n=F4(t),a=n[0],i=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=i),r.strokeFirst?(FC(r)&&e.strokeText(o,r.x,r.y),kC(r)&&e.fillText(o,r.x,r.y)):(kC(r)&&e.fillText(o,r.x,r.y),FC(r)&&e.strokeText(o,r.x,r.y)),a&&e.setLineDash([])}}var sV=["shadowBlur","shadowOffsetX","shadowOffsetY"],lV=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xie(e,t,r,n,o){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ca(e,o),a=!0;var i=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(i)?qf.opacity:i}(n||t.blend!==r.blend)&&(a||(Ca(e,o),a=!0),e.globalCompositeOperation=t.blend||qf.blend);for(var s=0;s<sV.length;s++){var l=sV[s];(n||t[l]!==r[l])&&(a||(Ca(e,o),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Ca(e,o),a=!0),e.shadowColor=t.shadowColor||qf.shadowColor),a}function uV(e,t,r,n,o){var a=Zm(t,o.inHover),i=n?null:r&&Zm(r,o.inHover)||{};if(a===i)return!1;var s=Xie(e,a,i,n,o);if((n||a.fill!==i.fill)&&(s||(Ca(e,o),s=!0),oV(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==i.stroke)&&(s||(Ca(e,o),s=!0),oV(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==i.opacity)&&(s||(Ca(e,o),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Ca(e,o),s=!0),e.lineWidth=u)}for(var c=0;c<lV.length;c++){var d=lV[c],f=d[0];(n||a[f]!==i[f])&&(s||(Ca(e,o),s=!0),e[f]=a[f]||d[1])}return s}function $At(e,t,r,n,o){return Xie(e,Zm(t,o.inHover),r&&Zm(r,o.inHover),n,o)}function qie(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function UAt(e,t,r){for(var n=!1,o=0;o<e.length;o++){var a=e[o];n=n||a.isZeroArea(),qie(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function NAt(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var cV=1,dV=2,fV=3,AV=4;function HAt(e){var t=kC(e),r=FC(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ca(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Zm(e,t){return t&&e.__hoverStyle||e.style}function k4(e,t){$f(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function $f(e,t,r,n){var o=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Qa,t.__isRendered=!1;return}var a=t.__clipPaths,i=r.prevElClipPaths,s=!1,l=!1;if((!i||MAt(a,i))&&(i&&i.length&&(Ca(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ca(e,r),e.save(),UAt(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof tr&&t.autoBatch&&HAt(t.style);s||NAt(o,u.transform)?(Ca(e,r),qie(e,t)):c||Ca(e,r);var d=Zm(t,r.inHover);t instanceof tr?(r.lastDrawType!==cV&&(l=!0,r.lastDrawType=cV),uV(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),kAt(e,t,d,c),c&&(r.batchFill=d.fill||"",r.batchStroke=d.stroke||"")):t instanceof zm?(r.lastDrawType!==fV&&(l=!0,r.lastDrawType=fV),uV(e,t,u,l,r),OAt(e,t,d)):t instanceof _o?(r.lastDrawType!==dV&&(l=!0,r.lastDrawType=dV),$At(e,t,u,l,r),LAt(e,t,d)):t.getTemporalDisplayables&&(r.lastDrawType!==AV&&(l=!0,r.lastDrawType=AV),zAt(e,t,r)),c&&n&&Ca(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function zAt(e,t,r){var n=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},i,s;for(i=t.getCursor(),s=n.length;i<s;i++){var l=n[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),$f(e,l,a,i===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),$f(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var KE=new xAt,hV=new Vy(100),vV=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Kv(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),o=n.painter.type==="svg";e.dirty&&KE.delete(e);var a=KE.get(e);if(a)return a;var i=Ct(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});i.backgroundColor==="none"&&(i.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=i.rotation,s.scaleX=s.scaleY=o?1:1/r,KE.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],d=!0,f=0;f<vV.length;++f){var A=i[vV[f]];if(A!=null&&!Oe(A)&&!Je(A)&&!vr(A)&&typeof A!="boolean"){d=!1;break}c.push(A)}var h;if(d){h=c.join(",")+(o?"-svg":"");var v=hV.get(h);v&&(o?u.svgElement=v:u.image=v)}var p=Jie(i.dashArrayX),g=QAt(i.dashArrayY),m=Zie(i.symbol),y=VAt(p),b=ese(g),x=!o&&ys.createCanvas(),w=o&&{tag:"g",attrs:{},key:"dcl",children:[]},C=B(),_;x&&(x.width=C.width*r,x.height=C.height*r,_=x.getContext("2d")),T(),d&&hV.put(h,x||w),u.image=x,u.svgElement=w,u.svgWidth=C.width,u.svgHeight=C.height;function B(){for(var E=1,I=0,R=y.length;I<R;++I)E=R6(E,y[I]);for(var D=1,I=0,R=m.length;I<R;++I)D=R6(D,m[I].length);E*=D;var F=b*y.length*m.length;return{width:Math.max(1,Math.min(E,i.maxTileWidth)),height:Math.max(1,Math.min(F,i.maxTileHeight))}}function T(){_&&(_.clearRect(0,0,x.width,x.height),i.backgroundColor&&(_.fillStyle=i.backgroundColor,_.fillRect(0,0,x.width,x.height)));for(var E=0,I=0;I<g.length;++I)E+=g[I];if(E<=0)return;for(var R=-b,D=0,F=0,M=0;R<C.height;){if(D%2===0){for(var $=F/2%m.length,O=0,Q=0,V=0;O<C.width*2;){for(var W=0,I=0;I<p[M].length;++I)W+=p[M][I];if(W<=0)break;if(Q%2===0){var Z=(1-i.symbolSize)*.5,te=O+p[M][Q]*Z,ae=R+g[D]*Z,re=p[M][Q]*i.symbolSize,le=g[D]*i.symbolSize,se=V/2%m[$].length;ce(te,ae,re,le,m[$][se])}O+=p[M][Q],++V,++Q,Q===p[M].length&&(Q=0)}++M,M===p.length&&(M=0)}R+=g[D],++F,++D,D===g.length&&(D=0)}function ce(be,de,pe,K,U){var k=o?1:r,J=Nn(U,be*k,de*k,pe*k,K*k,i.color,i.symbolKeepAspect);if(o){var ee=n.painter.renderOneToVNode(J);ee&&w.children.push(ee)}else k4(_,J)}}}}function Zie(e){if(!e||e.length===0)return[["rect"]];if(Je(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Je(e[r])){t=!1;break}if(t)return Zie([e]);for(var n=[],r=0;r<e.length;++r)Je(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Jie(e){if(!e||e.length===0)return[[0,0]];if(vr(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!vr(e[n])){r=!1;break}if(r)return Jie([e]);for(var o=[],n=0;n<e.length;++n)if(vr(e[n])){var t=Math.ceil(e[n]);o.push([t,t])}else{var t=Ue(e[n],function(s){return Math.ceil(s)});t.length%2===1?o.push(t.concat(t)):o.push(t)}return o}function QAt(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(vr(e)){var t=Math.ceil(e);return[t,t]}var r=Ue(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function VAt(e){return Ue(e,function(t){return ese(t)})}function ese(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function WAt(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(i){var s=n.getItemVisual(i,"decal");if(s){var l=n.ensureUniqueItemVisual(i,"style");l.decal=Kv(s,t)}});var o=n.getVisual("decal");if(o){var a=n.getVisual("style");a.decal=Kv(o,t)}}})}var GAt=new Wi;const ns=GAt;var tse={};function KAt(e,t){tse[e]=t}function rse(e){return tse[e]}var jAt=typeof window!="undefined",YAt="5.3.3",XAt={zrender:"5.3.2"},qAt=1,ZAt=800,JAt=900,eht=1e3,tht=2e3,rht=5e3,nse=1e3,nht=1100,L4=2e3,ose=3e3,oht=4e3,mB=4500,aht=4600,iht=5e3,sht=6e3,ase=7e3,ise={PROCESSOR:{FILTER:eht,SERIES_FILTER:ZAt,STATISTIC:rht},VISUAL:{LAYOUT:nse,PROGRESSIVE_LAYOUT:nht,GLOBAL:L4,CHART:ose,POST_CHART_LAYOUT:aht,COMPONENT:oht,BRUSH:iht,CHART_ITEM:mB,ARIA:sht,DECAL:ase}},zo="__flagInMainProcess",va="__pendingUpdate",jE="__needsUpdateStatus",pV=/^[a-zA-Z0-9_]+$/,YE="__connectUpdateStatus",gV=0,lht=1,uht=2;function sse(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return use(this,e,t)}}function lse(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return use(this,e,t)}}function use(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Wi.prototype[t].apply(e,r)}var cse=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Wi),dse=cse.prototype;dse.on=lse("on");dse.off=lse("off");var Sh,XE,q1,ju,qE,ZE,JE,Cg,Sg,mV,yV,eI,bV,Z1,xV,fse,ui,wV,LC=function(e){we(t,e);function t(r,n,o){var a=e.call(this,new hAt)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],o=o||{},Je(n)&&(n=Ase[n]),a._dom=r;var i="canvas",s=!1,l=a._zr=EP(r,{renderer:o.renderer||i,devicePixelRatio:o.devicePixelRatio,width:o.width,height:o.height,ssr:o.ssr,useDirtyRect:o.useDirtyRect==null?s:o.useDirtyRect});a._ssr=o.ssr,a._throttledZrFlush=gB(at(l.flush,l),17),n=It(n),n&&mie(n,!0),a._theme=n,a._locale=gdt(o.locale||jae),a._coordSysMgr=new Hp;var u=a._api=xV(a);function c(d,f){return d.__prio-f.__prio}return Xx($C,c),Xx(tF,c),a._scheduler=new Gie(a,u,tF,$C),a._messageCenter=new cse,a._initEvents(),a.resize=at(a.resize,a),l.animation.on("frame",a._onframe,a),mV(l,a),yV(l,a),Pm(a),a}return t.prototype._onframe=function(){if(!this._disposed){wV(this);var r=this._scheduler;if(this[va]){var n=this[va].silent;this[zo]=!0;try{Sh(this),ju.update.call(this,null,this[va].updateParams)}catch(l){throw this[zo]=!1,this[va]=null,l}this._zr.flush(),this[zo]=!1,this[va]=null,Cg.call(this,n),Sg.call(this,n)}else if(r.unfinished){var o=qAt,a=this._model,i=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ZE(this,a),r.performVisualTasks(a),Z1(this,this._model,i,"remain",{}),o-=+new Date-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,o){if(!this[zo]){if(this._disposed){this.id;return}var a,i,s;if(Tt(n)&&(o=n.lazyUpdate,a=n.silent,i=n.replaceMerge,s=n.transition,n=n.notMerge),this[zo]=!0,!this._model||n){var l=new Jdt(this._api),u=this._theme,c=this._model=new vie;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:i},rF);var d={seriesTransition:s,optionChanged:!0};if(o)this[va]={silent:a,updateParams:d},this[zo]=!1,this.getZr().wakeUp();else{try{Sh(this),ju.update.call(this,null,d)}catch(f){throw this[va]=null,this[zo]=!1,f}this._ssr||this._zr.flush(),this[va]=null,this[zo]=!1,Cg.call(this,a),Sg.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||jAt&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(xr.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return z(n,function(o){o.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,o=this._model,a=[],i=this;z(n,function(l){o.eachComponent({mainType:l},function(u){var c=i._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return z(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",o=this.group,a=Math.min,i=Math.max,s=1/0;if(UC[o]){var l=s,u=s,c=-s,d=-s,f=[],A=r&&r.pixelRatio||this.getDevicePixelRatio();z(eA,function(y,b){if(y.group===o){var x=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(It(r)),w=y.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=i(w.right,c),d=i(w.bottom,d),f.push({dom:x,left:w.left,top:w.top})}}),l*=A,u*=A,c*=A,d*=A;var h=c-l,v=d-u,p=ys.createCanvas(),g=EP(p,{renderer:n?"svg":"canvas"});if(g.resize({width:h,height:v}),n){var m="";return z(f,function(y){var b=y.left-l,x=y.top-u;m+='<g transform="translate('+b+","+x+')">'+y.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new hr({shape:{x:0,y:0,width:h,height:v},style:{fill:r.connectedBackgroundColor}})),z(f,function(y){var b=new _o({style:{x:y.left*A-l,y:y.top*A-u,image:y.dom}});g.add(b)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return qE(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return qE(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var o=this._model,a,i=Q0(o,r);return z(i,function(s,l){l.indexOf("Models")>=0&&z(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(a=a||d.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var o=this._model,a=Q0(o,r,{defaultMainType:"series"}),i=a.seriesModel,s=i.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?P4(s,l,n):tb(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;z(cht,function(n){var o=function(a){var i=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ev(s,function(h){var v=$t(h);if(v&&v.dataIndex!=null){var p=v.dataModel||i.getSeriesByIndex(v.seriesIndex);return l=p&&p.getDataParams(v.dataIndex,v.dataType)||{},!0}else if(v.eventData)return l=Pe({},v.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&i.getComponent(c,d),A=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:A},r.trigger(n,l)}};o.zrEventfulCallAtLast=!0,r._zr.on(n,o,r)}),z(Y0,function(n,o){r._messageCenter.on(o,function(a){this.trigger(o,a)},r)}),z(["selectchanged"],function(n){r._messageCenter.on(n,function(o){this.trigger(n,o)},r)}),gAt(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Voe(this.getDom(),$4,"");var n=this,o=n._api,a=n._model;z(n._componentsViews,function(i){i.dispose(a,o)}),z(n._chartsViews,function(i){i.dispose(a,o)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete eA[n.id]},t.prototype.resize=function(r){if(!this[zo]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var o=n.resetOption("media"),a=r&&r.silent;this[va]&&(a==null&&(a=this[va].silent),o=!0,this[va]=null),this[zo]=!0;try{o&&Sh(this),ju.update.call(this,{type:"resize",animation:Pe({duration:0},r&&r.animation)})}catch(i){throw this[zo]=!1,i}this[zo]=!1,Cg.call(this,a),Sg.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Tt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!nF[r]){var o=nF[r](this._api,n),a=this._zr;this._loadingFX=o,a.add(o)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Pe({},r);return n.type=Y0[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Tt(n)||(n={silent:!!n}),!!OC[r.type]&&this._model){if(this[zo]){this._pendingActions.push(r);return}var o=n.silent;JE.call(this,r,o);var a=n.flush;a?this._zr.flush():a!==!1&&xr.browser.weChat&&this._throttledZrFlush(),Cg.call(this,o),Sg.call(this,o)}},t.prototype.updateLabelLayout=function(){ns.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,o=this.getModel(),a=o.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Sh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),XE(d,!0),XE(d,!1),f.plan()},XE=function(d,f){for(var A=d._model,h=d._scheduler,v=f?d._componentsViews:d._chartsViews,p=f?d._componentsMap:d._chartsMap,g=d._zr,m=d._api,y=0;y<v.length;y++)v[y].__alive=!1;f?A.eachComponent(function(w,C){w!=="series"&&b(C)}):A.eachSeries(b);function b(w){var C=w.__requireNewView;w.__requireNewView=!1;var _="_ec_"+w.id+"_"+w.type,B=!C&&p[_];if(!B){var T=Zs(w.type),E=f?cn.getClass(T.main,T.sub):Gr.getClass(T.sub);B=new E,B.init(A,m),p[_]=B,v.push(B),g.add(B.group)}w.__viewId=B.__id=_,B.__alive=!0,B.__model=w,B.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!f&&h.prepareView(B,w,A,m)}for(var y=0;y<v.length;){var x=v[y];x.__alive?y++:(!f&&x.renderTask.dispose(),g.remove(x.group),x.dispose(A,m),v.splice(y,1),p[x.__id]===x&&delete p[x.__id],x.__id=x.group.__ecComponentInfo=null)}},q1=function(d,f,A,h,v){var p=d._model;if(p.setUpdatePayload(A),!h){z([].concat(d._componentsViews).concat(d._chartsViews),x);return}var g={};g[h+"Id"]=A[h+"Id"],g[h+"Index"]=A[h+"Index"],g[h+"Name"]=A[h+"Name"];var m={mainType:h,query:g};v&&(m.subType=v);var y=A.excludeSeriesId,b;y!=null&&(b=pt(),z(Wr(y),function(w){var C=ro(w,null);C!=null&&b.set(C,!0)})),p&&p.eachComponent(m,function(w){var C=b&&b.get(w.id)!==null;if(!C)if(oQ(A))if(w instanceof tn)A.type===Zf&&!A.notBlur&&!w.get(["emphasis","disabled"])&&fct(w,A,d._api);else{var _=i4(w.mainType,w.componentIndex,A.name,d._api),B=_.focusSelf,T=_.dispatchers;A.type===Zf&&B&&!A.notBlur&&OP(w.mainType,w.componentIndex,d._api),T&&z(T,function(E){A.type===Zf?gu(E):mu(E)})}else UP(A)&&w instanceof tn&&(vct(w,A,d._api),rQ(w),ui(d))},d),p&&p.eachComponent(m,function(w){var C=b&&b.get(w.id)!==null;C||x(d[h==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},d);function x(w){w&&w.__alive&&w[f]&&w[f](w.__model,p,d._api,A)}},ju={prepareAndUpdate:function(d){Sh(this),ju.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,f){var A=this._model,h=this._api,v=this._zr,p=this._coordSysMgr,g=this._scheduler;if(A){A.setUpdatePayload(d),g.restoreData(A,d),g.performSeriesTasks(A),p.create(A,h),g.performDataProcessorTasks(A,d),ZE(this,A),p.update(A,h),r(A),g.performVisualTasks(A,d),eI(this,A,h,d,f);var m=A.get("backgroundColor")||"transparent",y=A.get("darkMode");v.setBackgroundColor(m),y!=null&&y!=="auto"&&v.setDarkMode(y),ns.trigger("afterupdate",A,h)}},updateTransform:function(d){var f=this,A=this._model,h=this._api;if(A){A.setUpdatePayload(d);var v=[];A.eachComponent(function(g,m){if(g!=="series"){var y=f.getViewOfComponentModel(m);if(y&&y.__alive)if(y.updateTransform){var b=y.updateTransform(m,A,h,d);b&&b.update&&v.push(y)}else v.push(y)}});var p=pt();A.eachSeries(function(g){var m=f._chartsMap[g.__viewId];if(m.updateTransform){var y=m.updateTransform(g,A,h,d);y&&y.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),r(A),this._scheduler.performVisualTasks(A,d,{setDirty:!0,dirtyMap:p}),Z1(this,A,h,d,{},p),ns.trigger("afterupdate",A,h)}},updateView:function(d){var f=this._model;f&&(f.setUpdatePayload(d),Gr.markUpdateMethod(d,"updateView"),r(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0}),eI(this,f,this._api,d,{}),ns.trigger("afterupdate",f,this._api))},updateVisual:function(d){var f=this,A=this._model;A&&(A.setUpdatePayload(d),A.eachSeries(function(h){h.getData().clearAllVisual()}),Gr.markUpdateMethod(d,"updateVisual"),r(A),this._scheduler.performVisualTasks(A,d,{visualType:"visual",setDirty:!0}),A.eachComponent(function(h,v){if(h!=="series"){var p=f.getViewOfComponentModel(v);p&&p.__alive&&p.updateVisual(v,A,f._api,d)}}),A.eachSeries(function(h){var v=f._chartsMap[h.__viewId];v.updateVisual(h,A,f._api,d)}),ns.trigger("afterupdate",A,this._api))},updateLayout:function(d){ju.update.call(this,d)}},qE=function(d,f,A,h){if(d._disposed){d.id;return}for(var v=d._model,p=d._coordSysMgr.getCoordinateSystems(),g,m=Q0(v,A),y=0;y<p.length;y++){var b=p[y];if(b[f]&&(g=b[f](v,m,h))!=null)return g}},ZE=function(d,f){var A=d._chartsMap,h=d._scheduler;f.eachSeries(function(v){h.updateStreamModes(v,A[v.__viewId])})},JE=function(d,f){var A=this,h=this.getModel(),v=d.type,p=d.escapeConnect,g=OC[v],m=g.actionInfo,y=(m.update||"update").split(":"),b=y.pop(),x=y[0]!=null&&Zs(y[0]);this[zo]=!0;var w=[d],C=!1;d.batch&&(C=!0,w=Ue(d.batch,function(D){return D=Ct(Pe({},D),d),D.batch=null,D}));var _=[],B,T=UP(d),E=oQ(d);if(E&&gae(this._api),z(w,function(D){if(B=g.action(D,A._model,A._api),B=B||Pe({},D),B.type=m.event||B.type,_.push(B),E){var F=JO(d),M=F.queryOptionMap,$=F.mainTypeSpecified,O=$?M.keys()[0]:"series";q1(A,b,D,O),ui(A)}else T?(q1(A,b,D,"series"),ui(A)):x&&q1(A,b,D,x.main,x.sub)}),b!=="none"&&!E&&!T&&!x)try{this[va]?(Sh(this),ju.update.call(this,d),this[va]=null):ju[b].call(this,d)}catch(D){throw this[zo]=!1,D}if(C?B={type:m.event||v,escapeConnect:p,batch:_}:B=_[0],this[zo]=!1,!f){var I=this._messageCenter;if(I.trigger(B.type,B),T){var R={type:"selectchanged",escapeConnect:p,selected:pct(h),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};I.trigger(R.type,R)}}},Cg=function(d){for(var f=this._pendingActions;f.length;){var A=f.shift();JE.call(this,A,d)}},Sg=function(d){!d&&this.trigger("updated")},mV=function(d,f){d.on("rendered",function(A){f.trigger("rendered",A),d.animation.isFinished()&&!f[va]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},yV=function(d,f){d.on("mouseover",function(A){var h=A.target,v=ev(h,Vm);v&&(Act(v,A,f._api),ui(f))}).on("mouseout",function(A){var h=A.target,v=ev(h,Vm);v&&(hct(v,A,f._api),ui(f))}).on("click",function(A){var h=A.target,v=ev(h,function(m){return $t(m).dataIndex!=null},!0);if(v){var p=v.selected?"unselect":"select",g=$t(v);f._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(d){d.clearColorPalette(),d.eachSeries(function(f){f.clearColorPalette()})}function n(d){var f=[],A=[],h=!1;if(d.eachComponent(function(m,y){var b=y.get("zlevel")||0,x=y.get("z")||0,w=y.getZLevelKey();h=h||!!w,(m==="series"?A:f).push({zlevel:b,z:x,idx:y.componentIndex,type:m,key:w})}),h){var v=f.concat(A),p,g;Xx(v,function(m,y){return m.zlevel===y.zlevel?m.z-y.z:m.zlevel-y.zlevel}),z(v,function(m){var y=d.getComponent(m.type,m.idx),b=m.zlevel,x=m.key;p!=null&&(b=Math.max(p,b)),x?(b===p&&x!==g&&b++,g=x):g&&(b===p&&b++,g=""),p=b,y.setZLevel(b)})}}eI=function(d,f,A,h,v){n(f),bV(d,f,A,h,v),z(d._chartsViews,function(p){p.__alive=!1}),Z1(d,f,A,h,v),z(d._chartsViews,function(p){p.__alive||p.remove(f,A)})},bV=function(d,f,A,h,v,p){z(p||d._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,f,A,h),s(m,g),c(m,g)})},Z1=function(d,f,A,h,v,p){var g=d._scheduler;v=Pe(v||{},{updatedSeries:f.getSeries()}),ns.trigger("series:beforeupdate",f,A,v);var m=!1;f.eachSeries(function(y){var b=d._chartsMap[y.__viewId];b.__alive=!0;var x=b.renderTask;g.updatePayload(x,h),u(y,b),p&&p.get(y.uid)&&x.dirty(),x.perform(g.getPerformArgs(x))&&(m=!0),b.group.silent=!!y.get("silent"),i(y,b),rQ(y)}),g.unfinished=m||g.unfinished,ns.trigger("series:layoutlabels",f,A,v),ns.trigger("series:transition",f,A,v),f.eachSeries(function(y){var b=d._chartsMap[y.__viewId];s(y,b),c(y,b)}),a(d,f),ns.trigger("series:afterupdate",f,A,v)},ui=function(d){d[jE]=!0,d.getZr().wakeUp()},wV=function(d){d[jE]&&(d.getZr().storage.traverse(function(f){yv(f)||o(f)}),d[jE]=!1)};function o(d){for(var f=[],A=d.currentStates,h=0;h<A.length;h++){var v=A[h];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}d.selected&&d.states.select&&f.push("select"),d.hoverState===tB&&d.states.emphasis?f.push("emphasis"):d.hoverState===jy&&d.states.blur&&f.push("blur"),d.useStates(f)}function a(d,f){var A=d._zr,h=A.storage,v=0;h.traverse(function(p){p.isGroup||v++}),v>f.get("hoverLayerThreshold")&&!xr.node&&!xr.worker&&f.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=d._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function i(d,f){var A=d.get("blendMode")||null;f.eachRendered(function(h){h.isGroup||(h.style.blend=A)})}function s(d,f){if(!d.preventAutoZ){var A=d.get("z")||0,h=d.get("zlevel")||0;f.eachRendered(function(v){return l(v,A,h,-1/0),!0})}}function l(d,f,A,h){var v=d.getTextContent(),p=d.getTextGuideLine(),g=d.isGroup;if(g)for(var m=d.childrenRef(),y=0;y<m.length;y++)h=Math.max(l(m[y],f,A,h),h);else d.z=f,d.zlevel=A,h=Math.max(d.z2,h);if(v&&(v.z=f,v.zlevel=A,isFinite(h)&&(v.z2=h+2)),p){var b=d.textGuideLineConfig;p.z=f,p.zlevel=A,isFinite(h)&&(p.z2=h+(b&&b.showAbove?1:-1))}return h}function u(d,f){f.eachRendered(function(A){if(!yv(A)){var h=A.getTextContent(),v=A.getTextGuideLine();A.stateTransition&&(A.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),A.hasState()?(A.prevStates=A.currentStates,A.clearStates()):A.prevStates&&(A.prevStates=null)}})}function c(d,f){var A=d.getModel("stateAnimation"),h=d.isAnimationEnabled(),v=A.get("duration"),p=v>0?{duration:v,delay:A.get("delay"),easing:A.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(yv(g))return;if(g instanceof tr&&xct(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(h){g.stateTransition=p;var y=g.getTextContent(),b=g.getTextGuideLine();y&&(y.stateTransition=p),b&&(b.stateTransition=p)}g.__dirty&&o(g)}})}xV=function(d){return new(function(f){we(A,f);function A(){return f!==null&&f.apply(this,arguments)||this}return A.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},A.prototype.getComponentByElement=function(h){for(;h;){var v=h.__ecComponentInfo;if(v!=null)return d._model.getComponent(v.mainType,v.index);h=h.parent}},A.prototype.enterEmphasis=function(h,v){gu(h,v),ui(d)},A.prototype.leaveEmphasis=function(h,v){mu(h,v),ui(d)},A.prototype.enterBlur=function(h){Aae(h),ui(d)},A.prototype.leaveBlur=function(h){a4(h),ui(d)},A.prototype.enterSelect=function(h){hae(h),ui(d)},A.prototype.leaveSelect=function(h){vae(h),ui(d)},A.prototype.getModel=function(){return d.getModel()},A.prototype.getViewOfComponentModel=function(h){return d.getViewOfComponentModel(h)},A.prototype.getViewOfSeriesModel=function(h){return d.getViewOfSeriesModel(h)},A}(pie))(d)},fse=function(d){function f(A,h){for(var v=0;v<A.length;v++){var p=A[v];p[YE]=h}}z(Y0,function(A,h){d._messageCenter.on(h,function(v){if(UC[d.group]&&d[YE]!==gV){if(v&&v.escapeConnect)return;var p=d.makeActionFromEvent(v),g=[];z(eA,function(m){m!==d&&m.group===d.group&&g.push(m)}),f(g,gV),z(g,function(m){m[YE]!==lht&&m.dispatchAction(p)}),f(g,uht)}})})}}(),t}(Wi),O4=LC.prototype;O4.on=sse("on");O4.off=sse("off");O4.one=function(e,t,r){var n=this;function o(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];t&&t.apply&&t.apply(this,a),n.off(e,o)}this.on.call(this,e,o,r)};var cht=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var OC={},Y0={},tF=[],rF=[],$C=[],Ase={},nF={},eA={},UC={},dht=+new Date-0,fht=+new Date-0,$4="_echarts_instance_";function Aht(e,t,r){var n=!(r&&r.ssr);if(n){var o=U4(e);if(o)return o}var a=new LC(e,t,r);return a.id="ec_"+dht++,eA[a.id]=a,n&&Voe(e,$4,a.id),fse(a),ns.trigger("afterinit",a),a}function hht(e){if(Oe(e)){var t=e;e=null,z(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+fht++,z(t,function(r){r.group=e})}return UC[e]=!0,e}function hse(e){UC[e]=!1}var vht=hse;function pht(e){Je(e)?e=eA[e]:e instanceof LC||(e=U4(e)),e instanceof LC&&!e.isDisposed()&&e.dispose()}function U4(e){return eA[sut(e,$4)]}function ght(e){return eA[e]}function N4(e,t){Ase[e]=t}function H4(e){Yt(rF,e)<0&&rF.push(e)}function z4(e,t){Q4(tF,e,t,tht)}function vse(e){yB("afterinit",e)}function pse(e){yB("afterupdate",e)}function yB(e,t){ns.on(e,t)}function Es(e,t,r){bt(t)&&(r=t,t="");var n=Tt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Y0[t]&&(Xo(pV.test(n)&&pV.test(t)),OC[n]||(OC[n]={action:r,actionInfo:e}),Y0[t]=n)}function gse(e,t){Hp.register(e,t)}function mht(e){var t=Hp.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function mse(e,t){Q4($C,e,t,nse,"layout")}function _d(e,t){Q4($C,e,t,ose,"visual")}var CV=[];function Q4(e,t,r,n,o){if((bt(t)||Tt(t))&&(r=t,t=n),!(Yt(CV,r)>=0)){CV.push(r);var a=Gie.wrapStageHandler(r,o);a.__prio=t,a.__raw=r,e.push(a)}}function V4(e,t){nF[e]=t}function yht(e){Yne({createCanvas:e})}function yse(e,t,r){var n=rse("registerMap");n&&n(e,t,r)}function bht(e){var t=rse("getMap");return t&&t(e)}var bse=Tft;_d(L4,Zft);_d(mB,Jft);_d(mB,eAt);_d(L4,vAt);_d(mB,pAt);_d(ase,WAt);H4(mie);z4(JAt,sft);V4("default",tAt);Es({type:Zf,event:Zf,update:Zf},$n);Es({type:nw,event:nw,update:nw},$n);Es({type:V0,event:V0,update:V0},$n);Es({type:ow,event:ow,update:ow},$n);Es({type:W0,event:W0,update:W0},$n);N4("light",fAt);N4("dark",AAt);var xht={},SV=[],wht={registerPreprocessor:H4,registerProcessor:z4,registerPostInit:vse,registerPostUpdate:pse,registerUpdateLifecycle:yB,registerAction:Es,registerCoordinateSystem:gse,registerLayout:mse,registerVisual:_d,registerTransform:bse,registerLoading:V4,registerMap:yse,registerImpl:KAt,PRIORITY:ise,ComponentModel:fr,ComponentView:cn,SeriesModel:tn,ChartView:Gr,registerComponentModel:function(e){fr.registerClass(e)},registerComponentView:function(e){cn.registerClass(e)},registerSeriesModel:function(e){tn.registerClass(e)},registerChartView:function(e){Gr.registerClass(e)},registerSubTypeDefaulter:function(e,t){fr.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Poe(e,t)}};function Jt(e){if(Oe(e)){z(e,function(t){Jt(t)});return}Yt(SV,e)>=0||(SV.push(e),bt(e)&&(e={install:e}),e.install(wht))}function _g(e){return e==null?0:e.length||1}function _V(e){return e}var Cht=function(){function e(t,r,n,o,a,i){this._old=t,this._new=r,this._oldKeyGetter=n||_V,this._newKeyGetter=o||_V,this.context=a,this._diffModeMultiple=i==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},o=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,o,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var i=0;i<t.length;i++){var s=o[i],l=n[s],u=_g(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,i)}else u===1?(n[s]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},o={},a=[],i=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,o,i,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=o[l],d=_g(u),f=_g(c);if(d>1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),o[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),o[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),o[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),o[l]=null;else if(d>1)for(var A=0;A<d;A++)this._remove&&this._remove(u[A]);else this._remove&&this._remove(u)}this._performRestAdd(i,o)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var o=t[n],a=r[o],i=_g(a);if(i>1)for(var s=0;s<i;s++)this._add&&this._add(a[s]);else i===1&&this._add&&this._add(a);r[o]=null}},e.prototype._initIndexMap=function(t,r,n,o){for(var a=this._diffModeMultiple,i=0;i<t.length;i++){var s="_ec_"+this[o](t[i],i);if(a||(n[i]=s),!!r){var l=r[s],u=_g(l);u===0?(r[s]=i,a&&n.push(s)):u===1?r[s]=[l,i]:l.push(i)}}},e}();const yu=Cht;var Sht=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function _ht(e,t){var r={},n=r.encode={},o=pt(),a=[],i=[],s={};z(e.dimensions,function(f){var A=e.getDimensionInfo(f),h=A.coordDim;if(h){var v=A.coordDimIndex;tI(n,h)[v]=f,A.isExtraCoord||(o.set(h,1),Bht(A.type)&&(a[0]=f),tI(s,h)[v]=e.getDimensionIndex(A.name)),A.defaultTooltip&&i.push(f)}sie.each(function(p,g){var m=tI(n,g),y=A.otherDims[g];y!=null&&y!==!1&&(m[y]=A.name)})});var l=[],u={};o.each(function(f,A){var h=n[A];u[A]=h[0],l=l.concat(h)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Ue(l,function(f){return e.getDimensionInfo(f).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var d=n.tooltip;return d&&d.length?i=d.slice():i.length||(i=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=i,r.userOutput=new Sht(s,t),r}function tI(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function NC(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Bht(e){return!(e==="ordinal"||e==="time")}var Tht=function(){function e(t){this.otherDims={},t!=null&&Pe(this,t)}return e}();const uw=Tht;var Eht=br(),Iht={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},xse=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Sse(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Zt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=bie(this.source),n=!_se(t),o="",a=[],i=0,s=0;i<t;i++){var l=void 0,u=void 0,c=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===i)l=r?d.name:null,u=d.type,c=d.ordinalMeta,s++;else{var f=this.getSourceDimension(i);f&&(l=r?f.name:null,u=f.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!d||!d.isCalculationCoord)&&(o+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),o+="$",o+=Iht[u]||"f",c&&(o+=c.uid),o+="$"}var A=this.source,h=[A.seriesLayoutBy,A.startIndex,o].join("$$");return{dimensions:a,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var o=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(o=a.name),n++;else{var i=this.getSourceDimension(r);i&&(o=i.name)}t.push(o)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function wse(e){return e instanceof xse}function Cse(e){for(var t=pt(),r=0;r<(e||[]).length;r++){var n=e[r],o=Tt(n)?n.name:n;o!=null&&t.get(o)==null&&t.set(o,r)}return t}function Sse(e){var t=Eht(e);return t.dimNameMap||(t.dimNameMap=Cse(e.dimensionsDefine))}function _se(e){return e>30}var Bg=Tt,Yu=Ue,Rht=typeof Int32Array=="undefined"?Array:Int32Array,Dht="e\0\0",BV=-1,Mht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Pht=["_approximateExtent"],TV,J1,Tg,Eg,rI,ex,nI,Fht=function(){function e(t,r){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"];var n,o=!1;wse(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"];for(var a={},i=[],s={},l=!1,u={},c=0;c<n.length;c++){var d=n[c],f=Je(d)?new uw({name:d}):d instanceof uw?d:new uw(d),A=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=A,f.coordDimIndex=0);var h=f.otherDims=f.otherDims||{};i.push(A),a[A]=f,u[A]!=null&&(l=!0),f.createInvertedIndices&&(s[A]=[]),h.itemName===0&&(this._nameDimIdx=c),h.itemId===0&&(this._idDimIdx=c),o&&(f.storeDimIndex=c)}if(this.dimensions=i,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=pt();z(i,function(p){v.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var o=this._schema.getSourceDimension(r);if(o)return o.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(vr(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var o=n.encode[t];return o?o[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var o=this,a;if(t instanceof jP&&(a=t),!a){var i=this.dimensions,s=B4(t)||Lo(t)?new xie(t,i.length):t;a=new jP;var l=Yu(i,function(u){return{type:o._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=_ht(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),o=n.start,a=n.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=o;s<a;s++){var l=s-o;this._nameList[s]=r[l],i&&nI(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var o=this._dimInfos[r[n]];o.ordinalMeta&&t.collectOrdinalMeta(o.storeDimIndex,o.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Uc&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,o=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,i=this._idList,s=o.getSource().sourceFormat,l=s===Ki;if(l&&!o.pure)for(var u=[],c=t;c<r;c++){var d=o.getItem(c,u);if(!this.hasItemOption&&jlt(d)&&(this.hasItemOption=!0),d){var f=d.name;a[c]==null&&f!=null&&(a[c]=ro(f,null));var A=d.id;i[c]==null&&A!=null&&(i[c]=ro(A,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)nI(this,c);TV(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Bg(t)?Pe(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Tg(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),o=this._store.getOrdinalMeta(t);return o?o.categories[n]:n},e.prototype.getId=function(t){return J1(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,o=this._dimInfos[t];if(o)return n.get(o.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,o=this._dimInfos[t];if(o)return n.getByRawIndex(o.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,o=this._store;return Oe(t)?o.getValues(Yu(t,function(a){return n._getStoreDimIndex(a)}),r):o.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,o=r.length;n<o;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],o=n[r];return o==null||isNaN(o)?BV:o},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){bt(t)&&(n=r,r=t,t=[]);var o=n||this,a=Yu(Eg(t),this._getStoreDimIndex,this);this._store.each(a,o?at(r,o):r)},e.prototype.filterSelf=function(t,r,n){bt(t)&&(n=r,r=t,t=[]);var o=n||this,a=Yu(Eg(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,o?at(r,o):r),this},e.prototype.selectRange=function(t){var r=this,n={},o=sr(t);return z(o,function(a){var i=r._getStoreDimIndex(a);n[i]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){bt(t)&&(n=r,r=t,t=[]),n=n||this;var o=[];return this.each(t,function(){o.push(r&&r.apply(this,arguments))},n),o},e.prototype.map=function(t,r,n,o){var a=n||o||this,i=Yu(Eg(t),this._getStoreDimIndex,this),s=ex(this);return s._store=this._store.map(i,a?at(r,a):r),s},e.prototype.modify=function(t,r,n,o){var a=n||o||this,i=Yu(Eg(t),this._getStoreDimIndex,this);this._store.modify(i,a?at(r,a):r)},e.prototype.downSample=function(t,r,n,o){var a=ex(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,o),a},e.prototype.lttbDownSample=function(t,r){var n=ex(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Vr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new yu(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return J1(t,n)},function(n){return J1(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Bg(t)?Pe(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],o=n&&n[r];return o==null?this.getVisual(r):o},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,o=n[t];o||(o=n[t]={});var a=o[r];return a==null&&(a=this.getVisual(r),Oe(a)?a=a.slice():Bg(a)&&(a=Pe({},a)),o[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,Bg(r)?Pe(o,r):o[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Bg(t)?Pe(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Pe(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;kP(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){z(this._graphicEls,function(n,o){n&&t&&t.call(r,n,o)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Yu(this.dimensions,this._getDimInfo,this),this.hostModel)),rI(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];bt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=n.apply(this,arguments);return r.apply(this,[o].concat(V_(arguments)))})},e.internalField=function(){TV=function(t){var r=t._invertedIndicesMap;z(r,function(n,o){var a=t._dimInfos[o],i=a.ordinalMeta,s=t._store;if(i){n=r[o]=new Rht(i.categories.length);for(var l=0;l<n.length;l++)n[l]=BV;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Tg=function(t,r,n){return ro(t._getCategory(r,n),null)},J1=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Tg(t,t._idDimIdx,r)),n==null&&(n=Dht+r),n},Eg=function(t){return Oe(t)||(t=t!=null?[t]:[]),t},ex=function(t){var r=new e(t._schema?t._schema:Yu(t.dimensions,t._getDimInfo,t),t.hostModel);return rI(r,t),r},rI=function(t,r){z(Mht.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,z(Pht,function(n){t[n]=It(r[n])}),t._calculationInfo=Pe({},r._calculationInfo)},nI=function(t,r){var n=t._nameList,o=t._idList,a=t._nameDimIdx,i=t._idDimIdx,s=n[r],l=o[r];if(s==null&&a!=null&&(n[r]=s=Tg(t,a,r)),l==null&&i!=null&&(o[r]=l=Tg(t,i,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),o[r]=l}}}(),e}();const Yo=Fht;function kht(e,t){return Wp(e,t).dimensions}function Wp(e,t){B4(e)||(e=T4(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],o=pt(),a=[],i=Oht(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_se(i),l=n===e.dimensionsDefine,u=l?Sse(e):Cse(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,i));for(var d=pt(c),f=new Iie(i),A=0;A<f.length;A++)f[A]=-1;function h(B){var T=f[B];if(T<0){var E=n[B],I=Tt(E)?E:{name:E},R=new uw,D=I.name;D!=null&&u.get(D)!=null&&(R.name=R.displayName=D),I.type!=null&&(R.type=I.type),I.displayName!=null&&(R.displayName=I.displayName);var F=a.length;return f[B]=F,R.storeDimIndex=B,a.push(R),R}return a[T]}if(!s)for(var A=0;A<i;A++)h(A);d.each(function(B,T){var E=Wr(B).slice();if(E.length===1&&!Je(E[0])&&E[0]<0){d.set(T,!1);return}var I=d.set(T,[]);z(E,function(R,D){var F=Je(R)?u.get(R):R;F!=null&&F<i&&(I[D]=F,p(h(F),T,D))})});var v=0;z(r,function(B){var T,E,I,R;if(Je(B))T=B,R={};else{R=B,T=R.name;var D=R.ordinalMeta;R.ordinalMeta=null,R=Pe({},R),R.ordinalMeta=D,E=R.dimsDef,I=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var F=d.get(T);if(F!==!1){if(F=Wr(F),!F.length)for(var M=0;M<(E&&E.length||1);M++){for(;v<i&&h(v).coordDim!=null;)v++;v<i&&F.push(v++)}z(F,function($,O){var Q=h($);if(l&&R.type!=null&&(Q.type=R.type),p(Ct(Q,R),T,O),Q.name==null&&E){var V=E[O];!Tt(V)&&(V={name:V}),Q.name=Q.displayName=V.name,Q.defaultTooltip=V.defaultTooltip}I&&Ct(Q.otherDims,I)})}});function p(B,T,E){sie.get(T)!=null?B.otherDims[T]=E:(B.coordDim=T,B.coordDimIndex=E,o.set(T,!0))}var g=t.generateCoord,m=t.generateCoordCount,y=m!=null;m=g?m||1:0;var b=g||"value";function x(B){B.name==null&&(B.name=B.coordDim)}if(s)z(a,function(B){x(B)}),a.sort(function(B,T){return B.storeDimIndex-T.storeDimIndex});else for(var w=0;w<i;w++){var C=h(w),_=C.coordDim;_==null&&(C.coordDim=$ht(b,o,y),C.coordDimIndex=0,(!g||m<=0)&&(C.isExtraCoord=!0),m--),x(C),C.type==null&&(die(e,w)===Io.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return Lht(a),new xse({source:e,dimensions:a,fullDimensionCount:i,dimensionOmitted:s})}function Lht(e){for(var t=pt(),r=0;r<e.length;r++){var n=e[r],o=n.name,a=t.get(o)||0;a>0&&(n.name=o+(a-1)),a++,t.set(o,a)}}function Oht(e,t,r,n){var o=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return z(t,function(a){var i;Tt(a)&&(i=a.dimsDef)&&(o=Math.max(o,i.length))}),o}function $ht(e,t,r){var n=t.data;if(r||n.hasOwnProperty(e)){for(var o=0;n.hasOwnProperty(e+o);)o++;e+=o}return t.set(e,!0),e}var Uht=function(){function e(t){this.coordSysDims=[],this.axisMap=pt(),this.categoryAxisMap=pt(),this.coordSysName=t}return e}();function Nht(e){var t=e.get("coordinateSystem"),r=new Uht(t),n=Hht[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Hht={cartesian2d:function(e,t,r,n){var o=e.getReferringComponents("xAxis",Kn).models[0],a=e.getReferringComponents("yAxis",Kn).models[0];t.coordSysDims=["x","y"],r.set("x",o),r.set("y",a),_h(o)&&(n.set("x",o),t.firstCategoryDimIndex=0),_h(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var o=e.getReferringComponents("singleAxis",Kn).models[0];t.coordSysDims=["single"],r.set("single",o),_h(o)&&(n.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var o=e.getReferringComponents("polar",Kn).models[0],a=o.findAxisModel("radiusAxis"),i=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",i),_h(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),_h(i)&&(n.set("angle",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var o=e.ecModel,a=o.getComponent("parallel",e.get("parallelIndex")),i=t.coordSysDims=a.dimensions.slice();z(a.parallelAxisIndex,function(s,l){var u=o.getComponent("parallelAxis",s),c=i[l];r.set(c,u),_h(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function _h(e){return e.get("type")==="category"}function Bse(e,t,r){r=r||{};var n=r.byIndex,o=r.stackedCoordDimension,a,i,s;zht(t)?a=t:(i=t.schema,a=i.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,d,f;if(z(a,function(m,y){Je(m)&&(a[y]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!o||o===m.coordDim)&&(c=m))}),c&&!n&&!u&&(n=!0),c){d="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var A=c.coordDim,h=c.type,v=0;z(a,function(m){m.coordDim===A&&v++});var p={name:d,coordDim:A,coordDimIndex:v,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:f,coordDim:f,coordDimIndex:v+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};i?(s&&(p.storeDimIndex=s.ensureCalculationDimension(f,h),g.storeDimIndex=s.ensureCalculationDimension(d,h)),i.appendCalculationDimension(p),i.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:d}}function zht(e){return!wse(e.schema)}function bu(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function W4(e,t){return bu(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Qht(e,t){var r=e.get("coordinateSystem"),n=Hp.get(r),o;return t&&t.coordSysDims&&(o=Ue(t.coordSysDims,function(a){var i={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");i.type=NC(l)}return i})),o||(o=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),o}function Vht(e,t,r){var n,o;return r&&z(e,function(a,i){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=i),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(o=!0)}),!o&&n!=null&&(e[n].otherDims.itemName=0),n}function Il(e,t,r){r=r||{};var n=t.getSourceManager(),o,a=!1;e?(a=!0,o=T4(e)):(o=n.getSource(),a=o.sourceFormat===Ki);var i=Nht(t),s=Qht(t,i),l=r.useEncodeDefaulter,u=bt(l)?l:l?Ut(cie,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},d=Wp(o,c),f=Vht(d.dimensions,r.createInvertedIndices,i),A=a?null:n.getSharedDataStore(d),h=Bse(t,{schema:d,store:A}),v=new Yo(d,t);v.setCalculationInfo(h);var p=f!=null&&Wht(o)?function(g,m,y,b){return b===f?y:this.defaultDimValueGetter(g,m,y,b)}:null;return v.hasItemOption=!1,v.initData(a?o:A,null,p),v}function Wht(e){if(e.sourceFormat===Ki){var t=Ght(e.data||[]);return!Oe(Rp(t))}}function Ght(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Tse=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();q_(Tse);const Du=Tse;var Kht=0,jht=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Kht}return e.createByAxisModel=function(t){var r=t.option,n=r.data,o=n&&Ue(n,Yht);return new e({categories:o,needCollect:!o,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Je(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var o=this._getOrCreateMap();return r=o.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,o.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=pt(this.categories))},e}();function Yht(e){return Tt(e)&&e.value!=null?e.value:e+""}const oF=jht;function aF(e){return e.type==="interval"||e.type==="log"}function Xht(e,t,r,n){var o={},a=e[1]-e[0],i=o.interval=XO(a/t,!0);r!=null&&i<r&&(i=o.interval=r),n!=null&&i>n&&(i=o.interval=n);var s=o.intervalPrecision=Ese(i),l=o.niceTickExtent=[Cn(Math.ceil(e[0]/i)*i,s),Cn(Math.floor(e[1]/i)*i,s)];return qht(l,e),o}function oI(e){var t=Math.pow(10,X_(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Cn(r*t)}function Ese(e){return cs(e)+2}function EV(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function qht(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),EV(e,0,t),EV(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bB(e,t){return e>=t[0]&&e<=t[1]}function xB(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function wB(e,t){return e*(t[1]-t[0])+t[0]}var Ise=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var o=n.getSetting("ordinalMeta");return o||(o=new oF({})),Oe(o)&&(o=new oF({categories:Ue(o,function(a){return Tt(a)?a.value:a})})),n._ordinalMeta=o,n._extent=n.getSetting("extent")||[0,o.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Je(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),bB(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),xB(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(wB(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,o=n[0];o<=n[1];)r.push({value:o}),o++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,o=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],i=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);i<l;++i){var u=n[i];o[i]=u,a[u]=i}for(var c=0;i<s;++i){for(;a[c]!=null;)c++;o.push(c),a[c]=i}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),o=this._ordinalMeta.categories[n];return o==null?"":o+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Du);Du.registerClass(Ise);const G4=Ise;var rf=Cn,Rse=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return bB(r,this._extent)},t.prototype.normalize=function(r){return xB(r,this._extent)},t.prototype.scale=function(r){return wB(r,this._extent)},t.prototype.setExtent=function(r,n){var o=this._extent;isNaN(r)||(o[0]=parseFloat(r)),isNaN(n)||(o[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ese(r)},t.prototype.getTicks=function(r){var n=this._interval,o=this._extent,a=this._niceExtent,i=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;o[0]<a[0]&&(r?s.push({value:rf(a[0]-n,i)}):s.push({value:o[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=rf(u+n,i),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return o[1]>c&&(r?s.push({value:rf(c+n,i)}):s.push({value:o[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),o=[],a=this.getExtent(),i=1;i<n.length;i++){for(var s=n[i],l=n[i-1],u=0,c=[],d=s.value-l.value,f=d/r;u<r-1;){var A=rf(l.value+(u+1)*f);A>a[0]&&A<a[1]&&c.push(A),u++}o.push(c)}return o},t.prototype.getLabel=function(r,n){if(r==null)return"";var o=n&&n.precision;o==null?o=cs(r.value)||0:o==="auto"&&(o=this._intervalPrecision);var a=rf(r.value,o,!0);return y4(a)},t.prototype.calcNiceTicks=function(r,n,o){r=r||5;var a=this._extent,i=a[1]-a[0];if(isFinite(i)){i<0&&(i=-i,a.reverse());var s=Xht(a,r,n,o);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var o=n[0];r.fixMax||(n[1]+=o/2),n[0]-=o/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var i=this._interval;r.fixMin||(n[0]=rf(Math.floor(n[0]/i)*i)),r.fixMax||(n[1]=rf(Math.ceil(n[1]/i)*i))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Du);Du.registerClass(Rse);const sd=Rse;var Dse=typeof Float32Array!="undefined",Zht=Dse?Float32Array:Array;function Js(e){return Oe(e)?Dse?new Float32Array(e):e:new Zht(e)}var iF="__ec_stack_";function K4(e){return e.get("stack")||iF+e.seriesIndex}function j4(e){return e.dim+e.index}function Jht(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var o=r.getBandWidth(),a=0;a<e.count;a++)t.push(Ct({bandWidth:o,axisKey:n,stackId:iF+a},e));for(var i=Fse(t),s=[],a=0;a<e.count;a++){var l=i[n][iF+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Mse(e,t){var r=[];return t.eachSeriesByType(e,function(n){Ose(n)&&r.push(n)}),r}function evt(e){var t={};z(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var d=l.getData(),f=c.dim+"_"+c.index,A=d.getDimensionIndex(d.mapDimension(c.dim)),h=d.getStore(),v=0,p=h.count();v<p;++v){var g=h.get(A,v);t[f]?t[f].push(g):t[f]=[g]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];if(o){o.sort(function(l,u){return l-u});for(var a=null,i=1;i<o.length;++i){var s=o[i]-o[i-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Pse(e){var t=evt(e),r=[];return z(e,function(n){var o=n.coordinateSystem,a=o.getBaseAxis(),i=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(i[1]-i[0]),d=a.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var A=n.getData();s=Math.abs(i[1]-i[0])/A.count()}var h=qe(n.get("barWidth"),s),v=qe(n.get("barMaxWidth"),s),p=qe(n.get("barMinWidth")||($se(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:h,barMaxWidth:v,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:j4(a),stackId:K4(n)})}),Fse(r)}function Fse(e){var t={};z(e,function(n,o){var a=n.axisKey,i=n.bandWidth,s=t[a]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=n.barMaxWidth;d&&(l[u].maxWidth=d);var f=n.barMinWidth;f&&(l[u].minWidth=f);var A=n.barGap;A!=null&&(s.gap=A);var h=n.barCategoryGap;h!=null&&(s.categoryGap=h)});var r={};return z(t,function(n,o){r[o]={};var a=n.stacks,i=n.bandWidth,s=n.categoryGap;if(s==null){var l=sr(a).length;s=Math.max(35-l*4,15)+"%"}var u=qe(s,i),c=qe(n.gap,1),d=n.remainedWidth,f=n.autoWidthCount,A=(d-u)/(f+(f-1)*c);A=Math.max(A,0),z(a,function(g){var m=g.maxWidth,y=g.minWidth;if(g.width){var b=g.width;m&&(b=Math.min(b,m)),y&&(b=Math.max(b,y)),g.width=b,d-=b+c*b,f--}else{var b=A;m&&m<b&&(b=Math.min(m,d)),y&&y>b&&(b=y),b!==A&&(g.width=b,d-=b+c*b,f--)}}),A=(d-u)/(f+(f-1)*c),A=Math.max(A,0);var h=0,v;z(a,function(g,m){g.width||(g.width=A),v=g,h+=g.width*(1+c)}),v&&(h-=v.width*c);var p=-h/2;z(a,function(g,m){r[o][m]=r[o][m]||{bandWidth:i,offset:p,width:g.width},p+=g.width*(1+c)})}),r}function tvt(e,t,r){if(e&&t){var n=e[j4(t)];return n!=null&&r!=null?n[K4(r)]:n}}function kse(e,t){var r=Mse(e,t),n=Pse(r);z(r,function(o){var a=o.getData(),i=o.coordinateSystem,s=i.getBaseAxis(),l=K4(o),u=n[j4(s)][l],c=u.offset,d=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Lse(e){return{seriesType:e,plan:zp(),reset:function(t){if(Ose(t)){var r=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=n.getOtherAxis(o),i=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(o.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),d=bu(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),A=rvt(o,a),h=$se(t),v=t.get("barMinHeight")||0,p=c&&r.getDimensionIndex(c),g=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(y,b){for(var x=y.count,w=h&&Js(x*3),C=h&&l&&Js(x*3),_=h&&Js(x),B=n.master.getRect(),T=f?B.width:B.height,E,I=b.getStore(),R=0;(E=y.next())!=null;){var D=I.get(d?p:i,E),F=I.get(s,E),M=A,$=void 0;d&&($=+D-I.get(i,E));var O=void 0,Q=void 0,V=void 0,W=void 0;if(f){var Z=n.dataToPoint([D,F]);if(d){var te=n.dataToPoint([$,F]);M=te[0]}O=M,Q=Z[1]+m,V=Z[0]-M,W=g,Math.abs(V)<v&&(V=(V<0?-1:1)*v)}else{var Z=n.dataToPoint([F,D]);if(d){var te=n.dataToPoint([F,$]);M=te[1]}O=Z[0]+m,Q=M,V=g,W=Z[1]-M,Math.abs(W)<v&&(W=(W<=0?-1:1)*v)}h?(w[R]=O,w[R+1]=Q,w[R+2]=f?V:W,C&&(C[R]=f?B.x:O,C[R+1]=f?Q:B.y,C[R+2]=T),_[E]=E):b.setItemLayout(E,{x:O,y:Q,width:V,height:W}),R+=3}h&&b.setLayout({largePoints:w,largeDataIndices:_,largeBackgroundPoints:C,valueAxisHorizontal:f})}}}}}}function Ose(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function $se(e){return e.pipelineContext&&e.pipelineContext.large}function rvt(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var nvt=function(e,t,r,n){for(;r<n;){var o=r+n>>>1;e[o][1]<t?r=o+1:n=o}return r},Use=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return eb(r.value,yQ[bdt(bv(this._minLevelUnit))]||yQ.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,o){var a=this.getSetting("useUTC"),i=this.getSetting("locale");return xdt(r,n,o,i,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,o=[];if(!r)return o;o.push({value:n[0],level:0});var a=this.getSetting("useUTC"),i=cvt(this._minLevelUnit,this._approxInterval,a,n);return o=o.concat(i),o.push({value:n[1],level:0}),o},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Si,n[1]+=Si),n[1]===-1/0&&n[0]===1/0){var o=new Date;n[1]=+new Date(o.getFullYear(),o.getMonth(),o.getDate()),n[0]=n[1]-Si}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,o){r=r||10;var a=this._extent,i=a[1]-a[0];this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),o!=null&&this._approxInterval>o&&(this._approxInterval=o);var s=tx.length,l=Math.min(nvt(tx,this._approxInterval,0,s),s-1);this._interval=tx[l][1],this._minLevelUnit=tx[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return vr(r)?r:+ri(r)},t.prototype.contain=function(r){return bB(this.parse(r),this._extent)},t.prototype.normalize=function(r){return xB(this.parse(r),this._extent)},t.prototype.scale=function(r){return wB(r,this._extent)},t.type="time",t}(sd),tx=[["second",p4],["minute",g4],["hour",K0],["quarter-day",K0*6],["half-day",K0*12],["day",Si*1.2],["half-week",Si*3.5],["week",Si*7],["month",Si*31],["quarter",Si*95],["half-year",mQ/2],["year",mQ]];function ovt(e,t,r,n){var o=ri(t),a=ri(r),i=function(h){return bQ(o,h,n)===bQ(a,h,n)},s=function(){return i("year")},l=function(){return s()&&i("month")},u=function(){return l()&&i("day")},c=function(){return u()&&i("hour")},d=function(){return c()&&i("minute")},f=function(){return d()&&i("second")},A=function(){return f()&&i("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return A()}}function avt(e,t){return e/=Si,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ivt(e){var t=30*Si;return e/=t,e>6?6:e>3?3:e>2?2:1}function svt(e){return e/=K0,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function IV(e,t){return e/=t?g4:p4,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function lvt(e){return XO(e,!0)}function uvt(e,t,r){var n=new Date(e);switch(bv(t)){case"year":case"month":n[qae(r)](0);case"day":n[Zae(r)](1);case"hour":n[Jae(r)](0);case"minute":n[eie(r)](0);case"second":n[tie(r)](0),n[rie(r)](0)}return n.getTime()}function cvt(e,t,r,n){var o=1e4,a=Yae,i=0;function s(T,E,I,R,D,F,M){for(var $=new Date(E),O=E,Q=$[R]();O<I&&O<=n[1];)M.push({value:O}),Q+=T,$[D](Q),O=$.getTime();M.push({value:O,notAdd:!0})}function l(T,E,I){var R=[],D=!E.length;if(!ovt(bv(T),n[0],n[1],r)){D&&(E=[{value:uvt(new Date(n[0]),T,r)},{value:n[1]}]);for(var F=0;F<E.length-1;F++){var M=E[F].value,$=E[F+1].value;if(M!==$){var O=void 0,Q=void 0,V=void 0,W=!1;switch(T){case"year":O=Math.max(1,Math.round(t/Si/365)),Q=m4(r),V=wdt(r);break;case"half-year":case"quarter":case"month":O=ivt(t),Q=xv(r),V=qae(r);break;case"week":case"half-week":case"day":O=avt(t),Q=uB(r),V=Zae(r),W=!0;break;case"half-day":case"quarter-day":case"hour":O=svt(t),Q=Km(r),V=Jae(r);break;case"minute":O=IV(t,!0),Q=cB(r),V=eie(r);break;case"second":O=IV(t,!1),Q=dB(r),V=tie(r);break;case"millisecond":O=lvt(t),Q=fB(r),V=rie(r);break}s(O,M,$,Q,V,W,R),T==="year"&&I.length>1&&F===0&&I.unshift({value:I[0].value-O})}}for(var F=0;F<R.length;F++)I.push(R[F]);return R}}for(var u=[],c=[],d=0,f=0,A=0;A<a.length&&i++<o;++A){var h=bv(a[A]);if(ydt(a[A])){l(a[A],u[u.length-1]||[],c);var v=a[A+1]?bv(a[A+1]):null;if(h!==v){if(c.length){f=d,c.sort(function(T,E){return T.value-E.value});for(var p=[],g=0;g<c.length;++g){var m=c[g].value;(g===0||c[g-1].value!==m)&&(p.push(c[g]),m>=n[0]&&m<=n[1]&&d++)}var y=(n[1]-n[0])/t;if(d>y*1.5&&f>y/1.5||(u.push(p),d>y||e===a[A]))break}c=[]}}}for(var b=kr(Ue(u,function(T){return kr(T,function(E){return E.value>=n[0]&&E.value<=n[1]&&!E.notAdd})}),function(T){return T.length>0}),x=[],w=b.length-1,A=0;A<b.length;++A)for(var C=b[A],_=0;_<C.length;++_)x.push({value:C[_].value,level:w-A});x.sort(function(T,E){return T.value-E.value});for(var B=[],A=0;A<x.length;++A)(A===0||x[A].value!==x[A-1].value)&&B.push(x[A]);return B}Du.registerClass(Use);const Nse=Use;var RV=Du.prototype,X0=sd.prototype,dvt=Cn,fvt=Math.floor,Avt=Math.ceil,rx=Math.pow,ci=Math.log,Y4=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new sd,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,o=this._extent,a=n.getExtent(),i=X0.getTicks.call(this,r);return Ue(i,function(s){var l=s.value,u=Cn(rx(this.base,l));return u=l===o[0]&&this._fixMin?nx(u,a[0]):u,u=l===o[1]&&this._fixMax?nx(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var o=this.base;r=ci(r)/ci(o),n=ci(n)/ci(o),X0.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=RV.getExtent.call(this);n[0]=rx(r,n[0]),n[1]=rx(r,n[1]);var o=this._originalScale,a=o.getExtent();return this._fixMin&&(n[0]=nx(n[0],a[0])),this._fixMax&&(n[1]=nx(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=ci(r[0])/ci(n),r[1]=ci(r[1])/ci(n),RV.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,o=n[1]-n[0];if(!(o===1/0||o<=0)){var a=Ooe(o),i=r/o*a;for(i<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Cn(Avt(n[0]/a)*a),Cn(fvt(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){X0.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=ci(r)/ci(this.base),bB(r,this._extent)},t.prototype.normalize=function(r){return r=ci(r)/ci(this.base),xB(r,this._extent)},t.prototype.scale=function(r){return r=wB(r,this._extent),rx(this.base,r)},t.type="log",t}(Du),Hse=Y4.prototype;Hse.getMinorTicks=X0.getMinorTicks;Hse.getLabel=X0.getLabel;function nx(e,t){return dvt(e,cs(t))}Du.registerClass(Y4);const hvt=Y4;var vvt=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);bt(a)?this._modelMinNum=ox(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=ox(t,a));var i=this._modelMaxRaw=r.get("max",!0);if(bt(i)?this._modelMaxNum=ox(t,i({min:n[0],max:n[1]})):i!=="dataMax"&&(this._modelMaxNum=ox(t,i)),o)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=Oe(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[xs(l[0],1),xs(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,o=this._axisDataLen,a=this._boundaryGapInner,i=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?o?0:NaN:r-a[0]*i),l==null&&(l=t?o?o-1:NaN:n+a[1]*i),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=Qv(s)||Qv(l)||t&&!o;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,A=this._determinedMax;return f!=null&&(s=f,u=!0),A!=null&&(l=A,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(t,r){this[gvt[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=pvt[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),pvt={min:"_determinedMin",max:"_determinedMax"},gvt={min:"_dataMin",max:"_dataMax"};function zse(e,t,r){var n=e.rawExtentInfo;return n||(n=new vvt(e,t,r),e.rawExtentInfo=n,n)}function ox(e,t){return t==null?null:Qv(t)?NaN:e.parse(t)}function Qse(e,t){var r=e.type,n=zse(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var o=n.min,a=n.max,i=t.ecModel;if(i&&r==="time"){var s=Mse("bar",i),l=!1;if(z(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var u=Pse(s),c=mvt(o,a,t,u);o=c.min,a=c.max}}return{extent:[o,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function mvt(e,t,r,n){var o=r.axis.getExtent(),a=o[1]-o[0],i=tvt(n,r.axis);if(i===void 0)return{min:e,max:t};var s=1/0;z(i,function(A){s=Math.min(A.offset,s)});var l=-1/0;z(i,function(A){l=Math.max(A.offset+A.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/a,f=c/d-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function mA(e,t){var r=t,n=Qse(e,r),o=n.extent,a=r.get("splitNumber");e instanceof hvt&&(e.base=r.get("logBase"));var i=e.type,s=r.get("interval"),l=i==="interval"||i==="time";e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function nb(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new G4({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Nse({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Du.getClass(t)||sd)}}function yvt(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function ob(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(o,a){return e.scale.getFormattedLabel(o,a,n)}}(t):Je(t)?function(n){return function(o){var a=e.scale.getLabel(o),i=n.replace("{value}",a!=null?a:"");return i}}(t):bt(t)?function(n){return function(o,a){return r!=null&&(a=o.value-r),n(X4(e,o),a,o.level!=null?{level:o.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function X4(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function bvt(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,o,a=r.getExtent();r instanceof G4?o=r.count():(n=r.getTicks(),o=n.length);var i=e.getLabelModel(),s=ob(e),l,u=1;o>40&&(u=Math.ceil(o/40));for(var c=0;c<o;c+=u){var d=n?n[c]:{value:a[0]+c},f=s(d,c),A=i.getTextRect(f),h=xvt(A,i.get("rotate")||0);l?l.union(h):l=h}return l}}function xvt(e,t){var r=t*Math.PI/180,n=e.width,o=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(o*Math.sin(r)),i=n*Math.abs(Math.sin(r))+Math.abs(o*Math.cos(r)),s=new Xt(e.x,e.y,a,i);return s}function q4(e){var t=e.get("interval");return t==null?"auto":t}function Vse(e){return e.type==="category"&&q4(e.getLabelModel())===0}function HC(e,t){var r={};return z(e.mapDimensionsAll(t),function(n){r[W4(e,n)]=!0}),sr(r)}function wvt(e,t,r){t&&z(HC(t,r),function(n){var o=t.getApproximateExtent(n);o[0]<e[0]&&(e[0]=o[0]),o[1]>e[1]&&(e[1]=o[1])})}var Gp=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function Cvt(e){return Il(null,e)}var Svt={isDimensionStacked:bu,enableDataStack:Bse,getStackedDimension:W4};function _vt(e,t){var r=t;t instanceof Vr||(r=new Vr(t));var n=nb(r);return n.setExtent(e[0],e[1]),mA(n,r),n}function Bvt(e){Rn(e,Gp)}function Tvt(e,t){return t=t||{},un(e,null,null,t.state!=="normal")}const Evt=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:kht,createList:Cvt,createScale:_vt,createSymbol:Nn,createTextStyle:Tvt,dataStack:Svt,enableHoverEmphasis:Oc,getECData:$t,getLayoutRect:jn,mixinAxisModelCommonMethods:Bvt},Symbol.toStringTag,{value:"Module"}));var Ivt=1e-8;function DV(e,t){return Math.abs(e-t)<Ivt}function Cf(e,t,r){var n=0,o=e[0];if(!o)return!1;for(var a=1;a<e.length;a++){var i=e[a];n+=Ql(o[0],o[1],i[0],i[1],t,r),o=i}var s=e[0];return(!DV(o[0],s[0])||!DV(o[1],s[1]))&&(n+=Ql(o[0],o[1],s[0],s[1],t,r)),n!==0}var Rvt=[];function aI(e,t){for(var r=0;r<e.length;r++)xo(e[r],e[r],t)}function MV(e,t,r,n){for(var o=0;o<e.length;o++){var a=e[o];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Yl(t,t,a),Xl(r,r,a))}}function Dvt(e){for(var t=0,r=0,n=0,o=e.length,a=e[o-1][0],i=e[o-1][1],s=0;s<o;s++){var l=e[s][0],u=e[s][1],c=a*u-l*i;t+=c,r+=(a+l)*c,n+=(i+u)*c,a=l,i=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Wse=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),PV=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),FV=function(){function e(t){this.type="linestring",this.points=t}return e}(),Gse=function(e){we(t,e);function t(r,n,o){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=o&&[o[0],o[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,o=0,a=0;a<r.length;a++){var i=r[a],s=i.exterior,l=s&&s.length;l>o&&(n=i,o=l)}if(n)return Dvt(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var o=[1/0,1/0],a=[-1/0,-1/0],i=this.geometries;return z(i,function(s){s.type==="polygon"?MV(s.exterior,o,a,r):z(s.points,function(l){MV(l,o,a,r)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])||(o[0]=o[1]=a[0]=a[1]=0),n=new Xt(o[0],o[1],a[0]-o[0],a[1]-o[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),o=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,i=o.length;a<i;a++){var s=o[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Cf(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Cf(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,o,a){var i=this.getBoundingRect(),s=i.width/i.height;o?a||(a=o/s):o=s*a;for(var l=new Xt(r,n,o,a),u=i.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++){var f=c[d];f.type==="polygon"?(aI(f.exterior,u),z(f.interiors,function(A){aI(A,u)})):z(f.points,function(A){aI(A,u)})}i=this._rect,i.copy(l),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Wse),Mvt=function(e){we(t,e);function t(r,n){var o=e.call(this,r)||this;return o.type="geoSVG",o._elOnlyForCalculate=n,o}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),o=[n.x+n.width/2,n.y+n.height/2],a=Wy(Rvt),i=r;i&&!i.isGeoSVGGraphicRoot;)il(a,i.getLocalTransform(),a),i=i.parent;return NA(a,a),xo(o,o,a),o},t}(Wse);function Pvt(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return z(n,function(o){var a=o.geometry,i=a.encodeOffsets,s=a.coordinates;if(i)switch(a.type){case"LineString":a.coordinates=Kse(s,i,r);break;case"Polygon":iI(s,i,r);break;case"MultiLineString":iI(s,i,r);break;case"MultiPolygon":z(s,function(l,u){return iI(l,i[u],r)})}}),t.UTF8Encoding=!1,t}function iI(e,t,r){for(var n=0;n<e.length;n++)e[n]=Kse(e[n],t[n],r)}function Kse(e,t,r){for(var n=[],o=t[0],a=t[1],i=0;i<e.length;i+=2){var s=e.charCodeAt(i)-64,l=e.charCodeAt(i+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=o,l+=a,o=s,a=l,n.push([s/r,l/r])}return n}function sF(e,t){return e=Pvt(e),Ue(kr(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,o=r.geometry,a=[];switch(o.type){case"Polygon":var i=o.coordinates;a.push(new PV(i[0],i.slice(1)));break;case"MultiPolygon":z(o.coordinates,function(l){l[0]&&a.push(new PV(l[0],l.slice(1)))});break;case"LineString":a.push(new FV([o.coordinates]));break;case"MultiLineString":a.push(new FV(o.coordinates))}var s=new Gse(n[t||"name"],a,n.cp);return s.properties=n,s})}const Fvt=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:IP,asc:ja,getPercentWithPrecision:Loe,getPixelPrecision:jO,getPrecision:cs,getPrecisionSafe:koe,isNumeric:qO,isRadianAroundZero:Nm,linearMap:Fr,nice:XO,numericToNumber:hl,parseDate:ri,quantile:rw,quantity:Ooe,quantityExponent:X_,reformIntervals:RP,remRadian:YO,round:Cn},Symbol.toStringTag,{value:"Module"})),kvt=Object.freeze(Object.defineProperty({__proto__:null,format:eb,parse:ri},Symbol.toStringTag,{value:"Module"})),Lvt=Object.freeze(Object.defineProperty({__proto__:null,Arc:oB,BezierCurve:Xy,BoundingRect:Xt,Circle:ws,CompoundPath:aB,Ellipse:nB,Group:Pt,Image:_o,IncrementalDisplayable:kae,Line:co,LinearGradient:Mp,Polygon:ua,Polyline:da,RadialGradient:l4,Rect:hr,Ring:Yy,Sector:la,Text:pr,clipPointsByRect:f4,clipRectByRect:Nae,createIcon:Fp,extendPath:$ae,extendShape:Oae,getShapeClass:iB,getTransform:$c,initProps:ln,makeImage:c4,makePath:qy,mergePath:Va,registerShape:Gi,resizePath:d4,updateProps:gr},Symbol.toStringTag,{value:"Module"})),Ovt=Object.freeze(Object.defineProperty({__proto__:null,addCommas:y4,capitalFirst:Edt,encodeHTML:wa,formatTime:Tdt,formatTpl:x4,getTextRect:Cdt,getTooltipMarker:nie,normalizeCssArray:zA,toCamelCase:b4,truncateText:joe},Symbol.toStringTag,{value:"Module"})),$vt=Object.freeze(Object.defineProperty({__proto__:null,bind:at,clone:It,curry:Ut,defaults:Ct,each:z,extend:Pe,filter:kr,indexOf:Yt,inherits:NO,isArray:Oe,isFunction:bt,isObject:Tt,isString:Je,map:Ue,merge:Qt,reduce:$i},Symbol.toStringTag,{value:"Module"}));var Jm=br();function Uvt(e){return e.type==="category"?Hvt(e):Qvt(e)}function Nvt(e,t){return e.type==="category"?zvt(e,t):{ticks:Ue(e.scale.getTicks(),function(r){return r.value})}}function Hvt(e){var t=e.getLabelModel(),r=jse(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function jse(e,t){var r=Yse(e,"labels"),n=q4(t),o=Xse(r,n);if(o)return o;var a,i;return bt(n)?a=Jse(e,n):(i=n==="auto"?Vvt(e):n,a=Zse(e,i)),qse(r,n,{labels:a,labelCategoryInterval:i})}function zvt(e,t){var r=Yse(e,"ticks"),n=q4(t),o=Xse(r,n);if(o)return o;var a,i;if((!t.get("show")||e.scale.isBlank())&&(a=[]),bt(n))a=Jse(e,n,!0);else if(n==="auto"){var s=jse(e,e.getLabelModel());i=s.labelCategoryInterval,a=Ue(s.labels,function(l){return l.tickValue})}else i=n,a=Zse(e,i,!0);return qse(r,n,{ticks:a,tickCategoryInterval:i})}function Qvt(e){var t=e.scale.getTicks(),r=ob(e);return{labels:Ue(t,function(n,o){return{level:n.level,formattedLabel:r(n,o),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function Yse(e,t){return Jm(e)[t]||(Jm(e)[t]=[])}function Xse(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function qse(e,t,r){return e.push({key:t,value:r}),r}function Vvt(e){var t=Jm(e).autoInterval;return t!=null?t:Jm(e).autoInterval=e.calculateCategoryInterval()}function Wvt(e){var t=Gvt(e),r=ob(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,a=o.getExtent(),i=o.count();if(a[1]-a[0]<1)return 0;var s=1;i>40&&(s=Math.max(1,Math.floor(i/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),d=Math.abs(u*Math.sin(n)),f=0,A=0;l<=a[1];l+=s){var h=0,v=0,p=Gy(r({value:l}),t.font,"center","top");h=p.width*1.3,v=p.height*1.3,f=Math.max(f,h,7),A=Math.max(A,v,7)}var g=f/c,m=A/d;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var y=Math.max(0,Math.floor(Math.min(g,m))),b=Jm(e.model),x=e.getExtent(),w=b.lastAutoInterval,C=b.lastTickCount;return w!=null&&C!=null&&Math.abs(w-y)<=1&&Math.abs(C-i)<=1&&w>y&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?y=w:(b.lastTickCount=i,b.lastAutoInterval=y,b.axisExtent0=x[0],b.axisExtent1=x[1]),y}function Gvt(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Zse(e,t,r){var n=ob(e),o=e.scale,a=o.getExtent(),i=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=o.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Vse(e),f=i.get("showMinLabel")||d,A=i.get("showMaxLabel")||d;f&&u!==a[0]&&v(a[0]);for(var h=u;h<=a[1];h+=l)v(h);A&&h-l!==a[1]&&v(a[1]);function v(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:o.getLabel(g),tickValue:p})}return s}function Jse(e,t,r){var n=e.scale,o=ob(e),a=[];return z(n.getTicks(),function(i){var s=n.getLabel(i),l=i.value;t(i.value,s)&&a.push(r?l:{formattedLabel:o(i),rawLabel:s,tickValue:l})}),a}var kV=[0,1],Kvt=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return t>=n&&t<=o},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return jO(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type==="ordinal"&&(n=n.slice(),LV(n,o.count())),Fr(t,kV,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(n=n.slice(),LV(n,o.count()));var a=Fr(t,n,kV,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Nvt(this,r),o=n.ticks,a=Ue(o,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=r.get("alignWithLabel");return jvt(this,a,i,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),o=Ue(n,function(a){return Ue(a,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return o},e.prototype.getViewLabels=function(){return Uvt(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var o=Math.abs(t[1]-t[0]);return Math.abs(o)/n},e.prototype.calculateCategoryInterval=function(){return Wvt(this)},e}();function LV(e,t){var r=e[1]-e[0],n=t,o=r/n/2;e[0]+=o,e[1]-=o}function jvt(e,t,r,n){var o=t.length;if(!e.onBand||r||!o)return;var a=e.getExtent(),i,s;if(o===1)t[0].coord=a[0],i=t[1]={coord:a[0]};else{var l=t[o-1].tickValue-t[0].tickValue,u=(t[o-1].coord-t[0].coord)/l;z(t,function(A){A.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[o-1].tickValue,i={coord:t[o-1].coord+u*s},t.push(i)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&f(a[0],t[0].coord)&&t.unshift({coord:a[0]}),f(a[1],i.coord)&&(n?i.coord=a[1]:t.pop()),n&&f(i.coord,a[1])&&t.push({coord:a[1]});function f(A,h){return A=Cn(A),h=Cn(h),d?A>h:A<h}}const Yi=Kvt;function Yvt(e){var t=fr.extend(e);return fr.registerClass(t),t}function Xvt(e){var t=cn.extend(e);return cn.registerClass(t),t}function qvt(e){var t=tn.extend(e);return tn.registerClass(t),t}function Zvt(e){var t=Gr.extend(e);return Gr.registerClass(t),t}var Ig=Math.PI*2,nf=vl.CMD,Jvt=["top","right","bottom","left"];function ept(e,t,r,n,o){var a=r.width,i=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),o.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+i+t),o.set(0,1);break;case"left":n.set(r.x-t,r.y+i/2),o.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+i/2),o.set(1,0);break}}function tpt(e,t,r,n,o,a,i,s,l){i-=e,s-=t;var u=Math.sqrt(i*i+s*s);i/=u,s/=u;var c=i*r+e,d=s*r+t;if(Math.abs(n-o)%Ig<1e-4)return l[0]=c,l[1]=d,u-r;if(a){var f=n;n=xc(o),o=xc(f)}else n=xc(n),o=xc(o);n>o&&(o+=Ig);var A=Math.atan2(s,i);if(A<0&&(A+=Ig),A>=n&&A<=o||A+Ig>=n&&A+Ig<=o)return l[0]=c,l[1]=d,u-r;var h=r*Math.cos(n)+e,v=r*Math.sin(n)+t,p=r*Math.cos(o)+e,g=r*Math.sin(o)+t,m=(h-i)*(h-i)+(v-s)*(v-s),y=(p-i)*(p-i)+(g-s)*(g-s);return m<y?(l[0]=h,l[1]=v,Math.sqrt(m)):(l[0]=p,l[1]=g,Math.sqrt(y))}function zC(e,t,r,n,o,a,i,s){var l=o-e,u=a-t,c=r-e,d=n-t,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var A=l*c+u*d,h=A/f;s&&(h=Math.min(Math.max(h,0),1)),h*=f;var v=i[0]=e+h*c,p=i[1]=t+h*d;return Math.sqrt((v-o)*(v-o)+(p-a)*(p-a))}function ele(e,t,r,n,o,a,i){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=i[0]=Math.min(Math.max(o,e),s),c=i[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-o)*(u-o)+(c-a)*(c-a))}var is=[];function rpt(e,t,r){var n=ele(t.x,t.y,t.width,t.height,e.x,e.y,is);return r.set(is[0],is[1]),n}function npt(e,t,r){for(var n=0,o=0,a=0,i=0,s,l,u=1/0,c=t.data,d=e.x,f=e.y,A=0;A<c.length;){var h=c[A++];A===1&&(n=c[A],o=c[A+1],a=n,i=o);var v=u;switch(h){case nf.M:a=c[A++],i=c[A++],n=a,o=i;break;case nf.L:v=zC(n,o,c[A],c[A+1],d,f,is,!0),n=c[A++],o=c[A++];break;case nf.C:v=voe(n,o,c[A++],c[A++],c[A++],c[A++],c[A],c[A+1],d,f,is),n=c[A++],o=c[A++];break;case nf.Q:v=goe(n,o,c[A++],c[A++],c[A],c[A+1],d,f,is),n=c[A++],o=c[A++];break;case nf.A:var p=c[A++],g=c[A++],m=c[A++],y=c[A++],b=c[A++],x=c[A++];A+=1;var w=!!(1-c[A++]);s=Math.cos(b)*m+p,l=Math.sin(b)*y+g,A<=1&&(a=s,i=l);var C=(d-p)*y/m+p;v=tpt(p,g,y,b,b+x,w,C,f,is),n=Math.cos(b+x)*m+p,o=Math.sin(b+x)*y+g;break;case nf.R:a=n=c[A++],i=o=c[A++];var _=c[A++],B=c[A++];v=ele(a,i,_,B,d,f,is);break;case nf.Z:v=zC(n,o,a,i,d,f,is,!0),n=a,o=i;break}v<u&&(u=v,r.set(is[0],is[1]))}return u}var ds=new Vt,Jr=new Vt,Pn=new Vt,el=new Vt,js=new Vt;function OV(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var o=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],i=o.candidates||Jvt,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=o.anchor,c=e.getComputedTransform(),d=c&&NA([],c),f=t.get("length2")||0;u&&Pn.copy(u);for(var A=0;A<i.length;A++){var h=i[A];ept(h,0,s,ds,el),Vt.scaleAndAdd(Jr,ds,el,f),Jr.transform(d);var v=e.getBoundingRect(),p=u?u.distance(Jr):e instanceof tr?npt(Jr,e.path,Pn):rpt(Jr,v,Pn);p<l&&(l=p,Jr.transform(c),Pn.transform(c),Pn.toArray(a[0]),Jr.toArray(a[1]),ds.toArray(a[2]))}tle(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var QC=[],oa=new Vt;function tle(e,t){if(t<=180&&t>0){t=t/180*Math.PI,ds.fromArray(e[0]),Jr.fromArray(e[1]),Pn.fromArray(e[2]),Vt.sub(el,ds,Jr),Vt.sub(js,Pn,Jr);var r=el.len(),n=js.len();if(!(r<.001||n<.001)){el.scale(1/r),js.scale(1/n);var o=el.dot(js),a=Math.cos(t);if(a<o){var i=zC(Jr.x,Jr.y,Pn.x,Pn.y,ds.x,ds.y,QC,!1);oa.fromArray(QC),oa.scaleAndAdd(js,i/Math.tan(Math.PI-t));var s=Pn.x!==Jr.x?(oa.x-Jr.x)/(Pn.x-Jr.x):(oa.y-Jr.y)/(Pn.y-Jr.y);if(isNaN(s))return;s<0?Vt.copy(oa,Jr):s>1&&Vt.copy(oa,Pn),oa.toArray(e[1])}}}}function opt(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ds.fromArray(e[0]),Jr.fromArray(e[1]),Pn.fromArray(e[2]),Vt.sub(el,Jr,ds),Vt.sub(js,Pn,Jr);var n=el.len(),o=js.len();if(!(n<.001||o<.001)){el.scale(1/n),js.scale(1/o);var a=el.dot(t),i=Math.cos(r);if(a<i){var s=zC(Jr.x,Jr.y,Pn.x,Pn.y,ds.x,ds.y,QC,!1);oa.fromArray(QC);var l=Math.PI/2,u=Math.acos(js.dot(t)),c=l+u-r;if(c>=l)Vt.copy(oa,Pn);else{oa.scaleAndAdd(js,s/Math.tan(Math.PI/2-c));var d=Pn.x!==Jr.x?(oa.x-Jr.x)/(Pn.x-Jr.x):(oa.y-Jr.y)/(Pn.y-Jr.y);if(isNaN(d))return;d<0?Vt.copy(oa,Jr):d>1&&Vt.copy(oa,Pn)}oa.toArray(e[1])}}}}function $V(e,t,r,n){var o=r==="normal",a=o?e:e.ensureState(r);a.ignore=t;var i=n.get("smooth");i&&i===!0&&(i=.3),a.shape=a.shape||{},i>0&&(a.shape.smooth=i);var s=n.getModel("lineStyle").getLineStyle();o?e.useStyle(s):a.style=s}function apt(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var o=jl(n[0],n[1]),a=jl(n[1],n[2]);if(!o||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var i=Math.min(o,a)*r,s=U0([],n[1],n[0],i/o),l=U0([],n[1],n[2],i/a),u=U0([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function Z4(e,t,r){var n=e.getTextGuideLine(),o=e.getTextContent();if(!o){n&&e.removeTextGuideLine();return}for(var a=t.normal,i=a.get("show"),s=o.ignore,l=0;l<Qm.length;l++){var u=Qm[l],c=t[u],d=u==="normal";if(c){var f=c.get("show"),A=d?s:Zt(o.states[u]&&o.states[u].ignore,s);if(A||!Zt(f,i)){var h=d?n:n&&n.states[u];h&&(h.ignore=!0);continue}n||(n=new da,e.setTextGuideLine(n),!d&&(s||!i)&&$V(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),$V(n,!1,u,c)}}if(n){Ct(n.style,r),n.style.fill=null;var v=a.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=v||!1,n.buildPath=apt}}function J4(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<sa.length;n++){var o=sa[n];r[o]=e.getModel([o,t])}return r}function rle(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var o=n.label,a=o.getComputedTransform(),i=o.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=o.style.margin||0,u=i.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new _C(i,a):null;t.push({label:o,labelLine:n.labelLine,rect:u,localRect:i,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function nle(e,t,r,n,o,a){var i=e.length;if(i<2)return;e.sort(function(_,B){return _.rect[t]-B.rect[t]});for(var s=0,l,u=!1,c=0,d=0;d<i;d++){var f=e[d],A=f.rect;l=A[t]-s,l<0&&(A[t]-=l,f.label[t]-=l,u=!0);var h=Math.max(-l,0);c+=h,s=A[t]+A[r]}c>0&&a&&x(-c/i,0,i);var v=e[0],p=e[i-1],g,m;y(),g<0&&w(-g,.8),m<0&&w(m,.8),y(),b(g,m,1),b(m,g,-1),y(),g<0&&C(-g),m<0&&C(m);function y(){g=v.rect[t]-n,m=o-p.rect[t]-p.rect[r]}function b(_,B,T){if(_<0){var E=Math.min(B,-_);if(E>0){x(E*T,0,i);var I=E+_;I<0&&w(-I*T,1)}else w(-_*T,1)}}function x(_,B,T){_!==0&&(u=!0);for(var E=B;E<T;E++){var I=e[E],R=I.rect;R[t]+=_,I.label[t]+=_}}function w(_,B){for(var T=[],E=0,I=1;I<i;I++){var R=e[I-1].rect,D=Math.max(e[I].rect[t]-R[t]-R[r],0);T.push(D),E+=D}if(E){var F=Math.min(Math.abs(_)/E,B);if(_>0)for(var I=0;I<i-1;I++){var M=T[I]*F;x(M,0,I+1)}else for(var I=i-1;I>0;I--){var M=T[I-1]*F;x(-M,I,i)}}}function C(_){var B=_<0?-1:1;_=Math.abs(_);for(var T=Math.ceil(_/(i-1)),E=0;E<i-1;E++)if(B>0?x(T,0,E+1):x(-T,i-E-1,i),_-=T,_<=0)return}return u}function ipt(e,t,r,n){return nle(e,"x","width",t,r,n)}function ole(e,t,r,n){return nle(e,"y","height",t,r,n)}function ale(e){var t=[];e.sort(function(v,p){return p.priority-v.priority});var r=new Xt(0,0,0,0);function n(v){if(!v.ignore){var p=v.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}v.ignore=!0}for(var o=0;o<e.length;o++){var a=e[o],i=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var d=a.obb,f=!1,A=0;A<t.length;A++){var h=t[A];if(r.intersect(h.rect)){if(i&&h.axisAligned){f=!0;break}if(h.obb||(h.obb=new _C(h.localRect,h.transform)),d||(d=new _C(s,l)),d.intersect(h.obb)){f=!0;break}}}f?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function spt(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function lpt(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:spt(n&&n.shape.points)}}var UV=["align","verticalAlign","width","height","fontSize"],ka=new ql,sI=br(),upt=br();function ax(e,t,r){for(var n=0;n<r.length;n++){var o=r[n];t[o]!=null&&(e[o]=t[o])}}var ix=["x","y","rotation"],cpt=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,o,a){var i=o.style,s=o.__hostTarget,l=s.textConfig||{},u=o.getComputedTransform(),c=o.getBoundingRect().plain();Xt.applyTransform(c,c,u),u?ka.setLocalTransform(u):(ka.x=ka.y=ka.rotation=ka.originX=ka.originY=0,ka.scaleX=ka.scaleY=1);var d=o.__hostTarget,f;if(d){f=d.getBoundingRect().plain();var A=d.getComputedTransform();Xt.applyTransform(f,f,A)}var h=f&&d.getTextGuideLine();this._labelList.push({label:o,labelLine:h,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:o.ignore,labelGuideIgnore:h&&h.ignore,x:ka.x,y:ka.y,scaleX:ka.scaleX,scaleY:ka.scaleY,rotation:ka.rotation,style:{x:i.x,y:i.y,align:i.align,verticalAlign:i.verticalAlign,width:i.width,height:i.height,fontSize:i.fontSize},cursor:o.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,o=n.get("labelLayout");(bt(o)||sr(o).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var i=a.getTextContent(),s=$t(a);i&&!i.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,i,o)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function o(y,b){return function(){OV(y,b)}}for(var a=0;a<this._labelList.length;a++){var i=this._labelList[a],s=i.label,l=s.__hostTarget,u=i.defaultAttr,c=void 0;bt(i.layoutOption)?c=i.layoutOption(lpt(i,l)):c=i.layoutOption,c=c||{},i.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(c.x!=null?(s.x=qe(c.x,r),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=qe(c.y,n),s.setStyle("y",0),f=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var A=l.getTextGuideLine();A&&(A.setShape({points:c.labelLinePoints}),f=!1)}var h=sI(s);h.needsUpdateLabelLine=f,s.rotation=c.rotate!=null?c.rotate*d:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<UV.length;v++){var p=UV[v];s.setStyle(p,c[p]!=null?c[p]:u.style[p])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var g=i.seriesModel;if(i.dataIndex!=null){var m=i.seriesModel.getData(i.dataType);g=m.getItemModel(i.dataIndex)}s.on("drag",o(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),o=rle(this._labelList),a=kr(o,function(l){return l.layoutOption.moveOverlap==="shiftX"}),i=kr(o,function(l){return l.layoutOption.moveOverlap==="shiftY"});ipt(a,0,r),ole(i,0,n);var s=kr(o,function(l){return l.layoutOption.hideOverlap});ale(s)},e.prototype.processLabelsOverall=function(){var t=this;z(this._chartViewList,function(r){var n=r.__model,o=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(i){if(i.ignore&&!i.forceLabelAnimation)return!0;var s=!o,l=i.getTextContent();!s&&l&&(s=sI(l).needsUpdateLabelLine),s&&t._updateLabelLine(i,n),a&&t._animateLabels(i,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),o=$t(t),a=o.dataIndex;if(n&&a!=null){var i=r.getData(o.dataType),s=i.getItemModel(a),l={},u=i.getItemVisual(a,"style"),c=i.getVisual("drawType");l.stroke=u[c];var d=s.getModel("labelLine");Z4(t,J4(s),l),OV(t,d)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),o=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!yv(t))){var a=sI(n),i=a.oldLayout,s=$t(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(i){n.attr(i);var f=t.prevStates;f&&(Yt(f,"select")>=0&&n.attr(a.oldLayoutSelect),Yt(f,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),gr(n,u,r,l)}else if(n.attr(u),!Lp(n).valueAnimation){var d=Zt(n.style.opacity,1);n.style.opacity=0,ln(n,{style:{opacity:d}},r,l)}if(a.oldLayout=u,n.states.select){var A=a.oldLayoutSelect={};ax(A,u,ix),ax(A,n.states.select,ix)}if(n.states.emphasis){var h=a.oldLayoutEmphasis={};ax(h,u,ix),ax(h,n.states.emphasis,ix)}Wae(n,l,c,r,r)}if(o&&!o.ignore&&!o.invisible){var a=upt(o),i=a.oldLayout,v={points:o.shape.points};i?(o.attr({shape:i}),gr(o,{shape:v},r)):(o.setShape(v),o.style.strokePercent=0,ln(o,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const dpt=cpt;var lI=br();function fpt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var o=lI(r).labelManager;o||(o=lI(r).labelManager=new dpt),o.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var o=lI(r).labelManager;n.updatedSeries.forEach(function(a){o.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),o.updateLayoutConfig(r),o.layout(r),o.processLabelsOverall()})}var uI=Math.sin,cI=Math.cos,ile=Math.PI,of=Math.PI*2,Apt=180/ile,hpt=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,o,a,i){this._add("C",t,r,n,o,a,i)},e.prototype.quadraticCurveTo=function(t,r,n,o){this._add("Q",t,r,n,o)},e.prototype.arc=function(t,r,n,o,a,i){this.ellipse(t,r,n,n,0,o,a,i)},e.prototype.ellipse=function(t,r,n,o,a,i,s,l){var u=s-i,c=!l,d=Math.abs(u),f=bc(d-of)||(c?u>=of:-u>=of),A=u>0?u%of:u%of+of,h=!1;f?h=!0:bc(d)?h=!1:h=A>=ile==!!c;var v=t+n*cI(i),p=r+o*uI(i);this._start&&this._add("M",v,p);var g=Math.round(a*Apt);if(f){var m=1/this._p,y=(c?1:-1)*(of-m);this._add("A",n,o,g,1,+c,t+n*cI(i+y),r+o*uI(i+y)),m>.01&&this._add("A",n,o,g,0,+c,v,p)}else{var b=t+n*cI(s),x=r+o*uI(s);this._add("A",n,o,g,+h,+c,b,x)}},e.prototype.rect=function(t,r,n,o){this._add("M",t,r),this._add("l",n,0),this._add("l",0,o),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,o,a,i,s,l,u){for(var c=[],d=this._p,f=1;f<arguments.length;f++){var A=arguments[f];if(isNaN(A)){this._invalid=!0;return}c.push(Math.round(A*d)/d)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const sle=hpt;var q0="none",vpt=Math.round;function ppt(e){var t=e.fill;return t!=null&&t!==q0}function gpt(e){var t=e.stroke;return t!=null&&t!==q0}var lF=["lineCap","miterLimit","lineJoin"],mpt=Ue(lF,function(e){return"stroke-"+e.toLowerCase()});function ypt(e,t,r,n){var o=t.opacity==null?1:t.opacity;if(r instanceof _o){e("opacity",o);return}if(ppt(t)){var a=Wv(t.fill);e("fill",a.color);var i=t.fillOpacity!=null?t.fillOpacity*a.opacity*o:a.opacity*o;(n||i<1)&&e("fill-opacity",i)}else e("fill",q0);if(gpt(t)){var s=Wv(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*o:s.opacity*o,d=t.strokeFirst;if((n||u!==1)&&e("stroke-width",u),(n||d)&&e("paint-order",d?"stroke":"fill"),(n||c<1)&&e("stroke-opacity",c),t.lineDash){var f=F4(r),A=f[0],h=f[1];A&&(h=vpt(h||0),e("stroke-dasharray",A.join(",")),(h||n)&&e("stroke-dashoffset",h))}else n&&e("stroke-dasharray",q0);for(var v=0;v<lF.length;v++){var p=lF[v];if(n||t[p]!==CC[p]){var g=t[p]||CC[p];g&&e(mpt[v],g)}}}else n&&e("stroke",q0)}var lle="http://www.w3.org/2000/svg",ule="http://www.w3.org/1999/xlink",bpt="http://www.w3.org/2000/xmlns/",xpt="http://www.w3.org/XML/1998/namespace";function cle(e){return document.createElementNS(lle,e)}function lo(e,t,r,n,o){return{tag:e,attrs:r||{},children:n,text:o,key:t}}function wpt(e,t){var r=[];if(t)for(var n in t){var o=t[n],a=n;o!==!1&&(o!==!0&&o!=null&&(a+='="'+o+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function Cpt(e){return"</"+e+">"}function e5(e,t){t=t||{};var r=t.newline?`
  6097. `:"";function n(o){var a=o.children,i=o.tag,s=o.attrs;return wpt(i,s)+(o.text||"")+(a?""+r+Ue(a,function(l){return n(l)}).join(r)+r:"")+Cpt(i)}return n(e)}function Spt(e,t,r){r=r||{};var n=r.newline?`
  6098. `:"",o=" {"+n,a=n+"}",i=Ue(sr(e),function(l){return l+o+Ue(sr(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Ue(sr(t),function(l){return"@keyframes "+l+o+Ue(sr(t[l]),function(u){return u+o+Ue(sr(t[l][u]),function(c){var d=t[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(n)+a}).join(n)+a}).join(n);return!i&&!s?"":["<![CDATA[",i,s,"]]>"].join(n)}function uF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function NV(e,t,r,n){return lo("svg","root",{width:e,height:t,xmlns:lle,"xmlns:xlink":ule,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var HV={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},hf="transform-origin";function _pt(e,t,r){var n=Pe({},e.shape);Pe(n,t),e.buildPath(r,n);var o=new sle;return o.reset(Coe(e)),r.rebuildPath(o,1),o.generateStr(),o.getStr()}function Bpt(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[hf]=r+"px "+n+"px")}var Tpt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dle(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Ept(e,t,r){var n=e.shape.paths,o={},a,i;if(z(n,function(l){var u=uF(r.zrId);u.animation=!0,CB(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=sr(c),A=f.length;if(A){i=f[A-1];var h=c[i];for(var v in h){var p=h[v];o[v]=o[v]||{d:""},o[v].d+=p.d||""}for(var g in d){var m=d[g].animation;m.indexOf(i)>=0&&(a=m)}}}),!!a){t.d=!1;var s=dle(o,r);return a.replace(i,s)}}function zV(e){return Je(e)?HV[e]?"cubic-bezier("+HV[e]+")":VO(e)?e:"":""}function CB(e,t,r,n){var o=e.animators,a=o.length,i=[];if(e instanceof aB){var s=Ept(e,t,r);if(s)i.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=o[u],d=[c.getMaxTime()/1e3+"s"],f=zV(c.getClip().easing),A=c.getDelay();f?d.push(f):d.push("linear"),A&&d.push(A/1e3+"s"),c.getLoop()&&d.push("infinite");var h=d.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(c)}function v(m){var y=m[1],b=y.length,x={},w={},C={},_="animation-timing-function";function B(ce,be,de){for(var pe=ce.getTracks(),K=ce.getMaxTime(),U=0;U<pe.length;U++){var k=pe[U];if(k.needsAnimate()){var J=k.keyframes,ee=k.propName;if(de&&(ee=de(ee)),ee)for(var H=0;H<J.length;H++){var Y=J[H],oe=Math.round(Y.time/K*100)+"%",he=zV(Y.easing),ne=Y.rawValue;(Je(ne)||vr(ne))&&(be[oe]=be[oe]||{},be[oe][ee]=Y.rawValue,he&&(be[oe][_]=he))}}}}for(var T=0;T<b;T++){var E=y[T],I=E.targetName;I?I==="shape"&&B(E,w):!n&&B(E,x)}for(var R in x){var D={};Ioe(D,e),Pe(D,x[R]);var F=Soe(D),M=x[R][_];C[R]=F?{transform:F}:{},Bpt(C[R],D),M&&(C[R][_]=M)}var $,O=!0;for(var R in w){C[R]=C[R]||{};var Q=!$,M=w[R][_];Q&&($=new vl);var V=$.len();$.reset(),C[R].d=_pt(e,w[R],$);var W=$.len();if(!Q&&V!==W){O=!1;break}M&&(C[R][_]=M)}if(!O)for(var R in C)delete C[R].d;if(!n)for(var T=0;T<b;T++){var E=y[T],I=E.targetName;I==="style"&&B(E,C,function(pe){return Tpt[pe]})}for(var Z=sr(C),te=!0,ae,T=1;T<Z.length;T++){var re=Z[T-1],le=Z[T];if(C[re][hf]!==C[le][hf]){te=!1;break}ae=C[re][hf]}if(te&&ae){for(var R in C)C[R][hf]&&delete C[R][hf];t[hf]=ae}if(kr(Z,function(ce){return sr(C[ce]).length>0}).length){var se=dle(C,r);return se+" "+m[0]+" both"}}for(var p in l){var s=v(l[p]);s&&i.push(s)}if(i.length){var g=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+g]={animation:i.join(",")},t.class=g}}var ey=Math.round;function fle(e){return e&&Je(e.src)}function Ale(e){return e&&bt(e.toDataURL)}function t5(e,t,r,n){ypt(function(o,a){var i=o==="fill"||o==="stroke";i&&llt(a)?Lpt(t,e,o,n):i&&slt(a)?Opt(r,e,o,n):e[o]=a},t,r,!1),kpt(r,e,n)}function QV(e){return bc(e[0]-1)&&bc(e[1])&&bc(e[2])&&bc(e[3]-1)}function Ipt(e){return bc(e[4])&&bc(e[5])}function r5(e,t,r){if(t&&!(Ipt(t)&&QV(t))){var n=r?10:1e4;e.transform=QV(t)?"translate("+ey(t[4]*n)/n+" "+ey(t[5]*n)/n+")":tlt(t)}}function VV(e,t,r){for(var n=e.points,o=[],a=0;a<n.length;a++)o.push(ey(n[a][0]*r)/r),o.push(ey(n[a][1]*r)/r);t.points=o.join(" ")}function WV(e){return!e.smooth}function Rpt(e){var t=Ue(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,o){for(var a=0;a<t.length;a++){var i=t[a],s=r[i[0]];s!=null&&(n[i[1]]=ey(s*o)/o)}}}var Dpt={circle:[Rpt(["cx","cy","r"])],polyline:[VV,WV],polygon:[VV,WV]};function Mpt(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function hle(e,t){var r=e.style,n=e.shape,o=Dpt[e.type],a={},i=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Coe(e)||4;if(o&&!t.willUpdate&&!(o[1]&&!o[1](n))&&!(i&&Mpt(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);o[0](n,a,c)}else{e.path||e.createPathProxy();var d=e.path;e.shapeChanged()&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),A=e,h=A.__svgPathBuilder;(A.__svgPathVersion!==f||!h||l!==A.__svgPathStrokePercent)&&(h||(h=A.__svgPathBuilder=new sle),h.reset(u),d.rebuildPath(h,l),h.generateStr(),A.__svgPathVersion=f,A.__svgPathStrokePercent=l),a.d=h.getStr()}return r5(a,e.transform),t5(a,r,e,t),t.animation&&CB(e,a,t),lo(s,e.id+"",a)}function Ppt(e,t){var r=e.style,n=r.image;if(n&&!Je(n)&&(fle(n)?n=n.src:Ale(n)&&(n=n.toDataURL())),!!n){var o=r.x||0,a=r.y||0,i=r.width,s=r.height,l={href:n,width:i,height:s};return o&&(l.x=o),a&&(l.y=a),r5(l,e.transform),t5(l,r,e,t),t.animation&&CB(e,l,t),lo("image",e.id+"",l)}}function Fpt(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var o=r.font||nd,a=r.x||0,i=nlt(r.y||0,Y_(o),r.textBaseline),s=rlt[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(lae(r)){var u="",c=r.fontStyle,d=sae(r.fontSize);if(!parseFloat(d))return;var f=r.fontFamily||jne,A=r.fontWeight;u+="font-size:"+d+";font-family:"+f+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),A&&A!=="normal"&&(u+="font-weight:"+A+";"),l.style=u}else l.style="font: "+o;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),i&&(l.y=i),r5(l,e.transform),t5(l,r,e,t),t.animation&&CB(e,l,t),lo("text",e.id+"",l,void 0,n)}}function GV(e,t){if(e instanceof tr)return hle(e,t);if(e instanceof _o)return Ppt(e,t);if(e instanceof zm)return Fpt(e,t)}function kpt(e,t,r){var n=e.style;if(olt(n)){var o=alt(e),a=r.shadowCache,i=a[o];if(!i){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,d=n.shadowOffsetY||0,f=n.shadowBlur,A=Wv(n.shadowColor),h=A.opacity,v=A.color,p=f/2/l,g=f/2/u,m=p+" "+g;i=r.zrId+"-s"+r.shadowIdx++,r.defs[i]=lo("filter",i,{id:i,x:"-100%",y:"-100%",width:"300%",height:"300%"},[lo("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:m,"flood-color":v,"flood-opacity":h})]),a[o]=i}t.filter=G_(i)}}function Lpt(e,t,r,n){var o=e[r],a,i={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(xoe(o))a="linearGradient",i.x1=o.x,i.y1=o.y,i.x2=o.x2,i.y2=o.y2;else if(woe(o))a="radialGradient",i.cx=Zt(o.x,.5),i.cy=Zt(o.y,.5),i.r=Zt(o.r,.5);else return;for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=yP(s[u].offset)*100+"%",f=s[u].color,A=Wv(f),h=A.color,v=A.opacity,p={offset:d};p["stop-color"]=h,v<1&&(p["stop-opacity"]=v),l.push(lo("stop",u+"",p))}var g=lo(a,"",i,l),m=e5(g),y=n.gradientCache,b=y[m];b||(b=n.zrId+"-g"+n.gradientIdx++,y[m]=b,i.id=b,n.defs[b]=lo(a,b,i,l)),t[r]=G_(b)}function Opt(e,t,r,n){var o=e.style[r],a={patternUnits:"userSpaceOnUse"},i;if(boe(o)){var s=o.imageWidth,l=o.imageHeight,u=void 0,c=o.image;if(Je(c)?u=c:fle(c)?u=c.src:Ale(c)&&(u=c.toDataURL()),typeof Image=="undefined"){var d="Image width/height must been given explictly in svg-ssr renderer.";Xo(s,d),Xo(l,d)}else if(s==null||l==null){var f=function(m,y){if(m){var b=m.elm,x=m.attrs.width=s||y.width,w=m.attrs.height=l||y.height;b&&(b.setAttribute("width",x),b.setAttribute("height",w))}},A=t4(u,null,e,function(m){f(h,m),f(i,m)});A&&A.width&&A.height&&(s=s||A.width,l=l||A.height)}i=lo("image","img",{href:u,width:s,height:l}),a.width=s,a.height=l}else o.svgElement&&(i=It(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(i){a.patternTransform=Soe(o);var h=lo("pattern","",a,[i]),v=e5(h),p=n.patternCache,g=p[v];g||(g=n.zrId+"-p"+n.patternIdx++,p[v]=g,a.id=g,h=n.defs[g]=lo("pattern",g,a,[i])),t[r]=G_(g)}}function $pt(e,t,r){var n=r.clipPathCache,o=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var i={id:a};n[e.id]=a,o[a]=lo("clipPath",a,i,[hle(e,r)])}t["clip-path"]=G_(a)}function KV(e){return document.createTextNode(e)}function Sf(e,t,r){e.insertBefore(t,r)}function jV(e,t){e.removeChild(t)}function YV(e,t){e.appendChild(t)}function vle(e){return e.parentNode}function ple(e){return e.nextSibling}function dI(e,t){e.textContent=t}var XV=58,Upt=120,Npt=lo("","");function cF(e){return e===void 0}function Qs(e){return e!==void 0}function Hpt(e,t,r){for(var n={},o=t;o<=r;++o){var a=e[o].key;a!==void 0&&(n[a]=o)}return n}function u0(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function ty(e){var t,r=e.children,n=e.tag;if(Qs(n)){var o=e.elm=cle(n);if(n5(Npt,e),Oe(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&YV(o,ty(a))}else Qs(e.text)&&!Tt(e.text)&&YV(o,KV(e.text))}else e.elm=KV(e.text);return e.elm}function gle(e,t,r,n,o){for(;n<=o;++n){var a=r[n];a!=null&&Sf(e,ty(a),t)}}function VC(e,t,r,n){for(;r<=n;++r){var o=t[r];if(o!=null)if(Qs(o.tag)){var a=vle(o.elm);jV(a,o.elm)}else jV(e,o.elm)}}function n5(e,t){var r,n=t.elm,o=e&&e.attrs||{},a=t.attrs||{};if(o!==a){for(r in a){var i=a[r],s=o[r];s!==i&&(i===!0?n.setAttribute(r,""):i===!1?n.removeAttribute(r):r.charCodeAt(0)!==Upt?n.setAttribute(r,i):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(bpt,r,i):r.charCodeAt(3)===XV?n.setAttributeNS(xpt,r,i):r.charCodeAt(5)===XV?n.setAttributeNS(ule,r,i):n.setAttribute(r,i))}for(r in o)r in a||n.removeAttribute(r)}}function zpt(e,t,r){for(var n=0,o=0,a=t.length-1,i=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],d,f,A,h;n<=a&&o<=l;)i==null?i=t[++n]:s==null?s=t[--a]:u==null?u=r[++o]:c==null?c=r[--l]:u0(i,u)?(Kh(i,u),i=t[++n],u=r[++o]):u0(s,c)?(Kh(s,c),s=t[--a],c=r[--l]):u0(i,c)?(Kh(i,c),Sf(e,i.elm,ple(s.elm)),i=t[++n],c=r[--l]):u0(s,u)?(Kh(s,u),Sf(e,s.elm,i.elm),s=t[--a],u=r[++o]):(cF(d)&&(d=Hpt(t,n,a)),f=d[u.key],cF(f)?Sf(e,ty(u),i.elm):(A=t[f],A.tag!==u.tag?Sf(e,ty(u),i.elm):(Kh(A,u),t[f]=void 0,Sf(e,A.elm,i.elm))),u=r[++o]);(n<=a||o<=l)&&(n>a?(h=r[l+1]==null?null:r[l+1].elm,gle(e,h,r,o,l)):VC(e,t,n,a))}function Kh(e,t){var r=t.elm=e.elm,n=e.children,o=t.children;e!==t&&(n5(e,t),cF(t.text)?Qs(n)&&Qs(o)?n!==o&&zpt(r,n,o):Qs(o)?(Qs(e.text)&&dI(r,""),gle(r,null,o,0,o.length-1)):Qs(n)?VC(r,n,0,n.length-1):Qs(e.text)&&dI(r,""):e.text!==t.text&&(Qs(n)&&VC(r,n,0,n.length-1),dI(r,t.text)))}function Qpt(e,t){if(u0(e,t))Kh(e,t);else{var r=e.elm,n=vle(r);ty(t),n!==null&&(Sf(n,t.elm,ple(r)),VC(n,[e],0,0))}return t}var Vpt=0,Wpt=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=qV(),this.configLayer=qV(),this.storage=r,this._opts=n=Pe({},n),this.root=t,this._id="zr"+Vpt++,this._oldVNode=NV(n.width,n.height),t&&!n.ssr){var o=this._viewport=document.createElement("div");o.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=cle("svg");n5(null,this._oldVNode),o.appendChild(a),t.appendChild(o)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Qpt(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return GV(t,uF(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._backgroundColor,o=this._width,a=this._height,i=uF(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var s=[];if(n&&n!=="none"){var l=Wv(n),u=l.color,c=l.opacity;this._bgVNode=lo("rect","bg",{width:o,height:a,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),s.push(this._bgVNode)}else this._bgVNode=null;var d=t.compress?null:this._mainVNode=lo("g","main",{},[]);this._paintList(r,i,d?d.children:s),d&&s.push(d);var f=Ue(sr(i.defs),function(v){return i.defs[v]});if(f.length&&s.push(lo("defs","defs",{},f)),t.animation){var A=Spt(i.cssNodes,i.cssAnims,{newline:!0});if(A){var h=lo("style","stl",{},[],A);s.push(h)}}return NV(o,a,s,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},e5(this.renderToVNode({animation:Zt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Zt(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var r=this._bgVNode;if(r&&r.elm){var n=Wv(t),o=n.color,a=n.opacity;r.elm.setAttribute("fill",o),a<1&&r.elm.setAttribute("fill-opacity",a)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var o=t.length,a=[],i=0,s,l,u=0,c=0;c<o;c++){var d=t[c];if(!d.invisible){var f=d.__clipPaths,A=f&&f.length||0,h=l&&l.length||0,v=void 0;for(v=Math.max(A-1,h-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var p=h-1;p>v;p--)i--,s=a[i-1];for(var g=v+1;g<A;g++){var m={};$pt(f[g],m,r);var y=lo("g","clip-g-"+u++,m,[]);(s?s.children:n).push(y),a[i++]=y,s=y}l=f;var b=GV(d,r);b&&(s?s.children:n).push(b)}}},e.prototype.resize=function(t,r){var n=this._opts,o=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),o&&a&&(a.style.display="none",t=tv(o,0,n),r=tv(o,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var i=a.style;i.width=t+"px",i.height=r+"px"}var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(r=ult(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+r},e}();function qV(e){return function(){}}const Gpt=Wpt;function Kpt(e){e.registerPainter("svg",Gpt)}function ZV(e,t,r){var n=ys.createCanvas(),o=t.getWidth(),a=t.getHeight(),i=n.style;return i&&(i.position="absolute",i.left="0",i.top="0",i.width=o+"px",i.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=o*r,n.height=a*r,n}var jpt=function(e){we(t,e);function t(r,n,o){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.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;var i;o=o||xC,typeof r=="string"?i=ZV(r,n,o):Tt(r)&&(i=r,r=i.id),a.id=r,a.dom=i;var s=i.style;return s&&(HO(i),i.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=o,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=ZV("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,o,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],s=this.maxRepaintRectCount,l=!1,u=new Xt(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(i.length===0){var y=new Xt(0,0,0,0);y.copy(m),i.push(y)}else{for(var b=!1,x=1/0,w=0,C=0;C<i.length;++C){var _=i[C];if(_.intersect(m)){var B=new Xt(0,0,0,0);B.copy(_),B.union(m),i[C]=B,b=!0;break}else if(l){u.copy(m),u.union(_);var T=m.width*m.height,E=_.width*_.height,I=u.width*u.height,R=I-T-E;R<x&&(x=R,w=C)}}if(l&&(i[w].union(m),b=!0),!b){var y=new Xt(0,0,0,0);y.copy(m),i.push(y)}l||(l=i.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=r[d];if(f){var A=f.shouldBePainted(o,a,!0,!0),h=f.__isRendered&&(f.__dirty&Qa||!A)?f.getPrevPaintRect():null;h&&c(h);var v=A&&(f.__dirty&Qa||!f.__isRendered)?f.getPaintRect():null;v&&c(v)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var f=n[d],A=f.shouldBePainted(o,a,!0,!0);if(f&&(!A||!f.__zr)&&f.__isRendered){var h=f.getPrevPaintRect();h&&c(h)}}var p;do{p=!1;for(var d=0;d<i.length;){if(i[d].isZero()){i.splice(d,1);continue}for(var g=d+1;g<i.length;)i[d].intersect(i[g])?(p=!0,i[d].union(i[g]),i.splice(g,1)):g++;d++}}while(p);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var o=this.dpr,a=this.dom,i=a.style,s=this.domBack;i&&(i.width=r+"px",i.height=n+"px"),a.width=r*o,a.height=n*o,s&&(s.width=r*o,s.height=n*o,o!==1&&this.ctxBack.scale(o,o))},t.prototype.clear=function(r,n,o){var a=this.dom,i=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,d=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/d,l/d));var A=this.domBack;function h(v,p,g,m){if(i.clearRect(v,p,g,m),n&&n!=="transparent"){var y=void 0;zy(n)?(y=n.__canvasGradient||JP(i,n,{x:0,y:0,width:g,height:m}),n.__canvasGradient=y):Jne(n)&&(y=eF(i,n,{dirty:function(){f.setUnpainted(),f.__painter.refresh()}})),i.save(),i.fillStyle=y||n,i.fillRect(v,p,g,m),i.restore()}u&&(i.save(),i.globalAlpha=c,i.drawImage(A,v,p,g,m),i.restore())}!o||u?h(0,0,s,l):o.length&&z(o,function(v){h(v.x*d,v.y*d,v.width*d,v.height*d)})},t}(Wi);const fI=jpt;var JV=1e5,af=314159,sx=.01,Ypt=.001;function Xpt(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function qpt(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Zpt=function(){function e(t,r,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=Pe({},n||{}),this.dpr=n.devicePixelRatio||xC,this._singleCanvas=a,this.root=t;var i=t.style;i&&(HO(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,d=c.width,f=c.height;n.width!=null&&(d=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,c.width=d*this.dpr,c.height=f*this.dpr,this._width=d,this._height=f;var A=new fI(c,this,this.dpr);A.__builtin__=!0,A.initContext(),l[af]=A,A.zlevel=af,s.push(af),this._domRoot=t}else{this._width=tv(t,0,n),this._height=tv(t,1,n);var u=this._domRoot=qpt(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,o=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<o.length;a++){var i=o[a],s=this._layers[i];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var o={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,i=0;i<r;i++){var s=t[i];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(JV)),a||(a=n.ctx,a.save()),$f(a,s,o,i===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(JV)},e.prototype.paintOne=function(t,r){k4(t,r)},e.prototype._paintList=function(t,r,n,o){if(this._redrawId===o){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),i=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),i)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;vP(function(){l._paintList(t,r,n,o)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(af).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(o){o.virtual&&t.drawImage(o.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var o=this,a=[],i=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,d=!1,f=function(v){var p=a[v],g=p.ctx,m=i&&p.createRepaintRects(t,r,A._width,A._height),y=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,x=b&&Date.now(),w=p.zlevel===A._zlevelList[0]?A._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,w,m);else if(y===p.__startIndex){var C=t[y];(!C.incremental||!C.notClear||n)&&p.clear(!1,w,m)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=p.__startIndex);var _,B=function(R){var D={inHover:!1,allClipped:!1,prevEl:null,viewWidth:o._width,viewHeight:o._height};for(_=y;_<p.__endIndex;_++){var F=t[_];if(F.__inHover&&(d=!0),o._doPaintEl(F,p,i,R,D,_===p.__endIndex-1),b){var M=Date.now()-x;if(M>15)break}}D.prevElClipPaths&&g.restore()};if(m)if(m.length===0)_=p.__endIndex;else for(var T=A.dpr,E=0;E<m.length;++E){var I=m[E];g.save(),g.beginPath(),g.rect(I.x*T,I.y*T,I.width*T,I.height*T),g.clip(),B(I),g.restore()}else g.save(),B(),g.restore();p.__drawIndex=_,p.__drawIndex<p.__endIndex&&(c=!1)},A=this,h=0;h<a.length;h++)f(h);return xr.wxa&&z(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,r,n,o,a,i){var s=r.ctx;if(n){var l=t.getPaintRect();(!o||l&&l.intersect(o))&&($f(s,t,a,i),t.setPrevPaintRect(l))}else $f(s,t,a,i)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=af);var n=this._layers[t];return n||(n=new fI("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Qt(n,this._layerConfig[t],!0):this._layerConfig[t-sx]&&Qt(n,this._layerConfig[t-sx],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,o=this._zlevelList,a=o.length,i=this._domRoot,s=null,l=-1;if(!n[t]&&Xpt(r)){if(a>0&&t>o[0]){for(l=0;l<a-1&&!(o[l]<t&&o[l+1]>t);l++);s=n[o[l]]}if(o.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?i.insertBefore(r.dom,u.nextSibling):i.appendChild(r.dom)}else i.firstChild?i.insertBefore(r.dom,i.firstChild):i.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,o=0;o<n.length;o++){var a=n[o];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,o=0;o<n.length;o++){var a=n[o],i=this._layers[a];i.__builtin__&&t.call(r,i,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,o=0;o<n.length;o++){var a=n[o],i=this._layers[a];i.__builtin__||t.call(r,i,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,f){d.__dirty=d.__used=!1});function r(d){a&&(a.__endIndex!==d&&(a.__dirty=!0),a.__endIndex=d)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var o=t[n];if(o.zlevel!==t[n-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}var a=null,i=0,s,l;for(l=0;l<t.length;l++){var o=t[l],u=o.zlevel,c=void 0;s!==u&&(s=u,i=0),o.incremental?(c=this.getLayer(u+Ypt,this._needsManuallyCompositing),c.incremental=!0,i=1):c=this.getLayer(u+(i>0?sx:0),this._needsManuallyCompositing),c.__builtin__||z_("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,r(l),a=c),o.__dirty&Qa&&!o.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,z(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Qt(n[t],r,!0):n[t]=r;for(var o=0;o<this._zlevelList.length;o++){var a=this._zlevelList[o];if(a===t||a===t+sx){var i=this._layers[a];Qt(i,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,o=r[t];o&&(o.dom.parentNode.removeChild(o.dom),delete r[t],n.splice(Yt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var o=this._opts,a=this.root;if(t!=null&&(o.width=t),r!=null&&(o.height=r),t=tv(a,0,o),r=tv(a,1,o),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var i in this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(af).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[af].dom;var r=new fI("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var o=r.dom.width,a=r.dom.height;this.eachLayer(function(d){d.__builtin__?n.drawImage(d.dom,0,0,o,a):d.renderToCanvas&&(n.save(),d.renderToCanvas(n),n.restore())})}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];$f(n,c,i,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const Jpt=Zpt;function egt(e){e.registerPainter("canvas",Jpt)}var tgt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return Il(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Pt,o=Nn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(o),o.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Nn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?i:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(tn);const rgt=tgt;function jv(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var o=Gv(e,t,r[0]);return o!=null?o+"":null}else if(n){for(var a=[],i=0;i<r.length;i++)a.push(Gv(e,t,r[i]));return a.join(" ")}}function mle(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Oe(t))return t+"";for(var n=[],o=0;o<r.length;o++){var a=e.getDimensionIndex(r[o]);a>=0&&n.push(t[a])}return n.join(" ")}var ngt=function(e){we(t,e);function t(r,n,o,a){var i=e.call(this)||this;return i.updateData(r,n,o,a),i}return t.prototype._createSymbol=function(r,n,o,a,i){this.removeAll();var s=Nn(r,-1,-1,2,2,null,i);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ogt,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){gu(this.childAt(0))},t.prototype.downplay=function(){mu(this.childAt(0))},t.prototype.setZ=function(r,n){var o=this.childAt(0);o.zlevel=r,o.z=n},t.prototype.setDraggable=function(r,n){var o=this.childAt(0);o.draggable=r,o.cursor=!n&&r?"move":o.cursor},t.prototype.updateData=function(r,n,o,a){this.silent=!1;var i=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=i!==this._symbolType,c=a&&a.disableAnimation;if(u){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,r,n,l,d)}else{var f=this.childAt(0);f.silent=!1;var A={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(A):gr(f,A,s,n),Cs(f)}if(this._updateCommon(r,n,l,o,a),u){var f=this.childAt(0);if(!c){var A={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,ln(f,A,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,o,a,i){var s=this.childAt(0),l=r.hostModel,u,c,d,f,A,h,v,p,g;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,d=a.selectItemStyle,f=a.focus,A=a.blurScope,v=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,h=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),y=m.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),d=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),f=y.get("focus"),A=y.get("blurScope"),h=y.get("disabled"),v=wo(m),p=y.getShallow("scale"),g=m.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=Vp(r.getItemVisual(n,"symbolOffset"),o);x&&(s.x=x[0],s.y=x[1]),g&&s.attr("cursor",g);var w=r.getItemVisual(n,"style"),C=w.fill;if(s instanceof _o){var _=s.style;s.useStyle(Pe({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},w))}else s.__isEmptyBrush?s.useStyle(Pe({},w)):s.useStyle(w),s.style.decal=null,s.setColor(C,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var B=r.getItemVisual(n,"liftZ"),T=this._z2;B!=null?T==null&&(this._z2=s.z2,s.z2+=B):T!=null&&(s.z2=T,this._z2=null);var E=i&&i.useNameLabel;Zo(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:w.opacity});function I(F){return E?r.getName(F):jv(r,F)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var R=s.ensureState("emphasis");if(R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c,p){var D=Math.max(vr(p)?p:1.1,3/this._sizeY);R.scaleX=this._sizeX*D,R.scaleY=this._sizeY*D}this.setSymbolScale(1),In(this,f,A,h)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,o){var a=this.childAt(0),i=$t(this).dataIndex,s=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var l=a.getTextContent();l&&ad(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ad(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return rb(r.getItemVisual(n,"symbolSize"))},t}(Pt);function ogt(e,t){this.parent.drift(e,t)}const ab=ngt;function AI(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function e7(e){return e!=null&&!Tt(e)&&(e={isIgnore:e}),e||{}}function t7(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:wo(t),cursorStyle:t.get("cursor")}}var agt=function(){function e(t){this.group=new Pt,this._SymbolCtor=t||ab}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=e7(r);var n=this.group,o=t.hostModel,a=this._data,i=this._SymbolCtor,s=r.disableAnimation,l=t7(t),u={disableAnimation:s},c=r.getSymbolPoint||function(d){return t.getItemLayout(d)};a||n.removeAll(),t.diff(a).add(function(d){var f=c(d);if(AI(t,f,d,r)){var A=new i(t,d,l,u);A.setPosition(f),t.setItemGraphicEl(d,A),n.add(A)}}).update(function(d,f){var A=a.getItemGraphicEl(f),h=c(d);if(!AI(t,h,d,r)){n.remove(A);return}var v=t.getItemVisual(d,"symbol")||"circle",p=A&&A.getSymbolType&&A.getSymbolType();if(!A||p&&p!==v)n.remove(A),A=new i(t,d,l,u),A.setPosition(h);else{A.updateData(t,d,l,u);var g={x:h[0],y:h[1]};s?A.attr(g):gr(A,g,o)}n.add(A),t.setItemGraphicEl(d,A)}).remove(function(d){var f=a.getItemGraphicEl(d);f&&f.fadeOut(function(){n.remove(f)},o)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,o){var a=t._getSymbolPoint(o);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=t7(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=e7(n);function o(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(AI(r,i,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(o),s.setPosition(i),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Cd(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(o){o.fadeOut(function(){r.remove(o)},n.hostModel)}):r.removeAll()},e}();const ib=agt;function yle(e,t,r){var n=e.getBaseAxis(),o=e.getOtherAxis(n),a=igt(o,r),i=n.dim,s=o.dim,l=t.mapDimension(s),u=t.mapDimension(i),c=s==="x"||s==="radius"?1:0,d=Ue(e.dimensions,function(h){return t.mapDimension(h)}),f=!1,A=t.getCalculationInfo("stackResultDimension");return bu(t,d[0])&&(f=!0,d[0]=A),bu(t,d[1])&&(f=!0,d[1]=A),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:i,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function igt(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:vr(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function ble(e,t,r,n){var o=NaN;e.stacked&&(o=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=e.valueStart);var a=e.baseDataOffset,i=[];return i[a]=r.get(e.baseDim,n),i[1-a]=o,t.dataToPoint(i)}function sgt(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,o){r.push({cmd:"=",idx:o,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function lgt(e,t,r,n,o,a,i,s){for(var l=sgt(e,t),u=[],c=[],d=[],f=[],A=[],h=[],v=[],p=yle(o,t,i),g=e.getLayout("points")||[],m=t.getLayout("points")||[],y=0;y<l.length;y++){var b=l[y],x=!0,w=void 0,C=void 0;switch(b.cmd){case"=":w=b.idx*2,C=b.idx1*2;var _=g[w],B=g[w+1],T=m[C],E=m[C+1];(isNaN(_)||isNaN(B))&&(_=T,B=E),u.push(_,B),c.push(T,E),d.push(r[w],r[w+1]),f.push(n[C],n[C+1]),v.push(t.getRawIndex(b.idx1));break;case"+":var I=b.idx,R=p.dataDimsForPoint,D=o.dataToPoint([t.get(R[0],I),t.get(R[1],I)]);C=I*2,u.push(D[0],D[1]),c.push(m[C],m[C+1]);var F=ble(p,o,t,I);d.push(F[0],F[1]),f.push(n[C],n[C+1]),v.push(t.getRawIndex(I));break;case"-":x=!1}x&&(A.push(b),h.push(h.length))}h.sort(function(re,le){return v[re]-v[le]});for(var M=u.length,$=Js(M),O=Js(M),Q=Js(M),V=Js(M),W=[],y=0;y<h.length;y++){var Z=h[y],te=y*2,ae=Z*2;$[te]=u[ae],$[te+1]=u[ae+1],O[te]=c[ae],O[te+1]=c[ae+1],Q[te]=d[ae],Q[te+1]=d[ae+1],V[te]=f[ae],V[te+1]=f[ae+1],W[y]=A[Z]}return{current:$,next:O,stackedOnCurrent:Q,stackedOnNext:V,status:W}}var Xu=Math.min,qu=Math.max;function tA(e,t){return isNaN(e)||isNaN(t)}function dF(e,t,r,n,o,a,i,s,l){for(var u,c,d,f,A,h,v=r,p=0;p<n;p++){var g=t[v*2],m=t[v*2+1];if(v>=o||v<0)break;if(tA(g,m)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](g,m),d=g,f=m;else{var y=g-u,b=m-c;if(y*y+b*b<.5){v+=a;continue}if(i>0){for(var x=v+a,w=t[x*2],C=t[x*2+1];w===g&&C===m&&p<n;)p++,x+=a,v+=a,w=t[x*2],C=t[x*2+1],g=t[v*2],m=t[v*2+1],y=g-u,b=m-c;var _=p+1;if(l)for(;tA(w,C)&&_<n;)_++,x+=a,w=t[x*2],C=t[x*2+1];var B=.5,T=0,E=0,I=void 0,R=void 0;if(_>=n||tA(w,C))A=g,h=m;else{T=w-u,E=C-c;var D=g-u,F=w-g,M=m-c,$=C-m,O=void 0,Q=void 0;if(s==="x"){O=Math.abs(D),Q=Math.abs(F);var V=T>0?1:-1;A=g-V*O*i,h=m,I=g+V*Q*i,R=m}else if(s==="y"){O=Math.abs(M),Q=Math.abs($);var W=E>0?1:-1;A=g,h=m-W*O*i,I=g,R=m+W*Q*i}else O=Math.sqrt(D*D+M*M),Q=Math.sqrt(F*F+$*$),B=Q/(Q+O),A=g-T*i*(1-B),h=m-E*i*(1-B),I=g+T*i*B,R=m+E*i*B,I=Xu(I,qu(w,g)),R=Xu(R,qu(C,m)),I=qu(I,Xu(w,g)),R=qu(R,Xu(C,m)),T=I-g,E=R-m,A=g-T*O/Q,h=m-E*O/Q,A=Xu(A,qu(u,g)),h=Xu(h,qu(c,m)),A=qu(A,Xu(u,g)),h=qu(h,Xu(c,m)),T=g-A,E=m-h,I=g+T*Q/O,R=m+E*Q/O}e.bezierCurveTo(d,f,A,h,g,m),d=I,f=R}else e.lineTo(g,m)}u=g,c=m,v+=a}return p}var xle=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),ugt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xle},t.prototype.buildPath=function(r,n){var o=n.points,a=0,i=o.length/2;if(n.connectNulls){for(;i>0&&tA(o[i*2-2],o[i*2-1]);i--);for(;a<i&&tA(o[a*2],o[a*2+1]);a++);}for(;a<i;)a+=dF(r,o,a,i,i,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var o=this.path,a=o.data,i=vl.CMD,s,l,u=n==="x",c=[],d=0;d<a.length;){var f=a[d++],A=void 0,h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,y=void 0;switch(f){case i.M:s=a[d++],l=a[d++];break;case i.L:if(A=a[d++],h=a[d++],y=u?(r-s)/(A-s):(r-l)/(h-l),y<=1&&y>=0){var b=u?(h-l)*y+l:(A-s)*y+s;return u?[r,b]:[b,r]}s=A,l=h;break;case i.C:A=a[d++],h=a[d++],v=a[d++],p=a[d++],g=a[d++],m=a[d++];var x=u?mC(s,A,v,g,r,c):mC(l,h,p,m,r,c);if(x>0)for(var w=0;w<x;w++){var C=c[w];if(C<=1&&C>=0){var b=u?io(l,h,p,m,C):io(s,A,v,g,C);return u?[r,b]:[b,r]}}s=g,l=m;break}}},t}(tr),cgt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(xle),wle=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new cgt},t.prototype.buildPath=function(r,n){var o=n.points,a=n.stackedOnPoints,i=0,s=o.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&tA(o[s*2-2],o[s*2-1]);s--);for(;i<s&&tA(o[i*2],o[i*2+1]);i++);}for(;i<s;){var u=dF(r,o,i,s,s,1,n.smooth,l,n.connectNulls);dF(r,a,i+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),i+=u+1,r.closePath()}},t}(tr);function Cle(e,t,r,n,o){var a=e.getArea(),i=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;i-=c/2,s-=c/2,l+=c,u+=c,i=Math.floor(i),l=Math.round(l);var d=new hr({shape:{x:i,y:s,width:l,height:u}});if(t){var f=e.getBaseAxis(),A=f.isHorizontal(),h=f.inverse;A?(h&&(d.shape.x+=l),d.shape.width=0):(h||(d.shape.y+=u),d.shape.height=0);var v=bt(o)?function(p){o(p,d)}:null;ln(d,{shape:{width:l,height:u,x:i,y:s}},r,null,n,v)}return d}function Sle(e,t,r){var n=e.getArea(),o=Cn(n.r0,1),a=Cn(n.r,1),i=new la({shape:{cx:Cn(e.cx,1),cy:Cn(e.cy,1),r0:o,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?i.shape.endAngle=n.startAngle:i.shape.r=o,ln(i,{shape:{endAngle:n.endAngle,r:a}},r)}return i}function SB(e,t,r,n,o){if(e){if(e.type==="polar")return Sle(e,t,r);if(e.type==="cartesian2d")return Cle(e,t,r,n,o)}else return null;return null}function QA(e,t){return e.type===t}function r7(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function n7(e){for(var t=1/0,r=1/0,n=-1/0,o=-1/0,a=0;a<e.length;){var i=e[a++],s=e[a++];isNaN(i)||(t=Math.min(i,t),n=Math.max(i,n)),isNaN(s)||(r=Math.min(s,r),o=Math.max(s,o))}return[[t,r],[n,o]]}function o7(e,t){var r=n7(e),n=r[0],o=r[1],a=n7(t),i=a[0],s=a[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function a7(e){return vr(e)?e:e?.5:0}function dgt(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),o=Js(n*2),a=0;a<n;a++){var i=ble(r,e,t,a);o[a*2]=i[0],o[a*2+1]=i[1]}return o}function Zu(e,t,r,n){var o=t.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,i=[],s=0,l=[],u=[],c=[],d=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],i.push(u[0],u[1]),r){case"end":l[a]=c[a],l[1-a]=u[1-a],i.push(l[0],l[1]);break;case"middle":var f=(u[a]+c[a])/2,A=[];l[a]=A[a]=f,l[1-a]=u[1-a],A[1-a]=c[1-a],i.push(l[0],l[1]),i.push(A[0],A[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],i.push(l[0],l[1])}return i.push(e[s++],e[s++]),i}function fgt(e,t){var r=[],n=e.length,o,a;function i(c,d,f){var A=c.coord,h=(f-A)/(d.coord-A),v=WO(h,[c.color,d.color]);return{coord:f,color:v}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)o=l;else if(u>t){a?r.push(i(a,l,t)):o&&r.push(i(o,l,0),i(o,l,t));break}else o&&(r.push(i(o,l,0)),o=null),r.push(l),a=l}return r}function Agt(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var o,a,i=n.length-1;i>=0;i--){var s=e.getDimensionInfo(n[i].dimension);if(o=s&&s.coordDim,o==="x"||o==="y"){a=n[i];break}}if(a){var l=t.getAxis(o),u=Ue(a.stops,function(y){return{coord:l.toGlobalCoord(l.dataToCoord(y.value)),color:y.color}}),c=u.length,d=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=fgt(u,o==="x"?r.getWidth():r.getHeight()),A=f.length;if(!A&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var h=10,v=f[0].coord-h,p=f[A-1].coord+h,g=p-v;if(g<.001)return"transparent";z(f,function(y){y.offset=(y.coord-v)/g}),f.push({offset:A?f[A-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:A?f[0].offset:.5,color:d[0]||"transparent"});var m=new Mp(0,0,0,0,f,!0);return m[o]=v,m[o+"2"]=p,m}}}function hgt(e,t,r){var n=e.get("showAllSymbol"),o=n==="auto";if(!(n&&!o)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(o&&vgt(a,t))){var i=t.mapDimension(a.dim),s={};return z(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(i,l))}}}}function vgt(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var o=t.count(),a=Math.max(1,Math.round(o/5)),i=0;i<o;i+=a)if(ab.getSymbolSize(t,i)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function pgt(e,t){return isNaN(e)||isNaN(t)}function ggt(e){for(var t=e.length/2;t>0&&pgt(e[t*2-2],e[t*2-1]);t--);return t-1}function i7(e,t){return[e[t*2],e[t*2+1]]}function mgt(e,t,r){for(var n=e.length/2,o=r==="x"?0:1,a,i,s=0,l=-1,u=0;u<n;u++)if(i=e[u*2+o],!(isNaN(i)||isNaN(e[u*2+1-o]))){if(u===0){a=i;continue}if(a<=t&&i>=t||a>=t&&i<=t){l=u;break}s=u,a=i}return{range:[s,l],t:(t-a)/(i-a)}}function _le(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<sa.length;t++)if(e.get([sa[t],"endLabel","show"]))return!0;return!1}function hI(e,t,r,n){if(QA(t,"cartesian2d")){var o=n.getModel("endLabel"),a=o.get("valueAnimation"),i=n.getData(),s={lastFrameIndex:0},l=_le(n)?function(A,h){e._endLabelOnDuring(A,h,i,s,a,o,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Cle(t,r,n,function(){var A=e._endLabel;A&&r&&s.originalX!=null&&A.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var d=c.shape,f=Math.max(d.width,d.height);u?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return l&&l(1,c),c}else return Sle(t,r,n)}function ygt(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),o=r.inverse,a=n?o?"right":"left":"center",i=n?"middle":o?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||i}}}var bgt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Pt,n=new ib;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,o){var a=this,i=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),d=l.getLayout("points")||[],f=i.type==="polar",A=this._coordSys,h=this._symbolDraw,v=this._polyline,p=this._polygon,g=this._lineGroup,m=r.get("animation"),y=!c.isEmpty(),b=c.get("origin"),x=yle(i,l,b),w=y&&dgt(i,l,x),C=r.get("showSymbol"),_=r.get("connectNulls"),B=C&&!f&&hgt(r,l,i),T=this._data;T&&T.eachItemGraphicEl(function(le,se){le.__temp&&(s.remove(le),T.setItemGraphicEl(se,null))}),C||h.remove(),s.add(g);var E=f?!1:r.get("step"),I;i&&i.getArea&&r.get("clip",!0)&&(I=i.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var R=Agt(l,i,o)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&A.type===i.type&&E===this._step))C&&h.updateData(l,{isIgnore:B,clipShape:I,disableAnimation:!0,getSymbolPoint:function(le){return[d[le*2],d[le*2+1]]}}),m&&this._initSymbolLabelAnimation(l,i,I),E&&(d=Zu(d,i,E,_),w&&(w=Zu(w,i,E,_))),v=this._newPolyline(d),y?p=this._newPolygon(d,w):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,i,gA(R)),g.setClipPath(hI(this,i,!0,r));else{y&&!p?p=this._newPolygon(d,w):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,i,gA(R));var D=g.getClipPath();if(D){var F=hI(this,i,!1,r);ln(D,{shape:F.shape},r)}else g.setClipPath(hI(this,i,!0,r));C&&h.updateData(l,{isIgnore:B,clipShape:I,disableAnimation:!0,getSymbolPoint:function(le){return[d[le*2],d[le*2+1]]}}),(!r7(this._stackedOnPoints,w)||!r7(this._points,d))&&(m?this._doUpdateAnimation(l,w,i,o,E,b,_):(E&&(d=Zu(d,i,E,_),w&&(w=Zu(w,i,E,_))),v.setShape({points:d}),p&&p.setShape({points:d,stackedOnPoints:w})))}var M=r.getModel("emphasis"),$=M.get("focus"),O=M.get("blurScope"),Q=M.get("disabled");if(v.useStyle(Ct(u.getLineStyle(),{fill:"none",stroke:R,lineJoin:"bevel"})),Oo(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=v.getState("emphasis").style;V.lineWidth=+v.style.lineWidth+1}$t(v).seriesIndex=r.seriesIndex,In(v,$,O,Q);var W=a7(r.get("smooth")),Z=r.get("smoothMonotone");if(v.setShape({smooth:W,smoothMonotone:Z,connectNulls:_}),p){var te=l.getCalculationInfo("stackedOnSeries"),ae=0;p.useStyle(Ct(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),te&&(ae=a7(te.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:ae,smoothMonotone:Z,connectNulls:_}),Oo(p,r,"areaStyle"),$t(p).seriesIndex=r.seriesIndex,In(p,$,O,Q)}var re=function(le){a._changePolyState(le)};l.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=l,this._coordSys=i,this._stackedOnPoints=w,this._points=d,this._step=E,this._valueOrigin=b,r.get("triggerLineEvent")&&(this.packEventData(r,v),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){$t(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,o,a){var i=r.getData(),s=hA(i,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=i.getLayout("points"),u=i.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=r.get("zlevel"),A=r.get("z");u=new ab(i,s),u.x=c,u.y=d,u.setZ(f,A);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=f,h.z=A,h.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Gr.prototype.highlight.call(this,r,n,o,a)},t.prototype.downplay=function(r,n,o,a){var i=r.getData(),s=hA(i,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=i.getItemGraphicEl(s);l&&(l.__temp?(i.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Gr.prototype.downplay.call(this,r,n,o,a)},t.prototype._changePolyState=function(r){var n=this._polygon;SC(this._polyline,r),n&&SC(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new ugt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new wle({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},t.prototype._initSymbolLabelAnimation=function(r,n,o){var a,i,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),i=!1):n.type==="polar"&&(a=s.dim==="angle",i=!0);var u=r.hostModel,c=u.get("animationDuration");bt(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=bt(d)?d(null):d;r.eachItemGraphicEl(function(A,h){var v=A;if(v){var p=[A.x,A.y],g=void 0,m=void 0,y=void 0;if(o)if(i){var b=o,x=n.pointToCoord(p);a?(g=b.startAngle,m=b.endAngle,y=-x[1]/180*Math.PI):(g=b.r0,m=b.r,y=x[0])}else{var w=o;a?(g=w.x,m=w.x+w.width,y=A.x):(g=w.y+w.height,m=w.y,y=A.y)}var C=m===g?0:(y-g)/(m-g);l&&(C=1-C);var _=bt(d)?d(h):c*C+f,B=v.getSymbolPath(),T=B.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:_}),B.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,o){var a=r.getModel("endLabel");if(_le(r)){var i=r.getData(),s=this._polyline,l=i.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=ggt(l);c>=0&&(Zo(s,wo(r,"endLabel"),{inheritColor:o,labelFetcher:r,labelDataIndex:c,defaultText:function(d,f,A){return A!=null?mle(i,A):jv(i,d)},enableTextSetter:!0},ygt(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,o,a,i,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var d=o.getLayout("points"),f=o.hostModel,A=f.get("connectNulls"),h=s.get("precision"),v=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,y=n.shape,b=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?v:0)*(m?-1:1),w=(g?0:-v)*(m?-1:1),C=g?"x":"y",_=mgt(d,b,C),B=_.range,T=B[1]-B[0],E=void 0;if(T>=1){if(T>1&&!A){var I=i7(d,B[0]);u.attr({x:I[0]+x,y:I[1]+w}),i&&(E=f.getRawValue(B[0]))}else{var I=c.getPointOn(b,C);I&&u.attr({x:I[0]+x,y:I[1]+w});var R=f.getRawValue(B[0]),D=f.getRawValue(B[1]);i&&(E=Woe(o,h,R,D,_.t))}a.lastFrameIndex=B[0]}else{var F=r===1||a.lastFrameIndex>0?B[0]:0,I=i7(d,F);i&&(E=f.getRawValue(F)),u.attr({x:I[0]+x,y:I[1]+w})}i&&Lp(u).setLabelText(E)}},t.prototype._doUpdateAnimation=function(r,n,o,a,i,s,l){var u=this._polyline,c=this._polygon,d=r.hostModel,f=lgt(this._data,r,this._stackedOnPoints,n,this._coordSys,o,this._valueOrigin),A=f.current,h=f.stackedOnCurrent,v=f.next,p=f.stackedOnNext;if(i&&(A=Zu(f.current,o,i,l),h=Zu(f.stackedOnCurrent,o,i,l),v=Zu(f.next,o,i,l),p=Zu(f.stackedOnNext,o,i,l)),o7(A,v)>3e3||c&&o7(h,p)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:p}));return}u.shape.__points=f.current,u.shape.points=A;var g={shape:{points:v}};f.current!==A&&(g.shape.__points=f.next),u.stopAnimation(),gr(u,g,d),c&&(c.setShape({points:A,stackedOnPoints:h}),c.stopAnimation(),gr(c,{shape:{stackedOnPoints:p}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],y=f.status,b=0;b<y.length;b++){var x=y[b].cmd;if(x==="="){var w=r.getItemGraphicEl(y[b].idx1);w&&m.push({el:w,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,_=0;_<m.length;_++){var B=m[_].el,T=m[_].ptIdx*2;B.x=C[T],B.y=C[T+1],B.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,o=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),o&&o.eachItemGraphicEl(function(a,i){a.__temp&&(n.remove(a),o.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Gr);const xgt=bgt;function sb(e,t){return{seriesType:e,plan:zp(),reset:function(r){var n=r.getData(),o=r.coordinateSystem,a=r.pipelineContext,i=t||a.large;if(o){var s=Ue(o.dimensions,function(A){return n.mapDimension(A)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");bu(n,s[0])&&(s[0]=u),bu(n,s[1])&&(s[1]=u);var c=n.getStore(),d=n.getDimensionIndex(s[0]),f=n.getDimensionIndex(s[1]);return l&&{progress:function(A,h){for(var v=A.end-A.start,p=i&&Js(v*l),g=[],m=[],y=A.start,b=0;y<A.end;y++){var x=void 0;if(l===1){var w=c.get(d,y);x=o.dataToPoint(w,null,m)}else g[0]=c.get(d,y),g[1]=c.get(f,y),x=o.dataToPoint(g,null,m);i?(p[b++]=x[0],p[b++]=x[1]):h.setItemLayout(y,x.slice())}i&&h.setLayout("points",p)}}}}}}var wgt={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Cgt=function(e){return Math.round(e.length/2)};function Ble(e){return{seriesType:e,reset:function(t,r,n){var o=t.getData(),a=t.get("sampling"),i=t.coordinateSystem,s=o.count();if(s>10&&i.type==="cartesian2d"&&a){var l=i.getBaseAxis(),u=i.getOtherAxis(l),c=l.getExtent(),d=n.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),A=Math.round(s/f);if(isFinite(A)&&A>1){a==="lttb"&&t.setData(o.lttbDownSample(o.mapDimension(u.dim),1/A));var h=void 0;Je(a)?h=wgt[a]:bt(a)&&(h=a),h&&t.setData(o.downSample(o.mapDimension(u.dim),1/A,h,Cgt))}}}}}function Sgt(e){e.registerChartView(xgt),e.registerSeriesModel(rgt),e.registerLayout(sb("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ble("line"))}var Tle=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Il(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.dataToPoint(n.clampData(r)),a=this.getData(),i=a.getLayout("offset"),s=a.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return o[l]+=i+s/2,o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(tn);tn.registerClass(Tle);const WC=Tle;var _gt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Il(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,o){return o.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Sd(WC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(WC);const Bgt=_gt;var Tgt=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Egt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Tgt},t.prototype.buildPath=function(r,n){var o=n.cx,a=n.cy,i=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-i)*.5,u=i+l,c=n.startAngle,d=n.endAngle,f=n.clockwise,A=Math.PI*2,h=f?d-c<A:c-d<A;h||(c=d-(f?A:-A));var v=Math.cos(c),p=Math.sin(c),g=Math.cos(d),m=Math.sin(d);h?(r.moveTo(v*i+o,p*i+a),r.arc(v*u+o,p*u+a,l,-Math.PI+c,c,!f)):r.moveTo(v*s+o,p*s+a),r.arc(o,a,s,c,d,!f),r.arc(g*u+o,m*u+a,l,d-Math.PI*2,d-Math.PI,!f),i!==0&&r.arc(o,a,i,d,c,f)},t}(tr);const GC=Egt;function Igt(e,t){t=t||{};var r=t.isRoundCap;return function(n,o,a){var i=o.position;if(!i||i instanceof Array)return wC(n,o,a);var s=e(i),l=o.distance!=null?o.distance:5,u=this.shape,c=u.cx,d=u.cy,f=u.r,A=u.r0,h=(f+A)/2,v=u.startAngle,p=u.endAngle,g=(v+p)/2,m=r?Math.abs(f-A)/2:0,y=Math.cos,b=Math.sin,x=c+f*y(v),w=d+f*b(v),C="left",_="top";switch(s){case"startArc":x=c+(A-l)*y(g),w=d+(A-l)*b(g),C="center",_="top";break;case"insideStartArc":x=c+(A+l)*y(g),w=d+(A+l)*b(g),C="center",_="bottom";break;case"startAngle":x=c+h*y(v)+lx(v,l+m,!1),w=d+h*b(v)+ux(v,l+m,!1),C="right",_="middle";break;case"insideStartAngle":x=c+h*y(v)+lx(v,-l+m,!1),w=d+h*b(v)+ux(v,-l+m,!1),C="left",_="middle";break;case"middle":x=c+h*y(g),w=d+h*b(g),C="center",_="middle";break;case"endArc":x=c+(f+l)*y(g),w=d+(f+l)*b(g),C="center",_="bottom";break;case"insideEndArc":x=c+(f-l)*y(g),w=d+(f-l)*b(g),C="center",_="top";break;case"endAngle":x=c+h*y(p)+lx(p,l+m,!0),w=d+h*b(p)+ux(p,l+m,!0),C="left",_="middle";break;case"insideEndAngle":x=c+h*y(p)+lx(p,-l+m,!0),w=d+h*b(p)+ux(p,-l+m,!0),C="right",_="middle";break;default:return wC(n,o,a)}return n=n||{},n.x=x,n.y=w,n.align=C,n.verticalAlign=_,n}}function Rgt(e,t,r,n){if(vr(n)){e.setTextConfig({rotation:n});return}else if(Oe(t)){e.setTextConfig({rotation:0});return}var o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,i=o.clockwise?o.endAngle:o.startAngle,s=(a+i)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=i;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function lx(e,t,r){return t*Math.sin(e)*(r?-1:1)}function ux(e,t,r){return t*Math.cos(e)*(r?1:-1)}var vI=Math.max,pI=Math.min;function Dgt(e,t){var r=e.getArea&&e.getArea();if(QA(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var o=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=o,r.width+=o*2):(r.y-=o,r.height+=o*2)}}return r}var Mgt=function(e){we(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,o,a){this._model=r,this._removeOnRenderedListener(o),this._updateDrawMode(r);var i=r.get("coordinateSystem");(i==="cartesian2d"||i==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,o):this._renderNormal(r,n,o,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Cd(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,o,a){var i=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),d;u.type==="cartesian2d"?d=c.isHorizontal():u.type==="polar"&&(d=c.dim==="angle");var f=r.isAnimationEnabled()?r:null,A=Pgt(r,u);A&&this._enableRealtimeSort(A,s,o);var h=r.get("clip",!0)||A,v=Dgt(u,s);i.removeClipPath();var p=r.get("roundCap",!0),g=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),y=m.get("borderRadius")||0,b=[],x=this._backgroundEls,w=a&&a.isInitSort,C=a&&a.type==="changeAxisOrder";function _(E){var I=cx[u.type](s,E),R=Ngt(u,d,I);return R.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&R.setShape("r",y),b[E]=R,R}s.diff(l).add(function(E){var I=s.getItemModel(E),R=cx[u.type](s,E,I);if(g&&_(E),!(!s.hasValue(E)||!d7[u.type](R))){var D=!1;h&&(D=s7[u.type](v,R));var F=l7[u.type](r,s,E,R,d,f,c.model,!1,p);A&&(F.forceLabelAnimation=!0),f7(F,s,E,I,R,r,d,u.type==="polar"),w?F.attr({shape:R}):A?u7(A,f,F,R,E,d,!1,!1):ln(F,{shape:R},r,E),s.setItemGraphicEl(E,F),i.add(F),F.ignore=D}}).update(function(E,I){var R=s.getItemModel(E),D=cx[u.type](s,E,R);if(g){var F=void 0;x.length===0?F=_(I):(F=x[I],F.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&F.setShape("r",y),b[E]=F);var M=cx[u.type](s,E),$=Ile(d,M,u);gr(F,{shape:$},f,E)}var O=l.getItemGraphicEl(I);if(!s.hasValue(E)||!d7[u.type](D)){i.remove(O);return}var Q=!1;if(h&&(Q=s7[u.type](v,D),Q&&i.remove(O)),O?Cs(O):O=l7[u.type](r,s,E,D,d,f,c.model,!!O,p),A&&(O.forceLabelAnimation=!0),C){var V=O.getTextContent();if(V){var W=Lp(V);W.prevValue!=null&&(W.prevValue=W.value)}}else f7(O,s,E,R,D,r,d,u.type==="polar");w?O.attr({shape:D}):A?u7(A,f,O,D,E,d,!0,C):gr(O,{shape:D},r,E,null),s.setItemGraphicEl(E,O),O.ignore=Q,i.add(O)}).remove(function(E){var I=l.getItemGraphicEl(E);I&&Wm(I,r,E)}).execute();var B=this._backgroundGroup||(this._backgroundGroup=new Pt);B.removeAll();for(var T=0;T<b.length;++T)B.add(b[T]);i.add(B),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,o){this._clear(),h7(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),h7(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&SB(r.coordinateSystem,!1,r),o=this.group;n?o.setClipPath(n):o.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,o){var a=this;if(n.count()){var i=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,o),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(i.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,i,o)},o.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,o){var a=[];return r.each(r.mapDimension(n.dim),function(i,s){var l=o(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:i})}),a.sort(function(i,s){return s.mappedValue-i.mappedValue}),{ordinalNumbers:Ue(a,function(i){return i.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,o){for(var a=o.scale,i=r.mapDimension(o.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(i,a.getRawOrdinalNumber(l)),d=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var o=n.scale,a=o.getExtent(),i=Math.max(0,a[0]),s=Math.min(a[1],o.getOrdinalMeta().categories.length-1);i<=s;++i)if(r.ordinalNumbers[i]!==o.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(r,n,o,a){if(this._isOrderChangedWithinSameData(r,n,o)){var i=this._dataSort(r,o,n);this._isOrderDifferentInView(i,o)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(r,n,o){var a=n.baseAxis,i=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:i})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,o=this._data;r&&r.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(a){Wm(a,r,$t(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Gr),s7={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,a=e.y+e.height,i=vI(t.x,e.x),s=pI(t.x+t.width,o),l=vI(t.y,e.y),u=pI(t.y+t.height,a),c=s<i,d=u<l;return t.x=c&&i>o?s:i,t.y=d&&l>a?u:l,t.width=c?0:s-i,t.height=d?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var o=pI(t.r,e.r),a=vI(t.r0,e.r0);t.r=o,t.r0=a;var i=o-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return i}},l7={cartesian2d:function(e,t,r,n,o,a,i,s,l){var u=new hr({shape:Pe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,d=o?"height":"width";c[d]=0}return u},polar:function(e,t,r,n,o,a,i,s,l){var u=!o&&l?GC:la,c=new u({shape:n,z2:1});c.name="item";var d=Ele(o);if(c.calculateTextPosition=Igt(d,{isRoundCap:u===GC}),a){var f=c.shape,A=o?"r":"endAngle",h={};f[A]=o?0:n.startAngle,h[A]=n[A],(s?gr:ln)(c,{shape:h},a)}return c}};function Pgt(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function u7(e,t,r,n,o,a,i,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(i?gr:ln)(r,{shape:l},t,o,null);var c=t?e.baseAxis.model:null;(i?gr:ln)(r,{shape:u},c,o)}function c7(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var Fgt=["x","y","width","height"],kgt=["cx","cy","r","startAngle","endAngle"],d7={cartesian2d:function(e){return!c7(e,Fgt)},polar:function(e){return!c7(e,kgt)}},cx={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),o=r?Ogt(r,n):0,a=n.width>0?1:-1,i=n.height>0?1:-1;return{x:n.x+a*o/2,y:n.y+i*o/2,width:n.width-a*o,height:n.height-i*o}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Lgt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Ele(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function f7(e,t,r,n,o,a,i,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var c=s?i?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":i?o.height>=0?"bottom":"top":o.width>=0?"right":"left",d=wo(n);Zo(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:jv(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=e.getTextContent();if(s&&f){var A=n.get(["label","position"]);e.textConfig.inside=A==="middle"?!0:null,Rgt(e,A==="outside"?c:A,Ele(i),n.get(["label","rotate"]))}Vae(f,d,a.getRawValue(r),function(v){return mle(t,v)});var h=n.getModel(["emphasis"]);In(e,h.get("focus"),h.get("blurScope"),h.get("disabled")),Oo(e,n),Lgt(o)&&(e.style.fill="none",e.style.stroke="none",z(e.states,function(v){v.style&&(v.style.fill=v.style.stroke="none")}))}function Ogt(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,o,a)}var $gt=function(){function e(){}return e}(),A7=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new $gt},t.prototype.buildPath=function(r,n){for(var o=n.points,a=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<o.length;c+=3)l[a]=u,l[i]=o[c+2],s[a]=o[c+a],s[i]=o[c+i],r.rect(s[0],s[1],l[0],l[1])},t}(tr);function h7(e,t,r,n){var o=e.getData(),a=o.getLayout("valueAxisHorizontal")?1:0,i=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=e.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var c=new A7({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=i,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var d=new A7({shape:{points:o.getLayout("largePoints")},incremental:!!n,z2:1});d.baseDimIdx=a,d.largeDataIndices=i,d.barWidth=s,t.add(d),d.useStyle(o.getVisual("style")),$t(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",v7),d.on("mousemove",v7)),r&&r.push(d)}var v7=gB(function(e){var t=this,r=Ugt(t,e.offsetX,e.offsetY);$t(t).dataIndex=r>=0?r:null},30,!1);function Ugt(e,t,r){for(var n=e.baseDimIdx,o=1-n,a=e.shape.points,i=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=a.length/3;c<d;c++){var f=c*3;if(l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return i[c]}return-1}function Ile(e,t,r){if(QA(r,"cartesian2d")){var n=t,o=r.getArea();return{x:e?n.x:o.x,y:e?o.y:n.y,width:e?n.width:o.width,height:e?o.height:n.height}}else{var o=r.getArea(),a=t;return{cx:o.cx,cy:o.cy,r0:e?o.r0:a.r0,r:e?o.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Ngt(e,t,r){var n=e.type==="polar"?la:hr;return new n({shape:Ile(t,r,e),silent:!0,z2:0})}const Hgt=Mgt;function zgt(e){e.registerChartView(Hgt),e.registerSeriesModel(Bgt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ut(kse,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lse("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ble("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(o){t.sortInfo&&o.axis.setCategorySortInfo(t.sortInfo)})})}var dx=Math.PI*2,p7=Math.PI/180;function Rle(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Dle(e,t){var r=Rle(e,t),n=e.get("center"),o=e.get("radius");Oe(o)||(o=[0,o]),Oe(n)||(n=[n,n]);var a=qe(r.width,t.getWidth()),i=qe(r.height,t.getHeight()),s=Math.min(a,i),l=qe(n[0],a)+r.x,u=qe(n[1],i)+r.y,c=qe(o[0],s/2),d=qe(o[1],s/2);return{cx:l,cy:u,r0:c,r:d}}function Qgt(e,t,r){t.eachSeriesByType(e,function(n){var o=n.getData(),a=o.mapDimension("value"),i=Rle(n,r),s=Dle(n,r),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-n.get("startAngle")*p7,A=n.get("minAngle")*p7,h=0;o.each(a,function(T){!isNaN(T)&&h++});var v=o.getSum(a),p=Math.PI/(v||h)*2,g=n.get("clockwise"),m=n.get("roseType"),y=n.get("stillShowZeroSum"),b=o.getDataExtent(a);b[0]=0;var x=dx,w=0,C=f,_=g?1:-1;if(o.setLayout({viewRect:i,r:c}),o.each(a,function(T,E){var I;if(isNaN(T)){o.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:d,r:m?NaN:c});return}m!=="area"?I=v===0&&y?p:T*p:I=dx/h,I<A?(I=A,x-=A):w+=T;var R=C+_*I;o.setItemLayout(E,{angle:I,startAngle:C,endAngle:R,clockwise:g,cx:l,cy:u,r0:d,r:m?Fr(T,b,[d,c]):c}),C=R}),x<dx&&h)if(x<=.001){var B=dx/h;o.each(a,function(T,E){if(!isNaN(T)){var I=o.getItemLayout(E);I.angle=B,I.startAngle=f+_*E*B,I.endAngle=f+_*(E+1)*B}})}else p=x/w,C=f,o.each(a,function(T,E){if(!isNaN(T)){var I=o.getItemLayout(E),R=I.angle===A?A:T*p;I.startAngle=C,I.endAngle=C+_*R,C+=_*R}})})}function lb(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var o=t.getData();o.filterSelf(function(a){for(var i=o.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(i))return!1;return!0})}}}}var Vgt=Math.PI/180;function g7(e,t,r,n,o,a,i,s,l,u){if(e.length<2)return;function c(v){for(var p=v.rB,g=p*p,m=0;m<v.list.length;m++){var y=v.list[m],b=Math.abs(y.label.y-r),x=n+y.len,w=x*x,C=Math.sqrt((1-Math.abs(b*b/g))*w),_=t+(C+y.len2)*o,B=_-y.label.x,T=y.targetTextWidth-B*o;Mle(y,T,!0),y.label.x=_}}function d(v){for(var p={list:[],maxY:0},g={list:[],maxY:0},m=0;m<v.length;m++)if(v[m].labelAlignTo==="none"){var y=v[m],b=y.label.y>r?g:p,x=Math.abs(y.label.y-r);if(x>=b.maxY){var w=y.label.x-t-y.len2*o,C=n+y.len,_=Math.abs(w)<C?Math.sqrt(x*x/(1-w*w/C/C)):C;b.rB=_,b.maxY=x}b.list.push(y)}c(p),c(g)}for(var f=e.length,A=0;A<f;A++)if(e[A].position==="outer"&&e[A].labelAlignTo==="labelLine"){var h=e[A].label.x-u;e[A].linePoints[1][0]+=h,e[A].label.x=u}ole(e,l,l+i)&&d(e)}function Wgt(e,t,r,n,o,a,i,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var A=e[f].label;gI(e[f])||(A.x<t?(c=Math.min(c,A.x),l.push(e[f])):(d=Math.max(d,A.x),u.push(e[f])))}for(var f=0;f<e.length;f++){var h=e[f];if(!gI(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var A=h.label,v=h.linePoints,p=void 0;h.labelAlignTo==="edge"?A.x<t?p=v[2][0]-h.labelDistance-i-h.edgeDistance:p=i+o-h.edgeDistance-v[2][0]-h.labelDistance:h.labelAlignTo==="labelLine"?A.x<t?p=c-i-h.bleedMargin:p=i+o-d-h.bleedMargin:A.x<t?p=A.x-i-h.bleedMargin:p=i+o-A.x-h.bleedMargin,h.targetTextWidth=p,Mle(h,p)}}g7(u,t,r,n,1,o,a,i,s,d),g7(l,t,r,n,-1,o,a,i,s,c);for(var f=0;f<e.length;f++){var h=e[f];if(!gI(h)&&h.linePoints){var A=h.label,v=h.linePoints,g=h.labelAlignTo==="edge",m=A.style.padding,y=m?m[1]+m[3]:0,b=A.style.backgroundColor?0:y,x=h.rect.width+b,w=v[1][0]-v[2][0];g?A.x<t?v[2][0]=i+h.edgeDistance+x+h.labelDistance:v[2][0]=i+o-h.edgeDistance-x-h.labelDistance:(A.x<t?v[2][0]=A.x+h.labelDistance:v[2][0]=A.x-h.labelDistance,v[1][0]=v[2][0]+w),v[1][1]=v[2][1]=A.y}}}function Mle(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,o=n.style,a=e.rect,i=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=a.width+(i?0:l);if(t<c||r){var d=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var f=n.getBoundingRect();n.setStyle("width",Math.ceil(f.width)),n.setStyle("backgroundColor",i)}else{var A=t-l,h=t<c?A:r?A>e.unconstrainedWidth?null:A:null;n.setStyle("width",h)}var v=n.getBoundingRect();a.width=v.width;var p=(n.style.margin||0)+2.1;a.height=v.height+p,a.y-=(a.height-d)/2}}}function gI(e){return e.position==="center"}function Ggt(e){var t=e.getData(),r=[],n,o,a=!1,i=(e.get("minShowLabelAngle")||0)*Vgt,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function A(w){w.ignore=!0}function h(w){if(!w.ignore)return!0;for(var C in w.states)if(w.states[C].ignore===!1)return!0;return!1}t.each(function(w){var C=t.getItemGraphicEl(w),_=C.shape,B=C.getTextContent(),T=C.getTextGuideLine(),E=t.getItemModel(w),I=E.getModel("label"),R=I.get("position")||E.get(["emphasis","label","position"]),D=I.get("distanceToLabelLine"),F=I.get("alignTo"),M=qe(I.get("edgeDistance"),u),$=I.get("bleedMargin"),O=E.getModel("labelLine"),Q=O.get("length");Q=qe(Q,u);var V=O.get("length2");if(V=qe(V,u),Math.abs(_.endAngle-_.startAngle)<i){z(B.states,A),B.ignore=!0;return}if(h(B)){var W=(_.startAngle+_.endAngle)/2,Z=Math.cos(W),te=Math.sin(W),ae,re,le,se;n=_.cx,o=_.cy;var ce=R==="inside"||R==="inner";if(R==="center")ae=_.cx,re=_.cy,se="center";else{var be=(ce?(_.r+_.r0)/2*Z:_.r*Z)+n,de=(ce?(_.r+_.r0)/2*te:_.r*te)+o;if(ae=be+Z*3,re=de+te*3,!ce){var pe=be+Z*(Q+l-_.r),K=de+te*(Q+l-_.r),U=pe+(Z<0?-1:1)*V,k=K;F==="edge"?ae=Z<0?c+M:c+u-M:ae=U+(Z<0?-D:D),re=k,le=[[be,de],[pe,K],[U,k]]}se=ce?"center":F==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var J=Math.PI,ee=0,H=I.get("rotate");if(vr(H))ee=H*(J/180);else if(R==="center")ee=0;else if(H==="radial"||H===!0){var Y=Z<0?-W+J:-W;ee=Y}else if(H==="tangential"&&R!=="outside"&&R!=="outer"){var oe=Math.atan2(Z,te);oe<0&&(oe=J*2+oe);var he=te>0;he&&(oe=J+oe),ee=oe-J}if(a=!!ee,B.x=ae,B.y=re,B.rotation=ee,B.setStyle({verticalAlign:"middle"}),ce){B.setStyle({align:se});var X=B.states.select;X&&(X.x+=B.x,X.y+=B.y)}else{var ne=B.getBoundingRect().clone();ne.applyTransform(B.getComputedTransform());var Ae=(B.style.margin||0)+2.1;ne.y-=Ae/2,ne.height+=Ae,r.push({label:B,labelLine:T,position:R,len:Q,len2:V,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Vt(Z,te),linePoints:le,textAlign:se,labelDistance:D,labelAlignTo:F,edgeDistance:M,bleedMargin:$,rect:ne,unconstrainedWidth:ne.width,labelStyleWidth:B.style.width})}C.setTextConfig({inside:ce})}}),!a&&e.get("avoidLabelOverlap")&&Wgt(r,n,o,l,u,f,c,d);for(var v=0;v<r.length;v++){var p=r[v],g=p.label,m=p.labelLine,y=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),y&&(z(g.states,A),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(m){var x=p.linePoints;y||!x?(z(m.states,A),m.ignore=!0):(tle(x,p.minTurnAngle),opt(x,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:x}),g.__hostTarget.textGuideLineConfig={anchor:new Vt(x[0][0],x[0][1])})}}}function rv(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Oe(n)||(n=[n,n,n,n]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Ue(n,function(a){return xs(a,o)})}}var Kgt=function(e){we(t,e);function t(r,n,o){var a=e.call(this)||this;a.z2=2;var i=new pr;return a.setTextContent(i),a.updateData(r,n,o,!0),a}return t.prototype.updateData=function(r,n,o,a){var i=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),d=Pe(rv(l.getModel("itemStyle"),c,!0),c);if(isNaN(d.startAngle)){i.setShape(d);return}if(a){i.setShape(d);var f=s.getShallow("animationType");s.ecModel.ssr?(ln(i,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),i.originX=d.cx,i.originY=d.cy):f==="scale"?(i.shape.r=c.r0,ln(i,{shape:{r:c.r}},s,n)):o!=null?(i.setShape({startAngle:o,endAngle:o}),ln(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(i.shape.endAngle=c.startAngle,gr(i,{shape:{endAngle:c.endAngle}},s,n))}else Cs(i),gr(i,{shape:d},s,n);i.useStyle(r.getItemVisual(n,"style")),Oo(i,l);var A=(c.startAngle+c.endAngle)/2,h=s.get("selectedOffset"),v=Math.cos(A)*h,p=Math.sin(A)*h,g=l.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(s,r,n),i.ensureState("emphasis").shape=Pe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},rv(u.getModel("itemStyle"),c)),Pe(i.ensureState("select"),{x:v,y:p,shape:rv(l.getModel(["select","itemStyle"]),c)}),Pe(i.ensureState("blur"),{shape:rv(l.getModel(["blur","itemStyle"]),c)});var m=i.getTextGuideLine(),y=i.getTextContent();m&&Pe(m.ensureState("select"),{x:v,y:p}),Pe(y.ensureState("select"),{x:v,y:p}),In(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,o){var a=this,i=n.getItemModel(o),s=i.getModel("labelLine"),l=n.getItemVisual(o,"style"),u=l&&l.fill,c=l&&l.opacity;Zo(a,wo(i),{labelFetcher:n.hostModel,labelDataIndex:o,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(o,"normal")||n.getName(o)});var d=a.getTextContent();a.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var f=r.get(["label","position"]);if(f!=="outside"&&f!=="outer")a.removeTextGuideLine();else{var A=this.getTextGuideLine();A||(A=new da,this.setTextGuideLine(A)),Z4(this,J4(i),{stroke:u,opacity:ol(s.get(["lineStyle","opacity"]),c,1)})}},t}(la),jgt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,o,a){var i=r.getData(),s=this._data,l=this.group,u;if(!s&&i.count()>0){for(var c=i.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<i.count();++d)c=i.getItemLayout(d);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),i.count()===0&&r.get("showEmptyCircle")){var f=new la({shape:Dle(r,o)});f.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}i.diff(s).add(function(A){var h=new Kgt(i,A,u);i.setItemGraphicEl(A,h),l.add(h)}).update(function(A,h){var v=s.getItemGraphicEl(h);v.updateData(i,A,u),v.off("click"),l.add(v),i.setItemGraphicEl(A,v)}).remove(function(A){var h=s.getItemGraphicEl(A);Wm(h,r,A)}).execute(),Ggt(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var o=n.getData(),a=o.getItemLayout(0);if(a){var i=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(i*i+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(Gr);const Ygt=jgt;function Kp(e,t,r){t=Oe(t)&&{coordDimensions:t}||Pe({encodeDefine:e.getEncode()},t);var n=e.getSource(),o=Wp(n,t).dimensions,a=new Yo(o,e);return a.initData(n,r),a}var Xgt=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const ub=Xgt;var qgt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ub(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Kp(this,{coordDimensions:["value"],encodeDefaulter:Ut(C4,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),o=e.prototype.getDataParams.call(this,r),a=[];return n.each(n.mapDimension("value"),function(i){a.push(i)}),o.percent=Loe(a,r,n.hostModel.get("percentPrecision")),o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(r){AA(r,"labelLine",["show"]);var n=r.labelLine,o=r.emphasis.labelLine;n.show=n.show&&r.label.show,o.show=o.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(tn);const Zgt=qgt;function Jgt(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(o){var a=n.mapDimension("value"),i=n.get(a,o);return!(vr(i)&&!isNaN(i)&&i<0)})}}}function e0t(e){e.registerChartView(Ygt),e.registerSeriesModel(Zgt),Yie("pie",e.registerAction),e.registerLayout(Ut(Qgt,"pie")),e.registerProcessor(lb("pie")),e.registerProcessor(Jgt("pie"))}var t0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Il(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r==null?this.option.large?5e3:this.get("progressive"):r},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?1e4:this.get("progressiveThreshold"):r},t.prototype.brushSelector=function(r,n,o){return o.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(tn);const r0t=t0t;var Ple=4,n0t=function(){function e(){}return e}(),o0t=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new n0t},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var o=n.points,a=n.size,i=this.symbolProxy,s=i.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Ple,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d<o.length;){var f=o[d++],A=o[d++];isNaN(f)||isNaN(A)||c&&!c.contain(f,A)||(s.x=f-a[0]/2,s.y=A-a[1]/2,s.width=a[0],s.height=a[1],i.buildPath(r,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,o=r.size,a=this._ctx,i=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||i&&!i.contain(l,u)||a.fillRect(l-o[0]/2,u-o[1]/2,o[0],o[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var o=this.shape,a=o.points,i=o.size,s=Math.max(i[0],4),l=Math.max(i[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,d=a[c]-s/2,f=a[c+1]-l/2;if(r>=d&&n>=f&&r<=d+s&&n<=f+l)return u}return-1},t.prototype.contain=function(r,n){var o=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=o[0],n=o[1],a.contain(r,n)){var i=this.hoverDataIdx=this.findDataIndex(r,n);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,o=n.points,a=n.size,i=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f<o.length;){var A=o[f++],h=o[f++];l=Math.min(A,l),c=Math.max(A,c),u=Math.min(h,u),d=Math.max(h,d)}r=this._rect=new Xt(l-i/2,u-s/2,c-l+i,d-u+s)}return r},t}(tr),a0t=function(){function e(){this.group=new Pt}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var o=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,o)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var o=this._newAdded[0],a=r.getLayout("points"),i=o&&o.shape.points;if(i&&i.length<2e4){var s=i.length,l=new Float32Array(s+a.length);l.set(i),l.set(a,s),o.endIndex=t.end,o.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new o0t({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var o=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=Nn(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var i=t.shape.size[0]<Ple;t.useStyle(o.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=$t(t);u.seriesIndex=o.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(u.dataIndex=d+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const i0t=a0t;var s0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=r.getData(),i=this._updateSymbolDraw(a,r);i.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,o){var a=r.getData(),i=this._updateSymbolDraw(a,r);i.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,o){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,o){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var i=sb("").reset(r,n,o);i.progress&&i.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,o=n&&n.getArea&&n.getArea();return r.get("clip",!0)?o:null},t.prototype._updateSymbolDraw=function(r,n){var o=this._symbolDraw,a=n.pipelineContext,i=a.large;return(!o||i!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=i?new i0t:new ib,this._isLargeDraw=i,this.group.removeAll()),this.group.add(o.group),o},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Gr);const l0t=s0t;var u0t=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(fr);const c0t=u0t;var fF=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Kn).models[0]},t.type="cartesian2dAxis",t}(fr);Rn(fF,Gp);var Fle={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},d0t=Qt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Fle),o5=Qt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Fle),f0t=Qt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},o5),A0t=Ct({logBase:10},o5);const kle={category:d0t,value:o5,time:f0t,log:A0t};var h0t={value:1,category:1,time:1,log:1};function Yv(e,t,r,n){z(h0t,function(o,a){var i=Qt(Qt({},kle[a],!0),n,!0),s=function(l){we(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=jm(this),A=f?$p(c):{},h=d.getTheme();Qt(c,h.get(a+"Axis")),Qt(c,this.getDefaultOption()),c.type=m7(c),f&&id(c,A,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=oF.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=i,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",m7)}function m7(e){return e.type||(e.data?"category":"value")}var v0t=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Ue(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),kr(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const p0t=v0t;var AF=["x","y"];function y7(e){return e.type==="interval"||e.type==="time"}var g0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=AF,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!y7(r)||!y7(n))){var o=r.getExtent(),a=n.getExtent(),i=this.dataToPoint([o[0],a[0]]),s=this.dataToPoint([o[1],a[1]]),l=o[1]-o[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-i[0])/l,d=(s[1]-i[1])/u,f=i[0]-o[0]*c,A=i[1]-a[0]*d,h=this._transform=[c,0,0,d,f,A];this._invTransform=NA([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),o=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&o.contain(o.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var o=this.dataToPoint(r),a=this.dataToPoint(n),i=this.getArea(),s=new Xt(o[0],o[1],a[0]-o[0],a[1]-o[1]);return i.intersect(s)},t.prototype.dataToPoint=function(r,n,o){o=o||[];var a=r[0],i=r[1];if(this._transform&&a!=null&&isFinite(a)&&i!=null&&isFinite(i))return xo(o,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return o[0]=s.toGlobalCoord(s.dataToCoord(a,n)),o[1]=l.toGlobalCoord(l.dataToCoord(i,n)),o},t.prototype.clampData=function(r,n){var o=this.getAxis("x").scale,a=this.getAxis("y").scale,i=o.getExtent(),s=a.getExtent(),l=o.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var o=[];if(this._invTransform)return xo(o,r,this._invTransform);var a=this.getAxis("x"),i=this.getAxis("y");return o[0]=a.coordToData(a.toLocalCoord(r[0]),n),o[1]=i.coordToData(i.toLocalCoord(r[1]),n),o},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),i=Math.max(r[0],r[1])-o,s=Math.max(n[0],n[1])-a;return new Xt(o,a,i,s)},t}(p0t),m0t=function(e){we(t,e);function t(r,n,o,a,i){var s=e.call(this,r,n,o)||this;return s.index=0,s.type=a||"value",s.position=i||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Yi);const y0t=m0t;function hF(e,t,r){r=r||{};var n=e.coordinateSystem,o=t.axis,a={},i=o.getAxesOnZeroOf()[0],s=o.position,l=i?"onZero":s,u=o.dim,c=n.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},A=t.get("offset")||0,h=u==="x"?[d[2]-A,d[3]+A]:[d[0]-A,d[1]+A];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}a.position=[u==="y"?h[f[l]]:d[0],u==="x"?h[f[l]]:d[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=i?h[f[s]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),uo(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function b7(e){return e.get("coordinateSystem")==="cartesian2d"}function x7(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(r,n){var o=n.replace(/Model$/,""),a=e.getReferringComponents(o,Kn).models[0];t[n]=a}),t}var mI=Math.log;function Lle(e,t,r){var n=sd.prototype,o=n.getTicks.call(r),a=n.getTicks.call(r,!0),i=o.length-1,s=n.getInterval.call(r),l=Qse(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if(e.type==="log"){var f=mI(e.base);u=[mI(u[0])/f,mI(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:i,fixMin:c,fixMax:d});var A=n.getExtent.call(e);c&&(u[0]=A[0]),d&&(u[1]=A[1]);var h=n.getInterval.call(e),v=u[0],p=u[1];if(c&&d)h=(p-v)/i;else if(c)for(p=u[0]+h*i;p<u[1]&&isFinite(p)&&isFinite(u[1]);)h=oI(h),p=u[0]+h*i;else if(d)for(v=u[1]-h*i;v>u[0]&&isFinite(v)&&isFinite(u[0]);)h=oI(h),v=u[1]-h*i;else{var g=e.getTicks().length-1;g>i&&(h=oI(h));var m=h*i;p=Math.ceil(u[1]/h)*h,v=Cn(p-m),v<0&&u[0]>=0?(v=0,p=Cn(m)):p>0&&u[1]<=0&&(p=0,v=-Cn(m))}var y=(o[0].value-a[0].value)/s,b=(o[i].value-a[i].value)/s;n.setExtent.call(e,v+h*y,p+h*b),n.setInterval.call(e,h),(y||b)&&n.setNiceExtent.call(e,v+h,p-h)}var b0t=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=AF,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function o(i){var s,l=sr(i),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],A=i[f],h=A.model,v=A.scale;aF(v)&&h.get("alignTicks")&&h.get("interval")==null?c.push(A):(mA(v,h),aF(v)&&(s=A))}c.length&&(s||(s=c.pop(),mA(s.scale,s.model)),z(c,function(p){Lle(p.scale,p.model,s.scale)}))}}o(n.x),o(n.y);var a={};z(n.x,function(i){w7(n,"y",i,a)}),z(n.y,function(i){w7(n,"x",i,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var o=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),i=jn(o,{width:r.getWidth(),height:r.getHeight()});this._rect=i;var s=this._axesList;l(),a&&(z(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=bvt(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);i[d]-=c[d]+f,u.position==="top"?i.y+=c.height+f:u.position==="left"&&(i.x+=c.width+f)}}}),l()),z(this._coordsList,function(u){u.calcAffineTransform()});function l(){z(s,function(u){var c=u.isHorizontal(),d=c?[0,i.width]:[0,i.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),x0t(u,c?i.x:i.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Tt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o<a.length;o++)if(a[o].getAxis("x").index===t||a[o].getAxis("y").index===r)return a[o]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var o=this._findConvertTarget(r);return o.cartesian?o.cartesian.dataToPoint(n):o.axis?o.axis.toGlobalCoord(o.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var o=this._findConvertTarget(r);return o.cartesian?o.cartesian.pointToData(n):o.axis?o.axis.coordToData(o.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Kn).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",Kn).models[0],a=t.gridModel,i=this._coordsList,s,l;if(r)s=r.coordinateSystem,Yt(i,s)<0&&(s=null);else if(n&&o)s=this.getCartesian(n.componentIndex,o.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(o)l=this.getAxis("y",o.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var o=this,a=this,i={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,z(s.x,function(c,d){z(s.y,function(f,A){var h="x"+d+"y"+A,v=new g0t(h);v.master=o,v.model=t,o._coordsMap[h]=v,o._coordsList.push(v),v.addAxis(c),v.addAxis(f)})});function u(c){return function(d,f){if(yI(d,t)){var A=d.get("position");c==="x"?A!=="top"&&A!=="bottom"&&(A=i.bottom?"top":"bottom"):A!=="left"&&A!=="right"&&(A=i.left?"right":"left"),i[A]=!0;var h=new y0t(c,nb(d),[0,0],d.get("type"),A),v=h.type==="category";h.onBand=v&&d.get("boundaryGap"),h.inverse=d.get("inverse"),d.axis=h,h.model=d,h.grid=a,h.index=f,a._axesList.push(h),s[c][f]=h,l[c]++}}}},e.prototype._updateScale=function(t,r){z(this._axesList,function(o){if(o.scale.setExtent(1/0,-1/0),o.type==="category"){var a=o.model.get("categorySortInfo");o.scale.setSortInfo(a)}}),t.eachSeries(function(o){if(b7(o)){var a=x7(o),i=a.xAxisModel,s=a.yAxisModel;if(!yI(i,r)||!yI(s,r))return;var l=this.getCartesian(i.componentIndex,s.componentIndex),u=o.getData(),c=l.getAxis("x"),d=l.getAxis("y");n(u,c),n(u,d)}},this);function n(o,a){z(HC(o,a.dim),function(i){a.scale.unionExtentFromData(o,i)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return z(this.getCartesians(),function(o){var a=t!=null&&t!=="auto"?o.getAxis(t):o.getBaseAxis(),i=o.getOtherAxis(a);Yt(r,a)<0&&r.push(a),Yt(n,i)<0&&n.push(i)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(o,a){var i=new e(o,t,r);i.name="grid_"+a,i.resize(o,r,!0),o.coordinateSystem=i,n.push(i)}),t.eachSeries(function(o){if(b7(o)){var a=x7(o),i=a.xAxisModel,s=a.yAxisModel,l=i.getCoordSysModel(),u=l.coordinateSystem;o.coordinateSystem=u.getCartesian(i.componentIndex,s.componentIndex)}}),n},e.dimensions=AF,e}();function yI(e,t){return e.getCoordSysModel()===t}function w7(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var o=e[t],a,i=r.model,s=i.get(["axisLine","onZero"]),l=i.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)C7(o[l])&&(a=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&C7(o[u])&&!n[c(o[u])]){a=o[u];break}a&&(n[c(a)]=!0);function c(d){return d.dim+"_"+d.index}}function C7(e){return e&&e.type!=="category"&&e.type!=="time"&&yvt(e)}function x0t(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=e.dim==="x"?function(o){return o-t}:function(o){return n-o+t}}const w0t=b0t;var wc=Math.PI,rA=function(){function e(t,r){this.group=new Pt,this.opt=r,this.axisModel=t,Ct(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Pt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!S7[t]},e.prototype.add=function(t){S7[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var o=YO(r-t),a,i;return Nm(o)?(i=n>0?"top":"bottom",a="center"):Nm(o-wc)?(i=n>0?"bottom":"top",a="center"):(i="middle",o>0&&o<wc?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:o,textAlign:a,textVerticalAlign:i}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),S7={axisLine:function(e,t,r,n){var o=t.get(["axisLine","show"]);if(o==="auto"&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),!!o){var a=t.axis.getExtent(),i=n.transform,s=[a[0],0],l=[a[1],0];i&&(xo(s,s,i),xo(l,l,i));var u=Pe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new co({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",r.add(c);var d=t.get(["axisLine","symbol"]);if(d!=null){var f=t.get(["axisLine","symbolSize"]);Je(d)&&(d=[d,d]),(Je(f)||vr(f))&&(f=[f,f]);var A=Vp(t.get(["axisLine","symbolOffset"])||0,f),h=f[0],v=f[1];z([{rotate:e.rotation+Math.PI/2,offset:A[0],r:0},{rotate:e.rotation-Math.PI/2,offset:A[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(p,g){if(d[g]!=="none"&&d[g]!=null){var m=Nn(d[g],-h/2,-v/2,h,v,u.stroke,!0),y=p.r+p.offset;m.attr({rotation:p.rotate,x:s[0]+y*Math.cos(e.rotation),y:s[1]-y*Math.sin(e.rotation),silent:!0,z2:11}),r.add(m)}})}}},axisTickLabel:function(e,t,r,n){var o=_0t(r,n,t,e),a=T0t(r,n,t,e);if(S0t(t,a,o),B0t(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var i=rle(Ue(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ale(i)}},axisName:function(e,t,r,n){var o=uo(e.axisName,t.get("name"));if(o){var a=t.get("nameLocation"),i=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,B7(a)?e.labelOffset+i*l:0],f,A=t.get("nameRotate");A!=null&&(A=A*wc/180);var h;B7(a)?f=rA.innerTextLayout(e.rotation,A!=null?A:e.rotation,i):(f=C0t(e.rotation,a,A||0,u),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(f.rotation)),!isFinite(h)&&(h=null)));var v=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=uo(e.nameTruncateMaxWidth,p.maxWidth,h),y=new pr({x:d[0],y:d[1],rotation:f.rotation,silent:rA.isLabelSilent(t),style:un(s,{text:o,font:v,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(kp({el:y,componentModel:t,itemName:o}),y.__fullText=o,y.anid="name",t.get("triggerEvent")){var b=rA.makeAxisEventDataBase(t);b.targetType="axisName",b.name=o,$t(y).eventData=b}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function C0t(e,t,r,n){var o=YO(r-e),a,i,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Nm(o-wc/2)?(i=l?"bottom":"top",a="center"):Nm(o-wc*1.5)?(i=l?"top":"bottom",a="center"):(i="middle",o<wc*1.5&&o>wc/2?a=l?"left":"right":a=l?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:i}}function S0t(e,t,r){if(!Vse(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],i=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],d=r[r.length-1],f=r[r.length-2];n===!1?(di(a),di(u)):_7(a,i)&&(n?(di(i),di(c)):(di(a),di(u))),o===!1?(di(s),di(d)):_7(l,s)&&(o?(di(l),di(f)):(di(s),di(d)))}}function di(e){e&&(e.ignore=!0)}function _7(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var o=Wy([]);return wd(o,o,-e.rotation),r.applyTransform(il([],o,e.getLocalTransform())),n.applyTransform(il([],o,t.getLocalTransform())),r.intersect(n)}}function B7(e){return e==="middle"||e==="center"}function Ole(e,t,r,n,o){for(var a=[],i=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;i[0]=u,i[1]=0,s[0]=u,s[1]=r,t&&(xo(i,i,t),xo(s,s,t));var c=new co({subPixelOptimize:!0,shape:{x1:i[0],y1:i[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});c.anid=o+"_"+e[l].tickValue,a.push(c)}return a}function _0t(e,t,r,n){var o=r.axis,a=r.getModel("axisTick"),i=a.get("show");if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisTick")),!(!i||o.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=o.getTicksCoords(),c=Ole(u,t.transform,l,Ct(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}}function B0t(e,t,r,n){var o=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||o.scale.isBlank())){var i=o.getMinorTicksCoords();if(i.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ct(s.getLineStyle(),Ct(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<i.length;c++)for(var d=Ole(i[c],t.transform,l,u,"minorticks_"+c),f=0;f<d.length;f++)e.add(d[f])}}function T0t(e,t,r,n){var o=r.axis,a=uo(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||o.scale.isBlank())){var i=r.getModel("axisLabel"),s=i.get("margin"),l=o.getViewLabels(),u=(uo(n.labelRotate,i.get("rotate"))||0)*wc/180,c=rA.innerTextLayout(n.rotation,u,n.labelDirection),d=r.getCategories&&r.getCategories(!0),f=[],A=rA.isLabelSilent(r),h=r.get("triggerEvent");return z(l,function(v,p){var g=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,m=v.formattedLabel,y=v.rawLabel,b=i;if(d&&d[g]){var x=d[g];Tt(x)&&x.textStyle&&(b=new Vr(x.textStyle,i,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),C=o.dataToCoord(g),_=new pr({x:C,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:A,z2:10+(v.level||0),style:un(b,{text:m,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:bt(w)?w(o.type==="category"?y:o.type==="value"?g+"":g,p):w})});if(_.anid="label_"+g,h){var B=rA.makeAxisEventDataBase(r);B.targetType="axisLabel",B.value=y,B.tickIndex=p,o.type==="category"&&(B.dataIndex=g),$t(_).eventData=B}t.add(_),_.updateTransform(),f.push(_),e.add(_),_.decomposeTransform()}),f}}const xu=rA;function E0t(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return I0t(r,e,t),r.seriesInvolved&&D0t(r,e),r}function I0t(e,t,r){var n=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),a=o.get("link",!0)||[],i=[];z(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ry(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,d=c.getModel("tooltip",n);if(z(s.getAxes(),Ut(v,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var f=d.get("trigger")==="axis",A=d.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(d.get(["axisPointer","axis"]));(f||A)&&z(h.baseAxes,Ut(v,A?"cross":!0,f)),A&&z(h.otherAxes,Ut(v,"cross",!1))}function v(p,g,m){var y=m.model.getModel("axisPointer",o),b=y.get("show");if(!(!b||b==="auto"&&!p&&!vF(y))){g==null&&(g=y.get("triggerTooltip")),y=p?R0t(m,d,o,t,p,g):y;var x=y.get("snap"),w=ry(m.model),C=g||x||m.type==="category",_=e.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:y,triggerTooltip:g,involveSeries:C,snap:x,useHandle:vF(y),seriesModels:[],linkGroup:null};u[w]=_,e.seriesInvolved=e.seriesInvolved||C;var B=M0t(a,m);if(B!=null){var T=i[B]||(i[B]={axesInfo:{}});T.axesInfo[w]=_,T.mapper=a[B].mapper,_.linkGroup=T}}}})}function R0t(e,t,r,n,o,a){var i=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};z(s,function(f){l[f]=It(i.get(f))}),l.snap=e.type!=="category"&&!!a,i.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),o==="cross"){var c=i.get(["label","show"]);if(u.show=c!=null?c:!0,!a){var d=l.lineStyle=i.get("crossStyle");d&&Ct(u,d.textStyle)}}return e.model.getModel("axisPointer",new Vr(l,r,n))}function D0t(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,o=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||o==="none"||o===!1||o==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||z(e.coordSysAxesInfo[ry(n.model)],function(i){var s=i.axis;n.getAxis(s.dim)===s&&(i.seriesModels.push(r),i.seriesDataCount==null&&(i.seriesDataCount=0),i.seriesDataCount+=r.getData().count())})})}function M0t(e,t){for(var r=t.model,n=t.dim,o=0;o<e.length;o++){var a=e[o]||{};if(bI(a[n+"AxisId"],r.id)||bI(a[n+"AxisIndex"],r.componentIndex)||bI(a[n+"AxisName"],r.name))return o}}function bI(e,t){return e==="all"||Oe(e)&&Yt(e,t)>=0||e===t}function P0t(e){var t=a5(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,o=r.option,a=r.get("status"),i=r.get("value");i!=null&&(i=n.parse(i));var s=vF(r);a==null&&(o.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(i==null||i>l[1])&&(i=l[1]),i<l[0]&&(i=l[0]),o.value=i,s&&(o.status=t.axis.scale.isBlank()?"hide":"show")}}function a5(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ry(e)]}function F0t(e){var t=a5(e);return t&&t.axisPointerModel}function vF(e){return!!e.get(["handle","show"])}function ry(e){return e.type+"||"+e.id}var T7={},k0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o,a){this.axisPointerClass&&P0t(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,o,!0)},t.prototype.updateAxisPointer=function(r,n,o,a){this._doUpdateAxisPointerClass(r,o,!1)},t.prototype.remove=function(r,n){var o=this._axisPointer;o&&o.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,o){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var i=F0t(r);i?(this._axisPointer||(this._axisPointer=new a)).render(r,i,n,o):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){T7[r]=n},t.getAxisPointerClass=function(r){return r&&T7[r]},t.type="axis",t}(cn);const VA=k0t;var pF=br();function $le(e,t,r,n){var o=r.axis;if(!o.scale.isBlank()){var a=r.getModel("splitArea"),i=a.getModel("areaStyle"),s=i.get("color"),l=n.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,d=pF(e).splitAreaColors,f=pt(),A=0;if(d)for(var h=0;h<u.length;h++){var v=d.get(u[h].tickValue);if(v!=null){A=(v+(c-1)*h)%c;break}}var p=o.toGlobalCoord(u[0].coord),g=i.getAreaStyle();s=Oe(s)?s:[s];for(var h=1;h<u.length;h++){var m=o.toGlobalCoord(u[h].coord),y=void 0,b=void 0,x=void 0,w=void 0;o.isHorizontal()?(y=p,b=l.y,x=m-y,w=l.height,p=y+x):(y=l.x,b=p,x=l.width,w=m-b,p=b+w);var C=u[h-1].tickValue;C!=null&&f.set(C,A),t.add(new hr({anid:C!=null?"area_"+C:null,shape:{x:y,y:b,width:x,height:w},style:Ct({fill:s[A]},g),autoBatch:!0,silent:!0})),A=(A+1)%c}pF(e).splitAreaColors=f}}}function Ule(e){pF(e).splitAreaColors=null}var L0t=["axisLine","axisTickLabel","axisName"],O0t=["splitArea","splitLine","minorSplitLine"],Nle=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,o,a){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Pt,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=hF(s,r),u=new xu(r,Pe({handleAutoShown:function(d){for(var f=s.coordinateSystem.getCartesians(),A=0;A<f.length;A++)if(aF(f[A].getOtherAxis(r.axis).scale))return!0;return!1}},l));z(L0t,u.add,u),this._axisGroup.add(u.getGroup()),z(O0t,function(d){r.get([d,"show"])&&$0t[d](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Zy(i,this._axisGroup,r),e.prototype.render.call(this,r,n,o,a)}},t.prototype.remove=function(){Ule(this)},t.type="cartesianAxis",t}(VA),$0t={splitLine:function(e,t,r,n){var o=r.axis;if(!o.scale.isBlank()){var a=r.getModel("splitLine"),i=a.getModel("lineStyle"),s=i.get("color");s=Oe(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=o.isHorizontal(),c=0,d=o.getTicksCoords({tickModel:a}),f=[],A=[],h=i.getLineStyle(),v=0;v<d.length;v++){var p=o.toGlobalCoord(d[v].coord);u?(f[0]=p,f[1]=l.y,A[0]=p,A[1]=l.y+l.height):(f[0]=l.x,f[1]=p,A[0]=l.x+l.width,A[1]=p);var g=c++%s.length,m=d[v].tickValue;t.add(new co({anid:m!=null?"line_"+d[v].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:A[0],y2:A[1]},style:Ct({stroke:s[g]},h),silent:!0}))}}},minorSplitLine:function(e,t,r,n){var o=r.axis,a=r.getModel("minorSplitLine"),i=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],d=[],f=i.getLineStyle(),A=0;A<u.length;A++)for(var h=0;h<u[A].length;h++){var v=o.toGlobalCoord(u[A][h].coord);l?(c[0]=v,c[1]=s.y,d[0]=v,d[1]=s.y+s.height):(c[0]=s.x,c[1]=v,d[0]=s.x+s.width,d[1]=v),t.add(new co({anid:"minor_line_"+u[A][h].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:f,silent:!0}))}},splitArea:function(e,t,r,n){$le(e,t,r,n)}},Hle=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(Nle),U0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Hle.type,r}return t.type="yAxis",t}(Nle),N0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new hr({shape:r.coordinateSystem.getRect(),style:Ct({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(cn),E7={offset:0};function zle(e){e.registerComponentView(N0t),e.registerComponentModel(c0t),e.registerCoordinateSystem("cartesian2d",w0t),Yv(e,"x",fF,E7),Yv(e,"y",fF,E7),e.registerComponentView(Hle),e.registerComponentView(U0t),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function H0t(e){Jt(zle),e.registerSeriesModel(r0t),e.registerChartView(l0t),e.registerLayout(sb("scatter"))}function z0t(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],o=t.coordinateSystem;if(o){var a=o.getIndicatorAxes();z(a,function(i,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=o.dataToPoint(l,s);n[u][s]=I7(c)?c:R7(o)})}),r.each(function(i){var s=Zne(n[i],function(l){return I7(l)})||R7(o);n[i].push(s.slice()),r.setItemLayout(i,n[i])})}})}function I7(e){return!isNaN(e[0])&&!isNaN(e[1])}function R7(e){return[e.cx,e.cy]}function Q0t(e){var t=e.polar;if(t){Oe(t)||(t=[t]);var r=[];z(t,function(n,o){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Oe(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}z(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var V0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=r.coordinateSystem,i=this.group,s=r.getData(),l=this._data;function u(f,A){var h=f.getItemVisual(A,"symbol")||"circle";if(h!=="none"){var v=rb(f.getItemVisual(A,"symbolSize")),p=Nn(h,-1,-1,2,2),g=f.getItemVisual(A,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),p}}function c(f,A,h,v,p,g){h.removeAll();for(var m=0;m<A.length-1;m++){var y=u(v,p);y&&(y.__dimIdx=m,f[m]?(y.setPosition(f[m]),Jy[g?"initProps":"updateProps"](y,{x:A[m][0],y:A[m][1]},r,p)):y.setPosition(A[m]),h.add(y))}}function d(f){return Ue(f,function(A){return[a.cx,a.cy]})}s.diff(l).add(function(f){var A=s.getItemLayout(f);if(A){var h=new ua,v=new da,p={shape:{points:A}};h.shape.points=d(A),v.shape.points=d(A),ln(h,p,r,f),ln(v,p,r,f);var g=new Pt,m=new Pt;g.add(v),g.add(h),g.add(m),c(v.shape.points,A,m,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,A){var h=l.getItemGraphicEl(A),v=h.childAt(0),p=h.childAt(1),g=h.childAt(2),m={shape:{points:s.getItemLayout(f)}};m.shape.points&&(c(v.shape.points,m.shape.points,g,s,f,!1),Cs(p),Cs(v),gr(v,m,r),gr(p,m,r),s.setItemGraphicEl(f,h))}).remove(function(f){i.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,A){var h=s.getItemModel(A),v=f.childAt(0),p=f.childAt(1),g=f.childAt(2),m=s.getItemVisual(A,"style"),y=m.fill;i.add(f),v.useStyle(Ct(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),Oo(v,h,"lineStyle"),Oo(p,h,"areaStyle");var b=h.getModel("areaStyle"),x=b.isEmpty()&&b.parentModel.isEmpty();p.ignore=x,z(["emphasis","select","blur"],function(_){var B=h.getModel([_,"areaStyle"]),T=B.isEmpty()&&B.parentModel.isEmpty();p.ensureState(_).ignore=T&&x}),p.useStyle(Ct(b.getAreaStyle(),{fill:y,opacity:.7,decal:m.decal}));var w=h.getModel("emphasis"),C=w.getModel("itemStyle").getItemStyle();g.eachChild(function(_){if(_ instanceof _o){var B=_.style;_.useStyle(Pe({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},m))}else _.useStyle(m),_.setColor(y),_.style.strokeNoScale=!0;var T=_.ensureState("emphasis");T.style=It(C);var E=s.getStore().get(s.getDimensionIndex(_.__dimIdx),A);(E==null||isNaN(E))&&(E=""),Zo(_,wo(h),{labelFetcher:s.hostModel,labelDataIndex:A,labelDimIndex:_.__dimIdx,defaultText:E,inheritColor:y,defaultOpacity:m.opacity})}),In(f,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Gr);const W0t=V0t;var G0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ub(at(this.getData,this),at(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return Kp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,o){var a=this.getData(),i=this.coordinateSystem,s=i.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=Oie(this,r);return vo("section",{header:u,sortBlocks:!0,blocks:Ue(s,function(d){var f=a.get(a.mapDimension(d.dim),r);return vo("nameValue",{markerType:"subItem",markerColor:c,name:d.name,value:f,sortParam:f})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),o=this.coordinateSystem,a=n.getValues(Ue(o.dimensions,function(u){return n.mapDimension(u)}),r),i=0,s=a.length;i<s;i++)if(!isNaN(a[i])){var l=o.getIndicatorAxes();return o.coordToPoint(l[i].dataToCoord(a[i]),i)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(tn);const K0t=G0t;var Rg=kle.value;function fx(e,t){return Ct({show:t},e)}var j0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),i=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),f=this.get("triggerEvent"),A=Ue(this.get("indicator")||[],function(h){h.max!=null&&h.max>0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var v=l;h.color!=null&&(v=Ct({color:h.color},l));var p=Qt(It(h),{boundaryGap:r,splitNumber:n,scale:o,axisLine:a,axisTick:i,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:v,triggerEvent:f},!1);if(Je(c)){var g=p.name;p.name=c.replace("{value}",g!=null?g:"")}else bt(c)&&(p.name=c(p.name,p));var m=new Vr(p,null,this.ecModel);return Rn(m,Gp.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=A},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Qt({lineStyle:{color:"#bbb"}},Rg.axisLine),axisLabel:fx(Rg.axisLabel,!1),axisTick:fx(Rg.axisTick,!1),splitLine:fx(Rg.splitLine,!0),splitArea:fx(Rg.splitArea,!0),indicator:[]},t}(fr);const Y0t=j0t;var X0t=["axisLine","axisTickLabel","axisName"],q0t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,o=n.getIndicatorAxes(),a=Ue(o,function(i){var s=i.model.get("showName")?i.name:"",l=new xu(i.model,{axisName:s,position:[n.cx,n.cy],rotation:i.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});z(a,function(i){z(X0t,i.add,i),this.group.add(i.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,o=n.getIndicatorAxes();if(!o.length)return;var a=r.get("shape"),i=r.getModel("splitLine"),s=r.getModel("splitArea"),l=i.getModel("lineStyle"),u=s.getModel("areaStyle"),c=i.get("show"),d=s.get("show"),f=l.get("color"),A=u.get("color"),h=Oe(f)?f:[f],v=Oe(A)?A:[A],p=[],g=[];function m(F,M,$){var O=$%M.length;return F[O]=F[O]||[],O}if(a==="circle")for(var y=o[0].getTicksCoords(),b=n.cx,x=n.cy,w=0;w<y.length;w++){if(c){var C=m(p,h,w);p[C].push(new ws({shape:{cx:b,cy:x,r:y[w].coord}}))}if(d&&w<y.length-1){var C=m(g,v,w);g[C].push(new Yy({shape:{cx:b,cy:x,r0:y[w].coord,r:y[w+1].coord}}))}}else for(var _,B=Ue(o,function(F,M){var $=F.getTicksCoords();return _=_==null?$.length-1:Math.min($.length-1,_),Ue($,function(O){return n.coordToPoint(O.coord,M)})}),T=[],w=0;w<=_;w++){for(var E=[],I=0;I<o.length;I++)E.push(B[I][w]);if(E[0]&&E.push(E[0].slice()),c){var C=m(p,h,w);p[C].push(new da({shape:{points:E}}))}if(d&&T){var C=m(g,v,w-1);g[C].push(new ua({shape:{points:E.concat(T)}}))}T=E.slice().reverse()}var R=l.getLineStyle(),D=u.getAreaStyle();z(g,function(F,M){this.group.add(Va(F,{style:Ct({stroke:"none",fill:v[M%v.length]},D),silent:!0}))},this),z(p,function(F,M){this.group.add(Va(F,{style:Ct({fill:"none",stroke:h[M%h.length]},R),silent:!0}))},this)},t.type="radar",t}(cn);const Z0t=q0t;var J0t=function(e){we(t,e);function t(r,n,o){var a=e.call(this,r,n,o)||this;return a.type="value",a.angle=0,a.name="",a}return t}(Yi);const emt=J0t;var tmt=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=Ue(t.getIndicatorModels(),function(o,a){var i="indicator_"+a,s=new emt(i,new sd);return s.name=o.get("name"),s.model=o,o.axis=s,this.dimensions.push(i),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],o=n.angle,a=this.cx+t*Math.cos(o),i=this.cy-t*Math.sin(o);return[a,i]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,o=Math.sqrt(r*r+n*n);r/=o,n/=o;for(var a=Math.atan2(-n,r),i=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],d=Math.abs(a-c.angle);d<i&&(s=c,l=u,i=d)}return[l,+(s&&s.coordToData(o))]},e.prototype.resize=function(t,r){var n=t.get("center"),o=r.getWidth(),a=r.getHeight(),i=Math.min(o,a)/2;this.cx=qe(n[0],o),this.cy=qe(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Je(s)||vr(s))&&(s=[0,s]),this.r0=qe(s[0],i),this.r=qe(s[1],i),z(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,o=this._model;z(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==o)){var u=s.getData();z(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=o.get("splitNumber"),i=new sd;i.setExtent(0,a),i.setInterval(1),z(n,function(s,l){Lle(s.scale,s.model,i)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(o){var a=new e(o,t,r);n.push(a),o.coordinateSystem=a}),t.eachSeriesByType("radar",function(o){o.get("coordinateSystem")==="radar"&&(o.coordinateSystem=n[o.get("radarIndex")||0])}),n},e.dimensions=[],e}();const rmt=tmt;function nmt(e){e.registerCoordinateSystem("radar",rmt),e.registerComponentModel(Y0t),e.registerComponentView(Z0t),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function omt(e){Jt(nmt),e.registerChartView(W0t),e.registerSeriesModel(K0t),e.registerLayout(z0t),e.registerProcessor(lb("radar")),e.registerPreprocessor(Q0t)}var D7="\0_ec_interaction_mutex";function amt(e,t,r){var n=i5(e);n[t]=r}function imt(e,t,r){var n=i5(e),o=n[t];o===r&&(n[t]=null)}function M7(e,t){return!!i5(e)[t]}function i5(e){return e[D7]||(e[D7]={})}Es({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},$n);var smt=function(e){we(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var o=at(n._mousedownHandler,n),a=at(n._mousemoveHandler,n),i=at(n._mouseupHandler,n),s=at(n._mousewheelHandler,n),l=at(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ct(It(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",o),r.on("mousemove",a),r.on("mouseup",i)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",o),r.off("mousemove",a),r.off("mouseup",i),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!(u6(r)||r.target&&r.target.draggable)){var n=r.offsetX,o=r.offsetY;this.pointerChecker&&this.pointerChecker(r,n,o)&&(this._x=n,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!cw("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||M7(this._zr,"globalPan"))){var n=r.offsetX,o=r.offsetY,a=this._x,i=this._y,s=n-a,l=o-i;this._x=n,this._y=o,this._opt.preventDefaultMouseMove&&pu(r.event),Qle(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:i,newX:n,newY:o,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){u6(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=cw("zoomOnMouseWheel",r,this._opt),o=cw("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,i=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!o)){if(n){var u=i>3?1.4:i>1?1.2:1.1,c=a>0?u:1/u;xI(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(o){var d=Math.abs(a),f=(a>0?1:-1)*(d>3?.4:d>1?.15:.05);xI(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!M7(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;xI(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Wi);function xI(e,t,r,n,o){e.pointerChecker&&e.pointerChecker(n,o.originX,o.originY)&&(pu(n.event),Qle(e,t,r,n,o))}function Qle(e,t,r,n,o){o.isAvailableBehavior=at(cw,null,r,n),e.trigger(t,o)}function cw(e,t,r){var n=r[e];return!e||n&&(!Je(n)||t.event[n+"Key"])}const cb=smt;function s5(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function l5(e,t,r,n){var o=e.target,a=e.zoomLimit,i=e.zoom=e.zoom||1;if(i*=t,a){var s=a.min||0,l=a.max||1/0;i=Math.max(Math.min(l,i),s)}var u=i/e.zoom;e.zoom=i,o.x-=(r-o.x)*(u-1),o.y-=(n-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var lmt={axisPointer:1,tooltip:1,brush:1};function _B(e,t,r){var n=t.getComponentByElement(e.topTarget),o=n&&n.coordinateSystem;return n&&n!==r&&!lmt.hasOwnProperty(n.mainType)&&o&&o.model!==r}function Vle(e){if(Je(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var wI,KC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},P7=sr(KC),jC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},F7=sr(jC),umt=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Vle(t);this._defsUsePending=[];var o=new Pt;this._root=o;var a=[],i=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),La(n,o,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,o,a,null,!1,!1),u=u.nextSibling;fmt(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(i){var f=BB(i);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Gle(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var A=o;o=new Pt,o.add(A),A.scaleX=A.scaleY=d.scale,A.x=d.x,A.y=d.y}return!r.ignoreRootClip&&s!=null&&l!=null&&o.setClipPath(new hr({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:a}},e.prototype._parseNode=function(t,r,n,o,a,i){var s=t.nodeName.toLowerCase(),l,u=o;if(s==="defs"&&(a=!0),s==="text"&&(i=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=wI[s];if(c&&st(wI,s)){l=c.call(this,t,r);var d=t.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};n.push(f),s==="g"&&(u=f)}else o&&n.push({name:o.name,namedFrom:o,svgNodeTagLower:s,el:l});r.add(l)}}var A=k7[s];if(A&&st(k7,s)){var h=A.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=h)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,n,u,a,i):p.nodeType===3&&i&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,r){var n=new zm({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});fi(r,n),La(t,n,this._defsUsePending,!1,!1),cmt(n,r);var o=n.style,a=o.fontSize;a&&a<9&&(o.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var i=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=i;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){wI={g:function(t,r){var n=new Pt;return fi(r,n),La(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new hr;return fi(r,n),La(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ws;return fi(r,n),La(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new co;return fi(r,n),La(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new nB;return fi(r,n),La(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),o;n&&(o=$7(n));var a=new ua({shape:{points:o||[]},silent:!0});return fi(r,a),La(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),o;n&&(o=$7(n));var a=new da({shape:{points:o||[]},silent:!0});return fi(r,a),La(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new _o;return fi(r,n),La(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",o=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",i=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(o)+parseFloat(i);var s=new Pt;return fi(r,s),La(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),o=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),o!=null&&(this._textY=parseFloat(o));var a=t.getAttribute("dx")||"0",i=t.getAttribute("dy")||"0",s=new Pt;return fi(r,s),La(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(i),s},path:function(t,r){var n=t.getAttribute("d")||"",o=wae(n);return fi(r,o),La(t,o,this._defsUsePending,!1,!1),o.silent=!0,o}}}(),e}(),k7={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),o=parseInt(e.getAttribute("y2")||"0",10),a=new Mp(t,r,n,o);return L7(e,a),O7(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),o=new l4(t,r,n);return L7(e,o),O7(e,o),o}};function L7(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function O7(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),o=void 0;n&&n.indexOf("%")>0?o=parseInt(n,10)/100:n?o=parseFloat(n):o=0;var a={};Wle(r,a,a);var i=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:o,color:i})}r=r.nextSibling}}function fi(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ct(t.__inheritedStyle,e.__inheritedStyle))}function $7(e){for(var t=BB(e),r=[],n=0;n<t.length;n+=2){var o=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([o,a])}return r}function La(e,t,r,n,o){var a=t,i=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(vmt(e,t),Wle(e,i,s),n||pmt(e,i,s)),a.style=a.style||{},i.fill!=null&&(a.style.fill=U7(a,"fill",i.fill,r)),i.stroke!=null&&(a.style.stroke=U7(a,"stroke",i.stroke,r)),z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){i[l]!=null&&(a.style[l]=parseFloat(i[l]))}),z(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){i[l]!=null&&(a.style[l]=i[l])}),o&&(a.__selfStyle=s),i.lineDash&&(a.style.lineDash=Ue(BB(i.lineDash),function(l){return parseFloat(l)})),(i.visibility==="hidden"||i.visibility==="collapse")&&(a.invisible=!0),i.display==="none"&&(a.ignore=!0)}function cmt(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,o=n;!n||n==="auto"||n==="baseline"?o="alphabetic":n==="before-edge"||n==="text-before-edge"?o="top":n==="after-edge"||n==="text-after-edge"?o="bottom":(n==="central"||n==="mathematical")&&(o="middle"),e.style.textBaseline=o}var a=t.__inheritedStyle;if(a){var i=a.textAlign,s=i;i&&(i==="middle"&&(s="center"),e.style.textAlign=s)}}var dmt=/^url\(\s*#(.*?)\)/;function U7(e,t,r,n){var o=r&&r.match(dmt);if(o){var a=Ei(o[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function fmt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var Amt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BB(e){return e.match(Amt)||[]}var hmt=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,CI=Math.PI/180;function vmt(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],o=null;r.replace(hmt,function(d,f,A){return n.push(f,A),""});for(var a=n.length-1;a>0;a-=2){var i=n[a],s=n[a-1],l=BB(i);switch(o=o||ti(),s){case"translate":bs(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":j_(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":wd(o,o,-parseFloat(l[0])*CI);break;case"skewX":var u=Math.tan(parseFloat(l[0])*CI);il(o,[1,0,u,1,0,0],o);break;case"skewY":var c=Math.tan(parseFloat(l[0])*CI);il(o,[1,c,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}t.setLocalTransform(o)}}var N7=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Wle(e,t,r){var n=e.getAttribute("style");if(n){N7.lastIndex=0;for(var o;(o=N7.exec(n))!=null;){var a=o[1],i=st(KC,a)?KC[a]:null;i&&(t[i]=o[2]);var s=st(jC,a)?jC[a]:null;s&&(r[s]=o[2])}}}function pmt(e,t,r){for(var n=0;n<P7.length;n++){var o=P7[n],a=e.getAttribute(o);a!=null&&(t[KC[o]]=a)}for(var n=0;n<F7.length;n++){var o=F7[n],a=e.getAttribute(o);a!=null&&(r[jC[o]]=a)}}function Gle(e,t){var r=t.width/e.width,n=t.height/e.height,o=Math.min(r,n);return{scale:o,x:-(e.x+e.width/2)*o+(t.x+t.width/2),y:-(e.y+e.height/2)*o+(t.y+t.height/2)}}function gmt(e,t){var r=new umt;return r.parse(e,t)}var mmt=pt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),ymt=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=pt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Vle(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=xmt(t.named),n=r.regions,o=r.regionsMap;this._regions=n,this._regionsMap=o}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&gmt(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Xo(n!=null)}catch(p){throw new Error(`Invalid svg format
  6099. `+p.message)}var o=new Pt;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=r.width,i=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,f=void 0;if(a!=null?(u=0,d=a):s&&(u=s.x,d=s.width),i!=null?(c=0,f=i):s&&(c=s.y,f=s.height),u==null||c==null){var A=n.getBoundingRect();u==null&&(u=A.x,d=A.width),c==null&&(c=A.y,f=A.height)}l=this._boundingRect=new Xt(u,c,d,f)}if(s){var h=Gle(s,l);n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y}o.setClipPath(new hr({shape:l.plain()}));var v=[];return z(r.named,function(p){mmt.get(p.svgNodeTagLower)!=null&&(v.push(p),bmt(p.el))}),{root:o,boundingRect:l,named:v}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function bmt(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function xmt(e){var t=[],r=pt();return z(e,function(n){if(n.namedFrom==null){var o=new Mvt(n.name,n.el);t.push(o),r.set(n.name,o)}}),{regions:t,regionsMap:r}}var gF=[126,25],H7="南海诸岛",vf=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.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]]];for(var sf=0;sf<vf.length;sf++)for(var Bh=0;Bh<vf[sf].length;Bh++)vf[sf][Bh][0]/=10.5,vf[sf][Bh][1]/=-10.5/.75,vf[sf][Bh][0]+=gF[0],vf[sf][Bh][1]+=gF[1];function wmt(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===H7)return;t.push(new Gse(H7,Ue(vf,function(n){return{type:"polygon",exterior:n}}),gF))}}var Cmt={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Smt(e,t){if(e==="china"){var r=Cmt[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var _mt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Bmt(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:_mt[0]})}var Tmt="name",Emt=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=pt(),this._mapName=t,this._specialAreas=n,this._geoJSON=Rmt(r)}return e.prototype.load=function(t,r){r=r||Tmt;var n=this._parsedMap.get(r);if(!n){var o=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:o,boundingRect:Imt(o)})}var a=pt(),i=[];return z(n.regions,function(s){var l=s.name;t&&st(t,l)&&(s=s.cloneShallow(l=t[l])),i.push(s),a.set(l,s)}),{regions:i,boundingRect:n.boundingRect||new Xt(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,o;try{o=n?sF(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
  6100. `+a.message)}return wmt(r,o),z(o,function(a){var i=a.name;Smt(r,a),Bmt(r,a);var s=this._specialAreas&&this._specialAreas[i];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),o},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Imt(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function Rmt(e){return Je(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Dg=pt();const wu={registerMap:function(e,t,r){if(t.svg){var n=new ymt(e,t.svg);Dg.set(e,n)}else{var o=t.geoJson||t.geoJSON;o&&!t.features?r=t.specialAreas:o=t;var n=new Emt(e,o,r);Dg.set(e,n)}},getGeoResource:function(e){return Dg.get(e)},getMapForUser:function(e){var t=Dg.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Dg.get(e);if(n)return n.load(t,r)}};var u5=["rect","circle","line","ellipse","polygon","polyline","path"],Dmt=pt(u5),Mmt=pt(u5.concat(["g"])),Pmt=pt(u5.concat(["g"])),Kle=br();function Ax(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function z7(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Fmt=function(){function e(t){var r=new Pt;this.uid=Op("ec_map_draw"),this._controller=new cb(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Pt),r.add(this._svgGroup=new Pt)}return e.prototype.draw=function(t,r,n,o,a){var i=t.mainType==="geo",s=t.getData&&t.getData();i&&r.eachComponent({mainType:"series",subType:"map"},function(g){!s&&g.getHostGeoModel()===t&&(s=g.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,d=l.getTransformInfo(),f=d.raw,A=d.roam,h=!u.childAt(0)||a;h?(c.x=A.x,c.y=A.y,c.scaleX=A.scaleX,c.scaleY=A.scaleY,c.dirty()):gr(c,A,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,p={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:i,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,o)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=pt(),n=pt(),o=this._regionsGroup,a=t.transformInfoRaw,i=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(A,h){return h&&(A=h(A)),A&&[A[0]*a.scaleX+a.x,A[1]*a.scaleY+a.y]}function d(A){for(var h=[],v=!u&&l&&l.project,p=0;p<A.length;++p){var g=c(A[p],v);g&&h.push(g)}return h}function f(A){return{shape:{points:d(A)}}}o.removeAll(),z(t.geo.regions,function(A){var h=A.name,v=r.get(h),p=n.get(h)||{},g=p.dataIdx,m=p.regionModel;v||(v=r.set(h,new Pt),o.add(v),g=s?s.indexOfName(h):null,m=t.isGeo?i.getRegionModel(h):s?s.getItemModel(g):null,n.set(h,{dataIdx:g,regionModel:m}));var y=[],b=[];z(A.geometries,function(C){if(C.type==="polygon"){var _=[C.exterior].concat(C.interiors||[]);u&&(_=j7(_,u)),z(_,function(T){y.push(new ua(f(T)))})}else{var B=C.points;u&&(B=j7(B,u,!0)),z(B,function(T){b.push(new da(f(T)))})}});var x=c(A.getCenter(),l&&l.project);function w(C,_){if(C.length){var B=new aB({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});v.add(B),Q7(t,B,g,m),V7(t,B,h,m,i,g,x),_&&(z7(B),z(B.states,z7))}}w(y),w(b,!0)}),r.each(function(A,h){var v=n.get(h),p=v.dataIdx,g=v.regionModel;W7(t,A,h,g,i,p),G7(t,A,h,g,i),K7(t,A,h,g,i)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var o=this._svgDispatcherMap=pt(),a=!1;z(this._svgGraphicRecord.named,function(i){var s=i.name,l=t.mapOrGeoModel,u=t.data,c=i.svgNodeTagLower,d=i.el,f=u?u.indexOfName(s):null,A=l.getRegionModel(s);if(Dmt.get(c)!=null&&d instanceof Ui&&Q7(t,d,f,A),d instanceof Ui&&(d.culling=!0),d.z2EmphasisLift=0,!i.namedFrom&&(Pmt.get(c)!=null&&V7(t,d,s,A,l,f,null),W7(t,d,s,A,l,f),G7(t,d,s,A,l),Mmt.get(c)!=null)){var h=K7(t,d,s,A,l);h==="self"&&(a=!0);var v=o.get(s)||o.set(s,[]);v.push(d)}},this),this._enableBlurEntireSVG(a,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),o=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){pA(a);var i=a.ensureState("blur").style||{};i.opacity==null&&o!=null&&(i.opacity=o),a.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var o=this._regionsGroupByName;if(o){var a=o.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=wu.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=wu.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var o=t.coordinateSystem,a=this._controller,i=this._controllerHost;i.zoomLimit=t.get("scaleLimit"),i.zoom=o.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,s5(i,u.dx,u.dy),n.dispatchAction(Pe(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,l5(i,u.scale,u.originX,u.originY),n.dispatchAction(Pe(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,d){return o.containPoint([c,d])&&!_B(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=Kle(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,o){var a=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(i){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},e}();function Q7(e,t,r,n){var o=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),i=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Ax(o),u=Ax(a),c=Ax(s),d=Ax(i),f=e.data;if(f){var A=f.getItemVisual(r,"style"),h=f.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&A.fill&&(l.fill=A.fill),h&&(l.decal=Kv(h,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,pA(t)}function V7(e,t,r,n,o,a,i){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var d=l?r:a,f=void 0;(!s||a>=0)&&(f=o);var A=i?{normal:{align:"center",verticalAlign:"middle"}}:null;Zo(t,wo(n),{labelFetcher:f,labelDataIndex:d,defaultText:r},A);var h=t.getTextContent();if(h&&(Kle(h).ignore=h.ignore,t.textConfig&&i)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(i[0]-v.x)/v.width*100+"%",(i[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function W7(e,t,r,n,o,a){e.data?e.data.setItemGraphicEl(a,t):$t(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:r,region:n&&n.option||{}}}function G7(e,t,r,n,o){e.data||kp({el:t,componentModel:o,itemName:r,itemTooltipOption:n.get("tooltip")})}function K7(e,t,r,n,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return In(t,i,a.get("blurScope"),a.get("disabled")),e.isGeo&&yct(t,o,r),i}function j7(e,t,r){var n=[],o;function a(){o=[]}function i(){o.length&&(n.push(o),o=[])}var s=t({polygonStart:a,polygonEnd:i,lineStart:a,lineEnd:i,point:function(l,u){isFinite(l)&&isFinite(u)&&o.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),z(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}const jle=Fmt;var kmt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var i=this.group;if(i.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id){var s=this._mapDraw;s&&i.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new jle(o);i.add(s.group),s.draw(r,n,o,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,o)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,o){var a=r.originalData,i=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,d=u.offset,f=new ws({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:Dp+1)});if(!d){var A=r.mainSeries.getData(),h=a.getName(l),v=A.indexOfName(h),p=a.getItemModel(l),g=p.getModel("label"),m=A.getItemGraphicEl(v);Zo(f,wo(p),{labelFetcher:{getFormattedLabel:function(y,b){return r.getFormattedLabel(v,b)}},defaultText:h}),f.disableLabelAnimation=!0,g.get("position")||f.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(y){SC(f,y)}}i.add(f)}}})},t.type="map",t}(Gr);const Lmt=kmt;var Omt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var o=this.getData().getName(n),a=this.coordinateSystem,i=a.getRegion(o);return i&&a.dataToPoint(i.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=Kp(this,{coordDimensions:["value"],encodeDefaulter:Ut(C4,this)}),o=pt(),a=[],i=0,s=n.count();i<s;i++){var l=n.getName(i);o.set(l,!0)}var u=wu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return z(u.regions,function(c){var d=c.name;o.get(d)||a.push(d)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,o){for(var a=this.getData(),i=this.getRawValue(r),s=a.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var d=l[c].originalData.indexOfName(s),f=a.mapDimension("value");isNaN(l[c].originalData.get(f,d))||u.push(l[c].name)}return vo("section",{header:u.join(", "),noHeader:!u.length,blocks:[vo("nameValue",{name:s,value:i})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",o=Nn(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return o.setStyle(r.itemStyle),o.style.stroke="none",n.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(tn);const $mt=Omt;function Umt(e,t){var r={};return z(e,function(n){n.each(n.mapDimension("value"),function(o,a){var i="ec-"+n.getName(a);r[i]=r[i]||[],isNaN(o)||r[i].push(o)})}),e[0].map(e[0].mapDimension("value"),function(n,o){for(var a="ec-"+e[0].getName(o),i=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),i+=r[a][c];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=i/u:d=i,u===0?NaN:d})}function Nmt(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),o=n?"o"+n.id:"i"+r.getMapType();(t[o]=t[o]||[]).push(r)}),z(t,function(r,n){for(var o=Umt(Ue(r,function(i){return i.getData()}),r[0].get("mapValueCalculation")),a=0;a<r.length;a++)r[a].originalData=r[a].getData();for(var a=0;a<r.length;a++)r[a].seriesGroup=r,r[a].needsDrawMap=a===0&&!r[a].getHostGeoModel(),r[a].setData(o.cloneShallow()),r[a].mainSeries=r[0]})}function Hmt(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var o={};z(r.seriesGroup,function(i){var s=i.coordinateSystem,l=i.originalData;i.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var d=l.getName(c),f=s.getRegion(d);if(!(!f||isNaN(u))){var A=o[d]||0,h=s.dataToPoint(f.getCenter());o[d]=A+1,l.setItemLayout(c,{point:h,offset:A})}})});var a=r.getData();a.each(function(i){var s=a.getName(i),l=a.getItemLayout(i)||{};l.showLabel=!o[s],a.setItemLayout(i,l)}),t[n]=!0}})}var Y7=xo,zmt=function(e){we(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ql,n._rawTransformable=new ql,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,o,a){return this._rect=new Xt(r,n,o,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,o,a){this._transformTo(r,n,o,a),this._viewRect=new Xt(r,n,o,a)},t.prototype._transformTo=function(r,n,o,a){var i=this.getBoundingRect(),s=this._rawTransformable;s.transform=i.calculateTransform(new Xt(r,n,o,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[qe(r[0],n.getWidth()),qe(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,o=r.y+r.height/2;return[n,o]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,o=this.getDefaultCenter(),a=this.getCenter(),i=this.getZoom();a=xo([],a,r),o=xo([],o,r),n.originX=a[0],n.originY=a[1],n.x=o[0]-a[0],n.y=o[1]-a[1],n.scaleX=n.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),K_(this.transform||(this.transform=[]),n.transform||ti()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],NA(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,o=new ql;return o.transform=n.transform,o.decomposeTransform(),{roam:{x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,o){var a=n?this._rawTransform:this.transform;return o=o||[],a?Y7(o,r,a):Vo(o,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?Y7([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,o){var a=X7(n);return a===this?a.dataToPoint(o):null},t.prototype.convertFromPixel=function(r,n,o){var a=X7(n);return a===this?a.pointToData(o):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(ql);function X7(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const db=zmt;var Qmt={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Yle=["lng","lat"],Xle=function(e){we(t,e);function t(r,n,o){var a=e.call(this,r)||this;a.dimensions=Yle,a.type="geo",a._nameCoordMap=pt(),a.map=n;var i=o.projection,s=wu.load(n,o.nameMap,o.nameProperty),l=wu.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=Qmt[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=i;var d;if(i)for(var f=0;f<u.length;f++){var A=u[f].getBoundingRect(i);d=d||A.clone(),d.union(A)}else d=s.boundingRect;return a.setBoundingRect(d.x,d.y,d.width,d.height),a.aspectScale=i?1:Zt(o.aspectScale,c.aspectScale),a._invertLongitute=i?!1:c.invertLongitute,a}return t.prototype._transformTo=function(r,n,o,a){var i=this.getBoundingRect(),s=this._invertLongitute;i=i.clone(),s&&(i.y=-i.y-i.height);var l=this._rawTransformable;l.transform=i.calculateTransform(new Xt(r,n,o,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,o=0;o<n.length;o++){var a=n[o];if(a.type==="geoJSON"&&a.contain(r))return n[o]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,o){if(Je(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.projectedToPoint(r,n,o)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,o){return e.prototype.dataToPoint.call(this,r,n,o)},t.prototype.convertToPixel=function(r,n,o){var a=q7(n);return a===this?a.dataToPoint(o):null},t.prototype.convertFromPixel=function(r,n,o){var a=q7(n);return a===this?a.pointToData(o):null},t}(db);Rn(Xle,db);function q7(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Kn).models[0]||{}).coordinateSystem:null}const Z7=Xle;function J7(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],o=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(o[0])&&isFinite(o[1])){var a=this.projection;if(a){var i=n[0],s=n[1],l=o[0],u=o[1];n=[1/0,1/0],o=[-1/0,-1/0];var c=function(w,C,_,B){for(var T=_-w,E=B-C,I=0;I<=100;I++){var R=I/100,D=a.project([w+T*R,C+E*R]);Yl(n,n,D),Xl(o,o,D)}};c(i,s,l,s),c(l,s,l,u),c(l,u,i,u),c(i,u,l,s)}this.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1])}}var d=this.getBoundingRect(),f=e.get("layoutCenter"),A=e.get("layoutSize"),h=t.getWidth(),v=t.getHeight(),p=d.width/d.height*this.aspectScale,g=!1,m,y;f&&A&&(m=[qe(f[0],h),qe(f[1],v)],y=qe(A,Math.min(h,v)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(y)&&(g=!0));var b;if(g)b={},p>1?(b.width=y,b.height=y/p):(b.height=y,b.width=y*p),b.y=m[1]-b.height/2,b.x=m[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=p,b=jn(x,{width:h,height:v})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Vmt(e,t){z(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Wmt=function(){function e(){this.dimensions=Yle}return e.prototype.create=function(t,r){var n=[];function o(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection")}}t.eachComponent("geo",function(i,s){var l=i.get("map"),u=new Z7(l+s,l,Pe({nameMap:i.get("nameMap")},o(i)));u.zoomLimit=i.get("scaleLimit"),n.push(u),i.coordinateSystem=u,u.model=i,u.resize=J7,u.resize(i,r)}),t.eachSeries(function(i){var s=i.get("coordinateSystem");if(s==="geo"){var l=i.get("geoIndex")||0;i.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(i){if(!i.getHostGeoModel()){var s=i.getMapType();a[s]=a[s]||[],a[s].push(i)}}),z(a,function(i,s){var l=Ue(i,function(c){return c.get("nameMap")}),u=new Z7(s,s,Pe({nameMap:Q_(l)},o(i[0])));u.zoomLimit=uo.apply(null,Ue(i,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=J7,u.resize(i[0],r),z(i,function(c){c.coordinateSystem=u,Vmt(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,o){for(var a=(t||[]).slice(),i=pt(),s=0;s<a.length;s++)i.set(a[s].name,a[s]);var l=wu.load(r,n,o);return z(l.regions,function(u){var c=u.name;!i.get(c)&&a.push({name:c})}),a},e}(),Gmt=new Wmt;const qle=Gmt;var Kmt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,o){var a=wu.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var i=r.itemStyle=r.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(r,o),AA(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=qle.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var o={};this._optionModelMap=$i(n.regions||[],function(a,i){var s=i.name;return s&&(a.set(s,new Vr(i,r,r.ecModel)),i.selected&&(o[s]=!0)),a},pt()),n.selectedMap||(n.selectedMap=o)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Vr(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var o=this.getRegionModel(r),a=n==="normal"?o.get(["label","formatter"]):o.get(["emphasis","label","formatter"]),i={name:r};if(bt(a))return i.status=n,a(i);if(Je(a))return a.replace("{a}",r!=null?r:"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,o=n.selectedMode;if(o){o!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(fr);const jmt=Kmt;function e9(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function c5(e,t,r,n){var o=e.getZoom(),a=e.getCenter(),i=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(e9(e,s),n)),i!=null){if(r){var l=r.min||0,u=r.max||1/0;i=Math.max(Math.min(o*i,u),l)/o}e.scaleX*=i,e.scaleY*=i;var c=(t.originX-e.x)*(i-1),d=(t.originY-e.y)*(i-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(e9(e,s),n),e.setZoom(i*o)}return{center:e.getCenter(),zoom:e.getZoom()}}var Ymt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,o,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new jle(o));var i=this._mapDraw;i.draw(r,n,o,this,a),i.group.on("click",this._handleRegionClick,this),i.group.silent=r.get("silent"),this.group.add(i.group),this.updateSelectStatus(r,n,o)},t.prototype._handleRegionClick=function(r){var n;ev(r.target,function(o){return(n=$t(o).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,o){var a=this;this._mapDraw.group.traverse(function(i){var s=$t(i).eventData;if(s)return a._model.isSelected(s.name)?o.enterSelect(i):o.leaveSelect(i),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(cn);const Xmt=Ymt;function qmt(e,t,r){wu.registerMap(e,t,r)}function Zle(e){e.registerCoordinateSystem("geo",qle),e.registerComponentModel(jmt),e.registerComponentView(Xmt),e.registerImpl("registerMap",qmt),e.registerImpl("getMap",function(r){return wu.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(o,a){var i={},s=[];return a.eachComponent({mainType:"geo",query:o},function(l){l[r](o.name);var u=l.coordinateSystem;z(u.regions,function(d){i[d.name]=l.isSelected(d.name)||!1});var c=[];z(i,function(d,f){i[f]&&c.push(f)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:i,allSelected:s,name:o.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,o){var a=r.componentType||"series";n.eachComponent({mainType:a,query:r},function(i){var s=i.coordinateSystem;if(s.type==="geo"){var l=c5(s,r,i.get("scaleLimit"),o);i.setCenter&&i.setCenter(l.center),i.setZoom&&i.setZoom(l.zoom),a==="series"&&z(i.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Zmt(e){Jt(Zle),e.registerChartView(Lmt),e.registerSeriesModel($mt),e.registerLayout(Hmt),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Nmt),Yie("map",e.registerAction)}function Jmt(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,o;n=r.pop();)if(o=n.children,n.isExpand&&o.length)for(var a=o.length,i=a-1;i>=0;i--){var s=o[i];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i,thread:null},r.push(s)}}function eyt(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,o=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){nyt(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=oyt(e,o,e.parentNode.hierNode.defaultAncestor||n[0],t)}function tyt(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function t9(e){return arguments.length?e:syt}function c0(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function ryt(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nyt(e){for(var t=e.children,r=t.length,n=0,o=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,o+=a.hierNode.change,n+=a.hierNode.shift+o}}function oyt(e,t,r,n){if(t){for(var o=e,a=e,i=a.parentNode.children[0],s=t,l=o.hierNode.modifier,u=a.hierNode.modifier,c=i.hierNode.modifier,d=s.hierNode.modifier;s=SI(s),a=_I(a),s&&a;){o=SI(o),i=_I(i),o.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-u+n(s,a);f>0&&(iyt(ayt(s,e,r),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=o.hierNode.modifier,c+=i.hierNode.modifier}s&&!SI(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=d-l),a&&!_I(i)&&(i.hierNode.thread=a,i.hierNode.modifier+=u-c,r=e)}return r}function SI(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function _I(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ayt(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function iyt(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function syt(e,t){return e.parentNode===t.parentNode?1:2}var lyt=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),uyt=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lyt},t.prototype.buildPath=function(r,n){var o=n.childPoints,a=o.length,i=n.parentPoint,s=o[0],l=o[a-1];if(a===1){r.moveTo(i[0],i[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=qe(n.forkPosition,1),A=[];A[c]=i[c],A[d]=i[d]+(l[d]-i[d])*f,r.moveTo(i[0],i[1]),r.lineTo(A[0],A[1]),r.moveTo(s[0],s[1]),A[c]=s[c],r.lineTo(A[0],A[1]),A[c]=l[c],r.lineTo(A[0],A[1]),r.lineTo(l[0],l[1]);for(var h=1;h<a-1;h++){var v=o[h];r.moveTo(v[0],v[1]),A[c]=v[c],r.lineTo(A[0],A[1])}},t}(tr),cyt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Pt,r}return t.prototype.init=function(r,n){this._controller=new cb(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,o){var a=r.getData(),i=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=i.x+i.width/2,s.y=i.y+i.height/2):(s.x=i.x,s.y=i.y),this._updateViewCoordSys(r,o),this._updateController(r,n,o);var u=this._data;a.diff(u).add(function(c){r9(a,c)&&n9(a,c,null,s,r)}).update(function(c,d){var f=u.getItemGraphicEl(d);if(!r9(a,c)){f&&a9(u,d,f,s,r);return}n9(a,c,f,s,r)}).remove(function(c){var d=u.getItemGraphicEl(c);d&&a9(u,c,d,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,d){c.off("click").on("click",function(){o.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:d})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var o=r.getData(),a=[];o.each(function(d){var f=o.getItemLayout(d);f&&!isNaN(f.x)&&!isNaN(f.y)&&a.push([+f.x,+f.y])});var i=[],s=[];eB(a,i,s);var l=this._min,u=this._max;s[0]-i[0]===0&&(i[0]=l?l[0]:i[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-i[1]===0&&(i[1]=l?l[1]:i[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new db;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(i[0],i[1],s[0]-i[0],s[1]-i[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=s},t.prototype._updateController=function(r,n,o){var a=this,i=this._controller,s=this._controllerHost,l=this.group;i.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!_B(u,o,r)}),i.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(u){s5(s,u.dx,u.dy),o.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){l5(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),o.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),o=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,i){a.setSymbolScale(o)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var o=this._nodeScaleRatio,a=n.scaleX||1,i=n.getZoom(),s=(i-1)*o+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Gr);function r9(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function n9(e,t,r,n,o){var a=!r,i=e.tree.getNodeByDataIndex(t),s=i.getModel(),l=i.getVisual("style").fill,u=i.isExpand===!1&&i.children.length!==0?l:"#fff",c=e.tree.root,d=i.parentNode===c?i:i.parentNode||i,f=e.getItemGraphicEl(d.dataIndex),A=d.getLayout(),h=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:A,v=i.getLayout();a?(r=new ab(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=h.x,r.y=h.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=v.rawX,r.__radialRawY=v.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,gr(r,{x:v.x,y:v.y},o);var p=r.getSymbolPath();if(o.get("layout")==="radial"){var g=c.children[0],m=g.getLayout(),y=g.children.length,b=void 0,x=void 0;if(v.x===m.x&&i.isExpand===!0&&g.children.length){var w={x:(g.children[0].getLayout().x+g.children[y-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[y-1].getLayout().y)/2};b=Math.atan2(w.y-m.y,w.x-m.x),b<0&&(b=Math.PI*2+b),x=w.x<m.x,x&&(b=b-Math.PI)}else b=Math.atan2(v.y-m.y,v.x-m.x),b<0&&(b=Math.PI*2+b),i.children.length===0||i.children.length!==0&&i.isExpand===!1?(x=v.x<m.x,x&&(b=b-Math.PI)):(x=v.x>m.x,x||(b=b-Math.PI));var C=x?"left":"right",_=s.getModel("label"),B=_.get("rotate"),T=B*(Math.PI/180),E=p.getTextContent();E&&(p.setTextConfig({position:_.get("position")||C,rotation:B==null?-b:T,origin:"center"}),E.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),R=I==="relative"?Fm(i.getAncestorsIndices(),i.getDescendantIndices()):I==="ancestor"?i.getAncestorsIndices():I==="descendant"?i.getDescendantIndices():null;R&&($t(r).focus=R),dyt(o,i,c,r,h,A,v,n),r.__edge&&(r.onHoverStateChange=function(D){if(D!=="blur"){var F=i.parentNode&&e.getItemGraphicEl(i.parentNode.dataIndex);F&&F.hoverState===jy||SC(r.__edge,D)}})}function dyt(e,t,r,n,o,a,i,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),A=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new Xy({shape:mF(c,d,f,o,o)})),gr(v,{shape:mF(c,d,f,a,i)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],m=0;m<p.length;m++){var y=p[m].getLayout();g.push([y.x,y.y])}v||(v=n.__edge=new uyt({shape:{parentPoint:[i.x,i.y],childPoints:[[i.x,i.y]],orient:d,forkPosition:A}})),gr(v,{shape:{parentPoint:[i.x,i.y],childPoints:g}},e)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(Ct({strokeNoScale:!0,fill:null},h)),Oo(v,l,"lineStyle"),pA(v),s.add(v))}function o9(e,t,r,n,o){var a=t.tree.root,i=Jle(a,e),s=i.source,l=i.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,f=u.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),A=n.get("edgeShape"),h=n.get("layout"),v=n.get("orient"),p=n.get(["lineStyle","curveness"]);f&&(A==="curve"?ad(f,{shape:mF(h,v,p,l,l),style:{opacity:0}},n,{cb:function(){r.remove(f)},removeOpt:o}):A==="polyline"&&n.get("layout")==="orthogonal"&&ad(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(f)},removeOpt:o}))}}function Jle(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function a9(e,t,r,n,o){var a=e.tree.getNodeByDataIndex(t),i=e.tree.root,s=Jle(i,a).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};ad(r,{x:s.x+1,y:s.y+1},o,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){o9(u,e,n,o,l)}),o9(a,e,n,o,l)}function mF(e,t,r,n,o){var a,i,s,l,u,c,d,f;if(e==="radial"){u=n.rawX,d=n.rawY,c=o.rawX,f=o.rawY;var A=c0(u,d),h=c0(u,d+(f-d)*r),v=c0(c,f+(d-f)*r),p=c0(c,f);return{x1:A.x||0,y1:A.y||0,x2:p.x||0,y2:p.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=n.x,d=n.y,c=o.x,f=o.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,i=d,s=c+(u-c)*r,l=f),(t==="TB"||t==="BT")&&(a=u,i=d+(f-d)*r,s=c,l=f+(d-f)*r);return{x1:u,y1:d,x2:c,y2:f,cpx1:a,cpy1:i,cpx2:s,cpy2:l}}const fyt=cyt;var Di=br();function eue(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,tue(t,r,e),z(r,function(n){z(t.TRANSFERABLE_METHODS,function(o){n.wrapMethod(o,Ut(Ayt,e))})}),t.wrapMethod("cloneShallow",Ut(vyt,e)),z(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Ut(hyt,e))}),Xo(r[t.dataType]===t)}function Ayt(e,t){if(myt(this)){var r=Pe({},Di(this).datas);r[this.dataType]=t,tue(t,r,e)}else d5(t,this.dataType,Di(this).mainData,e);return t}function hyt(e,t){return e.struct&&e.struct.update(),t}function vyt(e,t){return z(Di(t).datas,function(r,n){r!==t&&d5(r.cloneShallow(),n,t,e)}),t}function pyt(e){var t=Di(this).mainData;return e==null||t==null?t:Di(t).datas[e]}function gyt(){var e=Di(this).mainData;return e==null?[{data:e}]:Ue(sr(Di(e).datas),function(t){return{type:t,data:Di(e).datas[t]}})}function myt(e){return Di(e).mainData===e}function tue(e,t,r){Di(e).datas={},z(t,function(n,o){d5(n,o,e,r)})}function d5(e,t,r,n){Di(r).datas[t]=e,Di(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=pyt,e.getLinkedDataAll=gyt}var yyt=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){bt(t)&&(n=r,r=t,t=null),t=t||{},Je(t)&&(t={order:t});var o=t.order||"preorder",a=this[t.attr||"children"],i;o==="preorder"&&(i=r.call(n,this));for(var s=0;!i&&s<a.length;s++)a[s].eachNode(t,r,n);o==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var o=this.children[n];o.updateDepthAndHeight(t+1),o.height>r&&(r=o.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,o=n.length;r<o;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,o=n.length;r<o;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),byt=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,o=r.length;n<o;n++)r[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var o=new e(r),a=[],i=1;s(t);function s(c,d){var f=c.value;i=Math.max(i,Oe(f)?f.length:1),a.push(c);var A=new yyt(ro(c.name,""),o);d?xyt(A,d):o.root=A,o._nodes.push(A);var h=c.children;if(h)for(var v=0;v<h.length;v++)s(h[v],A)}o.root.updateDepthAndHeight(0);var l=Wp(a,{coordDimensions:["value"],dimensionsCount:i}).dimensions,u=new Yo(l,r);return u.initData(a),n&&n(u),eue({mainData:u,struct:o,structAttr:"tree"}),o.update(),o},e}();function xyt(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}const f5=byt;function ny(e,t,r){if(e&&Yt(t,e.type)>=0){var n=r.getData().tree.root,o=e.targetNode;if(Je(o)&&(o=n.getNodeById(o)),o&&n.contains(o))return{node:o};var a=e.targetNodeId;if(a!=null&&(o=n.getNodeById(a)))return{node:o}}}function rue(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function A5(e,t){var r=rue(e);return Yt(r,t)>=0}function TB(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var wyt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},o=r.leaves||{},a=new Vr(o,this,this.ecModel),i=f5.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(f,A){var h=i.getNodeByDataIndex(A);return h&&h.children.length&&h.isExpand||(f.parentModel=a),f})}var l=0;i.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return i.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),i.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,o){for(var a=this.getData().tree,i=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==i;)u=s.parentNode.name+"."+u,s=s.parentNode;return vo("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=TB(o,this),n.collapsed=!o.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(tn);const Cyt=wyt;function Syt(e,t,r){for(var n=[e],o=[],a;a=n.pop();)if(o.push(a),a.isExpand){var i=a.children;if(i.length)for(var s=0;s<i.length;s++)n.push(i[s])}for(;a=o.pop();)t(a,r)}function Mg(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var o=n.children;if(o.length)for(var a=o.length-1;a>=0;a--)r.push(o[a])}}function _yt(e,t){e.eachSeriesByType("tree",function(r){Byt(r,t)})}function Byt(e,t){var r=ryt(e,t);e.layoutInfo=r;var n=e.get("layout"),o=0,a=0,i=null;n==="radial"?(o=2*Math.PI,a=Math.min(r.height,r.width)/2,i=t9(function(y,b){return(y.parentNode===b.parentNode?1:2)/y.depth})):(o=r.width,a=r.height,i=t9());var s=e.getData().tree.root,l=s.children[0];if(l){Jmt(s),Syt(l,eyt,i),s.hierNode.modifier=-l.hierNode.prelim,Mg(l,tyt);var u=l,c=l,d=l;Mg(l,function(y){var b=y.getLayout().x;b<u.getLayout().x&&(u=y),b>c.getLayout().x&&(c=y),y.depth>d.depth&&(d=y)});var f=u===c?1:i(u,c)/2,A=f-u.getLayout().x,h=0,v=0,p=0,g=0;if(n==="radial")h=o/(c.getLayout().x+f+A),v=a/(d.depth-1||1),Mg(l,function(y){p=(y.getLayout().x+A)*h,g=(y.depth-1)*v;var b=c0(p,g);y.setLayout({x:b.x,y:b.y,rawX:p,rawY:g},!0)});else{var m=e.getOrient();m==="RL"||m==="LR"?(v=a/(c.getLayout().x+f+A),h=o/(d.depth-1||1),Mg(l,function(y){g=(y.getLayout().x+A)*v,p=m==="LR"?(y.depth-1)*h:o-(y.depth-1)*h,y.setLayout({x:p,y:g},!0)})):(m==="TB"||m==="BT")&&(h=o/(c.getLayout().x+f+A),v=a/(d.depth-1||1),Mg(l,function(y){p=(y.getLayout().x+A)*h,g=m==="TB"?(y.depth-1)*v:a-(y.depth-1)*v,y.setLayout({x:p,y:g},!0)}))}}}function Tyt(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(o){var a=o.getModel(),i=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(o.dataIndex,"style");Pe(s,i)})})}function Eyt(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var o=t.dataIndex,a=n.getData().tree,i=a.getNodeByDataIndex(o);i.isExpand=!i.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(o){var a=o.coordinateSystem,i=c5(a,t,void 0,n);o.setCenter&&o.setCenter(i.center),o.setZoom&&o.setZoom(i.zoom)})})}function Iyt(e){e.registerChartView(fyt),e.registerSeriesModel(Cyt),e.registerLayout(_yt),e.registerVisual(Tyt),Eyt(e)}var i9=["treemapZoomToNode","treemapRender","treemapMove"];function Ryt(e){for(var t=0;t<i9.length;t++)e.registerAction({type:i9[t],update:"updateView"},$n);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},o);function o(a,i){var s=["treemapZoomToNode","treemapRootToNode"],l=ny(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=A5(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function nue(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(o){for(var a=o;a&&a.depth>1;)a=a.parentNode;var i=GP(e.ecModel,a.name||a.dataIndex+"",n);o.setVisual("decal",i)})}var Dyt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var o={name:r.name,children:r.data};oue(o);var a=r.levels||[],i=this.designatedVisualItemStyle={},s=new Vr({itemStyle:i},this,n);a=r.levels=Myt(a,n);var l=Ue(a||[],function(d){return new Vr(d,s,n)},this),u=f5.createTree(o,this,c);function c(d){d.wrapMethod("getItemModel",function(f,A){var h=u.getNodeByDataIndex(A),v=h?l[h.depth]:null;return f.parentModel=v||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,o){var a=this.getData(),i=this.getRawValue(r),s=a.getName(r);return vo("nameValue",{name:s,value:i})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=TB(o,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Pe(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=pt(),this._idIndexMapCount=0);var o=n.get(r);return o==null&&n.set(r,o=this._idIndexMapCount++),o},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){nue(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(tn);function oue(e){var t=0;z(e.children,function(n){oue(n);var o=n.value;Oe(o)&&(o=o[0]),t+=o});var r=e.value;Oe(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Oe(e.value)?e.value[0]=r:e.value=r}function Myt(e,t){var r=Wr(t.get("color")),n=Wr(t.get(["aria","decal","decals"]));if(r){e=e||[];var o,a;z(e,function(s){var l=new Vr(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(o=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var i=e[0]||(e[0]={});return o||(i.color=r.slice()),!a&&n&&(i.decal=n.slice()),e}}const Pyt=Dyt;var Fyt=8,s9=8,BI=5,kyt=function(){function e(t){this.group=new Pt,t.add(this.group)}return e.prototype.render=function(t,r,n,o){var a=t.getModel("breadcrumb"),i=this.group;if(i.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,s,l,o),AB(i,u.pos,u.box)}},e.prototype._prepare=function(t,r,n){for(var o=t;o;o=o.parentNode){var a=ro(o.getModel().get("name"),""),i=n.getTextRect(a),s=Math.max(i.width+Fyt*2,r.emptyItemWidth);r.totalWidth+=s+s9,r.renderList.push({node:o,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,o,a){for(var i=0,s=r.emptyItemWidth,l=t.get(["breadcrumb","height"]),u=Idt(r.pos,r.box),c=r.totalWidth,d=r.renderList,f=d.length-1;f>=0;f--){var A=d[f],h=A.node,v=A.width,p=A.text;c>u.width&&(c-=v-s,v=s,p=null);var g=new ua({shape:{points:Lyt(i,0,v,l,f===d.length-1,f===0)},style:Ct(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pr({style:{text:p,fill:o.getTextColor(),font:o.getFont()}}),textConfig:{position:"inside"},z2:Dp*1e4,onclick:Ut(a,h)});g.disableLabelAnimation=!0,this.group.add(g),Oyt(g,t,h),i+=v+s9}},e.prototype.remove=function(){this.group.removeAll()},e}();function Lyt(e,t,r,n,o,a){var i=[[o?e:e-BI,t],[e+r,t],[e+r,t+n],[o?e:e-BI,t+n]];return!a&&i.splice(2,0,[e+r+BI,t+n/2]),!o&&i.push([e,t+n/2]),i}function Oyt(e,t,r){$t(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&TB(r,t)}}const $yt=kyt;var Uyt=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,o,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:o,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},o=0,a=this._storage.length;o<a;o++){var i=this._storage[o];i.el.animateTo(i.target,{duration:i.duration,delay:i.delay,easing:i.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Nyt(){return new Uyt}var yF=Pt,l9=hr,u9=3,c9="label",d9="upperLabel",Hyt=Dp*10,zyt=Dp*2,Qyt=Dp*3,pf=vA([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),f9=function(e){var t=pf(e);return t.stroke=t.fill=t.lineWidth=null,t},YC=br(),Vyt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Pg(),r}return t.prototype.render=function(r,n,o,a){var i=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Yt(i,r)<0)){this.seriesModel=r,this.api=o,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=ny(a,s,r),u=a&&a.type,c=r.layoutInfo,d=!this._oldTree,f=this._storage,A=u==="treemapRootToNode"&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,h=this._giveContainerGroup(c),v=r.get("animation"),p=this._doRender(h,r,A);v&&!d&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(h,p,r,A):p.renderFinally(),this._resetController(o),this._renderBreadcrumb(r,o,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new yF,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,o){var a=n.getData().tree,i=this._oldTree,s=Pg(),l=Pg(),u=this._storage,c=[];function d(p,g,m,y){return Wyt(n,l,u,o,s,c,p,g,m,y)}A(a.root?[a.root]:[],i&&i.root?[i.root]:[],r,a===i||!i,0);var f=h(u);return this._oldTree=a,this._storage=l,{lastsForAnimation:s,willDeleteEls:f,renderFinally:v};function A(p,g,m,y,b){y?(g=p,z(p,function(C,_){!C.isRemoved()&&w(_,_)})):new yu(g,p,x,x).add(w).update(w).remove(Ut(w,null)).execute();function x(C){return C.getId()}function w(C,_){var B=C!=null?p[C]:null,T=_!=null?g[_]:null,E=d(B,T,m,b);E&&A(B&&B.viewChildren||[],T&&T.viewChildren||[],E,y,b+1)}}function h(p){var g=Pg();return p&&z(p,function(m,y){var b=g[y];z(m,function(x){x&&(b.push(x),YC(x).willDelete=!0)})}),g}function v(){z(f,function(p){z(p,function(g){g.parent&&g.parent.remove(g)})}),z(c,function(p){p.invisible=!0,p.dirty()})}},t.prototype._doAnimation=function(r,n,o,a){var i=o.get("animationDurationUpdate"),s=o.get("animationEasing"),l=(bt(i)?0:i)||0,u=(bt(s)?null:s)||"cubicOut",c=Nyt();z(n.willDeleteEls,function(d,f){z(d,function(A,h){if(!A.invisible){var v=A.parent,p,g=YC(v);if(a&&a.direction==="drillDown")p=v===a.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,y=0;g.willDelete||(m=g.nodeWidth/2,y=g.nodeHeight/2),p=f==="nodeGroup"?{x:m,y,style:{opacity:0}}:{shape:{x:m,y,width:0,height:0},style:{opacity:0}}}p&&c.add(A,p,l,0,u)}})}),z(this._storage,function(d,f){z(d,function(A,h){var v=n.lastsForAnimation[f][h],p={};v&&(A instanceof Pt?v.oldX!=null&&(p.x=A.x,p.y=A.y,A.x=v.oldX,A.y=v.oldY):(v.oldShape&&(p.shape=Pe({},A.shape),A.setShape(v.oldShape)),v.fadein?(A.setStyle("opacity",0),p.style={opacity:1}):A.style.opacity!==1&&(p.style={opacity:1})),c.add(A,p,l,0,u))})},this),this._state="animating",c.finished(at(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller;n||(n=this._controller=new cb(r.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",at(this._onPan,this)),n.on("zoom",at(this._onZoom,this)));var o=new Xt(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(a,i,s){return o.contain(i,s)})},t.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>u9||Math.abs(r.dy)>u9)){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+r.dx,y:o.y+r.dy,width:o.width,height:o.height}})}},t.prototype._onZoom=function(r){var n=r.originX,o=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;var s=new Xt(i.x,i.y,i.width,i.height),l=this.seriesModel.layoutInfo;n-=l.x,o-=l.y;var u=ti();bs(u,u,[-n,-o]),j_(u,u,[r.scale,r.scale]),bs(u,u,[n,o]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(o){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var i=n.findTarget(o.offsetX,o.offsetY);if(i){var s=i.node;if(s.getLayout().isLeafRoot)n._rootToNode(i);else if(a==="zoomToNode")n._zoomToNode(i);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&RC(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,o){var a=this;o||(o=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),o||(o={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new $yt(this.group))).render(r,n,o.node,function(i){a._state!=="animating"&&(A5(r.getViewRoot(),i)?a._rootToNode({node:i}):a._zoomToNode({node:i}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Pg(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var o,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(i){var s=this._storage.background[i.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)o={node:i,offsetX:l[0],offsetY:l[1]};else return!1}},this),o},t.type="treemap",t}(Gr);function Pg(){return{nodeGroup:[],background:[],content:[]}}function Wyt(e,t,r,n,o,a,i,s,l,u){if(!i)return;var c=i.getLayout(),d=e.getData(),f=i.getModel();if(d.setItemGraphicEl(i.dataIndex,null),!c||!c.isInView)return;var A=c.width,h=c.height,v=c.borderWidth,p=c.invisible,g=i.getRawIndex(),m=s&&s.getRawIndex(),y=i.viewChildren,b=c.upperHeight,x=y&&y.length,w=f.getModel("itemStyle"),C=f.getModel(["emphasis","itemStyle"]),_=f.getModel(["blur","itemStyle"]),B=f.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,E=ae("nodeGroup",yF);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),YC(E).nodeWidth=A,YC(E).nodeHeight=h,c.isAboveViewRoot)return E;var I=ae("background",l9,u,zyt);I&&Q(E,I,x&&c.upperLabelHeight);var R=f.getModel("emphasis"),D=R.get("focus"),F=R.get("blurScope"),M=R.get("disabled"),$=D==="ancestor"?i.getAncestorsIndices():D==="descendant"?i.getDescendantIndices():D;if(x)Vm(E)&&kf(E,!1),I&&(kf(I,!M),d.setItemGraphicEl(i.dataIndex,I),$P(I,$,F));else{var O=ae("content",l9,u,Qyt);O&&V(E,O),I.disableMorphing=!0,I&&Vm(I)&&kf(I,!1),kf(E,!M),d.setItemGraphicEl(i.dataIndex,E),$P(E,$,F)}return E;function Q(se,ce,be){var de=$t(ce);if(de.dataIndex=i.dataIndex,de.seriesIndex=e.seriesIndex,ce.setShape({x:0,y:0,width:A,height:h,r:T}),p)W(ce);else{ce.invisible=!1;var pe=i.getVisual("style"),K=pe.stroke,U=f9(w);U.fill=K;var k=pf(C);k.fill=C.get("borderColor");var J=pf(_);J.fill=_.get("borderColor");var ee=pf(B);if(ee.fill=B.get("borderColor"),be){var H=A-2*v;Z(ce,K,pe.opacity,{x:v,y:0,width:H,height:b})}else ce.removeTextContent();ce.setStyle(U),ce.ensureState("emphasis").style=k,ce.ensureState("blur").style=J,ce.ensureState("select").style=ee,pA(ce)}se.add(ce)}function V(se,ce){var be=$t(ce);be.dataIndex=i.dataIndex,be.seriesIndex=e.seriesIndex;var de=Math.max(A-2*v,0),pe=Math.max(h-2*v,0);if(ce.culling=!0,ce.setShape({x:v,y:v,width:de,height:pe,r:T}),p)W(ce);else{ce.invisible=!1;var K=i.getVisual("style"),U=K.fill,k=f9(w);k.fill=U,k.decal=K.decal;var J=pf(C),ee=pf(_),H=pf(B);Z(ce,U,K.opacity,null),ce.setStyle(k),ce.ensureState("emphasis").style=J,ce.ensureState("blur").style=ee,ce.ensureState("select").style=H,pA(ce)}se.add(ce)}function W(se){!se.invisible&&a.push(se)}function Z(se,ce,be,de){var pe=f.getModel(de?d9:c9),K=ro(f.get("name"),null),U=pe.getShallow("show");Zo(se,wo(f,de?d9:c9),{defaultText:U?K:null,inheritColor:ce,defaultOpacity:be,labelFetcher:e,labelDataIndex:i.dataIndex});var k=se.getTextContent();if(k){var J=k.style,ee=W_(J.padding||0);de&&(se.setTextConfig({layoutRect:de}),k.disableLabelLayout=!0),k.beforeUpdate=function(){var Y=Math.max((de?de.width:se.shape.width)-ee[1]-ee[3],0),oe=Math.max((de?de.height:se.shape.height)-ee[0]-ee[2],0);(J.width!==Y||J.height!==oe)&&k.setStyle({width:Y,height:oe})},J.truncateMinChar=2,J.lineOverflow="truncate",te(J,de,c);var H=k.getState("emphasis");te(H?H.style:null,de,c)}}function te(se,ce,be){var de=se?se.text:null;if(!ce&&be.isLeafRoot&&de!=null){var pe=e.get("drillDownIcon",!0);se.text=pe?pe+" "+de:de}}function ae(se,ce,be,de){var pe=m!=null&&r[se][m],K=o[se];return pe?(r[se][m]=null,re(K,pe)):p||(pe=new ce,pe instanceof Ui&&(pe.z2=Gyt(be,de)),le(K,pe)),t[se][g]=pe}function re(se,ce){var be=se[g]={};ce instanceof yF?(be.oldX=ce.x,be.oldY=ce.y):be.oldShape=Pe({},ce.shape)}function le(se,ce){var be=se[g]={},de=i.parentNode,pe=ce instanceof Pt;if(de&&(!n||n.direction==="drillDown")){var K=0,U=0,k=o.background[de.getRawIndex()];!n&&k&&k.oldShape&&(K=k.oldShape.width,U=k.oldShape.height),pe?(be.oldX=0,be.oldY=U):be.oldShape={x:K,y:U,width:0,height:0}}be.fadein=!pe}}function Gyt(e,t){return e*Hyt+t}const Kyt=Vyt;var oy=z,jyt=Tt,XC=-1,h5=function(){function e(t){var r=t.mappingMethod,n=t.type,o=this.option=It(t);this.type=n,this.mappingMethod=r,this._normalizeData=qyt[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(TI(o),Yyt(o)):r==="category"?o.categories?Xyt(o):TI(o,!0):(Xo(r!=="linear"||o.dataExtent),TI(o))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return at(this._normalizeData,this)},e.listVisualTypes=function(){return sr(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Tt(t)?z(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var o,a=Oe(t)?[]:Tt(t)?{}:(o=!0,null);return e.eachVisual(t,function(i,s){var l=r.call(n,i,s);o?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&oy(e.visualHandlers,function(o,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Oe(t))t=t.slice();else if(jyt(t)){var r=[];oy(t,function(n,o){r.push(o)}),t=r}else return[];return t.sort(function(n,o){return o==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var o,a=1/0,i=0,s=r.length;i<s;i++){var l=r[i].value;if(l!=null){if(l===t||Je(l)&&l===t+"")return i;n&&f(l,i)}}for(var i=0,s=r.length;i<s;i++){var u=r[i],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(vx(d[1],t,c[1]))return i}else if(c[1]===1/0){if(vx(d[0],c[0],t))return i}else if(vx(d[0],c[0],t)&&vx(d[1],t,c[1]))return i;n&&f(c[0],i),n&&f(c[1],i)}}if(n)return t===1/0?r.length-1:t===-1/0?0:o;function f(A,h){var v=Math.abs(A-t);v<a&&(a=v,o=h)}},e.visualHandlers={color:{applyVisual:Fg("color"),getColorMapper:function(){var t=this.option;return at(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),d0.call(this,r)}:function(r,n,o){var a=!!o;return!n&&(r=this._normalizeData(r)),o=N0(r,t.parsedVisual,o),a?o:hs(o,"rgba")},this)},_normalizedToVisual:{linear:function(t){return hs(N0(t,this.option.parsedVisual),"rgba")},category:d0,piecewise:function(t,r){var n=xF.call(this,r);return n==null&&(n=hs(N0(t,this.option.parsedVisual),"rgba")),n},fixed:gf}},colorHue:hx(function(t,r){return mv(t,r)}),colorSaturation:hx(function(t,r){return mv(t,null,r)}),colorLightness:hx(function(t,r){return mv(t,null,null,r)}),colorAlpha:hx(function(t,r){return $m(t,r)}),decal:{applyVisual:Fg("decal"),_normalizedToVisual:{linear:null,category:d0,piecewise:null,fixed:null}},opacity:{applyVisual:Fg("opacity"),_normalizedToVisual:bF([0,1])},liftZ:{applyVisual:Fg("liftZ"),_normalizedToVisual:{linear:gf,category:gf,piecewise:gf,fixed:gf}},symbol:{applyVisual:function(t,r,n){var o=this.mapValueToVisual(t);n("symbol",o)},_normalizedToVisual:{linear:A9,category:d0,piecewise:function(t,r){var n=xF.call(this,r);return n==null&&(n=A9.call(this,t)),n},fixed:gf}},symbolSize:{applyVisual:Fg("symbolSize"),_normalizedToVisual:bF([0,1])}},e}();function Yyt(e){var t=e.pieceList;e.hasSpecialVisual=!1,z(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Xyt(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(oy(t,function(i,s){r[i]=s}),!Oe(n)){var o=[];Tt(n)?oy(n,function(i,s){var l=r[s];o[l!=null?l:XC]=i}):o[XC]=n,n=aue(e,o)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function TI(e,t){var r=e.visual,n=[];Tt(r)?oy(r,function(a){n.push(a)}):r!=null&&n.push(r);var o={color:1,symbol:1};!t&&n.length===1&&!o.hasOwnProperty(e.type)&&(n[1]=n[0]),aue(e,n)}function hx(e){return{applyVisual:function(t,r,n){var o=this.mapValueToVisual(t);n("color",e(r("color"),o))},_normalizedToVisual:bF([0,1])}}function A9(e){var t=this.option.visual;return t[Math.round(Fr(e,[0,1],[0,t.length-1],!0))]||{}}function Fg(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function d0(e){var t=this.option.visual;return t[this.option.loop&&e!==XC?e%t.length:e]}function gf(){return this.option.visual[0]}function bF(e){return{linear:function(t){return Fr(t,e,this.option.visual,!0)},category:d0,piecewise:function(t,r){var n=xF.call(this,r);return n==null&&(n=Fr(t,e,this.option.visual,!0)),n},fixed:gf}}function xF(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=h5.findPieceIndex(e,r),o=r[n];if(o&&o.visual)return o.visual[this.type]}}function aue(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Ue(t,function(r){var n=ia(r);return n||[0,0,0,1]})),t}var qyt={linear:function(e){return Fr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=h5.findPieceIndex(e,t,!0);if(r!=null)return Fr(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t==null?XC:t},fixed:$n};function vx(e,t,r){return e?t<=r:t<r}const Po=h5;var Zyt="itemStyle",iue=br();const Jyt={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||sue(r,{},e.getViewRoot().getAncestors(),e)}};function sue(e,t,r,n){var o=e.getModel(),a=e.getLayout(),i=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=o.getModel(Zyt),l=ebt(s,t,n),u=i.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),d=s.get("borderColorSaturation"),f;d!=null&&(f=h9(l),c=tbt(d,f)),u.stroke=c;var A=e.viewChildren;if(!A||!A.length)f=h9(l),u.fill=f;else{var h=rbt(e,o,a,s,l,A);z(A,function(v,p){if(v.depth>=r.length||v===r[v.depth]){var g=nbt(o,l,v,p,h,n);sue(v,g,r,n)}})}}}function ebt(e,t,r){var n=Pe({},t),o=r.designatedVisualItemStyle;return z(["color","colorAlpha","colorSaturation"],function(a){o[a]=t[a];var i=e.get(a);o[a]=null,i!=null&&(n[a]=i)}),n}function h9(e){var t=EI(e,"color");if(t){var r=EI(e,"colorAlpha"),n=EI(e,"colorSaturation");return n&&(t=mv(t,null,null,n)),r&&(t=$m(t,r)),t}}function tbt(e,t){return t!=null?mv(t,null,null,e):null}function EI(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function rbt(e,t,r,n,o,a){if(!(!a||!a.length)){var i=II(t,"color")||o.color!=null&&o.color!=="none"&&(II(t,"colorAlpha")||II(t,"colorSaturation"));if(i){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:i.name,dataExtent:u,visual:i.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Po(d);return iue(f).drColorMappingBy=c,f}}}function II(e,t){var r=e.get(t);return Oe(r)&&r.length?{name:t,range:r}:null}function nbt(e,t,r,n,o,a){var i=Pe({},t);if(o){var s=o.type,l=s==="color"&&iue(o).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));i[s]=o.mapValueToVisual(u)}return i}var ay=Math.max,qC=Math.min,v9=uo,v5=z,lue=["itemStyle","borderWidth"],obt=["itemStyle","gapWidth"],abt=["upperLabel","show"],ibt=["upperLabel","height"];const sbt={seriesType:"treemap",reset:function(e,t,r,n){var o=r.getWidth(),a=r.getHeight(),i=e.option,s=jn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=i.size||[],u=qe(v9(s.width,l[0]),o),c=qe(v9(s.height,l[1]),a),d=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],A=ny(n,f,e),h=d==="treemapRender"||d==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),p=rue(v);if(d!=="treemapMove"){var g=d==="treemapZoomToNode"?Abt(e,A,v,u,c):h?[h.width,h.height]:[u,c],m=i.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var y={squareRatio:i.squareRatio,sort:m,leafDepth:i.leafDepth};v.hostTree.clearLayouts();var b={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};v.setLayout(b),uue(v,y,!1,0),b=v.getLayout(),v5(p,function(w,C){var _=(p[C+1]||v).getValue();w.setLayout(Pe({dataExtent:[_,_],borderWidth:0,upperHeight:0},b))})}var x=e.getData().tree.root;x.setLayout(hbt(s,h,A),!0),e.setLayoutInfo(s),cue(x,new Xt(-s.x,-s.y,o,a),p,v,0)}};function uue(e,t,r,n){var o,a;if(!e.isRemoved()){var i=e.getLayout();o=i.width,a=i.height;var s=e.getModel(),l=s.get(lue),u=s.get(obt)/2,c=due(s),d=Math.max(l,c),f=l-u,A=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),o=ay(o-2*f,0),a=ay(a-f-A,0);var h=o*a,v=lbt(e,s,h,t,r,n);if(v.length){var p={x:f,y:A,width:o,height:a},g=qC(o,a),m=1/0,y=[];y.area=0;for(var b=0,x=v.length;b<x;){var w=v[b];y.push(w),y.area+=w.getLayout().area;var C=fbt(y,g,t.squareRatio);C<=m?(b++,m=C):(y.area-=y.pop().getLayout().area,p9(y,g,p,u,!1),g=qC(p.width,p.height),y.length=y.area=0,m=1/0)}if(y.length&&p9(y,g,p,u,!0),!r){var _=s.get("childrenVisibleMin");_!=null&&h<_&&(r=!0)}for(var b=0,x=v.length;b<x;b++)uue(v[b],t,r,n+1)}}}function lbt(e,t,r,n,o,a){var i=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(o&&!l)return e.viewChildren=[];i=kr(i,function(A){return!A.isRemoved()}),cbt(i,s);var u=dbt(t,i,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=ubt(t,r,u.sum,s,i),u.sum===0)return e.viewChildren=[];for(var c=0,d=i.length;c<d;c++){var f=i[c].getValue()/u.sum*r;i[c].setLayout({area:f})}return l&&(i.length&&e.setLayout({isLeafRoot:!0},!0),i.length=0),e.viewChildren=i,e.setLayout({dataExtent:u.dataExtent},!0),i}function ubt(e,t,r,n,o){if(!n)return r;for(var a=e.get("visibleMin"),i=o.length,s=i,l=i-1;l>=0;l--){var u=o[n==="asc"?i-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?o.splice(0,i-s):o.splice(s,i-s),r}function cbt(e,t){return t&&e.sort(function(r,n){var o=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return o===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:o}),e}function dbt(e,t,r){for(var n=0,o=0,a=t.length;o<a;o++)n+=t[o].getValue();var i=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:i==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],v5(t,function(l){var u=l.getValue(i);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function fbt(e,t,r){for(var n=0,o=1/0,a=0,i=void 0,s=e.length;a<s;a++)i=e[a].getLayout().area,i&&(i<o&&(o=i),i>n&&(n=i));var l=e.area*e.area,u=t*t*r;return l?ay(u*n/l,l/(u*o)):1/0}function p9(e,t,r,n,o){var a=t===r.width?0:1,i=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(o||c>r[l[i]])&&(c=r[l[i]]);for(var d=0,f=e.length;d<f;d++){var A=e[d],h={},v=c?A.getLayout().area/c:0,p=h[l[i]]=ay(c-2*n,0),g=r[s[a]]+r[l[a]]-u,m=d===f-1||g<v?g:v,y=h[l[a]]=ay(m-2*n,0);h[s[i]]=r[s[i]]+qC(n,p/2),h[s[a]]=u+qC(n,y/2),u+=m,A.setLayout(h,!0)}r[s[i]]+=c,r[l[i]]-=c}function Abt(e,t,r,n,o){var a=(t||{}).node,i=[n,o];if(!a||a===r)return i;for(var s,l=n*o,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,d=s.children,f=0,A=d.length;f<A;f++)c+=d[f].getValue();var h=a.getValue();if(h===0)return i;u*=c/h;var v=s.getModel(),p=v.get(lue),g=Math.max(p,due(v));u+=4*p*p+(3*p+g)*Math.pow(u,.5),u>IP&&(u=IP),a=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,o*m]}function hbt(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var o=r.node,a=o.getLayout();if(!a)return n;for(var i=[a.width/2,a.height/2],s=o;s;){var l=s.getLayout();i[0]+=l.x,i[1]+=l.y,s=s.parentNode}return{x:e.width/2-i[0],y:e.height/2-i[1]}}function cue(e,t,r,n,o){var a=e.getLayout(),i=r[o],s=i&&i===e;if(!(i&&!s||o===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Xt(t.x-a.x,t.y-a.y,t.width,t.height);v5(e.viewChildren||[],function(u){cue(u,l,r,n,o+1)})}}function due(e){return e.get(abt)?e.get(ibt):0}function vbt(e){e.registerSeriesModel(Pyt),e.registerChartView(Kyt),e.registerVisual(Jyt),e.registerLayout(sbt),Ryt(e)}function pbt(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),o=r.getGraph(),a=o.data,i=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){vr(u)&&(u=i[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function gbt(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),o=r.getData(),a={};n.each(function(i){var s=n.getName(i);a["ec-"+s]=i;var l=n.getItemModel(i),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(i,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],d=0;d<c.length;d++){var f=l.getShallow(c[d],!0);f!=null&&n.setItemVisual(i,c[d],f)}}),n.count()&&o.each(function(i){var s=o.getItemModel(i),l=s.getShallow("category");if(l!=null){Je(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=o.ensureUniqueItemVisual(i,"style");Pe(c,u);for(var d=["symbol","symbolSize","symbolKeepAspect"],f=0;f<d.length;f++)o.setItemVisual(i,d[f],n.getItemVisual(l,d[f]))}})})}function px(e){return e instanceof Array||(e=[e,e]),e}function mbt(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),o=px(t.get("edgeSymbol")),a=px(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",o&&o[0]),n.setVisual("toSymbol",o&&o[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(i){var s=n.getItemModel(i),l=r.getEdgeByIndex(i),u=px(s.getShallow("symbol",!0)),c=px(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),f=n.ensureUniqueItemVisual(i,"style");switch(Pe(f,d),f.stroke){case"source":{var A=l.node1.getVisual("style");f.stroke=A&&A.fill;break}case"target":{var A=l.node2.getVisual("style");f.stroke=A&&A.fill;break}}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])})})}var wF="-->",EB=function(e){return e.get("autoCurveness")||null},fue=function(e,t){var r=EB(e),n=20,o=[];if(vr(r))n=r;else if(Oe(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;o=[];for(var i=0;i<a;i++)o.push((i%2?i+1:i)/10*(i%2?-1:1));e.__curvenessList=o},iy=function(e,t,r){var n=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[r.uid,n,o].join(wF)},Aue=function(e){var t=e.split(wF);return[t[0],t[2],t[1]].join(wF)},ybt=function(e,t){var r=iy(e.node1,e.node2,t);return t.__edgeMap[r]},bbt=function(e,t){var r=CF(iy(e.node1,e.node2,t),t),n=CF(iy(e.node2,e.node1,t),t);return r+n},CF=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function xbt(e){EB(e)&&(e.__curvenessList=[],e.__edgeMap={},fue(e))}function wbt(e,t,r,n){if(EB(r)){var o=iy(e,t,r),a=r.__edgeMap,i=a[Aue(o)];a[o]&&!i?a[o].isForward=!0:i&&a[o]&&(i.isForward=!0,a[o].isForward=!1),a[o]=a[o]||[],a[o].push(n)}}function p5(e,t,r,n){var o=EB(t),a=Oe(o);if(!o)return null;var i=ybt(e,t);if(!i)return null;for(var s=-1,l=0;l<i.length;l++)if(i[l]===r){s=l;break}var u=bbt(e,t);fue(t,u),e.lineStyle=e.lineStyle||{};var c=iy(e.node1,e.node2,t),d=t.__curvenessList,f=a||u%2?0:1;if(i.isForward)return d[f+s];var A=Aue(c),h=CF(A,t),v=d[s+h+f];return n?a?o&&o[0]===0?(h+f)%2?v:-v:((h%2?0:1)+f)%2?v:-v:(h+f)%2?v:-v:d[s+h+f]}function hue(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var o=n.getModel();n.setLayout([+o.get("x"),+o.get("y")])}),vue(r,e)}}function vue(e,t){e.eachEdge(function(r,n){var o=ol(r.getModel().get(["lineStyle","curveness"]),-p5(r,t,n,!0),0),a=al(r.node1.getLayout()),i=al(r.node2.getLayout()),s=[a,i];+o&&s.push([(a[0]+i[0])/2-(a[1]-i[1])*o,(a[1]+i[1])/2-(i[0]-a[0])*o]),r.setLayout(s)})}function Cbt(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),o=r.coordinateSystem;if(o&&o.type!=="view"){var a=r.getData(),i=[];z(o.dimensions,function(f){i=i.concat(a.mapDimensionsAll(f))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<i.length;c++){var d=a.get(i[c],s);isNaN(d)||(u=!0),l.push(d)}u?a.setItemLayout(s,o.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}vue(a.graph,r)}else(!n||n==="none")&&hue(r)})}function f0(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,o=t.getZoom(),a=(o-1)*r+1;return a/n}function A0(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var g9=Math.PI,RI=[];function pue(e,t){var r=e.coordinateSystem;if(!(r&&r.type!=="view")){var n=r.getBoundingRect(),o=e.getData(),a=o.graph,i=n.width/2+n.x,s=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=o.count();o.setLayout({cx:i,cy:s}),u&&(Sbt[t](e,a,o,l,i,s,u),a.eachEdge(function(c,d){var f=ol(c.getModel().get(["lineStyle","curveness"]),p5(c,e,d),0),A=al(c.node1.getLayout()),h=al(c.node2.getLayout()),v,p=(A[0]+h[0])/2,g=(A[1]+h[1])/2;+f&&(f*=3,v=[i*f+p*(1-f),s*f+g*(1-f)]),c.setLayout([A,h,v])}))}}var Sbt={value:function(e,t,r,n,o,a,i){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||i);t.eachNode(function(c){var d=c.getValue("value"),f=u*(l?d:1)/2;s+=f,c.setLayout([n*Math.cos(s)+o,n*Math.sin(s)+a]),s+=f})},symbolSize:function(e,t,r,n,o,a,i){var s=0;RI.length=i;var l=f0(e);t.eachNode(function(d){var f=A0(d);isNaN(f)&&(f=2),f<0&&(f=0),f*=l;var A=Math.asin(f/2/n);isNaN(A)&&(A=g9/2),RI[d.dataIndex]=A,s+=A*2});var u=(2*g9-s)/i/2,c=0;t.eachNode(function(d){var f=u+RI[d.dataIndex];c+=f,d.setLayout([n*Math.cos(c)+o,n*Math.sin(c)+a]),c+=f})}};function _bt(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&pue(t,"symbolSize")})}var Th=vC;function Bbt(e,t,r){for(var n=e,o=t,a=r.rect,i=a.width,s=a.height,l=[a.x+i/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var d=n[c];d.p||(d.p=xd(i*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=al(d.p),d.edges=null}var f=r.friction==null?.6:r.friction,A=f,h,v;return{warmUp:function(){A=f*.8},setFixed:function(p){n[p].fixed=!0},setUnfixed:function(p){n[p].fixed=!1},beforeStep:function(p){h=p},afterStep:function(p){v=p},step:function(p){h&&h(n,o);for(var g=[],m=n.length,y=0;y<o.length;y++){var b=o[y];if(!b.ignoreForceLayout){var x=b.n1,w=b.n2;gc(g,w.p,x.p);var C=km(g)-b.d,_=w.w/(x.w+w.w);isNaN(_)&&(_=0),Ip(g,g),!x.fixed&&Th(x.p,x.p,g,_*C*A),!w.fixed&&Th(w.p,w.p,g,-(1-_)*C*A)}}for(var y=0;y<m;y++){var B=n[y];B.fixed||(gc(g,l,B.p),Th(B.p,B.p,g,u*A))}for(var y=0;y<m;y++)for(var x=n[y],T=y+1;T<m;T++){var w=n[T];gc(g,w.p,x.p);var C=km(g);C===0&&(noe(g,Math.random()-.5,Math.random()-.5),C=1);var E=(x.rep+w.rep)/C/C;!x.fixed&&Th(x.pp,x.pp,g,E),!w.fixed&&Th(w.pp,w.pp,g,-E)}for(var I=[],y=0;y<m;y++){var B=n[y];B.fixed||(gc(I,B.p,B.pp),Th(B.p,B.p,I,A),Vo(B.pp,B.p))}A=A*.992;var R=A<.01;v&&v(n,o,R),p&&p(R)}}}function Tbt(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},o=t.getGraph(),a=o.data,i=o.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(y){var b=a.getId(y);a.setItemLayout(y,n[b]||[NaN,NaN])}):!l||l==="none"?hue(t):l==="circular"&&pue(t,"value");var u=a.getDataExtent("value"),c=i.getDataExtent("value"),d=s.get("repulsion"),f=s.get("edgeLength"),A=Oe(d)?d:[d,d],h=Oe(f)?f:[f,f];h=[h[1],h[0]];var v=a.mapArray("value",function(y,b){var x=a.getItemLayout(b),w=Fr(y,u,A);return isNaN(w)&&(w=(A[0]+A[1])/2),{w,rep:w,fixed:a.getItemModel(b).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),p=i.mapArray("value",function(y,b){var x=o.getEdgeByIndex(b),w=Fr(y,c,h);isNaN(w)&&(w=(h[0]+h[1])/2);var C=x.getModel(),_=ol(x.getModel().get(["lineStyle","curveness"]),-p5(x,t,b,!0),0);return{n1:v[x.node1.dataIndex],n2:v[x.node2.dataIndex],d:w,curveness:_,ignoreForceLayout:C.get("ignoreForceLayout")}}),g=r.getBoundingRect(),m=Bbt(v,p,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(y,b){for(var x=0,w=y.length;x<w;x++)y[x].fixed&&Vo(y[x].p,o.getNodeByIndex(x).getLayout())}),m.afterStep(function(y,b,x){for(var w=0,C=y.length;w<C;w++)y[w].fixed||o.getNodeByIndex(w).setLayout(y[w].p),n[a.getId(w)]=y[w].p;for(var w=0,C=b.length;w<C;w++){var _=b[w],B=o.getEdgeByIndex(w),T=_.n1.p,E=_.n2.p,I=B.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Vo(I[0],T),Vo(I[1],E),+_.curveness&&(I[2]=[(T[0]+E[0])/2-(T[1]-E[1])*_.curveness,(T[1]+E[1])/2-(E[0]-T[0])*_.curveness]),B.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function Ebt(e,t,r){var n=Pe(e.getBoxLayoutParams(),{aspect:r});return jn(n,{width:t.getWidth(),height:t.getHeight()})}function Ibt(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var o=n.get("coordinateSystem");if(!o||o==="view"){var a=n.getData(),i=a.mapArray(function(p){var g=a.getItemModel(p);return[+g.get("x"),+g.get("y")]}),s=[],l=[];eB(i,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Ebt(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],f=l[1]-s[1],A=c.width,h=c.height,v=n.coordinateSystem=new db;v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],d,f),v.setViewRect(c.x,c.y,A,h),v.setCenter(n.get("center"),t),v.setZoom(n.get("zoom")),r.push(v)}}),r}var m9=co.prototype,DI=Xy.prototype,gue=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(gue);function MI(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Rbt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gue},t.prototype.buildPath=function(r,n){MI(n)?m9.buildPath.call(this,r,n):DI.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return MI(this.shape)?m9.pointAt.call(this,r):DI.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,o=MI(n)?[n.x2-n.x1,n.y2-n.y1]:DI.tangentAt.call(this,r);return Ip(o,o)},t}(tr);const Dbt=Rbt;var PI=["fromSymbol","toSymbol"];function y9(e){return"_"+e+"Type"}function b9(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var o=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=rb(o),u=Vp(i||0,l),c=Nn(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function Mbt(e){var t=new Dbt({name:"line",subPixelOptimize:!0});return SF(t.shape,e),t}function SF(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Pbt=function(e){we(t,e);function t(r,n,o){var a=e.call(this)||this;return a._createLine(r,n,o),a}return t.prototype._createLine=function(r,n,o){var a=r.hostModel,i=r.getItemLayout(n),s=Mbt(i);s.shape.percent=0,ln(s,{shape:{percent:1}},a,n),this.add(s),z(PI,function(l){var u=b9(l,r,n);this.add(u),this[y9(l)]=r.getItemVisual(n,l)},this),this._updateCommonStl(r,n,o)},t.prototype.updateData=function(r,n,o){var a=r.hostModel,i=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};SF(l.shape,s),gr(i,l,a,n),z(PI,function(u){var c=r.getItemVisual(n,u),d=y9(u);if(this[d]!==c){this.remove(this.childOfName(u));var f=b9(u,r,n);this.add(f)}this[d]=c},this),this._updateCommonStl(r,n,o)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,o){var a=r.hostModel,i=this.childOfName("line"),s=o&&o.emphasisLineStyle,l=o&&o.blurLineStyle,u=o&&o.selectLineStyle,c=o&&o.labelStatesModels,d=o&&o.emphasisDisabled,f=o&&o.focus,A=o&&o.blurScope;if(!o||r.hasItemOption){var h=r.getItemModel(n),v=h.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),d=v.get("disabled"),f=v.get("focus"),A=v.get("blurScope"),c=wo(h)}var p=r.getItemVisual(n,"style"),g=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=u,z(PI,function(w){var C=this.childOfName(w);if(C){C.setColor(g),C.style.opacity=p.opacity;for(var _=0;_<sa.length;_++){var B=sa[_],T=i.getState(B);if(T){var E=T.style||{},I=C.ensureState(B),R=I.style||(I.style={});E.stroke!=null&&(R[C.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(R.opacity=E.opacity)}}C.markRedraw()}},this);var m=a.getRawValue(n);Zo(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,C){return a.getFormattedLabel(w,C,r.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(m==null?r.getName(n):isFinite(m)?Cn(m):m)+""});var y=this.getTextContent();if(y){var b=c.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var x=b.get("distance");Oe(x)||(x=[x,x]),y.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),In(this,f,A,d)},t.prototype.highlight=function(){gu(this)},t.prototype.downplay=function(){mu(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");SF(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),o=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!o&&(!a||a.ignore))return;for(var i=1,s=this.parent;s;)s.scaleX&&(i/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),d=l.pointAt(u),f=gc([],d,c);Ip(f,f);function A(T,E){var I=T.__specifiedRotation;if(I==null){var R=l.tangentAt(E);T.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else T.attr("rotation",I)}if(n&&(n.setPosition(c),A(n,0),n.scaleX=n.scaleY=i*u,n.markRedraw()),o&&(o.setPosition(d),A(o,1),o.scaleX=o.scaleY=i*u,o.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var h=void 0,v=void 0,p=a.__labelDistance,g=p[0]*i,m=p[1]*i,y=u/2,b=l.tangentAt(y),x=[b[1],-b[0]],w=l.pointAt(y);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var C=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var _=-Math.atan2(b[1],b[0]);d[0]<c[0]&&(_=Math.PI+_),a.rotation=_}var B=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":B=-m,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":B=m,v="top";break;default:B=0,v="middle"}switch(a.__position){case"end":a.x=f[0]*g+d[0],a.y=f[1]*m+d[1],h=f[0]>.8?"left":f[0]<-.8?"right":"center",v=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":a.x=-f[0]*g+c[0],a.y=-f[1]*m+c[1],h=f[0]>.8?"right":f[0]<-.8?"left":"center",v=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*C+c[0],a.y=c[1]+B,h=b[0]<0?"right":"left",a.originX=-g*C,a.originY=-B;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+B,h="center",a.originY=-B;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*C+d[0],a.y=d[1]+B,h=b[0]>=0?"right":"left",a.originX=g*C,a.originY=-B;break}a.scaleX=a.scaleY=i,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||h})}},t}(Pt);const g5=Pbt;var Fbt=function(){function e(t){this.group=new Pt,this._LineCtor=t||g5}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,o=n.group,a=n._lineData;n._lineData=t,a||o.removeAll();var i=x9(t);t.diff(a).add(function(s){r._doAdd(t,s,i)}).update(function(s,l){r._doUpdate(a,t,l,s,i)}).remove(function(s){o.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=x9(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!kbt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=r.getItemLayout(o);if(FI(a)){var i=new this._LineCtor(r,o,this._seriesScope);i.traverse(n),this.group.add(i),r.setItemGraphicEl(o,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Cd(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var o=t.getItemLayout(r);if(FI(o)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,o,a){var i=t.getItemGraphicEl(n);if(!FI(r.getItemLayout(o))){this.group.remove(i);return}i?i.updateData(r,o,a):i=new this._LineCtor(r,o,a),r.setItemGraphicEl(o,i),this.group.add(i)},e}();function kbt(e){return e.animators&&e.animators.length>0}function x9(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:wo(t)}}function w9(e){return isNaN(e[0])||isNaN(e[1])}function FI(e){return e&&!w9(e[0])&&!w9(e[1])}const m5=Fbt;var kI=[],LI=[],OI=[],Eh=mo,$I=kc,C9=Math.abs;function S9(e,t,r){for(var n=e[0],o=e[1],a=e[2],i=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){kI[0]=Eh(n[0],o[0],a[0],c),kI[1]=Eh(n[1],o[1],a[1],c);var d=C9($I(kI,t)-l);d<i&&(i=d,s=c)}for(var f=0;f<32;f++){var A=s+u;LI[0]=Eh(n[0],o[0],a[0],s),LI[1]=Eh(n[1],o[1],a[1],s),OI[0]=Eh(n[0],o[0],a[0],A),OI[1]=Eh(n[1],o[1],a[1],A);var d=$I(LI,t)-l;if(C9(d)<.01)break;var h=$I(OI,t)-l;u/=2,d<0?h>=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function UI(e,t){var r=[],n=Lm,o=[[],[],[]],a=[[],[]],i=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[al(u[0]),al(u[1])],u[2]&&u.__original.push(al(u[2])));var f=u.__original;if(u[2]!=null){if(Vo(o[0],f[0]),Vo(o[1],f[2]),Vo(o[2],f[1]),c&&c!=="none"){var A=A0(s.node1),h=S9(o,f[0],A*t);n(o[0][0],o[1][0],o[2][0],h,r),o[0][0]=r[3],o[1][0]=r[4],n(o[0][1],o[1][1],o[2][1],h,r),o[0][1]=r[3],o[1][1]=r[4]}if(d&&d!=="none"){var A=A0(s.node2),h=S9(o,f[1],A*t);n(o[0][0],o[1][0],o[2][0],h,r),o[1][0]=r[1],o[2][0]=r[2],n(o[0][1],o[1][1],o[2][1],h,r),o[1][1]=r[1],o[2][1]=r[2]}Vo(u[0],o[0]),Vo(u[1],o[2]),Vo(u[2],o[1])}else{if(Vo(a[0],f[0]),Vo(a[1],f[1]),gc(i,a[1],a[0]),Ip(i,i),c&&c!=="none"){var A=A0(s.node1);vC(a[0],a[0],i,A*t)}if(d&&d!=="none"){var A=A0(s.node2);vC(a[1],a[1],i,-A*t)}Vo(u[0],a[0]),Vo(u[1],a[1])}})}function _9(e){return e.type==="view"}var Lbt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var o=new ib,a=new m5,i=this.group;this._controller=new cb(n.getZr()),this._controllerHost={target:i},i.add(o.group),i.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,o){var a=this,i=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(_9(i)){var c={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?u.attr(c):gr(u,c,r)}UI(r.getGraph(),f0(r));var d=r.getData();s.updateData(d);var f=r.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(r,n,o),clearTimeout(this._layoutTimeout);var A=r.forceLayout,h=r.get(["force","layoutAnimation"]);A&&this._startForceLayoutIteration(A,h),d.graph.eachNode(function(m){var y=m.dataIndex,b=m.getGraphicEl(),x=m.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(){A&&(A.warmUp(),!a._layouting&&a._startForceLayoutIteration(A,h),A.setFixed(y),d.setItemLayout(y,[b.x,b.y]))}).on("dragend",function(){A&&A.setUnfixed(y)}),b.setDraggable(w&&!!A,!!x.get("cursor"));var C=x.get(["emphasis","focus"]);C==="adjacency"&&($t(b).focus=m.getAdjacentDataIndices())}}),d.graph.eachEdge(function(m){var y=m.getGraphicEl(),b=m.getModel().get(["emphasis","focus"]);y&&b==="adjacency"&&($t(y).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var v=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),p=d.getLayout("cx"),g=d.getLayout("cy");d.eachItemGraphicEl(function(m,y){var b=d.getItemModel(y),x=b.get(["label","rotate"])||0,w=m.getSymbolPath();if(v){var C=d.getItemLayout(y),_=Math.atan2(C[1]-g,C[0]-p);_<0&&(_=Math.PI*2+_);var B=C[0]<p;B&&(_=_-Math.PI);var T=B?"left":"right";w.setTextConfig({rotation:-_,position:T,origin:"center"});var E=w.ensureState("emphasis");Pe(E.textConfig||(E.textConfig={}),{position:T})}else w.setTextConfig({rotation:x*=Math.PI/180})}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var o=this;(function a(){r.step(function(i){o.updateLayout(o._model),(o._layouting=!i)&&(n?o._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,o){var a=this,i=this._controller,s=this._controllerHost,l=this.group;if(i.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!_B(u,o,r)}),!_9(r.coordinateSystem)){i.disable();return}i.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(u){s5(s,u.dx,u.dy),o.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){l5(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),UI(r.getGraph(),f0(r)),a._lineDraw.updateLayout(),o.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),o=f0(r);n.eachItemGraphicEl(function(a,i){a&&a.setSymbolScale(o)})},t.prototype.updateLayout=function(r){UI(r.getGraph(),f0(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Gr);const Obt=Lbt;function Ih(e){return"_EC_"+e}var $bt=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Ih(t)]){var o=new mf(t,r);return o.hostGraph=this,this.nodes.push(o),n[Ih(t)]=o,o}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Ih(t)]},e.prototype.addEdge=function(t,r,n){var o=this._nodesMap,a=this._edgesMap;if(vr(t)&&(t=this.nodes[t]),vr(r)&&(r=this.nodes[r]),t instanceof mf||(t=o[Ih(t)]),r instanceof mf||(r=o[Ih(r)]),!(!t||!r)){var i=t.id+"-"+r.id,s=new mue(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[i]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof mf&&(t=t.id),r instanceof mf&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,o=n.length,a=0;a<o;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,o=n.length,a=0;a<o;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,o){if(r instanceof mf||(r=this._nodesMap[Ih(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",i=0;i<this.nodes.length;i++)this.nodes[i].__visited=!1;if(!t.call(o,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],i=0;i<u.length;i++){var c=u[i],d=c.node1===l?c.node2:c.node1;if(!d.__visited){if(t.call(o,d,l))return;s.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,o=this.edges,a=0,i=n.length;a<i;a++)n[a].dataIndex=-1;for(var a=0,i=t.count();a<i;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=o[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,i=o.length;a<i;a++)o[a].dataIndex=-1;for(var a=0,i=r.count();a<i;a++)o[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,o=0;o<r.length;o++)t.addNode(r[o].id,r[o].dataIndex);for(var o=0;o<n.length;o++){var a=n[o];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),mf=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=r==null?-1:r}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e}(),mue=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n==null?-1:n}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function yue(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Rn(mf,yue("hostGraph","data"));Rn(mue,yue("hostGraph","edgeData"));const Ubt=$bt;function bue(e,t,r,n,o){for(var a=new Ubt(n),i=0;i<e.length;i++)a.addNode(uo(e[i].id,e[i].name,i),i);for(var s=[],l=[],u=0,i=0;i<t.length;i++){var c=t[i],d=c.source,f=c.target;a.addEdge(d,f,u)&&(l.push(c),s.push(uo(ro(c.id,null),d+" > "+f)),u++)}var A=r.get("coordinateSystem"),h;if(A==="cartesian2d"||A==="polar")h=Il(e,r);else{var v=Hp.get(A),p=v?v.dimensions||[]:[];Yt(p,"value")<0&&p.concat(["value"]);var g=Wp(e,{coordDimensions:p,encodeDefine:r.getEncode()}).dimensions;h=new Yo(g,r),h.initData(e)}var m=new Yo(["value"],r);return m.initData(l,s),o&&o(h,m),eue({mainData:h,struct:a,structAttr:"graph",datas:{node:h,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Nbt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function o(){return n._categoriesData}this.legendVisualProvider=new ub(o,o),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),AA(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var o=r.edges||r.links||[],a=r.data||r.nodes||[],i=this;if(a&&o){xbt(this);var s=bue(a,o,this,!0,l);return z(s.edges,function(u){wbt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var v=i._categoriesModels,p=h.getShallow("category"),g=v[p];return g&&(g.parentModel=h.parentModel,h.parentModel=g),h});var d=Vr.prototype.getModel;function f(h,v){var p=d.call(this,h,v);return p.resolveParentPath=A,p}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=A,h.getModel=f,h});function A(h){if(h&&(h[0]==="label"||h[1]==="label")){var v=h.slice();return h[0]==="label"?v[0]="edgeLabel":h[1]==="label"&&(v[1]="edgeLabel"),v}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,o){if(o==="edge"){var a=this.getData(),i=this.getDataParams(r,o),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vo("nameValue",{name:c.join(" > "),value:i.value,noValue:i.value==null})}var d=Uie({series:this,dataIndex:r,multipleSeries:n});return d},t.prototype._updateCategoriesData=function(){var r=Ue(this.option.categories||[],function(o){return o.value!=null?o:Pe({value:0},o)}),n=new Yo(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(o){return n.getItemModel(o)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(tn);const Hbt=Nbt;var zbt={type:"graphRoam",event:"graphRoam",update:"none"};function Qbt(e){e.registerChartView(Obt),e.registerSeriesModel(Hbt),e.registerProcessor(pbt),e.registerVisual(gbt),e.registerVisual(mbt),e.registerLayout(Cbt),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,_bt),e.registerLayout(Tbt),e.registerCoordinateSystem("graphView",{dimensions:db.dimensions,create:Ibt}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$n),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$n),e.registerAction(zbt,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(o){var a=o.coordinateSystem,i=c5(a,t,void 0,n);o.setCenter&&o.setCenter(i.center),o.setZoom&&o.setZoom(i.zoom)})})}var Vbt=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Wbt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new Vbt},t.prototype.buildPath=function(r,n){var o=Math.cos,a=Math.sin,i=n.r,s=n.width,l=n.angle,u=n.x-o(l)*s*(s>=i/3?1:2),c=n.y-a(l)*s*(s>=i/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+o(l)*s,n.y+a(l)*s),r.lineTo(n.x+o(n.angle)*i,n.y+a(n.angle)*i),r.lineTo(n.x-o(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(tr);const Gbt=Wbt;function Kbt(e,t){var r=e.get("center"),n=t.getWidth(),o=t.getHeight(),a=Math.min(n,o),i=qe(r[0],t.getWidth()),s=qe(r[1],t.getHeight()),l=qe(e.get("radius"),a/2);return{cx:i,cy:s,r:l}}function gx(e,t){var r=e==null?"":e+"";return t&&(Je(t)?r=t.replace("{value}",r):bt(t)&&(r=t(e))),r}var jbt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),i=Kbt(r,o);this._renderMain(r,n,o,a,i),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,o,a,i){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,d=r.getModel("axisLine"),f=d.get("roundCap"),A=f?GC:la,h=d.get("show"),v=d.getModel("lineStyle"),p=v.get("width"),g=[u,c];Zoe(g,!l),u=g[0],c=g[1];for(var m=c-u,y=u,b=0;h&&b<a.length;b++){var x=Math.min(Math.max(a[b][0],0),1);c=u+m*x;var w=new A({shape:{startAngle:y,endAngle:c,cx:i.cx,cy:i.cy,clockwise:l,r0:i.r-p,r:i.r},silent:!0});w.setStyle({fill:a[b][1]}),w.setStyle(v.getLineStyle(["color","width"])),s.add(w),y=c}var C=function(_){if(_<=0)return a[0][1];var B;for(B=0;B<a.length;B++)if(a[B][0]>=_&&(B===0?0:a[B-1][0])<_)return a[B][1];return a[B-1][1]};this._renderTicks(r,n,o,C,i,u,c,l,p),this._renderTitleAndDetail(r,n,o,C,i),this._renderAnchor(r,i),this._renderPointer(r,n,o,C,i,u,c,l,p)},t.prototype._renderTicks=function(r,n,o,a,i,s,l,u,c){for(var d=this.group,f=i.cx,A=i.cy,h=i.r,v=+r.get("min"),p=+r.get("max"),g=r.getModel("splitLine"),m=r.getModel("axisTick"),y=r.getModel("axisLabel"),b=r.get("splitNumber"),x=m.get("splitNumber"),w=qe(g.get("length"),h),C=qe(m.get("length"),h),_=s,B=(l-s)/b,T=B/x,E=g.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),R=g.get("distance"),D,F,M=0;M<=b;M++){if(D=Math.cos(_),F=Math.sin(_),g.get("show")){var $=R?R+c:c,O=new co({shape:{x1:D*(h-$)+f,y1:F*(h-$)+A,x2:D*(h-w-$)+f,y2:F*(h-w-$)+A},style:E,silent:!0});E.stroke==="auto"&&O.setStyle({stroke:a(M/b)}),d.add(O)}if(y.get("show")){var $=y.get("distance")+R,Q=gx(Cn(M/b*(p-v)+v),y.get("formatter")),V=a(M/b);d.add(new pr({style:un(y,{text:Q,x:D*(h-w-$)+f,y:F*(h-w-$)+A,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:V}),silent:!0}))}if(m.get("show")&&M!==b){var $=m.get("distance");$=$?$+c:c;for(var W=0;W<=x;W++){D=Math.cos(_),F=Math.sin(_);var Z=new co({shape:{x1:D*(h-$)+f,y1:F*(h-$)+A,x2:D*(h-C-$)+f,y2:F*(h-C-$)+A},silent:!0,style:I});I.stroke==="auto"&&Z.setStyle({stroke:a((M+W/x)/b)}),d.add(Z),_+=T}_-=T}else _+=B}},t.prototype._renderPointer=function(r,n,o,a,i,s,l,u,c){var d=this.group,f=this._data,A=this._progressEls,h=[],v=r.get(["pointer","show"]),p=r.getModel("progress"),g=p.get("show"),m=r.getData(),y=m.mapDimension("value"),b=+r.get("min"),x=+r.get("max"),w=[b,x],C=[s,l];function _(T,E){var I=m.getItemModel(T),R=I.getModel("pointer"),D=qe(R.get("width"),i.r),F=qe(R.get("length"),i.r),M=r.get(["pointer","icon"]),$=R.get("offsetCenter"),O=qe($[0],i.r),Q=qe($[1],i.r),V=R.get("keepAspect"),W;return M?W=Nn(M,O-D/2,Q-F,D,F,null,V):W=new Gbt({shape:{angle:-Math.PI/2,width:D,r:F,x:O,y:Q}}),W.rotation=-(E+Math.PI/2),W.x=i.cx,W.y=i.cy,W}function B(T,E){var I=p.get("roundCap"),R=I?GC:la,D=p.get("overlap"),F=D?p.get("width"):c/m.count(),M=D?i.r-F:i.r-(T+1)*F,$=D?i.r:i.r-T*F,O=new R({shape:{startAngle:s,endAngle:E,cx:i.cx,cy:i.cy,clockwise:u,r0:M,r:$}});return D&&(O.z2=x-m.get(y,T)%x),O}(g||v)&&(m.diff(f).add(function(T){var E=m.get(y,T);if(v){var I=_(T,s);ln(I,{rotation:-((isNaN(+E)?C[0]:Fr(E,w,C,!0))+Math.PI/2)},r),d.add(I),m.setItemGraphicEl(T,I)}if(g){var R=B(T,s),D=p.get("clip");ln(R,{shape:{endAngle:Fr(E,w,C,D)}},r),d.add(R),kP(r.seriesIndex,m.dataType,T,R),h[T]=R}}).update(function(T,E){var I=m.get(y,T);if(v){var R=f.getItemGraphicEl(E),D=R?R.rotation:s,F=_(T,D);F.rotation=D,gr(F,{rotation:-((isNaN(+I)?C[0]:Fr(I,w,C,!0))+Math.PI/2)},r),d.add(F),m.setItemGraphicEl(T,F)}if(g){var M=A[E],$=M?M.shape.endAngle:s,O=B(T,$),Q=p.get("clip");gr(O,{shape:{endAngle:Fr(I,w,C,Q)}},r),d.add(O),kP(r.seriesIndex,m.dataType,T,O),h[T]=O}}).execute(),m.each(function(T){var E=m.getItemModel(T),I=E.getModel("emphasis"),R=I.get("focus"),D=I.get("blurScope"),F=I.get("disabled");if(v){var M=m.getItemGraphicEl(T),$=m.getItemVisual(T,"style"),O=$.fill;if(M instanceof _o){var Q=M.style;M.useStyle(Pe({image:Q.image,x:Q.x,y:Q.y,width:Q.width,height:Q.height},$))}else M.useStyle($),M.type!=="pointer"&&M.setColor(O);M.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",a(Fr(m.get(y,T),w,[0,1],!0))),M.z2EmphasisLift=0,Oo(M,E),In(M,R,D,F)}if(g){var V=h[T];V.useStyle(m.getItemVisual(T,"style")),V.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,Oo(V,E),In(V,R,D,F)}}),this._progressEls=h)},t.prototype._renderAnchor=function(r,n){var o=r.getModel("anchor"),a=o.get("show");if(a){var i=o.get("size"),s=o.get("icon"),l=o.get("offsetCenter"),u=o.get("keepAspect"),c=Nn(s,n.cx-i/2+qe(l[0],n.r),n.cy-i/2+qe(l[1],n.r),i,i,null,u);c.z2=o.get("showAbove")?1:0,c.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,o,a,i){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),d=+r.get("max"),f=new Pt,A=[],h=[],v=r.isAnimationEnabled(),p=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){A[g]=new pr({silent:!0}),h[g]=new pr({silent:!0})}).update(function(g,m){A[g]=s._titleEls[m],h[g]=s._detailEls[m]}).execute(),l.each(function(g){var m=l.getItemModel(g),y=l.get(u,g),b=new Pt,x=a(Fr(y,[c,d],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var C=w.get("offsetCenter"),_=i.cx+qe(C[0],i.r),B=i.cy+qe(C[1],i.r),T=A[g];T.attr({z2:p?0:2,style:un(w,{x:_,y:B,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:x})}),b.add(T)}var E=m.getModel("detail");if(E.get("show")){var I=E.get("offsetCenter"),R=i.cx+qe(I[0],i.r),D=i.cy+qe(I[1],i.r),F=qe(E.get("width"),i.r),M=qe(E.get("height"),i.r),$=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:x,T=h[g],O=E.get("formatter");T.attr({z2:p?0:2,style:un(E,{x:R,y:D,text:gx(y,O),width:isNaN(F)?null:F,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:$})}),Vae(T,{normal:E},y,function(V){return gx(V,O)}),v&&Wae(T,g,l,r,{getFormattedLabel:function(V,W,Z,te,ae,re){return gx(re?re.interpolatedValue:y,O)}}),b.add(T)}f.add(b)}),this.group.add(f),this._titleEls=A,this._detailEls=h},t.type="gauge",t}(Gr);const Ybt=jbt;var Xbt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return Kp(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(tn);const qbt=Xbt;function Zbt(e){e.registerChartView(Ybt),e.registerSeriesModel(qbt)}var Jbt=["itemStyle","opacity"],e1t=function(e){we(t,e);function t(r,n){var o=e.call(this)||this,a=o,i=new da,s=new pr;return a.setTextContent(s),o.setTextGuideLine(i),o.updateData(r,n,!0),o}return t.prototype.updateData=function(r,n,o){var a=this,i=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Jbt);c=c==null?1:c,o||Cs(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",o?(a.setShape({points:l.points}),a.style.opacity=0,ln(a,{style:{opacity:c}},i,n)):gr(a,{style:{opacity:c},shape:{points:l.points}},i,n),Oo(a,s),this._updateLabel(r,n),In(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var o=this,a=this.getTextGuideLine(),i=o.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,d=r.getItemVisual(n,"style"),f=d.fill;Zo(i,wo(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:d.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),o.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var A=c.linePoints;a.setShape({points:A}),o.textGuideLineConfig={anchor:A?new Vt(A[0][0],A[0][1]):null},gr(i,{style:{x:c.x,y:c.y}},s,n),i.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Z4(o,J4(l),{stroke:f})},t}(ua),t1t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,o){var a=r.getData(),i=this._data,s=this.group;a.diff(i).add(function(l){var u=new e1t(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=i.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=i.getItemGraphicEl(l);Wm(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Gr);const r1t=t1t;var n1t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ub(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Kp(this,{coordDimensions:["value"],encodeDefaulter:Ut(C4,this)})},t.prototype._defaultLabelLine=function(r){AA(r,"labelLine",["show"]);var n=r.labelLine,o=r.emphasis.labelLine;n.show=n.show&&r.label.show,o.show=o.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),o=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),i=n.getSum(a);return o.percent=i?+(n.get(a,r)/i*100).toFixed(2):0,o.$vars.push("percent"),o},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(tn);const o1t=n1t;function a1t(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function i1t(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),o=[],a=t==="ascending",i=0,s=e.count();i<s;i++)o[i]=i;return bt(t)?o.sort(t):t!=="none"&&o.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),o}function s1t(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var o=e.getItemModel(n),a=o.getModel("label"),i=a.get("position"),s=o.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=i==="inner"||i==="inside"||i==="center"||i==="insideLeft"||i==="insideRight",d,f,A,h;if(c)i==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,A=(u[0][1]+u[3][1])/2,d="left"):i==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,A=(u[1][1]+u[2][1])/2,d="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,A=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,d="center"),h=[[f,A],[f,A]];else{var v=void 0,p=void 0,g=void 0,m=void 0,y=s.get("length");i==="left"?(v=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,g=v-y,f=g-5,d="right"):i==="right"?(v=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,g=v+y,f=g+5,d="left"):i==="top"?(v=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=p-y,A=m-5,d="center"):i==="bottom"?(v=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=p+y,A=m+5,d="center"):i==="rightTop"?(v=r==="horizontal"?u[3][0]:u[1][0],p=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(m=p-y,A=m-5,d="center"):(g=v+y,f=g+5,d="top")):i==="rightBottom"?(v=u[2][0],p=u[2][1],r==="horizontal"?(m=p+y,A=m+5,d="center"):(g=v+y,f=g+5,d="bottom")):i==="leftTop"?(v=u[0][0],p=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(m=p-y,A=m-5,d="center"):(g=v-y,f=g-5,d="right")):i==="leftBottom"?(v=r==="horizontal"?u[1][0]:u[3][0],p=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(m=p+y,A=m+5,d="center"):(g=v-y,f=g-5,d="right")):(v=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,r==="horizontal"?(m=p+y,A=m+5,d="center"):(g=v+y,f=g+5,d="left")),r==="horizontal"?(g=v,f=g):(m=p,A=m),h=[[v,p],[g,m]]}l.label={linePoints:h,x:f,y:A,verticalAlign:"middle",textAlign:d,inside:c}})}function l1t(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),o=n.mapDimension("value"),a=r.get("sort"),i=a1t(r,t),s=r.get("orient"),l=i.width,u=i.height,c=i1t(n,a),d=i.x,f=i.y,A=s==="horizontal"?[qe(r.get("minSize"),u),qe(r.get("maxSize"),u)]:[qe(r.get("minSize"),l),qe(r.get("maxSize"),l)],h=n.getDataExtent(o),v=r.get("min"),p=r.get("max");v==null&&(v=Math.min(h[0],0)),p==null&&(p=h[1]);var g=r.get("funnelAlign"),m=r.get("gap"),y=s==="horizontal"?l:u,b=(y-m*(n.count()-1))/n.count(),x=function(D,F){if(s==="horizontal"){var M=n.get(o,D)||0,$=Fr(M,[v,p],A,!0),O=void 0;switch(g){case"top":O=f;break;case"center":O=f+(u-$)/2;break;case"bottom":O=f+(u-$);break}return[[F,O],[F,O+$]]}var Q=n.get(o,D)||0,V=Fr(Q,[v,p],A,!0),W;switch(g){case"left":W=d;break;case"center":W=d+(l-V)/2;break;case"right":W=d+l-V;break}return[[W,F],[W+V,F]]};a==="ascending"&&(b=-b,m=-m,s==="horizontal"?d+=l:f+=u,c=c.reverse());for(var w=0;w<c.length;w++){var C=c[w],_=c[w+1],B=n.getItemModel(C);if(s==="horizontal"){var T=B.get(["itemStyle","width"]);T==null?T=b:(T=qe(T,l),a==="ascending"&&(T=-T));var E=x(C,d),I=x(_,d+T);d+=T+m,n.setItemLayout(C,{points:E.concat(I.slice().reverse())})}else{var R=B.get(["itemStyle","height"]);R==null?R=b:(R=qe(R,u),a==="ascending"&&(R=-R));var E=x(C,f),I=x(_,f+R);f+=R+m,n.setItemLayout(C,{points:E.concat(I.slice().reverse())})}}s1t(n)})}function u1t(e){e.registerChartView(r1t),e.registerSeriesModel(o1t),e.registerLayout(l1t),e.registerProcessor(lb("funnel"))}var c1t=.3,d1t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new Pt,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,o,a){this._progressiveEls=null;var i=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,d=T9(r);s.diff(l).add(f).update(A).remove(h).execute();function f(p){var g=B9(s,i,p,c,u);NI(g,s,p,d)}function A(p,g){var m=l.getItemGraphicEl(g),y=xue(s,p,c,u);s.setItemGraphicEl(p,m),gr(m,{shape:{points:y}},r,p),Cs(m),NI(m,s,p,d)}function h(p){var g=l.getItemGraphicEl(p);i.remove(g)}if(!this._initialized){this._initialized=!0;var v=f1t(u,r,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,o){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,o){for(var a=n.getData(),i=n.coordinateSystem,s=i.dimensions,l=T9(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var d=B9(a,this._dataGroup,c,s,i);d.incremental=!0,NI(d,a,c,l),u.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Gr);function f1t(e,t,r){var n=e.model,o=e.getRect(),a=new hr({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),i=n.get("layout")==="horizontal"?"width":"height";return a.setShape(i,0),ln(a,{shape:{width:o.width,height:o.height}},t,r),a}function xue(e,t,r,n){for(var o=[],a=0;a<r.length;a++){var i=r[a],s=e.get(e.mapDimension(i),t);A1t(s,n.getAxis(i).type)||o.push(n.dataToPoint(s,i))}return o}function B9(e,t,r,n,o){var a=xue(e,r,n,o),i=new da({shape:{points:a},z2:10});return t.add(i),e.setItemGraphicEl(r,i),i}function T9(e){var t=e.get("smooth",!0);return t===!0&&(t=c1t),t=hl(t),Qv(t)&&(t=0),{smooth:t}}function NI(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var o=t.getItemModel(r),a=o.getModel("emphasis");Oo(e,o,"lineStyle"),In(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function A1t(e,t){return t==="category"?e==null:e==null||isNaN(e)}const h1t=d1t;var v1t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return Il(null,this,{useEncodeDefaulter:at(p1t,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,o=this.getData(),a=[];return n.eachActiveState(o,function(i,s){r===i&&a.push(o.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(tn);function p1t(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return z(t.dimensions,function(n){var o=g1t(n);r[n]=o}),r}}function g1t(e){return+e.replace("dim","")}const m1t=v1t;var y1t=["lineStyle","opacity"],b1t={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(o,a){r.eachActiveState(a,function(i,s){var l=n[i];if(i==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(y1t,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},o.start,o.end)}}}};const x1t=b1t;function w1t(e){C1t(e),S1t(e)}function C1t(e){if(!e.parallel){var t=!1;z(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function S1t(e){var t=Wr(e.parallelAxis);z(t,function(r){if(Tt(r)){var n=r.parallelIndex||0,o=Wr(e.parallel)[n];o&&o.parallelAxisDefault&&Qt(r,o.parallelAxisDefault,!1)}})}var _1t=5,B1t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){this._model=r,this._api=o,this._handlers||(this._handlers={},z(T1t,function(a,i){o.getZr().on(i,this._handlers[i]=at(a,this))},this)),Qp(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Xm(this,"_throttledDispatchExpand"),z(this._handlers,function(o,a){n.getZr().off(a,o)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Pe({type:"parallelAxisExpand"},r))},t.type="parallel",t}(cn),T1t={mousedown:function(e){HI(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(HI(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>_1t)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!HI(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function HI(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const E1t=B1t;var I1t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Qt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var o=r.get("parallelIndex");return o!=null&&n.getComponent("parallel",o)===this},t.prototype.setAxisExpand=function(r){z(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],o=kr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);z(o,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(fr);const R1t=I1t;var D1t=function(e){we(t,e);function t(r,n,o,a,i){var s=e.call(this,r,n,o)||this;return s.type=a||"value",s.axisIndex=i,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Yi);const M1t=D1t;function WA(e,t,r,n,o,a){e=e||0;var i=r[1]-r[0];if(o!=null&&(o=Rh(o,[0,i])),a!=null&&(a=Math.max(a,o!=null?o:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Rh(s,[0,i]),o=a=Rh(s,[o,a]),n=0}t[0]=Rh(t[0],r),t[1]=Rh(t[1],r);var l=zI(t,n);t[n]+=e;var u=o||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Rh(t[n],c);var d;return d=zI(t,n),o!=null&&(d.sign!==l.sign||d.span<o)&&(t[1-n]=t[n]+l.sign*o),d=zI(t,n),a!=null&&d.span>a&&(t[1-n]=t[n]+d.sign*a),t}function zI(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Rh(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var QI=z,wue=Math.min,Cue=Math.max,E9=Math.floor,P1t=Math.ceil,I9=Cn,F1t=Math.PI,k1t=function(){function e(t,r,n){this.type="parallel",this._axesMap=pt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var o=t.dimensions,a=t.parallelAxisIndex;QI(o,function(i,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(i,new M1t(i,nb(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,o=r.layoutBase,a=r.pixelDimIndex,i=t[1-a],s=t[a];return i>=n&&i<=n+r.axisLength&&s>=o&&s<=o+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var o=n.getData();QI(this.dimensions,function(a){var i=this._axesMap.get(a);i.scale.unionExtentFromData(o,o.mapDimension(a)),mA(i.scale,i.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=jn(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],o=["width","height"],a=t.get("layout"),i=a==="horizontal"?0:1,s=r[o[i]],l=[0,s],u=this.dimensions.length,c=mx(t.get("axisExpandWidth"),l),d=mx(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,A=t.get("axisExpandWindow"),h;if(A)h=mx(A[1]-A[0],l),A[1]=A[0]+h;else{h=mx(c*(d-1),l);var v=t.get("axisExpandCenter")||E9(u/2);A=[c*v-h/2],A[1]=A[0]+h}var p=(s-h)/(u-d);p<3&&(p=0);var g=[E9(I9(A[0]/c,1))+1,P1t(I9(A[1]/c,1))-1],m=p/c*A[0];return{layout:a,pixelDimIndex:i,layoutBase:r[n[i]],layoutLength:s,axisBase:r[n[1-i]],axisLength:r[o[1-i]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:A,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,o=this._makeLayoutInfo(),a=o.layout;r.each(function(i){var s=[0,o.axisLength],l=i.inverse?1:0;i.setExtent(s[l],s[1-l])}),QI(n,function(i,s){var l=(o.axisExpandable?O1t:L1t)(s,o),u={horizontal:{x:l.position,y:o.axisLength},vertical:{x:0,y:l.position}},c={horizontal:F1t/2,vertical:0},d=[u[a].x+t.x,u[a].y+t.y],f=c[a],A=ti();wd(A,A,f),bs(A,A,d),this._axesLayout[i]={position:d,rotation:f,transform:A,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,o){n==null&&(n=0),o==null&&(o=t.count());var a=this._axesMap,i=this.dimensions,s=[],l=[];z(i,function(p){s.push(t.mapDimension(p)),l.push(a.get(p).model)});for(var u=this.hasAxisBrushed(),c=n;c<o;c++){var d=void 0;if(!u)d="normal";else{d="active";for(var f=t.getValues(s,c),A=0,h=i.length;A<h;A++){var v=l[A].getActiveState(f[A]);if(v==="inactive"){d="inactive";break}}}r(d,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,o=0,a=t.length;o<a;o++)r.get(t[o]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return vs([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return It(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,o=r.axisExpandWindow.slice(),a=o[1]-o[0],i=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:o};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),f=d[0]!=null;if(c)f&&c&&s<a*d[0]?(u="jump",l=s-a*d[2]):f&&c&&s>a*(1-d[0])?(u="jump",l=s-a*(1-d[2])):(l=s-a*d[1])>=0&&(l=s-a*(1-d[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?WA(l,o,i,"all"):u="none";else{var A=o[1]-o[0],h=i[1]*s/A;o=[Cue(0,h-A/2)],o[1]=wue(i[1],o[0]+A),o[0]=o[1]-A}return{axisExpandWindow:o,behavior:u}},e}();function mx(e,t){return wue(Cue(e,t[0]),t[1])}function L1t(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function O1t(e,t){var r=t.layoutLength,n=t.axisExpandWidth,o=t.axisCount,a=t.axisCollapseWidth,i=t.winInnerIndices,s,l=a,u=!1,c;return e<i[0]?(s=e*a,c=a):e<=i[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(o-1-e)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const $1t=k1t;function U1t(e,t){var r=[];return e.eachComponent("parallel",function(n,o){var a=new $1t(n,e,t);a.name="parallel_"+o,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var o=n.getReferringComponents("parallel",Kn).models[0];n.coordinateSystem=o.coordinateSystem}}),r}var N1t={create:U1t};const H1t=N1t;var Sue=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return vA([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=It(r);if(n)for(var o=n.length-1;o>=0;o--)ja(n[o])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var o=n[0];if(o[0]<=r&&r<=o[1])return"active"}else for(var a=0,i=n.length;a<i;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(fr);Rn(Sue,Gp);const R9=Sue;var yA=!0,sy=Math.min,Xv=Math.max,z1t=Math.pow,Q1t=1e4,V1t=6,W1t=6,D9="globalPan",G1t={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},K1t={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},M9={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},j1t=0,Y1t=function(e){we(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Pt,n._uid="brushController_"+j1t++,z(rxt,function(o,a){this._handlers[a]=at(o,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||amt(n,D9,this._uid),z(this._handlers,function(o,a){n.on(a,o)}),this._brushType=r.brushType,this._brushOption=Qt(It(M9),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;imt(r,D9,this._uid),z(this._handlers,function(n,o){r.off(o,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};z(r,function(o){n[o.panelId]=It(o)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=Ue(r,function(f){return Qt(It(M9),f,!0)});var n="\0-brush-index-",o=this._covers,a=this._covers=[],i=this,s=this._creatingCover;return new yu(o,r,u,l).add(c).update(c).remove(d).execute(),this;function l(f,A){return(f.id!=null?f.id:n+A)+"-"+f.brushType}function u(f,A){return l(f.__brushOption,A)}function c(f,A){var h=r[f];if(A!=null&&o[A]===s)a[f]=o[A];else{var v=a[f]=A!=null?(o[A].__brushOption=h,o[A]):Bue(i,_ue(i,h));y5(i,v)}}function d(f){o[f]!==s&&i.group.remove(o[f])}},t.prototype.unmount=function(){return this.enableBrush(!1),_F(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Wi);function _ue(e,t){var r=IB[t.brushType].createCover(e,t);return r.__brushOption=t,Eue(r,t),e.group.add(r),r}function Bue(e,t){var r=b5(t);return r.endCreating&&(r.endCreating(e,t),Eue(t,t.__brushOption)),t}function Tue(e,t){var r=t.__brushOption;b5(t).updateCoverShape(e,t,r.range,r)}function Eue(e,t){var r=t.z;r==null&&(r=Q1t),e.traverse(function(n){n.z=r,n.z2=r})}function y5(e,t){b5(t).updateCommon(e,t),Tue(e,t)}function b5(e){return IB[e.__brushOption.brushType]}function x5(e,t,r){var n=e._panels;if(!n)return yA;var o,a=e._transform;return z(n,function(i){i.isTargetByCursor(t,r,a)&&(o=i)}),o}function Iue(e,t){var r=e._panels;if(!r)return yA;var n=t.__brushOption.panelId;return n!=null?r[n]:yA}function _F(e){var t=e._covers,r=t.length;return z(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function bA(e,t){var r=Ue(e._covers,function(n){var o=n.__brushOption,a=It(o.range);return{brushType:o.brushType,panelId:o.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function X1t(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],o=r[0]-n[0],a=r[1]-n[1],i=z1t(o*o+a*a,.5);return i>V1t}function Rue(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Due(e,t,r,n){var o=new Pt;return o.add(new hr({name:"main",style:w5(r),silent:!0,draggable:!0,cursor:"move",drift:Ut(P9,e,t,o,["n","s","w","e"]),ondragend:Ut(bA,t,{isEnd:!0})})),z(n,function(a){o.add(new hr({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ut(P9,e,t,o,a),ondragend:Ut(bA,t,{isEnd:!0})}))}),o}function Mue(e,t,r,n){var o=n.brushStyle.lineWidth||0,a=Xv(o,W1t),i=r[0][0],s=r[1][0],l=i-o/2,u=s-o/2,c=r[0][1],d=r[1][1],f=c-a+o/2,A=d-a+o/2,h=c-i,v=d-s,p=h+o,g=v+o;Ol(e,t,"main",i,s,h,v),n.transformable&&(Ol(e,t,"w",l,u,a,g),Ol(e,t,"e",f,u,a,g),Ol(e,t,"n",l,u,p,a),Ol(e,t,"s",l,A,p,a),Ol(e,t,"nw",l,u,a,a),Ol(e,t,"ne",f,u,a,a),Ol(e,t,"sw",l,A,a,a),Ol(e,t,"se",f,A,a,a))}function BF(e,t){var r=t.__brushOption,n=r.transformable,o=t.childAt(0);o.useStyle(w5(r)),o.attr({silent:!n,cursor:n?"move":"default"}),z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var i=t.childOfName(a.join("")),s=a.length===1?TF(e,a[0]):Z1t(e,a);i&&i.attr({silent:!n,invisible:!n,cursor:n?K1t[s]+"-resize":null})})}function Ol(e,t,r,n,o,a,i){var s=t.childOfName(r);s&&s.setShape(ext(C5(e,t,[[n,o],[n+a,o+i]])))}function w5(e){return Ct({strokeNoScale:!0},e.brushStyle)}function Pue(e,t,r,n){var o=[sy(e,r),sy(t,n)],a=[Xv(e,r),Xv(t,n)];return[[o[0],a[0]],[o[1],a[1]]]}function q1t(e){return $c(e.group)}function TF(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},o=sB(r[t],q1t(e));return n[o]}function Z1t(e,t){var r=[TF(e,t[0]),TF(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function P9(e,t,r,n,o,a){var i=r.__brushOption,s=e.toRectRange(i.range),l=Fue(t,o,a);z(n,function(u){var c=G1t[u];s[c[0]][c[1]]+=l[c[0]]}),i.range=e.fromRectRange(Pue(s[0][0],s[1][0],s[0][1],s[1][1])),y5(t,r),bA(t,{isEnd:!1})}function J1t(e,t,r,n){var o=t.__brushOption.range,a=Fue(e,r,n);z(o,function(i){i[0]+=a[0],i[1]+=a[1]}),y5(e,t),bA(e,{isEnd:!1})}function Fue(e,t,r){var n=e.group,o=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function C5(e,t,r){var n=Iue(e,t);return n&&n!==yA?n.clipPath(r,e._transform):It(r)}function ext(e){var t=sy(e[0][0],e[1][0]),r=sy(e[0][1],e[1][1]),n=Xv(e[0][0],e[1][0]),o=Xv(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:o-r}}function txt(e,t,r){if(!(!e._brushType||nxt(e,t.offsetX,t.offsetY))){var n=e._zr,o=e._covers,a=x5(e,t,r);if(!e._dragging)for(var i=0;i<o.length;i++){var s=o[i].__brushOption;if(a&&(a===yA||s.panelId===a.panelId)&&IB[s.brushType].contain(o[i],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function EF(e){var t=e.event;t.preventDefault&&t.preventDefault()}function IF(e,t,r){return e.childOfName("main").contain(t,r)}function kue(e,t,r,n){var o=e._creatingCover,a=e._creatingPanel,i=e._brushOption,s;if(e._track.push(r.slice()),X1t(e)||o){if(a&&!o){i.brushMode==="single"&&_F(e);var l=It(i);l.brushType=F9(l.brushType,a),l.panelId=a===yA?null:a.panelId,o=e._creatingCover=_ue(e,l),e._covers.push(o)}if(o){var u=IB[F9(e._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(C5(e,o,e._track)),n&&(Bue(e,o),u.updateCommon(e,o)),Tue(e,o),s={isEnd:n}}}else n&&i.brushMode==="single"&&i.removeOnClick&&x5(e,t,r)&&_F(e)&&(s={isEnd:n,removeOnClick:!0});return s}function F9(e,t){return e==="auto"?t.defaultBrushType:e}var rxt={mousedown:function(e){if(this._dragging)k9(this,e);else if(!e.target||!e.target.draggable){EF(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=x5(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(txt(this,e,n),this._dragging){EF(e);var o=kue(this,e,n,!1);o&&bA(this,o)}},mouseup:function(e){k9(this,e)}};function k9(e,t){if(e._dragging){EF(t);var r=t.offsetX,n=t.offsetY,o=e.group.transformCoordToLocal(r,n),a=kue(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&bA(e,a)}}function nxt(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var IB={lineX:L9(0),lineY:L9(1),rect:{createCover:function(e,t){function r(n){return n}return Due({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Rue(e);return Pue(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){Mue(e,t,r,n)},updateCommon:BF,contain:IF},polygon:{createCover:function(e,t){var r=new Pt;return r.add(new da({name:"main",style:w5(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ua({name:"main",draggable:!0,drift:Ut(J1t,e,t),ondragend:Ut(bA,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:C5(e,t,r)})},updateCommon:BF,contain:IF}};function L9(e){return{createCover:function(t,r){return Due({toRectRange:function(n){var o=[n,[0,100]];return e&&o.reverse(),o},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=Rue(t),n=sy(r[0][e],r[1][e]),o=Xv(r[0][e],r[1][e]);return[n,o]},updateCoverShape:function(t,r,n,o){var a,i=Iue(t,r);if(i!==yA&&i.getLinearBrushOtherExtent)a=i.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),Mue(t,r,l,o)},updateCommon:BF,contain:IF}}const S5=Y1t;function Lue(e){return e=_5(e),function(t){return f4(t,e)}}function Oue(e,t){return e=_5(e),function(r){var n=t!=null?t:r,o=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(o||0)]}}function $ue(e,t,r){var n=_5(e);return function(o,a){return n.contain(a[0],a[1])&&!_B(o,t,r)}}function _5(e){return Xt.create(e)}var oxt=["axisLine","axisTickLabel","axisName"],axt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new S5(n.getZr())).on("brush",at(this._onBrush,this))},t.prototype.render=function(r,n,o,a){if(!ixt(r,n,a)){this.axisModel=r,this.api=o,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Pt,this.group.add(this._axisGroup),!!r.get("show")){var s=lxt(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,d=r.axis.dim,f=l.getAxisLayout(d),A=Pe({strokeContainThreshold:c},f),h=new xu(r,A);z(oxt,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(A,u,r,s,c,o),Zy(i,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,o,a,i,s){var l=o.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=Xt.create({x:l[0],y:-i/2,width:u,height:i});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:Lue(d),isTargetByCursor:$ue(d,s,a),getLinearBrushOtherExtent:Oue(d,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(sxt(o))},t.prototype._onBrush=function(r){var n=r.areas,o=this.axisModel,a=o.axis,i=Ue(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!o.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:o.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(cn);function ixt(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function sxt(e){var t=e.axis;return Ue(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function lxt(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const uxt=axt;var cxt={type:"axisAreaSelect",event:"axisAreaSelected"};function dxt(e){e.registerAction(cxt,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var fxt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Uue(e){e.registerComponentView(E1t),e.registerComponentModel(R1t),e.registerCoordinateSystem("parallel",H1t),e.registerPreprocessor(w1t),e.registerComponentModel(R9),e.registerComponentView(uxt),Yv(e,"parallel",R9,fxt),dxt(e)}function Axt(e){Jt(Uue),e.registerChartView(h1t),e.registerSeriesModel(m1t),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,x1t)}var hxt=function(){function e(){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}return e}(),vxt=function(e){we(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hxt},t.prototype.buildPath=function(r,n){var o=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+o,n.y2),r.bezierCurveTo(n.cpx2+o,n.cpy2,n.cpx1+o,n.cpy1,n.x1+o,n.y1)):(r.lineTo(n.x2,n.y2+o),r.bezierCurveTo(n.cpx2,n.cpy2+o,n.cpx1,n.cpy1+o,n.x1,n.y1+o)),r.closePath()},t.prototype.highlight=function(){gu(this)},t.prototype.downplay=function(){mu(this)},t}(tr),pxt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,o){var a=this,i=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,d=r.getData(),f=r.getData("edge"),A=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,i.eachEdge(function(h){var v=new vxt,p=$t(v);p.dataIndex=h.dataIndex,p.seriesIndex=r.seriesIndex,p.dataType="edge";var g=h.getModel(),m=g.getModel("lineStyle"),y=m.get("curveness"),b=h.node1.getLayout(),x=h.node1.getModel(),w=x.get("localX"),C=x.get("localY"),_=h.node2.getLayout(),B=h.node2.getModel(),T=B.get("localX"),E=B.get("localY"),I=h.getLayout(),R,D,F,M,$,O,Q,V;switch(v.shape.extent=Math.max(1,I.dy),v.shape.orient=A,A==="vertical"?(R=(w!=null?w*u:b.x)+I.sy,D=(C!=null?C*c:b.y)+b.dy,F=(T!=null?T*u:_.x)+I.ty,M=E!=null?E*c:_.y,$=R,O=D*(1-y)+M*y,Q=F,V=D*y+M*(1-y)):(R=(w!=null?w*u:b.x)+b.dx,D=(C!=null?C*c:b.y)+I.sy,F=T!=null?T*u:_.x,M=(E!=null?E*c:_.y)+I.ty,$=R*(1-y)+F*y,O=D,Q=R*y+F*(1-y),V=M),v.setShape({x1:R,y1:D,x2:F,y2:M,cpx1:$,cpy1:O,cpx2:Q,cpy2:V}),v.useStyle(m.getItemStyle()),v.style.fill){case"source":v.style.fill=h.node1.getVisual("color"),v.style.decal=h.node1.getVisual("style").decal;break;case"target":v.style.fill=h.node2.getVisual("color"),v.style.decal=h.node2.getVisual("style").decal;break;case"gradient":var W=h.node1.getVisual("color"),Z=h.node2.getVisual("color");Je(W)&&Je(Z)&&(v.style.fill=new Mp(0,0,+(A==="horizontal"),+(A==="vertical"),[{color:W,offset:0},{color:Z,offset:1}]))}var te=g.getModel("emphasis");Oo(v,g,"lineStyle",function(re){return re.getItemStyle()}),s.add(v),f.setItemGraphicEl(h.dataIndex,v);var ae=te.get("focus");In(v,ae==="adjacency"?h.getAdjacentDataIndices():ae,te.get("blurScope"),te.get("disabled")),$t(v).dataType="edge"}),i.eachNode(function(h){var v=h.getLayout(),p=h.getModel(),g=p.get("localX"),m=p.get("localY"),y=p.getModel("emphasis"),b=new hr({shape:{x:g!=null?g*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy},style:p.getModel("itemStyle").getItemStyle(),z2:10});Zo(b,wo(p),{labelFetcher:r,labelDataIndex:h.dataIndex,defaultText:h.id}),b.disableLabelAnimation=!0,b.setStyle("fill",h.getVisual("color")),b.setStyle("decal",h.getVisual("style").decal),Oo(b,p),s.add(b),d.setItemGraphicEl(h.dataIndex,b),$t(b).dataType="node";var x=y.get("focus");In(b,x==="adjacency"?h.getAdjacentDataIndices():x,y.get("blurScope"),y.get("disabled"))}),d.eachItemGraphicEl(function(h,v){var p=d.getItemModel(v);p.get("draggable")&&(h.drift=function(g,m){a._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=m,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:d.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){a._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(gxt(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Gr);function gxt(e,t,r){var n=new hr({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ln(n,{shape:{width:e.width+20}},t,r),n}const mxt=pxt;var yxt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var o=r.edges||r.links,a=r.data||r.nodes,i=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<i.length;l++)i[l].depth!=null&&i[l].depth>=0&&(s[i[l].depth]=new Vr(i[l],this,n));if(a&&o){var u=bue(a,o,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(A,h){var v=A.parentModel,p=v.getData().getItemLayout(h);if(p){var g=p.depth,m=v.levelModels[g];m&&(A.parentModel=m)}return A}),f.wrapMethod("getItemModel",function(A,h){var v=A.parentModel,p=v.getGraph().getEdgeByIndex(h),g=p.node1.getLayout();if(g){var m=g.depth,y=v.levelModels[m];y&&(A.parentModel=y)}return A})}},t.prototype.setNodePosition=function(r,n){var o=this.option.data||this.option.nodes,a=o[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,o){function a(A){return isNaN(A)||A==null}if(o==="edge"){var i=this.getDataParams(r,o),s=i.data,l=i.value,u=s.source+" -- "+s.target;return vo("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),d=c.getLayout().value,f=this.getDataParams(r,o).data.name;return vo("nameValue",{name:f!=null?f+"":null,value:d,noValue:a(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var o=e.prototype.getDataParams.call(this,r,n);if(o.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),i=a.getLayout().value;o.value=i}return o},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(tn);const bxt=yxt;function xxt(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),o=r.get("nodeGap"),a=wxt(r,t);r.layoutInfo=a;var i=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;Sxt(u);var d=kr(u,function(v){return v.getLayout().value===0}),f=d.length!==0?0:r.get("layoutIterations"),A=r.get("orient"),h=r.get("nodeAlign");Cxt(u,c,n,o,i,s,f,A,h)})}function wxt(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Cxt(e,t,r,n,o,a,i,s,l){_xt(e,t,r,o,a,s,l),Ixt(e,t,a,o,n,i,s),$xt(e,s)}function Sxt(e){z(e,function(t){var r=Hc(t.outEdges,ZC),n=Hc(t.inEdges,ZC),o=t.getValue()||0,a=Math.max(r,n,o);t.setLayout({value:a},!0)})}function _xt(e,t,r,n,o,a,i){for(var s=[],l=[],u=[],c=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)l[f]=e[f].inEdges.length,l[f]===0&&u.push(e[f]);for(var A=-1;u.length;){for(var h=0;h<u.length;h++){var v=u[h],p=v.hostGraph.data.getRawDataItem(v.dataIndex),g=p.depth!=null&&p.depth>=0;g&&p.depth>A&&(A=p.depth),v.setLayout({depth:g?p.depth:d},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var m=0;m<v.outEdges.length;m++){var y=v.outEdges[m],b=t.indexOf(y);s[b]=0;var x=y.node2,w=e.indexOf(x);--l[w]===0&&c.indexOf(x)<0&&c.push(x)}}++d,u=c,c=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=A>d-1?A:d-1;i&&i!=="left"&&Bxt(e,i,a,C);var _=a==="vertical"?(o-r)/C:(n-r)/C;Ext(e,_,a)}function Nue(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Bxt(e,t,r,n){if(t==="right"){for(var o=[],a=e,i=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:i},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];o.indexOf(c.node1)<0&&o.push(c.node1)}}a=o,o=[],++i}z(e,function(d){Nue(d)||d.setLayout({depth:Math.max(0,n-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&Txt(e,n)}function Txt(e,t){z(e,function(r){!Nue(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function Ext(e,t,r){z(e,function(n){var o=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:o},!0):n.setLayout({x:o},!0)})}function Ixt(e,t,r,n,o,a,i){var s=Rxt(e,i);Dxt(s,t,r,n,o,i),VI(s,o,r,n,i);for(var l=1;a>0;a--)l*=.99,Mxt(s,l,i),VI(s,o,r,n,i),Oxt(s,l,i),VI(s,o,r,n,i)}function Rxt(e,t){var r=[],n=t==="vertical"?"y":"x",o=DP(e,function(a){return a.getLayout()[n]});return o.keys.sort(function(a,i){return a-i}),z(o.keys,function(a){r.push(o.buckets.get(a))}),r}function Dxt(e,t,r,n,o,a){var i=1/0;z(e,function(s){var l=s.length,u=0;z(s,function(d){u+=d.getLayout().value});var c=a==="vertical"?(n-(l-1)*o)/u:(r-(l-1)*o)/u;c<i&&(i=c)}),z(e,function(s){z(s,function(l,u){var c=l.getLayout().value*i;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),z(t,function(s){var l=+s.getValue()*i;s.setLayout({dy:l},!0)})}function VI(e,t,r,n,o){var a=o==="vertical"?"x":"y";z(e,function(i){i.sort(function(v,p){return v.getLayout()[a]-p.getLayout()[a]});for(var s,l,u,c=0,d=i.length,f=o==="vertical"?"dx":"dy",A=0;A<d;A++)l=i[A],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[f]+t;var h=o==="vertical"?n:r;if(u=c-t-h,u>0){s=l.getLayout()[a]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var A=d-2;A>=0;--A)l=i[A],u=l.getLayout()[a]+l.getLayout()[f]+t-c,u>0&&(s=l.getLayout()[a]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function Mxt(e,t,r){z(e.slice().reverse(),function(n){z(n,function(o){if(o.outEdges.length){var a=Hc(o.outEdges,Pxt,r)/Hc(o.outEdges,ZC);if(isNaN(a)){var i=o.outEdges.length;a=i?Hc(o.outEdges,Fxt,r)/i:0}if(r==="vertical"){var s=o.getLayout().x+(a-ld(o,r))*t;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(a-ld(o,r))*t;o.setLayout({y:l},!0)}}})})}function Pxt(e,t){return ld(e.node2,t)*e.getValue()}function Fxt(e,t){return ld(e.node2,t)}function kxt(e,t){return ld(e.node1,t)*e.getValue()}function Lxt(e,t){return ld(e.node1,t)}function ld(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function ZC(e){return e.getValue()}function Hc(e,t,r){for(var n=0,o=e.length,a=-1;++a<o;){var i=+t(e[a],r);isNaN(i)||(n+=i)}return n}function Oxt(e,t,r){z(e,function(n){z(n,function(o){if(o.inEdges.length){var a=Hc(o.inEdges,kxt,r)/Hc(o.inEdges,ZC);if(isNaN(a)){var i=o.inEdges.length;a=i?Hc(o.inEdges,Lxt,r)/i:0}if(r==="vertical"){var s=o.getLayout().x+(a-ld(o,r))*t;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(a-ld(o,r))*t;o.setLayout({y:l},!0)}}})})}function $xt(e,t){var r=t==="vertical"?"x":"y";z(e,function(n){n.outEdges.sort(function(o,a){return o.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(o,a){return o.node1.getLayout()[r]-a.node1.getLayout()[r]})}),z(e,function(n){var o=0,a=0;z(n.outEdges,function(i){i.setLayout({sy:o},!0),o+=i.getLayout().dy}),z(n.inEdges,function(i){i.setLayout({ty:a},!0),a+=i.getLayout().dy})})}function Uxt(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes;if(n.length){var o=1/0,a=-1/0;z(n,function(i){var s=i.getLayout().value;s<o&&(o=s),s>a&&(a=s)}),z(n,function(i){var s=new Po({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),l=s.mapValueToVisual(i.getLayout().value),u=i.getModel().get(["itemStyle","color"]);u!=null?(i.setVisual("color",u),i.setVisual("style",{fill:u})):(i.setVisual("color",l),i.setVisual("style",{fill:l}))})}})}function Nxt(e){e.registerChartView(mxt),e.registerSeriesModel(bxt),e.registerLayout(xxt),e.registerVisual(Uxt),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Hue=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,o=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),i=o.get("type"),s=a.get("type"),l;i==="category"?(t.layout="horizontal",n=o.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],A=[o,a],h=A[c].get("type"),v=A[1-c].get("type"),p=t.data;if(p&&l){var g=[];z(p,function(b,x){var w;Oe(b)?(w=b.slice(),b.unshift(x)):Oe(b.value)?(w=Pe({},b),w.value=w.value.slice(),b.value.unshift(x)):w=b,g.push(w)}),t.data=g}var m=this.defaultValueDimensions,y=[{name:d,type:NC(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:NC(v),dimsDef:m.slice()}];return Kp(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:Ut(cie,y,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),zue=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(tn);Rn(zue,Hue,!0);const Hxt=zue;var zxt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=r.getData(),i=this.group,s=this._data;this._data||i.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),d=O9(c,a,u,l,!0);a.setItemGraphicEl(u,d),i.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!a.hasValue(u)){i.remove(d);return}var f=a.getItemLayout(u);d?(Cs(d),Que(f,d,a,u)):d=O9(f,a,u,l),i.add(d),a.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&i.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,o=this._data;this._data=null,o&&o.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Gr),Qxt=function(){function e(){}return e}(),Vxt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Qxt},t.prototype.buildPath=function(r,n){var o=n.points,a=0;for(r.moveTo(o[a][0],o[a][1]),a++;a<4;a++)r.lineTo(o[a][0],o[a][1]);for(r.closePath();a<o.length;a++)r.moveTo(o[a][0],o[a][1]),a++,r.lineTo(o[a][0],o[a][1])},t}(tr);function O9(e,t,r,n,o){var a=e.ends,i=new Vxt({shape:{points:o?Wxt(a,n,e):a}});return Que(e,i,t,r,o),i}function Que(e,t,r,n,o){var a=r.hostModel,i=Jy[o?"initProps":"updateProps"];i(t,{shape:{points:e.ends}},a,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");Oo(t,s),In(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Wxt(e,t,r){return Ue(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}const Gxt=zxt;function Kxt(e,t){}var Z0=z;function jxt(e){var t=Yxt(e);Z0(t,function(r){var n=r.seriesModels;n.length&&(Xxt(r),Z0(n,function(o,a){qxt(o,r.boxOffsetList[a],r.boxWidthList[a])}))})}function Yxt(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var o=n.getBaseAxis(),a=Yt(r,o);a<0&&(a=r.length,r[a]=o,t[a]={axis:o,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function Xxt(e){var t=e.axis,r=e.seriesModels,n=r.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],i=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Z0(r,function(h){l=Math.max(l,h.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Z0(r,function(h){var v=h.get("boxWidth");Oe(v)||(v=[v,v]),i.push([qe(v[0],s)||0,qe(v[1],s)||0])});var c=s*.8-2,d=c/n*.3,f=(c-d*(n-1))/n,A=f/2-c/2;Z0(r,function(h,v){a.push(A),A+=d+f,o.push(Math.min(Math.max(f,i[v][0]),i[v][1]))})}function qxt(e,t,r){var n=e.coordinateSystem,o=e.getData(),a=r/2,i=e.get("layout")==="horizontal"?0:1,s=1-i,l=["x","y"],u=o.mapDimension(l[i]),c=o.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var d=0;d<o.count();d++){var f=o.get(u,d),A=y(f,c[2],d),h=y(f,c[0],d),v=y(f,c[1],d),p=y(f,c[3],d),g=y(f,c[4],d),m=[];b(m,v,!1),b(m,p,!0),m.push(h,v,g,p),x(m,h),x(m,g),x(m,A),o.setItemLayout(d,{initBaseline:A[s],ends:m})}function y(w,C,_){var B=o.get(C,_),T=[];T[i]=w,T[s]=B;var E;return isNaN(w)||isNaN(B)?E=[NaN,NaN]:(E=n.dataToPoint(T),E[i]+=t),E}function b(w,C,_){var B=C.slice(),T=C.slice();B[i]+=a,T[i]-=a,_?w.push(B,T):w.push(T,B)}function x(w,C){var _=C.slice(),B=C.slice();_[i]-=a,B[i]+=a,w.push(_,B)}}function Zxt(e,t){t=t||{};for(var r=[],n=[],o=t.boundIQR,a=o==="none"||o===0,i=0;i<e.length;i++){var s=ja(e[i].slice()),l=rw(s,.25),u=rw(s,.5),c=rw(s,.75),d=s[0],f=s[s.length-1],A=(o==null?1.5:o)*(c-l),h=a?d:Math.max(d,l-A),v=a?f:Math.min(f,c+A),p=t.itemNameFormatter,g=bt(p)?p({value:i}):Je(p)?p.replace("{value}",i+""):i+"";r.push([g,h,l,u,c,v]);for(var m=0;m<s.length;m++){var y=s[m];if(y<h||y>v){var b=[g,y];n.push(b)}}}return{boxData:r,outliers:n}}var Jxt={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==qo){var n="";Tr(n)}var o=Zxt(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:o.boxData},{data:o.outliers}]}};function ewt(e){e.registerSeriesModel(Hxt),e.registerChartView(Gxt),e.registerVisual(Kxt),e.registerLayout(jxt),e.registerTransform(Jxt)}var twt=["color","borderColor"],rwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,o){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,o,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Cd(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),o=this._data,a=this.group,i=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(o).add(function(c){if(n.hasValue(c)){var d=n.getItemLayout(c);if(s&&$9(u,d))return;var f=WI(d,c,!0);ln(f,{shape:{points:d.ends}},r,c),GI(f,n,c,i),a.add(f),n.setItemGraphicEl(c,f)}}).update(function(c,d){var f=o.getItemGraphicEl(d);if(!n.hasValue(c)){a.remove(f);return}var A=n.getItemLayout(c);if(s&&$9(u,A)){a.remove(f);return}f?(gr(f,{shape:{points:A.ends}},r,c),Cs(f)):f=WI(A),GI(f,n,c,i),a.add(f),n.setItemGraphicEl(c,f)}).remove(function(c){var d=o.getItemGraphicEl(c);d&&a.remove(d)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),N9(r,this.group);var n=r.get("clip",!0)?SB(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var o=n.getData(),a=o.getLayout("isSimpleBox"),i;(i=r.next())!=null;){var s=o.getItemLayout(i),l=WI(s);GI(l,o,i,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){N9(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Gr),nwt=function(){function e(){}return e}(),owt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new nwt},t.prototype.buildPath=function(r,n){var o=n.points;this.__simpleBox?(r.moveTo(o[4][0],o[4][1]),r.lineTo(o[6][0],o[6][1])):(r.moveTo(o[0][0],o[0][1]),r.lineTo(o[1][0],o[1][1]),r.lineTo(o[2][0],o[2][1]),r.lineTo(o[3][0],o[3][1]),r.closePath(),r.moveTo(o[4][0],o[4][1]),r.lineTo(o[5][0],o[5][1]),r.moveTo(o[6][0],o[6][1]),r.lineTo(o[7][0],o[7][1]))},t}(tr);function WI(e,t,r){var n=e.ends;return new owt({shape:{points:r?awt(n,e):n},z2:100})}function $9(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function GI(e,t,r,n){var o=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,Oo(e,o)}function awt(e,t){return Ue(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var iwt=function(){function e(){}return e}(),U9=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new iwt},t.prototype.buildPath=function(r,n){for(var o=n.points,a=0;a<o.length;)if(this.__sign===o[a++]){var i=o[a++];r.moveTo(i,o[a++]),r.lineTo(i,o[a++])}else a+=3},t}(tr);function N9(e,t,r,n){var o=e.getData(),a=o.getLayout("largePoints"),i=new U9({shape:{points:a},__sign:1});t.add(i);var s=new U9({shape:{points:a},__sign:-1});t.add(s),H9(1,i,e),H9(-1,s,e),n&&(i.incremental=!0,s.incremental=!0),r&&r.push(i,s)}function H9(e,t,r,n){var o=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]),a=r.getModel("itemStyle").getItemStyle(twt);t.useStyle(a),t.style.fill=null,t.style.stroke=o}const swt=rwt;var Vue=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,o){var a=n.getItemLayout(r);return a&&o.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(tn);Rn(Vue,Hue,!0);const lwt=Vue;function uwt(e){!e||!Oe(e.series)||z(e.series,function(t){Tt(t)&&t.type==="k"&&(t.type="candlestick")})}var cwt=["itemStyle","borderColor"],dwt=["itemStyle","borderColor0"],fwt=["itemStyle","color"],Awt=["itemStyle","color0"],hwt={seriesType:"candlestick",plan:zp(),performRawSeries:!0,reset:function(e,t){function r(a,i){return i.get(a>0?fwt:Awt)}function n(a,i){return i.get(a>0?cwt:dwt)}if(!t.isSeriesFiltered(e)){var o=e.pipelineContext.large;return!o&&{progress:function(a,i){for(var s;(s=a.next())!=null;){var l=i.getItemModel(s),u=i.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var d=i.ensureUniqueItemVisual(s,"style");Pe(d,c)}}}}}};const vwt=hwt;var pwt={seriesType:"candlestick",plan:zp(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=gwt(e,r),o=0,a=1,i=["x","y"],s=r.getDimensionIndex(r.mapDimension(i[o])),l=Ue(r.mapDimensionsAll(i[a]),r.getDimensionIndex,r),u=l[0],c=l[1],d=l[2],f=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:A};function A(v,p){for(var g,m=p.getStore();(g=v.next())!=null;){var y=m.get(s,g),b=m.get(u,g),x=m.get(c,g),w=m.get(d,g),C=m.get(f,g),_=Math.min(b,x),B=Math.max(b,x),T=F(_,y),E=F(B,y),I=F(w,y),R=F(C,y),D=[];M(D,E,0),M(D,T,1),D.push(O(R),O(E),O(I),O(T)),p.setItemLayout(g,{sign:z9(m,g,b,x,c),initBaseline:b>x?E[a]:T[a],ends:D,brushRect:$(w,C,y)})}function F(Q,V){var W=[];return W[o]=V,W[a]=Q,isNaN(V)||isNaN(Q)?[NaN,NaN]:t.dataToPoint(W)}function M(Q,V,W){var Z=V.slice(),te=V.slice();Z[o]=aw(Z[o]+n/2,1,!1),te[o]=aw(te[o]-n/2,1,!0),W?Q.push(Z,te):Q.push(te,Z)}function $(Q,V,W){var Z=F(Q,W),te=F(V,W);return Z[o]-=n/2,te[o]-=n/2,{x:Z[0],y:Z[1],width:n,height:te[1]-Z[1]}}function O(Q){return Q[o]=aw(Q[o],1),Q}}function h(v,p){for(var g=Js(v.count*4),m=0,y,b=[],x=[],w,C=p.getStore();(w=v.next())!=null;){var _=C.get(s,w),B=C.get(u,w),T=C.get(c,w),E=C.get(d,w),I=C.get(f,w);if(isNaN(_)||isNaN(E)||isNaN(I)){g[m++]=NaN,m+=3;continue}g[m++]=z9(C,w,B,T,c),b[o]=_,b[a]=E,y=t.dataToPoint(b,null,x),g[m++]=y?y[0]:NaN,g[m++]=y?y[1]:NaN,b[a]=I,y=t.dataToPoint(b,null,x),g[m++]=y?y[1]:NaN}p.setLayout("largePoints",g)}}};function z9(e,t,r,n,o){var a;return r>n?a=-1:r<n?a=1:a=t>0?e.get(o,t-1)<=n?1:-1:1,a}function gwt(e,t){var r=e.getBaseAxis(),n,o=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=qe(Zt(e.get("barMaxWidth"),o),o),i=qe(Zt(e.get("barMinWidth"),1),o),s=e.get("barWidth");return s!=null?qe(s,o):Math.max(Math.min(o/2,a),i)}const mwt=pwt;function ywt(e){e.registerChartView(swt),e.registerSeriesModel(lwt),e.registerPreprocessor(uwt),e.registerVisual(vwt),e.registerLayout(mwt)}function Q9(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var bwt=function(e){we(t,e);function t(r,n){var o=e.call(this)||this,a=new ab(r,n),i=new Pt;return o.add(a),o.add(i),o.updateData(r,n),o}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,o=r.color,a=r.rippleNumber,i=this.childAt(1),s=0;s<a;s++){var l=Nn(n,-1,-1,2,2,o);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),i.add(l)}Q9(i,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,o=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],i=0;i<a.length;i++){var s=a[i];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}Q9(o,r)},t.prototype.highlight=function(){gu(this)},t.prototype.downplay=function(){mu(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var o=this,a=r.hostModel;this.childAt(0).updateData(r,n);var i=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=rb(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),d=c&&c.fill,f=s.getModel("emphasis");i.setScale(u),i.traverse(function(p){p.setStyle("fill",d)});var A=Vp(r.getItemVisual(n,"symbolOffset"),u);A&&(i.x=A[0],i.y=A[1]);var h=r.getItemVisual(n,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var v={};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=n/r.count(),v.z=a.getShallow("z")||0,v.zlevel=a.getShallow("zlevel")||0,v.symbolType=l,v.color=d,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(p){p==="emphasis"?v.showEffectOn!=="render"&&o.startEffectAnimation(v):p==="normal"&&v.showEffectOn!=="render"&&o.stopEffectAnimation()}),this._effectCfg=v,In(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(Pt);const xwt=bwt;var wwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new ib(xwt)},t.prototype.render=function(r,n,o){var a=r.getData(),i=this._symbolDraw;i.updateData(a,{clipShape:this._getClipShape(r)}),this.group.add(i.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,o=n&&n.getArea&&n.getArea();return r.get("clip",!0)?o:null},t.prototype.updateTransform=function(r,n,o){var a=r.getData();this.group.dirty();var i=sb("").reset(r,n,o);i.progress&&i.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=Eoe(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Gr);const Cwt=wwt;var Swt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Il(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,o){return o.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(tn);const _wt=Swt;function Bwt(e){e.registerChartView(Cwt),e.registerSeriesModel(_wt),e.registerLayout(sb("effectScatter"))}var Twt=function(e){we(t,e);function t(r,n,o){var a=e.call(this)||this;return a.add(a.createLine(r,n,o)),a._updateEffectSymbol(r,n),a}return t.prototype.createLine=function(r,n,o){return new g5(r,n,o)},t.prototype._updateEffectSymbol=function(r,n){var o=r.getItemModel(n),a=o.getModel("effect"),i=a.get("symbolSize"),s=a.get("symbol");Oe(i)||(i=[i,i]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Nn(s,-.5,-.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=i[0],c.scaleY=i[1],c.setColor(u),this._symbolType=s,this._symbolScale=i,this._updateEffectAnimation(r,a,n))},t.prototype._updateEffectAnimation=function(r,n,o){var a=this.childAt(1);if(a){var i=r.getItemLayout(o),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("constantSpeed"),c=uo(n.get("delay"),function(f){return f/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,i),u>0&&(s=this._getLineLength(a)/u*1e3),s!==this._period||l!==this._loop){a.stopAnimation();var d=void 0;bt(c)?d=c(o):d=c,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l)}this._period=s,this._loop=l}},t.prototype._animateSymbol=function(r,n,o,a){if(n>0){r.__t=0;var i=this,s=r.animate("",a).when(n,{__t:1}).delay(o).during(function(){i._updateSymbolPosition(r)});a||s.done(function(){i.remove(r)}),s.start()}},t.prototype._getLineLength=function(r){return jl(r.__p1,r.__cp1)+jl(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,o){this.childAt(0).updateData(r,n,o),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,o=r.__p2,a=r.__cp1,i=r.__t,s=[r.x,r.y],l=s.slice(),u=mo,c=pP;s[0]=u(n[0],a[0],o[0],i),s[1]=u(n[1],a[1],o[1],i);var d=c(n[0],a[0],o[0],i),f=c(n[1],a[1],o[1],i);r.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=jl(l,s)*1.05,i===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*jl(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var o=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,o,n)},t}(Pt);const Wue=Twt;var Ewt=function(e){we(t,e);function t(r,n,o){var a=e.call(this)||this;return a._createPolyline(r,n,o),a}return t.prototype._createPolyline=function(r,n,o){var a=r.getItemLayout(n),i=new da({shape:{points:a}});this.add(i),this._updateCommonStl(r,n,o)},t.prototype.updateData=function(r,n,o){var a=r.hostModel,i=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};gr(i,s,a,n),this._updateCommonStl(r,n,o)},t.prototype._updateCommonStl=function(r,n,o){var a=this.childAt(0),i=r.getItemModel(n),s=o&&o.emphasisLineStyle,l=o&&o.focus,u=o&&o.blurScope,c=o&&o.emphasisDisabled;if(!o||r.hasItemOption){var d=i.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),c=d.get("disabled"),l=d.get("focus"),u=d.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var f=a.ensureState("emphasis");f.style=s,In(this,l,u,c)},t.prototype.updateLayout=function(r,n){var o=this.childAt(0);o.setShape("points",r.getItemLayout(n))},t}(Pt);const Gue=Ewt;var Iwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,o){return new Gue(r,n,o)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var o=[0],a=0,i=1;i<n.length;i++){var s=n[i-1],l=n[i];a+=jl(s,l),o.push(a)}if(a===0){this._length=0;return}for(var i=0;i<o.length;i++)o[i]/=a;this._offsets=o,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t,o=this._points,a=this._offsets,i=o.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,i-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,i-2)}else{for(l=s;l<i&&!(a[l]>n);l++);l=Math.min(l-1,i-2)}var c=(n-a[l])/(a[l+1]-a[l]),d=o[l],f=o[l+1];r.x=d[0]*(1-c)+c*f[0],r.y=d[1]*(1-c)+c*f[1];var A=f[0]-d[0],h=f[1]-d[1];r.rotation=-Math.atan2(h,A)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(Wue);const Rwt=Iwt;var Dwt=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Mwt=function(e){we(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Dwt},t.prototype.buildPath=function(r,n){var o=n.segs,a=n.curveness,i;if(n.polyline)for(i=this._off;i<o.length;){var s=o[i++];if(s>0){r.moveTo(o[i++],o[i++]);for(var l=1;l<s;l++)r.lineTo(o[i++],o[i++])}}else for(i=this._off;i<o.length;){var u=o[i++],c=o[i++],d=o[i++],f=o[i++];if(r.moveTo(u,c),a>0){var A=(u+d)/2-(c-f)*a,h=(c+f)/2-(d-u)*a;r.quadraticCurveTo(A,h,d,f)}else r.lineTo(d,f)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var o=this.shape,a=o.segs,i=o.curveness,s=this.style.lineWidth;if(o.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var d=a[u++],f=a[u++],A=1;A<c;A++){var h=a[u++],v=a[u++];if(uc(d,f,h,v,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var d=a[u++],f=a[u++],h=a[u++],v=a[u++];if(i>0){var p=(d+h)/2-(f-v)*i,g=(f+v)/2-(h-d)*i;if(Joe(d,f,p,g,h,v,s,r,n))return l}else if(uc(d,f,h,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var o=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=o[0],n=o[1],a.contain(r,n)){var i=this.hoverDataIdx=this.findDataIndex(r,n);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,o=n.segs,a=1/0,i=1/0,s=-1/0,l=-1/0,u=0;u<o.length;){var c=o[u++],d=o[u++];a=Math.min(c,a),s=Math.max(c,s),i=Math.min(d,i),l=Math.max(d,l)}r=this._rect=new Xt(a,i,s,l)}return r},t}(tr),Pwt=function(){function e(){this.group=new Pt}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],o=r.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var i=a.length,s=new Float32Array(i+o.length);s.set(a),s.set(o,i),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:o}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Mwt({cursor:"default"});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var o=r.hostModel;t.setShape({polyline:o.get("polyline"),curveness:o.get(["lineStyle","curveness"])}),t.useStyle(o.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var i=$t(t);i.seriesIndex=o.seriesIndex,t.on("mousemove",function(s){i.dataIndex=null;var l=t.hoverDataIdx;l>0&&(i.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Fwt=Pwt;var kwt={seriesType:"lines",plan:zp(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(o,a){var i=[];if(n){var s=void 0,l=o.end-o.start;if(r){for(var u=0,c=o.start;c<o.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var d=0,f=[],c=o.start;c<o.end;c++){var A=e.getLineCoords(c,i);r&&(s[d++]=A);for(var h=0;h<A;h++)f=t.dataToPoint(i[h],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout("linesPoints",s)}else for(var c=o.start;c<o.end;c++){var v=a.getItemModel(c),A=e.getLineCoords(c,i),p=[];if(r)for(var g=0;g<A;g++)p.push(t.dataToPoint(i[g]));else{p[0]=t.dataToPoint(i[0]),p[1]=t.dataToPoint(i[1]);var m=v.get(["lineStyle","curveness"]);+m&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*m,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*m])}a.setItemLayout(c,p)}}}}}};const Kue=kwt;var Lwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=r.getData(),i=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=o.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),i.updateData(a);var d=r.get("clip",!0)&&SB(r.coordinateSystem,!1,r);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,o){var a=r.getData(),i=this._updateLineDraw(a,r);i.incrementalPrepareUpdate(a),this._clearLayer(o),this._finished=!1},t.prototype.incrementalRender=function(r,n,o){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,o){var a=r.getData(),i=r.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var s=Kue.reset(r,n,o);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(o)},t.prototype._updateLineDraw=function(r,n){var o=this._lineDraw,a=this._showEffect(n),i=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!o||a!==this._hasEffet||i!==this._isPolyline||l!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=l?new Fwt:new m5(i?a?Rwt:Gue:a?Wue:g5),this._hasEffet=a,this._isPolyline=i,this._isLargeDraw=l),this.group.add(o.group),o},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),o=n.painter.getType()==="svg";!o&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Gr);const Owt=Lwt;var $wt=typeof Uint32Array=="undefined"?Array:Uint32Array,Uwt=typeof Float64Array=="undefined"?Array:Float64Array;function V9(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Ue(t,function(r){var n=[r[0].coord,r[1].coord],o={coords:n};return r[0].name&&(o.fromName=r[0].name),r[1].name&&(o.toName=r[1].name),Q_([o,r[0],r[1]])}))}var Nwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],V9(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(V9(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Fm(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Fm(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),o=n.option instanceof Array?n.option:n.getShallow("coords");return o},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var o=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],i=0;i<a;i++)n[i]=n[i]||[],n[i][0]=this._flatCoords[o+i*2],n[i][1]=this._flatCoords[o+i*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),i=0;i<s.length;i++)n[i]=n[i]||[],n[i][0]=s[i][0],n[i][1]=s[i][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),vr(r[0])){for(var o=r.length,a=new $wt(o),i=new Uwt(o),s=0,l=0,u=0,c=0;c<o;){u++;var d=r[c++];a[l++]=s+n,a[l++]=d;for(var f=0;f<d;f++){var A=r[c++],h=r[c++];i[s++]=A,i[s++]=h}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:i,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var o=new Yo(["value"],this);return o.hasItemOption=!1,o.initData(r.data,[],function(a,i,s,l){if(a instanceof Array)return NaN;o.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),o},t.prototype.formatTooltip=function(r,n,o){var a=this.getData(),i=a.getItemModel(r),s=i.get("name");if(s)return s;var l=i.get("fromName"),u=i.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vo("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r==null?this.option.large?1e4:this.get("progressive"):r},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?2e4:this.get("progressiveThreshold"):r},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(tn);const Hwt=Nwt;function yx(e){return e instanceof Array||(e=[e,e]),e}var zwt={seriesType:"lines",reset:function(e){var t=yx(e.get("symbol")),r=yx(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function o(a,i){var s=a.getItemModel(i),l=yx(s.getShallow("symbol",!0)),u=yx(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(i,"fromSymbol",l[0]),l[1]&&a.setItemVisual(i,"toSymbol",l[1]),u[0]&&a.setItemVisual(i,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(i,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?o:null}}};const Qwt=zwt;function Vwt(e){e.registerChartView(Owt),e.registerSeriesModel(Hwt),e.registerLayout(Kue),e.registerVisual(Qwt)}var Wwt=256,Gwt=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ys.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,o,a,i){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),A=t.length;d.width=r,d.height=n;for(var h=0;h<A;++h){var v=t[h],p=v[0],g=v[1],m=v[2],y=o(m);f.globalAlpha=y,f.drawImage(s,p-c,g-c)}if(!d.width||!d.height)return d;for(var b=f.getImageData(0,0,d.width,d.height),x=b.data,w=0,C=x.length,_=this.minOpacity,B=this.maxOpacity,T=B-_;w<C;){var y=x[w+3]/256,E=Math.floor(y*(Wwt-1))*4;if(y>0){var I=i(y)?l:u;y>0&&(y=y*T+_),x[w++]=I[E],x[w++]=I[E+1],x[w++]=I[E+2],x[w++]=I[E+3]*y*256}else w+=4}return f.putImageData(b,0,0),d},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ys.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var o=t.getContext("2d");return o.clearRect(0,0,n,n),o.shadowOffsetX=n,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-r,r,this.pointSize,0,Math.PI*2,!0),o.closePath(),o.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,o=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],i=0,s=0;s<256;s++)t[r](s/255,!0,a),o[i++]=a[0],o[i++]=a[1],o[i++]=a[2],o[i++]=a[3];return o},e}();const Kwt=Gwt;function jwt(e,t,r){var n=e[1]-e[0];t=Ue(t,function(i){return{interval:[(i.interval[0]-e[0])/n,(i.interval[1]-e[0])/n]}});var o=t.length,a=0;return function(i){var s;for(s=a;s<o;s++){var l=t[s].interval;if(l[0]<=i&&i<=l[1]){a=s;break}}if(s===o)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=i&&i<=l[1]){a=s;break}}return s>=0&&s<o&&r[s]}}function Ywt(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function W9(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Xwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var i=r.coordinateSystem;i.type==="cartesian2d"||i.type==="calendar"?this._renderOnCartesianAndCalendar(r,o,0,r.getData().count()):W9(i)&&this._renderOnGeo(i,r,a,o)},t.prototype.incrementalPrepareRender=function(r,n,o){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,o,a){var i=n.coordinateSystem;i&&(W9(i)?this.render(n,o,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Cd(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,o,a,i){var s=r.coordinateSystem,l=QA(s,"cartesian2d"),u,c,d,f;if(l){var A=s.getAxis("x"),h=s.getAxis("y");u=A.getBandWidth()+.5,c=h.getBandWidth()+.5,d=A.scale.getExtent(),f=h.scale.getExtent()}for(var v=this.group,p=r.getData(),g=r.getModel(["emphasis","itemStyle"]).getItemStyle(),m=r.getModel(["blur","itemStyle"]).getItemStyle(),y=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),x=wo(r),w=r.getModel("emphasis"),C=w.get("focus"),_=w.get("blurScope"),B=w.get("disabled"),T=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],E=o;E<a;E++){var I=void 0,R=p.getItemVisual(E,"style");if(l){var D=p.get(T[0],E),F=p.get(T[1],E);if(isNaN(p.get(T[2],E))||D<d[0]||D>d[1]||F<f[0]||F>f[1])continue;var M=s.dataToPoint([D,F]);I=new hr({shape:{x:M[0]-u/2,y:M[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(p.get(T[1],E)))continue;I=new hr({z2:1,shape:s.dataToRect([p.get(T[0],E)]).contentShape,style:R})}if(p.hasItemOption){var $=p.getItemModel(E),O=$.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),m=$.getModel(["blur","itemStyle"]).getItemStyle(),y=$.getModel(["select","itemStyle"]).getItemStyle(),b=$.get(["itemStyle","borderRadius"]),C=O.get("focus"),_=O.get("blurScope"),B=O.get("disabled"),x=wo($)}I.shape.r=b;var Q=r.getRawValue(E),V="-";Q&&Q[2]!=null&&(V=Q[2]+""),Zo(I,x,{labelFetcher:r,labelDataIndex:E,defaultOpacity:R.opacity,defaultText:V}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=m,I.ensureState("select").style=y,In(I,C,_,B),I.incremental=i,i&&(I.states.emphasis.hoverLayer=!0),v.add(I),p.setItemGraphicEl(E,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(r,n,o,a){var i=o.targetVisuals.inRange,s=o.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Kwt;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),d=r.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),A=Math.max(c.y,0),h=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),p=h-f,g=v-A,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],y=l.mapArray(m,function(C,_,B){var T=r.dataToPoint([C,_]);return T[0]-=f,T[1]-=A,T.push(B),T}),b=o.getExtent(),x=o.type==="visualMap.continuous"?Ywt(b,o.option.range):jwt(b,o.getPieceList(),o.option.selected);u.update(y,p,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var w=new _o({style:{width:p,height:g,x:f,y:A,image:u.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(Gr);const qwt=Xwt;var Zwt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Il(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Hp.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(tn);const Jwt=Zwt;function eCt(e){e.registerChartView(qwt),e.registerSeriesModel(Jwt)}var tCt=["itemStyle","borderWidth"],G9=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],KI=new ws,rCt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=this.group,i=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:G9[+c],categoryDim:G9[1-+c]};return i.diff(s).add(function(A){if(i.hasValue(A)){var h=j9(i,A),v=K9(i,A,h,f),p=Y9(i,f,v);i.setItemGraphicEl(A,p),a.add(p),q9(p,f,v)}}).update(function(A,h){var v=s.getItemGraphicEl(h);if(!i.hasValue(A)){a.remove(v);return}var p=j9(i,A),g=K9(i,A,p,f),m=Jue(i,g);v&&m!==v.__pictorialShapeStr&&(a.remove(v),i.setItemGraphicEl(A,null),v=null),v?uCt(v,f,g):v=Y9(i,f,g,!0),i.setItemGraphicEl(A,v),v.__pictorialSymbolMeta=g,a.add(v),q9(v,f,g)}).remove(function(A){var h=s.getItemGraphicEl(A);h&&X9(s,A,h.__pictorialSymbolMeta.animationModel,h)}).execute(),this._data=i,this.group},t.prototype.remove=function(r,n){var o=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(i){X9(a,$t(i).dataIndex,r,i)}):o.removeAll()},t.type="pictorialBar",t}(Gr);function K9(e,t,r,n){var o=e.getItemLayout(t),a=r.get("symbolRepeat"),i=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),f={dataIndex:t,layout:o,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:i,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};nCt(r,a,o,n,f),oCt(e,t,o,a,i,f.boundingLength,f.pxSign,c,n,f),aCt(r,f.symbolScale,u,n,f);var A=f.symbolSize,h=Vp(r.get("symbolOffset"),A);return iCt(r,A,o,a,i,h,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,n,f),f}function nCt(e,t,r,n,o){var a=n.valueDim,i=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Oe(i)){var d=[jI(s,i[0])-l,jI(s,i[1])-l];d[1]<d[0]&&d.reverse(),c=d[u]}else i!=null?c=jI(s,i)-l:t?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];o.boundingLength=c,t&&(o.repeatCutLength=r[a.wh]),o.pxSign=c>0?1:-1}function jI(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function oCt(e,t,r,n,o,a,i,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(r[d.wh]),A=e.getItemVisual(t,"symbolSize"),h;Oe(A)?h=A.slice():A==null?h=["100%","100%"]:h=[A,A],h[d.index]=qe(h[d.index],f),h[c.index]=qe(h[c.index],n?f:Math.abs(a)),u.symbolSize=h;var v=u.symbolScale=[h[0]/s,h[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*i}function aCt(e,t,r,n,o){var a=e.get(tCt)||0;a&&(KI.attr({scaleX:t[0],scaleY:t[1],rotation:r}),KI.updateTransform(),a/=KI.getLineScale(),a*=t[n.valueDim.index]),o.valueLineWidth=a||0}function iCt(e,t,r,n,o,a,i,s,l,u,c,d){var f=c.categoryDim,A=c.valueDim,h=d.pxSign,v=Math.max(t[A.index]+s,0),p=v;if(n){var g=Math.abs(l),m=uo(e.get("symbolMargin"),"15%")+"",y=!1;m.lastIndexOf("!")===m.length-1&&(y=!0,m=m.slice(0,m.length-1));var b=qe(m,t[A.index]),x=Math.max(v+b*2,0),w=y?0:b*2,C=qO(n),_=C?n:Z9((g+w)/x),B=g-_*v;b=B/2/(y?_:Math.max(_-1,1)),x=v+b*2,w=y?0:b*2,!C&&n!=="fixed"&&(_=u?Z9((Math.abs(u)+w)/x):0),p=_*x-w,d.repeatTimes=_,d.symbolMargin=b}var T=h*(p/2),E=d.pathPosition=[];E[f.index]=r[f.wh]/2,E[A.index]=i==="start"?T:i==="end"?l-T:l/2,a&&(E[0]+=a[0],E[1]+=a[1]);var I=d.bundlePosition=[];I[f.index]=r[f.xy],I[A.index]=r[A.xy];var R=d.barRectShape=Pe({},r);R[A.wh]=h*Math.max(Math.abs(r[A.wh]),Math.abs(E[A.index]+T)),R[f.wh]=r[f.wh];var D=d.clipShape={};D[f.xy]=-r[f.xy],D[f.wh]=c.ecSize[f.wh],D[A.xy]=0,D[A.wh]=r[A.wh]}function jue(e){var t=e.symbolPatternSize,r=Nn(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function Yue(e,t,r,n){var o=e.__pictorialBundle,a=r.symbolSize,i=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,d=a[t.valueDim.index]+i+r.symbolMargin*2;for(B5(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?wv(v,null,h(c),r,n):wv(v,null,{scaleX:0,scaleY:0},r,n,function(){o.remove(v)}),c++});c<u;c++){var f=jue(r);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,o.add(f);var A=h(c);wv(f,{x:A.x,y:A.y,scaleX:0,scaleY:0},{scaleX:A.scaleX,scaleY:A.scaleY,rotation:A.rotation},r,n)}function h(v){var p=s.slice(),g=r.pxSign,m=v;return(r.symbolRepeatDirection==="start"?g>0:g<0)&&(m=u-1-v),p[l.index]=d*(m-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function Xue(e,t,r,n){var o=e.__pictorialBundle,a=e.__pictorialMainPath;a?wv(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=jue(r),o.add(a),wv(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function que(e,t,r){var n=Pe({},t.barRectShape),o=e.__pictorialBarRect;o?wv(o,null,{shape:n},t,r):(o=e.__pictorialBarRect=new hr({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,e.add(o))}function Zue(e,t,r,n){if(r.symbolClip){var o=e.__pictorialClipPath,a=Pe({},r.clipShape),i=t.valueDim,s=r.animationModel,l=r.dataIndex;if(o)gr(o,{shape:a},s,l);else{a[i.wh]=0,o=new hr({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var u={};u[i.wh]=r.clipShape[i.wh],Jy[n?"updateProps":"initProps"](o,{shape:u},s,l)}}}function j9(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=sCt,r.isAnimationEnabled=lCt,r}function sCt(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function lCt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Y9(e,t,r,n){var o=new Pt,a=new Pt;return o.add(a),o.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?Yue(o,t,r):Xue(o,t,r),que(o,r,n),Zue(o,t,r,n),o.__pictorialShapeStr=Jue(e,r),o.__pictorialSymbolMeta=r,o}function uCt(e,t,r){var n=r.animationModel,o=r.dataIndex,a=e.__pictorialBundle;gr(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,o),r.symbolRepeat?Yue(e,t,r,!0):Xue(e,t,r,!0),que(e,r,!0),Zue(e,t,r,!0)}function X9(e,t,r,n){var o=n.__pictorialBarRect;o&&o.removeTextContent();var a=[];B5(n,function(i){a.push(i)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),z(a,function(i){ad(i,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function Jue(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function B5(e,t,r){z(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function wv(e,t,r,n,o,a){t&&e.attr(t),n.symbolClip&&!o?r&&e.attr(r):r&&Jy[o?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function q9(e,t,r){var n=r.dataIndex,o=r.itemModel,a=o.getModel("emphasis"),i=a.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),c=a.get("focus"),d=a.get("blurScope"),f=a.get("scale");B5(e,function(v){if(v instanceof _o){var p=v.style;v.useStyle(Pe({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},r.style))}else v.useStyle(r.style);var g=v.ensureState("emphasis");g.style=i,f&&(g.scaleX=v.scaleX*1.1,g.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var A=t.valueDim.posDesc[+(r.boundingLength>0)],h=e.__pictorialBarRect;Zo(h,wo(o),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:jv(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:A}),In(e,c,d,a.get("disabled"))}function Z9(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const cCt=rCt;var dCt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Sd(WC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(WC);const fCt=dCt;function ACt(e){e.registerChartView(cCt),e.registerSeriesModel(fCt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ut(kse,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lse("pictorialBar"))}var hCt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,o){var a=r.getData(),i=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(p){return p.name}var A=new yu(this._layersSeries||[],l,f,f),h=[];A.add(at(v,this,"add")).update(at(v,this,"update")).remove(at(v,this,"remove")).execute();function v(p,g,m){var y=i._layers;if(p==="remove"){s.remove(y[g]);return}for(var b=[],x=[],w,C=l[g].indices,_=0;_<C.length;_++){var B=a.getItemLayout(C[_]),T=B.x,E=B.y0,I=B.y;b.push(T,E),x.push(T,E+I),w=a.getItemVisual(C[_],"style")}var R,D=a.getItemLayout(C[0]),F=r.getModel("label"),M=F.get("margin"),$=r.getModel("emphasis");if(p==="add"){var O=h[g]=new Pt;R=new wle({shape:{points:b,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(R),s.add(O),r.isAnimationEnabled()&&R.setClipPath(vCt(R.getBoundingRect(),r,function(){R.removeClipPath()}))}else{var O=y[m];R=O.childAt(0),s.add(O),h[g]=O,gr(R,{shape:{points:b,stackedOnPoints:x}},r),Cs(R)}Zo(R,wo(r),{labelDataIndex:C[_-1],defaultText:a.getName(C[_-1]),inheritColor:w.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var Q=R.getTextContent();Q&&(Q.x=D.x-M,Q.y=D.y0+D.y/2),R.useStyle(w),a.setItemGraphicEl(g,R),Oo(R,r),In(R,$.get("focus"),$.get("blurScope"),$.get("disabled"))}this._layersSeries=l,this._layers=h},t.type="themeRiver",t}(Gr);function vCt(e,t,r){var n=new hr({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ln(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}const pCt=hCt;var YI=2,gCt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ub(at(this.getData,this),at(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,o={},a=DP(r,function(f){return o.hasOwnProperty(f[0]+"")||(o[f[0]+""]=-1),f[2]}),i=[];a.buckets.each(function(f,A){i.push({name:A,dataList:f})});for(var s=i.length,l=0;l<s;++l){for(var u=i[l].name,c=0;c<i[l].dataList.length;++c){var d=i[l].dataList[c][0]+"";o[d]=l}for(var d in o)o.hasOwnProperty(d)&&o[d]!==l&&(o[d]=l,r[n]=[d,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var o=this.getReferringComponents("singleAxis",Kn).models[0],a=o.get("type"),i=kr(r.data,function(h){return h[2]!==void 0}),s=this.fixData(i||[]),l=[],u=this.nameMap=pt(),c=0,d=0;d<s.length;++d)l.push(s[d][YI]),u.get(s[d][YI])||(u.set(s[d][YI],c),c++);var f=Wp(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:NC(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,A=new Yo(f,this);return A.initData(s),A},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),o=[],a=0;a<n;++a)o[a]=a;var i=r.mapDimension("single"),s=DP(o,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(d,f){return r.get(i,d)-r.get(i,f)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,o){Oe(r)||(r=r?[r]:[]);for(var a=this.getData(),i=this.getLayerSeries(),s=[],l=i.length,u,c=0;c<l;++c){for(var d=Number.MAX_VALUE,f=-1,A=i[c].indices.length,h=0;h<A;++h){var v=a.get(r[0],i[c].indices[h]),p=Math.abs(v-n);p<=d&&(u=v,d=p,f=i[c].indices[h])}s.push(f)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,o){var a=this.getData(),i=a.getName(r),s=a.get(a.mapDimension("value"),r);return vo("nameValue",{name:i,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(tn);const mCt=gCt;function yCt(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),o=r.coordinateSystem,a={},i=o.getRect();a.rect=i;var s=r.get("boundaryGap"),l=o.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=qe(s[0],i.height),s[1]=qe(s[1],i.height);var u=i.height-s[0]-s[1];J9(n,r,u)}else{s[0]=qe(s[0],i.width),s[1]=qe(s[1],i.width);var c=i.width-s[0]-s[1];J9(n,r,c)}n.setLayout("layoutInfo",a)})}function J9(e,t,r){if(e.count())for(var n=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),i=e.mapDimension("value"),s=Ue(o,function(p){return Ue(p.indices,function(g){var m=n.dataToPoint(e.get(a,g));return m[1]=e.get(i,g),m})}),l=bCt(s),u=l.y0,c=r/l.max,d=o.length,f=o[0].indices.length,A,h=0;h<f;++h){A=u[h]*c,e.setItemLayout(o[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:A,y:s[0][h][1]*c});for(var v=1;v<d;++v)A+=s[v-1][h][1]*c,e.setItemLayout(o[v].indices[h],{layerIndex:v,x:s[v][h][0],y0:A,y:s[v][h][1]*c})}}function bCt(e){for(var t=e.length,r=e[0].length,n=[],o=[],a=0,i=0;i<r;++i){for(var s=0,l=0;l<t;++l)s+=e[l][i][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)o[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var d=n[c]+o[c];d>a&&(a=d)}return{y0:o,max:a}}function xCt(e){e.registerChartView(pCt),e.registerSeriesModel(mCt),e.registerLayout(yCt),e.registerProcessor(lb("themeRiver"))}var wCt=2,CCt=4,SCt=function(e){we(t,e);function t(r,n,o,a){var i=e.call(this)||this;i.z2=wCt,i.textConfig={inside:!0},$t(i).seriesIndex=n.seriesIndex;var s=new pr({z2:CCt,silent:r.getModel().get(["label","silent"])});return i.setTextContent(s),i.updateData(!0,r,n,o,a),i}return t.prototype.updateData=function(r,n,o,a,i){this.node=n,n.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this;$t(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),d=Pe({},c);d.label=null;var f=n.getVisual("style");f.lineJoin="bevel";var A=n.getVisual("decal");A&&(f.decal=Kv(A,i));var h=rv(l.getModel("itemStyle"),d,!0);Pe(d,h),z(sa,function(m){var y=s.ensureState(m),b=l.getModel([m,"itemStyle"]);y.style=b.getItemStyle();var x=rv(b,d);x&&(y.shape=x)}),r?(s.setShape(d),s.shape.r=c.r0,gr(s,{shape:{r:c.r}},o,n.dataIndex)):(gr(s,{shape:d},o),Cs(s)),s.useStyle(f),this._updateLabel(o);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel;var p=u.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;In(this,g,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,o=this.node.getModel(),a=o.getModel("label"),i=this.node.getLayout(),s=i.endAngle-i.startAngle,l=(i.startAngle+i.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),A=this.node.dataIndex,h=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(h!=null&&Math.abs(s)<h);f.ignore=!v,z(Qm,function(g){var m=g==="normal"?o.getModel("label"):o.getModel([g,"label"]),y=g==="normal",b=y?f:f.ensureState(g),x=r.getFormattedLabel(A,g);y&&(x=x||n.node.name),b.style=un(m,{},null,g!=="normal",!0),x&&(b.style.text=x);var w=m.get("show");w!=null&&!y&&(b.ignore=!w);var C=p(m,"position"),_=y?d:d.states[g],B=_.style.fill;_.textConfig={outsideFill:m.get("color")==="inherit"?B:null,inside:C!=="outside"};var T,E=p(m,"distance")||0,I=p(m,"align");C==="outside"?(T=i.r+E,I=l>Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&i.r0===0?T=0:T=(i.r+i.r0)/2,I="center"):I==="left"?(T=i.r0+E,l>Math.PI/2&&(I="right")):I==="right"&&(T=i.r-E,l>Math.PI/2&&(I="left")),b.style.align=I,b.style.verticalAlign=p(m,"verticalAlign")||"middle",b.x=T*u+i.cx,b.y=T*c+i.cy;var R=p(m,"rotate"),D=0;R==="radial"?(D=-l,D<-Math.PI/2&&(D+=Math.PI)):R==="tangential"?(D=Math.PI/2-l,D>Math.PI/2?D-=Math.PI:D<-Math.PI/2&&(D+=Math.PI)):vr(R)&&(D=R*Math.PI/180),b.rotation=D});function p(g,m){var y=g.get(m);return y==null?a.get(m):y}f.dirtyStyle()},t}(la);const eW=SCt;var RF="sunburstRootToNode",tW="sunburstHighlight",_Ct="sunburstUnhighlight";function BCt(e){e.registerAction({type:RF,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(o,a){var i=ny(t,[RF],o);if(i){var s=o.getViewRoot();s&&(t.direction=A5(s,i.node)?"rollUp":"drillDown"),o.resetViewRoot(i.node)}}}),e.registerAction({type:tW,update:"none"},function(t,r,n){t=Pe({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},o);function o(a){var i=ny(t,[tW],a);i&&(t.dataIndex=i.node.dataIndex)}n.dispatchAction(Pe(t,{type:"highlight"}))}),e.registerAction({type:_Ct,update:"updateView"},function(t,r,n){t=Pe({},t),n.dispatchAction(Pe(t,{type:"downplay"}))})}var TCt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o,a){var i=this;this.seriesModel=r,this.api=o,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,d=r.get("renderLabelForZeroData"),f=[];u.eachNode(function(m){f.push(m)});var A=this._oldChildren||[];h(f,A),g(l,u),this._initEvents(),this._oldChildren=f;function h(m,y){if(m.length===0&&y.length===0)return;new yu(y,m,b,b).add(x).update(x).remove(Ut(x,null)).execute();function b(w){return w.getId()}function x(w,C){var _=w==null?null:m[w],B=C==null?null:y[C];v(_,B)}}function v(m,y){if(!d&&m&&!m.getValue()&&(m=null),m!==l&&y!==l){if(y&&y.piece)m?(y.piece.updateData(!1,m,r,n,o),s.setItemGraphicEl(m.dataIndex,y.piece)):p(y);else if(m){var b=new eW(m,r,n,o);c.add(b),s.setItemGraphicEl(m.dataIndex,b)}}}function p(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function g(m,y){y.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,m,r,n,o):(i.virtualPiece=new eW(m,r,n,o),c.add(i.virtualPiece)),y.piece.off("click"),i.virtualPiece.on("click",function(b){i._rootToNode(y.parentNode)})):i.virtualPiece&&(c.remove(i.virtualPiece),i.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var o=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(i){if(!o&&i.piece&&i.piece===n.target){var s=i.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(i);else if(s==="link"){var l=i.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";RC(u,c)}}o=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:RF,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var o=n.getData(),a=o.getItemLayout(0);if(a){var i=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(i*i+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Gr);const ECt=TCt;var ICt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var o={name:r.name,children:r.data};ece(o);var a=this._levelModels=Ue(r.levels||[],function(l){return new Vr(l,this,n)},this),i=f5.createTree(o,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=i.getNodeByDataIndex(c),f=a[d.depth];return f&&(u.parentModel=f),u})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=TB(o,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){nue(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(tn);function ece(e){var t=0;z(e.children,function(n){ece(n);var o=n.value;Oe(o)&&(o=o[0]),t+=o});var r=e.value;Oe(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Oe(e.value)?e.value[0]=r:e.value=r}const RCt=ICt;var rW=Math.PI/180;function DCt(e,t,r){t.eachSeriesByType(e,function(n){var o=n.get("center"),a=n.get("radius");Oe(a)||(a=[0,a]),Oe(o)||(o=[o,o]);var i=r.getWidth(),s=r.getHeight(),l=Math.min(i,s),u=qe(o[0],i),c=qe(o[1],s),d=qe(a[0],l/2),f=qe(a[1],l/2),A=-n.get("startAngle")*rW,h=n.get("minAngle")*rW,v=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,m=n.get("sort");m!=null&&tce(p,m);var y=0;z(p.children,function(M){!isNaN(M.getValue())&&y++});var b=p.getValue(),x=Math.PI/(b||y)*2,w=p.depth>0,C=p.height-(w?-1:1),_=(f-d)/(C||1),B=n.get("clockwise"),T=n.get("stillShowZeroSum"),E=B?1:-1,I=function(M,$){if(M){var O=$;if(M!==v){var Q=M.getValue(),V=b===0&&T?x:Q*x;V<h&&(V=h),O=$+E*V;var W=M.depth-g-(w?-1:1),Z=d+_*W,te=d+_*(W+1),ae=n.getLevelModel(M);if(ae){var re=ae.get("r0",!0),le=ae.get("r",!0),se=ae.get("radius",!0);se!=null&&(re=se[0],le=se[1]),re!=null&&(Z=qe(re,l/2)),le!=null&&(te=qe(le,l/2))}M.setLayout({angle:V,startAngle:$,endAngle:O,clockwise:B,cx:u,cy:c,r0:Z,r:te})}if(M.children&&M.children.length){var ce=0;z(M.children,function(be){ce+=I(be,$+ce)})}return O-$}};if(w){var R=d,D=d+_,F=Math.PI*2;v.setLayout({angle:F,startAngle:A,endAngle:A+F,clockwise:B,cx:u,cy:c,r0:R,r:D})}I(p,A)})}function tce(e,t){var r=e.children||[];e.children=MCt(r,t),r.length&&z(e.children,function(n){tce(n,t)})}function MCt(e,t){if(bt(t)){var r=Ue(e,function(o,a){var i=o.getValue();return{params:{depth:o.depth,height:o.height,dataIndex:o.dataIndex,getValue:function(){return i}},index:a}});return r.sort(function(o,a){return t(o.params,a.params)}),Ue(r,function(o){return e[o.index]})}else{var n=t==="asc";return e.sort(function(o,a){var i=(o.getValue()-a.getValue())*(n?1:-1);return i===0?(o.dataIndex-a.dataIndex)*(n?-1:1):i})}}function PCt(e){var t={};function r(n,o,a){for(var i=n;i&&i.depth>1;)i=i.parentNode;var s=o.getColorFromPalette(i.name||i.dataIndex+"",t);return n.depth>1&&Je(s)&&(s=yC(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var o=n.getData(),a=o.tree;a.eachNode(function(i){var s=i.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(i,n,a.root.height));var u=o.ensureUniqueItemVisual(i.dataIndex,"style");Pe(u,l)})})}function FCt(e){e.registerChartView(ECt),e.registerSeriesModel(RCt),e.registerLayout(Ut(DCt,"sunburst")),e.registerProcessor(Ut(lb,"sunburst")),e.registerVisual(PCt),BCt(e)}var nW={color:"fill",borderColor:"stroke"},kCt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},iu=br(),LCt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Il(null,this)},t.prototype.getDataParams=function(r,n,o){var a=e.prototype.getDataParams.call(this,r,n);return o&&(a.info=iu(o).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(tn);const OCt=LCt;function $Ct(e,t){return t=t||[0,0],Ue(["x","y"],function(r,n){var o=this.getAxis(r),a=t[n],i=e[n]/2;return o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-i)-o.dataToCoord(a+i))},this)}function UCt(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:at($Ct,e)}}}function NCt(e,t){return t=t||[0,0],Ue([0,1],function(r){var n=t[r],o=e[r]/2,a=[],i=[];return a[r]=n-o,i[r]=n+o,a[1-r]=i[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(i)[r])},this)}function HCt(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:at(NCt,e)}}}function zCt(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-o)-r.dataToCoord(n+o))}function QCt(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:at(zCt,e)}}}function VCt(e,t){return t=t||[0,0],Ue(["Radius","Angle"],function(r,n){var o="get"+r+"Axis",a=this[o](),i=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-s)-a.dataToCoord(i+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function WCt(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(o){var a=t.dataToRadius(o[0]),i=r.dataToAngle(o[1]),s=e.coordToPoint([a,i]);return s.push(a,i*Math.PI/180),s},size:at(VCt,e)}}}function GCt(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,o){return e.dataToPoint(n,o)}}}}function rce(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||st(e,"text")))}function nce(e,t,r){var n=e,o,a,i;if(t==="text")i=n;else{i={},st(n,"text")&&(i.text=n.text),st(n,"rich")&&(i.rich=n.rich),st(n,"textFill")&&(i.fill=n.textFill),st(n,"textStroke")&&(i.stroke=n.textStroke),st(n,"fontFamily")&&(i.fontFamily=n.fontFamily),st(n,"fontSize")&&(i.fontSize=n.fontSize),st(n,"fontStyle")&&(i.fontStyle=n.fontStyle),st(n,"fontWeight")&&(i.fontWeight=n.fontWeight),a={type:"text",style:i,silent:!0},o={};var s=st(n,"textPosition");r?o.position=s?n.textPosition:"inside":s&&(o.position=n.textPosition),st(n,"textPosition")&&(o.position=n.textPosition),st(n,"textOffset")&&(o.offset=n.textOffset),st(n,"textRotation")&&(o.rotation=n.textRotation),st(n,"textDistance")&&(o.distance=n.textDistance)}return oW(i,e),z(i.rich,function(l){oW(l,l)}),{textConfig:o,textContent:a}}function oW(e,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(e.align=t.textAlign),st(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),st(t,"textWidth")&&(e.width=t.textWidth),st(t,"textHeight")&&(e.height=t.textHeight),st(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(e.padding=t.textPadding),st(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function aW(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var o=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";iW(n,t);var i=n.textFill==null;return o?i&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(i&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,z(t.rich,function(s){iW(s,s)}),n}function iW(e,t){t&&(st(t,"fill")&&(e.textFill=t.fill),st(t,"stroke")&&(e.textStroke=t.fill),st(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),st(t,"font")&&(e.font=t.font),st(t,"fontStyle")&&(e.fontStyle=t.fontStyle),st(t,"fontWeight")&&(e.fontWeight=t.fontWeight),st(t,"fontSize")&&(e.fontSize=t.fontSize),st(t,"fontFamily")&&(e.fontFamily=t.fontFamily),st(t,"align")&&(e.textAlign=t.align),st(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),st(t,"width")&&(e.textWidth=t.width),st(t,"height")&&(e.textHeight=t.height),st(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(e.textPadding=t.padding),st(t,"borderColor")&&(e.textBorderColor=t.borderColor),st(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var oce={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sW=sr(oce);$i(Al,function(e,t){return e[t]=1,e},{});Al.join(", ");var JC=["","style","shape","extra"],qv=br();function T5(e,t,r,n,o){var a=e+"Animation",i=Pp(e,n,o)||{},s=qv(t).userDuring;return i.duration>0&&(i.during=s?at(qCt,{el:t,userDuring:s}):null,i.setToFinal=!0,i.scope=e),Pe(i,r[a]),i}function dw(e,t,r,n){n=n||{};var o=n.dataIndex,a=n.isInit,i=n.clearStyle,s=r.isAnimationEnabled(),l=qv(e),u=t.style;l.userDuring=t.during;var c={},d={};if(JCt(e,t,d),uW("shape",t,d),uW("extra",t,d),!a&&s&&(ZCt(e,t,c),lW("shape",e,t,c),lW("extra",e,t,c),eSt(e,t,u,c)),d.style=u,KCt(e,d,i),YCt(e,t),s)if(a){var f={};z(JC,function(h){var v=h?t[h]:t;v&&v.enterFrom&&(h&&(f[h]=f[h]||{}),Pe(h?f[h]:f,v.enterFrom))});var A=T5("enter",e,t,r,o);A.duration>0&&e.animateFrom(f,A)}else jCt(e,t,o||0,r,c);ace(e,t),u?e.dirty():e.markRedraw()}function ace(e,t){for(var r=qv(e).leaveToProps,n=0;n<JC.length;n++){var o=JC[n],a=o?t[o]:t;a&&a.leaveTo&&(r||(r=qv(e).leaveToProps={}),o&&(r[o]=r[o]||{}),Pe(o?r[o]:r,a.leaveTo))}}function RB(e,t,r,n){if(e){var o=e.parent,a=qv(e).leaveToProps;if(a){var i=T5("update",e,t,r,0);i.done=function(){o.remove(e),n&&n()},e.animateTo(a,i)}else o.remove(e),n&&n()}}function nA(e){return e==="all"}function KCt(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var o=e.animators,a=0;a<o.length;a++){var i=o[a];i.targetName==="style"&&i.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function jCt(e,t,r,n,o){if(o){var a=T5("update",e,t,n,r);a.duration>0&&e.animateFrom(o,a)}}function YCt(e,t){st(t,"silent")&&(e.silent=t.silent),st(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ui&&st(t,"invisible")&&(e.invisible=t.invisible),e instanceof tr&&st(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Ns={},XCt={setTransform:function(e,t){return Ns.el[e]=t,this},getTransform:function(e){return Ns.el[e]},setShape:function(e,t){var r=Ns.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Ns.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Ns.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Ns.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Ns.el.extra||(Ns.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Ns.el.extra;if(t)return t[e]}};function qCt(){var e=this,t=e.el;if(t){var r=qv(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Ns.el=t,n(XCt)}}function lW(e,t,r,n){var o=r[e];if(o){var a=t[e],i;if(a){var s=r.transition,l=o.transition;if(l)if(!i&&(i=n[e]={}),nA(l))Pe(i,a);else for(var u=Wr(l),c=0;c<u.length;c++){var d=u[c],f=a[d];i[d]=f}else if(nA(s)||Yt(s,e)>=0){!i&&(i=n[e]={});for(var A=sr(a),c=0;c<A.length;c++){var d=A[c],f=a[d];tSt(o[d],f)&&(i[d]=f)}}}}}function uW(e,t,r){var n=t[e];if(n)for(var o=r[e]={},a=sr(n),i=0;i<a.length;i++){var s=a[i];o[s]=H0(n[s])}}function ZCt(e,t,r){for(var n=t.transition,o=nA(n)?Al:Wr(n||[]),a=0;a<o.length;a++){var i=o[a];if(!(i==="style"||i==="shape"||i==="extra")){var s=e[i];r[i]=s}}}function JCt(e,t,r){for(var n=0;n<sW.length;n++){var o=sW[n],a=oce[o],i=t[o];i&&(r[a[0]]=i[0],r[a[1]]=i[1])}for(var n=0;n<Al.length;n++){var s=Al[n];t[s]!=null&&(r[s]=t[s])}}function eSt(e,t,r,n){if(r){var o=e.style,a;if(o){var i=r.transition,s=t.transition;if(i&&!nA(i)){var l=Wr(i);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],d=o[c];a[c]=d}}else if(e.getAnimationStyleProps&&(nA(s)||nA(i)||Yt(s,"style")>=0)){var f=e.getAnimationStyleProps(),A=f?f.style:null;if(A){!a&&(a=n.style={});for(var h=sr(r),u=0;u<h.length;u++){var c=h[u];if(A[c]){var d=o[c];a[c]=d}}}}}}}function tSt(e,t){return Lo(e)?e!==t:e!=null&&isFinite(e)}var ice=br(),rSt=["percent","easing","shape","style","extra"];function sce(e){e.stopAnimation("keyframe"),e.attr(ice(e))}function eS(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Oe(t)){z(t,function(s){eS(e,s,r)});return}var n=t.keyframes,o=t.duration;if(r&&o==null){var a=Pp("enter",r,0);o=a&&a.duration}if(!(!n||!o)){var i=ice(e);z(JC,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),z(n,function(u){var c=e.animators,d=s?u[s]:u;if(d){var f=sr(d);if(s||(f=kr(f,function(v){return Yt(rSt,v)<0})),!!f.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var A=0;A<c.length;A++)c[A]!==l&&c[A].targetName===l.targetName&&c[A].stopTracks(f);s&&(i[s]=i[s]||{});var h=s?i[s]:i;z(f,function(v){h[v]=((s?e[s]:e)||{})[v]}),l.whenWithKeys(o*u.percent,d,f,u.easing)}}}),l&&l.delay(t.delay||0).duration(o).start(t.easing)}})}}}var su="emphasis",Cc="normal",E5="blur",I5="select",ud=[Cc,su,E5,I5],XI={normal:["itemStyle"],emphasis:[su,"itemStyle"],blur:[E5,"itemStyle"],select:[I5,"itemStyle"]},qI={normal:["label"],emphasis:[su,"label"],blur:[E5,"label"],select:[I5,"label"]},nSt=["x","y"],oSt="e\0\0",Ai={normal:{},emphasis:{},blur:{},select:{}},aSt={cartesian2d:UCt,geo:HCt,single:QCt,polar:WCt,calendar:GCt};function DF(e){return e instanceof tr}function MF(e){return e instanceof Ui}function iSt(e,t){t.copyTransform(e),MF(t)&&MF(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,DF(t)&&DF(e)&&t.setShape(e.shape))}var sSt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o,a){this._progressiveEls=null;var i=this._data,s=r.getData(),l=this.group,u=cW(r,s,n,o);i||l.removeAll(),s.diff(i).add(function(d){ZI(o,null,d,u(d,a),r,l,s)}).remove(function(d){var f=i.getItemGraphicEl(d);RB(f,iu(f).option,r)}).update(function(d,f){var A=i.getItemGraphicEl(f);ZI(o,A,d,u(d,a),r,l,s)}).execute();var c=r.get("clip",!0)?SB(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,o){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,o,a,i){var s=n.getData(),l=cW(n,s,o,a),u=this._progressiveEls=[];function c(A){A.isGroup||(A.incremental=!0,A.ensureState("emphasis").hoverLayer=!0)}for(var d=r.start;d<r.end;d++){var f=ZI(null,null,d,l(d,i),n,this.group,s);f&&(f.traverse(c),u.push(f))}},t.prototype.eachRendered=function(r){Cd(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,o,a){var i=n.element;if(i==null||o.name===i)return!0;for(;(o=o.__hostTarget||o.parent)&&o!==this.group;)if(o.name===i)return!0;return!1},t.type="custom",t}(Gr);const lSt=sSt;function R5(e){var t=e.type,r;if(t==="path"){var n=e.shape,o=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=cce(n);r=qy(a,null,o,n.layout||"center"),iu(r).customPathData=a}else if(t==="image")r=new _o({}),iu(r).customImagePath=e.style.image;else if(t==="text")r=new pr({});else if(t==="group")r=new Pt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var i=iB(t);if(!i){var s="";Tr(s)}r=new i}return iu(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function D5(e,t,r,n,o,a,i){sce(t);var s=o&&o.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=nSt);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;st(u,"textFill")&&(u.fill=u.textFill),st(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=DF(t)?l.decal:null;e&&d&&(d.dirty=!0,c=Kv(d,e)),l.__decalPattern=c}if(MF(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}dw(t,n,a,{dataIndex:r,isInit:i,clearStyle:!0}),eS(t,n.keyframeAnimation,a)}function lce(e,t,r,n,o){var a=t.isGroup?null:t,i=o&&o[e].cfg;if(a){var s=a.ensureState(e);if(n===!1){var l=a.getState(e);l&&(l.style=null)}else s.style=n||null;i&&(s.textConfig=i),pA(a)}}function uSt(e,t,r){if(!e.isGroup){var n=e,o=r.currentZ,a=r.currentZLevel;n.z=o,n.zlevel=a;var i=t.z2;i!=null&&(n.z2=i||0);for(var s=0;s<ud.length;s++)cSt(n,t,ud[s])}}function cSt(e,t,r){var n=r===Cc,o=n?t:tS(t,r),a=o?o.z2:null,i;a!=null&&(i=n?e:e.ensureState(r),i.z2=a||0)}function cW(e,t,r,n){var o=e.get("renderItem"),a=e.coordinateSystem,i={};a&&(i=a.prepareCustoms?a.prepareCustoms(a):aSt[a.type](a));for(var s=Ct({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:C,visual:T,barLayout:E,currentSeriesIndices:I,font:R},i.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:i.coordSys,dataInsideLength:t.count(),encode:dSt(e.getData())},u,c,d={},f={},A={},h={},v=0;v<ud.length;v++){var p=ud[v];A[p]=e.getModel(XI[p]),h[p]=e.getModel(qI[p])}function g(D){return D===u?c||(c=t.getItemModel(D)):t.getItemModel(D)}function m(D,F){return t.hasItemOption?D===u?d[F]||(d[F]=g(D).getModel(XI[F])):g(D).getModel(XI[F]):A[F]}function y(D,F){return t.hasItemOption?D===u?f[F]||(f[F]=g(D).getModel(qI[F])):g(D).getModel(qI[F]):h[F]}return function(D,F){return u=D,c=null,d={},f={},o&&o(Ct({dataIndexInside:D,dataIndex:t.getRawIndex(D),actionType:F?F.type:null},l),s)};function b(D,F){return F==null&&(F=u),t.getStore().get(t.getDimensionIndex(D||0),F)}function x(D,F){F==null&&(F=u),D=D||0;var M=t.getDimensionInfo(D);if(!M){var $=t.getDimensionIndex(D);return $>=0?t.getStore().get($,F):void 0}var O=t.get(M.name,F),Q=M&&M.ordinalMeta;return Q?Q.categories[O]:O}function w(D,F){F==null&&(F=u);var M=t.getItemVisual(F,"style"),$=M&&M.fill,O=M&&M.opacity,Q=m(F,Cc).getItemStyle();$!=null&&(Q.fill=$),O!=null&&(Q.opacity=O);var V={inheritColor:Je($)?$:"#000"},W=y(F,Cc),Z=un(W,null,V,!1,!0);Z.text=W.getShallow("show")?Zt(e.getFormattedLabel(F,Cc),jv(t,F)):null;var te=EC(W,V,!1);return B(D,Q),Q=aW(Q,Z,te),D&&_(Q,D),Q.legacy=!0,Q}function C(D,F){F==null&&(F=u);var M=m(F,su).getItemStyle(),$=y(F,su),O=un($,null,null,!0,!0);O.text=$.getShallow("show")?ol(e.getFormattedLabel(F,su),e.getFormattedLabel(F,Cc),jv(t,F)):null;var Q=EC($,null,!0);return B(D,M),M=aW(M,O,Q),D&&_(M,D),M.legacy=!0,M}function _(D,F){for(var M in F)st(F,M)&&(D[M]=F[M])}function B(D,F){D&&(D.textFill&&(F.textFill=D.textFill),D.textPosition&&(F.textPosition=D.textPosition))}function T(D,F){if(F==null&&(F=u),st(nW,D)){var M=t.getItemVisual(F,"style");return M?M[nW[D]]:null}if(st(kCt,D))return t.getItemVisual(F,D)}function E(D){if(a.type==="cartesian2d"){var F=a.getBaseAxis();return Jht(Ct({axis:F},D))}}function I(){return r.getCurrentSeriesIndices()}function R(D){return Qae(D,r)}}function dSt(e){var t={};return z(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var o=n.coordDim,a=t[o]=t[o]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function ZI(e,t,r,n,o,a,i){if(!n){a.remove(t);return}var s=M5(e,t,r,n,o,a);return s&&i.setItemGraphicEl(r,s),s&&In(s,n.focus,n.blurScope,n.emphasisDisabled),s}function M5(e,t,r,n,o,a){var i=-1,s=t;t&&uce(t,n,o)&&(i=Yt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=R5(n),s&&iSt(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ai.normal.cfg=Ai.normal.conOpt=Ai.emphasis.cfg=Ai.emphasis.conOpt=Ai.blur.cfg=Ai.blur.conOpt=Ai.select.cfg=Ai.select.conOpt=null,Ai.isLegacy=!1,ASt(u,r,n,o,l,Ai),fSt(u,r,n,o,l),D5(e,u,r,n,Ai,o,l),st(n,"info")&&(iu(u).info=n.info);for(var c=0;c<ud.length;c++){var d=ud[c];if(d!==Cc){var f=tS(n,d),A=P5(n,f,d);lce(d,u,f,A,Ai)}}return uSt(u,n,o),n.type==="group"&&hSt(e,u,r,n,o),i>=0?a.replaceAt(u,i):a.add(u),u}function uce(e,t,r){var n=iu(e),o=t.type,a=t.shape,i=t.style;return r.isUniversalTransitionEnabled()||o!=null&&o!==n.customGraphicType||o==="path"&&gSt(a)&&cce(a)!==n.customPathData||o==="image"&&st(i,"image")&&i.image!==n.customImagePath}function fSt(e,t,r,n,o){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var i=e.getClipPath();i&&uce(i,a,n)&&(i=null),i||(i=R5(a),e.setClipPath(i)),D5(null,i,t,a,null,n,o)}}function ASt(e,t,r,n,o,a){if(!e.isGroup){dW(r,null,a),dW(r,su,a);var i=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(i!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(i===!1)c&&e.removeTextContent();else{i=a.normal.conOpt=i||{type:"text"},c?c.clearStates():(c=R5(i),e.setTextContent(c)),D5(null,c,t,i,null,n,o);for(var d=i&&i.style,f=0;f<ud.length;f++){var A=ud[f];if(A!==Cc){var h=a[A].conOpt;lce(A,c,h,P5(i,h,A),null)}}d?c.dirty():c.markRedraw()}}}}function dW(e,t,r){var n=t?tS(e,t):e,o=t?P5(e,n,su):e.style,a=e.type,i=n?n.textConfig:null,s=e.textContent,l=s?t?tS(s,t):s:null;if(o&&(r.isLegacy||rce(o,a,!!i,!!l))){r.isLegacy=!0;var u=nce(o,a,!t);!i&&u.textConfig&&(i=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?r[t]:r.normal;d.cfg=i,d.conOpt=l}function tS(e,t){return t?e?e[t]:null:e}function P5(e,t,r){var n=t&&t.style;return n==null&&r===su&&e&&(n=e.styleEmphasis),n}function hSt(e,t,r,n,o){var a=n.children,i=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!i&&!l&&!u)){if(l){vSt({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:r,seriesModel:o,group:t});return}u&&t.removeAll();for(var c=0;c<i;c++)a[c]&&M5(e,t.childAt(c),r,a[c],o,t);for(var d=t.childCount()-1;d>=c;d--){var f=t.childAt(d);RB(f,iu(t).option,o)}}}function vSt(e){new yu(e.oldChildren,e.newChildren,fW,fW,e).add(AW).update(AW).remove(pSt).execute()}function fW(e,t){var r=e&&e.name;return r!=null?r:oSt+t}function AW(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,o=t!=null?r.oldChildren[t]:null;M5(r.api,o,r.dataIndex,n,r.seriesModel,r.group)}function pSt(e){var t=this.context,r=t.oldChildren[e];RB(r,iu(r).option,t.seriesModel)}function cce(e){return e&&(e.pathData||e.d)}function gSt(e){return e&&(st(e,"pathData")||st(e,"d"))}function mSt(e){e.registerChartView(lSt),e.registerSeriesModel(OCt)}var _f=br(),hW=It,JI=at,ySt=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,o){var a=r.get("value"),i=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!o&&this._lastValue===a&&this._lastStatus===i)){this._lastValue=a,this._lastStatus=i;var s=this._group,l=this._handle;if(!i||i==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Pt,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var f=Ut(vW,r,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}gW(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),o=t.axis,a=o.type==="category",i=r.get("snap");if(!i&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&o.getBandWidth()>s)return!0;if(i){var l=a5(t).seriesDataCount,u=o.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,o,a){},e.prototype.createPointerEl=function(t,r,n,o){var a=r.pointer;if(a){var i=_f(t).pointerEl=new Jy[a.type](hW(r.pointer));t.add(i)}},e.prototype.createLabelEl=function(t,r,n,o){if(r.label){var a=_f(t).labelEl=new pr(hW(r.label));t.add(a),pW(a,o)}},e.prototype.updatePointerEl=function(t,r,n){var o=_f(t).pointerEl;o&&r.pointer&&(o.setStyle(r.pointer.style),n(o,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,o){var a=_f(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),pW(a,o))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),o=this._handle,a=r.getModel("handle"),i=r.get("status");if(!a.get("show")||!i||i==="hide"){o&&n.remove(o),this._handle=null;return}var s;this._handle||(s=!0,o=this._handle=Fp(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){pu(u.event)},onmousedown:JI(this._onHandleDragMove,this,0,0),drift:JI(this._onHandleDragMove,this),ondragend:JI(this._onHandleDragEnd,this)}),n.add(o)),gW(o,r,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Oe(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,Qp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){vW(this._axisPointerModel,!r&&this._moveAnimation,this._handle,eR(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var o=this.updateHandleTransform(eR(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=o,n.stopAnimation(),n.attr(eR(o)),_f(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,o=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),o&&r.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),Xm(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function vW(e,t,r,n){dce(_f(r).lastProp,n)||(_f(r).lastProp=n,t?gr(r,n,e):(r.stopAnimation(),r.attr(n)))}function dce(e,t){if(Tt(e)&&Tt(t)){var r=!0;return z(t,function(n,o){r=r&&dce(e[o],n)}),!!r}else return e===t}function pW(e,t){e[t.get(["label","show"])?"show":"hide"]()}function eR(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function gW(e,t,r){var n=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),o!=null&&(a.zlevel=o),a.silent=r)})}const F5=ySt;function k5(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function fce(e,t,r,n,o){var a=r.get("value"),i=Ace(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=zA(s.get("padding")||0),u=s.getFont(),c=Gy(i,u),d=o.position,f=c.width+l[1]+l[3],A=c.height+l[0]+l[2],h=o.align;h==="right"&&(d[0]-=f),h==="center"&&(d[0]-=f/2);var v=o.verticalAlign;v==="bottom"&&(d[1]-=A),v==="middle"&&(d[1]-=A/2),bSt(d,f,A,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:un(s,{text:i,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function bSt(e,t,r,n){var o=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Ace(e,t,r,n,o){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:o.precision}),i=o.formatter;if(i){var s={value:X4(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),Je(i)?a=i.replace("{value}",a):bt(i)&&(a=i(s))}return a}function L5(e,t,r){var n=ti();return wd(n,n,r.rotation),bs(n,n,r.position),vs([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function hce(e,t,r,n,o,a){var i=xu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=o.get(["label","margin"]),fce(t,n,o,a,{position:L5(n.axis,e,r),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function O5(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function vce(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function mW(e,t,r,n,o,a){return{cx:e,cy:t,r0:r,r:n,startAngle:o,endAngle:a,clockwise:!0}}var xSt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,o,a,i){var s=o.axis,l=s.grid,u=a.get("type"),c=yW(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var f=k5(a),A=wSt[u](s,d,c);A.style=f,r.graphicKey=A.type,r.pointer=A}var h=hF(l.model,o);hce(n,r,h,o,a,i)},t.prototype.getHandleTransform=function(r,n,o){var a=hF(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var i=L5(n.axis,r,a);return{x:i[0],y:i[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,o,a){var i=o.axis,s=i.grid,l=i.getGlobalExtent(!0),u=yW(s,i).getOtherAxis(i).getGlobalExtent(),c=i.dim==="x"?0:1,d=[r.x,r.y];d[c]+=n[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,A=[f,f];A[c]=d[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:r.rotation,cursorPoint:A,tooltipOption:h[c]}},t}(F5);function yW(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var wSt={line:function(e,t,r){var n=O5([t,r[0]],[t,r[1]],bW(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),o=r[1]-r[0];return{type:"Rect",shape:vce([t-n/2,r[0]],[n,o],bW(e))}}};function bW(e){return e.dim==="x"?0:1}const CSt=xSt;var SSt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,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",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(fr);const _St=SSt;var Zl=br(),BSt=z;function pce(e,t,r){if(!xr.node){var n=t.getZr();Zl(n).records||(Zl(n).records={}),TSt(n,t);var o=Zl(n).records[e]||(Zl(n).records[e]={});o.handler=r}}function TSt(e,t){if(Zl(e).initialized)return;Zl(e).initialized=!0,r("click",Ut(xW,"click")),r("mousemove",Ut(xW,"mousemove")),r("globalout",ISt);function r(n,o){e.on(n,function(a){var i=RSt(t);BSt(Zl(e).records,function(s){s&&o(s,a,i.dispatchAction)}),ESt(i.pendings,t)})}}function ESt(e,t){var r=e.showTip.length,n=e.hideTip.length,o;r?o=e.showTip[r-1]:n&&(o=e.hideTip[n-1]),o&&(o.dispatchAction=null,t.dispatchAction(o))}function ISt(e,t,r){e.handler("leave",null,r)}function xW(e,t,r,n){t.handler(e,r,n)}function RSt(e){var t={showTip:[],hideTip:[]},r=function(n){var o=t[n.type];o?o.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function PF(e,t){if(!xr.node){var r=t.getZr(),n=(Zl(r).records||{})[e];n&&(Zl(r).records[e]=null)}}var DSt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=n.getComponent("tooltip"),i=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";pce("axisPointer",o,function(s,l,u){i!=="none"&&(s==="leave"||i.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){PF("axisPointer",n)},t.prototype.dispose=function(r,n){PF("axisPointer",n)},t.type="axisPointer",t}(cn);const MSt=DSt;function gce(e,t){var r=[],n=e.seriesIndex,o;if(n==null||!(o=t.getSeriesByIndex(n)))return{point:[]};var a=o.getData(),i=hA(a,e);if(i==null||i<0||Oe(i))return{point:[]};var s=a.getItemGraphicEl(i),l=o.coordinateSystem;if(o.getTooltipPosition)r=o.getTooltipPosition(i)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,A=d==="x"||d==="radius"?1:0,h=a.mapDimension(f),v=[];v[A]=a.get(h,i),v[1-A]=a.get(a.getCalculationInfo("stackResultDimension"),i),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Ue(l.dimensions,function(g){return a.mapDimension(g)}),i))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var wW=br();function PSt(e,t,r){var n=e.currTrigger,o=[e.x,e.y],a=e,i=e.dispatchAction||at(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){fw(o)&&(o=gce({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=fw(o),u=a.axesInfo,c=s.axesInfo,d=n==="leave"||fw(o),f={},A={},h={list:[],map:{}},v={showPointer:Ut(kSt,A),showTooltip:Ut(LSt,h)};z(s.coordSysMap,function(g,m){var y=l||g.containPoint(o);z(s.coordSysAxesInfo[m],function(b,x){var w=b.axis,C=NSt(u,b);if(!d&&y&&(!u||C)){var _=C&&C.value;_==null&&!l&&(_=w.pointToData(o)),_!=null&&CW(b,_,v,!1,f)}})});var p={};return z(c,function(g,m){var y=g.linkGroup;y&&!A[m]&&z(y.axesInfo,function(b,x){var w=A[x];if(b!==g&&w){var C=w.value;y.mapper&&(C=g.axis.scale.parse(y.mapper(C,SW(b),SW(g)))),p[g.key]=C}})}),z(p,function(g,m){CW(c[m],g,v,!0,f)}),OSt(A,c,f),$St(h,o,e,i),USt(c,i,r),f}}function CW(e,t,r,n,o){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var i=FSt(t,e),s=i.payloadBatch,l=i.snapToValue;s[0]&&o.seriesIndex==null&&Pe(o,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,i,l)}}function FSt(e,t){var r=t.axis,n=r.dim,o=e,a=[],i=Number.MAX_VALUE,s=-1;return z(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),d,f;if(l.getAxisTooltipData){var A=l.getAxisTooltipData(c,e,r);f=A.dataIndices,d=A.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var h=e-d,v=Math.abs(h);v<=i&&((v<i||h>=0&&s<0)&&(i=v,s=h,o=d,a.length=0),z(f,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:o}}function kSt(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function LSt(e,t,r,n){var o=r.payloadBatch,a=t.axis,i=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!o.length)){var l=t.coordSys.model,u=ry(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function OSt(e,t,r){var n=r.axesInfo=[];z(t,function(o,a){var i=o.axisPointerModel.option,s=e[a];s?(!o.useHandle&&(i.status="show"),i.value=s.value,i.seriesDataIndices=(s.payloadBatch||[]).slice()):!o.useHandle&&(i.status="hide"),i.status==="show"&&n.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:i.value})})}function $St(e,t,r,n){if(fw(t)||!e.list.length){n({type:"hideTip"});return}var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}function USt(e,t,r){var n=r.getZr(),o="axisPointerLastHighlights",a=wW(n)[o]||{},i=wW(n)[o]={};z(e,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&z(d.seriesDataIndices,function(f){var A=f.seriesIndex+" | "+f.dataIndex;i[A]=f})});var s=[],l=[];z(a,function(u,c){!i[c]&&l.push(u)}),z(i,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function NSt(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function SW(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function fw(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function fb(e){VA.registerAxisPointerClass("CartesianAxisPointer",CSt),e.registerComponentModel(_St),e.registerComponentView(MSt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Oe(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=E0t(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PSt)}function HSt(e){Jt(zle),Jt(fb)}var zSt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,o,a,i){var s=o.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(n),f=a.get("type");if(f&&f!=="none"){var A=k5(a),h=VSt[f](s,l,d,c);h.style=A,r.graphicKey=h.type,r.pointer=h}var v=a.get(["label","margin"]),p=QSt(n,o,a,l,v);fce(r,o,a,i,p)},t}(F5);function QSt(e,t,r,n,o){var a=t.axis,i=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,d;if(a.dim==="radius"){var f=ti();wd(f,f,s),bs(f,f,[n.cx,n.cy]),u=vs([i,-o],f);var A=t.getModel("axisLabel").get("rotate")||0,h=xu.innerTextLayout(s,A*Math.PI/180,-1);c=h.textAlign,d=h.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+o,i]);var p=n.cx,g=n.cy;c=Math.abs(u[0]-p)/v<.3?"center":u[0]>p?"left":"right",d=Math.abs(u[1]-g)/v<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var VSt={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:O5(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var o=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:mW(t.cx,t.cy,n[0],n[1],(-r-o/2)*a,(-r+o/2)*a)}:{type:"Sector",shape:mW(t.cx,t.cy,r-o/2,r+o/2,0,Math.PI*2)}}};const WSt=zSt;var GSt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,o=this.ecModel;return o.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(fr);const KSt=GSt;var $5=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Kn).models[0]},t.type="polarAxis",t}(fr);Rn($5,Gp);var jSt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}($5),YSt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}($5),U5=function(e){we(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Yi);U5.prototype.dataToRadius=Yi.prototype.dataToCoord;U5.prototype.radiusToData=Yi.prototype.coordToData;const XSt=U5;var qSt=br(),N5=function(e){we(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),o=r.scale,a=o.getExtent(),i=o.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Gy(s==null?"":s+"",n.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var A=Math.max(0,Math.floor(f)),h=qSt(r.model),v=h.lastAutoInterval,p=h.lastTickCount;return v!=null&&p!=null&&Math.abs(v-A)<=1&&Math.abs(p-i)<=1&&v>A?A=v:(h.lastTickCount=i,h.lastAutoInterval=A),A},t}(Yi);N5.prototype.dataToAngle=Yi.prototype.dataToCoord;N5.prototype.angleToData=Yi.prototype.coordToData;const ZSt=N5;var mce=["radius","angle"],JSt=function(){function e(t){this.dimensions=mce,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new XSt,this._angleAxis=new ZSt,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,o=this._radiusAxis;return n.scale.type===t&&r.push(n),o.scale.type===t&&r.push(o),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,o=this.getAngleAxis(),a=o.getExtent(),i=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);o.inverse?i=s-360:s=i+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<i?1:-1;u<i||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,o=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[o,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var o=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-o[0]*a,endAngle:-o[1]*a,clockwise:t.inverse,contain:function(i,s){var l=i-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},e.prototype.convertToPixel=function(t,r,n){var o=_W(r);return o===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var o=_W(r);return o===this?this.pointToData(n):null},e}();function _W(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const e_t=JSt;function t_t(e,t,r){var n=t.get("center"),o=r.getWidth(),a=r.getHeight();e.cx=qe(n[0],o),e.cy=qe(n[1],a);var i=e.getRadiusAxis(),s=Math.min(o,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Oe(l)||(l=[0,l]);var u=[qe(l[0],s),qe(l[1],s)];i.inverse?i.setExtent(u[1],u[0]):i.setExtent(u[0],u[1])}function r_t(e,t){var r=this,n=r.getAngleAxis(),o=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();z(HC(l,"radius"),function(u){o.scale.unionExtentFromData(l,u)}),z(HC(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),mA(n.scale,n.model),mA(o.scale,o.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),i=360/n.scale.count();n.inverse?a[1]+=i:a[1]-=i,n.setExtent(a[0],a[1])}}function n_t(e){return e.mainType==="angleAxis"}function BW(e,t){if(e.type=t.get("type"),e.scale=nb(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),n_t(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var o_t={dimensions:mce,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,o){var a=new e_t(o+"");a.update=r_t;var i=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");BW(i,l),BW(s,u),t_t(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var o=n.getReferringComponents("polar",Kn).models[0];n.coordinateSystem=o.coordinateSystem}}),r}};const a_t=o_t;var i_t=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function bx(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),o=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:o[0],y2:o[1]}}function xx(e){var t=e.getRadiusAxis();return t.inverse?0:1}function TW(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var s_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var o=r.axis,a=o.polar,i=a.getRadiusAxis().getExtent(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=Ue(o.getViewLabels(),function(c){c=It(c);var d=o.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=o.dataToCoord(f),c});TW(u),TW(s),z(i_t,function(c){r.get([c,"show"])&&(!o.scale.isBlank()||c==="axisLine")&&l_t[c](this.group,r,a,s,l,i,u)},this)}},t.type="angleAxis",t}(VA),l_t={axisLine:function(e,t,r,n,o,a){var i=t.getModel(["axisLine","lineStyle"]),s=xx(r),l=s?0:1,u;a[l]===0?u=new ws({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:i.getLineStyle(),z2:1,silent:!0}):u=new Yy({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:i.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,o,a){var i=t.getModel("axisTick"),s=(i.get("inside")?-1:1)*i.get("length"),l=a[xx(r)],u=Ue(n,function(c){return new co({shape:bx(r,[l,l+s],c.coord)})});e.add(Va(u,{style:Ct(i.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,o,a){if(o.length){for(var i=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(i.get("inside")?-1:1)*s.get("length"),u=a[xx(r)],c=[],d=0;d<o.length;d++)for(var f=0;f<o[d].length;f++)c.push(new co({shape:bx(r,[u,u+l],o[d][f].coord)}));e.add(Va(c,{style:Ct(s.getModel("lineStyle").getLineStyle(),Ct(i.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,o,a,i){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");z(i,function(d,f){var A=l,h=d.tickValue,v=a[xx(r)],p=r.coordToPoint([v+u,d.coord]),g=r.cx,m=r.cy,y=Math.abs(p[0]-g)/v<.3?"center":p[0]>g?"left":"right",b=Math.abs(p[1]-m)/v<.3?"middle":p[1]>m?"top":"bottom";if(s&&s[h]){var x=s[h];Tt(x)&&x.textStyle&&(A=new Vr(x.textStyle,l,l.ecModel))}var w=new pr({silent:xu.isLabelSilent(t),style:un(A,{x:p[0],y:p[1],fill:A.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:y,verticalAlign:b})});if(e.add(w),c){var C=xu.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=d.rawLabel,$t(w).eventData=C}},this)},splitLine:function(e,t,r,n,o,a){var i=t.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<n.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new co({shape:bx(r,a,n[d].coord)}))}for(var d=0;d<c.length;d++)e.add(Va(c[d],{style:Ct({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,o,a){if(o.length){for(var i=t.getModel("minorSplitLine"),s=i.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new co({shape:bx(r,a,o[u][c].coord)}));e.add(Va(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,o,a){if(n.length){var i=t.getModel("splitArea"),s=i.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,f=-n[0].coord*d,A=Math.min(a[0],a[1]),h=Math.max(a[0],a[1]),v=t.get("clockwise"),p=1,g=n.length;p<=g;p++){var m=p===g?n[0].coord:n[p].coord,y=u++%l.length;c[y]=c[y]||[],c[y].push(new la({shape:{cx:r.cx,cy:r.cy,r0:A,r:h,startAngle:f,endAngle:-m*d,clockwise:v},silent:!0})),f=-m*d}for(var p=0;p<c.length;p++)e.add(Va(c[p],{style:Ct({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};const u_t=s_t;var c_t=["axisLine","axisTickLabel","axisName"],d_t=["splitLine","splitArea","minorSplitLine"],f_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var o=this._axisGroup,a=this._axisGroup=new Pt;this.group.add(a);var i=r.axis,s=i.polar,l=s.getAngleAxis(),u=i.getTicksCoords(),c=i.getMinorTicksCoords(),d=l.getExtent()[0],f=i.getExtent(),A=h_t(s,r,d),h=new xu(r,A);z(c_t,h.add,h),a.add(h.getGroup()),Zy(o,a,r),z(d_t,function(v){r.get([v,"show"])&&!i.scale.isBlank()&&A_t[v](this.group,r,s,d,f,u,c)},this)}},t.type="radiusAxis",t}(VA),A_t={splitLine:function(e,t,r,n,o,a){var i=t.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<a.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new ws({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[d].coord,0)}}))}for(var d=0;d<c.length;d++)e.add(Va(c[d],{style:Ct({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,o,a,i){if(i.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<i.length;c++)for(var d=0;d<i[c].length;d++)u.push(new ws({shape:{cx:r.cx,cy:r.cy,r:i[c][d].coord}}));e.add(Va(u,{style:Ct({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,o,a){if(a.length){var i=t.getModel("splitArea"),s=i.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=a[0].coord,f=1;f<a.length;f++){var A=u++%l.length;c[A]=c[A]||[],c[A].push(new la({shape:{cx:r.cx,cy:r.cy,r0:d,r:a[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=a[f].coord}for(var f=0;f<c.length;f++)e.add(Va(c[f],{style:Ct({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function h_t(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const v_t=f_t;function yce(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function bce(e,t){return t.dim+e.model.componentIndex}function p_t(e,t,r){var n={},o=g_t(kr(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var i=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=bce(s,l),c=yce(a),d=o[u][c],f=d.offset,A=d.width,h=s.getOtherAxis(l),v=a.coordinateSystem.cx,p=a.coordinateSystem.cy,g=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var y=i.mapDimension(h.dim),b=i.mapDimension(l.dim),x=bu(i,y),w=l.dim!=="radius"||!a.get("roundCap",!0),C=h.dataToCoord(0),_=0,B=i.count();_<B;_++){var T=i.get(y,_),E=i.get(b,_),I=T>=0?"p":"n",R=C;x&&(n[c][E]||(n[c][E]={p:C,n:C}),R=n[c][E][I]);var D=void 0,F=void 0,M=void 0,$=void 0;if(h.dim==="radius"){var O=h.dataToCoord(T)-C,Q=l.dataToCoord(E);Math.abs(O)<g&&(O=(O<0?-1:1)*g),D=R,F=R+O,M=Q-f,$=M-A,x&&(n[c][E][I]=F)}else{var V=h.dataToCoord(T,w)-C,W=l.dataToCoord(E);Math.abs(V)<m&&(V=(V<0?-1:1)*m),D=W+f,F=D+A,M=R,$=R+V,x&&(n[c][E][I]=$)}i.setItemLayout(_,{cx:v,cy:p,r0:D,r:F,startAngle:-M*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:M>=$})}}})}function g_t(e){var t={};z(e,function(n,o){var a=n.getData(),i=n.coordinateSystem,s=i.getBaseAxis(),l=bce(i,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),d=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;t[l]=d;var A=yce(n);f[A]||d.autoWidthCount++,f[A]=f[A]||{width:0,maxWidth:0};var h=qe(n.get("barWidth"),c),v=qe(n.get("barMaxWidth"),c),p=n.get("barGap"),g=n.get("barCategoryGap");h&&!f[A].width&&(h=Math.min(d.remainedWidth,h),f[A].width=h,d.remainedWidth-=h),v&&(f[A].maxWidth=v),p!=null&&(d.gap=p),g!=null&&(d.categoryGap=g)});var r={};return z(t,function(n,o){r[o]={};var a=n.stacks,i=n.bandWidth,s=qe(n.categoryGap,i),l=qe(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),z(a,function(v,p){var g=v.maxWidth;g&&g<d&&(g=Math.min(g,u),v.width&&(g=Math.min(g,v.width)),u-=g,v.width=g,c--)}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var f=0,A;z(a,function(v,p){v.width||(v.width=d),A=v,f+=v.width*(1+l)}),A&&(f-=A.width*l);var h=-f/2;z(a,function(v,p){r[o][p]=r[o][p]||{offset:h,width:v.width},h+=v.width*(1+l)})}),r}var m_t={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},y_t={splitNumber:5},b_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(cn);function x_t(e){Jt(fb),VA.registerAxisPointerClass("PolarAxisPointer",WSt),e.registerCoordinateSystem("polar",a_t),e.registerComponentModel(KSt),e.registerComponentView(b_t),Yv(e,"angle",jSt,m_t),Yv(e,"radius",YSt,y_t),e.registerComponentView(u_t),e.registerComponentView(v_t),e.registerLayout(Ut(p_t,"bar"))}function FF(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,o={},a=n.position,i=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=[i==="vertical"?u.vertical[a]:l[0],i==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};o.rotation=Math.PI/2*c[i];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[a],e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),uo(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var f=t.rotate;return f==null&&(f=e.get(["axisLabel","rotate"])),o.labelRotation=a==="top"?-f:f,o.z2=1,o}var w_t=["axisLine","axisTickLabel","axisName"],C_t=["splitArea","splitLine"],S_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,o,a){var i=this.group;i.removeAll();var s=this._axisGroup;this._axisGroup=new Pt;var l=FF(r),u=new xu(r,l);z(w_t,u.add,u),i.add(this._axisGroup),i.add(u.getGroup()),z(C_t,function(c){r.get([c,"show"])&&__t[c](this,this.group,this._axisGroup,r)},this),Zy(s,this._axisGroup,r),e.prototype.render.call(this,r,n,o,a)},t.prototype.remove=function(){Ule(this)},t.type="singleAxis",t}(VA),__t={splitLine:function(e,t,r,n){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),i=a.getModel("lineStyle"),s=i.get("color");s=s instanceof Array?s:[s];for(var l=n.coordinateSystem.getRect(),u=o.isHorizontal(),c=[],d=0,f=o.getTicksCoords({tickModel:a}),A=[],h=[],v=0;v<f.length;++v){var p=o.toGlobalCoord(f[v].coord);u?(A[0]=p,A[1]=l.y,h[0]=p,h[1]=l.y+l.height):(A[0]=l.x,A[1]=p,h[0]=l.x+l.width,h[1]=p);var g=d++%s.length;c[g]=c[g]||[],c[g].push(new co({subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:h[0],y2:h[1]},silent:!0}))}for(var m=i.getLineStyle(["color"]),v=0;v<c.length;++v)t.add(Va(c[v],{style:Ct({stroke:s[v%s.length]},m),silent:!0}))}},splitArea:function(e,t,r,n){$le(e,r,n,n)}};const B_t=S_t;var xce=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(fr);Rn(xce,Gp.prototype);const tR=xce;var T_t=function(e){we(t,e);function t(r,n,o,a,i){var s=e.call(this,r,n,o)||this;return s.type=a||"value",s.position=i||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Yi);const E_t=T_t;var wce=["single"],I_t=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=wce,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var o=this.dimension,a=new E_t(o,nb(t),[0,0],t.get("type"),t.get("position")),i=a.type==="category";a.onBand=i&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var o=n.getData();z(o.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(o,a)},this),mA(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=jn({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),o=n?[0,t.width]:[0,t.height],a=r.reverse?1:0;r.setExtent(o[a],o[1-a]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),o=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(i){return i+r}:function(i){return o-i+r},t.toLocalCoord=a?function(i){return i-r}:function(i){return o-i+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),o=n.orient;return o==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),o=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),o[a]=r.toGlobalCoord(r.dataToCoord(+t)),o[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,o},e.prototype.convertToPixel=function(t,r,n){var o=EW(r);return o===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var o=EW(r);return o===this?this.pointToData(n):null},e}();function EW(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function R_t(e,t){var r=[];return e.eachComponent("singleAxis",function(n,o){var a=new I_t(n,e,t);a.name="single_"+o,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var o=n.getReferringComponents("singleAxis",Kn).models[0];n.coordinateSystem=o&&o.coordinateSystem}}),r}var D_t={create:R_t,dimensions:wce};const M_t=D_t;var IW=["x","y"],P_t=["width","height"],F_t=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,o,a,i){var s=o.axis,l=s.coordinateSystem,u=rR(l,1-rS(s)),c=l.dataToPoint(n)[0],d=a.get("type");if(d&&d!=="none"){var f=k5(a),A=k_t[d](s,c,u);A.style=f,r.graphicKey=A.type,r.pointer=A}var h=FF(o);hce(n,r,h,o,a,i)},t.prototype.getHandleTransform=function(r,n,o){var a=FF(n,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var i=L5(n.axis,r,a);return{x:i[0],y:i[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,o,a){var i=o.axis,s=i.coordinateSystem,l=rS(i),u=rR(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=rR(s,1-l),f=(d[1]+d[0])/2,A=[f,f];return A[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:A,tooltipOption:{verticalAlign:"middle"}}},t}(F5),k_t={line:function(e,t,r){var n=O5([t,r[0]],[t,r[1]],rS(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),o=r[1]-r[0];return{type:"Rect",shape:vce([t-n/2,r[0]],[n,o],rS(e))}}};function rS(e){return e.isHorizontal()?0:1}function rR(e,t){var r=e.getRect();return[r[IW[t]],r[IW[t]]+r[P_t[t]]]}const L_t=F_t;var O_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(cn);function $_t(e){Jt(fb),VA.registerAxisPointerClass("SingleAxisPointer",L_t),e.registerComponentView(O_t),e.registerComponentView(B_t),e.registerComponentModel(tR),Yv(e,"single",tR,tR.defaultOption),e.registerCoordinateSystem("single",M_t)}var U_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,o){var a=$p(r);e.prototype.init.apply(this,arguments),RW(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),RW(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(fr);function RW(e,t){var r=e.cellSize,n;Oe(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var o=Ue([0,1],function(a){return Rdt(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});id(e,t,{type:"box",ignoreSize:o})}const N_t=U_t;var H_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){var a=this.group;a.removeAll();var i=r.coordinateSystem,s=i.getRangeInfo(),l=i.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,o){for(var a=r.coordinateSystem,i=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,d=new hr({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:i});o.add(d)}},t.prototype._renderLines=function(r,n,o,a){var i=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=n.start,f=0;d.time<=n.end.time;f++){h(d.formatedDate),f===0&&(d=s.getDateInfo(n.start.y+"-"+n.start.m));var A=d.date;A.setMonth(A.getMonth()+1),d=s.getDateInfo(A)}h(s.getNextNDay(n.end.time,1).formatedDate);function h(v){i._firstDayOfMonth.push(s.getDateInfo(v)),i._firstDayPoints.push(s.dataToRect([v],!1).tl);var p=i._getLinePointsOfOneWeek(r,v,o);i._tlpoints.push(p[0]),i._blpoints.push(p[p.length-1]),u&&i._drawSplitline(p,l,a)}u&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,o),l,a),u&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,o),l,a)},t.prototype._getEdgesPoints=function(r,n,o){var a=[r[0].slice(),r[r.length-1].slice()],i=o==="horizontal"?0:1;return a[0][i]=a[0][i]-n/2,a[1][i]=a[1][i]+n/2,a},t.prototype._drawSplitline=function(r,n,o){var a=new da({z2:20,shape:{points:r},style:n});o.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,o){for(var a=r.coordinateSystem,i=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(i.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[o==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Je(r)&&r?Bdt(r,n):bt(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,o,a,i){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=i,u=["center","top"]):a==="left"?s-=i:a==="right"?(s+=i,u=["center","top"]):l-=i;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,o,a){var i=r.getModel("yearLabel");if(i.get("show")){var s=i.get("margin"),l=i.get("position");l||(l=o!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=o==="horizontal"?0:1,A={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},h=n.start.y;+n.end.y>+n.start.y&&(h=h+"-"+n.end.y);var v=i.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:h},g=this._formatterLabel(v,p),m=new pr({z2:30,style:un(i,{text:g})});m.attr(this._yearTextPositionControl(m,A[l],o,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(r,n,o,a,i){var s="left",l="top",u=r[0],c=r[1];return o==="horizontal"?(c=c+i,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+i,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,o,a){var i=r.getModel("monthLabel");if(i.get("show")){var s=i.get("nameMap"),l=i.get("margin"),u=i.get("position"),c=i.get("align"),d=[this._tlpoints,this._blpoints];(!s||Je(s))&&(s&&(n=QP(s)||n),s=n.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,A=o==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",v=0;v<d[f].length-1;v++){var p=d[f][v].slice(),g=this._firstDayOfMonth[v];if(h){var m=this._firstDayPoints[v];p[A]=(m[A]+d[0][v+1][A])/2}var y=i.get("formatter"),b=s[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:b},w=this._formatterLabel(y,x),C=new pr({z2:30,style:Pe(un(i,{text:w}),this._monthTextPositionControl(p,h,o,u,l))});a.add(C)}}},t.prototype._weekTextPositionControl=function(r,n,o,a,i){var s="center",l="middle",u=r[0],c=r[1],d=o==="start";return n==="horizontal"?(u=u+a+(d?1:-1)*i[0]/2,s=d?"right":"left"):(c=c+a+(d?1:-1)*i[1]/2,l=d?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,o,a,i){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),d=s.get("margin"),f=l.getFirstDayOfWeek();if(!c||Je(c)){c&&(n=QP(c)||n);var A=n.get(["time","dayOfWeekShort"]);c=A||Ue(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var h=l.getNextNDay(o.end.time,7-o.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];d=qe(d,Math.min(v[1],v[0])),u==="start"&&(h=l.getNextNDay(o.start.time,-(7+o.fweek)).time,d=-d);for(var p=0;p<7;p++){var g=l.getNextNDay(h,p),m=l.dataToRect([g.time],!1).center,y=p;y=Math.abs((p+f)%7);var b=new pr({z2:30,style:Pe(un(s,{text:c[y]}),this._weekTextPositionControl(m,a,u,d,v))});i.add(b)}}},t.type="calendar",t}(cn);const z_t=H_t;var nR=864e5,Q_t=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=ri(t);var r=t.getFullYear(),n=t.getMonth()+1,o=n<10?"0"+n:""+n,a=t.getDate(),i=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:o,d:i,day:s,time:t.getTime(),formatedDate:r+"-"+o+"-"+i,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){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());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.getCellSize().slice(),i=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];z([0,1],function(d){c(a,d)&&(i[o[d]]=a[d]*s[d])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=jn(i,l);z([0,1],function(d){c(a,d)||(a[d]=u[o[d]]/s[d])});function c(d,f){return d[f]!=null&&d[f]!=="auto"}this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(t,r){Oe(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),o=this._rangeInfo,a=n.formatedDate;if(r&&!(n.time>=o.start.time&&n.time<o.end.time+nR))return[NaN,NaN];var i=n.day,s=this._getRangeInfo([o.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+i*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+i*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,o):this._getDateByWeeksAndDay(r,n-1,o)},e.prototype.convertToPixel=function(t,r,n){var o=DW(r);return o===this?o.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var o=DW(r);return o===this?o.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Oe(t)&&t.length===1&&(t=t[0]),Oe(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var o=this.getDateInfo(n),a=o.date;a.setMonth(a.getMonth()+1);var i=this.getNextNDay(a,-1);r=[o.formatedDate,i.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var o=Math.floor(r[1].time/nR)-Math.floor(r[0].time/nR)+1,a=new Date(r[0].time),i=a.getDate(),s=r[1].date.getDate();a.setDate(i+o-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)o-=u,a.setDate(l-u);var c=Math.floor((o+r[0].day+6)/7),d=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:o,weeks:c,nthWeek:d,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var o=this._getRangeInfo(n);if(t>o.weeks||t===0&&r<o.fweek||t===o.weeks&&r>o.lweek)return null;var a=(t-1)*7-o.fweek+r,i=new Date(o.start.time);return i.setDate(+o.start.d+a),this.getDateInfo(i)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(o){var a=new e(o);n.push(a),o.coordinateSystem=a}),t.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=n[o.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function DW(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const V_t=Q_t;function W_t(e){e.registerComponentModel(N_t),e.registerComponentView(z_t),e.registerCoordinateSystem("calendar",V_t)}function G_t(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function MW(e,t){var r;return z(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function K_t(e,t,r){var n=Pe({},r),o=e[t],a=r.$action||"merge";a==="merge"?o?(Qt(o,n,!0),id(o,n,{ignoreSize:!0}),aie(r,o),Cx(r,o),Cx(r,o,"shape"),Cx(r,o,"style"),Cx(r,o,"extra"),r.clipPath=o.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&o&&(e[t]=null)}var Cce=["transition","enterFrom","leaveTo"],j_t=Cce.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Cx(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?Cce:j_t,o=0;o<n.length;o++){var a=n[o];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function Y_t(e,t){if(e&&(e.hv=t.hv=[MW(t,["left","right"]),MW(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var X_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var o=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=o},t.prototype.optionUpdated=function(r,n){var o=this.option,a=(n?o:r).elements,i=o.elements=n?[]:o.elements,s=[];this._flatten(a,s,null);var l=zoe(i,s,"normalMerge"),u=this._elOptionsToUpdate=[];z(l,function(c,d){var f=c.newOption;f&&(u.push(f),G_t(c,f),K_t(i,d,f),Y_t(i[d],f))},this),o.elements=kr(i,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,o){z(r,function(a){if(a){o&&(a.parentOption=o),n.push(a);var i=a.children;i&&i.length&&this._flatten(i,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(fr),PW={path:null,compoundPath:null,group:Pt,image:_o,text:pr},yi=br(),q_t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=pt()},t.prototype.render=function(r,n,o){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,o)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var o=this._elMap,a=this.group,i=r.get("z"),s=r.get("zlevel");z(n,function(l){var u=ro(l.id,null),c=u!=null?o.get(u):null,d=ro(l.parentId,null),f=d!=null?o.get(d):a,A=l.type,h=l.style;A==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var v=l.textContent,p=l.textConfig;if(h&&rce(h,A,!!p,!!v)){var g=nce(h,A,!0);!p&&g.textConfig&&(p=l.textConfig=g.textConfig),!v&&g.textContent&&(v=g.textContent)}var m=Z_t(l),y=l.$action||"merge",b=y==="merge",x=y==="replace";if(b){var w=!c,C=c;w?C=FW(u,f,l.type,o):(C&&(yi(C).isNew=!1),sce(C)),C&&(dw(C,m,r,{isInit:w}),kW(C,l,i,s))}else if(x){Aw(c,l,o,r);var _=FW(u,f,l.type,o);_&&(dw(_,m,r,{isInit:!0}),kW(_,l,i,s))}else y==="remove"&&(ace(c,l),Aw(c,l,o,r));var B=o.get(u);if(B&&v)if(b){var T=B.getTextContent();T?T.attr(v):B.setTextContent(new pr(v))}else x&&B.setTextContent(new pr(v));if(B){var E=l.clipPath;if(E){var I=E.type,R=void 0,w=!1;if(b){var D=B.getClipPath();w=!D||yi(D).type!==I,R=w?kF(I):D}else x&&(w=!0,R=kF(I));B.setClipPath(R),dw(R,E,r,{isInit:w}),eS(R,E.keyframeAnimation,r)}var F=yi(B);B.setTextConfig(p),F.option=l,J_t(B,r,l),kp({el:B,componentModel:r,itemName:B.name,itemTooltipOption:l.tooltip}),eS(B,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var o=r.option.elements,a=this.group,i=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<o.length;c++){var d=o[c],f=ro(d.id,null),A=f!=null?i.get(f):null;if(!(!A||!A.isGroup)){var h=A.parent,v=h===a,p=yi(A),g=yi(h);p.width=qe(p.option.width,v?s:g.width)||0,p.height=qe(p.option.height,v?l:g.height)||0}}for(var c=o.length-1;c>=0;c--){var d=o[c],f=ro(d.id,null),A=f!=null?i.get(f):null;if(A){var h=A.parent,g=yi(h),m=h===a?{width:s,height:l}:{width:g.width,height:g.height},y={},b=AB(A,d,m,null,{hv:d.hv,boundingMode:d.bounding},y);if(!yi(A).isNew&&b){for(var x=d.transition,w={},C=0;C<u.length;C++){var _=u[C],B=y[_];x&&(nA(x)||Yt(x,_)>=0)?w[_]=B:A[_]=B}gr(A,w,r,0)}else A.attr(y)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(o){Aw(o,yi(o).option,n,r._lastGraphicModel)}),this._elMap=pt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(cn);function kF(e){var t=st(PW,e)?PW[e]:iB(e),r=new t({});return yi(r).type=e,r}function FW(e,t,r,n){var o=kF(r);return t.add(o),n.set(e,o),yi(o).id=e,yi(o).isNew=!0,o}function Aw(e,t,r,n){var o=e&&e.parent;o&&(e.type==="group"&&e.traverse(function(a){Aw(a,t,r,n)}),RB(e,t,n),r.removeKey(yi(e).id))}function kW(e,t,r,n){e.isGroup||z([["cursor",Ui.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(o){var a=o[0];st(t,a)?e[a]=Zt(t[a],o[1]):e[a]==null&&(e[a]=o[1])}),z(sr(t),function(o){if(o.indexOf("on")===0){var a=t[o];e[o]=bt(a)?a:null}}),st(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Z_t(e){return e=Pe({},e),z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(oie),function(t){delete e[t]}),e}function J_t(e,t,r){var n=$t(e).eventData;!e.silent&&!e.ignore&&!n&&(n=$t(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function eBt(e){e.registerComponentModel(X_t),e.registerComponentView(q_t),e.registerPreprocessor(function(t){var r=t.graphic;Oe(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var LW=["x","y","radius","angle","single"],tBt=["cartesian2d","polar","singleAxis"];function rBt(e){var t=e.get("coordinateSystem");return Yt(tBt,t)>=0}function Sc(e){return e+"Axis"}function nBt(e,t){var r=pt(),n=[],o=pt();e.eachComponent({mainType:"dataZoom",query:t},function(c){o.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",i);while(a);function i(c){!o.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){o.set(c.uid,!0),n.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,A){var h=r.get(f);h&&h[A]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(r.get(d)||r.set(d,[]))[f]=!0})}return n}function Sce(e){var t=e.ecModel,r={infoList:[],infoMap:pt()};return e.eachTargetAxis(function(n,o){var a=t.getComponent(Sc(n),o);if(a){var i=a.getCoordSysModel();if(i){var s=i.uid,l=r.infoMap.get(s);l||(l={model:i,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var oR=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),oBt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,o){var a=OW(r);this.settledOption=a,this.mergeDefaultAndTheme(r,o),this._doInit(a)},t.prototype.mergeOption=function(r){var n=OW(r);Qt(this.option,r,!0),Qt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var o=this.settledOption;z([["start","startValue"],["end","endValue"]],function(a,i){this._rangePropMode[i]==="value"&&(n[a[0]]=o[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=pt(),o=this._fillSpecifiedTargetAxis(n);o?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return z(LW,function(o){var a=this.getReferringComponents(Sc(o),iut);if(a.specified){n=!0;var i=new oR;z(a.models,function(s){i.add(s.componentIndex)}),r.set(o,i)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var o=this.ecModel,a=!0;if(a){var i=n==="vertical"?"y":"x",s=o.findComponents({mainType:i+"Axis"});l(s,i)}if(a){var s=o.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new oR;if(f.add(d.componentIndex),r.set(c,f),a=!1,c==="x"||c==="y"){var A=d.getReferringComponents("grid",Kn).models[0];A&&z(u,function(h){d.componentIndex!==h.componentIndex&&A===h.getReferringComponents("grid",Kn).models[0]&&f.add(h.componentIndex)})}}}a&&z(LW,function(u){if(a){var c=o.findComponents({mainType:Sc(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new oR;d.add(c[0].componentIndex),r.set(u,d),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,o=this.get("rangeMode");z([["start","startValue"],["end","endValue"]],function(a,i){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[i]="percent":!s&&l?n[i]="value":o?n[i]=o[i]:s&&(n[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,o){r==null&&(r=this.ecModel.getComponent(Sc(n),o))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(o,a){z(o.indexList,function(i){r.call(n,a,i)})})},t.prototype.getAxisProxy=function(r,n){var o=this.getAxisModel(r,n);if(o)return o.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var o=this._targetAxisInfoMap.get(r);if(o&&o.indexMap[n])return this.ecModel.getComponent(Sc(r),n)},t.prototype.setRawRange=function(r){var n=this.option,o=this.settledOption;z([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=o[a[0]]=r[a[0]],n[a[1]]=o[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;z(["start","startValue","end","endValue"],function(o){n[o]=r[o]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,o=this._targetAxisInfoMap.keys(),a=0;a<o.length;a++)for(var i=o[a],s=this._targetAxisInfoMap.get(i),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(i,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(fr);function OW(e){var t={};return z(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}const ly=oBt;var aBt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(ly);const iBt=aBt;var sBt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o,a){this.dataZoomModel=r,this.ecModel=n,this.api=o},t.type="dataZoom",t}(cn);const H5=sBt;var lBt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(H5);const uBt=lBt;var jh=z,$W=ja,cBt=function(){function e(t,r,n,o){this._dimName=t,this._axisIndex=r,this.ecModel=o,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(rBt(r)){var n=Sc(this._dimName),o=r.getReferringComponents(n,Kn).models[0];o&&this._axisIndex===o.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return It(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),o=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),i=[0,100],s=[],l=[],u;jh(["start","end"],function(f,A){var h=t[f],v=t[f+"Value"];a[A]==="percent"?(h==null&&(h=i[A]),v=o.parse(Fr(h,i,r))):(u=!0,v=v==null?r[A]:o.parse(v),h=Fr(v,r,i)),l[A]=v,s[A]=h}),$W(l),$W(s);var c=this._minMaxSpan;u?d(l,s,r,i,!1):d(s,l,i,r,!0);function d(f,A,h,v,p){var g=p?"Span":"ValueSpan";WA(0,f,h,"all",c["min"+g],c["max"+g]);for(var m=0;m<2;m++)A[m]=Fr(f[m],h,v,!0),p&&(A[m]=o.parse(A[m]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=dBt(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,o=this.getTargetSeriesModels(),a=t.get("filterMode"),i=this._valueWindow;if(a==="none")return;jh(o,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var d=u.getStore(),f=Ue(c,function(A){return u.getDimensionIndex(A)},u);u.filterSelf(function(A){for(var h,v,p,g=0;g<c.length;g++){var m=d.get(f[g],A),y=!isNaN(m),b=m<i[0],x=m>i[1];if(y&&!b&&!x)return!0;y&&(p=!0),b&&(h=!0),x&&(v=!0)}return p&&h&&v})}else jh(c,function(A){if(a==="empty")l.setData(u=u.map(A,function(v){return s(v)?v:NaN}));else{var h={};h[A]=i,u.selectRange(h)}});jh(c,function(A){u.setApproximateExtent(i,A)})}});function s(l){return l>=i[0]&&l<=i[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;jh(["min","max"],function(o){var a=r.get(o+"Span"),i=r.get(o+"ValueSpan");i!=null&&(i=this.getAxisModel().axis.scale.parse(i)),i!=null?a=Fr(n[0]+i,n,[0,100],!0):a!=null&&(i=Fr(a,[0,100],n,!0)-n[0]),t[o+"Span"]=a,t[o+"ValueSpan"]=i},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var o=jO(n,[0,500]);o=Math.min(o,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(o)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(o)),a.freeze()}},e}();function dBt(e,t,r){var n=[1/0,-1/0];jh(r,function(i){wvt(n,i.getData(),t)});var o=e.getAxisModel(),a=zse(o.axis.scale,o,n).calculate();return[a.min,a.max]}const fBt=cBt;var ABt={getTargetSeries:function(e){function t(o){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(i,s){var l=e.getComponent(Sc(i),s);o(i,s,l,a)})})}t(function(o,a,i,s){i.__dzAxisProxy=null});var r=[];t(function(o,a,i,s){i.__dzAxisProxy||(i.__dzAxisProxy=new fBt(o,a,s,e),r.push(i.__dzAxisProxy))});var n=pt();return z(r,function(o){z(o.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,o){r.getAxisProxy(n,o).reset(r)}),r.eachTargetAxis(function(n,o){r.getAxisProxy(n,o).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var o=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:o[0],end:o[1],startValue:a[0],endValue:a[1]})}})}};const hBt=ABt;function vBt(e){e.registerAction("dataZoom",function(t,r){var n=nBt(r,t);z(n,function(o){o.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var UW=!1;function z5(e){UW||(UW=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,hBt),vBt(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function pBt(e){e.registerComponentModel(iBt),e.registerComponentView(uBt),z5(e)}var wi=function(){function e(){}return e}(),_ce={};function Yh(e,t){_ce[e]=t}function Bce(e){return _ce[e]}var gBt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;z(this.option.feature,function(n,o){var a=Bce(o);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Qt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(fr);const mBt=gBt;function yBt(e,t,r){var n=t.getBoxLayoutParams(),o=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},i=jn(n,a,o);Jf(t.get("orient"),e,t.get("itemGap"),i.width,i.height),AB(e,n,a,o)}function Tce(e,t){var r=zA(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new hr({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var bBt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,o,a){var i=this.group;if(i.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),d=[];z(u,function(h,v){d.push(v)}),new yu(this._featureNames||[],d).add(f).update(f).remove(Ut(f,null)).execute(),this._featureNames=d;function f(h,v){var p=d[h],g=d[v],m=u[p],y=new Vr(m,r,r.ecModel),b;if(a&&a.newTitle!=null&&a.featureName===p&&(m.title=a.newTitle),p&&!g){if(xBt(p))b={onclick:y.option.onclick,featureName:p};else{var x=Bce(p);if(!x)return;b=new x}c[p]=b}else if(b=c[g],!b)return;b.uid=Op("toolbox-feature"),b.model=y,b.ecModel=n,b.api=o;var w=b instanceof wi;if(!p&&g){w&&b.dispose&&b.dispose(n,o);return}if(!y.get("show")||w&&b.unusable){w&&b.remove&&b.remove(n,o);return}A(y,b,p),y.setIconStatus=function(C,_){var B=this.option,T=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[C]=_,T[C]&&(_==="emphasis"?gu:mu)(T[C])},b instanceof wi&&b.render&&b.render(y,n,o,a)}function A(h,v,p){var g=h.getModel("iconStyle"),m=h.getModel(["emphasis","iconStyle"]),y=v instanceof wi&&v.getIcons?v.getIcons():h.get("icon"),b=h.get("title")||{},x,w;Je(y)?(x={},x[p]=y):x=y,Je(b)?(w={},w[p]=b):w=b;var C=h.iconPaths={};z(x,function(_,B){var T=Fp(_,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(g.getItemStyle());var E=T.ensureState("emphasis");E.style=m.getItemStyle();var I=new pr({style:{text:w[B],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),kp({el:T,componentModel:r,itemName:B,formatterParamsExtra:{title:w[B]}}),T.__title=w[B],T.on("mouseover",function(){var R=m.getItemStyle(),D=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),T.setTextConfig({position:m.get("textPosition")||D}),I.ignore=!r.get("showTitle"),o.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",B])!=="emphasis"&&o.leaveEmphasis(this),I.hide()}),(h.get(["iconStatus",B])==="emphasis"?gu:mu)(T),i.add(T),T.on("click",at(v.onclick,v,n,o,B)),C[B]=T})}yBt(i,r,o),i.add(Tce(i.getBoundingRect(),r)),l||i.eachChild(function(h){var v=h.__title,p=h.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),m=h.getTextContent(),y=m&&m.ensureState("emphasis");if(y&&!bt(y)&&v){var b=y.style||(y.style={}),x=Gy(v,pr.makeFont(b)),w=h.x+i.x,C=h.y+i.y+s,_=!1;C+x.height>o.getHeight()&&(g.position="top",_=!0);var B=_?-5-x.height:s+10;w+x.width/2>o.getWidth()?(g.position=["100%",B],b.align="right"):w-x.width/2<0&&(g.position=[0,B],b.align="left")}})},t.prototype.updateView=function(r,n,o,a){z(this._features,function(i){i instanceof wi&&i.updateView&&i.updateView(i.model,n,o,a)})},t.prototype.remove=function(r,n){z(this._features,function(o){o instanceof wi&&o.remove&&o.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){z(this._features,function(o){o instanceof wi&&o.dispose&&o.dispose(r,n)})},t.type="toolbox",t}(cn);function xBt(e){return e.indexOf("my")===0}const wBt=bBt;var CBt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var o=this.model,a=o.get("name")||r.get("title.0.text")||"echarts",i=n.getZr().painter.getType()==="svg",s=i?"svg":o.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:o.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),u=xr.browser;if(bt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||i){var f=l.split(","),A=f[0].indexOf("base64")>-1,h=i?decodeURIComponent(f[1]):f[1];A&&(h=window.atob(h));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,g=new Uint8Array(p);p--;)g[p]=h.charCodeAt(p);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,v)}else{var y=document.createElement("iframe");document.body.appendChild(y);var b=y.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,v),document.body.removeChild(y)}}else{var w=o.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',_=window.open();_.document.write(C),_.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,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",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(wi);const SBt=CBt;var NW="__ec_magicType_stack__",_Bt=[["line","bar"],["stack"]],BBt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),o={};return z(r.get("type"),function(a){n[a]&&(o[a]=n[a])}),o},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",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"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,o){var a=this.model,i=a.get(["seriesIndex",o]);if(HW[o]){var s={series:[]},l=function(d){var f=d.subType,A=d.id,h=HW[o](f,A,d,a);h&&(Ct(h,d.option),s.series.push(h));var v=d.coordinateSystem;if(v&&v.type==="cartesian2d"&&(o==="line"||o==="bar")){var p=v.getAxesByScale("ordinal")[0];if(p){var g=p.dim,m=g+"Axis",y=d.getReferringComponents(m,Kn).models[0],b=y.componentIndex;s[m]=s[m]||[];for(var x=0;x<=b;x++)s[m][b]=s[m][b]||{};s[m][b].boundaryGap=o==="bar"}}};z(_Bt,function(d){Yt(d,o)>=0&&z(d,function(f){a.setIconStatus(f,"normal")})}),a.setIconStatus(o,"emphasis"),r.eachComponent({mainType:"series",query:i==null?null:{seriesIndex:i}},l);var u,c=o;o==="stack"&&(u=Qt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",o])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(wi),HW={line:function(e,t,r,n){if(e==="bar")return Qt({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Qt({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var o=r.get("stack")===NW;if(e==="line"||e==="bar")return n.setIconStatus("stack",o?"normal":"emphasis"),Qt({id:t,stack:o?"":NW},n.get(["option","stack"])||{},!0)}};Es({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const TBt=BBt;var DB=new Array(60).join("-"),Zv=" ";function EBt(e){var t={},r=[],n=[];return e.eachRawSeries(function(o){var a=o.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var i=a.getBaseAxis();if(i.type==="category"){var s=i.dim+"_"+i.index;t[s]||(t[s]={categoryAxis:i,valueAxis:a.getOtherAxis(i),series:[]},n.push({axisDim:i.dim,axisIndex:i.index})),t[s].series.push(o)}else r.push(o)}else r.push(o)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function IBt(e){var t=[];return z(e,function(r,n){var o=r.categoryAxis,a=r.valueAxis,i=a.dim,s=[" "].concat(Ue(r.series,function(A){return A.name})),l=[o.model.getCategories()];z(r.series,function(A){var h=A.getRawData();l.push(A.getRawData().mapArray(h.mapDimension(i),function(v){return v}))});for(var u=[s.join(Zv)],c=0;c<l[0].length;c++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][c]);u.push(d.join(Zv))}t.push(u.join(`
  6101. `))}),t.join(`
  6102. `+DB+`
  6103. `)}function RBt(e){return Ue(e,function(t){var r=t.getRawData(),n=[t.name],o=[];return r.each(r.dimensions,function(){for(var a=arguments.length,i=arguments[a-1],s=r.getName(i),l=0;l<a-1;l++)o[l]=arguments[l];n.push((s?s+Zv:"")+o.join(Zv))}),n.join(`
  6104. `)}).join(`
  6105. `+DB+`
  6106. `)}function DBt(e){var t=EBt(e);return{value:kr([IBt(t.seriesGroupByCategoryAxis),RBt(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
  6107. `+DB+`
  6108. `),meta:t.meta}}function nS(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function MBt(e){var t=e.slice(0,e.indexOf(`
  6109. `));if(t.indexOf(Zv)>=0)return!0}var LF=new RegExp("["+Zv+"]+","g");function PBt(e){for(var t=e.split(/\n+/g),r=nS(t.shift()).split(LF),n=[],o=Ue(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var i=nS(t[a]).split(LF);n.push(i.shift());for(var s=0;s<i.length;s++)o[s]&&(o[s].data[a]=i[s])}return{series:o,categories:n}}function FBt(e){for(var t=e.split(/\n+/g),r=nS(t.shift()),n=[],o=0;o<t.length;o++){var a=nS(t[o]);if(a){var i=a.split(LF),s="",l=void 0,u=!1;isNaN(i[0])?(u=!0,s=i[0],i=i.slice(1),n[o]={name:s,value:[]},l=n[o].value):l=n[o]=[];for(var c=0;c<i.length;c++)l.push(+i[c]);l.length===1&&(u?n[o].value=l[0]:n[o]=l[0])}}return{name:r,data:n}}function kBt(e,t){var r=e.split(new RegExp(`
  6110. *`+DB+`
  6111. *`,"g")),n={series:[]};return z(r,function(o,a){if(MBt(o)){var i=PBt(o),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:i.categories},n.series=n.series.concat(i.series))}else{var i=FBt(o);n.series.push(i)}}),n}var LBt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var o=n.getDom(),a=this.model;this._dom&&o.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var d=a.get("optionToContent"),f=a.get("contentToOption"),A=DBt(r);if(bt(d)){var h=d(n.getOption());Je(h)?u.innerHTML=h:zv(h)&&u.appendChild(h)}else{c.readOnly=a.get("readOnly");var v=c.style;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=A.value,u.appendChild(c)}var p=A.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var x=this;function w(){o.removeChild(i),x._dom=null}hP(y,"click",w),hP(b,"click",function(){if(f==null&&d!=null||f!=null&&d==null){w();return}var C;try{bt(f)?C=f(u,n.getOption()):C=kBt(c.value,p)}catch(_){throw w(),new Error("Data view format error "+_)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),w()}),y.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y.style.cssText=m,!a.get("readOnly")&&g.appendChild(b),g.appendChild(y),i.appendChild(s),i.appendChild(u),i.appendChild(g),u.style.height=o.clientHeight-80+"px",o.appendChild(i),this._dom=i},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,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",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(wi);function OBt(e,t){return Ue(e,function(r,n){var o=t&&t[n];if(Tt(o)&&!Oe(o)){var a=Tt(r)&&!Oe(r);a||(r={value:r});var i=o.name!=null&&r.name==null;return r=Ct(r,o),i&&delete r.name,r}else return r})}Es({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];z(e.newOption.series,function(n){var o=t.getSeriesByName(n.name)[0];if(!o)r.push(Pe({type:"scatter"},n));else{var a=o.get("data");r.push({name:n.name,data:OBt(n.data,a)})}}),t.mergeOption(Ct({series:r},e.newOption))});const $Bt=LBt;var Ece=z,Ice=br();function UBt(e,t){var r=Q5(e);Ece(t,function(n,o){for(var a=r.length-1;a>=0;a--){var i=r[a];if(i[o])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:o})[0];if(s){var l=s.getPercentRange();r[0][o]={dataZoomId:o,start:l[0],end:l[1]}}}}),r.push(t)}function NBt(e){var t=Q5(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return Ece(r,function(o,a){for(var i=t.length-1;i>=0;i--)if(o=t[i][a],o){n[a]=o;break}}),n}function HBt(e){Ice(e).snapshots=null}function zBt(e){return Q5(e).length}function Q5(e){var t=Ice(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var QBt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){HBt(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,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",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(wi);Es({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const VBt=QBt;var WBt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],GBt=function(){function e(t,r,n){var o=this;this._targetInfoList=[];var a=zW(r,t);z(KBt,function(i,s){(!n||!n.include||Yt(n.include,s)>=0)&&i(a,o._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,o,a){if((n.coordRanges||(n.coordRanges=[])).push(o),!n.coordRange){n.coordRange=o;var i=aR[n.brushType](0,a,o);n.__rangeOffset={offset:GW[n.brushType](i.values,n.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){z(t,function(o){var a=this.findTargetInfo(o,r);a&&a!==!0&&z(a.coordSyses,function(i){var s=aR[o.brushType](1,i,o.range,!0);n(o,s.values,i,r)})},this)},e.prototype.setInputRanges=function(t,r){z(t,function(n){var o=this.findTargetInfo(n,r);if(n.range=n.range||[],o&&o!==!0){n.panelId=o.panelId;var a=aR[n.brushType](0,o.coordSys,n.coordRange),i=n.__rangeOffset;n.range=i?GW[n.brushType](a.values,i.offset,jBt(a.xyMinMax,i.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Ue(this._targetInfoList,function(n){var o=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:Lue(o),isTargetByCursor:$ue(o,t,n.coordSysModel),getLinearBrushOtherExtent:Oue(o)}})},e.prototype.controlSeries=function(t,r,n){var o=this.findTargetInfo(t,n);return o===!0||o&&Yt(o.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,o=zW(r,t),a=0;a<n.length;a++){var i=n[a],s=t.panelId;if(s){if(i.panelId===s)return i}else for(var l=0;l<QW.length;l++)if(QW[l](o,i))return i}return!0},e}();function OF(e){return e[0]>e[1]&&e.reverse(),e}function zW(e,t){return Q0(e,t,{includeMainTypes:WBt})}var KBt={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,o=e.gridModels,a=pt(),i={},s={};!r&&!n&&!o||(z(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),i[u.id]=!0}),z(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),z(o,function(l){a.set(l.id,l),i[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];z(u.getCartesians(),function(d,f){(Yt(r,d.getAxis("x").model)>=0||Yt(n,d.getAxis("y").model)>=0)&&c.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:VW.grid,xAxisDeclared:i[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){z(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:VW.geo})})}},QW=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,o=e.gridModel;return!o&&r&&(o=r.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],VW={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform($c(e)),t}},aR={lineX:Ut(WW,0),lineY:Ut(WW,1),rect:function(e,t,r,n){var o=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),i=[OF([o[0],a[0]]),OF([o[1],a[1]])];return{values:i,xyMinMax:i}},polygon:function(e,t,r,n){var o=[[1/0,-1/0],[1/0,-1/0]],a=Ue(r,function(i){var s=e?t.pointToData(i,n):t.dataToPoint(i,n);return o[0][0]=Math.min(o[0][0],s[0]),o[1][0]=Math.min(o[1][0],s[1]),o[0][1]=Math.max(o[0][1],s[0]),o[1][1]=Math.max(o[1][1],s[1]),s});return{values:a,xyMinMax:o}}};function WW(e,t,r,n){var o=r.getAxis(["x","y"][e]),a=OF(Ue([0,1],function(s){return t?o.coordToData(o.toLocalCoord(n[s]),!0):o.toGlobalCoord(o.dataToCoord(n[s]))})),i=[];return i[e]=a,i[1-e]=[NaN,NaN],{values:a,xyMinMax:i}}var GW={lineX:Ut(KW,0),lineY:Ut(KW,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Ue(e,function(n,o){return[n[0]-r[0]*t[o][0],n[1]-r[1]*t[o][1]]})}};function KW(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function jBt(e,t){var r=jW(e),n=jW(t),o=[r[0]/n[0],r[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function jW(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const V5=GBt;var $F=z,YBt=tut("toolbox-dataZoom_"),XBt=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,o,a){this._brushController||(this._brushController=new S5(o.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),JBt(r,n,this,a,o),ZBt(r,n)},t.prototype.onclick=function(r,n,o){qBt[o].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var o={},a=this.ecModel;this._brushController.updateCovers([]);var i=new V5(W5(this.model),a,{include:["grid"]});i.matchOutputRanges(n,a,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),UBt(a,o),this._dispatchZoomAction(o);function s(u,c,d){var f=c.getAxis(u),A=f.model,h=l(u,A,a),v=h.findRepresentativeAxisProxy(A).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(d=WA(0,d.slice(),f.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),h&&(o[h.id]={dataZoomId:h.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(A){var h=A.getAxisModel(u,c.componentIndex);h&&(f=A)}),f}},t.prototype._dispatchZoomAction=function(r){var n=[];$F(r,function(o,a){n.push(It(o))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(wi),qBt={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(NBt(this.ecModel))}};function W5(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function ZBt(e,t){e.setIconStatus("back",zBt(t)>1?"emphasis":"normal")}function JBt(e,t,r,n,o){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var i=new V5(W5(e),t,{include:["grid"]}),s=i.makePanelOpts(o,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Ldt("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),o=[],a=W5(n),i=Q0(e,a);$F(i.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),$F(i.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:YBt+u+d};f[c]=d,o.push(f)}return o});const e2t=XBt;function t2t(e){e.registerComponentModel(mBt),e.registerComponentView(wBt),Yh("saveAsImage",SBt),Yh("magicType",TBt),Yh("dataView",$Bt),Yh("dataZoom",e2t),Yh("restore",VBt),Jt(pBt)}var r2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(fr);const n2t=r2t;function Rce(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Dce(e){if(xr.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var Mce=Dce(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),o2t=Dce(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Pce(e,t){if(!e)return t;t=b4(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function a2t(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var i2t=Pce(o2t,"transition"),G5=Pce(Mce,"transform"),s2t="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xr.transform3dSupported?"will-change:transform;":"");function l2t(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function u2t(e,t,r){if(!Je(r)||r==="inside")return"";var n=e.get("backgroundColor"),o=e.get("borderWidth");t=gA(t);var a=l2t(r),i=Math.max(Math.round(o)*1.5,6),s="",l=G5+":",u;Yt(["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)");var c=u*Math.PI/180,d=i+o,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),A=Math.round(((f-Math.SQRT2*o)/2+Math.SQRT2*o-(f-d)/2)*100)/100;s+=";"+a+":-"+A+"px";var h=t+" solid "+o+"px;",v=["position:absolute;width:"+i+"px;height:"+i+"px;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function c2t(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,o="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,o+=xr.transformSupported?","+G5+n:",left"+n+",top"+n),i2t+":"+o}function YW(e,t,r){var n=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!xr.transformSupported)return r?"top:"+o+";left:"+n+";":[["top",o],["left",n]];var a=xr.transform3dSupported,i="translate"+(a?"3d":"")+"("+n+","+o+(a?",0":"")+")";return r?"top:0;left:0;"+G5+":"+i+";":[["top",0],["left",0],[Mce,i]]}function d2t(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,i=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+i+"px "+s+"px "+a+"px "+o),z(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function f2t(e,t,r){var n=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),i=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=$ie(e,"html"),f=l+"px "+u+"px "+i+"px "+s;return n.push("box-shadow:"+f),t&&o&&n.push(c2t(o,r)),a&&n.push("background-color:"+a),z(["width","color","radius"],function(A){var h="border-"+A,v=b4(h),p=e.get(v);p!=null&&n.push(h+":"+p+(A==="color"?"":"px"))}),n.push(d2t(c)),d!=null&&n.push("padding:"+zA(d).join("px ")+"px"),n.join(";")+";"}function XW(e,t,r,n,o){var a=t&&t.painter;if(r){var i=a&&a.getViewportRoot();i&&bst(e,i,document.body,n,o)}else{e[0]=n,e[1]=o;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var A2t=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,xr.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var a=this._zr=r.getZr(),i=this._appendToBody=n&&n.appendToBody;XW(this._styleCoord,a,i,r.getWidth()/2,r.getHeight()/2),i?document.body.appendChild(o):t.appendChild(o),this._container=t;var s=this;o.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},o.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();pi(c,l,!0),u.dispatch("mousemove",l)}},o.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=a2t(r,"position"),o=r.style;o.position!=="absolute"&&n!=="absolute"&&(o.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,o=n.style,a=this._styleCoord;n.innerHTML?o.cssText=s2t+f2t(t,!this._firstShow,this._longHide)+YW(a[0],a[1],!0)+("border-color:"+gA(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,o,a){var i=this.el;if(t==null){i.innerHTML="";return}var s="";if(Je(a)&&n.get("trigger")==="item"&&!Rce(n)&&(s=u2t(n,o,a)),Je(t))i.innerHTML=t+s;else if(t){i.innerHTML="",Oe(t)||(t=[t]);for(var l=0;l<t.length;l++)zv(t[l])&&t[l].parentNode!==i&&i.appendChild(t[l]);if(s&&i.childNodes.length){var u=document.createElement("div");u.innerHTML=s,i.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(XW(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var o=this.el.style,a=YW(n[0],n[1]);z(a,function(i){o[i[0]]=i[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",xr.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const h2t=A2t;var v2t=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),ZW(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,o,a){var i=this;Tt(t)&&Tr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new pr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:o,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:$ie(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){i.el.style[u]=n.get(u)}),z(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){i.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=qW(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var o=this._styleCoord;ZW(o,this._zr,t,r),t=o[0],r=o[1];var a=n.style,i=oc(a.borderWidth||0),s=qW(a);n.x=t+i+s.left,n.y=r+i+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function oc(e){return Math.max(0,e)}function qW(e){var t=oc(e.shadowBlur||0),r=oc(e.shadowOffsetX||0),n=oc(e.shadowOffsetY||0);return{left:oc(t-r),right:oc(t+r),top:oc(t-n),bottom:oc(t+n)}}function ZW(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const p2t=v2t;var g2t=new hr({shape:{x:-1,y:-1,width:2,height:2}}),m2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(xr.node||!n.getDom())){var o=r.getComponent("tooltip"),a=this._renderMode=lut(o.get("renderMode"));this._tooltipContent=a==="richText"?new p2t(n):new h2t(n.getDom(),n,{appendToBody:o.get("appendToBody",!0)})}},t.prototype.render=function(r,n,o){if(!(xr.node||!o.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=o,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Qp(this,"_updatePosition",50,"fixRate"):Xm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");pce("itemTooltip",this._api,at(function(o,a,i){n!=="none"&&(n.indexOf(o)>=0?this._tryShow(a,i):o==="leave"&&this._hide(i))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,o=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&i.manuallyShowTip(r,n,o,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,o,a){if(!(a.from===this.uid||xr.node||!o.getDom())){var i=JW(a,o);this._ticket="";var s=a.dataByCoordSys,l=w2t(a,n,o);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},i)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=g2t;c.x=a.x,c.y=a.y,c.update(),$t(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},i)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},i);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,o,a))return;var d=gce(a,n),f=d.point[0],A=d.point[1];f!=null&&A!=null&&this._tryShow({offsetX:f,offsetY:A,target:d.el,position:a.position,positionDefault:"bottom"},i)}else a.x!=null&&a.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:o.getZr().findHover(a.x,a.y).target},i))}},t.prototype.manuallyHideTip=function(r,n,o,a){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(JW(a,o))},t.prototype._manuallyAxisShowTip=function(r,n,o,a){var i=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(i==null||s==null||l==null)){var u=n.getSeriesByIndex(i);if(u){var c=u.getData(),d=kg([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var o=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var i=r.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,r);else if(o){this._lastDataByCoordSys=null;var s,l;ev(o,function(u){if($t(u).dataIndex!=null)return s=u,!0;if($t(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var o=r.get("showDelay");n=at(n,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(n,o):n()},t.prototype._showAxisTooltip=function(r,n){var o=this._ecModel,a=this._tooltipModel,i=[n.offsetX,n.offsetY],s=kg([n.tooltipOption],a),l=this._renderMode,u=[],c=vo("section",{blocks:[],noHeader:!0}),d=[],f=new GE;z(r,function(m){z(m.dataByAxis,function(y){var b=o.getComponent(y.axisDim+"Axis",y.axisIndex),x=y.value;if(!(!b||x==null)){var w=Ace(x,b.axis,o,y.seriesDataIndices,y.valueLabelOpt),C=vo("section",{header:w,noHeader:!Ei(w),sortBlocks:!0,blocks:[]});c.blocks.push(C),z(y.seriesDataIndices,function(_){var B=o.getSeriesByIndex(_.seriesIndex),T=_.dataIndexInside,E=B.getDataParams(T);if(!(E.dataIndex<0)){E.axisDim=y.axisDim,E.axisIndex=y.axisIndex,E.axisType=y.axisType,E.axisId=y.axisId,E.axisValue=X4(b.axis,{value:x}),E.axisValueLabel=w,E.marker=f.makeTooltipMarker("item",gA(E.color),l);var I=UQ(B.formatTooltip(T,!0,null)),R=I.frag;if(R){var D=kg([B],a).get("valueFormatter");C.blocks.push(D?Pe({valueFormatter:D},R):R)}I.text&&d.push(I.text),u.push(E)}})}})}),c.blocks.reverse(),d.reverse();var A=n.position,h=s.get("order"),v=WQ(c,f,l,h,o.get("useUTC"),s.get("textStyle"));v&&d.unshift(v);var p=l==="richText"?`
  6112. `:"<br/>",g=d.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,A,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",i[0],i[1],A,null,f)})},t.prototype._showSeriesItemTooltip=function(r,n,o){var a=this._ecModel,i=$t(n),s=i.seriesIndex,l=a.getSeriesByIndex(s),u=i.dataModel||l,c=i.dataIndex,d=i.dataType,f=u.getData(d),A=this._renderMode,h=r.positionDefault,v=kg([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=v.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(c,d),m=new GE;g.marker=m.makeTooltipMarker("item",gA(g.color),A);var y=UQ(u.formatTooltip(c,!1,d)),b=v.get("order"),x=v.get("valueFormatter"),w=y.frag,C=w?WQ(x?Pe({valueFormatter:x},w):w,m,A,b,a.get("useUTC"),v.get("textStyle")):y.text,_="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,C,g,_,r.offsetX,r.offsetY,r.position,r.target,m)}),o({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,o){var a=$t(n),i=a.tooltipConfig,s=i.option||{};if(Je(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=r.positionDefault,f=kg(u,this._tooltipModel,d?{position:d}:null),A=f.get("content"),h=Math.random()+"",v=new GE;this._showOrMove(f,function(){var p=It(f.get("formatterParams")||{});this._showTooltipContent(f,A,p,h,r.offsetX,r.offsetY,r.position,n,v)}),o({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,o,a,i,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var A=n,h=this._getNearestPoint([i,s],o,r.get("trigger"),r.get("borderColor")),v=h.color;if(f)if(Je(f)){var p=r.ecModel.get("useUTC"),g=Oe(o)?o[0]:o,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;A=f,m&&(A=eb(g.axisValue,A,p)),A=x4(A,o,!0)}else if(bt(f)){var y=at(function(b,x){b===this._ticket&&(d.setContent(x,c,r,v,l),this._updatePosition(r,l,i,s,d,o,u))},this);this._ticket=a,A=f(o,a,y)}else A=f;d.setContent(A,c,r,v,l),d.show(r,v),this._updatePosition(r,l,i,s,d,o,u)}},t.prototype._getNearestPoint=function(r,n,o,a){if(o==="axis"||Oe(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Oe(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,o,a,i,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var d=i.getSize(),f=r.get("align"),A=r.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),bt(n)&&(n=n([o,a],s,i.el,h,{viewSize:[u,c],contentSize:d.slice()})),Oe(n))o=qe(n[0],u),a=qe(n[1],c);else if(Tt(n)){var v=n;v.width=d[0],v.height=d[1];var p=jn(v,{width:u,height:c});o=p.x,a=p.y,f=null,A=null}else if(Je(n)&&l){var g=x2t(n,h,d,r.get("borderWidth"));o=g[0],a=g[1]}else{var g=y2t(o,a,i,u,c,f?null:20,A?null:20);o=g[0],a=g[1]}if(f&&(o-=eG(f)?d[0]/2:f==="right"?d[0]:0),A&&(a-=eG(A)?d[1]/2:A==="bottom"?d[1]:0),Rce(r)){var g=b2t(o,a,i,u,c);o=g[0],a=g[1]}i.moveTo(o,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var o=this._lastDataByCoordSys,a=this._cbParamsList,i=!!o&&o.length===r.length;return i&&z(o,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},d=c.dataByAxis||[];i=i&&u.length===d.length,i&&z(u,function(f,A){var h=d[A]||{},v=f.seriesDataIndices||[],p=h.seriesDataIndices||[];i=i&&f.value===h.value&&f.axisType===h.axisType&&f.axisId===h.axisId&&v.length===p.length,i&&z(v,function(g,m){var y=p[m];i=i&&g.seriesIndex===y.seriesIndex&&g.dataIndex===y.dataIndex}),a&&z(f.seriesDataIndices,function(g){var m=g.seriesIndex,y=n[m],b=a[m];y&&b&&b.data!==y.data&&(i=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!i},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){xr.node||!n.getDom()||(Xm(this,"_updatePosition"),this._tooltipContent.dispose(),PF("itemTooltip",n))},t.type="tooltip",t}(cn);function kg(e,t,r){var n=t.ecModel,o;r?(o=new Vr(r,n,n),o=new Vr(t.option,o,n)):o=t;for(var a=e.length-1;a>=0;a--){var i=e[a];i&&(i instanceof Vr&&(i=i.get("tooltip",!0)),Je(i)&&(i={formatter:i}),i&&(o=new Vr(i,o,n)))}return o}function JW(e,t){return e.dispatchAction||at(t.dispatchAction,t)}function y2t(e,t,r,n,o,a,i){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),i!=null&&(t+u+i>o?t-=u+i:t+=i),[e,t]}function b2t(e,t,r,n,o){var a=r.getSize(),i=a[0],s=a[1];return e=Math.min(e+i,n)-i,t=Math.min(t+s,o)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function x2t(e,t,r,n){var o=r[0],a=r[1],i=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-o/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-o/2,l=t.y-a-i;break;case"bottom":s=t.x+u/2-o/2,l=t.y+c+i;break;case"left":s=t.x-o-i,l=t.y+c/2-a/2;break;case"right":s=t.x+u+i,l=t.y+c/2-a/2}return[s,l]}function eG(e){return e==="center"||e==="middle"}function w2t(e,t,r){var n=JO(e).queryOptionMap,o=n.keys()[0];if(!(!o||o==="series")){var a=Ky(t,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),i=a.models[0];if(i){var s=r.getViewOfComponentModel(i),l;if(s.group.traverse(function(u){var c=$t(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:o,componentIndex:i.componentIndex,el:l}}}}const C2t=m2t;function S2t(e){Jt(fb),e.registerComponentModel(n2t),e.registerComponentView(C2t),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$n),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$n)}var _2t=["rect","polygon","keep","clear"];function B2t(e,t){var r=Wr(e?e.brush:[]);if(r.length){var n=[];z(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var o=e&&e.toolbox;Oe(o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var a=o.feature||(o.feature={}),i=a.brush||(a.brush={}),s=i.type||(i.type=[]);s.push.apply(s,n),T2t(s),t&&!s.length&&s.push.apply(s,_2t)}}function T2t(e){var t={};z(e,function(r){t[r]=1}),e.length=0,z(t,function(r,n){e.push(n)})}var tG=z;function rG(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function UF(e,t,r){var n={};return tG(t,function(a){var i=n[a]=o();tG(e[a],function(s,l){if(Po.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),i[l]=new Po(u),l==="opacity"&&(u=It(u),u.type="colorAlpha",i.__hidden.__alphaForOpacity=new Po(u))}})}),n;function o(){var a=function(){};a.prototype.__hidden=a.prototype;var i=new a;return i}}function Fce(e,t,r){var n;z(r,function(o){t.hasOwnProperty(o)&&rG(t[o])&&(n=!0)}),n&&z(r,function(o){t.hasOwnProperty(o)&&rG(t[o])?e[o]=It(t[o]):delete e[o]})}function E2t(e,t,r,n,o,a){var i={};z(e,function(d){var f=Po.prepareVisualTypes(t[d]);i[d]=f});var s;function l(d){return P4(r,s,d)}function u(d,f){jie(r,s,d,f)}a==null?r.each(c):r.each([a],c);function c(d,f){s=a==null?d:f;var A=r.getRawDataItem(s);if(!(A&&A.visualMap===!1))for(var h=n.call(o,d),v=t[h],p=i[h],g=0,m=p.length;g<m;g++){var y=p[g];v[y]&&v[y].applyVisual(d,l,u)}}}function I2t(e,t,r,n){var o={};return z(e,function(a){var i=Po.prepareVisualTypes(t[a]);o[a]=i}),{progress:function(i,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return P4(s,d,x)}function c(x,w){jie(s,d,x,w)}for(var d,f=s.getStore();(d=i.next())!=null;){var A=s.getRawDataItem(d);if(!(A&&A.visualMap===!1))for(var h=n!=null?f.get(l,d):d,v=r(h),p=t[v],g=o[v],m=0,y=g.length;m<y;m++){var b=g[m];p[b]&&p[b].applyVisual(h,u,c)}}}}}function R2t(e){var t=e.brushType,r={point:function(n){return nG[t].point(n,r,e)},rect:function(n){return nG[t].rect(n,r,e)}};return r}var nG={lineX:oG(0),lineY:oG(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Cf(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var o=e.x,a=e.y,i=e.width,s=e.height,l=n[0];if(Cf(n,o,a)||Cf(n,o+i,a)||Cf(n,o,a+s)||Cf(n,o+i,a+s)||Xt.create(e).contain(l[0],l[1])||i0(o,a,o+i,a,n)||i0(o,a,o,a+s,n)||i0(o+i,a,o+i,a+s,n)||i0(o,a+s,o+i,a+s,n))return!0}}};function oG(e){var t=["x","y"],r=["width","height"];return{point:function(n,o,a){if(n){var i=a.range,s=n[e];return Lg(s,i)}},rect:function(n,o,a){if(n){var i=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Lg(s[0],i)||Lg(s[1],i)||Lg(i[0],s)||Lg(i[1],s)}}}}function Lg(e,t){return t[0]<=e&&e<=t[1]}var aG=["inBrush","outOfBrush"],iR="__ecBrushSelect",NF="__ecInBrushSelectEvent";function kce(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new V5(t.option,e);r.setInputRanges(t.areas,e)})}function D2t(e,t,r){var n=[],o,a;e.eachComponent({mainType:"brush"},function(i){r&&r.type==="takeGlobalCursor"&&i.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),kce(e),e.eachComponent({mainType:"brush"},function(i,s){var l={brushId:i.id,brushIndex:s,brushName:i.name,areas:It(i.areas),selected:[]};n.push(l);var u=i.option,c=u.brushLink,d=[],f=[],A=[],h=!1;s||(o=u.throttleType,a=u.throttleDelay);var v=Ue(i.areas,function(x){var w=k2t[x.brushType],C=Ct({boundingRect:w?w(x):void 0},x);return C.selectors=R2t(C),C}),p=UF(i.option,aG,function(x){x.mappingMethod="fixed"});Oe(c)&&z(c,function(x){d[x]=1});function g(x){return c==="all"||!!d[x]}function m(x){return!!x.length}e.eachSeries(function(x,w){var C=A[w]=[];x.subType==="parallel"?y(x,w):b(x,w,C)});function y(x,w){var C=x.coordinateSystem;h=h||C.hasAxisBrushed(),g(w)&&C.eachActiveState(x.getData(),function(_,B){_==="active"&&(f[B]=1)})}function b(x,w,C){if(!(!x.brushSelector||F2t(i,w))&&(z(v,function(B){i.brushTargetManager.controlSeries(B,x,e)&&C.push(B),h=h||m(C)}),g(w)&&m(C))){var _=x.getData();_.each(function(B){iG(x,C,_,B)&&(f[B]=1)})}}e.eachSeries(function(x,w){var C={seriesId:x.id,seriesIndex:w,seriesName:x.name,dataIndex:[]};l.selected.push(C);var _=A[w],B=x.getData(),T=g(w)?function(E){return f[E]?(C.dataIndex.push(B.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return iG(x,_,B,E)?(C.dataIndex.push(B.getRawIndex(E)),"inBrush"):"outOfBrush"};(g(w)?h:m(_))&&E2t(aG,p,B,T)})}),M2t(t,o,a,n,r)}function M2t(e,t,r,n,o){if(o){var a=e.getZr();if(!a[NF]){a[iR]||(a[iR]=P2t);var i=Qp(a,iR,r,t);i(e,n)}}}function P2t(e,t){if(!e.isDisposed()){var r=e.getZr();r[NF]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[NF]=!1}}function iG(e,t,r,n){for(var o=0,a=t.length;o<a;o++){var i=t[o];if(e.brushSelector(n,r,i.selectors,i))return!0}}function F2t(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Oe(r)?Yt(r,t)<0:t!==r)}var k2t={rect:function(e){return sG(e.range)},polygon:function(e){for(var t,r=e.range,n=0,o=r.length;n<o;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&sG(t)}};function sG(e){return new Xt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var L2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new S5(n.getZr())).on("brush",at(this._onBrush,this)).mount()},t.prototype.render=function(r,n,o,a){this.model=r,this._updateController(r,n,o,a)},t.prototype.updateTransform=function(r,n,o,a){kce(n),this._updateController(r,n,o,a)},t.prototype.updateVisual=function(r,n,o,a){this.updateTransform(r,n,o,a)},t.prototype.updateView=function(r,n,o,a){this._updateController(r,n,o,a)},t.prototype._updateController=function(r,n,o,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(o)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,o=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:It(o),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:It(o),$from:n})},t.type="brush",t}(cn);const O2t=L2t;var $2t="#ddd",U2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var o=this.option;!n&&Fce(o,r,["inBrush","outOfBrush"]);var a=o.inBrush=o.inBrush||{};o.outOfBrush=o.outOfBrush||{color:$2t},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Ue(r,function(n){return lG(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=lG(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(fr);function lG(e,t){return Qt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Vr(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const N2t=U2t;var H2t=["rect","polygon","lineX","lineY","keep","clear"],z2t=function(e){we(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,o){var a,i,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,i=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=i,z(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?i==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,o){this.render(r,n,o)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),o={};return z(r.get("type",!0),function(a){n[a]&&(o[a]=n[a])}),o},t.prototype.onclick=function(r,n,o){var a=this._brushType,i=this._brushMode;o==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:o==="keep"?a:a===o?!1:o,brushMode:o==="keep"?i==="multiple"?"single":"multiple":i}})},t.getDefaultOption=function(r){var n={show:!0,type:H2t.slice(),icon:{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",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",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",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",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",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"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(wi);const Q2t=z2t;function V2t(e){e.registerComponentView(O2t),e.registerComponentModel(N2t),e.registerPreprocessor(B2t),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,D2t),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$n),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$n),Yh("brush",Q2t)}var W2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(fr),G2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,o){if(this.group.removeAll(),!!r.get("show")){var a=this.group,i=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Zt(r.get("textBaseline"),r.get("textVerticalAlign")),c=new pr({style:un(i,{text:r.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=r.get("subtext"),A=new pr({style:un(s,{text:f,fill:s.getTextColor(),y:d.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=r.get("link"),v=r.get("sublink"),p=r.get("triggerEvent",!0);c.silent=!h&&!p,A.silent=!v&&!p,h&&c.on("click",function(){RC(h,"_"+r.get("target"))}),v&&A.on("click",function(){RC(v,"_"+r.get("subtarget"))}),$t(c).eventData=$t(A).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),f&&a.add(A);var g=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=jn(m,{width:o.getWidth(),height:o.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),a.x=y.x,a.y=y.y,a.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),A.setStyle(b),g=a.getBoundingRect();var x=y.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var C=new hr({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t}(cn);function K2t(e){e.registerComponentModel(W2t),e.registerComponentView(G2t)}var j2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],o=r.axisType,a=this._names=[],i;o==="category"?(i=[],z(n,function(u,c){var d=ro(Rp(u),""),f;Tt(u)?(f=It(u),f.value=c):f=c,i.push(f),a.push(d)})):i=n;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",l=this._data=new Yo([{name:"value",type:s}],this);l.initData(i,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(fr);const uG=j2t;var Lce=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Sd(uG.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",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",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",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",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",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(uG);Rn(Lce,I4.prototype);const Y2t=Lce;var X2t=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(cn);const q2t=X2t;var Z2t=function(e){we(t,e);function t(r,n,o,a){var i=e.call(this,r,n,o)||this;return i.type=a||"value",i}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Yi);const J2t=Z2t;var sR=Math.PI,cG=br(),eTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,o){if(this.model=r,this.api=o,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,o),i=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return vo("nameValue",{noName:!0,value:c})},z(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,i,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var o=r.get(["label","position"]),a=r.get("orient"),i=rTt(r,n),s;o==null||o==="auto"?s=a==="horizontal"?i.y+i.height/2<n.getHeight()/2?"-":"+":i.x+i.width/2<n.getWidth()/2?"+":"-":Je(o)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][o]:s=o;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:sR/2},d=a==="vertical"?i.height:i.width,f=r.getModel("controlStyle"),A=f.get("show",!0),h=A?f.get("itemSize"):0,v=A?f.get("itemGap"):0,p=h+v,g=r.get(["label","rotate"])||0;g=g*sR/180;var m,y,b,x=f.get("position",!0),w=A&&f.get("showPlayBtn",!0),C=A&&f.get("showPrevBtn",!0),_=A&&f.get("showNextBtn",!0),B=0,T=d;x==="left"||x==="bottom"?(w&&(m=[0,0],B+=p),C&&(y=[B,0],B+=p),_&&(b=[T-h,0],T-=p)):(w&&(m=[T-h,0],T-=p),C&&(y=[0,0],B+=p),_&&(b=[T-h,0],T-=p));var E=[B,T];return r.get("inverse")&&E.reverse(),{viewRect:i,mainLength:d,orient:a,rotation:c[a],labelRotation:g,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:y,nextBtnPosition:b,axisExtent:E,controlSize:h,controlGap:v}},t.prototype._position=function(r,n){var o=this._mainGroup,a=this._labelGroup,i=r.viewRect;if(r.orient==="vertical"){var s=ti(),l=i.x,u=i.y+i.height;bs(s,s,[-l,-u]),wd(s,s,-sR/2),bs(s,s,[l,u]),i=i.clone(),i.applyTransform(s)}var c=m(i),d=m(o.getBoundingRect()),f=m(a.getBoundingRect()),A=[o.x,o.y],h=[a.x,a.y];h[0]=A[0]=c[0][0];var v=r.labelPosOpt;if(v==null||Je(v)){var p=v==="+"?0:1;y(A,d,c,1,p),y(h,f,c,1,1-p)}else{var p=v>=0?0:1;y(A,d,c,1,p),h[1]=A[1]+v}o.setPosition(A),a.setPosition(h),o.rotation=a.rotation=r.rotation,g(o),g(a);function g(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function m(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function y(b,x,w,C,_){b[C]+=w[C][_]-x[C][_]}},t.prototype._createAxis=function(r,n){var o=n.getData(),a=n.get("axisType"),i=tTt(n,a);i.getTicks=function(){return o.mapArray(["value"],function(u){return{value:u}})};var s=o.getDataExtent("value");i.setExtent(s[0],s[1]),i.calcNiceTicks();var l=new J2t("value",i,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Pt;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,o,a){var i=o.getExtent();if(a.get(["lineStyle","show"])){var s=new co({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Pe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new co({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Ct({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,o,a){var i=this,s=a.getData(),l=o.scale.getTicks();this._tickSymbols=[],z(l,function(u){var c=o.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),A=d.getModel(["emphasis","itemStyle"]),h=d.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:at(i._changeTimeline,i,u.value)},p=dG(d,f,n,v);p.ensureState("emphasis").style=A.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),Oc(p);var g=$t(p);d.get("tooltip")?(g.dataIndex=u.value,g.dataModel=a):g.dataIndex=g.dataModel=null,i._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(r,n,o,a){var i=this,s=o.getLabelModel();if(s.get("show")){var l=a.getData(),u=o.getViewLabels();this._tickLabels=[],z(u,function(c){var d=c.tickValue,f=l.getItemModel(d),A=f.getModel("label"),h=f.getModel(["emphasis","label"]),v=f.getModel(["progress","label"]),p=o.dataToCoord(c.tickValue),g=new pr({x:p,y:0,rotation:r.labelRotation-r.rotation,onclick:at(i._changeTimeline,i,d),silent:!1,style:un(A,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});g.ensureState("emphasis").style=un(h),g.ensureState("progress").style=un(v),n.add(g),Oc(g),cG(g).dataIndex=d,i._tickLabels.push(g)})}},t.prototype._renderControl=function(r,n,o,a){var i=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),d=a.get("inverse",!0);f(r.nextBtnPosition,"next",at(this._changeTimeline,this,d?"-":"+")),f(r.prevBtnPosition,"prev",at(this._changeTimeline,this,d?"+":"-")),f(r.playPosition,c?"stop":"play",at(this._handlePlayClick,this,!c),!0);function f(A,h,v,p){if(A){var g=xs(Zt(a.get(["controlStyle",h+"BtnSize"]),i),i),m=[0,-g/2,g,g],y=nTt(a,h+"Icon",m,{x:A[0],y:A[1],originX:i/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:v});y.ensureState("emphasis").style=u,n.add(y),Oc(y)}}},t.prototype._renderCurrentPointer=function(r,n,o,a){var i=a.getData(),s=a.getCurrentIndex(),l=i.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=at(u._handlePointerDrag,u),d.ondragend=at(u._handlePointerDragend,u),fG(d,u._progressLine,s,o,a,!0)},onUpdate:function(d){fG(d,u._progressLine,s,o,a)}};this._currentPointer=dG(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var o=this._toAxisCoord(r)[0],a=this._axis,i=ja(a.getExtent().slice());o>i[1]&&(o=i[1]),o<i[0]&&(o=i[0]),this._currentPointer.x=o,this._currentPointer.markRedraw(),this._progressLine.shape.x2=o,this._progressLine.dirty();var s=this._findNearestTick(o),l=this.model;(n||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return vs(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),o=1/0,a,i=this._axis;return n.each(["value"],function(s,l){var u=i.dataToCoord(s),c=Math.abs(u-r);c<o&&(o=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,o=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(o)for(var a=0;a<o.length;a++)o&&o[a]&&o[a].toggleState("progress",cG(o[a]).dataIndex<=r)},t.type="timeline.slider",t}(q2t);function tTt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new G4({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Nse({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new sd}}function rTt(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function nTt(e,t,r,n){var o=n.style,a=Fp(e.get(["controlStyle",t]),n||{},new Xt(r[0],r[1],r[2],r[3]));return o&&a.setStyle(o),a}function dG(e,t,r,n,o,a){var i=t.get("color");if(o)o.setColor(i),r.add(o),a&&a.onUpdate(o);else{var s=e.get("symbol");o=Nn(s,-1,-1,2,2,i),o.setStyle("strokeNoScale",!0),r.add(o),a&&a.onCreate(o)}var l=t.getItemStyle(["color"]);o.setStyle(l),n=Qt({rectHover:!0,z2:100},n,!0);var u=rb(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Vp(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var d=e.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,o.attr(n),o.updateTransform(),o}function fG(e,t,r,n,o,a){if(!e.dragging){var i=o.getModel("checkpointStyle"),s=n.dataToCoord(o.getData().get("value",r));if(a||!i.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:i.get("animationDuration",!0),easing:i.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const oTt=eTt;function aTt(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var o=r.getComponent("timeline");return o&&t.currentIndex!=null&&(o.setCurrentIndex(t.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),Ct({currentIndex:o.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function iTt(e){var t=e&&e.timeline;Oe(t)||(t=t?[t]:[]),z(t,function(r){r&&sTt(r)})}function sTt(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),AG(e),Bf(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Bf(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Bf(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}z(e.data||[],function(o){Tt(o)&&!Oe(o)&&(!Bf(o,"value")&&Bf(o,"name")&&(o.value=o.name),AG(o))})}function AG(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},o=n.normal||(n.normal={}),a={normal:1,emphasis:1};z(n,function(i,s){!a[s]&&!Bf(o,s)&&(o[s]=i)}),r.label&&!Bf(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Bf(e,t){return e.hasOwnProperty(t)}function lTt(e){e.registerComponentModel(Y2t),e.registerComponentView(oTt),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),aTt(e),e.registerPreprocessor(iTt)}function K5(e,t){if(!e)return!1;for(var r=Oe(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Sx(e){AA(e,"label",["show"])}var _x=br(),Oce=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o),this._mergeOption(r,o,!1,!0)},t.prototype.isAnimationEnabled=function(){if(xr.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,o,a){var i=this.mainType;o||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=_x(s)[i];if(!l||!l.data){_x(s)[i]=null;return}u?u._mergeOption(l,n,!0):(a&&Sx(l),z(l.data,function(c){c instanceof Array?(Sx(c[0]),Sx(c[1])):Sx(c)}),u=this.createMarkerModelFromSeries(l,this,n),Pe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),_x(s)[i]=u},this)},t.prototype.formatTooltip=function(r,n,o){var a=this.getData(),i=this.getRawValue(r),s=a.getName(r);return vo("section",{header:this.name,blocks:[vo("nameValue",{name:s,value:i,noName:!s,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return _x(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(fr);Rn(Oce,I4.prototype);const cd=Oce;var uTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,o){return new t(r,n,o)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(cd);const cTt=uTt;function HF(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function dTt(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Bx(e,t,r,n,o,a){var i=[],s=bu(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=j5(t,l,e),c=t.indicesOfNearest(l,u)[0];i[o]=t.get(r,c),i[a]=t.get(l,c);var d=t.get(n,c),f=cs(t.get(n,c));return f=Math.min(f,20),f>=0&&(i[a]=+i[a].toFixed(f)),[i,d]}var lR={min:Ut(Bx,"min"),max:Ut(Bx,"max"),average:Ut(Bx,"average"),median:Ut(Bx,"median")};function uy(e,t){var r=e.getData(),n=e.coordinateSystem;if(t&&!dTt(t)&&!Oe(t.coord)&&n){var o=n.dimensions,a=$ce(t,r,n,e);if(t=It(t),t.type&&lR[t.type]&&a.baseAxis&&a.valueAxis){var i=Yt(o,a.baseAxis.dim),s=Yt(o,a.valueAxis.dim),l=lR[t.type](r,a.baseDataDim,a.valueDataDim,i,s);t.coord=l[0],t.value=l[1]}else{for(var u=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis],c=0;c<2;c++)lR[u[c]]&&(u[c]=j5(r,r.mapDimension(o[c]),u[c]));t.coord=u}}return t}function $ce(e,t,r,n){var o={};return e.valueIndex!=null||e.valueDim!=null?(o.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=r.getAxis(fTt(n,o.valueDataDim)),o.baseAxis=r.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=r.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function fTt(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function cy(e,t){return e&&e.containData&&t.coord&&!HF(t)?e.containData(t.coord):!0}function ATt(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!HF(t)&&!HF(r)?e.containZone(t.coord,r.coord):!0}function Uce(e,t){return e?function(r,n,o,a){var i=a<2?r.coord&&r.coord[a]:r.value;return Nc(i,t[a])}:function(r,n,o,a){return Nc(r.value,t[a])}}function j5(e,t,r){if(r==="average"){var n=0,o=0;return e.each(t,function(a,i){isNaN(a)||(n+=a,o++)}),n/o}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var uR=br(),hTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=pt()},t.prototype.render=function(r,n,o){var a=this,i=this.markerGroupMap;i.each(function(s){uR(s).keep=!1}),n.eachSeries(function(s){var l=cd.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,o)}),i.each(function(s){!uR(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){uR(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var o=this;z(r,function(a){var i=cd.getMarkerModelFromSeries(a,o.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(n?Aae(l):a4(l))})}})},t.type="marker",t}(cn);const Y5=hTt;function hG(e,t,r){var n=t.coordinateSystem;e.each(function(o){var a=e.getItemModel(o),i,s=qe(a.get("x"),r.getWidth()),l=qe(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))i=[s,l];else if(t.getMarkerPosition)i=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(n){var u=e.get(n.dimensions[0],o),c=e.get(n.dimensions[1],o);i=n.dataToPoint([u,c])}isNaN(s)||(i[0]=s),isNaN(l)||(i[1]=l),e.setItemLayout(o,i)})}var vTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,o){n.eachSeries(function(a){var i=cd.getMarkerModelFromSeries(a,"markPoint");i&&(hG(i.getData(),a,o),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,o,a){var i=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new ib),d=pTt(i,r,n);n.setData(d),hG(n.getData(),r,a),d.each(function(f){var A=d.getItemModel(f),h=A.getShallow("symbol"),v=A.getShallow("symbolSize"),p=A.getShallow("symbolRotate"),g=A.getShallow("symbolOffset"),m=A.getShallow("symbolKeepAspect");if(bt(h)||bt(v)||bt(p)||bt(g)){var y=n.getRawValue(f),b=n.getDataParams(f);bt(h)&&(h=h(y,b)),bt(v)&&(v=v(y,b)),bt(p)&&(p=p(y,b)),bt(g)&&(g=g(y,b))}var x=A.getModel("itemStyle").getItemStyle(),w=tb(l,"color");x.fill||(x.fill=w),d.setItemVisual(f,{symbol:h,symbolSize:v,symbolRotate:p,symbolOffset:g,symbolKeepAspect:m,style:x})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(A){$t(A).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(Y5);function pTt(e,t,r){var n;e?n=Ue(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Pe(Pe({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var o=new Yo(n,r),a=Ue(r.get("data"),Ut(uy,t));e&&(a=kr(a,Ut(cy,e)));var i=Uce(!!e,n);return o.initData(a,null,i),o}const gTt=vTt;function mTt(e){e.registerComponentModel(cTt),e.registerComponentView(gTt),e.registerPreprocessor(function(t){K5(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var yTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,o){return new t(r,n,o)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(cd);const bTt=yTt;var Tx=br(),xTt=function(e,t,r,n){var o=e.getData(),a;if(Oe(n))a=n;else{var i=n.type;if(i==="min"||i==="max"||i==="average"||i==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=uo(n.yAxis,n.xAxis);else{var u=$ce(n,o,t,e);s=u.valueAxis;var c=W4(o,u.valueDataDim);l=j5(o,c,i)}var d=s.dim==="x"?0:1,f=1-d,A=It(n),h={coord:[]};A.type=null,A.coord=[],A.coord[f]=-1/0,h.coord[f]=1/0;var v=r.get("precision");v>=0&&vr(l)&&(l=+l.toFixed(Math.min(v,20))),A.coord[d]=h.coord[d]=l,a=[A,h,{type:i,valueIndex:n.valueIndex,value:l}]}else a=[]}var p=[uy(e,a[0]),uy(e,a[1]),Pe({},a[2])];return p[2].type=p[2].type||null,Qt(p[2],p[0]),Qt(p[2],p[1]),p};function oS(e){return!isNaN(e)&&!isFinite(e)}function vG(e,t,r,n){var o=1-e,a=n.dimensions[e];return oS(t[o])&&oS(r[o])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function wTt(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(vG(1,r,n,e)||vG(0,r,n,e)))return!0}return cy(e,t[0])&&cy(e,t[1])}function cR(e,t,r,n,o){var a=n.coordinateSystem,i=e.getItemModel(t),s,l=qe(i.get("x"),o.getWidth()),u=qe(i.get("y"),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);s=a.dataToPoint([d,f])}if(QA(a,"cartesian2d")){var A=a.getAxis("x"),h=a.getAxis("y"),c=a.dimensions;oS(e.get(c[0],t))?s[0]=A.toGlobalCoord(A.getExtent()[r?0:1]):oS(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var CTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,o){n.eachSeries(function(a){var i=cd.getMarkerModelFromSeries(a,"markLine");if(i){var s=i.getData(),l=Tx(i).from,u=Tx(i).to;l.each(function(c){cR(l,c,!0,a,o),cR(u,c,!1,a,o)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,o,a){var i=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new m5);this.group.add(c.group);var d=STt(i,r,n),f=d.from,A=d.to,h=d.line;Tx(n).from=f,Tx(n).to=A,n.setData(h);var v=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),m=n.get("symbolOffset");Oe(v)||(v=[v,v]),Oe(p)||(p=[p,p]),Oe(g)||(g=[g,g]),Oe(m)||(m=[m,m]),d.from.each(function(b){y(f,b,!0),y(A,b,!1)}),h.each(function(b){var x=h.getItemModel(b).getModel("lineStyle").getLineStyle();h.setItemLayout(b,[f.getItemLayout(b),A.getItemLayout(b)]),x.stroke==null&&(x.stroke=f.getItemVisual(b,"style").fill),h.setItemVisual(b,{fromSymbolKeepAspect:f.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(b,"symbolOffset"),fromSymbolRotate:f.getItemVisual(b,"symbolRotate"),fromSymbolSize:f.getItemVisual(b,"symbolSize"),fromSymbol:f.getItemVisual(b,"symbol"),toSymbolKeepAspect:A.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:A.getItemVisual(b,"symbolOffset"),toSymbolRotate:A.getItemVisual(b,"symbolRotate"),toSymbolSize:A.getItemVisual(b,"symbolSize"),toSymbol:A.getItemVisual(b,"symbol"),style:x})}),c.updateData(h),d.line.eachItemGraphicEl(function(b){$t(b).dataModel=n,b.traverse(function(x){$t(x).dataModel=n})});function y(b,x,w){var C=b.getItemModel(x);cR(b,x,w,r,a);var _=C.getModel("itemStyle").getItemStyle();_.fill==null&&(_.fill=tb(l,"color")),b.setItemVisual(x,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Zt(C.get("symbolOffset",!0),m[w?0:1]),symbolRotate:Zt(C.get("symbolRotate",!0),g[w?0:1]),symbolSize:Zt(C.get("symbolSize"),p[w?0:1]),symbol:Zt(C.get("symbol",!0),v[w?0:1]),style:_})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(Y5);function STt(e,t,r){var n;e?n=Ue(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Pe(Pe({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var o=new Yo(n,r),a=new Yo(n,r),i=new Yo([],r),s=Ue(r.get("data"),Ut(xTt,t,e,r));e&&(s=kr(s,Ut(wTt,e)));var l=Uce(!!e,n);return o.initData(Ue(s,function(u){return u[0]}),null,l),a.initData(Ue(s,function(u){return u[1]}),null,l),i.initData(Ue(s,function(u){return u[2]})),i.hasItemOption=!0,{from:o,to:a,line:i}}const _Tt=CTt;function BTt(e){e.registerComponentModel(bTt),e.registerComponentView(_Tt),e.registerPreprocessor(function(t){K5(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var TTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,o){return new t(r,n,o)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(cd);const ETt=TTt;var Ex=br(),ITt=function(e,t,r,n){var o=uy(e,n[0]),a=uy(e,n[1]),i=o.coord,s=a.coord;i[0]=uo(i[0],-1/0),i[1]=uo(i[1],-1/0),s[0]=uo(s[0],1/0),s[1]=uo(s[1],1/0);var l=Q_([{},o,a]);return l.coord=[o.coord,a.coord],l.x0=o.x,l.y0=o.y,l.x1=a.x,l.y1=a.y,l};function aS(e){return!isNaN(e)&&!isFinite(e)}function pG(e,t,r,n){var o=1-e;return aS(t[o])&&aS(r[o])}function RTt(e,t){var r=t.coord[0],n=t.coord[1],o={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return QA(e,"cartesian2d")?r&&n&&(pG(1,r,n)||pG(0,r,n))?!0:ATt(e,o,a):cy(e,o)||cy(e,a)}function gG(e,t,r,n,o){var a=n.coordinateSystem,i=e.getItemModel(t),s,l=qe(i.get(r[0]),o.getWidth()),u=qe(i.get(r[1]),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(r,t));else{var c=e.get(r[0],t),d=e.get(r[1],t),f=[c,d];a.clampData&&a.clampData(f,f),s=a.dataToPoint(f,!0)}if(QA(a,"cartesian2d")){var A=a.getAxis("x"),h=a.getAxis("y"),c=e.get(r[0],t),d=e.get(r[1],t);aS(c)?s[0]=A.toGlobalCoord(A.getExtent()[r[0]==="x0"?0:1]):aS(d)&&(s[1]=h.toGlobalCoord(h.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var mG=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],DTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,o){n.eachSeries(function(a){var i=cd.getMarkerModelFromSeries(a,"markArea");if(i){var s=i.getData();s.each(function(l){var u=Ue(mG,function(d){return gG(s,l,d,a,o)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,o,a){var i=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Pt});this.group.add(c.group),this.markKeep(c);var d=MTt(i,r,n);n.setData(d),d.each(function(f){var A=Ue(mG,function(_){return gG(d,f,_,r,a)}),h=i.getAxis("x").scale,v=i.getAxis("y").scale,p=h.getExtent(),g=v.getExtent(),m=[h.parse(d.get("x0",f)),h.parse(d.get("x1",f))],y=[v.parse(d.get("y0",f)),v.parse(d.get("y1",f))];ja(m),ja(y);var b=!(p[0]>m[1]||p[1]<m[0]||g[0]>y[1]||g[1]<y[0]),x=!b;d.setItemLayout(f,{points:A,allClipped:x});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),C=tb(l,"color");w.fill||(w.fill=C,Je(w.fill)&&(w.fill=$m(w.fill,.4))),w.stroke||(w.stroke=C),d.setItemVisual(f,"style",w)}),d.diff(Ex(c).data).add(function(f){var A=d.getItemLayout(f);if(!A.allClipped){var h=new ua({shape:{points:A.points}});d.setItemGraphicEl(f,h),c.group.add(h)}}).update(function(f,A){var h=Ex(c).data.getItemGraphicEl(A),v=d.getItemLayout(f);v.allClipped?h&&c.group.remove(h):(h?gr(h,{shape:{points:v.points}},n,f):h=new ua({shape:{points:v.points}}),d.setItemGraphicEl(f,h),c.group.add(h))}).remove(function(f){var A=Ex(c).data.getItemGraphicEl(f);c.group.remove(A)}).execute(),d.eachItemGraphicEl(function(f,A){var h=d.getItemModel(A),v=d.getItemVisual(A,"style");f.useStyle(d.getItemVisual(A,"style")),Zo(f,wo(h),{labelFetcher:n,labelDataIndex:A,defaultText:d.getName(A)||"",inheritColor:Je(v.fill)?$m(v.fill,1):"#000"}),Oo(f,h),In(f,null,null,h.get(["emphasis","disabled"])),$t(f).dataModel=n}),Ex(c).data=d,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(Y5);function MTt(e,t,r){var n,o,a=["x0","y0","x1","y1"];if(e){var i=Ue(e&&e.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return Pe(Pe({},d),{name:u,ordinalMeta:null})});o=Ue(a,function(u,c){return{name:u,type:i[c%2].type}}),n=new Yo(o,r)}else o=[{name:"value",type:"float"}],n=new Yo(o,r);var s=Ue(r.get("data"),Ut(ITt,t,e,r));e&&(s=kr(s,Ut(RTt,e)));var l=e?function(u,c,d,f){var A=u.coord[Math.floor(f/2)][f%2];return Nc(A,o[f])}:function(u,c,d,f){return Nc(u.value,o[f])};return n.initData(s,null,l),n.hasItemOption=!0,n}const PTt=DTt;function FTt(e){e.registerComponentModel(ETt),e.registerComponentView(PTt),e.registerPreprocessor(function(t){K5(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var kTt=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},LTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,o=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Oe(n)&&z(n,function(a,i){Je(a)&&(a={type:a}),n[i]=Qt(a,kTt(o,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,o=0;o<r.length;o++){var a=r[o].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],o=[];r.eachRawSeries(function(s){var l=s.name;o.push(l);var u;if(s.legendVisualProvider){var c=s.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(s)||(o=o.concat(d)),d.length?n=n.concat(d):u=!0}else u=!0;u&&ZO(s)&&n.push(s.name)}),this._availableNames=o;var a=this.get("data")||n,i=Ue(a,function(s){return(Je(s)||vr(s))&&(s={name:s}),new Vr(s,this,this.ecModel)},this);this._data=i},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,o=this.get("selectedMode");if(o==="single"){var a=this._data;z(a,function(i){n[i.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;z(r,function(o){n[o.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;z(r,function(o){var a=o.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Yt(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(fr);const zF=LTt;var Dh=Ut,QF=z,Ix=Pt,OTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ix),this.group.add(this._selectorGroup=new Ix),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,o){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var i=r.get("align"),s=r.get("orient");(!i||i==="auto")&&(i=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(i,r,n,o,l,s,u);var c=r.getBoxLayoutParams(),d={width:o.getWidth(),height:o.getHeight()},f=r.get("padding"),A=jn(c,d,f),h=this.layoutInner(r,i,A,a,l,u),v=jn(Ct({width:h.width,height:h.height},c),d,f);this.group.x=v.x-h.x,this.group.y=v.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Tce(h,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,o,a,i,s,l){var u=this.getContentGroup(),c=pt(),d=n.get("selectedMode"),f=[];o.eachRawSeries(function(A){!A.get("legendHoverLink")&&f.push(A.id)}),QF(n.getData(),function(A,h){var v=A.get("name");if(!this.newlineDisabled&&(v===""||v===`
  6113. `)){var p=new Ix;p.newline=!0,u.add(p);return}var g=o.getSeriesByName(v)[0];if(!c.get(v))if(g){var m=g.getData(),y=m.getVisual("legendLineStyle")||{},b=m.getVisual("legendIcon"),x=m.getVisual("style"),w=this._createItem(g,v,h,A,n,r,y,x,b,d,a);w.on("click",Dh(yG,v,null,a,f)).on("mouseover",Dh(VF,g.name,null,a,f)).on("mouseout",Dh(WF,g.name,null,a,f)),c.set(v,!0)}else o.eachRawSeries(function(C){if(!c.get(v)&&C.legendVisualProvider){var _=C.legendVisualProvider;if(!_.containName(v))return;var B=_.indexOfName(v),T=_.getItemVisual(B,"style"),E=_.getItemVisual(B,"legendIcon"),I=ia(T.fill);I&&I[3]===0&&(I[3]=.2,T=Pe(Pe({},T),{fill:hs(I,"rgba")}));var R=this._createItem(C,v,h,A,n,r,{},T,E,d,a);R.on("click",Dh(yG,null,v,a,f)).on("mouseover",Dh(VF,null,v,a,f)).on("mouseout",Dh(WF,null,v,a,f)),c.set(v,!0)}},this)},this),i&&this._createSelector(i,n,a,s,l)},t.prototype._createSelector=function(r,n,o,a,i){var s=this.getSelectorGroup();QF(r,function(u){var c=u.type,d=new pr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=n.getModel("selectorLabel"),A=n.getModel(["emphasis","selectorLabel"]);Zo(d,{normal:f,emphasis:A},{defaultText:u.title}),Oc(d)})},t.prototype._createItem=function(r,n,o,a,i,s,l,u,c,d,f){var A=r.visualDrawType,h=i.get("itemWidth"),v=i.get("itemHeight"),p=i.isSelected(n),g=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),y=a.get("icon");c=y||c||"roundRect";var b=$Tt(c,a,l,u,A,p,f),x=new Ix,w=a.getModel("textStyle");if(bt(r.getLegendIcon)&&(!y||y==="inherit"))x.add(r.getLegendIcon({itemWidth:h,itemHeight:v,icon:c,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));else{var C=y==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;x.add(UTt({itemWidth:h,itemHeight:v,icon:c,iconRotate:C,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}var _=s==="left"?h+5:-5,B=s,T=i.get("formatter"),E=n;Je(T)&&T?E=T.replace("{name}",n!=null?n:""):bt(T)&&(E=T(n));var I=a.get("inactiveColor");x.add(new pr({style:un(w,{text:E,x:_,y:v/2,fill:p?w.getTextColor():I,align:B,verticalAlign:"middle"})}));var R=new hr({shape:x.getBoundingRect(),invisible:!0}),D=a.getModel("tooltip");return D.get("show")&&kp({el:R,componentModel:i,itemName:n,itemTooltipOption:D.option}),x.add(R),x.eachChild(function(F){F.silent=!0}),R.silent=!d,this.getContentGroup().add(x),Oc(x),x.__legendDataIndex=o,x},t.prototype.layoutInner=function(r,n,o,a,i,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Jf(r.get("orient"),l,r.get("itemGap"),o.width,o.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),i){Jf("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),A=[-f.x,-f.y],h=r.get("selectorButtonGap",!0),v=r.getOrient().index,p=v===0?"width":"height",g=v===0?"height":"width",m=v===0?"y":"x";s==="end"?A[v]+=c[p]+h:d[v]+=f[p]+h,A[1-v]+=c[g]/2-f[g]/2,u.x=A[0],u.y=A[1],l.x=d[0],l.y=d[1];var y={x:0,y:0};return y[p]=c[p]+h+f[p],y[g]=Math.max(c[g],f[g]),y[m]=Math.min(0,f[m]+A[1-v]),y}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(cn);function $Tt(e,t,r,n,o,a,i){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),QF(p,function(m,y){p[y]==="inherit"&&(p[y]=g[y])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?n.decal:Kv(d,i),u.fill==="inherit"&&(u.fill=n[o]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(o==="fill"?n:r).opacity),s(u,n);var f=t.getModel("lineStyle"),A=f.getLineStyle();if(s(A,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),A.stroke==="auto"&&(A.stroke=n.fill),!a){var h=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=h==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),A.stroke=f.get("inactiveColor"),A.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:A}}function UTt(e){var t=e.icon||"roundRect",r=Nn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function yG(e,t,r,n){WF(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),VF(e,t,r,n)}function Nce(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,o=t.length;n<o&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function VF(e,t,r,n){Nce(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function WF(e,t,r,n){Nce(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const Hce=OTt;function NTt(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Og(e,t,r){var n={},o=e==="toggleSelected",a;return r.eachComponent("legend",function(i){o&&a!=null?i[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?i[e]():(i[e](t.name),a=i.isSelected(t.name));var s=i.getData();z(s,function(l){var u=l.get("name");if(!(u===`
  6114. `||u==="")){var c=i.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function HTt(e){e.registerAction("legendToggleSelect","legendselectchanged",Ut(Og,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ut(Og,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ut(Og,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ut(Og,"select")),e.registerAction("legendUnSelect","legendunselected",Ut(Og,"unSelect"))}function zce(e){e.registerComponentModel(zF),e.registerComponentView(Hce),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,NTt),e.registerSubTypeDefaulter("legend",function(){return"plain"}),HTt(e)}var zTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,o){var a=$p(r);e.prototype.init.call(this,r,n,o),bG(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),bG(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Sd(zF.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(zF);function bG(e,t,r){var n=e.getOrient(),o=[1,1];o[n.index]=0,id(t,r,{type:"box",ignoreSize:!!o})}const QTt=zTt;var xG=Pt,dR=["width","height"],fR=["x","y"],VTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new xG),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xG)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,o,a,i,s,l){var u=this;e.prototype.renderInner.call(this,r,n,o,a,i,s,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),f=Oe(d)?d:[d,d];h("pagePrev",0);var A=n.getModel("pageTextStyle");c.add(new pr({name:"pageText",style:{text:"xx/xx",fill:A.getTextColor(),font:A.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(v,p){var g=v+"DataIndex",m=Fp(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:at(u._pageGo,u,g,n,a)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});m.name=v,c.add(m)}},t.prototype.layoutInner=function(r,n,o,a,i,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=dR[u],d=fR[u],f=dR[1-u],A=fR[1-u];i&&Jf("horizontal",l,r.get("selectorItemGap",!0));var h=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),p=[-v.x,-v.y],g=It(o);i&&(g[c]=o[c]-v[c]-h);var m=this._layoutContentAndController(r,a,g,u,c,f,A,d);if(i){if(s==="end")p[u]+=m[c]+h;else{var y=v[c]+h;p[u]-=y,m[d]-=y}m[c]+=v[c]+h,p[1-u]+=m[A]+m[f]/2-v[f]/2,m[f]=Math.max(m[f],v[f]),m[A]=Math.min(m[A],v[A]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,o,a,i,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;Jf(r.get("orient"),c,r.get("itemGap"),a?o.width:null,a?null:o.height),Jf("horizontal",f,r.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),h=f.getBoundingRect(),v=this._showController=A[i]>o[i],p=[-A.x,-A.y];n||(p[a]=c[u]);var g=[0,0],m=[-h.x,-h.y],y=Zt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var b=r.get("pageButtonPosition",!0);b==="end"?m[a]+=o[i]-h[i]:g[a]+=h[i]+y}m[1-a]+=A[s]/2-h[s]/2,c.setPosition(p),d.setPosition(g),f.setPosition(m);var x={x:0,y:0};if(x[i]=v?o[i]:A[i],x[s]=Math.max(A[s],h[s]),x[l]=Math.min(0,h[l]+m[1-a]),d.__rectSize=o[i],v){var w={x:0,y:0};w[i]=Math.max(o[i]-h[i]-y,0),w[s]=x[s],d.setClipPath(new hr({shape:w})),d.__rectSize=w[i]}else f.eachChild(function(_){_.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&gr(c,{x:C.contentPosition[0],y:C.contentPosition[1]},v?r:null),this._updatePageInfoView(r,C),x},t.prototype._pageGo=function(r,n,o){var a=this._getPageInfo(n)[r];a!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var o=this._controllerGroup;z(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=n[d]!=null,A=o.childOfName(c);A&&(A.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),A.cursor=f?"pointer":"default")});var a=o.childOfName("pageText"),i=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&i&&a.setStyle("text",Je(i)?i.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):i({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,i=r.getOrient().index,s=dR[i],l=fR[i],u=this._findTargetItemIndex(n),c=o.children(),d=c[u],f=c.length,A=f?1:0,h={contentPosition:[o.x,o.y],pageCount:A,pageIndex:A-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return h;var v=b(d);h.contentPosition[i]=-v.s;for(var p=u+1,g=v,m=v,y=null;p<=f;++p)y=b(c[p]),(!y&&m.e>g.s+a||y&&!x(y,g.s))&&(m.i>g.i?g=m:g=y,g&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=g.i),++h.pageCount)),m=y;for(var p=u-1,g=v,m=v,y=null;p>=-1;--p)y=b(c[p]),(!y||!x(m,y.s))&&g.i<m.i&&(m=g,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=y;return h;function b(w){if(w){var C=w.getBoundingRect(),_=C[l]+w[l];return{s:_,e:_+C[s],i:w.__legendDataIndex}}}function x(w,C){return w.e>=C&&w.s<=C+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,o=this.getContentGroup(),a;return o.eachChild(function(i,s){var l=i.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(Hce);const WTt=VTt;function GTt(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(o){o.setScrollDataIndex(n)})})}function KTt(e){Jt(zce),e.registerComponentModel(QTt),e.registerComponentView(WTt),GTt(e)}function jTt(e){Jt(zce),Jt(KTt)}var YTt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Sd(ly.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ly);const XTt=YTt;var X5=br();function qTt(e,t,r){X5(e).coordSysRecordMap.each(function(n){var o=n.dataZoomInfoMap.get(t.uid);o&&(o.getRange=r)})}function ZTt(e,t){for(var r=X5(e).coordSysRecordMap,n=r.keys(),o=0;o<n.length;o++){var a=n[o],i=r.get(a),s=i.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Qce(r,i))}}}function Qce(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function JTt(e,t){var r={model:t,containsPoint:Ut(tEt,t),dispatchAction:Ut(eEt,e),dataZoomInfoMap:null,controller:null},n=r.controller=new cb(e.getZr());return z(["pan","zoom","scrollMove"],function(o){n.on(o,function(a){var i=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[o],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&i.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),i.length&&r.dispatchAction(i)})}),r}function eEt(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function tEt(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function rEt(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(a){var i=a.model,s=i.get("disabled",!0)?!1:i.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),o=o&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function nEt(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=X5(r),o=n.coordSysRecordMap||(n.coordSysRecordMap=pt());o.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var i=Sce(a);z(i.infoList,function(s){var l=s.model.uid,u=o.get(l)||o.set(l,JTt(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=pt());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),o.each(function(a){var i=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Qce(o,a);return}var c=rEt(l);i.enable(c.controlType,c.opt),i.setPointerChecker(a.containsPoint),Qp(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var oEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,o){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),qTt(o,r,{pan:at(AR.pan,this),zoom:at(AR.zoom,this),scrollMove:at(AR.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ZTt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(H5),AR={zoom:function(e,t,r,n){var o=this.range,a=o.slice(),i=e.axisModels[0];if(i){var s=hR[t](null,[n.originX,n.originY],i,r,e),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/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(WA(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}},pan:wG(function(e,t,r,n,o,a){var i=hR[n]([a.oldX,a.oldY],[a.newX,a.newY],t,o,r);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength}),scrollMove:wG(function(e,t,r,n,o,a){var i=hR[n]([0,0],[a.scrollDelta,a.scrollDelta],t,o,r);return i.signal*(e[1]-e[0])*a.scrollDelta})};function wG(e){return function(t,r,n,o){var a=this.range,i=a.slice(),s=t.axisModels[0];if(s){var l=e(i,s,t,r,n,o);if(WA(l,i,[0,100],"all"),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}}}var hR={grid:function(e,t,r,n,o){var a=r.axis,i={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(i.pixel=t[0]-e[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=a.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=a.inverse?-1:1),i},polar:function(e,t,r,n,o){var a=r.axis,i={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(i.pixel=t[0]-e[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=a.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=u[1]-u[0],i.pixelStart=u[0],i.signal=a.inverse?-1:1),i},singleAxis:function(e,t,r,n,o){var a=r.axis,i=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=a.inverse?-1:1),s}};const aEt=oEt;function Vce(e){z5(e),e.registerComponentModel(XTt),e.registerComponentView(aEt),nEt(e)}var iEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Sd(ly.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",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",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,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",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ly);const sEt=iEt;var $g=hr,CG=7,lEt=1,vR=30,uEt=7,Ug="horizontal",SG="vertical",cEt=5,dEt=["line","bar","candlestick","scatter"],fEt={easing:"cubicOut",duration:100,delay:0},AEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},t.prototype.render=function(r,n,o,a){if(e.prototype.render.apply(this,arguments),Qp(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Xm(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Pt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,o=r.get("brushSelect"),a=o?uEt:0,i=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Ug?{right:s.width-i.x-i.width,top:s.height-vR-CG-a,width:i.width,height:vR}:{right:CG,top:i.y,width:vR,height:i.height},u=$p(r.option);z(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=jn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SG&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,o=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),i=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Ug&&!i?{scaleY:l?1:-1,scaleX:1}:o===Ug&&i?{scaleY:l?1:-1,scaleX:-1}:o===SG&&!i?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,o=this._displayables.sliderGroup,a=r.get("brushSelect");o.add(new $g({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var i=new $g({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();a?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(i)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,o=this._shadowSize||[],a=r.series,i=a.getRawData(),s=a.getShadowDim?a.getShadowDim():r.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(i!==this._shadowData||s!==this._shadowDim||n[0]!==o[0]||n[1]!==o[1]){var c=i.getDataExtent(s),d=(c[1]-c[0])*.3;c=[c[0]-d,c[1]+d];var f=[0,n[1]],A=[0,n[0]],h=[[n[0],0],[0,0]],v=[],p=A[1]/(i.count()-1),g=0,m=Math.round(i.count()/n[0]),y;i.each([s],function(_,B){if(m>0&&B%m){g+=p;return}var T=_==null||isNaN(_)||_==="",E=T?0:Fr(_,c,f,!0);T&&!y&&B?(h.push([h[h.length-1][0],0]),v.push([v[v.length-1][0],0])):!T&&y&&(h.push([g,0]),v.push([g,0])),h.push([g,E]),v.push([g,E]),g+=p,y=T}),l=this._shadowPolygonPts=h,u=this._shadowPolylinePts=v}this._shadowData=i,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(_){var B=b.getModel(_?"selectedDataBackground":"dataBackground"),T=new Pt,E=new ua({shape:{points:l},segmentIgnoreThreshold:1,style:B.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new da({shape:{points:u},segmentIgnoreThreshold:1,style:B.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return T.add(E),T.add(I),T}for(var w=0;w<3;w++){var C=x(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var o,a=this.ecModel;return r.eachTargetAxis(function(i,s){var l=r.getAxisProxy(i,s).getTargetSeriesModels();z(l,function(u){if(!o&&!(n!==!0&&Yt(dEt,u.get("type"))<0)){var c=a.getComponent(Sc(i),s).axis,d=hEt(i),f,A=u.coordinateSystem;d!=null&&A.getOtherAxis&&(f=A.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),o={thisAxis:c,series:u,thisDim:i,otherDim:d,otherAxisInverse:f}}},this)},this),o}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,o=n.handles=[null,null],a=n.handleLabels=[null,null],i=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=n.filler=new $g({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(f),i.add(new $g({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:lEt,fill:"rgba(0,0,0,0)"}})),z([0,1],function(y){var b=l.get("handleIcon");!PC[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var x=Nn(b,-1,0,2,2,null,!0);x.attr({cursor:_G(this._orient),draggable:!0,drift:at(this._onDragMove,this,y),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var w=x.getBoundingRect(),C=l.get("handleSize");this._handleHeight=qe(C,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Oc(x);var _=l.get("handleColor");_!=null&&(x.style.fill=_),i.add(o[y]=x);var B=l.getModel("textStyle");r.add(a[y]=new pr({silent:!0,invisible:!0,style:un(B,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:B.getTextColor(),font:B.getFont()}),z2:10}))},this);var A=f;if(d){var h=qe(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new hr({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),p=h*.8,g=n.moveHandleIcon=Nn(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=s[1]+h/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(h,10));A=n.moveZone=new hr({invisible:!0,shape:{y:s[1]-m,height:h+m}}),A.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),i.add(v),i.add(g),i.add(A)}A.attr({draggable:!0,cursor:_G(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Fr(r[0],[0,100],n,!0),Fr(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var o=this.dataZoomModel,a=this._handleEnds,i=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];WA(n,a,i,o.get("zoomLock")?"all":r,s.minSpan!=null?Fr(s.minSpan,l,i,!0):null,s.maxSpan!=null?Fr(s.maxSpan,l,i,!0):null);var u=this._range,c=this._range=ja([Fr(a[0],i,l,!0),Fr(a[1],i,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,o=this._handleEnds,a=ja(o.slice()),i=this._size;z([0,1],function(A){var h=n.handles[A],v=this._handleHeight;h.attr({scaleX:v/2,scaleY:v/2,x:o[A]+(A?-1:1),y:i[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:i[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],i[0]],c=0;c<l.length;c++){var d=l[c],f=d.getClipPath();f||(f=new hr,d.setClipPath(f)),f.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:i[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,o=this._displayables,a=o.handleLabels,i=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,d=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],u),this._formatLabel(d[1],u)]}}var f=ja(this._handleEnds.slice());A.call(this,0),A.call(this,1);function A(h){var v=$c(o.handles[h].parent,this.group),p=sB(h===0?"right":"left",v),g=this._handleWidth/2+cEt,m=vs([f[h]+(h===0?-g:g),this._size[1]/2],v);a[h].setStyle({x:m[0],y:m[1],verticalAlign:i===Ug?"middle":p,align:i===Ug?p:"center",text:s[h]})}},t.prototype._formatLabel=function(r,n){var o=this.dataZoomModel,a=o.get("labelFormatter"),i=o.get("labelPrecision");(i==null||i==="auto")&&(i=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(i,20));return bt(a)?a(r,s):Je(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,o=n.handleLabels;o[0].attr("invisible",!r),o[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,o,a){this._dragging=!0,pu(a.event);var i=this._displayables.sliderGroup.getLocalTransform(),s=vs([n,o],i,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,o=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(o[0]<0||o[0]>n[0]||o[1]<0||o[1]>n[1])){var a=this._handleEnds,i=(a[0]+a[1])/2,s=this._updateInterval("all",o[0]-i);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,o=r.offsetY;this._brushStart=new Vt(n,o),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var o=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(o.width)<5)){var i=this._getViewExtent(),s=[0,100];this._range=ja([Fr(o.x,i,s,!0),Fr(o.x+o.width,i,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(pu(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var o=this._displayables,a=this.dataZoomModel,i=o.brushRect;i||(i=o.brushRect=new $g({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(i)),i.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),i.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?fEt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=Sce(this.dataZoomModel).infoList;if(!r&&n.length){var o=n[0].model.coordinateSystem;r=o.getRect&&o.getRect()}if(!r){var a=this.api.getWidth(),i=this.api.getHeight();r={x:a*.2,y:i*.2,width:a*.6,height:i*.6}}return r},t.type="dataZoom.slider",t}(H5);function hEt(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function _G(e){return e==="vertical"?"ns-resize":"ew-resize"}const vEt=AEt;function Wce(e){e.registerComponentModel(sEt),e.registerComponentView(vEt),z5(e)}function pEt(e){Jt(Vce),Jt(Wce)}var gEt={get:function(e,t,r){var n=It((mEt[e]||{})[t]);return r&&Oe(n)?n[n.length-1]:n}},mEt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Gce=gEt;var BG=Po.mapVisual,yEt=Po.eachVisual,bEt=Oe,TG=z,xEt=ja,wEt=Fr,CEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o)},t.prototype.optionUpdated=function(r,n){var o=this.option;!n&&Fce(o,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=at(r,this),this.controllerVisuals=UF(this.option.controller,n,r),this.targetVisuals=UF(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(o,a){n.push(a)}):n=Wr(r),n},t.prototype.eachTargetSeries=function(r,n){z(this.getTargetSeriesIndices(),function(o){var a=this.ecModel.getSeriesByIndex(o);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(o){o===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,o){var a=this.option,i=a.precision,s=this.dataBound,l=a.formatter,u;o=o||["<",">"],Oe(r)&&(r=r.slice(),u=!0);var c=n?r:u?[d(r[0]),d(r[1])]:d(r);if(Je(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(bt(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?o[0]+" "+c[1]:r[1]===s[1]?o[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var r=this.option,n=xEt([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var o=r.dimensions,a=o.length-1;a>=0;a--){var i=o[a],s=r.getDimensionInfo(i);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,o={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),i=n.controller||(n.controller={});Qt(a,o),Qt(i,o);var s=this.isCategory();l.call(this,a),l.call(this,i),u.call(this,a,"inRange","outOfRange"),c.call(this,i);function l(d){bEt(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:r.get("gradientColor")}}function u(d,f,A){var h=d[f],v=d[A];h&&!v&&(v=d[A]={},TG(h,function(p,g){if(Po.isValidType(g)){var m=Gce.get(g,"inactive",s);m!=null&&(v[g]=m,g==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,A=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),v=this.getItemSymbol(),p=v||"roundRect";TG(this.stateList,function(g){var m=this.itemSize,y=d[g];y||(y=d[g]={color:s?h:[h]}),y.symbol==null&&(y.symbol=f&&It(f)||(s?p:[p])),y.symbolSize==null&&(y.symbolSize=A&&It(A)||(s?m[0]:[m[0],m[0]])),y.symbol=BG(y.symbol,function(w){return w==="none"?p:w});var b=y.symbolSize;if(b!=null){var x=-1/0;yEt(b,function(w){w>x&&(x=w)}),y.symbolSize=BG(b,function(w){return wEt(w,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(fr);const iS=CEt;var EG=[20,140],SEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=EG[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=EG[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Oe(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),z(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=ja((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,o=this.getExtent();return(n[0]<=o[0]||n[0]<=r)&&(n[1]>=o[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(o){var a=[],i=o.getData();i.each(this.getDataDimensionIndex(i),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:o.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=IG(this,"outOfRange",this.getExtent()),o=IG(this,"inRange",this.option.range.slice()),a=[];function i(A,h){a.push({value:A,color:r(A,h)})}for(var s=0,l=0,u=o.length,c=n.length;l<c&&(!o.length||n[l]<=o[0]);l++)n[l]<o[s]&&i(n[l],"outOfRange");for(var d=1;s<u;s++,d=0)d&&a.length&&i(o[s],"outOfRange"),i(o[s],"inRange");for(var d=1;l<c;l++)(!o.length||o[o.length-1]<n[l])&&(d&&(a.length&&i(a[a.length-1].value,"outOfRange"),d=0),i(n[l],"outOfRange"));var f=a.length;return{stops:a,outerColors:[f?a[0].color:"transparent",f?a[f-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Sd(iS.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,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",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(iS);function IG(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,o=(r[1]-r[0])/n,a=r[0],i=[],s=0;s<=n&&a<r[1];s++)i.push(a),a+=o;return i.push(r[1]),i}const _Et=SEt;var BEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,o,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,o,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,o=zA(n.get("padding")||0),a=r.getBoundingRect();r.add(new hr({z2:-1,silent:!0,shape:{x:a.x-o[3],y:a.y-o[0],width:a.width+o[3]+o[1],height:a.height+o[0]+o[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,o){o=o||{};var a=o.forceState,i=this.visualMapModel,s={};if(n==="color"){var l=i.get("contentColor");s.color=l}function u(A){return s[A]}function c(A,h){s[A]=h}var d=i.controllerVisuals[a||i.getValueState(r)],f=Po.prepareVisualTypes(d);return z(f,function(A){var h=d[A];o.convertOpacityToAlpha&&A==="opacity"&&(A="colorAlpha",h=d.__alphaForOpacity),Po.dependsOn(A,n)&&h&&h.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,o=this.api;AB(r,n.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})},t.prototype.doRender=function(r,n,o,a){},t.type="visualMap",t}(cn);const Kce=BEt;var RG=[["left","right","width"],["top","bottom","height"]];function jce(e,t,r){var n=e.option,o=n.align;if(o!=null&&o!=="auto")return o;for(var a={width:t.getWidth(),height:t.getHeight()},i=n.orient==="horizontal"?1:0,s=RG[i],l=[0,null,10],u={},c=0;c<3;c++)u[RG[1-i][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var d=[["x","width",3],["y","height",0]][i],f=jn(u,a,n.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function hw(e,t){return z(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Hs=Fr,TEt=z,DG=Math.min,pR=Math.max,EEt=12,IEt=6,REt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,n,o,a){this._api=o,(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var o=r.get("text");this._renderEndsText(n,o,0),this._renderEndsText(n,o,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,o){if(n){var a=n[1-o];a=a!=null?a+"":"";var i=this.visualMapModel,s=i.get("textGap"),l=i.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,o===0?-s:l[1]+s],u),d=this._applyTransform(o===0?"bottom":"top",u),f=this._orient,A=this.visualMapModel.textStyleModel;this.group.add(new pr({style:un(A,{x:c[0],y:c[1],verticalAlign:f==="horizontal"?"middle":d,align:f==="horizontal"?d:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,o=this._shapes,a=n.itemSize,i=this._orient,s=this._useHandle,l=jce(n,this.api,a),u=o.mainGroup=this._createBarGroup(l),c=new Pt;u.add(c),c.add(o.outOfRange=MG()),c.add(o.inRange=MG(null,s?FG(this._orient):null,at(this._dragHandle,this,"all",!1),at(this._dragHandle,this,"all",!0))),c.setClipPath(new hr({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var d=n.textStyleModel.getTextRect("国"),f=pR(d.width,d.height);s&&(o.handleThumbs=[],o.handleLabels=[],o.handleLabelPoints=[],this._createHandle(n,u,0,a,f,i),this._createHandle(n,u,1,a,f,i)),this._createIndicator(n,u,a,f,i),r.add(u)},t.prototype._createHandle=function(r,n,o,a,i,s){var l=at(this._dragHandle,this,o,!1),u=at(this._dragHandle,this,o,!0),c=xs(r.get("handleSize"),a[0]),d=Nn(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),f=FG(this._orient);d.attr({cursor:f,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){pu(g.event)}}),d.x=a[0]/2,d.useStyle(r.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),kf(d,!0),n.add(d);var A=this.visualMapModel.textStyleModel,h=new pr({cursor:f,draggable:!0,drift:l,onmousemove:function(g){pu(g.event)},ondragend:u,style:un(A,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var v=[c,0],p=this._shapes;p.handleThumbs[o]=d,p.handleLabelPoints[o]=v,p.handleLabels[o]=h},t.prototype._createIndicator=function(r,n,o,a,i){var s=xs(r.get("indicatorSize"),o[0]),l=Nn(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:o[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof _o){var c=l.style;l.useStyle(Pe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var d=this.visualMapModel.textStyleModel,f=new pr({silent:!0,invisible:!0,style:un(d,{x:0,y:0,text:""})});this.group.add(f);var A=[(i==="horizontal"?a/2:IEt)+o[0]/2,0],h=this._shapes;h.indicator=l,h.indicatorLabel=f,h.indicatorLabelPoint=A,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,o,a){if(this._useHandle){if(this._dragging=!n,!n){var i=this._applyTransform([o,a],this._shapes.mainGroup,!0);this._updateInterval(r,i[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():PG(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),o=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Hs(n[0],o,a,!0),Hs(n[1],o,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var o=this.visualMapModel,a=this._handleEnds,i=[0,o.itemSize[1]];WA(n,a,i,r,0);var s=o.getExtent();this._dataInterval=[Hs(a[0],i,s,!0),Hs(a[1],i,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,o=n.getExtent(),a=this._shapes,i=[0,n.itemSize[1]],s=r?i:this._handleEnds,l=this._createBarVisual(this._dataInterval,o,s,"inRange"),u=this._createBarVisual(o,o,i,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,o,a){var i={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,i),l=[this.getControllerVisual(r[0],"symbolSize",i),this.getControllerVisual(r[1],"symbolSize",i)],u=this._createBarPoints(o,l);return{barColor:new Mp(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var o=100,a=[],i=(r[1]-r[0])/o;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<o;s++){var l=r[0]+i*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/o})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var o=this.visualMapModel.itemSize;return[[o[0]-n[0],r[0]],[o[0],r[0]],[o[0],r[1]],[o[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,o=this.visualMapModel.get("inverse");return new Pt(n==="horizontal"&&!o?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&o?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!o?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var o=this._shapes,a=this.visualMapModel,i=o.handleThumbs,s=o.handleLabels,l=a.itemSize,u=a.getExtent();TEt([0,1],function(c){var d=i[c];d.setStyle("fill",n.handlesColor[c]),d.y=r[c];var f=Hs(r[c],[0,l[1]],u,!0),A=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=A/l[0],d.x=l[0]-A/2;var h=vs(o.handleLabelPoints[c],$c(d,this.group));s[c].setStyle({x:h[0],y:h[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,o,a){var i=this.visualMapModel,s=i.getExtent(),l=i.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},A=this.getControllerVisual(r,"color",f),h=this.getControllerVisual(r,"symbolSize"),v=Hs(r,s,u,!0),p=l[0]-h/2,g={x:d.x,y:d.y};d.y=v,d.x=p;var m=vs(c.indicatorLabelPoint,$c(d,this.group)),y=c.indicatorLabel;y.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),x=this._orient,w=x==="horizontal";y.setStyle({text:(o||"")+i.formatValueText(n),verticalAlign:w?b:"middle",align:w?"center":b});var C={x:p,y:v,style:{fill:A}},_={style:{x:m[0],y:m[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var B={duration:100,easing:"cubicInOut",additive:!0};d.x=g.x,d.y=g.y,d.animateTo(C,B),y.animateTo(_,B)}else d.attr(C),y.attr(_);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var E=0;E<T.length;E++)this._api.enterBlur(T[E])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var o=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=DG(pR(0,a[1]),o[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=o[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var o=this.visualMapModel,a=o.itemSize;if(o.option.hoverLink){var i=[0,a[1]],s=o.getExtent();r=DG(pR(i[0],r),i[1]);var l=DEt(o,s,i),u=[r-l,r+l],c=Hs(r,i,s,!0),d=[Hs(u[0],i,s,!0),Hs(u[1],i,s,!0)];u[0]<i[0]&&(d[0]=-1/0),u[1]>i[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,A=[];(n||PG(o))&&(A=this._hoverLinkDataIndices=o.findTargetDataIndices(d));var h=out(f,A);this._dispatchHighDown("downplay",hw(h[0],o)),this._dispatchHighDown("highlight",hw(h[1],o))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n=r.target,o=this.visualMapModel;if(!(!n||$t(n).dataIndex==null)){var a=$t(n),i=this.ecModel.getSeriesByIndex(a.seriesIndex);if(o.isTargetSeries(i)){var s=i.getData(a.dataType),l=s.getStore().get(o.getDataDimensionIndex(s),a.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var o=0;o<n.length;o++)this._api.leaveBlur(n[o])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hw(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,o,a){var i=$c(n,a?null:this.group);return Oe(r)?vs(r,i,o):sB(r,i,o)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(Kce);function MG(e,t,r,n){return new ua({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(o){pu(o.event)},ondragend:n})}function DEt(e,t,r){var n=EEt/2,o=e.get("hoverLinkDataSize");return o&&(n=Hs(o,t,r,!0)/2),n}function PG(e){var t=e.get("hoverLinkOnHandle");return!!(t==null?e.get("realtime"):t)}function FG(e){return e==="vertical"?"ns-resize":"ew-resize"}const MEt=REt;var PEt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},FEt=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},kEt=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var o=e.pipelineContext;!n.isTargetSeries(e)||o&&o.large||r.push(I2t(n.stateList,n.targetVisuals,at(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(o){if(o.isTargetSeries(e)){var a=o.getVisualMeta(at(LEt,null,e,o))||{stops:[],outerColors:[]},i=o.getDataDimensionIndex(r);i>=0&&(a.dimension=i,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function LEt(e,t,r,n){for(var o=t.targetVisuals[n],a=Po.prepareVisualTypes(o),i={color:tb(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=o[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,d,f)}return i.color;function d(A){return i[A]}function f(A,h){i[A]=h}}var kG=z;function OEt(e){var t=e&&e.visualMap;Oe(t)||(t=t?[t]:[]),kG(t,function(r){if(r){Mh(r,"splitList")&&!Mh(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Oe(n)&&kG(n,function(o){Tt(o)&&(Mh(o,"start")&&!Mh(o,"min")&&(o.min=o.start),Mh(o,"end")&&!Mh(o,"max")&&(o.max=o.end))})}})}function Mh(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var LG=!1;function Yce(e){LG||(LG=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(PEt,FEt),z(kEt,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OEt))}function Xce(e){e.registerComponentModel(_Et),e.registerComponentView(MEt),Yce(e)}var $Et=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],UEt[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(i,s){o==="categories"?(i.mappingMethod="category",i.categories=It(a)):(i.dataExtent=this.getExtent(),i.mappingMethod="piecewise",i.pieceList=Ue(this._pieceList,function(l){return l=It(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},o=Po.listVisualTypes(),a=this.isCategory();z(r.pieces,function(s){z(o,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),z(n,function(s,l){var u=!1;z(this.stateList,function(c){u=u||i(r,c,l)||i(r.target,c,l)},this),!u&&z(this.stateList,function(c){(r[c]||(r[c]={}))[l]=Gce.get(l,c==="inRange"?"active":"inactive",a)})},this);function i(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var o=this.option,a=this._pieceList,i=(n?o:r).selected||{};if(o.selected=i,z(a,function(l,u){var c=this.getSelectedMapKey(l);i.hasOwnProperty(c)||(i[c]=!0)},this),o.selectedMode==="single"){var s=!1;z(a,function(l,u){var c=this.getSelectedMapKey(l);i[c]&&(s?i[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=It(r)},t.prototype.getValueState=function(r){var n=Po.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],o=this._pieceList;return this.eachTargetSeries(function(a){var i=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Po.findPieceIndex(l,o);c===r&&i.push(u)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var o=r.interval||[];n=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],o=["",""],a=this;function i(c,d){var f=a.getRepresentValue({interval:c});d||(d=a.getValueState(f));var A=r(f,d);c[0]===-1/0?o[0]=A:c[1]===1/0?o[1]=A:n.push({value:c[0],color:A},{value:c[1],color:A})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return z(s,function(c){var d=c.interval;d&&(d[0]>u&&i([u,d[0]],"outOfRange"),i(d.slice()),u=d[1])},this),{stops:n,outerColors:o}},t.type="visualMap.piecewise",t.defaultOption=Sd(iS.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(iS),UEt={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(n[1]-n[0])/o;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var i=0,s=n[0];i<o;s+=a,i++){var l=i===o-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),RP(e),z(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;z(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),OG(t,e)},pieces:function(e){var t=this.option;z(t.pieces,function(r,n){Tt(r)||(r={value:r});var o={text:"",index:n};if(r.label!=null&&(o.text=r.label),r.hasOwnProperty("value")){var a=o.value=r.value;o.interval=[a,a],o.close=[1,1]}else{for(var i=o.interval=[],s=o.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],A=0;A<3&&i[d]==null;A++)i[d]=r[f[A]],s[d]=l[A],c[d]=A===2;i[d]==null&&(i[d]=u[d])}c[0]&&i[1]===1/0&&(s[0]=0),c[1]&&i[0]===-1/0&&(s[1]=0),i[0]===i[1]&&s[0]&&s[1]&&(o.value=i[0])}o.visual=Po.retrieveVisuals(r),e.push(o)},this),OG(t,e),RP(e),z(e,function(r){var n=r.close,o=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,o)},this)}};function OG(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const NEt=$Et;var HEt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,o=n.get("textGap"),a=n.textStyleModel,i=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),d=c.endsText,f=uo(n.get("showLabel",!0),!d);d&&this._renderEndsText(r,d[0],u,f,l),z(c.viewPieceList,function(A){var h=A.piece,v=new Pt;v.onclick=at(this._onItemClick,this,h),this._enableHoverLink(v,A.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(v,p,[0,0,u[0],u[1]]),f){var g=this.visualMapModel.getValueState(p);v.add(new pr({style:{x:l==="right"?-o:u[0]+o,y:u[1]/2,text:h.text,verticalAlign:"middle",align:l,font:i,fill:s,opacity:g==="outOfRange"?.5:1}}))}r.add(v)},this),d&&this._renderEndsText(r,d[1],u,f,l),Jf(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var o=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(i){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:i,batch:hw(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return jce(r,this.api,r.itemSize);var o=n.align;return(!o||o==="auto")&&(o="left"),o},t.prototype._renderEndsText=function(r,n,o,a,i){if(n){var s=new Pt,l=this.visualMapModel.textStyleModel;s.add(new pr({style:un(l,{x:a?i==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:a?i:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Ue(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),o=r.get("text"),a=r.get("orient"),i=r.get("inverse");return(a==="horizontal"?i:!i)?n.reverse():o&&(o=o.slice().reverse()),{viewPieceList:n,endsText:o}},t.prototype._createItemSymbol=function(r,n,o){r.add(Nn(this.getControllerVisual(n,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,o=n.option,a=o.selectedMode;if(a){var i=It(o.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(i[s]=!0,z(i,function(l,u){i[u]=u===s})):i[s]=!i[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(Kce);const zEt=HEt;function qce(e){e.registerComponentModel(NEt),e.registerComponentView(zEt),Yce(e)}function QEt(e){Jt(Xce),Jt(qce)}var VEt={label:{enabled:!0},decal:{show:!1}},$G=br(),WEt={};function GEt(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=It(VEt);Qt(n.label,e.getLocaleModel().get("aria"),!1),Qt(r.option,n,!1),o(),a();function o(){var u=r.getModel("decal"),c=u.get("show");if(c){var d=pt();e.eachSeries(function(f){if(!f.isColorBySeries()){var A=d.get(f.type);A||(A={},d.set(f.type,A)),$G(f).scope=A}}),e.eachRawSeries(function(f){if(e.isSeriesFiltered(f))return;if(bt(f.enableAriaDecal)){f.enableAriaDecal();return}var A=f.getData();if(f.isColorBySeries()){var m=GP(f.ecModel,f.name,WEt,e.getSeriesCount()),y=A.getVisual("decal");A.setVisual("decal",b(y,m))}else{var h=f.getRawData(),v={},p=$G(f).scope;A.each(function(x){var w=A.getRawIndex(x);v[w]=x});var g=h.count();h.each(function(x){var w=v[x],C=h.getName(x)||x+"",_=GP(f.ecModel,C,p,g),B=A.getItemVisual(w,"decal");A.setItemVisual(w,"decal",b(B,_))})}function b(x,w){var C=x?Pe(Pe({},w),x):w;return C.dirty=!0,C}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=Ct(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=e.getSeriesCount(),A=c.get(["data","maxCount"])||10,h=c.get(["series","maxCount"])||10,v=Math.min(f,h),p;if(!(f<1)){var g=s();if(g){var m=c.get(["general","withTitle"]);p=i(m,{title:g})}else p=c.get(["general","withoutTitle"]);var y=[],b=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=i(b,{seriesCount:f}),e.eachSeries(function(_,B){if(B<v){var T=void 0,E=_.get("name"),I=E?"withName":"withoutName";T=f>1?c.get(["series","multiple",I]):c.get(["series","single",I]),T=i(T,{seriesId:_.seriesIndex,seriesName:_.get("name"),seriesType:l(_.subType)});var R=_.getData();if(R.count()>A){var D=c.get(["data","partialData"]);T+=i(D,{displayCnt:A})}else T+=c.get(["data","allData"]);for(var F=c.get(["data","separator","middle"]),M=c.get(["data","separator","end"]),$=[],O=0;O<R.count();O++)if(O<A){var Q=R.getName(O),V=R.getValues(O),W=c.get(["data",Q?"withName":"withoutName"]);$.push(i(W,{name:Q,value:V.join(F)}))}T+=$.join(F)+M,y.push(T)}});var x=c.getModel(["series","multiple","separator"]),w=x.get("middle"),C=x.get("end");p+=y.join(w)+C,d.setAttribute("aria-label",p)}}}function i(u,c){if(!Je(u))return u;var d=u;return z(c,function(f,A){d=d.replace(new RegExp("\\{\\s*"+A+"\\s*\\}","g"),f)}),d}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function KEt(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},z(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function jEt(e){e.registerPreprocessor(KEt),e.registerVisual(e.PRIORITY.VISUAL.ARIA,GEt)}var UG={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YEt=function(){function e(t){var r=this._condVal=Je(t)?new RegExp(t):eoe(t)?t:null;if(r==null){var n="";Tr(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Je(r)?this._condVal.test(t):vr(r)?this._condVal.test(t+""):!1},e}(),XEt=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),qEt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),ZEt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),JEt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),eIt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),o=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?o:n))return!1;return!0},e}();function q5(e,t){if(e===!0||e===!1){var r=new XEt;return r.value=e,r}var n="";return Zce(e)||Tr(n),e.and?NG("and",e,t):e.or?NG("or",e,t):e.not?tIt(e,t):rIt(e,t)}function NG(e,t,r){var n=t[e],o="";Oe(n)||Tr(o),n.length||Tr(o);var a=e==="and"?new qEt:new ZEt;return a.children=Ue(n,function(i){return q5(i,r)}),a.children.length||Tr(o),a}function tIt(e,t){var r=e.not,n="";Zce(r)||Tr(n);var o=new JEt;return o.child=q5(r,t),o.child||Tr(n),o}function rIt(e,t){for(var r="",n=t.prepareGetValue(e),o=[],a=sr(e),i=e.parser,s=i?_ie(i):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=st(UG,u)?UG[u]:u,d=e[u],f=s?s(d):d,A=bft(c,f)||c==="reg"&&new YEt(f);A||Tr(r),o.push(A)}}o.length||Tr(r);var h=new eIt;return h.valueGetterParam=n,h.valueParser=s,h.getValue=t.getValue,h.subCondList=o,h}function Zce(e){return Tt(e)&&!Lo(e)}var nIt=function(){function e(t,r){this._cond=q5(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function oIt(e,t){return new nIt(e,t)}var aIt={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=oIt(e.config,{valueGetterAttrMap:pt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;st(s,"dimension")||Tr(l);var c=t.getDimensionInfo(u);return c||Tr(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),o=[],a=0,i=t.count();a<i;a++)r=t.getRawDataItem(a),n.evaluate()&&o.push(r);return{data:o}}},iIt={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",o=Wr(r);o.length||Tr(n);var a=[];z(o,function(c){var d=c.dimension,f=c.order,A=c.parser,h=c.incomparable;if(d==null&&Tr(n),f!=="asc"&&f!=="desc"&&Tr(n),h&&h!=="min"&&h!=="max"){var v="";Tr(v)}if(f!=="asc"&&f!=="desc"){var p="";Tr(p)}var g=t.getDimensionInfo(d);g||Tr(n);var m=A?_ie(A):null;A&&!m&&Tr(n),a.push({dimIdx:g.index,parser:m,comparator:new Tie(f,h)})});var i=t.sourceFormat;i!==qo&&i!==ji&&Tr(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,d){for(var f=0;f<a.length;f++){var A=a[f],h=t.retrieveValueFromItem(c,A.dimIdx),v=t.retrieveValueFromItem(d,A.dimIdx);A.parser&&(h=A.parser(h),v=A.parser(v));var p=A.comparator.evaluate(h,v);if(p!==0)return p}return 0}),{data:s}}};function sIt(e){e.registerTransform(aIt),e.registerTransform(iIt)}var lIt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,o){e.prototype.init.call(this,r,n,o),this._sourceManager=new Die(this),QQ(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),QQ(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:sl},t}(fr),uIt=function(e){we(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(cn);function cIt(e){e.registerComponentModel(lIt),e.registerComponentView(uIt)}var Us=vl.CMD;function nv(e,t){return Math.abs(e-t)<1e-5}function GF(e){var t=e.data,r=e.len(),n=[],o,a=0,i=0,s=0,l=0;function u(R,D){o&&o.length>2&&n.push(o),o=[R,D]}function c(R,D,F,M){nv(R,F)&&nv(D,M)||o.push(R,D,F,M,F,M)}function d(R,D,F,M,$,O){var Q=Math.abs(D-R),V=Math.tan(Q/4)*4/3,W=D<R?-1:1,Z=Math.cos(R),te=Math.sin(R),ae=Math.cos(D),re=Math.sin(D),le=Z*$+F,se=te*O+M,ce=ae*$+F,be=re*O+M,de=$*V*W,pe=O*V*W;o.push(le-de*te,se+pe*Z,ce+de*re,be-pe*ae,ce,be)}for(var f,A,h,v,p=0;p<r;){var g=t[p++],m=p===1;switch(m&&(a=t[p],i=t[p+1],s=a,l=i,(g===Us.L||g===Us.C||g===Us.Q)&&(o=[s,l])),g){case Us.M:a=s=t[p++],i=l=t[p++],u(s,l);break;case Us.L:f=t[p++],A=t[p++],c(a,i,f,A),a=f,i=A;break;case Us.C:o.push(t[p++],t[p++],t[p++],t[p++],a=t[p++],i=t[p++]);break;case Us.Q:f=t[p++],A=t[p++],h=t[p++],v=t[p++],o.push(a+2/3*(f-a),i+2/3*(A-i),h+2/3*(f-h),v+2/3*(A-v),h,v),a=h,i=v;break;case Us.A:var y=t[p++],b=t[p++],x=t[p++],w=t[p++],C=t[p++],_=t[p++]+C;p+=1;var B=!t[p++];f=Math.cos(C)*x+y,A=Math.sin(C)*w+b,m?(s=f,l=A,u(s,l)):c(a,i,f,A),a=Math.cos(_)*x+y,i=Math.sin(_)*w+b;for(var T=(B?-1:1)*Math.PI/2,E=C;B?E>_:E<_;E+=T){var I=B?Math.max(E+T,_):Math.min(E+T,_);d(E,I,y,b,x,w)}break;case Us.R:s=a=t[p++],l=i=t[p++],f=s+t[p++],A=l+t[p++],u(f,l),c(f,l,f,A),c(f,A,s,A),c(s,A,s,l),c(s,l,f,l);break;case Us.Z:o&&c(a,i,s,l),a=s,i=l;break}}return o&&o.length>2&&n.push(o),n}function KF(e,t,r,n,o,a,i,s,l,u){if(nv(e,r)&&nv(t,n)&&nv(o,i)&&nv(a,s)){l.push(i,s);return}var c=2/u,d=c*c,f=i-e,A=s-t,h=Math.sqrt(f*f+A*A);f/=h,A/=h;var v=r-e,p=n-t,g=o-i,m=a-s,y=v*v+p*p,b=g*g+m*m;if(y<d&&b<d){l.push(i,s);return}var x=f*v+A*p,w=-f*g-A*m,C=y-x*x,_=b-w*w;if(C<d&&x>=0&&_<d&&w>=0){l.push(i,s);return}var B=[],T=[];od(e,r,o,i,.5,B),od(t,n,a,s,.5,T),KF(B[0],T[0],B[1],T[1],B[2],T[2],B[3],T[3],l,u),KF(B[4],T[4],B[5],T[5],B[6],T[6],B[7],T[7],l,u)}function dIt(e,t){var r=GF(e),n=[];t=t||1;for(var o=0;o<r.length;o++){var a=r[o],i=[],s=a[0],l=a[1];i.push(s,l);for(var u=2;u<a.length;){var c=a[u++],d=a[u++],f=a[u++],A=a[u++],h=a[u++],v=a[u++];KF(s,l,c,d,f,A,h,v,i,t),s=h,l=v}n.push(i)}return n}function Jce(e,t,r){var n=e[t],o=e[1-t],a=Math.abs(n/o),i=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/i);s===0&&(s=1,i=r);for(var l=[],u=0;u<i;u++)l.push(s);var c=i*s,d=r-c;if(d>0)for(var u=0;u<d;u++)l[u%i]+=1;return l}function HG(e,t,r){for(var n=e.r0,o=e.r,a=e.startAngle,i=e.endAngle,s=Math.abs(i-a),l=s*o,u=o-n,c=l>Math.abs(u),d=Jce([l,u],c?0:1,t),f=(c?s:u)/d.length,A=0;A<d.length;A++)for(var h=(c?u:s)/d[A],v=0;v<d[A];v++){var p={};c?(p.startAngle=a+f*A,p.endAngle=a+f*(A+1),p.r0=n+h*v,p.r=n+h*(v+1)):(p.startAngle=a+h*v,p.endAngle=a+h*(v+1),p.r0=n+f*A,p.r=n+f*(A+1)),p.clockwise=e.clockwise,p.cx=e.cx,p.cy=e.cy,r.push(p)}}function fIt(e,t,r){for(var n=e.width,o=e.height,a=n>o,i=Jce([n,o],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",d=e[s]/i.length,f=0;f<i.length;f++)for(var A=e[l]/i[f],h=0;h<i[f];h++){var v={};v[u]=f*d,v[c]=h*A,v[s]=d,v[l]=A,v.x+=e.x,v.y+=e.y,r.push(v)}}function zG(e,t,r,n){return e*n-r*t}function AIt(e,t,r,n,o,a,i,s){var l=r-e,u=n-t,c=i-o,d=s-a,f=zG(c,d,l,u);if(Math.abs(f)<1e-6)return null;var A=e-o,h=t-a,v=zG(A,h,c,d)/f;return v<0||v>1?null:new Vt(v*l+e,v*u+t)}function hIt(e,t,r){var n=new Vt;Vt.sub(n,r,t),n.normalize();var o=new Vt;Vt.sub(o,e,t);var a=o.dot(n);return a}function Ph(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function vIt(e,t,r){for(var n=e.length,o=[],a=0;a<n;a++){var i=e[a],s=e[(a+1)%n],l=AIt(i[0],i[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&o.push({projPt:hIt(l,t,r),pt:l,idx:a})}if(o.length<2)return[{points:e},{points:e}];o.sort(function(p,g){return p.projPt-g.projPt});var u=o[0],c=o[o.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}for(var f=[u.pt.x,u.pt.y],A=[c.pt.x,c.pt.y],h=[f],v=[A],a=u.idx+1;a<=c.idx;a++)Ph(h,e[a].slice());Ph(h,A),Ph(h,f);for(var a=c.idx+1;a<=u.idx+n;a++)Ph(v,e[a%n].slice());return Ph(v,f),Ph(v,A),[{points:h},{points:v}]}function QG(e){var t=e.points,r=[],n=[];eB(t,r,n);var o=new Xt(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=o.width,i=o.height,s=o.x,l=o.y,u=new Vt,c=new Vt;return a>i?(u.x=c.x=s+a/2,u.y=l,c.y=l+i):(u.y=c.y=l+i/2,u.x=s,c.x=s+a),vIt(t,u,c)}function sS(e,t,r,n){if(r===1)n.push(t);else{var o=Math.floor(r/2),a=e(t);sS(e,a[0],o,n),sS(e,a[1],r-o,n)}return n}function pIt(e,t){for(var r=[],n=0;n<t;n++)r.push(s4(e));return r}function gIt(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function mIt(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function yIt(e,t){var r=[],n=e.shape,o;switch(e.type){case"rect":fIt(n,t,r),o=hr;break;case"sector":HG(n,t,r),o=la;break;case"circle":HG({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),o=la;break;default:var a=e.getComputedTransform(),i=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Ue(dIt(e.getUpdatedPathProxy(),i),function(g){return mIt(g)}),l=s.length;if(l===0)sS(QG,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=Ue(s,function(g){var m=[],y=[];eB(g,m,y);var b=(y[1]-m[1])*(y[0]-m[0]);return c+=b,{poly:g,area:b}});d.sort(function(g,m){return m.area-g.area});for(var f=t,u=0;u<l;u++){var A=d[u];if(f<=0)break;var h=u===l-1?f:Math.ceil(A.area/c*t);h<0||(sS(QG,{points:A.poly},h,r),f-=h)}}o=ua;break}if(!o)return pIt(e,t);for(var v=[],u=0;u<r.length;u++){var p=new o;p.setShape(r[u]),gIt(e,p),v.push(p)}return v}function bIt(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var o=[],a=[],i=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[i[0],i[1]],f=l,A=2;A<s;){var h=i[A-2],v=i[A-1],p=i[A++],g=i[A++],m=i[A++],y=i[A++],b=i[A++],x=i[A++];if(f<=0){d.push(p,g,m,y,b,x);continue}for(var w=Math.min(f,c-1)+1,C=1;C<=w;C++){var _=C/w;od(h,p,m,b,_,o),od(v,g,y,x,_,a),h=o[3],v=a[3],d.push(o[1],a[1],o[2],a[2],h,v),p=o[5],g=a[5],m=o[6],y=a[6]}f-=w-1}return i===e?[d,t]:[e,d]}function VG(e,t){for(var r=e.length,n=e[r-2],o=e[r-1],a=[],i=0;i<t.length;)a[i++]=n,a[i++]=o;return a}function xIt(e,t){for(var r,n,o,a=[],i=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(r=bIt(l,u),c=r[0],d=r[1],n=c,o=d):(d=VG(o||l,l),c=l):(c=VG(n||u,u),d=u),a.push(c),i.push(d)}return[a,i]}function WG(e){for(var t=0,r=0,n=0,o=e.length,a=0,i=o-2;a<o;i=a,a+=2){var s=e[i],l=e[i+1],u=e[a],c=e[a+1],d=s*c-u*l;t+=d,r+=(s+u)*d,n+=(l+c)*d}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function wIt(e,t,r,n){for(var o=(e.length-2)/6,a=1/0,i=0,s=e.length,l=s-2,u=0;u<o;u++){for(var c=u*6,d=0,f=0;f<s;f+=2){var A=f===0?c:(c+f-2)%l+2,h=e[A]-r[0],v=e[A+1]-r[1],p=t[f]-n[0],g=t[f+1]-n[1],m=p-h,y=g-v;d+=m*m+y*y}d<a&&(a=d,i=u)}return i}function CIt(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function SIt(e,t,r,n){for(var o=[],a,i=0;i<e.length;i++){var s=e[i],l=t[i],u=WG(s),c=WG(l);a==null&&(a=u[2]<0!=c[2]<0);var d=[],f=[],A=0,h=1/0,v=[],p=s.length;a&&(s=CIt(s));for(var g=wIt(s,l,u,c)*6,m=p-2,y=0;y<m;y+=2){var b=(g+y)%m+2;d[y+2]=s[b]-u[0],d[y+3]=s[b+1]-u[1]}if(d[0]=s[g]-u[0],d[1]=s[g+1]-u[1],r>0)for(var x=n/r,w=-n/2;w<=n/2;w+=x){for(var C=Math.sin(w),_=Math.cos(w),B=0,y=0;y<s.length;y+=2){var T=d[y],E=d[y+1],I=l[y]-c[0],R=l[y+1]-c[1],D=I*_-R*C,F=I*C+R*_;v[y]=D,v[y+1]=F;var M=D-T,$=F-E;B+=M*M+$*$}if(B<h){h=B,A=w;for(var O=0;O<v.length;O++)f[O]=v[O]}}else for(var Q=0;Q<p;Q+=2)f[Q]=l[Q]-c[0],f[Q+1]=l[Q+1]-c[1];o.push({from:d,to:f,fromCp:u,toCp:c,rotation:-A})}return o}function lS(e){return e.__isCombineMorphing}var ede="__mOriginal_";function uS(e,t,r){var n=ede+t,o=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,i=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=o.apply(this,l),i&&i.apply(this,l),u}}function J0(e,t){var r=ede+t;e[r]&&(e[t]=e[r],e[r]=null)}function GG(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],o=0;o<n.length;){var a=n[o],i=n[o+1];n[o++]=t[0]*a+t[2]*i+t[4],n[o++]=t[1]*a+t[3]*i+t[5]}}function tde(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),o=xIt(GF(r),GF(n)),a=o[0],i=o[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&GG(a,s),l&&GG(i,l),uS(t,"updateTransform",{replace:u}),t.transform=null;var c=SIt(a,i,10,Math.PI),d=[];uS(t,"buildPath",{replace:function(f){for(var A=t.__morphT,h=1-A,v=[],p=0;p<c.length;p++){var g=c[p],m=g.from,y=g.to,b=g.rotation*A,x=g.fromCp,w=g.toCp,C=Math.sin(b),_=Math.cos(b);U0(v,x,w,A);for(var B=0;B<m.length;B+=2){var T=m[B],E=m[B+1],I=y[B],R=y[B+1],D=T*h+I*A,F=E*h+R*A;d[B]=D*_-F*C+v[0],d[B+1]=D*C+F*_+v[1]}var M=d[0],$=d[1];f.moveTo(M,$);for(var B=2;B<m.length;){var I=d[B++],R=d[B++],O=d[B++],Q=d[B++],V=d[B++],W=d[B++];M===I&&$===R&&O===V&&Q===W?f.lineTo(V,W):f.bezierCurveTo(I,R,O,Q,V,W),M=V,$=W}}}})}function Z5(e,t,r){if(!e||!t)return t;var n=r.done,o=r.during;tde(e,t),t.__morphT=0;function a(){J0(t,"buildPath"),J0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ct({during:function(i){t.dirtyShape(),o&&o(i)},done:function(){a(),n&&n()}},r)),t}function _It(e,t,r,n,o,a){var i=16;e=o===r?0:Math.round(32767*(e-r)/(o-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<i)/2;u>0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function cS(e){var t=1/0,r=1/0,n=-1/0,o=-1/0,a=Ue(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(d,r),n=Math.max(c,n),o=Math.max(d,o),[c,d]}),i=Ue(a,function(s,l){return{cp:s,z:_It(s[0],s[1],t,r,n,o),path:e[l]}});return i.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function rde(e){return yIt(e.path,e.count)}function jF(){return{fromIndividuals:[],toIndividuals:[],count:0}}function BIt(e,t,r){var n=[];function o(x){for(var w=0;w<x.length;w++){var C=x[w];lS(C)?o(C.childrenRef()):C instanceof tr&&n.push(C)}}o(e);var a=n.length;if(!a)return jF();var i=r.dividePath||rde,s=i({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),jF();n=cS(n),s=cS(s);for(var l=r.done,u=r.during,c=r.individualDelay,d=new ql,f=0;f<a;f++){var A=n[f],h=s[f];h.parent=t,h.copyTransform(d),c||tde(A,h)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(x){for(var w=0;w<s.length;w++)s[w].addSelfToZr(x)}uS(t,"addSelfToZr",{after:function(x){v(x)}}),uS(t,"removeSelfFromZr",{after:function(x){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(x)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,J0(t,"addSelfToZr"),J0(t,"removeSelfFromZr")}var g=s.length;if(c)for(var m=g,y=function(){m--,m===0&&(p(),l&&l())},f=0;f<g;f++){var b=c?Ct({delay:(r.delay||0)+c(f,g,n[f],s[f]),done:y},r):r;Z5(n[f],s[f],b)}else t.__morphT=0,t.animateTo({__morphT:1},Ct({during:function(x){for(var w=0;w<g;w++){var C=s[w];C.__morphT=t.__morphT,C.dirtyShape()}u&&u(x)},done:function(){p();for(var x=0;x<e.length;x++)J0(e[x],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:g}}function TIt(e,t,r){var n=t.length,o=[],a=r.dividePath||rde;function i(A){for(var h=0;h<A.length;h++){var v=A[h];lS(v)?i(v.childrenRef()):v instanceof tr&&o.push(v)}}if(lS(e)){i(e.childrenRef());var s=o.length;if(s<n)for(var l=0,u=s;u<n;u++)o.push(s4(o[l++%s]));o.length=n}else{o=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<o.length;u++)o[u].setLocalTransform(c);if(o.length!==n)return console.error("Invalid morphing: unmatched splitted path"),jF()}o=cS(o),t=cS(t);for(var d=r.individualDelay,u=0;u<n;u++){var f=d?Ct({delay:(r.delay||0)+d(u,n,o[u],t[u])},r):r;Z5(o[u],t[u],f)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}function KG(e){return Oe(e[0])}function jG(e,t){for(var r=[],n=e.length,o=0;o<n;o++)r.push({one:e[o],many:[]});for(var o=0;o<t.length;o++){var a=t[o].length,i=void 0;for(i=0;i<a;i++)r[i%n].many.push(t[o][i])}for(var s=0,o=n-1;o>=0;o--)if(!r[o].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[o].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var EIt={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var o=s4(e.path);o.setStyle("opacity",r),t.push(o)}return t},split:null};function gR(e,t,r,n,o,a){if(!e.length||!t.length)return;var i=Pp("update",n,o);if(!(i&&i.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},i),u,c;KG(e)&&(u=e,c=t),KG(t)&&(u=t,c=e);function d(g,m,y,b,x){var w=g.many,C=g.one;if(w.length===1&&!x){var _=m?w[0]:C,B=m?C:w[0];if(lS(_))d({many:[_],one:B},!0,y,b,!0);else{var T=s?Ct({delay:s(y,b)},l):l;Z5(_,B,T),a(_,B,_,B,T)}}else for(var E=Ct({dividePath:EIt[r],individualDelay:s&&function($,O,Q,V){return s($+y,b)}},l),I=m?BIt(w,C,E):TIt(C,w,E),R=I.fromIndividuals,D=I.toIndividuals,F=R.length,M=0;M<F;M++){var T=s?Ct({delay:s(M,F)},l):l;a(R[M],D[M],m?w[M]:g.one,m?g.one:w[M],T)}}for(var f=u?u===e:e.length>t.length,A=u?jG(c,u):jG(f?t:e,[f?e:t]),h=0,v=0;v<A.length;v++)h+=A[v].many.length;for(var p=0,v=0;v<A.length;v++)d(A[v],f,p,h),p+=A[v].many.length}function yf(e){if(!e)return[];if(Oe(e)){for(var t=[],r=0;r<e.length;r++)t.push(yf(e[r]));return t}var n=[];return e.traverse(function(o){o instanceof tr&&!o.disableMorphing&&!o.invisible&&!o.ignore&&n.push(o)}),n}var nde=1e4,IIt=br();function RIt(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function YG(e){var t=[];return z(e,function(r){var n=r.data;if(!(n.count()>nde))for(var o=n.getIndices(),a=RIt(n),i=0;i<o.length;i++)t.push({data:n,dim:r.dim||a,divide:r.divide,dataIndex:i})}),t}function mR(e,t,r){e.traverse(function(n){n instanceof tr&&ln(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function yR(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Fh(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function DIt(e,t,r){var n=Pp("update",r,t);n&&e.traverse(function(o){if(o instanceof Ui){var a=qct(o);a&&o.animateFrom({style:a},n)}})}function MIt(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var o=e[n],a=t[n];if(o.data.getId(o.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function ode(e,t,r){var n=YG(e),o=YG(t);function a(g,m,y,b,x){(y||g)&&m.animateFrom({style:y&&y!==g?Pe(Pe({},y.style),g.style):g.style},x)}function i(g){for(var m=0;m<g.length;m++)if(g[m].dim)return g[m].dim}var s=i(n),l=i(o),u=!1;function c(g,m){return function(y){var b=y.data,x=y.dataIndex;if(m)return b.getId(x);var w=b.hostModel&&b.hostModel.get("dataGroupId"),C=g?s||l:l||s,_=C&&b.getDimensionInfo(C),B=_&&_.ordinalMeta;if(_){var T=b.get(_.name,x);return B&&B.categories[T]||T+""}var E=b.getRawDataItem(x);return E&&E.groupId?E.groupId+"":w||b.getId(x)}}var d=MIt(n,o),f={};if(!d)for(var A=0;A<o.length;A++){var h=o[A],v=h.data.getItemGraphicEl(h.dataIndex);v&&(f[v.id]=!0)}function p(g,m){var y=n[m],b=o[g],x=b.data.hostModel,w=y.data.getItemGraphicEl(y.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(w===C){C&&DIt(C,b.dataIndex,x);return}w&&f[w.id]||C&&(Fh(C),w?(Fh(w),yR(w),u=!0,gR(yf(w),yf(C),b.divide,x,g,a)):mR(C,x,g))}new yu(n,o,c(!0,d),c(!1,d),null,"multiple").update(p).updateManyToOne(function(g,m){var y=o[g],b=y.data,x=b.hostModel,w=b.getItemGraphicEl(y.dataIndex),C=kr(Ue(m,function(_){return n[_].data.getItemGraphicEl(n[_].dataIndex)}),function(_){return _&&_!==w&&!f[_.id]});w&&(Fh(w),C.length?(z(C,function(_){Fh(_),yR(_)}),u=!0,gR(yf(C),yf(w),y.divide,x,g,a)):mR(w,x,y.dataIndex))}).updateOneToMany(function(g,m){var y=n[m],b=y.data.getItemGraphicEl(y.dataIndex);if(!(b&&f[b.id])){var x=kr(Ue(g,function(C){return o[C].data.getItemGraphicEl(o[C].dataIndex)}),function(C){return C&&C!==b}),w=o[g[0]].data.hostModel;x.length&&(z(x,function(C){return Fh(C)}),b?(Fh(b),yR(b),u=!0,gR(yf(b),yf(x),y.divide,w,g[0],a)):z(x,function(C){return mR(C,w,g[0])}))}}).updateManyToMany(function(g,m){new yu(m,g,function(y){return n[y].data.getId(n[y].dataIndex)},function(y){return o[y].data.getId(o[y].dataIndex)}).update(function(y,b){p(g[y],m[b])}).execute()}).execute(),u&&z(t,function(g){var m=g.data,y=m.hostModel,b=y&&r.getViewOfSeriesModel(y),x=Pp("update",y,0);b&&y.isAnimationEnabled()&&x&&x.duration>0&&b.group.traverse(function(w){w instanceof tr&&!w.animators.length&&w.animateFrom({style:{opacity:0}},x)})})}function XG(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function qG(e){return Oe(e)?e.sort().join(","):e}function cc(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function PIt(e,t){var r=pt(),n=pt(),o=pt();return z(e.oldSeries,function(a,i){var s=e.oldData[i],l=XG(a),u=qG(l);n.set(u,s),Oe(l)&&z(l,function(c){o.set(c,{data:s,key:u})})}),z(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var i=a.getData(),s=XG(a),l=qG(s),u=n.get(l);if(u)r.set(l,{oldSeries:[{divide:cc(u),data:u}],newSeries:[{divide:cc(i),data:i}]});else if(Oe(s)){var c=[];z(s,function(A){var h=n.get(A);h&&c.push({divide:cc(h),data:h})}),c.length&&r.set(l,{oldSeries:c,newSeries:[{data:i,divide:cc(i)}]})}else{var d=o.get(s);if(d){var f=r.get(d.key);f||(f={oldSeries:[{data:d.data,divide:cc(d.data)}],newSeries:[]},r.set(d.key,f)),f.newSeries.push({data:i,divide:cc(i)})}}}}),r}function ZG(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function FIt(e,t,r,n){var o=[],a=[];z(Wr(e.from),function(i){var s=ZG(t.oldSeries,i);s>=0&&o.push({data:t.oldData[s],divide:cc(t.oldData[s]),dim:i.dimension})}),z(Wr(e.to),function(i){var s=ZG(r.updatedSeries,i);if(s>=0){var l=r.updatedSeries[s].getData();a.push({data:l,divide:cc(l),dim:i.dimension})}}),o.length>0&&a.length>0&&ode(o,a,n)}function kIt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){z(Wr(n.seriesTransition),function(o){z(Wr(o.to),function(a){for(var i=n.updatedSeries,s=0;s<i.length;s++)(a.seriesIndex!=null&&a.seriesIndex===i[s].seriesIndex||a.seriesId!=null&&a.seriesId===i[s].id)&&(i[s][lw]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var o=IIt(r);if(o.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)z(Wr(a),function(f){FIt(f,o,n,r)});else{var i=PIt(o,n);z(i.keys(),function(f){var A=i.get(f);ode(A.oldSeries,A.newSeries,r)})}z(n.updatedSeries,function(f){f[lw]&&(f[lw]=!1)})}for(var s=t.getSeries(),l=o.oldSeries=[],u=o.oldData=[],c=0;c<s.length;c++){var d=s[c].getData();d.count()<nde&&(l.push(s[c]),u.push(d))}})}Jt([egt]);Jt([Kpt]);Jt([Sgt,zgt,e0t,H0t,omt,Zmt,Iyt,vbt,Qbt,Zbt,u1t,Axt,Nxt,ewt,ywt,Bwt,Vwt,eCt,ACt,xCt,FCt,mSt]);Jt(HSt);Jt(x_t);Jt(Zle);Jt($_t);Jt(Uue);Jt(W_t);Jt(eBt);Jt(t2t);Jt(S2t);Jt(fb);Jt(V2t);Jt(K2t);Jt(lTt);Jt(mTt);Jt(BTt);Jt(FTt);Jt(jTt);Jt(pEt);Jt(Vce);Jt(Wce);Jt(QEt);Jt(Xce);Jt(qce);Jt(jEt);Jt(sIt);Jt(cIt);Jt(kIt);Jt(fpt);const fDt=Object.freeze(Object.defineProperty({__proto__:null,Axis:Yi,ChartView:Gr,ComponentModel:fr,ComponentView:cn,List:Yo,Model:Vr,PRIORITY:ise,SeriesModel:tn,color:elt,connect:hht,dataTool:xht,dependencies:XAt,disConnect:hse,disconnect:vht,dispose:pht,env:xr,extendChartView:Zvt,extendComponentModel:Yvt,extendComponentView:Xvt,extendSeriesModel:qvt,format:Ovt,getCoordinateSystemDimensions:mht,getInstanceByDom:U4,getInstanceById:ght,getMap:bht,graphic:Lvt,helper:Evt,init:Aht,innerDrawElementOnCanvas:k4,matrix:Tlt,number:Fvt,parseGeoJSON:sF,parseGeoJson:sF,registerAction:Es,registerCoordinateSystem:gse,registerLayout:mse,registerLoading:V4,registerLocale:v4,registerMap:yse,registerPostInit:vse,registerPostUpdate:pse,registerPreprocessor:H4,registerProcessor:z4,registerTheme:N4,registerTransform:bse,registerUpdateLifecycle:yB,registerVisual:_d,setCanvasCreator:yht,setPlatformAPI:Yne,throttle:gB,time:kvt,use:Jt,util:$vt,vector:vst,version:YAt,zrUtil:lst,zrender:Vlt},Symbol.toStringTag,{value:"Module"}));var ade=(e=>(e.DOCK="dock",e.ASIDE="aside",e))(ade||{}),ac=(e=>(e.HIDE_PACKAGE_ONE_CATEGORY="hidePackageOneCategory",e.CHANGE_LANG_RELOAD="changeLangReload",e.ASIDE_ALL_COLLAPSED="asideAllCollapsed",e.CHART_MOVE_DISTANCE="chartMoveDistance",e.CHART_ALIGN_RANGE="chartAlignRange",e.CHART_TOOLS_STATUS="chartToolsStatus",e.CHART_TOOLS_STATUS_HIDE="chartToolsStatusHide",e))(ac||{});const LIt={[ac.ASIDE_ALL_COLLAPSED]:!0,[ac.HIDE_PACKAGE_ONE_CATEGORY]:!0,[ac.CHANGE_LANG_RELOAD]:!1,[ac.CHART_MOVE_DISTANCE]:5,[ac.CHART_ALIGN_RANGE]:10,[ac.CHART_TOOLS_STATUS]:ade.ASIDE,[ac.CHART_TOOLS_STATUS_HIDE]:!1},{GO_SETTING_STORE:ide}=$A,OIt=$y(ide),$It=s_({id:"useSettingStore",state:()=>OIt||LIt,getters:{getHidePackageOneCategory(){return this.hidePackageOneCategory},getChangeLangReload(){return this.changeLangReload},getAsideAllCollapsed(){return this.asideAllCollapsed},getAsideCollapsedWidth(){return this.asideAllCollapsed?0:iUe},getChartMoveDistance(){return this.chartMoveDistance},getChartAlignRange(){return this.chartAlignRange},getChartToolsStatus(){return this.chartToolsStatus},getChartToolsStatusHide(){return this.chartToolsStatusHide}},actions:{setItem(e,t){this.$patch(r=>{r[e]=t}),Tm(ide,this.$state)}}}),{GO_LANG_STORE:sde}=$A,UIt=$y(sde),NIt=s_({id:"useLangStore",state:()=>UIt||{lang:mM},getters:{getLang(){return this.lang}},actions:{changeLang(e){const t=$It();this.lang!==e&&(this.lang=e,Tm(sde,this.$state),t.getChangeLangReload&&get())}}}),HIt=()=>{const e=NIt(),t=L(()=>e.getLang===td.ZH?txe:sX),r=L(()=>e.getLang===td.ZH?Nxe:uX);return{locale:t,dateLocale:r}};var lde={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.wx_jump=e.wx_set_jump_page=e.wx_setRefresh=e.wx_isRefresh=e.checkEmail=e.checkPhone=e.Speak=e.changeFullScreenStatus=e.isFullScreen=e.exitFullscreen=e.downloadImg=e.fullScreen=e.getQueryFromUrl=void 0;function t(){var h={};if(window.location.search){var v=window.location.search.substr(1).split("&");v.forEach(function(p){var g=p.split("=");h[g[0]]=g[1]||null})}return h}e.getQueryFromUrl=t;function r(h){var v=document.documentElement||h;v.requestFullscreen&&v.requestFullscreen()}e.fullScreen=r;function n(h,v){v===void 0&&(v="img");var p=document.createElement("canvas");p.width=h.width,p.height=h.height,p.getContext("2d").drawImage(h,0,0);var g=p.toDataURL("image/png"),m=document.createElement("a");m.download=v,m.href=g,m.click(),m.remove()}e.downloadImg=n;function o(){document.exitFullscreen&&document.exitFullscreen()}e.exitFullscreen=o;function a(h){var v=window.document||h,p=!!v.fullscreenElement;return!p}e.isFullScreen=a;function i(h){var v=a(h);v?o():r(h)}e.changeFullScreenStatus=i;var s=function(){function h(v){var p=this;this.say=function(g){p.msg.text=g,p.synth.speak(p.msg)},this.synth=window.speechSynthesis,this.msg=new SpeechSynthesisUtterance,this.msg.lang=v||"zh-CN"}return h}();e.Speak=s;var l=function(h){return/^1[3|4|5|6|7|8|9]\d{9}$/.test(String(h))};e.checkPhone=l;var u=function(h){return/^([a-zA-Z0-9]+[_|\_|\.|\-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[-|_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,5}$/.test(h)};e.checkEmail=u;function c(h){var v=wx.getStorageSync(h);return v?(wx.removeStorageSync(h),v):!1}e.wx_isRefresh=c;function d(h,v){wx.setStorageSync(h,v||!0)}e.wx_setRefresh=d;function f(h){wx.setStorageSync("tool-backUrl",h)}e.wx_set_jump_page=f;function A(h){var v=wx.getStorageSync("tool-backUrl");v?v.includes("/pages")&&wx.reLaunch({url:v}):wx.reLaunch({url:h||"/pages/index/index"}),wx.removeStorageSync("tool-backUrl")}e.wx_jump=A,e.default={getQueryFromUrl:t,fullScreen:r,exitFullscreen:o,isFullScreen:a,changeFullScreenStatus:i,Speak:s,checkPhone:e.checkPhone,checkEmail:e.checkEmail,wx_isRefresh:c,wx_setRefresh:d,wx_set_jump_page:f,wx_jump:A}})(lde);const zIt=ge({__name:"App",setup(e){const t=lde.getQueryFromUrl();if(t.token){localStorage.setItem("token",decodeURIComponent(t.token));const s=window.location.origin+"/plugin/screen/"+window.location.hash;window.location.href=s}const r=$rt(),n=Ort(),o=Ont(),{locale:a,dateLocale:i}=HIt();return(s,l)=>{const u=iA("router-view");return jo(),op(Fn(Sq),{theme:Fn(r),hljs:Fn(o),locale:Fn(a),"date-locale":Fn(i),"theme-overrides":Fn(n)},{default:Kl(()=>[ur(Fn(GJ),null,{default:Kl(()=>[ur(Fn(q$e)),ur(u)]),_:1})]),_:1},8,["theme","hljs","locale","date-locale","theme-overrides"])}}}),QIt={desc:"登录",form_auto:"自动登录",form_button:"登录",login_message:"请填写完整信息",login_success:"登录成功!"},VIt={create_btn:"新建",create_success:"新建成功!",create_failure:"新建失败,请稍后重试!",create_tip:"从哪里出发好呢?",project:"项目",my:"我的",new_project:"新项目",all_project:"全部项目",my_templete:"我的模板",template_market:"模板市场",release:"已发布",unreleased:"未发布",last_edit:"最后编辑"},WIt={doc_addr:"文档地址",code_addr:"仓库地址",form_account:"请输入账号或邮箱",form_password:"请输入密码",doc:"说明文档",help:"帮助中心",contact:"关于软件",logout:"退出登录",logout_success:"退出成功!",logout_failure:"退出失败!",sys_set:"系统设置",lang_set:"语言设置",r_edit:"编辑",r_preview:"预览",r_copy:"克隆",r_copy_success:"克隆成功!",r_rename:"重命名",r_rename_success:"重命名成功!",r_publish:"发布",r_publish_success:"成功发布!",r_unpublish:"取消发布",r_unpublish_success:"取消成功!",r_download:"下载",r_delete:"删除",r_delete_success:"删除成功!",r_more:"更多"},GIt={error_message:"获取数据失败,请稍后重试!",token_overdue_message:"登录过期,请重新登录!"},KIt={global:WIt,http:GIt,login:QIt,project:VIt},jIt={desc:"Login",form_auto:"Sign in automatically",form_button:"Login",login_success:"Login success!",login_message:"Please complete the letter!"},YIt={create_btn:"Creat",create_success:"Creat Success!",create_failure:"Failed to create, please try again later!",create_tip:"Please select a content for development!",project:"Project",my:"My",new_project:"New Project",all_project:"All Project",my_templete:"My Templete",template_market:"Template Market",release:"Release",unreleased:"Unrelease",last_edit:"Last edit time"},XIt={doc_addr:"Document",code_addr:"Code",form_account:"Please enter your account or email",form_password:"Please enter your password",doc:"Document",help:"Help",contact:"About Software",logout:"Logout",logout_success:"Logout success!",logout_failure:"Logout Failed!",sys_set:"System Setting",lang_set:"Language Setting",r_edit:"Edit",r_preview:"Preview",r_copy:"Clone",r_rename:"Rename",r_publish:"Publish",r_unpublish:"Unpublish",r_download:"Download",r_delete:"Delete",r_more:"More"},qIt={error_message:"The interface is abnormal, please check the interface!",token_overdue_message:"Login expired, please log in again!"},ZIt={global:XIt,http:qIt,login:jIt,project:YIt},kh=$y($A.GO_LANG_STORE),ADt=[{label:"中文",key:td.ZH},{label:"English",key:td.EN}],JIt=Y$e({legacy:!1,globalInjection:!0,locale:(kh==null?void 0:kh.lang)||mM,fallbackLocale:(kh==null?void 0:kh.lang)||mM,messages:{[td.ZH]:KIt,[td.EN]:ZIt}}),eRt=J$e();function tRt(e){e.use(eRt)}function rRt(){return ku(this,null,function*(){const e=UR(GJ),t=UR(zIt);ktt(t),Ktt(t),Mrt(t),tRt(t),e.mount("#appProvider",!0),nZe(t),yield vu.isReady(),Ptt(),t.use(JIt),t.mount("#app",!0),window.$vue=t})}rRt().then(()=>{Prt()});export{jYe as $,zRt as A,op as B,uAe as C,mK as D,DRt as E,lr as F,qM as G,gt as H,IRt as I,lne as J,iAe as K,jRt as L,TO as M,en as N,Ln as O,Pr as P,S as Q,RRt as R,wqe as S,IS as T,lk as U,$It as V,L as W,SA as X,dRt as Y,jr as Z,vre as _,gy as a,kQe as a$,YAe as a0,une as a1,XRt as a2,cet as a3,yne as a4,Dc as a5,NYe as a6,Rr as a7,xz as a8,dr as a9,TAe as aA,NRt as aB,jee as aC,Yfe as aD,UYe as aE,VRt as aF,_re as aG,Bre as aH,yet as aI,WRt as aJ,Yee as aK,Ha as aL,Xh as aM,Xee as aN,Uh as aO,lRt as aP,uRt as aQ,QYe as aR,WYe as aS,s_ as aT,yRt as aU,zYe as aV,qRt as aW,JRt as aX,vRt as aY,pRt as aZ,mRt as a_,_a as aa,ac as ab,ade as ac,ZSe as ad,G4e as ae,$y as af,$A as ag,YRt as ah,oAe as ai,iP as aj,Ptt as ak,X$e as al,NIt as am,ADt as an,oK as ao,jde as ap,Mi as aq,wA as ar,lNe as as,eDt as at,nDt as au,wn as av,fAe as aw,tDt as ax,rDt as ay,sDt as az,ur as b,Pt as b$,_Rt as b0,xRt as b1,fRt as b2,cRt as b3,Sr as b4,Bm as b5,Qhe as b6,sZ as b7,B$e as b8,cr as b9,jTt as bA,cUe as bB,Sgt as bC,Mp as bD,Mtt as bE,lDt as bF,Zmt as bG,Zle as bH,Bwt as bI,QEt as bJ,yse as bK,e0t as bL,K2t as bM,u1t as bN,omt as bO,eCt as bP,gK as bQ,BRt as bR,vbt as bS,fpt as bT,qvt as bU,kht as bV,Yo as bW,Oae as bX,Zvt as bY,ln as bZ,gr as b_,Ehe as ba,OYe as bb,cAe as bc,FRt as bd,kRt as be,En as bf,Tm as bg,sne as bh,hv as bi,Gl as bj,MRt as bk,Hhe as bl,met as bm,GRt as bn,ORt as bo,$Rt as bp,VYe as bq,_t as br,Jt as bs,egt as bt,Kpt as bu,Ke as bv,cIt as bw,zgt as bx,HSt as by,S2t as bz,ll as c,iRt as c$,Oc as c0,Tvt as c1,hr as c2,pr as c3,aB as c4,qe as c5,qy as c6,Xt as c7,Nn as c8,ws as c9,gRt as cA,KM as cB,HYe as cC,URt as cD,TRt as cE,Zat as cF,N_ as cG,kO as cH,aot as cI,ine as cJ,ky as cK,zit as cL,JGe as cM,DYe as cN,$Ye as cO,PRt as cP,sRt as cQ,bRt as cR,SRt as cS,LRt as cT,CRt as cU,k0 as cV,HRt as cW,ZRt as cX,aRt as cY,oUe as cZ,OQe as c_,LQe as ca,H0t as cb,BTt as cc,FTt as cd,mTt as ce,sIt as cf,kIt as cg,bse as ch,M8 as ci,jAe as cj,mse as ck,H4 as cl,jn as cm,Fr as cn,Oe as co,z as cp,Edt as cq,uDt as cr,hRt as cs,fDt as ct,cDt as cu,Aht as cv,gB as cw,Hr as cx,MQe as cy,wRt as cz,ge as d,ERt as d0,P8 as d1,oDt as d2,JT as d3,aDt as d4,iDt as d5,du as e,R_ as f,ai as g,q as h,Bl as i,dDt as j,Ni as k,yr as l,Ta as m,ARt as n,jo as o,NK as p,BK as q,iA as r,TK as s,JF as t,Fn as u,JJe as v,Kl as w,KRt as x,O_ as y,QRt as z};